/* ===========================================================================
   La Brochardière 2.0 — feuille de style du thème
   ---------------------------------------------------------------------------
   Sommaire
     1. Polices           — hébergées sur le serveur, plus d'appel à Google
     2. Jetons            — couleurs, typographie, rythme, ombres
     3. Base              — réinitialisation douce et éléments natifs
     4. Typographie       — échelle et styles de texte
     5. Mise en page      — conteneurs et sections
     6. Navigation        — barre fixe, menu mobile
     7. Barre de réservation mobile
     8. Boutons
     9. Pied de page
    10. Accessibilité et préférences système
    11. Impression
   =========================================================================== */


/* ===== 1. POLICES =========================================================
   Les fichiers .woff2 se placent dans assets/fonts/. Tant qu'ils sont absents,
   la pile de repli prend le relais sans casser la page : font-display: swap
   affiche immédiatement le texte dans la police système.
   ========================================================================= */

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-300.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-400-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('../fonts/jost-300.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('../fonts/jost-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('../fonts/jost-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('../fonts/jost-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}


/* ===== 2. JETONS ==========================================================
   Les noms courts de la version 1 (--fd, --g, --iv…) sont conservés comme
   alias : plus de trois cents attributs style="" dans les gabarits les
   appellent encore. Ils disparaîtront quand ces attributs auront été
   résorbés, pas avant.
   ========================================================================= */

:root {
  /* Couleurs — identité */
  --vert-profond:  #1e3329;
  --vert:          #2c4a3e;
  --vert-clair:    #3d6b5a;
  --or:            #c8932a;   /* décoratif : bordures, badges, grands titres */
  --or-texte:      #8a6714;   /* texte sous 18 px — contraste 5,1:1 sur ivoire */
  --or-clair:      #e8b84b;   /* sur fonds sombres uniquement */
  --ivoire:        #f5f0e0;
  --ivoire-fonce:  #ede7d0;
  --blanc:         #fefdfb;
  --encre:         #2a2a22;
  --encre-douce:   #5a5a4c;   /* 4,8:1 sur ivoire */

  /* Alias de compatibilité — version 1 */
  --fd: var(--vert-profond);
  --f:  var(--vert);
  --fl: var(--vert-clair);
  --g:  var(--or);
  --g2: var(--or-texte);
  --gl: var(--or-clair);
  --iv: var(--ivoire);
  --ivd:var(--ivoire-fonce);
  --wh: var(--blanc);
  --tx: var(--encre);
  --txl:var(--encre-douce);

  /* Typographie */
  --titre: 'Cormorant Garamond', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --texte: 'Jost', 'Avenir Next', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Échelle — plancher à 12 px pour tout ce qui doit être lu */
  --t-micro:  0.75rem;                              /* 12 px */
  --t-petit:  0.8125rem;                            /* 13 px */
  --t-base:   1rem;                                 /* 16 px */
  --t-lead:   clamp(1.0625rem, 0.3vw + 1rem, 1.1875rem);
  --t-h3:     clamp(1.25rem, 0.6vw + 1.1rem, 1.5rem);
  --t-h2:     clamp(1.75rem, 1.6vw + 1.3rem, 2.75rem);
  --t-h1:     clamp(2.25rem, 3.4vw + 1.4rem, 4.25rem);
  --t-hero:   clamp(2.75rem, 5.5vw, 5rem);

  /* Rythme — échelle de 4 px */
  --e1: 4px;  --e2: 8px;  --e3: 12px; --e4: 16px;
  --e5: 24px; --e6: 32px; --e7: 48px; --e8: 72px; --e9: 104px;

  /* Divers */
  --nav-h: 64px;
  --nh: var(--nav-h);          /* alias version 1 */
  --rayon: 2px;
  --largeur: 1180px;
  --lisible: 68ch;
  --ombre-douce: 0 1px 3px rgba(30, 51, 41, .10);
  --ombre-carte: 0 2px 14px rgba(30, 51, 41, .08);
  --transition: .2s ease;
}


/* ===== 3. BASE ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--e4));
  -webkit-text-size-adjust: 100%;
}

body.lb-page {
  margin: 0;
  background: var(--ivoire);
  color: var(--encre);
  font-family: var(--texte);
  font-size: var(--t-base);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.lb-page img,
body.lb-page video {
  max-width: 100%;
  height: auto;
  display: block;
}

body.lb-page a { color: inherit; text-decoration: none; }

body.lb-page p a:not([class]) {
  color: var(--or-texte);
  text-decoration: underline;
  text-underline-offset: .18em;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(138, 103, 20, .45);
  transition: text-decoration-color var(--transition);
}
body.lb-page p a:not([class]):hover { text-decoration-color: currentColor; }

body.lb-page ul, body.lb-page ol { padding: 0; margin: 0; list-style: none; }

body.lb-page hr {
  border: 0;
  border-top: 1px solid rgba(200, 147, 42, .22);
  margin: var(--e7) 0;
}

::selection { background: rgba(200, 147, 42, .25); color: var(--vert-profond); }


/* ===== 4. TYPOGRAPHIE ===================================================== */

/* :where() annule la specificite : ces styles de base ne doivent jamais
   l'emporter sur les regles des gabarits de l'extension. Sans cela, le titre
   du hero d'accueil (.lb-htitle) repassait en vert fonce sur la photo. */
:where(.lb-page) :where(h1, h2, h3, h4) {
  font-family: var(--titre);
  font-weight: 300;
  color: var(--vert-profond);
  line-height: 1.12;
  margin: 0 0 var(--e4);
  letter-spacing: -.005em;
}

.lb-page h1 { font-size: var(--t-h1); }
.lb-page h2 { font-size: var(--t-h2); }
.lb-page h3 { font-size: var(--t-h3); font-weight: 400; line-height: 1.25; }
.lb-page h4 { font-size: var(--t-lead); font-weight: 500; font-family: var(--texte); }

.lb-page p { margin: 0 0 var(--e4); max-width: var(--lisible); }
.lb-page p:last-child { margin-bottom: 0; }

/* Le chapô : la seule respiration typographique du corps de page.
   Italique Cormorant, comme la devise du pied de page — c'est la voix
   de la maison, par opposition au Jost qui est la voix du service. */
.lb-chapo {
  font-family: var(--titre);
  font-size: var(--t-lead);
  font-style: italic;
  font-weight: 300;
  color: var(--vert);
  line-height: 1.55;
  max-width: 60ch;
}

/* Mention discrète : classement, mentions légales, précisions tarifaires. */
.lb-mention {
  font-size: var(--t-micro);
  color: var(--encre-douce);
  letter-spacing: .01em;
}

/* Surtitre. Conservé en capitales, c'est la signature de la version 1,
   mais remonté à 12 px et l'interlettrage réduit pour rester lisible. */
.lb-surtitre {
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--or-texte);
  margin-bottom: var(--e3);
  display: block;
}


