/* ==========================================================================
   Julien Jimenez — Rédacteur SEO & Éditeur web
   Feuille de style unique. Zéro framework, zéro build.
   Design vif : indigo → violet → corail, verre dépoli, dégradés, reveals.
   ========================================================================== */

:root {
  --paper: #fafaff;
  --paper-alt: #f3f1ff;
  --ink: #16132f;
  --ink-soft: #43405f;
  --muted: #6f6c8e;
  --line: #e6e3f6;
  --accent: #6d28d9;
  --accent-dark: #5b21b6;
  --accent-soft: #f1ebff;
  --indigo: #4f46e5;
  --violet: #7c3aed;
  --coral: #ff4d6d;
  --pine: #0d9488;
  --pine-soft: #d9f5ef;
  --white: #ffffff;
  --dark: #131029;
  --dark-2: #1c1740;
  --grad: linear-gradient(120deg, #4f46e5, #7c3aed 52%, #ff4d6d);
  --grad-soft: linear-gradient(120deg, rgba(79,70,229,.10), rgba(124,58,237,.10) 52%, rgba(255,77,109,.10));
  --glow: 0 10px 30px -8px rgba(124, 58, 237, .45);
  --shadow: 0 1px 2px rgba(22, 19, 47, .05), 0 10px 30px -14px rgba(22, 19, 47, .18);
  --shadow-lg: 0 2px 4px rgba(22, 19, 47, .06), 0 24px 48px -20px rgba(79, 70, 229, .35);
  --radius: 16px;
  --radius-lg: 24px;
  --font-serif: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --w-content: 72rem;
  --w-prose: 44rem;
}

/* --- Reset & base ------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.28rem; }
h4 { font-size: 1.08rem; }

p { margin: 0 0 1.1em; }

a {
  color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color .18s ease;
}
a:hover { color: var(--coral); }

ul, ol { padding-left: 1.4em; margin: 0 0 1.2em; }
li { margin-bottom: .45em; }

strong { font-weight: 650; }

::selection { background: #dcd2ff; }

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

/* --- Utilitaires -------------------------------------------------------- */

.container {
  max-width: var(--w-content);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: .6rem 1rem;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.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;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid #ddd0ff;
  border-radius: 999px;
  padding: .4rem 1rem;
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--grad);
  flex: none;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 46rem;
}

/* --- Header / navigation ------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(230, 227, 246, .8);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 8px 30px -12px rgba(22, 19, 47, .18); }

.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--grad);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.35rem;
}

.brand {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.brand:hover { color: var(--accent-dark); }
.brand .brand-dot {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand small {
  display: block;
  font-family: var(--font-sans);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 2vw, 1.7rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li { margin: 0; }

.site-nav a {
  position: relative;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  padding: .35rem 0;
}
.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.1rem;
  height: 2.5px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease-out);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--ink); }

.site-nav .nav-cta {
  background: var(--grad);
  background-size: 160% 160%;
  color: var(--white);
  padding: .6rem 1.25rem;
  border-radius: 999px;
  box-shadow: var(--glow);
  transition: transform .2s var(--ease-out), box-shadow .2s ease, background-position .4s ease;
}
.site-nav .nav-cta:hover {
  color: var(--white);
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow: 0 14px 34px -8px rgba(255, 77, 109, .5);
}

.nav-toggle {
  display: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .5rem .65rem;
  cursor: pointer;
  color: var(--ink);
  transition: border-color .2s ease;
}
.nav-toggle:hover { border-color: var(--violet); }
.nav-toggle svg { display: block; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    display: none;
    padding: 1rem clamp(1.1rem, 4vw, 2rem) 1.4rem;
  }
  .site-nav.is-open { display: block; animation: navIn .3s var(--ease-out); }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: .2rem; }
  .site-nav a { display: block; padding: .6rem .2rem; font-size: 1.05rem; }
  .site-nav a:not(.nav-cta)::after { display: none; }
  .site-nav .nav-cta { text-align: center; margin-top: .6rem; }
}

@keyframes navIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.2rem, 8vw, 6rem) 0 clamp(2.6rem, 6vw, 4.2rem);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: -1;
}
.hero::before {
  width: 34rem; height: 34rem;
  top: -14rem; right: -8rem;
  background: radial-gradient(circle at 30% 30%, rgba(124, 58, 237, .28), rgba(79, 70, 229, .12) 55%, transparent 75%);
  animation: blobFloat 14s ease-in-out infinite alternate;
}
.hero::after {
  width: 26rem; height: 26rem;
  bottom: -12rem; left: -8rem;
  background: radial-gradient(circle at 60% 40%, rgba(255, 77, 109, .22), rgba(255, 176, 32, .10) 55%, transparent 75%);
  animation: blobFloat 18s ease-in-out infinite alternate-reverse;
}

@keyframes blobFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(3rem, 2rem) scale(1.12); }
}

.hero h1 { max-width: 23ch; }

.hero .lead { margin-top: 1rem; }

.hero .eyebrow, .hero h1, .hero .lead, .hero .hero-actions, .hero .stat-row, .hero .breadcrumb, .hero .meta-line, .hero .hero-note {
  animation: fadeUp .7s var(--ease-out) backwards;
}
.hero h1 { animation-delay: .08s; }
.hero .lead { animation-delay: .16s; }
.hero .hero-actions { animation-delay: .24s; }
.hero .stat-row, .hero .hero-note, .hero .meta-line { animation-delay: .32s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.8rem;
}

/* Hero avec portrait */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-portrait {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 24rem;
  animation: fadeUp .7s var(--ease-out) .22s backwards;
}
@media (max-width: 860px) {
  .hero-portrait { max-width: 19rem; }
}
.hero-portrait::before {
  content: "";
  position: absolute;
  inset: -1.6rem -1.6rem auto auto;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: var(--grad);
  opacity: .18;
  filter: blur(24px);
  z-index: -1;
}

