/* ============================================================
   PREMIUM.CSS — ISJIEE NEXT (VERSION FINALE V51.0)
   Vision Bleue Étoilée : Mécanisme, Programme, Parcours, Galerie, Légal, Workspace
   ============================================================ */

/* ═══════════════════════════════════════════════════════════ */
/* SECTION 1 — VARIABLES & SYSTÈME D'ACCENTS PAR PAGE         */
/* ═══════════════════════════════════════════════════════════ */
:root {
  --bleu-isjiee: #0A2D7A;
  --bleu-royal: #1E40AF;
  --bleu-ciel: #3B82F6;
  --bleu-nuit: #061638;
  --bleu-profond: #030D27;
  --or-prestige: #D4A037;
  --or-lumineux: #F2CB60;
  --blanc-elegance: #FFFFFF;
  --creme-elegance: #F8F1E1;

  --border-gold: rgba(212, 160, 55, 0.55);
  --text-muted: #B8C5DF;

  --page-accent: var(--bleu-ciel);
  --page-accent-2: var(--or-prestige);
}

[data-page="mecanisme"] { --page-accent: var(--bleu-ciel); --page-accent-2: var(--or-prestige); }
[data-page="parcours"]  { --page-accent: var(--bleu-ciel); --page-accent-2: var(--or-prestige); }
[data-page="programme"] { --page-accent: var(--or-prestige); --page-accent-2: var(--creme-elegance); }
[data-page="galerie"]   { --page-accent: #8B5CF6; --page-accent-2: var(--or-prestige); }
[data-page="faq"]       { --page-accent: var(--bleu-ciel); --page-accent-2: var(--or-prestige); }
[data-page="contact"]   { --page-accent: var(--or-prestige); --page-accent-2: var(--creme-elegance); }

/* 🛡️ ACCESSIBILITÉ : Focus visible global pour les éléments interactifs */
a:focus-visible, button:focus-visible, .hub-card:focus-visible, .lvl-item:focus-visible {
  outline: 2px solid var(--or-lumineux);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════ */
/* SECTION 2 — BREADCRUMB (Fil d'Ariane)                      */
/* ═══════════════════════════════════════════════════════════ */
.breadcrumb {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; font-size: 12px; color: var(--text-muted);
  margin-bottom: 28px; text-transform: uppercase; letter-spacing: 0.15em; flex-wrap: wrap;
}
.breadcrumb a { color: var(--creme-elegance); text-decoration: none; transition: color 0.2s; opacity: 0.7; }
.breadcrumb a:hover { color: var(--page-accent); opacity: 1; }
.breadcrumb span { color: var(--page-accent); font-weight: 700; }

/* ═══════════════════════════════════════════════════════════ */
/* SECTION 3 — LE MÉCANISME (Image Interactive & Effet Laser) */
/* ═══════════════════════════════════════════════════════════ */
.img-map-container {
  position: relative; display: block; border-radius: 24px; overflow: hidden; isolation: isolate;
  border: 2px solid var(--or-prestige); box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  max-width: 100%; margin: 0 auto; line-height: 0;
}
.img-map-container img { width: 100%; display: block; height: auto; }

.img-map-container a {
  position: absolute; z-index: 10; display: block; border-radius: 9px; overflow: hidden;
  background: rgba(212, 160, 55, 0.05); box-shadow: inset 0 0 0 1px rgba(212, 160, 55, 0.4);
  transition: all 0.3s ease; -webkit-tap-highlight-color: transparent;
}

.img-map-container a::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.6) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: mxSheen 4s ease-in-out infinite;
}

.img-map-container a::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 15px rgba(59, 130, 246, 0.6);
  opacity: 0;
  animation: mxGlow 2.8s ease-in-out infinite alternate;
}

.img-map-container a:nth-of-type(2)::before { animation-delay: 0.3s; }
.img-map-container a:nth-of-type(3)::before { animation-delay: 0.6s; }
.img-map-container a:nth-of-type(4)::before { animation-delay: 0.9s; }
.img-map-container a:nth-of-type(5)::before { animation-delay: 1.2s; }
.img-map-container a:nth-of-type(6)::before { animation-delay: 1.5s; }

