/* ============================================================
   SANDY — COACH NUTRITION IA
   style.css — Feuille de styles principale
   ============================================================ */

/* ---- Variables ---- */
:root {
  --jaune-solaire:    #F5C518;
  --jaune-doux:       #FFF3B0;
  --jaune-hover:      #E6B800;
  --bleu-profond:     #1B3A6B;
  --bleu-moyen:       #2E5FA3;
  --bleu-clair:       #E8F0FB;
  --blanc-chaud:      #FFFDF5;
  --texte-principal:  #1A1A2E;
  --texte-secondaire: #4A4A6A;
  --succes-vert:      #25D366;
  --erreur:           #E24B4A;
  --border-color:     rgba(245, 197, 24, 0.3);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--texte-principal);
  background-color: var(--blanc-chaud);
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- Typographie ---- */
h1, h2, h3 {
  font-family: 'Nunito', sans-serif;
  color: var(--bleu-profond);
  line-height: 1.25;
}

h1 {
  font-size: 3.2rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

p { color: var(--texte-secondaire); }

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--bleu-profond);
  height: 64px;
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--jaune-solaire);
  object-fit: cover;
  background: var(--bleu-clair);
}

.nav-brand-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--jaune-solaire);
  background: var(--bleu-clair);
  flex-shrink: 0;
}

.nav-brand-name {
  font-family: 'Nunito', sans-serif;
  color: var(--jaune-solaire);
  font-size: 1.3rem;
  font-weight: 700;
}

.nav-brand-full,
.nav-brand-short {
  display: inline-block;
}

.nav-brand-short {
  display: none;
}

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

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--jaune-solaire);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Nav Drawer Mobile */
.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bleu-profond);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 80px 24px 40px;
}

.nav-drawer.open {
  display: flex;
}

.nav-drawer a {
  color: rgba(255,255,255,0.85);
  font-size: 1.3rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-drawer a:hover {
  color: var(--jaune-solaire);
}

.nav-drawer .btn-primary {
  margin-top: 8px;
}

.nav-drawer-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ============================================================
   BOUTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--jaune-solaire);
  color: var(--bleu-profond);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(245, 197, 24, 0.3);
}

.btn-primary:hover {
  background: var(--jaune-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 197, 24, 0.45);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--bleu-profond);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 50px;
  border: 2px solid var(--bleu-moyen);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--bleu-moyen);
  color: #fff;
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
  padding: 16px 28px;
  font-size: 1.05rem;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--succes-vert);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  width: 100%;
}

.btn-whatsapp:hover {
  background: #1db954;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
}

/* ============================================================
   AVATAR
   ============================================================ */
.avatar-circle {
  border-radius: 50%;
  object-fit: cover;
  background: var(--bleu-clair);
  display: block;
  flex-shrink: 0;
}

.avatar-hero {
  width: 180px;
  height: 180px;
  border: 3px solid var(--jaune-solaire);
  box-shadow: 0 0 0 6px rgba(245,197,24,0.15), 0 8px 32px rgba(27,58,107,0.2);
}

.avatar-nav {
  width: 36px;
  height: 36px;
  border: 2px solid var(--jaune-solaire);
}

.avatar-succes {
  width: 120px;
  height: 120px;
  border: 3px solid var(--jaune-solaire);
  box-shadow: 0 0 0 6px rgba(245,197,24,0.15), 0 8px 32px rgba(27,58,107,0.2);
}

.avatar-medium {
  width: 140px;
  height: 140px;
  border: 3px solid var(--jaune-solaire);
  box-shadow: 0 0 0 8px rgba(245,197,24,0.25);
}

.avatar-coach {
  width: 100px;
  height: 100px;
  border: 3px solid var(--jaune-solaire);
  box-shadow: 0 0 0 6px rgba(245,197,24,0.15), 0 8px 32px rgba(27,58,107,0.2);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(27,58,107,0.08);
  border: 1px solid var(--border-color);
  padding: 32px;
}

/* ============================================================
   FADE-IN ANIMATION
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   SECTION HERO
   ============================================================ */
