/* ==========================================================================
   SECTIONS — hugocousty.fr
   --------------------------------------------------------------------------
   Styles propres à chaque section du one page, dans l'ordre de la page.
   Mobile first : les styles de base visent 375 px, les @media (min-width)
   enrichissent pour tablette (48em / 768 px) et desktop (64em / 1024 px).

   Sommaire
   0.  Composant partagé : carte
   1.  Hero
   2.  Logos
   3.  Expertises
   4.  Méthode
   5.  Chiffres clés
   6.  Réalisations (projet à la une + grille)
   7.  Témoignages
   8.  À propos, puis section IA (bloc gris large)
   9.  Travailler ensemble (offres)
   10. FAQ
   11. Contact
   12. Pages secondaires (agences, mentions légales, confidentialité)
   ========================================================================== */


/* 0. Carte (Expertises, Travailler ensemble, Contact)
   Minimaliste : aucun filet, aucune ombre, angles arrondis. Blanche sur les
   sections grises ; gris très léger sur les sections blanches.
   ========================================================================== */

/* Carte : blanche à fin contour, comme les cartes Expertises et projets
   (formats, expertises des pages agences) */
.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-15);
  padding: var(--space-4); /* marge plus large : le texte reste loin des coins très arrondis */
  border: var(--border-width-hairline) solid var(--border-hairline);
  border-radius: var(--card-radius);
  background: var(--surface-card);
}

.card__title {
  font-size: var(--text-h3);
}

.card p {
  color: var(--text-secondary);
}

/* Les notes (formulaire, calendrier) gardent leur gris dans les cartes */
.card .field__note {
  color: var(--text-muted);
}


/* Section compacte (bandeau logos) */
.section--tight {
  padding-block: var(--space-7);
}


/* 1. HERO
   --------------------------------------------------------------------------
   Le hero démarre sous la barre blanche de l'en-tête : barre + hero
   remplissent exactement l'écran. La photo a un léger retrait sur les côtés
   et en bas (--hero-inset) et des coins arrondis. Le texte est posé dessus,
   sans fond, en bas à gauche.
   ========================================================================== */

/* Hero pleine largeur, passe sous la barre d'en-tête en verre */
.hero {
  display: grid;
  min-height: 100svh;
}

/* Photo et texte dans la même cellule de grille */
.hero > * {
  grid-area: 1 / 1;
}

.hero__media {
  position: relative;
  overflow: hidden;
  isolation: isolate;        /* le voile reste sous le texte */
  background: var(--ink-500); /* gris moyen : montre l'emplacement de la photo, même en thème inverse */
}

/* Voile encre du bas vers le haut : le texte reste lisible quelle que soit la photo */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, var(--veil-ink) 0%, transparent 65%);
}

.hero__photo {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  background: transparent;
  color: var(--ink-300);
  object-fit: cover;
  place-items: start end;   /* libellé du réservé en haut à droite, hors du texte */
  padding: var(--space-3) var(--gutter);
}

/* Vraie photo : remplit le cadre sans l'agrandir, visage gardé dans le cadre */
img.hero__photo {
  position: absolute;
  inset: 0;
  padding: 0;
  object-position: 50% 0%;
}

/* Mobile : la photo remplit tout l'écran, cadrée sur le visage ; le texte
   se pose en bas, sur un voile plus haut et plus sombre */
@media (max-width: 47.99em) {
  img.hero__photo {
    object-position: 47% 30%;
  }

  .hero__media::after {
    background: linear-gradient(to top, rgba(14, 14, 15, .88) 0%, var(--veil-ink) 38%, transparent 70%);
  }
}

.hero__body {
  position: relative;        /* au-dessus du voile */
  align-self: end;
  width: 100%;
  max-width: calc(var(--container-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding: var(--space-8) var(--gutter) var(--space-6);
}

.hero__panel {
  display: grid;
  gap: var(--space-3);
  max-width: 46rem;
}


/* Accueil : le titre le plus grand de la page, un mot par ligne */
.hero__title {
  font-size: var(--text-display-1);
}

.hero__title span {
  display: block;
}

.hero__lead {
  max-width: var(--measure-lead);
  font-size: 1.125rem; /* mobile : le titre domine nettement le chapô */
  color: var(--text-secondary);
}

@media (min-width: 48em) {
  .hero__lead {
    font-size: var(--text-lead);
  }
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-15);
  margin-top: var(--space-1);
}


@media (min-width: 48em) {
  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

}

@media (min-width: 64em) {
  .hero__body {
    padding-bottom: var(--space-7);
  }
}

/* Accueil : titre, chapô et boutons centrés en bas de la photo, titre sur
   une ligne (deux sur mobile), voile plus marqué pour la lisibilité */
.hero--center .hero__panel {
  justify-items: center;
  max-width: 64rem;
  margin-inline: auto;
  text-align: center;
}

.hero--center .hero__title {
  font-size: var(--text-hero-center);
}

.hero--center .hero__title span {
  display: inline;
}

/* Petit libellé au-dessus du titre du hero (comme TwelveLabs) : petites
   capitales dans un cadre fin, même style que les étiquettes. Sur
   l'accueil, il fait partie du H1 (« Consultant marketing, de la
   stratégie aux résultats » pour les moteurs). */
.hero__label {
  display: block;
  width: fit-content;
  margin: 0 auto var(--space-3);
  padding: 4px var(--space-2);
  border: var(--border-width-hairline) solid currentColor;
  border-radius: 8px; /* entre les étiquettes (4 px) et les petits boutons (14 px) */
  font-family: var(--font-sans);
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  letter-spacing: .06em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hero__title .hero__label,
.hero--center .hero__title .hero__label {
  display: block;
  margin-bottom: var(--space-3);
  font-size: var(--text-body-sm);
  letter-spacing: .06em;
  line-height: 1.5;
}

.hero--center .hero__lead {
  max-width: 34rem;
  text-wrap: balance; /* lignes de longueur égale, pas de mot seul */
}

/* Accueil : le titre passe sur deux lignes sur grand écran (« De la
   stratégie / aux résultats »), et le chapô se resserre pour rester à peu
   près de la largeur du titre. Sur mobile, le titre se coupe tout seul. */
.hero__break {
  display: none;
}

@media (min-width: 80em) {
  .hero__break {
    display: inline;
  }

  .hero--center .hero__title:has(.hero__break) ~ .hero__lead {
    max-width: 31rem;
  }
}

/* Petite ligne au-dessus du titre (pages agences) : lisible sur la photo */
@media (max-width: 47.99em) {
  .hero--center .hero__lead {
    font-size: var(--text-body);
  }
}

.hero--center .hero__actions {
  justify-content: center;
  width: 100%;
}

@media (min-width: 48em) {
  .hero--center .hero__actions {
    width: auto;
  }

  .hero--center .hero__media::after {
    background: linear-gradient(to top, rgba(14, 14, 15, .78) 0%, var(--veil-ink) 22%, transparent 62%);
  }
}


/* Survol des cartes (souris uniquement) : la carte monte de 2 px avec une
   ombre très douce. Désactivé si les animations sont réduites. */
.expertise-card,
.project-card,
.offer {
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .expertise-card:hover,
  .project-card:hover,
  .offer:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
  }
}

@media (prefers-reduced-motion: reduce) {
  .expertise-card:hover,
  .project-card:hover,
  .offer:hover {
    transform: none;
  }
}

/* Photo du hero au défilement (main.js pose --hero-p, de 0 à 1 pendant
   qu'on quitte le hero) : elle zoome doucement, devient floue et
   s'assombrit, comme une mise au point qui se perd. Le texte, lui, monte
   et s'efface un peu plus vite. */
img.hero__photo {
  transform: scale(calc(1 + var(--hero-p, 0) * .25));
  filter: blur(calc(var(--hero-p, 0) * 14px)) brightness(calc(1 - var(--hero-p, 0) * .35));
  will-change: transform, filter;
}

.hero__body {
  /* le texte reste net jusqu'aux deux tiers du parcours, puis s'atténue
     légèrement (jamais sous 30 %) */
  opacity: clamp(.3, calc(1 - (var(--hero-p, 0) - .65) * 2), 1);
  transform: translateY(calc(var(--hero-p, 0) * -24px));
}


/* 2. LOGOS
   ========================================================================== */

.logos__title {
  margin-bottom: var(--space-4);
  line-height: var(--leading-normal); /* petit titre : pas l'interligne serré des h2 */
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

/* Ligne de tête (accueil) : 3 visages qui se chevauchent + la phrase.
   Mobile : visages au-dessus de la phrase ; dès la tablette : côte à côte. */
.logos__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-15);
  margin-bottom: var(--space-4);
}

