/* ─────────────────────────────────────────────
   TRIBU — custom.css
   ───────────────────────────────────────────── */

/* ─── POLICES ─── */
/* Peachy Queen JF : place le fichier dans fonts/PeachyQueenJF.woff2 */
@font-face {
  font-family: 'Peachy Queen JF';
  src: url('peachy-keen-jf.otf') format('opentype');
  font-weight: normal;
  font-style:  normal;
  font-display: swap;
}

/* ─── RESET + VARIABLES ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:       #22a86a;
  --green-dark:  #1a8a56;
  --green-light: #e8f7f0;
  --green-mid:   #d0f0e0;
  --text-dark:   #1a2e22;
  --text-mid:    #4a5568;
  --text-light:  #718096;
  --yellow:      #f5c400;
  --white:       #ffffff;
  --bg-light:    #f7faf8;
  --border:      #e2e8f0;
  --radius:      18px;
  --nav-h:       70px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

/* ─── LUCIDE ICONS ─── */
i[data-lucide] { display: inline-flex; align-items: center; justify-content: center; }

.theme-icon svg      { width: 24px; height: 24px; color: white; stroke-width: 2; }
.icon-yellow svg     { color: rgba(0,0,0,.6); }
.profil-icon svg     { width: 22px; height: 22px; stroke-width: 2; }
.profil-icon-pink svg   { color: #d0547a; }
.profil-icon-lilac svg  { color: #7c5cbf; }
.espace-icon svg     { width: 26px; height: 26px; stroke-width: 2; }
.defi-icon-circle svg{ width: 22px; height: 22px; stroke-width: 2; color: var(--text-mid); }
.fc-stat-icon svg    { width: 18px; height: 18px; stroke-width: 2; color: var(--text-mid); }
.fc-avatar svg       { width: 22px; height: 22px; stroke-width: 2; color: white; }
.cta-heart svg       { width: 28px; height: 28px; stroke-width: 2; color: white; fill: white; }
.hero-badge svg      { width: 16px; height: 16px; stroke-width: 2; color: var(--green); }
.defi-pts-badge svg  { width: 13px; height: 13px; stroke-width: 2.5; color: #444; }
.defi-meta svg       { width: 13px; height: 13px; stroke-width: 2; color: var(--text-light); }
.btn-submit svg      { width: 16px; height: 16px; stroke-width: 2.5; color: white; }
.chip-icon svg       { width: 16px; height: 16px; stroke-width: 2; color: var(--text-mid); }
.footer-love svg     { width: 13px; height: 13px; stroke-width: 2; color: var(--yellow); fill: var(--yellow); }
.nav-hamburger svg   { width: 24px; height: 24px; stroke-width: 2; color: var(--text-dark); }

/* ─── NAV ─── */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 60px; height: var(--nav-h);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Peachy Queen JF', 'Outfit', sans-serif;
  font-size: 1.6rem; font-weight: 900;
  color: var(--green); text-decoration: none;
  flex-shrink: 0;
}

.nav-links {
  display: flex; align-items: center; gap: 36px;
}

.nav-links a {
  text-decoration: none; color: var(--text-dark);
  font-size: .95rem; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--green); }

.btn-demo-nav {
  background: var(--green); color: white;
  border: none; border-radius: 50px;
  padding: 10px 22px; font-size: .85rem;
  font-weight: 700; letter-spacing: .04em;
  cursor: pointer; transition: background .2s, transform .15s;
  font-family: 'Outfit', sans-serif; white-space: nowrap;
}
.btn-demo-nav:hover { background: var(--green-dark); transform: scale(1.03); }

.nav-hamburger {
  display: none;
  align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  padding: 6px; border-radius: 8px;
  transition: background .2s;
}
.nav-hamburger:hover { background: var(--bg-light); }

/* ─── HERO ─── */
#hero {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; min-height: calc(100vh - var(--nav-h));
  padding: 80px 60px 60px;
  background: linear-gradient(160deg, #ffffff 55%, #eef9f2 100%);
  position: relative; overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, #c8f0db 0%, transparent 70%);
  border-radius: 50%; z-index: 0; pointer-events: none;
}

.hero-left { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; border: 1px solid var(--border);
  border-radius: 50px; padding: 8px 16px;
  font-size: .85rem; font-weight: 600;
  color: var(--text-dark); margin-bottom: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.hero-title {
  font-family: 'Peachy Queen JF', 'Outfit', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900; line-height: 1.15;
  color: var(--text-dark); margin-bottom: 20px;
}
.hero-title .accent { color: var(--green); }

.hero-sub {
  font-size: 1.05rem; color: var(--text-light);
  margin-bottom: 36px; line-height: 1.6;
}

.btn-cta {
  display: inline-block;
  border: 2px solid var(--text-dark);
  background: transparent; color: var(--text-dark);
  border-radius: 50px; padding: 14px 30px;
  font-size: .85rem; font-weight: 800;
  letter-spacing: .06em; cursor: pointer;
  text-decoration: none;
  transition: background .2s, color .2s, transform .15s;
  font-family: 'Outfit', sans-serif;
}
.btn-cta:hover { background: var(--text-dark); color: white; transform: scale(1.03); }

/* ─── SCORE WIDGET ─── */
.hero-right {
  position: relative; z-index: 1;
  display: flex; justify-content: center; align-items: center;
}

.score-widget { position: relative; width: 320px; height: 320px; }

.score-circle-bg {
  width: 100%; height: 100%;
  background: radial-gradient(circle, #d8f5e8 0%, #eef9f2 60%, transparent 100%);
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}

.score-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.score-num {
  font-family: 'Peachy Queen JF', 'Outfit', sans-serif;
  font-size: 5rem; font-weight: 900;
  color: var(--green); line-height: 1;
  position: relative; z-index: 1;
}

.score-label {
  font-size: .9rem; color: var(--text-mid);
  font-weight: 600; position: relative; z-index: 1;
}

.score-chip {
  position: absolute;
  background: white; border-radius: 14px;
  padding: 8px 14px; display: flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.10);
  font-size: .8rem; font-weight: 600; white-space: nowrap;
}
.chip-icon { display: flex; align-items: center; }
.chip-sport   { top: 20px; left: -30px; }
.chip-cuisine { top: 90px; right: -40px; }
.chip-lecture { bottom: 10px; left: 50%; transform: translateX(-50%); }

/* ─── SECTIONS GENERIC ─── */
section { padding: 90px 60px; }

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

.section-title {
  font-family: 'Peachy Queen JF', 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 900; color: var(--text-dark);
  margin-bottom: 14px; line-height: 1.25;
}
.section-title .accent { color: var(--green); }
.section-sub { font-size: 1rem; color: var(--text-light); line-height: 1.7; }

/* ─── THÉMATIQUES ─── */
#themes { background: white; }

.themes-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 20px; max-width: 1100px; margin: 0 auto;
}

.theme-card {
  flex: 0 0 calc(33.333% - 14px);
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  transition: box-shadow .2s, transform .2s;
}
.theme-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
  transform: translateY(-2px);
}

