/* Vitrail — charte v2 : verre dichroïque sur fond de nuit */
:root {
  --nuit: #0A0C11;
  --ardoise: #141823;
  --ardoise-2: #1C2130;
  --givre: #EEF1F6;
  --brume: #8C93A3;
  --cobalt: #3E63FF;
  --fuchsia: #FF4F8B;
  --ambre: #FFB52E;
  --menthe: #46E0B6;
  --violet: #7A46E6;
  --dichro: linear-gradient(100deg, var(--cobalt), var(--violet) 30%, var(--fuchsia) 55%, var(--ambre) 80%, var(--menthe));

  --f-display: "Gloock", Georgia, serif;
  --f-body: "Schibsted Grotesk", system-ui, sans-serif;
  --f-mono: "Spline Sans Mono", ui-monospace, monospace;

  --r: 18px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--nuit); color: var(--givre);
  font: 400 17px/1.6 var(--f-body); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--fuchsia); color: var(--nuit); }
:focus-visible { outline: 2px solid var(--ambre); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font: 500 12.5px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brume); }
.dichro { background: var(--dichro); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Marque ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.wordmark { font: 400 28px/1 var(--f-display); letter-spacing: -.01em; }
.wordmark .i { position: relative; display: inline-block; }
.wordmark .i::after {
  content: ""; position: absolute; left: 50%; top: -.04em; width: .19em; height: .19em;
  border-radius: 1px; transform: translateX(-50%) rotate(45deg); background: var(--ambre);
}
.wordmark .i:nth-of-type(2)::after { background: var(--fuchsia); }

/* ---------- Boutons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 15.5px/1 var(--f-body); text-decoration: none;
  background: var(--givre); color: var(--nuit);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(255, 79, 139, .55), 0 6px 24px -10px rgba(62, 99, 255, .7); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-glass {
  background: rgba(238, 241, 246, .06); color: var(--givre);
  box-shadow: inset 0 0 0 1px rgba(238, 241, 246, .18);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.btn-glass:hover { box-shadow: inset 0 0 0 1px rgba(238, 241, 246, .4); }

/* ---------- En-tête ---------- */
.top { position: fixed; inset: 14px 0 auto; z-index: 50; pointer-events: none; }
.top .bar {
  pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  max-width: calc(var(--wrap) - 2 * var(--gutter) + 32px); margin: 0 auto; padding: 9px 9px 9px 18px;
  border-radius: 999px; transition: background .4s, box-shadow .4s;
}
.top.scrolled .bar {
  background: rgba(16, 19, 27, .62); box-shadow: inset 0 0 0 1px rgba(238, 241, 246, .1), 0 20px 40px -20px #000;
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
}
.top nav { display: flex; align-items: center; gap: 28px; }
.top nav a:not(.btn) { text-decoration: none; font-size: 15px; color: #C9CEDA; }
.top nav a:not(.btn):hover { color: var(--givre); }
.top .btn { padding: 11px 18px; font-size: 14.5px; }
@media (max-width: 1290px) { .top { inset-inline: var(--gutter); } }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 660px; max-height: 1100px; overflow: hidden; isolation: isolate; }
.hero canvas.gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; transition: opacity 1.2s ease; }
.hero.gl-ready canvas.gl { opacity: 1; }
.hero::before { /* fond de secours, visible tant que le WebGL n'a pas démarré */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(40% 50% at 78% 45%, rgba(62, 99, 255, .28), transparent 70%),
    radial-gradient(30% 40% at 62% 70%, rgba(255, 79, 139, .2), transparent 70%),
    var(--nuit);
}
.hero .hero-main { height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: 70px; }
.hero h1 {
  font: 400 clamp(52px, 7.8vw, 124px)/.94 var(--f-display); letter-spacing: -.03em;
  margin: 18px 0 30px; max-width: 7.2em;
}
.hero h1 em { font-style: normal; background: var(--dichro); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 { transition: opacity 1s ease; }
.hero.gl-ready h1 { opacity: 0; } /* dessiné dans la scène 3D, derrière le verre */
.hero .lead { font-size: 19px; line-height: 1.55; color: #C3C9D6; max-width: 31em; margin: 0 0 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-foot {
  position: absolute; left: 0; right: 0; bottom: 26px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--brume); }
