/* ========================================
   SIKA AWARDS — Design System
   ======================================== */

/* --- Variables --- */
:root {
  --primary: #FF3300;
  --primary-dark: #CC2900;
  --primary-light: #FF5533;
  --primary-glow: rgba(255, 51, 0, 0.4);
  --bg: transparent;
  --bg-surface: rgba(20, 20, 20, 0.6);
  --bg-card: rgba(26, 26, 26, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --text: #FFFFFF;
  --text-muted: #999999;
  --text-subtle: #666666;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 51, 0, 0.3);
  --radius: 0px;
  --radius-sm: 0px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --motion-ease-out: cubic-bezier(0.2, 0, 0, 1);
  --motion-fast: 140ms;
  --motion-standard: 220ms;
  --motion-enter: 500ms;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Outfit', sans-serif; /* police unique du site (avant : Inter) */
  --font-timer: 'Outfit', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Transitions entre pages : ordinateurs uniquement. Sur mobile, elles laissaient
   parfois une page blanche après un changement de page (navigateurs mobiles). */
@media (hover: hover) and (pointer: fine) and (min-width: 769px) {
  @view-transition {
    navigation: auto;
  }
}

::view-transition-old(root) {
  animation: page-transition-out 140ms ease-in both;
}

::view-transition-new(root) {
  animation: page-transition-in 240ms var(--motion-ease-out) both;
}

@keyframes page-transition-out {
  to { opacity: 0; }
}

@keyframes page-transition-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

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

body {
  overflow-wrap: break-word;
  font-family: var(--font-body);
  background: #050505;
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Motif « SA » en fond de tout le site (assets/motifs/sa-motif.svg, une tuile répétée).
   Fixe, derrière le contenu : il apparaît partout où la page laisse voir son fond.
   Réglages : --sa-motif-opacity (intensité) et --sa-motif-size (largeur d'un « SA »). */
:root {
  /* Ombre légère sous les photos (comme la bande de nominés de l’accueil). RÉGLAGE unique pour tout le site. */
  --photo-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
  --sa-motif-opacity: 0.06;
  --sa-motif-size: 120px;
}

body::before,
.page-bloom::after {
  content: '';
  inset: 0;
  pointer-events: none;
  background-image: url('/assets/motifs/sa-motif.svg');
  background-repeat: repeat;
  background-size: var(--sa-motif-size) auto;
  background-position: center top;
  opacity: var(--sa-motif-opacity);
}

body::before {
  position: fixed;
  z-index: -1;
}

/* Paillettes (scripts/foil-drift.js) en fond de toute la page, fixes pendant le défilement,
   au-dessus du motif « SA » et derrière tout le contenu. */
.foil-page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Accueil : le fond lumineux animé couvre la page, le motif passe donc par-dessus lui. */
.page-bloom::after {
  position: absolute;
  z-index: 1;
}

/* Thèmes jour / nuit : variables communes à toutes les pages publiques. */
html[data-theme="light"] {
  --bg: #f4f5f3;
  --bg-surface: rgba(255, 255, 255, 0.94);
  --bg-card: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(17, 17, 17, 0.035);
  --text: #000000;
  --text-muted: #000000;
  --text-subtle: #000000;
  --border: rgba(17, 17, 17, 0.12);
  --border-hover: rgba(255, 51, 0, 0.38);
  --sika-color-background: #f4f5f3;
  --sika-color-background-deep: #eceeeb;
  --sika-color-surface: rgba(255, 255, 255, 0.94);
  --sika-color-card: rgba(255, 255, 255, 0.98);
  --sika-color-text: #000000;
  --sika-color-text-muted: #000000;
  --sika-color-text-subtle: #000000;
  --sika-color-border: rgba(17, 17, 17, 0.12);
}

html[data-theme="light"] body {
  background: #f4f5f3 !important;
  color: #171717 !important;
}

html[data-theme="light"] body::before {
  --sa-motif-opacity: 0.08;
  z-index: 0;
  opacity: 0.08;
  filter: brightness(0) opacity(0.28);
}

html[data-theme="dark"] body::before {
  z-index: 0;
}

html[data-theme="light"] .header-logo-wrap img,
html[data-theme="light"] .mobile-logo-wrap img,
html[data-theme="light"] .hero-logo,
html[data-theme="light"] .footer-logo img,
html[data-theme="light"] .login-logo,
html[data-theme="light"] .sidebar-logo {
  filter: none;
}

html[data-theme="light"] .header-logo-wrap .logo-word,
html[data-theme="light"] .mobile-logo-wrap .logo-word {
  filter: brightness(0) opacity(0.82);
}

html[data-theme="light"] .header,
html[data-theme="light"] .mobile-nav,
html[data-theme="light"] .footer,
html[data-theme="light"] .partners-section,
html[data-theme="light"] .home-partners,
html[data-theme="light"] .cookie-banner,
html[data-theme="light"] .ticket-footer,
html[data-theme="light"] .page-hero,
html[data-theme="light"] .account-container,
html[data-theme="light"] .account-card,
html[data-theme="light"] .account-panel,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .ticket-card,
html[data-theme="light"] .ticket-summary,
html[data-theme="light"] .category-card,
html[data-theme="light"] .cat-section,
html[data-theme="light"] .detail-panel,
html[data-theme="light"] .live-panel,
html[data-theme="light"] .access-shell {
  background-color: #f4f5f3;
}

html[data-theme="light"] .header,
html[data-theme="light"] .footer,
html[data-theme="light"] .cookie-banner,
html[data-theme="light"] .ticket-card,
html[data-theme="light"] .ticket-summary,
html[data-theme="light"] .category-card,
html[data-theme="light"] .account-card,
html[data-theme="light"] .account-panel,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .live-panel {
  border-color: var(--border);
}

html[data-theme="light"] .page-bloom {
  background: #f4f5f3 !important;
}

html[data-theme="light"] .page-bloom::after {
  z-index: 1;
  opacity: 0.10;
  filter: brightness(0) opacity(0.32);
}

html[data-theme="light"] .home-partners {
  background: transparent !important;
}

html[data-theme="light"] .home-partners .home-footer-line,
html[data-theme="light"] .home-partners .home-legal {
  color: #000000;
}

html[data-theme="light"] .home-partner img {
  filter: grayscale(100%) brightness(0.42) contrast(1.15);
}

html[data-theme="light"] .home-partner:hover img {
  filter: grayscale(0%) brightness(1);
}

html[data-theme="light"] [style*="background: #050505"],
html[data-theme="light"] [style*="background:#050505"],
html[data-theme="light"] [style*="background: #000"],
html[data-theme="light"] [style*="background:#000"] {
  background-color: #f4f5f3 !important;
}

html[data-theme="light"] .home-ceremony,
html[data-theme="light"] .home-dwa,
html[data-theme="light"] .home-date,
html[data-theme="light"] .home-partners,
html[data-theme="light"] .categories-hero,
html[data-theme="light"] .detail-hero,
html[data-theme="light"] .playlist-section,
html[data-theme="light"] .vote-shell,
html[data-theme="light"] .vote-stage,
html[data-theme="light"] .duel-container,
html[data-theme="light"] .ceremony-timeline,
html[data-theme="light"] .ceremony-grid,
html[data-theme="light"] .live-shell,
html[data-theme="light"] .live-page {
  background-color: transparent;
}

html[data-theme="light"] .account-grid,
html[data-theme="light"] .account-main,
html[data-theme="light"] .account-side {
  background-color: transparent;
}

html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select,
html[data-theme="light"] [contenteditable="true"] {
  background: #ffffff !important;
  color: #171717 !important;
  border-color: rgba(17, 17, 17, 0.16) !important;
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
  color: #000000 !important;
}

html[data-theme="light"] .categories-search input {
  background: #ffffff;
  color: #000000;
  border-color: rgba(17, 17, 17, 0.16);
}

html[data-theme="light"] .categories-search-icon {
  color: #000000;
}

html[data-theme="light"] .header,
html[data-theme="light"] .header.scrolled {
  background: rgba(244, 245, 243, 0.94);
  border-bottom-color: rgba(17, 17, 17, 0.08);
}

html[data-theme="light"] .nav-links a,
html[data-theme="light"] .mobile-nav a,
html[data-theme="light"] .footer-social a,
html[data-theme="light"] .footer-legal a,
html[data-theme="light"] .ticket-footer {
  color: #000000;
}

html[data-theme="light"] .nav-links a.active,
html[data-theme="light"] .footer-social a:hover,
html[data-theme="light"] .footer-legal a:hover {
  color: var(--primary);
}

html[data-theme="light"] .nav-links a:hover,
html[data-theme="light"] .mobile-nav a:hover,
html[data-theme="light"] .mobile-nav a.active {
  color: var(--primary) !important;
}

html[data-theme="light"] .footer-sep {
  color: rgba(17, 17, 17, 0.28);
}

html[data-theme="light"] .page-bloom .light-bloom-canvas {
  opacity: 0.45;
}

html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4,
html[data-theme="light"] h5,
html[data-theme="light"] h6,
html[data-theme="light"] p,
html[data-theme="light"] th,
html[data-theme="light"] td,
html[data-theme="light"] dt,
html[data-theme="light"] dd,
html[data-theme="light"] label,
html[data-theme="light"] small {
  color: #171717;
}

html[data-theme="light"] .home-ceremony p {
  color: #000000 !important;
}

html[data-theme="light"] .nominee-name-label,
html[data-theme="light"] .cat-title,
html[data-theme="light"] .cat-num,
html[data-theme="light"] .nominee-project-label,
html[data-theme="light"] .nominee-sub-label,
html[data-theme="light"] .categories-search-status,
html[data-theme="light"] .categories-search label {
  color: #171717 !important;
}

html[data-theme="light"] .nominee-sub-label,
html[data-theme="light"] .nominee-project-label,
html[data-theme="light"] .cat-num,
html[data-theme="light"] .categories-search-status {
  color: #000000 !important;
}

html[data-theme="light"] .cat-header-vote-link,
html[data-theme="light"] .cat-header-vote-link .cat-title {
  color: #171717;
}

html[data-theme="light"] .cat-header-vote-link:hover,
html[data-theme="light"] .cat-header-vote-link:hover .cat-title,
html[data-theme="light"] .cat-header-link:hover .cat-title,
html[data-theme="light"] .hero-vote-link:hover,
html[data-theme="light"] #passer-au-vote .cat-header-link:hover .cat-title,
html[data-theme="light"] #passer-au-vote .cat-header-link:hover .icon-arrow {
  color: var(--primary) !important;
}

html[data-theme="light"] .cat-section:not(.cat-voted) .cat-header-link:hover h2,
html[data-theme="light"] .cat-section:not(.cat-voted) .cat-header-link:hover .cat-title,
html[data-theme="light"] .cat-section:not(.cat-voted) .cat-header-link:hover .cat-title-copy {
  color: var(--primary) !important;
}

html[data-theme="light"] .btn-primary,
html[data-theme="light"] .btn-start,
html[data-theme="light"] .hero-vote-link,
html[data-theme="light"] .cat-header-vote-link {
  color: inherit;
}

html[data-theme="light"] .motion-back-top {
  color: rgba(23, 23, 23, 0.72);
}

html[data-theme="light"] .sika-dialog,
html[data-theme="light"] [role="dialog"] {
  background: #ffffff;
  color: #171717;
  border-color: rgba(17, 17, 17, 0.12);
}

/* Mode jour : boutons « à contour » (Retour, Refuser, Se déconnecter…) écrits en blanc
   par styles/buttons.css, donc invisibles sur fond clair. */
html[data-theme="light"] :is(.btn-back, .btn-winner-ghost, .ticket-button--secondary, .access-button.secondary, .cookie-btn-reject, .btn-logout, .btn-link, .back-button) {
  border-color: rgba(17, 17, 17, 0.3);
  color: #171717;
}

html[data-theme="light"] :is(.btn-back, .btn-winner-ghost, .ticket-button--secondary, .access-button.secondary, .cookie-btn-reject, .btn-logout, .btn-link, .back-button):hover:not(:disabled, [aria-disabled="true"]) {
  border-color: #171717;
  background: rgba(17, 17, 17, 0.06);
  color: #171717;
}

/* Mode jour : pages légales (CGU, Confidentialité, Mentions) — listes et sommaire en blanc à l'origine */
html[data-theme="light"] .legal li,
html[data-theme="light"] .toc a {
  color: #171717;
}

html[data-theme="light"] .toc a:hover {
  color: var(--primary);
}

/* Mode jour : Connexion et Inscription (fond noir et titre blanc à l'origine) */
html[data-theme="light"] .login-container {
  background: transparent;
}

html[data-theme="light"] .login-box {
  background: #ffffff;
  border-color: rgba(17, 17, 17, 0.12);
}

html[data-theme="light"] .login-title,
html[data-theme="light"] .login-subtitle {
  color: #171717;
}

/* Mode jour : logos partenaires dans les titres de catégories (Newav'wrld, Rap Contenders),
   blancs à l'origine → inversés en noir pour rester visibles sur le fond clair. */
html[data-theme="light"] :is(.cat-partner-logo, .cat-rc-logo, #detail-logo, #detail-title img) {
  filter: invert(1);
}
html[data-theme="light"] .cat-section.cat-voted .cat-partner-logo {
  filter: invert(1) grayscale(100%);
}

/* Mode jour : bandeau « Nos partenaires » (styles/partners.css, fond noir à l'origine) */
html[data-theme="light"] section.site-partners {
  --partners-fade-color: #ffffff;
  background: #ffffff;
  border-top-color: rgba(17, 17, 17, 0.08);
}

html[data-theme="light"] .site-partners .site-partners__label {
  color: #171717;
}

html[data-theme="light"] .site-partners img {
  filter: grayscale(100%) brightness(0.42) contrast(1.15);
}

html[data-theme="light"] .site-partners img:hover {
  filter: grayscale(0%) brightness(1);
}

/* Lien « Mode jour / Mode nuit » (scripts/main.js) : même allure que les liens
   légaux voisins (CGU, Cookies…), sans cadre ni fond. */
.theme-toggle {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--primary);
}


/* Photos et logos : pas de glisser-déposer, pas de menu « Enregistrer l'image »
   au long appui sur mobile, pas de sélection (voir aussi scripts/main.js). */
img,
picture,
svg,
video {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Le texte reste sélectionnable ; seuls les contrôles cliquables bloquent la sélection
   pour éviter de surligner un libellé en cliquant ou en double-cliquant. */
button,
.btn,
.hamburger,
.cat-arrow,
[role="button"] {
  -webkit-user-select: none;
  user-select: none;
}

/* --- Playlist Section --- */
.playlist-section {
  padding: 80px 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.playlist-section .container {
  text-align: center;
  padding: 80px 20px 0 20px !important;
}

.playlist-section .section-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #FFFFFF 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.playlist-section .section-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.playlist-embed {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.playlist-embed iframe {
  border-radius: 12px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* --- Utility --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 120px 0;
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 0;
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 20px;
  max-width: 1320px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-left: auto;
  margin-right: 12px;
}

.header-logo-wrap {
  width: 38px;
  min-width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  order: -1;
}

.header-logo-wrap img {
  width: 38px;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.header-logo-wrap img:hover {
  transform: scale(1.04);
}

.mobile-logo-wrap {
  display: none;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  padding: 10px 14px 8px;
  transition: color 0.25s ease, border-color 0.25s ease;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  border-color: var(--primary);
}

.nav-links [data-auth-action="login"] {
  min-width: 110px;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.nav-links [data-auth-action="login"]:hover,
.nav-links [data-auth-action="login"].active {
  border-color: rgba(255, 51, 0, 0.4);
  background: rgba(255, 51, 0, 0.08);
}

.nav-links a::after {
  display: none;
}

.nav-links a:hover::after {
  display: none;
}

.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 10px 24px !important;
  border-radius: 0;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--primary-light) !important;
  box-shadow: 0 0 30px var(--primary-glow);
  transform: translateY(-1px);
}

.nav-cta::after {
  display: none !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  height: 20px;
  position: absolute;
  right: 24px;
  z-index: 1005;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO — Les Flammes style
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  width: 100%;
  max-width: 1280px;
  padding: 0 48px;
}

.hero-left {
  grid-column: 1;
  text-align: left;
  animation: hero-enter 420ms var(--motion-ease-out) 60ms both;
}

.hero-countdown-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.hero-countdown {
  font-family: var(--font-timer);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
}

.hero-center {
  grid-column: 2;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: hero-enter 500ms var(--motion-ease-out) both;
}

.hero-logo {
  width: clamp(180px, 25vw, 320px);
  height: auto;
}

.hero-edition {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
}

.hero-right {
  text-align: right;
}

.hero-vote-link {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 800;
  font-style: italic;
  color: var(--text);
  text-transform: uppercase;
  line-height: 1.1;
  transition:
    color var(--motion-standard) var(--motion-ease-out),
    transform var(--motion-standard) var(--motion-ease-out);
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-vote-link:hover {
  color: var(--primary);
}

.hero-vote-arrow {
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

.hero-vote-link:hover .hero-vote-arrow {
  transform: translateX(4px);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition:
    color var(--motion-standard) var(--motion-ease-out),
    background-color var(--motion-standard) var(--motion-ease-out),
    border-color var(--motion-standard) var(--motion-ease-out),
    box-shadow var(--motion-standard) var(--motion-ease-out),
    transform var(--motion-fast) var(--motion-ease-out);
}

:where(button:not(.hamburger), [role="button"]) {
  transition: transform var(--motion-fast) var(--motion-ease-out);
}

button:not(.hamburger):active,
.btn:active,
[role="button"]:active {
  transform: scale(0.98);
}

button:focus-visible,
.btn:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--primary-light);
    box-shadow: 0 0 24px rgba(255, 51, 0, 0.28);
    transform: translateY(-1px);
  }
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: var(--bg-glass);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(255, 51, 0, 0.1);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
  background: var(--bg-surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 20px;
}

.about-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.about-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
  padding: 24px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition:
    border-color var(--motion-standard) var(--motion-ease-out),
    transform var(--motion-standard) var(--motion-ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .stat-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
  }
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  display: block;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ========================================
   CATEGORIES — Les Flammes style
   ======================================== */
.cat-section {
  border-top: 1px solid var(--border);
  padding: 24px 0 28px;
}

.cat-header {
  max-width: 1400px;
  margin: 0 auto 24px auto;
  padding: 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.btn-vote-now {
  background: var(--primary);
  color: #fff;
  padding: 10px 24px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 1px;
  transition: 0.3s;
}

.btn-vote-now:hover {
  background: #fff;
  color: #000;
  transform: scale(1.05);
}


.cat-header-link {
  cursor: pointer;
  transition: var(--transition);
}

.cat-header-link:hover .cat-title {
  color: var(--text-muted);
}

.cat-arrow-title {
  display: inline-block;
  font-style: normal;
  font-size: 0.7em;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  vertical-align: middle;
}

.cat-header-link:hover .cat-arrow-title {
  opacity: 1;
  transform: translateX(0);
}

.cat-num {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-subtle);
  display: block;
  margin-bottom: 8px;
}

.cat-heading-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.cat-heading-row .cat-num {
  display: inline-block;
  flex: 0 0 auto;
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.cat-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  font-style: italic;
  line-height: 1.1;
}

.cat-subtitle {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 8px;
}

.cat-scroll {
  position: relative;
  display: flex;
  align-items: flex-start;
}

.cat-viewport {
  flex: 1;
  overflow: hidden;
  margin: 0 55px;
  /* Crée l'espace vide pour les flèches */
  position: relative;
}

.cat-track {
  display: flex;
  gap: 10px;
  padding: 0;
  /* Plus besoin de padding ici, le viewport s'en charge */
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cat-track::-webkit-scrollbar {
  display: none;
}

/* ========================================
   NOMINEE BIG CARDS (page categorie.html)
   ======================================== */
.nominee-big-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition:
    border-color var(--motion-standard) var(--motion-ease-out),
    transform var(--motion-standard) var(--motion-ease-out);
  overflow: hidden;
  position: relative;
}

@media (hover: hover) and (pointer: fine) {
  .nominee-big-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
  }
}

.nominee-big-img {
  object-fit: cover;
  filter: grayscale(100%) blur(10px);
  -webkit-filter: grayscale(100%) blur(10px);
  transform: scale(1.15);
  -webkit-transform: scale(1.15);
  transition:
    filter 500ms var(--motion-ease-out),
    transform 500ms var(--motion-ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .nominee-big-card:hover .nominee-big-img {
    transform: scale(1.05);
  }
}

.nominee-big-card.revealed .nominee-big-img {
  filter: grayscale(0%) blur(0);
  -webkit-filter: grayscale(0%) blur(0);
  transform: scale(1);
  -webkit-transform: scale(1);
}

/* ========================================
   NOMINEE CARDS (scroll categories.html)
   ======================================== */
.nominee-card {
  flex: 0 0 calc((100% - (10px * 6)) / 7);
  /* Affiche exactement 7 items avec les gaps de 10px */
  min-width: 150px;
  /* Taille minimale pour rester lisible sur petit écran */
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform var(--motion-standard) var(--motion-ease-out);
}

.nominee-img-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #111;
  box-shadow: var(--photo-shadow);
  margin-bottom: 15px;
  position: relative;
  overflow: hidden;
}

.nominee-img-box.is-loading::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.12) 48%, transparent 72%) 0 0 / 220% 100%,
    #171717;
  /* Le cadre gris n'apparaît qu'après 150 ms : une photo déjà en mémoire s'affiche sans lui. */
  animation: sika-skeleton-appear 1ms linear 150ms both, sika-image-skeleton 1.25s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sika-skeleton-appear {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Photo déjà en mémoire (marquée par la page) : affichage immédiat, sans fondu. */
.nominee-img-box.is-instant img,
.nominee-carousel-item.is-instant img {
  transition: none;
}

@keyframes sika-image-skeleton {
  to { background-position: -220% 0, 0 0; }
}

html[data-theme="light"] .nominee-img-box.is-loading::before,
html[data-theme="light"] .nominee-carousel-item.is-loading::before {
  background:
    linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.92) 48%, transparent 72%) 0 0 / 220% 100%,
    #e8eae6;
}

