/* ===================================================================
   UDi — styles.css
   Ordre : @font-face → reset → base → layout → composants (Phase 2).
   Charge APRÈS tokens.css. Ne contient aucune valeur en dur :
   tout référence un token sémantique de tokens.css.
   =================================================================== */

/* ============ @font-face (self-host woff2, RGPD) ============ */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin-ext.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============ Reset moderne (« own your reset ») ============ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-20);   /* ancres sous la navbar fixe */
  background: var(--color-surface-dark);  /* le rebond de scroll (overscroll iOS) reste sombre, cohérent avec le footer */
}
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-body1);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--color-text-default);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* En bas de page : le fond du body passe au noir du footer (piloté par nav.js), pour que la barre
   d'URL des navigateurs mobiles — qui se teinte du fond du body — devienne noire. Invisible pour le
   contenu (le footer couvre déjà le viewport). */
body.at-footer { background: var(--color-surface-dark); }
img, picture, svg, video { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
:target { scroll-margin-block: 5ex; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* ============ Base typographique ============ */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-heading);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-heading); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-heading); }
h4 { font-size: var(--fs-h4); line-height: var(--lh-solid); }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }

/* Eyebrow / tagline — libellé de section */
.tagline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);                 /* 12 */
  font-family: var(--font-body);
  font-size: var(--fs-body2);
  font-weight: var(--fw-medium);
  line-height: var(--lh-solid);
  letter-spacing: var(--ls-tagline);
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.tagline__dot { width: 7px; height: 6px; color: var(--color-accent); flex-shrink: 0; }

/* ============ Layout ============ */
.container {
  /* max-width atteint à ≥ 1440px (marges auto = 128px) ;
     en dessous, gouttière de 24px (--space-6) */
  width: min(100% - 2 * var(--space-6), var(--container-max));
  margin-inline: auto;
}

/* Accessibilité — lien d'évitement */
.skip-link {
  position: absolute;
  left: var(--space-3);
  top: calc(-1 * var(--space-16));
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface-dark);
  color: var(--color-text-on-dark);
  border-radius: var(--radius-sm);
  transition: top 0.15s ease;
}
.skip-link:focus { top: var(--space-3); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===================================================================
   COMPOSANTS — ajoutés un par un en Phase 2 (un bandeau par composant)
   =================================================================== */

/* ============ Bouton / CTA ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);                 /* 12 */
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--fs-body1);          /* 16 (medium) */
  line-height: var(--lh-normal);
  color: var(--color-text-default);    /* texte encre sur orange (maquette) */
  background: var(--color-accent);
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  padding: var(--btn-pad-block) var(--btn-pad-inline);   /* 14 / 22 */
  cursor: pointer;
  transition: filter 0.15s ease, border-color 0.15s ease;
}
.btn:hover { filter: brightness(0.94); }   /* état inféré (le MCP ne donne pas les états) */
.btn__icon { width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.2s ease; }
.btn--sm {
  font-size: var(--fs-body2);          /* 14 */
  gap: var(--space-2);                 /* 8 */
  padding: var(--btn-pad-block-sm) var(--btn-pad-inline-sm);   /* 8 / 14 */
}
.btn--outline {
  background: transparent;
  border-color: var(--color-border-hairline);
}
.btn--outline:hover { filter: none; border-color: var(--color-text-default); }

/* ============ Navbar ============ */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; }
/* Fond plein, sans opacité ni flou (le glass inféré a été écarté).
   `position: relative` sert d'ancrage au panneau du menu burger : c'est .navbar — pleine largeur —
   qui doit être l'ancêtre positionné, jamais .navbar__inner (le container, avec ses marges), sinon
   le panneau se retrouve borné à la largeur du container au lieu de l'écran. */
.navbar {
  position: relative;
  background: var(--color-surface-nav);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  padding-block: var(--space-3);   /* 12 */
}
.navbar__logo { display: inline-flex; color: var(--color-text-default); }
.navbar__logo-svg { height: 26px; width: 52px; }
.navbar__nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);   /* 4 (compense le padding des liens) */
}
.navbar__nav a {
  font-size: var(--fs-body2);
  color: var(--color-text-default);
  padding: var(--space-2) var(--space-3-5);   /* 8/14 : zone de clic élargie, hauteur de barre inchangée */
  transition: color 0.15s ease;
}
.navbar__nav a:hover,
.navbar__nav a:focus-visible { color: var(--color-accent); }

/* ============ Section (base) ============ */
.section { padding-block: var(--section-padding-block); }   /* 160 */

/* ============ Tag (pill eyebrow) ============ */
.tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);                       /* 8 */
  padding: var(--space-3) var(--space-4);    /* ~12/16 (Figma 13/15, calé sur l'échelle) */
  border: 1px solid var(--color-border-hairline);
  border-radius: var(--radius-pill);
  font-size: var(--fs-body2);
  color: var(--color-text-muted);
}
.tag__dot { width: 7px; height: 6px; color: var(--color-accent); flex-shrink: 0; }

/* ============ Hero (Figma 59:815) ============ */
.hero { padding-top: clamp(6.5rem, 2rem + 11vw, 12rem); padding-bottom: var(--section-padding-block); }  /* top 104→192 dégage la navbar fixe ; bottom = rythme de section */
.hero__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;          /* ratio 630/417 en fluide (ne casse plus sous 1200px) */
  gap: clamp(2.5rem, 9vw, 8rem);             /* 40 → 128 (≈128 au desktop, fidèle à la maquette) */
  align-items: stretch;
}
.hero__col-title { display: flex; flex-direction: column; gap: var(--gap-block-sm); }  /* 32→64 */
.hero__heading { display: flex; flex-direction: column; gap: var(--space-8); }     /* 32 */
.hero h1 { max-width: 630px; }
.accent-dot { color: var(--color-accent); }
.hero__lead { max-width: 580px; color: var(--color-text-muted); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6); }  /* 24 */

