/* =============================================
   SWEETAPPLE - Design inspire du logo
   Orange vif + Vert fonce feuille
   ============================================= */

:root {
  /* Couleurs du logo — Orange vif + Vert foncé */
  --apple-red: #F58220;
  --apple-orange: #F59A42;
  --apple-dark: #D96E10;
  --leaf-green: #1A6B2A;
  --leaf-dark: #145221;
  --leaf-light: #2d8a3e;
  --leaf-pale: #c8e6c0;

  /* Neutres */
  --white: #ffffff;
  --cream: #fdf8f4;
  --warm-gray-50: #faf7f5;
  --warm-gray-100: #f0ebe7;
  --warm-gray-200: #e0d8d1;
  --warm-gray-300: #c7bdb3;
  --warm-gray-500: #8a7e74;
  --warm-gray-700: #5a5049;
  --warm-gray-900: #2c2520;

  /* Utilitaires */
  --shadow-sm: 0 1px 4px rgba(44,37,32,0.06);
  --shadow-md: 0 4px 16px rgba(44,37,32,0.1);
  --shadow-lg: 0 12px 40px rgba(44,37,32,0.12);
  --shadow-glow: 0 4px 20px rgba(245,130,32,0.2);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1180px;
}

/* --- Reset (Bootstrap-compatible) --- */
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--warm-gray-900);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf-green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--apple-red); }

/* --- Typography --- */
h1, h2, h3, h4 { line-height: 1.15; color: var(--warm-gray-900); }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); font-weight: 600; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
  position: relative;
}
.section-header h2 {
  margin-bottom: 8px;
}
.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--apple-red), var(--leaf-green));
  border-radius: 4px;
  margin: 18px auto 0;
}
.section-header p {
  color: var(--warm-gray-500);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 20px auto 0;
}

.sa-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(245,130,32,0.08), rgba(26,107,42,0.08));
  color: var(--apple-red);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
  border: 1px solid rgba(245,130,32,0.15);
}

/* Section divider — decorative top border */
.section-divider {
  position: relative;
}
.section-divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, var(--apple-red), var(--leaf-green));
  border-radius: 3px;
}

/* --- Custom Buttons (complements Bootstrap) --- */
.btn-green {
  background: linear-gradient(135deg, var(--leaf-light), var(--leaf-green));
  color: var(--white) !important;
  box-shadow: 0 2px 8px rgba(26,107,42,0.25);
}
.btn-green:hover {
  background: linear-gradient(135deg, var(--leaf-green), var(--leaf-dark));
  color: var(--white) !important;
  transform: translateY(-2px);
}
.btn-accent {
  background: linear-gradient(135deg, var(--apple-orange), var(--apple-red));
  color: var(--white) !important;
  border: none;
  box-shadow: 0 2px 8px rgba(245,130,32,0.25);
}
.btn-accent:hover {
  background: linear-gradient(135deg, var(--apple-red), var(--apple-dark));
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* --- Navigation (Bootstrap enhanced) --- */
.navbar {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.navbar-logo-img {
  height: 78px;
  width: auto;
}
.navbar .nav-link {
  color: var(--warm-gray-700) !important;
  font-weight: 500;
  font-size: 0.88rem;
  border-radius: var(--radius-full);
  padding: 8px 14px !important;
  transition: all var(--transition);
}
.navbar .nav-link:hover {
  color: var(--apple-red) !important;
  background: rgba(245,130,32,0.06);
}
.navbar .nav-link.active {
  color: var(--apple-red) !important;
  font-weight: 700;
  background: rgba(245,130,32,0.08);
  position: relative;
}
.navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 3px;
  background: linear-gradient(90deg, var(--apple-red), var(--apple-orange));
  border-radius: 3px;
}

/* --- Hero --- */
.hero {
  min-height: auto;
  display: flex;
  align-items: flex-start;
  padding-top: 16px;
  padding-bottom: 32px;
  background: var(--warm-gray-50);
  position: relative;
  overflow: hidden;
}

.hero::before { display: none; }
.hero::after { display: none; }

.hero .container.hero-3col {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 24px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

/* Hero columns — même dimension */
.hero-col {
  display: flex;
  flex-direction: column;
}

.hero-col-main { }

/* Bloc fusionné dans la colonne large */
.hero-merged-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
  align-items: center;
  margin: 24px 0 4px;
  padding: 20px;
  background: rgba(26, 107, 42, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(26, 107, 42, 0.12);
}
.hero-merged-img {
  width: 100%;
  height: 220px;
  border-radius: 12px;
  object-fit: cover;
}
.hero-merged-text h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: #1A6B2A;
  font-weight: 700;
}
.hero-merged-text p {
  margin: 0 0 10px;
  color: #555;
  font-size: 0.92rem;
}
.hero-merged-text .hero-card-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 14px;
  font-size: 0.85rem;
}
@media (max-width: 720px) {
  .hero-merged-row { grid-template-columns: 1fr; text-align: center; }
  .hero-merged-img { max-width: 200px; margin: 0 auto; }
  .hero-merged-text .hero-card-features { grid-template-columns: 1fr; text-align: left; }
}

.hero-col-center {
  display: flex;
  justify-content: center;
}

.hero-col-events {
  display: flex;
  flex-direction: column;
}

.hero-logo-img {
  width: 100%;
  max-width: 100%;
  height: 340px;
  margin: 0 0 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  object-position: center;
  display: block;
}

/* --- Colonne 1 : Carte principale hero --- */
.hero-main-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--warm-gray-100);
  box-shadow: var(--shadow-md);
}

.hero-badge {
  display: inline-block;
  background: rgba(26,107,42,0.08);
  color: var(--leaf-green);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
  border: 1px solid rgba(26,107,42,0.15);
}

.hero-main-card h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--warm-gray-900);
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-word-green {
  color: var(--leaf-green);
}

.hero-word-orange {
  color: var(--apple-red);
}

.hero-desc {
  font-size: 0.92rem;
  color: var(--warm-gray-500);
  line-height: 1.65;
  margin-bottom: 28px;
}

.hero-main-card .hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Hero Highlights (Diagnostic / Services / Livraison) --- */
.hero-highlights {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--warm-gray-100);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-highlight-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--warm-gray-50);
  border: 1px solid var(--warm-gray-100);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--warm-gray-900);
  transition: all var(--transition);
}

.hero-highlight-card:hover {
  border-color: var(--apple-red);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
  color: var(--warm-gray-900);
}

.hero-highlight-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(245,130,32,0.08), rgba(245,130,32,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.hero-highlight-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hero-highlight-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--warm-gray-900);
}

.hero-highlight-desc {
  font-size: 0.75rem;
  color: var(--warm-gray-500);
  line-height: 1.4;
}

.hero-highlight-arrow {
  font-size: 1.1rem;
  color: var(--apple-red);
  font-weight: 700;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.hero-highlight-card:hover .hero-highlight-arrow {
  transform: translateX(4px);
}

.hero-main-card .btn-green {
  background: var(--leaf-green);
  color: var(--white);
  border: none;
}
.hero-main-card .btn-green:hover {
  background: var(--leaf-dark);
  color: var(--white);
}

/* Capsules vidéo témoignages */
.hero-testimonials {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--warm-gray-100);
}

