/* ═══════════════════════════════════════════════════════════
   RÉALISATEUR WEB — accueil.css
   Ajouts propres à la page d'accueil (chargé après typo.css) :
   1. titre principal et questions fréquentes ;
   2. « Un projet, 3 actes » : composition animée (actes.js) ;
   3. expertises en sélecteur (expertises.js) ;
   4. formulaire de contact (formulaire.js).
   Le rouge sert aux contours, repères et boutons, jamais au texte.
   ═══════════════════════════════════════════════════════════ */


/* ════════════════════════ 1 · TITRE PRINCIPAL ET QUESTIONS FRÉQUENTES ════════════════════════ */

/* Le H1 porte désormais la ligne « Agence web en Essonne · … » : il garde exactement
   l'aspect de l'ancienne ligne en capitales (.mono), sans le gras ni l'équilibrage des titres. */
h1.hero-kicker { font-weight: 400; text-wrap: wrap; }
/* L'accroche devient un paragraphe : elle garde l'équilibrage de lignes des titres. */
.hero-title { text-wrap: balance; }

/* ═══════════ 9bis · QUESTIONS FRÉQUENTES ═══════════ */
.faq-home {
  position: relative; z-index: 2;
  background: var(--white);
  padding: 4vh var(--gutter) 14vh;
}
.faq-list { max-width: 920px; margin: 0 auto; }
.faq { border-top: 1px solid var(--ink-faint); }
.faq:last-child { border-bottom: 1px solid var(--ink-faint); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%); font-size: 26px; font-weight: 300; transition: transform .3s;
}
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.faq p { padding: 0 44px 24px 0; color: rgba(var(--ink-rgb), .8); line-height: 1.5; font-size: 17px; }

@media (max-width: 900px) {
  .faq-home { padding: 2vh var(--gutter) 10vh; }
  .faq p { font-size: 16px; padding-right: 0; }
}

/* ════════════════════════ 2 · UN PROJET, 3 ACTES ════════════════════════ */

