/* ─────────────────────────────────────────────────────────────────────────────
   Restolab AI — Stylesheet (Mobile-First, Bento Grid SaaS Premium)
   DESIGN RULES :
   - MOBILE-FIRST : Les styles de base ciblent mobile. Desktop via @media min-width.
   - FOND : Off-White (#FAF9F6)
   - TEXTE : Vert forêt foncé du logo (#0b1c19)
   - ACCENT : Orange (#FF5300) uniquement en fin liseré
   - SECONDAIRES : Vert WhatsApp (#25D366), Vert léger (#E8F8F0), Orange léger (#FFF3EC)
   - TYPO : Syne (Display) + Plus Jakarta Sans (Corps)
   ───────────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Syne:wght@500;600;700;800&display=swap');

/* ─── Variables ─── */
:root {
  --bg-page:          #FAF9F6;
  --bg-card-beige:    #F5F5F0;
  --bg-card-white:    #FFFFFF;
  --bg-wa-light:      #E8F8F0;
  --bg-orange-light:  #FFF3EC;
  --text-main:        #0b1c19;
  --text-muted:       #556864;
  --accent-orange:    #FF5300;
  --color-wa:         #25D366;
  --font-display:     'Syne', sans-serif;
  --font-body:        'Plus Jakarta Sans', sans-serif;
  --radius-bento:     24px;
  --radius-pill:      999px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Espace en bas pour la nav fixe mobile */
  padding: 16px 16px 96px;
}

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────
   HEADER — Masqué sur mobile, flottant sur desktop
───────────────────────────────────────────────────────── */
.floating-header {
  display: none; /* Masqué mobile — nav en bas */
}

/* ─────────────────────────────────────────────────────────
   NAV MOBILE FIXE EN BAS (barre d'onglets native)
───────────────────────────────────────────────────────── */
.header-nav {
  position: fixed;
  bottom: 12px;
  left: 16px;
  right: 16px;
  z-index: 100;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(11, 28, 25, 0.07);
  border-radius: var(--radius-pill);
  padding: 8px 10px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-actions {
  display: none; /* CTA header masqué sur mobile */
}

.nav-btn {
  flex: 1;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}
.nav-btn:hover  { color: var(--text-main); background: var(--bg-page); }
.nav-btn.active { background: var(--text-main); color: var(--bg-page); }

/* ─────────────────────────────────────────────────────────
   TABS
───────────────────────────────────────────────────────── */
.main-content { flex-grow: 1; }

.tab-pane { display: none; }
.tab-pane.active {
  display: block;
  animation: fadeUp 0.35s ease-out forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────────────────── */
.btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
  width: 100%; /* Pleine largeur par défaut sur mobile */
}

.btn-primary {
  background: var(--text-main);
  color: white;
  border: 2px solid var(--accent-orange);
}
.btn-primary:hover { background: #173d37; transform: scale(1.01); }

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--text-main);
}
.btn-outline:hover { background: var(--bg-card-beige); }

.btn-wa-brand {
  background: var(--color-wa);
  color: white;
  border: 2.5px solid var(--text-main);
}
.btn-wa-brand:hover { background: #1eb954; transform: scale(1.01); }

/* ─────────────────────────────────────────────────────────
   BENTO GRID — Mobile : 1 colonne, cards empilées
───────────────────────────────────────────────────────── */
.bento-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.bento-item {
  border-radius: var(--radius-bento);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(11, 28, 25, 0.06);
  width: 100%;
}

.bento-hero    { background: var(--bg-orange-light); }
.bento-square-top  { background: var(--bg-wa-light); }
.bento-square-bottom { background: var(--bg-card-beige); }
.bento-wide    { background: var(--bg-card-white); }

/* ─────────────────────────────────────────────────────────
   TYPOGRAPHIE — Mobile
───────────────────────────────────────────────────────── */
.display-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 8vw, 48px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  color: var(--text-main);
}