.img-map-container a:hover, .img-map-container a:focus-visible {
  outline: none;
  background: rgba(59, 130, 246, 0.2);
  box-shadow: inset 0 0 0 2px var(--bleu-ciel), inset 0 0 20px rgba(59, 130, 246, 0.6);
}
.img-map-container a:hover::after { animation: none; opacity: 0; }

@keyframes mxSheen { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes mxGlow { to { opacity: 1; } }

/* Contenu textuel du Mécanisme (Style Marbre & Glassmorphism) */
.meca-content-wrapper { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(40px, 8vw, 80px); width: 100%; }
.meca-section {
  background: radial-gradient(circle at 0% 0%, rgba(212, 160, 55, 0.08) 0%, transparent 50%), 
              linear-gradient(145deg, rgba(10, 45, 122, 0.7) 0%, rgba(3, 13, 39, 0.85) 100%);
  border: 1px solid var(--border-gold); border-radius: 20px;
  padding: clamp(32px, 6vw, 56px); position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  scroll-margin-top: 120px; transition: all 0.3s ease; overflow: hidden;
  width: 100%; backdrop-filter: blur(10px);
}
.meca-section:hover { border-color: var(--or-lumineux); box-shadow: 0 0 30px rgba(212, 160, 55, 0.15), 0 25px 45px rgba(0,0,0,0.6); }
.meca-section::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--bleu-ciel), var(--or-prestige)); border-radius: 20px 20px 0 0; box-shadow: 0 0 15px var(--or-prestige); }
.meca-num { font-family: 'Fraunces', serif; font-size: clamp(60px, 10vw, 100px); font-weight: 700; color: transparent; -webkit-text-stroke: 1px rgba(212, 160, 55, 0.3); position: absolute; top: 15px; right: 30px; line-height: 1; text-shadow: 0 0 20px rgba(212, 160, 55, 0.2); pointer-events: none; }
.meca-section h2 { font-family: 'Fraunces', serif; font-size: clamp(24px, 4vw, 42px); color: var(--blanc-elegance); margin-bottom: 8px; padding-right: 40px; }
.meca-subtitle { font-size: clamp(16px, 2vw, 20px); color: var(--bleu-ciel); font-style: italic; margin-bottom: 32px; display: block; }
.meca-section p { color: var(--creme-elegance); font-size: 16px; line-height: 1.8; margin-bottom: 20px; opacity: 0.9; }
.meca-section h3 { font-size: 18px; color: var(--or-prestige); margin: 32px 0 16px; font-family: 'Inter', sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; }
.meca-section ul { list-style: none; padding: 0; margin: 0 0 32px 0; display: flex; flex-direction: column; gap: 12px; }
.meca-section ul li { position: relative; padding-left: 24px; color: var(--creme-elegance); font-size: 15px; line-height: 1.6; opacity: 0.9; }
.meca-section ul li::before { content: ">"; position: absolute; left: 0; color: var(--bleu-ciel); font-weight: bold; font-family: monospace; }
.meca-challenge { background: rgba(59, 130, 246, 0.08); border: 1px solid rgba(59, 130, 246, 0.3); border-left: 4px solid var(--bleu-ciel); border-radius: 8px; padding: 24px; margin: 32px 0; }
.meca-challenge h4 { color: var(--bleu-ciel); font-family: 'Inter', sans-serif; font-size: 16px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.1em; }
.meca-result { margin-top: 16px; padding-top: 16px; border-top: 1px dashed rgba(59, 130, 246, 0.3); color: var(--blanc-elegance); }
.meca-section .btn { margin-top: 16px; width: 100%; text-align: center; background: transparent; color: var(--or-prestige); border: 1px solid var(--or-prestige); text-transform: uppercase; letter-spacing: 0.1em; font-size: 14px; transition: all 0.3s ease; }
.meca-section .btn:hover, .meca-section .btn:focus-visible { background: var(--or-prestige); color: var(--bleu-isjiee); transform: translateY(-2px); }
@media (min-width: 768px) { .meca-section .btn { width: auto; padding: 14px 32px; } }

/* ═══════════════════════════════════════════════════════════ */
/* SECTION 4 — LA GALERIE (Avec fond sphère)                  */
/* ═══════════════════════════════════════════════════════════ */
[data-page="galerie"] { position: relative; }
[data-page="galerie"]::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background-image: url('https://pub-0d796bc9105c4947a32ae579f60119ac.r2.dev/brand/sphere-bg.jpg');
  background-size: cover; background-position: center; background-attachment: fixed;
  opacity: 0.15; pointer-events: none;
}