.grow .acts-stage {
  position: absolute; top: 50%; left: 50%;
  width: 100vw; height: 100vh;
  transform: translate(-50%, -50%);
  container-type: size;
  overflow: hidden;
  background: #0e0d0c;
  color: #e9e5dd;
}
.acts-light {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 60% at 14% -6%, rgba(255, 236, 214, .17), transparent 70%),
    radial-gradient(ellipse 40% 45% at 86% 4%, rgba(255, 236, 214, .08), transparent 70%);
}
.acts-desk {
  position: absolute; left: 0; right: 0; bottom: 0; height: 17cqh; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,.05), rgba(0,0,0,0) 2px), linear-gradient(to bottom, #151412, #0a0908);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

/* fil rouge */
.acts-thread { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.acts-thread path {
  fill: none; stroke: #e40427; stroke-width: 2.2; stroke-linecap: round;
  stroke-dasharray: 0 99999;   /* tracé piloté par actes.js, en pixels réels */
  filter: drop-shadow(0 0 5px rgba(228, 4, 39, .85));
}

/* rangée des planches (paysage) */
.acts-row {
  position: absolute; left: 0; right: 0; top: 47%;
  transform: translateY(-50%);
  display: flex; justify-content: center; align-items: flex-end;
  gap: 3.4cqw; z-index: 2;
  perspective: 1800px;
  --w: min(27cqw, 62cqh * .769);
}
/* chaque planche se lève quand la ligne rouge passe à sa hauteur */
.act {
  margin: 0; width: var(--w);
  opacity: var(--in, 0);
  transform: translateY(calc((1 - var(--in, 0)) * 1.6cqh)) scale(calc(.965 + .035 * var(--in, 0))) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  will-change: transform, opacity;
}
.act[data-i="0"] { --ry: 13deg; }
.act[data-i="2"] { --ry: -13deg; }
.act-label {
  font-family: var(--mono); text-transform: uppercase;
  font-size: clamp(9px, 1.05cqw, 13px); letter-spacing: .08em;
  color: #cfc9bf; text-align: center; margin-bottom: 2.2cqh;
  display: flex; align-items: center; justify-content: center; gap: .9em;
}
.act-n { color: #8f938f; display: inline-flex; align-items: center; gap: .6em; }
.act-n::before { content: ''; width: 1.6em; height: 1px; background: #e40427; }
.act-card {
  aspect-ratio: 300 / 390; border-radius: 4px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 2px 0 rgba(255, 255, 255, .04),
              0 0 0 1px rgba(228, 4, 39, calc(var(--halo, 0) * .9)), 0 0 46px rgba(228, 4, 39, calc(var(--halo, 0) * .55));
}
.act-svg { display: block; width: 100%; height: 100%; }
.is-paper .act-card { background: #efe9df; }
.is-board .act-card { background: #1d1c1a; padding: 0; }
.is-site .act-card { background: #2a2824; }

/* éléments animés (--k de 0 à 1) */
.act-svg .ln {
  fill: none; stroke: #2b2825; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--k, 0));
}
.act-svg .ln-soft { stroke: rgba(43, 40, 37, .45); stroke-width: .9; }
.act-svg .ln-bar { stroke: rgba(43, 40, 37, .55); stroke-width: 3; }
.act-svg .ln-red { stroke: #e40427; stroke-width: 1.4; }
.act-svg .fd { opacity: var(--k, 0); }
.act-svg .pp, .act-svg .cta { transform-box: fill-box; transform-origin: center; }
.act-svg .pp { opacity: var(--k, 0); transform: scale(calc(.6 + .4 * var(--k, 0))); }
.act-svg .rs { opacity: var(--k, 0); transform: translateY(calc((1 - var(--k, 0)) * 10px)); }

/* textes des planches (jamais en rouge) */
.act-svg text { font-family: var(--mono); letter-spacing: .04em; }
.act-svg .tm { fill: #3b3733; }
.act-svg .tw { fill: #fff; }
.act-svg .tu { fill: #8f8a83; }
.act-svg .ts { font-family: var(--sans); fill: #1a1915; letter-spacing: -.01em; }
.act-svg .tsw { font-family: var(--sans); fill: #fff; letter-spacing: -.02em; font-weight: 600; }

/* planche 02 */
.act-svg .canvas { fill: #f4f1ec; }
.act-svg .sw-light { stroke: rgba(0, 0, 0, .12); stroke-width: .8; }
.act-svg .ink { fill: #1a1915; }
.act-svg .mute { fill: rgba(26, 25, 21, .28); }
.act-svg .outline { fill: none; stroke: #1a1915; stroke-width: 1; }
.act-svg .field { fill: #fff; stroke: rgba(26, 25, 21, .3); stroke-width: .8; }

/* planche 03 */
.act-svg .page { fill: #faf8f5; }
.act-svg .chrome { fill: #1f1e1b; }
.act-svg .dot { fill: #55524d; }
.act-svg .url { fill: #34322e; }
.act-svg .nav { fill: #fff; }
.act-svg .bldg { fill: #121317; }
.act-svg .bldg.far { fill: #2a2a31; }
.act-svg .win { fill: #ffd38a; opacity: calc(.1 + .9 * var(--k, 0)); }
.act-svg .soft { fill: rgba(255, 255, 255, .55); }
.act-svg .card { fill: #fff; stroke: rgba(26, 25, 21, .1); stroke-width: .8; }
.act-svg .ico { fill: none; stroke: #e40427; stroke-width: 1.4; }
.act-svg .photo2 { fill: #c9c2b8; }
.act-svg .cursor {
  fill: #fff; stroke: #111; stroke-width: 1;
  opacity: min(1, calc(var(--k, 0) * 8));
  transform: translate(calc(250px - 196px * var(--k, 0)), calc(352px - 186px * var(--k, 0)));
}
.act-svg .ripple {
  fill: none; stroke: #fff; stroke-width: 1.5;
  transform-box: fill-box; transform-origin: center;
  transform: scale(calc(.4 + 1.6 * var(--k, 0)));
  opacity: calc((1 - var(--k, 0)) * min(1, var(--k, 0) * 20));
}

/* indicateur d'étapes (portrait seulement) */
.acts-dots { position: absolute; left: 50%; bottom: 6cqh; transform: translateX(-50%); display: none; gap: 10px; list-style: none; padding: 0; margin: 0; z-index: 3; }
.acts-dots li { width: 22px; height: 2px; background: rgba(255, 255, 255, .25); transition: background .3s; }
.acts-dots li.on { background: #e40427; }

/* ═══ portrait (mobile, tablette verticale) : les planches se succèdent ═══ */
.acts-stage.is-portrait .acts-thread { display: none; }
.acts-stage.is-portrait .acts-dots { display: flex; }
.acts-stage.is-portrait .acts-row { top: 0; bottom: 0; transform: none; --w: min(76cqw, 60cqh * .769); }
.acts-stage.is-portrait .act {
  position: absolute; left: 50%; top: 50%;
  opacity: calc(var(--in, 0) * (1 - var(--out, 0)));
  transform: translate(-50%, -52%)
             translateX(calc((1 - var(--in, 0)) * 34cqw - var(--out, 0) * 34cqw))
             rotateY(calc((1 - var(--in, 0)) * -14deg + var(--out, 0) * 14deg));
}
.acts-stage.is-portrait .act-label { font-size: clamp(10px, 3cqw, 13px); margin-bottom: 2.6cqh; }

/* ═══ animations réduites : composition finale, posée sous la phrase ═══ */
body.static .s-night .night-line { flex-wrap: wrap; height: auto; padding: 8vh var(--gutter); row-gap: 4vh; white-space: normal; }
body.static .s-night .grow { order: 3; flex: 0 0 100%; width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; margin: 0 !important; }
body.static .grow .acts-stage { position: absolute; inset: 0; width: 100%; height: 100%; transform: none; }

/* tête lumineuse de la ligne rouge */
.acts-head {
  position: absolute; left: 0; top: 0; z-index: 1; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  will-change: transform;
  background: #fff; opacity: 0; pointer-events: none;
  box-shadow: 0 0 0 3px rgba(228, 4, 39, .55), 0 0 18px 6px rgba(228, 4, 39, .75), 0 0 46px 14px rgba(228, 4, 39, .35);
}
.acts-stage.is-portrait .acts-head { display: none; }

/* ════════════════════════ 3 · EXPERTISES : SÉLECTEUR ════════════════════════ */
.xpv .xp-list { border-bottom: 0; }
.xpv-num { color: var(--ash); font-size: 10.5px; letter-spacing: .06em; }
.xpv-pitch { font-size: 16px; line-height: 1.5; color: rgba(var(--ink-rgb), .78); }
.xpv-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.xpv-tags li { font-size: 10.5px; padding: 5px 9px; border: 1px solid var(--ink-faint); border-radius: 40px; color: var(--ash); }
.xpv-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.xpv-cta { color: var(--ink); }
.xpv-proof { color: var(--ash); font-size: 10.5px; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.xpv-proof:hover { color: var(--ink); border-color: currentColor; }

/* ───────────── B · SÉLECTEUR ───────────── */
.xpb { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(30px, 5vw, 90px); align-items: center; max-width: 1360px; margin: 0 auto; }
.xpb-tabs { list-style: none; padding: 0; margin: 0; }
.xpb-tab {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: flex; align-items: baseline; gap: 18px; padding: 16px 0 16px 0;
  border-top: 1px solid var(--ink-faint); position: relative;
}
.xpb-tabs li:last-child .xpb-tab { border-bottom: 1px solid var(--ink-faint); }
.xpb-name {
  font-size: clamp(34px, 4.4vw, 66px); letter-spacing: -0.035em; line-height: 1; font-weight: 500;
  color: transparent; -webkit-text-stroke: 1px rgba(var(--ink-rgb), .45);
  transition: color .45s var(--ease-out), -webkit-text-stroke-color .45s, transform .6s var(--ease-out);
}
.xpb-tab::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: #e40427; transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
.xpb-tab.on .xpb-name, .xpb-tab:hover .xpb-name { color: var(--ink); -webkit-text-stroke-color: transparent; }
.xpb-tab.on .xpb-name { transform: translateX(12px); }
.xpb-tab.on::after { transform: scaleX(1); }
.xpb-tab:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.xpb-stage { position: relative; min-height: clamp(520px, 62vh, 680px); }
.xpb-panel {
  position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(20px, 2.4vw, 36px); align-items: center;
  opacity: 0; visibility: hidden; transform: translateY(18px);
  transition: opacity .5s var(--ease-out), transform .7s var(--ease-out), visibility 0s .5s;
}
.xpb-panel.on { opacity: 1; visibility: visible; transform: none; transition: opacity .6s .05s var(--ease-out), transform .8s .05s var(--ease-out), visibility 0s; }
.xpb-mobile-name { display: none; }
.xpb-visual { aspect-ratio: 2 / 3; overflow: hidden; border-radius: 4px; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .9); }
.xpb-visual img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transform: scale(1.06); transition: transform 1.4s var(--ease-out); }
.xpb-panel.on .xpb-visual img { transform: none; }
.xpb-text { display: grid; gap: 18px; }
.xpb-hook { font-size: clamp(24px, 2.3vw, 36px); line-height: 1.12; letter-spacing: -0.025em; }
@media (max-width: 900px) {
  .xpb { grid-template-columns: 1fr; }
  .xpb-tabs { display: none; }
  .xpb-stage { min-height: 0; display: grid; gap: 48px; }
  .xpb-panel { position: static; opacity: 1; visibility: visible; transform: none; grid-template-columns: 1fr; }
  .xpb-mobile-name { display: block; font-size: clamp(34px, 10vw, 48px); letter-spacing: -0.03em; line-height: 1; }
  .xpb-visual { aspect-ratio: 16 / 10; }
}

/* B · Sélecteur retenu : un vrai bouton d'action, la preuve en second */
.xpb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 6px; }
.xpb-btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 22px; }
.xpb-btn span { display: inline-block; transition: transform .4s var(--ease-out); }
.xpb-btn:hover span, .xpb-btn:focus-visible span { transform: translateX(5px); }
.xpb-tab .xpb-go { margin-left: auto; align-self: center; font-size: 20px; color: var(--ash); opacity: 0; transform: translateX(-8px); transition: opacity .4s, transform .5s var(--ease-out); }
.xpb-tab.on .xpb-go { opacity: 1; transform: none; color: var(--ink); }
@media (max-width: 900px) { .xpb-btn { width: 100%; justify-content: space-between; } }
@media (prefers-reduced-motion: reduce) {
  .xpv *, .xpv *::before, .xpv *::after { transition: none !important; animation: none !important; }
}

/* ════════════════════════ 4 · FORMULAIRE DE CONTACT ════════════════════════ */

.contact-form { padding: clamp(24px, 3vw, 44px); border-radius: 6px; gap: 30px; }
.f-intro { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; font-size: 15px; color: var(--ink); margin: 0; }
.f-legend-req { color: var(--ash); font-size: 13px; }
.f-legend-req span, .f-req { color: var(--ash); }

/* étapes */
.f-step { border: 0; margin: 0; padding: 0; display: grid; gap: 16px; min-width: 0; }
.f-legend { display: flex; align-items: baseline; gap: 12px; padding: 0; margin-bottom: 2px; font-size: clamp(19px, 1.5vw, 22px); letter-spacing: -0.01em; font-weight: 500; }
.f-opt { font-size: 13px; color: var(--ash); font-weight: 400; }

/* pastilles du besoin */
.f-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.f-chip { position: relative; cursor: pointer; }
.f-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.f-chip span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border: 1px solid rgba(var(--ink-rgb), .22); border-radius: 40px; font-size: 15px; color: var(--ink);
  transition: border-color .25s, background-color .25s, color .25s;
}
.f-chip:hover span { border-color: rgba(var(--ink-rgb), .55); }
.f-chip input:checked + span { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.f-chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }

/* champs : des cases franches, lisibles sur fond sombre */
.contact-form .f-row { gap: 16px; }
.contact-form .f-field { display: grid; gap: 8px; align-content: start; }
.f-lab { font-size: 15px; color: var(--ink); }
.contact-form .f-field input, .contact-form .f-field textarea {
  width: 100%; box-sizing: border-box; min-height: 52px; padding: 14px 16px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: rgba(var(--ink-rgb), .045); border: 1px solid rgba(var(--ink-rgb), .2); border-radius: 4px;
  transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.contact-form .f-field textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.contact-form .f-field input::placeholder, .contact-form .f-field textarea::placeholder { color: rgba(var(--ink-rgb), .5); }
.contact-form .f-field input:hover, .contact-form .f-field textarea:hover { border-color: rgba(var(--ink-rgb), .38); }
.contact-form .f-field input:focus, .contact-form .f-field textarea:focus {
  outline: none; border-color: var(--ink); background: rgba(var(--ink-rgb), .07);
  box-shadow: 0 0 0 3px rgba(var(--ink-rgb), .12);
}
.f-help { font-size: 13px; color: var(--ash); }
.f-err { font-size: 14px; color: var(--ink); min-height: 0; }
.f-err:not(:empty) { display: flex; gap: 8px; align-items: baseline; }
.f-err:not(:empty)::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #e40427; transform: translateY(-1px); }
.f-field.is-bad input, .f-field.is-bad textarea { border-color: #e40427; box-shadow: 0 0 0 3px rgba(228, 4, 39, .18); }
.f-field.is-ok input, .f-field.is-ok textarea { border-color: rgba(var(--ink-rgb), .45); }
.f-field.is-ok .f-lab::after { content: ' ✓'; color: var(--ash); }

/* consentement : une vraie case, facile à toucher */
.contact-form .f-consent { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: rgba(var(--ink-rgb), .78); cursor: pointer; position: relative; }
.contact-form .f-consent input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; }
.f-box { flex: none; width: 24px; height: 24px; border: 1px solid rgba(var(--ink-rgb), .4); border-radius: 4px; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.f-box::after { content: ''; width: 10px; height: 5px; border: 2px solid var(--bone); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.f-consent input:checked + .f-box { background: var(--ink); border-color: var(--ink); }
.f-consent input:checked + .f-box::after { opacity: 1; }
.f-consent input:focus-visible + .f-box { outline: 2px solid var(--ink); outline-offset: 3px; }
.f-consent.is-bad .f-box { border-color: #e40427; box-shadow: 0 0 0 3px rgba(228, 4, 39, .18); }
.f-err--consent { margin-top: -18px; padding-left: 38px; }

/* envoi : un bouton franc, et ce qui se passe ensuite */
.f-submit { display: grid; gap: 14px; padding-top: 8px; border-top: 1px solid rgba(var(--ink-rgb), .1); }
.f-send { display: flex; justify-content: center; align-items: center; gap: 12px; width: 100%; min-height: 58px; font-size: 13px; margin-top: 14px; }
.f-send span { display: inline-block; transition: transform .4s var(--ease-out); }
.f-send:hover span { transform: translateX(5px); }
.f-send:disabled { opacity: .7; cursor: progress; }
.f-after { font-size: 14px; color: var(--ash); line-height: 1.5; display: grid; gap: 4px; margin: 0; }
.f-after a { color: var(--ink); border-bottom: 1px solid rgba(var(--ink-rgb), .35); }
.f-submit .f-status:empty { display: none; }

/* appel direct (mobile) */
.contact-call { display: none; margin-top: 22px; }

@media (max-width: 900px) {
  /* mobile : titre, appel, FORMULAIRE, puis coordonnées (on ne fait plus défiler l'adresse avant le formulaire) */
  .contact { display: flex; flex-direction: column; gap: 34px; }
  .contact-copy { display: contents; }
  .contact-copy > * { order: 1; }
  .contact-form { order: 2; padding: 22px 18px; }
  .contact-infos { order: 3; margin-top: 0 !important; }
  .contact-call { display: block; order: 1; margin-top: -10px; }
  .contact-call .btn { width: 100%; justify-content: center; }
  .f-chip span { font-size: 14px; padding: 9px 14px; }
}

/* besoin : choix multiple ; repère d'erreur sur le groupe */
.f-step--besoin .f-help { margin: -8px 0 0; }
.f-chip input:checked + span::after { content: '✓'; font-size: 12px; margin-left: 2px; }
.f-step--besoin.is-bad .f-chip span { border-color: rgba(228, 4, 39, .7); }

/* retouches : moins d'espace entre la case de consentement et le bouton */
.f-intro { justify-content: flex-end; }
.f-err--consent:empty { display: none; }
.f-submit { padding-top: 0; border-top: 0; margin-top: -10px; }
.f-send { margin-top: 0; }
.f-legend { display: block; }
.f-legend .f-req { margin-left: 2px; }
