/* ══════════════════════════════════════════════════
   LA COMPAGNIE DU RÉTABLISSEMENT
   CDC V3 — Page d'accueil — styles.css
   Univers sketchnote / carnet d'explorateur
   ══════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --cerulean:    #009EE0;
  --flamboyant:  #FF6F00;
  --navy:        #253A6D;
  --astronaut:   #253A6D;
  --anthracite:  #2D2D2D;
  --cream:       #FAF8F4;
  --emeraude:    #10B981;
  --creme:       #FAF8F4;
  --hero-bg:     #F5F0E8;
  --miroir-bg:   #E8E0D0;
  --tarifs-bg:   #F3F1ED;
  --ink:         #2C2416;
  --ink-mid:     rgba(44,36,22,.65);
  --ink-light:   rgba(44,36,22,.55);
  --font-ms:     'Kalam', cursive;
  --font-struct: 'Space Grotesk', sans-serif;
  --font-body:   'Lexend', sans-serif;

  /* Lignes horizontales de cahier — à peine visibles */
  --paper-lines: repeating-linear-gradient(
    transparent, transparent 31px,
    rgba(140,110,75,.08) 31px, rgba(140,110,75,.08) 32px
  );

  /* Filtre encre sombre pour doodles sur fond navy */
  --filter-ink-on-dark: brightness(0) invert(1) opacity(.45);
  /* Filtre pour assombrir/saturer les doodles sur fond clair */
  --filter-ink:  drop-shadow(1px 2px 3px rgba(44,36,22,.18));
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--creme);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Accessibilité : masque visuel, garde le texte pour lecteurs d'écran ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Skip link ── */
.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 9999;
  background: var(--navy); color: #fff;
  padding: .5rem 1rem; border-radius: 4px;
  font-family: var(--font-struct); font-size: .875rem;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ── Annotation manuscrite — classe utilitaire ── */
.annot {
  font-family: var(--font-ms);
  font-size: .85rem;
  color: var(--flamboyant);
  position: absolute;
  pointer-events: none;
  line-height: 1.3;
  user-select: none;
}


/* ════════════════════════════════════════════════
   NAV
   ════════════════════════════════════════════════ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(245,240,232,.97);
  backdrop-filter: blur(8px);
  border-bottom: 2px dashed rgba(44,36,22,.2);
}
.nav {
  max-width: 1100px; margin: 0 auto;
  padding: .8rem 1.5rem;
  display: flex; align-items: center; gap: 2rem;
}
.nav__logo {
  font-family: var(--font-ms);
  font-size: 1.05rem; font-weight: 700;
  color: var(--cerulean); white-space: nowrap;
}
.nav__logo em { color: var(--flamboyant); font-style: normal; }
.nav__links { display: flex; gap: 1.75rem; margin-left: auto; }
.nav__link {
  font-family: var(--font-ms);
  font-size: .95rem; color: var(--navy);
  position: relative; padding-bottom: 3px;
  transition: color .2s;
}
.nav__link::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 100%;
  height: 2px; background: var(--flamboyant); border-radius: 99px;
  transition: right .25s ease;
}
.nav__link:hover { color: var(--flamboyant); }
.nav__link:hover::after, .nav__link--active::after { right: 0; }

.hamburger {
  display: none; flex-direction: column;
  gap: 5px; background: none; border: none;
  cursor: pointer; padding: .4rem; margin-left: auto;
}
.hamburger span {
  display: block; width: 26px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform .3s;
}
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--hero-bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2rem;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu ul { text-align: center; }
.mobile-menu li + li { margin-top: 1.75rem; }
.mobile-menu a { font-family: var(--font-ms); font-size: 1.6rem; color: var(--navy); }
.mobile-menu__close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none; border: none; font-size: 1.6rem;
  cursor: pointer; color: var(--navy);
}
.mobile-overlay {
  display: none; position: fixed; inset: 0; z-index: 199;
  background: rgba(0,0,0,.25);
}
.mobile-overlay.is-open { display: block; }


/* ════════════════════════════════════════════════
   SECTION 1 — HERO
   Carnet ouvert · papier ligné · Cyril + vrai chemin
   ════════════════════════════════════════════════ */
.hero {
  background-image:
    var(--paper-lines),
    radial-gradient(ellipse 55% 65% at 73% 88%, rgba(0,158,224,.11) 0%, transparent 68%),
    radial-gradient(ellipse 45% 50% at 18% 35%, rgba(255,111,0,.07) 0%, transparent 65%);
  background-color: var(--hero-bg);
  min-height: 100svh;
  padding: 6rem 1.5rem 10rem;
  position: relative; overflow: hidden;
  z-index: 0;
}

/* Marge rouge style carnet */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: clamp(3.5rem, 6.5vw, 7rem);
  bottom: 0; width: 1px;
  background: rgba(200,60,60,.16);
  pointer-events: none;
}

