/*
 Theme Name:   Belle Rive Terrace Child
 Theme URI:    https://thebelleriveterrace.com
 Description:  Child theme for The Belle Rive Terrace — Luang Prabang
 Author:       Belle Rive Terrace
 Template:     generatepress
 Version:      3.0.0
 Text Domain:  bellerive-child
*/

/*
  ╔══════════════════════════════════════════════════════════════╗
  ║  BELLE RIVE TERRACE — DESIGN SYSTEM v3  (PALETTE FINALE)    ║
  ╠══════════════════════════════════════════════════════════════╣
  ║  #0D2137  Deep Navy       → nav, footer, headings, fond     ║
  ║           sombres                                            ║
  ║  #F8F5EF  Warm White      → fond de page                    ║
  ║  #EDE8DF  Warm White 2    → sections alternées              ║
  ║  #E0D9CE  Warm White 3    → bordures, séparateurs           ║
  ║  #1B5E6E  Mékong Teal     → BOUTONS CTA principaux          ║
  ║           (teal colonial, 7.6:1 AAA ✓)                      ║
  ║  #C9A84C  Mekong Gold     → décoration UNIQUEMENT :         ║
  ║           eyebrows, règles, étoiles, bordures accent         ║
  ║           JAMAIS fond de bouton                              ║
  ║  #1E1E1E  Charcoal        → texte corps                     ║
  ║  #6B6560  Muted           → texte secondaire (4.6:1 AA ✓)   ║
  ╠══════════════════════════════════════════════════════════════╣
  ║  CONTRASTES WCAG VALIDÉS                                     ║
  ║  Blanc sur #0D2137   → 16.2:1 AAA ✓✓✓                      ║
  ║  Blanc sur #1B5E6E   →  7.6:1 AAA ✓✓                       ║
  ║  #0D2137 sur #F8F5EF → 15.8:1 AAA ✓✓✓                      ║
  ║  #0D2137 sur #EDE8DF → 14.9:1 AAA ✓✓✓                      ║
  ║  #6B6560 sur #F8F5EF →  4.6:1 AA  ✓                        ║
  ╚══════════════════════════════════════════════════════════════╝
*/

/* ── 1. TOKENS ─────────────────────────────────────────────── */
:root {
  /* Couleurs principales */
  --navy:          #0D2137;
  --navy-mid:      #1A3A5C;
  --navy-light:    #2A5A8C;
  --navy-pale:     #EBF2F8;

  /* Bouton CTA */
  --teal:          #1B5E6E;
  --teal-hover:    #154D5B;
  --teal-light:    #2A7D91;

  /* Or — décoration uniquement */
  --gold:          #C9A84C;
  --gold-on-dark:  #E2C47A;
  --gold-pale:     #F5EDD6;

  /* Fonds */
  --warm-white:    #F8F5EF;
  --warm-white-2:  #EDE8DF;
  --warm-white-3:  #E0D9CE;

  /* Texte */
  --charcoal:      #1E1E1E;
  --muted:         #6B6560;
  --white:         #FFFFFF;

  /* Typo */
  --font-h: 'Cormorant Garamond', Georgia, serif;
  --font-b: 'Jost', 'Helvetica Neue', sans-serif;

  /* Motion */
  --ease:  cubic-bezier(.4,0,.2,1);
  --fast:  200ms;
  --base:  380ms;
  --slow:  650ms;

  /* Ombres */
  --shadow-sm: 0 2px 10px  rgba(13,33,55,.07);
  --shadow-md: 0 8px 32px  rgba(13,33,55,.13);
  --shadow-lg: 0 24px 64px rgba(13,33,55,.18);

  /* Layout */
  --space-section: clamp(4rem, 8vw, 8rem);
  --max-w:  1180px;
  --max-n:   760px;
  --r-sm: 3px;
  --r-md: 6px;
  --r-lg: 12px;
}