.hero {
  padding-top: calc(64px + 80px);
  padding-bottom: 80px;
  background-color: var(--blanc-chaud);
  background-image: radial-gradient(circle, rgba(245,197,24,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 48px;
  align-items: start;
}

.badge-pill {
  display: inline-block;
  background: var(--jaune-doux);
  color: var(--bleu-profond);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero h1 .accent {
  color: var(--jaune-solaire);
}

.hero-intro {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--texte-secondaire);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.social-proof {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--texte-secondaire);
}

/* Hero Right */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.hero-avatar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-avatar-inline {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.hero-avatar-inline .avatar-hero {
  width: 112px;
  height: 112px;
}

.hero-avatar-inline .hero-avatar-name,
.hero-avatar-inline .hero-avatar-status {
  display: block;
  text-align: left;
}

.hero-avatar-name {
  font-family: 'Nunito', sans-serif;
  color: var(--bleu-profond);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
}

.hero-avatar-status {
  font-size: 0.85rem;
  color: var(--texte-secondaire);
  text-align: center;
}

/* WhatsApp Chat Simulation */
.wa-chat {
  width: 100%;
  max-width: 348px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(27,58,107,0.14);
  font-size: 0.9rem;
}

.wa-chat-header {
  background: #075E54;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-chat-header img, .wa-chat-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bleu-clair);
  flex-shrink: 0;
}

.wa-chat-header-info .wa-name {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
}

.wa-chat-header-info .wa-online {
  color: #7ee8a2;
  font-size: 0.78rem;
}

.wa-chat-body {
  background: #ECE5DD;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wa-bubble {
  padding: 10px 12px;
  line-height: 1.5;
  font-size: 0.875rem;
}

.wa-bubble-user {
  background: #fff;
  border-radius: 12px 12px 2px 12px;
  margin-left: auto;
  max-width: 88%;
  color: var(--texte-principal);
}

.wa-bubble-sandy {
  background: #DCF8C6;
  border-radius: 12px 12px 12px 2px;
  max-width: 92%;
  color: var(--texte-principal);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.wa-bubble-sandy .wa-mini-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bleu-clair);
  flex-shrink: 0;
  margin-top: 2px;
}

.wa-bubble-voice {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--texte-secondaire);
}

.wa-bubble-voice svg {
  color: var(--bleu-moyen);
}

/* Barre de progression vocale */
.wa-voice-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.wa-voice-bars span {
  display: inline-block;
  width: 3px;
  border-radius: 2px;
  background: var(--bleu-moyen);
  opacity: 0.6;
}

.wa-voice-time {
  font-size: 0.75rem;
  color: var(--texte-secondaire);
  white-space: nowrap;
}

/* Bulle carte (dashboard) — fond transparent, padding minimal */
.wa-bubble-card {
  background: transparent !important;
  padding: 0 !important;
  gap: 6px !important;
}

.wa-bubble-card .wa-mini-avatar {
  margin-top: 8px;
}

/* Texte inline au-dessus du dashboard dans la même bulle Sandy */
.wa-inline-text {
  background: rgba(255,255,255,0.35);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.8rem;
  color: var(--texte-principal);
  margin-bottom: 8px;
  line-height: 1.45;
  font-weight: 600;
}

.wa-meal-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.wa-meal-summary-item {
  background: rgba(255,255,255,0.42);
  border-radius: 10px;
  padding: 8px 10px;
}

.wa-summary-label {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(27,58,107,0.7);
  margin-bottom: 3px;
}

.wa-summary-text {
  display: block;
  font-size: 0.8rem;
  color: var(--texte-principal);
  line-height: 1.45;
}

.wa-coach-tip {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--texte-principal);
}