.logos__head .logos__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-normal);
  text-transform: none;
  color: var(--text-primary);
}

.faces {
  display: flex;
}

.faces__item {
  flex: none;
  width: var(--face-size);
  height: var(--face-size);
  border: var(--border-width-strong) solid var(--surface-page); /* liseré qui détache les visages */
  border-radius: var(--radius-pill);
  object-fit: cover;
}

.faces__item + .faces__item {
  margin-left: calc(-1 * var(--face-overlap));
}

@media (min-width: 48em) {
  .logos__head {
    flex-direction: row;
    justify-content: center;
  }
}

/* Mobile : 2 lignes de 3 logos (accueil), un peu réduits pour tenir */
.logos__list {
  --logo-scale: .8;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-15);
}

/* Logo client : une seule teinte de gris, quelle que soit la couleur du SVG.
   Chaque logo est centré dans sa case, à une hauteur réglée à l'œil. */
.logos__list li:has(.client-logo) {
  display: grid;
  place-items: center;
  min-height: 4.5rem;
}

.client-logo {
  display: block;
  width: min(100%, calc(var(--logo-h) * var(--logo-scale, 1) * var(--logo-ratio)));
  aspect-ratio: var(--logo-ratio);
  background-color: var(--text-faint); /* gris plus clair que le texte : les logos restent discrets */
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
}

@media (min-width: 48em) {
  .logos__list {
    --logo-scale: 1;
  }
}

@media (min-width: 64em) {
  .logos__list {
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-3);
  }
}

/* Accueil : logos un peu plus petits, 4 par ligne en tablette, tous sur
   une ligne en desktop. En mobile, bandeau qui défile (voir plus bas). */
.logos__list--home {
  --logo-scale: .75;
}

