/* =========================================================
   KromaDev — styles
   Structure & règles : DESIGN.md
   Couleurs : palette KromaDev (Sombre / Foncé / Accent / Clair / Blanc)
   ========================================================= */

:root {
  /* Palette KromaDev */
  --color-sombre: #0e0916;   /* texte, footer */
  --color-fonce: #341c5f;    /* complément accent, bande sombre, annonce */
  --color-accent: #7c3bed;   /* boutons, liens */
  --color-clair: #ede7f9;    /* fond de page */
  --color-blanc: #ffffff;    /* cartes */

  /* Teintes de l'accent */
  --accent-80: #9662f1;
  --accent-60: #b089f4;
  --accent-40: #cbb1f8;
  --accent-20: #e5d8fb;

  /* Rôles (mapping DESIGN.md → palette) */
  --canvas: var(--color-clair);
  --surface: var(--color-blanc);
  --text: var(--color-sombre);
  --text-muted: #5b5370;
  --border: #ddd3f2;
  --primary: var(--color-accent);
  --primary-hover: #6a2bd9;
  --link: var(--color-accent);
  --secondary-fill: var(--accent-20);
  --dark-band: var(--color-fonce);
  --footer: var(--color-sombre);
  --accent-text: var(--color-fonce);
  --soft-fill: var(--accent-20);
  --selected-fill: var(--accent-40);
  --header-bg: rgba(237, 231, 249, 0.72);
  --glass: rgba(255, 255, 255, 0.85);
  --glass-soft: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.4);
  --gradient-glow: rgba(229, 216, 251, 0.9);
  --gradient-base: var(--accent-20);
  --toast-bg: var(--color-sombre);
  --footer-border: transparent;
  color-scheme: light;

  /* Typo */
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-script: "Caveat", cursive;

  --text-caption: 12px;
  --text-body-sm: 14px;
  --text-body: 16px;
  --text-label-bold: 19px;
  --text-subheading: 26px;
  --text-heading-sm: 28px;
  --text-heading-lg: 49px;
  --text-display: 64px;

  /* Rayons */
  --radius-tabs: 8px;
  --radius-cards: 16px;
  --radius-buttons: 16px;
  --radius-small: 8px;
  --radius-pill: 999px;

  --shadow-subtle: rgb(124, 59, 237) 0 0 0 1px inset;

  --max-w: 1200px;
  --section-gap: 96px;
}

/* ---------- Thème sombre ---------- */
:root[data-theme="dark"] {
  --canvas: var(--color-sombre);
  --surface: #160f24;
  --text: var(--color-clair);
  --text-muted: #a79dbf;
  --border: rgba(203, 177, 248, 0.14);
  --link: var(--accent-60);
  --primary-hover: var(--accent-80);
  --secondary-fill: rgba(124, 59, 237, 0.16);
  --dark-band: var(--color-fonce);
  --footer: #08050d;
  --accent-text: var(--accent-40);
  --soft-fill: rgba(124, 59, 237, 0.18);
  --selected-fill: rgba(124, 59, 237, 0.32);
  --header-bg: rgba(14, 9, 22, 0.72);
  --glass: rgba(30, 20, 50, 0.78);
  --glass-soft: rgba(52, 28, 95, 0.45);
  --glass-border: rgba(203, 177, 248, 0.16);
  --gradient-glow: rgba(52, 28, 95, 0.9);
  --gradient-base: #1b1130;
  --toast-bg: var(--color-fonce);
  --footer-border: rgba(203, 177, 248, 0.1);
  color-scheme: dark;
}
:root[data-theme="dark"] .hero__atmos { opacity: 0.6; }
:root[data-theme="dark"] .mock__line,
:root[data-theme="dark"] .mock__blocks span,
:root[data-theme="dark"] .mock__bar i { opacity: 0.55; }

body, .header, .card, .tabs, .stack__grid, .footer { transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease; }

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--text-body);
  font-weight: 460;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 12px; }
h1, h2, h3, h4 { margin: 0; font-weight: 460; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding-top: var(--section-gap); }

.muted { color: var(--text-muted); }

/* ---------- Typo ---------- */
.display {
  font-size: var(--text-display);
  line-height: 0.96;
  letter-spacing: -0.028em;
  font-weight: 460;
}
.display--light { color: var(--color-blanc); }

