/* ========================================================
   BRAISÉS INOUBLIABLES — ANIMATIONS & EFFETS PREMIUM
   ======================================================== */

/* ─────────────────────────────────────────────────────────
   1. KEYFRAMES GLOBAUX
   ───────────────────────────────────────────────────────── */

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes slideInBlur {
  from { opacity: 0; transform: translateY(24px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(226, 88, 34, 0); }
  50%       { box-shadow: 0 0 22px 8px rgba(226, 88, 34, 0.2); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

@keyframes flame-flicker {
  0%, 100% { transform: scaleY(1)    rotate(-1deg);  opacity: 1; }
  25%       { transform: scaleY(1.06) rotate(1deg);   opacity: 0.88; }
  50%       { transform: scaleY(0.96) rotate(-2deg);  opacity: 1; }
  75%       { transform: scaleY(1.08) rotate(1.5deg); opacity: 0.92; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes ripple {
  0%   { transform: scale(0); opacity: 0.5; }
  100% { transform: scale(2.5); opacity: 0; }
}

@keyframes bounceIn {
  0%   { opacity: 0; transform: scale(0.6); }
  55%  { opacity: 1; transform: scale(1.08); }
  80%  { transform: scale(0.96); }
  100% { transform: scale(1); }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14%       { transform: scale(1.12); }
  28%       { transform: scale(1); }
  42%       { transform: scale(1.1); }
  70%       { transform: scale(1); }
}

@keyframes gradientShift {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

@keyframes shinePass {
  0%   { transform: skewX(-20deg) translateX(-120%); }
  100% { transform: skewX(-20deg) translateX(250%); }
}

/* ─────────────────────────────────────────────────────────
   2. SCROLL-REVEAL — Système sécurisé
   Les éléments sont CACHÉS uniquement si body.has-animations
   est présent (ajouté par JS). Sans JS → tout visible.
   ───────────────────────────────────────────────────────── */

/* ── Éléments simples (fadeInUp) ── */
body.has-animations .reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

body.has-animations .reveal.from-left {
  transform: translateX(-44px);
}

body.has-animations .reveal.from-right {
  transform: translateX(44px);
}

/* ── État visible ── */
body.has-animations .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── Grilles en cascade ── */
body.has-animations .reveal-cascade > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

body.has-animations .reveal-cascade.is-visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.06s; }
body.has-animations .reveal-cascade.is-visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.16s; }
body.has-animations .reveal-cascade.is-visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.26s; }
body.has-animations .reveal-cascade.is-visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.36s; }
body.has-animations .reveal-cascade.is-visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.46s; }
body.has-animations .reveal-cascade.is-visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.56s; }
body.has-animations .reveal-cascade.is-visible > *:nth-child(7) { opacity: 1; transform: none; transition-delay: 0.64s; }
body.has-animations .reveal-cascade.is-visible > *:nth-child(8) { opacity: 1; transform: none; transition-delay: 0.72s; }

/* ─────────────────────────────────────────────────────────
   3. NAVBAR
   ───────────────────────────────────────────────────────── */