@media (min-width: 48em) {
  .logos__list--home {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 64em) {
  .logos__list--home {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 1fr; /* tous les logos sur une ligne, quel que soit leur nombre */
  }
}

/* Logos en plus (13 au total) : visibles dans le bandeau défilant. Sans
   défilement (sans JS ou animations réduites), la tablette et le desktop
   gardent la sélection de 8 sur une ligne. */
@media (min-width: 48em) {
  .logos__list:not(.is-marquee) .logos__extra {
    display: none;
  }
}

/* Bandeau défilant (accueil, mobile et desktop) : la liste est doublée par
   main.js, puis glisse de la moitié de sa largeur en boucle. Bords fondus,
   pause au survol de la souris. */
.logos__marquee {
  overflow: hidden;
}

.logos__list li[data-clone] {
  display: none;
}

.logos__marquee:has(.is-marquee) {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.logos__list.is-marquee {
  display: flex;
  width: max-content;
  animation: logos-defile 52s linear infinite; /* 13 logos */
}

.logos__list.is-marquee li {
  flex: none;
  margin-right: var(--space-6);
}

/* Largeur fixe du logo : dans le bandeau, la case n'a pas de largeur propre */
.logos__list.is-marquee .client-logo {
  width: calc(var(--logo-h) * var(--logo-scale, 1) * var(--logo-ratio));
}

.logos__list.is-marquee li[data-clone] {
  display: grid;
}

@media (max-width: 47.99em) {
  .logos__marquee {
    margin-inline: calc(-1 * var(--gutter)); /* bord à bord sur mobile */
  }
}

/* Desktop : logos plus espacés, défilement plus lent (même vitesse perçue
   sur un écran plus large) */
@media (min-width: 48em) {
  .logos__list.is-marquee {
    animation-duration: 80s;
  }

  .logos__list.is-marquee li {
    margin-right: var(--space-8);
  }
}

@media (hover: hover) {
  .logos__marquee:hover .logos__list.is-marquee {
    animation-play-state: paused;
  }
}

@keyframes logos-defile {
  to { transform: translateX(-50%); }
}

/* Mouvement réduit demandé : pas de défilement, grille de 3 colonnes */
@media (prefers-reduced-motion: reduce) {
  .logos__list.is-marquee {
    display: grid;
    width: auto;
    animation: none;
  }

  .logos__list.is-marquee li {
    margin-right: 0;
  }

  .logos__list.is-marquee li[data-clone] {
    display: none;
  }

  .logos__list.is-marquee .client-logo {
    width: min(100%, calc(var(--logo-h) * var(--logo-scale, 1) * var(--logo-ratio)));
  }

  .logos__marquee,
  .logos__marquee:has(.is-marquee) {
    margin-inline: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

@media (prefers-reduced-motion: reduce) and (min-width: 48em) {
  .logos__list.is-marquee .logos__extra {
    display: none;
  }
}

/* Dix logos (page agences) : 2 colonnes sur mobile, 5 dès la tablette */
/* Pages agences : logos posés sur le bloc gris bleuté, un cran plus
   foncés pour garder le même contraste qu'en fond blanc */
.section--sunken .client-logo {
  background-color: var(--text-muted);
}

.logos__list--ten {
  --logo-scale: 1;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 48em) {
  .logos__list--ten {
    grid-template-columns: repeat(5, 1fr);
  }
}


/* 3. EXPERTISES
   ========================================================================== */

.expertises {
  display: grid;
  gap: var(--grid-gap);
}

@media (min-width: 48em) {
  .expertises {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64em) {
  .expertises {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Expertises (accueil) : quatre cartes gris clair sur fond blanc -------
   1 colonne en mobile, 2 en tablette, 4 en desktop.                        */

ul.expertise-cards {
  display: grid;
  gap: var(--grid-gap);
}

/* Carte blanche à fin contour, comme les cartes projets et formats */
.expertise-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-15);
  padding: var(--space-4); /* marge plus large : le texte reste loin des coins très arrondis */
  border: var(--border-width-hairline) solid var(--border-hairline);
  border-radius: var(--card-radius);
  background: var(--surface-card);
  color: var(--text-secondary);
}

.expertise-card__title {
  font-size: var(--text-h3);
  color: var(--text-primary);
}

/* Repère de couleur : une petite pastille avant le titre, de la couleur
   des étiquettes de projets de la même expertise. Volontairement discret. */
.expertise-card p {
  font-size: var(--text-body-sm);
  line-height: var(--leading-normal);
}

@media (min-width: 48em) {
  ul.expertise-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop : 4 sur une ligne, marges un peu réduites et texte en 14 px
   pour garder des lignes confortables */
@media (min-width: 64em) {
  ul.expertise-cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .expertise-card {
    padding: var(--space-4) var(--space-3);
  }
}

/* --- Régies pilotées : nom + formats, en grille sous les cartes ------------ */

.networks {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-7);
}

.networks__title {
  font-size: var(--text-h3);
}

.networks__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3) var(--grid-gap);
}

.network {
  display: grid;
  align-content: start;
  gap: var(--space-05);
}

.network strong {
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.network span:not(.network__logo) {
  font-size: var(--text-body-sm);
  color: var(--text-muted);
}

/* Logo de la régie : pictogramme officiel (Simple Icons, CC0), en masque,
   rempli du dégradé « Aurore » des chiffres clés. Avec JS : un reflet
   clair glisse dessus au rythme du défilement (même principe que les
   chiffres clés, --shine posé par main.js), décalé d'un logo à l'autre. */
.network__logo {
  width: var(--network-logo-size);
  height: var(--network-logo-size);
  margin-bottom: var(--space-1);
  background: linear-gradient(135deg, var(--stat-1), var(--stat-2) 38%, var(--stat-3) 68%, var(--stat-4));
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
}

.networks__list.has-shine .network__logo {
  --shine-tile: 3.5em;
  --shine-travel: 9em;
  background:
    linear-gradient(105deg,
      transparent 0%, transparent 30%,
      rgba(255, 255, 255, .55) 40%, transparent 50%,
      transparent 62%,
      rgba(255, 255, 255, .3) 67%, transparent 72%,
      transparent 100%)
      calc(var(--shine, 0) * var(--shine-travel) + var(--shine-offset, 0em)) 0 / var(--shine-tile) 100% repeat-x,
    linear-gradient(135deg, var(--stat-1), var(--stat-2) 38%, var(--stat-3) 68%, var(--stat-4));
}

.networks__list.has-shine .network:nth-child(2) .network__logo { --shine-offset: -.6em; }
.networks__list.has-shine .network:nth-child(3) .network__logo { --shine-offset: -1.2em; }
.networks__list.has-shine .network:nth-child(4) .network__logo { --shine-offset: -1.8em; }
.networks__list.has-shine .network:nth-child(5) .network__logo { --shine-offset: -2.4em; }
.networks__list.has-shine .network:nth-child(6) .network__logo { --shine-offset: -3em; }

.networks__note {
  max-width: var(--measure-prose);
  font-size: var(--text-body-sm);
  color: var(--text-muted);
}

@media (min-width: 48em) {
  .networks__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 64em) {
  .networks__list {
    grid-template-columns: repeat(6, 1fr);
  }
}


/* 4. MÉTHODE
   ========================================================================== */

/* Les 4 étapes l'une sous l'autre, séparées par des filets fins.
   Desktop : une ligne par étape (numéro, titre, texte), alignée sur les
   deux colonnes de l'en-tête de section. */
.steps {
  display: grid;
  border-top: var(--border-width-hairline) solid var(--border-mid);
}

.step {
  display: grid;
  align-content: start;
  gap: var(--space-15);
  padding-block: var(--space-4);
  border-bottom: var(--border-width-hairline) solid var(--border-mid);
}

/* Numéro d'étape : l'ordre compte, il se lit au premier coup d'œil */
.step__number {
  font-size: var(--text-h2);
  font-weight: var(--weight-medium);
  line-height: 1;
  letter-spacing: var(--tracking-heading);
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

/* Contenu d'une étape : titre, rythme (« Semaine 1 »), phrase d'intro,
   3 actions concrètes, puis le livrable sous un filet. Mobile : tout
   l'un sous l'autre. */
.step {
  grid-template-areas:
    "num"
    "title"
    "when"
    "desc"
    "list"
    "deliv";
}

.step__number      { grid-area: num; }
.step__title       { grid-area: title; }
.step__when        { grid-area: when; }
.step__desc        { grid-area: desc; }
.step__list        { grid-area: list; }
.step__deliverable { grid-area: deliv; }

.step__when {
  margin-top: calc(var(--space-1) * -1);
  font-size: var(--text-body-sm);
  color: var(--text-muted);
}

.step__desc {
  max-width: var(--measure-lead);
  color: var(--text-primary);
}

.step__list {
  display: grid;
  border-top: var(--border-width-hairline) solid var(--border-hairline);
  list-style: none;
}

.step__list li {
  padding-block: var(--space-1);
  border-bottom: var(--border-width-hairline) solid var(--border-hairline);
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
}

.step__deliverable {
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
}

.step__deliverable strong {
  display: block;
  margin-bottom: var(--space-05);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Desktop : à gauche le numéro, le titre et le rythme ; à droite l'intro
   et les actions ; le livrable en bas, sur toute la largeur du texte. */
@media (min-width: 64em) {
  .step {
    grid-template-columns: 6rem calc(50% - 6rem) minmax(0, 1fr); /* texte calé sur le chapô de l'en-tête */
    grid-template-areas:
      "num  title desc"
      ".    when  desc"
      ".    deliv list";
    grid-template-rows: auto auto 1fr;
    align-items: start;
    column-gap: 0;
    row-gap: var(--space-1);
    padding-block: var(--space-5);
  }

  .step__number {
    line-height: 1.15; /* même ligne de base visuelle que le titre */
  }

  .step__title {
    font-size: var(--text-h2);
  }

  .step__when {
    margin-top: 0;
  }

  .step__desc {
    padding-left: var(--space-5);
  }

  .step__list {
    border-top: 0;
    margin-left: var(--space-5);
  }

  .step__list li:first-child {
    border-top: var(--border-width-hairline) solid var(--border-hairline);
  }

  /* Le livrable remplit le bas de la colonne de gauche */
  .step__deliverable {
    align-self: end;
    max-width: 22rem;
    margin-top: var(--space-4);
    padding-top: var(--space-2);
    border-top: var(--border-width-hairline) solid var(--border-hairline);
  }

  .step__list {
    margin-top: var(--space-1);
  }
}


/* Méthode en cartes empilées (main.js pose .is-stacked) : chaque étape
   devient une carte qui se fige sous l'en-tête ; la suivante remonte et
   la recouvre, en laissant dépasser le haut des précédentes. La carte
   recouverte recule légèrement (--cover, 0 → 1, posé par main.js).
   Sans JS ou avec animations réduites : la liste verticale ci-dessus. */
/* Le titre de la section reste visible pendant l'empilement : il se fige
   sous l'en-tête, et les cartes se figent juste en dessous (--stack-top
   = hauteur du titre, mesurée par main.js) */
/* Mobile : pas de titre figé (il prendrait un tiers de l'écran et les
   cartes ne seraient jamais visibles en entier) ; les cartes se figent
   juste sous la barre d'en-tête. */
@media (min-width: 48em) {
  #methode.has-stack .section-head {
    position: sticky;
    top: var(--header-height-top);
    z-index: 1;
    padding-top: var(--space-2);
  }
}

#methode .steps.is-stacked {
  display: grid;
  gap: var(--space-3);
  border-top: 0;
}

#methode .steps.is-stacked .step {
  position: sticky;
  top: calc(var(--header-height-top) + var(--stack-top) + var(--i, 0) * var(--stack-offset)); /* se fige plus bas : l'empilement commence plus tôt */
  padding: var(--space-4) var(--space-3);
  border: var(--border-width-hairline) solid var(--border-hairline);
  border-radius: var(--card-radius);
  background: var(--surface-card);
  box-shadow: var(--shadow-stack);
  transform-origin: 50% 0;
  transform: scale(calc(1 - var(--cover, 0) * .04));
  filter: brightness(calc(1 - var(--cover, 0) * .04));
}

@media (min-width: 64em) {
  #methode .steps.is-stacked .step {
    padding: var(--space-6) var(--space-5);
  }

  /* Dans une carte, le texte reprend la largeur disponible */
  #methode .steps.is-stacked .step {
    grid-template-columns: 6rem minmax(0, 1fr) minmax(0, 1fr);
  }
}


/* 5. CHIFFRES CLÉS (placés en tête de la section Réalisations)
   ========================================================================== */

/* Dans la section Réalisations : bandeau de chiffres entre le titre et les
   projets, avec un grand écart avant le projet à la une */
.realisations__stats {
  margin-bottom: var(--space-8);
}

/* 4 chiffres : 2 colonnes sur mobile, 4 sur desktop */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5) var(--grid-gap);
}