.card-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}

.body-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

/* ─────────────────────────────────────────────────────────
   ICON CIRCLE & TAGS
───────────────────────────────────────────────────────── */
.icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.icon-circle i { font-size: 22px; color: var(--text-main); }

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-card-white);
  border: 1px solid var(--accent-orange);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
  align-self: flex-start;
  color: var(--text-main);
}

/* ─────────────────────────────────────────────────────────
   HERO — Cercle Logo + Boutons (Mobile : aligné centré)
───────────────────────────────────────────────────────── */
.hero-brand-circle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  width: 100%;
}

.whatsapp-logo-circle {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.whatsapp-logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.whatsapp-logo-circle .mini-wa-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-wa);
  color: white;
  border: 3px solid white;   /* bord blanc pour contraste sur le cercle */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  overflow: visible;
}

/* ─────────────────────────────────────────────────────────
   BENTO-WIDE — Mobile : vertical
───────────────────────────────────────────────────────── */
.bento-wide {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stats-row {
  display: flex;
  gap: 0;
  align-items: center;
  justify-content: space-around;
}

.stat-block { text-align: center; flex: 1; }

.stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(11, 28, 25, 0.1);
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────
   TARIFS — En-tête & Onglets de groupes
───────────────────────────────────────────────────────── */
.pricing-header {
  text-align: center;
  margin: 32px 0 0;
}

/* Barre d'onglets Images / Vidéos / Combos */
.pricing-tabs-nav {
  display: inline-flex;
  gap: 6px;
  background: var(--bg-card-beige);
  border-radius: var(--radius-pill);
  padding: 6px;
  border: 1px solid rgba(11, 28, 25, 0.07);
  margin-bottom: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.pricing-tab-btn {
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}
.pricing-tab-btn:hover { color: var(--text-main); }
.pricing-tab-btn.active {
  background: var(--text-main);
  color: white;
}

/* Libellé du groupe actif */
.pricing-group-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

/* Groupes de tarifs — masqués par défaut */
.pricing-group-pane {
  display: none;
}
.pricing-group-pane.active {
  display: block;
  animation: fadeUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Grille tarifaire — Mobile : 1 colonne */
.pricing-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pricing-card {
  background: var(--bg-card-white);
  border-radius: var(--radius-bento);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(11, 28, 25, 0.06);
  gap: 0;
}

/* Bouton Commander pleine largeur dans chaque carte tarif */
.pricing-card .btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.pricing-card.featured {
  background: var(--bg-wa-light);
  border: 2px solid var(--accent-orange);
}

/* Prix en grand */
.price-display {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  margin: 12px 0 8px;
  line-height: 1;
  letter-spacing: -1px;
}

.price-currency {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0;
  margin-left: 4px;
}

/* Sous-titre descriptif dans les cartes combo */
.pricing-card .body-text {
  font-size: 13px;
  color: var(--text-muted);
  margin: 4px 0 0;
}

/* Liste de features */
.feature-list {
  list-style: none;
  margin: 14px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}
.feature-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.feature-list li i { font-size: 17px; flex-shrink: 0; }

/* Mise en valeur du logo & branding — mention spéciale orange */
.feature-list li .ph-sparkle {
  color: var(--accent-orange);
}

/* ─────────────────────────────────────────────────────────
   LOGO FRAME MINI (si réutilisé)
───────────────────────────────────────────────────────── */
.logo-frame-mini {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--text-main);
  background: white;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-frame-mini img { width: 100%; height: 100%; object-fit: contain; }

/* ─────────────────────────────────────────────────────────
   @media — TABLETTE (640px+)
───────────────────────────────────────────────────────── */
@media (min-width: 640px) {
  body { padding: 20px 20px 96px; }

  .bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .bento-hero       { grid-column: span 2; }
  .bento-wide       { grid-column: span 2; }

  .btn { width: auto; } /* Les boutons reprennent leur taille naturelle */

  .hero-brand-circle-container { align-items: flex-start; }

  .display-title { font-size: clamp(40px, 6vw, 60px); letter-spacing: -2px; }

  /* Tarifs 2 colonnes */
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─────────────────────────────────────────────────────────
   @media — DESKTOP (1024px+)
───────────────────────────────────────────────────────── */
@media (min-width: 1024px) {
  body { padding: 24px; } /* Plus de padding bas sur desktop */

  /* Header flottant visible en desktop */
  .floating-header {
    display: flex;
    position: sticky;
    top: 24px;
    z-index: 50;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 48px;
  }

  /* La nav reprend sa place dans le header, plus fixe en bas */
  .header-nav {
    position: static;
    bottom: auto;
    left: auto;
    right: auto;
    width: auto;
    gap: 8px;
    border: 1px solid rgba(11, 28, 25, 0.05);
    padding: 12px 24px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    justify-content: flex-start;
  }

  .nav-btn { flex: none; padding: 8px 18px; font-size: 14px; }

  .header-actions {
    display: flex;
    padding: 8px;
    border: 1px solid rgba(11, 28, 25, 0.05);
  }
  .header-actions .btn { width: auto; }

  /* Bento Grid — 12 colonnes desktop */
  .bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(300px, auto);
    gap: 24px;
  }

  .bento-hero        { grid-column: span 8; grid-row: span 2; border-radius: 32px; }
  .bento-square-top  { grid-column: span 4; grid-row: span 1; border-radius: 32px; }
  .bento-square-bottom { grid-column: span 4; grid-row: span 1; border-radius: 32px; }
  .bento-wide        { grid-column: span 12; flex-direction: row; align-items: center; justify-content: space-between; border-radius: 32px; }
  .bento-item        { padding: 44px 40px; }

  /* Héro desktop : texte à gauche, cercle à droite en absolu */
  .bento-hero { position: relative; overflow: hidden; }

  .bento-hero .display-title { max-width: 60%; font-size: clamp(44px, 4vw, 64px); }
  .bento-hero .body-text     { max-width: 55%; margin-bottom: 0; }

  .hero-brand-circle-container {
    position: absolute;
    right: 80px;
    bottom: 40px;
    width: auto;
    margin-top: 0;
    align-items: center;
  }

  .whatsapp-logo-circle { width: 150px; height: 150px; }

  .whatsapp-logo-circle .mini-wa-badge {
    width: 42px; height: 42px; font-size: 20px;
  }

  /* Stats row sur desktop */
  .bento-wide .bento-wide-text { max-width: 50%; }
  .stats-row { gap: 32px; justify-content: flex-end; }

  /* Tarifs — 3 colonnes desktop */
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .pricing-tabs-nav { flex-wrap: nowrap; }

  .pricing-card { padding: 40px 32px; border-radius: 28px; }
  .price-display { font-size: 44px; margin: 16px 0 12px; }
  .feature-list  { margin: 32px 0; gap: 16px; }

  .display-title { font-size: clamp(48px, 4vw, 68px); }
}


@keyframes spin    { 100% { transform: rotate(360deg); } }
@keyframes fadeUp  { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
@keyframes slideRight { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: translateX(0); } }

/* ─── Float animation — logo circle ─── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

/* ─── Subtle pulse on WhatsApp badge ─── */
@keyframes waPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70%  { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ─── Gradient subtle shimmer on hero card ─── */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

/* ─────────────────────────────────────────────────────────
   SCROLL REVEAL — Will-animate state (invisible avant reveal)
───────────────────────────────────────────────────────── */
.will-animate {
  opacity: 0;
  transform: translateY(32px) scale(0.97);
  transition:
    opacity   0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.will-animate.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ─── Hero brand circle — extra smooth reveal ─── */
.hero-brand-circle-container.will-animate {
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition:
    opacity   0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-brand-circle-container.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ─── Pricing header ─── */
.pricing-header.will-animate {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity   0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.pricing-header.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────────────────────
   HERO — Page load entrance animation
───────────────────────────────────────────────────────── */
.bento-hero .tag-pill  { animation: slideRight 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both; }
.bento-hero .display-title { animation: fadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both; }
.bento-hero .body-text     { animation: fadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both; }

/* ─────────────────────────────────────────────────────────
   BRAND NAME — Nom sous le cercle logo
───────────────────────────────────────────────────────── */
.hero-brand-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 2px;
}

.brand-name-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  line-height: 1.1;
}

.brand-name-sub {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-wa);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Pas d'animation flottante — cercle stable */
.whatsapp-logo-circle.hero-float {
  animation: none;
}

/* ─── WhatsApp badge pulse ─── */
.mini-wa-badge {
  animation: waPulse 2.5s ease-in-out infinite;
}

/* ─────────────────────────────────────────────────────────
   BUTTON Hover Transitions
   (complète les micro-interactions JS magnétiques)
───────────────────────────────────────────────────────── */
.btn {
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease;
}

.btn:active {
  transform: scale(0.96) !important;
}

/* ─────────────────────────────────────────────────────────
   NAV TABS — Smooth active pill transition
───────────────────────────────────────────────────────── */
.nav-btn {
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.nav-btn:active { transform: scale(0.95); }

/* ─────────────────────────────────────────────────────────
   BENTO CARDS — Hover lift (desktop only)
───────────────────────────────────────────────────────── */
@media (min-width: 1024px) {
  .bento-item {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
  }
  .bento-item:hover {
    transform: translateY(-4px) scale(1.005);
    border-color: rgba(11, 28, 25, 0.14);
  }

  .pricing-card {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .pricing-card:hover { transform: translateY(-6px); }
}

/* ─────────────────────────────────────────────────────────
   TAB PANE — Cinematic fade-in entrance
───────────────────────────────────────────────────────── */
.tab-pane.active {
  animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ─────────────────────────────────────────────────────────
   HEADER — Smooth sticky entrance on desktop
───────────────────────────────────────────────────────── */
@media (min-width: 1024px) {
  .floating-header {
    animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
}

/* ─────────────────────────────────────────────────────────
   MOBILE NAV — subtle bounce-in entrance
───────────────────────────────────────────────────────── */
.header-nav {
  animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

/* ─────────────────────────────────────────────────────────
   PERFORMANCE — réduit le repaint sur éléments animés
───────────────────────────────────────────────────────── */
.whatsapp-logo-circle,
.mini-wa-badge,
.bento-item,
.btn {
  will-change: transform;
}


/* ─────────────────────────────────────────────────────────
   GALLERY SECTION — Premium layout & styling
───────────────────────────────────────────────────────── */
.gallery-section {
  margin-top: 64px;
  margin-bottom: 64px;
}

.gallery-header {
  text-align: center;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Examples Grid — Before / After */
.examples-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.example-card {
  background: var(--bg-card-white);
  border-radius: var(--radius-bento);
  border: 1px solid rgba(11, 28, 25, 0.06);
  padding: 16px;             /* ← Même padding que les vidéos (16px) */
  display: flex;
  flex-direction: column;
  gap: 16px;                 /* ← Même espacement interne que les vidéos */
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
}

.example-card:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 28, 25, 0.12);
}

.example-card-images {
  display: flex;
  flex-direction: row;       /* ← Côte à côte */
  gap: 0;                    /* ← Pas d'espace ou bordure intermédiaire */
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;       /* ← Format large moderne */
  border-radius: 18px;       /* ← Même arrondi que les vidéos (18px) */
  overflow: hidden;
  border: 1.5px solid rgba(11, 28, 25, 0.08); /* ← Même bordure que les vidéos */
}

.img-before, .img-after {
  position: relative;
  flex: 1;                   /* ← Chacun prend 50% de la largeur */
  height: 100%;
  overflow: hidden;
  border: none;              /* ← Pas de bordure interne autour des images */
}

.img-before img, .img-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.example-card:hover .img-before img,
.example-card:hover .img-after img {
  transform: scale(1.04);
}

.img-label {
  position: absolute;
  top: 12px;
  font-size: 9px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 5;
  backdrop-filter: blur(4px);
}

.label-before {
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-main);
  border: 1px solid rgba(11, 28, 25, 0.1);
}

.label-after {
  right: 12px;
  background: var(--text-main);
  color: white;
  border: 1px solid var(--accent-orange);
}

.arrow-transform {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card-beige);
  border: 1.5px solid var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-main);
  z-index: 2;
  transform: rotate(90deg); /* points down on mobile */
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.example-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.example-dish-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.example-type {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 4px;
}

.type-poster {
  background: var(--bg-orange-light);
  color: var(--accent-orange);
  border: 1px solid rgba(255, 83, 0, 0.15);
}

.type-video {
  background: var(--bg-wa-light);
  color: var(--color-wa);
  border: 1px solid rgba(37, 211, 102, 0.15);
}

/* Premium Poster Overlays (Simulated AI poster results) */
.img-pizza-poster {
  background: linear-gradient(rgba(11, 28, 25, 0.15), rgba(11, 28, 25, 0.85)), url('https://images.unsplash.com/photo-1513104890138-7c749659a591?w=500&q=80');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: white;
}

.img-pasta-poster {
  background: linear-gradient(rgba(11, 28, 25, 0.15), rgba(11, 28, 25, 0.85)), url('https://images.unsplash.com/photo-1563379091339-03b21ab4a4f8?w=500&q=80');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: white;
}

.poster-overlay-content {
  text-align: center;
  font-family: var(--font-display);
  width: 100%;
}

.poster-tag-line {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-wa);
  margin-bottom: 2px;
}

.poster-dish-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding: 4px 8px;
  display: inline-block;
}

/* Videos section */
.video-section-header {
  text-align: center;
  margin: 48px 0 24px;
}

.video-examples-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}

.video-card {
  background: var(--bg-card-white);
  border-radius: var(--radius-bento);
  border: 1px solid rgba(11, 28, 25, 0.06);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 28, 25, 0.12);
}

.video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid rgba(11, 28, 25, 0.08);
}

.video-thumb.short-format {
  aspect-ratio: 9/16;        /* ← Format portrait vertical type Reels/TikTok */
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.video-card:hover .video-thumb img {
  transform: scale(1.04);
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 28, 25, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.video-card:hover .video-overlay {
  background: rgba(11, 28, 25, 0.4);
}

.play-btn {
  font-size: 48px;
  color: white;
  opacity: 0.95;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.video-card:hover .play-btn {
  transform: scale(1.1);
  opacity: 1;
}

.video-meta {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
}

.video-duration, .video-res {
  font-size: 10px;
  font-weight: 700;
  background: rgba(11, 28, 25, 0.75);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.video-fx-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 700;
  background: var(--text-main);
  color: white;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent-orange);
  z-index: 5;
}

.gallery-cta {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* ─────────────────────────────────────────────────────────
   Responsive Gallery (Tablette & Desktop overrides)
───────────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .examples-grid {
    grid-template-columns: repeat(2, 1fr);
    display: grid;
  }

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

@media (min-width: 1024px) {
  .examples-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .video-examples-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .gallery-section {
    margin-top: 80px;
    margin-bottom: 80px;
  }
}

/* ─────────────────────────────────────────────────────────
   MODAL COMMANDE (WHATSAPP LOOKUP LOOKS)
   ───────────────────────────────────────────────────────── */
.order-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(11, 28, 25, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.order-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.order-modal-card {
  background: var(--bg-card-white);
  border: 1px solid rgba(11, 28, 25, 0.08);
  box-shadow: 0 20px 40px rgba(11, 28, 25, 0.15);
  border-radius: 28px;
  width: 92%;
  max-width: 440px;
  padding: 32px 28px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--text-main);
}
.order-modal-overlay.active .order-modal-card {
  transform: translateY(0);
}
.order-modal-close {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--bg-card-beige);
  border: none;
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 18px;
  transition: all 0.2s;
}
.order-modal-close:hover {
  background: var(--text-main);
  color: white;
}
.order-modal-header {
  margin-bottom: 24px;
  text-align: left;
}
.order-modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  line-height: 1.2;
}
.order-modal-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}
.order-modal-body {
  margin-bottom: 10px;
}
.order-modal-step {
  display: none;
}
.order-modal-step.active {
  display: block;
}
.order-modal-input-group {
  margin-bottom: 20px;
  position: relative;
  text-align: left;
}
.order-modal-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.order-modal-input {
  width: 100%;
  background: var(--bg-card-beige);
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.order-modal-input:focus {
  border-color: var(--accent-orange);
  background: white;
}
.order-modal-btn-submit {
  background: var(--text-main);
  color: white;
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 15px 20px;
  width: 100%;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.order-modal-btn-submit:hover {
  opacity: 0.9;
}
.order-modal-btn-submit:active {
  transform: scale(0.98);
}
.order-modal-btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.order-modal-err-msg {
  color: #ef8c78;
  font-size: 13px;
  margin-top: 8px;
  display: none;
  font-weight: 500;
}

/* Step 2 styles (Confirmation) */
.order-modal-confirm-box {
  background: var(--bg-card-beige);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(11, 28, 25, 0.04);
  text-align: left;
}
.order-modal-confirm-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
  border-bottom: 1px dashed rgba(11, 28, 25, 0.08);
  padding-bottom: 12px;
}
.order-modal-confirm-row:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}
.order-modal-confirm-label {
  color: var(--text-muted);
}
.order-modal-confirm-value {
  font-weight: 700;
  color: var(--text-main);
}
.order-modal-btn-group {
  display: flex;
  gap: 12px;
}
.order-modal-btn-secondary {
  flex: 1;
  background: transparent;
  border: 2px solid var(--text-main);
  color: var(--text-main);
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 20px;
  cursor: pointer;
  transition: all 0.2s, transform 0.1s;
}
.order-modal-btn-secondary:hover {
  background: var(--bg-card-beige);
}
.order-modal-btn-secondary:active {
  transform: scale(0.98);
}

/* Step 3 styles (User not found) */
.order-modal-notfound {
  text-align: center;
  padding: 16px 0;
}
.order-modal-notfound-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.order-modal-notfound-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.order-modal-notfound-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ─────────────────────────────────────────────────────────
   WHATSAPP CHAT SIMULATOR
   ───────────────────────────────────────────────────────── */
.wa-simulator-section {
  margin-top: 60px;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
}
.wa-simulator-container {
  width: 100%;
  max-width: 400px;
  height: 540px;
  background: #efeae2; /* WhatsApp background */
  border-radius: 28px;
  border: 1px solid rgba(11, 28, 25, 0.08);
  box-shadow: 0 16px 40px rgba(11, 28, 25, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: left;
}
.wa-sim-header {
  background: #075e54; /* Classic WA green */
  color: white;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 5;
}
.wa-sim-back {
  font-size: 20px;
  cursor: pointer;
}
.wa-sim-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.2);
}
.wa-sim-info {
  flex-grow: 1;
}
.wa-sim-name {
  font-size: 15px;
  font-weight: 700;
}
.wa-sim-status {
  font-size: 11px;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.wa-sim-chat-area {
  flex-grow: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.wa-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
  position: relative;
  word-break: break-word;
  white-space: pre-line;
  animation: waMsgFadeIn 0.3s ease forwards;
}
@keyframes waMsgFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.wa-msg.bot {
  background: white;
  color: #303030;
  align-self: flex-start;
  border-top-left-radius: 4px;
}
.wa-msg.user {
  background: #d9fdd3; /* WA user bubble green */
  color: #303030;
  align-self: flex-end;
  border-top-right-radius: 4px;
}
.wa-msg img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 6px;
  display: block;
}
.wa-msg-time {
  display: block;
  font-size: 10px;
  color: #8696a0;
  text-align: right;
  margin-top: 4px;
}
.wa-sim-typing {
  align-self: flex-start;
  background: white;
  padding: 10px 14px;
  border-radius: 12px;
  border-top-left-radius: 4px;
  display: none;
  margin-left: 16px;
  margin-bottom: 12px;
}
.wa-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8696a0;
  margin-right: 3px;
  animation: waDotKey 1s infinite alternate;
}
.wa-dot:nth-child(2) { animation-delay: 0.2s; }
.wa-dot:nth-child(3) { animation-delay: 0.4s; margin-right: 0; }
@keyframes waDotKey {
  from { transform: translateY(0); }
  to { transform: translateY(-5px); }
}
.wa-sim-footer {
  background: #f0f2f5;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(11, 28, 25, 0.04);
}
.wa-sim-input-box {
  flex-grow: 1;
  background: white;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  color: #8696a0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wa-sim-mic-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #00a884;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
}

