/* ===== MAZALY DESIGN SYSTEM — vitrine (charte v2) =====
 * Les couleurs viennent de tokens.css (miroir de src/theme/tokens.ts).
 * Les variables historiques (--bordeaux, --gold, --grey…) sont conservées en
 * alias : le HTML généré par build.js les référence en style inline.
 */
@import url('tokens.css');
/* Fraunces remplace Cormorant Garamond (Jordan, 24/11 : « cette police-là,
   pas très jolie ») : serif à caractère, plus présente et plus moderne, même
   registre haut de gamme. L'hébreu garde Frank Ruhl Libre. */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..700;1,9..144,400..500&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Alias de compatibilité — mappés sur les tokens v2 */
  --bordeaux: var(--mz-primary);
  --bordeaux-dark: var(--mz-primary-dark);
  --bordeaux-light: var(--mz-primary-light);
  --gold: var(--mz-champagne);
  --gold-light: var(--mz-champagne-soft);
  --gold-dark: var(--mz-champagne-dark);
  --cream: var(--mz-bg-alt);
  --cream-light: var(--mz-bg);
  --white: var(--mz-surface);
  --dark: var(--mz-ink-strong);
  --dark-soft: var(--mz-ink);
  --grey: var(--mz-ink-soft);
  --grey-light: var(--mz-ink-muted);
  --grey-lighter: var(--mz-primary-soft);
  --border: var(--mz-border);
  --shadow: rgba(120, 40, 70, 0.10);
  --radius: var(--mz-radius-md);
  --radius-lg: var(--mz-radius-lg);
  --max-width: var(--mz-max-width);
  --header-height: var(--mz-header-height);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--mz-ink);
  background: var(--mz-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--mz-primary-soft); color: var(--mz-primary-dark); }
:focus-visible { outline: 2px solid var(--mz-primary); outline-offset: 3px; border-radius: 4px; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--mz-ink-strong);
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: 0.5px; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); letter-spacing: 0.3px; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p { font-size: 1rem; color: var(--mz-ink-soft); margin-bottom: 1rem; }

/* ===== LAYOUT ===== */
.container { max-width: var(--mz-max-width); margin: 0 auto; padding: 0 var(--mz-space-xl); }
.section { padding: 88px 0; position: relative; }
.section--cream { background: linear-gradient(170deg, var(--mz-bg) 0%, var(--mz-bg-alt) 100%); }
.section--bordeaux {
  background: linear-gradient(140deg, var(--mz-primary-dark) 0%, var(--mz-ink-strong) 100%);
  color: var(--mz-surface);
}
.section--bordeaux h2, .section--bordeaux h3 { color: var(--mz-champagne); }
.section--bordeaux p { color: rgba(255, 255, 255, 0.86); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { margin-bottom: var(--mz-space-md); }
.section-header p { max-width: 620px; margin: 0 auto; font-size: 1.08rem; }
.divider {
  width: 64px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--mz-champagne), transparent);
  margin: var(--mz-space-md) auto;
}

/* ===== HEADER / NAV ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--mz-header-height);
  background: var(--mz-glass-strong);
  backdrop-filter: var(--mz-blur);
  -webkit-backdrop-filter: var(--mz-blur);
  border-bottom: 1px solid var(--mz-border);
  transition: box-shadow 0.3s, background 0.3s;
  overflow: visible;
}
.header.scrolled { box-shadow: var(--mz-shadow-sm); background: rgba(255, 255, 255, 0.88); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: var(--mz-max-width); margin: 0 auto; padding: 0 var(--mz-space-xl);
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Fraunces', serif;
  font-size: 1.8rem; font-weight: 600;
  color: var(--mz-primary-dark);
  letter-spacing: 3px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon { width: 40px; height: 40px; border-radius: var(--mz-radius-sm); object-fit: contain; flex-shrink: 0; }
.logo-text { line-height: 1; }
.nav-desktop { display: flex; align-items: center; gap: 28px; }
.nav-desktop > a {
  font-size: 0.92rem; font-weight: 500; color: var(--mz-ink-soft);
  transition: color 0.2s; letter-spacing: 0.3px; white-space: nowrap;
}
.nav-desktop > a:hover { color: var(--mz-primary); }

/* Globe language menu */
.globe-menu { position: relative; }
.globe-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--mz-surface); border: 1px solid var(--mz-border);
  cursor: pointer; color: var(--mz-ink-soft); transition: all 0.2s;
  font: inherit; line-height: 1; padding: 0; flex-shrink: 0;
}
.globe-btn:hover { border-color: var(--mz-champagne); color: var(--mz-primary); }
.globe-dropdown {
  /* `inset-inline-end: 0` : le menu s'ouvre toujours vers l'intérieur de la
     page, en LTR comme en RTL — plus besoin de forcer le header en LTR. */
  display: none; position: absolute; top: calc(100% + 8px); inset-inline-end: 0;
  background: var(--mz-surface); border-radius: var(--mz-radius-md);
  box-shadow: var(--mz-shadow-lg);
  min-width: 176px; overflow: hidden; z-index: 1001;
  border: 1px solid var(--mz-border);
}
.globe-lang {
  display: flex; align-items: center; gap: 10px;
  padding: 11px var(--mz-space-md); font-size: 0.9rem; color: var(--mz-ink);
  transition: background 0.15s; white-space: nowrap;
}
.globe-lang:hover { background: var(--mz-bg); }
.globe-lang.active { background: var(--mz-primary-soft); font-weight: 600; color: var(--mz-primary-dark); }
.globe-lang span { font-size: 1.2rem; }
@media (hover: hover) {
  .globe-menu:hover .globe-dropdown { display: block; }
  .globe-menu:hover .globe-btn { border-color: var(--mz-champagne); color: var(--mz-primary); }
}
.globe-menu.open .globe-dropdown { display: block; }

/* Mobile menu */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: var(--mz-space-xs); }
.menu-toggle span {
  display: block; width: 24px; height: 2px; border-radius: 2px;
  background: var(--mz-ink); margin: 5px 0; transition: all 0.3s;
}
.mobile-nav {
  display: none; position: fixed; top: var(--mz-header-height);
  inset-inline: 0; bottom: 0;
  background: linear-gradient(170deg, var(--mz-bg) 0%, var(--mz-bg-alt) 100%);
  padding: var(--mz-space-xl); flex-direction: column; gap: var(--mz-space-md); z-index: 999;
}
.mobile-nav.open { display: flex; }
.mobile-nav > a { font-size: 1.1rem; padding: var(--mz-space-sm) 0; border-bottom: 1px solid var(--mz-border); }
.mobile-lang-list {
  display: flex; flex-direction: column; gap: 4px;
  padding: var(--mz-space-xs) 0; border-top: 1px solid var(--mz-border);
}
.mobile-lang-list a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px var(--mz-space-sm); border-radius: var(--mz-radius-sm); font-size: 1rem;
  transition: background 0.15s;
}
.mobile-lang-list a:hover { background: var(--mz-surface); }
.mobile-lang-list a.active { background: var(--mz-primary-soft); font-weight: 600; color: var(--mz-primary-dark); }

/* ===== HERO (conservé : pages features, prestataires, articles) ===== */
/* Fond clair et halos : même composition que l'écran d'accueil de l'app. */
.hero {
  min-height: 92vh; display: flex; align-items: center;
  background: linear-gradient(160deg, var(--mz-bg) 0%, var(--mz-bg-alt) 100%);
  padding-top: var(--mz-header-height);
  position: relative; overflow: hidden;
}
/* Halos en propriétés logiques : le contenu du hero s'inverse en hébreu, la
   lumière doit suivre, sinon le halo rose passe derrière le texte. */
.hero::before {
  content: ''; position: absolute; top: -18%; inset-inline-end: -12%;
  width: 620px; height: 620px; pointer-events: none;
  background: radial-gradient(circle, rgba(224, 68, 122, 0.16) 0%, transparent 68%);
  border-radius: 50%;
}
.hero::after {
  content: ''; position: absolute; bottom: -22%; inset-inline-start: -14%;
  width: 520px; height: 520px; pointer-events: none;
  background: radial-gradient(circle, rgba(201, 162, 75, 0.20) 0%, transparent 70%);
  border-radius: 50%;
}
.hero .container {
  display: flex; align-items: center; justify-content: space-between; gap: 60px;
  position: relative; z-index: 1;
}
.hero-content { flex: 1; max-width: 580px; }
.hero-badge {
  display: inline-block; padding: 7px var(--mz-space-md);
  background: var(--mz-champagne-soft); border: 1px solid rgba(201, 162, 75, 0.45);
  border-radius: var(--mz-radius-pill); font-size: 0.82rem; color: var(--mz-champagne-dark);
  margin-bottom: var(--mz-space-xl); letter-spacing: 1px; font-weight: 600;
}
.hero h1 { color: var(--mz-ink-strong); margin-bottom: var(--mz-space-lg); }
.hero h1 span { color: var(--mz-primary); }
.hero p { color: var(--mz-ink-soft); font-size: 1.15rem; margin-bottom: var(--mz-space-xxl); line-height: 1.75; }
.hero-visual { flex: 1; display: flex; justify-content: center; position: relative; }