.portrait-frame {
  padding: 6px;
  background: var(--grad);
  border-radius: calc(var(--radius-lg) + 6px);
  box-shadow: 0 30px 60px -22px rgba(79, 70, 229, .5);
  transform: rotate(1.5deg);
  transition: transform .35s var(--ease-out);
}
.portrait-frame:hover { transform: rotate(0deg) scale(1.015); }
.portrait-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

.hero--sub {
  padding: clamp(2.2rem, 6vw, 4rem) 0 clamp(1.8rem, 4vw, 2.8rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60rem 20rem at 85% -20%, rgba(124, 58, 237, .10), transparent 60%),
    radial-gradient(40rem 16rem at 0% 120%, rgba(255, 77, 109, .07), transparent 60%);
}

.hero-note {
  margin-top: 1.4rem;
  font-size: .9rem;
  color: var(--muted);
}

/* --- Boutons ------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .98rem;
  font-weight: 650;
  text-decoration: none;
  border-radius: 999px;
  padding: .8rem 1.6rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease-out), box-shadow .2s ease, background-position .4s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn--primary {
  background: var(--grad);
  background-size: 160% 160%;
  color: var(--white);
  box-shadow: var(--glow);
}
.btn--primary:hover {
  color: var(--white);
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow: 0 16px 38px -10px rgba(255, 77, 109, .55);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: #cfc8f0;
}
.btn--ghost:hover {
  color: var(--accent-dark);
  border-color: var(--violet);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

/* --- Sections ------------------------------------------------------------ */

.section { padding: clamp(2.8rem, 7vw, 4.8rem) 0; }

