:root {
  --bg: #06080c;
  --bg-2: #0b0f16;
  --text: #eef2f6;
  --muted: #94a0b0;
  --line: rgba(255, 255, 255, .09);
  --amber: #ffb347;
  --amber-2: #ff8a3d;
  --ice: #7fd8ff;
  --card: rgba(12, 16, 23, .62);
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--amber); color: #111; }
a { color: inherit; }

/* ---------- Scène 3D ---------- */
#scene {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  display: block;
  z-index: 0;
}
.veil {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 0%, transparent 55%, rgba(6, 8, 12, .55) 100%),
    linear-gradient(to bottom, rgba(6, 8, 12, .35), transparent 22%, transparent 78%, rgba(6, 8, 12, .6));
}
.no-webgl body, body.no-webgl {
  background:
    radial-gradient(60% 50% at 75% 30%, rgba(255, 179, 71, .16), transparent 70%),
    radial-gradient(50% 45% at 20% 70%, rgba(127, 216, 255, .12), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; gap: 28px;
  padding: 16px var(--gutter);
  background: linear-gradient(to bottom, rgba(6, 8, 12, .85), rgba(6, 8, 12, 0));
  transition: background .3s, backdrop-filter .3s;
}
.nav.scrolled {
  background: rgba(6, 8, 12, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: inline-flex; align-items: center; gap: 4px; }
.brand-mark i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); display: block; }
.brand-mark i.dash { width: 18px; border-radius: 3px; }
.brand-name { font-weight: 700; letter-spacing: .02em; font-size: 1.05rem; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-size: .92rem;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text); }

.lang {
  appearance: none; -webkit-appearance: none;
  max-width: 150px; padding: 8px 30px 8px 14px;
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2394a0b0' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--text); font: inherit; font-size: .88rem; cursor: pointer; text-overflow: ellipsis;
}
.lang:hover { border-color: rgba(255, 255, 255, .25); }
.lang option { background: #0b0f16; color: var(--text); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--amber);
  color: #14100a;
  font-weight: 650; font-size: 1rem; text-decoration: none;
  border: 1px solid transparent;
  box-shadow: 0 0 0 0 rgba(255, 179, 71, .0), 0 10px 40px -12px rgba(255, 179, 71, .7);
  transition: transform .2s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); background: #ffc267; box-shadow: 0 14px 50px -10px rgba(255, 179, 71, .9); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
.btn-small { padding: 9px 18px; font-size: .9rem; box-shadow: none; }
.btn-large { padding: 18px 34px; font-size: 1.15rem; }
.btn-block { display: flex; width: 100%; margin-top: 26px; }
.btn-ghost {
  background: rgba(255, 255, 255, .04); color: var(--text);
  border-color: var(--line); box-shadow: none;
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .09); box-shadow: none; }

/* ---------- Sections ---------- */
main { position: relative; z-index: 2; }
.panel {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--gutter) 90px;
}
.panel[data-side="right"] { align-items: flex-start; }
.panel[data-side="left"] { align-items: flex-end; }
.panel[data-side="center"] { align-items: center; }
.copy { width: min(100%, 580px); }
.copy.center { text-align: center; width: min(100%, 760px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 22px;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--amber);
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 0 0 rgba(255, 179, 71, .7);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 179, 71, .7); }
  70% { box-shadow: 0 0 0 12px rgba(255, 179, 71, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 179, 71, 0); }
}

h1, h2, h3 { margin: 0; font-weight: 750; letter-spacing: -.03em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 6.6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--amber) 10%, #ffe2b0 50%, var(--ice) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin: 26px 0 0; font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: #c3ccd8; max-width: 54ch; }
.copy.center .lead { margin-left: auto; margin-right: auto; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.actions.center { justify-content: center; }

.morse { margin: 44px 0 0; display: flex; align-items: center; flex-wrap: nowrap; overflow: hidden; height: 8px; }
.morse.small { margin: 0; opacity: .7; }
.morse i, .glyph i { display: block; flex: none; height: 5px; border-radius: 3px; background: var(--amber); margin-right: 5px; opacity: .6; }
.morse i.do, .glyph i.do { width: 5px; }
.morse i.da, .glyph i.da { width: 17px; }
.morse i.gp, .glyph i.gp { width: 9px; background: none; }
.morse i.sp { width: 22px; background: none; }
.morse i:nth-child(4n+1) { animation: blink 3.2s infinite; }
.morse i:nth-child(4n+3) { animation: blink 3.2s 1.6s infinite; }
@keyframes blink { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

.points { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 14px; }
.points li {
  position: relative; padding: 0 0 0 30px; color: var(--muted); font-size: .98rem;
}
.points li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: 16px; height: 2px; background: var(--amber); border-radius: 2px;
}
.points strong { color: var(--text); font-weight: 600; }

/* Indice de défilement */
.scroll-hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 14px;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--amber);
  animation: wheel 1.8s infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Grille ---------- */