.heading-lg {
  font-size: var(--text-heading-lg);
  line-height: 1.04;
  letter-spacing: -0.027em;
}
.heading-sm {
  font-size: var(--text-heading-sm);
  line-height: 1.14;
  letter-spacing: -0.022em;
}
.label-bold {
  font-size: var(--text-label-bold);
  font-weight: 700;
  line-height: 1.3;
  margin: 12px 0 8px;
}
.caption-title {
  font-size: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 540;
  margin: 0;
}

.link {
  color: var(--link);
  font-weight: 540;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.2s ease;
}
.link:hover { background-size: 100% 1px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius-buttons);
  font: inherit;
  font-weight: 540;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { transition: transform 0.2s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn--primary { background: var(--primary); color: var(--color-blanc); }
.btn--primary:hover { background: var(--primary-hover); }

.btn--secondary {
  background: var(--secondary-fill);
  color: var(--text);
  border: 1px solid var(--accent-text);
  border-radius: var(--radius-small);
}
.btn--secondary:hover { background: var(--selected-fill); }

.btn--outline-light {
  background: transparent;
  color: var(--color-blanc);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-small);
  height: 44px;
}
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }

.btn--white { background: var(--color-blanc); color: var(--color-sombre); }
.btn--white:hover { background: var(--accent-20); }

.btn--sm { height: 40px; padding: 0 16px; border-radius: 12px; font-size: 15px; }
.btn--block { width: 100%; }

.btn-ghost { font-weight: 460; padding: 8px 4px; }
.btn-ghost:hover { text-decoration: underline; text-underline-offset: 4px; }

:focus-visible { outline: 2px solid var(--accent-80); outline-offset: 3px; border-radius: 6px; }

/* ---------- Bandeau annonce ---------- */
.announce {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 16px;
  background: var(--color-fonce);
  color: var(--color-blanc);
  font-size: var(--text-body-sm);
}
.announce__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-60);
  box-shadow: 0 0 0 4px rgba(176, 137, 244, 0.25);
}
.announce__link {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-pill);
  padding: 2px 12px;
  transition: background 0.2s ease;
}
.announce__link:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.header.is-scrolled { border-bottom-color: var(--border); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.logo__mark { width: 28px; height: 28px; }
.logo__accent { color: var(--color-accent); }
.logo--light { color: var(--color-blanc); }

.nav { display: flex; gap: 32px; }
.nav a { font-weight: 460; transition: color 0.2s ease; }
.nav a:hover { color: var(--color-accent); }

.header__actions { display: flex; align-items: center; gap: 16px; }

.burger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-small);
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.6px;
  background: var(--text);
  transition: transform 0.25s ease, top 0.25s ease;
}
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 160px;
  text-align: center;
}
.hero__atmos {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 55% at 20% 30%, rgba(176, 137, 244, 0.55), transparent 70%),
    radial-gradient(35% 50% at 82% 25%, rgba(124, 59, 237, 0.35), transparent 70%),
    radial-gradient(45% 45% at 55% 100%, rgba(203, 177, 248, 0.8), transparent 70%),
    radial-gradient(30% 40% at 95% 85%, rgba(150, 98, 241, 0.35), transparent 70%);
  filter: blur(10px);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.08) translate(-2%, 2%); }
}

.hero__content { position: relative; z-index: 2; }
.hero .display { max-width: 900px; margin: 24px auto 24px; }
.hero__lead {
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 18px;
  color: var(--text-muted);
  letter-spacing: -0.008em;
}
.hero__ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--glass-soft);
  box-shadow: var(--shadow-subtle);
  color: var(--accent-text);
  font-size: var(--text-body-sm);
  font-weight: 540;
}

/* Cartes flottantes (glass) */
.float-card {
  position: absolute;
  z-index: 1;
  width: 240px;
  padding: 16px;
  border-radius: var(--radius-cards);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: left;
  font-size: var(--text-body-sm);
  animation: float 6s ease-in-out infinite;
}
.float-card p { margin: 0; }
.float-card--left { left: max(24px, calc(50% - 680px)); top: 120px; transform: rotate(-3deg); }
.float-card--right { right: max(24px, calc(50% - 680px)); top: 200px; animation-delay: -2s; }
.float-card--bottom {
  left: 50%; bottom: 32px; width: auto;
  display: flex; align-items: center; gap: 12px;
  translate: -50% 0;
  animation-delay: -4s;
}
@keyframes float {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -10px; }
}