/* Hero — colonne réassurance */
.hero__col-reassurance { display: flex; flex-direction: column; justify-content: flex-start; gap: var(--space-12); padding-top: calc(47px + var(--space-8)); min-width: 0; }  /* cartes alignées sur le haut du H1 (tag 47 + gap 32) */
.reassure { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin: 0; }  /* 16 */
.reassure__item {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);                /* 16 */
  padding: var(--card-pad);            /* 24 */
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border-hairline);
  border-radius: var(--radius-sm);     /* 12 */
}
.reassure__icon { width: 42px; height: 42px; }
.reassure__label { font-size: var(--fs-body2); font-weight: var(--fw-medium); }
.hero-review {
  position: relative;   /* ancre le bouton pause/lecture du carrousel */
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  gap: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border-hairline);
  margin: 0;
}
.hero-review__stars { width: 86px; height: 14px; flex-shrink: 0; }
.hero-review__quote { flex: 1 1 200px; margin: 0; }
.hero-review__quote p { font-size: var(--fs-body2); color: var(--color-text-muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }  /* hauteur bornée : 4 lignes desktop, 3 en mobile (voir MQ ≤560) */
.hero-review__quote figcaption { font-size: var(--fs-body2); font-weight: var(--fw-medium); margin-top: var(--space-1); }
/* Bouton pause / lecture du carrousel d'avis (WCAG 2.2.2 : contrôle du mouvement auto) */
.hero-review__toggle {
  position: absolute;
  top: var(--space-5);
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.15s ease;
}
.hero-review__toggle:hover { color: var(--color-accent); }
.hero-review__toggle svg { width: 15px; height: 15px; }

/* ============ En-tête de section (réutilisable) ============ */
.section-header { display: flex; flex-direction: column; gap: var(--space-8); }        /* 32 */
.section-header__titles { display: flex; flex-direction: column; gap: var(--space-4); } /* 16 */
.section-header__intro { max-width: none; color: var(--color-text-muted); text-wrap: balance; }   /* balance : lignes équilibrées (jamais une ligne pleine + 2 mots orphelins dessous) */
.method-wrap .section-header__intro { max-width: 52rem; }  /* Ma méthode : tient sur 2 lignes équilibrées en desktop */
.areas-wrap .section-header__intro { max-width: 47rem; }   /* Zone d'intervention : 3 lignes équilibrées en desktop */

/* ============ Section Constat (Figma 59:901) ============ */
.section--alt { background: var(--color-surface-alt); }
.constat { display: flex; flex-direction: column; gap: var(--gap-block); }   /* gap UNIFORME : H2 wrapper ↔ flaws ↔ disadvantages ↔ consequence */
.constat__flaws-block { display: flex; flex-direction: column; gap: var(--space-6); } /* 24 = gap entre cartes (H3→carte = carte↔carte) */
.constat__lead { color: var(--color-text-soft); }
.flaws { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); } /* 24 */
.flaw {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);                /* 16 — icône/titre/para resserrés */
  padding: var(--card-pad);            /* 24 */
  background: var(--color-surface);    /* crème */
  border: 1px solid var(--color-border-hairline);
  border-radius: var(--radius-sm);
}
.flaw p { color: var(--color-text-muted); }

/* Constat — désavantages (3 colonnes à filets, points orange aux jonctions) */
.disadvantages { display: flex; flex-direction: column; gap: var(--space-6); }  /* 24 (cohérent avec flaws-block : H3→cartes) */
.disadvantages__list { display: grid; grid-template-columns: repeat(3, 1fr); }
.disadvantage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);                /* 16 */
  padding: var(--card-pad);            /* 24 */
  border-block: 1px solid var(--color-border-hairline);
}
.disadvantage + .disadvantage { border-inline-start: 1px solid var(--color-border-hairline); }
.disadvantage:not(:first-child)::before,
.disadvantage:not(:first-child)::after {
  content: "";
  position: absolute;
  left: -3.5px;
  width: 7px;
  height: 6px;
  background: url("../img/puce.svg") center / contain no-repeat;
}
.disadvantage:not(:first-child)::before { top: -3px; }
.disadvantage:not(:first-child)::after { bottom: -3px; }
.disadvantage p { color: var(--color-text-muted); }

/* Constat — conséquence (carte sombre) */
.consequence {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--gap-block-lg);            /* horizontal (desktop) ; empilé sur mobile */
  padding: var(--gap-block-sm);        /* 32 mobile → 48 desktop */
  background: var(--color-surface-dark);
  border-radius: var(--radius-sm);
}
.consequence__lead { display: flex; flex-direction: column; gap: var(--space-6); max-width: 27rem; }  /* 24 ; titre contraint pour laisser les pills sur une ligne */
.consequence__icon { width: 64px; height: 64px; color: var(--color-accent); }
.consequence__title {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-h3);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  color: var(--color-text-on-dark);
}
.consequence__areas { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-4); }  /* 16 */
.area-pill {
  padding: var(--space-2) var(--space-4);   /* ~9/17 */
  border: 1px solid var(--color-border-hairline);
  border-radius: var(--radius-pill);
  font-size: var(--fs-body2);
  color: var(--color-text-muted);
}
.area-pill--accent { border-color: var(--color-accent-soft); color: var(--color-accent); font-weight: var(--fw-medium); }

/* ============ Section Pour qui — onglets (Figma 59:963) ============ */
.whowhy { display: flex; flex-direction: column; gap: var(--gap-block); }   /* 40→80 */
.tabs { display: flex; flex-direction: column; gap: var(--space-8); }     /* 32 (tablist ↔ panneau, < gap-block) */
.tablist {
  display: inline-flex;
  align-self: flex-start;
  gap: var(--space-1);                       /* 4 */
  padding: var(--space-1);                   /* ~5 */
  border: 1px solid var(--color-border-hairline);
  border-radius: var(--radius-pill);
}
.tab {
  min-height: 44px;
  padding: var(--space-3) var(--space-5);    /* 12 / 20 */
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-text-muted);
  font-size: var(--fs-body1);
  font-weight: var(--fw-medium);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.tab[aria-selected="true"] { background: var(--color-accent); color: var(--color-text-default); }
