/* =========================================================
   My Digital Factory — Feuille de styles principale
   Design system + composants + pages
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Couleurs */
  --bg:          #08090D;
  --bg-soft:     #0D0F16;
  --surface:     #12151F;
  --surface-2:   #171B27;
  --border:      rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text:        #EAEEF6;
  --text-muted:  #98A2B8;
  --text-dim:    #6B748C;

  --accent:      #4F7CFF;
  --accent-soft: #7EA0FF;
  --accent-2:    #9B5CF6;
  --accent-3:    #F5A524;
  --success:     #2ED17F;
  --danger:      #FF6B6B;

  --grad-brand: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  --grad-text:  linear-gradient(120deg, #FFFFFF 10%, #A9C0FF 55%, #C3A6FF 100%);

  /* Typographie */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;

  /* Rythme */
  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 40px 80px -32px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 24px 60px -24px rgba(79, 124, 255, 0.55);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 650;
  text-wrap: balance;
}

p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(79, 124, 255, 0.35); color: #fff; }

/* ---------- 3. Utilitaires ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 820px; }

/* Les enfants de grille et de flexbox ne doivent jamais imposer leur
   largeur minimale de contenu : sans cela, une carte au contenu large
   élargit toute la page sur mobile. */
.hero__grid > *,
.split > *,
.contact-grid > *,
.founder > *,
.grid > *,
.pricing > *,
.stat-grid > *,
.steps > *,
.footer__grid > *,
.step > *,
.pstep > *,
.info-list__item > * { min-width: 0; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--soft { background: var(--bg-soft); }
.section--line { border-top: 1px solid var(--border); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 200;
  background: var(--accent); color: #fff;
  padding: 0.75rem 1.25rem; border-radius: var(--r-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.accent { color: var(--accent-soft); }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ---------- 4. Typo d'en-tête de section ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section-title {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  margin-bottom: 1rem;
}

.section-lead {
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  color: var(--text-muted);
  max-width: 62ch;
}

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { text-align: center; }
.section-head--center .section-lead { margin-inline: auto; }
.section-head--center .eyebrow::before { display: none; }

/* ---------- 5. Boutons ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  background: var(--btn-bg);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease), border-color 0.25s var(--ease),
              opacity 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover { box-shadow: 0 28px 70px -22px rgba(79, 124, 255, 0.75); }

.btn--ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover {
  border-color: var(--accent-soft);
  background: rgba(79, 124, 255, 0.1);
}

.btn--light { background: #fff; color: #0B0D12; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn__arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}
.btn-row--center { justify-content: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-soft);
}
.link-arrow svg { transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 6. Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 9, 13, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(8, 9, 13, 0.92);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.02rem;
}
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name { line-height: 1.1; }
.brand__name span { display: block; font-size: 0.66rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }

.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav a {
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-full);
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.07); }

/* Le bouton d'appel à l'action du menu n'apparaît qu'en version mobile :
   sur grand écran, c'est celui de .header__actions qui est affiché. */
.nav .btn { display: none; }

.header__actions { display: flex; align-items: center; gap: 0.6rem; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: background-color 0.2s; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform 0.28s var(--ease), top 0.28s var(--ease);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .header__actions .btn { display: none; }
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem var(--gutter) 1.75rem;
    background: rgba(9, 11, 16, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.25s var(--ease), visibility 0.25s;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav a { padding: 0.85rem 1rem; font-size: 1rem; }
  .nav .btn { margin-top: 0.75rem; display: inline-flex; }
}

/* ---------- 7. Décor de fond ---------- */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.glow--a { width: 620px; height: 620px; background: rgba(79, 124, 255, 0.22); top: -220px; right: -180px; }
.glow--b { width: 520px; height: 520px; background: rgba(155, 92, 246, 0.16); bottom: -260px; left: -180px; }

.grid-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  pointer-events: none;
}

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 9vw, 7.5rem) clamp(4rem, 8vw, 6.5rem);
  border-bottom: 1px solid var(--border);
}
.hero > .container { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.95rem 0.42rem 0.55rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.6rem;
}
.badge strong { color: var(--text); font-weight: 600; }
.badge__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(46, 209, 127, 0.18);
}

