/* ==========================================================================
   Site test · VERSION D — la version C retravaillée avec les remarques de Margaux (12 oct. 2026, 2ᵉ retour le soir, 3ᵉ le 13 oct.)
   - en-tête olive (comme A), menu souligné, survol en vert peps (#c2ae25), bouton devis discret ;
   - accroche : tout au centre, entre deux photos (petit titre, « Identité visuelle » en grand, puis le texte) ;
     sur grand écran, l'accroche et le bandeau s'élargissent ; tampon qui tourne avec une ombre marquée ;
   - fond « tissu naturel » (la texture de Margaux, très atténuée et fondue dans le crème) sur « Ce qui fait la différence »
     et les FAQ ;
   - « Ce qui fait la différence » : les trois points sur une seule étiquette ;
   - carrousel (A) : au survol, nom et pastilles en grand, les voisines rapetissent (plus de gris) ;
     sous le carrousel, la feuille de la tomate du logo à la place des points ;
   - Qui suis-je sobre (C) avec les petites vagues (A), la photo de Margaux, un petit mot écrit à la main (lettres liées)
     et sa phrase « Je t'aide à faire mûrir ton projet » ;
   - « Renforce ton image » avec une photo en situation (effet au survol) ; bandeau qui défile sans vide ;
   - FAQ : « + » fin ; bloc contact avec la photo de Margaux et « À très vite ! » écrit à la main ;
   - page Offres : « Dans chaque pack » à côté du titre, fiches compactes avec le prix en bas, tampon « Le + demandé »,
     brandboard / charte en images, étapes en petit chemin (de la graine à la tomate), comparatif sur une page à part ;
   - vichy : seulement le liseré du pied de page ; un seul tampon qui tourne par page.
   Titres à empattements fins (Fraunces léger en attendant Roca). Palette charte, pas de rose, pas de dégradé de couleur.
   ========================================================================== */

:root {
  --olive: #474721;
  --olive-2: #808044;
  --cta: #cf714c;
  --cream: #faf6ee;
  --ink: #474721;
  --tint: #f1ede4; /* olive à 5 % sur crème */
  --jaune: #c2ae25; /* accent 1 de la charte, le « vert peps » de Margaux (parcimonie) */
  --jaune-doux: rgb(194 174 37 / 38%); /* fond des étiquettes, texte olive (contraste ≈ 7:1) */

  --line: rgb(71 71 33 / 14%);
  --line-2: rgb(71 71 33 / 30%);
  --shadow: 0 26px 50px -30px rgb(71 71 33 / 55%);
  --shadow-sm: 0 14px 30px -22px rgb(71 71 33 / 50%);
  /* Sur un fond olive, une ombre olive ne se voit pas : même ombre, dans l'olive presque noir déjà utilisé sous les pastilles du carrousel */
  --shadow-on-dark: 0 26px 50px -30px rgb(20 20 8 / 75%);

  --r-media: 22px;
  --r-card: 16px;
  --r-small: 10px;

  --header-h: 76px;
  --topline-h: 32px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --serif: "Fraunces", "Roca", Georgia, serif;
  --sans: "Associate Sans", "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --vichy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Crect width='20' height='20' fill='%23faf6ee'/%3E%3Crect width='10' height='20' fill='%23808044' fill-opacity='0.35'/%3E%3Crect width='20' height='10' fill='%23808044' fill-opacity='0.35'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body.d {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

p {
  margin: 0 0 1rem;
}

:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 3px;
}

strong {
  font-weight: 600;
}

/* un élément « hidden » reste caché, même quand sa classe l'affiche (lien « Lire l'étude de cas » de la visionneuse) */
[hidden] {
  display: none !important;
}

.d-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.d-skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--olive);
  color: var(--cream);
}

.d-skip:focus {
  left: 0.5rem;
}

.d-tomate {
  display: inline-block;
  flex: none;
  height: auto;
  vertical-align: middle;
}

.d-center {
  text-align: center;
}

/* noms de lieux qui ne se coupent pas au trait d'union (Seine-Maritime, Villers-sous-Foucarmont) */
.d-nobr {
  white-space: nowrap;
}

/* --- Typographie : titres à empattements fins ----------------------- */

.d-h1,
.d-h2,
.d-h3,
.d-lead,
.d-quote p {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 50, "WONK" 0;
}

.d-h1 {
  margin: 0 0 1.2rem;
  font-size: clamp(2.5rem, 5.4vw, 4.8rem);
  font-weight: 360;
  line-height: 1.04;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.d-h1--hero {
  margin-inline: auto;
  font-size: clamp(2.4rem, 3.7vw, 3.6rem);
}

.d-h2 {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 370;
  line-height: 1.08;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.d-h2--xl {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 340;
}

.d-h3 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 400;
  line-height: 1.12;
}

.d-h1 em,
.d-h2 em,
.d-h3 em {
  font-style: italic;
  font-weight: inherit;
}

.d-h2 a,
.d-h3 a {
  text-decoration: none;
}

.d-lead {
  max-width: 40rem;
  margin: 0 0 1.2rem;
  font-size: clamp(1.2rem, 1.9vw, 1.45rem);
  font-style: italic;
  font-weight: 340;
  line-height: 1.45;
}

.d-kicker {
  margin: 0 0 0.8rem;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

/* Petite pastille de catégorie (pages intérieures) : jaune doux, plus d'olive qui contraste trop */
.d-pill {
  display: inline-block;
  margin: 0 0 0.8rem;
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
  background: var(--jaune-doux);
  color: var(--olive);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
}

/* Étiquette arrondie et penchée (la « banderole » de B) : jaune doux, texte olive.
   Avec parcimonie : une seule par page au plus (ex. au-dessus de la FAQ). */
.d-label,
.d-badge {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  margin: 0 0 1rem;
  padding: 0.36rem 0.95rem 0.42rem;
  border-radius: 999px;
  background: var(--jaune-doux);
  color: var(--olive);
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-size: 1rem;
  font-weight: 560;
  line-height: 1.15;
  transform: rotate(-2deg);
}

/* Badge « Le + demandé » : même banderole, fond olive #474721 et texte crème #faf6ee (règle du badge),
   posé en haut à gauche de l'image du pack */
.d-badge {
  position: absolute;
  top: 1rem;
  left: -0.7rem;
  z-index: 2;
  margin: 0;
  background: var(--olive);
  color: var(--cream);
  font-size: 0.98rem;
  box-shadow: 0 0 0 3px var(--cream), 0 14px 26px -16px rgb(71 71 33 / 70%);
}

/* --- Boutons et liens ------------------------------------------------ */

.d-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.6rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 1.17rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.d-btn--cta {
  background: var(--cta);
  color: var(--cream);
}

/* Texte clair sur fond coloré : lissage fin (sur Mac, sinon le texte crème paraît plus gras et un peu flou) */
.d-btn--cta,
.d-header:not(.is-light),
.d-section--olive,
.d-marquee,
.d-footer,
.d-badge {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.d-btn--cta:hover {
  transform: translateY(-2px);
}

.d-btn--line {
  border-color: var(--line-2);
  background: transparent;
  color: var(--olive);
  font-size: 1.05rem;
  font-weight: 600;
}

.d-btn--line:hover {
  border-color: var(--olive);
  background: var(--olive);
  color: var(--cream);
}

/* Sur fond olive */
.d-btn--light {
  border-color: rgb(250 246 238 / 50%);
  background: transparent;
  color: var(--cream);
  font-size: 1.05rem;
  font-weight: 600;
}

.d-btn--light:hover {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--olive);
}

.d-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--cta);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.3em;
}

.d-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1rem;
  margin: 1.6rem 0 0;
}

.d-actions--center {
  justify-content: center;
}

/* --- En-tête : bandeau olive comme l'accueil A, liens simples, page en cours soulignée --- */

/* En haut de page : fond olive, texte crème, logo blanc, petite vague dessous.
   Dès qu'on défile (40 px), la barre qui reste en haut passe au crème avec le logo en couleur, en fondu
   (classe « is-light » posée par site-d.js), comme sur l'accueil A — sans état intermédiaire illisible.
   La petite ligne du mail part avec la page (l'en-tête « colle » à -32 px). */
.d-header {
  position: sticky;
  top: calc(-1 * var(--topline-h));
  z-index: 80;
  background: var(--olive);
  color: var(--cream);
  transition: background-color 0.35s ease, color 0.35s ease, box-shadow 0.3s ease;
}

.d-header.is-light {
  background: rgb(250 246 238 / 94%);
  color: var(--olive);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Petite vague olive → crème sous le bandeau (reprise de A) : elle défile avec la page */
.d-wave-header {
  display: block;
  width: 100%;
  height: clamp(22px, 2.8vw, 40px);
  margin: -1px 0 0; /* glisse d'un pixel sous le bandeau : pas de fente claire entre les deux */
  fill: var(--olive);
  /* Seule la partie olive est dessinée, sur fond transparent (Nathan, 18 oct.) : avant, un fond olive sous une
     vague crème laissait un fin trait foncé au bas de la vague quand sa hauteur tombait entre deux pixels
     (écrans Retina, certaines largeurs). Le haut de l'olive déborde un peu au-dessus, sous le bandeau. */
  overflow: visible;
}

.d-header.is-scrolled {
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -24px rgb(71 71 33 / 60%);
}

/* Petite ligne du haut (reprise de A) : mail + Instagram, à droite */
.d-topline {
  height: var(--topline-h);
  font-size: 0.82rem;
}

.d-topline-in {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
  height: 100%;
}

.d-topline a {
  display: inline-flex;
  align-items: center;
  min-height: var(--topline-h);
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Survol : le vert peps de la charte, sans soulignement (remarque de Margaux, 12 oct.) */
.d-topline a:hover {
  color: var(--jaune);
}

.d-wrap {
  width: 100%;
  max-width: calc(1180px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.d-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

/* Logo blanc sur l'olive, logo en couleur quand la barre est crème : les deux sont superposés */
.d-logo {
  display: grid;
}

.d-logo img {
  grid-area: 1 / 1;
  width: auto;
  height: 48px;
}

.d-logo img {
  transition: opacity 0.35s ease;
}

.d-logo-dark,
.d-header.is-light .d-logo-light {
  opacity: 0;
}

.d-header.is-light .d-logo-dark {
  opacity: 1;
}

.d-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-inline: auto;
}

/* Liens simples (pas de pastille « bouton ») : la page en cours est soulignée (tomate).
   Au survol : le vert peps de la charte (#c2ae25), comme demandé par Margaux le 12 oct. —
   le lien et son trait sur le bandeau olive ; sur la barre crème, juste le trait (le texte reste lisible). */
.d-nav a {
  padding: 0.5rem 0.8rem;
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.d-nav a:hover {
  text-decoration-color: var(--jaune);
}

@media (min-width: 1021px) {
  .d-header:not(.is-light) .d-nav a:hover {
    color: var(--jaune);
  }
}

.d-nav a[aria-current="page"] {
  text-decoration-color: var(--cta);
}

/* Ordinateur (menu en ligne, souris) : au survol, le trait jaune se remplit de gauche à droite sous le mot,
   comme une barre de chargement (Nathan, 30 oct.) ; sur la page en cours, il recouvre le trait orange.
   Le trait est dessiné en fond (2 dégradés : jaune par-dessus, puis le trait de base, transparent ou orange)
   au lieu de text-decoration, qui ne sait pas se remplir petit à petit. Téléphone : inchangé. */
@media (min-width: 1021px) and (hover: hover) {
  .d-nav a {
    --nav-trait: transparent;
    background-image: linear-gradient(var(--jaune), var(--jaune)), linear-gradient(var(--nav-trait), var(--nav-trait));
    background-position: 0.8rem calc(100% - 0.28rem), 0.8rem calc(100% - 0.28rem);
    background-repeat: no-repeat;
    background-size: 0 2px, calc(100% - 1.6rem) 2px;
    text-decoration: none;
    transition: color 0.2s ease, background-size 0.5s var(--ease);
  }

  .d-nav a[aria-current="page"] {
    --nav-trait: var(--cta);
  }

  .d-nav a:hover,
  .d-nav a:focus-visible {
    background-size: calc(100% - 1.6rem) 2px, calc(100% - 1.6rem) 2px;
  }
}

@media (min-width: 1021px) and (hover: hover) and (prefers-reduced-motion: reduce) {
  .d-nav a {
    transition: color 0.2s ease;
  }
}

.d-nav .d-nav-cta {
  display: none;
  text-decoration: none;
}

/* « Demander un devis » de l'en-tête : la taille des autres boutons (Margaux, 14 oct. ; l'exception du 12 oct.,
   1 rem demi-gras, se lisait mal : contraste 3,2 au lieu de 4,5). Un peu moins haut pour tenir dans la barre. */
.d-header-cta {
  min-height: 46px;
  padding: 0 1.3rem;
}

.d-short {
  display: none;
}

.d-burger {
  display: none;
  position: relative;
  flex: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgb(250 246 238 / 45%);
  border: 1px solid color-mix(in srgb, currentColor 40%, transparent);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.d-burger span,
.d-burger span::before,
.d-burger span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 0 auto;
  background: currentColor;
  transition: transform 0.25s var(--ease), background-color 0.2s ease;
}

.d-burger span {
  position: relative;
}

.d-burger span::before,
.d-burger span::after {
  content: "";
  position: absolute;
  left: 0;
}

.d-burger span::before {
  top: -6px;
}

.d-burger span::after {
  top: 6px;
}

.d-header.is-open .d-burger span {
  background: transparent;
}

.d-header.is-open .d-burger span::before {
  transform: translateY(6px) rotate(45deg);
}

.d-header.is-open .d-burger span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* --- Blocs ---------------------------------------------------------- */

.d-section {
  padding-block: clamp(4rem, 10vh, 6.5rem);
}

.d-section--flush {
  padding-top: 0;
}

.d-section--tint {
  background: var(--tint);
}

/* Le bloc teinté se fond dans le crème en bas (4ᵉ retour de Margaux, 13 oct. : entre les packs et les questions
   fréquentes, « il n'y a pas de fondu assez joli, ça fait un gros bloc »). Même fondu au-dessus du bloc contact
   (Le studio, Portfolio). */
.d-section--fondu {
  background: linear-gradient(to bottom, var(--tint) 0, var(--tint) calc(100% - 8rem), var(--cream) 100%);
}

/* Fond « tissu naturel » : la texture de Margaux (remarque du 13 oct., V3 : opacité baissée, fondue dans le fond du
   site). assets/img/texture-tissu.webp = sa photo de toile de lin réduite, adoucie, teintée crème et très atténuée ;
   elle s'efface en haut et en bas du bloc pour se fondre dans le crème. Seulement sur « Ce qui fait la différence »
   et les questions fréquentes. */
.d-section--lin {
  position: relative;
  isolation: isolate;
  background: var(--cream);
}

.d-section--lin::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("img/texture-tissu.webp") center / cover no-repeat;
  opacity: 0.45; /* 4ᵉ retour de Margaux (13 oct.) : encore plus discrète, sur « Ce qui fait la différence » et les questions */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 4.5rem, #000 calc(100% - 4.5rem), transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 4.5rem, #000 calc(100% - 4.5rem), transparent);
  pointer-events: none;
}

.d-section--olive {
  background: var(--olive);
  color: var(--cream);
  overflow-x: clip; /* le petit mot manuscrit ne fait jamais déborder la page, même avant le chargement de sa police */
}

/* Petites vagues (reprises de A) pour entrer dans le bloc olive et en sortir */
.d-section--waves {
  position: relative;
  padding-block: calc(clamp(4rem, 10vh, 6.5rem) + clamp(1.2rem, 3vw, 2.4rem));
}

.d-wave {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: clamp(22px, 3.2vw, 46px);
  fill: var(--cream);
  pointer-events: none;
}

.d-wave--top {
  top: -1px;
}

.d-wave--bottom {
  bottom: -1px;
}

/* En-tête de bloc, centré */
.d-head {
  max-width: 48rem;
  margin: 0 auto clamp(2.2rem, 5vh, 3.4rem);
  text-align: center;
}

.d-head-lead {
  max-width: 40rem;
  margin: 1rem auto 0;
  font-size: 1.08rem;
}

.d-head--light {
  color: var(--cream);
}

/* --- Tampon rond qui tourne ----------------------------------------- */

.d-stamp {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden; /* les coins du carré qui tourne ne dépassent pas du rond */
  border-radius: 50%;
  background: var(--cream);
  /* ombre plus marquée tout autour (remarque de Margaux, 12 oct.) : le tampon qui tourne se détache bien du fond crème */
  box-shadow: 0 1px 3px rgb(71 71 33 / 22%), 0 10px 26px -6px rgb(71 71 33 / 48%);
}

.d-stamp svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: d-spin 30s linear infinite;
}

.d-stamp text {
  fill: var(--olive);
  font-family: var(--sans);
  font-size: 12.6px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.d-stamp img {
  width: 40%;
}

@keyframes d-spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- 1. Accroche ---------------------------------------------------- */

.d-hero {
  --hero-pt: clamp(1rem, 3vh, 2.2rem);
  --hero-pb: clamp(2.6rem, 6vh, 4rem);
  position: relative;
  z-index: 2;
  padding-block: var(--hero-pt) var(--hero-pb); /* la vague du bandeau fait déjà de l'air */
}

/* Retour à la présentation d'avant (remarque de Margaux, 13 oct., V3) : tout le texte au centre, encadré par les
   deux photos qu'on voit en entier dès l'arrivée — le petit titre, « Identité visuelle » en grand, puis le reste.
   (Le titre sur toute la largeur de la V2 laissait trop de vide entre les textes et les photos.) */
.d-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  grid-template-areas: "left copy right";
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.75rem);
}

/* grand écran : les photos prennent un peu plus de place (1,3 depuis le 18 oct. : même proportion photos / texte
   que sur un écran de 1 920 px ; le titre tient toujours dans sa colonne, vérifié de 1 200 à 1 599 px) */
@media (min-width: 1200px) {
  .d-hero-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr) minmax(0, 1.3fr);
  }
}