/* ── Dashboard card ── */
.wa-dashboard {
  background: linear-gradient(160deg, #fffaf0 0%, #fff3d9 58%, #fee8b6 100%);
  border: 1px solid rgba(238, 197, 90, 0.32);
  border-radius: 18px;
  padding: 14px 14px 12px;
  position: relative;
  width: min(232px, 100%);
  box-shadow: 0 12px 28px rgba(240, 180, 64, 0.16);
  overflow: hidden;
}

.wa-dashboard-sun {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.4rem;
  line-height: 1;
  opacity: 0.9;
}

.wa-dashboard-brand {
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #a88a3c;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.wa-dashboard-title {
  font-family: 'Nunito', sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: #4a3200;
  line-height: 1.05;
}

.wa-dashboard-date {
  font-size: 0.62rem;
  color: #9c7a32;
  margin-bottom: 12px;
}

/* Stats ring row */
.wa-ring-row {
  display: grid;
  grid-template-columns: minmax(54px, 1fr) auto minmax(54px, 1fr);
  align-items: center;
  gap: 8px;
  width: calc(100%);
  margin-inline: auto;
  margin-bottom: 12px;
  transform: translateX(-10px);
}

.wa-ring-stat {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 56px;
  padding-top: 12px;
}

.wa-ring-stat::before {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.56rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #9c7a32;
  line-height: 1;
  white-space: nowrap;
}

.wa-ring-stat:first-child::before {
  content: "Consomm\00E9";
}

.wa-ring-stat:last-child::before {
  content: "Objectif";
}

.wa-ring-stat-heading {
  display: none;
}

.wa-ring-stat-val {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1;
  color: #4a3200;
  font-variant-numeric: tabular-nums;
}

.wa-ring-stat-label {
  font-size: 0;
  line-height: 0;
}

.wa-ring-stat-label::before {
  display: block;
  font-size: 0.46rem;
  color: #9c7a32;
  line-height: 1;
  white-space: nowrap;
}

.wa-ring-stat:first-child .wa-ring-stat-label::before {
  content: "kcal mang\00E9es";
}

.wa-ring-stat:last-child .wa-ring-stat-label::before {
  content: "kcal pr\00E9vues";
}

.wa-ring-center {
  position: relative;
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.wa-ring-center svg {
  width: 96px;
  height: 96px;
  overflow: visible;
  filter: drop-shadow(0 8px 16px rgba(244, 184, 84, 0.18));
}

.wa-ring-center .wa-ring-track {
  stroke: #f3e6bf;
  stroke-width: 6.5;
}

.wa-ring-center .wa-ring-segment {
  stroke-width: 6.5;
}

.wa-ring-center .wa-ring-segment-carbs {
  stroke: #f7c24f;
}

.wa-ring-center .wa-ring-segment-protein {
  stroke: #f1a262;
}

.wa-ring-center .wa-ring-segment-fats {
  stroke: #e88170;
}

.wa-ring-center text {
  display: none;
}

.wa-ring-center::before,
.wa-ring-center::after {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.wa-ring-center::before {
  content: "1 297";
  top: 32px;
  font-family: 'Nunito', sans-serif;
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #4a3200;
  white-space: nowrap;
}

.wa-ring-center::after {
  content: "kcal restantes";
  top: 61px;
  font-size: 0.46rem;
  color: #9c7a32;
  line-height: 1;
  white-space: nowrap;
}

/* Macro cards */
.wa-macros {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: calc(100%);
  margin-inline: auto;
  margin-bottom: 12px;
  transform: translateX(-10px);
}

.wa-macro-card {
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(240, 198, 100, 0.25);
  border-radius: 14px;
  padding: 9px 6px 10px;
  text-align: center;
  display: grid;
  grid-template-areas:
    "label"
    "ring";
  justify-items: center;
  row-gap: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
}

.wa-macro-label {
  grid-area: label;
  font-size: 0.56rem;
  color: #9c7a32;
  margin-bottom: 0;
}

.wa-macro-progress {
  width: 100%;
  height: 6px;
  background: rgba(240, 224, 160, 0.85);
  border-radius: 999px;
  overflow: hidden;
  margin: 6px 0 5px;
}

.wa-macro-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.wa-macro-progress-fill.carbs {
  background: linear-gradient(90deg, #f7bf3c, #f5a623);
}

.wa-macro-progress-fill.protein {
  background: linear-gradient(90deg, #f28b82, #e57373);
}

.wa-macro-progress-fill.fats {
  background: linear-gradient(90deg, #ffd87a, #efb13e);
}

.wa-macro-card svg {
  grid-area: ring;
  width: 56px;
  height: 56px;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(244, 184, 84, 0.12));
}

.wa-macro-card circle:first-of-type {
  stroke: #f2e7c4;
}

.wa-macro-card:nth-child(1) circle:last-of-type {
  stroke: #f7c24f;
}

.wa-macro-card:nth-child(2) circle:last-of-type {
  stroke: #f1a262;
}

.wa-macro-card:nth-child(3) circle:last-of-type {
  stroke: #e88170;
}

.wa-macro-val {
  grid-area: ring;
  align-self: center;
  margin-top: -5px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1;
  color: #4a3200;
  z-index: 1;
}

.wa-macro-max {
  grid-area: ring;
  align-self: center;
  margin-top: 16px;
  font-size: 0.49rem;
  color: #8f7a47;
  z-index: 1;
}

/* Repas section */
.wa-meals-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #4a3200;
  margin-bottom: 8px;
}

.wa-meals-title-row > span:first-child {
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.wa-meals-count {
  font-size: 0.56rem;
  color: #9d7a23;
  font-weight: 600;
  background: rgba(255, 246, 217, 0.95);
  border: 1px solid rgba(240, 198, 100, 0.36);
  border-radius: 999px;
  padding: 4px 8px;
}

.wa-meal-item {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(240, 198, 100, 0.18);
  border-radius: 12px;
  padding: 8px 9px;
  margin-bottom: 6px;
  box-shadow: 0 8px 18px rgba(243, 193, 83, 0.08);
}

.wa-meal-item:last-child {
  margin-bottom: 0;
}

.wa-meal-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}

.wa-meal-name {
  font-weight: 700;
  font-size: 0.72rem;
  color: #4a3200;
}

.wa-meal-kcal {
  font-weight: 700;
  font-size: 0.64rem;
  color: #a77a12;
}

.wa-meal-food {
  font-size: 0.6rem;
  color: #775f2e;
  margin-bottom: 5px;
  line-height: 1.45;
}

.wa-meal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.wa-meal-tag {
  background: rgba(255, 246, 217, 0.95);
  border: 1px solid rgba(240, 198, 100, 0.28);
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 0.53rem;
  color: #8b6b2b;
}

/* ============================================================
   SECTION — COMPARATIF
   ============================================================ */
.section-comparatif {
  background: var(--bleu-clair);
  padding: 80px 0;
}

/* Table comparatif */
.comparatif-table {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(27,58,107,0.12);
  margin-bottom: 48px;
  border: 1px solid var(--border-color);
}

/* En-têtes colonnes */
.comparatif-header {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  background: var(--bleu-profond);
}

.comparatif-col-label {
  padding: 20px 24px;
}

.comparatif-col-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 0.95rem;
}

.comparatif-col-old {
  color: rgba(255,255,255,0.6);
  border-left: 1px solid rgba(255,255,255,0.1);
}

.comparatif-col-sandy {
  color: var(--jaune-solaire);
  border-left: 1px solid rgba(245,197,24,0.3);
  background: rgba(245,197,24,0.08);
}

.col-header-icon { font-size: 1.3rem; }

.col-header-name { font-size: 0.95rem; }

.col-header-badge {
  font-size: 0.72rem;
  background: rgba(245,197,24,0.2);
  color: var(--jaune-solaire);
  border-radius: 50px;
  padding: 2px 8px;
  margin-left: 4px;
}

/* Lignes */
.comparatif-row {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  border-top: 1px solid rgba(27,58,107,0.08);
  background: #fff;
  transition: background 0.15s;
}

.comparatif-row:hover { background: #FAFCFF; }

.comparatif-row-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 22px 24px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--bleu-profond);
  background: var(--bleu-clair);
  border-right: 1px solid rgba(27,58,107,0.08);
}

.row-icon { font-size: 1.2rem; flex-shrink: 0; }

.comparatif-cell {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 22px 24px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--texte-secondaire);
  border-left: 1px solid rgba(27,58,107,0.06);
}

.comparatif-cell-sandy {
  background: rgba(245,197,24,0.04);
  border-left: 2px solid rgba(245,197,24,0.4);
}

.cell-status {
  font-size: 1rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.cell-bad { color: #C0392B; }
.cell-good { color: var(--succes-vert); }

.citation {
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--bleu-profond);
  max-width: 680px;
  margin: 0 auto;
  padding: 32px;
  border-left: 4px solid var(--jaune-solaire);
  background: rgba(245,197,24,0.06);
  border-radius: 0 12px 12px 0;
}

/* ============================================================
   SECTION — COMMENT ÇA MARCHE
   ============================================================ */
.section-how {
  background: var(--blanc-chaud);
  padding: 80px 0;
}

.section-how h2 { text-align: center; margin-bottom: 8px; }
.section-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: var(--texte-secondaire);
  margin-bottom: 48px;
}

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

.step-card {
  padding: 32px;
}

.step-number {
  font-family: 'Nunito', sans-serif;
  font-size: 5rem;
  font-weight: 700;
  color: var(--jaune-solaire);
  line-height: 1;
  margin-bottom: 16px;
  display: block;
}

.step-card h3 {
  color: var(--bleu-profond);
  margin-bottom: 12px;
}

.format-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.format-badge {
  background: var(--jaune-doux);
  color: var(--bleu-profond);
  border-radius: 50px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ============================================================
   SECTION — COACH
   ============================================================ */
.section-coach {
  background: var(--bleu-profond);
  padding: 80px 0;
  color: #fff;
}

.section-coach h2 {
  color: #fff;
  text-align: center;
  margin-bottom: 24px;
}

.section-coach > .container > p {
  color: rgba(255,255,255,0.85);
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
}

.coach-avatar-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.benefit-card {
  background: var(--bleu-moyen);
  border-radius: 16px;
  padding: 28px;
  color: #fff;
}

.benefit-card .benefit-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.benefit-card strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #fff;
}

.benefit-card p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  margin: 0;
}