/* ===== 5. MISE EN PAGE ==================================================== */

.lb-wrap { padding-top: var(--nav-h); }

.lb-conteneur {
  width: min(100% - 2 * var(--e5), var(--largeur));
  margin-inline: auto;
}

.lb-section { padding-block: var(--e9); }
.lb-section--serree { padding-block: var(--e8); }
.lb-section--claire { background: var(--blanc); }
.lb-section--sombre { background: var(--vert-profond); color: rgba(245, 240, 224, .88); }
.lb-section--sombre h1,
.lb-section--sombre h2,
.lb-section--sombre h3 { color: var(--ivoire); }
.lb-section--sombre .lb-surtitre { color: var(--or-clair); }


/* ===== 6. NAVIGATION ====================================================== */

#lb-nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0;
  padding-inline: var(--e5);
  background: rgba(245, 240, 224, .94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(200, 147, 42, .3);
}
@supports not (backdrop-filter: blur(10px)) {
  #lb-nav { background: var(--ivoire); }
}

.lb-brand {
  display: flex;
  align-items: center;
  gap: var(--e3);
  flex-shrink: 0;
  margin-right: var(--e6);
}
.lb-logo {
  height: 46px;
  width: auto;
  filter: drop-shadow(var(--ombre-douce));
  transition: transform var(--transition);
}
.lb-brand:hover .lb-logo { transform: scale(1.03); }

.lb-brand-name {
  display: block;
  font-family: var(--titre);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--vert-profond);
  letter-spacing: .02em;
  line-height: 1.1;
}
.lb-brand-sub {
  display: block;
  font-size: var(--t-micro);
  font-weight: 400;
  letter-spacing: .1em;
  color: var(--or-texte);
  margin-top: 1px;
  line-height: 1.2;
}

.lb-nav-links { display: flex; align-items: stretch; height: var(--nav-h); flex: 1; }
.lb-nav-links a {
  display: flex;
  align-items: center;
  padding-inline: var(--e4);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--vert);
  border-bottom: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.lb-nav-links a:hover { color: var(--vert-profond); }
.lb-nav-links a.lb-cur {
  color: var(--vert-profond);
  font-weight: 600;
  border-bottom-color: var(--or);
}

.lb-nav-btns { margin-left: auto; display: flex; align-items: center; gap: var(--e2); flex-shrink: 0; }