/* Très grand écran (remarque de Margaux : « les côtés semblent très vides ») :
   l'accroche et le bandeau du haut s'élargissent avec l'écran (92 % de la largeur, toujours avec des marges),
   les photos grandissent */
@media (min-width: 1300px) {
  .d-header .d-wrap,
  .d-hero .d-wrap {
    max-width: max(calc(1180px + 2 * var(--gutter)), min(92vw, 2200px));
  }
}

@media (min-width: 1600px) {
  .d-hero-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr) minmax(0, 1.3fr);
  }
}

.d-hero-top {
  text-align: center;
}

.d-hero-top .d-kicker {
  margin-bottom: 0.8rem;
}

/* Le titre, au centre : le mot-clé en grand (il tient sur une ligne dans la colonne du milieu),
   puis « pour les TPE et PME du terroir » plus petit, sur la ligne d'en dessous */
.d-h1--hero {
  margin: 0 auto 1.1rem;
  font-size: clamp(1.4rem, 2vw, 2.6rem);
  line-height: 1.14;
}

.d-h1-key {
  display: block;
  font-size: clamp(2.5rem, 4.1vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.d-h1-for {
  display: block;
  margin-top: 0.25em;
}

.d-hero-copy {
  grid-area: copy;
  text-align: center;
}

.d-hero-copy .d-lead {
  margin-inline: auto;
}

.d-hero-text {
  max-width: 34rem;
  margin: 0 auto;
  text-wrap: pretty; /* pas un mot seul sur la dernière ligne */
}

.d-hero-photo {
  position: relative;
  margin: 0;
}

.d-hero-photo > img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-media);
  box-shadow: var(--shadow);
}

.d-hero-photo--left {
  grid-area: left;
  align-self: start;
}

.d-hero-photo--right {
  grid-area: right;
  align-self: end;
}

/* 4ᵉ retour de Margaux (13 oct., V3) : « je veux les deux photos comme en V1, à gauche et à droite en format
   rectangulaire, et le titre au centre avec les boutons ; ensuite, on défile ». Sur ordinateur, l'accroche remplit
   donc tout le premier écran (« Ce qui fait la différence » n'apparaît qu'en défilant) et les photos restent en 4:5
   sur tous les écrans : elles suivent la largeur de leur colonne, sans jamais dépasser la hauteur de l'écran.
   (Avant : photos carrées sur les écrans larges mais peu hauts, et le bloc suivant visible dès l'arrivée.) */
@media (min-width: 960px) {
  .d-hero {
    --hero-top: calc(var(--topline-h) + var(--header-h) + clamp(22px, 2.8vw, 40px)); /* le bandeau du haut et sa vague */
    display: grid;
    align-content: center;
    min-height: calc(100vh - var(--hero-top));
    min-height: calc(100svh - var(--hero-top));
  }

  .d-hero > .d-wrap {
    width: 100%;
  }

  .d-hero-photo {
    width: min(100%, calc((100vh - var(--hero-top) - var(--hero-pt) - var(--hero-pb) - 1rem) * 0.8));
    width: min(100%, calc((100svh - var(--hero-top) - var(--hero-pt) - var(--hero-pb) - 1rem) * 0.8));
  }

  /* si la hauteur de l'écran limite les photos, elles restent collées au texte du milieu */
  .d-hero-photo--left {
    justify-self: end;
  }

  .d-hero-photo--right {
    justify-self: start;
  }
}

/* grand écran : le texte du milieu grandit avec les photos, pour ne pas laisser de vide autour */
@media (min-width: 1600px) {
  .d-hero-top .d-kicker {
    margin-bottom: 1rem;
    font-size: 0.84rem;
  }

  .d-hero .d-lead {
    max-width: 44rem;
    font-size: 1.6rem;
  }

  .d-hero-text {
    max-width: 38rem;
    font-size: 1.14rem;
  }
}

/* 18 oct. au soir (Nathan) : l'accroche de l'accueil remplit de nouveau le premier écran sur toutes les fenêtres
   d'ordinateur, en agrandissant les photos et le texte plutôt qu'en ajoutant du vide.
   (Le matin, sur les fenêtres hautes — ratio sous 17/10 —, elle prenait sa hauteur naturelle et « Ce qui fait la
   différence » apparaissait dès l'arrivée : Nathan trouve ça moins joli.)
   Ce qui change, sur l'accueil seulement (classe d-hero--accueil ; l'accroche de la page Offres ne bouge pas) :
   - la colonne du milieu fait juste la largeur du titre « Identité visuelle » plus une petite marge (et jamais moins
     de 27 rem, pour garder les deux boutons côte à côte), au lieu de 43 % de la largeur : les photos prennent toute
     la place qui reste à côté ;
   - les photos sont aussi hautes que l'écran le permet, entre 4:5 (le format jusqu'ici) et 2:3 (une photo 10 × 15) :
     sur une fenêtre haute, c'est ce qui remplit le premier écran (choix B de Nathan, 18 oct. au soir ; à valider par
     Margaux, qui avait demandé le 4:5 le 13 oct.). La photo des sous-bocks (droite) est un peu plus recadrée en 2:3 ;
     celle de l'apiculteur est cadrée sur la droite pour garder « Observer, respecter, récolter » en entier ;
   - le sous-titre, le texte, les boutons et les espaces entre les lignes grandissent avec la hauteur de la fenêtre
     au-delà de 740 px (la hauteur où l'accroche tient juste), avec un plafond ;
   - les photos sont centrées en hauteur à côté du texte.
   Mesuré sur le Mac de Nathan (fenêtre de 1 273 × 845) : photos 334 × 501 au lieu de 311 × 389, sous-titre 26 px au lieu
   de 23, texte 19 px au lieu de 17 ; il reste 60 à 65 px de marge au-dessus et en dessous (avant : 140 à 220). */
@media (min-width: 960px) {
  .d-hero--accueil {
    --hero-key-fs: clamp(2.5rem, 4.1vw, 5.4rem); /* la taille du titre, la même qu'avant */
    --hero-plus: max(0px, calc(100svh - 740px)); /* la hauteur de fenêtre en plus, qui fait grandir le texte */
  }

  .d-hero--accueil .d-hero-grid {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .d-hero--accueil .d-hero-photo--left,
  .d-hero--accueil .d-hero-photo--right {
    align-self: center;
  }

  .d-hero--accueil .d-hero-photo {
    container-type: inline-size; /* pour mesurer la largeur de la photo (unité cqw) */
  }

  /* la hauteur de la photo : au moins 4:5, au plus 2:3, et jamais plus que la place entre le bandeau et le bas de l'écran
     (le cadre .d-zoom — arrondi, ombre, effet au survol — ne change pas). Les vieux navigateurs qui ne connaissent pas
     l'unité cqw (avant fin 2022) gardent le 4:5. */
  @supports (height: 1cqw) {
    .d-hero--accueil .d-hero-photo > .d-zoom > img {
      aspect-ratio: auto;
      height: clamp(125cqw, calc(100vh - var(--hero-top) - var(--hero-pt) - var(--hero-pb) - 1rem), 150cqw);
      height: clamp(125cqw, calc(100svh - var(--hero-top) - var(--hero-pt) - var(--hero-pb) - 1rem), 150cqw);
    }
  }

  .d-hero--accueil .d-hero-photo--left > .d-zoom > img {
    object-position: 100% 50%; /* cadrée sur la droite : le texte de la photo reste entier */
  }

  .d-hero--accueil .d-hero-copy {
    /* le titre fait 6,8 fois sa taille de police (mesuré) ; jamais moins de 27 rem : les deux boutons (411 px) restent côte à côte */
    width: max(calc(var(--hero-key-fs) * 7.6), 27rem);
  }

  .d-hero--accueil .d-hero-top .d-kicker {
    margin-bottom: min(calc(0.8rem + var(--hero-plus) * 0.04), 1.3rem);
  }

  .d-hero--accueil .d-h1--hero {
    margin-bottom: min(calc(1.1rem + var(--hero-plus) * 0.06), 1.9rem);
    font-size: calc(var(--hero-key-fs) * 0.49); /* « pour les métiers de bouche… » : même rapport qu'avant */
  }

  .d-hero--accueil .d-h1-key {
    font-size: var(--hero-key-fs);
  }

  .d-hero--accueil .d-lead {
    max-width: none;
    margin-bottom: min(calc(1.2rem + var(--hero-plus) * 0.06), 2rem);
    font-size: min(calc(1.45rem + var(--hero-plus) * 0.03), 1.8rem);
  }

  .d-hero--accueil .d-hero-text {
    font-size: min(calc(1.0625rem + var(--hero-plus) * 0.02), 1.25rem);
  }

  .d-hero--accueil .d-actions {
    margin-top: min(calc(1.6rem + var(--hero-plus) * 0.1), 2.6rem);
  }

  .d-hero--accueil .d-actions .d-btn {
    min-height: min(calc(52px + var(--hero-plus) * 0.05), 60px);
  }
}

/* Repères : juste la petite tomate et le texte, sans contour */
.d-reperes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.4rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.d-reperes--center {
  justify-content: center;
}

.d-reperes li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Le tampon : sur le coin haut droit de la photo de droite, visible dès l'arrivée */
.d-stamp--hero {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  width: clamp(92px, 8.6vw, 124px);
  transform: translate(35%, -35%);
}

/* Ordinateur peu haut (portable 1366 × 768…) : l'accroche se resserre ; les photos restent rectangulaires
   (4ᵉ retour de Margaux, 13 oct.) */
@media (min-width: 641px) and (max-height: 760px) {
  .d-wave-header {
    height: 22px;
  }

  .d-hero {
    --hero-pt: 0.6rem;
    --hero-top: calc(var(--topline-h) + var(--header-h) + 22px);
  }

  .d-h1--hero {
    margin-bottom: 0.8rem;
    font-size: clamp(1.25rem, 1.75vw, 1.9rem);
  }

  .d-h1-key {
    font-size: clamp(2.3rem, 3.6vw, 3.9rem);
  }

  .d-hero .d-lead {
    margin-bottom: 0.8rem;
  }

  .d-hero .d-actions {
    margin-top: 1.2rem;
  }
}

/* Ordinateur peu haut, l'accueil (18 oct. au soir) : les mêmes tailles resserrées que ci-dessus
   (à part, pour ne rien changer sous 960 px) */
@media (min-width: 960px) and (max-height: 760px) {
  .d-hero--accueil {
    --hero-key-fs: clamp(2.3rem, 3.6vw, 3.9rem);
  }

  .d-hero--accueil .d-h1--hero {
    margin-bottom: 0.8rem;
  }

  .d-hero--accueil .d-hero-top .d-kicker {
    margin-bottom: 0.8rem;
  }

  .d-hero--accueil .d-lead {
    margin-bottom: 0.8rem;
  }

  .d-hero--accueil .d-actions {
    margin-top: 1.2rem;
  }
}

/* Tablette ou téléphone couchés (peu hauts) : les deux photos côte à côte restent carrées, comme avant */
@media (min-width: 641px) and (max-width: 959px) and (max-height: 760px) {
  .d-hero-photo > img {
    aspect-ratio: 1;
  }
}

/* Tablette : le titre, les deux photos côte à côte, puis le texte
   (le bloc du milieu s'efface : son titre et son texte se placent chacun dans la grille) */
@media (max-width: 959px) {
  .d-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "top top"
      "left right"
      "copy copy";
    max-width: 640px;
    margin-inline: auto;
    gap: 1.6rem 1.25rem;
  }

  .d-hero-copy {
    display: contents;
  }

  .d-hero-top {
    grid-area: top;
  }

  .d-hero-body {
    grid-area: copy;
    text-align: center;
  }

  .d-h1--hero {
    margin-bottom: 0;
  }

  .d-h1-key {
    white-space: normal;
  }

  .d-hero-photo--right {
    align-self: start;
    margin-top: 2.5rem;
  }

  .d-h1--hero {
    font-size: clamp(1.45rem, 3.6vw, 2.2rem);
  }

  .d-h1-key {
    font-size: clamp(2.8rem, 9vw, 4.8rem);
  }
}

/* --- Bandeau qui défile (B) : plus petit, entre « Renforce ton image » et les packs --- */

.d-marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding-block: 0.55rem;
  background: var(--olive);
  color: var(--cream);
}

.d-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: d-marquee 144s linear infinite; /* 6 fois la liste : même vitesse qu'avant, sans vide */
}

.d-marquee-track > * {
  margin-inline-end: 1.1rem;
}

.d-marquee span {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 50, "WONK" 0;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  font-style: italic;
  font-weight: 380;
  white-space: nowrap;
}

@keyframes d-marquee {
  to {
    transform: translateX(-50%);
  }
}

/* --- 2. Ce qui fait la différence ----------------------------------- */