/* ===== STORE BUTTONS ===== */
/* Version claire par défaut (hero, article) ; surcharges sur fonds sombres. */
.store-buttons { display: flex; gap: var(--mz-space-md); flex-wrap: wrap; }
.store-btn {
  display: inline-flex; align-items: center; gap: var(--mz-space-sm);
  padding: 14px 28px; border-radius: var(--mz-radius-md);
  font-weight: 600; font-size: 0.95rem;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
  cursor: pointer;
}
.store-btn--apple { background: var(--mz-ink-strong); color: var(--mz-surface); }
.store-btn--apple:hover { transform: translateY(-2px); box-shadow: var(--mz-shadow-md); }

/* ===== GROUPE D'APPEL À L'ACTION =====
   L'application web est la destination principale sur tous les appareils.
   Les badges stores, quand ils existent, sont rangés par la section
   « DÉTECTION DE L'APPAREIL » en fin de fichier. */
.cta-group { display: flex; flex-direction: column; gap: var(--mz-space-sm); align-items: flex-start; }
.cta-section .cta-group, .article-cta .cta-group { align-items: center; }
/* ===== VERRE LIQUIDE =====
   Le verre est TEINTÉ bordeaux, pas neutre. Un verre transparent sur le crème
   pâle du hero effacerait l'appel à l'action principal : la lisibilité passe
   avant l'effet. Trois couches font la matière :
     1. un fond semi-opaque qui porte la couleur et le contraste du texte ;
     2. `backdrop-filter` qui tord et floute ce qui passe derrière ;
     3. un liseré clair en haut et une ombre interne en bas, qui simulent la
        réfraction sur l'épaisseur de la tranche.
   Sans la couche 3, on obtient un rectangle flou, pas du verre. */
.mz-glass-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.store-btn--web {
  position: relative;
  isolation: isolate;
  background: linear-gradient(135deg, rgba(194, 37, 92, 0.92), rgba(143, 23, 71, 0.88));
  color: var(--mz-surface);
  border: 1px solid rgba(255, 255, 255, 0.28);
  /* Repli universel : flou simple, appliqué partout. La réfraction par filtre
     SVG n'arrive qu'ensuite, et seulement là où elle fonctionne. */
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 8px 20px rgba(120, 40, 70, 0.28);
  overflow: hidden;
}
/* Reflet de tranche : une bande claire qui court sur le bord supérieur. */
.store-btn--web::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.06) 42%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}
/* Lumière qui balaie la surface au survol. `transform` seulement : aucune
   propriété de mise en page n'est animée. */
.store-btn--web::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 45%;
  inset-inline-start: -60%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.30), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
  z-index: -1;
  transition: transform 0.65s var(--mz-ease-out);
}
.store-btn--web > * { position: relative; z-index: 1; }

@media (hover: hover) and (pointer: fine) {
  .store-btn--web:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(224, 68, 122, 0.94), rgba(194, 37, 92, 0.92));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.55),
      inset 0 -1px 0 rgba(0, 0, 0, 0.20),
      0 14px 30px rgba(120, 40, 70, 0.34);
  }
  .store-btn--web:hover::after { transform: skewX(-18deg) translateX(380%); }
}
.store-btn--web:active {
  transform: translateY(0) scale(0.985);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.22),
    0 4px 12px rgba(120, 40, 70, 0.22);
}

/* Même matière pour le bouton du bandeau de navigation, à une nuance près :
   il est posé sur le verre du bandeau, déjà flouté. Un second flou n'ajoute
   rien de visible, seulement un coût de composition — on garde donc le
   dégradé, le liseré et le balayage, sans backdrop-filter. */
.btn--primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(194, 37, 92, 0.96), rgba(143, 23, 71, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(0, 0, 0, 0.16),
    0 4px 12px rgba(120, 40, 70, 0.22);
}
.btn--primary::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 45%;
  inset-inline-start: -60%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-18deg);
  pointer-events: none; z-index: -1;
  transition: transform 0.6s var(--mz-ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover {
    background: linear-gradient(135deg, rgba(224, 68, 122, 0.97), rgba(194, 37, 92, 0.95));
    transform: translateY(-2px);
  }
  .btn--primary:hover::after { transform: skewX(-18deg) translateX(380%); }
}
.btn--primary:active {
  transform: translateY(0) scale(0.985);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.20), 0 2px 8px rgba(120, 40, 70, 0.18);
}

/* Réfraction réelle. `backdrop-filter: url()` n'est honoré que par Chromium :
   la requête `@supports` évite d'annuler le flou de repli ailleurs. */
@supports (backdrop-filter: url("#mz-glass")) {
  .store-btn--web {
    backdrop-filter: url("#mz-glass") blur(5px) saturate(150%);
  }
  .header {
    backdrop-filter: url("#mz-glass-soft") blur(14px) saturate(130%);
  }
}
.cta-web-small { font-size: 0.85rem; color: var(--mz-ink-soft); text-decoration: underline; text-underline-offset: 3px; }
/* Note « applications bientôt disponibles » : une information, pas un bouton. */
.cta-note { font-size: 0.82rem; color: var(--mz-ink-muted); margin: 0; }
.cta-section .cta-note { color: rgba(255, 255, 255, 0.62); }
.store-btn--google {
  background: var(--mz-surface); color: var(--mz-ink);
  border: 1px solid var(--mz-border-strong);
}
.store-btn--google:hover { transform: translateY(-2px); box-shadow: var(--mz-shadow-md); }
.store-btn svg { width: 24px; height: 24px; }
.store-btn-text { display: flex; flex-direction: column; line-height: 1.25; }
.store-btn-text small { font-size: 0.7rem; font-weight: 400; opacity: 0.75; }
.store-btn-text strong { font-size: 1rem; }

/* Sur fond sombre (CTA, pied de page) */
.cta-section .store-btn--apple,
.footer .store-btn--apple { background: var(--mz-surface); color: var(--mz-ink-strong); }
.cta-section .store-btn--google,
.footer .store-btn--google {
  background: rgba(255, 255, 255, 0.10); color: var(--mz-surface);
  border-color: rgba(255, 255, 255, 0.28);
}
.cta-section .store-btn--google:hover,
.footer .store-btn--google:hover { background: rgba(255, 255, 255, 0.18); }

/* ===== GRILLE DES OUTILS =====
   Douze colonnes : les deux outils qui amènent les gens ici (invités, plan de
   table) prennent une demi-largeur, les six autres se rangent par trois.
   Huit cartes identiques se lisaient comme une planche de pictogrammes. */
.features-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: var(--mz-space-xl);
}
/* Verre feuilleté : un voile dégradé plutôt qu'un aplat laiteux, un liseré
   lumineux sur l'arête haute (c'est lui qui fait lire « verre » plus que le
   flou), et une ombre prune qui se creuse au survol. */
.feature-card {
  grid-column: span 4;
  display: flex; flex-direction: column;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.55) 100%);
  border-radius: var(--mz-radius-xl);
  padding: var(--mz-space-xl); border: 1px solid var(--mz-glass-border);
  backdrop-filter: var(--mz-blur);
  -webkit-backdrop-filter: var(--mz-blur);
  box-shadow: var(--mz-shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.35s var(--mz-ease-out), box-shadow 0.35s var(--mz-ease-out), border-color 0.35s var(--mz-ease-out);
}
.feature-card--lead { grid-column: span 6; padding: var(--mz-space-xxl); }
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--mz-shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(201, 162, 75, 0.55);
}
/* Icône au trait sur une tuile champagne arrondie — un rond parfait faisait
   « pictogramme d'aéroport », la tuile s'accorde aux rayons des cartes. */
