/* =========================================================
   Aikoflow — feuille de style
   Palette : graphite profond + lime électrique + violet
   Mobile-first, sans dépendance externe.
   ========================================================= */

:root {
  /* Couleurs */
  --ink:          #0F1218;   /* fond sombre / texte principal */
  --ink-soft:     #1A1F29;   /* surfaces sombres secondaires */
  --paper:        #F7F6F2;   /* fond clair, légèrement chaud */
  --paper-pure:   #FFFFFF;
  --line:         #E2DFD6;   /* bordures sur fond clair */
  --line-dark:    rgba(255, 255, 255, .12);

  --text:         #14181F;
  --text-muted:   #5C6472;
  --text-invert:  #F3F4F2;
  --text-invert-muted: rgba(243, 244, 242, .68);

  --lime:         #C7F94F;   /* accent principal */
  --lime-deep:    #93C21F;   /* variante lisible sur fond clair */
  --violet:       #7C5CFF;   /* accent secondaire */
  --violet-deep:  #5B3DF5;

  /* 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 */
  --container: 1140px;
  --gutter: 1.25rem;
  --radius: 16px;
  --radius-sm: 10px;
  --section-y: 4.5rem;

  --shadow-sm: 0 1px 2px rgba(15, 18, 24, .06), 0 4px 12px rgba(15, 18, 24, .05);
  --shadow-md: 0 12px 32px rgba(15, 18, 24, .10);

  --ease: cubic-bezier(.22, .8, .3, 1);
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  margin: 0 0 .6em;
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 6.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4.4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--text-invert);
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Éléments communs ---------- */
.eyebrow {
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: .9rem;
}
.section-dark .eyebrow,
.hero .eyebrow { color: var(--lime); }

.hl {
  /* Dégradé volontairement clair de bout en bout : un violet trop foncé
     deviendrait illisible sur le fond graphite du hero. */
  background: linear-gradient(90deg, var(--lime) 0%, #B9F0A6 40%, #AFA0FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: .975rem;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 6px 20px rgba(199, 249, 79, .28);
}
.btn-primary:hover { background: #d3ff6b; box-shadow: 0 10px 26px rgba(199, 249, 79, .36); }

.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--text-invert);
  opacity: .9;
}
.btn-ghost:hover { opacity: 1; background: rgba(255, 255, 255, .07); }

.btn-sm { padding: .6rem 1.15rem; font-size: .9rem; }
.btn-block { width: 100%; }

.section { padding-block: var(--section-y); }
.section-head { max-width: 44rem; margin-bottom: 2.75rem; }
.section-lead { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 0; }

.section-dark {
  background: var(--ink);
  color: var(--text-invert);
}
.section-dark .section-lead { color: var(--text-invert-muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 246, 242, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 20px rgba(15, 18, 24, .05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -.02em;
}
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo-text { line-height: 1; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav mobile : repliée par défaut */
.nav {
  position: absolute;
  inset: 100% 0 auto 0;
  background: var(--paper-pure);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 1rem var(--gutter) 1.5rem;
  display: grid;
  gap: 1rem;
  transform-origin: top;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
}
.nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-list { display: grid; gap: .25rem; }
.nav-list a {
  display: block;
  padding: .7rem .25rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color .18s var(--ease);
}
.nav-list a:hover { color: var(--violet-deep); }
.nav-cta { justify-self: start; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--text-invert);
  padding-block: 4rem 4.5rem;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 34rem at 12% -8%, rgba(124, 92, 255, .30), transparent 62%),
    radial-gradient(46rem 30rem at 96% 8%, rgba(199, 249, 79, .18), transparent 60%),
    radial-gradient(40rem 28rem at 70% 110%, rgba(124, 92, 255, .14), transparent 60%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 70% at 50% 30%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000 20%, transparent 100%);
}

.hero-inner { display: grid; gap: 3rem; }
.hero-copy { max-width: 40rem; }
.hero-sub {
  font-size: 1.06rem;
  color: var(--text-invert-muted);
  margin-bottom: 2rem;
  max-width: 34rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2.25rem; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  font-size: .9rem;
  color: var(--text-invert-muted);
}
.hero-points li { display: flex; align-items: center; gap: .5rem; }
.hero-points li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
  flex: none;
}