/* ── 2. RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  background: var(--warm-white);
  color: var(--charcoal);
  font-family: var(--font-b);
  font-size: 1rem;
  line-height: 1.75;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color var(--fast) var(--ease); }
a:hover { color: var(--teal-hover); }

/* ── 3. TYPOGRAPHIE ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-h);
  font-weight: 400;
  line-height: 1.15;
  color: var(--navy);
  margin-top: 0;
}
h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem,   4vw, 3rem);   }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.375rem; }

/* Eyebrow — or, jamais utilisé comme fond */
.br-eyebrow {
  font-family: var(--font-b);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: .75rem;
}

/* Italic serif caption */
.br-caption {
  font-family: var(--font-h);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--muted);
}

/* Règle or — décoration uniquement */
.br-rule { display: block; width: 48px; height: 1px; background: var(--gold); margin: 1rem auto; }
.br-rule--left { margin-left: 0; }

/* ── 4. BOUTONS ─────────────────────────────────────────────── */
/*
  SYSTÈME BOUTONS — 4 variantes, 0 or comme fond :

  .br-btn--cta      Teal #1B5E6E, texte blanc
                    → CTA principal sur fond clair (warm white / warm white 2)
                    → contraste 7.6:1 AAA ✓

  .br-btn--outline  Contour navy, texte navy, fond transparent
                    → CTA secondaire sur fond clair
                    → contraste 15.8:1 AAA ✓

  .br-btn--hero     Fond warm white #F8F5EF, texte navy
                    → CTA principal sur fond sombre (navy / hero)
                    → contraste 15.8:1 AAA ✓

  .br-btn--ghost    Contour blanc semi-transparent, texte blanc
                    → CTA secondaire sur fond sombre / hero
                    → contraste 16:1 AAA ✓
*/
.br-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-b);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .9rem 2.4rem;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background     var(--fast) var(--ease),
    border-color   var(--fast) var(--ease),
    color          var(--fast) var(--ease),
    transform      var(--fast) var(--ease),
    box-shadow     var(--fast) var(--ease);
}

/* CTA principal — teal, fond clair */
.br-btn--cta {
  background:   var(--teal);
  color:        var(--white);
  border-color: var(--teal);
}
.br-btn--cta:hover {
  background:   var(--teal-hover);
  border-color: var(--teal-hover);
  color:        var(--white);
  transform:    translateY(-2px);
  box-shadow:   var(--shadow-md);
}
.br-btn--cta:active { transform: none; box-shadow: none; }

/* Secondaire outline — fond clair */
.br-btn--outline {
  background:   transparent;
  color:        var(--navy);
  border-color: var(--navy);
}
.br-btn--outline:hover {
  background:   var(--navy);
  color:        var(--white);
  transform:    translateY(-2px);
}

/* CTA principal — sur fond sombre */
.br-btn--hero {
  background:   var(--warm-white);
  color:        var(--navy);
  border-color: var(--warm-white);
}
.br-btn--hero:hover {
  background:   var(--white);
  border-color: var(--white);
  color:        var(--navy);
  transform:    translateY(-2px);
  box-shadow:   var(--shadow-md);
}

/* Secondaire ghost — sur fond sombre */
.br-btn--ghost {
  background:   transparent;
  color:        var(--white);
  border-color: rgba(255,255,255,.5);
}
.br-btn--ghost:hover {
  background:   rgba(255,255,255,.1);
  border-color: var(--white);
  color:        var(--white);
}

/* WhatsApp */
.br-btn--wa {
  background:   #25D366;
  color:        var(--white);
  border-color: #25D366;
}
.br-btn--wa:hover { background: #1da851; border-color: #1da851; color: var(--white); }

/* ── 5. NAVIGATION ──────────────────────────────────────────── */
.site-header, #site-header {
  background: transparent !important;
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--base) var(--ease), box-shadow var(--base) var(--ease);
}
.site-header.is-scrolled, #site-header.is-scrolled {
  background: var(--navy) !important;
  box-shadow: var(--shadow-md);
}
.main-navigation a, .nav-primary a {
  font-family:    var(--font-b);
  font-size:      .78rem;
  font-weight:    400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color:          var(--white) !important;
  padding:        .4rem .8rem;
  transition:     color var(--fast) var(--ease);
}
.main-navigation a:hover, .nav-primary a:hover { color: var(--gold-on-dark) !important; }
.site-logo img, .custom-logo { max-height: 52px; width: auto; }

