/* ============================================================
   DM 403 Web TV – CSS Mobile-First (Android & iOS optimisé)
   ============================================================ */

/* ---- @font-face : Montserrat & Open Sans (local, no CDN) ---- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/montserrat-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/montserrat-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/static/fonts/montserrat-latin-800-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/static/fonts/montserrat-latin-900-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/open-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/open-sans-latin-600-normal.woff2') format('woff2');
}

/* ---- Variables CSS ---- */
:root {
  --color-lions-gold:       #F5A800;
  --color-lions-gold-dark:  #d48f00;
  --color-lions-blue:       #003DA5;
  --color-lions-blue-dark:  #002980;
  --color-lions-blue-light: #1a56c4;
  --font-montserrat: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --font-opensans:   'Open Sans',  'Segoe UI', Arial, sans-serif;
}

/* ---- Classes utilitaires manquantes (Tailwind v4 ne les génère pas) ---- */

/* Font weights */
.font-600 { font-weight: 600; }
.font-700 { font-weight: 700; }
.font-800 { font-weight: 800; }
.font-900 { font-weight: 900; }

/* Font families */
.font-montserrat { font-family: var(--font-montserrat); }
.font-opensans   { font-family: var(--font-opensans); }

/* Breakpoint xs (< 480px) */
@media (min-width: 480px) {
  .xs\:block       { display: block; }
  .xs\:flex        { display: flex; }
  .xs\:flex-row    { flex-direction: row; }
  .xs\:px-0        { padding-left: 0; padding-right: 0; }
  .xs\:hidden      { display: none; }
}

/* Couleurs lions-* manquantes */
.text-lions-gold       { color: var(--color-lions-gold); }
.text-lions-gold-dark  { color: var(--color-lions-gold-dark); }
.text-lions-blue       { color: var(--color-lions-blue); }
.text-lions-blue-dark  { color: var(--color-lions-blue-dark); }
.text-lions-blue-light { color: var(--color-lions-blue-light); }

.bg-lions-gold         { background-color: var(--color-lions-gold); }
.bg-lions-blue         { background-color: var(--color-lions-blue); }
.bg-lions-blue-dark    { background-color: var(--color-lions-blue-dark); }

/* Variantes avec opacité */
.bg-lions-blue-dark\/95 { background-color: rgba(0, 41, 128, 0.95); }
.bg-lions-blue-dark\/98 { background-color: rgba(0, 41, 128, 0.98); }
.bg-lions-blue\/25      { background-color: rgba(0, 61, 165, 0.25); }
.bg-lions-blue\/30      { background-color: rgba(0, 61, 165, 0.30); }
.bg-lions-gold\/12      { background-color: rgba(245, 168, 0, 0.12); }
.bg-lions-gold\/15      { background-color: rgba(245, 168, 0, 0.15); }

.border-lions-gold      { border-color: var(--color-lions-gold); }
.shadow-lions-blue      { --tw-shadow-color: var(--color-lions-blue); }

/* no-scrollbar */
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* custom-scroll */
.custom-scroll { scrollbar-width: thin; scrollbar-color: rgba(245,168,0,0.3) transparent; }
.custom-scroll::-webkit-scrollbar { width: 4px; }
.custom-scroll::-webkit-scrollbar-track { background: transparent; }
.custom-scroll::-webkit-scrollbar-thumb { background: rgba(245,168,0,0.3); border-radius: 4px; }

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* iOS momentum scrolling */
  -webkit-overflow-scrolling: touch;
  /* Prevent font size inflation on rotation (iOS) */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Open Sans', sans-serif;
  background: #030712;
  /* iOS overscroll */
  overscroll-behavior: none;
  /* Prevent callout on long-press (iOS) */
  -webkit-touch-callout: none;
}

/* Images non-sélectionnables (évite le menu contextuel iOS) */
img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }

/* ---- Fluid Typography (clamp mobile→desktop) ---- */
.hero-title    { font-size: clamp(2rem,   8vw, 4.5rem); }
.hero-subtitle { font-size: clamp(1rem,   3.5vw, 1.5rem); }
.hero-body     { font-size: clamp(0.875rem, 2.5vw, 1.125rem); }
.section-title { font-size: clamp(1.5rem, 5vw, 2.5rem); }

/* ============================================================
   UTILITAIRES CSS (remplace Tailwind – 0 CDN externe)
   ============================================================ */

/* --- Layout --- */
.relative   { position: relative; }
.absolute   { position: absolute; }
.fixed      { position: fixed; }
.inset-0    { inset: 0; }
.z-2        { z-index: 2; }
.z-10       { z-index: 10; }
.z-50       { z-index: 50; }

.flex           { display: flex; }
.inline-flex    { display: inline-flex; }
.grid           { display: grid; }
.hidden         { display: none; }
.block          { display: block; }
.inline-block   { display: inline-block; }
.inline         { display: inline; }