.feature-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: linear-gradient(150deg, var(--mz-champagne-soft) 0%, rgba(247, 237, 217, 0.45) 100%);
  border: 1px solid rgba(201, 162, 75, 0.38);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  color: var(--mz-primary-dark);
  margin-bottom: var(--mz-space-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: background 0.3s, color 0.3s, transform 0.35s var(--mz-ease-out);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card:hover .feature-icon {
  background: var(--mz-primary-soft); color: var(--mz-primary);
  transform: rotate(-4deg) scale(1.06);
}
.feature-card--lead .feature-icon { width: 56px; height: 56px; border-radius: 16px; }
.feature-card--lead .feature-icon svg { width: 27px; height: 27px; }
.feature-card h3 { margin-bottom: var(--mz-space-xs); color: var(--mz-primary-dark); }
.feature-card--lead h3 { font-size: 1.5rem; }
.feature-card p {
  font-size: 0.92rem; line-height: 1.7; margin-bottom: 0;
  text-wrap: pretty;
}
.feature-card--lead p { font-size: 1rem; }

/* ===== FEATURES DETAIL PAGE ===== */
.feature-detail {
  display: flex; align-items: center; gap: 60px;
  padding: 60px 0;
}
.feature-detail:nth-child(even) { flex-direction: row-reverse; }
.feature-detail-content { flex: 1; }
.feature-detail-content h3 {
  font-size: 1.85rem; margin-bottom: var(--mz-space-md); color: var(--mz-primary-dark);
  display: flex; align-items: center; gap: 12px;
}
/* Même langage visuel que l'accueil : les SVG FEATURE_ICONS remplacent les
   émojis Apple, qui juraient avec le reste de la page. */
.feature-detail-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: var(--mz-radius-md);
  background: var(--mz-primary-soft); color: var(--mz-primary-dark);
}
.feature-detail-icon svg { width: 24px; height: 24px; }
.feature-detail-content p { font-size: 1.05rem; line-height: 1.8; }
.feature-detail-content ul { margin-top: var(--mz-space-md); }
.feature-detail-content li {
  padding: var(--mz-space-xs) 0; padding-inline-start: 28px; position: relative;
  font-size: 0.95rem; color: var(--mz-ink-soft);
}
.feature-detail-content li::before {
  content: '✓'; position: absolute; inset-inline-start: 0; color: var(--mz-champagne);
  font-weight: 700;
}
.feature-detail-visual { flex: 1; display: flex; justify-content: center; }
.feature-detail-visual .mock {
  width: 240px; height: 480px;
  background: var(--mz-glass-strong);
  border-radius: 32px; border: 1px solid var(--mz-glass-border);
  box-shadow: var(--mz-shadow-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
/* Vrai écran de l'app dans un cadre téléphone (remplace l'emoji) */
.feature-detail-visual .mock--screen {
  width: 260px; height: auto; padding: 10px;
  background: #1c1c1e; border: none; border-radius: 38px;
  box-shadow: var(--mz-shadow-md);
}
.mock--screen img {
  display: block; width: 100%; height: auto;
  border-radius: 28px;
}
/* Affiche App Store : elle contient déjà son fond et son cadre d'appareil, donc
   aucun cadre ajouté — seulement un rayon et une ombre pour la détacher de la
   page, comme une carte posée. */
.mock--aso {
  width: 310px; max-width: 100%;
  background: none; border: none; padding: 0;
  border-radius: var(--mz-radius-lg);
  overflow: hidden;
  box-shadow: var(--mz-shadow-lg);
  transition: transform 0.35s var(--mz-ease-out), box-shadow 0.35s var(--mz-ease-out);
}
.mock--aso img { display: block; width: 100%; height: auto; }
@media (hover: hover) and (pointer: fine) {
  .mock--aso:hover { transform: translateY(-6px); }
}

/* ===== PAGE DES MODÈLES DE FAIRE-PART ===== */
/* Chaque carte est un lien vers la démo vivante du gabarit. La fenêtre montre
   le haut du faire-part ; au survol, l'image glisse lentement vers le bas —
   on « déroule » le modèle sans le quitter des yeux. */
.tpl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--mz-space-xl);
}
.tpl-card {
  display: flex; flex-direction: column;
  border-radius: var(--mz-radius-lg);
  overflow: hidden;
  background: var(--mz-surface);
  border: 1px solid var(--mz-border);
  box-shadow: var(--mz-shadow-sm);
  text-decoration: none;
  transition: transform 0.35s var(--mz-ease-out), box-shadow 0.35s var(--mz-ease-out);
}
.tpl-window {
  display: block; position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--mz-bg-alt);
}
.tpl-window img {
  display: block; width: 100%; height: auto;
  position: absolute; left: 0; top: 0;
  /* Glissement exact quelle que soit la taille : au survol, `top: 100%`
     descend d'une hauteur de fenêtre pendant que translateY(-100%) remonte
     d'une hauteur d'image — la somme aligne le bas de l'image sur le bas de
     la fenêtre, sans jamais connaître les pixels. */
  transition: top 6s var(--mz-ease-in-out), transform 6s var(--mz-ease-in-out);
}
.tpl-meta {
  display: flex; flex-direction: column; gap: 6px;
  padding: var(--mz-space-lg);
}
.tpl-meta strong {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.35rem; font-weight: 600; color: var(--mz-ink-strong);
}
.tpl-meta > span { font-size: 0.9rem; line-height: 1.55; color: var(--mz-ink-soft); }
.tpl-badge {
  align-self: flex-start;
  margin-top: 4px;
  padding: 3px 10px;
  border-radius: var(--mz-radius-pill);
  background: var(--mz-champagne-soft);
  color: var(--mz-champagne-dark);
  font-size: 0.72rem !important; font-weight: 600;
  letter-spacing: 0.4px; text-transform: uppercase;
}
@media (hover: hover) and (pointer: fine) {
  .tpl-card:hover { transform: translateY(-6px); box-shadow: var(--mz-shadow-lg); }
  .tpl-card:hover .tpl-window img { top: 100%; transform: translateY(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .tpl-card, .tpl-window img { transition: none; }
  .tpl-card:hover .tpl-window img { top: 0; transform: none; }
}

/* ===== VENDORS PAGE ===== */
.vendors-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--mz-space-xl);
}
.vendor-card {
  background: var(--mz-surface); border-radius: var(--mz-radius-lg);
  padding: 28px; text-align: center;
  border: 1px solid var(--mz-border); transition: all 0.3s;
  box-shadow: var(--mz-shadow-sm);
}
.vendor-card:hover {
  border-color: var(--mz-champagne);
  box-shadow: var(--mz-shadow-md);
  transform: translateY(-3px);
}
.vendor-icon { font-size: 2.5rem; margin-bottom: var(--mz-space-md); }
.vendor-card h3 { font-size: 1.1rem; margin-bottom: var(--mz-space-xs); color: var(--mz-ink-strong); }
.vendor-card p { font-size: 0.9rem; }
.vendor-tips {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease, margin 0.3s;
  margin-top: 0;
}
.vendor-card.expanded .vendor-tips { max-height: 300px; margin-top: var(--mz-space-md); }
.vendor-card.expanded {
  border-color: var(--mz-champagne);
  box-shadow: var(--mz-shadow-md);
}
.vendor-tips ul { text-align: start; padding-inline-start: var(--mz-space-md); }
.vendor-tips li {
  font-size: 0.85rem; color: var(--mz-ink-soft); line-height: 1.7;
  list-style: disc; margin-bottom: 4px;
}
.vendor-card::after {
  content: '▼'; display: block; font-size: 0.7rem; color: var(--mz-ink-muted);
  margin-top: var(--mz-space-xs); transition: transform 0.3s;
}
.vendor-card.expanded::after { transform: rotate(180deg); }
.vendor-filter {
  padding: var(--mz-space-xs) var(--mz-space-lg); border-radius: var(--mz-radius-pill);
  font-size: 0.85rem; font-weight: 500;
  background: var(--mz-surface); border: 1px solid var(--mz-border); cursor: pointer;
  transition: all 0.2s; color: var(--mz-ink);
}
.vendor-filter:hover { border-color: var(--mz-champagne); color: var(--mz-primary-dark); }
.vendor-filter.active {
  background: var(--mz-primary); color: var(--mz-surface); border-color: var(--mz-primary);
}

/* ===== CTA SECTION ===== */
.cta-section {
  text-align: center; padding: 88px 0;
  background: linear-gradient(140deg, var(--mz-primary-dark) 0%, var(--mz-ink-strong) 100%);
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 700px; height: 700px; pointer-events: none;
  background: radial-gradient(circle, rgba(201, 162, 75, 0.16) 0%, transparent 65%);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { color: var(--mz-champagne); margin-bottom: var(--mz-space-md); }
.cta-section p { color: rgba(255, 255, 255, 0.86); font-size: 1.1rem; margin-bottom: var(--mz-space-xxl); }
.cta-section .store-buttons { justify-content: center; }

/* ===== BLOG ===== */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}
.blog-card {
  background: var(--mz-surface); border-radius: var(--mz-radius-xl);
  overflow: hidden; border: 1px solid var(--mz-border);
  box-shadow: var(--mz-shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--mz-shadow-lg);
}
.blog-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--mz-bg-alt), var(--mz-champagne-soft));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; /* taille de l'émoji de repli, sans photo */
  overflow: hidden;
}
.blog-card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s var(--mz-ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .blog-card:hover .blog-card-img img { transform: scale(1.04); }
}
/* Image d'en-tête d'article — même photo que sa carte dans le listing. */
.article-hero {
  display: block; width: 100%; height: auto; max-height: 420px;
  object-fit: cover;
  border-radius: var(--mz-radius-lg);
  margin: var(--mz-space-xl) 0;
  box-shadow: var(--mz-shadow-md);
}
.blog-card-body { padding: var(--mz-space-xl); }
.blog-card-category {
  display: inline-block; padding: 4px var(--mz-space-sm);
  background: var(--mz-primary-soft); border-radius: var(--mz-radius-sm);
  font-size: 0.72rem; font-weight: 600;
  color: var(--mz-primary-dark); text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: var(--mz-space-sm);
}
.blog-card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.blog-card h3 a { color: var(--mz-ink-strong); transition: color 0.2s; }
.blog-card h3 a:hover { color: var(--mz-primary); }
.blog-card p { font-size: 0.9rem; line-height: 1.65; }
.blog-card-date { font-size: 0.8rem; color: var(--mz-ink-muted); margin-top: var(--mz-space-sm); }