.facts li { display: flex; align-items: center; gap: 9px; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 1px; transform: rotate(45deg); background: var(--menthe); }
.scroll-hint { display: flex; align-items: center; gap: 10px; }
.scroll-hint i { width: 1px; height: 34px; background: linear-gradient(var(--givre), transparent); animation: hint 2s var(--ease) infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.reveal-in > * { animation: monte 1s var(--ease) both; }
.reveal-in > *:nth-child(2) { animation-delay: .1s; }
.reveal-in > *:nth-child(3) { animation-delay: .2s; }
.reveal-in > *:nth-child(4) { animation-delay: .3s; }
@keyframes monte { from { opacity: 0; transform: translateY(24px); } }

/* ---------- Bandeau défilant ---------- */
.ticker { border-block: 1px solid rgba(238, 241, 246, .08); overflow: hidden; padding: 26px 0; background: #0C0E14; }
.ticker-track { display: flex; width: max-content; animation: defile 38s linear infinite; }
.ticker span { font: 400 clamp(34px, 4.6vw, 64px)/1 var(--f-display); letter-spacing: -.02em; white-space: nowrap; padding-right: .6em; display: flex; align-items: center; gap: .6em; }
.ticker span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px rgba(238, 241, 246, .45); }
.ticker span::after { content: ""; width: .28em; height: .28em; border-radius: 3px; transform: rotate(45deg); background: var(--c, var(--ambre)); }
.ticker span:nth-child(4n+1) { --c: var(--cobalt); }
.ticker span:nth-child(4n+2) { --c: var(--fuchsia); }
.ticker span:nth-child(4n+3) { --c: var(--ambre); }
.ticker span:nth-child(4n) { --c: var(--menthe); }
@keyframes defile { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section.s { padding: clamp(90px, 12vw, 160px) 0; position: relative; }
.head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px 60px; align-items: end; margin-bottom: 64px; }
.head .mono { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
.head .mono::before { content: ""; width: 28px; height: 1px; background: currentColor; }
h2 { font: 400 clamp(42px, 5.8vw, 84px)/.98 var(--f-display); letter-spacing: -.03em; margin: 0; }
.head p { margin: 0; color: #B4BBC9; font-size: 18px; max-width: 32em; }
h3 { font: 600 22px/1.25 var(--f-body); letter-spacing: -.015em; margin: 0 0 10px; }

/* Services : cartes de verre au-dessus de taches de lumière */
.services { overflow: hidden; }
.blobs { position: absolute; inset: 0; z-index: 0; pointer-events: none; filter: blur(60px); opacity: .55; }
.blobs i { position: absolute; border-radius: 50%; animation: flotte 18s ease-in-out infinite alternate; }
.blobs i:nth-child(1) { width: 40vw; height: 40vw; left: -6vw; top: 22%; background: var(--cobalt); }
.blobs i:nth-child(2) { width: 30vw; height: 30vw; right: -4vw; top: 10%; background: var(--fuchsia); animation-delay: -6s; }
.blobs i:nth-child(3) { width: 26vw; height: 26vw; left: 40%; bottom: -4%; background: var(--ambre); opacity: .7; animation-delay: -12s; }
@keyframes flotte { to { transform: translate(6vw, -4vw) scale(1.15); } }
.services .wrap { position: relative; z-index: 1; }
.cards { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; grid-column: span 6; min-height: 330px; padding: 34px; border-radius: var(--r);
  display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(160deg, rgba(238, 241, 246, .09), rgba(238, 241, 246, .03));
  box-shadow: inset 0 0 0 1px rgba(238, 241, 246, .12), inset 0 1px 0 rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(26px) saturate(1.5); backdrop-filter: blur(26px) saturate(1.5);
}
.card:nth-child(1), .card:nth-child(4) { grid-column: span 7; }
.card:nth-child(2), .card:nth-child(3) { grid-column: span 5; }
.card::before { /* reflet qui suit le pointeur */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .14), transparent 45%);
}
.card::after { /* liseré irisé au survol */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(360px circle at var(--mx) var(--my), var(--ambre), var(--fuchsia) 30%, var(--cobalt) 60%, transparent 80%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card .glyph { width: 58px; height: 58px; margin-bottom: auto; }
.card h3 { font: 400 clamp(30px, 3vw, 40px)/1.05 var(--f-display); letter-spacing: -.02em; margin: 40px 0 12px; }
.card p { margin: 0 0 20px; color: #BAC1CE; max-width: 34em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags li { font-size: 13.5px; padding: 5px 12px; border-radius: 99px; background: rgba(238, 241, 246, .07); color: #D5DAE4; }

/* Méthode : les pièces s'assemblent au défilement */
.methode .stage { height: 360vh; position: relative; }
.methode .pin { position: sticky; top: 0; height: 100svh; display: grid; align-items: center; overflow: hidden; }
.methode .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.assemble { position: relative; aspect-ratio: 1; width: min(100%, 520px); justify-self: center; }
.assemble .piece { position: absolute; will-change: transform, opacity; }
.assemble svg { width: 100%; height: 100%; overflow: visible; }
.assemble .halo { position: absolute; inset: 8%; border-radius: 50%; filter: blur(50px); background: conic-gradient(from 0deg, var(--cobalt), var(--fuchsia), var(--ambre), var(--menthe), var(--cobalt)); opacity: 0; transition: opacity .6s; }
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 0 12px; padding: 18px 0; border-top: 1px solid rgba(238, 241, 246, .1); opacity: .3; transition: opacity .5s var(--ease); }
.steps li.on { opacity: 1; }
.steps .n { font: 400 30px/1 var(--f-display); }
.steps li.on .n { background: var(--dichro); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps h3 { margin: 2px 0 6px; font-size: 20px; }
.steps h3 small { font: 500 11.5px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brume); margin-left: 8px; }
.steps p { margin: 0; color: #B4BBC9; font-size: 16px; max-width: 30em; }

/* Tarifs */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price {
  position: relative; border-radius: var(--r); padding: 34px 30px 30px; display: flex; flex-direction: column;
  background: var(--ardoise); box-shadow: inset 0 0 0 1px rgba(238, 241, 246, .08);
}
.price .tint { width: 30px; height: 30px; border-radius: 7px; transform: rotate(45deg); background: var(--c); box-shadow: 0 0 40px 2px var(--c); margin: 6px 0 30px 6px; }
.price h3 { font-size: 19px; }
.price .amount { font: 400 64px/1 var(--f-display); letter-spacing: -.03em; margin: 18px 0 6px; }
.price .amount small { font: 500 14px var(--f-body); color: var(--brume); letter-spacing: 0; margin-right: 8px; vertical-align: .9em; }
.price .unit { color: var(--brume); font-size: 14.5px; margin: 0 0 26px; }
.price ul { margin: auto 0 0; padding: 22px 0 0; border-top: 1px solid rgba(238, 241, 246, .08); list-style: none; display: grid; gap: 10px; font-size: 15.5px; color: #D0D5DF; }
.price li { display: flex; gap: 12px; }
.price li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .62em; border-radius: 1px; transform: rotate(45deg); background: var(--c); }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.price.feat {
  border: 1.5px solid transparent;
  background: linear-gradient(var(--ardoise-2), var(--ardoise-2)) padding-box,
    conic-gradient(from var(--a), var(--cobalt), var(--fuchsia), var(--ambre), var(--menthe), var(--cobalt)) border-box;
  box-shadow: 0 40px 80px -40px rgba(255, 79, 139, .45);
  animation: tourne 8s linear infinite;
}
@keyframes tourne { to { --a: 360deg; } }
.price .badge { position: absolute; top: 20px; right: 20px; font: 500 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 99px; background: rgba(238, 241, 246, .08); }

.suivi { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: space-between; padding: 26px 30px; border-radius: var(--r); background: rgba(238, 241, 246, .04); box-shadow: inset 0 0 0 1px rgba(238, 241, 246, .08); }
.suivi p { margin: 0; max-width: 50em; color: #B4BBC9; }
.suivi strong { color: var(--givre); }

.compris { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; margin: 80px 0 0; padding: 0; list-style: none; }
.compris li { border-top: 1px solid rgba(238, 241, 246, .14); padding-top: 18px; }
.compris b { display: block; font: 400 22px/1.15 var(--f-display); margin-bottom: 8px; }
.compris span { font-size: 14.5px; color: var(--brume); line-height: 1.5; display: block; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; }
.faq details { border-top: 1px solid rgba(238, 241, 246, .12); }
.faq details:last-child { border-bottom: 1px solid rgba(238, 241, 246, .12); }
.faq summary { cursor: pointer; list-style: none; padding: 26px 50px 26px 0; font: 400 clamp(21px, 2vw, 26px)/1.25 var(--f-display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 1.5px; background: var(--givre); transition: transform .35s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { margin: -8px 0 28px; color: #B4BBC9; max-width: 40em; }

/* Contact */
.contact { overflow: hidden; }
.contact .aura {
  position: absolute; left: 50%; top: 55%; width: min(1100px, 140vw); aspect-ratio: 1.6; translate: -50% -50%;
  z-index: 0; pointer-events: none; filter: blur(80px); opacity: .45; border-radius: 50%;
  background: conic-gradient(from 90deg, var(--cobalt), var(--violet), var(--fuchsia), var(--ambre), var(--menthe), var(--cobalt));
  animation: tourne-aura 30s linear infinite;
}
@keyframes tourne-aura { to { rotate: 360deg; } }
.contact .wrap { position: relative; z-index: 1; }
.contact .mono { text-align: center; margin: 0 0 18px; }
.contact h2 { font-size: clamp(52px, 9vw, 140px); text-align: center; margin-bottom: 22px; }
.contact .intro { text-align: center; color: #D0D5DF; max-width: 34em; margin: 0 auto 56px; font-size: 18px; }
.panel {
  max-width: 860px; margin: 0 auto; padding: 36px; border-radius: 26px;
  background: rgba(14, 17, 24, .55); box-shadow: inset 0 0 0 1px rgba(238, 241, 246, .14), inset 0 1px 0 rgba(255, 255, 255, .2), 0 50px 100px -40px #000;
  -webkit-backdrop-filter: blur(30px) saturate(1.4); backdrop-filter: blur(30px) saturate(1.4);
}
form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; color: #C9CEDA; }
label.full { grid-column: 1 / -1; }
input, select, textarea {
  font: 400 16px/1.4 var(--f-body); color: var(--givre); width: 100%;
  background-color: rgba(10, 12, 17, .6); border: 1px solid rgba(238, 241, 246, .14); border-radius: 12px; padding: 14px 15px;
  transition: border-color .2s, box-shadow .2s;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--brume) 50%), linear-gradient(135deg, var(--brume) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
select option { background: var(--ardoise); }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--fuchsia); box-shadow: 0 0 0 4px rgba(255, 79, 139, .15); }
.form-end { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form-note { margin: 0; font-size: 14.5px; color: var(--brume); }
.form-note a { color: var(--givre); }

/* Pied de page */
footer { position: relative; overflow: hidden; padding: 56px 0 0; border-top: 1px solid rgba(238, 241, 246, .08); }
footer .row { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between; font-size: 14.5px; color: var(--brume); }
footer nav { display: flex; gap: 24px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--givre); }
.giant {
  font: 400 clamp(120px, 29vw, 440px)/.74 var(--f-display); letter-spacing: -.05em; text-align: center; margin: 48px 0 0;
  background: linear-gradient(180deg, rgba(238, 241, 246, .16), rgba(238, 241, 246, 0) 88%); -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}

/* Apparition au défilement */
.rv { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.vu { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  .methode .stage { height: auto; }
  .methode .pin { position: static; height: auto; padding: 120px 0; }
  .steps li { opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .compris { grid-template-columns: repeat(3, 1fr); }
  .prices { grid-template-columns: 1fr 1fr; }
  .prices .price:last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .top nav a:not(.btn) { display: none; }
  .head, .faq-grid { grid-template-columns: 1fr; }
  .card, .card:nth-child(n) { grid-column: 1 / -1; min-height: 0; }
  .methode .grid { grid-template-columns: 1fr; gap: 0; }
  .assemble { width: min(50vw, 280px); }
  .steps { margin-top: 10px; }
  .steps li { padding: 12px 0; }
  .steps p { font-size: 15px; }
  .methode h2 { font-size: 40px; }
  .scroll-hint { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .top { inset-block-start: 10px; }
  .top .bar { padding: 7px 7px 7px 12px; }
  .brand img { width: 30px; height: 30px; }
  .wordmark { font-size: 25px; }
  .hero .lead { font-size: 17px; margin-bottom: 26px; }
  .hero-foot { bottom: 16px; }
  .facts { font-size: 13px; }
  .card { padding: 26px 22px; }
  .card h3 { margin-top: 26px; }
  .prices { grid-template-columns: 1fr; }
  .compris { grid-template-columns: 1fr 1fr; }
  form { grid-template-columns: 1fr; }
  .panel { padding: 22px 18px; }
  .methode .stage { height: 300vh; }
  .assemble { width: min(40vw, 170px); }
  .steps h3 small { display: none; }
  .steps p { display: none; }
  .steps li.on p { display: block; }
}