.testimonials-title {
  font-size: 0.88rem;
  color: var(--warm-gray-900);
  margin-bottom: 14px;
  font-weight: 600;
}

.video-capsules {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-capsule {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--warm-gray-50);
  border: 1px solid var(--warm-gray-100);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--warm-gray-900);
  transition: all var(--transition);
  cursor: pointer;
}

.video-capsule:hover {
  border-color: var(--apple-orange);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--warm-gray-900);
}

.video-thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--apple-orange), var(--apple-red));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.play-icon {
  color: var(--white);
  font-size: 0.85rem;
  margin-left: 2px;
}

.video-info {
  display: flex;
  flex-direction: column;
}

.video-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--warm-gray-900);
}

.video-desc {
  font-size: 0.72rem;
  color: var(--warm-gray-500);
}

/* Modal vidéo */
.video-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  z-index: 5000;
  align-items: center;
  justify-content: center;
}
.video-modal.show { display: flex; }

.video-modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 500px;
  width: calc(100% - 32px);
  text-align: center;
  position: relative;
}

.video-modal-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--warm-gray-500);
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--warm-gray-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 3rem;
}

.video-modal-content h3 { margin-bottom: 8px; }
.video-modal-content p { color: var(--warm-gray-500); font-size: 0.9rem; }

/* Hero visual / card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 0 0 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--warm-gray-100);
  width: 100%;
  flex: 1;
  overflow: hidden;
}
.hero-card h3 { padding: 0 28px; margin-bottom: 10px; margin-top: 22px; }
.hero-card > p { padding: 0 28px; color: var(--warm-gray-500); font-size: 0.93rem; }
.hero-card-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(245,154,66,0.1), rgba(245,130,32,0.1));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin-bottom: 20px;
}


.hero-card-features { margin-top: 20px; padding: 0 28px; display: flex; flex-direction: column; gap: 12px; }
.hero-card-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.93rem; color: var(--warm-gray-700);
}
.hero-card-features .check {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(26,107,42,0.1), rgba(45,138,62,0.1));
  color: var(--leaf-green);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; flex-shrink: 0; font-weight: 700;
}

.floating-badge {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  box-shadow: var(--shadow-md);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  animation: float 4s ease-in-out infinite;
  border: 1px solid var(--warm-gray-100);
}
.floating-badge.top-right {
  top: -12px; right: -24px;
  color: var(--leaf-green);
}
.floating-badge.bottom-left {
  bottom: -12px; left: -24px;
  color: var(--apple-red);
  animation-delay: -2s;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* --- Sections --- */
section { padding: 96px 0; }

.section-alt { background: var(--warm-gray-50); }

.section-green {
  background: linear-gradient(160deg, var(--leaf-dark), var(--leaf-green) 40%, #1f7a32);
  color: var(--white);
}
.section-green h2, .section-green h3, .section-green h4 { color: var(--white); }
.section-green p { color: var(--leaf-pale); }
.section-green .sa-badge {
  background: rgba(255,255,255,0.12);
  color: var(--leaf-pale);
  border-color: rgba(255,255,255,0.2);
}
.section-green .section-header h2::after {
  background: linear-gradient(90deg, var(--apple-orange), rgba(255,255,255,0.6));
}

/* --- Cards generiques --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}

/* Section Services : forcer 4 colonnes sur une ligne */
#services .services-grid {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1024px) {
  #services .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  #services .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--warm-gray-100);
  transition: all var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(245,154,66,0.2);
}

.service-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.service-icon.green { background: linear-gradient(135deg, rgba(26,107,42,0.08), rgba(45,138,62,0.12)); }
.service-icon.orange { background: linear-gradient(135deg, rgba(245,154,66,0.08), rgba(245,130,32,0.12)); }
.service-icon.red { background: linear-gradient(135deg, rgba(245,130,32,0.08), rgba(217,110,16,0.12)); }
.service-icon.blue { background: linear-gradient(135deg, rgba(26,80,107,0.08), rgba(42,120,160,0.12)); }

.service-card h3 { margin-bottom: 8px; }
.service-card > p { color: var(--warm-gray-500); font-size: 0.93rem; }

/* --- Couscous Configurator --- */
.couscous-configurator {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--warm-gray-100);
  margin-bottom: 36px;
}
.config-step {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.config-step label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--warm-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.config-step select {
  padding: 10px 14px;
  border: 1px solid var(--warm-gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--warm-gray-700);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s;
}
.config-step select:focus {
  outline: none;
  border-color: var(--leaf-green);
  box-shadow: 0 0 0 3px rgba(26,107,42,0.1);
}
.config-step select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.config-btn {
  min-width: 180px;
  align-self: flex-end;
}
.config-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
@media (max-width: 768px) {
  .couscous-configurator {
    flex-direction: column;
    align-items: stretch;
  }
  .config-btn { width: 100%; }
}

/* --- Glycemic Comparator --- */
.glycemic-comparator {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--warm-gray-100);
  margin-bottom: 36px;
}
.glycemic-comparator h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.comparator-desc {
  font-size: 0.88rem;
  color: var(--warm-gray-500);
  margin-bottom: 20px;
}
.comparator-selects {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.comparator-col {
  flex: 1;
}
.comparator-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--warm-gray-300);
  padding-top: 28px;
  flex-shrink: 0;
}
.comparator-result {
  margin-top: 12px;
  font-size: 0.85rem;
  min-height: 80px;
}
.comparator-result .cr-ig {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.78rem;
  margin-bottom: 6px;
}
.cr-ig.ig-bas { background: #e8f5e9; color: #1b5e20; }
.cr-ig.ig-moyen { background: #fff3e0; color: #e65100; }
.cr-ig.ig-eleve { background: #fce4ec; color: #b71c1c; }
.comparator-result .cr-row {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
  color: var(--warm-gray-500);
  border-bottom: 1px solid var(--warm-gray-100);
}
.comparator-result .cr-row strong {
  color: var(--warm-gray-900);
}
.comparator-verdict {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}
.comparator-verdict:empty { display: none; }
.comparator-verdict.verdict-green {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}
.comparator-verdict.verdict-orange {
  background: #fff3e0;
  color: #e65100;
  border: 1px solid #ffcc80;
}
.comparator-verdict.verdict-neutral {
  background: var(--warm-gray-50);
  color: var(--warm-gray-700);
  border: 1px solid var(--warm-gray-200);
}
@media (max-width: 768px) {
  .comparator-selects { flex-direction: column; }
  .comparator-vs { padding-top: 0; transform: rotate(90deg); }
}

/* Highlight target card */
.meal-highlight {
  animation: pulseHighlight 1.5s ease;
  box-shadow: 0 0 0 4px var(--leaf-green), var(--shadow-md) !important;
}
@keyframes pulseHighlight {
  0% { box-shadow: 0 0 0 0px rgba(26,107,42,0.5); }
  50% { box-shadow: 0 0 0 8px rgba(26,107,42,0.15); }
  100% { box-shadow: 0 0 0 4px var(--leaf-green), var(--shadow-md); }
}

/* --- IG Tooltip --- */
.ig-badge {
  position: relative;
  cursor: help;
}
.ig-bas {
  background: var(--green-bg);
  color: var(--green-main);
}
.ig-moyen {
  background: #fff3e0;
  color: #e65100;
}
.ig-eleve {
  background: #fce4ec;
  color: #b71c1c;
}
.ig-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.5;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 20;
  pointer-events: none;
}
.ig-tooltip-green {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}
.ig-tooltip-green::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #a5d6a7;
}
.ig-tooltip-orange {
  background: #fff3e0;
  color: #bf360c;
  border: 1px solid #ffcc80;
}
.ig-tooltip-orange::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #ffcc80;
}
.ig-tooltip-red {
  background: #fce4ec;
  color: #b71c1c;
  border: 1px solid #ef9a9a;
}
.ig-tooltip-red::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #ef9a9a;
}
.ig-badge:hover .ig-tooltip {
  display: block;
}