/* ============================================================
   SECTION — TARIFS
   ============================================================ */
.section-tarifs {
  background: var(--blanc-chaud);
  padding: 80px 0;
}

.section-tarifs h2 { text-align: center; margin-bottom: 8px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: center;
  margin: 48px 0 24px;
}

.pricing-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px 28px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 24px rgba(27,58,107,0.08);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pricing-card.featured {
  border: 2px solid var(--jaune-solaire);
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(27,58,107,0.15);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--jaune-solaire);
  color: var(--bleu-profond);
  border-radius: 50px;
  padding: 4px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-plan-name {
  font-family: 'Nunito', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--bleu-profond);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}

.pricing-amount {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--bleu-profond);
  font-family: 'DM Sans', sans-serif;
}

.pricing-period {
  font-size: 0.95rem;
  color: var(--texte-secondaire);
}

.pricing-old-price {
  width: 100%;
  font-size: 0.95rem;
  color: var(--texte-secondaire);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  opacity: 0.8;
  margin-bottom: 2px;
}

.pricing-launch {
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bleu-profond);
  background: rgba(245,197,24,0.18);
  border: 1px solid rgba(245,197,24,0.35);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: -8px;
}

.pricing-saving {
  font-size: 1rem;
  color: var(--texte-secondaire);
  margin-top: -6px;
  text-align: center;
}