/* Blog categories filter */
.blog-categories {
  display: flex; flex-wrap: wrap; gap: var(--mz-space-xs);
  justify-content: center; margin-bottom: 40px;
}
.blog-categories a {
  padding: var(--mz-space-xs) var(--mz-space-lg); border-radius: var(--mz-radius-pill);
  font-size: 0.85rem; font-weight: 500;
  background: var(--mz-surface); border: 1px solid var(--mz-border);
  transition: all 0.2s;
}
.blog-categories a:hover { border-color: var(--mz-champagne); color: var(--mz-primary-dark); }
.blog-categories a.active {
  background: var(--mz-primary); color: var(--mz-surface); border-color: var(--mz-primary);
}

/* ===== ARTICLE ===== */
.article { max-width: 760px; margin: 0 auto; padding-top: calc(var(--mz-header-height) + 40px); }
.article-header { margin-bottom: 40px; }
.article-category {
  display: inline-block; padding: 4px 14px;
  background: var(--mz-primary-soft); border-radius: var(--mz-radius-sm);
  font-size: 0.78rem; font-weight: 600;
  color: var(--mz-primary-dark); text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: var(--mz-space-md);
}
.article-header h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: var(--mz-space-md); }
.article-meta { font-size: 0.9rem; color: var(--mz-ink-muted); }
.article-body { font-size: 1.06rem; line-height: 1.85; color: var(--mz-ink); }
.article-body h2 {
  margin-top: 40px; margin-bottom: var(--mz-space-md);
  padding-bottom: var(--mz-space-xs); border-bottom: 1px solid var(--mz-border);
}
.article-body h3 { margin-top: var(--mz-space-xxl); margin-bottom: var(--mz-space-sm); }
.article-body p { margin-bottom: var(--mz-space-md); color: var(--mz-ink-soft); }
.article-body ul, .article-body ol { margin: var(--mz-space-md) 0; padding-inline-start: var(--mz-space-xl); }
.article-body li { margin-bottom: var(--mz-space-xs); color: var(--mz-ink-soft); list-style: disc; }
.article-body ol li { list-style: decimal; }
.article-body blockquote {
  border-inline-start: 3px solid var(--mz-champagne);
  padding: var(--mz-space-md) var(--mz-space-xl); margin: var(--mz-space-xl) 0;
  background: var(--mz-bg);
  border-start-start-radius: 0; border-end-start-radius: 0;
  border-start-end-radius: var(--mz-radius-sm); border-end-end-radius: var(--mz-radius-sm);
  font-style: italic; color: var(--mz-ink);
}
.article-body strong { color: var(--mz-ink-strong); }
.article-body a { color: var(--mz-primary); text-decoration: underline; text-underline-offset: 2px; }
.article-body h2 { scroll-margin-top: calc(var(--header-height, 72px) + 16px); }
/* Tableaux markdown (noces par année, rétroplannings, budgets indicatifs) :
   défilement horizontal sur mobile plutôt qu'une page qui déborde. */
.article-body table {
  display: block; overflow-x: auto; width: 100%;
  border-collapse: collapse; margin: var(--mz-space-xl) 0; font-size: 0.95rem;
}
.article-body th, .article-body td {
  padding: 10px 14px; border-bottom: 1px solid var(--mz-border);
  text-align: start; vertical-align: top; color: var(--mz-ink-soft);
}
.article-body th { color: var(--mz-ink-strong); font-weight: 600; background: var(--mz-bg); }
/* Sommaire des guides piliers. */
.article-toc {
  margin: var(--mz-space-xl) 0 var(--mz-space-xxl);
  padding: var(--mz-space-lg) var(--mz-space-xl);
  background: var(--mz-glass-strong); border: 1px solid var(--mz-glass-border);
  border-radius: var(--mz-radius-lg);
}
.article-toc-title {
  font-size: 0.72rem; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--mz-primary); margin-bottom: var(--mz-space-sm);
}
.article-toc ol { margin: 0; padding-inline-start: var(--mz-space-xl); display: grid; gap: 6px; }
.article-toc li { list-style: decimal; color: var(--mz-ink-muted); }
.article-toc a { color: var(--mz-ink-strong); text-decoration: none; }
.article-toc a:hover { color: var(--mz-primary); text-decoration: underline; }
/* Renvoi vers le guide complet du thème. */
.pillar-links { margin-top: var(--mz-space-xxl); display: grid; gap: 10px; }
.pillar-link {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 22px;
  background: var(--mz-glass-strong);
  border: 1px solid var(--mz-glass-border);
  border-inline-start: 3px solid var(--mz-champagne);
  border-radius: var(--mz-radius-lg);
  transition: border-color 0.2s, box-shadow 0.25s var(--mz-ease-out);
}
.pillar-link:hover { border-color: var(--mz-primary); box-shadow: var(--mz-shadow-sm); }
.pillar-link-label {
  font-size: 0.72rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--mz-primary);
}
.pillar-link-name { font-weight: 600; font-size: 1.08rem; color: var(--mz-ink-strong); line-height: 1.4; }
.blog-card-pillar {
  display: inline-block; margin-inline-start: 8px;
  font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px;
  color: var(--mz-primary-dark); border: 1px solid var(--mz-champagne);
}
/* « À lire aussi » : trois articles de la même catégorie, en liens pleins —
   le maillage interne du blog passe par là. */
.related { margin-top: var(--mz-space-xxl); }
.related-title {
  font-size: 1.15rem; margin-bottom: var(--mz-space-md);
}
.related-list { display: grid; gap: 10px; }
.related-item {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 18px;
  background: var(--mz-glass-strong); border: 1px solid var(--mz-glass-border);
  border-radius: var(--mz-radius-lg);
  transition: border-color 0.2s, box-shadow 0.25s var(--mz-ease-out);
}
.related-item:hover { border-color: var(--mz-primary); box-shadow: var(--mz-shadow-sm); }
.related-cat {
  font-size: 0.72rem; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--mz-primary);
}
.related-name { font-weight: 600; color: var(--mz-ink-strong); line-height: 1.4; }
.article-cta {
  margin-top: var(--mz-space-xxxl); padding: var(--mz-space-xxl); text-align: center;
  background: var(--mz-glass-strong); border-radius: var(--mz-radius-xl);
  border: 1px solid var(--mz-glass-border);
  box-shadow: var(--mz-shadow-sm);
}
.article-cta h3 { margin-bottom: var(--mz-space-sm); color: var(--mz-primary-dark); }
.article-cta p { margin-bottom: var(--mz-space-lg); }
.article-cta .store-buttons { justify-content: center; }

/* ===== FOOTER ===== */
.footer {
  background:
    radial-gradient(640px 300px at 85% 0%, rgba(201, 162, 75, 0.08), transparent 70%),
    var(--mz-ink-strong);
  color: rgba(255, 255, 255, 0.72); padding: 64px 0 30px;
  position: relative;
}
/* Filet doré en lisière : la signature de la marque referme la page. */
.footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--mz-champagne) 50%, transparent 100%);
  opacity: 0.55;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px; margin-bottom: 40px;
}
/* `display: flex` re-déclaré : `.footer a { display: block }` l'écrasait et
   « Mazaly » passait sous l'icône au lieu d'être à sa droite. */
.footer-brand .logo {
  color: var(--mz-champagne) !important; margin-bottom: var(--mz-space-sm);
  display: flex; align-items: center; gap: 10px;
}
/* Stores du footer : les logos nus, sans encadré ni texte (Jordan, 24/11). */
.store-icons { display: flex; align-items: center; gap: 20px; margin-top: 14px; }
.footer .store-icons a { display: inline-flex; padding: 4px 0; color: rgba(255, 255, 255, 0.78); }
.footer .store-icons a:hover { color: var(--mz-champagne); transform: none; }
.store-icons svg { width: 26px; height: 26px; fill: currentColor; }
.footer-brand .logo-icon { box-shadow: 0 0 0 1px rgba(201, 162, 75, 0.35); }
.footer-brand p { font-size: 0.9rem; line-height: 1.65; color: rgba(255, 255, 255, 0.72); }
/* Titres de colonnes : des <p>, pas des <h4> — un h4 orphelin sous le h2 de
   section cassait l'ordre des titres pour les lecteurs d'écran (axe
   heading-order). `.footer h4` reste couvert au cas où. */
.footer h4, .footer .footer-h {
  color: var(--mz-champagne); font-family: 'Inter', sans-serif;
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 2px; margin: 0 0 var(--mz-space-md);
}
.footer a {
  font-size: 0.9rem; display: block; padding: 4px 0;
  transition: color 0.2s, transform 0.25s var(--mz-ease-out);
}
.footer a:hover { color: var(--mz-champagne); transform: translateX(3px); }
[dir="rtl"] .footer a:hover { transform: translateX(-3px); }
/* Le bouton « Ouvrir Mazaly » de la colonne Contact : `.footer a { display:
   block }` écrasait son inline-flex (spécificité supérieure), ce qui empilait
   le globe au-dessus du texte. On rétablit le flex et on laisse le bouton
   prendre la largeur de la colonne pour que tout tienne. */
