/* L'Heure Rendue — variante de palette « foret ». */
@font-face { font-family: "Inter"; src: url("assets/polices/inter-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* ===================== Couleurs =====================
   Toutes les couleurs passent par ces variables. Le thème clair est la base ;
   le thème sombre les redéfinit plus bas (réglage de l'appareil, ou choix du bouton soleil/lune). */
:root {
  color-scheme: light;
  /* Texte */
  --noir: #0F2A21;            /* texte principal */
  --gris: #56665F;            /* texte secondaire */
  --texte-doux: #34453D;
  --gris-faible: #8A9690;
  /* Fonds */
  --fond: #F7F6F5;            /* fond de page */
  --fond-alt: #FFFFFF;        /* sections alternées */
  --carte: #FFFFFF;           /* tuiles et encadrés sur le fond de page */
  --carte-alt: #F7F6F5;       /* tuiles et encadrés sur une section alternée */
  --gris-clair: #ECEDE7;
  --pastille: #DFE2D9;
  --pastille-survol: #D2D7CB;
  --col-reco: #EEF6D9;        /* colonne surlignée du tableau comparatif */
  /* Traits fins */
  --trait: #DFE2D9;
  --trait-fort: #CDD3C6;
  /* Accent : boutons pleins, liens, chiffres vedettes (forêt en clair, lime en sombre) */
  --bleu: #0A4533;
  --bleu-survol: #0D5841;
  --sur-bleu: #F7F6F5;        /* texte posé sur un bouton plein */
  --lien: #0A4533;
  --lien-sombre: #C8F366;
  --accent: #0A4533;
  --sombre: #0A4533;          /* sections « sombres » de la marque : identiques dans les deux thèmes */
  --surligne: #C8F366;        /* surlignage sous les numéros (inutile en sombre : le chiffre est déjà lime) */
  --halo: #C8F366;
  --liseret-couleur: transparent; /* fin contour lime des blocs forêt, seulement en sombre */
  /* Barre de navigation, volets, voile */
  --nav-fond: rgba(247,246,245, .8);
  --nav-fond-plein: rgba(247,246,245, .98);
  --nav-lien: rgba(15,42,33, .8);
  --voile: rgba(223,226,217, .4);
  --barre-bas: rgba(247, 246, 245, .86);
  /* Planning de l'accueil */
  --semaine-fond: #F7F6F5;
  --raye-1: #ECEDE7;
  --raye-2: #DFE2D9;
  --raye-bord: rgba(10,69,51, .25);
  /* Curseur du calculateur et défilement */
  --curseur-fond: #FFFFFF;
  --curseur-bord: #0A4533;
  --piste-bord: #0A4533;
  --defile-pouce: #0A4533;
  /* Icône soleil/lune (1 = visible) et logo selon le thème */
  --va: 1; --vb: 0;
  --logo-clair: block; --logo-sombre: none;
  --rayon-tuile: 28px;
  --large: 1260px;
  --etroit: 980px;
}

/* Thème sombre : mêmes variables, couleurs de marque adaptées (le lime devient l'accent).
   Écrit deux fois à l'identique : suit l'appareil par défaut, ou le choix forcé du bouton. */
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --noir: #EEF0EA; --gris: #A9B8B0; --texte-doux: #CBD5CE; --gris-faible: #A9B8B0;
    --fond: #0B1A15; --fond-alt: #10251E; --carte: #163229; --carte-alt: #163229;
    --gris-clair: #1C3A30; --pastille: #1C3A30; --pastille-survol: #24463A; --col-reco: #1E3A2C;
    --trait: #24463A; --trait-fort: #24463A;
    --bleu: #C8F366; --bleu-survol: #D6F78A; --sur-bleu: #0A2A1F; --lien: #C8F366; --accent: #C8F366;
    --surligne: transparent; --halo: rgba(200,243,102,.35); --liseret-couleur: rgba(200,243,102,.4);
    --nav-fond: rgba(11,26,21,.8); --nav-fond-plein: rgba(11,26,21,.98); --nav-lien: rgba(238,240,234,.8);
    --voile: rgba(4,10,8,.55); --barre-bas: rgba(11,26,21,.9);
    --semaine-fond: #10251E; --raye-1: #1C3A30; --raye-2: #234438; --raye-bord: rgba(200,243,102,.2);
    --curseur-fond: #EEF0EA; --curseur-bord: #C8F366; --piste-bord: #3A6553; --defile-pouce: #24463A;
    --va: 0; --vb: 1; --logo-clair: none; --logo-sombre: block;
  }
}
@media screen {
  :root[data-theme="dark"] {
    color-scheme: dark;
    --noir: #EEF0EA; --gris: #A9B8B0; --texte-doux: #CBD5CE; --gris-faible: #A9B8B0;
    --fond: #0B1A15; --fond-alt: #10251E; --carte: #163229; --carte-alt: #163229;
    --gris-clair: #1C3A30; --pastille: #1C3A30; --pastille-survol: #24463A; --col-reco: #1E3A2C;
    --trait: #24463A; --trait-fort: #24463A;
    --bleu: #C8F366; --bleu-survol: #D6F78A; --sur-bleu: #0A2A1F; --lien: #C8F366; --accent: #C8F366;
    --surligne: transparent; --halo: rgba(200,243,102,.35); --liseret-couleur: rgba(200,243,102,.4);
    --nav-fond: rgba(11,26,21,.8); --nav-fond-plein: rgba(11,26,21,.98); --nav-lien: rgba(238,240,234,.8);
    --voile: rgba(4,10,8,.55); --barre-bas: rgba(11,26,21,.9);
    --semaine-fond: #10251E; --raye-1: #1C3A30; --raye-2: #234438; --raye-bord: rgba(200,243,102,.2);
    --curseur-fond: #EEF0EA; --curseur-bord: #C8F366; --piste-bord: #3A6553; --defile-pouce: #24463A;
    --va: 0; --vb: 1; --logo-clair: none; --logo-sombre: block;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--defile-pouce) var(--fond); }
body {
  margin: 0; background: var(--fond); color: var(--noir);
  font: 400 17px/1.47 "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  letter-spacing: -0.022em; font-feature-settings: "cv11", "ss03", "calt";
  -webkit-font-smoothing: antialiased;
}
::selection { background: #C8F366; color: #0A4533; }
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
a { color: var(--lien); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; }
:focus-visible { outline: 2px solid var(--bleu); outline-offset: 3px; border-radius: 6px; }
.conteneur { width: min(100% - 48px, var(--large)); margin-inline: auto; }
.etroit { width: min(100% - 48px, var(--etroit)); margin-inline: auto; }
.aller-au-contenu { position: absolute; left: -999px; }
.aller-au-contenu:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--fond); padding: .5rem 1rem; }