.navbar {
  animation: fadeInDown 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.logo-img {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.06) rotate(-1deg);
  filter: drop-shadow(0 4px 14px rgba(226, 88, 34, 0.35));
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(226, 88, 34, 0.07);
  transform: scaleX(0);
  transform-origin: left;
  border-radius: 6px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::before { transform: scaleX(1); }

/* ─────────────────────────────────────────────────────────
   4. HERO SECTION
   ───────────────────────────────────────────────────────── */

/* Animations d'entrée */
.hero-tag      { animation: slideInBlur 0.7s 0.05s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-title    { animation: fadeInUp 0.9s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-subtitle { animation: fadeInUp 0.9s 0.32s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-cta-group  { animation: fadeInUp 0.9s 0.48s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-highlights { animation: fadeInUp 0.8s 0.62s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* ── FLOTTEMENT CONTINU après l'entrée ── */
/* Chaque élément float avec amplitude et vitesse différentes
   pour un effet organique et non-synchronisé */

.hero-tag {
  animation:
    slideInBlur 0.7s 0.05s cubic-bezier(0.16, 1, 0.3, 1) both,
    heroFloat1   4.2s  1.0s  ease-in-out infinite;
}

.hero-title {
  animation:
    fadeInUp 0.9s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both,
    heroFloat2   5.5s  1.2s  ease-in-out infinite;
}

.hero-subtitle {
  animation:
    fadeInUp 0.9s 0.32s cubic-bezier(0.16, 1, 0.3, 1) both,
    heroFloat1   6.0s  1.4s  ease-in-out infinite;
}

.hero-cta-group {
  animation:
    fadeInUp 0.9s 0.48s cubic-bezier(0.16, 1, 0.3, 1) both,
    heroFloat3   4.8s  1.6s  ease-in-out infinite;
}

.hero-highlights {
  animation:
    fadeInUp 0.8s 0.62s cubic-bezier(0.16, 1, 0.3, 1) both,
    heroFloat2   5.2s  1.8s  ease-in-out infinite;
}

/* Flottement doux du tag hero (petite amplitude) */
@keyframes heroFloat1 {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-7px); }
}

/* Flottement moyen du titre (amplitude moyenne, léger swing) */
@keyframes heroFloat2 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  30%       { transform: translateY(-5px) rotate(-0.15deg); }
  70%       { transform: translateY(-9px) rotate(0.15deg); }
}

/* Flottement doux des CTAs (amplitude petite, horizontal subtil) */
@keyframes heroFloat3 {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  40%       { transform: translateY(-6px) translateX(1px); }
  80%       { transform: translateY(-4px) translateX(-1px); }
}

.hero-title .highlight {
  background-image: linear-gradient(90deg, #ff8a4c 0%, #fbbf24 40%, #ff6b35 60%, #fbbf24 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 3.5s linear infinite;
  display: inline-block; /* requis pour transform du parent */
}

.highlight-item {
  animation: heroFloat1 4.5s ease-in-out infinite;
  display: flex;
}

.highlight-item:nth-child(1) { animation-delay: 0.2s; }
.highlight-item:nth-child(2) { animation-delay: 0.8s; }
.highlight-item:nth-child(3) { animation-delay: 1.4s; }

.highlight-item i {
  display: inline-block;
  animation: flame-flicker 3s ease-in-out infinite;
}
.highlight-item:nth-child(2) i { animation-delay: 0.4s; }
.highlight-item:nth-child(3) i { animation-delay: 0.8s; }

/* Lueur braise animée en bas du hero */
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 140px;
  background: linear-gradient(to top, rgba(226, 88, 34, 0.12) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
  animation: heroGlowPulse 4s ease-in-out infinite;
}

@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 1; }
}

/* ─────────────────────────────────────────────────────────
   5. BOUTONS — RIPPLE & GLOW
   ───────────────────────────────────────────────────────── */

.btn,
.btn-primary-sm,
.btn-secondary-sm,
.btn-whatsapp-submit,
.drawer-cta-primary {
  position: relative;
  overflow: hidden;
}

.btn::after,
.btn-primary-sm::after,
.btn-secondary-sm::after,
.btn-whatsapp-submit::after {
  content: '';
  position: absolute;
  width: 70px; height: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
  top: 50%; left: 50%;
  margin: -35px 0 0 -35px;
}

.btn:active::after,
.btn-primary-sm:active::after,
.btn-secondary-sm:active::after,
.btn-whatsapp-submit:active::after {
  animation: ripple 0.5s ease-out forwards;
}

.btn-primary { animation: glowPulse 3s ease-in-out infinite; }
.btn-whatsapp-submit { animation: glowPulse 2.5s ease-in-out infinite; }

.btn-primary:hover,
.btn-whatsapp-submit:hover {
  animation: none;
  transform: translateY(-3px) scale(1.03);
}

/* ─────────────────────────────────────────────────────────
   6. SECTION BADGE
   ───────────────────────────────────────────────────────── */

.section-badge {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.section-badge:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 4px 14px rgba(226, 88, 34, 0.22);
}

/* ─────────────────────────────────────────────────────────
   7. SERVICE CARDS
   ───────────────────────────────────────────────────────── */

.service-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
}

.service-card::before {
  content: '';
  position: absolute;
  top: -60%; left: -60%;
  width: 60%; height: 200%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.14) 50%, transparent 60%);
  transform: skewX(-20deg) translateX(-100%);
  pointer-events: none;
}