.float-card__row { display: flex; align-items: center; gap: 8px; }
.float-card__meta { color: var(--text-muted); font-size: var(--text-caption); margin-top: 4px !important; }
.float-card__bar { margin-top: 12px; height: 6px; border-radius: 6px; background: var(--soft-fill); overflow: hidden; }
.float-card__bar span { display: block; height: 100%; background: var(--color-accent); border-radius: 6px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fbf71; }

.scores { display: flex; gap: 8px; margin-top: 10px; }
.score {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 0;
  border-radius: 10px;
  background: var(--soft-fill);
}
.score b { font-size: 20px; font-weight: 600; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.score span { font-size: 11px; color: var(--text-muted); }

.avatars { display: flex; }
.avatars span {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
  font-size: 11px; font-weight: 700; color: #fff;
}
.avatars span:first-child { margin-left: 0; background: var(--color-fonce); }
.avatars span:nth-child(2) { background: var(--color-accent); }
.avatars span:nth-child(3) { background: var(--accent-60); }

/* ---------- Bande techno ---------- */
.stack { text-align: center; }
.stack .caption-title { margin-bottom: 20px; }
.stack__grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-cards);
  overflow: hidden;
}
.stack__grid li {
  padding: 24px 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  opacity: 0.75;
  border-left: 1px solid var(--border);
  transition: opacity 0.2s ease, color 0.2s ease;
}
.stack__grid li:first-child { border-left: 0; }
.stack__grid li:hover { opacity: 1; color: var(--color-accent); }

/* ---------- En-têtes de section ---------- */
.section__head { max-width: 720px; margin-bottom: 40px; }
.section__head .muted { margin-top: 16px; font-size: 18px; }
.section__head--row {
  max-width: none;
  display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}

/* ---------- Cartes ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-cards);
  padding: 24px;
}
.card p { color: var(--text-muted); }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.icon-chip {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--soft-fill);
  color: var(--color-accent);
  font-size: 18px;
}

/* ---------- Tabs ---------- */
.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-tabs);
  overflow: hidden;
  margin-bottom: 16px;
}
.tab {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px;
  border: 0;
  border-left: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 540;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.tab:first-child { border-left: 0; }
.tab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tab:hover { background: var(--canvas); }
.tab.is-active { background: var(--selected-fill); color: var(--accent-text); }
.tab.is-active svg { stroke: var(--color-accent); }

.tab-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
  align-items: center;
}
.tab-panel__text p { font-size: 18px; margin: 16px 0 20px; }
.tab-panel.is-switching .tab-panel__text { animation: fadeUp 0.35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.checklist { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 28px; }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--soft-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.5 2.5L13 6.5' fill='none' stroke='%237C3BED' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
}

.tab-panel__visual {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background:
    radial-gradient(60% 60% at 30% 30%, var(--accent-60), transparent 70%),
    radial-gradient(60% 60% at 80% 80%, var(--color-accent), transparent 70%),
    var(--color-fonce);
  display: grid; place-items: center;
  padding: 32px;
}
.mock {
  width: 100%;
  background: var(--glass);
  border-radius: 12px;
  overflow: hidden;
}
.mock__bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.mock__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-40); }
.mock__body { padding: 20px; display: grid; gap: 10px; }
.mock__line { height: 10px; border-radius: 6px; background: var(--accent-20); }
.mock__line.w60 { width: 60%; background: var(--accent-60); }
.mock__line.w40 { width: 40%; }
.mock__blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.mock__blocks span { aspect-ratio: 1; border-radius: 8px; background: var(--accent-20); }
.mock__blocks span:nth-child(2) { background: var(--accent-40); }

/* ---------- Bande sombre ---------- */
.dark-band {
  margin-top: var(--section-gap);
  background: var(--dark-band);
  color: var(--color-blanc);
  padding: 96px 0;
  overflow: hidden;
}
.dark-band__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.dark-band__text > p { color: rgba(255, 255, 255, 0.8); font-size: 18px; margin: 24px 0 32px; }