.pricing-features-common {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-bottom: 36px;
}

.pricing-features-common .pricing-feature {
  font-size: 0.95rem;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--texte-secondaire);
}

.pricing-feature .check {
  color: var(--succes-vert);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-divider {
  height: 1px;
  background: var(--border-color);
}

.pricing-secure-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--texte-secondaire);
}

/* ============================================================
   SECTION — FAQ (page index)
   ============================================================ */
.section-faq {
  background: var(--bleu-clair);
  padding: 80px 0;
}

.section-faq h2 { text-align: center; margin-bottom: 48px; }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

details {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

details[open] {
  box-shadow: 0 4px 20px rgba(27,58,107,0.1);
}

summary {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  color: var(--bleu-profond);
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--jaune-solaire);
  font-weight: 400;
  transition: transform 0.25s;
  flex-shrink: 0;
}

details[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--texte-secondaire);
  font-size: 0.97rem;
  line-height: 1.7;
}

.faq-more {
  text-align: center;
  margin-top: 32px;
}

.faq-more a {
  color: var(--bleu-moyen);
  font-weight: 600;
  font-size: 0.97rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.faq-more a:hover {
  border-color: var(--bleu-moyen);
}

/* ============================================================
   SECTION — FAQ page faq.html
   ============================================================ */
.faq-page {
  padding-top: calc(64px + 60px);
  padding-bottom: 80px;
}

.faq-page-header {
  text-align: center;
  margin-bottom: 60px;
}

.faq-page-header h1 { margin-bottom: 12px; }

.faq-category {
  margin-bottom: 40px;
}

.faq-category-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bleu-moyen);
  margin-bottom: 16px;
  padding-left: 4px;
}

.faq-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--bleu-moyen);
  font-weight: 600;
  font-size: 0.97rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
  margin-top: 40px;
}

