/* ============================================================
   MON BUDGET TRANQUILLE — style.css
   Version entièrement palette app (pastels)
   Structure :
   1. Variables & Reset
   2. Utilitaires
   3. Animations scroll
   4. Navigation
   5. Hero
   6. Section Features
   7. Section Templates
   8. Section Philosophy
   9. Section Community
   10. Footer
   11. Responsive
   12. Mobile menu
============================================================ */


/* ── 1. Variables & Reset ─────────────────────────────────── */
:root {
  /* Fonds */
  --bg:         #FEFEFE;
  --bg-soft:    #F5F5F5;
  --bg-card:    #FFFFFF;

  /* Pastels principaux */
  --green:      #c6e7b2;
  --green-m:    #81c784;
  --green-dark: #4CAF50;
  --green-text: #2e6b30;

  --blue:       #a8d5f7;
  --blue-m:     #6ba4eb;
  --blue-dark:  #3a78c9;
  --blue-text:  #1a3f7a;

  --orange:     #ffd8a8;
  --orange-m:   #ffb366;
  --orange-dark:#e07a00;
  --orange-text:#7a4200;

  --coral:      #ffc9b9;
  --coral-m:    #f1ac9c;
  --coral-dark: #d4603a;
  --coral-text: #7a2a10;

  --pink:       #f9d5e5;
  --pink-m:     #e591c3;
  --pink-dark:  #c0529a;
  --pink-text:  #6b1a4a;

  /* Texte */
  --ink:        #1a2e1c;
  --ink-soft:   #2d4a30;
  --muted:      #6b826d;

  /* Utilitaires */
  --radius:     18px;
  --radius-sm:  12px;
  --shadow-sm:  0 2px 12px rgba(30, 80, 30, .08);
  --shadow:     0 6px 32px rgba(30, 80, 30, .12);
  --shadow-lg:  0 16px 60px rgba(30, 80, 30, .16);
}

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

/* ★ FIX MOBILE : clip au lieu de hidden — les navigateurs mobiles
   ignorent overflow-x:hidden mais respectent clip */
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
}

h1, h2, h3, h4 { font-family: 'Lora', serif; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }


/* ── 2. Utilitaires ───────────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* Tags pastels */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 99px;
  background: var(--green);
  color: var(--green-text);
  border: 1.5px solid var(--green-m);
}
.tag-blue   { background: var(--blue);   color: var(--blue-text);   border-color: var(--blue-m);   }
.tag-orange { background: var(--orange); color: var(--orange-text); border-color: var(--orange-m); }
.tag-coral  { background: var(--coral);  color: var(--coral-text);  border-color: var(--coral-m);  }
.tag-pink   { background: var(--pink);   color: var(--pink-text);   border-color: var(--pink-m);   }

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 99px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-primary {
  background: var(--green-dark);
  color: #fff;
}
.btn-primary:hover { filter: brightness(1.08); }

.btn-secondary {
  background: var(--green);
  color: var(--green-text);
  border: 2px solid var(--green-m);
}
.btn-secondary:hover { background: var(--green-m); color: #fff; }

.btn-blue {
  background: var(--blue-dark);
  color: #fff;
}
.btn-white {
  background: #fff;
  color: var(--green-dark);
  border: 2px solid var(--green-m);
}
.btn-outline {
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.4);
  color: #fff;
}

/* Section header */
.section-header { text-align: center; margin-bottom: 64px; }
.section-header .tag { margin-bottom: 16px; }
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 16px; color: var(--ink); }
.section-header p  { font-size: 1rem; color: var(--muted); max-width: 520px; margin: 0 auto; line-height: 1.7; }


/* ── 3. Animations scroll ─────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }


/* ── 4. Navigation ────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 10px 0;
  transition: background .3s, box-shadow .3s;
}

nav.scrolled {
  background: rgba(254,254,254,.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--green-m), 0 4px 24px rgba(30,80,30,.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  /* ★ FIX : empêcher le nav de déborder */
  max-width: 100%;
}

/* Logo */
.logo img {
  height: 120px;
  max-height: 64px;
  width: auto;
  display: block;
  transition: opacity .2s;
}

.logo img:hover {
  opacity: .85;
}

/* Logo footer un peu plus petit */
footer .logo img {
  height: 100px;
  max-height: 64px;
}