/* Tache café coin — quasi invisible */
.hero__cafe {
  position: absolute; top: 3%; right: 2%;
  width: clamp(160px, 20vw, 280px);
  opacity: .10;
  pointer-events: none;
  transform: rotate(12deg);
}

/* ═══════════════════════════════════════════════════════
   DOODLES — Vrais éléments sketchnote
   Principes : grande taille, opacité forte, placement
   intentionnel pour guider la lecture (flèches = direction,
   boussole = navigation, étoile = point fort, etc.)
   ═══════════════════════════════════════════════════════ */
.doodle { position: absolute; pointer-events: none; user-select: none; }

/* ── HERO ── */

/* Boussole : repère d'orientation, ancré coin haut-gauche
   → oriente vers le titre / la tagline */
.d-boussole {
  width: clamp(155px, 16vw, 215px); opacity: .88;
  top: 14%; left: 1.5%;
  transform: rotate(-16deg);
  filter: var(--filter-ink);
  z-index: 0;
}
/* Boussole secondaire : accent bas-droite */
.d-boussole2 {
  width: clamp(100px, 11vw, 148px); opacity: .80;
  bottom: 18%; right: 4%;
  transform: rotate(22deg);
  filter: var(--filter-ink);
  z-index: 0;
}
/* Étoile filante : élan, espoir — streake haut-droite
   → pointe vers Cyril / la zone visuelle */
.d-etoile {
  width: clamp(130px, 14vw, 190px); opacity: .86;
  top: 8%; right: 5%;
  transform: rotate(20deg);
  filter: var(--filter-ink);
  z-index: 0;
}
/* Étoile secondaire : accent milieu-gauche */
.d-etoile2 {
  width: clamp(85px, 9vw, 120px); opacity: .76;
  top: 46%; left: 1%;
  transform: rotate(-8deg);
  filter: var(--filter-ink);
  z-index: 0;
}
/* Flèche rapide : "par ici →"
   Bas-gauche pointant vers haut-droite → guide vers Cyril */
.d-fleche {
  width: clamp(130px, 14vw, 185px); opacity: .84;
  bottom: 28%; left: 2.5%;
  transform: rotate(-38deg);
  filter: var(--filter-ink);
  z-index: 0;
}
/* Flèche hésitante : chemin non-linéaire */
.d-fleche2 {
  width: clamp(110px, 11.5vw, 158px); opacity: .76;
  bottom: 10%; left: 10%;
  transform: rotate(-12deg) scaleX(-1);
  filter: var(--filter-ink);
  z-index: 0;
}
/* Swap desktop/mobile sur le hero déco */
.hero__deco--mobile { display: none; }
.hero__deco--desktop { display: block; }

/* Point d'interrogation manuscrit */
.d-question {
  font-family: var(--font-ms);
  font-size: clamp(3rem, 5.5vw, 4.8rem);
  font-weight: 700;
  color: var(--cerulean); opacity: .84;
  top: 53%; right: 3.5%;
  transform: rotate(-10deg);
  line-height: 1;
  text-shadow: 2px 3px 10px rgba(0,158,224,.30);
  z-index: 0;
}

/* Annotations manuscrites flottantes */
.hero__annot-titre {
  top: 78%; right: 13%;
  transform: rotate(-4deg);
  font-size: .90rem;
  color: var(--navy); opacity: .70;
}
.hero__annot-chemin {
  bottom: 2%; left: 48%;
  transform: rotate(-6deg);
  font-size: 1rem;
  color: var(--flamboyant); opacity: .75;
}

/* ── Composition hero ── */
.hero__inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center;  /* texte centré verticalement = plus haut */
  gap: clamp(2rem, 4vw, 5rem);
  position: relative; z-index: 1;
}
.hero__text { flex: 1; }

/* Logo brush script — fond crème effacé, taille naturelle */
.hero__logo {
  display: block;
  width: 100%;
  max-width: 520px;
  margin-bottom: 1.25rem;
  mix-blend-mode: multiply;   /* crème → transparent, texte bleu/orange → visible */
  /* Recadrer les marges blanches excessives */
  margin-left: -5%;
  width: calc(100% + 5%);
}

/* ── Tagline hero — accroche + présentation ── */
.hero__tagline {
  margin: 1.25rem 0 2rem;
  display: block;
}

/* Ligne d'accroche : grande, manuscrite, soulignée orange */
.hero__tagline-main {
  font-family: var(--font-ms);             /* Kalam */
  font-size: clamp(1.45rem, 2.8vw, 1.95rem);
  color: var(--navy);
  line-height: 1.2;
  position: relative;
  display: inline;
}

/* Corps du message — présentation du site */
.hero__tagline-body {
  font-family: var(--font-body);           /* Lexend */
  font-size: clamp(1.05rem, 1.8vw, 1.18rem);
  color: var(--ink-mid);
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 430px;
  border-left: 3px solid var(--cerulean);
  padding-left: .9rem;
  opacity: .9;
}