.d-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.d-card {
  padding: 1.8rem 1.7rem 1.6rem;
  border-radius: var(--r-card);
  background: var(--cream);
  color: var(--olive);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.d-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.d-card h3,
.d-carte-card h3,
.d-service h3,
.d-duo-card h3 {
  margin: 0.9rem 0 0.4rem;
  font-family: var(--serif);
  font-variation-settings: "SOFT" 50, "WONK" 0;
  font-size: 1.45rem;
  font-weight: 420;
  line-height: 1.2;
}

.d-card p {
  margin: 0;
}

/* Accueil : les trois points sur une seule étiquette (comme sur un pot) : un liseré intérieur,
   des pointillés entre les colonnes. Remplace les trois cartes (proposition du 12 oct.). */
.d-etiquette {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(1.7rem, 3vw, 2.5rem) clamp(0.8rem, 2vw, 1.6rem);
  border-radius: 22px;
  background: var(--cream);
  color: var(--olive);
  outline: 1px solid var(--line-2);
  outline-offset: -11px;
  box-shadow: var(--shadow-sm);
  list-style: none;
}

.d-etiquette li {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.3rem;
  padding: 0.6rem clamp(1rem, 2.6vw, 2.2rem);
  text-align: center;
}

.d-etiquette li + li {
  border-left: 1px dashed var(--line-2);
}

.d-etiquette h3 {
  margin: 0.75rem 0 0.15rem;
  font-family: var(--serif);
  font-variation-settings: "SOFT" 50, "WONK" 0;
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 380;
  line-height: 1.2;
}

.d-etiquette p {
  max-width: 26ch;
  margin: 0;
}

/* --- 3. Carrousel des réalisations (A) ------------------------------ */

.d-section--real .d-head {
  margin-bottom: 0;
}

.d-carousel {
  position: relative;
  width: calc(100% - 3rem);
  margin: clamp(2rem, 5vh, 2.8rem) auto 0;
}

.d-car-viewport {
  overflow: hidden;
  width: 100%;
  margin-bottom: -1.25rem; /* rend la place prise par l'ombre : le bloc garde sa hauteur */
}

.d-car-track {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0.35rem 0 1.6rem; /* place pour l'ombre portée des photos (le cadre coupe ce qui dépasse) */
  width: max-content;
  will-change: transform;
}

.d-car-track figure {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
}

.d-car-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow-sm); /* règle : toute photo a une ombre portée (Nathan, 17 oct.) */
  color: inherit;
  text-decoration: none;
}

.d-car-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.45s ease;
}

/* Au survol (remarques de Margaux, 12 oct.) : les autres projets restent en couleur mais rapetissent un peu
   (plus de gris : « ça perd en peps ») ; l'image survolée garde sa taille, grossit à peine à l'intérieur
   et s'assombrit un peu pour que le nom ressorte. Seulement avec une souris. */
@media (hover: hover) {
  .d-car-frame {
    transition: transform 0.6s var(--ease);
  }

  .d-car-track:hover figure .d-car-frame {
    transform: scale(0.94);
  }

  .d-car-track figure:hover .d-car-frame {
    transform: none;
  }

  .d-car-track figure:hover .d-car-frame img,
  .d-car-track figure .d-car-frame:focus-visible img {
    filter: brightness(0.5);
    transform: scale(1.035);
  }

  .d-car-track figure:hover .d-car-over,
  .d-car-frame:focus-visible .d-car-over {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Au clavier, même chose (règles à part : un navigateur qui ne connaît pas :has les ignore sans casser le reste) */
@media (hover: hover) {
  .d-car-track:has(.d-car-frame:focus-visible) figure .d-car-frame {
    transform: scale(0.94);
  }

  .d-car-track:has(.d-car-frame:focus-visible) figure .d-car-frame:focus-visible {
    transform: none;
  }
}

/* Le nom du projet en grand, au milieu de l'image, et ce qui a été fait en pastilles (bien lisibles).
   Il apparaît d'un bloc (pas de lettres qui montent une à une). */
.d-car-over {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  color: var(--cream);
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.55s var(--ease);
  pointer-events: none;
  -webkit-font-smoothing: antialiased;
}

.d-car-name {
  max-width: 16ch;
  font-family: var(--serif);
  font-variation-settings: "SOFT" 50, "WONK" 0;
  font-size: clamp(1.9rem, 2.7vw, 3rem);
  font-weight: 380;
  line-height: 1.08;
  text-shadow: 0 2px 24px rgb(0 0 0 / 40%);
  text-wrap: balance;
}

.d-car-made {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.d-car-made span {
  padding: 0.3rem 0.9rem 0.35rem;
  border: 1px solid rgb(250 246 238 / 80%);
  border-radius: 999px;
  background: rgb(20 20 8 / 22%);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Pendant que le carrousel glisse : pas d'effet de survol (il revient dès que l'image s'arrête) */
.d-carousel.is-moving .d-car-track figure .d-car-frame,
.d-carousel.is-moving .d-car-track figure .d-car-frame img {
  filter: none;
  transform: none;
}

.d-carousel.is-moving .d-car-track figure .d-car-over {
  opacity: 0;
  transform: translateY(12px);
  transition-duration: 0.15s;
}

.d-car-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0 0 0.2rem;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  color: var(--olive);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transform: translateY(-50%);
}

.d-car-prev {
  left: 0.5rem;
}

.d-car-next {
  right: 0.5rem;
}

/* Sous le carrousel : une petite étoile par image, la feuille de la tomate du logo, en vert foncé
   (remarque de Margaux, 12 oct. au soir) ; celle de l'image affichée est plus grande et pleine */
.d-car-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.1rem;
  min-height: 2.2rem;
  margin: 1.2rem 0 0;
}

.d-car-dot {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.2rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--olive);
  cursor: pointer;
}

.d-car-dot svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  opacity: 0.6;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.d-car-dot:hover svg {
  opacity: 0.85;
}

.d-car-dot.is-on svg {
  opacity: 1;
  transform: scale(1.65) rotate(-18deg);
}

.d-car-dot:focus-visible {
  outline-offset: -2px;
  border-radius: 8px;
}

/* --- 4. Qui suis-je ------------------------------------------------- */

.d-qui {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
}

.d-qui-photo {
  position: relative;
  max-width: 460px;
}

.d-qui-photo > img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 42% 50%;
  border-radius: var(--r-media);
  box-shadow: var(--shadow-on-dark); /* règle : toute photo a une ombre portée (Nathan, 17 oct.) */
}

.d-stamp--qui {
  position: absolute;
  right: -1.6rem;
  bottom: -1.6rem;
  width: 122px;
}

/* Petit mot écrit à la main, en haut à gauche de la photo (remarques de Margaux, 12 et 13 oct.) :
   crème sur l'olive, un peu penché, avec une petite flèche tracée qui descend vers la photo.
   Écriture à lettres liées, comme une belle écriture à la main, pas vieillotte : police Ms Madi
   (une seule graisse : pas de gras forcé, sinon le navigateur l'épaissit mal). */
.d-handnote {
  position: absolute;
  top: -3.6rem;
  left: -0.4rem;
  z-index: 2;
  margin: 0;
  color: var(--cream);
  font-family: "Ms Madi", "Segoe Script", "Apple Chancery", cursive;
  font-size: clamp(2.2rem, 3.2vw, 3rem);
  font-weight: 400;
  font-synthesis: none;
  line-height: 1;
  white-space: nowrap;
  transform: rotate(-4deg);
  transform-origin: left bottom;
}

/* la flèche part du bout du mot et descend vers la photo */
/* Seul le mot « Hello » est en orange (Nathan, 18 oct.) */
.d-handnote-hello {
  color: var(--jaune); /* 18 oct. au soir (Nathan) : jaune de la charte, avant orange (--cta) */
}

.d-handnote-arrow {
  position: absolute;
  top: 78%;
  left: 62%;
  width: 2.6rem;
  height: 3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Le nom, le métier et la phrase de Margaux : la typo d'avant (règles perdues par erreur en V2, remises le 13 oct.) */
.d-qui-copy .d-h2 {
  color: var(--cream);
}

.d-qui-role {
  margin: 0.5rem 0 1.4rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 340;
}

.d-quote {
  margin: 0 0 1.2rem;
  padding: 0;
}

.d-quote p {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-style: italic;
  font-weight: 340;
  line-height: 1.3;
}

/* --- 5. Renforce ton image ------------------------------------------ */

/* Le titre et les 3 promesses à gauche, une photo en situation à droite (remarque de Margaux, 12 oct.).
   Téléphone et tablette : titre, photo, puis promesses. */
.d-renforce-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  grid-template-areas:
    "head photo"
    "list photo";
  grid-template-rows: auto 1fr;
  column-gap: clamp(2.5rem, 6vw, 5.5rem);
  max-width: calc(1080px + 2 * var(--gutter));
}

.d-renforce-head {
  grid-area: head;
  max-width: none;
  margin: 0 0 1.8rem;
  text-align: left;
}

.d-renforce-head .d-head-lead {
  margin-inline: 0;
}

.d-renforce-photo {
  grid-area: photo;
  align-self: center;
  overflow: hidden;
  margin: 0;
  border-radius: var(--r-media);
  box-shadow: var(--shadow);
  transition: box-shadow 0.5s ease;
}

.d-renforce-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

/* Au survol (remarque de Margaux, 12 oct. au soir) : la photo se rapproche doucement dans son cadre */
@media (hover: hover) {
  .d-renforce-photo:hover {
    box-shadow: 0 34px 60px -30px rgb(71 71 33 / 68%);
  }

  .d-renforce-photo:hover img {
    transform: scale(1.06);
  }
}

.d-promesses {
  grid-area: list;
  align-self: start;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-2);
  list-style: none;
}

.d-promesses li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: 0.1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.d-promesses .d-tomate {
  grid-row: span 2;
  margin-top: 0.4rem;
}

.d-promesses strong {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 380;
  line-height: 1.25;
}

/* --- 6. Packs au clic (A) ------------------------------------------- */

.d-packs {
  max-width: 1080px;
  margin: 0 auto;
}

.d-tabs {
  position: relative;
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 2.2rem;
  padding: 0.3rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--cream);
}

.d-tab {
  position: relative;
  z-index: 1;
  min-height: 44px;
  padding: 0.55rem 1.35rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--olive);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s ease;
}

.d-tab[aria-selected="true"] {
  color: var(--cream);
}

/* Tant que le script n'a pas placé le fond qui glisse, l'onglet ouvert porte lui-même le fond olive */
.d-tabs:not(.is-ready) .d-tab[aria-selected="true"] {
  background: var(--olive);
}

.d-tab-indicator {
  position: absolute;
  top: 0.3rem;
  bottom: 0.3rem;
  left: 0;
  z-index: 0;
  width: 0;
  border-radius: 999px;
  background: var(--olive);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.d-panes {
  display: grid;
}

.d-pane {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.8rem, 4vw, 3.2rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.d-pane.is-on {
  opacity: 1;
  visibility: visible;
}

.d-pane-visual {
  position: relative;
  margin: 0;
}

.d-pane-visual > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-media);
  box-shadow: var(--shadow);
}

/* 18 oct. au soir (Nathan) : sur ordinateur, le texte de chaque pack part du même endroit (avant : centré à côté de la photo,
   donc plus ou moins haut selon la longueur du texte) — à la hauteur où était Signature */
@media (min-width: 901px) {
  .d-pane-copy {
    align-self: start;
    padding-top: 1.8rem;
  }
}

/* téléphone et tablette (photo au-dessus du texte) : chaque pack part du haut, sans glisser selon sa longueur */
@media (max-width: 900px) {
  .d-pane {
    align-content: start;
  }
}

.d-pane-name {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.d-pane-name h3 {
  margin: 0;
  font-family: var(--serif);
  font-variation-settings: "SOFT" 50, "WONK" 0;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 380;
  line-height: 1;
}

.d-pane-pitch {
  font-size: 1.05rem;
}

.d-pane-delay,
.d-tarif-delay {
  display: inline-block;
  margin: 0 0 1.2rem;
  padding: 0.2rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 380;
}

.d-pane-copy .d-btn {
  display: flex;
  width: max-content;
}

/* Listes : petite pastille tomate, ou « + » pour ce qui s'ajoute au pack précédent */
.d-dots,
.d-dashes,
.d-plus {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}

.d-dots li,
.d-dashes li,
.d-plus li {
  position: relative;
  padding-left: 1.4rem;
  line-height: 1.5;
}

.d-dots li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cta);
}

.d-plus li::before {
  content: "+";
  position: absolute;
  left: 0.05rem;
  top: -0.05em;
  color: var(--cta);
  font-weight: 700;
  font-size: 1.15em;
}

/* Packs de l'accueil (18 oct. au soir, Nathan) : « Tout Essentiel » / « Tout Signature » sur l'étiquette jaune doux
   (la même que « Une question qui mijote ? »), sans « + » devant ; les lignes suivantes sont ce qui s'ajoute */
.d-plus li.d-plus-base {
  padding-left: 0;
}

.d-plus li.d-plus-base::before {
  content: none;
}

.d-plus-base .d-label {
  margin: 0 0 0.2rem;
}

/* « Tout Essentiel » penché dans l'autre sens que « Tout Signature » (Nathan, 18 oct. au soir) */
#d-pane-signature .d-plus-base .d-label {
  transform: rotate(2deg);
}

/* « Pas compris » : plus discret, mais toujours lisible (contraste ≥ 4,5:1) */
.d-dashes li {
  opacity: 0.78;
}

.d-dashes li::before {
  content: "—";
  position: absolute;
  left: 0;
}

/* --- FAQ (deux colonnes) -------------------------------------------- */

.d-faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1rem 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}

.d-faq-col {
  display: grid;
  gap: 1rem;
}

.d-faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--cream);
  box-shadow: var(--shadow-sm);
}

.d-faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 0.9rem 3.4rem 0.9rem 1.4rem;
  font-family: var(--serif);
  font-variation-settings: "SOFT" 50, "WONK" 0;
  font-size: 1.15rem;
  font-weight: 420;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.d-faq-item summary::-webkit-details-marker {
  display: none;
}

/* Un « + » fin, sans pastille (remarque de Margaux, 12 oct. : la grosse pastille verte alourdissait) :
   deux petits traits olive ; à l'ouverture, le trait vertical se couche et le « + » devient « − ».
   Au repliage, le script pose « is-closing » : le « − » redevient « + » tout de suite, sans attendre
   la fin du mouvement de la réponse. */
.d-faq-item summary::before,
.d-faq-item summary::after {
  content: "";
  position: absolute;
  right: 1.45rem;
  top: 50%;
  width: 14px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--olive);
  transform: translateY(-50%);
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}

.d-faq-item summary::after {
  transform: translateY(-50%) rotate(90deg);
}

.d-faq-item[open]:not(.is-closing) summary::after {
  transform: translateY(-50%) rotate(0deg);
  opacity: 0;
}

.d-faq-item summary:hover::before,
.d-faq-item summary:hover::after {
  background: var(--cta);
}

.d-faq-item p {
  margin: 0;
  padding: 0 1.4rem 1.3rem;
}

/* La réponse se déplie et se replie en douceur (18 oct., Nathan) : le script (site-d.js, « Questions fréquentes »)
   anime la hauteur et la transparence de cette boîte. On ne la rogne que pendant le mouvement
   (« is-moving »), pour ne pas couper le soulignement des liens le reste du temps.
   Sans script, ou avec « réduire les animations », la question s'ouvre et se ferme d'un coup, comme avant. */
.d-faq-body.is-moving {
  overflow: hidden;
}

.d-faq-item a,
.d-note a,
.d-story-body a,
.d-legal a {
  font-weight: 600;
  text-decoration-color: var(--cta);
  text-underline-offset: 0.25em;
}

/* --- Bloc final : plus chaleureux, avec une photo et un petit mot à la main (12 oct. au soir) --- */

