/*
Theme Name: Goldstar
Text Domain: goldstar
Version: 1.0.0
*/

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --color-primary:   #AFA085;
  --color-primary-darker:   #8d816b;
  --color-secondary: #333333;
  --color-light:     #f8f7f5;
  --font-title:      'Open Sans', sans-serif;
  --font-body:       'Roboto Condensed', sans-serif;
  --header-height:   125px;
  --container-max:   1600px;
  --transition-base: 0.3s ease;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-secondary);
  background: #fff;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

address {
  font-style: normal;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  background: #fff;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

/* Ombre au défilement */
.site-header.is-scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

/* Masqué en scrollant vers le bas */
.site-header.is-hidden {
  transform: translateY(-100%);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 2rem;
  max-width: var(--container-max);
  margin: -15px auto 0 auto;
}

/* ---- Logo ---- */
.header__logo {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
}

.header__logo-img {
  height: 140px;
  width: auto;
}


.header__logo-name {
     font-family: var(--font-body);
    font-size: 1.65rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    text-transform: uppercase;
   
}

/* ---- Navigation principale ---- */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-nav__list {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav__list li {
  display: flex;
  align-items: center;
}

/* Séparateur "/" entre les items */
.main-nav__list li + li::before {
  content: '/';
  color: var(--color-primary);
  opacity: 0.6;
  padding: 0 0.75rem;
  font-family: var(--font-title);
  font-size: 0.7rem;
}

.main-nav__list a {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  transition: color var(--transition-base);
  white-space: nowrap;
}

.main-nav__list a:hover,
.main-nav__list .current-menu-item > a {
  color: var(--color-primary-darker);
}

/* ---- Switcher de langue ---- */
.lang-switcher {
  flex-shrink: 0;
}

.lang-switcher ul {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-switcher li.lang-item {
    display: inline !important;
    float: left !important;
    margin: 0 10px !important;
}

.lang-switcher li a {
  display: block;
  opacity: 0.45;
  transition: opacity var(--transition-base);
  line-height: 0;
}

.lang-switcher li a:hover,
.lang-switcher li.current-lang a {
  opacity: 1;
}

.lang-switcher li a img {
  width: 20px !important;
  height: 14px !important;
  height: auto;
  border-radius: 2px;
}


/* ============================================================
   MENU MOBILE — toggle + overlay
   ============================================================ */

/* Bouton hamburger — masqué par défaut (desktop first) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animation hamburger → X */
.nav-toggle.is-active .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-active .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-active .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Overlay — masqué par défaut */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: var(--header-height);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.nav-overlay__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 3rem;
  width: 100%;
}

.nav-overlay__logo img {
  height: 110px;
  width: auto;
  margin-bottom: 3rem;
}

.nav-overlay__list {
  list-style: none;
  text-align: center;
  width: 100%;
}

.nav-overlay__list li {
  margin-bottom: 1.75rem;
}

.nav-overlay__list a {
  font-family: var(--font-body);
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  transition: opacity var(--transition-base);
}

.nav-overlay__list a:hover,
.nav-overlay__list .current-menu-item > a {
  opacity: 0.6;
}

/* Bouton de fermeture — croix positionnée en haut à droite */
.nav-overlay__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.nav-overlay__close-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  position: absolute;
}

.nav-overlay__close-bar:nth-child(1) { transform: rotate(45deg); }
.nav-overlay__close-bar:nth-child(2) { transform: rotate(-45deg); }

/* ============================================================
   PAGES
   ============================================================ */

main#main {
  max-width: var(--container-max);
  margin: 0 auto;
}

/* ============================================================
   PAGE GÉNÉRIQUE (page.php)
   ============================================================ */

.site-main--page {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 5rem;
}

.page-content {
  max-width: 900px;
  margin: 0 auto;
}

/* En-tête centré avec coins décoratifs */
.page-content__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.page-content__title {
  position: relative;
  display: inline-block;
  padding: 1rem 5rem;
  font-family: var(--font-body);
  font-size: 2.6rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  text-transform: uppercase;
}

.page-content__title::before,
.page-content__title::after {
  content: '';
  position: absolute;
  width: 35px;
  height: 35px;
}