.gallery-page-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(20px, 3vw, 32px); width: 100%; }
.gallery-item { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; position: relative; background: radial-gradient(circle at 0% 0%, rgba(212, 160, 55, 0.1) 0%, transparent 50%), linear-gradient(145deg, rgba(10, 45, 122, 0.7) 0%, rgba(3, 13, 39, 0.85) 100%); border: 1px solid var(--border-gold); backdrop-filter: blur(10px); transition: all 0.3s ease; }
.gallery-item:hover { border-color: var(--or-lumineux); transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.4); }
.gallery-item-img { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bleu-nuit); /* 🛡️ FIX : Couleur de fond si l'image ne charge pas */ }
.gallery-item-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; /* 🛡️ FIX : Zoom plus discret */ }
.gallery-item:hover .gallery-item-img img { transform: scale(1.05); }
.gallery-item-copy { padding: clamp(20px, 3vw, 28px); }
.gallery-item-copy h3 { font-size: 20px; color: var(--blanc-elegance); margin-bottom: 10px; font-family: 'Fraunces', serif; }
.gallery-item-copy p { font-size: 15px; color: var(--creme-elegance); line-height: 1.6; margin: 0; opacity: 0.9; }

.soon-card { display: flex; flex-direction: column; overflow: hidden; background: radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.15) 0%, transparent 50%), linear-gradient(145deg, rgba(10, 45, 122, 0.7) 0%, rgba(3, 13, 39, 0.85) 100%); border: 1px solid var(--border-gold); border-radius: 24px; backdrop-filter: blur(10px); transition: border-color 0.3s, box-shadow 0.3s; }
.soon-card:hover { border-color: var(--or-lumineux); box-shadow: 0 12px 32px rgba(0,0,0,0.5); }
.soon-thumb { position: relative; aspect-ratio: 16/9; display: grid; place-items: center; background: radial-gradient(circle at 25% 20%, rgba(59, 130, 246, 0.15), transparent 55%), radial-gradient(circle at 80% 90%, rgba(212, 160, 55, 0.15), transparent 50%), linear-gradient(135deg, #05143A, #0A2D7A); }
.soon-icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; padding-left: 4px; font-size: 20px; color: var(--or-prestige); border: 2px solid var(--or-prestige); background: rgba(255, 255, 255, 0.06); }
.soon-badge { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--or-prestige); border: 1px solid var(--border-gold); background: rgba(3, 13, 39, 0.85); }
.soon-copy { padding: 20px 24px 26px; }
.soon-tag { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bleu-ciel); }
.soon-copy h3 { font-size: clamp(19px, 1vw + 14px, 22px); line-height: 1.3; margin: 8px 0 10px; color: var(--blanc-elegance); }
.soon-copy p { font-size: 16px; line-height: 1.6; color: var(--creme-elegance); opacity: 0.9; }