.theme-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.icon-green  { background: var(--green); }
.icon-yellow { background: var(--yellow); }

.theme-card h3 {
  font-family: 'Peachy Queen JF', 'Outfit', sans-serif;
  font-size: 1.05rem; font-weight: 800;
  margin-bottom: 10px; color: var(--text-dark);
}
.theme-card p { font-size: .9rem; color: var(--text-light); line-height: 1.6; }

/* ─── DASHBOARD ─── */
#dashboard {
  background: white;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 90px 60px;
}

.dashboard-title {
  font-family: 'Peachy Queen JF', 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  font-weight: 900; margin-bottom: 20px; line-height: 1.25;
}
.dashboard-title .accent { color: var(--green); }
.dashboard-sub { font-size: 1rem; color: var(--text-light); line-height: 1.7; margin-bottom: 28px; }

.check-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.check-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: .95rem; color: var(--text-mid); font-weight: 500;
}
.check-list li::before {
  content: '✓';
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; min-width: 24px;
  background: var(--green); color: white;
  border-radius: 50%; font-size: .75rem; font-weight: 800;
}

/* ─── FAMILY CARD ─── */
.family-card {
  background: white; border: 1px solid var(--border);
  border-radius: 20px; padding: 28px;
  box-shadow: 0 8px 40px rgba(0,0,0,.08);
}

.fc-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 20px;
}
.fc-header h3 {
  font-family: 'Peachy Queen JF', 'Outfit', sans-serif;
  font-size: 1.15rem; font-weight: 800; color: var(--text-dark);
}
.fc-header small { font-size: .8rem; color: var(--text-light); }

.fc-badge {
  display: flex; align-items: center; gap: 6px;
  background: var(--green-light); border-radius: 50px;
  padding: 5px 12px; font-size: .78rem;
  color: var(--green); font-weight: 700; white-space: nowrap;
}
.fc-badge::before { content: '●'; font-size: .6rem; }