/* --- Cartes repas avec photo --- */
.meal-photo-card {
  padding: 0 !important;
  overflow: hidden;
}
.meal-photo-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}
.meal-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
.meal-photo-card:hover .meal-photo {
  transform: scale(1.06);
}
.meal-photo-overlay-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
}
.meal-photo-overlay-badge.ig-bas   { background: rgba(25,135,84,.85);  color: #fff; }
.meal-photo-overlay-badge.ig-moyen { background: rgba(255,193,7,.9);   color: #333; }
.meal-photo-overlay-badge.ig-eleve { background: rgba(220,53,69,.85);  color: #fff; }

.meal-card-body {
  padding: 16px 20px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* --- Meal Hover Cards --- */
.meal-hover-card .nutrition-hover-hint {
  margin-top: auto;
  padding-top: 10px;
  font-size: 0.82rem;
  color: var(--warm-gray-400);
  cursor: default;
  transition: color 0.2s;
}
.meal-hover-card:hover .nutrition-hover-hint,
.meal-hover-card.nutrition-open .nutrition-hover-hint {
  color: var(--leaf-green);
  font-weight: 600;
}
.meal-hover-card .nutrition-overlay {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.meal-hover-card .nutrition-overlay > .nutrition-inner {
  overflow: hidden;
}
.meal-hover-card:hover .nutrition-overlay,
.meal-hover-card.nutrition-open .nutrition-overlay {
  grid-template-rows: 1fr;
}
.nutrition-inner {
  padding-top: 0;
  border-top: 2px solid transparent;
  transition: padding-top 0.35s ease, border-color 0.35s ease;
}
.meal-hover-card:hover .nutrition-inner,
.meal-hover-card.nutrition-open .nutrition-inner {
  padding-top: 10px;
  border-top-color: var(--leaf-green);
}
.nutrition-overlay-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--leaf-green);
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--warm-gray-100);
}

/* --- Nutrition Table --- */
.nutrition-table {
  margin-top: 12px;
  border-top: 1px solid var(--warm-gray-100);
  font-size: 0.85rem;
}
.nutrition-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid var(--warm-gray-100);
  color: var(--warm-gray-500);
}
.nutrition-row strong {
  color: var(--leaf-green);
  font-weight: 600;
}

/* --- NutriSimple Recipes Grid --- */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) {
  .recipes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .recipes-grid { grid-template-columns: 1fr; }
}
.recipe-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--warm-gray-100);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.recipe-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--leaf-green);
}
.recipe-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.recipe-emoji {
  font-size: 1.6rem;
}
.recipe-category {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--warm-gray-400);
}
.recipe-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--warm-gray-800);
}
.recipe-card:hover h4 {
  color: var(--leaf-green);
}
.recipe-desc {
  font-size: 0.88rem;
  color: var(--warm-gray-500);
  margin-bottom: 8px;
}
.nutrition-hover-hint {
  margin-top: auto;
  padding-top: 10px;
  font-size: 0.82rem;
  color: var(--warm-gray-400);
  transition: opacity 0.2s;
}
.nutrition-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 16px 24px;
  border-top: 2px solid var(--leaf-green);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  font-size: 0.85rem;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.06);
}
.recipe-card:hover .nutrition-overlay {
  transform: translateY(0);
}
.recipe-card:hover .nutrition-hover-hint {
  opacity: 0;
}

/* --- Clienteles --- */
.clienteles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 1024px) {
  .clienteles-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .pricing-grid { grid-template-columns: 1fr 1fr; max-width: 700px; }
  .pricing-grid .pricing-card:last-child { grid-column: 1 / -1; max-width: 340px; margin: 0 auto; }
}

.clientele-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 0 32px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--warm-gray-100);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.clientele-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Ribbon top bar */
.clientele-ribbon {
  width: 100%;
  height: 5px;
  margin-bottom: 28px;
}
.ribbon-orange { background: linear-gradient(90deg, var(--apple-orange), var(--apple-red)); }
.ribbon-green  { background: linear-gradient(90deg, var(--leaf-light), var(--leaf-green)); }
.ribbon-mixed  { background: linear-gradient(90deg, var(--apple-red), var(--leaf-green)); }

/* Icon circle */
.clientele-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.icon-orange { background: linear-gradient(135deg, rgba(245,130,32,0.1), rgba(245,154,66,0.15)); }
.icon-green  { background: linear-gradient(135deg, rgba(26,107,42,0.1), rgba(45,138,62,0.15)); }
.icon-mixed  { background: linear-gradient(135deg, rgba(245,130,32,0.08), rgba(26,107,42,0.1)); }

/* Age tag */
.clientele-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.tag-orange { background: rgba(245,130,32,0.1); color: var(--apple-red); }
.tag-green  { background: rgba(26,107,42,0.1); color: var(--leaf-green); }
.tag-mixed  { background: linear-gradient(135deg, rgba(245,130,32,0.08), rgba(26,107,42,0.08)); color: var(--warm-gray-700); }

.clientele-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--warm-gray-900);
}

.clientele-desc {
  font-size: 0.9rem;
  color: var(--warm-gray-500);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Features list */
.clientele-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  width: 100%;
  margin-bottom: 24px;
}
.clientele-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--warm-gray-700);
  line-height: 1.5;
}

.clientele-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.check-orange { background: rgba(245,130,32,0.12); color: var(--apple-red); }
.check-green  { background: rgba(26,107,42,0.12); color: var(--leaf-green); }
.check-mixed  { background: linear-gradient(135deg, rgba(245,130,32,0.1), rgba(26,107,42,0.1)); color: var(--warm-gray-700); }