/* Liens nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-links > a,
.nav-dropdown > .nav-drop-trigger {
  font-size: .875rem;
  color: var(--muted);
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 8px;
  transition: color .2s, background .2s;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
}
.nav-links > a:hover,
.nav-dropdown:hover > .nav-drop-trigger {
  color: var(--green-text);
  background: var(--green);
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-drop-trigger svg { width: 12px; height: 12px; transition: transform .2s; }
.nav-dropdown:hover .nav-drop-trigger svg { transform: rotate(180deg); }

.nav-drop-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 8px;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  min-width: 230px;
}

.nav-drop-menu-inner {
  background: white;
  border-radius: 16px;
  padding: 8px;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--green-m);
  transform: translateY(-6px);
  transition: transform .2s;
}

.nav-dropdown:hover .nav-drop-menu {
  opacity: 1;
  pointer-events: all;
}

.nav-dropdown:hover .nav-drop-menu-inner {
  transform: translateY(0);
}

.drop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background .15s;
}
.drop-item:hover { background: var(--green); }
.drop-item-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.drop-item-text .drop-title { font-size: .85rem; font-weight: 600; color: var(--ink); }
.drop-item-text .drop-sub   { font-size: .75rem; color: var(--muted); }
.drop-divider { height: 1px; background: var(--green); margin: 4px 0; }

/* Actions droite */
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.nav-icon-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  cursor: pointer;
  color: var(--muted);
  position: relative;
}
.nav-icon-btn:hover { background: var(--green); color: var(--green-text); }
.nav-icon-btn svg { width: 20px; height: 20px; }

.cart-badge {
  position: absolute;
  top: 4px; right: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--orange-dark);
  color: #fff;
  font-size: .6rem; font-weight: 700;
  display: none;
  align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}

.yt-btn { color: #c0392b; }
.yt-btn:hover { background: var(--coral) !important; color: var(--coral-text) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }


/* ── 5. Hero ──────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0 60px;
}

/* Fond : grands aplats pastels doux */
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 60% at 85% 35%, rgba(198,231,178,.55) 0%, transparent 65%),
    radial-gradient(ellipse 45% 45% at 5%  75%, rgba(168,213,247,.45) 0%, transparent 65%),
    radial-gradient(ellipse 30% 30% at 50% 90%, rgba(255,216,168,.35) 0%, transparent 60%);
}

.hero-blob {
  position: absolute;
  right: -80px; top: 50%;
  transform: translateY(-50%);
  width: 560px; height: 560px;
  border-radius: 55% 45% 40% 50%;
  background: linear-gradient(135deg, var(--green) 0%, var(--blue) 60%, var(--orange) 100%);
  opacity: .55;
  animation: blobFloat 9s ease-in-out infinite;
}
@keyframes blobFloat {
  0%,100% { border-radius: 55% 45% 40% 50%; transform: translateY(-50%) rotate(0deg); }
  50%     { border-radius: 45% 55% 50% 40%; transform: translateY(-53%) rotate(6deg); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-left .tag     { margin-bottom: 24px; }
.hero-left h1       { font-size: clamp(2.2rem, 4vw, 3.4rem); margin-bottom: 20px; }
.hero-left h1 em    { font-style: italic; color: var(--green-dark); }
.hero-left > p      { font-size: 1.05rem; color: var(--muted); line-height: 1.7; max-width: 480px; margin-bottom: 36px; }
.hero-actions       { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--green);
}

.stat-block {
  flex: 1;
  padding: 0 24px 0 0;
}
.stat-block:not(:first-child) {
  padding-left: 24px;
  border-left: 1px solid var(--green-m);
}

.stat-num { font-family: 'Lora', serif; font-size: 1.9rem; font-weight: 700; color: var(--green-dark); }
.stat-lbl { font-size: .78rem; color: var(--muted); margin-top: 2px; }

/* Card mockup */
.hero-right { display: flex; justify-content: center; align-items: center; }

.hero-card {
  background: var(--bg-card);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 28px;
  width: 100%; max-width: 360px;
  animation: cardFloat 5s ease-in-out infinite;
  border: 2px solid var(--green-m);
}
@keyframes cardFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}