.fc-stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 12px; margin-bottom: 22px;
}

.fc-stat {
  background: var(--bg-light); border-radius: 12px;
  padding: 14px 10px; text-align: center;
}
.fc-stat-icon {
  margin-bottom: 6px;
  display: flex; align-items: center; justify-content: center;
}
.fc-stat-val {
  font-family: 'Peachy Queen JF', 'Outfit', sans-serif;
  font-size: 1.3rem; font-weight: 900; color: var(--text-dark); display: block;
}
.fc-stat-lbl { font-size: .72rem; color: var(--text-light); }

.fc-members-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  color: var(--text-light); margin-bottom: 14px;
}

.fc-member {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 12px; border-radius: 12px; margin-bottom: 6px;
}
.fc-member.active { background: var(--green-light); }

.fc-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  flex-shrink: 0; background: #ccc;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.fc-avatar-wrap { position: relative; }

.fc-check {
  position: absolute; bottom: 0; right: 0;
  width: 16px; height: 16px;
  background: var(--green); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .55rem; color: white; font-weight: 800;
  border: 2px solid white;
}

.fc-member-info { flex: 1; min-width: 0; }
.fc-member-name { font-weight: 700; font-size: .9rem; color: var(--text-dark); }
.fc-member-role { font-size: .78rem; color: var(--text-light); }

.fc-pts {
  font-family: 'Peachy Queen JF', 'Outfit', sans-serif;
  font-size: 1.4rem; font-weight: 900; color: var(--green);
}
.fc-pts-lbl { font-size: .72rem; color: var(--text-light); display: block; text-align: right; }

/* ─── DÉFIS ─── */
#defis { background: white; padding: 90px 60px; }

.defis-header { text-align: center; max-width: 640px; margin: 0 auto 50px; }

.defis-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 20px; max-width: 1100px; margin: 0 auto;
}

.defi-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
}
.defi-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,.1); transform: translateY(-3px); }

.defi-top {
  height: 120px; position: relative;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.defi-top-purple { background: #ede9f8; }
.defi-top-yellow { background: #fef9e7; }
.defi-top-green  { background: #e8f8ef; }
.defi-top-blue   { background: #e8f4fd; }

.defi-icon-circle {
  width: 52px; height: 52px; background: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.defi-pts-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--yellow); border-radius: 50px;
  padding: 4px 12px; font-size: .78rem;
  font-weight: 800; color: #333;
  display: flex; align-items: center; gap: 4px;
}

.defi-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.defi-body h3 {
  font-family: 'Peachy Queen JF', 'Outfit', sans-serif;
  font-size: .95rem; font-weight: 800;
  color: var(--text-dark); margin-bottom: 8px;
}
.defi-body p { font-size: .82rem; color: var(--text-light); line-height: 1.5; margin-bottom: 12px; flex: 1; }

.defi-meta {
  display: flex; gap: 16px;
  font-size: .78rem; color: var(--text-light); margin-bottom: 16px;
}
.defi-meta span { display: flex; align-items: center; gap: 4px; }

.btn-participer {
  width: 100%; background: var(--green); color: white;
  border: none; border-radius: 50px; padding: 11px;
  font-size: .78rem; font-weight: 800; letter-spacing: .06em;
  cursor: pointer; transition: background .2s;
  font-family: 'Outfit', sans-serif;
}
.btn-participer:hover { background: var(--green-dark); }

/* ─── PROFILS ─── */
#profils { background: var(--bg-light); }

.profils-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 20px; max-width: 1000px; margin: 0 auto;
}

.profil-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  transition: box-shadow .2s, transform .2s;
}
.profil-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,.08); transform: translateY(-2px); }