.stat {
  display: grid;
  align-content: start;
  gap: var(--space-1);
}


.stat__value {
  font-family: var(--font-display);
  font-size: var(--text-display-2);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-tight);
  font-variant-numeric: tabular-nums;
}

/* Chiffres en dégradé « Aurore » (chiffres clés et numéros d'étapes de la
   Méthode) : bleu acier, bleu roi, violet (teintes de l'orbe IA, foncées) */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .stat__value,
  .step__number,
  .gains__figure {
    width: fit-content;
    background: linear-gradient(90deg, var(--stat-1), var(--stat-2) 38%, var(--stat-3) 68%, var(--stat-4));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* Le dégradé ne couvre que la boîte du texte : avec l'interlettrage
       serré, le dernier signe (%, €) en dépasse. On élargit la boîte sans
       décaler la mise en page. */
    padding: 0 0.12em 0.06em 0;
    margin: 0 -0.12em -0.06em 0;
  }
}

/* Reflet sur les chiffres clés : un motif régulier de bandes claires
   (une franche, une plus fine), répété, posé sur le dégradé et découpé
   dans le texte. Il glisse au rythme du défilement (--shine posé par
   main.js) : un reflet passe sur chaque chiffre à intervalles réguliers,
   avec un léger décalage d'un chiffre à l'autre (--shine-offset). */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .stats.has-shine .stat__value {
    background:
      linear-gradient(105deg,
        transparent 0%, transparent 30%,
        var(--shine-color) 40%, transparent 50%,
        transparent 62%,
        var(--shine-color-soft) 67%, transparent 72%,
        transparent 100%)
        calc(var(--shine, 0) * var(--shine-travel) + var(--shine-offset, 0em)) 0 / var(--shine-tile) 100% repeat-x,
      linear-gradient(90deg, var(--stat-1), var(--stat-2) 38%, var(--stat-3) 68%, var(--stat-4));
    -webkit-background-clip: text;
    background-clip: text;
  }

  .stats.has-shine .stat:nth-child(2) .stat__value { --shine-offset: -1.5em; }
  .stats.has-shine .stat:nth-child(3) .stat__value { --shine-offset: -3em; }
  .stats.has-shine .stat:nth-child(4) .stat__value { --shine-offset: -4.5em; }
}

.stat__label {
  font-size: var(--text-body-sm);
  color: var(--text-muted);
}

.stats__note {
  max-width: var(--measure-prose);
  margin-top: var(--space-5);
  font-size: var(--text-caption);
  color: var(--text-muted);
}

@media (min-width: 64em) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* 6. RÉALISATIONS
   ========================================================================== */

/* Secteur (au-dessus du nom du projet) : petit texte gris, casse normale */
.project__sector {
  font-size: var(--text-caption);
  color: var(--text-muted);
}

/* --- 6a. Projet à la une (Harmony) ---------------------------------------- */

/* Écart avant les autres projets : serré sur mobile (le cas à la une n'est
   pas une carte, un grand vide le détacherait de la liste), large sur
   desktop */
.featured {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

@media (min-width: 64em) {
  .featured {
    margin-bottom: var(--space-8);
  }
}

.featured__visual {
  --ratio: 4 / 3;
}

img.featured__visual {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--card-radius);
}

.featured__body {
  display: grid;
  align-content: center;
  gap: var(--space-2);
}

.featured__title {
  font-size: var(--text-h1);
  letter-spacing: var(--tracking-title);
  line-height: var(--leading-title);
}

.featured__body > p:last-child {
  max-width: var(--measure-prose);
  line-height: var(--leading-loose);
  color: var(--text-secondary);
}

/* Projet à la une découpé en 3 lignes courtes (Contexte, Campagnes, Outils) */
.featured__facts {
  display: grid;
  gap: var(--space-2);
  max-width: var(--measure-prose);
  margin-top: var(--space-1);
}

.featured__facts dt {
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}

.featured__facts dd {
  margin: 0;
  text-wrap: pretty;
  color: var(--text-secondary);
}

@media (min-width: 64em) {
  .featured {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); /* minmax : le visuel ne peut plus écraser le texte */
    gap: var(--space-7);
  }
}

/* --- 6b. Grille de projets --------------------------------------------------
   1 colonne sur mobile, 2 sur tablette, 3 sur desktop. Toutes les cartes sont
   visibles d'un coup : pas de défilement horizontal.                        */

.projects {
  display: grid;
  gap: var(--grid-gap);
}

/* Carte projet : blanche à fin contour, comme les cartes Expertises */
.project-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-15);
  padding: var(--space-4); /* marge plus large : le texte reste loin des coins très arrondis */
  border: var(--border-width-hairline) solid var(--border-hairline);
  border-radius: var(--card-radius);
  background: var(--surface-card);
}

.project-card__title {
  font-size: var(--text-h3);
}

.project-card__context {
  font-size: var(--text-caption);
  color: var(--text-muted);
}

.project-card p:last-child {
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
}

/* Mobile : 3 cartes, les suivantes derrière « Voir les autres réalisations ».
   Sans JS, le bouton reste masqué et toutes les cartes sont visibles. */
.projects__more {
  margin-top: var(--space-4);
}

.projects__more[hidden] {
  display: none;
}

.projects.is-collapsed .project-card--extra {
  display: none;
}

