/* Performo Solutions — « Le bon coup »
   Système validé le 2026-11-11 (maquettes Claude Design) :
   six tailles de texte, grille de 1200 px, espacements multiples de 8, 112 px entre sections.
   Papier crème, encre, un seul orange. Une seule police : Hanken Grotesk. */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fff8f0;
  --paper-deep: #fbecdb;
  --paper-tete: #fdf6ef;
  --ink: #151918;
  --ink-soft: #4d463e;
  --ink-mute: #6b6259;
  --line: #e9d3bb;
  --orange: #ec540c;
  --orange-press: #cc430a;
  --orange-text: #b53c06;

  /* Les six tailles. Les deux grandes rétrécissent sur petit écran. */
  --t-page: clamp(2.5rem, 1.35rem + 4.6vw, 4.25rem);   /* 68 */
  --t-section: clamp(2rem, 1.5rem + 2vw, 2.75rem);     /* 44 */
  --t-carte: 1.375rem;                                  /* 22 */
  --t-chapeau: 1.25rem;                                 /* 20 */
  --t-texte: 1.0625rem;                                 /* 17 */
  --t-etiquette: 0.8125rem;                             /* 13 */

  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: 1.5rem;
  --max: 75rem;                                         /* 1200 */
  --section: clamp(4.5rem, 9vw, 7rem);                  /* 112 */
  --radius: 1rem;                                       /* 16 */
  --header-h: 7.125rem;                                 /* 24 + 66 + 24 */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--orange) var(--paper-deep);
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-texte);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--orange); color: var(--paper); }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--sans); font-weight: 700; margin: 0; text-wrap: balance; }
h1 { font-size: var(--t-page); line-height: 1.03; letter-spacing: -0.02em; }
h2 { font-size: var(--t-section); line-height: 1.1; letter-spacing: -0.015em; }
h3 { font-size: var(--t-carte); line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 20; background: var(--ink); color: var(--paper); padding: 0.75rem 1rem; }
.skip:focus { top: 1rem; }

/* ---------- Petites pièces communes ---------- */

.etiquette { font-size: var(--t-etiquette); line-height: 1.4; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-text); }
.chapeau { font-size: var(--t-chapeau); line-height: 1.5; color: var(--ink-soft); }

.arrow { width: 1.5rem; height: 1.5rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.5s var(--ease); }
.coche { width: 1.5rem; height: 1.5rem; flex: none; margin-top: 0.125rem; fill: none; stroke: var(--orange); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.icone { width: 2rem; height: 2rem; flex: none; fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Bouton : pilule de 56 px, texte blanc sur orange foncé. */
.button {
  display: inline-flex; align-items: center; gap: 1.5rem;
  min-height: 3.5rem; padding: 0.5rem 1.625rem 0.5rem 1.75rem;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--orange-press); color: #fff;
  font: inherit; font-size: var(--t-texte); font-weight: 600; line-height: 1.2;
  transition: background-color 0.25s;
}
.button:hover { background: var(--orange-text); }
.button:hover .arrow { transform: translateX(5px); }
.button--paper { background: var(--paper); color: var(--ink); gap: 0.75rem; }
.button--paper:hover { background: #fff; }

.link {
  font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 0.35em;
  transition: text-underline-offset 0.3s var(--ease), color 0.2s;
}
a.link:hover, a:hover > .link { text-underline-offset: 0.5em; color: var(--orange-text); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 0.5rem; }

/* ---------- Sections : 1200 px, 112 px, titre centré ---------- */

.section--deep { background: var(--paper-deep); }
.wrap {
  max-width: var(--max); margin: 0 auto; padding: var(--section) var(--gutter);
  display: flex; flex-direction: column; align-items: center; gap: 3rem;
}
/* Deux sections crème qui se suivent : un seul espace entre les deux. */
.section:not(.section--deep) + .section:not(.section--deep) > .wrap { padding-top: 0; }
/* La bannière sombre continue la section beige qui la précède. */
.section--deep:has(+ .section--suite) > .wrap { padding-bottom: 3rem; }
.section--suite > .wrap { padding-top: 0; }
/* Dernière section avant le ruban : le ruban apporte déjà de l'air. */
.section:not(.section--deep):has(+ .ruban) > .wrap { padding-bottom: 3rem; }

.entete { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.entete .chapeau { max-width: 40rem; }

.grille {
  width: 100%; margin: 0; padding: 0; list-style: none;
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--col, 26.25rem)), 1fr));
}
.grille--3 { --col: 18.75rem; }
.grille--4 { --col: 15rem; }
.grille--2 > :last-child:nth-child(odd):not(:first-child) { grid-column: 1 / -1; }
.grille--haut { align-items: start; }

