/* Les pages « Fonctionnalités » et la section de l'accueil qui y mène (maquette validée par Kamel le 25/11/2026). Tout part des jetons
   et des pièces de style.css : mêmes couleurs, mêmes coques, mêmes pastilles. */

/* ---------- Accueil : de A à Z ---------- */
/* 28/11/2026 (maquette validée par Kamel) : « Toute ta prospection, au même endroit », la chaîne de A à Z juste après
   l'en-tête de l'accueil. 29/11/2026 (Kamel : « trop fouillu pas clair du tout ») : chaque étape tient en un mot et une
   phrase ; le mot mène à sa page ; plus de pastilles ni de rangées de liens. Le trait de la couleur d'accent va de la
   première étape à la dernière quand on fait défiler (site.js) ; sans script, il est entier. */
.az { padding-block: clamp(4.5rem, 9vw, 8rem); }
.az-head { display: grid; gap: 0.4rem; max-width: 64ch; }
.az-route { --trace: 1; list-style: none; margin: clamp(2.75rem, 5vw, 4rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(1.25rem, 2.6vw, 2.75rem); position: relative; }
.az-route::before, .az-route::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; }
.az-route::before { background: var(--line-strong); }
.az-route::after { background: var(--accent); transform-origin: left center; transform: scaleX(var(--trace)); }
.az-etape { position: relative; min-width: 0; padding-top: 2.4rem; display: grid; align-content: start; gap: 0.75rem; }
.az-etape::before { content: ""; position: absolute; z-index: 1; left: 0; top: 0; width: 16px; height: 16px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 4px var(--accent); }
.az-etape h3 { margin: 0; font-family: var(--font-display); font-stretch: 78%; font-weight: 700; letter-spacing: -0.02em; line-height: 1; font-size: clamp(2.1rem, 3.3vw, 3.1rem); }
.az-etape h3 a { display: inline-flex; align-items: center; gap: 0.16em; text-decoration: none; transition: color 0.3s var(--ease); }
.az-etape h3 a .ic { width: 0.46em; height: 0.46em; color: var(--accent); transition: transform 0.35s var(--ease); }
.az-etape h3 a:hover { color: var(--accent); }
.az-etape h3 a:hover .ic { transform: translate(3px, -3px); }
.az-etape .tag-pro { margin: 0; justify-self: start; }
.az-etape p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.5; max-width: 30ch; }
.az-aussi { margin: clamp(2.75rem, 5vw, 3.75rem) 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.az-aussi b { margin-right: 0.5rem; font-size: 15px; font-weight: 650; color: var(--muted); }
.az-aussi a { display: inline-flex; align-items: center; gap: 10px; padding: 11px 14px 11px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.3s var(--ease); }
.az-aussi a .ic { color: var(--accent); transition: transform 0.35s var(--ease); }
.az-aussi a:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.az-aussi a:hover .ic { transform: translate(2px, -2px); }
@media (max-width: 999px) {
  .az-route { grid-template-columns: minmax(0, 1fr); row-gap: 2.2rem; padding-left: 2.2rem; }
  .az-route::before, .az-route::after { left: 7px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
  .az-route::after { transform-origin: center top; transform: scaleY(var(--trace)); }
  .az-etape { padding-top: 0; gap: 0.5rem; }
  .az-etape::before { left: -2.2rem; top: 0.45rem; }
  .az-etape p { max-width: 38ch; }
  .az-aussi b { width: 100%; margin: 0; }
}

/* ---------- Accueil : « Tu gardes la main » ---------- */
/* 29/11/2026 : trois engagements sur une bande sombre, à la place d'une grille de cinq cases avec leurs petits exemples. */
.garde { background: var(--frame); color: var(--frame-ink); padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.garde-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.garde-liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--frame-line); }
.garde-liste li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--frame-line); }
.garde-liste .ic { margin-top: 0.3rem; font-size: 1.35rem; color: var(--frame-accent); }
.garde-liste p { margin: 0; color: var(--frame-muted); font-size: 17px; line-height: 1.55; max-width: 58ch; }
.garde-liste b { display: block; margin-bottom: 0.3rem; color: var(--frame-ink); font-size: clamp(1.25rem, 1.9vw, 1.6rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
@media (max-width: 899px) {
  .garde-grid { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
}

/* ---------- Page : l'en-tête ---------- */
.f-hero { position: relative; isolation: isolate; padding-top: calc(112px + env(safe-area-inset-top, 0px)); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.f-hero::before { content: ""; position: absolute; z-index: -1; inset: 0 0 auto 0; height: 760px; background: radial-gradient(60% 55% at 78% 30%, var(--accent-glow), transparent 70%); pointer-events: none; }
.f-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2.5rem, 5vw, 5.5rem); align-items: center; }
.f-crumb { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 1rem; font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: none; }
.f-crumb .ic { transform: rotate(90deg); color: var(--accent); }
.f-crumb:hover { color: var(--ink); }
.f-title { font-size: clamp(2.5rem, 4.3vw, 4.3rem); max-width: 16ch; }
.f-sub { font-size: clamp(1.1rem, 1.35vw, 1.25rem); color: var(--muted); max-width: 42ch; margin: 1.2rem 0 0; line-height: 1.5; }
.f-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.4rem; }
.f-tags .tag-pro { margin: 0; }
.f-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

/* L'illustration : une coque comme celles de l'accueil ; son contenu vient d'un <template> (l'outil ne lit pas les
   exemples fictifs, seulement le vrai texte de la page). */
.f-visual { margin: 0; }
.f-visual .core { padding: 18px; display: grid; gap: 10px; min-height: 360px; align-content: start; }
.v-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 2px; }
.v-head p { margin: 0; font-weight: 650; font-size: 15px; }
.v-row { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.v-row .who { flex: 1; }
.v-row.is-low { opacity: 0.55; }
.v-row.is-choisi { box-shadow: inset 0 0 0 2px var(--accent); }
.v-row .chip, .v-row .hot { flex: none; }
.v-stack { display: grid; gap: 6px; padding: 12px 13px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.v-stack .v-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.v-stack .v-top .who { flex: 1; }
.v-note { margin: 0; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.v-note .ic { color: var(--accent); }
.v-quote { margin: 0; font-size: 14px; line-height: 1.5; padding: 9px 12px; border-radius: 12px 12px 12px 4px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.v-msg { margin: 0; padding: 11px 13px; border-radius: 14px 14px 4px 14px; background: var(--accent-soft); font-size: 14px; line-height: 1.55; }
.v-foot { margin: 4px 0 0; display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--accent); }
.v-split { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; }
.v-slot { font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.v-sep { margin: 6px 0 0; font-size: 12.5px; font-weight: 650; color: var(--muted); }

/* ---------- Page : « Ce que ça fait » (titre collant à gauche, blocs à droite) ---------- */
.f-fait { padding-block: clamp(4.5rem, 9vw, 8rem); border-top: 1px solid var(--line); }
.f-fait-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.f-fait-head { position: sticky; top: 110px; }
.f-fait-head .h2 { font-size: clamp(2.4rem, 4.6vw, 4.4rem); }
.f-blocs { display: grid; gap: clamp(2.2rem, 4vw, 3.2rem); }
.f-bloc h3 { margin: 0; font-family: var(--font-display); font-stretch: 78%; font-weight: 700; letter-spacing: -0.02em; line-height: 1.02; font-size: clamp(1.6rem, 2.4vw, 2.2rem); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 0.75rem; }
.f-bloc h3 .tag-pro { margin: 0; font-family: var(--font-body); font-stretch: 100%; letter-spacing: 0; }
.f-bloc p { margin: 0.8rem 0 0; color: var(--muted); max-width: 58ch; font-size: 17px; }
.f-bloc p a { color: var(--accent); text-underline-offset: 3px; }

/* ---------- Page : les chiffres (une bande, trois repères) ---------- */
.f-chiffres { background: var(--frame); color: var(--frame-ink); }
.f-chiffres .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: clamp(3rem, 6vw, 4.5rem); }
.f-chiffre { padding: 0 clamp(1rem, 3vw, 2.5rem); border-left: 1px solid var(--frame-line); }
.f-chiffre:first-child { border-left: 0; padding-left: 0; }
.f-chiffre b { display: block; font-family: var(--font-display); font-stretch: 76%; font-weight: 700; letter-spacing: -0.03em; line-height: 0.95; font-size: clamp(2.6rem, 5.5vw, 4.8rem); }
.f-chiffre span { display: block; margin-top: 0.6rem; color: var(--frame-muted); max-width: 26ch; }

/* ---------- Page : « Quand ça sert » (de grandes lignes) ---------- */
.f-quand { padding-block: clamp(4.5rem, 9vw, 8rem); }
.f-quand ul { list-style: none; margin: clamp(2.4rem, 4.5vw, 3.4rem) 0 0; padding: 0; border-top: 1px solid var(--line-strong); }
.f-quand li { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: 0.75rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line); font-size: clamp(1.2rem, 2vw, 1.65rem); line-height: 1.3; font-weight: 550; letter-spacing: -0.01em; }
.f-quand li .ic { margin-top: 0.3em; color: var(--accent); }

/* ---------- Page : les objectifs (cinq tuiles de tailles différentes) ---------- */
.f-objs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.f-obj { grid-column: span 2; display: grid; align-content: start; gap: 0.7rem; padding: clamp(1.4rem, 2.4vw, 2rem); border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.f-obj:nth-child(1), .f-obj:nth-child(2) { grid-column: span 3; }
.f-obj:nth-child(1) { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.f-obj:nth-child(1) p { color: var(--accent-ink); opacity: 0.88; }
.f-obj:nth-child(4) { background: var(--hot-bg); box-shadow: none; }
.f-obj h3 { margin: 0; font-family: var(--font-display); font-stretch: 78%; font-weight: 700; letter-spacing: -0.02em; line-height: 1; font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.f-obj p { margin: 0; color: var(--muted); }
.f-obj .chip { justify-self: start; }

/* ---------- Page : les autres fonctionnalités ---------- */
.f-autres { padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.f-autres h2 { margin: 0; font-size: 15px; font-weight: 650; color: var(--muted); letter-spacing: 0; font-family: var(--font-body); }
.f-autres ul { list-style: none; margin: 1.1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.f-autres a { display: inline-flex; align-items: center; gap: 10px; padding: 12px 14px 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.3s var(--ease); }
.f-autres a .ic { color: var(--accent); transition: transform 0.35s var(--ease); }
.f-autres a:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.f-autres a:hover .ic { transform: translate(2px, -2px); }
/* 28/11/2026 : le bas de chaque page Fonctionnalités suit la chaîne de A à Z ; la page du moment y est marquée. */
.f-autres .ici { display: inline-flex; align-items: center; padding: 12px 18px; border-radius: 999px; font-weight: 600; background: var(--ink); color: var(--bg); }

/* Le pied : une 2e ligne de liens, vers les six pages. */
.foot-fonctions { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 2rem; font-size: 14px; }
.foot-fonctions b { color: var(--ink); font-weight: 650; }
.foot-fonctions a { color: var(--muted); text-decoration: none; }
.foot-fonctions a:hover { color: var(--ink); }

@media (max-width: 899px) {
  .f-grid { grid-template-columns: minmax(0, 1fr); }
  .f-fait-grid { grid-template-columns: minmax(0, 1fr); }
  .f-fait-head { position: static; }
  .f-objs { grid-template-columns: minmax(0, 1fr); }
  .f-obj, .f-obj:nth-child(1), .f-obj:nth-child(2) { grid-column: auto; }
}
@media (max-width: 640px) {
  .f-hero { padding-top: calc(104px + env(safe-area-inset-top, 0px)); }
  .f-chiffres .wrap { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .f-chiffre, .f-chiffre:first-child { border-left: 0; padding: 1.4rem 0 0; border-top: 1px solid var(--frame-line); }
  .f-chiffre:first-child { border-top: 0; padding-top: 0; }
  .f-visual .core { min-height: 0; padding: 14px; }
  .v-row { padding: 10px 11px; gap: 8px 10px; flex-wrap: wrap; }
  .v-row .who { flex: 1 1 140px; }
}