/* ── Légende Cyril — carte de présentation dans la zone visuelle ── */
.hero__cyril-card {
  position: absolute;
  bottom: 28px;
  left: -18px;                             /* dépasse légèrement à gauche */
  z-index: 3;
  background: white;
  border: 1.5px solid rgba(0,158,224,.28);
  border-radius: 8px;
  padding: .5rem .85rem .5rem .75rem;
  transform: rotate(-1.8deg);
  box-shadow:
    2px 4px 14px rgba(37,58,109,.14),
    0 1px 3px rgba(37,58,109,.08);
  display: flex;
  flex-direction: column;
  gap: .12rem;
  max-width: 180px;
}

.hero__cyril-card::before {               /* petit scotch en haut */
  content: '';
  position: absolute;
  top: -7px; left: 50%; transform: translateX(-50%);
  width: 32px; height: 10px;
  background: rgba(0,158,224,.2);
  border-radius: 2px;
  backdrop-filter: blur(2px);
}

.hero__cyril-name {
  font-family: var(--font-ms);
  font-size: .95rem;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.1;
}

.hero__cyril-role {
  font-family: var(--font-ms);
  font-size: .92rem;
  color: var(--cerulean);
  line-height: 1.2;
}

.hero__cyril-info {
  font-family: var(--font-ms);
  font-size: .90rem;
  color: var(--flamboyant);
  margin-top: .1rem;
  line-height: 1.2;
}

/* Illustration aquarelle — cercle deux personnes */
.hero__illus {
  display: block;
  width: 100%;
  max-width: 500px;
  mix-blend-mode: multiply;   /* fond crème effacé, aquarelle visible */
  filter: drop-shadow(0 6px 24px rgba(37,58,109,.15));
  border-radius: 4px;
}

/* ── Zone chemin + Cyril ── */
.hero__visual {
  flex-shrink: 0;
  width: clamp(280px, 38vw, 500px);
  height: clamp(500px, 70vh, 740px);
  position: relative;
}

/* ╔══════════════════════════════════════════════════╗
   ║  CERCLE ÉTOILES — chemin sinueux bleu/orange     ║
   ║  409x610 · RGBA transparent · bleu + orange      ║
   ╚══════════════════════════════════════════════════╝ */
.hero__chemin {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 120%;        /* Élargi pour bien voir les courbes */
  opacity: .90;
  z-index: 1;
  pointer-events: none;
  filter:
    drop-shadow(0 4px 20px rgba(0,158,224,.3))
    drop-shadow(0 2px 8px rgba(255,111,0,.2));
}

/* Cyril au premier plan, ancré au sol */
.hero__cyril {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 80%; z-index: 2;
  filter:
    drop-shadow(6px 16px 36px rgba(37,58,109,.3))
    drop-shadow(0 3px 10px rgba(37,58,109,.15));
}


/* ════════════════════════════════════════════════
   SECTION 2 — MIROIR
   Fond kraft · post-its · écoute
   ════════════════════════════════════════════════ */
.miroir {
  background-image:
    var(--paper-lines),
    radial-gradient(ellipse 70% 60% at 88% 75%, rgba(37,58,109,.09) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 8% 20%, rgba(255,111,0,.07) 0%, transparent 60%);
  background-color: var(--miroir-bg);
  /* Overlap : remonte de 130px sur le hero, arrondi haut pour l'effet "carte posée" */
  margin-top: -130px;
  border-radius: 28px 28px 0 0;
  padding: 3rem 1.5rem 3.5rem;
  position: relative; overflow: hidden;
  z-index: 1;
  box-shadow: 0 -8px 40px rgba(44,36,22,.12);
}
/* Séparateur haut tirets — décalé pour laisser place au border-radius */
.miroir::before {
  content: '';
  position: absolute; top: 16px; left: 5%; right: 5%; height: 2px;
  background: repeating-linear-gradient(
    90deg, transparent, transparent 7px,
    rgba(44,36,22,.18) 7px, rgba(44,36,22,.18) 13px
  );
  border-radius: 2px;
}

/* ── MIROIR ── */

/* Étoile : souligne le slogan principal en haut-droite */
.m-etoile {
  width: clamp(118px, 12vw, 165px); opacity: .88;
  top: 6%; right: 1.5%;
  transform: rotate(18deg);
  filter: var(--filter-ink);
}
/* Flèche qui revient : symbolise l'aller-retour écoute↔réponse */
.m-fleche {
  width: clamp(128px, 13vw, 178px); opacity: .84;
  bottom: 8%; left: 1%;
  transform: rotate(-15deg);
  filter: var(--filter-ink);
}

