/* ════════════════════════════════════════════════════════
   Domaine de la Boissière — shared styles
   DA v2 · 2026 · Newsreader + Manrope
   ════════════════════════════════════════════════════════ */

/* Polices chargees via <link rel=preconnect>+<link> dans le <head> :
   l'@import serialisait CSS -> police et bloquait le rendu. */

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

:root {
  --ivoire   : #F4EFE7;
  --ivoire-l : #FBF9F5;
  --ivoire-d : #E8E1D6;
  --vert     : #2F3E36;
  --vert-m   : #3B4B42;
  --rose     : #C98B8B;
  --or       : #B08D57;
  --celadon  : #82A493;
  --encre    : #23211E;
  --muted    : #7A736A;
  --muted-l  : #B9B0A2;
  --rule     : #E8E1D6;
  --rule-d   : #D9D1C4;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  background: var(--ivoire);
  color: var(--encre);
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

a { color: inherit; text-decoration: none; cursor: none; }
img { display: block; max-width: 100%; }

/* ── CUSTOM CURSOR ── */
#cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--celadon);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease, width 0.25s ease, height 0.25s ease, opacity 0.25s ease;
  mix-blend-mode: multiply;
}
#cursor.big {
  width: 40px;
  height: 40px;
  opacity: 0.45;
}
#cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid var(--celadon);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.35s ease, width 0.35s ease, height 0.35s ease, opacity 0.35s ease;
  opacity: 0.5;
}
#cursor-ring.big {
  width: 64px;
  height: 64px;
  opacity: 0.2;
}

/* ── TYPOGRAPHY ── */
.nr         { font-family: 'Newsreader', serif; }
.nr-light   { font-family: 'Newsreader', serif; font-weight: 300; }
.nr-italic  { font-family: 'Newsreader', serif; font-style: italic; }

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--celadon);
  margin-bottom: 14px;
}

/* ── PILLS / BADGES ── */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
}
.pill-dark    { background: var(--vert);  color: var(--ivoire); }
.pill-rose    { background: var(--rose);  color: var(--encre); }
.pill-outline { border: 1px solid var(--encre); color: var(--encre); }
.pill-lg      { padding: 13px 26px; font-size: 11px; letter-spacing: 0.15em; }

/* ── HEADER ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  /* Transparent en haut de page, opaque une fois qu'on défile.
     Jamais de fond translucide : par-dessus une photo ou un fond
     sombre, ça donnait une barre blanchâtre illisible.
     Aucun blur — règle absolue du projet. */
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.45s ease, border-color 0.45s ease;
}
header.scrolled {
  background: var(--ivoire);
  border-bottom-color: var(--rule);
}

.h-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.h-logo { height: 44px; width: auto; }

.h-nav {
  display: flex;
  gap: 28px;
  list-style: none;
  position: relative;
}
.h-nav > li { position: relative; }
.h-nav > li > a {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--encre);
  opacity: 0.6;
  transition: opacity 0.2s;
  padding: 4px 0;
  display: block;
}
.h-nav > li > a:hover,
.h-nav > li > a.active { opacity: 1; }

/* dropdown */
.h-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--ivoire-l);
  border: 1px solid var(--rule);
  min-width: 200px;
  padding: 8px 0;
  padding-top: 20px;
  z-index: 100;
}
.h-nav > li:hover .dropdown { display: block; }
.h-nav .dropdown a {
  display: block;
  padding: 9px 20px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--encre);
  opacity: 0.6;
  transition: opacity 0.2s;
}
.h-nav .dropdown a:hover { opacity: 1; background: var(--rule); }

.h-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
/* sélecteur de langue : la langue courante en plein, l'autre cliquable */
.h-cta {
  background: var(--vert);
  color: var(--ivoire);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  transition: opacity 0.2s;
}
.h-cta:hover { opacity: 0.82; }

/* ── MAIN OFFSET ── */
main { padding-top: 72px; }

