/* ==========================================================================
   PatternCAD V2 — Site public, présentation produit et tarification.
   Charte graphique : Dark CAD, accent Mint #00E5A8, Bricolage Grotesque & JetBrains Mono.
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #0a0e0d;
  --bg2: #121715;
  --bg3: #171f1b;
  --bg4: #1e2824;
  --line: rgba(255, 255, 255, 0.08);
  --line2: rgba(255, 255, 255, 0.15);
  --line-mint: rgba(0, 229, 168, 0.22);

  --text: #e8efec;
  --muted: #94a39e;
  --dim: #5c6c67;

  --mint: #00E5A8;
  --mint-light: #2af0bb;
  --mint-glow: rgba(0, 229, 168, 0.35);
  --teal: #38d3c5;
  --amber: #ff9f43;
  --amber-light: #ffbf7a;
  --blue: #5aa2ff;
  --green: #5fd38a;
  --red: #ff6b6b;
  --yellow: #ffd166;

  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow2: 0 30px 80px rgba(0, 0, 0, 0.65);
  --glow-mint: 0 0 25px rgba(0, 229, 168, 0.25);

  --font: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(0, 229, 168, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 168, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  color: var(--text);
  font: 15.5px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--mint); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--mint-light); text-decoration: underline; }

img, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--mint); color: #04100c; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 6px; border: 2px solid var(--bg); }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mint { color: var(--mint); }
.amber { color: var(--amber); }
.mono { font-family: var(--mono); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.hidden, [hidden] { display: none !important; }

kbd {
  font: 11.5px var(--mono);
  background: var(--bg4);
  border: 1px solid var(--line2);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--mint);
}

/* ---- Boutons & Éléments UI ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--bg3);
  border: 1px solid var(--line2);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none !important;
  white-space: nowrap;
}
.btn:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  border-color: var(--line-mint);
}
.btn:active { transform: translateY(0); }

.btn.primary {
  background: linear-gradient(180deg, #2af0bb, var(--mint));
  border-color: transparent;
  color: #04100c;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 229, 168, 0.28);
}
.btn.primary:hover {
  background: linear-gradient(180deg, #44f6c4, #12ecb2);
  box-shadow: 0 8px 26px rgba(0, 229, 168, 0.42);
}

.btn.ghost { background: transparent; border-color: var(--line); }
.btn.ghost:hover { background: var(--bg3); border-color: var(--line2); }

.btn.laser {
  background: linear-gradient(180deg, #ffb060, var(--amber));
  border-color: transparent;
  color: #1a1005;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(255, 159, 67, 0.3);
}

.btn.small { padding: 6px 13px; font-size: 13px; border-radius: 8px; }
.btn.big { padding: 14px 28px; font-size: 1.05rem; border-radius: 12px; }
.btn.icon { padding: 8px 11px; }

/* ---- Pills & Badges ----------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg3);
  border: 1px solid var(--line2);
  color: var(--muted);
}
.pill.accent {
  background: rgba(0, 229, 168, 0.12);
  color: var(--mint);
  border-color: rgba(0, 229, 168, 0.35);
}
.pill.laser {
  background: rgba(255, 159, 67, 0.14);
  color: var(--amber-light);
  border-color: rgba(255, 159, 67, 0.38);
}
.pill.blue {
  background: rgba(90, 162, 255, 0.14);
  color: var(--blue);
  border-color: rgba(90, 162, 255, 0.35);
}
.pill.green {
  background: rgba(95, 211, 138, 0.14);
  color: var(--green);
  border-color: rgba(95, 211, 138, 0.35);
}

/* ---- Navigation supérieure ----------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 13, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  font-size: 1.15rem;
  text-decoration: none !important;
  white-space: nowrap;
}
.brand .mark {
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--mint);
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 4px;
}
.brand .mark::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--mint);
  opacity: 0.5;
}
.brand .mark::after {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--mint);
}
.brand .v2-badge {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(0, 229, 168, 0.18);
  color: var(--mint);
  border: 1px solid rgba(0, 229, 168, 0.35);
  padding: 1px 6px;
  border-radius: 5px;
  margin-left: 2px;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: 12px;
}
.nav-links a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  transition: all 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--bg3);
  color: var(--text);
  text-decoration: none;
}
.nav-links a.active {
  color: var(--mint);
  border: 1px solid var(--line-mint);
}

.nav .spacer { flex: 1; }

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Switcher de langue */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line2);
  border-radius: 8px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 11.5px;
  background: var(--bg2);
}
.lang-switch button {
  background: transparent;
  border: none;
  color: var(--dim);
  padding: 5px 10px;
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: all 0.15s;
}
.lang-switch button.active {
  background: var(--mint);
  color: #04100c;
  font-weight: 700;
}
.lang-switch button:not(.active):hover { color: var(--text); }