/* ═══════════════════════════════════════════════════════════ */
/* SECTION 5 — LE PARCOURS (Rail des 11 Niveaux)              */
/* ═══════════════════════════════════════════════════════════ */
.levels-screen { padding: clamp(24px, 4vw, 48px) clamp(18px, 4vw, 48px); background: radial-gradient(circle at 50% 0%, rgba(212, 160, 55, 0.1) 0%, transparent 60%), linear-gradient(180deg, rgba(10, 45, 122, 0.85), rgba(3, 13, 39, 0.95)); border: 2px solid var(--border-gold); border-radius: 28px; box-shadow: 0 24px 60px rgba(0,0,0,0.6); overflow: hidden; width: 100%; }
.ls-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.ls-label { font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--or-prestige); font-weight: 800; }
.ls-counter { font-family: 'Fraunces', serif; font-size: 18px; color: var(--text-muted); font-weight: 600; }
.ls-counter strong { color: var(--bleu-ciel); }
.levels-rail { position: relative; overflow-x: auto; scrollbar-width: none; padding: 20px 4px 24px; scroll-snap-type: x proximity; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; /* 🛡️ FIX : Défilement fluide sur mobile */ }
.levels-rail::-webkit-scrollbar { display: none; }
.levels-rail-line { position: absolute; top: 44px; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3) 8%, var(--bleu-ciel) 25%, var(--or-prestige) 50%, var(--bleu-royal) 75%, transparent); }
.levels-rail-items { display: flex; gap: 18px; position: relative; padding-top: 38px; width: max-content; }
.lvl-item { flex: 0 0 auto; position: relative; display: flex; flex-direction: column; align-items: center; background: transparent; border: 0; cursor: pointer; scroll-snap-align: center; -webkit-tap-highlight-color: transparent; }
.lvl-item::before { content: ""; position: absolute; top: -28px; left: 50%; transform: translateX(-50%); width: 16px; height: 16px; border-radius: 50%; z-index: 2; background: var(--bleu-ciel); transition: all 0.2s; }
.lvl-item[data-code="N0"]::before { background: #4B5563; }
.lvl-item[data-code="N2"]::before { background: #15803D; }
.lvl-item[data-code="N3"]::before { background: #3B82F6; }
.lvl-item[data-code="N4"]::before { background: #2563EB; }
.lvl-item[data-code="N5"]::before { background: var(--or-prestige); }
.lvl-item[data-code="N6"]::before { background: #D4A017; }
.lvl-item[data-code="N7"]::before { background: #8B5CF6; }
.lvl-item[data-code="N8"]::before { background: #7C3AED; }
.lvl-item[data-code="N9"]::before { background: #1F2937; }
.lvl-item[data-code="N10"]::before { background: var(--bleu-royal); }
.lvl-item.is-current::before { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.2); }
.lvl-pill { display: flex; flex-direction: column; align-items: center; padding: 20px 22px; min-width: 130px; border-radius: 16px; background: rgba(10, 45, 122, 0.6); border: 2px solid var(--border-gold); box-shadow: 0 4px 12px rgba(0,0,0,0.3); backdrop-filter: blur(5px); transition: all 0.3s; }
.lvl-item:hover .lvl-pill, .lvl-item.is-current .lvl-pill { border-color: var(--or-lumineux); background: rgba(212, 160, 55, 0.15); transform: translateY(-2px); }
.lvl-num { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 800; color: var(--bleu-ciel); margin-bottom: 6px; position: relative; }
.lvl-name { font-size: 14px; font-weight: 700; color: var(--creme-elegance); white-space: nowrap; }

/* ═══════════════════════════════════════════════════════════ */
/* SECTION 6 — LE PROGRAMME (Timeline)                        */
/* ═══════════════════════════════════════════════════════════ */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; margin-top: 40px; width: 100%; }
.timeline-step { position: relative; padding: 32px 24px; background: radial-gradient(circle at 100% 0%, rgba(212, 160, 55, 0.1) 0%, transparent 50%), linear-gradient(160deg, rgba(10, 45, 122, 0.7), rgba(3, 13, 39, 0.85)); border: 1px solid var(--border-gold); border-radius: 24px; transition: all 0.3s ease; overflow: hidden; backdrop-filter: blur(10px); }
.timeline-step:hover { border-color: var(--or-lumineux); box-shadow: 0 12px 32px rgba(0,0,0,0.4); transform: translateY(-5px); }
.timeline-step::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--bleu-ciel), var(--or-prestige)); opacity: 0.8; }
.timeline-year { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 800; color: var(--or-prestige); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.timeline-year span { background: rgba(212, 160, 55, 0.1); padding: 4px 12px; border-radius: 999px; font-size: 14px; color: var(--or-prestige); }
.timeline-step h4 { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.timeline-step strong { font-family: 'Fraunces', serif; font-size: 24px; display: block; margin-bottom: 12px; color: var(--blanc-elegance); }
.timeline-step p { font-size: 15px; color: var(--creme-elegance); line-height: 1.6; margin-bottom: 16px; opacity: 0.9; }
.theory-practice { display: flex; gap: 12px; margin-top: auto; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; }
.tp-item { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.tp-item span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.tp-item.theory span { color: var(--bleu-ciel); }
.tp-item.practice span { color: var(--or-prestige); }
.tp-item b { font-size: 14px; color: var(--blanc-elegance); }

/* ═══════════════════════════════════════════════════════════ */
/* SECTION 7 — PAGES LÉGALES (CGU, Confidentialité)           */
/* ═══════════════════════════════════════════════════════════ */
.legal-content { background: linear-gradient(145deg, rgba(10, 45, 122, 0.7) 0%, rgba(3, 13, 39, 0.85) 100%); border: 1px solid var(--border-gold); border-radius: 24px; padding: clamp(24px, 5vw, 48px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); color: var(--creme-elegance); font-size: 16px; line-height: 1.8; width: 100%; backdrop-filter: blur(10px); }
.legal-content h2 { color: var(--blanc-elegance); font-family: 'Fraunces', serif; font-size: clamp(20px, 2.5vw, 26px); margin-top: 40px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(212, 160, 55, 0.2); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin-bottom: 16px; opacity: 0.9; }
.legal-content ul { margin-bottom: 20px; padding-left: 20px; }
.legal-content ul li { margin-bottom: 8px; opacity: 0.9; }
.legal-content a { color: var(--bleu-ciel); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; /* 🛡️ FIX : Coupe uniquement les longues URL */ }
.legal-content a:hover { color: var(--or-prestige); }
.legal-alert { background: rgba(212, 160, 55, 0.05); border-left: 4px solid var(--or-prestige); border-radius: 0 12px 12px 0; padding: 20px; margin: 24px 0; }
.legal-alert strong { color: var(--or-prestige); display: block; margin-bottom: 8px; font-size: 16px; }

/* ═══════════════════════════════════════════════════════════ */
/* SECTION 8 — ESPACE DE TRAVAIL (AGENDA & WIDGETS)           */
/* ═══════════════════════════════════════════════════════════ */
.workspace-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 60px; margin-top: 20px; }
@media (min-width: 768px) { .workspace-grid { grid-template-columns: 1.2fr 0.8fr; } }

.widget-card {
  background: radial-gradient(circle at 0% 0%, rgba(212, 160, 55, 0.15) 0%, transparent 50%), linear-gradient(145deg, rgba(10, 45, 122, 0.7) 0%, rgba(3, 13, 39, 0.85) 100%);
  border: 1px solid var(--border-gold); border-radius: 24px; padding: clamp(24px, 3vw, 32px);
  backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.widget-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; border-bottom: 1px solid rgba(212, 160, 55, 0.2); padding-bottom: 16px; }
.widget-icon { font-size: 24px; }
.widget-header h3 { font-family: 'Fraunces', serif; font-size: 20px; color: var(--blanc-elegance); margin: 0; }

.agenda-date { font-family: 'Fraunces', serif; font-size: 24px; color: var(--or-prestige); margin-bottom: 24px; font-weight: 700; }
.agenda-event { display: flex; gap: 16px; margin-bottom: 20px; }
.event-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--bleu-ciel); margin-top: 6px; flex-shrink: 0; box-shadow: 0 0 10px rgba(59, 130, 246, 0.6); }
.event-dot.secondary { background: var(--or-prestige); box-shadow: 0 0 10px rgba(212, 160, 55, 0.6); }
.agenda-event strong { display: block; color: var(--blanc-elegance); font-size: 16px; margin-bottom: 4px; }
.agenda-event p { color: var(--creme-elegance); font-size: 14px; margin: 0; opacity: 0.9; }

.widget-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(212, 160, 55, 0.2); border-radius: 12px; transition: all 0.3s ease; text-align: center; color: var(--blanc-elegance); font-size: 14px; font-weight: 600; min-height: 80px; /* 🛡️ FIX : Zone tactile agrandie */ }
.quick-link span { font-size: 24px; }
.quick-link:hover { background: rgba(212, 160, 55, 0.1); border-color: var(--or-prestige); transform: translateY(-2px); }

.chapitres-header { text-align: center; margin-bottom: 30px; }
.chapitres-header h2 { font-family: 'Fraunces', serif; font-size: clamp(24px, 3vw, 32px); color: var(--blanc-elegance); margin-bottom: 8px; }
.chapitres-header p { color: var(--creme-elegance); font-size: 16px; }

/* ═══════════════════════════════════════════════════════════ */
/* SECTION 9 — RESPONSIVE ET ACCESSIBILITÉ                    */
/* ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* 🛡️ FIX : Désactive le fond fixe sur mobile pour la galerie (Performance) */
  [data-page="galerie"]::before {
    background-attachment: scroll;
  }
}

@media (max-width: 640px) {
  .meca-section { padding: 24px 20px; }
  .meca-num { font-size: 60px; }
  .meca-section h2 { font-size: 22px; padding-right: 0; }
}

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