/* =====================================================================
   AND CONCEPT — Design system
   Mobile-first · CSS natif · WCAG 2.2 AA
   ===================================================================== */

/* ---------- 1. Polices locales (OFL) ---------- */
@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

/* ---------- 2. Tokens ---------- */
:root {
  /* Charte */
  --anthracite: #343434;
  --orange: #FF8A00;
  --coral: #FF5A6E;
  --magenta: #B5126B;
  --white: #FFFFFF;
  --paper: #F8F7F5;

  /* Dérivés */
  --ink: #2a2a2a;
  --ink-soft: #5c5c5c;
  --night: #262626;
  --line: #e6e3de;
  --line-dark: rgba(255, 255, 255, .14);
  --accent-on-light: var(--magenta);   /* contraste 6.4:1 sur blanc */
  --accent-on-dark: var(--orange);     /* contraste 5.3:1 sur anthracite */
  --gradient: linear-gradient(120deg, #FF8A00, #FF5A6E, #B5126B);
  --gradient-warm: linear-gradient(120deg, #FF8A00, #FF5A6E);

  /* Typographie */
  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1rem + .4vw, 1.3rem);
  --fs-h4: clamp(1.15rem, 1.05rem + .4vw, 1.35rem);
  --fs-h3: clamp(1.35rem, 1.15rem + .8vw, 1.75rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --fs-h1: clamp(2.5rem, 1.6rem + 4vw, 5rem);
  --fs-display: clamp(2.6rem, 1.4rem + 4.6vw, 5.6rem);

  /* Espacements */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --gutter: clamp(1.15rem, .6rem + 2.5vw, 2.5rem);
  --container: 80rem;

  /* Formes */
  --radius-sm: .5rem;
  --radius: 1rem;
  --radius-lg: 1.75rem;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05), 0 2px 8px rgba(0, 0, 0, .04);
  --shadow: 0 10px 30px -12px rgba(30, 20, 20, .18);
  --shadow-lg: 0 30px 60px -25px rgba(52, 52, 52, .35);

  /* Mouvement */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .35s;

  --header-h: 4.5rem;
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
img { font-style: italic; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -.025em;
  margin: 0 0 var(--space-4);
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); font-weight: 750; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -.02em; }
h4 { font-size: var(--fs-h4); letter-spacing: -.01em; }
p { margin: 0 0 var(--space-4); text-wrap: pretty; }
a { color: var(--accent-on-light); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
ul, ol { padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--coral); color: #fff; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}
.section--dark :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--anthracite); color: #fff; padding: .75rem 1.25rem; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- 4. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 52rem; }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--anthracite); color: #f1efec; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark a:not(.btn) { color: #fff; }
.section--night { background: var(--night); color: #f1efec; }

.section-head { display: grid; gap: var(--space-4); margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); max-width: 48rem; }
.section-head--split { max-width: none; }
.section-head p { font-size: var(--fs-lg); color: var(--ink-soft); margin: 0; max-width: 40rem; }
.section--dark .section-head p { color: #cfcac4; }
.section-head h2 { margin: 0; }
@media (min-width: 60em) {
  .section-head--split { grid-template-columns: 1.1fr .9fr; align-items: end; gap: var(--space-7); }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-on-light);
  margin: 0;
}
.eyebrow::before { content: ""; width: 1.75rem; height: 2px; background: var(--gradient); border-radius: 2px; }
.section--dark .eyebrow, .hero--dark .eyebrow { color: var(--accent-on-dark); }

.lead { font-size: var(--fs-lg); color: var(--ink-soft); line-height: 1.6; }
.section--dark .lead { color: #d6d1cb; }
.text-gradient {
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Sur fond clair, le dégradé est réservé aux grands titres (contraste suffisant en taille display). */

.grid { display: grid; gap: var(--space-5); }
@media (min-width: 40em) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60em) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 40em) and (max-width: 59.99em) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 5. Boutons & liens ---------- */
.btn {
  --btn-bg: var(--anthracite); --btn-fg: #fff;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.25rem; padding: .85rem 1.6rem;
  border: 0; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 600; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--gradient); opacity: 0; transition: opacity var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(181, 18, 107, .55); text-decoration: none; }
.btn:hover::before { opacity: 1; }
.btn .icon { transition: transform var(--dur) var(--ease); }
.btn:hover .icon--arrow { transform: translateX(4px); }
.btn:active { transform: translateY(0); }