.carte {
  display: flex; flex-direction: column; gap: 1rem; padding: 2rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  transition: border-color 0.25s;
}
a.carte:hover { border-color: var(--orange); }
.carte p { color: var(--ink-soft); }
.carte--large { gap: 1.5rem; padding: 2.5rem; }
.carte--pleine { border: 0; gap: 0.75rem; }
.carte--deep { border: 0; background: var(--paper-deep); }
.carte--encre { border: 0; background: var(--ink); color: var(--paper); }
.carte--encre h3 { color: var(--paper); }
.carte--encre p { color: var(--line); }
.carte--seule { width: 100%; max-width: 55rem; }

.num { display: block; font-size: var(--t-section); line-height: 1; font-weight: 700; letter-spacing: -0.03em; color: var(--orange-press); font-variant-numeric: lining-nums; }

.coches { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.coches li { display: flex; align-items: flex-start; gap: 1rem; }
.coches--non .coche { stroke: var(--ink-mute); }
.coches--deux { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1rem 2.5rem; }

.prose { width: 100%; max-width: 45rem; display: flex; flex-direction: column; gap: 1rem; color: var(--ink-soft); }
.prose > p:first-child { font-size: var(--t-chapeau); line-height: 1.5; }
.prose strong { color: var(--ink); }
.prose .coches { color: var(--ink); margin-top: 0.5rem; }

/* ---------- En-tête ---------- */

.site-header {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  max-width: var(--max); margin: 0 auto; padding: 1.5rem var(--gutter);
}
.brand { display: block; flex: none; }
.brand img { width: 12.5rem; height: 4.125rem; object-fit: contain; }

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); font-size: var(--t-texte); font-weight: 500; }
.site-nav a { padding: 0.4rem 0; position: relative; }
.site-nav a:not(.site-nav__cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease);
}
.site-nav a:not(.site-nav__cta):hover::after,
.site-nav a[aria-current="page"]:not(.site-nav__cta)::after { transform: scaleX(1); }
.site-nav__cta {
  display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.5rem !important;
  border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 600;
  transition: background-color 0.25s, color 0.25s;
}
.site-nav__cta:hover, .site-nav__cta[aria-current="page"] { background: var(--ink); color: var(--paper); }
.nav-toggle { display: none; }

/* ---------- Accueil : héros ---------- */