.tabpanel { display: flex; flex-direction: column; gap: var(--space-6); padding-inline: var(--space-8); } /* 24 (< .tabs) / inset 32 */
.tabpanel[hidden] { display: none; }
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }  /* 24 */
.benefit {
  display: flex;
  gap: var(--card-gap);                      /* 16 */
  padding: var(--card-pad);                  /* 24 */
  background: var(--color-surface-alt);      /* beige */
  border: 1px solid var(--color-border-hairline);
  border-radius: var(--radius-sm);
}
.benefit__mark { width: 9px; height: 8px; color: var(--color-accent); flex-shrink: 0; margin-top: 8px; }
.benefit p { font-weight: var(--fw-semibold); }

/* ============ Ma proposition (Figma 59:1011) ============ */
.proposal { display: flex; flex-direction: column; gap: var(--gap-block); }   /* 40→80 */
.strengths { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-20); }  /* 80 */
.strength { display: flex; flex-direction: column; gap: var(--card-gap); }    /* 16 (icône/titre/para) */
.strength__icon { width: 48px; height: 48px; }
.strength p { color: var(--color-text-muted); }

/* ============ Sections sombres (thème encre) ============ */
.section--dark { background: var(--color-surface-dark); color: var(--color-text-on-dark); }
.section--dark .tagline { color: var(--color-text-on-dark-soft); }
.section--dark .section-header__intro { color: var(--color-text-on-dark-soft); }
.section--dark h2, .section--dark h3 { color: var(--color-text-on-dark); }

/* ============ Ma méthode — frise numérotée (Figma 59:1070) ============ */
.method-wrap { display: flex; flex-direction: column; gap: var(--gap-block); }   /* 40→80 */
.method { max-width: 854px; padding-left: var(--space-12); list-style: none; }  /* pl-48 */
.method-step { display: flex; gap: var(--space-8); }                            /* 32 */
.method-step__marker { display: flex; flex-direction: column; align-items: center; align-self: stretch; }
.method-step__num {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border-on-dark);
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-h3);
  line-height: 1;
}
.method-step__rail { flex: 1; width: 1px; background: var(--color-border-on-dark); transform: scaleY(0); transform-origin: top; transition: transform 0.7s ease 0.15s; }
.method-step__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: 6px;
  padding-bottom: var(--gap-block);           /* = gap entre sous-sections (48 / 56 / 64) */
}
.method-step:last-child .method-step__body { padding-bottom: 0; }
.method-step__body p { color: var(--color-text-on-dark-soft); }

/* ============ Projets et avis (Figma 59:1126) ============ */
.projects__inner { display: flex; flex-direction: column; gap: var(--gap-block); }  /* 40→80 */
.projects__more {
  align-self: center;
  border: 0; background: transparent; padding: 0; cursor: pointer;
  color: var(--color-text-muted); font-size: var(--fs-body2);
  text-decoration: underline; text-underline-offset: 3px;
}
.projects__more:hover { color: var(--color-accent); }
/* Flex plutôt que grid : une ligne incomplète (une carte seule, ou la 3e sur une 2e ligne) est CENTRÉE
   au lieu de se coller à gauche. flex-basis 50% (moins la demi-gouttière) garde 2 cartes par ligne. */
.projects__list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap-block); }
/* Un item de grille a min-width:auto : sa largeur ne peut pas descendre sous la taille intrinsèque de
   son contenu. Une image responsive dont le navigateur a déjà chargé la source 1200w (après un
   passage en tablette) impose alors SA largeur → la carte déborde et ne se recontracte plus quand on
   rétrécit. min-width:0 rend la colonne libre de rétrécir. */
.projects__list > li { flex: 0 1 calc(50% - var(--gap-block) / 2); min-width: 0; }  /* 2 par ligne ; grow 0 → une carte seule garde sa taille et se centre */
.project-card { display: flex; flex-direction: column; gap: var(--space-4); color: inherit; }  /* 16 (média↔texte resserré → limite de carte plus lisible) */
.project-card__media {
  display: block;
  position: relative;
  aspect-ratio: 524.8 / 328;
  border: 1px solid var(--color-border-hairline);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
/* Le <picture> relaie la boîte de .project-card__media jusqu'à l'<img> (qui la remplit en 100%/100%).
   On évite `display: contents` ici : il efface la boîte du <picture> — donc aussi le max-width:100%
   du reset — et WebKit le gère mal sur les éléments de remplacement, ce qui laisse la largeur
   intrinsèque de l'image s'imposer. Rendu identique, sans le terrain miné. */
.project-card__media picture { display: block; width: 100%; height: 100%; }
.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: luminosity;
  transition: mix-blend-mode 0.3s ease, transform 0.4s ease, filter 0.3s ease;
}
.project-card:hover .project-card__media img,
.project-card:focus-visible .project-card__media img { mix-blend-mode: normal; transform: scale(1.02); filter: blur(2px); }
.project-card__body { display: flex; flex-direction: column; gap: var(--space-4); }  /* 16 */
.project-card__head { display: flex; align-items: center; gap: var(--space-4); }     /* 16 */
.project-card__name { font-size: var(--fs-h3); line-height: 1.1; letter-spacing: -0.02em; }
.project-card__dot { width: 7px; height: 6px; color: var(--color-accent); flex-shrink: 0; }
.project-card__type { color: var(--color-text-muted); }
.project-card__desc {
  color: var(--color-text-muted);
  /* Hauteur fixe de 2 lignes, comme la citation : réservées même si le texte tient sur une, et
     plafonnées à 2 avec « … » au-delà. Toutes les cartes s'alignent, court comme long. */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2lh;
}
.project-card__quote {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-left: var(--space-6);
  border-left: 2px solid var(--color-accent);
}
.project-card__quote p {
  font-weight: var(--fw-medium);
  /* Hauteur fixe de 2 lignes : réservées même quand le texte tient sur une seule (l'auteur reste
     aligné en bas), plafonnées à 2 avec « … » si ça déborde. */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2lh;
}
.project-card__quote footer { font-size: var(--fs-body2); color: var(--color-text-muted); }