.d-section--cta {
  background: var(--cream);
}

.d-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  max-width: 1000px;
  margin: 0 auto;
}

/* la photo, un peu penchée, comme posée là */
.d-cta-photo {
  margin: 0;
  justify-self: end;
  width: 100%;
  max-width: 360px;
  transform: rotate(-2.5deg);
}

.d-cta-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 50%; /* chaque photo de projet peut préciser son cadrage (CTA_PHOTOS dans content.py) */
  border-radius: var(--r-media);
  box-shadow: var(--shadow);
}

.d-cta .d-h2 {
  max-width: 18ch;
}

.d-cta-text {
  max-width: 34rem;
  margin: 1rem 0 0;
}

.d-cta-direct {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.8rem;
  margin: 1.5rem 0 0;
  font-size: 0.98rem;
}

/* Soulignement orange ; au survol (ou au clavier), la couleur de « Hello, » le recouvre de gauche à droite,
   comme une barre de chargement (Nathan, 30 oct.). Le trait est dessiné en fond (2 dégradés) et non par
   text-decoration, qui ne sait pas changer de couleur petit à petit. */
.d-cta-direct a {
  padding-bottom: 0.2em;
  background-image: linear-gradient(var(--jaune), var(--jaune)), linear-gradient(var(--cta), var(--cta));
  background-position: left bottom, left bottom;
  background-repeat: no-repeat;
  background-size: 0% 1.5px, 100% 1.5px;
  text-decoration: none;
  transition: background-size 0.5s var(--ease);
}

.d-cta-direct a:hover,
.d-cta-direct a:focus-visible {
  background-size: 100% 1.5px, 100% 1.5px;
}

/* « réduire les animations » : la couleur change d'un coup */
@media (prefers-reduced-motion: reduce) {
  .d-cta-direct a {
    transition: none;
  }
}

/* le petit mot de la fin, écrit à la main (même écriture que dans « Qui suis-je ») */
.d-cta-sign {
  margin: 1.4rem 0 0;
  color: var(--cta);
  font-family: "Ms Madi", "Segoe Script", "Apple Chancery", cursive;
  font-size: 2.5rem;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.05;
  transform: rotate(-3deg);
  transform-origin: left center;
}

.d-cta-sign span {
  margin-left: 0.4rem;
  color: var(--olive);
}

/* Tablette et téléphone : la photo au-dessus, en bandeau, puis le texte centré */
@media (max-width: 900px) {
  .d-cta {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
    gap: 2rem;
    text-align: center;
  }

  .d-cta-photo {
    justify-self: center;
    max-width: 100%;
    transform: rotate(-1.5deg);
  }

  .d-cta-photo img {
    aspect-ratio: 16 / 10;
  }

  .d-cta .d-h2,
  .d-cta-text {
    margin-inline: auto;
  }

  .d-cta .d-actions,
  .d-cta-direct {
    justify-content: center;
  }

  .d-cta-sign {
    transform-origin: center;
  }
}

/* Téléphone : mail, téléphone et Instagram l'un sous l'autre (pas de point qui traîne en début de ligne) */
@media (max-width: 640px) {
  .d-cta-direct {
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
  }

  .d-cta-direct span {
    display: none;
  }
}

/* --- Pages intérieures : en-tête ------------------------------------ */

.d-pagehead {
  padding-block: clamp(2.5rem, 7vh, 4.5rem) clamp(2.5rem, 6vh, 3.5rem);
}

.d-pagehead .d-h1 {
  max-width: 18ch;
}

.d-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.d-back:hover {
  text-decoration: underline;
  text-decoration-color: var(--cta);
}

.d-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.8rem;
}

.d-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.05rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.d-toc a:hover {
  background: var(--olive);
  color: var(--cream);
}

/* --- Offres --------------------------------------------------------- */

.d-socle {
  padding: clamp(1.3rem, 3vw, 2rem);
  border-radius: 20px;
  background: var(--tint);
}

.d-socle-title {
  margin: 0 0 1.2rem;
  font-family: var(--serif);
  font-variation-settings: "SOFT" 50, "WONK" 0;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 400;
}

.d-socle ul {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.d-socle li {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding: 1.1rem;
  border-radius: 12px;
  background: var(--cream);
}

.d-socle strong {
  margin-top: 0.3rem;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 440;
  line-height: 1.25;
}

.d-socle span {
  font-size: 0.92rem;
  line-height: 1.5;
}

.d-tarifs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(1rem, 2vw, 1.6rem);
}

.d-tarif {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--cream);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(var(--header-h) + 2.5rem);
}

.d-tarif.is-featured {
  border: 2px solid var(--olive);
}

.d-tarif-img {
  position: relative;
  margin: 0;
}

.d-tarif-img > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 21px 21px 0 0;
}

.d-tarif.is-featured .d-tarif-img > img {
  border-radius: 20px 20px 0 0;
}

/* « Le + demandé » sur la plaquette : banderole en haut à gauche de l'image */
.d-tarif .d-badge {
  top: 0.9rem;
  left: -0.6rem;
}

.d-tarif-body {
  flex: 1;
  padding: 1.5rem 1.6rem 0;
}

.d-tarif-name {
  margin: 0;
  font-family: var(--serif);
  font-variation-settings: "SOFT" 50, "WONK" 0;
  font-size: clamp(1.9rem, 2.6vw, 2.3rem);
  font-weight: 380;
  line-height: 1;
}

.d-tarif-pitch {
  margin: 0.4rem 0 0;
}

.d-tarif-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.6rem;
  margin: 1.2rem 0 0.5rem;
}

.d-tarif-price span {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.d-tarif-price strong {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3vw, 2.6rem);
  font-weight: 380;
  line-height: 1.05;
}

.d-tarif-delay {
  border-color: transparent;
  background: var(--tint);
}

.d-tarif-intro {
  margin: 0.4rem 0 0.6rem;
  font-weight: 600;
}

.d-tarif-intro.is-muted {
  margin-top: 1rem;
  opacity: 0.8;
}

.d-more {
  margin: 0 0 1rem;
  padding: 0.2rem 0 0.6rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.d-more summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-right: 2rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.d-more summary::-webkit-details-marker {
  display: none;
}

/* le même « + » fin que la FAQ, qui devient « − » à l'ouverture */
.d-more summary::before,
.d-more summary::after {
  content: "";
  position: absolute;
  right: 0.35rem;
  top: 50%;
  width: 12px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform: translateY(-50%);
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}

.d-more summary::after {
  transform: translateY(-50%) rotate(90deg);
}

.d-more[open] summary::after {
  transform: translateY(-50%) rotate(0deg);
  opacity: 0;
}

.d-more ol {
  margin: 0.2rem 0 0;
  padding-left: 1.3rem;
  columns: 2;
  column-gap: 1.2rem;
}

.d-more li {
  break-inside: avoid;
  line-height: 1.5;
}

.d-tarif-actions {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  padding: 1.4rem 1.6rem 1.5rem;
}

.d-tarif-actions .d-btn {
  width: 100%;
}

.d-note {
  max-width: 46rem;
  margin: 2.2rem auto 0;
  text-align: center;
}

/* Brandboard ou charte graphique */
.d-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 1000px;
  margin: 1.4rem auto 0;
}

.d-duo-card {
  padding: 1.6rem 1.7rem;
  border-radius: var(--r-card);
  background: var(--tint);
}

.d-duo-card h3 {
  margin-top: 0.2rem;
}

.d-duo-card p:last-child {
  margin: 0;
}

/* Comparatif */
.d-table-wrap {
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--cream);
  box-shadow: var(--shadow-sm);
}

.d-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.d-compare thead th {
  padding: 1rem 0.8rem;
  background: var(--olive);
  color: var(--cream);
  font-family: var(--serif);
  font-variation-settings: "SOFT" 50, "WONK" 0;
  font-size: 1.3rem;
  font-weight: 400;
}

.d-compare thead th:first-child,
.d-compare tbody th {
  width: 40%;
}

.d-compare tbody th {
  padding: 0.8rem 1.1rem;
  font-weight: 500;
  text-align: left;
}

.d-compare td {
  padding: 0.8rem 0.6rem;
  text-align: center;
}

.d-compare tbody tr + tr th,
.d-compare tbody tr + tr td {
  border-top: 1px solid var(--line);
}

.d-compare td.is-featured {
  background: rgb(71 71 33 / 6%);
}

.d-compare tbody tr:last-child th,
.d-compare tbody tr:last-child td {
  font-weight: 600;
}

.d-yes {
  width: 18px;
}

.d-no {
  opacity: 0.75;
}

/* Étapes (une suite : numérotées), racontées comme un petit chemin (remarque de Margaux, 12 oct. au soir) :
   une petite fenêtre ronde illustrée par étape, de la graine à la tomate mûre, reliées par des pointillés */
.d-path {
  position: relative;
}

.d-path-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 104px;
  fill: none;
  stroke: var(--olive);
  stroke-opacity: 0.42;
  stroke-width: 2.2;
  stroke-dasharray: 0.5 9;
  stroke-linecap: round;
  overflow: visible;
  pointer-events: none;
}

.d-path-line path {
  vector-effect: non-scaling-stroke;
}

.d-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.d-steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.d-stage {
  display: block;
  flex: none;
  width: 104px;
  height: 104px;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--cream);
  box-shadow: var(--shadow-sm);
}

.d-stage svg {
  display: block;
  width: 100%;
  height: 100%;
}

.st-sol { fill: var(--olive); }
.st-graine,
.st-fleur { fill: var(--jaune); }
.st-idee { fill: none; stroke: var(--jaune); stroke-width: 2; stroke-linecap: round; }
.st-tige { fill: none; stroke: var(--olive-2); stroke-width: 2.6; stroke-linecap: round; }
.st-feuille,
.st-coeur { fill: var(--olive-2); }
.st-fruit { fill: #e6937b; } /* accent chaud de la charte : la tomate qui rougit */
.st-calice { fill: var(--olive); }
.st-mure { fill: var(--cta); }
.st-etoile { fill: var(--cream); }

.d-step-num {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 340;
  line-height: 1;
  color: var(--olive-2);
}

.d-steps h3 {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 440;
  line-height: 1.25;
}

.d-steps p {
  max-width: 24ch;
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
}

/* À la carte */
.d-carte {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.d-carte-card {
  padding: 1.7rem 1.6rem;
  border-radius: var(--r-card);
  background: var(--tint);
}

.d-carte-desc {
  font-style: italic;
}

.d-carte-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.d-carte-card li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.97rem;
}

/* --- Offres de la D, refaite avec les remarques de Margaux (12 oct. au soir) ------------------- */

/* Haut de page : le titre à gauche, « Dans chaque pack » à droite (plus de vide à côté du titre) */
.d-offhead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.d-offhead .d-h1 {
  max-width: 12ch;
}

/* même esprit que l'étiquette de l'accueil (encadré crème, contour fin) */
.d-socle.d-socle--side {
  padding: clamp(1.5rem, 2.6vw, 2.1rem) clamp(1.5rem, 2.6vw, 2.2rem);
  border-radius: 22px;
  background: var(--cream);
  box-shadow: var(--shadow-sm);
  outline: 1px solid var(--line-2);
  outline-offset: -10px;
}

.d-socle.d-socle--side .d-socle-title {
  margin-bottom: 0.2rem;
}

.d-socle-lead {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-style: italic;
}

.d-socle.d-socle--side ul {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.d-socle.d-socle--side li {
  grid-template-columns: 20px minmax(0, 1fr);
  column-gap: 0.85rem;
  row-gap: 0.1rem;
  padding: 0.7rem 0;
  border-top: 1px dashed var(--line-2);
  border-radius: 0;
  background: none;
}

.d-socle.d-socle--side li:first-child {
  border-top: 0;
}

.d-socle.d-socle--side .d-tomate {
  grid-row: span 2;
  margin-top: 0.25rem;
}

.d-socle.d-socle--side strong {
  margin: 0;
  font-size: 1.06rem;
}

.d-socle.d-socle--side span {
  font-size: 0.9rem;
}

/* Les packs : fiches compactes, qu'on voit en entier sur un écran ; ce que chaque pack ajoute ; le prix tout en bas */
.d-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(1rem, 2vw, 1.6rem);
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 1.2rem;
}

.d-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.6rem 1.5rem;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  background: var(--cream);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(var(--header-h) + 2.5rem);
}

/* Signature, le plus demandé : contour olive, un peu plus haut que les autres, et le tampon qui tourne */
.d-plan.is-featured {
  border: 2px solid var(--olive);
  box-shadow: var(--shadow);
  transform: translateY(-1rem);
}

.d-plan-head {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  min-height: 52px;
}

.d-plan-name {
  margin: 0;
  font-family: var(--serif);
  font-variation-settings: "SOFT" 50, "WONK" 0;
  font-size: clamp(1.9rem, 2.6vw, 2.3rem);
  font-weight: 380;
  line-height: 1;
}

.d-plan-pitch {
  margin: 0.7rem 0 1rem;
  font-size: 0.98rem;
}

.d-plan-list {
  display: grid;
  flex: 1;
  align-content: start;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.d-plan-list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.97rem;
  line-height: 1.45;
}

/* ce qui vient du pack précédent : un point olive ; ce qui s'ajoute : un « + » tomate */
.d-plan-list .is-base {
  font-weight: 600;
}

.d-plan-list .is-base::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 0.3rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--olive);
}

.d-plan-list .is-plus::before {
  content: "+";
  position: absolute;
  top: -0.14em;
  left: 0.2rem;
  color: var(--cta);
  font-size: 1.25em;
  font-weight: 700;
}

/* ce qui n'est pas dans le pack, en plus discret (contraste ≥ 4,5:1) : l'écart avec le pack suivant se voit tout de suite */
.d-plan-minus {
  margin: auto 0 1rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--line-2);
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.8;
}

.d-plan-minus span {
  font-weight: 600;
}

.d-plan .d-more {
  margin-top: -0.2rem;
}

.d-plan-foot {
  display: grid;
  gap: 0.45rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.d-plan-delay {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 380;
}

.d-plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.6rem;
  margin: 0 0 0.5rem;
}

.d-plan-price span {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.d-plan-price strong {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3vw, 2.6rem);
  font-weight: 380;
  line-height: 1;
}

/* « HT » collé au prix, en petit (Nathan, 13 oct. : tous les prix sont HT). Sans espace avant : il ne passe jamais seul à la ligne. */
.d-plan-price .d-ht {
  margin-left: 0.4rem;
  font-family: var(--sans);
  letter-spacing: 0.1em;
}

.d-plan-foot .d-btn {
  width: 100%;
}

.d-plans-note {
  margin-top: 2.4rem;
}

/* Ordinateur peu haut (1366 × 657, 1280 × 720…) : les fiches se resserrent pour tenir en entier dans l'écran */
@media (min-width: 901px) and (max-height: 820px) {
  .d-plan {
    padding: 1.15rem 1.4rem 1.2rem;
  }

  .d-plan-head {
    min-height: 44px;
  }

  .d-plan-pitch {
    margin: 0.4rem 0 0.7rem;
    font-size: 0.94rem;
  }

  .d-plan-list {
    gap: 0.35rem;
    margin-bottom: 0.7rem;
    padding-top: 0.7rem;
  }

  .d-plan-list li {
    font-size: 0.93rem;
  }

  .d-plan-minus {
    margin-bottom: 0.6rem;
    padding-top: 0.5rem;
    font-size: 0.86rem;
  }

  .d-plan .d-more summary {
    min-height: 36px;
  }

  .d-plan-foot {
    gap: 0.3rem;
    padding-top: 0.7rem;
  }

  .d-plan-price {
    margin-bottom: 0.3rem;
  }

  .d-plan-price strong {
    font-size: 2.1rem;
  }

  .d-plan-foot .d-btn {
    min-height: 46px;
  }
}