.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.card-title-block .label { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.card-title-block .month { font-family: 'Lora', serif; font-size: 1.2rem; font-weight: 700; }
.card-badge {
  background: var(--green);
  color: var(--green-text);
  border: 1.5px solid var(--green-m);
  padding: 5px 12px;
  border-radius: 99px;
  font-size: .75rem; font-weight: 600;
}

.progress-list { display: flex; flex-direction: column; gap: 12px; }
.progress-meta { display: flex; justify-content: space-between; font-size: .8rem; margin-bottom: 5px; }
.progress-meta span:last-child { font-weight: 600; }
.progress-bar  { height: 9px; background: var(--bg-soft); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 99px; transition: width 1.5s cubic-bezier(.4,0,.2,1); }
.fill-green  { background: linear-gradient(90deg, var(--green-m), var(--green-dark)); }
.fill-blue   { background: linear-gradient(90deg, var(--blue-m),  var(--blue-dark));  }
.fill-orange { background: linear-gradient(90deg, var(--orange-m), var(--orange-dark)); }
.fill-coral  { background: linear-gradient(90deg, var(--coral-m),  var(--coral-dark));  }

.card-footer {
  margin-top: 20px; padding-top: 18px;
  border-top: 2px solid var(--green);
  display: flex; justify-content: space-between; align-items: center;
}
.surplus .lbl { font-size: .7rem; color: var(--muted); }
.surplus .val { font-family: 'Lora', serif; font-size: 1.4rem; font-weight: 700; color: var(--green-dark); }

.sparklines { display: flex; gap: 4px; align-items: flex-end; }
.sparklines span {
  width: 7px; border-radius: 3px 3px 0 0;
  animation: sparkGrow 1s ease both;
}
.sparklines span:nth-child(1) { background: var(--green-m);   animation-delay: .1s; }
.sparklines span:nth-child(2) { background: var(--blue-m);    animation-delay: .2s; }
.sparklines span:nth-child(3) { background: var(--orange-m);  animation-delay: .3s; }
.sparklines span:nth-child(4) { background: var(--green-dark); animation-delay: .4s; }
.sparklines span:nth-child(5) { background: var(--blue-dark); animation-delay: .5s; }
.sparklines span:nth-child(6) { background: var(--green-dark); animation-delay: .6s; }

@keyframes sparkGrow { from { transform: scaleY(0); transform-origin: bottom; } }


/* ── 6. Section Features ──────────────────────────────────── */
#features { padding: 100px 0; background: var(--bg-soft); }

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

.feat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px 26px;
  position: relative; overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  border: 2px solid transparent;
}
.feat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

/* Chaque card a sa couleur pastel */
.feat-card:nth-child(1) { border-color: var(--green-m);  }
.feat-card:nth-child(2) { border-color: var(--blue-m);   }
.feat-card:nth-child(3) { border-color: var(--orange-m); }
.feat-card:nth-child(4) { border-color: var(--coral-m);  }
.feat-card:nth-child(5) { border-color: var(--pink-m);   }
.feat-card:nth-child(6) { border-color: var(--blue-m);   }

.feat-card:nth-child(1):hover { box-shadow: 0 8px 32px rgba(129,199,132,.25); }
.feat-card:nth-child(2):hover { box-shadow: 0 8px 32px rgba(107,164,235,.25); }
.feat-card:nth-child(3):hover { box-shadow: 0 8px 32px rgba(255,179,102,.25); }
.feat-card:nth-child(4):hover { box-shadow: 0 8px 32px rgba(241,172,156,.25); }
.feat-card:nth-child(5):hover { box-shadow: 0 8px 32px rgba(229,145,195,.25); }
.feat-card:nth-child(6):hover { box-shadow: 0 8px 32px rgba(107,164,235,.25); }

.feat-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.ic-green  { background: var(--green);  border: 1.5px solid var(--green-m);  }
.ic-blue   { background: var(--blue);   border: 1.5px solid var(--blue-m);   }
.ic-orange { background: var(--orange); border: 1.5px solid var(--orange-m); }
.ic-coral  { background: var(--coral);  border: 1.5px solid var(--coral-m);  }
.ic-pink   { background: var(--pink);   border: 1.5px solid var(--pink-m);   }

.feat-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feat-card p  { font-size: .88rem; color: var(--muted); line-height: 1.65; }

.feat-num {
  position: absolute; top: 18px; right: 22px;
  font-family: 'Lora', serif; font-size: 3.5rem; font-weight: 700;
  color: rgba(30,80,30,.05); line-height: 1;
}


/* ── 7. Section Templates ─────────────────────────────────── */
#templates {
  padding: 100px 0;
  background: linear-gradient(160deg, var(--green) 0%, var(--blue) 60%, var(--orange) 100%);
  position: relative;
  overflow: hidden; /* ★ FIX : contenir le gradient */
}

#templates .section-header .tag {
  background: rgba(255,255,255,.4);
  color: var(--ink);
  border-color: rgba(255,255,255,.6);
}
#templates .section-header h2 { color: var(--ink); }
#templates .section-header p  { color: var(--ink-soft); opacity: .75; }