/* ── Grille 3 colonnes : post-its | Cyril | slogans ── */
.miroir__grid {
  display: grid;
  grid-template-columns: 1fr minmax(160px, 230px) 1fr;
  gap: clamp(1.5rem, 3vw, 3.5rem);
  align-items: center;
  max-width: 1100px;
  margin: 2rem auto 0;
  position: relative; z-index: 1;
}

.miroir__col { display: flex; flex-direction: column; gap: 1.5rem; }

/* ── Labels annotés au-dessus des colonnes ── */
.miroir__col-label {
  position: static; display: inline-block;
  font-size: .95rem; color: var(--navy);
  transform: rotate(-1.8deg);
  opacity: .82;
  margin-bottom: -.5rem;
  align-self: flex-start;
}
.miroir__col-label--droite {
  transform: rotate(1.5deg);
  color: var(--cerulean);
  align-self: flex-end;
}

/* ── Post-its ── */
.postit {
  position: relative;
  padding: 1.4rem 1.25rem 1.4rem 1.4rem;
  border-radius: 2px 3px 3px 2px;
  box-shadow:
    5px 8px 20px rgba(44,36,22,.18),
    0 2px 5px rgba(44,36,22,.08),
    inset 0 -2px 0 rgba(44,36,22,.06);
  transform: rotate(var(--rot));
  font-family: var(--font-ms);
  font-size: 1.12rem; line-height: 1.65; color: var(--ink);
  transition: transform .25s ease, box-shadow .25s ease;
  /* Guillemets : indentation suspendue pour éviter « seul en début de ligne */
  padding-left: 1.4rem;
}
.postit:hover {
  transform: rotate(var(--rot)) translateY(-4px) scale(1.02);
  box-shadow: 7px 14px 30px rgba(44,36,22,.25);
  z-index: 2;
}
.postit p {
  text-indent: -.52em;
  padding-left: .52em;
}

/* Scotch texturé */
.postit__scotch {
  display: block; position: absolute;
  top: -11px; left: 50%; transform: translateX(-50%);
  width: 46px; height: 17px;
  background: linear-gradient(180deg, rgba(228,222,195,.75) 0%, rgba(208,200,168,.6) 100%);
  border: 1px solid rgba(175,165,135,.45);
  border-radius: 2px;
  box-shadow: 0 2px 5px rgba(44,36,22,.10);
}
.postit__scotch::after {
  content: '';
  position: absolute; inset: 3px 5px;
  background: repeating-linear-gradient(
    90deg, transparent, transparent 3px,
    rgba(175,165,135,.3) 3px, rgba(175,165,135,.3) 4px
  );
}