.lb-lang {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: var(--e3);
  padding-left: var(--e3);
  border-left: 1px solid rgba(44, 74, 62, .2);
}
.lb-lang-a {
  display: inline-flex;
  align-items: center;
  gap: var(--e1);
  padding: 5px var(--e2);
  border: 1px solid transparent;
  border-radius: var(--rayon);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--encre-douce);
  transition: all var(--transition);
}
.lb-lang-a:hover,
.lb-lang-a.lb-lang-cur {
  color: var(--vert-profond);
  border-color: rgba(200, 147, 42, .45);
  background: rgba(200, 147, 42, .1);
}

.lb-ham {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: var(--e2);
  margin-left: var(--e2);
  cursor: pointer;
}
.lb-ham span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--vert-profond);
  transition: transform var(--transition), opacity var(--transition);
}
.lb-ham[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.lb-ham[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.lb-ham[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Barre d'administration WordPress */
.admin-bar #lb-nav { top: 32px; }
.admin-bar .lb-wrap { padding-top: calc(var(--nav-h) + 32px); }
@media screen and (max-width: 782px) {
  .admin-bar #lb-nav { top: 46px; }
  .admin-bar .lb-wrap { padding-top: calc(var(--nav-h) + 46px); }
}

/* --- Menu mobile --- */
.lb-mob {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99998;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--e5);
  background: rgba(245, 240, 224, .985);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.lb-mob.open { display: flex; }
.lb-mob a {
  font-family: var(--titre);
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  font-weight: 300;
  color: var(--vert-profond);
  letter-spacing: .02em;
}
.lb-mob a:hover, .lb-mob a:focus-visible { color: var(--or-texte); }
.lb-mob-x {
  position: absolute;
  top: var(--e4);
  right: var(--e5);
  background: none;
  border: 0;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--vert-profond);
  cursor: pointer;
  padding: var(--e2);
}


/* ===== 7. BARRE DE RÉSERVATION MOBILE =====================================
   Visible sous 900 px uniquement, et jamais sur la page de réservation.
   ========================================================================= */

#lb-sticky-cta {
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  z-index: 9990;
  background: var(--vert-profond);
  padding: var(--e3) var(--e4) calc(var(--e3) + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -2px 18px rgba(30, 51, 41, .28);
  transform: translateY(100%);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}
#lb-sticky-cta.lb-visible { transform: translateY(0); opacity: 1; }

.lb-sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--e4);
  max-width: 560px;
  margin-inline: auto;
}
.lb-sticky-prix {
  display: block;
  font-size: var(--t-petit);
  color: rgba(245, 240, 224, .85);
  line-height: 1.3;
}
.lb-sticky-prix strong { font-size: var(--t-base); color: var(--ivoire); font-weight: 600; }
.lb-sticky-note {
  display: block;
  font-size: var(--t-micro);
  color: var(--or-clair);
  line-height: 1.3;
}

@media (max-width: 900px) {
  #lb-sticky-cta { display: block; }
  body.lb-page { padding-bottom: 76px; }
}


/* ===== 8. BOUTONS =========================================================
   Deux niveaux seulement : plein pour l'action principale, contour pour le
   reste. La version 1 avait trois classes dont deux identiques, et une règle
   :hover déclarée deux fois qui s'annulait — c'est corrigé ici.
   ========================================================================= */

.lb-btn,
.lb-btn-g,
.lb-btn-o,
.lb-nb,
.lb-sticky-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--e2);
  font-family: var(--texte);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: var(--rayon);
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition),
              color var(--transition), transform var(--transition);
}

.lb-btn, .lb-btn-g, .lb-btn-o { padding: 14px var(--e6); min-height: 46px; }
.lb-nb                        { padding: 9px var(--e4); min-height: 36px; }
.lb-sticky-btn                { padding: 13px var(--e5); min-height: 46px; }

/* Action principale */
.lb-btn,
.lb-btn-g,
.lb-nb-d,
.lb-sticky-btn {
  background: var(--or-texte);
  color: var(--blanc);
  border: 1px solid var(--or-texte);
}
.lb-btn:hover,
.lb-btn-g:hover,
.lb-nb-d:hover,
.lb-sticky-btn:hover {
  background: #6f520f;
  border-color: #6f520f;
  color: var(--blanc);
  transform: translateY(-1px);
}

/* Action secondaire */
.lb-btn--contour,
.lb-btn-o {
  background: transparent;
  color: var(--or-texte);
  border: 1px solid var(--or);
}
.lb-btn--contour:hover,
.lb-btn-o:hover {
  background: rgba(200, 147, 42, .12);
  border-color: var(--or-texte);
  color: var(--or-texte);
}

