/* Socle commun des prototypes de héros — Sonia Locatelli.
   Palette retenue (export du 09/11/2026) et typographies de la slide 30 du profil. */

@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-latin-wght-italic.woff2") format("woff2"); font-weight: 100 1000; font-style: italic; font-display: swap; }

:root {
  --kaki: #6F7448;
  --kaki-texte: #575C33;      /* kaki assombri pour les petits textes sur lin (contraste AA) */
  --rouille: #B44A1D;
  --magenta: #BE0EAF;
  --lin: #F6F2EA;
  --encre: #2C2E22;
  --papier: #FBF9F4;
  --kaki-voile: color-mix(in srgb, var(--kaki) 12%, var(--lin));
  --rouille-voile: color-mix(in srgb, var(--rouille) 10%, var(--lin));
  --trait: color-mix(in srgb, var(--encre) 16%, var(--lin));
  --doux: color-mix(in srgb, var(--encre) 78%, var(--lin));
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", "Segoe UI", Arial, sans-serif;
  --gouttiere: clamp(20px, 5vw, 72px);
  --largeur: 1320px;
  --entete: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--lin); color: var(--encre); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 4px; border-radius: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ——— Barre de prototype (outil de revue, ne fait pas partie du design) ——— */
.proto-bar { position: relative; z-index: 60; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; padding: 8px var(--gouttiere); background: #1f201a; color: #e9e5dc; font-size: 13px; line-height: 1.4; }
.proto-bar a { color: #e9e5dc; text-decoration: none; }
.proto-bar a:hover { text-decoration: underline; }
.proto-bar .proto-nav { display: flex; gap: 16px; align-items: center; }
.proto-bar strong { font-weight: 600; }
.proto-bar label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.proto-bar input { accent-color: var(--magenta); }

/* ——— En-tête : logo à gauche, menu court juste après, RDV à droite (slide 32) ——— */
.entete { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--lin) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--trait); }
.entete-inner { max-width: var(--largeur); margin: 0 auto; height: var(--entete); display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); padding: 0 var(--gouttiere); }
.logo { flex-shrink: 0; display: block; }
.logo img { height: 50px; width: auto; }
.menu { display: flex; gap: clamp(16px, 2vw, 30px); font-size: 15px; font-weight: 500; }
.menu a { text-decoration: none; position: relative; padding: 6px 0; }
.menu a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 1.5px; background: var(--rouille); transition: right .25s ease; }
.menu a:hover::after { right: 0; }
.entete-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.tel { font-size: 15px; text-decoration: none; color: var(--doux); white-space: nowrap; }
.menu-toggle { display: none; border: 1px solid var(--trait); background: transparent; border-radius: 999px; padding: 8px 14px; font-size: 15px; color: var(--encre); }

/* ——— Boutons ——— */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 13px 22px; border-radius: 999px; font-size: 16px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; white-space: nowrap; transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease; }
.btn-rdv { background: var(--magenta); color: #fff; }
.btn-rdv:hover { transform: translateY(-1px); box-shadow: 0 6px 18px color-mix(in srgb, var(--magenta) 25%, transparent); }
.btn-ligne { border-color: var(--encre); color: var(--encre); background: transparent; }
.btn-ligne:hover { background: var(--encre); color: var(--lin); }
.btn small { font-weight: 400; opacity: .85; font-size: 14px; }
.fleche { font-size: 1.15em; line-height: 1; }

/* ——— Éléments récurrents du héros ——— */
.hero { position: relative; overflow: clip; }
.hero-inner { position: relative; max-width: var(--largeur); margin: 0 auto; padding: clamp(36px, 5vw, 72px) var(--gouttiere); }
.surtitre { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--kaki-texte); }
.titre { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 2.6vw + 18px, 58px); line-height: 1.08; letter-spacing: -0.02em; }
.titre em { font-style: italic; color: var(--rouille); }
.chapo { font-size: clamp(17px, .4vw + 15px, 19px); line-height: 1.65; color: var(--doux); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.poles { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.poles li { font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--kaki-voile); color: var(--encre); }
.preuve { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--doux); }
.etoiles { color: var(--rouille); letter-spacing: 2px; font-size: 15px; }
.preuve strong { color: var(--encre); font-weight: 600; }

/* ——— Repère de pli : montre où commence la suite de la page ——— */
.suite { border-top: 1px solid var(--trait); padding: 18px var(--gouttiere); text-align: center; font-size: 14px; color: var(--doux); background: var(--papier); }

/* ——— Bandeau RDV figé sur mobile (slide 32 : « Prendre RDV » partout) ——— */
.rdv-fige { display: none; }

/* ——— Toile WebGL des ombres ——— */
.ombres { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: multiply; opacity: 0; transition: opacity 1.6s ease; }
.ombres.is-on { opacity: 1; }

@media (max-width: 1080px) {
  .menu, .tel { display: none; }
  .menu-toggle { display: inline-flex; }
  .entete.is-open .menu { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 4px; padding: 12px var(--gouttiere) 20px; background: var(--lin); border-bottom: 1px solid var(--trait); font-size: 17px; }
}
@media (max-width: 640px) {
  :root { --entete: 68px; }
  .logo img { height: 38px; }
  .entete-actions .btn-rdv { display: none; }
  .rdv-fige { display: flex; position: fixed; z-index: 70; left: 12px; right: 12px; bottom: 12px; justify-content: center; box-shadow: 0 8px 30px rgba(44, 46, 34, .22); }
  body { padding-bottom: 84px; }
  .proto-bar { font-size: 12px; gap: 6px 12px; }
  .proto-bar .proto-nav { gap: 12px; white-space: nowrap; }
  .proto-bar .proto-nav a[href="./"] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