.footer .store-btn {
  display: flex; align-items: center; justify-content: flex-start;
  width: 100%; max-width: 300px; padding: 12px 18px;
}
.footer .store-btn svg { flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: var(--mz-space-xl); text-align: center;
  font-size: 0.85rem; color: rgba(255, 255, 255, 0.45);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: var(--mz-space-xs);
  padding: var(--mz-space-sm) 28px; border-radius: var(--mz-radius-md);
  font-weight: 600; font-size: 0.95rem;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s;
  cursor: pointer; border: none;
}
.btn--primary { background: var(--mz-primary); color: var(--mz-surface); box-shadow: var(--mz-shadow-sm); }
.btn--primary:hover { background: var(--mz-primary-dark); transform: translateY(-2px); box-shadow: var(--mz-shadow-md); }
.btn--gold { background: var(--mz-champagne); color: var(--mz-surface); }
.btn--gold:hover { background: var(--mz-champagne-dark); transform: translateY(-2px); }
.btn--outline {
  background: transparent; color: var(--mz-primary);
  border: 1.5px solid var(--mz-primary);
}
.btn--outline:hover { background: var(--mz-primary); color: var(--mz-surface); }
.btn--sm { padding: var(--mz-space-xs) var(--mz-space-lg); font-size: 0.85rem; }

/* ===== STATS ===== */
/* ===== HALO AU CURSEUR (transposition de spotlight-card) =====
   Les coordonnées du pointeur arrivent par `--mx`/`--my`, posées en JavaScript
   sur la carte survolée (script en pied de page). Le halo vit dans un
   pseudo-élément : il n'y a donc rien à ajouter dans le HTML, et son opacité
   seule est animée, jamais sa position.
   Strictement réservé aux pointeurs fins : au doigt, le halo s'allumerait au
   premier contact, pendant le défilement. */
@media (hover: hover) and (pointer: fine) {
  .feature-card { position: relative; }
  .feature-card::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s var(--mz-ease-out);
    background: radial-gradient(
      320px 320px at var(--mx, 50%) var(--my, 50%),
      rgba(201, 162, 75, 0.20) 0%,
      rgba(194, 37, 92, 0.10) 38%,
      transparent 68%
    );
  }
  .feature-card:hover::after { opacity: 1; }
}

/* ===== CÉLÉBRATIONS =====
   Remplace la bande sombre « 8+ / 3 / 12+ / ∞ » : des compteurs qui ne
   mesuraient rien, et un bloc noir au milieu d'une page crème. Nommer les
   fêtes couvertes dit à qui s'adresse Mazaly, et c'est vérifiable. */
/* Le verre a besoin de matière derrière lui pour exister : deux halos tièdes
   (champagne, rose) dérivent sous le rail, le flou des cartes les révèle. */
.section--celebrations {
  background:
    radial-gradient(520px 320px at 12% 20%, rgba(247, 237, 217, 0.9), transparent 70%),
    radial-gradient(640px 380px at 88% 78%, rgba(244, 223, 233, 0.9), transparent 72%),
    var(--mz-bg);
  overflow: hidden;
}

/* Rail horizontal. Il se parcourt au doigt, au trackpad, à la molette
   (shift+scroll) et au clavier — le scroll vertical de la page n'est jamais
   confisqué. Les ombres latérales disent qu'il reste du contenu à côté. */
.celebrations-rail {
  position: relative;
  margin-top: var(--mz-space-xl);
  mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent);
}
/* Boucle infinie (Jordan, 24/11) : la piste contient deux listes identiques
   et glisse d'exactement une liste, puis recommence — le raccord est
   invisible. Droite → gauche en LTR, miroir en hébreu. transform seulement,
   pause au survol pour laisser lire. */
.celebrations-rail { overflow: hidden; }
.celebrations-track {
  display: flex; width: max-content;
  padding: var(--mz-space-sm) 0;
  animation: mz-marquee 55s linear infinite;
}
.celebrations-rail:hover .celebrations-track { animation-play-state: paused; }
.celebrations {
  display: flex; gap: var(--mz-space-lg); flex: none;
  padding-inline-end: var(--mz-space-lg);
}
@keyframes mz-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
[dir="rtl"] .celebrations-track { animation-name: mz-marquee-rtl; }
@keyframes mz-marquee-rtl {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}
/* Sans animation : retour au rail défilable à la main. */
@media (prefers-reduced-motion: reduce) {
  .celebrations-track { animation: none; width: auto; overflow-x: auto; scrollbar-width: none; }
  .celebrations:last-child { display: none; }
}

.celebration {
  flex: 0 0 clamp(240px, 78vw, 320px);
  scroll-snap-align: center;
  padding: var(--mz-space-xl);
  /* Même verre feuilleté que les cartes d'outils : voile dégradé + liseré
     lumineux en arête haute, au lieu de l'aplat blanc. */
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.6) 100%);
  backdrop-filter: var(--mz-blur);
  -webkit-backdrop-filter: var(--mz-blur);
  border: 1px solid var(--mz-glass-border);
  border-radius: var(--mz-radius-xl);
  box-shadow: var(--mz-shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: border-color 0.25s var(--mz-ease-out), transform 0.25s var(--mz-ease-out), box-shadow 0.25s var(--mz-ease-out);
}
/* Filet doré d'appartenance : chaque fête porte sa petite signature. */
.celebration-name::after {
  content: '';
  display: block; width: 34px; height: 2px;
  margin-top: 8px; border-radius: 1px;
  background: linear-gradient(90deg, var(--mz-champagne), rgba(201, 162, 75, 0.15));
}
/* Lueur interne mobile (transposition de glass-folder-cards) : une tache de
   lumière dérive dans la carte selon la position du pointeur, ce qui donne au
   verre une épaisseur que l'aplat seul n'a pas. */
.celebration { position: relative; overflow: hidden; }
.celebration::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--mz-ease-out);
  background: radial-gradient(
    260px 200px at calc(50% + var(--gf-px, 0) * 46%) calc(30% + var(--gf-py, 0) * 28%),
    rgba(255, 255, 255, 0.85) 0%,
    rgba(251, 232, 240, 0.45) 45%,
    transparent 72%
  );
}
@media (hover: hover) and (pointer: fine) {
  .celebration:hover::before { opacity: 1; }
}
.celebration > * { position: relative; z-index: 1; }

.celebration-name {
  font-size: 1.25rem; color: var(--mz-primary-dark);
  margin-bottom: var(--mz-space-xs);
}
.celebration-text {
  font-size: 0.9rem; line-height: 1.65; margin-bottom: 0;
  text-wrap: pretty;
}
/* Le survol n'existe qu'avec un vrai pointeur : au doigt, il se déclenche au
   contact et fait sursauter la carte qu'on est en train de faire glisser. */
@media (hover: hover) and (pointer: fine) {
  .celebration:hover {
    border-color: var(--mz-champagne);
    transform: translateY(-4px);
    box-shadow: var(--mz-shadow-md);
  }
}


/* ===== RTL SUPPORT ===== */
/* Ni Cormorant Garamond ni Inter ne dessinent l'hébreu : sans ces replis, les
   titres de /he/ perdaient toute identité typographique. Les deux familles
   hébraïques ne sont chargées que sur les pages hébraïques (voir le <head>
   généré par build.js). */
[dir="rtl"] body { font-family: 'Assistant', 'Inter', -apple-system, sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4,
[dir="rtl"] .logo, [dir="rtl"] .section-header h2 {
  font-family: 'Frank Ruhl Libre', Georgia, serif;
}
[dir="rtl"] { text-align: right; }
[dir="rtl"] .hero .container { direction: rtl; }
[dir="rtl"] .hero-content { text-align: right; direction: rtl; }
/* `flex-end` désigne le bord GAUCHE en RTL : les boutons se décrochaient du
   titre, qui est aligné à droite. `flex-start` les remet sous le titre. */
[dir="rtl"] .hero .store-buttons { justify-content: flex-start; }
[dir="rtl"] .section-header { text-align: center; direction: rtl; }
[dir="rtl"] .feature-card { direction: rtl; text-align: right; }
[dir="rtl"] .feature-detail { direction: rtl; }
[dir="rtl"] .feature-detail:nth-child(even) { flex-direction: row; }
[dir="rtl"] .feature-detail:nth-child(odd) { flex-direction: row-reverse; }
[dir="rtl"] .feature-detail-content { direction: rtl; text-align: right; }
[dir="rtl"] .blog-card-body { text-align: right; direction: rtl; }
[dir="rtl"] .article { text-align: right; direction: rtl; }
[dir="rtl"] .footer { text-align: right; direction: rtl; }
[dir="rtl"] .vendor-card { direction: rtl; }
[dir="rtl"] .cta-section { direction: rtl; }
[dir="rtl"] .stats { direction: ltr; }
/* Le header hérite du RTL ; `.globe-dropdown` est ancré en `inset-inline-end`
   et s'ouvre donc toujours vers l'intérieur, sans débordement 901-1100 px. */

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .nav-desktop { gap: var(--mz-space-md); }
  .hero .container { gap: 30px; }
  .app-mock { width: 290px; padding: var(--mz-space-lg); }
  .hero-content { max-width: 480px; }
}
@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: block; }
  .hero { min-height: auto; padding-bottom: 60px; }
  .hero .container { flex-direction: column; text-align: center; padding-top: 40px; }
  .hero-content { max-width: 100%; }
  /* La maquette passe sous l'appel à l'action au lieu de disparaître : sur
     téléphone aussi, montrer l'app vaut mieux qu'un bloc de texte seul. */
  .hero-visual { margin-top: var(--mz-space-xl); }
  .app-mock { transform: none; }
  .hero p { font-size: 1rem; }
  .cta-group { align-items: center; }
  .store-buttons { justify-content: center; }
  /* Deux colonnes sur tablette, la carte vedette prend toute la largeur. */
  .feature-card { grid-column: span 6; }
  .feature-card--lead { grid-column: span 12; padding: var(--mz-space-xl); }
  .feature-detail, .feature-detail:nth-child(even),
  [dir="rtl"] .feature-detail:nth-child(even),
  [dir="rtl"] .feature-detail:nth-child(odd) {
    flex-direction: column;
  }
  /* Le visuel reste visible sur mobile : depuis les affiches ASO, chaque
     fonctionnalité a une vraie image. (L'ancien `display:none` datait de
     l'époque emoji, et comme l'exception ne visait que `--screen` — jamais
     émis depuis les affiches — la page perdait ses 8 visuels sous 900 px.) */
  .feature-detail-visual { margin-top: var(--mz-space-md); }
  .feature-detail-visual .mock--aso { width: 250px; }
  .blog-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article { padding-left: var(--mz-space-md); padding-right: var(--mz-space-md); }
}
@media (max-width: 640px) {
  /* Une carte par ligne : à cette largeur, deux colonnes coupent les titres. */
  .feature-card, .feature-card--lead { grid-column: span 12; }
}
@media (max-width: 480px) {
  .store-buttons { flex-direction: column; align-items: center; }
  .store-btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .app-mock { width: 100%; }
  .app-mock-units { gap: var(--mz-space-md); }
}