/* « Le + demandé » : un tampon rond qui tourne, olive et crème (couleurs du badge), sur le coin de Signature */
.d-plan-stamp {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(96px, 8vw, 116px);
  aspect-ratio: 1;
  overflow: hidden; /* les coins du carré qui tourne ne dépassent pas du rond */
  border-radius: 50%;
  background: var(--olive);
  color: var(--cream);
  box-shadow: 0 1px 3px rgb(71 71 33 / 22%), 0 10px 26px -6px rgb(71 71 33 / 48%);
  transform: translate(18%, -40%);
  -webkit-font-smoothing: antialiased;
}

.d-plan-stamp-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: d-spin 22s linear infinite;
}

.d-plan-stamp-ring text {
  fill: var(--cream);
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.d-plan-stamp-leaf {
  width: 30%;
  height: 30%;
  fill: var(--jaune);
}

/* Brandboard ou charte : une fiche, ou un livret (sur l'olive, pour le peps) */
.d-bc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  max-width: 1060px;
  margin: 0 auto;
}

.d-bc-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.d-bc-item .d-pill {
  background: var(--cream);
  color: var(--olive);
}

.d-bc-item h3 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-variation-settings: "SOFT" 50, "WONK" 0;
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  font-weight: 400;
  line-height: 1.15;
}

.d-bc-item p:not(.d-pill) {
  margin: 0;
}

.d-bc-cap {
  margin-top: 0.7rem !important;
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
  opacity: 0.85;
}

.d-bc-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  margin-bottom: 1.6rem;
}

/* la fiche (brandboard) : dessinée en HTML, avec les codes de Studio Tomate */
.d-bb-sheet {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 80%;
  height: fit-content;
  aspect-ratio: 1600 / 1222;
  margin: auto;
  padding: 5% 6% 5.5%;
  border-radius: 6px;
  background: var(--cream);
  color: var(--olive);
  box-shadow: 0 30px 50px -28px rgb(0 0 0 / 55%);
  transform: rotate(-2.5deg);
  container-type: inline-size;
  -webkit-font-smoothing: auto;
}

.d-bb-head {
  display: flex;
  justify-content: space-between;
  margin: 0;
  font-size: 3.4cqw;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}

.d-bb-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 6cqw;
}

.d-bb-logo {
  width: 100%;
  height: auto;
}

.d-bb-type {
  display: grid;
  gap: 1.5cqw;
  margin: 0;
  font-size: 3.6cqw;
  line-height: 1.35;
}

.d-bb-aa {
  font-family: var(--serif);
  font-size: 13cqw;
  line-height: 0.9;
}

.d-bb-colors {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2.4cqw;
  margin: 0;
  padding: 0;
  font-size: 2.9cqw;
  list-style: none;
}

.d-bb-colors li {
  display: grid;
  gap: 1cqw;
}

.d-bb-colors li span {
  display: block;
  aspect-ratio: 1.3;
  border: 1px solid rgb(71 71 33 / 18%);
  border-radius: 1.4cqw;
}

/* le livret (charte) : trois pages de la charte de Mondial Auto, en éventail ; il s'ouvre un peu au survol */
.d-book-page {
  position: absolute;
  inset: 0;
  width: 74%;
  height: auto;
  aspect-ratio: 1600 / 1222;
  margin: auto;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 24px 40px -26px rgb(0 0 0 / 60%);
  transition: transform 0.6s var(--ease);
}

.d-book-page--1 {
  z-index: 3;
  transform: translate(-6%, 6%) rotate(-3deg);
}

.d-book-page--2 {
  z-index: 2;
  transform: translate(2%, -1%) rotate(3deg);
}

.d-book-page--3 {
  z-index: 1;
  transform: translate(10%, -8%) rotate(9deg);
}

@media (hover: hover) {
  .d-bc-visual--book:hover .d-book-page--1 {
    transform: translate(-12%, 8%) rotate(-6deg);
  }

  .d-bc-visual--book:hover .d-book-page--3 {
    transform: translate(16%, -12%) rotate(13deg);
  }
}

/* À la carte : une photo par famille, et le nom de la famille en grand */
.d-carte--photos .d-carte-card {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--cream);
  box-shadow: var(--shadow-sm);
}

.d-carte-photo {
  margin: 0;
}

.d-carte-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.d-carte--photos .d-carte-body {
  padding: 1.4rem 1.6rem 1.5rem;
}

.d-carte--photos .d-carte-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-variation-settings: "SOFT" 50, "WONK" 0;
  font-size: clamp(1.75rem, 2.4vw, 2.15rem);
  font-weight: 400;
  line-height: 1.1;
}

/* Comparatif (page à part) : le badge du pack le plus demandé sous son nom */
.d-compare-badge {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* --- Portfolio (refait le 15 oct. 2026) ----------------------------- */
/* En haut : le titre et la liste des projets de la page. Puis les 2 études de cas (grande photo, ce que j'ai créé en
   pastilles), les 4 projets « en bref » et « Du projet au pack ». */

.d-pfhead-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.d-pfhead .d-h1 {
  max-width: 17ch;
}

.d-pfindex {
  padding: 1.2rem 1.4rem 0.6rem;
  border-radius: 18px;
  background: var(--tint);
}

.d-pfindex-title {
  margin: 0 0 0.4rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.d-pfindex ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.d-pfindex li + li {
  border-top: 1px dashed var(--line-2);
}

.d-pfindex a {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.2rem 0.7rem;
  min-height: 44px;
  padding: 0.45rem 0;
  text-decoration: none;
}

.d-pfindex-name {
  font-weight: 600;
  white-space: nowrap;
}

.d-pfindex-kind {
  font-size: 0.86rem;
  text-align: right;
}

.d-pfindex a:hover .d-pfindex-name {
  text-decoration: underline;
  text-decoration-color: var(--cta);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.25em;
}

/* Petit titre de partie, à gauche, suivi d'un trait */
.d-pf-h2 {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 0 0 clamp(1.6rem, 4vh, 2.4rem);
  font-family: var(--titres);
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  font-weight: var(--titres-graisse);
  line-height: 1.15;
}

.d-pf-h2::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}

.d-pf-h2 > span {
  flex: 0 1 auto;
}

/* Les deux études de cas */
.d-feature {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(1.6rem, 4.5vw, 4rem);
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.d-feature + .d-feature {
  margin-top: clamp(3.5rem, 9vh, 5.5rem);
}

.d-feature--second {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.d-feature--second .d-feature-img {
  order: 2;
}

.d-feature-img {
  display: block;
  overflow: hidden;
  border-radius: var(--r-media);
  box-shadow: var(--shadow);
}

.d-feature-img img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.d-feature-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.d-feature-name {
  margin: 0 0 0.3rem;
  font-family: var(--titres);
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  font-weight: var(--titres-graisse);
  line-height: 1.04;
}

.d-feature-name a {
  text-decoration: none;
}

.d-feature-place {
  margin: 0 0 1rem;
  font-weight: 600;
}

/* Mondial Auto : la phrase honnête (hors métiers de bouche), en italique, avec un trait jaune */
.d-feature-note {
  padding-left: 0.95rem;
  border-left: 3px solid var(--jaune);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.45;
}

.d-feature-made {
  margin: 0.6rem 0 0.5rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.d-feature .d-tags {
  margin-bottom: 1.6rem;
}

.d-feature .d-tags li {
  background: var(--tint);
}

.d-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.2rem 0 1rem;
  padding: 0;
  list-style: none;
}

.d-tags li {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--cream);
  font-size: 0.82rem;
  font-weight: 600;
}

/* Les autres projets, en bref : même hauteur de photos pour tous (une photo, ou une grande et deux petites) */
.d-briefs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.6vw, 1.8rem);
}

.d-brief {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: var(--cream);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.d-brief-photos {
  display: grid;
  gap: 4px;
  aspect-ratio: 3 / 2;
  min-height: 0; /* sinon une photo en hauteur (le sac Oupette) allonge le cadre */
  overflow: hidden;
  background: var(--cream);
}

.d-brief-photos img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
}

.d-brief-photos--3 {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.d-brief-photos--3 img:first-child {
  grid-row: span 2;
}

.d-brief-body {
  padding: 1.35rem 1.6rem 1.5rem;
}

.d-brief-name {
  margin: 0 0 0.2rem;
  font-family: var(--titres);
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  font-weight: var(--titres-graisse);
  line-height: 1.1;
}

.d-brief-for {
  margin: 0 0 0.7rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.06rem;
  line-height: 1.4;
}

.d-brief .d-tags {
  margin: 0;
}

.d-brief .d-tags li {
  background: var(--tint);
}

/* Du projet au pack : une étiquette, comme « Ce qui fait la différence » sur l'accueil, une ligne par élément */
.d-pfmap {
  display: grid;
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(1.1rem, 2.4vw, 1.8rem) clamp(1.2rem, 3vw, 2.4rem);
  border-radius: 22px;
  background: var(--cream);
  outline: 1px solid var(--line-2);
  outline-offset: -11px;
  box-shadow: var(--shadow-sm);
  list-style: none;
}

.d-pfmap li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.4rem 1.1rem;
  padding: 1rem 0.4rem;
}

.d-pfmap li + li {
  border-top: 1px dashed var(--line-2);
}

.d-pfmap h3 {
  margin: 0;
  font-family: var(--titres);
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  font-weight: var(--titres-graisse);
  line-height: 1.2;
}

.d-pfmap-what p {
  margin: 0.15rem 0 0;
  font-size: 0.98rem;
}

.d-pfmap-what a {
  text-decoration-color: var(--cta);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.25em;
}

.d-pfmap-where {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.35rem 1.05rem;
  border-radius: 999px;
  background: var(--olive);
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.d-pfmap-where.is-carte {
  background: var(--jaune-doux);
  color: var(--olive);
}

.d-pfmap-where:hover {
  background: var(--cta);
  color: var(--cream);
}

.d-pfmap-section .d-actions {
  margin-top: 2.2rem;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .d-feature:hover .d-feature-img img {
    transform: scale(1.03);
  }

  .d-brief:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
  }
}

@media (max-width: 760px) {
  .d-briefs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  /* la liste des projets devient une rangée de pastilles */
  .d-pfindex {
    padding: 0;
    background: none;
  }

  .d-pfindex ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .d-pfindex li + li {
    border-top: 0;
  }

  .d-pfindex a {
    display: inline-flex;
    min-height: 44px;
    padding: 0 0.95rem;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    font-size: 0.92rem;
  }

  .d-pfindex .d-tomate,
  .d-pfindex-kind {
    display: none;
  }

  .d-pfmap li {
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: start;
  }

  .d-pfmap li > .d-tomate {
    margin-top: 0.15rem;
  }

  .d-pfmap-where {
    grid-column: 2;
    justify-self: start;
  }
}

/* --- Étude de cas --------------------------------------------------- */

.d-casehead--split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 4rem);
}

.d-casehead-img {
  justify-self: end;
  width: 100%;
  max-width: 440px;
}

.d-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 1.8rem 0 0;
}

.d-casehead--split .d-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.d-facts dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.d-facts dd {
  margin: 0.2rem 0 0;
}

.d-facts div {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--tint);
}

.d-facts dd {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
}

.d-fig {
  position: relative;
  margin: 0;
}

.d-fig img {
  width: 100%;
  border-radius: var(--r-media);
  box-shadow: var(--shadow-sm);
}

.d-fig figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgb(250 246 238 / 94%);
  font-size: 0.8rem;
  font-weight: 600;
}

.d-fig--wide img {
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.d-fig--portrait img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.d-section--story {
  padding-block: clamp(2.5rem, 6vh, 4rem);
}

.d-story {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 1.2rem clamp(2rem, 6vw, 5rem);
  padding-top: clamp(1.6rem, 4vh, 2.4rem);
  border-top: 1px solid var(--line);
}

.d-story-num {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 4.6rem);
  font-style: italic;
  font-weight: 300;
  line-height: 0.95;
  color: var(--olive-2);
}

.d-story-body p {
  line-height: 1.75;
}

.d-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.d-gallery .d-g-wide {
  grid-column: span 6;
}

.d-gallery .d-g-half,
.d-gallery .d-g-tall {
  grid-column: span 3;
}

.d-gallery .d-g-third {
  grid-column: span 2;
}

.d-g-half img,
.d-g-third img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.d-g-tall img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.d-palette {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.d-palette li {
  display: grid;
  gap: 0.15rem;
}

.d-palette-swatch {
  display: block;
  height: 110px;
  margin-bottom: 0.5rem;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgb(71 71 33 / 10%);
}

.d-palette strong {
  font-family: var(--serif);
  font-weight: 420;
}

.d-palette code {
  font-size: 0.82rem;
}

.d-next {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 1.3rem;
  max-width: 620px;
  margin: 0 auto;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--cream);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.25s var(--ease);
}

.d-next:hover {
  transform: translateY(-4px);
}

.d-next img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 13px;
}

.d-next-text {
  display: grid;
}

.d-next-text .d-kicker {
  margin-bottom: 0.3rem;
}

.d-next-name {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 380;
  line-height: 1.1;
}

.d-next-type {
  font-size: 0.92rem;
}

/* « En bref » sous la photo (15 oct.) : ce que j'ai créé, et où on le retrouve dans les offres */
.d-section--enbref {
  padding-block: clamp(2rem, 5vh, 3rem) 0;
}

.d-enbref {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.4rem, 4vw, 3.4rem);
  padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1.3rem, 3vw, 2.4rem);
  border-radius: 22px;
  background: var(--tint);
}

.d-enbref-title {
  margin: 0 0 0.8rem;
  font-family: var(--titres);
  font-size: clamp(1.45rem, 2.2vw, 1.8rem);
  font-weight: var(--titres-graisse);
  line-height: 1.15;
}

.d-enbref-made .d-dots {
  columns: 2;
  column-gap: 2rem;
  margin: 0;
}

.d-enbref-made .d-dots li {
  break-inside: avoid;
}

.d-enbref-where {
  align-self: center;
}

.d-enbref-where p {
  margin: 0;
}

.d-enbref-where p + p {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--line-2);
}

.d-enbref-where .d-link {
  min-height: 0;
  margin-left: 0.2rem;
}

/* Charte de Mondial Auto : ce qu'on retrouve dans les packs Signature et Stratégie */
.d-story-pack {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  margin: 1.2rem 0 0;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: var(--tint);
}

.d-story-pack .d-tomate {
  margin-top: 0.2rem;
}

.d-story-pack a {
  font-weight: 600;
  text-decoration-color: var(--cta);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.25em;
}

/* Quelques pages de la charte, à faire défiler */
.d-strip {
  margin-top: 2rem;
}

.d-strip-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(250px, 36vw, 500px);
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0.4rem 0.2rem 1.1rem;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}

.d-strip-track:focus-visible {
  outline-offset: 4px;
  border-radius: 8px;
}

.d-strip-page {
  margin: 0;
  scroll-snap-align: start;
}