/* CTA link */
.clientele-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition);
  margin-top: auto;
}
.cta-orange {
  background: rgba(245,130,32,0.08);
  color: var(--apple-red);
  border: 1px solid rgba(245,130,32,0.2);
}
.cta-orange:hover {
  background: var(--apple-red);
  color: var(--white);
  border-color: var(--apple-red);
  transform: translateY(-2px);
}
.cta-green {
  background: rgba(26,107,42,0.08);
  color: var(--leaf-green);
  border: 1px solid rgba(26,107,42,0.2);
}
.cta-green:hover {
  background: var(--leaf-green);
  color: var(--white);
  border-color: var(--leaf-green);
  transform: translateY(-2px);
}
.cta-mixed {
  background: linear-gradient(135deg, rgba(245,130,32,0.06), rgba(26,107,42,0.06));
  color: var(--warm-gray-700);
  border: 1px solid var(--warm-gray-200);
}
.cta-mixed:hover {
  background: linear-gradient(135deg, var(--apple-red), var(--leaf-green));
  color: var(--white);
  border-color: transparent;
  transform: translateY(-2px);
}

/* Hover accent per card */
.clientele-card:hover .ribbon-orange { box-shadow: 0 2px 12px rgba(245,130,32,0.3); }
.clientele-card:hover .ribbon-green  { box-shadow: 0 2px 12px rgba(26,107,42,0.3); }
.clientele-card:hover .ribbon-mixed  { box-shadow: 0 2px 12px rgba(130,100,50,0.2); }

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg, 16px);
  padding: 0;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--warm-gray-100);
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--apple-red);
  box-shadow: var(--shadow-lg), 0 0 0 3px rgba(245,130,32,0.12);
  transform: scale(1.03);
  z-index: 2;
}
.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-4px);
}
.pricing-card.featured .pricing-tag {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: linear-gradient(135deg, var(--apple-orange), var(--apple-red));
  color: var(--white);
  padding: 8px 22px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
  text-transform: uppercase;
}

.pricing-header {
  padding: 36px 32px 0;
  text-align: center;
}
.pricing-card.featured .pricing-header {
  padding-top: 52px;
}

.pricing-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(26,107,42,0.08), rgba(26,107,42,0.15));
  color: var(--leaf-green);
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.pricing-card.featured .pricing-icon {
  background: linear-gradient(135deg, rgba(245,130,32,0.1), rgba(200,40,40,0.12));
  color: var(--apple-red);
}

.pricing-card h3 {
  margin-bottom: 6px;
  font-size: 1.25rem;
}

.pricing-subtitle {
  color: var(--warm-gray-500);
  font-size: 0.88rem;
  margin-bottom: 0;
}

.pricing-price-block {
  text-align: center;
  padding: 24px 32px;
}

.pricing-card .price {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--apple-orange), var(--apple-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 4px;
}
.pricing-card .price-unit {
  font-size: 0.88rem;
  color: var(--warm-gray-500);
  margin-bottom: 12px;
}
.pricing-card .price-total {
  display: inline-block;
  font-size: 0.88rem;
  color: var(--warm-gray-700);
  font-weight: 600;
  background: var(--warm-gray-50, #f8f7f5);
  padding: 6px 16px;
  border-radius: var(--radius-full);
}
.pricing-card .price-total span {
  color: var(--warm-gray-500);
  font-weight: 400;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 32px;
  margin-bottom: 32px;
  flex-grow: 1;
  border-top: 1px solid var(--warm-gray-100);
  padding-top: 24px;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--warm-gray-700);
}
.pricing-features .icon-check {
  color: var(--leaf-green);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.pricing-btn {
  margin: 0 32px 32px;
  border-radius: var(--radius-md) !important;
  font-weight: 600;
  padding: 12px 24px;
}

.pricing-btn-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 32px 32px;
}
.pricing-btn-group .pricing-btn {
  margin: 0;
}
.pricing-btn-sub {
  border-radius: var(--radius-md) !important;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 8px 16px;
}

.pricing-guarantee {
  text-align: center;
  margin-top: 40px;
  padding: 16px 24px;
  background: var(--warm-gray-50, #f8f7f5);
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--warm-gray-600);
  margin-left: auto;
  margin-right: auto;
}
#tarifs .container > .pricing-guarantee {
  display: flex;
  justify-content: center;
}
.pricing-guarantee i {
  color: var(--leaf-green);
  font-size: 1.2rem;
}

/* --- Savings Simulator --- */
.savings-simulator {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--warm-gray-100);
  margin-top: 36px;
}
.savings-simulator h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.savings-desc {
  font-size: 0.88rem;
  color: var(--warm-gray-500);
  margin-bottom: 20px;
}
.savings-form {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.savings-field {
  flex: 1;
  min-width: 180px;
}
.savings-result {
  margin-top: 20px;
  min-height: 40px;
}
.savings-result:empty { display: none; }
.savings-result-card {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 20px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(26,107,42,0.04), rgba(245,130,32,0.04));
  border: 1px solid rgba(26,107,42,0.15);
}
.savings-result-item {
  flex: 1;
  min-width: 140px;
  text-align: center;
}
.savings-result-item .savings-amount {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--leaf-green);
  line-height: 1.2;
}
.savings-result-item .savings-amount.accent {
  background: linear-gradient(135deg, var(--apple-orange), var(--apple-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.savings-result-item .savings-label {
  font-size: 0.82rem;
  color: var(--warm-gray-500);
  margin-top: 4px;
}
@media (max-width: 768px) {
  .savings-form { flex-direction: column; }
}

/* --- Diagnostic --- */
.diagnostic-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.diagnostic-info h2 { margin-bottom: 16px; }
.diagnostic-info > p { color: var(--warm-gray-500); margin-bottom: 32px; }

.diagnostic-steps { display: flex; flex-direction: column; gap: 24px; }
.diagnostic-step { display: flex; gap: 16px; align-items: start; }
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--apple-orange), var(--apple-red));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(245,130,32,0.2);
}
.step-content h4 { font-size: 1rem; margin-bottom: 4px; }
.step-content p { color: var(--warm-gray-500); font-size: 0.88rem; }

.diagnostic-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--warm-gray-100);
}
.diagnostic-form-card h3 { margin-bottom: 24px; text-align: center; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--warm-gray-700);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--warm-gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  font-family: inherit;
  transition: all var(--transition);
  background: var(--white);
  color: var(--warm-gray-900);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--apple-orange);
  box-shadow: 0 0 0 3px rgba(245,154,66,0.1);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* --- Diagnostic Video Card --- */
.diagnostic-video-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.video-placeholder-inline {
  background: linear-gradient(135deg, var(--warm-gray-50), var(--warm-gray-100));
  border: 1px solid var(--warm-gray-200);
  border-radius: var(--radius-sm);
  padding: 16px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.video-placeholder-inline:hover {
  border-color: var(--apple-orange);
  box-shadow: var(--shadow-sm);
}
.video-placeholder-text {
  display: flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--warm-gray-700);
}
.video-placeholder-text i {
  color: var(--apple-red);
  font-size: 1.1rem;
}
.video-play-overlay {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.4rem;
  color: var(--apple-red);
  transition: transform var(--transition);
}
.video-placeholder-inline:hover .video-play-overlay {
  transform: scale(1.15);
}
.video-expanded-content {
  display: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--warm-gray-200);
}
.video-placeholder-inline.playing .video-expanded-content {
  display: block;
}
.video-placeholder-inline.playing .video-play-overlay i::before {
  content: "\F62A";
}
.video-mock-player {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--warm-gray-900);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Form Validation Feedback --- */
.validation-feedback {
  font-size: 0.78rem;
  margin-top: 4px;
  min-height: 18px;
  transition: color 0.2s;
}
.validation-feedback.invalid {
  color: #d32f2f;
}
#diagnosticForm .form-control.is-valid {
  border-color: var(--leaf-green);
  box-shadow: 0 0 0 3px rgba(26,107,42,0.08);
}
#diagnosticForm .form-control.is-invalid {
  border-color: #d32f2f;
  box-shadow: 0 0 0 3px rgba(211,47,47,0.08);
}