.section--alt {
  background:
    radial-gradient(50rem 24rem at 110% 0%, rgba(79, 70, 229, .07), transparent 60%),
    var(--paper-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--dark {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(46rem 26rem at 90% -10%, rgba(124, 58, 237, .35), transparent 60%),
    radial-gradient(40rem 24rem at -10% 110%, rgba(255, 77, 109, .18), transparent 60%),
    var(--dark);
  color: #c9c5ec;
}
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark a { color: #c4b5fd; }
.section--dark a:hover { color: #ff8fa5; }

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(1.6rem, 4vw, 2.8rem);
}
.section-head p { color: var(--ink-soft); }
.section--dark .section-head p { color: #b3aede; }

/* --- Grilles & cartes ----------------------------------------------------- */

.grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.6rem);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .25s var(--ease-out), box-shadow .25s ease, border-color .25s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: #d6ccf7;
}
.card:hover::before { transform: scaleX(1); }

.card h3 { margin-bottom: .5rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent-dark); text-decoration: underline; text-decoration-color: var(--coral); }
.card p { color: var(--ink-soft); font-size: .98rem; margin-bottom: .8em; }
.card p:last-of-type { margin-bottom: 0; }

.card .card-kicker {
  font-size: .74rem;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: .6rem;
}

.card-link {
  margin-top: auto;
  padding-top: .9rem;
  font-weight: 650;
  font-size: .95rem;
  text-decoration: none;
}
.card-link::after {
  content: " →";
  display: inline-block;
  transition: transform .25s var(--ease-out);
}
.card:hover .card-link::after, .card-link:hover::after { transform: translateX(4px); }

/* --- Fil d'Ariane ---------------------------------------------------------- */

.breadcrumb {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: 0;
  margin: 0;
}
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: .4rem; color: #c9c2ea; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent-dark); }

/* --- Prose (corps d'article / de page) ------------------------------------ */

.prose {
  max-width: var(--w-prose);
}

.prose h2 {
  margin-top: 2.2em;
  padding-top: 1.2em;
  border-top: 1px solid var(--line);
}
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.prose h3 { margin-top: 1.8em; }

.prose blockquote {
  position: relative;
  margin: 1.8em 0;
  padding: 1.2em 1.4em 1.2em 1.6em;
  border-left: 4px solid transparent;
  border-image: var(--grad) 1;
  background: var(--grad-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.prose blockquote p:last-child { margin-bottom: 0; }

.prose code {
  font-size: .9em;
  background: var(--accent-soft);
  border: 1px solid #ddd0ff;
  border-radius: 6px;
  padding: .1em .4em;
}

.prose hr {
  border: none;
  height: 2px;
  background: var(--grad);
  opacity: .25;
  border-radius: 2px;
  margin: 2.5em 0;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.1rem;
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 1.6rem;
}

/* --- Tableaux -------------------------------------------------------------- */

.table-wrap { overflow-x: auto; margin: 1.6em 0; border-radius: var(--radius); box-shadow: var(--shadow); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

th, td {
  text-align: left;
  padding: .75rem .95rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  background: linear-gradient(120deg, #efeaff, #fdeef2);
  font-family: var(--font-sans);
  font-size: .78rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

tbody tr { transition: background .15s ease; }
tbody tr:hover { background: #faf8ff; }
tbody tr:last-child td { border-bottom: none; }

/* --- Étapes / process ------------------------------------------------------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
  display: grid;
  gap: 1rem;
}

.steps li {
  counter-increment: step;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem 1.25rem 4.6rem;
  position: relative;
  box-shadow: var(--shadow);
  margin: 0;
  transition: transform .25s var(--ease-out), box-shadow .25s ease, border-color .25s ease;
}
.steps li:hover {
  transform: translateX(6px);
  border-color: #d6ccf7;
  box-shadow: var(--shadow-lg);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1.15rem;
  top: 1.1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--grad);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 700;
  box-shadow: var(--glow);
}

.steps li strong { display: block; margin-bottom: .25rem; font-size: 1.05rem; font-family: var(--font-serif); letter-spacing: -.01em; }
.steps li p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* --- Listes à coche ----------------------------------------------------------- */

.checklist {
  list-style: none;
  padding: 0;
}
.checklist li {
  padding-left: 2.1em;
  position: relative;
  margin-bottom: .7em;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: .1em;
  width: 1.35em;
  height: 1.35em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8em;
  font-weight: 800;
  color: var(--white);
  background: linear-gradient(135deg, #0d9488, #06b6d4);
  border-radius: 50%;
  box-shadow: 0 4px 12px -4px rgba(13, 148, 136, .5);
}

/* --- Encadrés ------------------------------------------------------------------ */

.callout {
  position: relative;
  background: var(--accent-soft);
  border: 1px solid #ddd0ff;
  border-left: 4px solid var(--violet);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin: 1.6em 0;
  font-size: .98rem;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong:first-child { color: var(--accent-dark); }

.callout--note {
  background: var(--pine-soft);
  border-color: #b5e8dc;
  border-left-color: var(--pine);
}
.callout--note strong:first-child { color: var(--pine); }

/* --- FAQ -------------------------------------------------------------------------- */

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 1.3rem;
  margin-bottom: .8rem;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.faq details:hover { border-color: #d6ccf7; }
.faq details[open] {
  border-color: #d6ccf7;
  box-shadow: var(--shadow);
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -.01em;
  padding: 1.05rem 0;
  list-style: none;
  position: relative;
  padding-right: 2.4rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: .1rem;
  top: 50%;
  width: 1.7rem;
  height: 1.7rem;
  margin-top: -.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 50%;
  transition: transform .3s var(--ease-out), background .2s ease, color .2s ease;
}
.faq details[open] summary::after {
  content: "+";
  transform: rotate(45deg);
  background: var(--grad);
  color: var(--white);
}
.faq details > div { padding: 0 0 1.25rem; color: var(--ink-soft); }
.faq details[open] > div { animation: fadeUp .35s var(--ease-out); }
.faq details > div p:last-child { margin-bottom: 0; }

/* --- Chiffres clés -------------------------------------------------------------------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
}

.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow);
}
.stat b {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { font-size: .87rem; color: var(--muted); }

.section--dark .stat { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); }
.section--dark .stat span { color: #b3aede; }

/* --- Témoignages ------------------------------------------------------------------------ */

.testimonial {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.5rem 1.5rem;
  margin: 0;
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease-out), box-shadow .25s ease;
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testimonial::before {
  content: "“";
  position: absolute;
  top: .4rem;
  left: 1.2rem;
  font-family: var(--font-serif);
  font-size: 3.2rem;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.testimonial p {
  font-size: 1.02rem;
  color: var(--ink-soft);
}
.testimonial footer {
  font-size: .88rem;
  font-weight: 650;
  color: var(--accent-dark);
}

/* --- Boîte auteur -------------------------------------------------------------------------- */

.author-box {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  background: var(--grad-soft);
  border: 1px solid #ddd0ff;
  border-radius: var(--radius);
  padding: 1.4rem;
  margin: 2.5em 0 0;
  max-width: var(--w-prose);
}

.author-box .author-mark {
  flex: 0 0 3.4rem;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: var(--grad);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow);
}

.author-box .author-photo {
  flex: 0 0 3.6rem;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--white);
  box-shadow: var(--glow);
}

.author-box p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.author-box strong { display: block; font-size: 1.02rem; color: var(--ink); margin-bottom: .15rem; }

/* --- CTA bandeau ------------------------------------------------------------------------------ */

.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(30rem 16rem at 90% -20%, rgba(124, 58, 237, .5), transparent 65%),
    radial-gradient(26rem 14rem at 5% 120%, rgba(255, 77, 109, .35), transparent 65%),
    var(--dark);
  color: #c9c5ec;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.2rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  box-shadow: 0 30px 60px -25px rgba(28, 23, 64, .55);
}
.cta-band h2 { color: var(--white); margin: 0 0 .3em; }
.cta-band p { color: #b3aede; margin: 0; max-width: 34rem; }

/* --- Formulaire --------------------------------------------------------------------------------- */

.form-grid {
  display: grid;
  gap: 1.1rem;
  max-width: 40rem;
}

.form-field label {
  display: block;
  font-size: .9rem;
  font-weight: 650;
  margin-bottom: .35rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid #d9d4f0;
  border-radius: 12px;
  padding: .75rem .95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, .15);
}

.form-hint { font-size: .82rem; color: var(--muted); margin-top: .3rem; }

/* --- Pied de page ---------------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  background:
    radial-gradient(40rem 20rem at 100% 0%, rgba(124, 58, 237, .18), transparent 60%),
    var(--dark);
  color: #b3aede;
  margin-top: clamp(2.5rem, 7vw, 4.5rem);
  padding: clamp(2.4rem, 6vw, 3.6rem) 0 2rem;
  font-size: .93rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.4rem;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.site-footer h2 {
  font-size: .8rem;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: .9rem;
}

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: #b3aede; text-decoration: none; transition: color .18s ease, padding-left .2s var(--ease-out); }
.site-footer a:hover { color: var(--white); padding-left: .25rem; }

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .6rem;
}
.footer-brand .brand-dot {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .8rem;
  font-size: .84rem;
  color: #8d89b8;
}

/* --- Divers ------------------------------------------------------------------------------------------- */

.tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pine);
  background: var(--pine-soft);
  border: 1px solid #b5e8dc;
  border-radius: 999px;
  padding: .25rem .75rem;
  margin-bottom: 1rem;
}

.toc {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--violet);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  margin: 1.8em 0;
  max-width: var(--w-prose);
  font-size: .95rem;
  box-shadow: var(--shadow);
}
.toc strong { display: block; margin-bottom: .6rem; font-family: var(--font-serif); }
.toc ol { margin: 0; padding-left: 1.3em; }
.toc li { margin-bottom: .35em; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--accent-dark); text-decoration: underline; }

.error-page {
  text-align: center;
  padding: clamp(4rem, 12vw, 7rem) 0;
}
.error-page .error-code {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 14vw, 8.5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: .2em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Apparitions au défilement ------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s ease, transform .65s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Adresse e-mail de contact mise en avant */
.contact-email {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0.35rem 0 1rem;
  word-break: break-word;
}

/* --- Accessibilité & impression ------------------------------------------------------------------------- */

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

@media print {
  .site-header, .site-footer, .cta-band, .hero-actions, .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1; transform: none; }
}