/* ============ Qui je suis (Figma 59:1198) ============ */
.about__grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: var(--gap-block); align-items: center; }  /* 40→80 */
.about__text { display: flex; flex-direction: column; gap: var(--space-8); }   /* 32 */
.about__prose { display: flex; flex-direction: column; gap: var(--space-6); }  /* 24 */
.about__prose p { color: var(--color-text-on-dark-soft); }
.about__figure { position: relative; justify-self: center; width: min(287px, 100%); margin: 0; }
.about__figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 287 / 382;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* ============ Tarifs (Figma 59:1222) ============ */
.pricing { display: flex; flex-direction: column; gap: var(--gap-block); }  /* 40→80 */
.pricing > .section-header { max-width: 720px; }
.pricing__cards { display: flex; gap: var(--space-12); align-items: stretch; }  /* 48 */
.pricing-card {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);                 /* 32 — resserre autour du descriptif (le CTA garde son air via margin-top:auto) */
  padding: var(--space-12);            /* ~49 */
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border-hairline);
  border-radius: var(--radius-sm);
}
.pricing-card--featured { border-color: var(--color-accent); }
.pricing-card__badge {
  position: absolute;
  top: calc(-1 * var(--space-4));      /* -16 */
  right: var(--space-8);               /* 32 */
  padding: var(--space-1) var(--space-3);
  background: var(--color-accent);
  color: var(--color-text-default);
  border-radius: var(--radius-pill);
  font-size: var(--fs-body2);
  font-weight: var(--fw-medium);
}
.pricing-card__head { display: flex; flex-direction: column; gap: var(--space-4); }  /* 16 */
.pricing-card__price {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
}
.pricing-card__desc { color: var(--color-text-muted); }
.pricing-card__content { display: flex; flex-direction: column; gap: var(--space-8); }  /* 32 */
.pricing-card__list { display: flex; flex-direction: column; gap: var(--space-4); padding-left: var(--space-10); }  /* 16, pl-40 */
.pricing-card__list li { display: flex; gap: var(--space-4); color: var(--color-text-muted); }
.pricing-card__mark { width: 7px; height: 6px; color: var(--color-accent); flex-shrink: 0; margin-top: 8px; }
.pricing-card__delay { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-body2); color: var(--color-text-muted); }
.pricing-card__clock { width: 18px; height: 18px; }
.pricing-card .btn { align-self: flex-start; margin-top: auto; }

/* ============ Contact (Figma 59:1294) ============ */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-block-lg); align-items: start; }  /* 48→96 */
.contact__intro { display: flex; flex-direction: column; gap: var(--gap-block-sm); }  /* 32→64 */
.contact__direct { display: flex; flex-direction: column; gap: var(--space-6); }  /* 24 */
.contact__direct-label { color: var(--color-text-on-dark-soft); }
.contact__links { display: flex; flex-wrap: wrap; gap: var(--space-12); }  /* 48 */
.contact__link { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--color-text-on-dark); transition: color 0.15s ease; }
.contact__link:hover { color: var(--color-accent); }
.contact__icon { width: 20px; height: 20px; color: var(--color-accent); flex-shrink: 0; }
.contact__form { display: flex; flex-direction: column; gap: var(--space-4); }  /* 16 */
.field { display: flex; flex-direction: column; gap: var(--space-2); }  /* 8 */
.field label { font-family: var(--font-heading); font-weight: var(--fw-medium); font-size: var(--fs-body2); color: var(--color-text-on-dark); }
.field input, .field textarea {
  width: 100%;
  padding: var(--space-3);
  background: var(--color-white-6);
  border: 1px solid var(--color-border-on-dark);
  border-radius: var(--radius-button);
  color: var(--color-text-on-dark);
}
.field textarea { min-height: 112px; max-height: 520px; resize: vertical; }
.field textarea::-webkit-resizer {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cg fill='none' stroke='%23fffaf7' stroke-width='1' stroke-linecap='round'%3E%3Cpath d='M11 5 5 11'/%3E%3Cpath d='M11 9 9 11'/%3E%3C/g%3E%3C/svg%3E") no-repeat center;
}
.field input::placeholder, .field textarea::placeholder { color: var(--color-text-on-dark-muted); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 1px; border-color: transparent; }
.contact__submit { width: 100%; margin-top: var(--space-4); }
.contact__reassure { font-size: var(--fs-body2); color: var(--color-text-on-dark-soft); text-align: center; }

/* ============ Zone d'intervention (Figma 59:1323) ============ */
.areas-wrap { display: flex; flex-direction: column; gap: var(--gap-block); }  /* uniforme H2↔sous-section */
.areas { display: flex; flex-direction: column; gap: var(--space-8); align-items: flex-start; }  /* 32 */
.areas__list { display: flex; flex-wrap: wrap; gap: var(--space-4); }  /* 16 */
.areas__more {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--color-text-muted);
  font-size: var(--fs-body2);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.areas__more:hover { color: var(--color-accent); }

