/* Chezmonmasso — feuille de style unique.
   Concept : une page de soin claire et calme, colonne de lecture étroite,
   vert sauge pour l'action, argile (couleur de La Muse) en touche secondaire. */
:root {
  --papier: #f4f6f3;
  --surface: #ffffff;
  --encre: #1b2523;
  --doux: #52605b;
  --trait: #d8dfda;
  --sauge: #2d5b4e;
  --sauge-encre: #ffffff;
  --sauge-pale: #e2ebe6;
  --argile: #8f6c53;
  --f-titre: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-texte: "Atkinson Hyperlegible", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mesure: 42rem;
  --large: 70rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --papier: #111816; --surface: #19221f; --encre: #e6ece9; --doux: #a2b1ab; --trait: #2b3733;
    --sauge: #86c2ae; --sauge-encre: #0f1a17; --sauge-pale: #1d2d28; --argile: #d0ab8f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --papier: #111816; --surface: #19221f; --encre: #e6ece9; --doux: #a2b1ab; --trait: #2b3733;
  --sauge: #86c2ae; --sauge-encre: #0f1a17; --sauge-pale: #1d2d28; --argile: #d0ab8f;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--papier); color: var(--encre);
  font-family: var(--f-texte); font-size: 1.0625rem; line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--sauge); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--argile); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--f-titre); line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.75rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }

.evitement { position: absolute; left: -999px; top: 0; }
.evitement:focus { left: 16px; background: var(--surface); padding: 0.5rem 1rem; z-index: 10; }

/* En-tête */
.entete {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: color-mix(in srgb, var(--papier) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--trait);
}
.entete-int {
  max-width: var(--large); margin: 0 auto; padding: 0.75rem 16px;
  display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap;
}
.marque { display: flex; flex-direction: column; text-decoration: none; color: var(--encre); margin-right: auto; }
.marque-nom { font-family: var(--f-titre); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.marque-sous { font-size: 0.75rem; color: var(--doux); letter-spacing: 0.04em; }
.menu { display: flex; gap: 0.25rem 1.1rem; flex-wrap: wrap; font-size: 0.95rem; }
.menu a { color: var(--encre); text-decoration: none; padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a[aria-current="page"] { border-bottom-color: var(--sauge); }
@media (max-width: 760px) {
  .menu { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.25rem; }
  .menu a { white-space: nowrap; }
}

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  background: var(--sauge); color: var(--sauge-encre); text-decoration: none; font-weight: 700;
  padding: 0.7rem 1.25rem; border-radius: 999px; border: 2px solid var(--sauge); font-size: 0.98rem;
}
.bouton:hover { filter: brightness(1.08); text-decoration: none; }
.bouton-second { background: transparent; color: var(--sauge); }
.bouton-entete { padding: 0.45rem 1rem; font-size: 0.9rem; }

/* Contenu */
.principal { max-width: var(--large); margin: 0 auto; padding-inline: 16px; padding-block: 0 3rem; }
.hero, .tete-page { max-width: 52rem; padding-block: clamp(2.5rem, 6vw, 4.5rem) 1.5rem; }
.surtitre {
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--argile);
  font-weight: 700; margin: 0 0 0.9rem;
}
.chapeau { font-size: 1.2rem; color: var(--doux); max-width: 38rem; margin: 1rem 0 0; }
.auteur { margin: 1rem 0 0; font-size: 0.9rem; color: var(--doux); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.zones { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.zones li {
  font-size: 0.85rem; padding: 0.3rem 0.75rem; border: 1px solid var(--trait);
  border-radius: 999px; color: var(--doux); background: var(--surface);
}

.texte { max-width: var(--mesure); display: flex; flex-direction: column; gap: 1rem; }
.texte > * { margin: 0; }
.texte h2 { margin-top: 1.5rem; }
.texte h3 { margin-top: 0.75rem; }
.texte ul, .texte ol { padding-left: 1.3rem; display: flex; flex-direction: column; gap: 0.35rem; }
.texte li::marker { color: var(--argile); }

.en-bref {
  background: var(--sauge-pale); border-radius: 12px; padding: 1.1rem 1.25rem;
}
.en-bref p { margin: 0; }
.en-bref .etiquette, .etiquette {
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--sauge);
  margin-bottom: 0.35rem; display: block;
}

.carte-video {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--trait);
  border-radius: 12px; background: var(--surface); text-decoration: none; color: var(--encre);
}
.lecture {
  flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--sauge); position: relative;
}
.lecture::after {
  content: ""; position: absolute; left: 1.1rem; top: 0.85rem;
  border-left: 0.8rem solid var(--sauge-encre); border-top: 0.55rem solid transparent; border-bottom: 0.55rem solid transparent;
}
.titre-video { font-weight: 700; }

.cta-rdv {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  border-top: 2px solid var(--sauge); border-bottom: 1px solid var(--trait);
  padding-block: 1.25rem; margin-top: 2.5rem; max-width: var(--mesure);
}
.texte .cta-rdv { margin-top: 1rem; }
.cta-rdv p { margin: 0; }
.cta-titre { font-family: var(--f-titre); font-weight: 700; font-size: 1.15rem; }
.cta-rdv > div:first-child p:last-child { color: var(--doux); font-size: 0.92rem; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.tel { font-size: 0.92rem; color: var(--doux); font-variant-numeric: tabular-nums; }

.reservation-cadre {
  border: 1px solid var(--trait); border-radius: 12px; overflow: hidden; background: #ffffff;
}
.reservation-cadre iframe { display: block; width: 100%; height: 900px; border: 0; }
.reservation-secours { font-size: 0.9rem; color: var(--doux); }

/* Listes de cartes */
.liste { margin-top: 3rem; }
.liste h2 { margin-bottom: 1.25rem; }
.cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.carte {
  display: flex; flex-direction: column; gap: 0.5rem; padding: 1.25rem; min-width: 0;
  background: var(--surface); border: 1px solid var(--trait); border-radius: 12px;
  text-decoration: none; color: var(--encre); transition: border-color 0.15s;
}
.carte:hover { border-color: var(--sauge); }
.carte-titre { font-family: var(--f-titre); font-weight: 700; font-size: 1.1rem; line-height: 1.25; }
.carte-texte { color: var(--doux); font-size: 0.95rem; flex: 1; }
.carte-lire { font-size: 0.85rem; font-weight: 700; color: var(--sauge); }
.carte-lire::after { content: " →"; }

/* Pied de page */
.pied { border-top: 1px solid var(--trait); background: var(--surface); margin-top: 2rem; }
.pied-int {
  max-width: var(--large); margin: 0 auto; padding: 2.5rem 16px 1.5rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1.5rem 2rem;
  font-size: 0.93rem; color: var(--doux);
}
.pied-col p { margin: 0 0 0.6rem; }
.pied-titre { font-family: var(--f-titre); font-weight: 700; color: var(--encre); font-size: 1rem; }
.pied-reseaux { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.pied-bas { max-width: var(--large); margin: 0 auto; padding: 0 16px 2rem; font-size: 0.82rem; color: var(--doux); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