/* Bouton "Reserve" dans la nav — warm white sur navy */
.nav-reserve-btn a {
  background:    var(--warm-white) !important;
  color:         var(--navy) !important;
  padding:       .5rem 1.4rem !important;
  border-radius: var(--r-sm) !important;
  font-weight:   500 !important;
  transition:    background var(--fast) !important;
}
.nav-reserve-btn a:hover { background: var(--white) !important; }
.menu-toggle { color: var(--white) !important; }

/* ── 6. HERO ────────────────────────────────────────────────── */
.br-hero {
  position: relative;
  width: 100%; height: 100vh; min-height: 600px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.br-hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  will-change: transform;
}
.br-hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(13,33,55,.28) 0%,
    rgba(13,33,55,.08) 45%,
    rgba(13,33,55,.68) 100%
  );
}
.br-hero__shimmer {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255,220,120,.05) 50%, transparent 60%);
  background-size: 200% 100%;
  animation: shimmer 7s ease-in-out infinite;
}
@keyframes shimmer { 0%,100%{background-position:200% 0} 50%{background-position:-100% 0} }
.br-hero__content {
  position: relative; z-index: 3;
  max-width: var(--max-n); padding: 0 1.5rem;
  color: var(--white);
}
.br-hero__sup {
  font-family: var(--font-b);
  font-size: .7rem; letter-spacing: .28em; text-transform: uppercase;
  color: rgba(255,255,255,.7); display: block; margin-bottom: 1.2rem;
}
.br-hero__title {
  font-family: var(--font-h);
  font-size: clamp(2.8rem,7vw,5.5rem);
  font-weight: 300; color: var(--white); line-height: 1.08;
  text-shadow: 0 2px 24px rgba(13,33,55,.4);
  margin-bottom: 1.2rem;
}
.br-hero__title em { font-style: italic; color: var(--gold-on-dark); }
.br-hero__sub {
  font-family: var(--font-h); font-style: italic;
  font-size: clamp(1.1rem,2vw,1.4rem);
  color: rgba(255,255,255,.85); margin-bottom: 2.2rem;
}
.br-hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.2rem; }
.br-hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: .4rem;
  color: rgba(255,255,255,.5); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  animation: bounce 2.5s var(--ease) infinite;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 55%{transform:translateX(-50%) translateY(7px)} }

/* Pill coucher de soleil */
.br-sunset-pill {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(13,33,55,.72); backdrop-filter: blur(8px);
  border: 1px solid rgba(226,196,122,.3);
  border-radius: 999px; padding: .55rem 1.3rem;
  font-size: .8rem; color: rgba(255,255,255,.82);
}
.br-sunset-pill__time { font-family: var(--font-h); font-size: 1.05rem; color: var(--gold-on-dark); }

/* ── 7. SECTIONS & LAYOUT ───────────────────────────────────── */
.br-section     { padding: var(--space-section) 1.5rem; }
.br-section--navy {
  background: var(--navy); color: var(--white);
}
.br-section--navy h2, .br-section--navy h3, .br-section--navy p { color: var(--white); }
.br-section--navy .br-eyebrow { color: var(--gold-on-dark); }
.br-section--warm { background: var(--warm-white-2); }

.br-container   { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.br-container--n { max-width: var(--max-n); margin: 0 auto; }
.br-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.br-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.text-center { text-align: center; }

/* ── 8. CARDS ───────────────────────────────────────────────── */
.br-card {
  background: var(--white);
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--warm-white-3);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--base) var(--ease), transform var(--base) var(--ease);
}
.br-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.br-card__image { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.br-card__body  { padding: 1.4rem; }

/* ── 9. AVIS & CONFIANCE ────────────────────────────────────── */
.br-stars { color: var(--gold); letter-spacing: .05em; }

.br-review {
  background: var(--warm-white);
  border-radius: var(--r-md); padding: 1.6rem;
  border-left: 3px solid var(--gold);
}
.br-review__text {
  font-family: var(--font-h); font-style: italic;
  font-size: 1.05rem; color: var(--charcoal);
  margin-bottom: 1rem; line-height: 1.65;
}
.br-review__author { font-size: .82rem; color: var(--muted); }

.br-trust-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 2.5rem; flex-wrap: wrap;
  padding: 1.2rem 2rem;
  background: var(--white);
  border-bottom: 1px solid var(--warm-white-3);
  font-size: .82rem; color: var(--muted);
}
.br-trust-divider { width: 1px; height: 20px; background: var(--warm-white-3); }