/* ============ Footer (Figma 106:472) ============ */
.site-footer {
  background: var(--color-surface-dark);
  color: var(--color-text-on-dark);
  padding-block: clamp(2.5rem, 4.5vw, 4rem) clamp(2rem, 3.4vw, 3rem);   /* pt 40→64 / pb 32→48 (mobile compact) */
}
.footer { display: flex; flex-direction: column; gap: var(--gap-block-sm); }   /* 32→64 */
.footer__cta { display: flex; flex-wrap: wrap; gap: var(--space-6); align-items: center; justify-content: space-between; }
.footer__cta-text {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-h3);
  letter-spacing: -0.02em;
  color: var(--color-text-on-dark);
}
.footer__cols { display: flex; flex-wrap: wrap; gap: var(--space-16); justify-content: space-between; padding-top: var(--space-8); }  /* gap 64 */
.footer__brand { display: flex; flex-direction: column; gap: var(--space-6); max-width: 330px; }
.footer__logo { display: inline-flex; color: var(--color-text-on-dark); }
.footer__logo svg { width: 64px; height: 32px; }
.footer__brand p { font-size: var(--fs-body2); color: var(--color-text-on-dark-soft); }
.footer__nav { display: flex; flex-direction: column; gap: var(--space-6); }   /* 24 */
.footer__label {
  font-size: var(--fs-body2);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-tagline);
  text-transform: uppercase;
  color: var(--color-text-on-dark-muted);
}
.footer__nav ul { display: flex; flex-direction: column; gap: var(--space-3); }   /* 12 */
.footer__nav a { color: var(--color-text-on-dark-soft); transition: color 0.15s ease; }
.footer__nav a:hover { color: var(--color-accent); }
.footer__bottom { border-top: 1px solid var(--color-border-on-dark); padding-top: var(--space-8); }  /* 32 */
.footer__bottom p { color: var(--color-text-on-dark-soft); font-size: var(--fs-body2); }

/* ===================================================================
   ANIMATIONS (douces, discrètes)
   =================================================================== */

/* ============ Écran de chargement ============ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--color-surface);
  transition: opacity 0.5s ease;
}
.loader.is-done { opacity: 0; pointer-events: none; }
.loader__logo { width: 116px; height: auto; color: var(--color-text-default); overflow: visible; }
.loader__letters { fill: currentColor; }
.loader__dot {
  fill: var(--color-accent);
  transform-box: fill-box;
  transform-origin: center;
  animation: udi-dot-drop 0.9s 0.1s cubic-bezier(0.3, 0, 0.3, 1) both;
}
@keyframes udi-dot-drop {
  from { transform: translateY(-215%); }   /* caché derrière le corps du D, émerge dans le creux */
  to   { transform: translateY(0); }       /* position finale dans le creux du D */
}

/* ============ Apparition au scroll ============ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .loader__dot { animation: none; }
  .btn__icon { transition: none; }
  .btn:hover .btn__icon { transform: none; }
}

/* ============ Micro-interactions (survol) ============ */
@media (prefers-reduced-motion: no-preference) {
  .btn:hover .btn__icon:not(.btn__icon--down):not(.btn__icon--lead) { transform: translateX(3px); }
  .btn:hover .btn__icon--down { transform: translateY(3px); }
  .modal__cta:hover .icon-external__arrow { transform: translate(2.5px, -2.5px); }
}
.tab:not([aria-selected="true"]):hover { color: var(--color-text-default); }

/* ============ Le vivant (auto-animations douces) ============ */
/* Hero : les 4 cartes se soulèvent chacune leur tour (haut-g → haut-d → bas-g → bas-d) */
@keyframes reassure-lift {
  0%, 15%, 100% { transform: none; border-color: var(--color-border-hairline); box-shadow: none; }
  2.5%, 12.5% { transform: translateY(-6px); border-color: var(--color-accent); box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--color-black-1000) 18%, transparent); }
}
.reassure__item { animation: reassure-lift 12s infinite paused; }
body.is-loaded .reassure__item { animation-play-state: running; }   /* démarre à la fin du loader, carte 1 en premier */
.reassure__item:nth-child(2) { animation-delay: 3s; }
.reassure__item:nth-child(3) { animation-delay: 6s; }
.reassure__item:nth-child(4) { animation-delay: 9s; }

/* Hero : carrousel des 2 avis (fondu) */
.hero-review__slides { display: grid; grid-template-columns: minmax(0, 1fr); flex: 1 1 200px; min-width: 0; padding-right: var(--space-8); }  /* colonne bornée → le texte se coupe au lieu de déborder ; padding-right = gouttière du bouton pause (coin haut-droit) en layout flex */
.hero-review__quote { grid-area: 1 / 1; min-width: 0; opacity: 0; transition: opacity 0.5s ease; }
.hero-review__quote.is-active { opacity: 1; }

/* Taglines : la puce pulse (onde douce) */
.tagline__dot { transform-origin: center; animation: puce-pulse 2.6s ease-in-out infinite; }
@keyframes puce-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.4); }
}

/* Conséquence : une lueur parcourt les pills de gauche à droite */
@keyframes pill-glow {
  0%   { box-shadow: 0 0 10px -1px var(--color-accent); }
  22%  { box-shadow: 0 0 10px -1px var(--color-accent); }
  25%  { box-shadow: none; }
  100% { box-shadow: none; }
}
.consequence__areas .area-pill { animation: pill-glow 8s infinite paused; }
.consequence.is-visible .area-pill { animation-play-state: running; }   /* démarre quand la section apparaît, Adhésions en premier */
.consequence__areas .area-pill:nth-child(1) { animation-delay: 0s; }
.consequence__areas .area-pill:nth-child(2) { animation-delay: 2s; }
.consequence__areas .area-pill:nth-child(3) { animation-delay: 4s; }
.consequence__areas .area-pill:nth-child(4) { animation-delay: 6s; }

@media (prefers-reduced-motion: reduce) {
  .reassure__item, .tagline__dot, .consequence__areas .area-pill { animation: none; }
  .hero-review__quote { transition: none; }
}

/* ============ Au scroll ============ */
/* Méthode : le rail se dessine quand l'étape apparaît */
.method-step.is-visible .method-step__rail { transform: scaleY(1); }

/* À propos : les deux cadres de la photo se tracent (photo puis cadre arrière) */
.about__frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--color-border-on-dark);
  stroke-width: 1.5;
  pointer-events: none;
}
.about__frame--photo { z-index: 2; }
.about__frame--back { z-index: 0; top: 14px; left: 14px; }
/* will-change posé/retiré dynamiquement par le JS pendant le parallax (pas de couche GPU permanente) */

@media (prefers-reduced-motion: reduce) {
  .method-step__rail { transform: none; transition: none; }
  .about__figure img, .about__figure .about__frame { transition: none; transform: none; }
}