.faq-back:hover { border-color: var(--bleu-moyen); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bleu-profond);
  padding: 48px 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img, .footer-brand-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bleu-clair);
  border: 2px solid var(--jaune-solaire);
}

.footer-brand-info .brand-name {
  font-family: 'Nunito', sans-serif;
  font-size: 1.3rem;
  color: var(--jaune-solaire);
  display: block;
}

.footer-brand-info .brand-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  display: block;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   FORMULAIRE — inscription.html
   ============================================================ */
.inscription-page {
  padding-top: calc(64px + 48px);
  padding-bottom: 80px;
}

.inscription-grid {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 48px;
  align-items: flex-start;
}

/* Colonne gauche sticky */
.inscription-sidebar {
  background: var(--bleu-clair);
  border-radius: 20px;
  padding: 32px;
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.sidebar-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  width: 100%;
}

.sidebar-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--texte-secondaire);
}

.sidebar-checklist li .check-green {
  color: var(--succes-vert);
  font-weight: 700;
  flex-shrink: 0;
}

.sidebar-quote {
  font-family: 'Nunito', sans-serif;
  font-style: italic;
  font-size: 0.97rem;
  color: var(--bleu-profond);
  border-left: 3px solid var(--jaune-solaire);
  padding-left: 14px;
  text-align: left;
  line-height: 1.6;
}

/* Colonne droite formulaire */
.inscription-form-col h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.inscription-form-col .form-subtitle {
  color: var(--texte-secondaire);
  margin-bottom: 32px;
}

/* Progress steps */
.form-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}

.form-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(27,58,107,0.35);
}

.form-step.active { color: var(--bleu-profond); }
.form-step.done { color: var(--succes-vert); }

.form-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  transition: background 0.2s;
}

.form-step.active .form-step-dot {
  background: var(--bleu-profond);
  color: #fff;
  border-color: var(--bleu-profond);
}

.form-step.done .form-step-dot {
  background: var(--succes-vert);
  color: #fff;
  border-color: var(--succes-vert);
}

.form-step-arrow {
  color: rgba(27,58,107,0.25);
  font-size: 1rem;
}

/* Fieldsets */
fieldset {
  border: none;
  margin-bottom: 32px;
}

legend {
  font-family: 'Nunito', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--bleu-profond);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
  width: 100%;
  display: block;
}

.fieldset-subtitle {
  font-size: 0.88rem;
  color: var(--texte-secondaire);
  margin-top: -12px;
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bleu-profond);
  margin-bottom: 6px;
  margin-top: 16px;
}

label:first-of-type { margin-top: 0; }

.field-hint {
  display: block;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--texte-secondaire);
  margin-top: 2px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #D0D8E8;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.97rem;
  color: var(--texte-principal);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--bleu-moyen);
  box-shadow: 0 0 0 3px rgba(46,95,163,0.12);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%234A4A6A' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

textarea { resize: vertical; min-height: 80px; }

.tel-input-wrapper {
  display: flex;
  gap: 8px;
}

.tel-input-wrapper select {
  width: auto;
  flex-shrink: 0;
  min-width: 130px;
}

.tel-input-wrapper input {
  flex: 1;
}

.birthdate-inputs {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 1.1fr;
  gap: 8px;
}

.field-note {
  font-size: 0.82rem;
  color: var(--texte-secondaire);
  margin-top: 6px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.two-col label { margin-top: 0; }

/* Checkboxes */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  margin-bottom: 14px;
  font-size: 0.92rem;
  color: var(--texte-secondaire);
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 1.5px solid #D0D8E8;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--bleu-profond);
}

.checkbox-label a {
  color: var(--bleu-moyen);
  text-decoration: underline;
}

/* Erreurs champ */
.field-error {
  font-size: 0.82rem;
  color: var(--erreur);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.error-banner {
  background: rgba(226,75,74,0.08);
  border: 1px solid rgba(226,75,74,0.3);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--erreur);
  font-size: 0.93rem;
  margin-bottom: 20px;
}

.submit-note {
  text-align: center;
  font-size: 0.83rem;
  color: var(--texte-secondaire);
  margin-top: 14px;
  line-height: 1.6;
}

/* Stripe section */
.stripe-header {
  text-align: center;
  margin-bottom: 32px;
  padding-top: 16px;
}

.stripe-header h2 { margin-bottom: 8px; }