/* --- Impact --- */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.impact-card { text-align: center; padding: 24px; }
.impact-number {
  font-size: 3.2rem;
  font-weight: 800;
  color: rgba(255,255,255,0.95);
  line-height: 1;
  margin-bottom: 10px;
}
.impact-label { font-size: 0.92rem; color: var(--leaf-pale); }

/* --- Solidarity --- */
.solidarity-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 48px;
}
.solidarity-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 32px;
  backdrop-filter: blur(8px);
}
.solidarity-card h3 { margin-bottom: 12px; }
.solidarity-card p { font-size: 0.93rem; }
.solidarity-highlight {
  display: inline-block;
  background: var(--apple-orange);
  color: var(--white);
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  margin-top: 14px;
  font-size: 0.88rem;
}

/* --- Partners --- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.partner-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--warm-gray-100);
  transition: all var(--transition);
}
.partner-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(26,107,42,0.2);
}
.partner-icon { font-size: 2rem; margin-bottom: 12px; }
.partner-card h4 { font-size: 0.92rem; margin-bottom: 6px; color: var(--leaf-green); }
.partner-card p { font-size: 0.8rem; color: var(--warm-gray-500); }

.partner-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
}
.partner-link:hover {
  border-color: var(--apple-orange);
  box-shadow: var(--shadow-lg), 0 0 0 2px rgba(245,154,66,0.15);
}
.partner-link:hover h4 {
  color: var(--apple-red);
}

/* --- MSSS Links --- */
.msss-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--leaf-green);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(26,107,42,0.15);
  background: rgba(26,107,42,0.04);
  transition: all var(--transition);
}
.msss-link:hover {
  background: var(--leaf-green);
  color: var(--white);
  border-color: var(--leaf-green);
  transform: translateY(-1px);
}

/* --- Testimonials Section --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  display: flex;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--warm-gray-100);
  transition: all var(--transition);
  text-decoration: none;
  color: var(--warm-gray-900);
  cursor: pointer;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(245,130,32,0.2);
  color: var(--warm-gray-900);
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--apple-orange), var(--apple-red));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-avatar .play-icon {
  color: var(--white);
  font-size: 1.1rem;
  margin-left: 3px;
}

.testimonial-card-soon {
  cursor: default;
  border-style: dashed;
  background: var(--warm-gray-50);
}
.testimonial-card-soon:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
  border-color: var(--warm-gray-200);
}
.testimonial-avatar-soon {
  background: var(--warm-gray-200);
  color: var(--warm-gray-500);
  font-size: 1.2rem;
}
.testimonial-soon-text {
  font-size: 0.93rem;
  color: var(--warm-gray-500);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 14px;
}

.testimonial-content {
  flex: 1;
}

.testimonial-content blockquote {
  font-size: 0.93rem;
  color: var(--warm-gray-700);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 14px;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
}

.testimonial-author strong {
  font-size: 0.88rem;
  color: var(--warm-gray-900);
}

.testimonial-author span {
  font-size: 0.78rem;
  color: var(--leaf-green);
  font-weight: 600;
}

/* --- CTA --- */
.cta-section {
  background: linear-gradient(135deg, var(--apple-orange) 0%, var(--apple-red) 50%, var(--apple-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.85); margin-bottom: 36px; font-size: 1.1rem; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* --- Footer --- */
.footer {
  background: var(--warm-gray-900);
  color: var(--warm-gray-300);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
.footer-brand { }
.footer-brand .footer-logo,
.footer .footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: 14px;
}
@media (max-width: 767.98px) {
  .footer .footer-logo {
    height: 80px;
    max-width: 200px;
  }
}
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 12px; }

.footer h4 { color: var(--white); font-size: 0.92rem; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 1px; }
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: var(--warm-gray-300); font-size: 0.88rem; }
.footer ul a:hover { color: var(--apple-orange); }

.footer-contact li {
  display: flex; align-items: start; gap: 8px;
  font-size: 0.88rem; line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--warm-gray-500); font-size: 0.82rem; }
.footer-legal a:hover { color: var(--apple-orange); }

/* --- Install Banner --- */
.install-banner {
  display: none;
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--warm-gray-200);
  max-width: 480px;
  width: calc(100% - 32px);
}
.install-banner.show { display: flex; }
.install-banner p { flex: 1; font-size: 0.88rem; font-weight: 500; }
.install-banner .btn-close {
  background: none; border: none;
  font-size: 1.3rem; cursor: pointer;
  color: var(--warm-gray-500); padding: 4px;
}

/* --- Toast --- */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--leaf-dark);
  color: var(--white);
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s ease;
  font-size: 0.88rem;
  font-weight: 500;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* --- Offline --- */
.offline-indicator {
  display: none;
  position: fixed;
  top: 76px; left: 0; right: 0;
  background: linear-gradient(90deg, var(--apple-orange), var(--apple-red));
  color: var(--white);
  text-align: center;
  padding: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  z-index: 999;
}
.offline-indicator.show { display: block; }

/* --- Dashboard --- */
.dashboard-section { padding-top: 100px; }
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 16px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.dash-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--warm-gray-100);
}
.dash-card h3 {
  margin-bottom: 16px;
  font-size: 1.05rem;
  display: flex; align-items: center; gap: 8px;
}

.order-list { display: flex; flex-direction: column; gap: 12px; }
.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  background: var(--warm-gray-50);
  border-radius: var(--radius-sm);
  border: 1px solid var(--warm-gray-100);
}

.order-status {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}
.order-status.pending { background: #fff3cd; color: #856404; }
.order-status.delivered { background: rgba(26,107,42,0.1); color: var(--leaf-green); }
.order-status.preparing { background: rgba(245,154,66,0.1); color: var(--apple-red); }

/* --- Bandeau Annonces Partenaires --- */
.announcements-bar {
  position: fixed;
  top: 100px;
  left: 0; right: 0;
  z-index: 900;
  background: var(--leaf-dark);
  overflow: hidden;
  height: 40px;
  display: flex;
  align-items: center;
}

.announcements-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: scroll-announcements 140s linear infinite;
  will-change: transform;
}

.announcements-track:hover {
  animation-play-state: paused;
}

.announcement-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.9);
  flex-shrink: 0;
  padding: 0 8px;
  cursor: default;
}