/* ============ Composants interactifs ============ */
/* Tarifs : toute la carte cliquable (lien étendu) + survol soulevé */
.pricing-card { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -18px color-mix(in srgb, var(--color-black-1000) 20%, transparent); }
.pricing-card:hover .btn:not(.btn--outline) { box-shadow: inset 0 0 0 999px color-mix(in srgb, var(--color-black-1000) 8%, transparent); }
.pricing-card:hover .btn--outline { border-color: var(--color-text-default); }
.pricing-card .btn:hover { filter: none; }   /* évite le bloc de confinement qui casse le lien étendu */
.pricing-card { cursor: pointer; }
.pricing-card .btn::after { content: ""; position: absolute; inset: 0; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .pricing-card { transition: box-shadow 0.2s ease; }
  .pricing-card:hover { transform: none; }
}

/* Projets : bouton « Voir la maquette » révélé au survol de l'image */
.project-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.project-card:hover .project-card__overlay,
.project-card:focus-visible .project-card__overlay { opacity: 1; }
.project-card__view { box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--color-black-1000) 40%, transparent); }
.btn__icon--lead { order: -1; }

/* Modale « voir la maquette » */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: var(--color-black-70);
  animation: modal-fade 0.2s ease;
}
.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(30rem, 100%);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-20) var(--space-12) var(--space-12);   /* haut plus généreux : dégage franchement la croix du titre */
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 60px -20px color-mix(in srgb, var(--color-black-1000) 45%, transparent);
  animation: modal-pop 0.25s ease;
}
.modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--space-10);
  height: var(--space-10);
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}
.modal__close:hover { color: var(--color-accent); }
.modal__dialog:focus { outline: none; }
.modal__close svg { width: var(--space-5); height: var(--space-5); }
.modal__title { font-size: var(--fs-h3); line-height: var(--lh-heading); padding-right: var(--space-8); }   /* réserve la gouttière de la croix */
.modal__text { color: var(--color-text-muted); }
.modal__key { font-weight: var(--fw-medium); text-decoration: underline; text-underline-offset: 2px; }
.modal__cta { align-self: flex-start; margin-top: var(--space-8); }
.icon-external__arrow { transition: transform 0.2s ease; }
@keyframes modal-fade { from { opacity: 0; } }
@keyframes modal-pop { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  .project-card__overlay { transition: none; }
  .project-card:hover .project-card__media img,
  .project-card:focus-visible .project-card__media img { filter: none; }
  .modal__backdrop, .modal__dialog { animation: none; }
}

/* Contact : validation (erreurs, envoi, succès) */
.field__error { color: var(--color-danger); font-size: var(--fs-body2); }
.field__error[hidden] { display: none; }
.field.is-invalid input,
.field.is-invalid textarea { border-color: var(--color-danger); }
.field.is-invalid input:focus-visible,
.field.is-invalid textarea:focus-visible { outline-color: var(--color-danger); }
.contact__submit .btn__icon { transition: transform 0.4s ease, opacity 0.4s ease; }
@keyframes arrow-fly {
  0%   { transform: translateX(0); opacity: 1; }
  55%  { opacity: 1; }
  100% { transform: translateX(3rem); opacity: 0; }
}
.contact__submit.is-sent .btn__icon { animation: arrow-fly 0.5s ease-out forwards; }
.contact__form.is-sent .field,
.contact__form.is-sent .contact__submit,
.contact__form.is-sent .contact__reassure { display: none; }
.contact__form.is-sent { align-self: stretch; justify-content: center; }
.contact__success {
  padding: var(--space-6);
  background: var(--color-white-6);
  border: 1px solid var(--color-border-on-dark);
  border-radius: var(--radius-sm);
  color: var(--color-text-on-dark);
  font-family: var(--font-heading);
  font-weight: var(--fw-medium);
  text-align: center;
}
.contact__success[hidden] { display: none; }
/* Pot de miel anti-spam : présent dans le DOM pour les robots, hors écran pour les humains. */
.contact__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Le bouton se met en retrait le temps de l'envoi. */
.contact__submit:disabled { opacity: 0.6; cursor: progress; }
/* Message d'échec d'envoi : même boîte que le succès, avec un filet d'alerte. */
.contact__error {
  padding: var(--space-4) var(--space-6);
  background: var(--color-white-6);
  border: 1px solid var(--color-border-on-dark);
  border-left: 3px solid var(--color-danger);
  border-radius: var(--radius-sm);
  color: var(--color-text-on-dark);
  font-size: var(--fs-body2);
}
.contact__error[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .contact__submit .btn__icon { transition: none; }
}

/* ============ Pages légales (Figma 135:436 / 137:904) ============ */
/* Structure mutualisée : les 2 pages partagent CE bloc et le même balisage. */
.section--legal { padding-block: clamp(5rem, 13.5vw, 12rem); background: var(--color-surface); }  /* 80 → 192, comme le hero (1re section sous la navbar) */
.legal {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);            /* 48 */
  max-width: 928px;                /* largeur de lecture (maquette) */
  margin-inline: auto;
}
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  align-self: flex-start;
  font-size: var(--fs-body2);
  color: var(--color-text-muted);
  transition: color 0.15s ease;
}
.legal__back:hover { color: var(--color-text-default); }
.legal__back svg { width: 16px; height: 16px; }
.legal__title { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: var(--ls-heading); }
.legal__updated { margin-top: calc(-1 * var(--space-8)); font-size: var(--fs-body2); color: var(--color-text-muted); }
.legal__content { display: flex; flex-direction: column; gap: var(--space-8); }  /* 32 */
.legal-section { display: flex; flex-direction: column; gap: var(--space-6); }    /* 24 */
.legal-section + .legal-section { border-top: 1px solid var(--color-border-hairline); padding-top: var(--space-12); }
.legal-section__title { font-size: var(--fs-h3); line-height: var(--lh-heading); letter-spacing: var(--ls-heading); }
.legal-section__body { display: flex; flex-direction: column; gap: var(--space-6); color: var(--color-text-default); }
.legal-section__body p { line-height: var(--lh-normal); }
.legal-lines { display: flex; flex-direction: column; gap: var(--space-3); }      /* lignes rapprochées (adresse…) */
.legal-subgroup { display: flex; flex-direction: column; gap: var(--space-3); }
.legal-subgroup__title { font-family: var(--font-heading); font-weight: var(--fw-semibold); font-size: var(--fs-body1); }
.legal-list { display: flex; flex-direction: column; gap: var(--space-2); padding-left: 0; list-style: none; }
.legal-list li { position: relative; padding-left: var(--space-5); line-height: var(--lh-normal); }
.legal-list li::before { content: "•"; position: absolute; left: 0; color: var(--color-text-muted); }
.legal-link { color: var(--color-text-default); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 2px; }
.legal-link:hover { text-decoration-color: var(--color-text-default); }