.nav-burger { display: none; }

@media (max-width: 1020px) {
  .nav-links { display: none; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg2);
    padding: 14px 20px 18px;
    border-bottom: 1px solid var(--line2);
    gap: 6px;
  }
  .nav-burger { display: inline-flex; }
}
@media (max-width: 680px) {
  .nav .wrap { gap: 8px; }
  .nav-actions .btn.ghost { display: none !important; }
  .nav-actions .btn { padding: 8px 13px; font-size: 13.5px; }
}

/* ---- Sections ------------------------------------------------------------ */
.section { padding: 90px 0; position: relative; }
.section.tight { padding: 50px 0; }
.section.alt {
  background: linear-gradient(180deg, var(--bg2), var(--bg));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head { max-width: 740px; margin-bottom: 44px; }
.section-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--mint);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head .eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--mint);
  border-radius: 2px;
}
.section-head p { color: var(--muted); font-size: 1.12rem; line-height: 1.6; }

.grid { display: grid; gap: 22px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) { .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}

.card {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card:hover {
  border-color: var(--line-mint);
  transform: translateY(-2px);
}
.card h3 { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.card .ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: rgba(0, 229, 168, 0.12);
  color: var(--mint);
  flex: none;
}
.card .ic.laser {
  background: rgba(255, 159, 67, 0.15);
  color: var(--amber);
}
.card p { color: var(--muted); margin: 0; font-size: 14.5px; }

/* ---- Section Hero -------------------------------------------------------- */
.hero {
  padding: 80px 0 46px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -15% -10% auto;
  height: 75%;
  background:
    radial-gradient(55% 55% at 30% 25%, rgba(0, 229, 168, 0.14), transparent 70%),
    radial-gradient(45% 45% at 75% 20%, rgba(255, 159, 67, 0.10), transparent 70%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
@media (max-width: 980px) { .hero .wrap { grid-template-columns: 1fr; gap: 36px; } }

.hero h1 { margin-bottom: 20px; }
.hero h1 .grad {
  background: linear-gradient(90deg, #2af0bb, var(--mint) 45%, var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.65;
}
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 16px; }
.hero .fine { color: var(--dim); font-size: 13.5px; }
.hero .badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }

/* Fenêtre d'application (Mac-style CAD window) */
.window {
  background: #090c0b;
  border: 1px solid var(--line2);
  border-radius: 14px;
  box-shadow: var(--shadow2);
  overflow: hidden;
  position: relative;
}
.window .bar {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  background: linear-gradient(180deg, #17201c, #111815);
  border-bottom: 1px solid var(--line);
}
.window .bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.window .bar i:nth-child(1) { background: #ff5f57; }
.window .bar i:nth-child(2) { background: #febc2e; }
.window .bar i:nth-child(3) { background: #28c840; }
.window .bar .url {
  margin-left: 10px;
  font: 11.5px var(--mono);
  color: var(--dim);
  background: var(--bg);
  padding: 3px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  flex: 1;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.window img {
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 920;
  object-fit: cover;
  object-position: top;
}

.hero .window {
  transform: perspective(1400px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero .window:hover {
  transform: perspective(1400px) rotateY(0) rotateX(0);
}
.hero .float {
  position: absolute;
  background: rgba(18, 24, 22, 0.94);
  border: 1px solid var(--line2);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2;
}
.hero .float b { color: var(--mint); }
.hero .float.a { right: -12px; top: 16%; border-color: rgba(0, 229, 168, 0.35); }
.hero .float.b { left: -14px; bottom: 12%; border-color: rgba(255, 159, 67, 0.38); }
.hero .float.b b { color: var(--amber); }

@media (max-width: 980px) {
  .hero .float { display: none; }
  .hero .window { transform: none; }
}

/* ---- Bandeau Chiffres / Stats -------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 48px;
}
@media (max-width: 980px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 580px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.stat {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  border-top: 2px solid var(--mint);
}
.stat b {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text);
  font-family: var(--mono);
  letter-spacing: -0.02em;
}
.stat span { color: var(--muted); font-size: 13px; }

/* ---- Points Forts (Highlights) ------------------------------------------ */
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 46px;
  align-items: center;
  padding: 40px 0;
}
.feature-row.rev { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.feature-row > * { min-width: 0; }
.feature-row.rev .txt { order: 2; }

@media (max-width: 900px) {
  .feature-row, .feature-row.rev { grid-template-columns: 1fr; }
  .feature-row.rev .txt { order: 0; }
}

.feature-row .txt h3 { font-size: 1.65rem; font-weight: 800; }
.feature-row .txt p { color: var(--muted); font-size: 1.05rem; }
.feature-row ul { margin: 16px 0 0; padding: 0; list-style: none; color: var(--muted); }
.feature-row li { padding: 6px 0 6px 28px; position: relative; font-size: 14.5px; }
.feature-row li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--mint);
  font-weight: 800;
}
.demo {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line2);
  box-shadow: var(--shadow2);
  background: #090c0b;
  position: relative;
}
.demo img { width: 100%; height: auto; cursor: zoom-in; }
.demo .tag { position: absolute; left: 14px; top: 14px; z-index: 2; }

/* ---- Explorateur d'Outils (Interactive Tool Explorer) -------------------- */
.explorer {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.explorer .stage, .explorer .list { min-width: 0; }

@media (max-width: 920px) { .explorer { grid-template-columns: 1fr; } }

.explorer .list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 640px;
  overflow-y: auto;
  padding-right: 6px;
}
.explorer .group {
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 14px 10px 4px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.explorer .group .n {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--line2);
  display: grid;
  place-items: center;
  font-size: 10px;
  color: var(--muted);
}
.explorer .item {
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  padding: 9px 12px;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 500;
  transition: all 0.15s;
}
.explorer .item .ic { font-size: 17px; width: 22px; text-align: center; }
.explorer .item:hover { background: var(--bg3); color: var(--text); }
.explorer .item.active {
  background: rgba(0, 229, 168, 0.14);
  color: var(--mint);
  border-color: rgba(0, 229, 168, 0.35);
  font-weight: 600;
}

.explorer .stage { position: sticky; top: 80px; }
.explorer .stage .window img {
  cursor: zoom-in;
  transition: opacity 0.25s;
}
.explorer .stage .window img.fade { opacity: 0; }

.explorer .desc {
  margin-top: 18px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.explorer .desc .ic {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: rgba(0, 229, 168, 0.14);
  color: var(--mint);
  flex: none;
}
.explorer .desc h3 { margin-bottom: 4px; }
.explorer .desc p { color: var(--muted); margin: 0; font-size: 14.5px; }
.explorer .desc .tags { margin-top: 10px; display: flex; gap: 7px; flex-wrap: wrap; }

/* ---- Workflow de Production (4 Étapes) ----------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -12px;
  left: 20px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mint);
  color: #04100c;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 13px;
  box-shadow: 0 4px 10px rgba(0, 229, 168, 0.35);
}
.step h4 { margin: 8px 0 6px; font-size: 1.05rem; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }
.formats { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.formats .pill { font-family: var(--mono); text-transform: uppercase; font-size: 11px; }

/* ---- Tarifs (Pricing Section) -------------------------------------------- */
.toggle {
  display: inline-flex;
  background: var(--bg3);
  border: 1px solid var(--line2);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.toggle button {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}
.toggle button.active {
  background: var(--mint);
  color: #04100c;
  font-weight: 700;
}
.toggle .save {
  margin-left: 6px;
  font-size: 11.5px;
  color: #ff9f43;
  font-weight: 700;
}
.toggle button.active .save { color: #04100c; }

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
  align-items: stretch;
}
@media (max-width: 1120px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }

.plan {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}
.plan:hover { border-color: var(--line2); }

.plan.highlight {
  border-color: rgba(0, 229, 168, 0.6);
  box-shadow: 0 0 0 1px rgba(0, 229, 168, 0.3), 0 30px 80px rgba(0, 229, 168, 0.12);
  background: linear-gradient(180deg, rgba(0, 229, 168, 0.08), var(--bg2) 40%);
}
.plan .ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
}

.plan h3 { font-size: 1.35rem; margin-bottom: 6px; }
.plan .tagline { color: var(--muted); min-height: 2.8em; font-size: 13.5px; line-height: 1.45; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 4px; }
.plan .price b { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
.plan .price span { color: var(--muted); font-size: 14px; }
.plan .sub { color: var(--dim); font-size: 12.5px; min-height: 1.4em; }

.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; color: var(--muted); flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; font-size: 14px; }
.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--mint);
  font-weight: 800;
}
.plan.highlight li::before { color: var(--mint-light); }
.plan .btn { width: 100%; margin-top: auto; }

/* ---- FAQ Accordion ------------------------------------------------------- */
.faq { max-width: 840px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg2);
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.faq details:hover { border-color: var(--line2); }
.faq summary {
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--mint);
  font-size: 1.4rem;
  line-height: 1;
  font-family: var(--mono);
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  padding: 0 20px 18px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* ---- Pied de page -------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  color: var(--muted);
  font-size: 14px;
}
.footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}
@media (max-width: 820px) { .footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer .wrap { grid-template-columns: 1fr; } }

.footer h4 {
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.footer a { display: block; color: var(--muted); padding: 4px 0; }
.footer a:hover { color: var(--mint); }
.footer .legal {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--dim);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---- Lightbox (Zoom captures & animations) ------------------------------ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 11, 0.94);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 30px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 10px;
  border: 1px solid var(--line2);
  box-shadow: var(--shadow2);
}
.lightbox .cap {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
}
.lightbox .x {
  position: absolute;
  top: 18px;
  right: 22px;
  background: var(--bg3);
  border: 1px solid var(--line2);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

/* ---- Apparition au défilement (Scroll Reveal) ---------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero .window { transform: none; }
}

/* ---- Toasts & Modales ---------------------------------------------------- */
.toasts {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 120;
}
.toast {
  background: rgba(18, 24, 22, 0.96);
  border: 1px solid var(--line2);
  border-left: 3px solid var(--mint);
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: 13.5px;
  max-width: 420px;
  animation: toastin 0.2s ease;
}
.toast.success { border-left-color: var(--mint); }
.toast.error { border-left-color: var(--red); }
.toast.info { border-left-color: var(--blue); }
@keyframes toastin { from { opacity: 0; transform: translateY(8px); } }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: grid;
  place-items: center;
  z-index: 110;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 20px;
}
.modal-card {
  width: min(540px, 100%);
  background: var(--bg2);
  border: 1px solid var(--line2);
  border-radius: 16px;
  box-shadow: var(--shadow2);
  overflow: hidden;
}
.modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 1.15rem;
}
.modal-head .spacer { flex: 1; }
.modal-body { padding: 22px 20px; }
.modal-foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: var(--bg3);
}

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 600; }
.field input {
  background: var(--bg);
  border: 1px solid var(--line2);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}
.field input:focus { border-color: var(--mint); box-shadow: 0 0 0 2px rgba(0, 229, 168, 0.2); }
