/* ==========================================================================
   Afoodi — pages /use-cases/*
   Un use case n'est pas un cas client : il se lit en diagonale, en moins
   d'une minute. Livrable, résultat, démarche — trois blocs courts, rien à
   dérouler. Le détail vit sur la page cas client, vers laquelle on renvoie.
   L'alternance clair / sombre marque le passage du concret (ce que vous
   recevez) à la preuve (ce que ça a donné).
   Feuille partagée par les trois use cases.
   ========================================================================== */

.has-gsap [data-reveal] { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .has-gsap [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.top {
  background:
    radial-gradient(1100px 620px at 50% -8%, oklch(0.33 0.05 163 / .85), transparent 60%),
    linear-gradient(175deg, var(--green-dark), var(--green-ink) 70%);
  padding-bottom: clamp(46px, 5.5vw, 84px);
}
.hero { padding: clamp(44px, 6vw, 92px) 0 clamp(28px, 3.2vw, 44px); max-width: 1000px; }
/* Chaque use case porte l'illustration de sa catégorie, reprise de la section
   « Est-ce fait pour vous ? » de l'accueil. Elle tient la moitié droite du
   hero : cadre crème arrondi, posé sur le vert comme une carte. */
.hero--ico {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
  max-width: 1240px;
}
.hero__ico {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 34px 70px -34px oklch(0.10 0.02 165 / .85);
  outline: 1px solid oklch(0.99 0.01 90 / .14);
  outline-offset: -1px;
}
@media (max-width: 900px) {
  .hero--ico { grid-template-columns: 1fr; gap: clamp(22px, 3vw, 32px); }
  .hero__ico { max-width: 420px; order: -1; }
}
.hero h1 {
  font-size: clamp(34px, 5vw, 72px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  margin-top: 18px;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--orange); }
.hero__lead {
  font-size: clamp(16.5px, 1.35vw, 20px);
  line-height: 1.6;
  color: var(--cream-dim);
  margin-top: clamp(20px, 2.4vw, 30px);
  max-width: 60ch;
  text-wrap: pretty;
}
.hero__lead strong { color: var(--cream); font-weight: 800; }

/* ==========================================================================
   Fond clair — commun aux sections « livrable » et « démarche »
   ========================================================================== */
.light { background: var(--cream); color: var(--green-ink); position: relative; z-index: 2; }
.light a { color: var(--green-ink); }
.light a:hover { color: var(--orange); }
.light__h2 {
  font-size: clamp(28px, 4vw, 58px);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.02;
  margin-top: 16px;
  max-width: 20ch;
  text-wrap: balance;
}
.light__h2 .accent { color: var(--orange); }

/* ==========================================================================
   CE QUE VOUS RECEVEZ
   ========================================================================== */
.livrable {
  border-radius: 34px 34px 0 0;
  margin-top: -22px;
  padding: clamp(52px, 6.5vw, 100px) 0 clamp(54px, 6.5vw, 96px);
}
.livrable__intro {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  margin-top: clamp(18px, 2vw, 26px);
  max-width: 56ch;
  text-wrap: pretty;
}
.livrable__intro strong { color: var(--green-ink); font-weight: 800; }

/* Quatre cartes en 2 × 2 : à quatre de front, les descriptions se réduisent
   à une colonne de mots. Deux colonnes gardent une ligne lisible, et les
   quatre livrables tiennent dans un seul regard — c'est un inventaire, pas
   une séquence. */
.livrables {
  list-style: none;
  counter-reset: livrable;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 26px);
  margin-top: clamp(32px, 3.8vw, 52px);
}
.livrables li {
  counter-increment: livrable;
  background: var(--cream-pure);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 2px oklch(0.17 0.03 165 / .06), 0 12px 32px oklch(0.17 0.03 165 / .05);
  display: grid;
  grid-template-rows: auto 1fr;
}

/* Le panneau qui porte la maquette. container-type le rend mesurable : la
   maquette se dimensionne en cqw, donc tout son contenu — texte compris —
   grandit avec la carte au lieu de casser la mise en page à 3:2. */
.livrable__visuel {
  container-type: inline-size;
  background: var(--cream-panel);
  border-bottom: 1px solid var(--ink-line);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.livrable__visuel::before {
  content: counter(livrable, decimal-leading-zero);
  align-self: flex-start;
  background: var(--green-ink);
  color: var(--cream);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .14em;
  padding: 6px 12px;
  border-radius: 999px;
}
/* Les maquettes viennent du bundle Claude Design et gardent leurs styles en
   ligne : ce sont des illustrations autonomes, pas des composants du site. */
.mock { width: 100%; }

/* Une illustration qui occupe la boîte 3:2 des maquettes. cover plutôt que
   contain : l'image porte déjà ses propres marges crème, contain en
   ajouterait une seconde. */
.mock--image {
  aspect-ratio: 3 / 2;
  border: 1px solid var(--ink-line);
  border-radius: 12px;
  overflow: hidden;
}
.mock--image img { display: block; width: 100%; height: 100%; object-fit: cover; }

.livrable__texte { padding: clamp(22px, 2.4vw, 32px); display: grid; align-content: start; }
.livrable__t {
  font-size: clamp(19px, 1.8vw, 25px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.15;
  text-wrap: balance;
}
.livrable__d {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-top: 12px;
  text-wrap: pretty;
}
.livrable__d strong { color: var(--green-ink); font-weight: 800; }
/* Le nom au catalogue : le lecteur qui ira sur /offre doit retrouver le même
   intitulé, au mot près, sinon il croit à deux prestations différentes. */
.livrable__ref {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--ink-line);
}
.livrable__ref b { font-weight: 800; color: var(--green-ink); }

/* ==========================================================================
   LE CADRE  (use case franchisé)
   Une section courte : une affirmation, un paragraphe. Elle pose la marge de
   manœuvre avant que la page ne montre les outils.
   ========================================================================== */
.cadre {
  border-radius: 34px 34px 0 0;
  margin-top: -22px;
  padding: clamp(52px, 6.5vw, 100px) 0 clamp(48px, 6vw, 86px);
}
.cadre__p,
.cadre__fin {
  font-size: clamp(16.5px, 1.4vw, 20px);
  line-height: 1.65;
  color: var(--ink-soft);
  margin-top: clamp(20px, 2.4vw, 30px);
  max-width: 62ch;
  text-wrap: pretty;
}
.cadre__p strong,
.cadre__fin strong { color: var(--green-ink); font-weight: 800; }
.cadre__fin {
  margin-top: clamp(30px, 3.4vw, 46px);
  border-left: 2px solid var(--orange);
  padding-left: clamp(16px, 1.6vw, 22px);
}

/* Positionnement prix : schéma écrit à la main dans l'idiome des maquettes
   portées. Les concurrents y sont anonymes — c'est un schéma de lecture,
   pas une veille réelle sur une zone identifiable. */
.mock--concu {
  aspect-ratio: 3 / 2;
  font-size: 2cqw;
  background: var(--cream-pure);
  border: 1px solid var(--ink-line);
  border-radius: 12px;
  padding: 1.5em;
  overflow: hidden;
}
.concu { height: 100%; display: flex; flex-direction: column; gap: 0.9em; }
.concu__tete { display: flex; align-items: baseline; justify-content: space-between; gap: 1em; }
.concu__t { font-size: 1.2em; font-weight: 700; color: var(--green-ink); }
.concu__k {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78em;
  color: oklch(0.62 0.02 165);
  white-space: nowrap;
}
.concu__lignes { flex: 1; min-height: 0; list-style: none; display: flex; flex-direction: column; justify-content: space-between; }
.concu__lignes li { display: flex; align-items: center; gap: 0.7em; }
.concu__nom { width: 7em; flex-shrink: 0; font-size: 0.82em; color: oklch(0.42 0.03 165); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* La piste porte la médiane en pointillés et un point par établissement. */
.concu__piste { position: relative; flex: 1; height: 0.9em; min-width: 0; }
.concu__piste::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: oklch(0.30 0.045 165 / .12); }
.concu__piste::after { content: ""; position: absolute; top: 0; bottom: 0; left: 55%; border-left: 1px dashed oklch(0.30 0.045 165 / .3); }
.concu__piste i {
  position: absolute;
  top: calc(50% - 0.3em);
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: oklch(0.72 0.02 165);
  transform: translateX(-50%);
}
.concu__val {
  width: 4.4em;
  text-align: right;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78em;
  color: oklch(0.42 0.03 165);
  white-space: nowrap;
}
.concu__ligne--moi .concu__nom { font-weight: 800; color: var(--green-ink); }
.concu__ligne--moi .concu__piste i { background: var(--orange); width: 0.8em; height: 0.8em; top: calc(50% - 0.4em); }
.concu__ligne--moi .concu__val { font-weight: 600; color: var(--orange); }
.concu__note {
  background: oklch(0.94 0.03 85);
  border-radius: 0.6em;
  padding: 0.55em 0.8em;
  font-size: 0.82em;
  line-height: 1.4;
  color: oklch(0.45 0.06 70);
}
.concu__pied {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72em;
  color: oklch(0.62 0.02 165);
  text-align: center;
}

/* ==========================================================================
   LE RÉSULTAT
   ========================================================================== */
.resultat {
  background: linear-gradient(175deg, var(--green-deep), var(--green-ink));
  padding: clamp(56px, 7vw, 104px) 0;
}
.resultat h2 {
  font-size: clamp(28px, 3.8vw, 54px);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.02;
  margin-top: 16px;
  max-width: 20ch;
  text-wrap: balance;
}
.resultat h2 .accent { color: var(--orange); }
.resultat__sur {
  font-size: clamp(15.5px, 1.25vw, 18px);
  line-height: 1.6;
  color: var(--cream-dim);
  margin-top: clamp(18px, 2vw, 26px);
  max-width: 60ch;
}
.resultat__sur strong { color: var(--cream); font-weight: 800; }

.gains {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 26px);
  margin-top: clamp(28px, 3.4vw, 46px);
}
.gains li {
  border: 1px solid var(--panel-line);
  border-radius: 20px;
  background: oklch(0.24 0.04 165 / .45);
  padding: clamp(22px, 2.4vw, 32px);
  display: grid;
  align-content: start;
}
.gains__n {
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--orange);
  white-space: nowrap;
}
.gains__t {
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.3;
  margin-top: 14px;
}
.gains__d { font-size: 14.5px; line-height: 1.55; color: var(--cream-dim); margin-top: 8px; text-wrap: pretty; }
/* La qualité de la preuve compte autant que le chiffre : mesurée, prouvée,
   ou obtenue sans avoir été cherchée. On l'écrit plutôt que de la sous-entendre. */
