/* ==========================================================================
   SlimeCompanion — feuille de style principale
   ========================================================================== */

:root {
  --cream: #fdf6ea;
  --cream-deep: #f7ecd8;
  --paper: #fffdf8;
  --ink: #1a1a1a;
  --green-light: #7ed957;
  --green: #4caf50;
  --green-deep: #2e7d32;
  --green-darkest: #1b5e20;
  --pink: #ff7aa8;
  --pink-deep: #e8508a;
  --red: #e5484d;
  --red-deep: #b3261e;
  --gold: #f4b93f;
  --blue: #4aa8d8;

  --shadow-hard: 5px 5px 0 var(--ink);
  --shadow-hard-sm: 3px 3px 0 var(--ink);
  --shadow-hard-lg: 8px 8px 0 var(--ink);
  --border-thick: 3px solid var(--ink);
  --border-thicker: 4px solid var(--ink);

  --radius-blob: 42% 58% 61% 39% / 46% 40% 60% 54%;
  --radius-blob-2: 58% 42% 39% 61% / 40% 54% 46% 60%;
  --radius-card: 28px;

  --font-display: 'Baloo 2', 'Fredoka', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 90px 0;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--green-deep);
  background: #fff;
  border: var(--border-thick);
  border-radius: 999px;
  padding: 6px 18px;
  box-shadow: var(--shadow-hard-sm);
  margin-bottom: 20px;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head p {
  font-size: 1.15rem;
  color: #3a3a3a;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 16px 34px;
  border-radius: 999px;
  border: var(--border-thicker);
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow-hard);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn.btn-secondary {
  background: #fff;
  color: var(--ink);
}

.btn.btn-pink {
  background: var(--pink);
}

.btn.btn-lg {
  padding: 20px 44px;
  font-size: 1.2rem;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: var(--border-thick);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--green-darkest);
}

.brand img {
  width: 44px;
  height: 44px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 10px 16px;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.nav-links a:hover {
  background: var(--cream-deep);
}

.nav-links a.current {
  background: var(--green);
  color: #fff;
}

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

/* ---------- Sélecteur de langue ---------- */

.lang-switcher {
  position: relative;
}

.lang-toggle {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  background: #fff;
  border: var(--border-thick);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: var(--border-thick);
  border-radius: 16px;
  box-shadow: var(--shadow-hard-sm);
  list-style: none;
  margin: 0;
  padding: 8px;
  min-width: 150px;
  z-index: 200;
}

.lang-switcher.open .lang-menu {
  display: block;
}

.lang-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
}

.lang-menu a:hover {
  background: var(--cream-deep);
}

.lang-menu a.current {
  color: var(--green-deep);
  background: var(--cream-deep);
}

.lang-banner[hidden] {
  display: none;
}

.lang-banner {
  background: var(--gold);
  border-bottom: var(--border-thick);
  text-align: center;
  padding: 10px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.lang-banner a {
  text-decoration: underline;
}

.lang-banner button {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 0 4px;
}

.nav-toggle {
  display: none;
  background: none;
  border: var(--border-thick);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
}

.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

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

.hero {
  padding: 32px 0;
  overflow: hidden;
}

@media (min-width: 961px) {
  .hero {
    min-height: calc(100vh - 98px);
    display: flex;
    align-items: center;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 3.4vw, 3.1rem);
  }
}

.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-copy .eyebrow {
  background: var(--pink);
  color: #fff;
  border-color: var(--ink);
  margin-bottom: 14px;
}

.hero h1 span {
  color: var(--green-deep);
}

.hero-copy p.lead {
  font-size: 1.25rem;
  color: #3a3a3a;
  max-width: 600px;
  margin-bottom: 14px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero-more {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 600px;
}

.hero-more li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.98rem;
  color: #3a3a3a;
}

.hero-trust {
  margin-top: 22px;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--green-darkest);
}

.trust-item .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--ink);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 40px;
}

.hero-blob-bg {
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle at 50% 40%, var(--green-light) 0%, transparent 65%);
  opacity: 0.5;
  z-index: 0;
}

.hero-stage {
  position: relative;
  z-index: 1;
  width: min(380px, 80%);
  aspect-ratio: 1 / 1;
  background: var(--paper);
  border: var(--border-thicker);
  border-radius: var(--radius-blob);
  box-shadow: var(--shadow-hard-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  cursor: pointer;
  user-select: none;
}

.hero-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,0.15));
}

.hero-stage-hint {
  position: absolute;
  bottom: -54px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: var(--border-thick);
  border-radius: 999px;
  padding: 6px 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: var(--shadow-hard-sm);
  white-space: nowrap;
  z-index: 2;
}