/* Boutons et liens */
.bouton {
  display: inline-block; background: var(--bleu); color: var(--sur-bleu); border-radius: 980px; padding: 11px 21px;
  font-size: 17px; font-weight: 400; letter-spacing: -0.022em; transition: background .15s ease, color .15s ease;
}
.bouton:hover { background: var(--bleu-survol); text-decoration: none; box-shadow: 0 0 0 3px var(--halo); }
.bouton.contour { background: transparent; color: var(--lien); box-shadow: inset 0 0 0 1px var(--bleu); }
.bouton.contour:hover { background: var(--bleu); color: var(--sur-bleu); box-shadow: 0 0 0 3px var(--halo); }
.lien-suite::after { content: " ›"; }
.actions .lien-suite { display: inline-flex; align-items: center; min-height: 44px; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 32px; margin-top: 28px; }

/* Rythme des sections : fonds en alternance, sans traits ni ombres */
section { padding-block: 112px; text-align: center; }
.fond-clair { background: var(--fond-alt); }
.fond-sombre { background: var(--sombre); color: #F7F6F5; }
.fond-sombre a { color: var(--lien-sombre); }
.fond-sombre .bouton { background: #C8F366; color: #0A4533; }
.fond-sombre .bouton:hover { background: #D6F78A; box-shadow: 0 0 0 3px rgba(200,243,102,.35); }
.fond-sombre :focus-visible { outline-color: var(--lien-sombre); }
.titre-hero { font-size: clamp(44px, 7vw, 80px); line-height: 1.05; letter-spacing: -0.03em; }
.titre { position: relative; font-size: clamp(34px, 5vw, 56px); line-height: 1.07; letter-spacing: -0.025em; }
/* Trait lime sous les titres de section (dans l'espace existant, sans bouger la mise en page) */
.titre::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 48px; height: 4px; margin-left: -24px; border-radius: 2px; background: #C8F366; }
.sous-titre { margin: 14px auto 0; max-width: 34ch; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.3; letter-spacing: -0.012em; color: var(--gris); }
.fond-sombre .sous-titre { color: #B5C7BE; }
.sous-titre strong { color: var(--noir); font-weight: 600; }
.fond-sombre .sous-titre strong { color: #F7F6F5; }

/* Héros : le produit (l'agenda) est le héros, centré, grand */
.hero { padding-top: 88px; padding-bottom: 0; }
.scene { margin-top: 56px; background: var(--sombre); border-radius: var(--rayon-tuile) var(--rayon-tuile) 0 0; padding: 56px 24px 0; overflow: hidden; box-shadow: inset 0 0 0 1px var(--liseret-couleur); }
.semaine {
  margin: 0 auto; max-width: 900px; background: var(--semaine-fond); border-radius: 20px 20px 0 0; padding: 22px 22px 26px; text-align: left;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .18), 0 0 0 1px rgba(0, 0, 0, .04);
}
.semaine-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 14px; }
.semaine-tete strong { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.compteur { font-size: 14px; color: var(--gris); font-variant-numeric: tabular-nums; }
.compteur b { color: #0A4533; font-weight: 600; background: #C8F366; padding: 1px 9px; border-radius: 980px; }
.jours { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.jour { display: grid; gap: 8px; align-content: start; }
.jour > span { font-size: 12px; color: var(--gris); padding-left: 2px; }
.creneau { border-radius: 12px; padding: 10px 11px; font-size: 13.5px; line-height: 1.3; letter-spacing: -0.01em; background: var(--gris-clair); color: var(--noir); min-height: 52px; }
.creneau.h2 { min-height: 86px; }
.creneau.repetitif { background: repeating-linear-gradient(135deg, var(--raye-1) 0 6px, var(--raye-2) 6px 12px); color: var(--noir); box-shadow: inset 0 0 0 1px var(--raye-bord); }
.emplacement { display: grid; }
.emplacement > * { grid-area: 1 / 1; }
.creneau.rendu { background: #C8F366; color: #0A4533; font-weight: 600; display: flex; align-items: center; gap: 6px; opacity: 0; transform: scale(.9); }
.creneau.rendu svg { width: 16px; height: 16px; flex: none; }
.legende { margin-top: 14px; font-size: 12px; color: var(--gris); display: flex; gap: 18px; flex-wrap: wrap; }
.legende i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legende .l-rep { background: repeating-linear-gradient(135deg, var(--raye-1) 0 3px, var(--raye-2) 3px 6px); box-shadow: inset 0 0 0 1px var(--raye-bord); }
.legende .l-rendu { background: #C8F366; box-shadow: inset 0 0 0 1px #0A4533; }

@media (prefers-reduced-motion: no-preference) {
  .joue .creneau.repetitif { animation: depart .7s cubic-bezier(.28, .11, .32, 1) both; animation-delay: calc(.3s + var(--i) * .14s); }
  .joue .creneau.rendu { animation: retour .8s cubic-bezier(.28, .11, .32, 1) both; animation-delay: calc(.8s + var(--i) * .14s); }
  .revele { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.28, .11, .32, 1), filter .2s ease; }
  .revele.visible { opacity: 1; transform: none; }
  /* Titres : balayage de haut en bas (masque + léger glissement). Les paragraphes gardent le fondu.
     Le bas du masque déborde de 16 px pour ne pas couper le trait lime sous .titre. */
  .revele .titre, .revele.titre, .revele .titre-tuile, .tuile.revele h3 {
    clip-path: inset(0 0 100% 0); transform: translateY(.3em);
    transition: clip-path .55s cubic-bezier(.28, .11, .32, 1), transform .55s cubic-bezier(.28, .11, .32, 1);
  }
  .revele.titre { opacity: 1; }
  .revele.visible .titre, .revele.titre.visible, .revele.visible .titre-tuile, .tuile.revele.visible h3 {
    clip-path: inset(-.1em -.1em -16px -.1em); transform: none;
  }
}
@keyframes depart { to { opacity: 0; transform: translateX(10px) scale(.97); filter: blur(3px); } }
@keyframes retour { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .remonter, .remonter.visible, .barre-demo, .barre-demo.visible { transform: none !important; }
  .creneau.repetitif { opacity: 0; }
  .creneau.rendu { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Tuiles : rayon 28 px, sans bordure ni ombre */
.tuiles { display: grid; gap: 20px; margin-top: 56px; text-align: left; }
.tuiles.trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tuiles.deux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tuile { background: var(--carte-alt); border-radius: var(--rayon-tuile); padding: 40px 36px 44px; }
.fond-blanc .tuile, section:not(.fond-clair):not(.fond-sombre) .tuile { background: var(--carte); }
.tuile .numero { width: fit-content; font-size: 48px; font-weight: 600; line-height: 1; letter-spacing: -0.03em; color: var(--bleu); background: linear-gradient(transparent 62%, var(--surligne) 62%); }
.tuile h3 { margin-top: 18px; font-size: 28px; line-height: 1.14; letter-spacing: -0.02em; }
.tuile p { margin-top: 12px; color: var(--gris); }
.tuile .grand { font-size: clamp(40px, 4.5vw, 56px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; margin-top: 10px; color: var(--noir); }

/* Offre champagne, section sombre */
.video { margin: 56px auto 0; max-width: 520px; border-radius: var(--rayon-tuile); overflow: hidden; background: var(--sombre); aspect-ratio: 4 / 5; }
.video video { width: 100%; height: 100%; object-fit: cover; }
.points { list-style: none; padding: 0; margin: 64px auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 56px; text-align: left; max-width: 860px; }
.points li { font-size: 19px; line-height: 1.42; color: #B5C7BE; }
.points strong { display: block; color: #F7F6F5; font-weight: 600; margin-bottom: 4px; }
.mention { margin: 48px auto 0; max-width: 60ch; font-size: 12px; line-height: 1.33; color: var(--gris); }
.fond-sombre .mention { color: #B5C7BE; }

/* Fin de page */
.fin .titre { font-size: clamp(40px, 6vw, 64px); }
.adresse { display: block; margin-top: 18px; font-size: 14px; color: var(--gris); }
.pied { background: #0A4533; font-size: 12px; line-height: 1.33; color: #B5C7BE; letter-spacing: -0.01em; border-top: 1px solid var(--liseret-couleur); }
.pied .etroit { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px 28px; border-top: 1px solid rgba(247,246,245,.2); }
.pied nav { display: flex; gap: 20px; }
.pied a { color: #F7F6F5; }
.pied a:hover { color: #C8F366; }

.a-completer { background: var(--gris-clair); color: var(--lien); padding: 0 .3em; border-radius: 4px; }

/* Pages légales */
.legal { padding-block: 64px 112px; text-align: left; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -0.025em; line-height: 1.08; }
.legal h2 { font-size: 21px; margin-top: 40px; letter-spacing: -0.015em; }
.legal p, .legal li { margin-top: 10px; color: var(--texte-doux); max-width: 70ch; }

/* Téléphone */
@media (max-width: 834px) {
  section { padding-block: 72px; }
  .hero { padding-top: 56px; padding-bottom: 0; }
  .tuiles.trois, .tuiles.deux, .points { grid-template-columns: 1fr; }
  .tuiles.trois { grid-auto-flow: column; grid-auto-columns: 82%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: -24px; padding-inline: 24px; scrollbar-width: none; }
  .tuiles.trois .tuile { scroll-snap-align: start; }
  .scene { padding: 32px 12px 0; border-radius: 22px 22px 0 0; }
  .jours { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .jour:nth-child(n+4) { display: none; }
  .tuile { padding: 32px 26px 36px; }
  .semaine-tete { flex-direction: column; gap: 2px; }
}

/* ===================== Navigation avec volets (s'ouvrent au survol) ===================== */
.nav { position: sticky; top: 0; z-index: 60; }
.nav-barre {
  position: relative; z-index: 2; height: 56px;
  background: var(--nav-fond); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: background .2s ease;
}
.nav.ouvert .nav-barre { background: var(--nav-fond-plein); box-shadow: 0 2px 0 #C8F366; }
.nav-barre .etroit { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-barre img { height: 32px; width: auto; }
/* Deux logos empilés : un seul est affiché selon le thème (variables --logo-*) */
.logo-clair { display: var(--logo-clair); }
.logo-sombre { display: var(--logo-sombre); }
.nav-droite { display: flex; align-items: center; gap: 4px; }
.nav-barre .etroit > a:first-child { display: flex; align-items: center; min-height: 44px; }
.nav-liens { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-liens > li > a, .nav-liens > li > button {
  display: flex; align-items: center; height: 56px; padding: 0 12px; font: inherit; font-size: 14px; line-height: 1.3; letter-spacing: -0.01em;
  color: var(--nav-lien); background: none; border: 0; cursor: pointer; transition: color .15s ease;
}
.nav-liens > li > a:hover, .nav-liens > li > button:hover, .nav-liens > li > button[aria-expanded="true"], .nav-liens a[aria-current="page"] { color: var(--noir); text-decoration: none; }
.nav-liens a[aria-current="page"] { box-shadow: inset 0 -3px 0 #C8F366; }
.nav-liens .bouton { position: relative; display: flex; align-items: center; height: 36px; min-height: 0; background: var(--bleu); margin-left: 8px; font-size: 14px; padding: 0 18px; line-height: 1; color: var(--sur-bleu); }
/* Zone cliquable de 44 px (loi de Fitts) sans grossir le bouton visible */
.nav-liens .bouton::after { content: ""; position: absolute; inset: -4px -2px; }
.nav-liens .bouton:hover { color: var(--sur-bleu); background: var(--bleu-survol); box-shadow: 0 0 0 2px var(--halo); }
.volets { position: absolute; left: 0; right: 0; top: 56px; z-index: 1; overflow: hidden; height: 0; transition: height .22s cubic-bezier(.4, 0, .6, 1);
  background: var(--nav-fond-plein); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.volet { position: absolute; inset: 0 0 auto; padding: 36px 0 56px; opacity: 0; visibility: hidden; transition: opacity .12s ease, visibility 0s .12s; }
/* Fondu seul : le contenu des volets ne bouge pas */
.volet.actif { opacity: 1; visibility: visible; transition: opacity .18s ease; }
.volet .etroit { display: flex; gap: 72px; }
.volet h4 { margin: 0 0 14px; font-size: 12px; font-weight: 400; color: var(--gris); }
.volet ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.volet .grands a { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--noir); line-height: 1.17; }
.volet .petits a { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--noir); line-height: 1.17; }
.volet a { display: flex; align-items: center; min-height: 44px; transition: color .15s ease, filter .15s ease; }
.volet a:hover { color: var(--bleu); text-decoration: none; }
.voile { position: fixed; inset: 56px 0 0; z-index: 40; background: var(--voile); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s .2s; }
.voile.visible { opacity: 1; visibility: visible; transition: opacity .2s ease, visibility 0s; }

/* Menu téléphone : plein écran */
.burger { display: none; width: 48px; height: 56px; margin-right: -12px; background: none; border: 0; cursor: pointer; color: var(--noir); place-items: center; }
.nav.menu-ouvert .burger .a, .copier.fait .a { opacity: 0; filter: blur(4px); transform: scale(.6); }
.nav.menu-ouvert .burger .b, .copier.fait .b { opacity: 1; filter: none; transform: none; }
/* Paire d'icônes empilées : l'une se fond dans l'autre (flou + opacité + échelle, 200 ms) */
.ico-paire { position: relative; display: block; width: 24px; height: 24px; flex: none; }
.ico-paire svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .2s ease, filter .2s ease, transform .2s ease; }
.ico-paire svg * { vector-effect: non-scaling-stroke; }
.ico-paire .b { opacity: 0; filter: blur(4px); transform: scale(.6); }
.menu-mobile { position: fixed; inset: 56px 0 0; z-index: 55; background: var(--fond); padding: 28px 40px; overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .2s ease, visibility 0s .2s; }
.nav.menu-ouvert .menu-mobile { visibility: visible; opacity: 1; transition: opacity .2s ease, visibility 0s; }
.menu-mobile ul { list-style: none; margin: 0; padding: 0; }
.menu-mobile a { display: block; padding: 8px 0; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; color: var(--noir); }
.menu-mobile .bouton { margin-top: 24px; display: inline-block; font-size: 17px; font-weight: 400; background: #C8F366; color: #0A4533; padding: 11px 21px; }

/* Sous-barre collante d'une page (nom à gauche, bouton à droite) */
.sous-nav { position: sticky; top: 56px; z-index: 30; height: 52px; background: var(--nav-fond); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.sous-nav.collee { border-bottom-color: var(--trait-fort); }
.sous-nav .etroit { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sous-nav strong { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.sous-nav nav { display: flex; align-items: center; gap: 22px; }
.sous-nav nav a:not(.bouton) { font-size: 12px; color: var(--noir); }
.sous-nav .bouton { font-size: 12px; padding: 4px 12px; }

/* Tuiles cliquables */
a.tuile { display: block; color: inherit; transition: transform .25s cubic-bezier(.28, .11, .32, 1), box-shadow .25s ease, filter .2s ease; }
a.tuile:hover { text-decoration: none; transform: scale(1.012); box-shadow: 0 22px 44px -26px rgba(0, 0, 0, .25); }
a.tuile .lien-suite { display: inline-block; margin-top: 18px; color: var(--lien); }
.tuile.sombre { background: var(--sombre) !important; color: #F7F6F5; box-shadow: inset 0 0 0 1px var(--liseret-couleur); }
a.tuile.sombre:hover { box-shadow: inset 0 0 0 1px var(--liseret-couleur), 0 22px 44px -26px rgba(0, 0, 0, .25); }
.tuile.sombre p { color: #B5C7BE; }
.tuile.sombre .lien-suite, .tuile.sombre .numero { color: var(--lien-sombre); }
.tuile.sombre .numero { background: none; }
.tuile .titre-tuile { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 600; margin: 0; }

/* Haut de page des pages intérieures */
.page-hero { padding-top: 96px; padding-bottom: 64px; }
.page-hero .titre-hero { font-size: clamp(44px, 6.2vw, 72px); }

/* Calculateur d'heures rendues */
.calc { max-width: 860px; margin: 48px auto 0; background: var(--carte-alt); border-radius: var(--rayon-tuile); padding: 48px clamp(24px, 5vw, 64px); text-align: left; }
.fond-blanc-force .calc, section:not(.fond-clair) .calc { background: var(--carte); }
.calc label { display: flex; justify-content: space-between; gap: 1rem; font-size: 17px; }
.calc label b { font-weight: 600; font-variant-numeric: tabular-nums; }
.calc input[type=range] { width: 100%; height: 44px; margin: 4px 0 0; padding: 0; appearance: none; -webkit-appearance: none; background: none; outline-offset: 2px; }
/* La piste (6 px) est dessinée sur le pseudo-élément pour garder une zone de prise de 44 px */
.calc input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, #C8F366 var(--remplissage, 30%), var(--pastille) var(--remplissage, 30%)); box-shadow: 0 0 0 1px var(--piste-bord); }
.calc input[type=range]::-moz-range-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, #C8F366 var(--remplissage, 30%), var(--pastille) var(--remplissage, 30%)); box-shadow: 0 0 0 1px var(--piste-bord); }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; margin-top: -11px; width: 28px; height: 28px; border-radius: 50%; background: var(--curseur-fond); border: 3px solid var(--curseur-bord); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); cursor: grab; transition: transform .15s ease; }
.calc input[type=range]::-webkit-slider-thumb:active { transform: scale(1.12); cursor: grabbing; }
.calc input[type=range]::-moz-range-thumb { width: 28px; height: 28px; border: 3px solid var(--curseur-bord); border-radius: 50%; background: var(--curseur-fond); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); box-sizing: border-box; }
.calc .bornes { display: flex; justify-content: space-between; font-size: 12px; color: var(--gris); }
.calc .resultat { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--trait-fort); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.calc .chiffre { font-size: clamp(44px, 6vw, 64px); font-weight: 600; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.calc .chiffre.bleu { color: var(--bleu); background: linear-gradient(transparent 62%, var(--surligne) 62%); width: fit-content; }
.calc .resultat p { margin-top: 8px; color: var(--gris); font-size: 14px; }
.calc .note { margin-top: 24px; font-size: 12px; color: var(--gris); }

/* Onglets (contrôle segmenté) et maquettes d'interface */
.segments { position: relative; display: inline-flex; gap: 2px; padding: 3px; margin-top: 40px; background: var(--pastille); border-radius: 980px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.fond-sombre .segments { background: #0D5841; }
.segments button { position: relative; z-index: 1; min-height: 44px; border: 0; background: none; font: inherit; font-size: 14px; padding: 8px 18px; border-radius: 980px; color: var(--noir); cursor: pointer; white-space: nowrap; transition: color .2s ease; }
.fond-sombre .segments button { color: #F7F6F5; }
.segments button[aria-selected="true"], .fond-sombre .segments button[aria-selected="true"] { color: #0A4533; }
/* La pastille lime glisse (left) et se redimensionne (width) vers l'onglet choisi ; JS la place */
.segments-indic { position: absolute; z-index: 0; left: 0; top: 0; width: 0; height: 0; border-radius: 980px; background: #C8F366; box-shadow: inset 0 0 0 1px #0A4533; pointer-events: none; }
.segments-indic.anime { transition: left .25s cubic-bezier(.4, 0, .2, 1), width .25s cubic-bezier(.4, 0, .2, 1); }
.panneaux { margin: 32px auto 0; max-width: 860px; display: grid; }
.panneau { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .15s ease, transform .15s ease, visibility 0s .15s; text-align: left; }
.panneau.actif { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease .05s, transform .25s ease .05s, visibility 0s; }
.panneau > p { text-align: center; color: #B5C7BE; margin-bottom: 24px; font-size: 19px; }
.ecran { background: var(--carte-alt); color: var(--noir); border-radius: 20px; padding: 24px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.ecran .ligne { display: grid; grid-template-columns: 36px 1fr auto 110px; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--trait); font-size: 15px; }
.ecran .ligne:last-child { border-bottom: 0; }
.ecran .initiales { width: 36px; height: 36px; border-radius: 50%; background: var(--pastille); display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.ecran .ligne small { color: var(--gris); font-size: 13px; }
.ecran .jauge { height: 6px; border-radius: 99px; background: var(--pastille); overflow: hidden; }
.ecran .jauge i { display: block; height: 100%; background: #C8F366; box-shadow: inset 0 0 0 1px #0A4533; border-radius: 99px; }
.ecran .mail-tete { font-size: 13px; color: var(--gris); border-bottom: 1px solid var(--trait); padding-bottom: 12px; }
.ecran .mail-tete b { color: var(--noir); font-weight: 600; font-size: 17px; display: block; margin-top: 4px; }
.ecran .mail-corps { padding-top: 14px; font-size: 15px; line-height: 1.55; color: var(--texte-doux); }
.ecran .mail-corps p + p { margin-top: 10px; }
.ecran .choix { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ecran .choix span { padding: 8px 16px; border-radius: 980px; font-size: 14px; background: var(--pastille); }
.ecran .choix span.oui { background: var(--bleu); color: var(--sur-bleu); }
.ecran .mesures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; text-align: center; }
.ecran .mesures b { display: block; font-size: 48px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.ecran .mesures span { font-size: 14px; color: var(--gris); }
.ecran .legende-ecran { margin-top: 16px; font-size: 12px; color: var(--gris); text-align: center; }

/* Questions fréquentes */
.faq { max-width: 860px; margin: 40px auto 0; text-align: left; }
.faq details { border-bottom: 1px solid var(--trait-fort); }
.faq summary { position: relative; list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 24px 0; font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: ""; position: absolute; left: -14px; top: 50%; width: 4px; height: 26px; margin-top: -13px; border-radius: 2px; background: #C8F366; opacity: 0; transition: opacity .15s ease; }
.faq summary:hover::before { opacity: 1; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--bleu); border-bottom: 2px solid var(--bleu); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { padding: 0 0 26px; color: var(--gris); max-width: 70ch; animation: deplie .25s ease; }
@keyframes deplie { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Pastilles de sujet (contact) et puces d'exemples */
.puces { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.puces button, .puces span { border: 0; font: inherit; font-size: 15px; padding: 10px 18px; border-radius: 980px; background: var(--pastille); color: var(--noir); }
.puces button { min-height: 44px; cursor: pointer; transition: background .15s ease, color .15s ease; }
.puces button:hover { background: var(--pastille-survol); }
.puces button[aria-pressed="true"], .puces button[aria-pressed="true"]:hover { background: #C8F366; color: #0A4533; box-shadow: inset 0 0 0 1px #0A4533; }
.apercu-mail { max-width: 640px; margin: 32px auto 0; background: var(--carte); border-radius: 20px; padding: 24px 28px; text-align: left; font-size: 15px; color: var(--texte-doux); }
.apercu-mail b { color: var(--noir); }

/* Étapes en rangées alternées (page Méthode) */
.rangee { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 80px); align-items: center; text-align: left; }
.rangee + .rangee { margin-top: 96px; }
.rangee:nth-child(even) .rangee-visuel { order: -1; }
.rangee .numero { width: fit-content; font-size: 17px; font-weight: 600; color: var(--bleu); background: linear-gradient(transparent 60%, var(--surligne) 60%); }
.rangee h3 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.025em; margin-top: 8px; }
.rangee p { margin-top: 14px; color: var(--gris); font-size: 19px; line-height: 1.42; }
.rangee-visuel { background: var(--carte); border-radius: var(--rayon-tuile); padding: 40px; min-height: 260px; display: grid; place-items: center; }

.rejouer { min-height: 44px; margin-top: 4px; padding: 0 12px; background: none; border: 0; font: inherit; font-size: 14px; color: var(--lien); cursor: pointer; }
.rejouer:hover { text-decoration: underline; }

@media (max-width: 834px) {
  .nav-liens { display: none; }
  .burger { display: grid; }
  .volets, .voile { display: none; }
  .sous-nav nav a:not(.bouton) { display: none; }
  .rangee { grid-template-columns: 1fr; }
  .rangee:nth-child(even) .rangee-visuel { order: 0; }
  .calc .resultat { grid-template-columns: 1fr; }
  .ecran .ligne { grid-template-columns: 32px 1fr 70px; }
  .ecran .ligne small { display: none; }
  .ecran .mesures b { font-size: 36px; }
}
@media (min-width: 835px) { .menu-mobile { display: none; } }

.rangee .vedette { margin: 0; font-size: clamp(56px, 8vw, 96px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--bleu); width: fit-content; background: linear-gradient(transparent 62%, var(--surligne) 62%); }
.surtitre { font-size: 17px; font-weight: 600; color: var(--bleu); margin-bottom: 10px; }
.page-hero .mention { margin-top: 24px; }

/* Les ancres ne passent pas sous les barres collantes */
[id] { scroll-margin-top: 120px; }
.centre { text-align: center; }
.fin .titre::after { display: none; }
.page-hero .mention { color: var(--gris); }

/* Page Exemples : liste des tâches d'un métier */
.taches { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; text-align: left; }
.taches li { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--carte-alt); border-radius: 20px; padding: 24px 28px; }
.taches h3 { font-size: 21px; letter-spacing: -0.015em; line-height: 1.2; }
.taches p { margin-top: 6px; color: var(--gris); font-size: 17px; }
.taches .valide { flex: none; background: #C8F366; color: #0A4533; font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 980px; }
#metiers .panneau > p { color: var(--gris); }
#metiers .mention { margin-top: 32px; text-align: center; color: var(--gris); font-size: 14px; }
@media (max-width: 834px) { .taches li { flex-direction: column; align-items: flex-start; gap: 14px; } }

/* Accueil : où je suis */
.localisation { margin-top: 20px; font-size: 14px; color: var(--gris); }

/* Tarifs : bandeau, trois formules, réassurance */
.bandeau-lancement { display: flex; justify-content: center; margin: 0 0 40px; }
.bandeau-lancement span { display: inline-block; max-width: 100%; background: #C8F366; color: #0A4533; font-size: 15px; font-weight: 600; line-height: 1.35; padding: 10px 20px; border-radius: 980px; }
.tuiles.formules { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; margin-top: 0; gap: 24px; }
.formules .formule { position: relative; text-align: left; display: flex; flex-direction: column; padding: 36px 32px 32px; }
.formule h3 { margin-top: 0; font-size: 21px; font-weight: 600; }
.formule .prix-etiquette { margin: 22px 0 0; font-size: 14px; line-height: 1.3; color: var(--gris); }
.formule .prix { margin: 2px 0 0; display: flex; align-items: baseline; font-size: clamp(48px, 5vw, 64px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; color: var(--bleu); font-variant-numeric: tabular-nums; }
.prix-e { font-size: .5em; font-weight: 600; margin-left: .06em; letter-spacing: 0; }
.formule .prix-mention { margin: 8px 0 0; font-size: 14px; line-height: 1.4; color: var(--gris); }
.formule ul { list-style: none; margin: 26px 0 28px; padding: 26px 0 0; border-top: 1px solid var(--trait); display: grid; gap: 14px; font-size: 15px; line-height: 1.4; flex: 1; align-content: start; }
.formule li { position: relative; padding-left: 24px; color: var(--noir); }
.formule li::before { content: ""; position: absolute; left: 0; top: .32em; width: 11px; height: 11px; border-radius: 50%; background: #C8F366; box-shadow: inset 0 0 0 1.5px #0A4533; }
.formule .bouton { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 11px 20px; text-align: center; font-weight: 600; }
.bouton-contour { background: transparent; color: var(--bleu); box-shadow: inset 0 0 0 2px var(--bleu); }
.bouton-contour:hover { background: var(--bleu); color: var(--sur-bleu); box-shadow: inset 0 0 0 2px var(--bleu), 0 0 0 3px var(--halo); }
.bouton-lime { background: #C8F366; color: #0A4533; }
.bouton-lime:hover { background: #D6F78A; color: #0A4533; box-shadow: 0 0 0 3px rgba(200, 243, 102, .45); }
.formule.recommandee { background: #0A4533 !important; color: #F7F6F5; margin-block: -14px; padding-block: 50px 46px; box-shadow: inset 0 0 0 1px var(--liseret-couleur), 0 30px 60px -28px rgba(10, 69, 51, .55); }
.formule.recommandee h3, .formule.recommandee li { color: #F7F6F5; }
.formule.recommandee .prix { color: #C8F366; }
.formule.recommandee .prix-etiquette, .formule.recommandee .prix-mention { color: #B5C7BE; }
.formule.recommandee ul { border-top-color: rgba(247, 246, 245, .2); }
.formule.recommandee li::before { box-shadow: none; }
.badge-reco { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); white-space: nowrap; background: #C8F366; color: #0A4533; font-size: 14px; font-weight: 600; line-height: 1; padding: 9px 16px; border-radius: 980px; }
.reassurance { list-style: none; margin: 56px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 32px; }
.reassurance li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--noir); text-align: left; min-height: 44px; }
.reassurance svg { flex: none; color: var(--bleu); }
.mention.centre { margin-top: 28px; color: var(--gris); font-size: 14px; }

/* Tarifs : le suivi (bascule mensuel / annuel) */
.suivi { margin-top: 48px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.suivi .segments { margin-top: 0; }
.segments-suivi button[aria-checked="true"] { color: #0A4533; }
.pastille-offre { display: inline-block; margin-left: 6px; background: #0A4533; color: #C8F366; font-size: 12px; font-weight: 600; line-height: 1; padding: 5px 9px; border-radius: 980px; vertical-align: middle; }
.suivi-prix { transition: opacity .15s ease, filter .15s ease; min-height: 120px; }
.suivi-prix.change { opacity: 0; filter: blur(5px); }
.suivi-montant { display: flex; align-items: baseline; justify-content: center; font-size: clamp(56px, 8vw, 80px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; color: var(--bleu); font-variant-numeric: tabular-nums; }
.suivi-unite { margin-left: .3em; font-size: 20px; font-weight: 500; letter-spacing: -0.015em; color: var(--gris); }
.suivi-economie { margin-top: 10px; min-height: 1.5em; font-size: 17px; font-weight: 600; color: var(--bleu); }
.suivi-economie:empty { visibility: hidden; }
.suivi-texte { max-width: 44ch; font-size: 19px; line-height: 1.4; color: var(--gris); }

/* Tarifs : tableau comparatif */
.tableau-defile { margin: 48px auto 0; max-width: 980px; text-align: left; }
.comparatif { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; }
.comparatif th, .comparatif td { padding: 16px 14px; border-bottom: 1px solid var(--trait); text-align: center; vertical-align: middle; line-height: 1.3; }
.comparatif thead th { position: sticky; top: 56px; z-index: 3; background: var(--fond-alt); font-size: 17px; font-weight: 600; border-bottom: 2px solid var(--bleu); padding-block: 18px; }
.comparatif tbody th { text-align: left; font-weight: 500; width: 38%; }
.comparatif .col-reco { background: var(--col-reco); }
.comparatif thead .col-reco { background: var(--col-reco); }
.comparatif .coche { display: inline-block; vertical-align: middle; color: var(--bleu); }
.comparatif .tiret { color: var(--gris-faible); font-size: 20px; }
.comparatif tbody tr:last-child th, .comparatif tbody tr:last-child td { border-bottom: 0; }

/* Tarifs : et ensuite ? */
.etapes-apres { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; text-align: left; counter-reset: e; }
.etapes-apres li { display: flex; flex-direction: column; gap: 16px; }
.pastille-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #C8F366; color: #0A4533; font-size: 20px; font-weight: 600; }
.etapes-apres p { font-size: 17px; line-height: 1.4; color: var(--noir); }

@media (max-width: 834px) {
  .tuiles.formules { grid-template-columns: 1fr; grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; margin-inline: 0; padding-inline: 0; gap: 36px; margin-top: 8px; }
  .formules .formule.recommandee { order: -1; margin-block: 16px 0; padding-block: 44px 36px; }
  .formules .formule { padding: 32px 26px 28px; }
  .bandeau-lancement span { font-size: 14px; border-radius: 22px; }
  .reassurance { flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 40px; }
  .suivi-prix { min-height: 108px; }
  .tableau-defile { overflow-x: auto; margin-inline: -24px; padding-inline: 24px; overscroll-behavior-x: contain; }
  .comparatif { min-width: 620px; font-size: 15px; }
  .comparatif thead th { position: static; }
  .comparatif tbody th { position: sticky; left: 0; z-index: 2; background: var(--fond-alt); width: 34%; min-width: 150px; }
  .etapes-apres { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; }
  .etapes-apres li { flex-direction: row; align-items: flex-start; }
  .etapes-apres .pastille-num { flex: none; }
  .etapes-apres p { padding-top: 8px; }
}

/* À propos : portrait */
.portrait { width: 132px; height: 132px; margin: 0 auto 28px; border-radius: 50%; overflow: hidden; background: #C8F366; display: grid; place-items: center; box-shadow: 0 0 0 6px var(--fond), 0 0 0 8px var(--bleu); }
.portrait span { font-size: 44px; font-weight: 600; letter-spacing: -0.03em; color: #0A4533; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* Contact : trois moyens de me joindre */
.moyens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; text-align: left; }
.moyen { display: block; background: var(--carte); border-radius: 20px; padding: 24px; color: var(--noir); box-shadow: inset 0 0 0 1px var(--trait); transition: box-shadow .2s ease, filter .2s ease; }
.moyen:hover { text-decoration: none; box-shadow: inset 0 0 0 2px var(--bleu), 0 0 0 4px var(--halo); }
.moyen > span, .moyen-lien > span { display: block; font-size: 14px; color: var(--gris); }
.moyen > b, .moyen-lien > b { display: block; margin-top: 6px; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.moyen > small, .moyen-lien > small { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; background: #C8F366; color: #0A4533; padding: 3px 10px; border-radius: 980px; }

/* Réalisations : légende sous le chiffre */
.rangee-visuel > div { text-align: center; }
.rangee .legende-vedette { margin-top: 12px; font-size: 15px; color: var(--gris); max-width: 26ch; margin-left: auto; margin-right: auto; }

/* Page 404 */
.vedette-404 { font-size: clamp(80px, 14vw, 160px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: var(--bleu); text-decoration: underline 10px #C8F366; text-underline-offset: 10px; margin-bottom: 24px; }

@media (max-width: 834px) { .moyens { grid-template-columns: 1fr; } }

/* Pied de page : les liens passent à la ligne sur téléphone */
.pied nav { flex-wrap: wrap; row-gap: 8px; }
.pied p { overflow-wrap: anywhere; }

/* ===================== Micro-interactions ===================== */
.sr-seul { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Contact : la carte Email contient le lien et le bouton « Copier l'adresse » */
.moyen-lien { display: block; color: inherit; }
.moyen-lien:hover { text-decoration: none; }
.copier { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 14px; padding: 0 18px 0 14px; border: 0; border-radius: 980px;
  background: var(--bleu); color: var(--sur-bleu); font: inherit; font-size: 15px; cursor: pointer; transition: background .15s ease; }
.copier:hover { background: var(--bleu-survol); }
.copier .ico-paire { width: 20px; height: 20px; }
/* Le libellé s'élargit / se resserre en douceur : JS fixe la largeur, deux textes se fondent l'un dans l'autre */
.copier-texte { position: relative; display: block; overflow: hidden; white-space: nowrap; transition: width .25s cubic-bezier(.4, 0, .2, 1); }
.copier-texte .t-copier, .copier-texte .t-ok { display: block; transition: opacity .2s ease, filter .2s ease; }
.copier-texte .t-ok { position: absolute; left: 0; top: 0; opacity: 0; filter: blur(4px); }
.copier.fait .t-copier { opacity: 0; filter: blur(4px); }
.copier.fait .t-ok { opacity: 1; filter: none; }

/* Calculateur : le chiffre ne bouge que lorsqu'on relâche le curseur */
.calc input[type=range] { transform-origin: center; }
.calc input[type=range][data-cote="droite"] { transform-origin: left center; }
.calc input[type=range][data-cote="gauche"] { transform-origin: right center; }

/* Un seul point fort à la fois : site.js garde en avant le dernier élément survolé
   tant que la souris reste dans le groupe (pas de « clignotement » en traversant l'espace entre deux cartes) */
.projecteur > .estompe, .projecteur .estompe { filter: opacity(.55); }
.tuile, .moyen, .taches li, .volet a { transition: filter .2s ease; }

/* Réussite : petite pulsation avec halo lime (copie, choix d'un sujet) */
@media (prefers-reduced-motion: no-preference) {
  .copier.pulse { animation: pulsation .3s ease-out; }
  .apercu-mail.pulse-doux { animation: pulsation-douce .3s ease-out; }
  .chiffre.pulse { transform-origin: left center; animation: pulsation-chiffre .3s ease-out; }
  .calc input[type=range].elastique { animation: elastique .35s linear; }
}
@keyframes pulsation { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(200, 243, 102, .9); } 40% { transform: scale(1.06); } 100% { transform: scale(1); box-shadow: 0 0 0 14px rgba(200, 243, 102, 0); } }
@keyframes pulsation-douce { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(200, 243, 102, .8); } 40% { transform: scale(1.015); } 100% { transform: scale(1); box-shadow: 0 0 0 8px rgba(200, 243, 102, 0); } }
@keyframes pulsation-chiffre { 0% { transform: scale(1); } 40% { transform: scale(1.05); } 100% { transform: scale(1); } }
/* Butée : la piste s'étire de 2 % puis revient avec un petit rebond */
@keyframes elastique { 0% { transform: scaleX(1); } 25% { transform: scaleX(1.02); } 55% { transform: scaleX(.995); } 80% { transform: scaleX(1.004); } 100% { transform: scaleX(1); } }

/* Barre du bas (téléphone) : un seul gros bouton, après un écran de défilement */
.barre-demo { display: none; }
@media (max-width: 834px) {
  body.avec-barre { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .barre-demo { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
    background: var(--barre-bas); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    /* Apparition et disparition douces : la barre glisse lentement depuis le bas, en fondu */
    visibility: hidden; opacity: 0; transform: translateY(100%); transition: opacity .7s cubic-bezier(.4, 0, .2, 1), transform .8s cubic-bezier(.4, 0, .2, 1), visibility 0s .8s; }
  .barre-demo.visible { visibility: visible; opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.4, 0, .2, 1), transform .8s cubic-bezier(.22, 1, .36, 1), visibility 0s; }
  .barre-demo .bouton { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; font-size: 18px; font-weight: 600; }
  .barre-demo .bouton:hover { box-shadow: none; }

  /* Cibles de 44 px minimum dans le pied de page */
  .pied a { display: inline-flex; align-items: center; min-height: 44px; }
  .pied nav { column-gap: 20px; row-gap: 0; }

  /* Carrousels de tuiles : pas de rebond de la page, petit retour élastique en butée (JS pose --elast) */
  .tuiles.trois { overscroll-behavior-x: contain; }
  .tuiles.trois > .tuile { translate: var(--elast, 0px) 0; }
}
@media (max-width: 834px) and (prefers-reduced-motion: no-preference) {
  .tuiles.trois > .tuile { transition: opacity .7s ease, transform .7s cubic-bezier(.28, .11, .32, 1), translate .35s cubic-bezier(.34, 1.56, .64, 1), filter .2s ease; }
  .tuiles.trois.tire > .tuile { transition: opacity .7s ease, transform .7s cubic-bezier(.28, .11, .32, 1), translate 0s, filter .2s ease; }
}

/* Mouvement réduit : aucune animation, tous les changements sont instantanés */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition-duration: 0s !important; transition-delay: 0s !important; }
}

/* ===================== Mode sombre : bouton soleil / lune ===================== */
/* Sur ordinateur : à droite de « Démo gratuite » ; sur téléphone : à gauche du burger */
.theme { position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin-left: 4px; padding: 0; background: none; border: 0; border-radius: 50%; color: var(--noir); cursor: pointer; transition: background .15s ease; }
.theme:hover { background: var(--pastille); }
.theme .ico-paire { width: 22px; height: 22px; }
/* La lune (a) et le soleil (b) se fondent l'un dans l'autre : opacité, flou et échelle, 200 ms (variables --va / --vb) */
.theme .ico-paire .a { opacity: var(--va); filter: blur(calc((1 - var(--va)) * 4px)); transform: scale(calc(.6 + .4 * var(--va))); }
.theme .ico-paire .b { opacity: var(--vb); filter: blur(calc((1 - var(--vb)) * 4px)); transform: scale(calc(.6 + .4 * var(--vb))); }
@media (max-width: 834px) { .theme { margin-left: 0; } }

/* ===================== Barre de progression de lecture ===================== */
/* Trait lime de 3 px collé sous la barre de navigation ; affichée seulement sur les pages plus hautes que 2 écrans */
.progression { position: absolute; left: 0; right: 0; top: 56px; z-index: 3; height: 3px; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.progression.visible { opacity: 1; }
.progression i { display: block; width: 100%; height: 100%; background: #C8F366; transform: scaleX(0); transform-origin: left center; }

/* ===================== Bouton « Remonter en haut » ===================== */
.remonter { position: fixed; right: 24px; bottom: 24px; z-index: 45; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  background: var(--bleu); color: var(--sur-bleu); cursor: pointer; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .45);
  /* Apparition et disparition douces : fondu lent + petit glissement + léger changement de taille */
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.8);
  transition: opacity .7s cubic-bezier(.4, 0, .2, 1), transform .8s cubic-bezier(.4, 0, .2, 1), visibility 0s .8s, bottom .6s cubic-bezier(.22, 1, .36, 1), background .15s ease; }
.remonter.visible { opacity: 1; visibility: visible; transform: none;
  transition: opacity .7s cubic-bezier(.4, 0, .2, 1), transform .8s cubic-bezier(.22, 1, .36, 1), visibility 0s, bottom .6s cubic-bezier(.22, 1, .36, 1), background .15s ease; }
.remonter:hover { background: var(--bleu-survol); }
.remonter svg { width: 22px; height: 22px; }
/* Téléphone : au-dessus de la barre fixe « Demander une démo » (8 + 52 + 8 px) */
@media (max-width: 834px) {
  .remonter { right: 16px; }
  .avec-barre .remonter { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}
main:focus { outline: none; }

/* ===================== Contact : encart après « Écrire le message » ===================== */
.encart-mail { max-width: 640px; margin: 20px auto 0; }
.encart-contenu { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; padding: 16px 20px; background: var(--carte); border-radius: 20px;
  box-shadow: inset 0 0 0 1px var(--trait); font-size: 15px; line-height: 1.45; color: var(--texte-doux); text-align: left; opacity: 0; transition: opacity .2s ease; }
.encart-contenu[hidden] { display: none; }
.encart-contenu.visible { opacity: 1; }
.encart-contenu p { flex: 1 1 280px; }
.encart-contenu b { color: var(--noir); font-weight: 600; overflow-wrap: anywhere; }
.encart-contenu .copier { margin-top: 0; }
.mention.centre + .mention.centre { margin-top: 6px; }

/* ===================== Version imprimable ===================== */
@media print {
  @page { margin: 14mm; }
  /* Rien ne bouge, tout est visible */
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  body, .fond-clair { background: #fff !important; color: #000 !important; }
  body { font-size: 11pt; padding-bottom: 0 !important; }
  /* Éléments interactifs ou de navigation masqués */
  header.nav, .voile, .barre-demo, .remonter, .progression, .theme, .copier, .encart-mail, .rejouer, .segments, .puces, .aller-au-contenu { display: none !important; }
  section, .page-hero, .hero, .legal { padding-block: 16pt !important; }
  .scene { margin-top: 12pt; padding: 0; background: none !important; box-shadow: none !important; }
  .revele, .revele .titre, .revele.titre, .revele .titre-tuile, .tuile.revele h3 { opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important; }
  .projecteur .estompe { filter: none !important; }
  h1, h2, h3, .titre, .titre-hero { color: #0A4533 !important; }
  /* Cartes : fond blanc, filet gris, jamais coupées */
  .tuile, .moyen, .formule, .taches li, .apercu-mail, .calc, .rangee-visuel, .semaine { background: #fff !important; box-shadow: none !important; border: 1px solid #bbb; color: #000 !important; }
  .tuile.sombre, .formule.recommandee { background: #fff !important; color: #000 !important; margin-block: 0; }
  .tuile.sombre *, .formule.recommandee * { color: #000 !important; }
  .formule.recommandee .badge-reco { border: 1px solid #000; }
  .tuile, .moyen, .formule, .taches li, .apercu-mail, .calc, .rangee, .semaine, .faq details, .etapes-apres li, .reassurance li, tr, figure { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }
  .tuiles.trois, .tuiles.formules { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12pt; overflow: visible; }
  .tuiles.deux { gap: 12pt; }
  .tuiles.formules { padding-top: 14pt; }
  .formules .formule, .formules .formule.recommandee { padding: 16pt; order: 0; margin-block: 0; }
  .formule li::before, .formule.recommandee li::before { background: none; box-shadow: inset 0 0 0 1.5px #0A4533; }
  .pied { background: none !important; color: #000 !important; border-top: 1px solid #000; }
  .pied a, .pied .etroit { color: #000 !important; border-color: #bbb; }
  /* Liens : adresse écrite après les liens externes, courriels et téléphones */
  a { color: #0A4533; text-decoration: underline; }
  a[href^="http"]::after, a[href^="tel:"]::after, a[href^="mailto:"]:not(.bouton)::after { content: " (" attr(href) ")"; font-size: 9pt; font-weight: 400; overflow-wrap: anywhere; }
  .bouton { background: none !important; color: #0A4533 !important; box-shadow: inset 0 0 0 1px #0A4533 !important; }
  /* Tableau comparatif : sans défilement, sans colonne collante */
  .tableau-defile { overflow: visible; margin-inline: auto; padding-inline: 0; }
  .comparatif { min-width: 0; }
  .comparatif thead th, .comparatif tbody th { position: static; background: #fff !important; }
  .comparatif .col-reco, .comparatif thead .col-reco { background: #f0f0f0 !important; }
  /* Onglets d'exemples : tous les métiers l'un après l'autre */
  .panneaux { display: block; }
  .panneau { opacity: 1 !important; visibility: visible !important; transform: none !important; margin-bottom: 14pt; }
  .panneau > p, #metiers .panneau > p { color: #000; }
  /* Questions fréquentes : réponses ouvertes (site.js ouvre aussi les <details> au moment d'imprimer) */
  .faq summary::before, .faq summary::after { display: none; }
  .faq details p { animation: none; }
}
@media print {
  details:not([open])::details-content { content-visibility: visible; display: block; }
}