.profil-icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.profil-icon-pink  { background: #fde8f0; }
.profil-icon-lilac { background: #ede8fb; }

.profil-card h3 {
  font-family: 'Peachy Queen JF', 'Outfit', sans-serif;
  font-size: 1.05rem; font-weight: 800;
  margin-bottom: 10px; color: var(--text-dark);
}
.profil-card p { font-size: .88rem; color: var(--text-light); line-height: 1.6; }

/* ─── ESPACE ─── */
#espace { background: var(--bg-light); padding: 0 60px 90px; }

.espace-box {
  max-width: 1000px; margin: 0 auto;
  background: white; border: 1px solid var(--border);
  border-radius: 24px; padding: 60px;
}
.espace-box h2 {
  font-family: 'Peachy Queen JF', 'Outfit', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 900; text-align: center;
  margin-bottom: 48px; color: var(--text-dark);
}

.espace-cols {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 40px; text-align: center;
}

.espace-icon {
  width: 60px; height: 60px; background: var(--green-light);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 16px; color: var(--green);
}
.espace-col h3 {
  font-family: 'Peachy Queen JF', 'Outfit', sans-serif;
  font-size: .95rem; font-weight: 800;
  margin-bottom: 10px; color: var(--text-dark);
}
.espace-col p { font-size: .85rem; color: var(--text-light); line-height: 1.6; }

/* ─── DÉMO FORM ─── */
#demo { background: var(--bg-light); padding: 90px 60px; }

.demo-header { text-align: center; max-width: 560px; margin: 0 auto 40px; }
.demo-header h2 {
  font-family: 'Peachy Queen JF', 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 900; color: var(--text-dark); margin-bottom: 14px;
}
.demo-header p { font-size: 1rem; color: var(--text-light); line-height: 1.7; }

.demo-form-wrap {
  background: white; border-radius: 20px;
  border: 1px solid var(--border);
  max-width: 500px; margin: 0 auto; padding: 40px;
}

.form-group { margin-bottom: 24px; }
.form-group label {
  display: block; font-size: .88rem; font-weight: 600;
  margin-bottom: 8px; color: var(--text-dark);
}
.form-group input {
  width: 100%; padding: 14px 18px;
  border: 1.5px solid var(--border); border-radius: 50px;
  font-size: .9rem; font-family: 'Outfit', sans-serif;
  color: var(--text-dark); outline: none;
  transition: border-color .2s; background: white;
}
.form-group input::placeholder { color: #b0bec5; }
.form-group input:focus { border-color: var(--green); }

.btn-submit {
  width: 100%; background: var(--green); color: white;
  border: none; border-radius: 50px; padding: 15px;
  font-size: .85rem; font-weight: 800; letter-spacing: .06em;
  cursor: pointer; transition: background .2s;
  font-family: 'Outfit', sans-serif;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 14px;
}
.btn-submit:hover { background: var(--green-dark); }

.form-notice { text-align: center; font-size: .78rem; color: var(--text-light); }

.form-feedback {
  display: none; align-items: center; gap: 10px;
  border-radius: 12px; padding: 14px 18px;
  font-size: .88rem; font-weight: 600;
  margin-bottom: 16px;
}
.form-feedback.show { display: flex; }
.form-feedback svg  { width: 18px; height: 18px; flex-shrink: 0; stroke-width: 2; }

.form-success { background: var(--green-light); color: var(--green-dark); }
.form-success svg { color: var(--green); }

.form-error { background: #fde8e8; color: #b91c1c; }
.form-error svg { color: #b91c1c; }

.btn-submit:disabled { opacity: .65; cursor: not-allowed; }

/* ─── CTA FINAL ─── */
#cta-final {
  background: linear-gradient(160deg, #f0fdf6 0%, #fefce8 100%);
  padding: 100px 60px; text-align: center;
}

.cta-heart {
  width: 60px; height: 60px; background: var(--green);
  border-radius: 16px; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 28px;
}

.cta-final-title {
  font-family: 'Peachy Queen JF', 'Outfit', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900; color: var(--text-dark);
  max-width: 640px; margin: 0 auto 18px; line-height: 1.2;
}

.cta-final-sub {
  font-size: 1rem; color: var(--text-light);
  max-width: 480px; margin: 0 auto 36px; line-height: 1.7;
}

.btn-discover {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--green); color: white;
  border: none; border-radius: 50px; padding: 16px 36px;
  font-size: .9rem; font-weight: 800; letter-spacing: .06em;
  cursor: pointer; transition: background .2s, transform .15s;
  text-decoration: none; font-family: 'Outfit', sans-serif;
  margin-bottom: 18px;
}
.btn-discover:hover { background: var(--green-dark); transform: scale(1.03); }

.cta-note { font-size: .82rem; color: var(--text-light); }
.cta-note span { margin: 0 6px; }

/* ─── FOOTER ─── */
footer {
  background: #1a2e22; color: #9ab8a5;
  padding: 60px 60px 30px;
}

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}

.footer-logo {
  font-family: 'Peachy Queen JF', 'Outfit', sans-serif;
  font-size: 1.2rem; font-weight: 900;
  color: white; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.footer-logo-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; }

.footer-desc { font-size: .88rem; line-height: 1.7; color: #9ab8a5; }

.footer-col h4 { color: white; font-weight: 700; font-size: .95rem; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  color: #9ab8a5; text-decoration: none; font-size: .88rem; transition: color .2s;
}
.footer-col ul li a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid #2d4a38; padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { font-size: .82rem; color: #6b8f7a; }
.footer-love { font-size: .82rem; color: #6b8f7a; display: flex; align-items: center; gap: 4px; }

/* ─── PRISE DE RDV ─── */
#rdv { background: white; }

.cal-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.07);
}

.cal-wrapper iframe {
  width: 100%;
  height: 700px;
  border: none;
  display: block;
}

@media (max-width: 768px) {
  .cal-wrapper iframe { height: 800px; }
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-left > * { animation: fadeUp .6s ease both; }
.hero-left > *:nth-child(1) { animation-delay: .1s; }
.hero-left > *:nth-child(2) { animation-delay: .2s; }
.hero-left > *:nth-child(3) { animation-delay: .3s; }
.hero-left > *:nth-child(4) { animation-delay: .4s; }
.hero-right { animation: fadeUp .8s ease .3s both; }

@keyframes spin-slow {
  from { stroke-dashoffset: 314; }
  to   { stroke-dashoffset: 60; }
}
.score-arc { animation: spin-slow 1.8s ease .5s both; }

/* ═══════════════════════════════════════════════
   RESPONSIVE — TABLETTE  (≤ 1024px)
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  nav { padding: 0 32px; }

  #hero { padding: 60px 32px 60px; gap: 40px; }

  #dashboard { gap: 48px; padding: 90px 32px; }

  .defis-grid { grid-template-columns: repeat(2, 1fr); }

  section { padding: 72px 32px; }
  #defis, #demo, #cta-final { padding-left: 32px; padding-right: 32px; }
  #espace { padding-left: 32px; padding-right: 32px; }
  footer { padding: 48px 32px 24px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 32px; }

  .theme-card { flex: 0 0 calc(50% - 10px); }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — MOBILE  (≤ 768px)
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Nav hamburger */
  nav { padding: 0 20px; }
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: white; padding: 8px 20px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }
  .btn-demo-nav {
    margin-top: 16px;
    padding: 14px;
    font-size: .9rem;
    text-align: center;
  }

  /* Hero */
  #hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 52px 20px 48px;
    text-align: center;
    gap: 0;
  }
  #hero::before { display: none; }

  .hero-badge { margin: 0 auto 24px; }
  .hero-title br { display: none; }
  .hero-sub { font-size: .95rem; }
  .btn-cta { font-size: .82rem; }

  /* Score widget */
  .hero-right { margin-top: 52px; }
  .score-widget { width: 260px; height: 260px; }
  .score-num { font-size: 4rem; }
  .score-label { font-size: .8rem; }
  .chip-sport   { top: 8px; left: -10px; font-size: .72rem; padding: 6px 10px; }
  .chip-cuisine { top: 70px; right: -10px; font-size: .72rem; padding: 6px 10px; }
  .chip-lecture { bottom: 0px; font-size: .72rem; padding: 6px 10px; }

  /* Themes */
  .theme-card { flex: 0 0 100%; }

  /* Dashboard */
  #dashboard {
    grid-template-columns: 1fr;
    gap: 36px; padding: 60px 20px;
  }

  /* Défis */
  #defis { padding: 60px 20px; }
  .defis-grid { grid-template-columns: 1fr; max-width: 420px; }

  /* Profils */
  .profils-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }

  /* Espace */
  #espace { padding: 0 20px 60px; }
  .espace-box { padding: 32px 24px; }
  .espace-cols { grid-template-columns: 1fr; gap: 32px; }
  .espace-box h2 { margin-bottom: 32px; }

  /* Démo */
  #demo { padding: 60px 20px; }
  .demo-form-wrap { padding: 28px 20px; }

  /* CTA */
  #cta-final { padding: 72px 20px; }
  .btn-discover { width: 100%; justify-content: center; }

  /* Footer */
  footer { padding: 48px 20px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Sections generic */
  section { padding: 60px 20px; }
  .section-header { margin-bottom: 36px; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — PETIT MOBILE  (≤ 480px)
   ═══════════════════════════════════════════════ */
@media (max-width: 480px) {

  .score-widget { width: 220px; height: 220px; }
  .score-num { font-size: 3.2rem; }

  /* Chips cachés sur très petits écrans */
  .score-chip { display: none; }

  .fc-stats { grid-template-columns: repeat(3,1fr); gap: 8px; }
  .fc-stat-val { font-size: 1.1rem; }

  .defis-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
}