html[data-theme="night"] .nominee-img-box.is-loading::before,
html[data-theme="night"] .nominee-carousel-item.is-loading::before {
  background:
    linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.10) 48%, transparent 72%) 0 0 / 220% 100%,
    #111111;
}

@media (prefers-reduced-motion: reduce) {
  .nominee-img-box.is-loading::before,
  .nominee-carousel-item.is-loading::before {
    animation: none;
  }
}

.nominee-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: grayscale(100%) blur(10px);
  -webkit-filter: grayscale(100%) blur(10px);
  transform: scale(1.15);
  -webkit-transform: scale(1.15);
  transition:
    opacity 240ms ease,
    filter 320ms var(--motion-ease-out),
    transform 320ms var(--motion-ease-out);
}

.nominee-img-box.is-loaded img {
  opacity: 1;
}

.nominee-img-box.is-error {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
    #111;
}

.nominee-img-box.is-error img {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .nominee-card:hover {
    transform: translateY(-3px);
  }

  /* Survol : le nom passe en rouge (la photo se défloute au clic). */
  .nominee-card .nominee-name-label { transition: color 0.2s ease; }
  /* !important : le mode jour force la couleur des noms en noir. */
  html[data-theme] .nominee-card:hover .nominee-name-label { color: var(--primary) !important; }

  .nominee-card:hover .nominee-img-box img {
    transform: scale(1.05);
  }
}