/* Coin haut-gauche */
.page-content__title::before {
  top: 0;
  left: 0;
  border-top: 4px solid var(--color-primary);
  border-left: 4px solid var(--color-primary);
}


/* Coin bas-droit */
.page-content__title::after {
  bottom: 0;
  right: 0;
  border-bottom: 4px solid var(--color-primary);
  border-right: 4px solid var(--color-primary);
}

/* Titres dans le corps de page */
.page-content__body h2 {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

.page-content__body h3 {
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.page-content__body h4 {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* Paragraphes */
.page-content__body p {
  font-family: var(--font-body);
  font-size: 1.35rem;
  color: var(--color-primary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  text-align: justify;
  font-weight: 400;
}

/* Listes */
.page-content__body ul,
.page-content__body ol {
  font-family: var(--font-body);
  font-size: 1.35rem;
  color: var(--color-primary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.page-content__body ul { list-style: disc; }
.page-content__body ol { list-style: decimal; }

/* Liens dans le contenu */
.page-content__body a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--transition-base);
}

.page-content__body a:hover {
  opacity: 0.7;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  width: 100%;
  margin-top: var(--header-height);
}

.hero__video {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================================
   TAGLINE SOUS LE HERO
   ============================================================ */
.hero-tagline {
  padding: 2.5rem 0;
  text-align: center;
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: var(--color-primary);
   font-weight: 600;
}

/* ============================================================
   SÉPARATEUR AVANT FOOTER
   ============================================================ */

.footer-separator {
  width: 50%;
  height: 4px;
  background: var(--color-primary);
  margin: 0 auto;
}

/* ============================================================
   FOOTER (squelette)
   ============================================================ */
.site-footer {
  background: #fff;
  padding: 4rem 0;
  text-align: center;
}

.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.footer__logo-img {
  height: 150px;
  width: auto;
}

.footer__cols {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer__col {
  text-align: center;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.footer__nav li {
  margin-bottom: 0.2rem;
}

.footer__nav a,
.footer__address p {
  font-family: var(--font-body);
  font-size: 1.35rem;
  color: var(--color-primary);
  transition: opacity var(--transition-base);
}

.footer__nav a:hover {
  opacity: 0.7;
}

.footer__address p {
  margin-bottom: 0.4rem;
}

.footer__address a {
  color: var(--color-primary);
}

/* ============================================================
   CAROUSEL
   ============================================================ */

/* Wrapper de section */
.carousel-section {
  width: 100%;
}

/* Images — ratio naturel, full-width */
.goldstar-carousel .carousel__slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* Flèches custom (HTML fourni via slick-init.js) */
.goldstar-carousel .slick-prev,
.goldstar-carousel .slick-next {
  position: absolute;
  top: calc(50% - 2rem);   /* centré sur l'image, avant les dots */
  transform: translateY(-50%);
  z-index: 10;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 44px;
  line-height: 1;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  transition: color var(--transition-base);
}

.goldstar-carousel .slick-prev { left: 1rem; }
.goldstar-carousel .slick-next { right: 1rem; }

.goldstar-carousel .slick-prev:hover,
.goldstar-carousel .slick-next:hover {
  color: #fff;
}

/* Dots */
.goldstar-carousel .slick-dots {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
  padding: 2rem 0 0;
  margin: 0;
}

.goldstar-carousel .slick-dots li {
  width: 10px;
  height: 10px;
  margin: 0;
}

.goldstar-carousel .slick-dots li button {
  width: 10px;
  height: 10px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0;
  line-height: 0;
  display: block;
}

.goldstar-carousel .slick-dots li button::before {
  content: '';
  display: block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid  var(--color-primary);
  opacity: 0.8;
  transition: opacity var(--transition-base);
}

.goldstar-carousel .slick-dots li.slick-active button::before {
  opacity: 1;
  border: 1px solid  var(--color-primary);
  background: var(--color-primary);
}

/* Légende sous le carousel */
.carousel-caption {
    text-align: center; 
    padding: 0.75rem 2rem 1.5rem;       
    font-family: var(--font-title);
    font-size: 1.4rem;
    color: var(--color-primary);
    font-weight: 600;
}

/* ============================================================
   SECTION PRÉSENTATION — HOME SUITE HOME
   ============================================================ */
.section-presentation {
  padding: 3rem 0 1.5rem;
  text-align: center;
}

.section-presentation__inner {
  max-width: 750px;
  margin: 0 auto;
}

/* Le titre est saisi en h2 dans l'éditeur WP */
.section-presentation__inner h2 {
  font-family: var(--font-body);
  font-size: 2.6rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.section-presentation__inner p {
  font-family: var(--font-body);
  font-size: 1.55rem;
  color: var(--color-primary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  text-align: justify;
  font-weight: 400;
}

/* ============================================================
   SUITE INFO — titre 2 tailles + CTA sous un carousel de suite
   ============================================================ */
.suite-info {
  padding: 0.8rem 0 3.8rem;
  text-align: center;
}

.suite-info__title-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1.75rem;
}

.suite-info__name {
  font-family: var(--font-body);
  font-size: 2.7rem;
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.2;
}

.suite-info__details {
  font-family: var(--font-body);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--color-primary);
  line-height: 1.4;
}

.btn--reserve {
  display: inline-block;
  padding: 1.2rem 4.5rem;
  background: #ebebeb;
  color: var(--color-secondary);
  font-family: var(--font-title);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: background var(--transition-base), color var(--transition-base);
}

.btn--reserve:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ============================================================
   SECTION NOS SUITES — logo + titre avec angles décoratifs
   ============================================================ */
.section-nos-suites {
  padding: 0 0 4rem;
  text-align: center;
}

.section-nos-suites__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.section-nos-suites__logo img {
  height: 150px;
  width: auto;
}

/* Wrapper qui permet au titre de s'adapter à la largeur du texte */
.section-nos-suites__heading-wrap {
  display: flex;
  justify-content: center;
}

/* Titre avec angles décoratifs ::before (coin haut-gauche) et ::after (coin bas-droit) */
.section-nos-suites__title {
  position: relative;
  display: inline-block;
  padding: 1rem 6rem;
  font-family: var(--font-body);
  font-size: 2.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  text-transform: lowercase;
}

.section-nos-suites__title::before,
.section-nos-suites__title::after {
  content: '';
  position: absolute;
  width: 35px;
  height: 35px;
}

/* Coin haut-gauche */
.section-nos-suites__title::before {
  top: 0;
  left: 0;
  border-top: 4px solid var(--color-primary);
  border-left: 4px solid var(--color-primary);
}

/* Coin bas-droit */
.section-nos-suites__title::after {
  bottom: 0;
  right: 0;
  border-bottom: 4px solid var(--color-primary);
  border-right: 4px solid var(--color-primary);
}

/* ============================================================
   CONTENEUR PRINCIPAL
   ============================================================ */

/* Appliqué aux wrappers de contenu — full-bleed exclus (hero, carousel) */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* ============================================================
   UTILITAIRES
   ============================================================ */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* --- Mobile (< 768px) --- */
@media (max-width: 767px) {

  :root {   
    --header-height: 65px;   
  }


  /* Header */
  .header__inner {
    padding: 0 1rem; 
    margin: 0 auto 0 auto;
  }

  .header__logo-img {
    height: 80px;
    width: auto;
  }

  .header__logo-name {
    font-size: 0.85rem;
  }

  /* Navigation — masquée, remplacée par l'overlay */
  .main-nav   { display: none; }
  .nav-toggle { display: flex; }

  /* Suite info */
  .suite-info__title-wrap {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
  }

  .section-nos-suites__title {
        font-size: 2.4rem;      
    padding: 1rem 4rem;

  }

  /* pages */

  .page-content__title {
        font-size: 1.6rem;
  }
  .page-content__body h2 {
        font-size: 1.4rem;
  }

}

/* --- Desktop (>= 768px) — masquage du toggle et de l'overlay mobile --- */
@media (min-width: 768px) {
  .nav-toggle  { display: none !important; }
  .nav-overlay { display: none !important; }
}