/* ============ Page 404 ============ */
/* Le « 0 » est le point orange de la marque : le code d'erreur porte l'identité au lieu d'être un
   404 générique. Le geste d'entrée reprend celui du loader (le point tombe se loger dans son creux). */
/* .section.error404 et NON .error404 : WordPress pose la classe error404 sur le <body> aussi
   (body_class()), homonyme de la section. Sans .section devant, ces styles (grid, padding) frappent
   le body et ajoutent de la hauteur → scroll fantôme. Le double sélecteur ne cible que la section. */
.section.error404 {
  display: grid;
  place-items: center;
  min-height: 100svh;
  /* Page nue centrée sur le viewport, SANS scroll. Padding volontairement PETIT : box-sizing
     border-box fait que min-height:100svh inclut le padding — un gros --section-padding-block
     pousserait (contenu + 2×160px) au-delà de l'écran → la page scrolle et le bloc se décentre.
     Une simple gouttière suffit ; la navbar fixe flotte au-dessus. La barre d'admin WP est
     compensée dans le bloc « Intégration WordPress » plus bas. */
  padding-block: var(--space-8);
}
.error404__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-block);
  text-align: center;
}
.error404__code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2.5vw, 1.5rem);
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: clamp(5.5rem, 20vw, 13rem);   /* dimension intrinsèque : le code est un visuel, pas un cran de l'échelle typo */
  line-height: var(--lh-solid);
  letter-spacing: var(--ls-heading);
  color: var(--color-text-default);
}
.error404__dot {
  width: 0.58em;                /* proportionnel aux chiffres (ratio de la puce : 5.99 / 4.84) */
  height: 0.47em;
  color: var(--color-accent);
  flex-shrink: 0;
}
.error404__text { display: flex; flex-direction: column; gap: var(--space-6); max-width: 44rem; }
.error404__lead { color: var(--color-text-muted); text-wrap: balance; }
.error404__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-6); }

/* Les chiffres montent, le point tombe dans le creux et rebondit, puis PULSE franchement (rétréci
   marqué, en boucle) : un simple frémissement passait inaperçu — on veut que l'animation se voie. */
@media (prefers-reduced-motion: no-preference) {
  .error404__digit { animation: error404-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .error404__digit:first-child { animation-delay: 0.05s; }
  .error404__digit:last-child  { animation-delay: 0.15s; }
  .error404__dot {
    animation: error404-drop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s both,
               error404-breathe 3.2s ease-in-out 1.15s infinite;
  }
  .error404__text,
  .error404__cta { animation: error404-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both; }
}
@keyframes error404-rise    { from { opacity: 0; transform: translateY(20px); } }
@keyframes error404-drop    { from { opacity: 0; transform: translateY(-140%) scale(0.55); } }
@keyframes error404-breathe { 50% { transform: scale(0.7); } }

/* ============ Responsive (dérivé du desktop, DA conservée) ============ */
/* Conséquence (carte sombre) : empilée tant qu'une ligne de pills ne tient pas en vis-à-vis du titre → pills sur 1 seule ligne */
@media (max-width: 1100px) {
  .consequence { flex-direction: column; align-items: flex-start; gap: var(--space-8); }
  .consequence__areas { justify-content: flex-start; }  /* wrap par défaut : mobile passe à la ligne (pas de débordement), tablette tient sur 1 ligne (pleine largeur) */
}

/* Tablette / petit écran : les grilles multi-colonnes retombent */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }  /* mobile 48 (tablette 64 via MQ dédiée) */
  .hero__col-reassurance { padding-top: 0; }
  .about__grid { grid-template-columns: 1fr; gap: var(--space-12); }
  .contact__grid { grid-template-columns: 1fr; gap: var(--gap-block); }  /* uniforme */
  /* Coordonnées (écrire/appeler) repoussées tout en bas : l'intro s'efface, on réordonne */
  .contact__intro { display: contents; }
  .contact__intro > .section-header { order: 1; }
  .contact__form { order: 2; }
  .contact__direct { order: 3; align-items: center; text-align: center; }  /* coordonnées centrées (le gap uniforme gère l'espacement) */
  /* Onglets « Pour qui » : le panneau reprend toute la largeur (plus d'inset latéral) */
  .tabpanel { padding-inline: 0; }
  .strengths { grid-template-columns: 1fr; gap: var(--space-12); }
  .disadvantages__list { grid-template-columns: 1fr; }
  .projects__list > li { flex-basis: 100%; }  /* une colonne : chaque carte pleine largeur */
  .flaws { grid-template-columns: 1fr 1fr; }
  /* Désavantages en 1 colonne : plus de bordure ni de points de jonction latéraux */
  .disadvantage + .disadvantage { border-inline-start: none; }
  .disadvantage:not(:first-child)::before,
  .disadvantage:not(:first-child)::after { display: none; }
  /* Tarifs : les deux cartes s'empilent */
  .pricing__cards { flex-direction: column; }
  /* Footer : colonnes packées à gauche (évite le grand vide entre Contact et Réseaux au wrap) */
  .footer__cols { justify-content: flex-start; }
}

/* Hero en tablette portrait (1 colonne) : gouttière plus large */
@media (min-width: 768px) and (max-width: 940px) {
  .hero__grid { gap: 64px; }
}