.service-card:hover::before {
  animation: shinePass 0.65s ease forwards;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.service-icon-box {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.35s ease,
              color 0.35s ease,
              box-shadow 0.35s ease;
}

.service-card:hover .service-icon-box {
  transform: scale(1.18) rotate(-6deg);
  background: var(--ember-primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(226, 88, 34, 0.3);
}

.service-features li {
  transition: transform 0.2s ease;
}

.service-features li:hover {
  transform: translateX(6px);
}

/* ─────────────────────────────────────────────────────────
   8. CATEGORY CADRES
   ───────────────────────────────────────────────────────── */

.category-cadre {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.category-cadre:hover { animation: float 2.2s ease-in-out infinite; }
.category-cadre.active { animation: glowPulse 2s ease-in-out infinite; }

.cadre-img {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-cadre:hover .cadre-img {
  transform: scale(1.12) rotate(4deg);
}

/* ─────────────────────────────────────────────────────────
   9. DISH CARDS
   ───────────────────────────────────────────────────────── */

.dish-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
}

.dish-card::after {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.09) 50%, transparent 70%);
  transform: skewX(-15deg);
  pointer-events: none;
}

.dish-card:hover::after {
  animation: shinePass 0.6s ease forwards;
}

.dish-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.11);
  border-color: rgba(226, 88, 34, 0.3);
}

