/* Charte Happiness by Lara (reprise du site actuel) */
:root {
  --corail: #E57D7D;
  --corail-fonce: #D96A6A;
  --sauge: #658A7B;
  --sauge-clair: #D0D5BB;
  --peche: #FFE9E0;
  --creme: #FFFAF6;
  --texte: #1A1A1A;
  --gris: #6B6B6B;
  --titre: 'Unbounded', 'Poppins', sans-serif;
  --corps: 'Raleway', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--corps);
  font-size: 18px;
  line-height: 1.65;
  color: var(--texte);
  background: var(--creme);
}
img { max-width: 100%; display: block; }
a { color: var(--sauge); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.accent { color: var(--corail); }
.small { font-size: 0.85rem; color: var(--gris); }

h1, h2, h3, h4 { font-family: var(--titre); line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 500; }
h4 { font-size: 0.95rem; font-weight: 500; margin-top: 1.5em; }

/* Boutons */
.btn {
  display: inline-block;
  background: var(--corail);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 999px;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--corail-fonce); transform: translateY(-2px); }
.btn-small { padding: 10px 18px; font-size: 0.9rem; }

/* En-tête */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 250, 246, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--peche);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.logo img { height: 40px; width: auto; }

/* Accroche */
.hero { padding: 64px 0 32px; background: linear-gradient(180deg, var(--peche), var(--creme)); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--sauge); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; }
.lead { font-size: 1.2rem; }
.lead em { color: var(--sauge); }
.hero-photo { border-radius: 24px; box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.credentials { font-size: 0.85rem; color: var(--gris); margin-top: 20px; }

/* Sections */
.section { padding: 80px 0; }
.soft { background: var(--peche); }
.intro { max-width: 720px; margin: 0 auto 40px; }
.big { font-size: 1.25rem; }
/* La section « problème » suit directement l'accroche : moins d'espace au-dessus */
.problem { padding-top: 16px; }
.problem .big:first-child { margin-top: 0; }
.punch { font-family: var(--titre); font-size: clamp(1.3rem, 2.6vw, 1.8rem); line-height: 1.35; margin-top: 1.5em; }

/* Cartes */
.cards { display: grid; gap: 24px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border-radius: 20px; padding: 28px; box-shadow: 0 6px 20px rgba(0,0,0,0.04); }
.card p { margin: 0; }
.card-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--sauge); color: #fff; font-family: var(--titre); font-weight: 700;
  margin-bottom: 14px;
}

.improv {
  margin: 32px auto; max-width: 820px;
  background: var(--sauge); color: #fff;
  border-radius: 20px; padding: 24px 32px; text-align: center;
}
.improv p { margin: 0; }

/* Photos de plats : grille de 3 sur ordinateur, carrousel sur mobile (voir @media 600px) */
.gallery-carousel { max-width: none; padding: 0; margin-top: 40px; }
.gallery-carousel .car-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; overflow: visible; }
.gallery-carousel .car-btn, .gallery-carousel .car-dots { display: none; }
.slide.photo-slide { margin: 0; padding: 0; background: none; border: none; border-radius: 0; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 20px; }