.wide { gap: 54px; }
.grid {
  width: min(100%, 1120px);
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card {
  padding: 28px 26px 30px;
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--card);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .25s, border-color .25s, background .25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 179, 71, .45); background: rgba(16, 21, 30, .75); }
.glyph { display: flex; align-items: center; height: 1.6em; }
.glyph i { opacity: 1; }
.card h3 { margin-top: 14px; font-size: 1.18rem; letter-spacing: -.01em; line-height: 1.25; }
.card p { margin: 10px 0 0; color: var(--muted); font-size: .96rem; }

/* ---------- Tarif ---------- */
.price-card {
  margin-top: 34px; padding: 34px 32px;
  border-radius: 22px;
  border: 1px solid rgba(255, 179, 71, .35);
  background: linear-gradient(160deg, rgba(255, 179, 71, .10), rgba(12, 16, 23, .7) 45%);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 90px -40px rgba(255, 179, 71, .55);
}
.price { display: flex; align-items: flex-end; gap: 16px; margin: 0; }
.amount { font-size: clamp(4rem, 9vw, 6.4rem); font-weight: 800; letter-spacing: -.05em; line-height: .9; color: var(--amber); }
.unit { color: var(--muted); font-size: .98rem; line-height: 1.35; padding-bottom: .5em; }
.tagline { margin: 18px 0 0; font-size: 1.12rem; color: var(--text); }
.included { list-style: none; margin: 24px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.included li { position: relative; padding-left: 28px; color: #c3ccd8; font-size: .97rem; }
.included li::before {
  content: ""; position: absolute; left: 2px; top: .42em; width: 12px; height: 6px;
  border-left: 2px solid var(--amber); border-bottom: 2px solid var(--amber);
  transform: rotate(-45deg);
}

/* ---------- Questions ---------- */
.faq { width: min(100%, 760px); display: grid; gap: 10px; }
.faq details {
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--card);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: border-color .2s;
}
.faq details[open] { border-color: rgba(255, 179, 71, .4); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 20px 56px 20px 24px; position: relative;
  font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 1.4rem; color: var(--amber); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--muted); }

/* ---------- Formulaire ---------- */
.final { gap: 40px; }
.contact {
  width: min(100%, 640px); display: grid; gap: 16px;
  padding: 30px 28px; border-radius: 22px;
  border: 1px solid var(--line); background: var(--card);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.contact .row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; font-size: .88rem; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(6, 8, 12, .6);
  color: var(--text); font: inherit; font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255, 179, 71, .18); }
.field input::placeholder { color: #5f6b7a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact .btn { margin-top: 6px; border: 0; cursor: pointer; font-family: inherit; }
.contact .btn:disabled { opacity: .6; cursor: wait; transform: none; }
.form-status { margin: 0; min-height: 1.5em; text-align: center; font-size: .95rem; color: var(--muted); }
.form-status.good { color: #7fe0a3; }
.form-status.bad { color: #ff8f80; }
.contact .fine { margin: 0; text-align: center; font-family: var(--sans); letter-spacing: 0; font-size: .84rem; }

/* ---------- Final ---------- */
.final h2 { font-size: clamp(2.3rem, 6vw, 4.6rem); }
.fine { margin: 22px 0 0; color: var(--muted); font-size: .9rem; font-family: var(--mono); letter-spacing: .06em; }

.footer {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 30px;
  padding: 28px var(--gutter);
  border-top: 1px solid var(--line);
  background: rgba(6, 8, 12, .8);
  color: var(--muted); font-size: .88rem;
}
.footer .brand-name { color: var(--text); }

/* ---------- Apparitions ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.hero .copy > * { opacity: 0; transform: translateY(22px); animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; }
.hero .copy > *:nth-child(1) { animation-delay: .15s; }
.hero .copy > *:nth-child(2) { animation-delay: .28s; }
.hero .copy > *:nth-child(3) { animation-delay: .44s; }
.hero .copy > *:nth-child(4) { animation-delay: .58s; }
.hero .copy > *:nth-child(5) { animation-delay: .8s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Petits écrans ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav { gap: 10px; }
  .lang { margin-left: auto; max-width: 104px; }
  .contact .row { grid-template-columns: 1fr; }
  .contact { padding: 24px 18px; }
  .panel, .panel[data-side="left"], .panel[data-side="right"] { align-items: flex-start; }
  .panel { padding: 110px var(--gutter) 80px; }
  .grid { grid-template-columns: 1fr; }
  .copy { text-shadow: 0 2px 24px rgba(6, 8, 12, .9); }
  .veil { background: linear-gradient(to bottom, rgba(6, 8, 12, .55), rgba(6, 8, 12, .35) 40%, rgba(6, 8, 12, .6)); }
  .price-card { padding: 28px 22px; }
}
@media (max-width: 480px) {
  .brand-name { display: none; }
  .footer .brand-name { display: inline; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .nav-links { gap: 18px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero .copy > * { opacity: 1; transform: none; animation: none; transition: none; }
  .pulse, .scroll-hint span, .morse i { animation: none; }
}