@media (min-width: 48em) {
  .projects {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects.is-collapsed .project-card--extra {
    display: flex;
  }

  .projects__more {
    display: none;
  }
}

@media (min-width: 64em) {
  .projects {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Sous-titre entre les logos et les cartes (page agences) */
.projects__subtitle {
  margin: var(--space-7) 0 var(--space-4);
  font-size: var(--text-h2);
}


/* 7. TÉMOIGNAGES
   ========================================================================== */

.testimonials {
  display: grid;
  gap: var(--space-5);
  /* le témoignage principal joue le rôle de titre : même écart sous le
     surtitre que dans les têtes de section (.section-head) */
  margin-top: var(--space-2);
}

.testimonial {
  display: grid;
  align-content: start;
  gap: var(--space-2);
}

.testimonial__quote {
  font-size: var(--text-lead);
  color: var(--text-secondary);
}

.testimonial__author {
  font-size: var(--text-body-sm);
  color: var(--text-muted);
}

/* Témoignage principal : en grand */
.testimonial--main {
  padding-bottom: var(--space-3);
}

.testimonial--main .testimonial__quote {
  max-width: 24em;
  font-family: var(--font-display);
  font-size: var(--text-quote); /* plus petit qu'un titre : les vrais avis font 30 à 40 mots */
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-title);
  line-height: var(--leading-snug);
  color: var(--text-primary);
}

/* Nom puis fonction(s), une par ligne (le nom doit garder sa largeur pour
   le soulignement du lien) */
.testimonial__author:has(.testimonial__name) {
  display: grid;
  justify-items: start;
}

.testimonial__name {
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

/* Tablette : 1 principal pleine largeur + 2 courts en colonnes */
@media (min-width: 48em) {
  .testimonials {
    grid-template-columns: repeat(2, 1fr);
    column-gap: var(--space-5);
  }

  .testimonial--main {
    grid-column: 1 / -1;
  }
}

/* Desktop : principal à gauche, les deux courts empilés à droite,
   séparés par un filet vertical */
@media (min-width: 64em) {
  .testimonials {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-rows: auto auto;
    column-gap: 0;
    row-gap: var(--space-5);
  }

  .testimonial--main {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-content: center;
    padding: 0 var(--space-6) 0 0;
  }

  .testimonial:not(.testimonial--main) {
    grid-column: 2;
    padding-left: var(--space-6);
    border-left: var(--border-width-hairline) solid var(--border-mid);
  }

  /* Un seul avis court (pages agences) : sur toute la hauteur, centré */
  .testimonial--solo {
    grid-row: 1 / span 2;
    align-content: center;
  }

  .testimonial:not(.testimonial--main) + .testimonial:not(.testimonial--main) {
    padding-top: var(--space-5);
    margin-top: calc(-1 * var(--space-5));
  }
}


/* 8. À PROPOS + ENCART IA
   ========================================================================== */

.about {
  display: grid;
  gap: var(--space-5);
}

/* Trois faits pratiques (lieu, déplacements, facturation) */
/* Fiche pratique : libellé court à gauche, information à droite, lignes
   séparées par des filets (comme les étapes et les usages de l'IA).
   Mobile : le libellé passe au-dessus. */
.about__facts {
  display: grid;
  width: min(100%, 34rem);
  border-top: var(--border-width-hairline) solid var(--border-mid);
}

.about__facts > div {
  display: grid;
  gap: var(--space-025);
  padding-block: var(--space-15);
  border-bottom: var(--border-width-hairline) solid var(--border-mid);
}

.about__facts dt {
  font-size: var(--text-body-sm);
  color: var(--text-muted);
}

.about__facts dd {
  color: var(--text-primary);
}

@media (min-width: 48em) {
  .about__facts > div {
    grid-template-columns: 8.5rem minmax(0, 1fr);
    align-items: baseline;
    gap: var(--space-2);
  }
}


/* Portrait en 4:5 */
.about__photo {
  --ratio: 4 / 5;
  max-width: 28rem;
}

img.about__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--card-radius);
}

/* Monogramme « HC » à la place de la photo : même format que la photo
   (4/5, très arrondi), carte encre, initiales blanches en très grand */
.about__mono {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--card-radius);
  background: var(--ink-900);
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(96px, 12vw, 168px);
  font-weight: var(--weight-semibold);
  letter-spacing: -.02em;
  line-height: 1;
}

/* Mobile : moins haut, pour ne pas occuper tout l'écran */
@media (max-width: 47.99em) {
  .about__mono {
    aspect-ratio: 16 / 9;
    max-width: none;
  }
}

.about__body {
  display: grid;
  align-content: center;
  gap: var(--space-3);
}

.about__body > p:not(.eyebrow) {
  max-width: var(--measure-prose);
  line-height: var(--leading-loose);
  color: var(--text-secondary);
}

@media (min-width: 64em) {
  .about {
    grid-template-columns: 5fr 7fr;
    gap: var(--space-8);
    align-items: center;
  }
}

/* --- L'IA : fond pastel (recette TwelveLabs) ------------------------------
   Une bande de couleurs horizontale (vert à gauche, doré, pêche, rose à
   droite) à 50 %, recouverte d'un voile blanc qui ne laisse voir la
   couleur que peu à peu. Le dégradé démarre à mi-hauteur de l'À propos
   (à peine visible), culmine au milieu de l'IA, puis s'efface dans la
   moitié haute de la Méthode. Le voile vaut --ai-veil-join à la jonction des deux
   sections, pour une continuité parfaite. */
.ai-lead-in,
.ai-box {
  --ai-band: linear-gradient(270deg,
    var(--band-1) 0.8%,
    var(--band-2) 12%,
    var(--band-3) 24.5%,
    var(--band-4) 100%);
  --ai-veil-join: rgba(255, 255, 255, .6);
}

/* Moitié basse de l'À propos : la couleur apparaît très doucement ;
   haut de la Méthode : elle s'efface de la même façon */
.ai-lead-out {
  --ai-band: linear-gradient(270deg,
    var(--band-1) 0.8%,
    var(--band-2) 12%,
    var(--band-3) 24.5%,
    var(--band-4) 100%);
  --ai-veil-join: rgba(255, 255, 255, .6);
  position: relative;
  isolation: isolate;
}

.ai-lead-out::before {
  content: "";
  position: absolute;
  inset: 0 0 45%;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, var(--ai-veil-join) 0%, var(--surface-page) 100%),
    var(--grain) 0 0 / var(--grain-size),
    var(--ai-band),
    var(--surface-page);
}

.ai-lead-in {
  position: relative;
  isolation: isolate;
}

.ai-lead-in::before {
  content: "";
  position: absolute;
  inset: 50% 0 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, var(--surface-page) 0%, var(--ai-veil-join) 100%),
    var(--grain) 0 0 / var(--grain-size),
    var(--ai-band),
    var(--surface-page);
}

.ai-box {
  background:
    linear-gradient(to bottom,
      var(--ai-veil-join) 0%,
      transparent 40%,
      transparent 60%,
      var(--ai-veil-join) 100%),
    var(--grain) 0 0 / var(--grain-size),
    var(--ai-band),
    var(--surface-page);
}