/* Couleurs post-its — légèrement renforcées */
.postit--jaune  { background: #FEFADB; border-left: 4px solid #E8D84A; }
.postit--bleu   { background: #DCF2FD; border-left: 4px solid var(--cerulean); }
.postit--orange { background: #FEEEDF; border-left: 4px solid var(--flamboyant); }
.postit--vert   { background: #DCFAED; border-left: 4px solid var(--emeraude); }

/* ── Colonne centre — Cyril réflexion ── */
.miroir__col--cyril { align-items: center; position: relative; }
.miroir__cyril-wrap { position: relative; width: 100%; }
.miroir__pose {
  width: 100%;
  filter:
    drop-shadow(5px 16px 36px rgba(37,58,109,.26))
    drop-shadow(0 3px 12px rgba(37,58,109,.12));
}

/* Annotations flottantes autour de Cyril */
.miroir__annot-gauche,
.miroir__annot-droite {
  position: absolute;
  font-size: .92rem; color: var(--ink-mid);
}
.miroir__annot-gauche {
  left: -18px; top: 42%;
  transform: rotate(-6deg);
}
.miroir__annot-droite {
  right: -14px; top: 55%;
  transform: rotate(5deg);
  color: var(--cerulean);
}

/* ── Slogans — colonne droite ── */
.miroir__col--slogans { justify-content: center; }
.slogan {
  font-family: var(--font-ms);
  line-height: 1.6;
  /* Guillemets : indentation suspendue */
  text-indent: -.55em;
  padding-left: .55em;
}

.slogan--principal {
  font-size: clamp(1.22rem, 2.2vw, 1.48rem);
  font-weight: 700; color: var(--navy);
  border-left: 5px solid var(--flamboyant);
  padding: .8rem 1rem .8rem 1.4rem;
  background: linear-gradient(135deg, rgba(255,111,0,.06) 0%, rgba(255,111,0,.02) 100%);
  border-radius: 0 8px 8px 0;
  box-shadow: 3px 4px 14px rgba(255,111,0,.10);
  text-indent: 0; /* reset — le padding-left gère l'alignement */
}
.slogan--principal em {
  color: var(--flamboyant);
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: rgba(255,111,0,.45);
  text-underline-offset: 3px;
}

.slogan--secondaire {
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
  line-height: 1.72;
  color: var(--cerulean);
  font-style: italic;
  border-left: 4px solid var(--cerulean);
  padding: .85rem 1.1rem .85rem 1.35rem;
  background: rgba(0,158,224,.05);
  border-radius: 0 8px 8px 0;
  box-shadow: 3px 4px 14px rgba(0,158,224,.09);
  text-indent: 0;
}


/* ════════════════════════════════════════════════
   SECTION 3 — PROCESSUS
   Fond navy · bannière pleine largeur · texte overlay
   ════════════════════════════════════════════════ */
.processus {
  background: var(--navy);
  padding: 3rem 0 0.5rem;
  color: #fff;
  position: relative; overflow: hidden;
}
.processus::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 105%, rgba(0,158,224,.13) 0%, transparent 65%);
  pointer-events: none;
}

/* ── PROCESSUS (fond navy → doodles filtrés blanc) ── */

/* Boussole : "on s'oriente ensemble" → haut-droite */
.proc-boussole {
  width: clamp(105px, 11vw, 148px); opacity: .60;
  top: 8%; right: 2%;
  transform: rotate(20deg);
  filter: brightness(0) invert(1);
}
/* Étoile : accent bas-gauche */
.proc-etoile {
  width: clamp(88px, 9.5vw, 128px); opacity: .52;
  bottom: 5%; left: 2%;
  transform: rotate(-10deg);
  filter: brightness(0) invert(1);
}

/* ── Texte centré en zone navy, au-dessus de l'image ── */
.processus__texte {
  text-align: center;
  padding: 0 2rem 1.75rem;
  position: relative; z-index: 1;
}
.processus__titre {
  font-family: var(--font-ms);
  font-style: normal;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
  /* Soulignement orange manuscrit sous le titre */
  display: inline-block;
  padding-bottom: .3rem;
  background-image: linear-gradient(var(--flamboyant), var(--flamboyant));
  background-repeat: no-repeat;
  background-size: 60% 2.5px;
  background-position: center 100%;
}
.processus__note {
  font-family: var(--font-ms);
  font-style: normal;
  font-size: clamp(1rem, 1.9vw, 1.3rem);
  color: rgba(255,255,255,.68);
  line-height: 1.7;
}

/* ── Bannière — max 800px pour rester nette ── */
.processus__banniere {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: block;
  z-index: 1;
}
.processus__img {
  width: 100%;
  display: block;
  filter:
    drop-shadow(0 -8px 30px rgba(0,0,0,.35))
    drop-shadow(0 3px 10px rgba(0,0,0,.25));
}


/* ════════════════════════════════════════════════
   SECTION 5 — TARIFS
   Fond gris chaud · cartes inclinées · CTA
   ════════════════════════════════════════════════ */
.tarifs {
  background-image:
    var(--paper-lines),
    radial-gradient(ellipse 60% 75% at 50% 118%, rgba(255,111,0,.10) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 8% 28%, rgba(0,158,224,.07) 0%, transparent 55%);
  background-color: var(--tarifs-bg);
  padding: 1.5rem 1.5rem 3rem;
  position: relative; overflow: hidden;
}
.tarifs::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: repeating-linear-gradient(
    90deg, transparent, transparent 6px,
    rgba(44,36,22,.15) 6px, rgba(44,36,22,.15) 12px
  );
}

/* ── TARIFS ── */

/* Crayon : "on note tout ensemble" → haut-droite */
.tar-crayon {
  width: clamp(115px, 12vw, 162px); opacity: .88;
  top: 6%; right: 2.5%;
  transform: rotate(30deg);
  filter: var(--filter-ink);
}
/* Clé molette : "des solutions adaptées" → bas-gauche */
.tar-cle {
  width: clamp(108px, 11.5vw, 152px); opacity: .84;
  bottom: 8%; left: 1.5%;
  transform: rotate(-25deg);
  filter: var(--filter-ink);
}

.tarifs__accroche {
  font-family: var(--font-ms);
  font-size: clamp(1.25rem, 2.8vw, 1.8rem);
  color: var(--navy); text-align: center;
  max-width: 740px; margin: 0 auto 0.5rem;
  font-weight: 700; line-height: 1.45;
  position: relative; z-index: 1;
}

/* ── Indication clic ── */
.tarifs__hint {
  text-align: center;
  font-family: var(--font-ms);
  font-size: .90rem; color: var(--ink-mid);
  margin-bottom: 1.5rem;
  opacity: .82;
  position: relative; z-index: 1;
}

/* ── Grille cartes flip ── */
.tarifs__grille {
  max-width: 1100px; margin: 0 auto 1rem;
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  flex-wrap: wrap;
  position: relative; z-index: 1;
}

/* Conteneur avec perspective 3D */
.tarif-flip {
  perspective: 1000px;
  width: clamp(210px, 28vw, 320px);
  aspect-ratio: 409 / 610;       /* ratio exact des images */
  cursor: pointer;
  outline: none;
}
.tarif-flip:focus-visible { outline: 3px solid var(--cerulean); border-radius: 10px; }

/* Face interne qui tourne */
.tarif-flip__inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
}
.tarif-flip.is-flipped .tarif-flip__inner {
  transform: rotateY(180deg);
}