/* ===== ACCESSIBILITÉ ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* =========================================================
   PAGES LÉGALES — bloc ajouté en fin de fichier.
   Propriétés logiques uniquement (RTL-safe).
   ========================================================= */
/* Espaces réservés [À COMPLÉTER : …] bien visibles jusqu'à leur remplacement. */
.legal-placeholder {
  display: inline;
  background: rgba(201, 162, 75, 0.16);
  border: 1px dashed var(--mz-champagne);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--mz-primary-dark);
  font-weight: 600;
  font-style: normal;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
/* Tableaux des pages légales (ex. services tiers de la page cookies). */
.article--legal .article-body table {
  width: 100%;
  border-collapse: collapse;
  margin-block: var(--mz-space-lg);
  font-size: 0.92rem;
}
.article--legal .article-body th,
.article--legal .article-body td {
  border: 1px solid var(--mz-border);
  padding: var(--mz-space-xs) var(--mz-space-sm);
  text-align: start;
  vertical-align: top;
  color: var(--mz-ink-soft);
}
.article--legal .article-body th {
  background: var(--mz-bg);
  color: var(--mz-ink-strong);
  font-weight: 600;
}
/* Tableau trop large sur mobile : défilement interne, jamais sur la page. */
@media (max-width: 600px) {
  .article--legal .article-body table {
    display: block;
    overflow-x: auto;
  }
}

/* =========================================================
   DÉTECTION DE L'APPAREIL — doit rester le DERNIER bloc du fichier.
   Règle produit : un ordinateur ne se voit jamais proposer de télécharger
   l'application ; il va sur /app/.

   Ces règles étaient écrites plus haut dans une media query
   `(hover: hover) and (pointer: fine)`, mais `.btn { display: inline-flex }`
   est déclaré après elle : à spécificité égale, la dernière déclaration
   gagnait et « Télécharger » restait affiché sur ordinateur. D'où la place en
   fin de fichier, et le préfixe `html` qui met la spécificité hors d'atteinte.

   `mz-desktop` / `mz-handheld` sont posées par le script du <head>. La media
   query qui suit prend le relais quand JavaScript est absent.
   ========================================================= */
.btn--block { display: flex; width: 100%; justify-content: center; margin-top: var(--mz-space-sm); }

.cta--mobile { display: none; }
.cta--desktop { display: inline-flex; }

html.mz-handheld .cta--mobile { display: inline-flex; }
html.mz-handheld .cta--desktop { display: none; }
/* Les badges stores s'affichent partout depuis le 24/11 (décision Jordan :
   les montrer même sur ordinateur, comme au plan final de la vidéo ident). */

@media (pointer: coarse) {
  html:not(.mz-desktop) .cta--mobile { display: inline-flex; }
  html:not(.mz-desktop) .cta--desktop { display: none; }
}

/* Un bouton dans la navigation reste un bouton : `.nav-desktop > a`
   (spécificité 0,1,1) imposait sa couleur d'encre à `.btn--primary` (0,1,0),
   ce qui donnait du bordeaux sur fuchsia, illisible. */
.nav-desktop > a.btn--primary { color: var(--mz-surface); }
.nav-desktop > a.btn--primary:hover { color: var(--mz-surface); }

/* =========================================================
   MOTION AU DÉFILEMENT
   Animations pilotées par la position de scroll, pas par une horloge : elles
   tournent hors du thread principal, suivent le doigt, et se rembobinent si
   l'on remonte. Aucune bibliothèque, aucun observateur JavaScript.

   Tout est enfermé dans `@supports (animation-timeline: view())` : là où la
   fonctionnalité manque (Firefox à ce jour), aucune règle ne s'applique et le
   contenu s'affiche normalement. Un contenu invisible en attente d'un script
   est le piège classique de ce genre d'effet.
   ========================================================= */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes mz-reveal {
      from { opacity: 0; transform: translateY(26px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .reveal {
      animation: mz-reveal linear both;
      animation-timeline: view();
      /* La carte finit son entrée avant d'atteindre le milieu de l'écran :
         on lit du contenu posé, jamais du contenu en train d'arriver. */
      animation-range: entry 8% cover 30%;
    }
    /* Décalage par colonne : la rangée se pose en cascade au lieu d'un bloc.
       Les rangées réelles sont (1,2) / (3,4,5) / (6,7,8) — l'ancien `3n+2`/`3n`
       décalait les cartes 2,5,8 et 3,6, à cheval sur les rangées. */
    .features-grid .reveal:nth-child(2),
    .features-grid .reveal:nth-child(4),
    .features-grid .reveal:nth-child(7) { animation-range: entry 12% cover 34%; }
    .features-grid .reveal:nth-child(5),
    .features-grid .reveal:nth-child(8) { animation-range: entry 16% cover 38%; }

    /* Parallaxe. Les halos et la maquette dérivent plus lentement que la page,
       ce qui creuse la profondeur du hero. Amplitudes faibles : au-delà, on
       remarque l'effet au lieu de la page. */
    @keyframes mz-drift-slow { to { transform: translateY(80px); } }
    @keyframes mz-drift-fast { to { transform: translateY(-60px); } }
    .hero::before {
      animation: mz-drift-slow linear both;
      animation-timeline: scroll(root);
      animation-range: 0 70vh;
    }
    .hero::after {
      animation: mz-drift-fast linear both;
      animation-timeline: scroll(root);
      animation-range: 0 70vh;
    }

    /* Le rail glisse pendant que la section traverse l'écran : le mouvement
       horizontal se voit sans avoir à y toucher, et le scroll vertical de la
       page n'est jamais détourné. */
    /* (La dérive au scroll du rail a disparu le 24/11 : le rail défile
       désormais tout seul en boucle — cf. mz-marquee.) */

    /* --- Acte 1 : le hero s'efface en montant quand on le quitte, pour
       passer la main à la scène du chaos sans coupure sèche. --- */
    @keyframes mz-stage-exit {
      from { opacity: 1; transform: translateY(0) scale(1); }
      to { opacity: 0; transform: translateY(-40px) scale(0.96); }
    }
    .stage .container {
      animation: mz-stage-exit linear both;
      animation-timeline: scroll(root);
      animation-range: 0 85vh;
    }
    .stage-hint {
      animation: mz-stage-exit linear both;
      animation-timeline: scroll(root);
      animation-range: 0 35vh;
    }

  }
}

/* ===== ENTRÉE DU HERO =====
   Seuls les éléments secondaires sont animés. Le titre et l'accroche sont
   rendus tout de suite : ce sont eux que mesure le LCP, et un texte qui
   démarre à `opacity: 0` est un texte absent pour qui arrive sur une
   connexion lente. `transform` et `opacity` seulement, donc composité. */
@keyframes mz-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-badge { animation: mz-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero .cta-group { animation: mz-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both; }

/* =========================================================
   ACTE 1 — LE HERO. Refait le 24/11 (3e passage Jordan) : téléphone à gauche
   (écran = plan final de la vidéo ident : dégradé rose-lavande-pêche, logo
   dans une lueur), texte à droite, badges stores officiels cliquables et
   ligne « Ouvrir Mazaly ». RTL : le grid s'inverse tout seul.
   ========================================================= */
.stage {
  min-height: 100dvh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: calc(var(--mz-header-height) + var(--mz-space-xl)) 0 var(--mz-space-xxl);
  position: relative; overflow: hidden;
  background: linear-gradient(170deg, var(--mz-bg) 0%, var(--mz-bg-alt) 100%);
}
/* Deux halos qui respirent lentement, pour que l'écran d'ouverture ne soit pas
   un aplat mort. */
.stage::before, .stage::after {
  content: ''; position: absolute; pointer-events: none; border-radius: 50%;
}
.stage::before {
  top: -22%; inset-inline-end: -10%; width: 680px; height: 680px;
  background: radial-gradient(circle, rgba(224, 68, 122, 0.20) 0%, transparent 68%);
}
.stage::after {
  bottom: -26%; inset-inline-start: -12%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201, 162, 75, 0.24) 0%, transparent 70%);
}
.stage .container { position: relative; z-index: 1; }
.stage-grid {
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.stage-copy { text-align: start; }
.stage-title {
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -0.5px;
  margin-bottom: var(--mz-space-lg);
  text-wrap: balance;
}
.stage-title span { color: var(--mz-primary); display: inline-block; }
.stage-lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 540px; margin: 0 0 var(--mz-space-xl);
  line-height: 1.75; text-wrap: pretty;
}