.announcement-tag {
  display: inline-block;
  background: var(--apple-orange);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.announcement-link {
  text-decoration: none;
  color: rgba(255,255,255,0.9);
  transition: color var(--transition);
}
.announcement-link:hover {
  color: var(--apple-orange);
}

@keyframes scroll-announcements {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Offset hero and sections for announcement bar */
.tips-widget-section { padding-top: 140px; }
.hero { padding-top: 28px; }
.dashboard-section { padding-top: 164px; }
.offline-indicator { top: 140px; }

@media (max-width: 768px) {
  .announcements-bar { height: 36px; top: 100px; }
  .announcement-item { font-size: 0.78rem; }
  .tips-widget-section { padding-top: 136px; }
  .hero { padding-top: 20px; }
}

/* --- Widget Astuces santé & bien-être --- */
.tips-widget-section { padding-bottom: 4px; }

.tips-widget {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--warm-gray-100);
  padding: 18px 22px;
}

.tips-widget-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  background: linear-gradient(135deg, rgba(245,130,32,0.08), rgba(217,110,16,0.12));
  color: var(--apple-red);
  transition: background var(--transition), color var(--transition);
}

.tips-widget[data-category="recette"] .tips-widget-icon {
  background: linear-gradient(135deg, rgba(26,107,42,0.08), rgba(45,138,62,0.12));
  color: var(--leaf-green);
}
.tips-widget[data-category="conseil"] .tips-widget-icon {
  background: linear-gradient(135deg, rgba(26,80,107,0.08), rgba(42,120,160,0.12));
  color: #1a5a70;
}

.tips-widget-body { flex: 1; min-width: 0; }

.tips-widget-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.tips-widget-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--warm-gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tips-category-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(245,130,32,0.10);
  color: var(--apple-red);
  border: 1px solid rgba(245,130,32,0.20);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 11px;
  border-radius: var(--radius-full);
}

.tips-widget[data-category="recette"] .tips-category-badge {
  background: rgba(26,107,42,0.10);
  color: var(--leaf-green);
  border-color: rgba(26,107,42,0.20);
}
.tips-widget[data-category="conseil"] .tips-category-badge {
  background: rgba(26,80,107,0.10);
  color: #1a5a70;
  border-color: rgba(26,80,107,0.20);
}

.tips-widget-body h4 {
  font-size: 0.98rem;
  margin-bottom: 3px;
  color: var(--warm-gray-900);
}

.tips-widget-body p {
  font-size: 0.85rem;
  color: var(--warm-gray-500);
  line-height: 1.5;
  margin-bottom: 0;
}

.tips-source {
  display: block;
  font-size: 0.73rem;
  font-style: italic;
  color: var(--warm-gray-300);
  margin-top: 4px;
}

.tips-nav {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tips-nav-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--warm-gray-200);
  background: var(--white);
  color: var(--warm-gray-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
}
.tips-nav-btn:hover { background: var(--apple-red); border-color: var(--apple-red); color: var(--white); }

.tips-dots { display: flex; align-items: center; gap: 5px; }

.tips-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--warm-gray-200);
  cursor: pointer;
  transition: all var(--transition);
}
.tips-dot.active { width: 18px; border-radius: 3px; background: var(--apple-red); }

.tips-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--warm-gray-300);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all var(--transition);
}
.tips-close:hover { background: var(--warm-gray-100); color: var(--warm-gray-700); }

@media (max-width: 768px) {
  .tips-widget { flex-wrap: wrap; padding: 16px 18px 18px; }
  .tips-widget-icon { width: 42px; height: 42px; font-size: 1.15rem; }
  .tips-nav { width: 100%; justify-content: center; margin-top: 4px; }
  .tips-close { top: 8px; right: 8px; }
}

/* --- Panneau Événements (Hero col 3) --- */
.events-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--warm-gray-100);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.events-header {
  padding: 13px 18px;
  background: var(--white);
  color: var(--apple-red);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  border-bottom: 2px solid var(--apple-red);
}

.events-panel .event-card {
  display: block;
  padding: 14px 18px;
  border-bottom: 1px solid var(--warm-gray-100);
  text-decoration: none;
  color: var(--warm-gray-900);
  transition: all var(--transition);
}

.events-panel .event-card:last-child { border-bottom: none; }

.events-panel .event-card:hover {
  background: rgba(245,154,66,0.04);
}

.event-card-featured {
  background: linear-gradient(135deg, rgba(245,154,66,0.04), rgba(245,130,32,0.04));
}

.event-card-promo {
  background: linear-gradient(135deg, rgba(26,107,42,0.04), rgba(45,138,62,0.04));
}

.event-badge {
  display: inline-block;
  background: var(--apple-red);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.event-date-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245,130,32,0.10);
  color: var(--apple-red);
  font-size: 0.63rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
  margin-bottom: 6px;
  border: 1px solid rgba(245,130,32,0.20);
}

.event-icon { font-size: 1.3rem; margin-bottom: 4px; }

.event-card h4 {
  font-size: 0.82rem;
  margin-bottom: 4px;
  color: var(--warm-gray-900);
}

.event-card p {
  font-size: 0.73rem;
  color: var(--warm-gray-500);
  line-height: 1.45;
  margin-bottom: 4px;
}

.event-cta {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--apple-red);
}

.event-card:hover .event-cta { color: var(--apple-dark); }
.event-card-promo .event-cta { color: var(--leaf-green); }

/* --- Ancien Sidebar (supprimé, remplacé par events-panel) --- */
/* --- Sidebar Publicité & Événements --- */
.sidebar-ads {
  position: fixed;
  top: 140px;
  right: 0;
  width: 300px;
  height: calc(100vh - 140px);
  background: var(--white);
  border-left: 1px solid var(--warm-gray-200);
  box-shadow: -4px 0 20px rgba(44,37,32,0.08);
  z-index: 800;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.sidebar-ads.closed {
  transform: translateX(100%);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--apple-orange), var(--apple-red));
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  opacity: 0.8;
  transition: opacity var(--transition);
}
.sidebar-toggle:hover { opacity: 1; }

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-content::-webkit-scrollbar { width: 4px; }
.sidebar-content::-webkit-scrollbar-track { background: transparent; }
.sidebar-content::-webkit-scrollbar-thumb { background: var(--warm-gray-200); border-radius: 4px; }

.sidebar-card {
  display: block;
  background: var(--warm-gray-50);
  border: 1px solid var(--warm-gray-100);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-decoration: none;
  color: var(--warm-gray-900);
  transition: all var(--transition);
  position: relative;
}

.sidebar-card:hover {
  border-color: var(--apple-orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--warm-gray-900);
}

.sidebar-card-featured {
  background: linear-gradient(135deg, rgba(245,154,66,0.06), rgba(245,130,32,0.06));
  border-color: var(--apple-orange);
}

.sidebar-card-promo {
  background: linear-gradient(135deg, rgba(26,107,42,0.06), rgba(45,138,62,0.06));
  border-color: var(--leaf-light);
}

.sidebar-card-badge {
  display: inline-block;
  background: var(--apple-red);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.sidebar-card-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.sidebar-card h4 {
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--warm-gray-900);
}

.sidebar-card p {
  font-size: 0.78rem;
  color: var(--warm-gray-500);
  line-height: 1.5;
  margin-bottom: 8px;
}