.dark-band__art { position: relative; min-height: 460px; }
.geo { position: absolute; border-radius: 6px; }
.geo--1 { inset: 4% 30% 40% 4%; background: rgba(176, 137, 244, 0.5); }
.geo--2 { inset: 22% 6% 22% 26%; background: rgba(124, 59, 237, 0.55); mix-blend-mode: screen; }
.geo--3 { inset: 56% 44% 2% 12%; background: rgba(229, 216, 251, 0.35); }
.geo--4 { inset: 10% 2% 66% 62%; background: rgba(14, 9, 22, 0.5); border: 1px solid rgba(255,255,255,0.25); }
.script {
  position: absolute;
  font-family: var(--font-script);
  font-size: 34px;
  color: #fff;
  transform: rotate(-6deg);
}
.script--1 { top: 44%; left: 8%; }
.script--2 { bottom: 8%; right: 6%; transform: rotate(4deg); color: var(--accent-20); }

.steps { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 4px; }
.steps li {
  display: flex; gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.steps b { font-size: 14px; font-weight: 600; color: var(--accent-60); font-variant-numeric: tabular-nums; padding-top: 2px; }
.steps strong { display: block; font-weight: 600; }
.steps span { color: rgba(255, 255, 255, 0.7); font-size: 15px; }

/* ---------- Réalisations ---------- */
.project { padding: 12px 12px 20px; }
.project > :not(.project__thumb) { padding: 0 8px; }
.project .caption-title { margin-top: 16px; }
.project__thumb {
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  display: flex; align-items: end;
  padding: 16px;
  transition: transform 0.35s ease;
}
.project:hover .project__thumb { transform: scale(1.015); }
.project__thumb span {
  background: var(--glass);
  color: var(--text);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 540;
}
.project__thumb--a { background: linear-gradient(135deg, var(--color-fonce), var(--color-accent)); }
.project__thumb--b { background: linear-gradient(135deg, var(--accent-40), var(--accent-80)); }
.project__thumb--c { background: linear-gradient(135deg, var(--color-sombre), var(--color-fonce) 60%, var(--accent-80)); }

/* ---------- Bandeau gradient ---------- */
.gradient-band {
  margin-top: var(--section-gap);
  border-radius: 24px;
  padding: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  background:
    radial-gradient(50% 80% at 68% 50%, rgba(124, 59, 237, 0.55), transparent 70%),
    radial-gradient(40% 70% at 93% 50%, rgba(150, 98, 241, 0.6), transparent 70%),
    radial-gradient(60% 60% at 50% 98%, rgba(203, 177, 248, 0.8), transparent 70%),
    radial-gradient(50% 60% at 10% 20%, var(--gradient-glow), transparent 70%),
    var(--gradient-base);
}
.gradient-band .heading-lg { font-size: 48px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.contact__intro .muted { margin: 20px 0 32px; font-size: 18px; }
.contact__info { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact__info li { display: grid; gap: 4px; }

.form { display: grid; gap: 18px; padding: 32px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: var(--text-body-sm); font-weight: 540; }
.form input[type="text"],
.form input[type="email"],
.form select,
.form textarea {
  font: inherit;
  font-size: 15px;
  font-weight: 460;
  color: var(--text);
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(124, 59, 237, 0.18);
}
.form .is-invalid { border-color: #c2416b !important; }

.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-size: var(--text-body-sm); font-weight: 540; margin-bottom: 8px; padding: 0; }
.chips label { display: block; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--canvas);
  font-weight: 460;
  cursor: pointer;
  transition: all 0.2s ease;
}
.chips input:checked + span { background: var(--selected-fill); border-color: var(--accent-text); color: var(--accent-text); }
.chips input:focus-visible + span { outline: 2px solid var(--accent-80); outline-offset: 2px; }

.form__note { font-size: var(--text-caption); text-align: center; margin: 0; }

/* ---------- Footer ---------- */
.footer {
  margin-top: var(--section-gap);
  background: var(--footer);
  border-top: 1px solid var(--footer-border);
  color: var(--color-blanc);
  padding: 64px 0 32px;
}
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand p { color: rgba(255, 255, 255, 0.7); margin-top: 16px; font-size: var(--text-body-sm); }
.footer h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer__grid > div:not(.footer__brand) { display: grid; gap: 12px; align-content: start; }
.footer__grid a:not(.logo) { color: rgba(255, 255, 255, 0.7); font-size: 14px; transition: color 0.2s ease; }
.footer__grid a:not(.logo):hover { color: #fff; }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 64px; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translate(-50%, 20px);
  background: var(--toast-bg);
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 15px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 100;
  max-width: calc(100% - 32px);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .float-card--left, .float-card--right { display: none; }
}

@media (max-width: 900px) {
  :root {
    --text-display: 44px;
    --text-heading-lg: 36px;
    --text-heading-sm: 24px;
    --section-gap: 72px;
  }
  .nav {
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 16px;
    background: var(--canvas);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 8px; border-bottom: 1px solid var(--border); }
  .burger { display: block; }
  .hide-sm { display: none; }

  .stack__grid { grid-template-columns: repeat(3, 1fr); }
  .stack__grid li:nth-child(4) { border-left: 0; }
  .stack__grid li:nth-child(n+4) { border-top: 1px solid var(--border); }

  .tabs { grid-template-columns: repeat(2, 1fr); }
  .tab:nth-child(3) { border-left: 0; }
  .tab:nth-child(n+3) { border-top: 1px solid var(--border); }

  .tab-panel, .dark-band__inner, .contact { grid-template-columns: 1fr; }
  .tab-panel { padding: 24px; gap: 24px; }
  .cards-3 { grid-template-columns: 1fr; }
  .dark-band__art { min-height: 300px; }
  .gradient-band { padding: 40px 24px; }
  .gradient-band .heading-lg { font-size: 34px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  :root { --text-display: 38px; }
  .hero { padding: 72px 0 120px; }
  .header__actions .btn--sm { display: none; }
  .form__row { grid-template-columns: 1fr; }
  .form { padding: 20px; }
  .stack__grid { grid-template-columns: repeat(2, 1fr); }
  .stack__grid li:nth-child(odd) { border-left: 0; }
  .stack__grid li:nth-child(4) { border-left: 1px solid var(--border); }
  .stack__grid li:nth-child(n+3) { border-top: 1px solid var(--border); }
  .tab { padding: 12px 8px; font-size: 14px; }
  .float-card--bottom { font-size: 12px; white-space: nowrap; }
}
.icon-chip svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Bouton thème ---------- */
.theme-toggle {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-small);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.theme-toggle:hover { border-color: var(--accent-60); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- Tarifs ---------- */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: 28px 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.plan:hover { transform: translateY(-4px); border-color: var(--accent-60); }
.plan--popular {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-subtle);
  background:
    radial-gradient(120% 60% at 50% 0%, var(--soft-fill), transparent 70%),
    var(--surface);
}
.plan__badge {
  position: absolute; top: 16px; right: 16px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
}
.plan .icon-chip { margin-bottom: 20px; }
.plan__kicker { font-size: var(--text-caption); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--link); margin: 0; }
.plan h3 { font-size: 24px; letter-spacing: -0.014em; margin: 8px 0 8px; font-weight: 600; }
.plan__desc { font-size: 15px; min-height: 46px; }
.plan .checklist { margin: 12px 0 24px; font-size: 15px; flex: 1; }
.plan__price { border-top: 1px solid var(--border); padding-top: 20px; }
.plan__from { font-size: var(--text-caption); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 2px; }
.plan__amount {
  font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.plan__amount small { font-size: 18px; font-weight: 500; color: var(--text-muted); margin-left: 4px; letter-spacing: 0; }
.plan__range {
  display: flex; align-items: center; gap: 8px;
  margin: 10px 0 4px !important;
  font-size: 13px;
}
.plan__range i {
  flex: 1; height: 4px; border-radius: 4px; position: relative;
  background: linear-gradient(90deg, var(--accent-20), var(--color-accent), var(--accent-20));
  opacity: 0.8;
}
.plan__range i::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--color-accent);
  translate: -50% -50%;
}
.plan__monthly { font-size: 13px; margin: 0 !important; }
.plan .btn { margin-top: 20px; }

.pricing-note {
  display: flex; gap: 16px; align-items: flex-start;
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: var(--radius-cards);
  background: var(--soft-fill);
  border: 1px dashed var(--accent-60);
}
.pricing-note svg { flex: none; width: 24px; height: 24px; fill: none; stroke: var(--color-accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.pricing-note p { margin: 0; color: var(--text); }
.pricing-note p + p { margin-top: 6px; color: var(--text-muted); font-size: 15px; }

@media (max-width: 1100px) {
  .pricing { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pricing { grid-template-columns: 1fr; }
  .plan__desc { min-height: 0; }
}