/* Sur fond sombre, le doré clair reprend la main */
.lb-section--sombre .lb-btn--contour,
.lb-slider .lb-btn-o {
  color: var(--or-clair);
  border-color: rgba(232, 184, 75, .6);
}
.lb-section--sombre .lb-btn--contour:hover,
.lb-slider .lb-btn-o:hover {
  background: rgba(232, 184, 75, .16);
  border-color: var(--or-clair);
}

.lb-btn[disabled], .lb-btn-g[disabled] { opacity: .5; cursor: not-allowed; transform: none; }


/* ===== 9. PIED DE PAGE ==================================================== */

.lb-footer {
  background: var(--vert-profond);
  color: rgba(245, 240, 224, .78);
  padding: var(--e8) var(--e5) var(--e5);
  font-size: var(--t-petit);
}

.lb-fg {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--e7);
  width: min(100%, var(--largeur));
  margin-inline: auto;
}

.lb-ft {
  font-family: var(--titre);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--ivoire);
  margin-bottom: var(--e3);
  letter-spacing: .02em;
}

.lb-fnav {
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--or-clair);
  margin-bottom: var(--e3);
}

.lb-footer a {
  display: block;
  padding: 3px 0;
  color: rgba(245, 240, 224, .78);
  transition: color var(--transition);
}
.lb-footer a:hover { color: var(--or-clair); }

.lb-footer .lb-lang { border-left: 0; margin: 0; padding: 0; }
.lb-footer .lb-lang-a { color: rgba(245, 240, 224, .7); }
.lb-footer .lb-lang-a:hover,
.lb-footer .lb-lang-a.lb-lang-cur {
  color: var(--ivoire);
  background: rgba(232, 184, 75, .14);
  border-color: rgba(232, 184, 75, .45);
}

.lb-f-officiels {
  border-top: 1px solid rgba(200, 147, 42, .18);
  margin-top: var(--e6);
  padding-top: var(--e5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--e4);
}
.lb-f-officiels a { display: inline-block; font-size: var(--t-petit); color: rgba(245, 240, 224, .62); }
.lb-f-officiels a:hover { color: var(--or-clair); }

.lb-fb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e3);
  justify-content: space-between;
  align-items: center;
  width: min(100%, var(--largeur));
  margin: var(--e6) auto 0;
  padding-top: var(--e4);
  border-top: 1px solid rgba(200, 147, 42, .15);
  font-size: var(--t-micro);
  color: rgba(245, 240, 224, .6);
}


/* ===== 10. ACCESSIBILITÉ ET PRÉFÉRENCES SYSTÈME =========================== */

.lb-saut {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  background: var(--vert-profond);
  color: var(--ivoire);
  padding: var(--e3) var(--e4);
  border-radius: 0 0 var(--rayon) 0;
}
.lb-saut:focus { left: 0; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--or-texte);
  outline-offset: 3px;
  border-radius: var(--rayon);
}
.lb-section--sombre :focus-visible,
.lb-footer :focus-visible,
#lb-sticky-cta :focus-visible { outline-color: var(--or-clair); }

.lb-vh {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  #lb-sticky-cta { transition: none; }
}

@media (prefers-contrast: more) {
  :root { --encre-douce: #3c3c30; }
  .lb-nav-links a { color: var(--vert-profond); }
}


/* ===== 11. RESPONSIVE ===================================================== */

@media (max-width: 1080px) {
  .lb-nav-links a { padding-inline: var(--e3); }
  .lb-brand { margin-right: var(--e4); }
}

@media (max-width: 900px) {
  :root { --nav-h: 58px; }
  #lb-nav { padding-inline: var(--e4); }
  .lb-nav-links { display: none; }
  .lb-ham { display: flex; }
  .lb-brand-sub { display: none; }
  .lb-logo { height: 38px; }
  .lb-section { padding-block: var(--e8); }
  .lb-fg { grid-template-columns: 1fr; gap: var(--e6); }
  .lb-fb { justify-content: center; text-align: center; }
}

@media (max-width: 600px) {
  .lb-conteneur { width: calc(100% - 2 * var(--e4)); }
  .lb-nav-btns .lb-nb { display: none; }   /* la barre basse porte l'action */
  .lb-section { padding-block: var(--e7); }
}


/* ===== 12. IMPRESSION ===================================================== */

@media print {
  #lb-nav, .lb-mob, #lb-sticky-cta, .lb-car, .lb-ham { display: none !important; }
  .lb-wrap { padding-top: 0; }
  body.lb-page { background: #fff; color: #000; font-size: 11pt; }
  .lb-footer { background: none; color: #000; border-top: 1px solid #999; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