.wa-sim-toggle-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}
.sim-tab-btn {
  background: var(--bg-card-white);
  border: 1px solid rgba(11, 28, 25, 0.08);
  color: var(--text-main);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(11, 28, 25, 0.02);
}
.sim-tab-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(11, 28, 25, 0.16);
}
.sim-tab-btn.active {
  background: var(--text-main);
  color: white;
  border-color: var(--text-main);
  box-shadow: 0 8px 20px rgba(11, 28, 25, 0.1);
}

/* ─────────────────────────────────────────────────────────
   PLAT SEPARATE CARDS WITH CURVED ARROWS
   ───────────────────────────────────────────────────────── */
.transformations-wrapper {
  display: flex;
  flex-direction: column;
  gap: 50px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}
.trans-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.trans-group-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--text-main);
  margin-bottom: 6px;
}
.trans-group-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  text-align: center;
  max-width: 500px;
}
.transformation-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  width: 100%;
}
.plat-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(11, 28, 25, 0.08);
  border-radius: 24px;
  padding: 16px;
  width: 100%;
  max-width: 290px;
  box-shadow: 0 8px 32px rgba(11, 28, 25, 0.03);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plat-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 16px 48px rgba(11, 28, 25, 0.08);
  border-color: rgba(11, 28, 25, 0.15);
}
.plat-card-img-wrap {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: rgba(11, 28, 25, 0.02);
}
.plat-card-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}
.plat-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 9px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}
.badge-brute {
  background: rgba(11, 28, 25, 0.7);
  color: white;
}
.badge-menu {
  background: var(--color-wa);
  color: white;
}
.badge-promo {
  background: var(--accent-orange);
  color: white;
}
.plat-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  font-weight: 500;
  line-height: 1.4;
}
.arrow-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 100px;
}
.curved-arrow {
  transition: transform 0.3s ease;
}
.fun-arrow-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  transform: rotate(-3deg);
  white-space: nowrap;
}
.menu-magic {
  background: var(--bg-wa-light);
  color: var(--color-wa);
  border: 1px dashed rgba(37, 211, 102, 0.3);
}
.promo-magic {
  background: var(--bg-orange-light);
  color: var(--accent-orange);
  border: 1px dashed rgba(255, 83, 0, 0.3);
}

@media (max-width: 768px) {
  .transformation-row {
    flex-direction: column;
    gap: 16px;
  }
  .plat-card {
    max-width: 100%;
  }
  .arrow-container {
    margin: 12px 0;
  }
  .curved-arrow {
    transform: rotate(90deg);
  }
  .fun-arrow-badge {
    transform: rotate(0deg);
  }
}