/* Badges stores officiels — noirs, comme sur le plan final de la vidéo. */
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; }
.badge-store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 58px; padding: 9px 24px 9px 17px;
  background: #15090F; color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  box-shadow: 0 10px 28px -14px rgba(120, 40, 70, 0.55);
  transition: transform 0.25s var(--mz-ease-out), box-shadow 0.25s var(--mz-ease-out);
}
.badge-store:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -14px rgba(120, 40, 70, 0.65);
}
.badge-store svg { width: 27px; height: 27px; flex-shrink: 0; }
.badge-store-text { display: flex; flex-direction: column; line-height: 1.15; }
.badge-store-text small { font-size: 0.68rem; opacity: 0.82; letter-spacing: 0.3px; }
.badge-store-text strong { font-size: 1.16rem; font-weight: 600; white-space: nowrap; }

/* Le groupe badges + lien : le lien « Ouvrir Mazaly » se centre exactement
   sur l'axe des deux badges (demande Jordan : « le milieu de cette phrase
   doit correspondre au milieu entre les deux boutons »). */
.stage-cta { display: inline-flex; flex-direction: column; align-items: center; }
/* La ligne « Ouvrir Mazaly » : soulignée en permanence, la flèche glisse. */
.stage-web {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: var(--mz-space-lg);
  color: var(--mz-primary) !important; font-weight: 600; font-size: 1.02rem;
  text-decoration: underline; text-underline-offset: 4px;
}
.stage-web svg { width: 18px; height: 18px; transition: transform 0.25s var(--mz-ease-out); }
.stage-web:hover svg { transform: translateX(3px); }
[dir="rtl"] .stage-web svg { transform: scaleX(-1); }
[dir="rtl"] .stage-web:hover svg { transform: scaleX(-1) translateX(-3px); }

/* Le téléphone : cadre plum sombre, écran au dégradé de la vidéo, logo posé
   dans une lueur champagne. Il flotte à peine — transform seulement. */
.stage-visual { display: flex; justify-content: center; }
.phone {
  width: min(290px, 68vw); aspect-ratio: 9 / 18.6;
  background: #241219; border-radius: 50px; padding: 11px;
  box-shadow:
    0 48px 90px -36px rgba(120, 40, 70, 0.5),
    0 14px 32px -16px rgba(42, 22, 32, 0.4);
  animation: mz-float 7s ease-in-out infinite;
}
.phone-screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 40px; overflow: hidden;
  background: linear-gradient(168deg, #F7D9E4 0%, #EEDDF1 26%, #FAEADF 64%, #F8E5D3 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px;
}
.phone-isle {
  position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 23px; border-radius: 999px;
  background: rgba(36, 18, 25, 0.92);
}
.phone-halo {
  position: absolute; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 252, 244, 0.95) 0%, rgba(247, 237, 217, 0.5) 42%, transparent 70%);
}
.phone-logo {
  position: relative; border-radius: 22.5%;
  box-shadow: 0 14px 34px -12px rgba(120, 40, 70, 0.45);
}
.phone-word {
  position: relative;
  font-family: 'Fraunces', Georgia, serif; font-weight: 600;
  font-size: 1.35rem; letter-spacing: 2.5px;
  color: var(--mz-champagne-dark, #A3803E);
}
[dir="rtl"] .phone-word { letter-spacing: 1px; }
@keyframes mz-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Invitation à faire défiler : sans elle, rien ne dit qu'un second acte suit. */
.stage-hint {
  position: absolute; bottom: var(--mz-space-lg); left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 0.72rem; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--mz-ink-muted); z-index: 1;
}
.stage-hint svg { width: 18px; height: 18px; }

/* Entrée en cascade : badges puis lien web puis hint. Titre et accroche sont
   rendus tout de suite (LCP) ; le téléphone monte en fondu. Le hint ne reçoit
   qu'un fondu : une translation écraserait son translateX(-50%). */