.hero {
  position: relative; max-width: var(--max); margin: 0 auto;
  padding: 4.5rem var(--gutter) 0; min-height: 32.5rem;
}
.hero__copy { position: relative; z-index: 2; max-width: 40rem; display: flex; flex-direction: column; gap: 1.75rem; }
.hero__lede { max-width: 31.25rem; font-size: var(--t-chapeau); line-height: 1.5; color: var(--ink-soft); }
.hero__art {
  position: absolute; z-index: 1; pointer-events: none;
  top: calc(-1 * var(--header-h)); right: calc((100vw - 100%) / -2);
  width: 64vw; height: calc(100% + var(--header-h));
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30%), linear-gradient(to bottom, #000 80%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 30%), linear-gradient(to bottom, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: right top; }

/* Bande chaude en haut de l'accueil, accordée au fond de la scène. */
.page-index { background: linear-gradient(#fef5ee 0, #fef5ee 30rem, var(--paper) 46rem) no-repeat, var(--paper); }

/* ---------- Le ruban : ouvre la page sous le héros, la ferme au-dessus du bandeau ---------- */

.ruban { position: relative; z-index: 1; pointer-events: none; }
.ruban img { display: block; width: 100vw; max-width: none; height: auto; margin-left: calc((100% - 100vw) / 2); }
.ruban--depart { height: 15vw; }
.ruban--depart img { position: absolute; left: 0; bottom: 0; }
/* Le ruban passe par-dessus la bande orange : la bande monte derrière lui et remplit le vide sous la vague. */
.ruban--arrivee { margin-bottom: -17.1vw; z-index: 2; }
.ruban--arrivee::before {
  content: ""; position: absolute; z-index: -1; top: 0; left: calc((100% - 100vw) / 2); width: 100vw; aspect-ratio: 3 / 1;
  background: var(--orange);
  clip-path: polygon(18.61% 49.33%, 19.44% 46.67%, 22.22% 43.67%, 25% 42.67%, 27.78% 43.33%, 30.56% 45%, 33.33% 47.67%, 33.89% 49.33%);
}

/* ---------- Accueil : le vrai problème ---------- */

.probleme {
  max-width: var(--max); margin: 0 auto; padding: 3rem var(--gutter) var(--section);
  display: flex; flex-wrap: wrap; align-items: center; gap: 3rem 4.5rem;
}
.probleme__art { flex: 1 1 25rem; min-width: 0; max-width: 30rem; margin: 0 auto; }
/* multiply : le halo clair du détourage se fond dans le crème. */
.probleme__art img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; mix-blend-mode: multiply; }
.probleme__texte { flex: 1 1 32.5rem; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.probleme__texte .accent { color: var(--orange-press); }
.probleme__texte .chapeau { max-width: 32.5rem; }
.probleme__citation {
  margin: 0.5rem 0 0; max-width: 32.5rem; padding-left: 1.5rem; border-left: 3px solid var(--orange);
  font-weight: 600; color: var(--ink);
}

/* ---------- Accueil : la partie en cinq coups ---------- */

.boucle { width: 100%; }
.etapes { list-style: none; margin: 0; padding: 0; }
.boucle__art { position: relative; max-width: 22rem; margin: 0 auto 1.5rem; }
.boucle__art img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
.boucle__centre {
  position: absolute; inset: 31% 27% 27% 27%; display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: clamp(0.9375rem, 1.6vw, 1.25rem); line-height: 1.3; font-weight: 700; letter-spacing: -0.01em;
}
.etapes h3 { margin-top: 0.75rem; }
.etapes p { margin-top: 0.5rem; color: var(--ink-soft); }
/* Grand écran : les cinq coups se placent autour de l'anneau, chacun près de son objet. */
@media (min-width: 60.0625rem) {
  .boucle {
    display: grid; align-items: center;
    grid-template-columns: minmax(0, 1fr) minmax(18.75rem, 30rem) minmax(0, 1fr);
    column-gap: 2.5rem;
  }
  .etapes { display: contents; }
  .boucle__art { grid-column: 2; grid-row: 2 / span 2; max-width: none; margin: 0; }
  .etapes li { max-width: 20rem; }
  .etapes li:nth-child(1) { grid-column: 2; grid-row: 1; justify-self: center; text-align: center; max-width: 26.25rem; margin-bottom: -0.5rem; }
  .etapes li:nth-child(2) { grid-column: 3; grid-row: 2; }
  .etapes li:nth-child(3) { grid-column: 3; grid-row: 3; }
  .etapes li:nth-child(4) { grid-column: 1; grid-row: 3; justify-self: end; text-align: right; }
  .etapes li:nth-child(5) { grid-column: 1; grid-row: 2; justify-self: end; text-align: right; }
}

/* ---------- Accueil : terrains, employés IA, engagements, outils, ressources ---------- */

.nouveau {
  width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem;
  padding: 1.5rem 2rem; border-radius: var(--radius); background: var(--ink); color: var(--paper);
}
.nouveau img { width: 4rem; height: 4.875rem; object-fit: contain; }
.nouveau__texte { flex: 1 1 22.5rem; min-width: 0; font-size: var(--t-chapeau); line-height: 1.5; }
.nouveau__texte strong { font-weight: 700; color: #ffb48a; }
.nouveau__bouton {
  display: inline-flex; align-items: center; gap: 0.75rem; min-height: 3rem; padding: 0 1.375rem 0 1.5rem;
  border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 600;
}
.nouveau:hover .arrow { transform: translateX(5px); }

.engage { display: flex; align-items: flex-start; gap: 1rem; padding: 1.75rem 2rem; border-radius: var(--radius); background: var(--paper); }
.engage > span { font-size: var(--t-carte); line-height: 1.3; font-weight: 700; }
.engage > div { display: flex; flex-direction: column; gap: 0.5rem; }
.engage p { color: var(--ink-soft); }
.engage .coche { margin-top: 0.25rem; }
.signature { max-width: 40rem; text-align: center; color: var(--ink-soft); }
.signature strong { color: var(--ink); }

.wrap--engagements { padding-bottom: 4rem; }
.outils { padding: 0 0 6rem; display: flex; flex-direction: column; align-items: center; gap: 2.5rem; overflow: hidden; }
.outils h2 { padding: 0 var(--gutter); text-align: center; }
.outils__masque {
  width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}
/* Bande de logos qui défile en continu : deux listes identiques, on glisse de la moitié. */
.outils__defile { display: flex; width: max-content; animation: outils-defile 48s linear infinite; }
.outils:hover .outils__defile { animation-play-state: paused; }
.outils ul { list-style: none; margin: 0; padding: 0 5rem 0 0; display: flex; flex: none; align-items: center; gap: 5rem; }
.outils li { display: flex; align-items: center; gap: 1rem; white-space: nowrap; font-size: var(--t-carte); line-height: 1.3; font-weight: 600; color: var(--ink-soft); }
.outils img { height: 3.25rem; width: auto; filter: grayscale(1) contrast(0.9); opacity: 0.75; }
@keyframes outils-defile { to { transform: translateX(-50%); } }

.article { padding: 0; gap: 0; overflow: hidden; }
.article > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-bottom: 1px solid var(--line); }
.article__texte { flex: 1; display: flex; flex-direction: column; gap: 1rem; padding: 1.75rem 2rem 2rem; }
.article__texte .etiquette { text-transform: none; }
.article__texte .link { margin-top: auto; padding-top: 0.5rem; align-self: flex-start; }
.article__attente { margin-top: auto; padding-top: 0.5rem; font-size: var(--t-etiquette); font-weight: 600; letter-spacing: 0.08em; color: var(--ink-mute); }

/* Les deux audits (accueil et page SEO et GEO). */
.audit__lien { margin-top: auto; padding-top: 0.5rem; align-self: flex-start; }
.carte p.etiquette { color: var(--orange-text); }
.audit__note { line-height: 2; max-width: 40rem; text-align: center; color: var(--ink-soft); }

/* Carte d'article illustrée par un objet 1:1 : montré en entier sur le fond de tête. */
.article--objet > img { object-fit: contain; background: var(--paper-tete); padding: 0.75rem; }

/* Noms de médias et exemples concrets (page Programmatique). */
.noms { list-style: none; margin: auto 0 0; padding: 0.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.noms li { padding: 0.25rem 0.875rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-tete); font-weight: 600; color: var(--ink); }
.noms { align-items: center; gap: 0.75rem 1.5rem; }
.noms li.noms__logo { padding: 0; border: 0; border-radius: 0; background: none; }
.noms__logo img { height: 2rem; width: auto; max-width: 7.5rem; object-fit: contain; }
.exemple { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.25rem; }
.carte p.exemple { color: var(--ink); }

/* ---------- Article ---------- */

.billet { max-width: var(--max); margin: 0 auto; padding: 3rem var(--gutter) var(--section); display: flex; flex-direction: column; align-items: center; gap: 3rem; }
.billet__tete { width: 100%; max-width: 45rem; display: flex; flex-direction: column; gap: 1.5rem; }
.billet__tete h1 { font-size: var(--t-section); line-height: 1.1; letter-spacing: -0.015em; }
.billet__tete .etiquette a { text-decoration: underline; text-underline-offset: 0.25em; }
.billet__auteur { font-weight: 600; }
.billet__image { width: 100%; max-width: 55rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.billet__image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.billet__image--objet { background: var(--paper-tete); }
.billet__image--objet img { aspect-ratio: 5 / 2; object-fit: contain; padding: 1rem; }
.billet__corps { width: 100%; max-width: 45rem; display: flex; flex-direction: column; gap: 1.25rem; color: var(--ink-soft); }
.billet__corps h2 { margin-top: 1.75rem; font-size: var(--t-carte); line-height: 1.3; letter-spacing: 0; color: var(--ink); }
.billet__corps strong { color: var(--ink); }
.billet__corps ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.billet__corps li { position: relative; padding-left: 1.75rem; }
.billet__corps li::before { content: ""; position: absolute; left: 0.25rem; top: 0.6em; width: 0.5rem; height: 0.5rem; background: var(--orange); transform: rotate(45deg); }
.billet__suite { margin-top: 1.75rem; }

/* ---------- Pages internes : tête de page ---------- */

.tete {
  position: relative; overflow: hidden; background: var(--paper-tete);
  margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h);
}
.tete__art { position: absolute; z-index: 1; top: 0; right: 0; width: 50%; height: 100%; pointer-events: none; display: flex; align-items: center; justify-content: center; }
.tete__art img {
  height: 82%; max-height: 32.5rem; width: auto; aspect-ratio: 1 / 1; object-fit: contain;
  /* Bords fondus : le fond de l'image rejoint celui de la page sans laisser voir de carré. */
  -webkit-mask-image: radial-gradient(closest-side, #000 78%, transparent 100%); mask-image: radial-gradient(closest-side, #000 78%, transparent 100%);
}
.tete--scene .tete__art {
  width: 70%; display: block;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 35%); mask-image: linear-gradient(to right, transparent 0, #000 35%);
}
.tete--scene .tete__art img { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: cover; object-position: right center; -webkit-mask-image: none; mask-image: none; }
.tete__copy { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 4.5rem var(--gutter) var(--section); min-height: 27.5rem; }
.tete__copy > div { max-width: 40rem; display: flex; flex-direction: column; gap: 1.75rem; }
.tete__copy .chapeau { max-width: 32.5rem; }
@media (min-width: 60.0625rem) { .tete__copy > div { max-width: min(40rem, 54%); } }

/* ---------- Pages internes : blocs ---------- */

.temps { display: flex; flex-direction: column; gap: 0.75rem; padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.temps p { color: var(--ink-soft); }

.fiche { padding: 0; gap: 0; overflow: hidden; }
.fiche__art { background: var(--paper-tete); border-bottom: 1px solid var(--line); }
.fiche__art img { width: 100%; max-width: 17.5rem; margin: 0 auto; aspect-ratio: 1 / 1; object-fit: contain; -webkit-mask-image: radial-gradient(closest-side, #000 78%, transparent 100%); mask-image: radial-gradient(closest-side, #000 78%, transparent 100%); }
.fiche__texte { flex: 1; display: flex; flex-direction: column; gap: 1rem; padding: 1.75rem 2rem 2rem; }
.fiche dl { margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.fiche__ligne { display: flex; flex-direction: column; gap: 0.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.fiche dt { font-size: var(--t-etiquette); line-height: 1.4; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
.fiche dd { margin: 0; color: var(--ink-soft); }

.coulisse { display: flex; align-items: center; gap: 1.25rem; padding: 1.25rem 1.75rem 1.25rem 1.25rem; border-radius: var(--radius); background: var(--paper); }
.coulisse img { flex: none; width: 7rem; height: 7rem; object-fit: contain; border-radius: 0.75rem; background: var(--paper-tete); }
.coulisse > div { display: flex; flex-direction: column; gap: 0.5rem; }
.coulisse p { color: var(--ink-soft); }

.banniere {
  width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 3rem;
  padding: 2.5rem 3rem; border-radius: var(--radius); background: var(--ink); color: var(--paper);
}
.banniere > div { flex: 1 1 30rem; min-width: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.banniere h2 { color: var(--paper); }
.banniere p { max-width: 35rem; font-size: var(--t-chapeau); line-height: 1.5; color: var(--line); }

.faq { width: 100%; max-width: 55rem; border-bottom: 1px solid var(--line); }
.faq__item { padding: 1.75rem 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.75rem; }
.faq__item p { color: var(--ink-soft); }

.avant { width: 100%; max-width: 55rem; border-collapse: separate; border-spacing: 0; table-layout: fixed; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.avant th { text-align: left; padding: 1rem 1.5rem; font-size: var(--t-etiquette); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
.avant th + th { color: var(--orange-text); background: var(--paper-deep); }
.avant td { padding: 1rem 1.5rem; border-top: 1px solid var(--line); vertical-align: top; color: var(--ink-soft); }
.avant td + td { color: var(--ink); font-weight: 600; background: var(--paper-deep); }

.portes { width: 100%; display: flex; flex-direction: column; gap: 3rem; }
.portes__groupe { display: flex; flex-direction: column; gap: 1.5rem; }
.portes__groupe > h3 { color: var(--ink-soft); }
.porte { flex-direction: row; align-items: center; justify-content: space-between; gap: 1.5rem; }
.porte > span { display: flex; flex-direction: column; gap: 0.5rem; }
.porte__nom { font-size: var(--t-carte); line-height: 1.3; font-weight: 700; }
.porte__texte { color: var(--ink-soft); }
.porte .arrow { color: var(--orange-text); }
.porte:hover .arrow { transform: translateX(5px); }

.renvoi { max-width: 45rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.renvoi p { font-size: var(--t-chapeau); line-height: 1.5; }

/* ---------- Bandeau orange : texte à gauche, calendrier à droite ---------- */

/* Le bandeau part de l'orange du ruban, puis fonce : le texte blanc y atteint un contraste de 4,8 pour 1. */
.appel { background: linear-gradient(var(--orange) 0, var(--orange-press) 16vw, var(--orange-press)); padding-top: 10vw; color: #fff; }
.appel__in { max-width: var(--max); margin: 0 auto; padding: 6rem var(--gutter) 7rem; display: flex; flex-wrap: wrap; align-items: center; gap: 4rem; }
.appel__texte { flex: 1 1 26.25rem; min-width: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.appel h2 { max-width: 28.75rem; color: #fff; }
.appel__texte > p { max-width: 30rem; }
.appel__texte > .chapeau { font-weight: 500; color: #fff; }
.appel__texte > .etiquette { margin-top: 0.5rem; color: #fff; }
.appel .deroule { max-width: 30rem; border-bottom-color: rgba(255, 255, 255, 0.45); }
.appel .deroule li { border-top-color: rgba(255, 255, 255, 0.45); }
.appel .deroule li::before { color: #fff; }
.appel__ecrire { font-weight: 600; }
.appel__ecrire a { text-decoration: underline; text-underline-offset: 0.25em; }
.appel :focus-visible { outline-color: #fff; }
.appel .agenda { color: var(--ink); }

.agenda { flex: 1 1 30rem; min-width: 0; padding: 2rem; border-radius: var(--radius); background: var(--paper); display: flex; flex-direction: column; gap: 1.5rem; }
.agenda__cadre { min-height: 12rem; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.25rem; color: var(--ink-soft); }
/* La hauteur est réglée par le script du calendrier ; 42rem sert de départ le temps qu'il réponde. */
.agenda__cadre iframe { display: block; width: 100%; min-height: 42rem; border: 0; border-radius: 0.5rem; background: #fff; overflow: hidden; }
.agenda--charge .agenda__cadre { min-height: 0; }
.agenda--charge .agenda__attente { display: none; }
.agenda--bord { border: 1px solid var(--line); }

/* ---------- Contact ---------- */

.contact { max-width: var(--max); margin: 0 auto; padding: 4.5rem var(--gutter) var(--section); display: flex; flex-wrap: wrap; align-items: flex-start; gap: 3rem 4rem; }
.contact__texte { flex: 1 1 26.25rem; min-width: 0; display: flex; flex-direction: column; gap: 1.75rem; }
.contact__texte h1 { font-size: var(--t-page); }
.deroule { list-style: none; counter-reset: etape; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.deroule li { counter-increment: etape; position: relative; padding: 1rem 0 1rem 2.5rem; border-top: 1px solid var(--line); }
.deroule li::before { content: counter(etape); position: absolute; left: 0; top: 0.85rem; font-size: var(--t-carte); line-height: 1.3; font-weight: 700; color: var(--orange-press); }

.demande { width: 100%; max-width: 45rem; padding: 2.5rem; border-radius: var(--radius); background: var(--paper); display: grid; gap: 1.25rem; }
.champ { display: grid; gap: 0.5rem; }
.champ label { font-weight: 600; }
.champ__option { font-weight: 400; color: var(--ink-soft); }
.champ input, .champ textarea, .champ select {
  font: inherit; color: var(--ink); width: 100%;
  background: var(--paper); border: 1.5px solid #b79a7c; border-radius: 0.5rem; padding: 0.75rem 1rem;
  caret-color: var(--orange); transition: border-color 0.2s, box-shadow 0.2s;
}
.champ select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.5rem;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23151918' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 0.8rem center / 1.1rem no-repeat;
}
.champ textarea { resize: vertical; min-height: 7rem; }
.champ input:hover, .champ textarea:hover, .champ select:hover { border-color: var(--ink-soft); }
.champ input:focus-visible, .champ textarea:focus-visible, .champ select:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(236, 84, 12, 0.35); }
.champ [aria-invalid="true"] { border-color: #a3260d; }
.champ__erreur { color: #a3260d; font-weight: 500; }
.demande .button { justify-self: start; }
.demande__note { color: var(--ink-soft); }
.demande__signature { font-weight: 600; }

/* ---------- Pied de page ---------- */

.site-footer { max-width: var(--max); margin: 0 auto; padding: 4rem var(--gutter) 2rem; display: flex; flex-direction: column; gap: 3rem; }
.site-footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.site-footer__line { font-size: var(--t-chapeau); line-height: 1.5; }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(13.75rem, 1fr)); gap: 2rem; }
.site-footer__cols > * { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.site-footer__cols h2 { margin-bottom: 0.25rem; font-size: var(--t-etiquette); line-height: 1.4; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
.site-footer__cols a { font-weight: 500; }
.site-footer__cols a:hover { color: var(--orange-text); }
.site-footer__cols p { color: var(--ink-soft); }
.site-footer__legal { font-size: var(--t-etiquette); font-weight: 600; letter-spacing: 0.04em; color: var(--ink-mute); }

/* ---------- Tablettes et téléphones ---------- */

@media (max-width: 60rem) {
  .hero { min-height: 0; padding-top: 2rem; }
  .hero__art {
    position: relative; top: auto; right: auto; width: auto; height: auto;
    margin: 1.5rem calc(var(--gutter) * -1) 0; aspect-ratio: 5 / 4;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 82%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 82%, transparent 100%);
  }
  .hero__art img { object-position: 78% 50%; }
  .page-index { background: linear-gradient(#fef5ee 0, #fef5ee 44rem, var(--paper) 62rem) no-repeat, var(--paper); }
  .ruban img { width: 170vw; margin-left: calc((100% - 170vw) / 2); }
  .ruban--depart { height: 26vw; }
  .ruban--arrivee { margin-bottom: -29vw; }
  .ruban--arrivee::before { left: calc((100% - 170vw) / 2); width: 170vw; }
  .appel { padding-top: 15vw; background: linear-gradient(var(--orange) 0, var(--orange-press) 26vw, var(--orange-press)); }
  .appel__in { padding: 4rem var(--gutter) 4.5rem; gap: 2.5rem; }
  .probleme { padding-top: 1.5rem; }
  .probleme__art { max-width: 17.5rem; }
  .etapes li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: 0.75rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
  .etapes .num { grid-row: 1 / span 2; }
  .etapes h3 { margin-top: 0.25rem; }
  .etapes p { grid-column: 2; }
  .tete__art, .tete--scene .tete__art { position: static; width: 100%; height: auto; padding-top: 1rem; display: block; -webkit-mask-image: none; mask-image: none; }
  .tete__art img { width: 13rem; height: auto; margin: 0 auto; }
  .tete--scene .tete__art img { width: 100%; height: auto; aspect-ratio: 3 / 2; }
  .tete__copy { min-height: 0; padding-top: 1.5rem; }
  .carte--large, .banniere, .demande { padding: 2rem 1.5rem; }
  .agenda { padding: 1.5rem; }
  .outils ul { gap: 3rem; padding-right: 3rem; }
  .outils img { height: 2.5rem; }
}

/* Menu replié : cinq liens et un bouton ne tiennent plus sur une ligne. */
@media (max-width: 68rem) {
  :root { --header-h: 5rem; }
  .site-header { padding-block: 1rem; }
  .brand img { width: 9rem; height: 3rem; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.6rem; min-height: 3rem;
    font: inherit; font-weight: 600; color: var(--ink);
    background: none; border: 1.5px solid var(--ink); border-radius: 999px; padding: 0 1.25rem; cursor: pointer;
  }
  .nav-toggle__bars { width: 1rem; height: 0.6rem; border-block: 2px solid currentColor; transition: height 0.3s var(--ease); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { height: 0; border-bottom-width: 0; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-block: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.5rem;
    box-shadow: 0 24px 30px -24px rgba(84, 40, 10, 0.35);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 1rem 0; font-size: var(--t-carte); font-weight: 700; border-bottom: 1px solid var(--line); }
  .site-nav a::after { display: none; }
  .site-nav__cta { margin-top: 1.25rem; justify-content: center; font-size: var(--t-texte) !important; border-bottom-width: 1.5px !important; }
}

@media (max-width: 40rem) {
  .actions .button, .demande .button, .banniere .button { width: 100%; justify-content: space-between; }
  .nouveau { padding: 1.5rem; }
  .nouveau__bouton { width: 100%; justify-content: space-between; }
  .coulisse img { width: 5rem; height: 5rem; }
  .avant th, .avant td { padding: 0.75rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  /* La bande de logos défile quand même (demande de Kamal), deux fois plus lentement. */
  .outils__defile { animation-duration: 96s !important; }
}