/* Mobile : tout en une colonne */
@media (max-width: 560px) {
  /* CTA pleine largeur, contenu centré (le .btn est déjà justify-content:center) — sauf l'incrustation « Voir la maquette » posée sur l'image */
  .btn:not(.project-card__view) { width: 100%; }
  .flaws { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; }
  .hero-review { display: block; }  /* layout simple (fini le flex étoiles|avis) → plus de débordement horizontal. Pas de height en dur : le grid des avis superposés (grid-area 1/1) réserve déjà la hauteur du plus long → aucun saut entre slides, et rien n'est rogné (fini le nom coupé). */
  .hero-review__stars { display: block; margin-bottom: var(--space-4); }
  .hero-review__quote p { -webkit-line-clamp: 3; line-clamp: 3; }  /* mobile : max 3 lignes (garde-fou si un avis très long) */
  .hero-review__slides { width: 100%; padding-right: 0; }  /* mobile (block) : le bouton est au niveau des étoiles, le texte passe dessous → pas besoin de gouttière */
  /* Onglets « Pour qui » : 2 boutons EMPILÉS, sans encadré global — ON plein, OFF simplement bordé */
  .tablist { flex-direction: column; align-self: stretch; border: none; padding: 0; gap: var(--space-2); }
  .tab { white-space: nowrap; border: 1px solid currentColor; }  /* OFF : liseré = couleur du texte, donc il suit au survol */
  .tab[aria-selected="true"] { border-color: transparent; }  /* ON : fond accent, sans liseré */
}

/* ---- Navbar : menu burger sous 820px ---- */
/* Desktop : le menu s'efface du layout (display:contents) → logo | nav centrée | CTA (space-between de .navbar__inner) */
.navbar__menu { display: contents; }
.navbar__toggle { display: none; padding: 0; background: none; border: 0; color: var(--color-text-default); cursor: pointer; }
@media (max-width: 820px) {
  /* Navbar burger fixe (68px) : le hero réserve cette hauteur EN PLUS de son vide visible.
     Vide visible en haut = 48, bas = 80 (rythme de section). Asymétrie ASSUMÉE et validée sur iPhone
     réel : la navbar translucide se lit déjà comme de l'espace, donc 80 de vide EN PLUS d'elle
     alourdissait le haut de page. Les deux valeurs restent sur la grille de 8. */
  .hero { padding-top: calc(var(--nav-height) + var(--space-12)); padding-bottom: var(--section-padding-block); }
  .section--legal { padding-top: calc(var(--nav-height) + var(--space-12)); }   /* 1re section sous la navbar fixe : même dégagement que le hero (le plancher 5rem du clamp ne laissait que ~12px) */
  .navbar__toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px;
  }
  .navbar__toggle-bar { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
  .navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(2) { opacity: 0; }
  .navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .navbar__menu {
    display: flex;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: var(--space-4);
    padding: var(--space-6) var(--space-6) var(--space-8);
    /* Le panneau prolonge la navbar : MÊME token de fond. L'œil lit les deux comme une seule
       surface — un fond différent créerait une cassure à la jonction. */
    background: var(--color-surface-nav);
    border-top: 1px solid var(--color-border-hairline);
    box-shadow: 0 18px 32px -20px color-mix(in srgb, var(--color-black-1000) 28%, transparent);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }
  .navbar__menu.is-open { transform: translateY(0); opacity: 1; visibility: visible; transition: opacity 0.2s ease, transform 0.2s ease; }
  .navbar__nav { flex-direction: column; align-items: stretch; gap: var(--space-2); }
  .navbar__nav a { padding-block: var(--space-4); }
  .navbar__menu .btn { align-self: flex-start; margin-top: var(--space-2); }
}
@media (prefers-reduced-motion: reduce) {
  .navbar__menu, .navbar__toggle-bar { transition: none; }
}

/* ============ Intégration WordPress ============ */
/* Barre d'admin WordPress : visible UNIQUEMENT quand on est connecté à l'admin — jamais pour un
   visiteur. Elle est en position:fixed tout en haut et recouvre la navbar, fixed elle aussi (le
   margin-top que WordPress pose sur <html> ne décale pas un élément fixed, qui se cale sur le
   viewport). WordPress ajoute la classe .admin-bar au <body> quand elle s'affiche : on décale la
   navbar de sa hauteur. Sous 600px, WordPress la repasse en absolute (elle défile avec la page) →
   plus rien à décaler. */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}
/* Sous 600px, WordPress repasse la barre en position:absolute : elle défile, alors que le contenu
   reste décalé. Aucun réglage n'est juste dans les deux états — on choisit de NE PAS décaler la
   navbar : la barre la recouvre en haut de page (et libère la vue dès le premier scroll), plutôt
   qu'un vide de 46px qui resterait au-dessus d'elle pendant tout le défilement. Rien de tout ceci
   n'existe pour un visiteur : la classe .admin-bar n'est posée que pour un utilisateur connecté. */
@media screen and (max-width: 600px) {
  body.admin-bar .site-header { top: 0; }
}

/* 404 = une seule section plein écran, ZÉRO scroll, tous viewports. Deux hauteurs à neutraliser.
   1) Le reset body { min-height: 100vh } : combiné à la barre d'admin (margin-top sur <html>), il
      laisse un résidu à scroller → on remet le body de la 404 à 0, il épouse la hauteur de la section.
   2) La barre d'admin elle-même décale le <html> de sa hauteur → la section (100svh) déborderait
      d'autant : connecté, on la lui retranche. Sous 600px la barre repasse en absolute (elle défile),
      plus de décalage persistant. Rien de tout ceci n'existe pour le visiteur (aucune classe .admin-bar). */
body.error404 { min-height: 0; }
body.admin-bar .section.error404 { min-height: calc(100svh - 32px); }
@media screen and (max-width: 782px) {
  body.admin-bar .section.error404 { min-height: calc(100svh - 46px); }
}