/* Comparaisons */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.col { border-radius: 20px; padding: 28px; }
.col ul { margin: 0; padding-left: 1.2em; }
.col li { margin-bottom: 0.6em; }
.before { background: #fff; border: 2px solid var(--peche); }
.after { background: #fff; border: 2px solid var(--sauge-clair); }
.after h3 { color: var(--sauge); }

/* Présentation */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.about-photo { border-radius: 24px; }
.quote {
  font-family: var(--titre); font-size: 1.15rem; line-height: 1.4;
  border-left: 4px solid var(--corail); padding-left: 18px; margin: 1.2em 0;
}

/* Cas client */
.case { background: #fff; }
/* Carrousel des évolutions */
.carousel { position: relative; max-width: 860px; margin: 0 auto; padding: 0 56px; }
.car-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none;
}
.car-track::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%; scroll-snap-align: start;
  background: var(--creme); border-radius: 24px; padding: 36px 40px;
  border: 2px solid var(--peche);
  display: flex; flex-direction: column; justify-content: space-between;
}
.slide-head { text-align: center; }
.slide-head h3 { font-size: 1.6rem; font-weight: 700; color: var(--corail); margin-bottom: 0.2em; }
.slide-meta { color: var(--sauge); font-weight: 700; margin: 0; }
.slide .stats { margin: 24px 0; }
.slide-curve { margin: 0 0 20px; text-align: center; }
.slide-curve img { width: 100%; height: 240px; object-fit: contain; border-radius: 16px; border: 1px solid var(--peche); background: #fff; }
.slide-curve figcaption { font-size: 0.85rem; color: var(--gris); margin-top: 6px; }
.slide-quote {
  margin: 20px 0; padding: 16px 20px; background: #fff; border-left: 4px solid var(--corail);
  border-radius: 0 16px 16px 0; font-style: italic;
}
.slide-quote cite { display: block; margin-top: 8px; font-style: normal; font-weight: 700; color: var(--sauge); }
.slide-quote cite::before { content: "— "; }
/* Cartes de même hauteur : l'espace en trop est réparti entre les blocs, la phrase clé reste en bas */
.slide-key { font-weight: 700; text-align: center; margin: 0; padding-top: 12px; }
.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: var(--corail); color: #fff; font-size: 1.6rem; line-height: 1;
  cursor: pointer; transition: background .2s, opacity .2s;
}
.car-btn:hover { background: var(--corail-fonce); }
.car-btn:disabled { opacity: 0.3; cursor: default; }
.car-btn.prev { left: 0; }
.car-btn.next { right: 0; }
.car-dots { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.car-dot { width: 12px; height: 12px; border-radius: 50%; border: none; padding: 0; background: var(--sauge-clair); cursor: pointer; }
.car-dot.active { background: var(--sauge); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0; text-align: center; }
.stats div { background: var(--peche); border-radius: 20px; padding: 22px 12px; }
.stats strong { display: block; font-family: var(--titre); font-size: 1.6rem; color: var(--corail); }
.stats span { font-size: 0.9rem; color: var(--gris); }

/* Offre */
/* Offres empilées sur tous les écrans : l'option 1 renvoie au plan complet « ci-dessous » */
.offer-grid { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 820px; margin: 0 auto 32px; }
.offer { background: #fff; border-radius: 24px; padding: 32px; }
.offer.main { border: 2px solid var(--corail); }
.offer-tag { color: var(--sauge); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.06em; margin: 0; }
.price { font-family: var(--titre); font-size: 2rem; color: var(--corail); margin: 0.4em 0; }
.price span { font-family: var(--corps); font-size: 1rem; color: var(--gris); }
.note { background: var(--creme); border-radius: 12px; padding: 14px 16px; font-size: 0.95rem; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
.tier { position: relative; border: 1px solid var(--sauge-clair); border-radius: 16px; padding: 20px 12px 16px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.tier.best { border: 2px solid var(--sauge); background: #F4F6EE; }
.badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--sauge); color: #fff; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.dur { font-weight: 700; }
.amount { font-family: var(--titre); font-size: 1.5rem; color: var(--corail); }
.per { font-size: 0.8rem; color: var(--gris); }
.monthly { text-align: center; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding-left: 28px; position: relative; margin-bottom: 0.5em; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--sauge); font-weight: 700; }

.limit { background: #fff; border-radius: 20px; padding: 28px 32px; max-width: 820px; margin: 40px auto; text-align: center; }
.cta-block { text-align: center; margin-top: 32px; }

/* FAQ */
details { background: #fff; border-radius: 16px; padding: 18px 24px; margin-bottom: 12px; border: 1px solid var(--peche); }
summary { cursor: pointer; font-weight: 700; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 1.4rem; color: var(--corail); }
details[open] summary::after { content: "−"; }
details p { margin: 0.8em 0 0; }

/* Pied de page */
.footer { background: var(--texte); color: #eee; padding: 48px 0; text-align: center; font-size: 0.9rem; }
.footer a { color: var(--peche); }
.footer .small { color: #aaa; }

/* Mobile */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .offer-grid, .compare { grid-template-columns: 1fr; }
  .cards.three, .cards.four { grid-template-columns: 1fr 1fr; }
  .hero-photo { order: -1; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .section { padding: 56px 0; }
  .cards.three, .cards.four, .tiers { grid-template-columns: 1fr; }
  .gallery-carousel .car-track { display: flex; overflow-x: auto; gap: 0; }
  .gallery-carousel .car-btn { display: block; }
  .gallery-carousel .car-dots { display: flex; }
  .stats { grid-template-columns: 1fr; }
  .carousel { padding: 0; }
  .slide { padding: 24px 18px; font-size: 16px; }
  .slide-head h3 { font-size: 1.4rem; }
  .slide-meta { font-size: 0.85rem; min-height: 2.8em; }
  .slide .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
  .slide .stats div { padding: 12px 4px; border-radius: 14px; }
  .slide .stats strong { font-size: 1.05rem; }
  .slide .stats span { display: block; font-size: 0.72rem; line-height: 1.3; }
  .slide-curve img { height: 170px; }
  .slide-quote { padding: 12px 14px; margin: 12px 0; }
  .car-btn { top: auto; bottom: -6px; transform: none; width: 38px; height: 38px; }
  .logo img { height: 30px; }
  .btn-small { display: none; }
}

/* Apparition en fondu au défilement (activée par reveal.js) */
.reveal-on .reveal { opacity: 0; transition: opacity .9s ease; }
.reveal-on .reveal.is-visible { opacity: 1; }
/* L'accroche apparaît en douceur dès le chargement */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.hero-grid > * { animation: fade-in .9s ease both; }
.hero-grid > *:nth-child(2) { animation-delay: .15s; }
@media (prefers-reduced-motion: reduce) {
  .hero-grid > * { animation: none; }
}

/* Sélecteur de langue (en-tête) */
.topbar-right { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; gap: 2px; background: var(--peche); border-radius: 999px; padding: 3px; }
.lang-switch a { text-decoration: none; color: var(--texte); font-weight: 700; font-size: 0.8rem; padding: 6px 10px; border-radius: 999px; }
.lang-switch a[aria-current="page"] { background: var(--corail); color: #fff; }

/* Pop-up de choix de langue (première visite) */
body.lang-open { overflow: hidden; }
.lang-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(26, 26, 26, 0.55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fade-in .3s ease both;
}
.lang-dialog { background: var(--creme); border-radius: 24px; padding: 36px 32px; max-width: 380px; width: 100%; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.2); }
.lang-logo { height: 44px; width: auto; margin: 0 auto 20px; }
.lang-title { font-family: var(--titre); font-size: 1.2rem; margin: 0 0 24px; line-height: 1.4; }
.lang-title span { font-family: var(--corps); font-size: 1rem; color: var(--gris); }
.lang-choices { display: flex; flex-direction: column; gap: 12px; }
.lang-choice { border: none; cursor: pointer; font-family: var(--corps); font-size: 1rem; }
.lang-choice + .lang-choice { background: #fff; color: var(--texte); border: 2px solid var(--peche); }
.lang-choice + .lang-choice:hover { background: var(--peche); }

/* Pages légales et contact */
.legal h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-top: 0.4em; }
.legal h2 { font-size: 1.15rem; margin-top: 2em; color: var(--sauge); }
.legal h3 { font-size: 1rem; margin-top: 1.4em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.4em; }
.legal .back { text-decoration: none; font-weight: 700; }
.legal .updated { margin-top: 2.5em; font-size: 0.9rem; color: var(--gris); }