.nominee-card.revealed .nominee-img-box img {
  filter: grayscale(0%) blur(0);
  -webkit-filter: grayscale(0%) blur(0);
  transform: scale(1);
  -webkit-transform: scale(1);
}

.nominee-card.revealed .nominee-info {
  filter: blur(0);
  opacity: 1;
}

.nominee-card.is-restored .nominee-img-box img,
.nominee-card.is-restored .nominee-info,
.nominee-big-card.is-restored .nominee-big-img,
.nominee-big-card.is-restored .nominee-big-info {
  transition: none;
}

.nominee-info {
  padding: 0;
  text-align: center;
  filter: blur(6px);
  opacity: 0.2;
  transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.nominee-name-label {
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 2px;
}

.nominee-sub-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  opacity: 0.7;
}

.nominee-project-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
  opacity: 0.9;
}


/* ========================================
   CATEGORIES GRID (accueil.html)
   ======================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
  gap: 24px;
}

.category-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition:
    border-color var(--motion-standard) var(--motion-ease-out),
    transform var(--motion-standard) var(--motion-ease-out);
  cursor: pointer;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--motion-ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .category-card:hover::before {
    transform: scaleX(1);
  }

  .category-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
  }
}

.category-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.6;
}

.category-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.category-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ========================================
   SECTION HEADER
   ======================================== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ========================================
   CEREMONY / VIDEO SECTION
   ======================================== */