.ai-box__inner {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  text-align: center;
}

.ai-box__title {
  max-width: 16em;
}

/* --- Orbe IA ---------------------------------------------------------------
   Étincelle à quatre branches (SVG), deux plus petites autour, sur un halo
   flou aux couleurs du dégradé. Fixe (plus d'animation). */
.ai-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--ai-orb-size);
  height: var(--ai-orb-size);
  margin-bottom: var(--space-2);
}

.ai-orb__halo {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: conic-gradient(from 180deg,
    var(--orb-1), var(--orb-2), var(--orb-3), var(--orb-4), var(--orb-1));
  filter: blur(14px) saturate(150%);
  opacity: 1;
}

/* Étincelle fine, remplie du même dégradé que les chiffres clés */
.ai-orb__spark {
  position: relative;
  width: 56%;
  height: 56%;
  fill: url(#ai-spark-grad);
  filter: drop-shadow(0 4px 10px rgba(58, 85, 194, .22));
}

.ai-orb__spark--small,
.ai-orb__spark--tiny {
  position: absolute;
  filter: none;
}

.ai-orb__spark--small {
  top: 6%;
  right: 4%;
  width: 18%;
  height: 18%;
}

.ai-orb__spark--tiny {
  bottom: 12%;
  left: 6%;
  width: 11%;
  height: 11%;
}

/* Lecture au fil du scroll : les mots s'allument l'un après l'autre
   (mots créés par main.js). Tout est allumé quand le texte arrive au
   centre de l'écran ; la phrase de réassurance n'est jamais atténuée. */
.ai-word {
  opacity: .25;
  transition: opacity var(--duration-base) var(--ease-out);
}

.ai-word.is-lit {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .ai-word {
    opacity: 1;
  }
}

.ai-box__body {
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  max-width: 40rem;
  line-height: var(--leading-normal);
  color: var(--text-secondary);
}

.ai-box__lead {
  max-width: 32rem;
  margin-inline: auto;
}

/* Les 4 usages : une ligne chacun, séparés par des filets (comme les
   étapes de la Méthode) */
.ai-uses {
  display: grid;
  width: min(100%, 30rem);
  margin: var(--space-3) auto 0;
  border-top: var(--border-width-hairline) solid var(--border-mid);
  list-style: none;
}

.ai-uses li {
  padding-block: var(--space-15);
  border-bottom: var(--border-width-hairline) solid var(--border-mid);
  font-size: var(--text-lead);
  color: var(--text-primary);
}

/* Réassurance : la phrase clé, mise en avant */
.ai-box__note {
  max-width: 28rem;
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-heading);
  line-height: var(--leading-snug);
  color: var(--text-primary);
}


/* 9. TRAVAILLER ENSEMBLE (offres) — cartes façon grille tarifaire
   (inspirées de TwelveLabs) : blanches, très arrondies, sans filet ; le
   format recommandé finit en dégradé pastel, les autres en voile léger.
   ========================================================================== */

.offers {
  display: grid;
  gap: var(--grid-gap);
}

.offer {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-3) var(--space-5);
  border-radius: var(--offer-radius);
  background:
    linear-gradient(to bottom, transparent 70%, var(--offer-fade) 100%),
    var(--surface-card);
}

.offer--featured {
  background:
    linear-gradient(to bottom, var(--surface-card) 35%, transparent 60%),
    var(--grain) 0 0 / var(--grain-size),
    linear-gradient(to bottom,
      var(--offer-1) 40%,
      var(--offer-2) 70%,
      var(--offer-3) 100%),
    var(--surface-card); /* blanc dessous : couleurs propres sur le bloc gris */
}

.offer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-15);
}

.offer__title {
  font-size: var(--text-h3);
}

.offer__pitch {
  color: var(--text-secondary);
}

/* Le format, en grand, comme un prix */
.offer__value {
  margin-top: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-title);
  line-height: var(--leading-snug);
  color: var(--text-primary);
}

.offer__value span {
  display: block;
  margin-top: var(--space-05);
  font-family: var(--font-sans);
  font-size: var(--text-body-sm);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-normal);
  color: var(--text-muted);
}

.offer .btn {
  margin-block: var(--space-1) var(--space-2);
}

/* Contenu sous un filet, libellé au-dessus */
.offer__row {
  display: grid;
  gap: var(--space-1);
  padding-top: var(--space-2);
  border-top: var(--border-width-hairline) solid var(--border-hairline);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
}

.offer__label {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}

.offers__note {
  max-width: var(--measure-lead);
  margin: var(--space-5) auto 0;
  text-align: center;
  color: var(--text-secondary);
}

@media (min-width: 64em) {
  .offers {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Les lignes des trois cartes s'alignent (titre, accroche, format…) */
  @supports (grid-template-rows: subgrid) {
    .offer {
      display: grid;
      grid-row: span 5;
      grid-template-rows: subgrid;
      align-content: start;
    }
  }
}


/* 10. FAQ — accordéon <details>/<summary>, en deux colonnes sur desktop
   (inspiré de TwelveLabs). Questions séparées par des filets fins ; le
   « + » pivote en « × » à l'ouverture.
   ========================================================================== */

.faq {
  display: grid;
  border-top: var(--border-width-hairline) solid var(--border-hairline);
}

.faq__col {
  display: flex;
  flex-direction: column;
}

.faq__item {
  border-bottom: var(--border-width-hairline) solid var(--border-hairline);
}

@media (min-width: 64em) {
  .faq {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-6);
    align-items: start;
    border-top: 0;
  }

  .faq__col {
    border-top: var(--border-width-hairline) solid var(--border-hairline);
  }

  .faq__answer {
    padding-right: var(--space-6);
  }
}

.faq__question {
  position: relative;
  display: block;
  padding: var(--space-3) var(--space-6) var(--space-3) 0;
  font-size: var(--text-lead);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-heading);
  line-height: var(--leading-snug);
  list-style: none;
  cursor: pointer;
  transition: var(--transition-control);
}

.faq__question:hover {
  color: var(--text-accent);
}

/* Masque le triangle natif (Safari) */
.faq__question::-webkit-details-marker {
  display: none;
}

/* Signe + dessiné en CSS */
.faq__question::before,
.faq__question::after {
  content: "";
  position: absolute;
  top: 50%;
  right: var(--space-1);
  width: 14px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--duration-slow) var(--ease-out);
}

.faq__question::after {
  transform: rotate(90deg);
}

.faq__item[open] .faq__question::before {
  transform: rotate(45deg);
}

.faq__item[open] .faq__question::after {
  transform: rotate(135deg);
}

.faq__answer {
  max-width: var(--measure-prose);
  padding: 0 0 var(--space-3);
  line-height: var(--leading-loose);
  color: var(--text-secondary);
}


/* 11. CONTACT
   ========================================================================== */

.contact__cta {
  margin-top: auto;
  align-self: flex-start;
}

/* Calendrier de réservation Cal.com : pleine largeur de la carte. Cal.com
   ajuste lui-même la hauteur de son cadre ; pendant le chargement, une
   hauteur réservée et un message évitent un trou puis un saut. */
.booking {
  margin-top: var(--space-1);
}

.booking iframe {
  display: block;
  width: 100%;
  border: 0;
}