.d-strip-page img {
  width: 100%;
  aspect-ratio: 1600 / 1222;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.d-strip-page figcaption {
  margin-top: 0.55rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.d-strip-nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.d-strip-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--line-2);
  border-radius: 50%;
  background: var(--cream);
  color: var(--olive);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.d-strip-btn:hover:not(:disabled) {
  border-color: var(--olive);
  background: var(--olive);
  color: var(--cream);
}

.d-strip-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* sans script, les flèches ne servent à rien : on les cache */
.d-strip:not(.is-ready) .d-strip-nav {
  display: none;
}

/* Photos en hauteur, trois par rangée (supports des Ruchers du Val) */
.d-gallery .d-g-thirdtall {
  grid-column: span 2;
}

.d-g-thirdtall img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

@media (max-width: 900px) {
  .d-enbref {
    grid-template-columns: 1fr;
  }

  .d-gallery .d-g-thirdtall {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .d-enbref-made .d-dots {
    columns: 1;
  }

  .d-gallery .d-g-thirdtall {
    grid-column: span 1;
  }

  .d-gallery .d-g-thirdtall:last-child {
    grid-column: 1 / -1;
  }

  .d-gallery .d-g-thirdtall:last-child img {
    aspect-ratio: 4 / 3;
  }
}

/* --- Le studio ------------------------------------------------------ */

.d-studio-top {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

/* Page Le studio : la photo est sur le crème, donc l'ombre olive habituelle */
.d-qui-photo--studio > img {
  box-shadow: var(--shadow);
}

.d-qui-photo--studio {
  justify-self: end;
  width: 100%;
}

.d-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: start;
  gap: 1.5rem clamp(2rem, 6vw, 5rem);
}

.d-prose p {
  font-size: 1.08rem;
  line-height: 1.75;
}

.d-pourqui {
  margin-top: 1.6rem;
  padding: 1.3rem 1.5rem;
  border-radius: var(--r-card);
  background: var(--tint);
}

.d-pourqui p:last-child {
  margin: 0;
}

.d-cards--on-olive .d-card {
  box-shadow: none;
}

.d-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.d-service {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: 1.6rem 1.5rem;
  border-radius: var(--r-card);
  background: var(--cream);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.d-service:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.d-service p {
  font-size: 0.97rem;
}

.d-service-more {
  margin-top: auto;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--cta);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.3em;
}

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

.d-contact {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4.4fr);
  align-items: start;
  gap: clamp(1.2rem, 3vw, 2rem);
}

.d-form-card {
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border-radius: 24px;
  background: var(--tint);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.d-form-title,
.d-side-card h2 {
  margin: 0 0 1.2rem;
  font-family: var(--serif);
  font-variation-settings: "SOFT" 50, "WONK" 0;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.2;
}

.d-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.2rem;
}

.d-field {
  display: grid;
  gap: 0.4rem;
}

.d-field > span {
  font-size: 0.9rem;
  font-weight: 600;
}

.d-field em {
  font-weight: 400;
  font-style: normal;
  opacity: 0.85;
}

.d-field input,
.d-field select,
.d-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--cream);
  color: var(--olive);
  font: inherit;
}

.d-field textarea {
  resize: vertical;
}

.d-field input:focus,
.d-field select:focus,
.d-field textarea:focus {
  border-color: var(--olive);
  outline: 2px solid var(--cta);
  outline-offset: 1px;
}

.d-field--full {
  grid-column: 1 / -1;
}

.d-form .d-actions {
  margin-top: 0.4rem;
}

.d-contact-side {
  display: grid;
  gap: 1rem;
}

.d-side-card {
  position: relative;
  padding: 1.6rem 1.6rem 1.5rem;
  border-radius: 20px;
  background: var(--tint);
}

.d-side-card--olive {
  background: var(--olive);
  color: var(--cream);
}

.d-side-card--olive h2 {
  padding-right: 4.5rem;
}

.d-stamp--side {
  position: absolute;
  top: -1.4rem;
  right: 1rem;
  width: 88px;
}

.d-coords,
.d-next-steps {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.d-coords a {
  text-decoration-color: var(--cta);
  text-underline-offset: 0.25em;
}

.d-next-steps {
  padding-left: 1.2rem;
  list-style: decimal;
}

/* --- Mentions légales ----------------------------------------------- */

.d-legal {
  max-width: 48rem;
  padding: clamp(1.5rem, 4vw, 2.8rem);
  border-radius: 22px;
  background: var(--tint);
}

.d-legal h2 {
  margin: 2.2rem 0 0.6rem;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 380;
}

.d-legal h2:first-child {
  margin-top: 0;
}

.d-legal p {
  line-height: 1.75;
}

/* Texte encore à écrire : bien visible pour ne pas l'oublier avant publication */
.ps-todo {
  margin: 0.6rem 0;
  padding: 0.9rem 1.1rem;
  border: 1px dashed var(--cta);
  border-radius: 10px;
  background: rgb(207 113 76 / 7%);
  font-style: italic;
}

span.ps-todo {
  display: inline-block;
  margin: 0.2rem 0;
  padding: 0.2rem 0.6rem;
}

.ps-todo::before {
  content: "À compléter — ";
  font-style: normal;
  font-weight: 600;
}

/* --- Pied de page (le seul liseré de vichy du site) ----------------- */

.d-footer {
  padding-bottom: 1.4rem;
  background: var(--olive);
  color: var(--cream);
}

.d-footer::before {
  content: "";
  display: block;
  height: 10px;
  background: var(--vichy);
}

.d-footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: 2rem;
  padding-block: clamp(2.6rem, 6vh, 3.6rem) 2rem;
}

.d-footer-brand img {
  width: 150px;
  margin-bottom: 1rem;
}

.d-footer-promesse {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 340;
}

.d-footer-title {
  margin: 0 0 0.8rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.d-footer ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.d-footer a {
  text-decoration-color: rgb(250 246 238 / 40%);
  text-underline-offset: 0.25em;
}

/* logos des réseaux, en ligne, couleur du texte ; zone de clic de 44 px (Nathan, 30 oct.) */
.d-footer-social {
  display: flex;
  gap: 0.4rem;
  margin: 0.3rem 0 0 -10px;
}

.d-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--cream);
  transition: color 0.2s ease;
}

.d-footer-social a:hover,
.d-footer-social a:focus-visible {
  color: var(--jaune);
}

.d-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgb(250 246 238 / 20%);
  font-size: 0.88rem;
}

.d-footer-bottom p {
  margin: 0;
}

/* --- Apparitions ---------------------------------------------------- */

/* Une seule apparition, la même partout : fondu qui monte un peu.
   « .d-js » est posée par le petit script de l'en-tête : sans elle, rien n'est caché. */
.d-js [data-reveal] {
  opacity: 0;
  translate: 0 20px;
  transition: opacity 0.8s ease, translate 0.9s var(--ease);
}

[data-reveal].is-in {
  opacity: 1;
  translate: 0 0;
}

/* Titre principal de chaque page : les mots montent derrière un masque */
.d-word {
  display: inline-block;
  overflow: hidden;
  margin: 0 -0.08em -0.12em;
  padding: 0 0.08em 0.12em;
  vertical-align: top;
}

.d-word > span {
  display: inline-block;
  translate: 0 105%;
  transition: translate 1s var(--ease);
}

[data-split].is-in .d-word > span {
  translate: 0 0;
}

/* --- Outil de test : version A / B / C ------------------------------ */

.t-switch {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 300;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  min-height: 40px;
  padding: 0.25rem 0.35rem 0.25rem 0.9rem;
  border-radius: 999px;
  background: #474721;
  color: #faf6ee;
  font-family: "Albert Sans", system-ui, sans-serif;
  font-size: 0.82rem;
  box-shadow: 0 14px 30px -16px rgb(71 71 33 / 60%);
}

.t-switch span {
  margin-right: 0.35rem;
}

.t-switch a {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  border-radius: 999px;
  color: #faf6ee;
  font-weight: 700;
  text-decoration: none;
}

.t-switch a:hover {
  background: rgb(250 246 238 / 15%);
}

.t-switch a[aria-current="page"] {
  background: #faf6ee;
  color: #474721;
}

/* --- Écrans moyens -------------------------------------------------- */

@media (max-width: 1180px) {
  .d-socle ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* le petit chemin garde ses 5 étapes en ligne, avec des fenêtres un peu plus petites */
  .d-steps {
    gap: 1rem;
  }

  .d-stage {
    width: 88px;
    height: 88px;
  }

  .d-path-line {
    height: 88px;
  }

  .d-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Menu en tiroir sous la barre */
@media (max-width: 1020px) {
  .d-nav {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: var(--gutter);
    right: var(--gutter);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    margin: 0;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--cream);
    color: var(--olive);
    box-shadow: var(--shadow);
  }

  .d-header.is-open .d-nav {
    display: flex;
  }

  .d-nav a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 1.1rem;
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 380;
  }

  .d-nav .d-nav-cta {
    display: flex;
    justify-content: center;
    margin-top: 0.4rem;
    font-family: var(--sans);
    font-size: 1.17rem;
    font-weight: 700;
  }

  .d-nav .d-nav-cta:hover {
    background: var(--cta);
  }

  .d-header-cta {
    margin-left: auto;
  }

  .d-burger {
    display: block;
  }
}

/* --- Tablette ------------------------------------------------------- */

@media (max-width: 900px) {
  .d-cards,
  .d-qui,
  .d-pane,
  .d-faq,
  .d-tarifs,
  .d-duo,
  .d-carte,
  .d-pfhead-grid,
  .d-feature,
  .d-feature--second,
  .d-casehead--split,
  .d-story,
  .d-studio-top,
  .d-split,
  .d-contact,
  .d-footer-top {
    grid-template-columns: 1fr;
  }

  .d-cards {
    max-width: 560px;
  }

  /* Offres : le titre puis « Dans chaque pack » ; les fiches l'une sous l'autre ; la fiche et le livret aussi */
  .d-offhead-grid,
  .d-plans,
  .d-bc {
    grid-template-columns: minmax(0, 1fr);
  }

  .d-offhead .d-h1 {
    max-width: 14ch;
  }

  .d-plans,
  .d-bc {
    max-width: 560px;
  }

  .d-plans {
    gap: 2.2rem;
  }

  .d-plan.is-featured {
    transform: none;
  }

  /* les étapes : le chemin descend, des pointillés relient les petites fenêtres */
  .d-path-line {
    display: none;
  }

  .d-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    max-width: 560px;
    margin-inline: auto;
  }

  .d-steps li {
    position: relative;
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    column-gap: 1.2rem;
    align-items: start;
    padding-bottom: 1.7rem;
    text-align: left;
  }

  .d-steps li:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 88px;
    bottom: 4px;
    left: 41px;
    border-left: 2px dotted rgb(71 71 33 / 40%);
  }

  .d-stage {
    grid-row: 1 / span 3;
    width: 84px;
    height: 84px;
    margin: 0;
  }

  .d-step-num {
    margin-top: 0.7rem;
  }

  .d-step-num,
  .d-steps h3,
  .d-steps p {
    grid-column: 2;
  }

  .d-steps p {
    max-width: none;
  }

  .d-etiquette {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
  }

  .d-etiquette li + li {
    border-left: 0;
    border-top: 1px dashed var(--line-2);
  }

  .d-etiquette li {
    padding-block: 1.3rem;
  }

  .d-qui-photo {
    max-width: 380px;
  }

  .d-qui-photo--studio {
    justify-self: start;
    order: -1;
  }

  .d-renforce-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "photo"
      "list";
    grid-template-rows: auto;
    max-width: calc(560px + 2 * var(--gutter));
  }

  .d-renforce-head {
    text-align: center;
  }

  .d-renforce-head .d-head-lead {
    margin-inline: auto;
  }

  .d-renforce-photo {
    justify-self: center;
    width: 100%;
    max-width: 420px;
    margin-bottom: 2rem;
  }

  .d-tarifs {
    max-width: 540px;
    margin-inline: auto;
    gap: 2.6rem;
  }

  /* la banderole reste dans l'image : pas de débordement sur le côté */
  .d-tarif .d-badge,
  .d-pane .d-badge {
    top: 0.8rem;
    left: 0.8rem;
  }

  .d-casehead-img {
    justify-self: start;
    max-width: 460px;
  }

  .d-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .d-gallery .d-g-half,
  .d-gallery .d-g-tall,
  .d-gallery .d-g-third {
    grid-column: span 3;
  }

  .d-palette {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 1.2rem;
  }

  .d-palette-swatch {
    height: 90px;
  }

  /* portfolio : la photo avant le texte, pour les deux études de cas */
  .d-feature--second .d-feature-img {
    order: 0;
  }

  .d-pfhead-grid {
    align-items: start;
  }

  .d-pfindex {
    max-width: 560px;
  }

  .d-car-btn {
    display: none;
  }
}

/* --- Téléphone ------------------------------------------------------ */

@media (max-width: 640px) {
  :root {
    --header-h: 66px;
    --topline-h: 28px;
  }

  .d-topline {
    font-size: 0.78rem;
  }

  .d-section {
    padding-block: clamp(3.25rem, 9vh, 4.5rem);
  }

  .d-logo img {
    height: 40px;
  }

  .d-header-cta {
    min-height: 44px;
    padding: 0 1rem;
  }

  .d-long {
    display: none;
  }

  .d-short {
    display: inline;
  }

  .d-burger {
    width: 44px;
    height: 44px;
  }

  /* le titre (le mot-clé en grand), les deux photos (on les voit tout de suite), puis le texte */
  .d-hero-grid {
    grid-template-areas:
      "top top"
      "left right"
      "copy copy";
    gap: 1.3rem 0.75rem;
  }

  .d-hero-top .d-kicker {
    margin-bottom: 0.55rem;
  }

  .d-hero-photo > img {
    aspect-ratio: 4 / 5;
    border-radius: 14px;
  }

  .d-hero-photo--right {
    margin-top: 1.4rem;
  }

  .d-hero {
    padding-top: 0.9rem; /* la vague du bandeau fait déjà de l'air */
  }

  .d-h1--hero {
    font-size: clamp(1.25rem, 5.6vw, 1.5rem);
  }

  .d-h1-key {
    font-size: clamp(2.3rem, 10.6vw, 2.9rem);
    letter-spacing: -0.025em;
  }

  .d-hero-text {
    font-size: 1rem;
    line-height: 1.55;
  }

  .d-hero .d-actions {
    gap: 0.3rem;
    margin-top: 1.3rem;
  }

  /* « Voir les offres » devient un simple lien souligné sous le bouton : l'accroche tient en moins de place */
  .d-hero .d-actions .d-btn--line {
    min-height: 44px;
    padding: 0 0.6rem;
    border-color: transparent;
    font-size: 1rem;
    text-decoration: underline;
    text-decoration-color: var(--cta);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 0.3em;
  }

  .d-hero .d-actions .d-btn--line:hover {
    background: transparent;
    color: var(--olive);
  }

  .d-stamp--hero {
    width: 70px;
    transform: translate(22%, -30%);
  }

  .d-marquee {
    padding-block: 0.5rem;
  }

  .d-carousel {
    width: calc(100% - 1.5rem);
  }

  .d-stamp--qui {
    right: -0.6rem;
    bottom: -1.2rem;
    width: 96px;
  }

  .d-cta .d-h2 {
    font-size: clamp(1.6rem, 7.6vw, 2rem);
  }

  /* « Dans chaque pack » en court sur téléphone : les titres seulement, sur deux colonnes (les fiches arrivent plus vite) */
  .d-socle.d-socle--side ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.8rem;
  }

  .d-socle.d-socle--side li {
    border-top: 0;
    padding: 0.45rem 0;
  }

  .d-socle.d-socle--side li span {
    display: none;
  }

  .d-socle.d-socle--side .d-tomate {
    grid-row: auto;
    margin-top: 0.15rem;
  }

  .d-socle.d-socle--side strong {
    font-size: 0.98rem;
  }

  /* le tampon « Le + demandé » reste dans l'écran : plus petit, sur le coin de la fiche */
  .d-plan-stamp {
    width: 96px;
    transform: translate(12%, -36%);
  }

  /* le petit mot manuscrit tient dans l'écran : la flèche descend vers la photo */
  .d-qui-photo {
    margin-top: 1.2rem;
  }

  .d-handnote {
    top: -3.1rem;
    left: 0;
    font-size: 1.95rem;
  }

  .d-handnote-arrow {
    width: 2.1rem;
    height: 2.4rem;
  }

  .d-tabs {
    width: 100%;
  }

  .d-tab {
    flex: 1;
    padding: 0.55rem 0.4rem;
    font-size: 0.95rem;
  }

  .d-pane-copy .d-btn {
    width: 100%;
  }

  .d-socle ul,
  .d-steps,
  .d-services {
    grid-template-columns: 1fr;
  }

  .d-form {
    grid-template-columns: 1fr;
  }

  .d-more ol {
    columns: 1;
  }

  /* filet de sécurité : si le tableau est encore trop large, il défile dans sa carte */
  .d-table-wrap {
    overflow-x: auto;
  }

  .d-compare {
    table-layout: fixed;
    font-size: 0.8rem;
  }

  .d-compare tbody th {
    hyphens: auto;
    overflow-wrap: break-word;
  }

  .d-compare th,
  .d-compare td {
    padding: 0.65rem 0.3rem;
  }

  /* « thead th » a ses propres marges (plus haut) : on les resserre ici aussi, sinon elles gagnent sur la règle th, td */
  .d-compare thead th {
    font-size: 0.95rem;
    padding-inline: 0.3rem;
  }

  .d-compare thead th:first-child,
  .d-compare tbody th {
    width: 35%;
  }

  .d-yes {
    width: 15px;
  }

  .d-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .d-gallery .d-g-wide {
    grid-column: 1 / -1;
  }

  .d-gallery .d-g-half,
  .d-gallery .d-g-tall,
  .d-gallery .d-g-third {
    grid-column: span 1;
  }

  /* sur téléphone, la petite étiquette passe sous l'image pour ne rien cacher */
  .d-fig figcaption {
    position: static;
    display: block;
    margin-top: 0.45rem;
    padding: 0;
    background: transparent;
    font-size: 0.78rem;
  }

  .d-next {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .t-switch {
    right: 0.5rem;
    bottom: 0.5rem;
  }
}