.ceremony-video {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.ceremony-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: var(--primary);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 0 40px var(--primary-glow);
}

.play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 60px var(--primary-glow);
}

.play-btn svg {
  width: 28px;
  height: 28px;
  fill: white;
  margin-left: 4px;
}

/* ========================================
   GALLERY
   ======================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 51, 0, 0.0);
  transition: var(--transition);
}

.gallery-item:hover::after {
  background: rgba(255, 51, 0, 0.15);
}

/* ========================================
   FOOTER — Figma inspired
   ======================================== */
.footer {
  /* RÉGLAGE : espace au-dessus et en dessous du contenu du pied de page (= sa hauteur) */
  --footer-padding-y: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 2, 2, 0.96);
  padding: var(--footer-padding-y) 0;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-social,
.footer-legal {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-social a,
.footer-legal a {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.footer-social a:hover,
.footer-legal a:hover {
  color: #fff;
}

.footer-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.7rem;
}

.footer-logo img {
  height: 24px;
  width: auto;
  filter: grayscale(100%) opacity(0.7);
  transition: var(--transition);
}

.footer-logo img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.footer-legal a,
.footer-social a {
  position: relative;
  padding-bottom: 2px;
}

.footer-legal a::after,
.footer-social a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.footer-legal a:hover::after,
.footer-social a:hover::after {
  width: 100%;
}

/* Liens légaux du pied de page (CGU · Cookies · Mentions légales · Mode jour) :
   même style discret que sur l’accueil. RÉGLAGE : --footer-legal-size = taille du texte. */
.footer-legal {
  --footer-legal-size: 0.6rem;
  gap: 5px;
  /* laisse la place à la flèche « remonter » fixée en bas à droite */
  padding-right: 44px;
  font-size: var(--footer-legal-size);
  color: rgba(255, 255, 255, 0.35);
}

.footer-legal a,
.footer-legal .theme-toggle,
.footer-legal .footer-sep {
  font-size: var(--footer-legal-size);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.35);
}