.booking.is-loading {
  display: grid;
  place-items: center;
  min-height: var(--booking-height);
  border-radius: var(--card-radius);
  background: var(--surface-card); /* blanc : se détache du bloc gris */
}

.booking.is-loading::before {
  content: "Chargement du calendrier…";
  font-size: var(--text-body-sm);
  color: var(--text-muted);
}

/* Le cadre Cal.com est posé : le message laisse la place */
.booking.is-loading:has(iframe)::before {
  content: none;
}

/* Section Contact en noir (data-theme="inverse"), pleine largeur, soudée
   au footer : grand arrondi en haut à gauche et à droite seulement */
.section--contact {
  border-radius: var(--contact-radius) var(--contact-radius) 0 0;
  background: var(--surface-page);
}

/* Champs sur fond noir : pleins, sans contour, le contour revient au survol */
.section--contact .field__input {
  border-color: transparent;
  background-color: var(--surface-card);
}

.section--contact .field__input:hover {
  border-color: var(--border-mid);
}

/* Deux blocs centrés l'un sous l'autre : réserver, puis écrire */
.contact__block + .contact__block {
  margin-top: var(--space-8);
}

.contact__block .booking {
  max-width: 64rem;
  margin-inline: auto;
}

/* Formulaire : colonne centrée, bouton sur toute la largeur */
.contact__block--form .form {
  max-width: 40rem;
  margin-inline: auto;
}

.contact__block--form .form .contact__cta {
  margin-top: var(--space-1);
}

.contact__alt {
  max-width: var(--measure-prose);
  margin: var(--space-6) auto 0;
  text-align: center;
  color: var(--text-secondary);
}


/* 12. PAGES SECONDAIRES (agences, mentions légales, confidentialité)
   --------------------------------------------------------------------------
   En-tête de page (surtitre + h1 + chapô), blocs de prose pour les pages
   légales, mise en avant finale « Parlons-en ».
   ========================================================================== */

.page-head {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.page-head__intro {
  max-width: var(--measure-lead);
  font-size: var(--text-lead);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
}

.page-head__meta {
  font-size: var(--text-caption);
  color: var(--text-muted);
}

/* Prose longue des pages légales : h2 espacés, listes à puces conservées */
.legal {
  display: grid;
  gap: var(--space-5);
  max-width: var(--measure-prose);
}

.legal section {
  display: grid;
  gap: var(--space-15);
}

.legal h2 {
  font-size: var(--text-h2);
}

.legal h3 {
  font-size: var(--text-h3);
  margin-top: var(--space-1);
}

.legal p,
.legal li,
.legal address {
  line-height: var(--leading-loose);
  color: var(--text-secondary);
}

.legal address {
  font-style: normal;
}

.legal ul {
  padding-left: var(--space-3);
}

/* Information à compléter avant mise en ligne : visible en relecture */
.todo {
  padding: var(--space-025) var(--space-05);
  background: var(--amber-100);
  color: var(--amber-600);
  font-weight: var(--weight-medium);
}

/* Ce que l'agence y gagne : grille « bento » de cartes blanches.
   Mobile : une colonne. Tablette : 2 colonnes, la 1re carte sur toute la
   largeur. Desktop : 2 grandes cartes, puis 3 petites. */
.gains {
  display: grid;
  gap: var(--grid-gap);
}

.gains__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-15);
  padding: var(--space-4);
  border: var(--border-width-hairline) solid var(--border-hairline);
  border-radius: var(--card-radius);
  background: var(--surface-card);
  color: var(--text-secondary);
}

.gains__card h3 {
  font-size: var(--text-h3);
  color: var(--text-primary);
}

.gains__card p {
  font-size: var(--text-body-sm);
}

/* Icône dans une pastille ronde grise : repère discret, monochrome */
.gains__icon {
  box-sizing: content-box;
  width: 22px;
  height: 22px;
  margin-bottom: var(--space-2);
  padding: 13px;
  border-radius: var(--radius-pill);
  background: var(--surface-sunken);
  color: var(--text-primary);
}

/* Grande carte 1 : le délai en chiffre, en dégradé « Aurore » comme les
   chiffres clés */
.gains__card .gains__figure {
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-display-2);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-tight);
  font-variant-numeric: tabular-nums;
}

/* Grande carte 2 : le circuit « brief, objectif, budget → arbitrages » en
   petites étiquettes ; la dernière en noir (ce que je vous rends) */
.gains__flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
  list-style: none;
}

.gains__flow li {
  padding: 6px var(--space-15);
  border: var(--border-width-hairline) solid var(--border-mid);
  border-radius: 8px;
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}

.gains__flow .gains__flow-out {
  border-color: var(--ink-900);
  background: var(--ink-900);
  color: var(--white);
}

/* Flèche avant la dernière étiquette */
.gains__flow-out::before {
  content: "→";
  margin-right: var(--space-1);
  opacity: .7;
}

@media (min-width: 48em) {
  .gains {
    grid-template-columns: repeat(2, 1fr);
  }

  .gains__card:first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64em) {
  .gains {
    grid-template-columns: repeat(6, 1fr);
  }

  .gains__card {
    grid-column: span 2;
    padding: var(--space-5);
  }

  .gains__card--wide,
  .gains__card:first-child {
    grid-column: span 3;
  }
}


/* Mise en avant finale : bloc encre, même registre que le panneau du hero */
.page-cta {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-4);
  background: var(--surface-page); /* encre, via data-theme="inverse" */
  border-radius: var(--radius-md);
}

.page-cta h2 {
  max-width: 18em;
}

.page-cta p {
  max-width: var(--measure-lead);
  font-size: var(--text-lead);
  color: var(--text-secondary);
}

.page-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-15);
}

@media (min-width: 64em) {
  .page-cta {
    padding: var(--space-7) var(--space-6);
  }
}


/* 13. CV (/cv/)
   Mêmes composants que le reste du site : titres, filets, étiquettes en
   contour, chiffres clés. Deux colonnes sur desktop (expériences à gauche,
   compétences et outils à droite). Mise en page dédiée pour l'export PDF.
   ========================================================================== */

.cv {
  padding-top: calc(var(--header-height-top) + var(--space-6));
}

.cv-head {
  display: grid;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  border-bottom: var(--border-width-hairline) solid var(--border-mid);
}

.cv-head__main {
  display: grid;
  gap: var(--space-15);
}

.cv-head h1 {
  font-size: var(--text-hero-center);
  font-weight: var(--weight-medium);
}

.cv-head__role {
  font-size: var(--text-lead);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}

.cv-head__intro {
  max-width: var(--measure-lead);
  color: var(--text-secondary);
}

.cv-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-15);
  align-self: end;
}

@media (min-width: 64em) {
  .cv-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}

/* Chiffres clés : même style que ceux de l'accueil */
.cv-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4) var(--grid-gap);
  padding-block: var(--space-5);
  border-bottom: var(--border-width-hairline) solid var(--border-mid);
  list-style: none;
}

.cv-stats li {
  display: grid;
  align-content: start;
  gap: var(--space-05);
}

.cv-stats strong {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-tight);
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.cv-stats span {
  font-size: var(--text-body-sm);
  color: var(--text-muted);
}