.hero-visual { justify-self: center; width: min(100%, 420px); }
.hero-svg { width: 100%; height: auto; }
.hero-net { animation: float 7s ease-in-out infinite; transform-origin: center; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ---------- Services ---------- */
.cards { display: grid; gap: 1.5rem; }

.card {
  background: var(--paper-pure);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cfcabb;
}

.card-icon {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, rgba(199, 249, 79, .45), rgba(124, 92, 255, .22));
  color: var(--ink);
}
.card-icon svg { width: 26px; height: 26px; }

.card-badge {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 .75rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(147, 194, 31, .16);
  color: #5C7B0E;
}
.card-badge-sub { background: rgba(91, 61, 245, .12); color: var(--violet-deep); }

.card-lead { color: var(--text-muted); }

.card-list { display: grid; gap: .85rem; margin: 1.25rem 0 1.75rem; }
.card-list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: .95rem;
  color: var(--text-muted);
}
.card-list li strong { color: var(--text); font-weight: 600; }
.card-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: 14px; height: 8px;
  border-left: 2px solid var(--lime-deep);
  border-bottom: 2px solid var(--lime-deep);
  transform: rotate(-45deg);
}

.card-link {
  margin-top: auto;
  font-weight: 600;
  color: var(--violet-deep);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.card-link span { transition: transform .2s var(--ease); }
.card-link:hover span { transform: translateX(4px); }

/* ---------- Agents IA (abonnements) ---------- */
.agents {
  margin-top: 3.5rem;
  scroll-margin-top: 96px;
}
.agents-title {
  font-size: 1.05rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.agents-grid { display: grid; gap: 1rem; }

.agent {
  position: relative;
  background: var(--paper-pure);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.agent:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.agent-icon {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(15, 18, 24, .05);
  color: var(--ink);
  margin-bottom: 1rem;
}
.agent-icon svg { width: 22px; height: 22px; }

.agent h4 {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 .5rem;
}
.agent p { font-size: .9rem; color: var(--text-muted); margin-bottom: 1rem; }

.agent-price {
  margin: auto 0 0;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--violet-deep);
}

/* Carte master : mise en avant */
.agent-master {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--text-invert);
}
.agent-master h4 { color: var(--text-invert); }
.agent-master p { color: var(--text-invert-muted); }
.agent-master .agent-icon { background: rgba(199, 249, 79, .18); color: var(--lime); }
.agent-master .agent-price { border-top-color: var(--line-dark); color: var(--lime); }

.agent-tag {
  position: absolute;
  top: -.7rem; left: 1.35rem;
  margin: 0;
  padding: .25rem .6rem;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink) !important;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.agents-note {
  margin: 1.75rem 0 1.25rem;
  color: var(--text-muted);
  font-size: .95rem;
  max-width: 44rem;
}
.agents-cta { align-self: start; }

/* ---------- Pourquoi Aikoflow ---------- */
.features { display: grid; gap: 1.25rem; }
.feature {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.feature:hover { border-color: rgba(199, 249, 79, .45); transform: translateY(-3px); }
.feature-num {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .1em;
  color: var(--lime);
  margin-bottom: .75rem;
}
.feature p { color: var(--text-invert-muted); margin-bottom: 0; font-size: .95rem; }

/* ---------- À propos ---------- */
.about-inner { display: grid; gap: 2.5rem; align-items: start; }
.about-copy p { color: var(--text-muted); }
.about-copy strong { color: var(--text); }
.about-copy .btn { margin-top: .75rem; }

.stats { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats li {
  background: var(--paper-pure);
  padding: 1.25rem 1.5rem;
  display: grid;
  gap: .15rem;
}
.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink);
}
.stat-label { font-size: .875rem; color: var(--text-muted); }

/* ---------- Contact ---------- */
.section-contact {
  background:
    linear-gradient(180deg, var(--paper) 0%, #EEECE4 100%);
  border-top: 1px solid var(--line);
}
.contact-inner { display: grid; gap: 2.5rem; align-items: start; }
.contact-copy p { color: var(--text-muted); }
.contact-direct a { color: var(--violet-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.contact-form {
  background: var(--paper-pure);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 1.1rem;
}
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field textarea {
  width: 100%;
  padding: .8rem .95rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #9AA1AC; }
.field input:focus, .field textarea:focus {
  outline: none;
  background: var(--paper-pure);
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, .16);
}
.field.has-error input, .field.has-error textarea { border-color: #C63A3A; }

.error { color: #C63A3A; font-size: .825rem; margin: 0; min-height: 0; }
.form-note { font-size: .8rem; color: var(--text-muted); margin: 0; }
.form-status { font-size: .9rem; font-weight: 600; color: var(--lime-deep); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--text-invert-muted);
  padding-block: 3rem 1.5rem;
  font-size: .925rem;
}
.footer-inner { display: grid; gap: 2rem; }
.footer-brand .logo { color: var(--text-invert); margin-bottom: .75rem; }
.footer-brand p { max-width: 22rem; margin: 0; }

.footer-col h3 {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-invert);
  margin-bottom: .9rem;
}
.footer-col ul { display: grid; gap: .5rem; }
.footer-col a { transition: color .18s var(--ease); }
.footer-col a:hover { color: var(--lime); }

.socials a { display: inline-flex; align-items: center; gap: .55rem; }
.socials svg { width: 18px; height: 18px; flex: none; }

.legal { margin: 0; line-height: 1.8; }
/* Liens juridiques du pied de page, au-dessus du bloc d'identification */
.footer-col ul + .legal {
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line-dark);
  font-size: .9rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  display: grid;
  gap: .35rem;
  font-size: .85rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Animations au scroll ---------- */
/* Le masquage initial n'est appliqué que si JS est actif (classe posée
   par le script inline du <head>) : sans JS, tout reste visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Points de rupture
   ========================================================= */
@media (min-width: 600px) {
  :root { --section-y: 5.5rem; --gutter: 1.75rem; }
  .agents-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .footer-bottom { grid-template-columns: 1fr auto; align-items: center; }
  .stats { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  :root { --section-y: 7rem; }

  html { scroll-padding-top: 96px; }

  /* Nav desktop */
  .nav-toggle { display: none; }
  .nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-list { display: flex; gap: 1.75rem; }
  .nav-list a { padding: .25rem 0; position: relative; }
  .nav-list a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 100%; height: 2px;
    background: var(--lime-deep);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s var(--ease);
  }
  .nav-list a:hover::after { transform: scaleX(1); }

  .hero { padding-block: 6rem 6.5rem; }
  .hero-inner { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 4rem; }

  .cards { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .card { padding: 2.25rem 2rem; }

  .agents { margin-top: 5rem; }
  .agents-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

  .features { grid-template-columns: repeat(4, 1fr); }

  .about-inner { grid-template-columns: 1.2fr .8fr; gap: 4rem; }
  .stats { grid-template-columns: 1fr; }

  .contact-inner { grid-template-columns: .9fr 1.1fr; gap: 4rem; }
  .contact-form { padding: 2rem; }

  .footer-inner { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
}

/* =========================================================
   Pages légales (CGV, mentions légales, confidentialité)
   Colonne de lecture étroite + sommaire collant sur desktop.
   ========================================================= */

.legal-head {
  padding-block: 2.75rem 2rem;
  border-bottom: 1px solid var(--line);
}
.legal-head h1 {
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  margin-bottom: .5rem;
}
.legal-meta {
  color: var(--text-muted);
  font-size: .9rem;
  margin: 0;
}
.legal-meta strong { color: var(--text); font-weight: 600; }

.legal-layout {
  display: grid;
  gap: 2.5rem;
  padding-block: 2.5rem 4rem;
  align-items: start;
}

/* ---------- Sommaire ---------- */
.legal-toc {
  background: var(--paper-pure);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-sm);
}
.legal-toc h2 {
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: .85rem;
}
.legal-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .4rem;
  counter-reset: toc;
  font-size: .9rem;
}
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: flex;
  gap: .55rem;
  color: var(--text-muted);
  transition: color .18s var(--ease);
}
.legal-toc a::before {
  content: counter(toc);
  flex: none;
  min-width: 1.35rem;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--lime-deep);
}
.legal-toc a:hover { color: var(--text); }

/* ---------- Corps du document ---------- */
.legal-body {
  max-width: 42rem;
  font-size: 1.02rem;
}
.legal-body > section + section { margin-top: 2.5rem; }
.legal-body h2 {
  font-size: 1.35rem;
  margin-bottom: .75rem;
  scroll-margin-top: 92px;
}
.legal-body h3 {
  font-size: 1.02rem;
  margin: 1.75rem 0 .5rem;
  color: var(--text);
}
.legal-body p,
.legal-body li { color: var(--text-muted); }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body a { color: var(--violet-deep); text-decoration: underline; text-underline-offset: 2px; }
.legal-body a:hover { color: var(--ink); }

.legal-body ul {
  display: grid;
  gap: .55rem;
  margin: 0 0 1rem;
  padding: 0;
}
.legal-body ul li {
  position: relative;
  padding-left: 1.4rem;
}
.legal-body ul li::before {
  content: "";
  position: absolute;
  left: .35rem;
  top: .7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime-deep);
}

.legal-body dl { margin: 0 0 1rem; }
.legal-body dt {
  font-weight: 600;
  color: var(--text);
  margin-top: .75rem;
}
.legal-body dd { margin: 0; color: var(--text-muted); }

/* Encart de mise en avant (clause importante, coordonnées) */
.legal-callout {
  background: var(--paper-pure);
  border: 1px solid var(--line);
  border-left: 3px solid var(--lime-deep);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  margin: 0 0 1.25rem;
}
.legal-callout p:last-child { margin-bottom: 0; }

/* Tableau des traitements de données */
.legal-table-wrap {
  overflow-x: auto;
  margin: 0 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-pure);
}
.legal-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: .9rem;
}
.legal-table th,
.legal-table td {
  text-align: left;
  padding: .7rem .85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.legal-table th {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.legal-table td { color: var(--text-muted); }
.legal-table tr:last-child th,
.legal-table tr:last-child td { border-bottom: 0; }

/* ---------- Navigation entre pages légales ---------- */
.legal-switch {
  display: grid;
  gap: .75rem;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.legal-switch a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-pure);
  font-weight: 600;
  font-size: .95rem;
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.legal-switch a:hover { border-color: var(--lime-deep); transform: translateY(-2px); }
.legal-switch span { color: var(--lime-deep); }

@media (min-width: 900px) {
  .legal-layout { grid-template-columns: 15rem 1fr; gap: 3.5rem; }
  .legal-toc { position: sticky; top: 92px; }
  .legal-switch { grid-template-columns: 1fr 1fr; }
}

/* ---------- Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Impression ---------- */
@media print {
  .site-header, .nav, .hero-visual, .contact-form,
  .legal-toc, .legal-switch, .skip-link { display: none; }
  body { background: #fff; color: #000; }
  /* Les CGV sont souvent imprimées ou enregistrées en PDF : une seule
     colonne pleine largeur, sans décor. */
  .legal-layout { display: block; padding-block: 0; }
  .legal-body { max-width: none; }
  .legal-body p, .legal-body li, .legal-table td { color: #000; }
  .legal-callout { border: 1px solid #999; }
  .legal-body h2 { break-after: avoid; }
  .legal-body > section { break-inside: auto; }
}