.footer-legal a::after {
  display: none;
}

.footer-legal a:hover,
.footer-legal .theme-toggle:hover {
  color: var(--primary);
}

html[data-theme="light"] .footer-legal,
html[data-theme="light"] .footer-legal a,
html[data-theme="light"] .footer-legal .theme-toggle,
html[data-theme="light"] .footer-legal .footer-sep {
  color: #000000;
}

html[data-theme="light"] .footer-legal a:hover,
html[data-theme="light"] .footer-legal .theme-toggle:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .footer-legal {
    padding-right: 0;
  }
}

/* Réseaux sociaux du pied de page : petites icônes sobres.
   RÉGLAGES : --footer-icon-size = taille des icônes, --footer-icon-gap = espace entre elles. */
.footer-social {
  --footer-icon-size: 17px;
  --footer-icon-gap: 16px;
  gap: var(--footer-icon-gap);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-social a::after {
  display: none;
}

.footer-social a svg {
  width: var(--footer-icon-size);
  height: var(--footer-icon-size);
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--primary);
  transform: translateY(-1px);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

@keyframes scrollDown {
  0% {
    top: -100%;
  }

  100% {
    top: 100%;
  }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--motion-enter) var(--motion-ease-out),
    transform var(--motion-enter) var(--motion-ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.cat-section.reveal {
  transition-duration: 1.2s;
}

.category-card.reveal {
  transition:
    opacity var(--motion-enter) var(--motion-ease-out),
    border-color var(--motion-standard) var(--motion-ease-out),
    transform var(--motion-enter) var(--motion-ease-out);
}

.category-card.reveal.visible {
  transition:
    opacity var(--motion-enter) var(--motion-ease-out),
    border-color var(--motion-standard) var(--motion-ease-out),
    transform var(--motion-standard) var(--motion-ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .category-card.reveal.visible:hover {
    transition:
      border-color var(--motion-standard) var(--motion-ease-out),
      transform var(--motion-standard) var(--motion-ease-out);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .reveal,
  .reveal.visible {
    opacity: 1;
    transform: none;
  }

  .partners-marquee {
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .partners-track {
    animation: none !important;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
}

/* ========================================
   MOBILE NAV
   ======================================== */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.mobile-nav a:hover {
  color: var(--primary);
}

/* ========================================
   RESPONSIVE — TABLETTE (max 1024px)
   ======================================== */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

/* ========================================
   RESPONSIVE — MOBILE (max 768px)
   ======================================== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header {
    padding: 2px 0;
  }

  .mobile-logo-wrap img {
    height: 16px;
    width: auto;
  }

  .header .btn-logout-global {
    display: none;
  }

  .header .container {
    min-height: 36px;
  }

  .mobile-logo-wrap {
    display: flex;
    align-items: center;
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1002;
  }

  .mobile-logo-wrap img {
    height: 16px;
    width: auto;
    max-width: none;
    object-fit: contain;
  }

  .header-logo-wrap {
    display: none;
  }

  .section-padding {
    padding: 64px 0;
  }

  .playlist-section .section-title {
    font-size: 2rem;
  }

  .playlist-section .section-subtitle {
    font-size: 1rem;
  }

  .playlist-embed {
    padding: 10px;
  }

  .container {
    padding: 0 16px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 24px;
    text-align: center;
  }

  .hero-left,
  .hero-center,
  .hero-right {
    grid-column: 1;
    text-align: center;
  }

  .hero-vote-link {
    justify-content: center;
    font-size: 1.5rem;
  }

  .hero-watermark {
    display: none;
  }

  .hero-logo {
    width: clamp(160px, 45vw, 240px);
  }

  .about-title {
    font-size: 1.5rem;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-item {
    padding: 12px 6px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    padding: 28px 24px;
  }

  .category-number {
    font-size: 2rem;
  }

  .cat-viewport {
    margin: 0;
  }

  .cat-header {
    display: contents;
  }

  .cat-section {
    display: flex;
    flex-direction: column;
  }

  .cat-section.is-collapsed .cat-header-link {
    margin-bottom: 0;
  }

  .cat-section.is-collapsed .cat-header-vote-link {
    margin-top: 0;
  }

  .cat-header-link,
  .cat-header-vote-link {
    width: auto;
    margin-inline: 16px;
    text-align: left;
  }

  .cat-header-link {
    order: 0;
    margin-bottom: 12px;
  }

  .cat-scroll {
    order: 1;
  }

  .cat-header-vote-link {
    order: 2;
    margin-top: 8px;
  }

  .cat-header-vote-link,
  .cat-header-vote-link .cat-title {
    text-align: center;
  }

  .cat-heading-row {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding-inline: 28px;
  }

  .cat-title {
    max-width: 100%;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .cat-track {
    padding: 0;
    gap: 8px;
  }

  .nominee-card {
    flex: 0 0 110px;
    min-width: 110px;
  }

  .nominee-info {
    height: 60px;
  }

  .nominee-name-label {
    font-size: 0.7rem;
    line-height: 1.1;
  }

  .nominee-sub-label {
    font-size: 0.6rem;
  }

  .nominee-project-label {
    font-size: 0.55rem;
  }

  .cat-title {
    font-size: 1rem;
  }

  .cat-heading-row .cat-num {
    font-size: 0.72rem;
    line-height: 1;
    text-align: center;
    transform: none;
  }

  .cat-arrow {
    display: none !important;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .section-subtitle {
    font-size: 0.85rem;
  }

  .footer-row {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .btn {
    padding: 14px 28px;
    font-size: 0.85rem;
  }
}

/* ========================================
   RESPONSIVE — PETIT MOBILE (max 480px)
   ======================================== */
@media (max-width: 480px) {
  .hero-watermark {
    font-size: 4rem;
  }

  .hero-logo {
    width: 120px;
  }

  .hero-countdown {
    font-size: 0.85rem;
  }

  .hero-vote-link {
    font-size: 1.1rem;
  }

  .nominee-card {
    flex: 0 0 95px;
    min-width: 95px;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .nominees-grid {
    grid-template-columns: 1fr;
  }

  .category-number {
    font-size: 1.6rem;
  }
}

/* Custom Sharp Arrow */
.icon-arrow {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-arrow svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cat-header:hover .icon-arrow {
  transform: translateX(8px);
}

/* --- NAVIGATION ARROWS (RECTANGLE STYLE) --- */
.cat-arrow {
  position: absolute;
  top: 0;
  width: 44px;
  height: 162px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: 0.3s;
  transform: none;
  /* Désactive tout décalage parasite */
}

.cat-arrow.prev {
  left: 10px;
  /* Espace depuis la gauche de l'écran */
}

.cat-arrow.next {
  right: 10px;
  /* Espace depuis la droite de l'écran */
}

.cat-arrow:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.cat-arrow .icon-arrow {
  width: 18px;
  height: 18px;
}

/* Hauteur des flèches = hauteur exacte d'une photo (carré = largeur d'une carte).
   Largeur d'une carte = (largeur du bloc - 2 x 55px de marge - 6 gaps de 10px) / 7 */
@supports (width: 1cqw) {
  .cat-arrow {
    height: max(150px, calc((100cqw - 110px - 60px) / 7));
  }
}

/* Bouton Voter Discret */
.btn-vote-now {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: 0.3s;
}

.btn-vote-now:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ========================================
   NAVBAR — états actif / scroll / mobile
   ======================================== */
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { width: 100%; }
.nav-links a:focus-visible, .mobile-nav a:focus-visible, .hamburger:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 4px;
}
.hamburger { background: none; border: 0; padding: 0; }
.hamburger::after { content: ''; position: absolute; inset: -14px; } /* zone de tap agrandie */
body.nav-open { overflow: hidden; }
.mobile-nav { padding: 80px 24px calc(40px + env(safe-area-inset-bottom)); overflow-y: auto; }
.mobile-nav { gap: 2px; }
/* RÉGLAGE : taille des liens du menu téléphone */
.mobile-nav a { font-size: clamp(1.05rem, 5vw, 1.3rem); letter-spacing: 1.5px; padding: 10px 0; text-align: center; }
.mobile-nav a.active { color: var(--primary); }
@media (min-width: 769px) { .mobile-nav { display: none; } }
@media (prefers-reduced-motion: reduce) { .mobile-nav { transition: none; } }

.motion-back-top {
  position: fixed;
  z-index: 1000;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font: 700 1.1rem var(--font-body);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 350ms ease-out, transform 350ms var(--motion-ease-out);
}

.motion-back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 480px) {
  .motion-back-top {
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-back-top {
    transition: none;
  }
}
body.nav-open .cookie-banner { display: none; } /* la bannière ne doit pas masquer le menu mobile */