.hero h1 {
  font-size: clamp(2.35rem, 5.6vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.4rem;
}

.hero__lead {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  color: var(--text-muted);
  max-width: 56ch;
  margin-bottom: 2.2rem;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-top: 2.6rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.hero__proof div strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
/* > span : ne cible que la légende, pas le compteur imbriqué dans <strong>. */
.hero__proof div > span { font-size: 0.85rem; color: var(--text-dim); }

/* Carte visuelle du hero : « la chaîne de production » */
.pipeline {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(79, 124, 255, 0.16), transparent 60%),
    var(--surface);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}
.pipeline__head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 1rem; margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem; color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.pipeline__dots { display: flex; gap: 6px; }
.pipeline__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); display: block; }
.pipeline__dots i:first-child { background: rgba(255, 107, 107, 0.7); }
.pipeline__dots i:nth-child(2) { background: rgba(245, 165, 36, 0.7); }
.pipeline__dots i:nth-child(3) { background: rgba(46, 209, 127, 0.7); }

.pipeline__steps { display: grid; gap: 0.6rem; }
.pstep {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.025);
}
.pstep__num {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(79, 124, 255, 0.14);
  color: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
}
.pstep__title { display: block; font-size: 0.93rem; font-weight: 600; }
.pstep__sub { display: block; font-size: 0.78rem; color: var(--text-dim); }
.pstep__tag {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--success);
  background: rgba(46, 209, 127, 0.12);
  border: 1px solid rgba(46, 209, 127, 0.25);
  padding: 0.2rem 0.5rem;
  border-radius: var(--r-full);
}
.pstep--muted .pstep__tag { color: var(--text-dim); background: rgba(255, 255, 255, 0.04); border-color: var(--border); }