/* Très petits téléphones (360 px) : le tableau garde ses colonnes lisibles */
@media (max-width: 400px) {
  .d-compare {
    font-size: 0.76rem;
  }

  .d-compare thead th {
    font-size: 0.76rem;
    padding-inline: 0.2rem;
  }

  .d-compare th,
  .d-compare td {
    padding-inline: 0.2rem;
  }

  .d-compare tbody th {
    padding-left: 0.6rem;
  }
}

/* --- Mouvement réduit ---------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .d-js [data-reveal],
  .d-word > span {
    opacity: 1;
    translate: 0 0;
    transition: none;
  }

  .d-stamp svg,
  .d-plan-stamp-ring,
  .d-marquee-track {
    animation: none;
  }

  .d-car-frame,
  .d-car-track:hover figure .d-car-frame,
  .d-car-frame img,
  .d-car-track figure:hover .d-car-frame img,
  .d-car-track figure .d-car-frame:focus-visible img {
    transform: none;
    transition: none;
  }

  .d-car-dot svg,
  .d-renforce-photo img,
  .d-faq-item summary::before,
  .d-faq-item summary::after {
    transition: none;
  }

  .d-renforce-photo:hover img {
    transform: none;
  }

  .d-car-over,
  .d-car-track figure:hover .d-car-over {
    transform: none;
    transition: opacity 0.2s ease;
  }

  .d-header,
  .d-logo img,
  .d-card,
  .d-service,
  .d-next,
  .d-btn,
  .d-feature-img img,
  .d-brief,
  .d-pane,
  .d-tab-indicator {
    transition: none;
  }
}

/* Téléphone et tablette (pas de survol) : le nom du projet et ce qui a été fait passent sous la photo,
   toujours visibles, sans rien cacher de l'image */
@media (hover: none) {
  .d-car-frame {
    overflow: visible;
    border-radius: 0;
  }

  .d-car-frame img {
    border-radius: 16px;
  }

  .d-car-over,
  .d-carousel.is-moving .d-car-track figure .d-car-over {
    position: static;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.8rem 0.15rem 0;
    color: var(--olive);
    text-align: left;
    opacity: 1;
    transform: none;
    transition: none;
    -webkit-font-smoothing: auto;
  }

  .d-car-name {
    max-width: none;
    font-size: 1.35rem;
    font-weight: 420;
    text-shadow: none;
  }

  .d-car-made {
    justify-content: flex-start;
    gap: 0.35rem;
  }

  .d-car-made span {
    padding: 0.2rem 0.7rem 0.25rem;
    border-color: var(--line-2);
    background: transparent;
    font-size: 0.9rem;
  }
}

/* --- Titres : Behind The Nineties, graisse Medium (choix de Nathan, 17 oct. 2026, à la place de Playfair Display,
   police provisoire). Casloop Studio ; fichiers hébergés sur le site (assets/fonts/), avec son vrai italique.
   Licence : vraisemblablement Envato Elements (nom du dossier téléchargé) — à vérifier avant la mise en ligne
   (l'usage sur le site doit être enregistré pour ce projet). Une seule graisse : les deux fichiers répondent
   à toutes les graisses demandées, pour que le navigateur n'épaississe jamais la lettre lui-même.
   Les fichiers Mapleford Serif restent dans assets/fonts/ mais ne servent plus.
   Le reste (textes d'accroche, citations, prix…) garde Fraunces. */
@font-face {
  font-family: "Behind The Nineties";
  src: url("fonts/behind-the-nineties-md.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Behind The Nineties";
  src: url("fonts/behind-the-nineties-md-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --titres: "Behind The Nineties", "Fraunces", Georgia, serif;
  --titres-graisse: 500;
  --titres-espace: 0.025em;
}

.d-h1,
.d-h2,
.d-h3,
.d-card h3,
.d-carte-card h3,
.d-service h3,
.d-duo-card h3,
.d-etiquette h3,
.d-car-name,
.d-promesses strong,
.d-pane-name h3,
.d-socle-title,
.d-tarif-name,
.d-compare thead th,
.d-steps h3,
.d-plan-name,
.d-bc-item h3,
.d-carte--photos .d-carte-card h3,
.d-next-name,
.d-form-title,
.d-side-card h2,
.d-legal h2,
.d-bb-aa {
  font-family: var(--titres);
  font-weight: var(--titres-graisse);
  font-variation-settings: normal;
}

/* Lettres un peu plus espacées (Nathan, 17 oct. : « la typo est trop serrée ») : remplace les espacements
   négatifs réglés pour les anciennes polices (titre de l'accroche, grands titres) */
.d-h1,
.d-h1-key,
.d-h2,
.d-h3,
.d-card h3,
.d-carte-card h3,
.d-service h3,
.d-duo-card h3,
.d-etiquette h3,
.d-car-name,
.d-promesses strong,
.d-pane-name h3,
.d-socle-title,
.d-tarif-name,
.d-compare thead th,
.d-steps h3,
.d-plan-name,
.d-bc-item h3,
.d-next-name,
.d-form-title,
.d-side-card h2,
.d-legal h2 {
  letter-spacing: var(--titres-espace);
}

/* ==========================================================================
   Page Offres, 2ᵉ version (retours de Margaux, 16 oct. 2026) : des visuels dès l'arrivée, brandboard ou charte
   avant les packs, les packs au clic avec les mêmes 5 lignes pour les trois, un tableau court, la stratégie de
   marque (les racines), la carte comme au restaurant.
   ========================================================================== */

/* --- Accroche : celle de l'accueil, avec les 3 packs et leur prix --- */
.d-hero--offres .d-h1-key {
  font-size: clamp(2.4rem, 3.7vw, 4.9rem);
  white-space: normal;
  text-wrap: balance;
}

.d-hero--offres .d-h1-for {
  font-size: 0.9em;
}

.d-offchips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  max-width: 34rem;
  margin: 1.5rem auto 0;
  padding: 0;
  list-style: none;
}

.d-offchip {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  height: 100%;
  padding: 0.95rem 0.6rem 0.8rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-card);
  background: var(--cream);
  color: var(--olive);
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, border-color 0.2s ease;
}

.d-offchip.is-featured {
  border: 1.5px solid var(--olive);
}

.d-offchip-badge {
  position: absolute;
  top: 0;
  left: 50%;
  padding: 0.12rem 0.6rem;
  border-radius: 999px;
  background: var(--olive);
  color: var(--cream);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  transform: translate(-50%, -55%);
  -webkit-font-smoothing: antialiased;
}

.d-offchip-name {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--titres);
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  line-height: 1.1;
}

.d-offchip-price {
  display: grid;
  font-size: 0.82rem;
  line-height: 1.35;
  text-align: center;
}

.d-offchip-price strong {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 420;
  white-space: nowrap;
}

@media (hover: hover) {
  .d-offchip:hover {
    border-color: var(--olive);
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
  }
}

/* --- Les packs : les boutons de la B, la photo, le prix, les 5 lignes --- */
@media (min-width: 901px) {
  .d-formules .d-pane {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    align-items: center;
  }

  .d-formules .d-pane-visual > img {
    aspect-ratio: 1;
  }
}

/* un lien vers un pack (#signature…) garde les boutons des packs à l'écran */
.d-formules .d-pane[id] {
  scroll-margin-top: calc(var(--header-h) + 6.5rem);
}

.d-formules .d-pane-visual {
  margin-top: 0.4rem;
}

.d-formule-cap {
  margin-top: 0.7rem;
  font-family: var(--serif);
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.4;
  text-align: center;
}

.d-formule-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.65rem;
  margin: 0.3rem 0 1.2rem;
}

.d-formule-price > span:first-child {
  font-family: var(--serif);
  font-style: italic;
}

.d-formule-price strong {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 380;
  line-height: 1;
  white-space: nowrap;
}

.d-formule-price .d-ht {
  margin-left: 0.3rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
}

.d-formule-delay {
  padding: 0.15rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  font-family: var(--serif);
  font-style: italic;
}

.d-ing {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.d-ing-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 0.85rem 0.55rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--cream);
}

/* ce que le pack ajoute au précédent : un trait orange à gauche et la petite étiquette « en plus » */
.d-ing-row.is-plus {
  border-color: var(--line-2);
  box-shadow: inset 4px 0 0 var(--cta);
}

/* pas dans ce pack : en pointillés, plus pâle, avec le pack où on le trouve */
.d-ing-row.is-out {
  border-style: dashed;
  border-color: var(--line-2);
  background: transparent;
}

.d-ing-row.is-out .d-ing-icon {
  opacity: 0.55;
  filter: grayscale(1);
}

.d-ing-out {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0 0.5rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.5;
  vertical-align: 0.08em;
  white-space: nowrap;
}

.d-ing-row.is-out .d-ing-detail {
  font-family: var(--serif);
  font-style: italic;
}

.d-ing-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--tint);
}

.d-ing-text {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.d-ing-title {
  font-weight: 600;
  line-height: 1.3;
}

.d-ing-tag {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: var(--jaune-doux);
  color: var(--olive);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.6;
  vertical-align: 0.08em;
  white-space: nowrap;
}

.d-ing-detail {
  font-size: 0.93rem;
  line-height: 1.45;
}

.d-formules .d-actions {
  margin-top: 1.4rem;
}

/* Les petites icônes des ingrédients (dessinées pour le site, couleurs de la charte) */
.d-ic {
  display: block;
  width: 34px;
  height: 34px;
}

.d-ic-cta { fill: var(--cta); }
.d-ic-cream { fill: var(--cream); }
.d-ic-olive { fill: var(--olive); }
.d-ic-olive2 { fill: var(--olive-2); }
.d-ic-sheet { fill: var(--cream); stroke: var(--olive); stroke-width: 1.8; stroke-linejoin: round; }
.d-ic-soft { fill: none; stroke: var(--olive-2); stroke-width: 1.8; stroke-linecap: round; }
.d-ic-line { fill: none; stroke: var(--olive); stroke-width: 2; stroke-linecap: round; }
.d-ic-earth { fill: var(--olive); }
.d-ic-stem { fill: none; stroke: var(--olive-2); stroke-width: 2.2; stroke-linecap: round; }
.d-ic-leaf { fill: var(--olive-2); }
.d-ic-root { fill: none; stroke: var(--olive-2); stroke-width: 1.7; stroke-linecap: round; }

/* --- Côte à côte : le tableau en court --- */
.d-cote-wrap {
  max-width: 1000px;
  margin: 0 auto;
}

.d-cote {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.d-cote thead th {
  position: relative;
  padding: 1.6rem 0.6rem 0.9rem;
  vertical-align: bottom;
  font-weight: 400;
}

.d-cote thead th a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--olive);
  font-family: var(--titres);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.1;
  text-decoration: none;
}

.d-cote thead th a:hover span {
  text-decoration: underline;
  text-decoration-color: var(--cta);
  text-underline-offset: 0.25em;
}

.d-cote-badge {
  position: absolute;
  top: 0;
  left: 50%;
  padding: 0.12rem 0.6rem;
  border-radius: 999px;
  background: var(--olive);
  color: var(--cream);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  transform: translate(-50%, -40%);
  -webkit-font-smoothing: antialiased;
}

.d-cote tbody th,
.d-cote td {
  padding: 0.85rem 0.8rem;
  border-top: 1px solid var(--line);
}

.d-cote thead td {
  border-top: 0;
}

.d-cote tbody th {
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
}

.d-cote-label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.d-cote-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--cream);
}

.d-cote-icon .d-ic {
  width: 28px;
  height: 28px;
}

.d-cote td {
  width: 22%;
  font-size: 0.95rem;
  line-height: 1.35;
  text-align: center;
}

/* la colonne de Signature, « Le + demandé », sur une carte crème */
.d-cote th.is-featured,
.d-cote td.is-featured {
  background: var(--cream);
}

.d-cote thead th.is-featured {
  border-radius: 16px 16px 0 0;
}

.d-cote tbody tr:last-child td.is-featured {
  border-radius: 0 0 16px 16px;
}

.d-cote-yes img {
  width: 22px;
}

.d-cote-no {
  color: var(--olive-2);
  font-size: 1.1rem;
}

.d-cote-row--prix td {
  font-family: var(--serif);
  font-size: 1.12rem;
}

.d-cote-note {
  text-align: center;
}