.store-badges { animation: mz-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both; }
.stage-web { animation: mz-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both; }
.phone { animation: mz-float 7s ease-in-out 1s infinite, mz-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes mz-fade { from { opacity: 0; } to { opacity: 1; } }
.stage-hint { animation: mz-fade 0.9s ease-out 0.55s both; }
@keyframes mz-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.stage-hint svg { animation: mz-bob 2.2s ease-in-out 1.5s infinite; }

/* En colonne : le message d'abord, le téléphone ensuite, plus petit. */
@media (max-width: 880px) {
  .stage { padding-bottom: calc(var(--mz-space-xxl) + 40px); }
  .stage-grid { grid-template-columns: 1fr; gap: 40px; }
  .stage-visual { order: 2; }
  .stage-copy { order: 1; text-align: center; }
  .stage-lead { margin-inline: auto; }
  .store-badges { justify-content: center; }
  .stage-web { margin-inline: auto; }
  .phone { width: min(230px, 62vw); }
}
@media (prefers-reduced-motion: reduce) {
  .store-badges, .stage-web, .stage-hint, .stage-hint svg, .phone { animation: none; }
}

/* =========================================================
   SCÈNE D'OUVERTURE — le chaos converge dans la lueur, le logo en sort.
   Pilotée par le script en bas de la page d'accueil (rAF, transform/opacity).
   Remplace l'ancien hero + l'acte du téléphone (demande Jordan, 24/11/2026).
   ========================================================= */
.mz-scene { height: 380svh; position: relative; }
.mz-scene .sc-stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  background: radial-gradient(1300px 800px at 60% -15%, var(--mz-bg-alt) 0%, var(--mz-bg) 52%, #FBEDE9 100%);
}
.sc-lead {
  position: absolute; inset: 0; z-index: 3; padding: calc(var(--mz-header-height) + 8px) 24px 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; will-change: transform, opacity;
}
.sc-title { font-size: clamp(2.3rem, 5.6vw, 4.25rem); max-width: 18ch; letter-spacing: -1px; text-wrap: balance; }
.sc-title em { font-style: italic; color: var(--mz-primary-dark); }
.sc-sub {
  max-width: 54ch; margin: 18px auto var(--mz-space-xl);
  font-size: clamp(0.98rem, 1.5vw, 1.15rem); color: var(--mz-ink-soft); line-height: 1.7; text-wrap: pretty;
}
.sc-lead .cta-group { align-items: center; }
.sc-cue {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: var(--mz-ink-muted); font-size: 0.72rem; letter-spacing: 1.6px; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 3;
}
.sc-cue::after { content: ''; width: 1px; height: 38px; background: linear-gradient(var(--mz-ink-muted), transparent); }
.sc-mid {
  position: absolute; top: calc(var(--mz-header-height) + 3svh); left: 0; right: 0; z-index: 3;
  text-align: center; padding: 0 24px; opacity: 0; will-change: opacity, transform;
  font-size: clamp(1.6rem, 3.8vw, 2.75rem);
}
.sc-mid em { font-style: italic; color: var(--mz-primary-dark); }

/* La lueur : deux couches radiales, jamais de filter animé. */
.sc-glow, .sc-glow2 {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  border-radius: 50%; pointer-events: none; opacity: 0; will-change: transform, opacity;
}
.sc-glow { width: 92vmin; height: 92vmin; z-index: 1;
  background: radial-gradient(closest-side, rgba(240,214,150,0.85), rgba(238,196,175,0.4) 46%, rgba(253,243,239,0) 72%); }
.sc-glow2 { width: 48vmin; height: 48vmin; z-index: 2;
  background: radial-gradient(closest-side, rgba(255,251,238,1), rgba(240,214,150,0.8) 40%, rgba(240,214,150,0) 70%); }

/* Les artefacts du chaos. */
.sc-fly { position: absolute; left: 50%; top: 50%; z-index: 2; will-change: transform, opacity; }
.sc-art { border-radius: 14px; font-size: 13px; line-height: 1.45;
  animation: sc-drift 7s ease-in-out infinite alternate; }
.sc-fly:nth-child(2n) .sc-art { animation-duration: 9s; animation-delay: -2s; }
.sc-fly:nth-child(3n) .sc-art { animation-duration: 8s; animation-delay: -4.5s; }
@keyframes sc-drift { from { transform: translate3d(0,0,0); } to { transform: translate3d(0,-10px,0); } }

/* Bulles WhatsApp fidèles. */
.sc-wab { position: relative; max-width: 235px; background: #fff;
  padding: 6px 9px 7px; box-shadow: 0 1px 0.5px rgba(11,20,26,0.13), var(--mz-shadow-sm);
  font-family: -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  font-size: 13.6px; line-height: 1.32; color: #111B21; border-radius: 0 7.5px 7.5px 7.5px; }
.sc-wab.sc-out { background: #D9FDD3; border-radius: 7.5px 0 7.5px 7.5px; }
.sc-wab::before { content: ''; position: absolute; top: 0; width: 8px; height: 13px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 13"><path fill="white" d="M8 0H0l8 9z"/></svg>') no-repeat; }
.sc-wab:not(.sc-out)::before { left: -8px; }
.sc-wab.sc-out::before { right: -8px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 13"><path fill="%23D9FDD3" d="M0 0h8l-8 9z"/></svg>') no-repeat; }
[dir="rtl"] .sc-wab:not(.sc-out) { border-radius: 7.5px 0 7.5px 7.5px; }
[dir="rtl"] .sc-wab:not(.sc-out)::before { left: auto; right: -8px; transform: scaleX(-1); }
[dir="rtl"] .sc-wab.sc-out { border-radius: 0 7.5px 7.5px 7.5px; }
[dir="rtl"] .sc-wab.sc-out::before { right: auto; left: -8px; transform: scaleX(-1); }
.sc-author { display: block; font-size: 12.6px; font-weight: 600; margin-bottom: 1px; }
.sc-a-pink { color: #E542A3; } .sc-a-blue { color: #1F7AEC; }
.sc-meta { float: inline-end; margin: 7px -4px -4px 8px; display: flex; align-items: center; gap: 3px;
  font-size: 10.8px; color: #667781; white-space: nowrap; }
[dir="rtl"] .sc-meta { margin: 7px 8px -4px -4px; }
.sc-ticks { display: inline-flex; }
.sc-ticks svg { width: 15px; height: 10px; stroke: #53BDEB; stroke-width: 1.7; fill: none;
  stroke-linecap: round; stroke-linejoin: round; }

/* Notification, rappel, appels — cartes système. */
.sc-notif, .sc-remind, .sc-calls {
  display: flex; gap: 10px; align-items: center; background: rgba(250,250,250,0.96);
  border-radius: 16px; padding: 10px 12px; box-shadow: var(--mz-shadow-md);
  font-family: -apple-system, 'Segoe UI', Roboto, sans-serif; }
.sc-notif { width: 272px; } .sc-remind { width: 250px; }
.sc-calls { width: 230px; background: #fff; border-radius: 14px; }
.sc-appic { width: 36px; height: 36px; border-radius: 8.5px; background: #25D366; flex: none;
  display: flex; align-items: center; justify-content: center; }
.sc-appic svg { width: 22px; height: 22px; fill: #fff; }
.sc-dot { width: 30px; height: 30px; border-radius: 8px; background: #FF9F0A; flex: none;
  display: flex; align-items: center; justify-content: center; }
.sc-dot svg { width: 18px; height: 18px; stroke: #fff; stroke-width: 2; fill: none; stroke-linecap: round; }
.sc-ph { width: 30px; height: 30px; border-radius: 50%; background: var(--mz-danger-soft); flex: none;
  display: flex; align-items: center; justify-content: center; }
.sc-ph svg { width: 16px; height: 16px; fill: var(--mz-danger); }
.sc-nt { font-size: 12.8px; font-weight: 600; color: #111; }
.sc-nb { font-size: 12.3px; color: #3c3c43; line-height: 1.25; }
.sc-red { color: var(--mz-danger); }
.sc-ago { margin-inline-start: auto; align-self: flex-start; font-size: 11px; color: #8e8e93; }

/* Tableur, papiers, calendrier. */
.sc-sheet { background: #fff; border: 1px solid #d7d7e0; border-radius: 6px; overflow: hidden;
  font-size: 11.5px; color: #444; box-shadow: var(--mz-shadow-md); }
.sc-row { display: flex; }
.sc-cell { padding: 5px 10px; border-inline-end: 1px solid #e4e4ec; border-bottom: 1px solid #e4e4ec;
  min-width: 70px; white-space: nowrap; }
.sc-hd { background: #eef0f6; font-weight: 600; color: #333; }
.sc-err { color: #c0392b; font-weight: 700; }
.sc-postit { background: #FFF3B0; border-radius: 3px; padding: 12px 14px; color: #6b5b1e;
  font-family: 'Fraunces', Georgia, serif; font-style: italic; font-size: 15px;
  box-shadow: var(--mz-shadow-sm); transform: rotate(-6deg); }
.sc-napkin { background: #fff; border: 1px dashed var(--mz-ink-muted); border-radius: 10px;
  padding: 10px 12px; color: var(--mz-ink-muted); font-size: 12px; box-shadow: var(--mz-shadow-sm); }
.sc-napkin s { color: #c0392b; }
.sc-check { background: repeating-linear-gradient(#FFFEF9, #FFFEF9 22px, #F0E9DC 23px);
  border-radius: 4px; padding: 10px 14px 8px; font-family: 'Fraunces', Georgia, serif;
  font-size: 14px; color: #4a3b2c; box-shadow: var(--mz-shadow-sm); transform: rotate(3deg); }
.sc-check div { display: flex; gap: 7px; align-items: center; line-height: 23px; }
.sc-bx { width: 11px; height: 11px; border: 1.4px solid #8a7a64; border-radius: 2px;
  display: inline-block; position: relative; }
.sc-bx.sc-ok::after { content: '✓'; position: absolute; top: -7px; left: 0; color: var(--mz-success); font-size: 14px; }
.sc-urge { color: #c0392b; }
.sc-budget { background: #fff; border-radius: 8px; padding: 10px 14px;
  font-family: 'Fraunces', Georgia, serif; font-size: 14.5px; color: #4a3b2c;
  box-shadow: var(--mz-shadow-md); transform: rotate(-3deg); }
.sc-budget s { color: #c0392b; } .sc-budget b { color: #c0392b; font-style: italic; }
.sc-cal { width: 92px; background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: var(--mz-shadow-md); text-align: center; transform: rotate(5deg);
  font-family: -apple-system, 'Segoe UI', Roboto, sans-serif; }
.sc-mo { background: #E33B2E; color: #fff; font-size: 11px; letter-spacing: 2px; padding: 3px 0; font-weight: 600; }
.sc-day { font-size: 30px; font-weight: 700; color: #111; padding: 4px 0 0; }
.sc-j { font-family: 'Fraunces', Georgia, serif; font-style: italic; color: #c0392b;
  font-size: 13px; padding-bottom: 6px; }

/* Le logo qui émerge, son wordmark, la légende. */
.sc-reveal { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 4;
  display: flex; flex-direction: column; align-items: center; text-align: center; pointer-events: none; }
.sc-icon { width: clamp(128px, 19vmin, 180px); height: auto; border-radius: 22.5%; opacity: 0;
  box-shadow: 0 26px 60px rgba(120,40,70,0.35), 0 4px 14px rgba(120,40,70,0.18);
  will-change: transform, opacity, filter; }
.sc-brand { opacity: 0; margin-top: 16px; will-change: opacity, transform; }
.sc-name { font-family: 'Fraunces', Georgia, serif; font-size: 2rem; font-weight: 600;
  color: var(--mz-ink-strong); letter-spacing: 0.5px; }
[dir="rtl"] .sc-name { font-family: 'Frank Ruhl Libre', 'Fraunces', serif; }
.sc-tag { font-size: 0.9rem; color: var(--mz-ink-soft); max-width: 34ch; padding: 0 24px; margin-top: 6px; }
.sc-endcap { position: absolute; bottom: 7svh; left: 0; right: 0; z-index: 3; text-align: center;
  font-size: 0.94rem; color: var(--mz-ink-soft); padding: 0 24px; opacity: 0; transform: translateY(14px);
  transition: opacity 0.45s var(--mz-ease-out), transform 0.45s var(--mz-ease-out); }
.sc-endcap.sc-on { opacity: 1; transform: none; }

@media (max-width: 760px) { .sc-lg { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .sc-art { animation: none; }
  .mz-scene { height: auto; }
  .mz-scene .sc-stage { position: relative; height: auto; min-height: 88svh;
    padding: calc(var(--mz-header-height) + 6svh) 0 8svh; }
  .sc-fly, .sc-glow, .sc-glow2, .sc-cue, .sc-mid { display: none; }
  .sc-lead { position: static; padding-top: 0; margin-bottom: 5svh; }
  .sc-reveal { position: static; transform: none; margin: 0 auto; }
  .sc-icon { opacity: 1; }
  .sc-brand { opacity: 1; }
  .sc-endcap { position: static; opacity: 1; transform: none; margin-top: 4svh; }
}