.sidebar-cta {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--apple-red);
  text-decoration: none;
  transition: color var(--transition);
}

.sidebar-card:hover .sidebar-cta,
.sidebar-cta:hover {
  color: var(--apple-dark);
}

.sidebar-card-promo .sidebar-cta {
  color: var(--leaf-green);
}

/* Sidebar open button */
.sidebar-open-btn {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 799;
  background: linear-gradient(135deg, var(--apple-orange), var(--apple-red));
  color: var(--white);
  border: none;
  border-radius: 10px 0 0 10px;
  padding: 14px 10px;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  display: none;
}

.sidebar-open-btn.show {
  display: block;
}

.sidebar-open-btn:hover {
  padding-right: 16px;
  box-shadow: var(--shadow-lg);
}

/* Adjust main content when sidebar is open */
@media (min-width: 1200px) {
  body.sidebar-active .container {
    max-width: calc(var(--max-width) - 160px);
    transition: max-width 0.4s ease;
  }
}

@media (max-width: 1024px) {
  .sidebar-ads {
    width: 280px;
    top: 112px;
    height: calc(100vh - 112px);
  }
}

@media (max-width: 768px) {
  .sidebar-ads {
    width: 100%;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60vh;
    border-left: none;
    border-top: 2px solid var(--apple-orange);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: 0 -4px 20px rgba(44,37,32,0.12);
  }

  .sidebar-ads.closed {
    transform: translateY(100%);
  }

  .sidebar-open-btn {
    right: 16px;
    top: auto;
    bottom: 24px;
    transform: none;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
  }
  .sidebar-open-btn.show {
    display: flex;
  }
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- Responsive --- */
@media (max-width: 968px) {
  .hero .container.hero-3col { grid-template-columns: 1fr; text-align: center; }
  .hero-main-card { text-align: center; }
  .hero-main-card .hero-buttons { justify-content: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-col { margin-top: 0; }

  .diagnostic-wrapper { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .solidarity-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Bootstrap handles mobile nav via collapse */

  section { padding: 64px 0; }
  .pricing-card.featured { transform: none; }
  .pricing-card:hover { transform: none; }
  .pricing-card.featured:hover { transform: none; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .impact-number { font-size: 2.4rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
}

/* Formules : ne repasser en 1 colonne que sur petit mobile (tablette
   garde les 2 colonnes déjà définies à 1024px, sinon l'espace tablette
   est gaspillé avec une carte étroite au centre). */
@media (max-width: 600px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; gap: 24px; }
  .pricing-grid .pricing-card:last-child { grid-column: auto; max-width: none; margin: 0; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 16px; align-items: center; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
}

/* =============================================
   SWEETAPPLE — Widgets IA
   ============================================= */

/* Badge IA */
.ia-badge-pill {
  display: inline-block;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  vertical-align: middle;
  margin-right: 6px;
}

/* Carte IA */
.ia-card { border-top: 3px solid #a855f7 !important; }
.ia-card-header { margin-bottom: 18px; }
.ia-card-header h3 { margin-bottom: 2px; }
.ia-card-sub { font-size: 0.78rem; color: #888; }

/* Loading */
.ia-loading {
  display: flex; align-items: center; gap: 10px;
  color: #888; font-size: 0.85rem; padding: 20px 0;
}
.ia-spinner {
  width: 18px; height: 18px;
  border: 2px solid #e0d0f0;
  border-top-color: #a855f7;
  border-radius: 50%;
  animation: ia-spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes ia-spin { to { transform: rotate(360deg); } }
.ia-error { color: #dc3545; font-size: 0.82rem; padding: 8px 0; }

/* ── Score IA ── */
.ia-score-header {
  display: flex; align-items: center; gap: 24px; margin-bottom: 20px;
  flex-wrap: wrap;
}
.ia-score-ring { flex-shrink: 0; }
.ia-score-info { flex: 1; min-width: 180px; }
.ia-score-emoji { font-size: 2rem; margin-bottom: 4px; }
.ia-score-message { font-size: 0.9rem; color: #444; font-weight: 500; }
.ia-score-details { display: flex; flex-direction: column; gap: 8px; }
.ia-score-detail {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.82rem; padding: 8px 12px;
  border-radius: 8px; background: #f9f9f9;
}
.ia-score-detail.ok  { background: rgba(25,135,84,0.06); }
.ia-score-detail.todo { background: rgba(255,193,7,0.07); }
.ia-detail-icon { font-size: 1rem; flex-shrink: 0; }
.ia-detail-label { flex: 1; }
.ia-detail-link {
  font-size: 0.75rem; font-weight: 700; color: #a855f7;
  text-decoration: none; white-space: nowrap;
}

/* ── Recommandations IA ── */
.ia-conseil-global {
  background: linear-gradient(135deg, rgba(124,58,237,0.06), rgba(168,85,247,0.06));
  border-left: 3px solid #a855f7;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 16px;
}
.ia-reco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.ia-reco-card {
  border: 1px solid #ede9fe;
  border-radius: 10px;
  padding: 14px;
  background: #faf9ff;
  transition: box-shadow .2s;
}
.ia-reco-card:hover { box-shadow: 0 4px 16px rgba(168,85,247,.12); }
.ia-reco-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 8px; margin-bottom: 8px;
}
.ia-reco-nom { font-weight: 700; font-size: 0.88rem; color: #2d2d2d; }
.ia-reco-ig {
  font-size: 0.65rem; font-weight: 700; padding: 2px 7px;
  border-radius: 12px; white-space: nowrap; flex-shrink: 0;
}
.ia-reco-justif {
  font-size: 0.78rem; color: #7c3aed; font-style: italic;
  margin-bottom: 10px; line-height: 1.45;
}
.ia-reco-macros {
  display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.72rem; color: #666;
}
.ia-reco-macros span {
  background: #f0f0f0; padding: 2px 8px; border-radius: 10px;
}
.ia-reco-prix { font-size: 0.78rem; color: #F58220; font-weight: 700; margin-top: 8px; }
.ia-reco-empty { text-align: center; padding: 24px; color: #888; }
.ia-reco-empty i { font-size: 2rem; display: block; margin-bottom: 8px; }
.ia-reco-footer { display: flex; align-items: center; margin-top: 4px; }

/* ── Chat assistant ── */
.ia-chat-card { }
.ia-quick-questions {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px;
}
.ia-quick-btn {
  background: #f5f0ff; border: 1px solid #ddd9f7;
  color: #7c3aed; font-size: 0.75rem; font-weight: 600;
  padding: 5px 12px; border-radius: 20px; cursor: pointer;
  transition: all .15s;
}
.ia-quick-btn:hover { background: #ede9fe; border-color: #a855f7; }

.ia-chat-messages {
  min-height: 200px; max-height: 380px;
  overflow-y: auto;
  padding: 4px 0 12px;
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 12px;
}
.ia-msg { display: flex; }
.ia-msg-user  { justify-content: flex-end; }
.ia-msg-assistant { justify-content: flex-start; }
.ia-msg-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.84rem;
  line-height: 1.55;
}
.ia-msg-user .ia-msg-bubble {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.ia-msg-assistant .ia-msg-bubble {
  background: #f4f0ff;
  color: #2d2d2d;
  border-bottom-left-radius: 4px;
  border: 1px solid #ede9fe;
}
/* Indicateur de frappe */
.ia-typing .ia-msg-bubble {
  display: flex; align-items: center; gap: 4px;
  padding: 12px 16px;
}
.ia-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: #a855f7; animation: ia-dot 1.2s infinite;
}
.ia-typing span:nth-child(2) { animation-delay: .2s; }
.ia-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes ia-dot { 0%,80%,100%{opacity:.2;transform:scale(.8)} 40%{opacity:1;transform:scale(1)} }

.ia-chat-input-row {
  display: flex; gap: 8px; align-items: center;
}
.ia-chat-input {
  flex: 1; border: 1.5px solid #ddd9f7; border-radius: 24px;
  padding: 9px 18px; font-size: 0.85rem; outline: none;
  transition: border-color .2s;
}
.ia-chat-input:focus { border-color: #a855f7; }
.ia-chat-send {
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff; font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: opacity .2s;
}
.ia-chat-send:disabled { opacity: .5; cursor: not-allowed; }
.ia-disclaimer {
  font-size: 0.7rem; color: #aaa; margin-top: 10px; margin-bottom: 0;
}

/* Responsive */
@media (max-width: 600px) {
  .ia-score-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ia-reco-grid { grid-template-columns: 1fr; }
  .ia-msg-bubble { max-width: 92%; }
}

/* ══════════════════════════════════════════════════
   CHATBOT FLOTTANT — Alex (Guide d'accueil IA)
══════════════════════════════════════════════════ */

/* ── Bouton flottant ─────────────────────────────── */
.sa-chatbot-bubble {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(46,125,50,.35);
    z-index: 9999;
    transition: transform .2s, box-shadow .2s;
    user-select: none;
}
.sa-chatbot-bubble:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(46,125,50,.45);
}
@keyframes chatPulse {
    0%, 100% { box-shadow: 0 6px 24px rgba(46,125,50,.35); }
    50%       { box-shadow: 0 0 0 14px rgba(76,175,80,.18), 0 6px 24px rgba(46,125,50,.35); }
}
.sa-chatbot-pulse { animation: chatPulse 1.8s ease-in-out 4; }

.sa-chatbot-notif {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #F58220;
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* ── Panneau chat ────────────────────────────────── */
.sa-chatbot-panel {
    position: fixed;
    bottom: 104px;
    right: 28px;
    width: 370px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 16px 56px rgba(0,0,0,.18);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(.85) translateY(16px);
    opacity: 0;
    transition: transform .28s cubic-bezier(.4,0,.2,1), opacity .28s ease;
    pointer-events: none;
}
.sa-chatbot-panel-open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
}

/* ── En-tête ─────────────────────────────────────── */
.sa-chatbot-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    color: #fff;
    flex-shrink: 0;
}
.sa-chatbot-avatar {
    font-size: 1.7rem;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sa-chatbot-header-info { flex: 1; min-width: 0; }
.sa-chatbot-title { font-weight: 700; font-size: .92rem; white-space: nowrap; }
.sa-chatbot-status { font-size: .7rem; opacity: .85; display: flex; align-items: center; gap: 5px; margin-top: 1px; }
@keyframes dotBlink { 0%,100% { opacity:1; } 50% { opacity:.3; } }
.sa-chatbot-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #a5f3a5;
    display: inline-block;
    animation: dotBlink 2s ease infinite;
}
.sa-chatbot-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    opacity: .8;
    transition: opacity .2s, background .2s;
    flex-shrink: 0;
}
.sa-chatbot-close:hover { opacity: 1; background: rgba(255,255,255,.15); }

/* ── Zone messages ───────────────────────────────── */
.sa-chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px 14px 6px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 180px;
    max-height: 290px;
    background: #f7f8fa;
    scroll-behavior: smooth;
}
.sa-chatbot-msg { display: flex; animation: msgFadeIn .25s ease; }
@keyframes msgFadeIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }
.sa-chatbot-msg-user      { justify-content: flex-end; }
.sa-chatbot-msg-assistant { justify-content: flex-start; }

.sa-chatbot-bubble-msg {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: .84rem;
    line-height: 1.55;
    word-break: break-word;
}
.sa-chatbot-msg-user .sa-chatbot-bubble-msg {
    background: #2e7d32;
    color: #fff;
    border-bottom-right-radius: 5px;
}
.sa-chatbot-msg-assistant .sa-chatbot-bubble-msg {
    background: #fff;
    color: #222;
    border: 1px solid #e4e4e4;
    border-bottom-left-radius: 5px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.sa-chatbot-link {
    color: #2e7d32;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Typing indicator */
.sa-chatbot-typing .sa-chatbot-bubble-msg {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 14px 16px;
}
.sa-chatbot-typing span {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #bbb;
    animation: typeBounce 1s infinite;
}
.sa-chatbot-typing span:nth-child(2) { animation-delay: .18s; }
.sa-chatbot-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes typeBounce {
    0%,60%,100% { transform: translateY(0); }
    30%          { transform: translateY(-7px); }
}

/* ── Suggestions rapides ─────────────────────────── */
.sa-chatbot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px 4px;
    background: #f7f8fa;
    border-top: 1px solid #efefef;
    min-height: 0;
}
.sa-chatbot-suggestions:empty { padding: 0; border: none; }
.sa-chatbot-suggestion {
    background: #fff;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
    border-radius: 20px;
    padding: 5px 13px;
    font-size: .77rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .18s, color .18s, border-color .18s;
    white-space: nowrap;
}
.sa-chatbot-suggestion:hover {
    background: #2e7d32;
    color: #fff;
    border-color: #2e7d32;
}

/* ── Barre de saisie ─────────────────────────────── */
.sa-chatbot-input-row {
    display: flex;
    gap: 8px;
    padding: 10px 12px 12px;
    border-top: 1px solid #eee;
    background: #fff;
    flex-shrink: 0;
}
.sa-chatbot-input {
    flex: 1;
    border: 1.5px solid #ddd;
    border-radius: 22px;
    padding: 9px 16px;
    font-size: .84rem;
    outline: none;
    transition: border-color .2s;
    background: #fafafa;
}
.sa-chatbot-input:focus { border-color: #4caf50; background: #fff; }
.sa-chatbot-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2e7d32;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    flex-shrink: 0;
    transition: background .2s, transform .15s;
}
.sa-chatbot-send:hover    { background: #4caf50; transform: scale(1.05); }
.sa-chatbot-send:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ── Responsive mobile ───────────────────────────── */
@media (max-width: 480px) {
    .sa-chatbot-panel  { width: calc(100vw - 20px); right: 10px; bottom: 88px; }
    .sa-chatbot-bubble { bottom: 16px; right: 16px; width: 56px; height: 56px; font-size: 1.35rem; }
    .sa-chatbot-messages { max-height: 240px; }
}