@media (min-width: 64em) {
  .cv-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.cv-layout {
  display: grid;
  gap: var(--space-6);
  padding-top: var(--space-6);
}

@media (min-width: 64em) {
  .cv-layout {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: var(--space-8);
  }
}

.cv-main,
.cv-side {
  display: grid;
  align-content: start;
  gap: var(--space-6);
}

.cv-block {
  display: grid;
  gap: var(--space-2);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

.cv-block__title {
  font-size: var(--text-h3);
  color: var(--text-primary);
}

.cv-side .cv-block {
  gap: var(--space-15);
  font-size: var(--text-body-sm);
}

/* Expériences : une ligne par poste, séparées par des filets */
.cv-timeline {
  display: grid;
  list-style: none;
  border-top: var(--border-width-hairline) solid var(--border-hairline);
}

.cv-job {
  display: grid;
  gap: var(--space-15);
  padding-block: var(--space-4);
  border-bottom: var(--border-width-hairline) solid var(--border-hairline);
}

.cv-job__head {
  display: grid;
  gap: var(--space-05);
}

.cv-job__title {
  font-size: var(--text-h3);
  color: var(--text-primary);
}

.cv-job__meta {
  font-size: var(--text-body-sm);
  color: var(--text-muted);
}

.cv-job__list {
  display: grid;
  gap: var(--space-1);
  padding-left: 1.1em;
}

.cv-job__list strong {
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}

/* Avis */
.cv-quote {
  display: grid;
  gap: var(--space-15);
  padding-left: var(--space-3);
  border-left: var(--border-width-hairline) solid var(--border-mid);
}

.cv-quote blockquote {
  font-size: var(--text-lead);
  color: var(--text-primary);
}

.cv-quote figcaption {
  font-size: var(--text-body-sm);
  color: var(--text-muted);
}

.cv-quote a,
.cv-facts a {
  color: var(--text-primary);
}

/* Colonne latérale */
.cv-facts {
  display: grid;
  gap: var(--space-05);
  list-style: none;
}

.cv-skills {
  display: grid;
  gap: var(--space-15);
}

.cv-skills dt {
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}

/* Élément à compléter : cadre pointillé, visible à l'écran comme en PDF */
.cv-todo {
  padding: 0 var(--space-05);
  border: var(--border-width-hairline) dashed var(--text-faint);
  border-radius: var(--tag-radius);
  color: var(--text-muted);
}

/* Export PDF (bouton « Télécharger en PDF » = impression du navigateur) :
   sans en-tête, footer ni boutons, sur fond blanc, deux colonnes gardées */
@media print {
  @page {
    size: A4;
    margin: 14mm 14mm 16mm;
  }

  .site-header,
  .site-footer,
  .sticky-cta,
  .skip-link,
  .cv-head__actions {
    display: none !important;
  }

  body {
    font-size: 10.5pt;
  }

  .cv {
    padding: 0;
  }

  .cv .container {
    max-width: none;
    padding: 0;
  }

  .cv-head h1 {
    font-size: 26pt;
  }

  .cv-head,
  .cv-stats {
    padding-block: 6mm;
  }

  .cv-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cv-stats strong {
    font-size: 16pt;
  }

  /* En impression, les grilles se coupent mal entre deux pages :
     on repasse en flux simple (flex pour les deux colonnes, blocs dedans) */
  .cv-layout {
    display: flex;
    align-items: flex-start;
    gap: 10mm;
    padding-top: 6mm;
  }

  .cv-main {
    flex: 2 1 0;
  }

  .cv-side {
    flex: 1 1 0;
  }

  .cv-main,
  .cv-side,
  .cv-block,
  .cv-job,
  .cv-job__head,
  .cv-job__list,
  .cv-timeline,
  .cv-skills,
  .cv-quote {
    display: block;
  }

  .cv-block + .cv-block {
    margin-top: 6mm;
  }

  .cv-block__title {
    margin-bottom: 2.5mm;
  }

  .cv-block p + p,
  .cv-skills > div + div,
  .cv-job__list li + li,
  .cv-job__text + .cv-job__list {
    margin-top: 1.5mm;
  }

  .cv-job {
    padding-block: 3.5mm;
  }

  .cv-job__head {
    margin-bottom: 2mm;
    break-after: avoid;
  }

  .cv-job__list li,
  .cv-skills > div,
  .cv-quote {
    break-inside: avoid;
  }

  .cv-quote figcaption {
    margin-top: 2mm;
  }

  .cv-block__title,
  .cv-job__title {
    font-size: 12pt;
  }

  .cv-quote blockquote {
    font-size: 11pt;
  }

  a {
    text-decoration: none;
  }
}


/* PAGE PROVISOIRE (/provisoire/, publiée comme accueil le temps de finir
   le site) : fond encre, une barre avec l'identité, le titre centré sur
   tout l'écran, puis le calendrier de réservation.
   ========================================================================== */

.soon-page {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  background: var(--surface-page); /* encre, via data-theme="inverse" */
}

/* Pas de marge réservée à l'en-tête fixe du site : ici, la barre est posée
   sur le hero */
.soon-page main {
  padding-top: 0;
}

/* La barre se pose par-dessus le haut du hero : le titre se centre sur
   toute la hauteur de l'écran */
.soon__bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

.soon__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: var(--header-height-top);
}

.soon__id {
  display: flex;
  align-items: center;
  gap: var(--space-15);
}

/* Monogramme : en blanc sur l'encre (l'inverse de l'en-tête clair) */
.soon__mono {
  background: var(--white);
  color: var(--ink-900);
}

.soon__id-text {
  display: grid;
  gap: 1px;
}

.soon__name {
  font-size: var(--text-header-name-small);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-heading);
  line-height: 1.2;
  color: var(--text-primary);
}

.soon__id .status {
  font-size: var(--text-caption);
  line-height: 1.2;
}

.soon__id .status__dot {
  order: 1;
}

/* Titre : centré verticalement sur tout l'écran, comme le hero du site */
.soon__hero {
  display: grid;
  min-height: 100svh;
  padding-block: var(--header-height-top); /* même marge en haut et en bas : centrage exact */
}

.soon__hero-inner {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--space-3);
  text-align: center;
}

.soon__title {
  font-size: var(--text-hero-center);
}

.soon__title .hero__label {
  margin-inline: auto;
}

.soon__lead {
  max-width: 34rem;
  font-size: var(--text-lead);
  color: var(--text-secondary);
  text-wrap: balance;
}

.soon__note {
  font-size: var(--text-body-sm);
  color: var(--text-muted);
}

.soon__booking {
  padding-block: var(--space-6) var(--space-8);
}

.soon__footer {
  margin-top: auto;
  padding-block: var(--space-4);
  border-top: var(--border-width-hairline) solid var(--border-hairline);
  font-size: var(--text-body-sm);
  color: var(--text-muted);
}

.soon__footer-inner,
.soon__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.soon__legal {
  list-style: none;
}

.soon__footer a {
  color: var(--text-muted);
}

.soon__footer a:hover {
  color: var(--text-primary);
}

@media (min-width: 80em) {
  .soon-page .hero__break {
    display: inline;
  }
}