.templates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.tpl-card {
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,.8);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: background .3s, transform .3s, box-shadow .3s;
  cursor: pointer;
}
.tpl-card:hover {
  background: rgba(255,255,255,.88);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.tpl-card.featured {
  background: rgba(255,255,255,.82);
  border-color: var(--green-m);
}

.tpl-badge { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-bottom: 12px; color: var(--green-text); }
.tpl-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--ink); }
.tpl-card p  { font-size: .85rem; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }

.tpl-footer { display: flex; align-items: center; justify-content: space-between; }
.tpl-price  { font-family: 'Lora', serif; font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.tpl-price.free { color: var(--green-dark); }

.tpl-arrow {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--green); border: 1.5px solid var(--green-m);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  transition: background .2s, transform .2s;
  color: var(--green-text);
}
.tpl-card:hover .tpl-arrow { background: var(--green-dark); color: #fff; transform: translateX(3px); }

.templates-cta { text-align: center; }


/* ── 8. Section Philosophy ────────────────────────────────── */
#philosophy { padding: 100px 0; background: var(--bg); }

.philo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.philo-left h2    { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 20px; }
.philo-left h2 em { font-style: italic; color: var(--green-dark); }
.philo-left p     { font-size: 1rem; color: var(--muted); line-height: 1.75; margin-bottom: 16px; }
.philo-left p:last-of-type { margin-bottom: 36px; }

.philo-right { display: flex; flex-direction: column; gap: 14px; }

.philo-item {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 2px solid transparent;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.philo-item:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); }

.philo-item:nth-child(1) { border-color: var(--green-m);  }
.philo-item:nth-child(2) { border-color: var(--blue-m);   }
.philo-item:nth-child(3) { border-color: var(--orange-m); }
.philo-item:nth-child(4) { border-color: var(--coral-m);  }

.philo-icon {
  font-size: 1.3rem; flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.philo-item:nth-child(1) .philo-icon { background: var(--green);  border: 1.5px solid var(--green-m);  }
.philo-item:nth-child(2) .philo-icon { background: var(--blue);   border: 1.5px solid var(--blue-m);   }
.philo-item:nth-child(3) .philo-icon { background: var(--orange); border: 1.5px solid var(--orange-m); }
.philo-item:nth-child(4) .philo-icon { background: var(--coral);  border: 1.5px solid var(--coral-m);  }

.philo-item h4 { font-size: .95rem; margin-bottom: 4px; color: var(--ink); }
.philo-item p  { font-size: .85rem; color: var(--muted); line-height: 1.55; }


/* ── 9. Section Community ─────────────────────────────────── */
#community {
  padding: 100px 0;
  background: var(--green);
  border-top: 3px solid var(--green-m);
  border-bottom: 3px solid var(--green-m);
  text-align: center;
  position: relative;
  overflow: hidden;
}

#community::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px; border-radius: 50%;
  background: rgba(168,213,247,.35);
  top: -150px; right: -100px;
  pointer-events: none;
}
#community::after {
  content: '';
  position: absolute;
  width: 350px; height: 350px; border-radius: 50%;
  background: rgba(255,216,168,.3);
  bottom: -100px; left: -80px;
  pointer-events: none;
}

#community h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--ink); margin-bottom: 16px; position: relative; z-index: 1; }
#community p  { font-size: 1.05rem; color: var(--ink-soft); max-width: 520px; margin: 0 auto 40px; line-height: 1.7; position: relative; z-index: 1; }
.community-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; position: relative; z-index: 1; }


/* ── 10. Footer ───────────────────────────────────────────── */
footer {
  background: var(--bg-soft);
  color: var(--muted);
  padding: 60px 0 32px;
  border-top: 2px solid var(--green);
  overflow: hidden; /* ★ FIX : contenir le footer */
}

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

.footer-brand p { font-size: .85rem; line-height: 1.65; }

.footer-col h4 { font-family: 'Lora', serif; font-size: .95rem; color: var(--ink); margin-bottom: 16px; }
.footer-col a  { display: block; font-size: .85rem; margin-bottom: 8px; transition: color .2s; color: var(--muted); }
.footer-col a:hover { color: var(--green-dark); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--green);
  font-size: .8rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a { color: var(--muted); transition: color .2s; }
.footer-bottom a:hover { color: var(--green-dark); }

/* ── Hero values (remplace les stats) ────────────────────── */
.hero-values {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 2px solid var(--green);
  flex-wrap: wrap;
}

.hero-value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: var(--muted);
  font-weight: 500;
}

.value-icon {
  font-size: 1.1rem;
}

/* ── Template unique ──────────────────────────────────────── */
.tpl-single { max-width: 1000px; margin: 0 auto; }