.gains__tag {
  justify-self: start;
  margin-top: 18px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cream-dim);
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  padding: 6px 12px;
}

/* Sans chiffre à afficher — aucun résultat n'est documenté pour ce profil —
   les trois acquis prennent un filet orange à la place du grand nombre. */
.gains--qualitatif li { border-top: 3px solid var(--orange); }
.gains--qualitatif .gains__t { margin-top: 0; font-size: clamp(18px, 1.6vw, 22px); font-weight: 900; letter-spacing: -.025em; }

.resultat__socle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 2.4vw, 32px);
  margin-top: clamp(30px, 3.4vw, 46px);
  padding-top: clamp(26px, 3vw, 38px);
  border-top: 1px solid var(--panel-line);
}
.resultat__sans {
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.3;
  max-width: 26ch;
  text-wrap: balance;
}

/* ==========================================================================
   LA DÉMARCHE
   ========================================================================== */
.marche { padding: clamp(56px, 7vw, 104px) 0; }
.marche__intro {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.65;
  color: var(--ink-soft);
  margin-top: clamp(18px, 2.2vw, 28px);
  max-width: 62ch;
  text-wrap: pretty;
}
.marche__intro strong { color: var(--green-ink); font-weight: 800; }
.marche__intro em { font-style: italic; }