/* --- La stratégie de marque : les racines --- */
.d-racines {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.d-racines-visual {
  display: grid;
  justify-items: center;
  width: 100%;
  max-width: 340px;
  margin: 0;
  justify-self: center;
}

.d-racines-svg {
  display: block;
  width: 100%;
  height: auto;
}

.d-racines-cap {
  margin: 0 0 0.7rem;
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.35;
  text-align: center;
}

.d-racines-cap--bas {
  margin: 0.8rem 0 0;
}

.r-sous-sol { fill: rgb(71 71 33 / 7%); }
.r-terre { fill: var(--olive); }
.r-tige { fill: none; stroke: var(--olive-2); stroke-width: 6; stroke-linecap: round; }
.r-tige--fine { stroke-width: 3.5; }
.r-feuille { fill: var(--olive-2); }
.r-tomate { fill: var(--cta); }
.r-tomate--jeune { fill: #e6937b; } /* accent chaud de la charte : la tomate qui rougit */
.r-calice { fill: var(--olive); }
.r-fleur { fill: var(--jaune); }
.r-coeur { fill: var(--olive-2); }
.r-racine { fill: none; stroke: var(--olive-2); stroke-width: 5; stroke-linecap: round; }
.r-racine--fine { stroke-width: 2.6; }
.r-poil { fill: none; stroke: var(--olive-2); stroke-width: 1.4; stroke-linecap: round; opacity: 0.8; }
.r-graine { fill: var(--jaune); }

.d-head--left {
  margin-left: 0;
  text-align: left;
}

.d-head--left .d-head-lead {
  margin-left: 0;
}

.d-racines-copy .d-head {
  margin-bottom: 1.8rem;
}

.d-racines-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem 2rem;
}

.d-racine {
  padding-top: 0.9rem;
  border-top: 1px dashed var(--line-2);
}

.d-racine h3 {
  margin: 0 0 0.45rem;
  font-family: var(--titres);
  font-size: 1.35rem;
  font-weight: var(--titres-graisse);
  line-height: 1.15;
}

.d-racine ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.d-racine li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.96rem;
  line-height: 1.45;
}

.d-racine li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--olive-2);
}

.d-racines-foot {
  margin-top: 2rem;
}

.d-racines-foot > p {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-size: 1.02rem;
}

.d-racines-foot .d-actions {
  margin-top: 1.1rem;
}

/* --- À la carte : une carte de restaurant posée sur la table (bloc olive), avec des photos de vrais projets --- */
.d-menu {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(1.8rem, 4vw, 3.2rem) clamp(1.2rem, 4vw, 3.4rem);
  border-radius: 6px;
  background: var(--cream);
  color: var(--olive);
  box-shadow: 0 30px 60px -34px rgb(28 28 12 / 60%);
}

/* le double filet d'une carte imprimée */
.d-menu::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  pointer-events: none;
}

.d-menu-head {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  margin-bottom: clamp(1.2rem, 3vw, 2rem);
  text-align: center;
}

.d-menu-title {
  margin: 0;
  font-family: var(--titres);
  font-size: clamp(2.3rem, 4vw, 3.1rem);
  line-height: 1;
}

.d-menu-sub {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-style: italic;
}

.d-menu-course {
  display: grid;
  gap: 1.1rem;
  padding-block: clamp(1.3rem, 3vw, 2rem);
  border-top: 1px dashed var(--line-2);
}

.d-menu-course-head {
  text-align: center;
}

.d-menu-course-head h3 {
  margin: 0;
  font-family: var(--titres);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: var(--titres-graisse);
  line-height: 1.1;
}

.d-menu-course-head p {
  max-width: 34rem;
  margin: 0.35rem auto 0;
  font-family: var(--serif);
  font-style: italic;
}

.d-menu-photos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.d-menu-course--3 .d-menu-photos {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 780px;
  width: 100%;
  margin-inline: auto;
}

.d-menu-photos figure {
  margin: 0;
}

.d-menu-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.d-menu-photos figcaption {
  display: grid;
  margin-top: 0.5rem;
  font-size: 0.86rem;
  line-height: 1.3;
  text-align: center;
}

.d-menu-photos figcaption strong {
  font-weight: 600;
}

.d-menu-photos figcaption span {
  font-family: var(--serif);
  font-style: italic;
}

.d-menu-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.4rem;
  width: 100%;
  max-width: 780px;
  margin: 0.2rem auto 0;
  padding: 0;
  list-style: none;
}

.d-menu-items li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px dotted var(--line-2);
  font-size: 0.98rem;
  line-height: 1.4;
}

.d-menu-items li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cta);
  transform: translateY(-1px);
}

.d-menu-course--2 .d-menu-photos {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 560px;
  width: 100%;
  margin-inline: auto;
}

/* --- Tablette et téléphone --- */
@media (max-width: 900px) {
  /* le titre d'abord, puis l'illustration, puis les 10 points */
  .d-racines {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .d-racines-copy {
    display: contents;
  }

  .d-racines-copy > .d-head {
    order: 1;
    margin-bottom: 0;
  }

  .d-racines-visual {
    order: 2;
    max-width: 240px;
  }

  .d-racines-groups {
    order: 3;
  }

  .d-racines-foot {
    order: 4;
    margin-top: 0.4rem;
  }
}

@media (max-width: 720px) {
  .d-menu-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .d-menu-items {
    grid-template-columns: 1fr;
  }

  /* le tableau : chaque ligne devient un petit titre, puis les 3 packs côte à côte */
  .d-cote,
  .d-cote thead,
  .d-cote tbody {
    display: block;
  }

  .d-cote tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .d-cote thead td {
    display: none;
  }

  .d-cote thead th {
    padding: 1.5rem 0.25rem 0.7rem;
  }

  .d-cote tbody th {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    padding: 0.9rem 0.2rem 0.35rem;
  }

  .d-cote td {
    width: auto;
    padding: 0.35rem 0.3rem 0.85rem;
    border-top: 0;
    font-size: 0.86rem;
  }

  .d-cote-icon {
    width: 32px;
    height: 32px;
  }

  .d-cote-icon .d-ic {
    width: 24px;
    height: 24px;
  }

  .d-cote tbody tr:last-child td.is-featured {
    border-radius: 0 0 12px 12px;
  }

  .d-racines-groups {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .d-offchips {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    max-width: 22rem;
  }

  .d-offchip {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.95rem;
  }

  .d-offchip-price {
    justify-self: end;
    text-align: right;
  }

  .d-offchip-badge {
    left: 0.9rem;
    transform: translateY(-55%);
  }

  .d-ing-row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 0.7rem;
    padding: 0.5rem 0.7rem 0.5rem 0.5rem;
  }

  .d-ing-icon {
    width: 40px;
    height: 40px;
  }

  .d-ic {
    width: 30px;
    height: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .d-offchip {
    transition: none;
  }
}

/* ==========================================================================
   Portfolio : le pêle-mêle (16 oct. 2026, repris de la proposition A) — toutes les photos sur un même mur,
   à trier par support ; un clic agrandit la photo (portfolio.js)
   ========================================================================== */

.d-wall-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 1.4rem;
}

.d-wall-filters[hidden] {
  display: none;
}

.d-wall-filters button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
  background: var(--cream);
  color: var(--olive);
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.d-wall-filters button span {
  min-width: 1.6em;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--tint);
  font-size: 0.8rem;
  text-align: center;
}

.d-wall-filters button:hover {
  border-color: var(--olive);
}

.d-wall-filters button[aria-pressed="true"] {
  border-color: var(--olive);
  background: var(--olive);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

.d-wall-filters button[aria-pressed="true"] span {
  background: rgb(250 246 238 / 20%);
}

/* Le mur : 4 colonnes, des cases de tailles différentes, sans trou */
.d-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 15.5vw, 235px);
  grid-auto-flow: dense;
  gap: clamp(0.5rem, 1vw, 0.85rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.d-wall-tile {
  position: relative;
  min-width: 0;
}

.d-wall-tile[hidden] {
  display: none;
}

.d-wall-tile--big {
  grid-column: span 2;
  grid-row: span 2;
}

.d-wall-tile--wide {
  grid-column: span 2;
}

.d-wall-tile--tall {
  grid-row: span 2;
}

.d-wall-tile a {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
  color: var(--cream);
  text-decoration: none;
}

.d-wall-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

/* Au survol : un voile olive uni, le nom du projet et ce que c'est */
.d-wall-over {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.15rem;
  padding: 0.9rem 1.05rem;
  background: rgb(71 71 33 / 74%);
  opacity: 0;
  transition: opacity 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

.d-wall-name {
  font-family: var(--titres);
  font-size: clamp(1.15rem, 1.7vw, 1.6rem);
  line-height: 1.1;
}

.d-wall-kind {
  font-size: 0.86rem;
  font-weight: 600;
}

.d-wall-tile a:focus-visible .d-wall-over {
  opacity: 1;
}

.d-wall-tile a:focus-visible {
  outline-offset: 3px;
}

/* Les photos des études de cas : une petite pastille dans le voile */
.d-wall-case {
  position: absolute;
  top: 0.75rem;
  left: 0.8rem;
  padding: 0.16rem 0.65rem;
  border-radius: 999px;
  background: var(--cream);
  color: var(--olive);
  font-size: 0.74rem;
  font-weight: 600;
  -webkit-font-smoothing: auto;
}

@media (hover: hover) {
  .d-wall-tile a:hover .d-wall-over {
    opacity: 1;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .d-wall-tile a:hover img {
    transform: scale(1.04);
  }
}

/* Téléphone et tablette (pas de survol) : le nom du projet reste visible, en petite étiquette */
@media (hover: none) {
  .d-wall-over {
    align-items: flex-start;
    padding: 0.5rem;
    background: none;
    opacity: 1;
  }

  .d-wall-name {
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: rgb(250 246 238 / 94%);
    color: var(--olive);
    font-family: var(--sans);
    font-size: 0.74rem;
    font-weight: 600;
    -webkit-font-smoothing: auto;
  }

  .d-wall-kind,
  .d-wall-case {
    display: none;
  }
}

/* La photo agrandie */
.d-lightbox {
  width: auto;
  max-width: min(94vw, 1240px);
  max-height: 94vh;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.d-lightbox::backdrop {
  background: rgb(71 71 33 / 94%);
}

.d-lightbox-fig {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  margin: 0;
}

.d-lightbox-fig img {
  width: auto;
  height: auto;
  max-width: min(84vw, 1120px);
  max-height: 78vh;
  border-radius: 12px;
  background: var(--cream);
  box-shadow: 0 30px 60px -30px rgb(40 40 18 / 70%);
}

.d-lightbox-fig figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.3rem 0.7rem;
  color: var(--cream);
  font-size: 1rem;
  text-align: center;
  -webkit-font-smoothing: antialiased;
}

.d-lightbox-fig figcaption strong {
  font-family: var(--titres);
  font-size: 1.3rem;
  font-weight: var(--titres-graisse);
}

.d-lb-count {
  font-size: 0.86rem;
  opacity: 0.8;
}

.d-lb-more {
  color: var(--cream);
}

.d-lb-btn {
  position: fixed;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  color: var(--olive);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.d-lb-btn:hover {
  background: var(--cta);
  color: var(--cream);
}

.d-lb-close {
  top: 1rem;
  right: 1rem;
}

.d-lb-prev,
.d-lb-next {
  top: 50%;
  translate: 0 -50%;
}

.d-lb-prev {
  left: 1rem;
}

.d-lb-next {
  right: 1rem;
}

@media (max-width: 900px) {
  .d-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: clamp(140px, 24vw, 220px);
  }
}

@media (max-width: 640px) {
  .d-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 38vw;
  }

  .d-lb-prev,
  .d-lb-next {
    top: auto;
    bottom: 1rem;
    translate: none;
  }

  .d-lightbox-fig {
    padding-bottom: 4.5rem;
  }

  .d-lightbox-fig img {
    max-width: 92vw;
    max-height: 66vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .d-wall-tile img,
  .d-wall-over {
    transition: none;
  }
}

/* --- Accueil : l'effet de « Renforce ton image » sur les autres photos (Nathan, 18 oct.) ---------------
   Au survol, la photo se rapproche doucement dans son cadre et son ombre se creuse.
   Le cadre (.d-zoom) porte l'arrondi et l'ombre portée ; la photo garde ses proportions.
   Pas sur le carrousel, qui a déjà son propre effet au survol. */
.d-zoom {
  display: block;
  overflow: hidden;
  border-radius: var(--r-media);
  box-shadow: var(--zoom-shadow, var(--shadow));
  transition: box-shadow 0.5s ease;
}

.d-zoom > img {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  transition: transform 1.2s var(--ease);
}

.d-hero-photo > .d-zoom > img,
.d-qui-photo > .d-zoom > img,
.d-cta-photo .d-zoom > img {
  aspect-ratio: 4 / 5;
}

.d-qui-photo > .d-zoom {
  --zoom-shadow: var(--shadow-on-dark);
  --zoom-shadow-hover: 0 34px 60px -30px rgb(20 20 8 / 85%);
}

.d-qui-photo > .d-zoom > img {
  object-position: 42% 50%;
}

.d-pane-visual > .d-zoom > img {
  aspect-ratio: 4 / 3;
}

@media (hover: hover) {
  .d-zoom:hover {
    box-shadow: var(--zoom-shadow-hover, 0 34px 60px -30px rgb(71 71 33 / 68%));
  }

  .d-zoom:hover > img {
    transform: scale(1.06);
  }
}

@media (min-width: 641px) and (max-width: 959px) and (max-height: 760px) {
  .d-hero-photo > .d-zoom > img {
    aspect-ratio: 1;
  }
}

@media (max-width: 900px) {
  .d-cta-photo .d-zoom > img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 640px) {
  .d-hero-photo > .d-zoom {
    border-radius: 14px;
  }

  /* 18 oct. (Nathan et Margaux) : photos plus hautes (4:5) sur téléphone, pour mieux remplir l'accroche */
  .d-hero-photo > .d-zoom > img {
    aspect-ratio: 4 / 5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .d-zoom,
  .d-zoom > img {
    transition: none;
  }

  .d-zoom:hover > img {
    transform: none;
  }
}

/* --- « Raconte-moi ton projet ! » sur une seule ligne sur ordinateur (BRIEF §2 ; audit, question 24 ; Nathan, 18 oct.) ---
   Le titre ne passe plus à la ligne ; sa taille suit la largeur de la colonne (unités « cqi ») pour ne jamais en
   dépasser, avec une marge pour les différences entre navigateurs. Sur téléphone et tablette, il reste libre. */
@media (min-width: 901px) {
  .d-cta-body {
    container-type: inline-size;
  }

  .d-cta .d-h2--une-ligne {
    max-width: none;
    white-space: nowrap;
    font-size: min(clamp(2rem, 3.8vw, 3.2rem), 8.8cqi);
  }
}

/* --- Ton site internet (Nathan, 18 oct.) : le titre centré au-dessus (la macro head() des autres blocs), puis la liste
   et les boutons à gauche, la photo à droite (18 oct. au soir, Nathan : photo à droite, titre comme les autres blocs,
   plus de légende sous la photo). Même liste à petites tomates que « Renforce ton image ». ------------------------- */
.d-web-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-areas:
    "list photo"
    "foot photo";
  grid-template-rows: auto 1fr;
  column-gap: clamp(2.5rem, 6vw, 5.5rem);
  max-width: 1080px;
  margin-inline: auto;
}

.d-web-photo {
  grid-area: photo;
  align-self: center;
  margin: 0;
}

.d-web-photo .d-zoom > img {
  aspect-ratio: 5 / 4;
}

.d-web-list {
  grid-area: list;
}

.d-web-foot {
  grid-area: foot;
  align-self: start;
  margin-top: 1.6rem;
}

.d-web-note {
  max-width: 34rem;
  margin: 0 0 1.2rem;
}

@media (max-width: 900px) {
  /* téléphone et tablette : le titre, la photo, la liste, puis les boutons */
  .d-web-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "photo"
      "list"
      "foot";
    grid-template-rows: auto;
    max-width: 560px;
  }

  .d-web-photo {
    justify-self: center;
    width: 100%;
    max-width: 480px;
    margin-bottom: 2rem;
  }

  .d-web-foot {
    text-align: center;
  }

  .d-web-note {
    margin-inline: auto;
  }

  .d-web-foot .d-actions {
    justify-content: center;
  }
}