.tpl-single-card {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(8px);
  border: 2px solid var(--green-m);
  border-radius: var(--radius);
  padding: 40px;
  align-items: center;
}

.tpl-single-left h3 { font-size: 1.5rem; margin-bottom: 14px; }
.tpl-single-left p  { font-size: .95rem; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }

.tpl-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.tpl-features li {
  font-size: .88rem;
  color: var(--ink-soft);
}

.tpl-single-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap; /* ★ FIX : wrap sur petit écran */
}

.tpl-single-price {
  font-family: 'Lora', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-dark);
  white-space: nowrap;
}

/* Aperçu visuel du template */
.tpl-preview {
  background: white;
  border-radius: 14px;
  padding: 24px;
  border: 2px solid var(--green-m);
  box-shadow: var(--shadow);
}

.tpl-preview-header {
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.tpl-preview-bars { display: flex; flex-direction: column; gap: 14px; }

.tpl-preview-row {
  display: grid;
  grid-template-columns: 70px 1fr 60px;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
}

.tpl-preview-row span:last-child { text-align: right; font-weight: 600; }

.tpl-bar { height: 8px; background: var(--bg-soft); border-radius: 99px; overflow: hidden; }
.tpl-bar-fill { height: 100%; border-radius: 99px; transition: width 1.5s cubic-bezier(.4,0,.2,1); }

.tpl-preview-footer {
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1.5px solid var(--green);
}

@media (max-width: 700px) {
  .tpl-single-card { grid-template-columns: 1fr; padding: 24px; }
  .tpl-single-right { display: none; }
}

/* ── 11. Responsive ───────────────────────────────────────── */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-actions .yt-btn { display: none; }

  /* ★ FIX : logo plus petit sur tablette/mobile */
  .logo img {
    height: 48px;
    max-height: 48px;
  }
}

@media (max-width: 900px) {
  .hero-grid, .philo-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-right { display: none; }
  .features-grid, .templates-grid, .footer-grid { grid-template-columns: 1fr 1fr; }

  /* ★ FIX : réduire le blob sur tablette */
  .hero-blob {
    width: 300px;
    height: 300px;
    right: -120px;
    opacity: .35;
  }
}

@media (max-width: 600px) {
  .features-grid, .templates-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; }

  /* ★ FIX MOBILE COMPLET */
  .container { padding: 0 16px; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-bottom-links {
    flex-wrap: wrap;
    gap: 10px 16px;
  }
  .hero-values {
    flex-direction: column;
    gap: 12px;
  }
  .hero-left h1 {
    font-size: 1.8rem;
  }
  .btn {
    padding: 12px 22px;
    font-size: .88rem;
  }
  .hero-blob {
    width: 200px;
    height: 200px;
    right: -80px;
    opacity: .25;
  }
  #features, #templates, #philosophy, #community {
    padding: 60px 0;
  }
  .philo-grid { gap: 40px; }
  .tpl-single-card { padding: 20px; gap: 24px; }
}


/* ── 12. Mobile menu ──────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0; /* ★ FIX : inset explicite */
  width: 100%;           /* ★ FIX : forcer 100% largeur */
  max-width: 100vw;      /* ★ FIX : ne jamais déborder */
  background: var(--bg);
  z-index: 200;
  display: flex; flex-direction: column;
  padding: 80px 24px 40px; /* ★ FIX : padding réduit */
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  overflow-x: hidden;     /* ★ FIX : pas de scroll horizontal */
  border-left: 3px solid var(--green-m);
}
.mobile-menu.open { transform: translateX(0); }

.mobile-close {
  position: absolute; top: 20px; right: 20px;
  background: var(--green);
  border: 2px solid var(--green-m);
  width: 40px; height: 40px;
  border-radius: 50%; font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--green-text);
}

.mobile-nav-link {
  font-family: 'Lora', serif; font-size: 1.3rem; color: var(--ink); /* ★ FIX : un peu plus petit */
  padding: 14px 0;
  border-bottom: 2px solid var(--green);
  display: flex; align-items: center; justify-content: space-between;
}

.mobile-nav-sub {
  padding: 8px 0 0 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-nav-sub a {
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem; color: var(--muted); padding: 6px 0; /* ★ FIX : un peu plus petit */
}
.mobile-nav-sub span {
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
}

.mobile-actions { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.mobile-yt { display: flex; align-items: center; gap: 10px; font-size: 1rem; color: #c0392b; font-weight: 600; }
.mobile-yt svg { width: 22px; height: 22px; }