.temps {
  list-style: none;
  counter-reset: temps;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 32px);
  margin-top: clamp(34px, 4vw, 56px);
}
.temps li {
  counter-increment: temps;
  border-top: 2px solid var(--ink-line);
  padding-top: clamp(18px, 2vw, 26px);
}
.temps li::before {
  content: counter(temps, decimal-leading-zero);
  display: block;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--orange);
}
.temps__t {
  font-size: clamp(18px, 1.7vw, 23px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.2;
  margin-top: 14px;
}
.temps__d { font-size: 15px; line-height: 1.6; color: var(--ink-soft); margin-top: 10px; text-wrap: pretty; }

.suite { margin-top: clamp(30px, 3.4vw, 46px); font-size: 15px; line-height: 2.4; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .livrables, .gains, .temps { grid-template-columns: 1fr; }
  .gains li { grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(18px, 3vw, 30px); align-items: baseline; }
  .gains__n { grid-row: span 3; }
  .gains__t, .gains__d, .gains__tag { grid-column: 2; }
  .gains__t { margin-top: 0; }
  .temps li { border-top: none; border-left: 2px solid var(--ink-line); padding: 0 0 0 clamp(18px, 3vw, 26px); }
}
@media (max-width: 760px) {
  .resultat__socle { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .gains li { grid-template-columns: 1fr; }
  .gains__n { grid-row: auto; }
  .gains__t, .gains__d, .gains__tag { grid-column: 1; }
  .gains__t { margin-top: 14px; }
}