.pipeline__foot {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.8rem; color: var(--text-muted);
}
.pipeline__bar {
  flex: 1; height: 6px; border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.pipeline__bar span {
  display: block; height: 100%; width: 72%;
  background: var(--grad-brand);
  border-radius: inherit;
}

/* ---------- 9. Bandeau logos / mots-clés ---------- */
.marquee {
  border-block: 1px solid var(--border);
  background: var(--bg-soft);
  padding-block: 1.1rem;
  overflow: hidden;
}
.marquee__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee__track span {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ---------- 10. Grilles & cartes ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
              background-color 0.3s var(--ease);
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.card h3 { font-size: 1.12rem; margin-bottom: 0.6rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

.card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: rgba(79, 124, 255, 0.12);
  border: 1px solid rgba(79, 124, 255, 0.22);
  color: var(--accent-soft);
  margin-bottom: 1.15rem;
}
.card__icon svg { width: 22px; height: 22px; }
.card--amber .card__icon { background: rgba(245, 165, 36, 0.12); border-color: rgba(245, 165, 36, 0.25); color: var(--accent-3); }
.card--violet .card__icon { background: rgba(155, 92, 246, 0.14); border-color: rgba(155, 92, 246, 0.26); color: #C4A6FF; }

.card__list {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.card__list li { display: flex; gap: 0.55rem; align-items: flex-start; }
.card__list li::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.8;
}

.card--feature {
  grid-column: span 2;
  background:
    radial-gradient(110% 130% at 0% 0%, rgba(79, 124, 255, 0.14), transparent 55%),
    var(--surface);
}
@media (max-width: 640px) { .card--feature { grid-column: auto; } }

/* ---------- 11. Liste d'étapes (process) ---------- */
.steps { counter-reset: step; display: grid; gap: 1rem; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.35rem;
  padding: 1.6rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.step__index {
  counter-increment: step;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(79, 124, 255, 0.3);
  background: rgba(79, 124, 255, 0.1);
  color: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
}
.step__index::before { content: "0" counter(step); }
.step h3 { font-size: 1.08rem; margin-bottom: 0.35rem; }
.step p { color: var(--text-muted); font-size: 0.95rem; }
.step__meta {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

/* ---------- 12. Tarifs / formules ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 960px) { .pricing { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

.plan {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem 1.85rem;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
}
.plan--highlight {
  border-color: rgba(79, 124, 255, 0.45);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(79, 124, 255, 0.16), transparent 60%),
    var(--surface-2);
  box-shadow: var(--shadow-glow);
}
.plan__tag {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  background: rgba(79, 124, 255, 0.14);
  border: 1px solid rgba(79, 124, 255, 0.28);
  padding: 0.28rem 0.7rem;
  border-radius: var(--r-full);
  margin-bottom: 1.1rem;
}
.plan h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.plan__desc { color: var(--text-muted); font-size: 0.92rem; min-height: 3.2em; }
.plan__price {
  margin: 1.4rem 0 0.3rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.plan__price small { font-size: 0.85rem; font-weight: 500; color: var(--text-dim); letter-spacing: 0; }
.plan__note { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 1.5rem; }
.plan__features { display: grid; gap: 0.65rem; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.9rem; }
.plan__features li { display: flex; gap: 0.6rem; align-items: flex-start; }
.plan__features svg { flex: none; width: 17px; height: 17px; margin-top: 0.2rem; color: var(--accent); }
.plan .btn { margin-top: auto; }

/* ---------- 13. Split (texte + visuel) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.split--reverse .split__media { order: -1; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

.check-list { display: grid; gap: 0.85rem; margin-top: 1.75rem; }
.check-list li { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--text-muted); }
.check-list strong { color: var(--text); font-weight: 600; }
.check-list svg { flex: none; width: 20px; height: 20px; margin-top: 0.2rem; color: var(--accent); }

/* ---------- 14. Encadrés ---------- */
.panel {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
}
.panel--glow {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(155, 92, 246, 0.16), transparent 55%),
    radial-gradient(100% 120% at 0% 100%, rgba(79, 124, 255, 0.14), transparent 55%),
    var(--surface);
}

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 760px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.stat strong {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}
.stat > span { font-size: 0.86rem; color: var(--text-muted); }

/* ---------- 15. Citation / fondateur ---------- */
.founder {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; } }

.founder__portrait {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background:
    radial-gradient(120% 120% at 30% 10%, rgba(79, 124, 255, 0.28), transparent 60%),
    linear-gradient(160deg, #1B2030, #0E111A);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.founder__initials {
  font-size: 3.6rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.founder__quote {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.founder__quote::before { content: "« "; color: var(--accent-soft); }
.founder__quote::after { content: " »"; color: var(--accent-soft); }
.founder__name { font-weight: 650; }
.founder__role { color: var(--text-dim); font-size: 0.9rem; }

/* ---------- 16. FAQ ---------- */
.faq { display: grid; gap: 0.75rem; }
.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
}
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  background: none;
  border: 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.faq__q:hover { color: var(--accent-soft); }
.faq__icon { flex: none; width: 18px; height: 18px; position: relative; }
.faq__icon::before,
.faq__icon::after {
  content: ""; position: absolute; inset: 50% 0 auto 0;
  height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.28s var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(0deg); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease);
}
.faq__a > div { overflow: hidden; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a p {
  padding: 0 1.4rem 1.35rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- 17. CTA final ---------- */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid rgba(79, 124, 255, 0.28);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  background:
    radial-gradient(90% 140% at 50% 0%, rgba(79, 124, 255, 0.22), transparent 62%),
    radial-gradient(70% 120% at 80% 100%, rgba(155, 92, 246, 0.2), transparent 60%),
    var(--surface);
}
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 1rem; }
.cta p { color: var(--text-muted); max-width: 55ch; margin: 0 auto 2rem; }

/* ---------- 18. Formulaire ---------- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 0.45rem; }
.field > label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
}
.field > label .req { color: var(--accent-3); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease),
              box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2398A2B8' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem; }
.field select option { background: #12151F; color: var(--text); }

.field input::placeholder,
.field textarea::placeholder { color: var(--text-dim); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(79, 124, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(79, 124, 255, 0.14);
}

.field--error input,
.field--error select,
.field--error textarea { border-color: var(--danger); }
.field__error { font-size: 0.8rem; color: var(--danger); display: none; }
.field--error .field__error { display: block; }

.field--check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.75rem;
}
.field--check input { width: 18px; height: 18px; margin-top: 0.22rem; accent-color: var(--accent); }
.field--check label { font-size: 0.85rem; font-weight: 400; color: var(--text-muted); line-height: 1.55; }
.field--check a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 2px; }
.field--check .field__error { grid-column: 1 / -1; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form__note { font-size: 0.82rem; color: var(--text-dim); }

.form-status {
  display: none;
  padding: 1rem 1.15rem;
  border-radius: var(--r-md);
  font-size: 0.92rem;
  border: 1px solid transparent;
}
.form-status.is-visible { display: block; }
.form-status--ok { background: rgba(46, 209, 127, 0.1); border-color: rgba(46, 209, 127, 0.35); color: #9BEFC6; }
.form-status--ko { background: rgba(255, 107, 107, 0.1); border-color: rgba(255, 107, 107, 0.35); color: #FFB4B4; }

/* ---------- 19. Contact aside ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.info-list { display: grid; gap: 1.5rem; }
.info-list__item { display: grid; grid-template-columns: 42px 1fr; gap: 1rem; align-items: start; }
.info-list__icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent-soft);
}
.info-list__icon svg { width: 19px; height: 19px; }
.info-list dt { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 0.2rem; }
.info-list dd { margin: 0; font-weight: 550; }
.info-list dd a:hover { color: var(--accent-soft); }
.info-list dd small { display: block; font-weight: 400; font-size: 0.82rem; color: var(--text-dim); }

/* ---------- 20. Pages légales / contenu long ---------- */
.prose { max-width: 75ch; }
.prose h2 { font-size: 1.4rem; margin: 2.75rem 0 0.9rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.08rem; margin: 1.75rem 0 0.55rem; }
.prose p, .prose li { color: var(--text-muted); }
.prose p { margin-bottom: 1rem; }
.prose ul { display: grid; gap: 0.5rem; margin: 0 0 1.25rem 0; }
.prose ul li { display: flex; gap: 0.6rem; }
.prose ul li::before { content: "—"; color: var(--accent); flex: none; }
.prose a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }

.page-head {
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-head > .container { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.35rem); margin-bottom: 1.1rem; }
.page-head p { color: var(--text-muted); font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 62ch; }

.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
  font-size: 0.82rem; color: var(--text-dim); margin-bottom: 1.25rem;
}
.breadcrumb a:hover { color: var(--accent-soft); }
.breadcrumb span[aria-hidden] { opacity: 0.5; }

/* ---------- 21. Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; gap: 2rem; } }

.footer__about p { color: var(--text-muted); font-size: 0.9rem; margin-top: 1rem; max-width: 38ch; }
.footer h4 {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 1.1rem;
  font-weight: 600;
}
.footer ul { display: grid; gap: 0.65rem; }
.footer ul a { font-size: 0.92rem; color: var(--text-muted); transition: color 0.2s; }
.footer ul a:hover { color: var(--text); }

.footer__bottom {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer__bottom a:hover { color: var(--text); }

/* ---------- 22. Animations d'apparition ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 23. Page 404 ---------- */
.error-page {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.error-page__code {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 14vw, 9rem);
  font-weight: 700;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

/* ---------- 24. Divers ---------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; }
.tag {
  font-size: 0.78rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.35rem 0.8rem;
  border-radius: var(--r-full);
}
.tag--on { color: var(--accent-soft); border-color: rgba(79, 124, 255, 0.3); background: rgba(79, 124, 255, 0.1); }

.divider { height: 1px; background: var(--border); border: 0; margin-block: clamp(3rem, 6vw, 4.5rem); }
