/* Texo Tela V2, feuille unique. Conçue d'abord pour le téléphone (360 px), puis élargie. */

@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora-latin.woff2") format("woff2");
  font-weight: 300 700;
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora-latin-ext.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #07060c;
  --bg2: #0e0b18;
  --ink: #f7f4fa;
  --muted: #b8b0c8;
  --line: rgba(247, 244, 250, .12);
  --indigo: #6e54a3;
  --violet: #712f90;
  --magenta: #ef5597;
  --coral: #f15e75;
  --red: #ee2153;
  --grad: linear-gradient(115deg, #8a6fd0 0%, #ef5597 52%, #f37a6a 100%);
  --pad: clamp(20px, 5.5vw, 64px);
  --top: 64px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 8px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.08; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.kicker::before { content: ""; width: 22px; height: 1px; background: var(--grad); }

/* En-tête : transparent en haut, verre dépoli dès qu'on défile */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 30; height: var(--top);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  transition: background .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.top.scrolled { background: rgba(7, 6, 12, .78); border-color: var(--line); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .top.scrolled { background: rgba(7, 6, 12, .55); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 17px; letter-spacing: .01em; min-height: 44px; }
.brand b { font-weight: 600; }

.burger { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.04); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.burger-lines, .burger-lines::before, .burger-lines::after { display: block; width: 16px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger-lines { position: relative; }
.burger-lines::before, .burger-lines::after { content: ""; position: absolute; left: 0; }
.burger-lines::before { top: -5px; }
.burger-lines::after { top: 5px; }
.menu-open .burger-lines { background: transparent; }
.menu-open .burger-lines::before { transform: translateY(5px) rotate(45deg); }
.menu-open .burger-lines::after { transform: translateY(-5px) rotate(-45deg); }

.nav {
  position: fixed; inset: var(--top) 0 0 0;
  display: flex; flex-direction: column; gap: 8px;
  padding: 18px var(--pad) calc(28px + env(safe-area-inset-bottom));
  background: #0a0812;
  border-bottom: 1px solid var(--line);
  transform: translateY(-12px); opacity: 0; visibility: hidden;
  transition: opacity .25s, transform .25s, visibility .25s;
  overflow-y: auto; overscroll-behavior: contain;
}
.menu-open .nav { opacity: 1; transform: none; visibility: visible; }
.nav a { text-decoration: none; padding: 13px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 17px; }
.nav a.nav-cta { background: var(--grad); border-color: transparent; color: #fff; font-weight: 600; text-align: center; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px;
  border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: .01em;
  transition: transform .2s, box-shadow .3s, background .3s;
}
.btn-main { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(239, 85, 151, .6); }
.btn-main:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(239, 85, 151, .8); }
.btn-ghost { border: 1px solid rgba(247,244,250,.28); background: rgba(255,255,255,.03); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-xl { min-height: 58px; padding: 0 34px; font-size: 17px; }

/* Héros : la trame derrière, le texte devant */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--top) + 8px) var(--pad) 84px;
  isolation: isolate;
  background:
    radial-gradient(60% 40% at 15% 18%, rgba(110, 84, 163, .32), transparent 70%),
    radial-gradient(55% 40% at 90% 70%, rgba(239, 85, 151, .18), transparent 70%);
}
.hero::before { /* grille de points, très discrète */
  content: ""; position: absolute; inset: 0; z-index: -2; opacity: .5;
  background-image: radial-gradient(rgba(247,244,250,.16) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(80% 60% at 50% 35%, #000 20%, transparent 80%);
  mask-image: radial-gradient(80% 60% at 50% 35%, #000 20%, transparent 80%);
}
/* La trame : un seul canvas fixe derrière toute la page, qui change de figure à chaque section */
.trame { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .foot, .after-simple { position: relative; z-index: 1; }
.hero-txt { max-width: 640px; }
.hero h1 { font-size: clamp(38px, 11vw, 92px); margin: 14px 0 16px; }
.lead { color: var(--muted); font-size: clamp(16px, 4.2vw, 19px); max-width: 34em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ctas .btn { flex: 1 1 200px; }

/* Sections communes */
section { position: relative; }
.nom, .services, .methode, .questions, .contact, .engagements { padding: 88px var(--pad); }
.sec-head { max-width: 760px; margin-bottom: 38px; }
.sec-head h2, .contact h2 { font-size: clamp(32px, 8.6vw, 64px); margin-top: 12px; }
.sec-lead { color: var(--muted); margin-top: 14px; font-size: 17px; max-width: 36em; }

/* Le nom : les mots s'allument à la lecture */
.nom { border-top: 1px solid var(--line); }
.manifeste { font-size: clamp(27px, 7.4vw, 60px); font-weight: 500; line-height: 1.22; margin-top: 18px; max-width: 980px; letter-spacing: -.015em; }
.manifeste .w { color: rgba(247,244,250,.24); transition: color .5s; }
.manifeste .w.on { color: var(--ink); }
.manifeste .w.hl.on { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.manifeste i { font-style: italic; font-weight: 300; }

/* Services : six cartes, chacune avec son fil de couleur */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.card {
  --c1: #6e54a3; --c2: #ef5597;
  position: relative; padding: 26px 22px 24px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
  border: 1px solid var(--line);
  overflow: hidden;
}
.card:nth-child(1) { --c1: #6e54a3; --c2: #8f5bb0; }
.card:nth-child(2) { --c1: #712f90; --c2: #b0459b; }
.card:nth-child(3) { --c1: #b0459b; --c2: #ef5597; }
.card:nth-child(4) { --c1: #ef5597; --c2: #f15e75; }
.card:nth-child(5) { --c1: #f15e75; --c2: #ee2153; }
.card:nth-child(6) { --c1: #ee2153; --c2: #6e54a3; }
.card::before { /* le fil qui se tend en haut de la carte */
  content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--c1), var(--c2));
  transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(.2,.7,.2,1);
}
.card::after { /* halo de la couleur du fil */
  content: ""; position: absolute; width: 180px; height: 180px; right: -60px; top: -80px; border-radius: 50%;
  background: radial-gradient(circle, var(--c2), transparent 70%); opacity: .14; pointer-events: none;
}
.card.on::before { transform: scaleX(1); }
.num { font-size: 13px; letter-spacing: .14em; color: var(--muted); }
.card h3 { font-size: 21px; margin: 14px 0 10px; line-height: 1.2; }
.card p { color: var(--muted); font-size: 15.5px; }

/* Méthode : un fil vertical qui se remplit au fil de la lecture */
.steps { list-style: none; margin: 0; padding: 0 0 0 34px; position: relative; counter-reset: s; max-width: 720px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; z-index: 0; }
.steps::before { background: var(--line); }
.steps::after { background: linear-gradient(var(--indigo), var(--magenta), var(--coral)); transform-origin: top; transform: scaleY(var(--p, 0)); }
.steps li { position: relative; padding-bottom: 34px; counter-increment: s; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { /* nœud du fil, comme les points du logo */
  content: ""; position: absolute; left: -31px; top: 5px; width: 14px; height: 14px; border-radius: 50%; z-index: 1;
  background: var(--bg); border: 2px solid rgba(247,244,250,.35); transition: border-color .4s, box-shadow .4s, background .4s;
}
.steps li.on::before { background: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 5px rgba(239,85,151,.22), 0 0 18px rgba(239,85,151,.7); }
.steps h3 { font-size: 21px; }
.steps h3::before { content: "0" counter(s) "  "; white-space: pre; font-size: 13px; letter-spacing: .14em; color: var(--muted); font-weight: 400; vertical-align: 3px; }
.steps p { color: var(--muted); margin-top: 6px; }

/* Engagements */
.engagements { padding-top: 24px; padding-bottom: 24px; }
.pills { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pills li { padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.pills b { display: block; font-weight: 600; font-size: 16px; }
.pills b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: var(--grad); vertical-align: 1px; }
.pills span { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.45; margin-top: 6px; }

/* Questions */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-weight: 500; font-size: 17px; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 1.5px solid var(--coral); border-bottom: 1.5px solid var(--coral); transform: rotate(45deg); transition: transform .3s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--muted); padding: 0 0 22px; max-width: 40em; }

/* Contact */
.contact { text-align: center; padding-top: 110px; padding-bottom: 110px; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line);
  background: radial-gradient(70% 60% at 50% 100%, rgba(239,85,151,.14), transparent 70%), rgba(14, 11, 24, .55); }
.contact .kicker { justify-content: center; }
.contact .sec-lead { margin: 14px auto 30px; }
.mail { margin-top: 16px; color: var(--muted); font-size: 14px; letter-spacing: .02em; }

/* Pied de page */
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { min-height: 44px; display: inline-flex; align-items: center; }

/* Apparition douce (seulement si JavaScript tourne) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.on { opacity: 1; transform: none; }

/* Tablette et plus */
@media (min-width: 720px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .pills { grid-template-columns: repeat(4, 1fr); }
  .hero { justify-content: center; padding-bottom: 100px; }
  .ctas .btn { flex: 0 0 auto; }
}
@media (min-width: 980px) {
  :root { --top: 76px; }
  .burger { display: none; }
  .nav { position: static; flex-direction: row; align-items: center; gap: 6px; padding: 0; background: none; border: 0; transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 10px 16px; font-size: 14.5px; border-color: transparent; }
  .nav a:not(.nav-cta):hover { border-color: var(--line); background: rgba(255,255,255,.04); }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .card { padding: 32px 28px 30px; transition: transform .35s, border-color .35s; }
  .card:hover { transform: translateY(-4px); border-color: rgba(247,244,250,.24); }
  .hero-txt { max-width: 52%; }
  .nom, .services, .methode, .questions { padding-top: 130px; padding-bottom: 130px; }
  .methode { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
  .methode .sec-head { position: sticky; top: calc(var(--top) + 40px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .manifeste .w { color: var(--ink); }
  .card::before { transform: scaleX(1); }
}

/* Pages simples : 404, mentions légales */
.page-simple { min-height: 70svh; padding: calc(var(--top) + 48px) var(--pad) 60px; max-width: 820px; display: flex; flex-direction: column; gap: 18px; }
.page-simple h1 { font-size: clamp(34px, 9vw, 64px); }
.legal h2 { font-size: 20px; margin-top: 22px; }
.legal p { color: var(--muted); }

/* Cartes de services cliquables (accueil) */
.card > a { display: block; text-decoration: none; color: inherit; margin: -26px -22px -24px; padding: 26px 22px 24px; border-radius: inherit; }
.card .more { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--ink); }
.card .more::after { content: ""; width: 18px; height: 1.5px; background: var(--grad); transition: width .3s; }
.card:hover .more::after, .card a:focus-visible .more::after { width: 30px; }
@media (min-width: 980px) { .card > a { margin: -32px -28px -30px; padding: 32px 28px 30px; } }

/* Pages de service */
.hero-page { min-height: 100vh; min-height: 100svh; }
@media (min-width: 720px) { .hero-page { min-height: 92vh; min-height: 92svh; } }
.hero-page h1 { font-size: clamp(34px, 9.4vw, 78px); }
.ariane { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.ariane a { min-height: 32px; display: inline-flex; align-items: center; }
.ariane span[aria-hidden] { opacity: .5; }
.bloc { padding: 88px var(--pad); }
.cards-plain .card { padding-top: 24px; }
.cards-plain .card h3 { margin-top: 0; }
.prose { max-width: 720px; }
.prose h3 { font-size: 20px; margin: 30px 0 10px; line-height: 1.25; }
.prose h3:first-child { margin-top: 0; }
.prose p { color: var(--muted); }
.prose a { color: var(--ink); text-decoration-color: var(--coral); text-underline-offset: 3px; }
.bloc .steps { margin-top: 6px; }

/* Contact : messageries */
.chat { display: flex; justify-content: center; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.chat .btn { min-width: 140px; }
.tel-note { opacity: .75; }

/* Les autres fils (liens entre services) */
.autres-liste { display: grid; gap: 10px; }
.autre { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: rgba(255,255,255,.025); transition: background .3s, border-color .3s; }
.autre::after { content: ""; width: 9px; height: 9px; border-top: 1.5px solid var(--coral); border-right: 1.5px solid var(--coral); transform: rotate(45deg); }
.autre:hover { background: rgba(255,255,255,.06); border-color: rgba(247,244,250,.24); }

/* Pied de page enrichi */
.foot-nav { display: grid; gap: 2px; }
.foot-nav a { min-height: 40px; display: inline-flex; align-items: center; text-decoration: none; }
.foot-nav a:hover { color: var(--ink); }
.foot-title { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 4px; }
@media (min-width: 720px) {
  .autres-liste { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .bloc { padding-top: 120px; padding-bottom: 120px; }
}
@media (min-width: 980px) {
  .bloc .sec-head, .bloc .prose, .bloc .cards, .bloc .steps { max-width: 60%; }
  .bloc .cards { grid-template-columns: 1fr 1fr; }
  .hero-page .hero-txt { max-width: 56%; }
}

/* Grand écran : la colonne de droite appartient à la trame */
@media (min-width: 980px) {
  .services .cards { max-width: 66%; grid-template-columns: 1fr 1fr; }
  .methode { max-width: 72%; }
  .manifeste { max-width: 64%; }
  .faq { max-width: 60%; }
}

/* Transitions entre les pages (10/11/2026). Décision de James : les pages changent net, sans transition ordinaire.
   Seuls l'entrée dans le formulaire (html.portail) et la sortie (html.retour) sont animées, que l'on passe par un
   lien du site ou par les boutons précédent et suivant ; le script de tête (BOOT_JS dans build.py) annule les autres.
   Pas de flou ni d'ombre animés : sur un téléphone d'entrée de gamme, ils font sauter des images */
@view-transition { navigation: auto; }
.top { view-transition-name: entete; }
::view-transition-group(entete) { animation-duration: .5s; }
/* Navigateurs sans View Transitions : la page du portail ou du retour apparaît en fondu */
html.arrivee main { animation: arrivee .6s cubic-bezier(.16, .84, .24, 1) both; }
@keyframes arrivee { from { opacity: 0; transform: translateY(14px); } }

/* Retour depuis le formulaire : la page du formulaire se resserre en un fil de lumière au milieu de l'écran,
   puis le site se retisse depuis ce fil, rang par rang, du centre vers les bords, un rang sur deux tiré à gauche,
   l'autre à droite, comme la navette d'un métier à tisser. Le bord de chaque rang porte le fil de trame */
html.retour::view-transition-old(root) { animation: retour-old .36s cubic-bezier(.7, 0, .3, 1) both; z-index: 2; }
html.retour::view-transition-new(root) { animation: none; }
@keyframes retour-old { 55% { opacity: 1; } to { transform: scaleY(.004); opacity: 0; } }
.tissage { display: none; }
html.retour .tissage { display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 29; pointer-events: none; }
.tissage i { flex: 1 1 0; margin: -1px 0; position: relative; background: var(--bg); will-change: transform; animation: .46s cubic-bezier(.66, 0, .3, 1) both; }
.tissage i.g { animation-name: rang-g; }
.tissage i.dr { animation-name: rang-d; }
@keyframes rang-g { to { transform: translateX(-108%); } }
@keyframes rang-d { to { transform: translateX(108%); } }
.tissage i::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 3px; opacity: 0;
  background: linear-gradient(180deg, #8a6fd0, #ef5597 50%, #f37a6a); box-shadow: 0 0 16px 2px rgba(239, 85, 151, .85);
  animation: navette .46s linear both;
}
.tissage i.g::after { right: 0; }
.tissage i.dr::after { left: 0; }
@keyframes navette { 0% { opacity: 0; } 10%, 62% { opacity: 1; } 88%, 100% { opacity: 0; } }
.tissage .r0, .tissage .r0::after { animation-delay: .3s; }
.tissage .r1, .tissage .r1::after { animation-delay: .345s; }
.tissage .r2, .tissage .r2::after { animation-delay: .39s; }
.tissage .r3, .tissage .r3::after { animation-delay: .435s; }
.tissage .r4, .tissage .r4::after { animation-delay: .48s; }
.tissage .r5, .tissage .r5::after { animation-delay: .525s; }
.tissage b {
  position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; z-index: 2;
  background: linear-gradient(90deg, transparent, #8a6fd0 15%, #ef5597 50%, #f37a6a 85%, transparent);
  box-shadow: 0 0 18px rgba(239, 85, 151, .9), 0 0 42px rgba(239, 85, 151, .45);
  animation: fil-centre .95s cubic-bezier(.4, 0, .2, 1) both;
}
@keyframes fil-centre { 0% { transform: scaleX(0); opacity: 1; } 34% { transform: scaleX(1); opacity: 1; } 62% { opacity: .9; } 100% { transform: scaleX(1); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .tissage { display: none !important; }
}

/* Nos services (pages de service) : le service en cours repéré */
.autre-ici { border-color: rgba(239, 85, 151, .5); background: rgba(239, 85, 151, .07); }
.autre-ici::after { border-color: var(--ink); }

/* Pied de page réorganisé */
.foot { display: block; padding: 48px var(--pad) calc(24px + env(safe-area-inset-bottom)); }
.foot-grid { display: grid; gap: 34px; }
.foot-brand, .foot-col { display: grid; gap: 2px; align-content: start; }
.foot-brand .brand { margin-bottom: 4px; }
.foot-slogan { margin-bottom: 18px; }
.foot-grid a:not(.brand) { min-height: 40px; display: inline-flex; align-items: center; text-decoration: none; color: var(--muted); }
.foot-grid a:not(.brand):hover { color: var(--ink); }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
@media (min-width: 980px) { .nav { inset: auto; } }
html.menu-open { overflow: hidden; }
@media (min-width: 980px) { html.menu-open { overflow: visible; } }

/* ==========================================================================
   Ajouts du 09/11/2026 : en-tête, menu dépliable, langue, flèche, pied de page,
   formulaire et écran de chargement
   ========================================================================== */

/* En-tête : marque | menu | langue + projet + menu téléphone */
.top { gap: 10px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.top-cta {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  background: var(--grad); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
  box-shadow: 0 8px 22px -10px rgba(239, 85, 151, .7);
}
@media (max-width: 419px) { .brand-name { display: none; } }

/* Le verre dépoli de la barre piégeait le tiroir (un parent avec backdrop-filter devient la référence
   des éléments en position fixe) : barre opaque et sans filtre quand le menu est ouvert */
html.menu-open .top { -webkit-backdrop-filter: none; backdrop-filter: none; background: #0a0812; border-color: var(--line); }

/* Choix de langue, toujours visible */
.lang-pick { position: relative; }
.lang-pick summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 13px; letter-spacing: .08em; background: rgba(255,255,255,.04);
}
.lang-pick summary::-webkit-details-marker { display: none; }
.chev { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s; }
.lang-pick[open] summary .chev { transform: rotate(-135deg) translate(-2px, -2px); }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px); display: grid; min-width: 150px; padding: 6px; z-index: 5;
  background: #0f0c1a; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px -20px #000;
}
.lang-list a { padding: 11px 14px; border-radius: 10px; text-decoration: none; color: var(--muted); font-size: 15px; }
.lang-list a:hover, .lang-list a[aria-current] { color: var(--ink); background: rgba(255,255,255,.06); }

/* Menu : Services dépliable */
.nav-group { display: grid; gap: 8px; }
.nav .nav-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 13px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: none; color: var(--ink); font: inherit; font-size: 17px; cursor: pointer; text-align: left;
}
.nav-toggle[aria-expanded="true"] .chev { transform: rotate(-135deg) translate(-2px, -2px); }
.nav-subs { display: grid; gap: 2px; padding: 0 0 6px 18px; border-left: 1px solid var(--line); margin: 0 0 4px 18px;
  overflow: hidden; max-height: 0; opacity: 0; transition: max-height .4s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.nav-subs.ouvert { max-height: 560px; opacity: 1; }
.nav .nav-subs a.nav-sub { border: 0; padding: 10px 12px; font-size: 15px; color: var(--muted); border-radius: 12px; }
.nav .nav-subs a.nav-sub[aria-current], .nav .nav-subs a.nav-sub:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.nav .nav-subs a.nav-sub-all { color: var(--ink); }
@media (min-width: 980px) {
  .top { display: grid; grid-template-columns: auto 1fr auto; }
  /* Le défilement du tiroir (téléphone) n'a pas lieu d'être ici : sous Windows, la liste Services (cachée mais
     posée sous le menu) faisait apparaître une petite barre de défilement à côté de Contact, et la liste ouverte
     risquait d'être coupée (vu par James le 11/11/2026) */
  .nav { justify-self: center; overflow: visible; }
  .nav-group { position: relative; display: block; }
  .nav .nav-toggle { width: auto; gap: 8px; padding: 10px 16px; border-color: transparent; font-size: 14.5px; }
  .nav .nav-toggle:hover { border-color: var(--line); background: rgba(255,255,255,.04); }
  .nav-subs {
    position: absolute; left: 50%; top: calc(100% + 10px); width: 300px; margin: 0; padding: 8px; border: 1px solid var(--line);
    border-radius: 18px; background: #0f0c1a; box-shadow: 0 24px 60px -24px #000; transform: translate(-50%, -6px);
    max-height: none; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav-subs.ouvert { visibility: visible; transform: translate(-50%, 0); }
  .top-cta { min-height: 42px; padding: 0 18px; font-size: 14px; }
}

/* Flèche de retour en haut */
.to-top {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 25;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(15, 12, 26, .85); border: 1px solid rgba(239, 85, 151, .45); box-shadow: 0 10px 30px -10px rgba(239,85,151,.6);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .35s, transform .35s;
}
.to-top.visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top span { width: 12px; height: 12px; border-left: 2px solid var(--ink); border-top: 2px solid var(--ink); transform: rotate(45deg) translate(2px, 2px); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .to-top { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); } }

/* Pied de page : localisation et suivi rapide */
.foot-line { color: var(--muted); min-height: 30px; display: flex; align-items: center; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1.2fr 1fr .9fr 1fr; } }

/* Contact : l'adresse email en lien discret */
.contact .mail a { text-decoration: none; }

/* ---------- Formulaire « Démarrer un projet » ---------- */
.projet-page { padding: calc(var(--top) + 40px) var(--pad) 90px; min-height: 100svh; }
.projet-tete { max-width: 720px; }
.projet-tete h1 { font-size: clamp(36px, 10vw, 76px); margin: 12px 0 14px; }
.fil-etapes { list-style: none; margin: 34px 0 22px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; max-width: 720px; }
.fil-etapes::before, .fil-etapes::after { content: ""; position: absolute; left: 7px; right: 7px; top: 7px; height: 2px; border-radius: 2px; }
.fil-etapes::before { background: var(--line); }
.fil-etapes::after { background: var(--grad); transform-origin: left; transform: scaleX(var(--avance, 0)); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.fil-etapes li { position: relative; z-index: 1; display: grid; gap: 8px; justify-items: start; }
.fil-etapes li:last-child { justify-items: end; text-align: right; }
.fil-etapes li:not(:first-child):not(:last-child) { justify-items: center; text-align: center; }
.fil-etapes li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid rgba(247,244,250,.3); transition: all .4s; }
.fil-etapes li.fait::before, .fil-etapes li.ici::before { background: var(--ink); border-color: var(--ink); }
.fil-etapes li.ici::before { box-shadow: 0 0 0 5px rgba(239,85,151,.25), 0 0 18px rgba(239,85,151,.8); }
.fe-n { display: none; }
.fe-l { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fil-etapes li.ici .fe-l { color: var(--ink); }
@media (max-width: 400px) { .fe-l { font-size: 9.5px; letter-spacing: .04em; } }

.projet {
  max-width: 720px; padding: 26px 20px; border-radius: 26px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .projet { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); } }
.etape-compte { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.projet:not(.js-form) .etape-compte { display: none; }
.etape { border: 0; margin: 0; padding: 0; min-width: 0; }
.js-form .etape { display: none; }
.js-form .etape.active { display: block; animation: etape-in .55s cubic-bezier(.2,.7,.2,1) both; }
@keyframes etape-in { from { opacity: 0; transform: translateX(22px); } }
.projet:not(.js-form) .etape + .etape { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.etape legend { font-size: clamp(24px, 6.4vw, 34px); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; padding: 0; margin-bottom: 8px; }
.aide, .sous-legende { color: var(--muted); font-size: 14px; margin: 4px 0 14px; }
.sous-legende { margin-top: 22px; color: var(--ink); font-weight: 500; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03); font-size: 15px; transition: background .25s, border-color .25s, transform .2s, box-shadow .25s;
}
.chip:hover span { border-color: rgba(247,244,250,.3); }
.chip input:checked + span { background: rgba(239,85,151,.16); border-color: rgba(239,85,151,.8); box-shadow: 0 0 0 1px rgba(239,85,151,.5), 0 8px 24px -12px rgba(239,85,151,.8); }
.chip input:checked + span::before { content: ""; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 10px rgba(239,85,151,.9); }
.chip input:focus-visible + span { outline: 2px solid var(--coral); outline-offset: 3px; }
.field { display: grid; gap: 8px; margin-top: 18px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: rgba(7,6,12,.6); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 16px; transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: rgba(184,176,200,.55); }
.field input:focus, .field textarea:focus { outline: none; border-color: rgba(239,85,151,.8); box-shadow: 0 0 0 4px rgba(239,85,151,.15); }
[aria-invalid="true"] { border-color: #ff6b81 !important; }
.accord { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; cursor: pointer; font-size: 14px; color: var(--muted); }
.accord input { width: 22px; height: 22px; flex: 0 0 22px; margin: 1px 0 0; accent-color: #ef5597; }
.recap { margin-top: 22px; padding: 16px 18px; border-radius: 18px; border: 1px dashed rgba(239,85,151,.45); background: rgba(239,85,151,.05); }
.recap-titre { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.recap dl { margin: 0; display: grid; gap: 4px 14px; grid-template-columns: max-content 1fr; font-size: 14px; }
.recap dt { color: var(--muted); }
.recap dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-err { min-height: 22px; margin-top: 16px; color: #ff8fa0; font-size: 14px; }
.form-nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 8px; }
.form-nav .btn { flex: 1 1 0; }
.form-nav #f-back[hidden] { display: none; }
.form-nav .btn:disabled { opacity: .6; cursor: progress; }
.secoue { animation: secoue .4s; }
@keyframes secoue { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.projet-fin { max-width: 720px; padding: 40px 0; outline: none; }
.projet-fin h2 { font-size: clamp(30px, 8vw, 56px); }
.projet-fin .sec-lead { margin: 16px 0 28px; }
.projet-fin .chat { justify-content: flex-start; }
@media (min-width: 720px) { .projet { padding: 36px 34px; } .form-nav .btn { flex: 0 0 auto; min-width: 170px; } }
@media (min-width: 980px) { .projet-tete, .fil-etapes, .projet, .projet-fin { max-width: 60%; } }

/* ---------- Écran de chargement : le métier à tisser ---------- */
.boot { display: none; }
html.booting .boot {
  display: block; position: fixed; inset: 0; z-index: 55; background: var(--bg);
  animation: boot-secours .6s 7s forwards; /* au pire, l'écran disparaît seul */
}
html.booting .trame { z-index: 60; }
html.booting body { overflow: hidden; }
.boot-bas { position: absolute; left: 0; right: 0; bottom: calc(9svh + env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: 12px; }
.boot-bas img { width: 40px; height: 40px; opacity: .9; }
.boot-pct { font-size: clamp(54px, 16vw, 96px); font-weight: 300; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.boot-pct small { font-size: .32em; margin-left: 4px; color: var(--muted); letter-spacing: 0; }
.boot-bar { width: min(240px, 60vw); height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.boot-bar i { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(var(--p, 0)); animation: boot-avance 2.4s cubic-bezier(.2,.7,.2,1) forwards; }
html.boot-js .boot-bar i { animation: none; }
@keyframes boot-avance { from { transform: scaleX(0); } to { transform: scaleX(.8); } }
@keyframes boot-secours { to { opacity: 0; visibility: hidden; } }
html.boot-fin .boot { animation: boot-sortie .7s cubic-bezier(.7,0,.3,1) forwards; }
@keyframes boot-sortie { to { opacity: 0; visibility: hidden; } }
html.boot-fin .boot-bas { animation: boot-bas-sortie .5s ease forwards; }
@keyframes boot-bas-sortie { to { opacity: 0; transform: translateY(16px); } }

/* ==========================================================================
   Ajouts du 09/11/2026 (2) : boutons, « Autre », fil d'étapes cliquable, portail
   ========================================================================== */
[hidden] { display: none !important; }

/* Les boutons <button> gardaient la bordure « en relief » du navigateur (claire en haut, sombre en bas) */
button.btn { font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
button.btn-main { border: 0; }

/* Champ « Précisez » sous « Autre » */
.field-autre { margin-top: 14px; animation: etape-in .4s cubic-bezier(.2,.7,.2,1) both; }

/* Fil d'étapes : les étapes déjà atteintes se rouvrent d'un toucher */
.fe-btn { background: none; border: 0; padding: 4px 0; margin: -4px 0; color: inherit; font: inherit; cursor: default; }
.fil-etapes li.cliquable { cursor: pointer; }
.fil-etapes li.cliquable .fe-btn { cursor: pointer; }
.fil-etapes li.cliquable:hover::before { box-shadow: 0 0 0 5px rgba(239,85,151,.18); }
.fil-etapes li.cliquable:hover .fe-l { color: var(--ink); }
.fil-etapes li { padding-bottom: 6px; }

/* Portail vers le formulaire : le bouton touché aspire la page, le formulaire s'ouvre en cercle depuis ce point.
   Par précédent ou suivant, le cercle part du bouton « Démarrer un projet » de l'en-tête.
   Le halo du bouton est un calque à part dont seule l'opacité change (une ombre animée se redessine à chaque image) */
.portail-depart { animation: portail-depart .55s cubic-bezier(.7, 0, .3, 1) forwards; position: relative; z-index: 2; }
.portail-depart::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 6px rgba(239,85,151,.35), 0 0 70px rgba(239,85,151,.95); animation: portail-halo .55s ease forwards;
}
@keyframes portail-depart { 45% { transform: scale(1.1); } 100% { transform: scale(.15); opacity: 0; } }
@keyframes portail-halo { 40%, 100% { opacity: 1; } }
html.portail::view-transition-old(root) { animation: portail-old .5s cubic-bezier(.7, 0, .3, 1) both; transform-origin: var(--vx) var(--vy); }
html.portail::view-transition-new(root) { animation: portail-new 1s cubic-bezier(.62, 0, .22, 1) both; }
html.portail::view-transition-group(entete) { animation-duration: .8s; }
@keyframes portail-old { to { transform: scale(.55); opacity: 0; } }
@keyframes portail-new { from { clip-path: circle(0 at var(--vx) var(--vy)); } to { clip-path: circle(150vmax at var(--vx) var(--vy)); } }
@property --r { syntax: "<length>"; inherits: false; initial-value: 0px; }
/* L'anneau lumineux se redessine à chaque image : réservé aux écrans à souris (ordinateurs) */
@media (pointer: fine) {
html.portail.anneau-go body::after {
  /* un anneau d'épaisseur constante : seul son rayon --r grandit, au même rythme que l'ouverture en cercle */
  content: ""; position: fixed; inset: 0; z-index: 70; pointer-events: none;
  background: radial-gradient(circle at var(--vx) var(--vy),
    transparent calc(var(--r) - 46px), rgba(138, 111, 208, .18) calc(var(--r) - 30px), rgba(239, 85, 151, .55) calc(var(--r) - 8px),
    #f7f4fa calc(var(--r) - 2.5px), #f7f4fa var(--r), rgba(239, 85, 151, .8) calc(var(--r) + 3px), transparent calc(var(--r) + 34px));
  animation: portail-anneau 1s cubic-bezier(.62, 0, .22, 1) both;
}
}
@keyframes portail-anneau { from { --r: 0px; opacity: 1; } 85% { opacity: 1; } to { --r: 150vmax; opacity: 0; } }
/* Une fois les fils aspirés, la page s'éteint : si la suivante tarde à arriver (réseau du téléphone), l'écran reste
   noir avec le point lumineux, au lieu d'une page figée */
html.sortie-portail main, html.sortie-portail .foot, html.sortie-portail .after-simple { opacity: 0; transition: opacity .22s ease-in; }
@media (prefers-reduced-motion: reduce) { html.portail.anneau-go body::after { display: none; } .portail-depart { animation: none; } }
/* Anti-robot du formulaire : l'encadré n'apparaît que si Cloudflare demande une vérification visible */
.ts { margin-top: 16px; }
.ts:empty { margin: 0; }

/* Page logo : la figure du haut change au toucher */
.hero[data-cycle] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