.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.step.done { color: var(--succes-vert); }
.step.active { color: var(--bleu-profond); }
.step-arrow { color: var(--texte-secondaire); }

#stripe-pricing-table-container {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bleu-clair);
  border-radius: 16px;
  padding: 40px;
  color: var(--texte-secondaire);
  font-style: italic;
}

/* ============================================================
   PAGE SUCCÈS
   ============================================================ */
.succes-page {
  padding-top: calc(64px + 60px);
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.succes-container {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.succes-checkmark {
  margin-bottom: 8px;
}

.check-path {
  animation: drawCheck 0.6s ease-out 0.3s forwards;
}

@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

.succes-container h1 {
  font-size: 2.4rem;
}

.succes-container .trial-text {
  font-size: 1.05rem;
  color: var(--texte-secondaire);
  max-width: 480px;
}

/* WhatsApp CTA Block */
.wa-cta-block {
  background: var(--blanc-chaud);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wa-instruction {
  color: var(--texte-secondaire);
  font-size: 1rem;
  line-height: 1.6;
}

/* What happens next */
.succes-next {
  background: var(--bleu-clair);
  border-radius: 20px;
  padding: 28px 32px;
  width: 100%;
  text-align: left;
}

.succes-next h3 {
  margin-bottom: 16px;
  text-align: center;
}

.succes-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.succes-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--texte-secondaire);
}

.succes-step .s-check {
  color: var(--succes-vert);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   SECTION TITLES CENTERED
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 { margin-bottom: 8px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.7rem; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-avatar-inline {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-avatar-inline .avatar-hero {
    width: 96px;
    height: 96px;
  }

  /* comparatif-table handled below in 768px breakpoint */

  .steps-grid { grid-template-columns: 1fr; }

  .benefits-grid { grid-template-columns: 1fr; }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .pricing-card.featured { transform: none; }

  .inscription-grid {
    grid-template-columns: 1fr;
  }

  .inscription-sidebar {
    position: static;
    order: 1;
  }

  .inscription-form-col { order: 0; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.5rem; }

  .navbar { height: 56px; }

  .nav-brand-full { display: none; }

  .nav-brand-short { display: inline-block; }

  .hero {
    padding-top: calc(56px + 48px);
    padding-bottom: 48px;
  }

  .nav-links { display: none; }

  .hamburger { display: flex; }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .section-comparatif,
  .section-how,
  .section-coach,
  .section-tarifs,
  .section-faq {
    padding: 56px 0;
  }

  /* Comparatif mobile : empilement en cards */
  .comparatif-header { display: none; }

  .comparatif-row {
    grid-template-columns: 1fr;
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 12px rgba(27,58,107,0.07);
  }

  .comparatif-row:hover { background: #fff; }

  .comparatif-table {
    gap: 0;
    box-shadow: none;
    border: none;
    background: transparent;
    overflow: visible;
  }

  .comparatif-row-label {
    background: var(--bleu-profond);
    color: #fff;
    border-radius: 0;
    border-right: none;
    padding: 14px 18px;
    font-size: 0.9rem;
  }

  .comparatif-cell {
    padding: 14px 18px;
    border-left: none;
    border-top: 1px solid rgba(27,58,107,0.07);
    font-size: 0.87rem;
  }

  .comparatif-cell::before {
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 6px;
  }

  .comparatif-cell-old::before {
    content: '😮‍💨 Appli classique';
    color: #C0392B;
  }

  .comparatif-cell-sandy {
    border-left: 3px solid var(--jaune-solaire);
  }

  .comparatif-cell-sandy::before {
    content: '✨ Sandy';
    color: var(--bleu-profond);
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .tel-input-wrapper {
    flex-direction: column;
  }

  .tel-input-wrapper select { width: 100%; }

  .birthdate-inputs {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .succes-page {
    padding-top: calc(56px + 40px);
  }

  .faq-page {
    padding-top: calc(56px + 40px);
  }

  .inscription-page {
    padding-top: calc(56px + 32px);
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.35rem; }

  .card, .probleme-card, .step-card, .pricing-card, .benefit-card {
    padding: 22px 18px;
  }

  .inscription-sidebar { padding: 22px 18px; }

  .wa-cta-block { padding: 22px 18px; }

  .footer-links { gap: 12px; }
}