.hero-reaction-label {
  position: absolute;
  top: -14px;
  right: 6%;
  background: var(--gold);
  border: var(--border-thick);
  border-radius: 16px;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-hard-sm);
  transform: rotate(6deg);
}

/* ---------- Bandeau confiance ---------- */

.trust-strip {
  background: var(--green-darkest);
  color: #fff;
  border-top: var(--border-thick);
  border-bottom: var(--border-thick);
}

.trust-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 46px 24px;
}

.trust-card {
  text-align: center;
}

.trust-card .icon {
  font-size: 2.1rem;
  display: block;
  margin-bottom: 10px;
}

.trust-card h4 {
  font-family: var(--font-display);
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.trust-card p {
  font-size: 0.92rem;
  color: #dff2df;
  margin: 0;
}

/* ---------- Cartes / grilles ---------- */

.card {
  background: var(--paper);
  border: var(--border-thick);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-hard);
  padding: 30px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.grid-social {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  text-align: center;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-card .badge {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  border: 2px solid var(--ink);
}

.badge.badge-live { background: var(--green-light); }
.badge.badge-soon { background: var(--gold); }
.badge.badge-next { background: #cfe3ff; }

/* ---------- Section jeux ---------- */

.games-section {
  background: var(--cream-deep);
  border-top: var(--border-thick);
  border-bottom: var(--border-thick);
}

.game-card {
  background: var(--paper);
  border: var(--border-thick);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-hard);
  padding: 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.game-card .btn-secondary {
  align-self: flex-start;
  margin-top: 6px;
  font-size: 0.9rem;
  padding: 10px 20px;
}

.game-card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* ---------- Modes de visibilité ---------- */

.visibility-demo {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.visibility-modes {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.visibility-mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: none;
  border: none;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.visibility-mode:hover { background: var(--paper); }

.visibility-mode.active { background: var(--green); color: #fff; }

.visibility-mode-icon { font-size: 1.1rem; }

.visibility-stage {
  position: relative;
  width: min(220px, 60%);
  aspect-ratio: 1 / 1;
  margin: 0 auto 16px;
  background: var(--paper);
  border: var(--border-thicker);
  border-radius: var(--radius-blob);
  box-shadow: var(--shadow-hard-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.visibility-stage-slime {
  position: absolute;
  inset: 18%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.visibility-stage-slime img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.visibility-eyes {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Repère la position et la taille exactes des yeux dessinés sur
   /img/slime/joie1.png (analyse pixel de l'image), converties dans le
   repère de .visibility-stage sachant que l'image occupe la zone
   centrale définie par inset: 18% sur .visibility-stage-slime — pour
   que les yeux tombent pile à l'endroit où était le regard du slime. */
.visibility-eye {
  position: absolute;
  top: 42.8%;
  width: 13%;
  height: 15.4%;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.visibility-eye--left { left: 39.9%; }
.visibility-eye--right { left: 60.1%; }

.visibility-pupil {
  position: relative;
  width: 88%;
  height: 88%;
  border-radius: 50%;
  background: var(--ink);
  will-change: transform;
}

.visibility-pupil::before,
.visibility-pupil::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 50%;
}

.visibility-pupil::before { width: 32%; height: 32%; top: 16%; left: 18%; }
.visibility-pupil::after { width: 14%; height: 14%; top: 56%; left: 60%; }

.visibility-stage[data-mode="visible"] .visibility-stage-slime { opacity: 1; }
.visibility-stage[data-mode="eyes"] .visibility-eyes { opacity: 1; }
.visibility-stage[data-mode="hidden"][data-last-mode="visible"]:hover .visibility-stage-slime { opacity: 0.18; }
.visibility-stage[data-mode="hidden"][data-last-mode="eyes"]:hover .visibility-eyes { opacity: 0.18; }

.visibility-stage-caption {
  min-height: 1.4em;
  font-weight: 600;
  color: #666;
}

.visibility-punchline {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  max-width: 480px;
  margin: 30px auto 0;
}

/* ---------- Persona ---------- */

.persona-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.persona-card {
  background: var(--paper);
  border: var(--border-thick);
  border-radius: 24px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow-hard-sm);
  position: relative;
}

.persona-card.free {
  background: #eaf7ea;
}

.persona-card.paid::after {
  content: "★ Payant";
  position: absolute;
  top: -12px;
  right: -8px;
  background: var(--pink);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  transform: rotate(6deg);
}

.persona-card h4 {
  font-family: var(--font-display);
  margin: 6px 0 4px;
}

.persona-card p {
  font-size: 0.88rem;
  color: #444;
  margin: 0;
}

.persona-card.name-only {
  padding: 18px 14px;
}

.persona-card.name-only h4 {
  margin: 0;
}

/* ---------- Tableau tarifs ---------- */

.pricing-table-wrap {
  overflow-x: auto;
  border: var(--border-thicker);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-hard-lg);
  background: var(--paper);
}

table.pricing {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

table.pricing th,
table.pricing td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 2px solid #e8e0cd;
  vertical-align: top;
}

table.pricing thead th {
  font-family: var(--font-display);
  font-size: 1.05rem;
  border-bottom: var(--border-thick);
  position: sticky;
  top: 0;
  background: var(--paper);
}

table.pricing thead th:first-child { width: 26%; }

table.pricing th.col-free {
  color: var(--green-deep);
}

table.pricing th.col-paid {
  color: var(--pink-deep);
}

table.pricing td.feature-name {
  font-family: var(--font-display);
  font-weight: 700;
}

table.pricing td.col-paid {
  background: #fff6fa;
  font-weight: 600;
}

table.pricing tbody tr:last-child td {
  border-bottom: none;
}

/* ---------- Stats mockup ---------- */

.stats-mock {
  background: var(--paper);
  border: var(--border-thicker);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-hard-lg);
  padding: 26px;
}

.stats-mock .mock-bar {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 160px;
  margin: 20px 0;
}

.stats-mock .mock-bar div {
  flex: 1;
  background: linear-gradient(180deg, var(--green-light), var(--green-deep));
  border: 2px solid var(--ink);
  border-radius: 8px 8px 0 0;
}

/* ---------- CTA final ---------- */

.cta-final {
  background: var(--green-deep);
  color: #fff;
  border-top: var(--border-thicker);
  text-align: center;
}

.cta-final h2 { color: #fff; }
.cta-final p { color: #e7f5e7; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #ece7d8;
  padding: 56px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.site-footer h4 {
  font-family: var(--font-display);
  color: #fff;
  margin-bottom: 14px;
}

.site-footer a {
  display: block;
  color: #c9c3b2;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand img { width: 36px; height: 36px; }

.footer-bottom {
  border-top: 1px solid #3a3a3a;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: #948e7c;
}

/* ---------- Pages internes génériques ---------- */

.page-hero {
  padding: 56px 0 40px;
  text-align: center;
}

.page-hero .eyebrow {
  margin-left: auto;
  margin-right: auto;
}

.legal-content, .contact-content {
  max-width: 780px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 1.6em;
}

.legal-content a {
  color: var(--green-deep);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--green-darkest);
}

.link-underline {
  color: var(--green-deep);
  text-decoration: underline;
}

.link-underline:hover {
  color: var(--green-darkest);
}

.legal-content .notice {
  background: #fff6e0;
  border: var(--border-thick);
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: var(--shadow-hard-sm);
  margin-bottom: 30px;
}

.contact-card {
  background: var(--paper);
  border: var(--border-thicker);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-hard-lg);
  padding: 40px;
  text-align: center;
}

.contact-card .email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--green-deep);
  background: var(--cream-deep);
  border: var(--border-thick);
  border-radius: 999px;
  padding: 14px 30px;
  margin: 18px 0;
}

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

.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }

.divider-blob {
  width: 60px;
  height: 60px;
  background: var(--green);
  border: var(--border-thick);
  border-radius: var(--radius-blob-2);
  margin: 0 auto 24px;
}

.roadmap {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.roadmap .step {
  flex: 1;
  background: var(--paper);
  border: var(--border-thick);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-hard-sm);
}

.roadmap .step .step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--green-deep);
}

/* ---------- Lightbox (zoom capture d'écran) ---------- */

[data-lightbox] {
  cursor: zoom-in;
}

body.lightbox-locked {
  overflow: hidden;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(26, 26, 26, 0.85);
}

.lightbox-overlay.is-open {
  display: flex;
}

.lightbox-overlay img {
  max-width: 96vw;
  max-height: 96vh;
  width: auto;
  height: auto;
  border-radius: 16px;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard-lg);
  cursor: zoom-out;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--cream);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-hard-sm);
}

@media (max-width: 600px) {
  .lightbox-overlay { padding: 16px; }
  .lightbox-close { top: 12px; right: 12px; width: 38px; height: 38px; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .hero-visual { order: -1; }
  .trust-strip .container { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .persona-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .roadmap { flex-direction: column; }
  .grid-social { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 880px) {
  .nav-links, .nav-cta .btn-secondary { display: none; }
  .nav-toggle { display: inline-flex; }
  body.nav-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--cream);
    border-bottom: var(--border-thick);
    padding: 10px 24px 20px;
    gap: 4px;
  }
  section { padding: 60px 0; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .persona-grid { grid-template-columns: 1fr 1fr; }
  .grid-social { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Apparition en fondu des sections au défilement (classe posée par main.js,
   donc sans JS tout reste visible ; le hero n'est jamais concerné) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