/* Accent : dégradé chaud + texte quasi noir (contraste ≥ 5.7:1) */
.btn--accent { --btn-bg: transparent; --btn-fg: #1b1b1b; background: var(--gradient-warm); }
.btn--accent::before { background: linear-gradient(120deg, #ff9d2a, #ff7385); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--anthracite); }
.btn--light:hover { --btn-fg: #1b1b1b; }
.btn--light::before { background: var(--gradient-warm); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--anthracite); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost::before { background: var(--anthracite); }
.btn--ghost:hover { --btn-fg: #fff; }
.section--dark .btn--ghost, .hero--dark .btn--ghost { --btn-fg: #fff; }
.section--dark .btn--ghost::before, .hero--dark .btn--ghost::before { background: #fff; }
.section--dark .btn--ghost:hover, .hero--dark .btn--ghost:hover { --btn-fg: var(--anthracite); }
.btn--whatsapp { --btn-bg: #1f7a4a; --btn-fg: #fff; }
.btn--whatsapp::before { background: #16653c; }
.btn--sm { min-height: 2.6rem; padding: .55rem 1.15rem; font-size: var(--fs-xs); }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .7; pointer-events: none; }
.btn.is-loading::after {
  content: ""; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm);
  color: inherit; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size var(--dur) var(--ease);
  padding-bottom: 2px;
}
.link-arrow:hover { background-size: 100% 1.5px; }
.link-arrow .icon { transition: transform var(--dur) var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* Soulignement animé des liens de texte */
.prose a, .footer-links a, .inline-link {
  text-decoration: none;
  background: linear-gradient(var(--gradient-c, currentColor), var(--gradient-c, currentColor)) 0 100% / 100% 1px no-repeat;
  transition: background-size var(--dur) var(--ease);
}
.prose a:hover, .inline-link:hover { background-size: 100% 2px; }

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(248, 247, 245, .86);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, .92); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: var(--space-5); }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--anthracite); flex: none; }
.brand img { height: 2.4rem; width: auto; }

/* Logotype texte provisoire (remplacé par le logo officiel dès qu'il est fourni) */
.wordmark { display: inline-flex; align-items: baseline; gap: .35rem; font-family: var(--font-display); line-height: 1; }
.wordmark__and { font-weight: 800; font-size: 1.45rem; letter-spacing: -.03em; }
.wordmark__concept { font-weight: 500; font-size: .78rem; letter-spacing: .32em; }
.wordmark__dot { width: .45rem; height: .45rem; border-radius: 50%; background: var(--gradient); align-self: center; }
.site-footer .wordmark { color: #fff; }

.main-nav { margin-left: auto; display: none; }
.main-nav ul { display: flex; gap: clamp(.9rem, .2rem + 1.4vw, 2rem); list-style: none; margin: 0; padding: 0; }
.main-nav a {
  position: relative; padding: .5rem 0; color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-size: .92rem; font-weight: 500;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .15rem; height: 2px; border-radius: 2px;
  background: var(--gradient); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { display: none; }
.nav-toggle {
  margin-left: auto; display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border: 0; border-radius: 50%; background: var(--anthracite); color: #fff; cursor: pointer;
}
.nav-toggle .icon { width: 1.4rem; height: 1.4rem; }

@media (min-width: 64em) {
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Menu mobile */
.mobile-menu {
  position: fixed; inset: 0; z-index: 150;
  background: var(--anthracite); color: #fff;
  display: flex; flex-direction: column;
  padding: 1rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  overflow-y: auto;
  clip-path: circle(0 at calc(100% - 2.5rem) 2.25rem);
  visibility: hidden;
  transition: clip-path .6s var(--ease-out), visibility 0s .6s;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 2.5rem) 2.25rem); visibility: visible; transition: clip-path .6s var(--ease-out), visibility 0s; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; height: calc(var(--header-h) - 1rem); }
.mobile-menu__top .wordmark { color: #fff; }
.mobile-menu__close { background: #fff; color: var(--anthracite); }
.mobile-menu nav ul { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: .25rem; }
.mobile-menu nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem 0; color: #fff; text-decoration: none; border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-display); font-size: clamp(1.5rem, 1rem + 3vw, 2.25rem); font-weight: 600; letter-spacing: -.02em;
}
.mobile-menu nav a[aria-current="page"] { color: var(--orange); }
.mobile-menu__actions { margin-top: auto; display: grid; gap: .75rem; }
.mobile-menu .btn--ghost { --btn-fg: #fff; }
body.menu-open { overflow: hidden; }

/* ---------- 7. Actions flottantes ---------- */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  display: none; align-items: center; gap: .6rem;
  height: 3.5rem; padding: 0 1.1rem 0 .95rem; border-radius: 999px;
  background: #1f7a4a; color: #fff; text-decoration: none; font-weight: 600; font-size: var(--fs-sm);
  box-shadow: 0 12px 30px -10px rgba(16, 80, 46, .55);
  transform: translateY(150%); transition: transform .5s var(--ease-out), background .2s;
}
.wa-float.is-visible { transform: none; }
.wa-float:hover { background: #16653c; }
.wa-float .icon { width: 1.6rem; height: 1.6rem; }
.wa-float__label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .4s var(--ease); }
.wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { max-width: 12rem; }
@media (min-width: 48em) { .wa-float { display: inline-flex; } }

.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; gap: .5rem;
  padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .45s var(--ease-out);
}
.action-bar.is-visible { transform: none; }
.action-bar .btn { flex: 1; min-height: 2.9rem; padding-inline: .9rem; }
@media (min-width: 48em) { .action-bar { display: none; } }
@media (max-width: 47.99em) { body.has-action-bar { padding-bottom: calc(4.25rem + env(safe-area-inset-bottom)); } }

/* ---------- 8. Hero accueil ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(2.5rem, 1rem + 5vw, 6rem) clamp(3.5rem, 2rem + 5vw, 7rem);
  background: var(--paper);
}
.hero__grid { display: grid; gap: clamp(2.5rem, 1rem + 4vw, 4rem); align-items: center; }
@media (min-width: 60em) { .hero__grid { grid-template-columns: 1.15fr .85fr; } }
.hero__title { font-size: var(--fs-display); line-height: .98; letter-spacing: -.045em; font-weight: 750; margin: var(--space-5) 0; }
.hero__title .line { display: block; }
.hero__title .line + .line { color: transparent; background: var(--gradient); -webkit-background-clip: text; background-clip: text; padding-bottom: .08em; }
.hero__subtitle { font-size: var(--fs-lg); color: var(--ink-soft); max-width: 36rem; margin-bottom: var(--space-6); }
.hero__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--space-6); padding: 0; list-style: none; }
.hero__meta li {
  padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.7);
  font-size: var(--fs-xs); font-weight: 500; color: var(--ink-soft);
}

/* Monogramme A animé */
.hero__visual { position: relative; aspect-ratio: 1 / 1.02; max-width: 34rem; width: 100%; margin-inline: auto; }
.monogram { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.monogram .stroke { fill: none; stroke-width: 26; stroke-linecap: round; stroke-linejoin: round; }
.monogram .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease-out) forwards; }
.monogram .draw--2 { animation-delay: .35s; }
.monogram .draw--3 { animation-delay: .7s; }
.monogram .float { animation: float 9s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.monogram .float--slow { animation-duration: 13s; animation-direction: reverse; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes float { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(0, -10px) rotate(1.5deg); } }

.hero-card {
  position: absolute; width: 42%; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); background: #fff; text-decoration: none; color: var(--ink);
  transition: transform .6s var(--ease-out);
  opacity: 0; animation: pop .9s var(--ease-out) forwards;
}
.hero-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.hero-card span { display: block; padding: .55rem .8rem; font-family: var(--font-display); font-size: .78rem; font-weight: 600; }
.hero-card--1 { top: 6%; left: -2%; animation-delay: .9s; transform: rotate(-5deg); }
.hero-card--2 { top: 38%; right: -4%; animation-delay: 1.1s; transform: rotate(4deg); }
.hero-card--3 { bottom: 0; left: 18%; animation-delay: 1.3s; transform: rotate(-2deg); }
.hero-card:hover { transform: rotate(0) scale(1.04); z-index: 2; }
@keyframes pop { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.25rem; translate: -50% 0;
  width: 1.6rem; height: 2.6rem; border: 1.5px solid var(--ink-soft); border-radius: 1rem; display: none;
}
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: .5rem; width: 3px; height: .5rem; translate: -50% 0; background: var(--ink-soft); border-radius: 2px; animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(.7rem); } 100% { opacity: 0; } }
@media (min-width: 60em) and (min-height: 50em) { .scroll-cue { display: block; } }

/* ---------- 9. Le sens de AND ---------- */
.and-meaning { overflow: hidden; }
.and-meaning__grid { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 60em) { .and-meaning__grid { grid-template-columns: .9fr 1.1fr; gap: var(--space-8); } }
.and-word { font-family: var(--font-display); font-weight: 800; line-height: .82; letter-spacing: -.06em; font-size: clamp(6rem, 3rem + 14vw, 15rem); margin: 0; }
.and-word span { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.and-def { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; margin-top: var(--space-4); font-family: var(--font-display); }
.and-def__lang { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: #bcb6af; }
.and-def__word { font-size: var(--fs-h3); font-weight: 600; color: #fff; }

/* Parcours Idée → Réalisation */
.journey { list-style: none; padding: 0; margin: var(--space-7) 0 0; display: grid; gap: 0; position: relative; counter-reset: j; }
.journey::before {
  content: ""; position: absolute; left: 1.35rem; top: 1.4rem; bottom: 1.4rem; width: 2px; background: var(--line-dark);
}
.journey::after {
  content: ""; position: absolute; left: 1.35rem; top: 1.4rem; width: 2px; height: calc(100% - 2.8rem);
  background: var(--gradient); transform-origin: top; transform: scaleY(var(--p, 0)); transition: transform 1.4s var(--ease-out);
}
.journey__step { position: relative; padding: 0 0 var(--space-5) 4rem; }
.journey__btn {
  all: unset; cursor: pointer; display: block; width: 100%;
}
.journey__dot {
  position: absolute; left: 0; top: 0; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--anthracite); border: 2px solid var(--line-dark);
  font-family: var(--font-display); font-size: .78rem; font-weight: 700; color: #bcb6af;
  transition: border-color .4s, color .4s, background .4s, transform .4s var(--ease);
}
.journey__name { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 700; color: #8d8780; transition: color .4s; letter-spacing: -.02em; line-height: 2.75rem; }
.journey__text { color: #cfcac4; margin: 0; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s var(--ease), opacity .4s; }
.journey__step.is-active .journey__dot { border-color: var(--orange); color: #fff; background: #3f3a37; transform: scale(1.08); }
.journey__step.is-active .journey__name { color: #fff; }
.journey__step.is-active .journey__text { max-height: 8rem; opacity: 1; }
.journey__btn:focus-visible .journey__name { outline: 3px solid #fff; outline-offset: 4px; border-radius: 4px; }
@media (min-width: 48em) {
  .journey { grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
  .journey::before { left: 1.4rem; right: 1.4rem; top: 1.35rem; bottom: auto; width: auto; height: 2px; }
  .journey::after { left: 1.4rem; top: 1.35rem; height: 2px; width: calc(100% - 2.8rem); transform-origin: left; transform: scaleX(var(--p, 0)); }
  .journey__step { padding: 4rem 0 0; }
  .journey__name { line-height: 1.2; }
  .journey__text { margin-top: .5rem; }
}

/* ---------- 10. Bento des expertises ---------- */
.bento { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 40em) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) {
  .bento { grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(13.5rem, auto); gap: var(--space-5); }
  .bento > :nth-child(1) { grid-column: span 7; grid-row: span 2; }
  .bento > :nth-child(2) { grid-column: span 5; }
  .bento > :nth-child(3) { grid-column: span 5; }
  .bento > :nth-child(4) { grid-column: span 4; grid-row: span 2; }
  .bento > :nth-child(5) { grid-column: span 4; }
  .bento > :nth-child(6) { grid-column: span 4; grid-row: span 2; }
  .bento > :nth-child(7) { grid-column: span 4; }
  .bento > :nth-child(8) { grid-column: span 12; min-height: 17rem; }
}
.u-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 19rem; padding: var(--space-5);
  border-radius: var(--radius-lg); background: var(--anthracite); color: #fff; text-decoration: none;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.u-card__media { position: absolute; inset: 0; z-index: -2; }
.u-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), filter .6s; }
.u-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(30, 28, 27, 0) 25%, rgba(30, 28, 27, .55) 60%, rgba(30, 28, 27, .92) 100%);
}
.u-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; z-index: 1; pointer-events: none;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .5s;
}
.u-card:hover, .u-card:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.u-card:hover::after, .u-card:focus-visible::after { opacity: 1; }
.u-card:hover .u-card__media img { transform: scale(1.06); }
.u-card__num { position: absolute; top: var(--space-5); left: var(--space-5); font-family: var(--font-display); font-size: .78rem; font-weight: 700; letter-spacing: .1em; opacity: .85; }
.u-card__icon {
  position: absolute; top: var(--space-4); right: var(--space-4);
  width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .4s, transform .5s var(--ease);
}
.u-card__icon .icon { width: 1.4rem; height: 1.4rem; }
.u-card:hover .u-card__icon { background: #fff; color: var(--anthracite); transform: rotate(-12deg); }
.u-card h3 { font-size: var(--fs-h4); margin: 0 0 .4rem; color: #fff; }
.u-card p { margin: 0; font-size: var(--fs-sm); color: #e6e1db; max-width: 32rem; }
.u-card__more {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: .9rem;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-xs); letter-spacing: .04em; color: #fff;
}
.u-card__more .icon { transition: transform var(--dur) var(--ease); }
.u-card:hover .u-card__more .icon { transform: translateX(5px); }
@media (min-width: 64em) {
  .bento > :nth-child(1) h3 { font-size: var(--fs-h3); }
  .u-card p { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .4s; }
  .bento > :nth-child(1) p, .bento > :nth-child(4) p, .bento > :nth-child(6) p, .bento > :nth-child(8) p,
  .u-card:hover p, .u-card:focus-visible p { max-height: 6rem; opacity: 1; }
}
@media (hover: none) { .u-card p { max-height: none !important; opacity: 1 !important; } }

/* Variante claire (page Expertises) */
.service-row {
  display: grid; gap: var(--space-5); align-items: center; padding-block: var(--space-7);
  border-top: 1px solid var(--line);
}
.service-row:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 56em) {
  .service-row { grid-template-columns: 5rem 1fr 1fr; gap: var(--space-7); }
  .service-row:nth-child(even) .service-row__media { order: -1; }
  .service-row:nth-child(even) { grid-template-columns: 5rem 1fr 1fr; }
}
.service-row__num { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); color: var(--accent-on-light); align-self: start; }
.service-row__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper); }
.service-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.service-row:hover .service-row__media img { transform: scale(1.04); }
.service-row h2 { font-size: var(--fs-h3); }
.service-row ul { columns: 2; column-gap: var(--space-5); padding: 0; list-style: none; margin: var(--space-4) 0 var(--space-5); font-size: var(--fs-sm); color: var(--ink-soft); }
.service-row li { break-inside: avoid; padding: .2rem 0 .2rem 1.1rem; position: relative; }
.service-row li::before { content: ""; position: absolute; left: 0; top: .78em; width: .45rem; height: .45rem; border-radius: 50%; background: var(--gradient); }
@media (min-width: 56em) { .service-row:nth-child(even) .service-row__num { order: -2; } }

/* ---------- 11. Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--space-6); }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 2.6rem; padding: .45rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 600; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.chip:hover { border-color: var(--anthracite); }
.chip[aria-pressed="true"] { background: var(--anthracite); color: #fff; border-color: var(--anthracite); }
.chip__count { font-weight: 500; opacity: .65; }

.masonry { columns: 1; column-gap: var(--space-5); }
@media (min-width: 40em) { .masonry { columns: 2; } }
@media (min-width: 64em) { .masonry { columns: 3; } }
.p-card {
  display: block; break-inside: avoid; margin-bottom: var(--space-5);
  text-decoration: none; color: inherit; border-radius: var(--radius-lg);
  transition: opacity .4s, transform .4s var(--ease-out);
}
.p-card[hidden] { display: none; }
.p-card__media { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--paper); }
.p-card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1s var(--ease-out); }
.p-card--tall .p-card__media img { aspect-ratio: 4 / 5; }
.p-card--wide .p-card__media img { aspect-ratio: 16 / 10; }
.p-card__overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-end; padding: var(--space-4);
  background: linear-gradient(200deg, rgba(181, 18, 107, 0) 40%, rgba(181, 18, 107, .55));
  opacity: 0; transition: opacity .5s;
}
.p-card__overlay span {
  width: 3.25rem; height: 3.25rem; border-radius: 50%; background: #fff; color: var(--anthracite);
  display: grid; place-items: center; transform: scale(.6) rotate(-45deg); transition: transform .5s var(--ease-out);
}
.p-card:hover .p-card__media img { transform: scale(1.05); }
.p-card:hover .p-card__overlay, .p-card:focus-visible .p-card__overlay { opacity: 1; }
.p-card:hover .p-card__overlay span { transform: none; }
.p-card__body { padding: var(--space-4) .25rem 0; }
.p-card__cats { font-size: var(--fs-xs); color: var(--accent-on-light); font-weight: 600; font-family: var(--font-display); letter-spacing: .04em; }
.p-card h3 { font-size: var(--fs-h4); margin: .3rem 0 .25rem; }
.p-card p { font-size: var(--fs-sm); color: var(--ink-soft); margin: 0; }

.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .7rem; border-radius: 999px;
  font-family: var(--font-display); font-size: .72rem; font-weight: 600; letter-spacing: .02em;
  background: #fff; color: var(--anthracite); border: 1px solid var(--line);
}
.badge--demo { position: absolute; top: var(--space-3); left: var(--space-3); background: rgba(255,255,255,.94); }
.badge--demo::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--gradient-warm); }

.empty-state {
  text-align: center; padding: var(--space-8) var(--space-5); border: 1.5px dashed var(--line); border-radius: var(--radius-lg); background: #fff;
}
.empty-state p { color: var(--ink-soft); max-width: 34rem; margin-inline: auto; }

/* Avant / après */
.before-after { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; background: var(--paper); user-select: none; touch-action: pan-y; }
.before-after img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.before-after__after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.before-after__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; background: #fff; translate: -50% 0; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}
.before-after__handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  width: 3rem; height: 3rem; border-radius: 50%; background: #fff; display: grid; place-items: center;
  font-weight: 700; color: var(--anthracite); box-shadow: var(--shadow);
}
.before-after input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.before-after__label { position: absolute; bottom: var(--space-3); padding: .3rem .7rem; border-radius: 999px; background: rgba(38, 38, 38, .8); color: #fff; font-size: .75rem; font-weight: 600; }
.before-after__label--before { left: var(--space-3); }
.before-after__label--after { right: var(--space-3); }

/* Galerie + lightbox */
.gallery { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.gallery button { all: unset; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; display: block; }
.gallery button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .8s var(--ease-out); }
.gallery button:hover img { transform: scale(1.04); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 80rem); max-height: 90vh; }
.lightbox::backdrop { background: rgba(20, 20, 20, .92); }
.lightbox img { max-height: 82vh; width: auto; margin: auto; border-radius: var(--radius); }
.lightbox figcaption { color: #fff; text-align: center; padding: .75rem; font-size: var(--fs-sm); }
.lightbox__close { position: fixed; top: 1rem; right: 1rem; }

/* ---------- 12. Pourquoi AND CONCEPT ---------- */
.why { display: grid; gap: var(--space-7); }
@media (min-width: 60em) { .why { grid-template-columns: .8fr 1.2fr; align-items: start; } .why__intro { position: sticky; top: calc(var(--header-h) + 2rem); } }
.why__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.why__item {
  display: grid; grid-template-columns: auto 1fr; gap: var(--space-5); align-items: start;
  padding: var(--space-5) 0; border-top: 1px solid var(--line);
}
.why__item:last-child { border-bottom: 1px solid var(--line); }
.why__icon {
  width: 3.5rem; height: 3.5rem; border-radius: 1rem; display: grid; place-items: center;
  background: var(--paper); color: var(--magenta); transition: background .4s, color .4s, transform .5s var(--ease);
}
.why__icon .icon { width: 1.6rem; height: 1.6rem; }
.why__item:hover .why__icon { background: var(--anthracite); color: var(--orange); transform: rotate(-8deg); }
.why__item h3 { font-size: var(--fs-h4); margin: .35rem 0 .3rem; }
.why__item p { margin: 0; color: var(--ink-soft); }
.why__quote {
  margin: var(--space-6) 0 0; padding: var(--space-5) 0 0 var(--space-5); border-left: 3px solid; border-image: var(--gradient) 1;
  font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 600; line-height: 1.35; letter-spacing: -.01em;
}

/* ---------- 13. Process 4 étapes ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); position: relative; }
@media (min-width: 48em) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) {
  .process { grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
  .process::before { content: ""; position: absolute; left: 0; right: 0; top: 2.2rem; height: 1px; background: var(--line-dark); }
  .process::after { content: ""; position: absolute; left: 0; top: 2.2rem; height: 2px; width: 100%; background: var(--gradient); transform-origin: left; transform: scaleX(0); transition: transform 1.8s var(--ease-out); }
  .process.is-inview::after { transform: scaleX(1); }
}
.process__step {
  position: relative; padding: var(--space-5); border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark);
  transition: background .4s, transform .5s var(--ease-out), border-color .4s;
}
.process__step:hover { background: rgba(255, 255, 255, .08); transform: translateY(-4px); border-color: rgba(255, 138, 0, .5); }
.process__num {
  display: inline-grid; place-items: center; width: 3.2rem; height: 3.2rem; margin-bottom: var(--space-4); border-radius: 50%;
  background: var(--anthracite); border: 2px solid var(--orange);
  font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: #fff; position: relative; z-index: 1;
}
.process__step h3 { font-size: var(--fs-h4); letter-spacing: .06em; text-transform: uppercase; margin-bottom: .5rem; }
.process__step p { color: #d6d1cb; margin: 0; font-size: var(--fs-sm); }
.process__step ul { margin: var(--space-4) 0 0; padding: 0; list-style: none; font-size: var(--fs-xs); color: #bcb6af; display: grid; gap: .3rem; }
.process__step li::before { content: "— "; color: var(--orange); }
.section:not(.section--dark) .process__step { background: #fff; border-color: var(--line); }
.section:not(.section--dark) .process__step p { color: var(--ink-soft); }
.section:not(.section--dark) .process__step ul { color: var(--ink-soft); }
.section:not(.section--dark) .process__num { background: #fff; color: var(--anthracite); border-color: var(--coral); }
.section:not(.section--dark) .process::before { background: var(--line); }

/* ---------- 14. Bloc conversion ---------- */
.convert {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--anthracite); color: #f1efec;
  padding: clamp(2rem, 1rem + 4vw, 4.5rem);
  display: grid; gap: var(--space-7);
}
.convert::before {
  content: ""; position: absolute; z-index: -1; width: 46rem; height: 46rem; right: -18rem; top: -20rem;
  background: radial-gradient(closest-side, rgba(255, 90, 110, .35), rgba(181, 18, 107, .15) 60%, transparent);
}
.convert__deco { position: absolute; z-index: -1; right: -3rem; bottom: -4rem; width: 22rem; opacity: .18; }
@media (min-width: 64em) { .convert { grid-template-columns: 1fr 1fr; align-items: start; } }
.convert h2 { color: #fff; }
.convert h2 .line { display: block; }
.convert h2 .line + .line { color: var(--orange); }
.convert .lead { color: #d6d1cb; }
.convert__actions { display: grid; gap: var(--space-3); margin-top: var(--space-6); }
@media (min-width: 30em) { .convert__actions { display: flex; flex-wrap: wrap; } }
.convert__note { font-size: var(--fs-xs); color: #bcb6af; margin-top: var(--space-5); }

/* ---------- 15. Formulaires ---------- */
.form { display: grid; gap: var(--space-4); }
.form-row { display: grid; gap: var(--space-4); }
@media (min-width: 36em) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; }
.field > label, .field > .label, .fieldset legend {
  font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 600; color: inherit;
}
.req { color: var(--accent-on-light); }
.on-dark .req { color: var(--orange); }
.field .hint { font-size: var(--fs-xs); color: var(--ink-soft); margin: 0; }
.on-dark .field .hint { color: #bcb6af; }
.input, .select, .textarea {
  width: 100%; min-height: 3.1rem; padding: .75rem 1rem;
  border: 1.5px solid #d9d5cf; border-radius: .8rem; background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 8rem; resize: vertical; line-height: 1.5; }
.select {
  appearance: none; padding-right: 2.75rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23343434' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.input:hover, .select:hover, .textarea:hover { border-color: #b5afa8; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--anthracite); box-shadow: 0 0 0 4px rgba(255, 138, 0, .25); }
.on-dark .input, .on-dark .select, .on-dark .textarea { background: #2b2b2b; border-color: #5a5550; color: #fff; }
.on-dark .select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.on-dark .input::placeholder, .on-dark .textarea::placeholder { color: #a39d96; }
.on-dark .input:focus, .on-dark .select:focus, .on-dark .textarea:focus { border-color: var(--orange); }
.is-invalid, .input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: #c4003a !important; }
.field-error { margin: 0; font-size: var(--fs-xs); font-weight: 600; color: #b0002f; display: flex; gap: .35rem; align-items: center; }
.field-error::before { content: "!"; display: inline-grid; place-items: center; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: currentColor; color: #fff; font-size: .7rem; flex: none; }
.on-dark .field-error { color: #ff9cad; }
.on-dark .field-error::before { color: var(--anthracite); }

.check { display: flex; gap: .7rem; align-items: flex-start; font-size: var(--fs-sm); cursor: pointer; }
.check input { width: 1.25rem; height: 1.25rem; margin: .15rem 0 0; accent-color: var(--magenta); flex: none; }
.on-dark .check input { accent-color: var(--orange); }
.fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .6rem; min-width: 0; }
.fieldset legend { padding: 0; margin-bottom: .4rem; }

.options { display: flex; flex-wrap: wrap; gap: .5rem; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.option span {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; padding: .5rem 1rem;
  border: 1.5px solid #d9d5cf; border-radius: 999px; background: #fff; font-size: var(--fs-sm); font-weight: 500;
  transition: border-color .2s, background .2s, color .2s;
}
.option input:hover + span { border-color: var(--anthracite); }
.option input:checked + span { background: var(--anthracite); border-color: var(--anthracite); color: #fff; }
.option input:checked + span::before { content: "✓"; font-weight: 700; color: var(--orange); }
.option input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }

.alert { display: flex; gap: .75rem; padding: 1rem 1.25rem; border-radius: var(--radius); font-size: var(--fs-sm); margin-bottom: var(--space-5); }
.alert--error { background: #fdeef1; color: #8a0025; border: 1px solid #f5c2cd; }
.alert--success { background: #ecf7f0; color: #145c33; border: 1px solid #bfe3cc; }
.alert--info { background: #fff6eb; color: #7a4100; border: 1px solid #ffdcb0; }
.form-legal { font-size: var(--fs-xs); color: var(--ink-soft); margin: 0; }
.on-dark .form-legal { color: #bcb6af; }

.dropzone {
  position: relative; display: grid; place-items: center; gap: .4rem; text-align: center;
  padding: var(--space-6) var(--space-4); border: 2px dashed #cfc9c2; border-radius: var(--radius); background: #fff;
  transition: border-color .2s, background .2s;
}
.dropzone.is-over { border-color: var(--magenta); background: #fff5f9; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .icon { width: 2rem; height: 2rem; color: var(--magenta); }
.dropzone strong { font-family: var(--font-display); }
.dropzone small { color: var(--ink-soft); }
.file-list { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: grid; gap: .4rem; font-size: var(--fs-sm); }
.file-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem .8rem; background: var(--paper); border-radius: .6rem; }

/* ---------- 16. Configurateur ---------- */
.configurator { display: grid; gap: var(--space-6); }
@media (min-width: 64em) { .configurator { grid-template-columns: 17rem 1fr; gap: var(--space-8); align-items: start; } }
.steps-nav { list-style: none; margin: 0; padding: 0; display: flex; gap: .4rem; counter-reset: s; }
.steps-nav li { flex: 1; }
.steps-nav button {
  all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: grid; gap: .5rem;
  font-family: var(--font-display); font-size: .7rem; font-weight: 600; color: var(--ink-soft);
}
.steps-nav button::before { content: ""; height: 4px; border-radius: 4px; background: var(--line); transition: background .4s; }
.steps-nav .step-label { display: none; }
.steps-nav li.is-done button::before { background: var(--anthracite); }
.steps-nav li.is-current button::before { background: var(--gradient); }
.steps-nav li.is-current button { color: var(--ink); }
.steps-nav button[disabled] { cursor: default; }
.steps-nav button:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; border-radius: 4px; }
@media (min-width: 64em) {
  .configurator__aside { position: sticky; top: calc(var(--header-h) + 2rem); }
  .steps-nav { flex-direction: column; gap: 0; }
  .steps-nav button { grid-template-columns: 2.4rem 1fr; align-items: center; gap: .9rem; padding: .7rem 0; font-size: var(--fs-sm); }
  .steps-nav button::before { counter-increment: s; content: counter(s); width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink-soft); font-size: .85rem; }
  .steps-nav .step-label { display: block; }
  .steps-nav li.is-done button::before { background: var(--anthracite); color: #fff; content: "✓"; }
  .steps-nav li.is-current button::before { background: var(--gradient-warm); color: #1b1b1b; }
}
.configurator__help { margin-top: var(--space-6); padding: var(--space-5); border-radius: var(--radius); background: var(--paper); font-size: var(--fs-sm); display: none; }
.configurator__help p { margin-bottom: .75rem; }
@media (min-width: 64em) { .configurator__help { display: block; } }

.q-step { display: grid; gap: var(--space-5); }
.js .q-step:not(.is-active) { display: none; }
.q-step__head h2 { font-size: var(--fs-h3); margin-bottom: .4rem; }
.q-step__head p { color: var(--ink-soft); margin: 0; }
.q-step__nav { display: flex; gap: var(--space-3); justify-content: space-between; align-items: center; padding-top: var(--space-5); border-top: 1px solid var(--line); flex-wrap: wrap; }
.q-step__nav .btn:only-child { margin-left: auto; }
.no-js-only { }
.js .no-js-only { display: none; }

.need-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 14.5rem), 1fr)); }
.need { position: relative; }
.need input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.need__card {
  display: grid; grid-template-columns: 3rem 1fr; gap: .9rem; align-items: center; height: 100%;
  padding: 1rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color .25s, box-shadow .25s, transform .3s var(--ease);
}
.need__icon { width: 3rem; height: 3rem; border-radius: .8rem; display: grid; place-items: center; background: var(--paper); color: var(--magenta); transition: background .25s, color .25s; }
.need__icon .icon { width: 1.5rem; height: 1.5rem; }
.need__name { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); line-height: 1.3; }
.need__desc { display: block; font-size: var(--fs-xs); color: var(--ink-soft); line-height: 1.4; margin-top: .2rem; }
.need input:hover + .need__card { border-color: #b5afa8; transform: translateY(-2px); }
.need input:checked + .need__card { border-color: var(--anthracite); box-shadow: 0 0 0 1px var(--anthracite), var(--shadow); }
.need input:checked + .need__card .need__icon { background: var(--anthracite); color: var(--orange); }
.need input:focus-visible + .need__card { outline: 3px solid var(--orange); outline-offset: 2px; }

.q-service { padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; display: grid; gap: var(--space-5); }
.q-service[hidden] { display: none; }
.q-service__title { display: flex; align-items: center; gap: .75rem; margin: 0; font-size: var(--fs-h4); }
.q-service__title .need__icon { width: 2.5rem; height: 2.5rem; }

.recap { display: grid; gap: var(--space-4); }
.recap__block { padding: var(--space-5); background: var(--paper); border-radius: var(--radius); }
.recap__block h3 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .75rem; display: flex; justify-content: space-between; gap: 1rem; }
.recap__block h3 button { all: unset; cursor: pointer; font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--accent-on-light); text-decoration: underline; font-size: var(--fs-xs); }
.recap dl { margin: 0; display: grid; gap: .4rem; font-size: var(--fs-sm); }
.recap dl div { display: grid; gap: .1rem; }
@media (min-width: 36em) { .recap dl div { grid-template-columns: 13rem 1fr; gap: 1rem; } }
.recap dt { color: var(--ink-soft); }
.recap dd { margin: 0; font-weight: 500; }

/* ---------- 17. Pages internes ---------- */
.page-hero { padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(2.5rem, 1.5rem + 3vw, 4.5rem); background: var(--paper); position: relative; overflow: hidden; }
.page-hero--dark { background: var(--anthracite); color: #f1efec; }
.page-hero--dark h1 { color: #fff; }
.page-hero h1 { max-width: 20ch; margin: var(--space-4) 0; }
.page-hero .lead { max-width: 42rem; }
.page-hero__deco { position: absolute; right: -4rem; top: 50%; translate: 0 -50%; width: min(38rem, 60vw); opacity: .9; pointer-events: none; }
@media (max-width: 47.99em) { .page-hero__deco { opacity: .25; right: -10rem; } }

.breadcrumb { font-size: var(--fs-xs); margin: 0 0 var(--space-4); }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.breadcrumb a { color: inherit; text-decoration: none; opacity: .75; }
.breadcrumb a:hover { opacity: 1; text-decoration: underline; }

/* Hero expertise */
.svc-hero { padding-block: clamp(2rem, 1rem + 3vw, 4rem) clamp(3rem, 2rem + 4vw, 6rem); background: var(--paper); overflow: hidden; }
.svc-hero__grid { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 60em) { .svc-hero__grid { grid-template-columns: 1.05fr .95fr; } }
.svc-hero h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.4rem); margin: var(--space-4) 0; }
.svc-hero__media { position: relative; }
.svc-hero__media img { border-radius: var(--radius-lg); aspect-ratio: 5 / 4; object-fit: cover; width: 100%; box-shadow: var(--shadow-lg); }
.svc-hero__badge {
  position: absolute; left: -1rem; bottom: -1.25rem; display: flex; align-items: center; gap: .75rem;
  padding: .8rem 1.1rem; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); max-width: 80%;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm);
}
.svc-hero__badge .need__icon { width: 2.6rem; height: 2.6rem; background: var(--anthracite); color: var(--orange); }
@media (max-width: 40em) { .svc-hero__badge { left: .75rem; } }

.promise {
  font-family: var(--font-display); font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.8rem); font-weight: 600;
  line-height: 1.2; letter-spacing: -.025em; max-width: 26ch; margin: 0;
}
.promise em { font-style: normal; color: var(--accent-on-light); }

.deliverables { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.deliverables li {
  display: flex; gap: .8rem; align-items: center; padding: 1rem 1.1rem; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); font-weight: 500; font-size: var(--fs-sm);
  transition: border-color .3s, transform .3s var(--ease);
}
.deliverables li:hover { border-color: var(--anthracite); transform: translateY(-2px); }
.deliverables .icon { color: var(--magenta); }

.benefits { display: grid; gap: var(--space-5); }
@media (min-width: 48em) { .benefits { grid-template-columns: repeat(3, 1fr); } }
.benefit { padding-top: var(--space-5); border-top: 2px solid; border-image: var(--gradient) 1; }
.benefit h3 { font-size: var(--fs-h4); }
.benefit p { color: var(--ink-soft); margin: 0; }
.section--dark .benefit p { color: #d6d1cb; }

.usecases { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.usecases li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.25rem; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); }
.usecases .icon { color: var(--orange); margin-top: .2rem; }
.split { display: grid; gap: var(--space-7); }
@media (min-width: 60em) { .split { grid-template-columns: 1fr 1fr; gap: var(--space-8); } .split--40 { grid-template-columns: .8fr 1.2fr; } }

.apps { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.apps li { padding: .6rem 1.1rem; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid var(--line-dark); font-size: var(--fs-sm); }

/* FAQ accordéon natif */
.faq { display: grid; gap: .6rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .3s, box-shadow .3s; }
.faq details[open] { border-color: var(--anthracite); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: 1.1rem 1.25rem; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-base);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23343434' stroke-width='2.2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center no-repeat;
  transition: transform .35s var(--ease), background-color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: #ffe7cc; }
.faq summary:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; border-radius: var(--radius); }
.faq .faq__answer { padding: 0 1.25rem 1.25rem; color: var(--ink-soft); }
.faq .faq__answer p:last-child { margin: 0; }

.cta-band {
  display: grid; gap: var(--space-5); align-items: center;
  padding: clamp(2rem, 1rem + 3vw, 3.5rem); border-radius: var(--radius-lg);
  background: var(--gradient); color: #1b1b1b; position: relative; overflow: hidden;
}
.cta-band h2 { color: #1b1b1b; margin: 0; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
.cta-band p { margin: .5rem 0 0; font-weight: 500; }
@media (min-width: 56em) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band .btn { --btn-bg: #1b1b1b; }
.cta-band .btn--light { --btn-bg: #fff; --btn-fg: #1b1b1b; }

.others { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.other-link {
  display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); background: #fff; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm);
  transition: border-color .3s, transform .3s var(--ease);
}
.other-link:hover { border-color: var(--anthracite); transform: translateY(-2px); }
.other-link .need__icon { width: 2.5rem; height: 2.5rem; }
.other-link .icon--arrow { margin-left: auto; transition: transform .3s; }
.other-link:hover .icon--arrow { transform: translateX(4px); }

/* Détail réalisation */
.project-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: var(--space-5) 0 0; padding: 0; list-style: none; }
.project-cover { margin-top: calc(var(--space-7) * -1); position: relative; z-index: 1; }
.project-cover img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 16 / 8; object-fit: cover; box-shadow: var(--shadow-lg); }
.project-story { display: grid; gap: var(--space-6); }
@media (min-width: 56em) { .project-story { grid-template-columns: repeat(3, 1fr); } }
.story-block h2 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .14em; color: var(--accent-on-light); margin-bottom: .75rem; font-weight: 700; }
.story-block p { color: var(--ink-soft); }
.steps-list { list-style: none; padding: 0; margin: 0; counter-reset: st; display: grid; gap: .6rem; }
.steps-list li { counter-increment: st; display: grid; grid-template-columns: 2.5rem 1fr; align-items: center; gap: 1rem; padding: .9rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps-list li::before { content: counter(st, decimal-leading-zero); font-family: var(--font-display); font-weight: 700; color: var(--accent-on-light); }
.demo-notice { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.25rem; border-radius: var(--radius); background: #fff6eb; border: 1px solid #ffdcb0; color: #6b3900; font-size: var(--fs-sm); }
.demo-notice .icon { flex: none; margin-top: .15rem; }

/* Prose (pages éditoriales) */
.prose { max-width: 46rem; font-size: 1.075rem; }
.prose h2 { font-size: var(--fs-h3); margin-top: var(--space-7); }
.prose h3 { font-size: var(--fs-h4); margin-top: var(--space-6); }
.prose ul li { margin-bottom: .4rem; }
.prose blockquote { margin: var(--space-6) 0; padding-left: var(--space-5); border-left: 3px solid var(--magenta); font-family: var(--font-display); font-size: var(--fs-h4); }
.placeholder-note { padding: .8rem 1rem; border: 1.5px dashed #e0a24f; border-radius: .7rem; background: #fffaf3; color: #6b3900; font-size: var(--fs-sm); }
.legal-list { display: grid; gap: .3rem; margin: 0 0 var(--space-6); }
.legal-list div { display: grid; gap: .1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 40em) { .legal-list div { grid-template-columns: 16rem 1fr; gap: 1rem; } }
.legal-list dt { font-weight: 600; }
.legal-list dd { margin: 0; color: var(--ink-soft); }

/* Contact */
.contact-grid { display: grid; gap: var(--space-7); }
@media (min-width: 60em) { .contact-grid { grid-template-columns: .85fr 1.15fr; gap: var(--space-8); } }
.contact-cards { display: grid; gap: var(--space-3); }
.contact-card {
  display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.25rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink);
  transition: border-color .3s, transform .3s var(--ease);
}
a.contact-card:hover { border-color: var(--anthracite); transform: translateY(-2px); }
.contact-card .need__icon { flex: none; }
.contact-card small { display: block; color: var(--ink-soft); font-size: var(--fs-xs); }
.contact-card strong { font-family: var(--font-display); font-weight: 600; word-break: break-word; }
.form-card { padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }

/* Merci */
.thanks { text-align: center; max-width: 42rem; margin-inline: auto; }
.thanks__mark { width: 6rem; height: 6rem; margin: 0 auto var(--space-5); }
.thanks__mark circle { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s var(--ease-out) forwards; }
.thanks__mark path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .6s .6s var(--ease-out) forwards; }
.ref { display: inline-flex; flex-direction: column; gap: .2rem; padding: 1rem 1.5rem; border-radius: var(--radius); background: var(--paper); border: 1px dashed #cfc9c2; margin: var(--space-4) 0 var(--space-6); }
.ref small { font-size: var(--fs-xs); color: var(--ink-soft); text-transform: uppercase; letter-spacing: .1em; }
.ref strong { font-family: var(--font-display); font-size: var(--fs-h3); letter-spacing: .04em; }
.next-steps { text-align: left; list-style: none; padding: 0; margin: var(--space-6) 0; display: grid; gap: .75rem; }
.next-steps li { display: flex; gap: 1rem; padding: 1rem 1.25rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.next-steps b { font-family: var(--font-display); color: var(--accent-on-light); }

/* Articles */
.post-card { display: grid; gap: .75rem; text-decoration: none; color: inherit; }
.post-card img { border-radius: var(--radius); aspect-ratio: 16/10; object-fit: cover; width: 100%; background: var(--paper); }
.post-card time { font-size: var(--fs-xs); color: var(--ink-soft); }
.post-card h3 { font-size: var(--fs-h4); margin: 0; }
.post-card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; }

/* ---------- 18. Footer ---------- */
.site-footer { background: var(--night); color: #cfcac4; padding-top: clamp(3.5rem, 2rem + 4vw, 6rem); position: relative; overflow: hidden; }
.site-footer a:not(.btn) { color: #e9e5e0; }
.footer-top { display: grid; gap: var(--space-7); padding-bottom: var(--space-7); border-bottom: 1px solid var(--line-dark); }
@media (min-width: 48em) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 72em) { .footer-top { grid-template-columns: 1.5fr 1fr 1.2fr 1.1fr; } }
.footer-brand p { margin: var(--space-4) 0; max-width: 22rem; }
.footer-signature { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 600; color: #fff; letter-spacing: -.01em; line-height: 1.3; }
.footer-signature span { color: var(--orange); }
.site-footer h2 { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: #9d968e; margin-bottom: var(--space-4); font-weight: 600; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: var(--fs-sm); }
.footer-links a { --gradient-c: transparent; background-size: 0 1px; }
.footer-links a:hover { --gradient-c: currentColor; background-size: 100% 1px; }
.footer-contact { display: grid; gap: .75rem; font-size: var(--fs-sm); }
.footer-contact a, .footer-contact span { display: flex; gap: .6rem; align-items: flex-start; text-decoration: none; }
.footer-contact .icon { color: var(--orange); margin-top: .2rem; }
.socials { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--space-5); padding: 0; list-style: none; }
.socials a {
  width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-dark); transition: background .3s, color .3s, border-color .3s;
}
.socials a:hover { background: #fff; color: var(--anthracite); border-color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; align-items: center; padding-block: var(--space-5); font-size: var(--fs-xs); color: #9d968e; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.footer-bottom button { all: unset; cursor: pointer; text-decoration: underline; }
.footer-bottom button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.footer-giant {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.06em; line-height: .75;
  font-size: clamp(5rem, 2rem + 17vw, 17rem); margin: var(--space-6) 0 -0.12em;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,0)); -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none; white-space: nowrap;
}

/* Bandeau cookies */
.consent {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 120; max-width: 30rem;
  padding: 1.25rem; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.consent p { margin-bottom: .9rem; }
.consent .btn-row { gap: .5rem; }

/* ---------- 19. Apparition progressive ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-inview { opacity: 1; transform: none; }

/* ---------- 20. Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .monogram .draw { stroke-dashoffset: 0; }
  .hero-card { opacity: 1; }
}

/* ---------- 21. Impression ---------- */
@media print {
  .site-header, .site-footer, .wa-float, .action-bar, .consent, .btn { display: none !important; }
  body { color: #000; }
}