/* Chaque face */
.tarif-flip__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.tarif-flip__face img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(4px 8px 20px rgba(44,36,22,.22));
}
/* Le verso est pré-retourné */
.tarif-flip__face--verso {
  transform: rotateY(180deg);
}

/* Notes sous grille */
.tarifs__notes {
  max-width: 740px; margin: 0 auto 1.5rem;
  font-family: var(--font-ms);
  font-size: 1rem; color: var(--ink);
  line-height: 1.8;
  border-left: 2px solid rgba(44,36,22,.35);
  padding-left: 1rem;
  position: relative; z-index: 1;
}
.tarifs__notes p + p { margin-top: .85rem; }

/* Annotation manuscrite */
.tar-annot {
  position: static; display: block;
  text-align: center; margin: 0 auto 2rem;
  font-size: .90rem;
  color: var(--navy); opacity: .80;
  transform: rotate(-1.5deg);
}

/* Bouton tampon */
.btn-rdv {
  display: block;
  max-width: 300px; margin: 0 auto;
  background: var(--cerulean); color: #fff;
  font-family: var(--font-ms);
  font-size: 1.15rem; font-weight: 700;
  text-align: center;
  padding: .95rem 2rem; border-radius: 4px;
  border: 2px solid rgba(0,80,130,.45);
  box-shadow: 6px 6px 0 rgba(0,80,130,.35);
  transition: background .2s ease, transform .15s, box-shadow .15s, border-color .2s;
  letter-spacing: .01em;
  position: relative; z-index: 1;
}
.btn-rdv:hover {
  background: var(--flamboyant);
  border-color: rgba(44,36,22,.5);
  box-shadow: 4px 4px 0 rgba(44,36,22,.38);
}
.btn-rdv:active {
  background: #e05e00;         /* orange foncé au clic */
  transform: translate(4px, 4px);
  box-shadow: 2px 2px 0 rgba(44,36,22,.42);
}


/* ════════════════════════════════════════════════
   SECTION 6 — LA CARTE
   Fond orange · exploration
   ════════════════════════════════════════════════ */
.carte {
  background: var(--flamboyant);
  padding: 2rem 1.5rem 3rem;
  color: #fff;
  position: relative; overflow: hidden;
}
.carte::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255,255,255,.10) 0%, transparent 60%),
    radial-gradient(ellipse 55% 55% at 50% 110%, rgba(0,0,0,.10) 0%, transparent 58%);
  pointer-events: none;
}

/* ── CARTE (fond orange → doodles filtrés blanc) ── */

/* Boussole : "choisissez votre destination" → haut-gauche */
.carte-boussole {
  width: clamp(145px, 15vw, 200px); opacity: .68;
  top: 6%; left: 1.5%;
  transform: rotate(-12deg);
  filter: brightness(0) invert(1);
}
/* Étoile : destination, but → bas-droite */
.carte-etoile {
  width: clamp(112px, 12vw, 158px); opacity: .60;
  bottom: 8%; right: 2%;
  transform: rotate(25deg);
  filter: brightness(0) invert(1);
}

.carte__titre {
  font-family: var(--font-ms);
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  text-align: center; font-weight: 700;
  margin-bottom: 1.2rem;
  position: relative; z-index: 1;
  text-shadow: 1px 2px 10px rgba(0,0,0,.18);
  margin-bottom: 0.6rem;
}
.carte__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(.95rem, 1.6vw, 1.12rem);
  text-align: center;
  color: #fff;
  background: rgba(255,255,255,.18);
  display: inline-block;
  padding: .45rem 1.2rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.45);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.carte__accroche {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  text-align: center;
  color: #fff;
  line-height: 1.75;
  max-width: 640px;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 1;
}
.carte__accroche strong {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-style: wavy;
  text-underline-offset: 3px;
}

.carte__illustration {
  max-width: 1150px; margin: 0 auto;
  position: relative; z-index: 1;     /* contexte pour les zones absolues */
  display: block;
}
.carte__img {
  width: 100%; border-radius: 8px; display: block;
  filter:
    drop-shadow(0 10px 40px rgba(0,0,0,.32))
    drop-shadow(0 3px 12px rgba(0,0,0,.18));
}

/* ── Zones cliquables superposées ── */
.carte__zone {
  position: absolute;
  border-radius: 50%;          /* ellipse pour coller aux formes organiques */
  border: none;
  background: transparent;
  transition: background .35s ease;
  cursor: pointer;
  text-decoration: none;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 8%;
  outline: none;
}