.dish-image {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.dish-card:hover .dish-image {
  transform: scale(1.1);
}

.dish-badge {
  animation: heartbeat 4s ease-in-out infinite;
}

.btn-add-cart {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.btn-add-cart:hover {
  transform: scale(1.07);
  box-shadow: 0 4px 14px rgba(226, 88, 34, 0.22);
}

.btn-order-direct {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-order-direct:hover { transform: scale(1.05); }

.dish-qty-btn {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dish-qty-btn:hover  { transform: scale(1.2); }
.dish-qty-btn:active { transform: scale(0.9); }

/* Entrée des cartes en liste mobile */
.dishes-grid.list-view .dish-card {
  animation: fadeInLeft 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.dishes-grid.list-view .dish-card:nth-child(1) { animation-delay: 0.04s; }
.dishes-grid.list-view .dish-card:nth-child(2) { animation-delay: 0.10s; }
.dishes-grid.list-view .dish-card:nth-child(3) { animation-delay: 0.16s; }
.dishes-grid.list-view .dish-card:nth-child(4) { animation-delay: 0.22s; }
.dishes-grid.list-view .dish-card:nth-child(5) { animation-delay: 0.28s; }
.dishes-grid.list-view .dish-card:nth-child(6) { animation-delay: 0.34s; }
.dishes-grid.list-view .dish-card:nth-child(7) { animation-delay: 0.40s; }
.dishes-grid.list-view .dish-card:nth-child(8) { animation-delay: 0.46s; }

/* Grille desktop en cascade */
.dishes-grid:not(.list-view) .dish-card {
  animation: scaleIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.dishes-grid:not(.list-view) .dish-card:nth-child(1) { animation-delay: 0.04s; }
.dishes-grid:not(.list-view) .dish-card:nth-child(2) { animation-delay: 0.12s; }
.dishes-grid:not(.list-view) .dish-card:nth-child(3) { animation-delay: 0.20s; }
.dishes-grid:not(.list-view) .dish-card:nth-child(4) { animation-delay: 0.28s; }
.dishes-grid:not(.list-view) .dish-card:nth-child(5) { animation-delay: 0.36s; }
.dishes-grid:not(.list-view) .dish-card:nth-child(6) { animation-delay: 0.44s; }

/* ─────────────────────────────────────────────────────────
   10. ORDER BANNER CARD
   ───────────────────────────────────────────────────────── */

.order-banner-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.order-banner-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(226, 88, 34, 0.2) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.order-banner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45), 0 0 25px rgba(226, 88, 34, 0.25);
  border-color: rgba(226, 88, 34, 0.5);
}

.order-banner-card:hover::before { opacity: 1; }

/* ─────────────────────────────────────────────────────────
   11. HORAIRES
   ───────────────────────────────────────────────────────── */

.schedule-row {
  border-radius: 8px;
  transition: background 0.25s ease,
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              padding-left 0.25s ease;
}

.schedule-row:hover {
  background: rgba(226, 88, 34, 0.05);
  padding-left: 8px;
  transform: translateX(4px);
}

.open-badge { animation: heartbeat 3.5s ease-in-out infinite; }

.horaires-current-status {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.horaires-current-status:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.current-icon { animation: float 3.5s ease-in-out infinite; }

.tip-item {
  border-radius: var(--radius-sm);
  padding: 4px 6px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

.tip-item:hover {
  transform: translateX(5px);
  background: rgba(226, 88, 34, 0.05);
}

.tip-item i { transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.tip-item:hover i { transform: scale(1.2) rotate(-10deg); }

/* ─────────────────────────────────────────────────────────
   12. LOCALISATION — INFO BLOCKS & MAP
   ───────────────────────────────────────────────────────── */

.info-block {
  border-radius: var(--radius-md);
  padding: 2px 6px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

.info-block:hover {
  transform: translateX(6px);
  background: rgba(226, 88, 34, 0.04);
}

.icon-circle {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.35s ease,
              color 0.35s ease,
              box-shadow 0.35s ease;
}

.info-block:hover .icon-circle {
  transform: scale(1.15) rotate(-8deg);
  background: var(--ember-primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(226, 88, 34, 0.28);
}

.location-map-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.location-map-card:hover {
  transform: translateY(-6px) scale(1.005);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.map-badge-overlay {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.map-badge-overlay:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* ─────────────────────────────────────────────────────────
   13. CONTACT CARDS & SOCIAL
   ───────────────────────────────────────────────────────── */

.contact-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: -60%; left: -60%;
  width: 60%; height: 200%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
  transform: skewX(-20deg) translateX(-100%);
  pointer-events: none;
}

.contact-card:hover::before { animation: shinePass 0.65s ease forwards; }

.contact-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.09);
}

.contact-card-icon {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.contact-card:hover .contact-card-icon {
  transform: scale(1.2) rotate(-6deg);
  box-shadow: 0 8px 22px rgba(226, 88, 34, 0.3);
}

.contact-card.whatsapp-highlight .contact-card-icon {
  animation: heartbeat 3s ease-in-out infinite;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(226, 88, 34, 0.1);
  color: var(--ember-primary);
  font-size: 1.1rem;
  margin: 0 4px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s ease,
              color 0.3s ease,
              box-shadow 0.3s ease;
}

.social-links a:hover {
  transform: scale(1.22) rotate(-8deg);
  background: var(--ember-primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(226, 88, 34, 0.32);
}

/* ─────────────────────────────────────────────────────────
   14. FOOTER
   ───────────────────────────────────────────────────────── */

.footer-links a {
  position: relative;
  transition: color 0.25s ease;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--ember-primary);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-links a:hover::after { width: 100%; }

.footer-logo-img {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}

.footer-logo-img:hover {
  transform: scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 4px 12px rgba(226, 88, 34, 0.3));
}

.hellcat-badge {
  background-image: linear-gradient(90deg, var(--ember-primary) 0%, #fbbf24 50%, var(--ember-primary) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 2.5s linear infinite;
}

/* ─────────────────────────────────────────────────────────
   15. MODAL
   ───────────────────────────────────────────────────────── */

.modal-backdrop[aria-hidden="false"] .modal-dialog {
  animation: bounceIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.modal-close-btn {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.25s ease,
              color 0.25s ease;
}

.modal-close-btn:hover {
  transform: rotate(90deg) scale(1.15);
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.service-radio input:checked + .radio-card {
  animation: glowPulse 2.5s ease-in-out infinite;
}

.radio-card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              box-shadow 0.25s ease;
}

.service-radio:hover .radio-card {
  transform: translateY(-3px) scale(1.02);
}

.form-input,
.form-select,
.form-textarea {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  transform: scale(1.005);
}

.cart-item-row {
  animation: fadeInLeft 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: background 0.2s ease;
}

.cart-item-row:hover { background: rgba(226, 88, 34, 0.03); }

/* ─────────────────────────────────────────────────────────
   16. FLOATING CART BUTTON
   ───────────────────────────────────────────────────────── */

.floating-cart-badge {
  animation: float 3s ease-in-out infinite;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.floating-cart-badge:hover {
  animation: none;
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 14px 36px rgba(226, 88, 34, 0.45);
}

/* ─────────────────────────────────────────────────────────
   17. TOAST NOTIFICATION
   ───────────────────────────────────────────────────────── */

.toast-notification.active {
  animation: bounceIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ─────────────────────────────────────────────────────────
   18. MOBILE DRAWER
   ───────────────────────────────────────────────────────── */

.drawer-link {
  transition: background 0.22s ease,
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.22s ease;
}

.drawer-link:hover { transform: translateX(5px); }

.drawer-link-icon {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

.drawer-link:hover .drawer-link-icon {
  transform: scale(1.15) rotate(-5deg);
  background: rgba(226, 88, 34, 0.2);
}

.drawer-cta-primary {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  animation: glowPulse 3s ease-in-out infinite;
}

.drawer-cta-primary:hover {
  animation: none;
  transform: scale(1.04);
  box-shadow: 0 10px 28px rgba(226, 88, 34, 0.35);
}

/* ─────────────────────────────────────────────────────────
   19. TOPBAR PILLS
   ───────────────────────────────────────────────────────── */

.service-pill { transition: transform 0.2s ease; }
.service-pill:hover { transform: scale(1.06); }
.service-pill i { transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.service-pill:hover i { transform: scale(1.25) rotate(-5deg); }

/* ─────────────────────────────────────────────────────────
   20. PWA BANNER
   ───────────────────────────────────────────────────────── */

.pwa-install-icon { animation: float 3s ease-in-out infinite; }

/* ─────────────────────────────────────────────────────────
   21. SCROLLBAR STYLISÉE
   ───────────────────────────────────────────────────────── */

::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--ember-primary), #b91c1c);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff8a4c, var(--ember-primary));
}

/* ─────────────────────────────────────────────────────────
   22. TEXTE SÉLECTIONNÉ
   ───────────────────────────────────────────────────────── */

::selection {
  background: rgba(226, 88, 34, 0.22);
  color: var(--text-main);
}

/* ─────────────────────────────────────────────────────────
   23. FOCUS VISIBLE
   ───────────────────────────────────────────────────────── */

:focus-visible {
  outline: 2px solid var(--ember-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─────────────────────────────────────────────────────────
   24. PREFERS-REDUCED-MOTION — Accessibilité
   ───────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─────────────────────────────────────────────────────────
   25. MOBILE — SÉCURITÉ VISIBILITÉ
   Sur mobile, les éléments .reveal qui n'ont pas encore reçu
   .is-visible sont rendus visibles après 800ms via CSS
   pour éviter tout "page blanche" si JS est lent.
   ───────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  /* Réduit l'amplitude du float sur mobile pour fluidité */
  @keyframes heroFloat1 {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-4px); }
  }

  @keyframes heroFloat2 {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-5px); }
  }

  @keyframes heroFloat3 {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-3px); }
  }

  /* Sécurité : affiche tout après animation d'entrée
     si IntersectionObserver n'a pas déclenché */
  .reveal,
  .reveal-cascade {
    animation: revealFallback 0s 0.8s forwards;
  }

  /* Empêche les décalages horizontaux sur mobile causés par les animations translate */
  body.has-animations .reveal.from-left,
  body.has-animations .reveal.from-right {
    transform: translateY(24px) !important;
  }

  .reveal.is-visible,
  .reveal-cascade.is-visible {
    animation: none;
    opacity: 1;
    transform: none !important;
  }
}