/* ── MAX WIDTH WRAPPER ── */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── SCROLL REVEAL ── */
[data-fade] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(.22,.68,0,1.2), transform 0.75s cubic-bezier(.22,.68,0,1.2);
}
[data-fade].visible { opacity: 1; transform: none; }
[data-fade="delay"] { transition-delay: 0.15s; }
[data-fade="delay2"] { transition-delay: 0.3s; }

/* ── INNER PAGE HERO ── */
.page-hero {
  padding: 80px 40px 64px;
  max-width: 1280px;
  margin: 0 auto;
  border-bottom: 1px solid var(--rule);
}
.page-hero h1 {
  font-family: 'Newsreader', serif;
  font-size: 72px;
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.page-hero .sub {
  font-size: 17px;
  line-height: 1.65;
  color: #4A463F;
  max-width: 560px;
}

/* ── 2-COL SECTIONS (inner pages) ── */
.g-66-33, .g-33-66 {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 40px;
  display: grid;
  gap: 64px;
  align-items: center;
}
.g-66-33 { grid-template-columns: 1.6fr 1fr; }
.g-33-66 { grid-template-columns: 1fr 1.6fr; }

.col-ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-tall { aspect-ratio: 3/4; object-fit: cover; width: 100%; }

.col-tx { display: flex; flex-direction: column; gap: 18px; }
.col-tx p { font-size: 15px; line-height: 1.7; color: #4A463F; }
.col-tx p:first-of-type { color: var(--encre); }
.sc-link {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid var(--encre);
  color: var(--encre);
  transition: opacity 0.2s;
  margin-top: 8px;
}
.sc-link:hover { opacity: 0.5; }

/* ── NEWSLETTER ── */
.newsletter {
  background: var(--vert);
  color: var(--ivoire);
  padding: 72px 40px;
  text-align: center;
}
.nl-eyebrow { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; color: var(--celadon); margin-bottom: 16px; }
.nl-title { font-family: 'Newsreader', serif; font-size: 36px; font-weight: 300; margin-bottom: 10px; }
.nl-sub { font-size: 14px; color: var(--muted-l); margin-bottom: 28px; }
.nl-form { display: flex; justify-content: center; gap: 0; max-width: 440px; margin: 0 auto; }
.nl-form input {
  flex: 1;
  padding: 13px 18px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: var(--encre);
  background: var(--ivoire-l);
  border: none;
  outline: none;
}
.nl-form input::placeholder { color: var(--muted); }
.nl-form button {
  padding: 13px 22px;
  background: var(--celadon);
  color: var(--ivoire);
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: none;
  transition: opacity 0.2s;
}
.nl-form button:hover { opacity: 0.82; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--rule);
  padding: 28px 40px;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  gap: 24px;
}
footer a { border-bottom: 1px solid var(--rule-d); transition: color 0.2s; }
footer a:hover { color: var(--encre); }

/* ── RESERVATION PAGE ── */
.res-section { max-width: 860px; margin: 0 auto; padding: 64px 40px; }
.res-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.res-group label { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.res-group input,
.res-group select,
.res-group textarea {
  padding: 13px 16px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: var(--encre);
  background: var(--ivoire-l);
  border: 1px solid var(--rule-d);
  outline: none;
  transition: border-color 0.2s;
}
.res-group input:focus,
.res-group select:focus,
.res-group textarea:focus { border-color: var(--celadon); }
.res-submit {
  background: var(--vert);
  color: var(--ivoire);
  border: none;
  padding: 15px 32px;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: none;
  transition: opacity 0.2s;
}
.res-submit:hover { opacity: 0.82; }

/* ── ARTICLE CARDS (blog) ── */
.article-card { display: flex; flex-direction: column; gap: 12px; }
.article-card img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.article-card h3 { font-family: 'Newsreader', serif; font-size: 22px; font-weight: 300; line-height: 1.2; }
.article-card p { font-size: 14px; color: var(--muted); }

/* ════════════════════════════════════════════════════════
   MENU MOBILE
   Le header de bureau ne tient pas sous ~900 px : la nav
   seule mesure 395 px, plus le logo et le bouton Réserver.
   Sous ce seuil, la nav cède la place à un bouton qui ouvre
   un panneau plein écran. Le bouton Réserver reste visible :
   c'est celui qui rapporte.
   ════════════════════════════════════════════════════════ */

.h-burger { display: none; }

@media (max-width: 900px) {
  .h-inner { padding: 0 22px; gap: 14px; }
  .h-nav { display: none !important; }
  .h-logo { height: 32px; }
  .h-right { gap: 12px; align-items: center; }
  /* le sélecteur de langue était illisible sur photo : il vit
     désormais dans le menu, où il a la place d'être lu */
  .h-cta { font-size: 9px; padding: 9px 15px; letter-spacing: 0.14em; }

  .h-burger {
    display: flex; flex-direction: column; justify-content: center;
    gap: 5px; width: 30px; height: 30px; padding: 0; margin: 0;
    background: none; border: 0; cursor: pointer; color: inherit;
    -webkit-tap-highlight-color: transparent;
  }
  .h-burger span {
    display: block; width: 24px; height: 1.5px; background: currentColor;
    transition: transform 0.4s cubic-bezier(.77,0,.18,1), opacity 0.25s;
  }
  .h-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .h-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .h-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* ── panneau plein écran ── */
.m-menu {
  position: fixed; inset: 0; z-index: 900;
  background: var(--vert);
  display: flex; flex-direction: column; justify-content: center;
  padding: 96px 32px 48px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s;
}
.m-menu.open { opacity: 1; visibility: visible; }
.m-menu a {
  font-family: 'Newsreader', serif; font-weight: 300;
  font-size: clamp(30px, 9vw, 42px); line-height: 1.18;
  color: var(--ivoire); letter-spacing: -0.02em;
  padding: 7px 0; border: none;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.22,.68,0,1.1);
}
.m-menu.open a { opacity: 1; transform: none; }
.m-menu a.m-active { color: var(--rose); }
.m-menu .m-sep {
  height: 1px; background: rgba(244,239,231,0.14);
  margin: 26px 0 22px; width: 56px;
}
.m-menu .m-small {
  font-family: 'Manrope', sans-serif; font-size: 12px;
  letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700;
  color: rgba(244,239,231,0.55); padding: 5px 0;
  display: inline-block; margin-right: 20px;   /* FR et EN sur une ligne */
}
.m-menu .m-small.m-active { color: var(--rose); }
body.m-lock { overflow: hidden; }

/* Sous 900 px la barre légale tombe sur le texte des panneaux.
   Les liens sont repris dans le menu mobile par shared.js. */
@media (max-width: 900px) {
  .legal-bar { display: none; }
}

/* liens légaux au pied du menu mobile */
.m-menu .m-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.m-menu .m-legal a {
  font-family: 'Manrope', sans-serif; font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  color: rgba(244,239,231,0.38); padding: 3px 0;
}
.m-menu .m-sep2 { margin: 20px 0 16px; }

/* ── iOS : le contenu passe sous la barre du navigateur ──
   Les panneaux couvrent toute la hauteur (100lvh) pour que la photo
   aille d'un bord à l'autre ; le texte, lui, se recule pour rester
   au-dessus de la barre de Safari et de l'indicateur d'accueil. */
@media (max-width: 900px) {
  .opening-content, .slide-content {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
}

/* filet : si une bande résiduelle apparaît, elle est vert foncé
   et non crème — invisible au lieu d'être laide */
html { background: var(--vert); }

/* ── SÉLECTEUR DE LANGUE ──
   11px au lieu de 10, la langue courante en plein et l'autre
   nettement détachée : à 10px sur photo, l'ensemble se lisait mal. */

/* ── SÉLECTEUR DE LANGUE ──
   La couleur de base était à 50 % d'opacité ET le lien inactif en
   ajoutait 50 % : 25 % au total, illisible sur photo. Pleine couleur
   désormais, l'inactif à 65 %, et une ombre portée pour tenir sur
   les fonds clairs. */
.h-lang {
  color: var(--encre);
  font-size: 11px; letter-spacing: 0.1em; font-weight: 700;
  
}
.h-lang .on { opacity: 1; }
.h-lang a {
  color: inherit; opacity: 0.65; border: none;
  padding-bottom: 2px; border-bottom: 1px solid transparent;
  transition: opacity 0.3s, border-color 0.3s;
}
.h-lang a:hover { opacity: 1; border-bottom-color: currentColor; }

/* sur l'accueil le header est posé sur une photo : pleine lumière */
header:not(.scrolled) .h-lang { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }

@media (max-width: 900px) { .h-lang { display: none; } }

/* ── AUCUNE BANDE CLAIRE SOUS LES PANNEAUX ──
   Le site est fait de panneaux en position fixed. Sur iOS, la barre
   de Safari décale toujours légèrement la zone visible : le moindre
   pixel non couvert laissait voir le fond crème du body. En vert
   foncé, ce décalage devient invisible. */
html, body { background: #2F3E36 !important; }

/* ── BARRE DU MENU : logo à gauche, croix à droite ──
   Le panneau est autonome : il ne dépend plus du header qui se
   trouve dessous. */
.m-menu { padding-top: 96px; }
.m-top {
  position: absolute; top: 0; left: 0; right: 0; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px;
}
/* le lien du logo ne doit pas hériter du grand style des entrées du menu */
.m-top a {
  font-size: 0; padding: 0; border: none;
  opacity: 1 !important; transform: none !important; transition: none;
}
.m-top .m-logo { height: 30px; width: auto; filter: brightness(0) invert(1); display: block; }
.m-close {
  width: 34px; height: 34px; padding: 0; margin: 0; position: relative;
  background: none; border: 0; cursor: pointer; color: var(--ivoire);
  -webkit-tap-highlight-color: transparent;
}
.m-close span {
  position: absolute; left: 5px; top: 16px;
  width: 24px; height: 1.5px; background: currentColor;
  transition: transform 0.3s;
}
.m-close span:first-child { transform: rotate(45deg); }
.m-close span:last-child  { transform: rotate(-45deg); }
.m-close:hover span:first-child { transform: rotate(45deg) scaleX(1.12); }
.m-close:hover span:last-child  { transform: rotate(-45deg) scaleX(1.12); }

/* ════════════════════════════════════════════════════════
   PIED DE PAGE SUR FOND VERT  (page réserver)
   Cette page défile vraiment : elle a un vrai pied de page
   plutôt qu'une barre flottante par-dessus le formulaire.
   Elle ne charge que shared.css, d'où ces règles ici.
   ════════════════════════════════════════════════════════ */
body.vert footer {
  border-top: 1px solid rgba(244,239,231,0.12);
  background: var(--vert);
  max-width: none; margin: 0;
  padding: 34px 64px calc(34px + env(safe-area-inset-bottom, 0px));
  color: rgba(244,239,231,0.42);
  flex-wrap: wrap;
}
body.vert footer a { color: rgba(244,239,231,0.55); border-bottom-color: rgba(244,239,231,0.2); }
body.vert footer a:hover { color: var(--ivoire); }
.f-legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* Pages à fond sombre : le header est vert en permanence.
   Pas de transition ni de dépendance à la classe .scrolled — le
   dégradé transparent → vert restait bloqué à 4 % d'opacité et
   laissait le contenu défiler en travers du menu. */
body.vert header,
body.vert header.scrolled {
  background: var(--vert);
  border-bottom: 1px solid rgba(244,239,231,0.10);
  transition: none;
}
/* et texte clair en permanence : sur fond vert, l'encre est illisible */
body.vert header .h-nav > li > a,
body.vert header .h-lang,
body.vert header .h-lang a { color: var(--ivoire); }
body.vert header .h-burger span { background: var(--ivoire); }

@media (max-width: 900px) {
  body.vert footer {
    padding: 28px 22px calc(28px + env(safe-area-inset-bottom, 0px));
    flex-direction: column; align-items: flex-start; gap: 14px;
    font-size: 10px;
  }
  .f-legal { gap: 6px 16px; }
}