/* Éclat ambré — style lumière de bougie sur parchemin */
.carte__zone:hover,
.carte__zone:focus-visible {
  background: radial-gradient(
    ellipse at 50% 55%,
    rgba(210, 145, 55, .32)  0%,
    rgba(210, 145, 55, .16) 40%,
    rgba(210, 145, 55, .05) 65%,
    transparent             80%
  );
}

/* Label — style annotation encre sur parchemin */
.carte__zone-label {
  font-family: var(--font-ms);
  font-size: clamp(.90rem, 1.4vw, 1.08rem);
  color: var(--navy);
  background: rgba(250, 243, 228, .93);
  border: 1px solid rgba(37,58,109,.28);
  padding: .22rem .7rem .18rem;
  border-radius: 3px;
  opacity: 0;
  transform: translateY(5px) rotate(-1deg);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 1px 2px 6px rgba(44,36,22,.22);
}
.carte__zone:hover .carte__zone-label,
.carte__zone:focus-visible .carte__zone-label {
  opacity: 1;
  transform: translateY(0) rotate(-1deg);
}

/* ── Positions affinées sur les 4 illustrations (% de l'image 2752×1536) ── */
/* Loupe — haut gauche */
.carte__zone--approche {
  left:  12%; top:   5%;
  width: 30%; height: 47%;
}
/* Montagnes — haut droite */
.carte__zone--parcours {
  left:  52%; top:   5%;
  width: 35%; height: 47%;
}
/* Arbre — bas gauche */
.carte__zone--fondements {
  left:  12%; top:  46%;
  width: 30%; height: 47%;
}
/* Mains — bas droite */
.carte__zone--professionnels {
  left:  38%; top:  46%;
  width: 49%; height: 47%;
}


/* ════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════ */
.footer {
  background: var(--navy); color: #fff;
  padding: 3rem 1.5rem 2rem;
}
.footer__inner {
  max-width: 1020px; margin: 0 auto 2.5rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
}
.footer__logo { font-family: var(--font-ms); font-size: 1.1rem; font-weight: 700; margin-bottom: .6rem; }
.footer__logo em { color: var(--cerulean); font-style: normal; }
.footer__desc, .footer__citation {
  font-family: var(--font-body);
  font-size: .88rem; font-weight: 400;
  color: rgba(255,255,255,.68); line-height: 1.65;
}
.footer__citation { margin-top: .75rem; font-style: italic; }
.footer__label {
  font-family: var(--font-struct);
  font-size: .88rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.65); margin-bottom: .75rem;
}
.footer ul { display: flex; flex-direction: column; gap: .55rem; }
.footer a {
  font-family: var(--font-body);
  font-size: .88rem; font-weight: 400;
  color: rgba(255,255,255,.80); transition: color .2s;
}
.footer a:hover { color: var(--cerulean); }
.footer__mode {
  font-family: var(--font-body);
  font-size: .88rem; font-weight: 400;
  color: rgba(255,255,255,.62); margin-top: .5rem;
}
.footer__btn {
  display: inline-block; margin-top: 1rem;
  background: var(--cerulean); color: #fff !important;
  font-family: var(--font-ms); font-size: 1rem;
  padding: .55rem 1.25rem; border-radius: 4px;
  border: 1px solid rgba(255,255,255,.25);
  transition: background .2s ease, transform .15s;
}
.footer__btn:hover {
  background: var(--flamboyant);
  transform: translateY(-2px);
}
.footer__btn:active { background: #e05e00; }
.footer__copy {
  max-width: 1020px; margin: 0 auto;
  text-align: center;
  font-family: var(--font-body);
  font-size: .88rem; font-weight: 400;
  color: rgba(255,255,255,.62);
  border-top: 1px dashed rgba(255,255,255,.13);
  padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .35rem .65rem;
}
.footer__copy a { color: rgba(255,255,255,.65); text-decoration: none; transition: color .2s; }
.footer__copy a:hover { color: var(--cerulean); }
.footer__copy-sep { color: rgba(255,255,255,.50); }
/* FAB global */
.fab {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--cerulean); color: white;
  padding: 12px 20px; border-radius: 50px;
  text-decoration: none;
  font-family: var(--font-struct); font-size: 14px; font-weight: 700;
  z-index: 500; box-shadow: 0 4px 20px rgba(0,158,224,.3);
  transition: all .3s;
}
.fab:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,158,224,.4); color: white; }