/* ── 10. FOOTER ─────────────────────────────────────────────── */
.br-footer {
  background: var(--navy);
  color: rgba(255,255,255,.68);
  padding: 5rem 2rem 2rem;
}
.br-footer h4 {
  font-family: var(--font-b); font-size: .72rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-on-dark); margin-bottom: 1.1rem;
}
.br-footer p, .br-footer address { font-size: .88rem; line-height: 1.8; font-style: normal; }
.br-footer a { color: rgba(255,255,255,.55); font-size: .88rem; display: block; margin-bottom: .4rem; }
.br-footer a:hover { color: var(--gold-on-dark); }
.br-footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; max-width: var(--max-w); margin: 0 auto 3rem;
}
.br-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem;
  font-size: .75rem; display: flex; justify-content: space-between; align-items: center;
  max-width: var(--max-w); margin: 0 auto;
}

/* ── 11. BARRE STICKY MOBILE ────────────────────────────────── */
.br-sticky {
  display: none; position: fixed;
  bottom: 0; left: 0; right: 0; z-index: 999;
  background: var(--navy); padding: .85rem 1.5rem;
  box-shadow: 0 -4px 24px rgba(13,33,55,.3);
  align-items: center; justify-content: space-between; gap: 1rem;
}
.br-sticky__text { font-size: .8rem; color: rgba(255,255,255,.7); }
.br-sticky__time { font-family: var(--font-h); color: var(--gold-on-dark); }

/* ── 12. WHATSAPP FLOTTANT ──────────────────────────────────── */
.br-wa-float {
  position: fixed; bottom: 5rem; right: 1.5rem; z-index: 998;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); text-decoration: none;
  transition: transform var(--fast), box-shadow var(--fast);
}
.br-wa-float:hover { transform: scale(1.1); box-shadow: 0 12px 40px rgba(37,211,102,.35); }
.br-wa-float svg { width: 28px; fill: white; }

/* ── 13. REVEAL AU SCROLL ───────────────────────────────────── */
.br-reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}
.br-reveal.is-visible { opacity: 1; transform: none; }
.br-rg > * {
  opacity: 0; transform: translateY(20px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}
.br-rg.is-visible > *:nth-child(1) { opacity:1; transform:none; transition-delay:  0ms; }
.br-rg.is-visible > *:nth-child(2) { opacity:1; transform:none; transition-delay: 90ms; }
.br-rg.is-visible > *:nth-child(3) { opacity:1; transform:none; transition-delay:180ms; }
.br-rg.is-visible > *:nth-child(4) { opacity:1; transform:none; transition-delay:270ms; }
@media (prefers-reduced-motion: reduce) {
  .br-reveal, .br-rg > * { opacity:1; transform:none; transition:none; }
}

/* ── 14. RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .br-grid-3       { grid-template-columns: repeat(2,1fr); }
  .br-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .br-grid-2, .br-grid-3 { grid-template-columns: 1fr; }
  .br-footer__grid        { grid-template-columns: 1fr; gap: 2rem; }
  .br-footer__bottom      { flex-direction: column; gap: 1rem; text-align: center; }
  .br-sticky              { display: flex; }
  body                    { padding-bottom: 72px; }
  .br-wa-float            { bottom: 5.5rem; }
}
@media (max-width: 480px) {
  .br-container { padding: 0 1rem; }
  .br-grid-2    { gap: 2rem; }
}

/* ── 15. GENERATEPRESS + ELEMENTOR ─────────────────────────── */
.site-main, .inside-page-hero       { padding: 0 !important; }
.page-full-width .site-main         { max-width: 100% !important; }
.entry-content                      { padding: 0 !important; margin: 0 !important; }
.elementor-section.elementor-section-stretched { left: 0 !important; width: 100% !important; }
article.type-page                   { margin: 0; }