.flex-col        { flex-direction: column; }
.flex-wrap       { flex-wrap: wrap; }
.flex-1          { flex: 1 1 0%; }
.flex-shrink-0   { flex-shrink: 0; }
.items-center    { align-items: center; }
.items-start     { align-items: flex-start; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.truncate        { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.min-w-0         { min-width: 0; }
.w-full    { width: 100%; }
.w-auto    { width: auto; }
.w-px      { width: 1px; }
.w-2       { width: 0.5rem; }
.w-5       { width: 1.25rem; }
.w-6       { width: 1.5rem; }
.w-10      { width: 2.5rem; }
.w-11      { width: 2.75rem; }
.w-12      { width: 3rem; }
.w-16      { width: 4rem; }
.h-1\.5    { height: 0.375rem; }
.h-2       { height: 0.5rem; }
.h-8       { height: 2rem; }
.h-10      { height: 2.5rem; }
.h-11      { height: 2.75rem; }
.h-12      { height: 3rem; }
.h-16      { height: 4rem; }
.min-h-screen { min-height: 100vh; }
.max-w-sm  { max-width: 24rem; }
.max-w-xl  { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-7xl { max-width: 80rem; }

.mx-auto   { margin-left: auto; margin-right: auto; }
.mt-0\.5   { margin-top: 0.125rem; }
.mt-1      { margin-top: 0.25rem; }
.mt-1\.5   { margin-top: 0.375rem; }
.mt-3      { margin-top: 0.75rem; }
.mt-4      { margin-top: 1rem; }
.mt-5      { margin-top: 1.25rem; }
.mt-10     { margin-top: 2.5rem; }
.mr-1      { margin-right: 0.25rem; }
.mr-2      { margin-right: 0.5rem; }
.mr-3      { margin-right: 0.75rem; }
.mb-0\.5   { margin-bottom: 0.125rem; }
.mb-1      { margin-bottom: 0.25rem; }
.mb-2      { margin-bottom: 0.5rem; }
.mb-3      { margin-bottom: 0.75rem; }
.mb-4      { margin-bottom: 1rem; }
.mb-5      { margin-bottom: 1.25rem; }
.mb-6      { margin-bottom: 1.5rem; }
.mb-7      { margin-bottom: 1.75rem; }
.mb-8      { margin-bottom: 2rem; }
.mb-10     { margin-bottom: 2.5rem; }
.mb-12     { margin-bottom: 3rem; }
.ml-2      { margin-left: 0.5rem; }

.p-1   { padding: 0.25rem; }
.p-4   { padding: 1rem; }
.p-6   { padding: 1.5rem; }
.px-2  { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3  { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4  { padding-left: 1rem; padding-right: 1rem; }
.px-5  { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6  { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2    { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3    { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-5    { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6    { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8    { padding-top: 2rem; padding-bottom: 2rem; }
.py-14   { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.pt-3    { padding-top: 0.75rem; }
.pt-5    { padding-top: 1.25rem; }
.pt-20   { padding-top: 5rem; }
.pb-2    { padding-bottom: 0.5rem; }

.gap-0\.5 { gap: 0.125rem; }
.gap-2    { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3    { gap: 0.75rem; }
.gap-4    { gap: 1rem; }
.gap-5    { gap: 1.25rem; }
.gap-6    { gap: 1.5rem; }
.gap-8    { gap: 2rem; }
.space-y-0\.5 > * + * { margin-top: 0.125rem; }
.space-y-2    > * + * { margin-top: 0.5rem; }

/* --- Grid --- */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* --- Position helpers --- */
.top-0      { top: 0; }
.top-1\/4   { top: 25%; }
.top-2\/3   { top: 66.667%; }
.right-0    { right: 0; }
.right-1\/4 { right: 25%; }
.bottom-0   { bottom: 0; }
.bottom-1\/3 { bottom: 33.333%; }
.bottom-6   { bottom: 1.5rem; }
.left-0     { left: 0; }
.left-1\/2  { left: 50%; }
.left-1\/3  { left: 33.333%; }
.left-1\/4  { left: 25%; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.transform  { }

/* --- Text --- */
.text-left    { text-align: left; }
.text-center  { text-align: center; }
.text-xs      { font-size: 0.75rem;  line-height: 1rem; }
.text-sm      { font-size: 0.875rem; line-height: 1.25rem; }
.text-base    { font-size: 1rem;     line-height: 1.5rem; }
.text-lg      { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl      { font-size: 1.25rem;  line-height: 1.75rem; }
.text-2xl     { font-size: 1.5rem;   line-height: 2rem; }
.text-3xl     { font-size: 1.875rem; line-height: 2.25rem; }
.text-5xl     { font-size: 3rem;     line-height: 1; }
.leading-tight   { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.tracking-wide   { letter-spacing: 0.025em; }
.tracking-widest { letter-spacing: 0.1em; }
.uppercase    { text-transform: uppercase; }

/* --- Colors --- */
.text-white        { color: #ffffff; }
.text-gray-200     { color: #e5e7eb; }
.text-gray-300     { color: #d1d5db; }
.text-gray-400     { color: #9ca3af; }
.text-gray-500     { color: #6b7280; }
.text-gray-600     { color: #4b5563; }
.text-blue-300     { color: #93c5fd; }
.text-blue-400     { color: #60a5fa; }
.text-red-300      { color: #fca5a5; }
.text-red-400      { color: #f87171; }
.text-red-500      { color: #ef4444; }
.text-green-400    { color: #4ade80; }
.text-pink-400     { color: #f472b6; }
.text-purple-400   { color: #c084fc; }
.text-lions-gold       { color: #F5A800; }
.text-lions-blue-light { color: #1a56c4; }

/* --- Backgrounds --- */
.bg-gray-700    { background-color: #374151; }
.bg-gray-800    { background-color: #1f2937; }
.bg-gray-900    { background-color: #111827; }
.bg-gray-950    { background-color: #030712; }
.bg-white       { background-color: #ffffff; }
.bg-red-500     { background-color: #ef4444; }
.bg-red-600     { background-color: #dc2626; }
.bg-blue-600    { background-color: #2563eb; }
.bg-green-400   { background-color: #4ade80; }
.bg-green-600   { background-color: #16a34a; }
.bg-lions-gold          { background-color: #F5A800; }
.bg-lions-blue          { background-color: #003DA5; }
.bg-lions-blue-dark     { background-color: #002980; }
.bg-gray-900\/60        { background-color: rgba(17,24,39,0.6); }
.bg-red-900\/30         { background-color: rgba(127,29,29,0.3); }
.bg-blue-900\/20        { background-color: rgba(30,58,138,0.2); }
.bg-blue-900\/30        { background-color: rgba(30,58,138,0.3); }
.bg-green-900\/30       { background-color: rgba(20,83,45,0.3); }
.bg-purple-900\/30      { background-color: rgba(88,28,135,0.3); }
.bg-yellow-900\/30      { background-color: rgba(113,63,18,0.3); }
.bg-lions-blue-dark\/95 { background-color: rgba(0,41,128,0.95); }
.bg-lions-blue-dark\/98 { background-color: rgba(0,41,128,0.98); }
.bg-lions-blue\/25      { background-color: rgba(0,61,165,0.25); }
.bg-lions-blue\/30      { background-color: rgba(0,61,165,0.30); }
.bg-lions-gold\/12      { background-color: rgba(245,168,0,0.12); }
.bg-lions-gold\/15      { background-color: rgba(245,168,0,0.15); }

/* Gradients */
.bg-gradient-to-b  { background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.bg-gradient-to-r  { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-gray-900     { --tw-gradient-from: #111827; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.from-red-900\/30  { --tw-gradient-from: rgba(127,29,29,0.3); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.from-red-900\/40  { --tw-gradient-from: rgba(127,29,29,0.4); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.from-blue-900\/40 { --tw-gradient-from: rgba(30,58,138,0.4); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.from-transparent  { --tw-gradient-from: transparent; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.via-gray-950\/10  { --tw-gradient-stops: var(--tw-gradient-from), rgba(3,7,18,0.1), var(--tw-gradient-to, transparent); }
.to-gray-950       { --tw-gradient-to: #030712; }
.to-red-800\/10    { --tw-gradient-to: rgba(153,27,27,0.1); }
.to-red-800\/20    { --tw-gradient-to: rgba(153,27,27,0.2); }
.to-blue-800\/20   { --tw-gradient-to: rgba(30,64,175,0.2); }
.to-pink-900\/20   { --tw-gradient-to: rgba(131,24,67,0.2); }

/* --- Borders --- */
.border      { border-width: 1px; border-style: solid; }
.border-2    { border-width: 2px; border-style: solid; }
.border-t    { border-top-width: 1px; border-top-style: solid; }
.border-b    { border-bottom-width: 1px; border-bottom-style: solid; }
.border-gray-600   { border-color: #4b5563; }
.border-gray-700   { border-color: #374151; }
.border-gray-800   { border-color: #1f2937; }
.border-white\/10  { border-color: rgba(255,255,255,0.1); }
.border-blue-800\/40  { border-color: rgba(30,64,175,0.4); }
.border-pink-800\/40  { border-color: rgba(157,23,77,0.4); }
.border-red-500\/30   { border-color: rgba(239,68,68,0.3); }
.border-red-800\/30   { border-color: rgba(153,27,27,0.3); }
.border-red-800\/40   { border-color: rgba(153,27,27,0.4); }

/* --- Rounded --- */
.rounded-full { border-radius: 9999px; }
.rounded-xl   { border-radius: 0.75rem; }
.rounded-2xl  { border-radius: 1rem; }

/* --- Shadows & Blur --- */
.shadow-2xl     { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.blur-2xl       { filter: blur(40px); }
.blur-3xl       { filter: blur(64px); }
.opacity-15     { opacity: 0.15; }
.opacity-40     { opacity: 0.40; }
.opacity-50     { opacity: 0.50; }
.backdrop-blur-md  { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.backdrop-blur-lg  { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

/* --- Pointer --- */
.pointer-events-none { pointer-events: none; }
.cursor-pointer      { cursor: pointer; }

/* --- Transition / Animation --- */
.transition-colors  { transition: color 0.15s, background-color 0.15s, border-color 0.15s; }
.transition-all     { transition: all 0.15s; }
.duration-200       { transition-duration: 0.2s; }
.duration-300       { transition-duration: 0.3s; }
.animate-pulse      { animation: pulse 2s cubic-bezier(0.4,0,0.6,1) infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }
.will-change-auto   { will-change: auto; }

/* --- Responsive – sm (640px) --- */
@media (min-width: 640px) {
  .sm\:block        { display: block; }
  .sm\:flex         { display: flex; }
  .sm\:flex-row     { flex-direction: row; }
  .sm\:hidden       { display: none; }
  .sm\:col-span-2   { grid-column: span 2 / span 2; }
  .sm\:grid-cols-2  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3  { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:grid-cols-4  { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sm\:px-6         { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:py-20        { padding-top: 5rem; padding-bottom: 5rem; }
  .sm\:gap-4        { gap: 1rem; }
  .sm\:gap-5        { gap: 1.25rem; }
  .sm\:gap-6        { gap: 1.5rem; }
  .sm\:gap-8        { gap: 2rem; }
  .sm\:mb-3         { margin-bottom: 0.75rem; }
  .sm\:mb-4         { margin-bottom: 1rem; }
  .sm\:mb-8         { margin-bottom: 2rem; }
  .sm\:mb-10        { margin-bottom: 2.5rem; }
  .sm\:mb-12        { margin-bottom: 3rem; }
  .sm\:mb-14        { margin-bottom: 3.5rem; }
  .sm\:mb-16        { margin-bottom: 4rem; }
  .sm\:mt-6         { margin-top: 1.5rem; }
  .sm\:mt-12        { margin-top: 3rem; }
  .sm\:p-5          { padding: 1.25rem; }
  .sm\:p-10         { padding: 2.5rem; }
  .sm\:px-4         { padding-left: 1rem; padding-right: 1rem; }
  .sm\:py-3         { padding-top: 0.75rem; padding-bottom: 0.75rem; }
  .sm\:pt-24        { padding-top: 6rem; }
  .sm\:pb-8         { padding-bottom: 2rem; }
  .sm\:py-10        { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .sm\:text-sm      { font-size: 0.875rem; line-height: 1.25rem; }
  .sm\:text-base    { font-size: 1rem; line-height: 1.5rem; }
  .sm\:text-lg      { font-size: 1.125rem; line-height: 1.75rem; }
  .sm\:text-xl      { font-size: 1.25rem; line-height: 1.75rem; }
  .sm\:text-2xl     { font-size: 1.5rem; line-height: 2rem; }
  .sm\:w-auto       { width: auto; }
  .sm\:w-12         { width: 3rem; }
  .sm\:h-12         { height: 3rem; }
  .sm\:h-20         { height: 5rem; }
  .sm\:max-w-xl     { max-width: 36rem; }
  .sm\:bottom-8     { bottom: 2rem; }
  .sm\:gap-4        { gap: 1rem; }
  .sm\:col-span-2   { grid-column: span 2 / span 2; }
  .sm\:w-44         { width: 11rem; }
  .sm\:h-44         { height: 11rem; }
  .sm\:w-52         { width: 13rem; }
  .sm\:h-52         { height: 13rem; }
}

/* --- Responsive – md (768px) --- */
@media (min-width: 768px) {
  .md\:h-20     { height: 5rem; }
  .md\:h-14     { height: 3.5rem; }
  .md\:w-52     { width: 13rem; }
  .md\:h-52     { height: 13rem; }
  .md\:w-60     { width: 15rem; }
  .md\:h-60     { height: 15rem; }
  .md\:pt-28    { padding-top: 7rem; }
}

/* --- Responsive – lg (1024px) --- */
@media (min-width: 1024px) {
  .lg\:hidden       { display: none; }
  .lg\:flex         { display: flex; }
  .lg\:grid-cols-3  { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4  { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:col-span-1   { grid-column: span 1 / span 1; }
  .lg\:gap-8        { gap: 2rem; }
  .lg\:flex-row     { flex-direction: row; }
  .lg\:px-8         { padding-left: 2rem; padding-right: 2rem; }
}

/* --- Responsive – xl (1280px) --- */
@media (min-width: 1280px) {
  .xl\:col-span-2   { grid-column: span 2 / span 2; }
  .xl\:grid-cols-3  { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .xl\:grid-cols-4  { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .xl\:max-h-\[480px\] { max-height: 480px; }
  .xl\:hidden       { display: none; }
}

/* --- Responsive – xs (480px) --- */
@media (min-width: 480px) {
  .xs\:block        { display: block; }
  .xs\:flex-row     { flex-direction: row; }
  .xs\:px-0         { padding-left: 0; padding-right: 0; }
}

/* active: states */
.active\:bg-red-700:active     { background-color: #b91c1c; }
.active\:bg-blue-700:active    { background-color: #1d4ed8; }
.active\:bg-gray-800:active    { background-color: #1f2937; }
.active\:bg-red-900\/50:active { background-color: rgba(127,29,29,0.5); }
.active\:bg-blue-900\/50:active{ background-color: rgba(30,58,138,0.5); }
.active\:bg-white\/10:active   { background-color: rgba(255,255,255,0.1); }
.active\:text-lions-gold:active{ color: #F5A800; }
.active\:scale-95:active       { transform: scale(0.95); }
.active\:border-lions-gold\/50:active { border-color: rgba(245,168,0,0.5); }

/* hover: states (desktop only) */
@media (hover: hover) {
  .hover\:scale-105:hover   { transform: scale(1.05); }
  .hover\:opacity-100:hover { opacity: 1; }
}

/* ---- Text Gradient ---- */
.text-gradient {
  background: linear-gradient(135deg, #F5A800 0%, #FFD700 50%, #F5A800 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Safe-area insets (iOS notch / Dynamic Island) ---- */
.navbar-safe-top       { padding-top: env(safe-area-inset-top); }
.footer-safe-bottom    { padding-bottom: max(env(safe-area-inset-bottom), 0.5rem); }
.mobile-menu-safe-bottom { padding-bottom: max(env(safe-area-inset-bottom), 0.5rem); }

/* ---- Bottom Nav Safe Area ---- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 49;
  display: flex;
  background: rgba(0, 41, 128, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(245, 168, 0, 0.18);
  /* Safe area bottom (home indicator iPhone) */
  padding-bottom: max(env(safe-area-inset-bottom), 4px);
  padding-left:  env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 4px 8px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  /* 48px minimum tap height (WCAG) */
  min-height: 56px;
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav-item i { font-size: 18px; line-height: 1; }
.bottom-nav-item.active { color: #F5A800; }
.bottom-nav-item:active { color: #F5A800; background: rgba(245,168,0,0.08); }

/* ---- Body bottom padding for bottom nav (mobile only) ---- */
@media (max-width: 1023px) {
  body { padding-bottom: calc(56px + max(env(safe-area-inset-bottom), 4px)); }
}

/* ---- Tap Target (WCAG 2.5.5 : 48×48 min) ---- */
.tap-target {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
/* Supprimer le flash bleu Android */
a, button { -webkit-tap-highlight-color: transparent; }

/* ---- Hero Background ---- */
.hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 61, 165, 0.55) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(245, 168, 0, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 60%, rgba(0, 41, 128, 0.3) 0%, transparent 60%),
    linear-gradient(180deg, #030712 0%, #050d1e 40%, #030712 100%);
}

/* ============================================================
   ANIMATIONS HERO – Web TV DM 403
   ============================================================ */

/* Float logo */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-12px) rotate(0.5deg); }
  66%       { transform: translateY(-6px) rotate(-0.5deg); }
}

/* Pulsation lente */
@keyframes pulse-slow {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 0.9; }
}

/* Skeleton loading */
@keyframes skeleton-loading {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Orbe lumineux tournant */
@keyframes orb-rotate {
  0%   { transform: rotate(0deg) translateX(160px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(160px) rotate(-360deg); }
}
@keyframes orb-rotate-reverse {
  0%   { transform: rotate(0deg) translateX(220px) rotate(0deg); }
  100% { transform: rotate(-360deg) translateX(220px) rotate(360deg); }
}

/* Scanlines effet TV */
@keyframes scanlines {
  0%   { background-position: 0 0; }
  100% { background-position: 0 100px; }
}

/* Apparition depuis le bas */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Apparition depuis le haut */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Zoom doux */
@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.75); }
  to   { opacity: 1; transform: scale(1); }
}

/* Halo logo pulsant */
@keyframes haloGlow {
  0%, 100% {
    box-shadow:
      0 0 0 3px rgba(245,168,0,0.7),
      0 0 30px rgba(245,168,0,0.3),
      0 0 70px rgba(0,61,165,0.25);
  }
  50% {
    box-shadow:
      0 0 0 5px rgba(245,168,0,0.9),
      0 0 60px rgba(245,168,0,0.55),
      0 0 120px rgba(0,61,165,0.4),
      0 0 180px rgba(245,168,0,0.2);
  }
}

/* Typing cursor */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Particule étoile */
@keyframes particle-float {
  0%   { transform: translateY(0)   translateX(0)   scale(1);   opacity: 0.8; }
  50%  { transform: translateY(-60px) translateX(20px) scale(1.2); opacity: 1; }
  100% { transform: translateY(-120px) translateX(-10px) scale(0.5); opacity: 0; }
}

/* Shimmer doré sur le titre */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

/* Badge entrant */
@keyframes badgePop {
  0%   { opacity: 0; transform: scale(0.6) translateY(10px); }
  70%  { transform: scale(1.08) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Counter roll-up */
@keyframes countUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Ligne scintillante */
@keyframes lineGlow {
  0%, 100% { width: 40px; opacity: 0.5; }
  50%       { width: 100px; opacity: 1; }
}

/* Rotation lente du halo de fond */
@keyframes bgRotate {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ---- Classes utilitaires ---- */
.animate-float       { animation: float 5s ease-in-out infinite; }
.animate-pulse-slow  { animation: pulse-slow 4s ease-in-out infinite; }
.animate-halo-glow   { animation: haloGlow 3s ease-in-out infinite; }
.animate-fadeInUp    { animation: fadeInUp 0.8s ease both; }
.animate-fadeInDown  { animation: fadeInDown 0.7s ease both; }
.animate-zoomIn      { animation: zoomIn 0.9s cubic-bezier(.34,1.56,.64,1) both; }

/* ---- Hero : canvas particules ---- */
#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ---- Orbes lumineux ---- */
.hero-orb-wrap {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 1;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
}
.hero-orb-1 {
  width: 14px; height: 14px;
  background: rgba(245,168,0,0.9);
  animation: orb-rotate 12s linear infinite;
  box-shadow: 0 0 20px 6px rgba(245,168,0,0.5);
}
.hero-orb-2 {
  width: 8px; height: 8px;
  background: rgba(100,160,255,0.85);
  animation: orb-rotate-reverse 18s linear infinite;
  box-shadow: 0 0 14px 4px rgba(100,160,255,0.4);
}
.hero-orb-3 {
  width: 10px; height: 10px;
  background: rgba(245,168,0,0.7);
  animation: orb-rotate 22s linear infinite reverse;
  animation-delay: -6s;
  box-shadow: 0 0 16px 5px rgba(245,168,0,0.35);
}

/* ---- Scanlines overlay ---- */
.hero-scanlines {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 2;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.06) 3px,
    rgba(0,0,0,0.06) 4px
  );
  animation: scanlines 8s linear infinite;
  opacity: 0.4;
}

/* ---- Grille futuriste ---- */
.hero-grid {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 1;
  background-image:
    linear-gradient(rgba(0,61,165,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,61,165,0.07) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 80%);
}

/* ---- Ligne dorée décorative sous le titre ---- */
.hero-title-line {
  display: block;
  height: 3px;
  background: linear-gradient(90deg, transparent, #F5A800, #FFD700, #F5A800, transparent);
  border-radius: 2px;
  margin: 0.6rem auto 0;
  animation: lineGlow 2.5s ease-in-out infinite;
}

/* ---- Typing effect ---- */
.typing-text {
  display: inline-block;
  border-right: 2px solid #F5A800;
  animation: blink 0.75s step-end infinite;
  padding-right: 2px;
}
.typing-done { border-right: none; animation: none; }

/* ---- Logo hero animé ---- */
.logo-hero {
  background: #ffffff !important;
  border-radius: 22px !important;  /* carré à coins arrondis – JAMAIS circulaire */
  object-fit: contain;
  padding: 8px;
  display: block;
  position: relative;
  z-index: 1;
  animation: haloGlow 3s ease-in-out infinite, float 5s ease-in-out infinite;
  /* Annule tout border-radius Tailwind potentiel */
  -webkit-border-radius: 22px !important;
}

/* ---- Badges pop ---- */
.badge-lions-gold, .badge-lions-blue, .badge-live {
  animation: badgePop 0.5s cubic-bezier(.34,1.56,.64,1) both;
}
.badge-lions-gold { animation-delay: 0.8s; }
.badge-lions-blue { animation-delay: 1.0s; }
.badge-live       { animation-delay: 1.2s; }

/* ---- Stat cards ---- */
.stat-card {
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(245,168,0,0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.stat-card:hover::before { opacity: 1; }

/* ---- Scroll indicator amélioré ---- */
.scroll-indicator-dot {
  width: 6px; height: 14px;
  background: rgba(245,168,0,0.8);
  border-radius: 3px;
  animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot {
  0%   { transform: translateY(-4px); opacity: 0; }
  40%  { opacity: 1; }
  80%  { transform: translateY(4px); opacity: 0; }
  100% { transform: translateY(-4px); opacity: 0; }
}

/* ---- Reveal on scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  .animate-float, .animate-pulse-slow, .animate-bounce, .animate-pulse,
  .animate-halo-glow, .animate-fadeInUp, .animate-fadeInDown, .animate-zoomIn,
  .hero-orb-1, .hero-orb-2, .hero-orb-3,
  .badge-lions-gold, .badge-lions-blue, .badge-live,
  .logo-hero, .typing-text, .scroll-indicator-dot {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    border-right: none !important;
  }
  .reveal, .reveal-left, .reveal-right {
    opacity: 1 !important; transform: none !important;
  }
}

/* ============================================================
   MUSIC PLAYER – Navbar
   ============================================================ */

/* Equalizer bars animation */
@keyframes eq1 { 0%,100%{height:4px} 50%{height:14px} }
@keyframes eq2 { 0%,100%{height:10px} 50%{height:4px}  }
@keyframes eq3 { 0%,100%{height:6px}  50%{height:16px} }
@keyframes eq4 { 0%,100%{height:12px} 50%{height:5px}  }

.music-player {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
  padding: 4px 6px;
  border-radius: 50px;
  background: rgba(245,168,0,0.07);
  border: 1px solid rgba(245,168,0,0.2);
  transition: background 0.2s, border-color 0.2s;
}
.music-player:hover {
  background: rgba(245,168,0,0.12);
  border-color: rgba(245,168,0,0.4);
}

/* Bouton principal */
.music-btn {
  position: relative;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: rgba(245,168,0,0.75);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: color 0.2s, transform 0.15s;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.music-btn:hover  { color: #F5A800; }
.music-btn:active { transform: scale(0.9); }
.music-btn.playing {
  color: #F5A800;
}

/* Icône musique */
.music-icon-play { font-size: 1rem; line-height: 1; }
.music-btn.playing .music-icon-play { display: flex; }
/* Couleur icône : rouge quand muet, or quand en lecture */
.music-btn:not(.playing) .music-icon-play { color: rgba(248,113,113,0.8); }
.music-btn.playing .music-icon-play { color: #F5A800; }

/* Label texte */
.music-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  color: rgba(245,168,0,0.7);
  letter-spacing: 0.05em;
  transition: color 0.2s;
  user-select: none;
}
.music-player:hover .music-label,
.music-player:has(.music-btn.playing) .music-label { color: #F5A800; }

/* Barres equalizer */
.music-bars {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}
.music-btn.playing .music-bars { display: flex; }
.music-bars span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: #F5A800;
}
.music-bars span:nth-child(1) { animation: eq1 0.6s ease-in-out infinite; }
.music-bars span:nth-child(2) { animation: eq2 0.5s ease-in-out infinite 0.1s; }
.music-bars span:nth-child(3) { animation: eq3 0.7s ease-in-out infinite 0.05s; }
.music-bars span:nth-child(4) { animation: eq4 0.55s ease-in-out infinite 0.15s; }

/* Icons volume */
.music-vol-icon {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
}

/* Slider volume */
.music-vol-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transition: max-width 0.35s ease, opacity 0.35s ease;
}
.music-player:hover .music-vol-wrap,
.music-vol-wrap.visible {
  max-width: 108px;
  opacity: 1;
}
.music-vol {
  -webkit-appearance: none;
  appearance: none;
  width: 68px; height: 3px;
  border-radius: 2px;
  background: linear-gradient(to right, #F5A800 var(--val, 35%), rgba(255,255,255,0.12) var(--val, 35%));
  outline: none;
  cursor: pointer;
}
.music-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #F5A800;
  box-shadow: 0 0 5px rgba(245,168,0,0.6);
  cursor: pointer;
}
.music-vol::-moz-range-thumb {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #F5A800;
  border: none;
  cursor: pointer;
}

/* Sur mobile : masquer le slider, garder le bouton visible */
@media (max-width: 480px) {
  .music-vol-wrap { display: none; }
  .music-player { padding: 3px 5px; gap: 4px; }
}

/* ---- Navbar ---- */
.nav-link {
  display: inline-flex;
  align-items: center;
  color: #d1d5db;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 0.7rem;
  border-radius: 0.5rem;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  min-height: 40px;
}
@media (hover: hover) {
  .nav-link:hover { color: #F5A800; background: rgba(245,168,0,0.08); }
}
.nav-link:active { color: #F5A800; }
.nav-link.active  { color: #F5A800; }

.mobile-nav-link {
  display: flex;
  align-items: center;
  color: #d1d5db;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.875rem 0.75rem;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  min-height: 52px;
}
.mobile-nav-link:active { color: #F5A800; background: rgba(245,168,0,0.08); }

/* ---- Badges Hero ---- */
.badge-lions-gold {
  display: inline-flex; align-items: center;
  background: rgba(245,168,0,0.15);
  border: 1px solid rgba(245,168,0,0.35);
  color: #F5A800;
  font-family: 'Montserrat', sans-serif; font-weight: 600;
  font-size: 0.7rem; padding: 0.3rem 0.75rem; border-radius: 50px;
}
.badge-lions-blue {
  display: inline-flex; align-items: center;
  background: rgba(0,61,165,0.25);
  border: 1px solid rgba(26,86,196,0.35);
  color: #bfdbfe;
  font-family: 'Montserrat', sans-serif; font-weight: 600;
  font-size: 0.7rem; padding: 0.3rem 0.75rem; border-radius: 50px;
}
.badge-live {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: rgba(127,29,29,0.3);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
  font-family: 'Montserrat', sans-serif; font-weight: 600;
  font-size: 0.7rem; padding: 0.3rem 0.75rem; border-radius: 50px;
}
.live-dot {
  width: 6px; height: 6px;
  background: #ef4444; border-radius: 50%;
  animation: pulse-slow 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #003DA5, #1a56c4);
  color: white;
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: clamp(0.875rem, 3vw, 1rem);
  padding: 0.875rem 1.75rem; border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(0,61,165,0.35);
  width: 100%; max-width: 340px;
}
.btn-primary:active { background: linear-gradient(135deg, #1a56c4, #2563eb); transform: scale(0.98); }
@media (min-width: 480px) { .btn-primary { width: auto; } }
@media (hover: hover) {
  .btn-primary:hover { background: linear-gradient(135deg, #1a56c4, #2563eb); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,61,165,0.5); }
}

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: #F5A800;
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: clamp(0.875rem, 3vw, 1rem);
  padding: 0.875rem 1.75rem; border-radius: 50px;
  border: 2px solid #F5A800;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  width: 100%; max-width: 340px;
}
.btn-secondary:active { background: rgba(245,168,0,0.1); transform: scale(0.98); }
@media (min-width: 480px) { .btn-secondary { width: auto; } }
@media (hover: hover) {
  .btn-secondary:hover { background: rgba(245,168,0,0.1); transform: translateY(-2px); }
}

/* ---- Stat Cards ---- */
.stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.875rem; padding: 0.875rem 0.5rem;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}

/* ---- Section Badge ---- */
.section-badge {
  display: inline-flex; align-items: center;
  background: rgba(245,168,0,0.1);
  border: 1px solid rgba(245,168,0,0.3); color: #F5A800;
  font-family: 'Montserrat', sans-serif; font-weight: 600;
  font-size: 0.75rem; letter-spacing: 0.08em;
  padding: 0.4rem 1rem; border-radius: 50px; text-transform: uppercase;
}

/* ---- YouTube Player ---- */
.yt-wrapper {
  position: relative;
  width: 100%;
  /* hauteur fixe pour que le placeholder absolu soit visible */
  height: 0;
  padding-bottom: 56.25%;
  min-height: 280px;
  background: #00051a;
  border-bottom: 2px solid rgba(245,168,0,0.25);
  overflow: hidden;
}
.yt-iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0;
}

/* ---- Placeholder lecteur (en attente de vidéo) ---- */
/* ============================================================
   PLACEHOLDER YOUTUBE – Écran de lancement cinématique (ytph-*)
   ============================================================ */

/* ── Keyframes ── */
@keyframes bgPulse {
  from { opacity: 0.7; transform: scale(1); }
  to   { opacity: 1;   transform: scale(1.07); }
}
@keyframes ytphFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ytphShimmer {
  0%   { background-position: -300% center; }
  100% { background-position:  300% center; }
}
@keyframes ytphPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,168,0,0.5); }
  50%       { box-shadow: 0 0 0 10px rgba(245,168,0,0); }
}
@keyframes ytphCountdown {
  from { width: 100%; }
  to   { width: 0%; }
}
@keyframes ytphDotBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(0.6); }
}
@keyframes ytphSignalPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}
@keyframes ytphTitleIn {
  from { opacity: 0; transform: translateY(28px) scale(0.92); letter-spacing: 0.3em; }
  to   { opacity: 1; transform: translateY(0)    scale(1);    letter-spacing: 0.04em; }
}

/* ── Conteneur principal ── */
.yt-placeholder {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.7rem;
  background: linear-gradient(160deg, #00051a 0%, #001040 45%, #050018 100%);
  overflow: hidden;
  padding: 1rem 1.25rem;
  text-align: center;
  z-index: 1;
}

/* Fond radial animé */
.yt-placeholder-bg {
  position: absolute; inset: -25%;
  background:
    radial-gradient(ellipse at 50% 25%, rgba(245,168,0,0.16) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 75%, rgba(0,61,165,0.28) 0%, transparent 45%),
    radial-gradient(ellipse at 15% 65%, rgba(100,0,180,0.12) 0%, transparent 40%);
  animation: bgPulse 6s ease-in-out infinite alternate;
}

/* Canvas particules plein écran */
.ytph-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Scanlines cinéma subtiles */
.ytph-scanlines {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(255,255,255,0.018) 3px,
    rgba(255,255,255,0.018) 4px
  );
}

/* Signal TV (3 points clignotants) */
.ytph-signal-wrap {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 0.45rem;
  margin-bottom: 0.25rem;
}
.ytph-signal-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #F5A800;
  animation: ytphSignalPulse 1.2s ease-in-out infinite;
}
.ytph-signal-dot:nth-child(2) { animation-delay: 0.4s; background: #fff; }
.ytph-signal-dot:nth-child(3) { animation-delay: 0.8s; background: #3b82f6; }

/* Label chaîne */
.ytph-channel-label {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(0.6rem, 1.8vw, 0.72rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  animation: ytphFadeUp 0.6s ease both;
}
.ytph-channel-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: ytphDotBlink 1.4s ease-in-out infinite;
}

/* Titre principal : "Lancement Officiel" */
.ytph-main-title {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.1rem;
}
.ytph-word {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  color: #ffffff;
  text-shadow: 0 0 40px rgba(245,168,0,0.4), 0 4px 20px rgba(0,0,0,0.6);
}
.ytph-w1 {
  font-size: clamp(1.6rem, 6.5vw, 3.2rem);
  letter-spacing: 0.04em;
  animation: ytphTitleIn 0.8s cubic-bezier(0.22,1,0.36,1) 0.15s both;
}
.ytph-w2 {
  font-size: clamp(1.2rem, 5vw, 2.4rem);
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #F5A800, #FFD060, #F5A800, #ffd700);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: ytphTitleIn 0.8s cubic-bezier(0.22,1,0.36,1) 0.3s both,
             ytphShimmer 3s linear 1.2s infinite;
}

/* Bloc date + lieu */
.ytph-date-block {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 0.6rem;
  flex-wrap: wrap; justify-content: center;
  animation: ytphFadeUp 0.7s ease 0.6s both;
}
.ytph-date-line {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(0.78rem, 2.5vw, 1rem);
  color: rgba(255,255,255,0.88);
}
.ytph-date-line i { color: #F5A800; font-size: 0.85em; }
.ytph-date-text {
  background: linear-gradient(90deg, #F5A800, #FFD060, #F5A800);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: ytphShimmer 2.8s linear infinite;
}
.ytph-location .ytph-date-text { color: rgba(255,255,255,0.88); background: none; -webkit-text-fill-color: rgba(255,255,255,0.88); animation: none; }
.ytph-date-sep {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.25);
  font-weight: 300;
}

/* Barre de countdown */
.ytph-countdown-bar {
  position: relative; z-index: 2;
  width: min(280px, 70%);
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 99px;
  overflow: hidden;
  animation: ytphFadeUp 0.5s ease 0.9s both;
}
.ytph-countdown-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #003DA5, #F5A800, #FFD060);
  animation: ytphCountdown 30s linear infinite;
}

/* Tagline */
.ytph-tagline {
  position: relative; z-index: 2;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: clamp(0.62rem, 1.8vw, 0.78rem);
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.06em;
  max-width: 30rem;
  line-height: 1.5;
  animation: ytphFadeUp 0.6s ease 1.1s both;
}

/* Bouton CTA */
.ytph-cta-btn {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: #dc2626;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(0.68rem, 2vw, 0.82rem);
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  margin-top: 0.25rem;
  box-shadow: 0 4px 20px rgba(220,38,38,0.45);
  transition: transform 0.15s, box-shadow 0.15s;
  animation: ytphFadeUp 0.6s ease 1.3s both, ytphPulse 2.5s ease 2s infinite;
}
.ytph-cta-btn:active { transform: scale(0.96); }

/* Classes legacy conservées (compat) */
.yt-placeholder-btn { display: none; }
.yt-placeholder-badge { display: none; }
.yt-launch-badge { display: none; }
.yt-placeholder-logo-wrap { display: none; }
.yt-placeholder-title { display: none; }
.yt-placeholder-sub { display: none; }

/* ============================================================
   LOGOS DM 403 – Style carré unifié (fond blanc + coins arrondis)
   ============================================================ */

/* Base commune à tous les logos */
.logo-square {
  background: #ffffff;
  border-radius: 16px;
  object-fit: contain;
  padding: 5px;
  display: block;
  flex-shrink: 0;
}

/* Navbar – petit, sobre */
.logo-navbar {
  background: #ffffff;
  border-radius: 12px;
  object-fit: contain;
  padding: 4px;
  display: block;
  flex-shrink: 0;
  box-shadow:
    0 0 0 2px rgba(245,168,0,0.55),
    0 3px 10px rgba(0,0,0,0.45);
}

/* Hero – grand, halo or/bleu animé */
.logo-hero {
  background: #ffffff;
  border-radius: 22px;
  object-fit: contain;
  padding: 8px;
  display: block;
  box-shadow:
    0 0 0 3px rgba(245,168,0,0.7),
    0 0 40px rgba(245,168,0,0.4),
    0 0 80px rgba(0,61,165,0.3),
    0 8px 32px rgba(0,0,0,0.6);
}

/* About – grand, double halo */
.logo-about {
  background: #ffffff;
  border-radius: 22px;
  object-fit: contain;
  padding: 10px;
  display: block;
  box-shadow:
    0 0 0 3px rgba(245,168,0,0.75),
    0 0 50px rgba(245,168,0,0.45),
    0 0 90px rgba(0,61,165,0.3),
    0 10px 40px rgba(0,0,0,0.55);
}

/* Footer – petit, discret */
.logo-footer {
  background: #ffffff;
  border-radius: 10px;
  object-fit: contain;
  padding: 4px;
  display: block;
  flex-shrink: 0;
  box-shadow:
    0 0 0 1.5px rgba(245,168,0,0.45),
    0 2px 8px rgba(0,0,0,0.4);
}

/* ---- YT Tab Buttons ---- */
.yt-tab-btn {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: 0.68rem; letter-spacing: 0.04em;
  color: #9ca3af; background: transparent;
  border: 1px solid transparent;
  padding: 0.45rem 0.9rem; border-radius: 50px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap; min-height: 36px;
}
.yt-tab-btn:active { color: #ef4444; border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.08); }
.yt-tab-btn.active { color: #ef4444; border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.1); }
@media (hover: hover) {
  .yt-tab-btn:hover { color: white; border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); }
}

/* ---- Featured Video Cards ---- */
.video-card {
  display: flex; gap: 0.75rem; align-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 0.875rem; padding: 0.75rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
  min-height: 70px;
}
.video-card:active { background: rgba(245,168,0,0.06); border-color: rgba(245,168,0,0.2); }
@media (hover: hover) {
  .video-card:hover { background: rgba(245,168,0,0.06); border-color: rgba(245,168,0,0.2); transform: translateX(3px); }
}
.video-card-thumb {
  width: 72px; height: 50px; min-width: 72px;
  border-radius: 0.5rem;
  background: #1f2937;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.video-card-info { flex: 1; min-width: 0; }
.video-card-title {
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.75rem;
  color: #f3f4f6; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.video-card-meta { font-size: 0.68rem; color: #6b7280; margin-top: 0.2rem; }

/* ---- No scrollbar utility ---- */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ---- Custom Scrollbar ---- */
.custom-scroll::-webkit-scrollbar { width: 3px; }
.custom-scroll::-webkit-scrollbar-track { background: transparent; }
.custom-scroll::-webkit-scrollbar-thumb { background: rgba(245,168,0,0.3); border-radius: 2px; }

/* ---- Programmes swipeable scroll (mobile) ---- */
.programmes-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 1rem 1rem;
  margin: 0 -1rem;
  scroll-padding-left: 1rem;
}
.programmes-scroll::-webkit-scrollbar { display: none; }
.programmes-scroll { -ms-overflow-style: none; scrollbar-width: none; }

@media (min-width: 1280px) {
  .programmes-scroll {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    overflow: visible;
    padding: 0; margin: 0;
    scroll-snap-type: none;
  }
}

/* ---- Programme Cards ---- */
.programme-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1.25rem; padding: 1.25rem sm:1.5rem;
  padding: 1.25rem;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  /* Mobile : card largeur fixe + snap */
  flex: 0 0 calc(85vw - 2rem);
  min-width: 260px;
  max-width: 320px;
  scroll-snap-align: start;
}
@media (min-width: 1280px) {
  .programme-card {
    flex: none; min-width: auto; max-width: none;
    scroll-snap-align: none;
    padding: 1.5rem;
  }
  .programme-card:active,
  .programme-card:hover { background: rgba(255,255,255,0.04); border-color: rgba(245,168,0,0.25); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.3); }
}
.programme-card:active { background: rgba(245,168,0,0.04); border-color: rgba(245,168,0,0.2); }

.programme-icon {
  width: 3rem; height: 3rem; border-radius: 0.875rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---- Social Platform Cards ---- */
.social-platform-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid;
  border-radius: 1.25rem; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
@media (hover: hover) {
  .social-platform-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,0.4); }
}
.social-platform-header {
  padding: 1.5rem 1.25rem 1.25rem; text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.platform-btn {
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.875rem;
  padding: 0.875rem 1.25rem; border-radius: 0.875rem;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  width: 100%;
}
.platform-btn:active { opacity: 0.85; transform: scale(0.98); }

/* ---- Social Mini Cards (Instagram/WhatsApp) ---- */
.social-mini-card {
  display: flex; align-items: center; gap: 1rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1.25rem; padding: 1rem 1.25rem;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  min-height: 72px;
}
.social-mini-card:active { background: rgba(245,168,0,0.04); border-color: rgba(245,168,0,0.2); }

/* ---- TikTok ---- */
.tiktok-gradient { background: linear-gradient(135deg, #010101 0%, #69C9D0 50%, #EE1D52 100%); }
.tiktok-avatar { background: linear-gradient(135deg, #EE1D52, #69C9D0); }

/* ---- Instagram ---- */
.instagram-gradient { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.instagram-pill {
  background: linear-gradient(135deg, rgba(240,148,51,0.15), rgba(188,24,136,0.15)) !important;
  border-color: rgba(220,39,67,0.35) !important;
}

/* ---- Value Items ---- */
.value-item {
  display: flex; align-items: center; gap: 0.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 0.75rem; padding: 0.75rem 1rem;
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.875rem;
  color: #d1d5db;
  transition: border-color 0.15s, color 0.15s;
  min-height: 48px;
}
.value-item:active { border-color: rgba(245,168,0,0.25); color: white; }

/* ---- Contact Cards ---- */
.contact-card {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1.25rem; padding: 1.5rem 1rem;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  min-height: 110px;
}
.contact-card:active { background: rgba(245,168,0,0.04); border-color: rgba(245,168,0,0.25); }
@media (hover: hover) {
  .contact-card:hover { background: rgba(245,168,0,0.05); border-color: rgba(245,168,0,0.25); transform: translateY(-3px); }
}

/* ---- Social Pills ---- */
.social-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid;
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.85rem;
  padding: 0.65rem 1.25rem; border-radius: 50px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  min-height: 44px;
}
.social-pill:active { transform: scale(0.96); }

/* ---- Footer ---- */
.footer-link {
  display: flex; align-items: center;
  color: #9ca3af; font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s;
  padding: 0.2rem 0; min-height: 32px;
}
.footer-link:active { color: #F5A800; }
@media (hover: hover) { .footer-link:hover { color: #F5A800; } }

.footer-social-btn {
  display: flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; min-width: 2.25rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.625rem;
  transition: background 0.15s;
  text-decoration: none;
}
.footer-social-btn:active { background: rgba(255,255,255,0.12); }

/* ---- LOGO STYLES ---- */
.logo-navbar {
  border-radius: 50%; background: white; padding: 2px;
  box-shadow: 0 0 0 2px rgba(245,168,0,0.6), 0 3px 10px rgba(0,0,0,0.4);
  object-fit: contain;
}
.logo-hero {
  border-radius: 50%; background: white; padding: 5px;
  box-shadow: 0 0 0 3px rgba(245,168,0,0.8), 0 0 35px rgba(245,168,0,0.3), 0 0 70px rgba(0,61,165,0.25), 0 16px 50px rgba(0,0,0,0.55);
  object-fit: contain;
}
.logo-about {
  border-radius: 50%; background: white; padding: 6px;
  box-shadow: 0 0 0 3px rgba(245,168,0,0.7), 0 0 40px rgba(245,168,0,0.2), 0 20px 60px rgba(0,0,0,0.5);
  object-fit: contain;
}
.logo-footer {
  border-radius: 50%; background: white; padding: 2px;
  box-shadow: 0 0 0 2px rgba(245,168,0,0.45), 0 3px 8px rgba(0,0,0,0.35);
  object-fit: contain;
}

/* ===== TEAM CARDS (Section À Propos) ===== */

/* Grille responsive : 1 col mobile → 2 col tablet → 4 col desktop */
/* ═══════════════════════════════════════════════════════════════
   ÉQUIPE DIRIGEANTE – Design Premium v3 (tm-*)
   Layout vertical : photo en haut centrée, texte en bas
   ═══════════════════════════════════════════════════════════════ */

.tm-section { margin-bottom: 2.5rem; }

.tm-section-head { text-align: center; margin-bottom: 2.5rem; }
.tm-section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  color: #ffffff;
  margin-bottom: 0.6rem;
  line-height: 1.2;
}
.tm-section-sub {
  font-size: 0.9rem;
  color: #94a3b8;
  max-width: 40rem;
  margin: 0 auto;
  line-height: 1.7;
}

/* Grille : 1 col mobile → 2 col ≥640px */
.tm-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .tm-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

/* ── Carte : layout vertical, fond sombre avec micro-texture ── */
.tm-card {
  background: #0f172a;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.07);
  overflow: visible;          /* ne pas clipper les éléments enfants */
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
@media (hover: hover) {
  .tm-card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,0,0,0.6); }
}
.tm-card:active { transform: scale(0.98); }

/* Bord supérieur coloré (4px) — remplace overflow:hidden */
.tm-card::before {
  content: '';
  display: block;
  height: 4px;
  border-radius: 16px 16px 0 0;
  flex-shrink: 0;
}
.tm-gold::before   { background: linear-gradient(90deg, #d48f00, #F5A800, #FFD060); }
.tm-blue::before   { background: linear-gradient(90deg, #1d4ed8, #3b82f6, #60a5fa); }
.tm-purple::before { background: linear-gradient(90deg, #7c3aed, #a855f7, #c084fc); }
.tm-green::before  { background: linear-gradient(90deg, #15803d, #22c55e, #4ade80); }

/* Bord coloré sur le côté gauche également */
.tm-gold   { border-left: 3px solid #F5A800; }
.tm-blue   { border-left: 3px solid #3b82f6; }
.tm-purple { border-left: 3px solid #a855f7; }
.tm-green  { border-left: 3px solid #22c55e; }

/* ── Zone photo (fond dégradé en haut de la carte) ── */
.tm-card-top {
  padding: 1.75rem 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tm-gold   .tm-card-top { background: linear-gradient(135deg, rgba(245,168,0,0.08) 0%, transparent 60%); }
.tm-blue   .tm-card-top { background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, transparent 60%); }
.tm-purple .tm-card-top { background: linear-gradient(135deg, rgba(168,85,247,0.08) 0%, transparent 60%); }
.tm-green  .tm-card-top { background: linear-gradient(135deg, rgba(34,197,94,0.08) 0%, transparent 60%); }

/* Photo ronde avec bordure dégradée */
.tm-photo-ring {
  flex-shrink: 0;
  width: 80px; height: 80px;
  border-radius: 50%;
  padding: 3px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}
@media (min-width: 480px) { .tm-photo-ring { width: 90px; height: 90px; } }
.tm-ring-gold   { background: linear-gradient(135deg, #F5A800, #FFD060); }
.tm-ring-blue   { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.tm-ring-purple { background: linear-gradient(135deg, #a855f7, #c084fc); }
.tm-ring-green  { background: linear-gradient(135deg, #22c55e, #4ade80); }

.tm-photo {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: #1e293b;
}

/* Bloc nom + fonction à côté de la photo */
.tm-id {
  flex: 1;
  min-width: 0;
}
.tm-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: #ffffff;
  line-height: 1.2;
  margin: 0 0 0.2rem;
}
.tm-function {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.4;
}

/* Badge rôle — dans le flux, sous la fonction */
.tm-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  margin-top: 0.5rem;
  width: fit-content;
}
.tm-pill-gold   { background: rgba(245,168,0,0.15);  border: 1.5px solid rgba(245,168,0,0.5);  color: #F5A800; }
.tm-pill-blue   { background: rgba(59,130,246,0.15);  border: 1.5px solid rgba(59,130,246,0.5);  color: #93c5fd; }
.tm-pill-purple { background: rgba(168,85,247,0.15);  border: 1.5px solid rgba(168,85,247,0.5);  color: #d8b4fe; }
.tm-pill-green  { background: rgba(34,197,94,0.15);   border: 1.5px solid rgba(34,197,94,0.45);   color: #86efac; }

/* ── Zone description (bas de la carte) ── */
.tm-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tm-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.7;
  flex: 1;
}
.tm-desc strong { color: #cbd5e1; font-weight: 700; }

/* Séparateur */
.tm-divider {
  width: 2rem; height: 2px;
  border-radius: 2px;
  flex-shrink: 0;
}
.tm-div-gold   { background: linear-gradient(90deg, #F5A800, transparent); }
.tm-div-blue   { background: linear-gradient(90deg, #3b82f6, transparent); }
.tm-div-purple { background: linear-gradient(90deg, #a855f7, transparent); }
.tm-div-green  { background: linear-gradient(90deg, #22c55e, transparent); }

/* Tag spécialité */
.tm-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  border: 1.5px solid;
  width: fit-content;
}
.tm-tag-gold   { background: rgba(245,168,0,0.08);  border-color: rgba(245,168,0,0.3);  color: #fbbf24; }
.tm-tag-blue   { background: rgba(59,130,246,0.08);  border-color: rgba(59,130,246,0.3);  color: #93c5fd; }
.tm-tag-purple { background: rgba(168,85,247,0.08);  border-color: rgba(168,85,247,0.3);  color: #d8b4fe; }
.tm-tag-green  { background: rgba(34,197,94,0.08);   border-color: rgba(34,197,94,0.3);   color: #86efac; }

/* Couleurs texte */
.tm-color-gold   { color: #F5A800; }
.tm-color-blue   { color: #60a5fa; }
.tm-color-purple { color: #c084fc; }
.tm-color-green  { color: #4ade80; }


/* ============================================================
   MODAL FAIRE UN DON (don-*)
   ============================================================ */

@keyframes donModalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes donOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Overlay */
.don-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,5,26,0.82);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  animation: donOverlayIn 0.2s ease both;
  overflow-y: auto;
}
.don-modal-hidden { display: none !important; }

/* Boîte de dialogue */
.don-modal-box {
  background: #0f172a;
  border: 1px solid rgba(245,168,0,0.25);
  border-radius: 24px;
  width: 100%; max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(245,168,0,0.08);
  animation: donModalIn 0.28s cubic-bezier(0.22,1,0.36,1) both;
  scrollbar-width: thin;
  scrollbar-color: rgba(245,168,0,0.3) transparent;
}

/* Header */
.don-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: sticky; top: 0;
  background: #0f172a;
  border-radius: 24px 24px 0 0;
  z-index: 1;
}
.don-modal-title-wrap {
  display: flex; align-items: center; gap: 0.9rem;
}
.don-modal-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(245,168,0,0.2), rgba(245,168,0,0.08));
  border: 1.5px solid rgba(245,168,0,0.4);
  display: flex; align-items: center; justify-content: center;
  color: #F5A800; font-size: 1.1rem;
}
.don-modal-title {
  font-family: 'Montserrat', sans-serif; font-weight: 900;
  font-size: 1.15rem; color: #ffffff; line-height: 1.2; margin: 0;
}
.don-modal-subtitle {
  font-family: 'Montserrat', sans-serif; font-weight: 600;
  font-size: 0.72rem; color: #F5A800; letter-spacing: 0.06em;
  text-transform: uppercase; margin: 0;
}
.don-modal-close {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6); font-size: 0.9rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.don-modal-close:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* Intro */
.don-modal-intro {
  padding: 1rem 1.5rem;
  font-size: 0.85rem; color: #94a3b8; line-height: 1.65;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.don-modal-intro strong { color: #F5A800; }

/* Formulaire */
.don-form {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
}

/* Montants */
.don-amounts { display: flex; flex-direction: column; gap: 0.6rem; }
.don-amount-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem;
}
.don-amount-btn {
  background: rgba(255,255,255,0.05); border: 1.5px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.75); border-radius: 10px;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.72rem;
  padding: 0.55rem 0.25rem; cursor: pointer;
  transition: all 0.15s;
}
.don-amount-btn:hover, .don-amount-btn.selected {
  background: rgba(245,168,0,0.18); border-color: rgba(245,168,0,0.7); color: #F5A800;
}
.don-amount-popular {
  background: rgba(245,168,0,0.12); border-color: rgba(245,168,0,0.5); color: #F5A800;
}
.don-amount-popular.selected { background: rgba(245,168,0,0.25); }

/* Ligne double */
.don-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 400px) { .don-row { grid-template-columns: 1fr; } }

/* Champ */
.don-field-wrap { display: flex; flex-direction: column; gap: 0.35rem; }
.don-field-label {
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.don-required { color: #F5A800; }

/* Input */
.don-input {
  background: rgba(255,255,255,0.05); border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 0.65rem 0.9rem;
  color: #ffffff; font-family: 'Montserrat', sans-serif; font-size: 0.85rem;
  width: 100%; outline: none; transition: border-color 0.15s, background 0.15s;
}
.don-input::placeholder { color: rgba(255,255,255,0.25); }
.don-input:focus { border-color: rgba(245,168,0,0.6); background: rgba(245,168,0,0.05); }
.don-input:invalid:not(:placeholder-shown) { border-color: rgba(239,68,68,0.5); }

/* Input avec préfixe */
.don-field-wrap:has(.don-input-prefix) { position: relative; }
.don-field-prefix {
  position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%);
  color: #F5A800; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.8rem;
  pointer-events: none;
}
.don-input-prefix { padding-left: 3.5rem; }
.don-textarea { resize: vertical; min-height: 80px; }

/* Paiement */
.don-payment-grid {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.25rem;
}
.don-pay-opt {
  display: flex; align-items: center; gap: 0.4rem; cursor: pointer;
  background: rgba(255,255,255,0.04); border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 8px; padding: 0.45rem 0.8rem;
  font-family: 'Montserrat', sans-serif; font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.7);
  transition: all 0.15s;
}
.don-pay-opt:has(input:checked) {
  background: rgba(245,168,0,0.12); border-color: rgba(245,168,0,0.5); color: #F5A800;
}
.don-pay-opt input { accent-color: #F5A800; }

/* Statut */
.don-status {
  border-radius: 10px; padding: 0.75rem 1rem;
  font-family: 'Montserrat', sans-serif; font-size: 0.82rem; font-weight: 600;
  line-height: 1.5;
}
.don-status.success { background: rgba(34,197,94,0.1); border: 1.5px solid rgba(34,197,94,0.4); color: #86efac; }
.don-status.error   { background: rgba(239,68,68,0.1);  border: 1.5px solid rgba(239,68,68,0.35);  color: #fca5a5; }

/* Bouton submit */
.don-submit-btn {
  background: linear-gradient(135deg, #F5A800, #FFD060);
  color: #000; font-family: 'Montserrat', sans-serif; font-weight: 800;
  font-size: 0.9rem; padding: 0.9rem 1.5rem; border-radius: 12px;
  border: none; cursor: pointer; width: 100%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 20px rgba(245,168,0,0.35);
  margin-top: 0.25rem;
}
.don-submit-btn:hover  { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(245,168,0,0.5); }
.don-submit-btn:active { transform: scale(0.97); }
.don-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Mention sécurité */
.don-mention {
  font-size: 0.68rem; color: rgba(255,255,255,0.3);
  text-align: center; margin-top: 0.25rem;
}

/* ---- Skeleton loader ---- */
.skeleton {
  background: linear-gradient(90deg, #1f2937 25%, #374151 50%, #1f2937 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 0.5rem;
}

/* ---- Programme dots (swipe indicator) ---- */
.prog-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: background 0.2s, width 0.2s;
}
.prog-dot.active { background: #F5A800; width: 18px; border-radius: 3px; }

/* ---- Scroll to top ---- */
#scroll-top {
  position: fixed; bottom: calc(70px + max(env(safe-area-inset-bottom), 4px)); right: 1rem;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, #003DA5, #1a56c4);
  color: white; border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transform: scale(0.8);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 48;
  box-shadow: 0 4px 14px rgba(0,61,165,0.4);
}
#scroll-top.visible { opacity: 1; transform: scale(1); }
#scroll-top:active { transform: scale(0.93); }
@media (min-width: 1024px) {
  #scroll-top { bottom: 2rem; right: 2rem; width: 48px; height: 48px; }
}

/* ---- Notch/island safe area (landscape iOS) ---- */
@supports (padding: max(0px)) {
  .navbar-safe-top { padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
}

/* ---- Extra small breakpoint ---- */
@media (min-width: 390px) {
  .xs\:block { display: block; }
  .xs\:flex  { display: flex;  }
  .xs\:flex-row { flex-direction: row; }
  .xs\:px-0 { padding-left: 0; padding-right: 0; }
}

/* ---- Responsive: tablet 2-col programmes ---- */
@media (min-width: 640px) and (max-width: 1279px) {
  .programmes-scroll {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    overflow: visible;
    padding: 0; margin: 0;
    scroll-snap-type: none;
  }
  .programme-card {
    flex: none; min-width: auto; max-width: none; scroll-snap-align: none;
  }
}