/* ── Bouton retour en haut ── */
.back-to-top {
  position: fixed; bottom: 24px; left: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--astronaut); color: white;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; line-height: 1;
  z-index: 500;
  box-shadow: 0 4px 16px rgba(37,58,109,.30);
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s, visibility .3s, transform .3s, box-shadow .3s;
}
.back-to-top.is-visible {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.back-to-top:hover {
  background: var(--cerulean);
  box-shadow: 0 8px 28px rgba(0,158,224,.4);
  transform: translateY(-3px);
}


/* ════════════════════════════════════════════════
   ANIMATIONS SCROLL — IntersectionObserver
   ════════════════════════════════════════════════ */
.fade-in {
  opacity: 0; transform: translateY(28px);
  transition: opacity .65s cubic-bezier(.25,.46,.45,.94),
              transform .65s cubic-bezier(.25,.46,.45,.94);
}
.fade-in.is-visible { opacity: 1; transform: translateY(0); }
.fade-in[data-delay="1"] { transition-delay: .1s; }
.fade-in[data-delay="2"] { transition-delay: .2s; }
.fade-in[data-delay="3"] { transition-delay: .3s; }
.fade-in[data-delay="4"] { transition-delay: .4s; }


/* ════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .hamburger { display: flex; }

  .hero__inner { flex-direction: column-reverse; align-items: center; text-align: center; }
  .hero__text { width: 100%; }
  .hero__logo { margin-left: auto; margin-right: auto; width: 100%; }
  .hero__illus { margin: 0 auto; max-width: 320px; }
  .hero__tagline { margin: 1rem auto 1.75rem; }
  .hero__tagline-main { font-size: clamp(1.25rem, 5vw, 1.6rem); }
  .hero__tagline-body { max-width: 100%; border-left: none; border-top: 2px solid var(--cerulean); padding-left: 0; padding-top: .65rem; }
  .hero__cyril-card { display: none; }
  .hero__visual { width: clamp(260px, 72vw, 400px); height: clamp(380px, 58vw, 520px); }
  .hero__annot-titre, .hero__annot-chemin { display: none; }
  /* Masquer tous les doodles + l'ancre (cercle étoiles) sur mobile */
  .d-boussole, .d-boussole2,
  .d-etoile,   .d-etoile2,
  .d-fleche,   .d-fleche2,
  .hero__chemin { display: none !important; }
  /* Swap ? → main sur mobile */
  .hero__deco--desktop { display: none !important; }
  .hero__deco--mobile  {
    display: block !important;
    position: absolute;
    bottom: 0; right: 4%;
    width: clamp(90px, 24vw, 160px);
    opacity: .90;
    pointer-events: none;
    user-select: none;
    z-index: 2;
  }

  .miroir { margin-top: -80px; border-radius: 20px 20px 0 0; padding: 2.5rem 1.5rem 3rem; }
  /* Miroir : 2 colonnes sur tablette (post-its + slogans), Cyril en dessous */
  .miroir__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .miroir__col--cyril {
    grid-column: 1 / -1;
    flex-direction: row; justify-content: center; align-items: flex-end;
  }
  .miroir__cyril-wrap { max-width: 200px; }
  .miroir__annot-gauche, .miroir__annot-droite { display: none; }
  .slogan--principal, .slogan--secondaire {
    border-left: none; border-top: 4px solid var(--flamboyant);
    padding-left: 0; padding-top: .65rem;
    border-radius: 0; box-shadow: none;
  }
  .slogan--secondaire { border-top-color: var(--cerulean); }

  /* Processus tablette */
  .processus { padding: 3rem 0 0; }
  .processus__titre { font-size: clamp(1.7rem, 4vw, 2.4rem); }
  .processus__note  { font-size: clamp(.95rem, 2vw, 1.15rem); }
  /* Cartes flip : 2 par ligne sur tablette */
  .tarif-flip { width: clamp(170px, 42vw, 250px); }
  .tarif-card:nth-child(n) { transform: none; }
  .tarif-card--vedette::before { display: none; }
  .tar-annot { position: static; }

  .footer__inner { grid-template-columns: 1fr; gap: 2.25rem; }
  /* Labels carte : police plus petite sur tablette */
  .carte__zone-label { font-size: .88rem; }
}

@media (max-width: 520px) {
  .hero { padding: 5.5rem 1rem 3.5rem; }
  .hero::before { left: 2.5rem; }
  .miroir { padding: 3rem 1rem 3.5rem; }
  .tarifs { padding: 1.5rem 1rem 2.5rem; }
  .carte { padding: 1.5rem 1rem 2.5rem; }
  .processus { padding: 2.5rem 0 0.5rem; }
  .processus__texte { padding: 0 1rem 2rem; }
  .processus__titre { font-size: clamp(1.5rem, 6vw, 2.2rem); margin-bottom: .75rem; }
  .processus__note  { font-size: clamp(.95rem, 4vw, 1.1rem); }
  /* Miroir : 1 colonne sur mobile */
  .miroir__grid { grid-template-columns: 1fr; }
  .miroir__col--cyril { grid-column: 1; }
  /* Carte : labels toujours visibles sur tactile */
  .carte__zone-label { opacity: 1; transform: rotate(-1deg); font-size: .88rem; }
  /* Cacher les doodles secondaires sur très petit écran */
  .d-boussole2, .d-etoile2, .d-fleche2,
  .m-fleche, .tar-cle, .proc-etoile { display: none; }
  .hero__deco--mobile { width: clamp(80px, 20vw, 120px); }
}
