/* Base */
:root {
  --header-h: 0px; /* pas d'entête sur la page d'accueil */
  --bg: #3b0a0a; /* rouge sombre */
  --panel: #4a0f0f; /* panneau bordeaux */
  --text: #e5e7eb;
  --muted: #fca5a5; /* rouge clair pour textes secondaires */
  --primary: #ef4444; /* rouge */
  --primary-contrast: #3b0a0a;
  --sidebar-w: 280px; /* largeur tiroir */
  --sidebar-gap: 24px; /* espace de sécurité entre menu et contenu */
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, "Noto Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* Effet flocons de neige en fond */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 20% 10%, rgba(255,255,255,0.9), rgba(255,255,255,0)),
    radial-gradient(2px 2px at 80% 30%, rgba(255,255,255,0.8), rgba(255,255,255,0)),
    radial-gradient(3px 3px at 50% 0%, rgba(255,255,255,0.7), rgba(255,255,255,0)),
    radial-gradient(1.5px 1.5px at 10% 70%, rgba(255,255,255,0.8), rgba(255,255,255,0)),
    radial-gradient(2.5px 2.5px at 90% 60%, rgba(255,255,255,0.85), rgba(255,255,255,0));
  background-repeat: repeat;
  background-size: 400px 400px, 500px 500px, 600px 600px, 450px 450px, 550px 550px;
  animation: snowMove 18s linear infinite;
  opacity: 0.65;
  z-index: 0; /* en arrière-plan */
}
@keyframes snowMove {
  0% { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 0 1000px, 0 800px, 0 1200px, 0 900px, 0 1100px; }
}
img { max-width: 100%; display: block; }
.container { width: min(1100px, 92%); margin: 0 auto; }
/* Bouton Discord fixe haut droite */
.discord-btn { position: fixed; top: 10px; right: 10px; z-index: 70; display: inline-flex; align-items: center; gap: 6px; padding: 0.55rem 0.75rem; font: 600 0.85rem 'Inter', sans-serif; color: #fff; background: #5865F2; border: 1px solid rgba(255,255,255,0.25); border-radius: 10px; text-decoration: none; line-height: 1; box-shadow: 0 4px 14px rgba(0,0,0,0.35); transition: background 0.2s ease, transform 0.2s ease; }
.discord-btn:hover { background: #4752d9; transform: translateY(-2px); }
.discord-btn:active { transform: translateY(0); }
.discord-btn svg { width: 16px; height: 16px; fill: currentColor; }

/* Badge utilisateur Discord en bas à droite */
.discord-user-badge { position: fixed; right: 12px; bottom: 12px; z-index: 70; display: none; align-items: center; gap: 6px; padding: 0.55rem 0.75rem; font: 600 0.85rem 'Inter', sans-serif; color: #0b1220; background: #86efac; border: 1px solid rgba(255,255,255,0.25); border-radius: 10px; line-height: 1; box-shadow: 0 4px 14px rgba(0,0,0,0.35); }

/* Assure que le contenu passe au-dessus des canvases d'arrière-plan */
main, .site-footer { position: relative; z-index: 1; }
.layout { flex: 1 0 auto; }

/* Traîneau en arrière-plan */
.sleigh-layer { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.sleigh { position: fixed; left: -30vw; will-change: transform, top; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5)); image-rendering: auto; isolation: isolate; }
.sleigh-img { display: block; animation: sleigh-bob var(--bob-dur, 3.6s) ease-in-out infinite; transform-origin: 50% 60%; }
@keyframes sleigh-left-right { 0% { transform: translateX(-30vw); } 100% { transform: translateX(130vw); } }
@keyframes sleigh-right-left { 0% { transform: translateX(130vw); } 100% { transform: translateX(-30vw); } }
@keyframes sleigh-bob {
  0% { transform: scaleX(var(--dir, 1)) translateY(0) rotate(0deg); }
  25% { transform: scaleX(var(--dir, 1)) translateY(calc(var(--bob-amp, 8px) * -1)) rotate(calc(var(--tilt, 1.2deg) * -1)); }
  50% { transform: scaleX(var(--dir, 1)) translateY(0) rotate(calc(var(--tilt, 1.2deg) * 0.6)); }
  75% { transform: scaleX(var(--dir, 1)) translateY(var(--bob-amp, 8px)) rotate(var(--tilt, 1.2deg)); }
  100% { transform: scaleX(var(--dir, 1)) translateY(0) rotate(0deg); }
}
/* Orientation gérée via --dir dans l'animation */

/* Header */
/* Aucun entête affiché sur cette page */
.site-header { display: none; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0; }
.nav { display: flex; gap: 1rem; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--text); }
.menu-toggle { display: none; background: none; border: 1px solid rgba(148,163,184,0.25); color: var(--text); padding: 0.4rem 0.6rem; border-radius: 6px; }
/* Centered header */
  .header-bar { display: flex; align-items: center; justify-content: center; padding: 0.5rem 0; transition: transform 240ms ease, opacity 240ms ease; }
  .brand-wrap { display: inline-flex; align-items: center; gap: 0.6rem; }
  .logo { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)); }
  .site-title { margin: 0; font-size: 1.6rem; letter-spacing: 0.8px; }
  .fancy-title { font-family: 'Poppins', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, "Noto Sans", sans-serif; font-weight: 700; }
  /* Animations du logo et du titre */
  @keyframes logo-float {
    0%   { transform: translateY(0) scale(1) rotate(0deg); filter: drop-shadow(0 3px 10px rgba(0,0,0,0.5)); }
    50%  { transform: translateY(-8px) scale(1.05) rotate(-1.2deg); filter: drop-shadow(0 10px 18px rgba(0,0,0,0.55)); }
    100% { transform: translateY(0) scale(1) rotate(0deg); filter: drop-shadow(0 3px 10px rgba(0,0,0,0.5)); }
  }
  @keyframes title-sheen {
    0%   { background-position: 0% 50%; }
    33%  { background-position: 60% 50%; }
    66%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  .hero-brand:hover .hero-logo,
  .hero-brand:hover .hero-title { animation-play-state: paused; }

/* Hero */
.hero { padding: 4rem 0 3rem; background: radial-gradient(1200px 400px at 10% -10%, rgba(239,68,68,0.25), transparent), radial-gradient(800px 300px at 90% 10%, rgba(239,68,68,0.15), transparent); }
.hero-inner { text-align: center; }
.hero h1 { font-size: clamp(1.8rem, 3.5vw, 3rem); line-height: 1.2; margin: 0 0 1rem; }
.hero-brand { display: inline-flex; align-items: center; gap: 0.8rem; margin-bottom: 0.5rem; background: rgba(239,68,68,0.12); border: 1px solid rgba(255,255,255,0.15); border-radius: 14px; padding: 0.6rem 0.9rem; }
.hero-logo { width: 120px; height: 120px; object-fit: contain; filter: drop-shadow(0 3px 10px rgba(0,0,0,0.5)); border-radius: 12px; will-change: transform, filter; animation: logo-float 4.5s ease-in-out infinite; }
.hero-logo { cursor: pointer; }
.hero-title { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); will-change: background-position, text-shadow; background: linear-gradient(90deg, #ffffff 0%, #ff9aa2 35%, #ff4d5a 50%, #ff9aa2 65%, #ffffff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 3px 10px rgba(0,0,0,0.35); animation: title-sheen 3.8s linear infinite; }
.hero p { color: var(--muted); max-width: 720px; margin: 0 auto 1.5rem; }
.actions { display: flex; justify-content: center; gap: 0.75rem; }

/* Sections */
.section { padding: 3rem 0; }
.section.alt { background: var(--panel); }
.section h2 { margin: 0 0 1.25rem 0; font-size: 1.6rem; }

/* Zone de texte stylée pour l'accueil */
.section .content {
  background: rgba(42, 10, 10, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  max-width: 900px;
  margin: 0 auto;
}
.section .content p { 
  margin: 0 0 1.1rem 0; 
  color: var(--text); 
  line-height: 1.85; 
}
.section .content .lead { 
  font-size: 1.05rem; 
  color: #ffe0e0; 
}
.section .content .accent {
  position: relative;
  padding-left: 0.9rem;
}
.section .content .accent::before {
  content: "";
  position: absolute;
  left: 0; top: 0.4rem;
  width: 4px; height: calc(100% - 0.8rem);
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(239,68,68,0.9), rgba(239,68,68,0.4));
}
.section .content p:last-child { margin-bottom: 0; }

/* Organigramme */
.org-section { margin-top: 2rem; }
.org-heading { margin: 0 0 1rem 0; font-size: 1.8rem; font-weight: 800; text-align: center; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.org-title { margin: 0 0 1rem 0; font-size: 1.4rem; }
.org-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.org-grid .org-card:nth-child(1),
.org-grid .org-card:nth-child(3) { margin-top: 22px; }
.org-card { background: rgba(42, 10, 10, 0.9); border: 1px solid rgba(255,255,255,0.15); border-radius: 14px; padding: 1.1rem; box-shadow: 0 10px 24px rgba(0,0,0,0.3); display: grid; gap: 0.75rem; align-content: start; justify-items: center; text-align: center; position: relative; }
.role-title { font-size: 1.1rem; font-style: italic; text-decoration: underline; color: #ffe6a3; margin-bottom: 0.25rem; }
.org-icon { 
  display: inline-block; 
  font-size: 1.4rem; 
  line-height: 1; 
  color: #fbbf24; /* fallback */
  background: linear-gradient(180deg, #ffd66e, #f39c12);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 6px rgba(0,0,0,0.35);
  background-size: 100% 200%;
  background-position: 50% 0%;
  will-change: background-position;
  animation: star-gradient 2.4s linear infinite;
}

/* Animation de dégradé en mouvement (faible coût) */
@keyframes star-gradient {
  0%   { background-position: 50% 0%; }
  50%  { background-position: 50% 100%; }
  100% { background-position: 50% 0%; }
}

/* Vitesses différenciées selon le rang (optionnel) */
.org-card:nth-child(2) .org-icon { animation-duration: 2.0s; } /* Logan */
.org-card:nth-child(1) .org-icon { animation-duration: 2.6s; } /* Hidéo */
.org-card:nth-child(3) .org-icon { animation-duration: 2.8s; } /* Ana */
.org-name { width: 100%; background: #2a0a0a; border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 0.7rem 0.9rem; font-weight: 700; letter-spacing: 0.3px; position: relative; overflow: visible; cursor: pointer; }

/* Animation au clic sur les noms (burst) */
.star-burst { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
/* Variante historique: étoiles dorées */
.star-burst .star { 
  position: absolute; 
  font-size: 1.2rem; 
  line-height: 1; 
  background: linear-gradient(180deg, #ffd66e, #f39c12);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 2px 6px rgba(0,0,0,0.35);
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  will-change: transform, opacity;
  animation: star-burst-move var(--dur, 800ms) ease-out var(--delay, 0ms) forwards;
}
/* Variante générique pour les emojis colorés */
.star-burst .burst-char {
  position: absolute;
  font-size: 1.35rem;
  line-height: 1;
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  will-change: transform, opacity;
  text-shadow: 0 1px 4px rgba(0,0,0,0.25);
  animation: star-burst-move var(--dur, 800ms) ease-out var(--delay, 0ms) forwards;
}
@keyframes star-burst-move {
  0% { opacity: 0; transform: translate(calc(-50% + 0px), calc(-50% + 0px)) scale(0.7); }
  20% { opacity: 1; transform: translate(calc(-50% + var(--dx, 0px) * 0.2), calc(-50% + var(--dy, 0px) * 0.2)) scale(1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))) scale(0.95); }
}
.nameplate { display: inline-block; padding: 0.55rem 1rem; background: linear-gradient(180deg, #ffe6a3 0%, #f5b041 35%, #e67e22 58%, #cf6d15 78%, #ffe6a3 100%); color: #3b0a0a; border: 1px solid rgba(207,109,21,0.85); border-radius: 12px; font-weight: 800; letter-spacing: 0.5px; box-shadow: 0 6px 16px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.8), inset 0 -1px 0 rgba(207,109,21,0.6); position: relative; text-transform: none; }
.nameplate::before { content: "★"; position: absolute; left: -16px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, #ffc56a, #e67e22); color: #3b0a0a; border: 1px solid rgba(207,109,21,0.85); border-radius: 50%; font-size: 0.9rem; box-shadow: 0 4px 10px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.9); }
.nameplate:hover { filter: brightness(1.03); }
.org-photo { width: 100%; max-width: 220px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; border: 1px solid rgba(255,255,255,0.18); box-shadow: 0 8px 20px rgba(0,0,0,0.35); background: #2a0a0a; padding: 6px; }
.org-photo { cursor: zoom-in; }

/* Lightbox */
.lightbox-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(2px); display: none; align-items: center; justify-content: center; z-index: 1000; }
.lightbox-overlay.active { display: flex; }
.lightbox-content { position: relative; max-width: 92vw; max-height: 92vh; }
.lightbox-img { display: block; max-width: 92vw; max-height: 92vh; border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2); }
.lightbox-close { position: absolute; top: -10px; right: -10px; background: rgba(0,0,0,0.7); color: #fff; border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; width: 34px; height: 34px; display: grid; place-items: center; font-weight: 700; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,0.4); }

/* Santa overlay */
.santa-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: none; align-items: center; justify-content: center; z-index: 1100; backdrop-filter: blur(2px); }
.santa-overlay.active { display: flex; }
.santa-wrap { position: relative; padding: 1rem 1.2rem 1.2rem; border-radius: 16px; background: rgba(42,10,10,0.96); border: 1px solid rgba(255,255,255,0.2); box-shadow: 0 20px 50px rgba(0,0,0,0.55); text-align: center; animation: santa-pop 300ms cubic-bezier(0.22,1,0.36,1); }
.santa-body { position: relative; display: inline-block; }
.santa-emoji { font-size: clamp(6rem, 14vw, 10rem); filter: drop-shadow(0 6px 16px rgba(0,0,0,0.4)); display: inline-block; }
.santa-hand { position: absolute; right: -12%; top: 6%; font-size: clamp(2.2rem, 6vw, 3.2rem); transform-origin: 5% 60%; animation: santa-wave 1.2s ease-in-out infinite; text-shadow: 0 4px 10px rgba(0,0,0,0.35); }
.santa-speech { margin-top: 0.6rem; font-size: clamp(1.1rem, 2.8vw, 1.4rem); color: #ffe6a3; font-weight: 800; letter-spacing: 0.4px; }
.santa-close { position: absolute; top: -10px; right: -10px; background: rgba(0,0,0,0.7); color: #fff; border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; width: 36px; height: 36px; display: grid; place-items: center; font-weight: 700; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,0.4); }

@keyframes santa-pop { 0% { transform: scale(0.92); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes santa-wave {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(18deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(-18deg); }
  100% { transform: rotate(0deg); }
}

@media (max-width: 900px) {
  .org-grid { grid-template-columns: 1fr; }
  .org-grid .org-card:nth-child(1),
  .org-grid .org-card:nth-child(3) { margin-top: 0; }
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { background: #2a0a0a; border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; padding: 1rem; }
.card h3 { margin: 0 0 0.5rem; }
.card p { color: var(--muted); }

/* Contact form */
.contact-form .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
label { display: grid; gap: 0.35rem; font-weight: 600; color: var(--muted); }
input, textarea { background: #2a0a0a; border: 1px solid rgba(255,255,255,0.25); color: var(--text); padding: 0.6rem 0.7rem; border-radius: 10px; font: inherit; }
input:focus, textarea:focus { outline: 2px solid rgba(239,68,68,0.35); border-color: rgba(239,68,68,0.5); }
.form-status { margin-top: 0.5rem; color: var(--muted); min-height: 1.5rem; }

/* Buttons */
.btn { display: inline-block; text-decoration: none; color: var(--text); border: 1px solid rgba(255,255,255,0.25); padding: 0.6rem 0.9rem; border-radius: 10px; font-weight: 600; }
.btn.primary { background: var(--primary); color: var(--primary-contrast); border-color: var(--primary); }
.btn.primary:hover { filter: brightness(1.05); }
.btn:hover { border-color: rgba(148,163,184,0.45); }

/* Footer */
.site-footer { border-top: 1px solid rgba(255,255,255,0.15); padding: 1rem 0; background: rgba(74,15,15,0.6); box-sizing: border-box; }
.site-footer p { margin: 0; color: var(--muted); }
/* Eviter que le footer passe sous le tiroir latéral */
@media (min-width: 900px) {
  .site-footer { padding-left: calc(var(--sidebar-w) + var(--sidebar-gap)); }
}
@media (max-width: 899.98px) {
  /* Dégagement minimum pour l'onglet du tiroir sur mobile/tablette */
  .site-footer { padding-left: 40px; }
}

/* Responsive */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .contact-form .grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav { display: none; position: absolute; right: 4%; top: 56px; background: #0b1220; border: 1px solid rgba(148,163,184,0.25); border-radius: 12px; padding: 0.5rem; flex-direction: column; }
  .menu-toggle { display: inline-block; }
  .actions { flex-direction: column; }
}
/* Layout with sidebar */
.layout { position: relative; }
.sidebar { position: fixed; left: 0; top: 0; z-index: 60; width: 280px; height: 100vh; padding: 0.75rem 0.75rem 2.5rem; border-right: 1px solid rgba(255,255,255,0.15); background: rgba(74,15,15,0.95); backdrop-filter: blur(6px); transform: translateX(calc(-100% + 26px)); transition: transform 180ms ease; }
.drawer:hover { transform: translateX(0); }
.sidebar { position: fixed; left: 0; top: 0; z-index: 60; width: 280px; height: 100vh; padding: 0.75rem 0.75rem 2.5rem; border-right: 1px solid rgba(255,255,255,0.15); background: rgba(74,15,15,0.92); backdrop-filter: blur(8px); transform: translateX(calc(-100% + 26px)); transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1); }
.drawer.fancy { border-top-right-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
.drawer.fancy:hover { transform: translateX(0); }
.drawer-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.drawer-title { font-weight: 700; }
.drawer-tab { position: absolute; right: -26px; top: 12px; width: 26px; height: 120px; display: grid; place-items: center; font-size: 0.7rem; letter-spacing: 1px; writing-mode: vertical-rl; text-orientation: mixed; background: var(--primary); color: var(--primary-contrast); border-radius: 0 8px 8px 0; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.side-nav { display: grid; gap: 0.5rem; }
.side-nav a { color: #ffd7d7; text-decoration: none; font-weight: 600; padding: 0.45rem 0.6rem; border-radius: 8px; }
.side-nav a:hover { color: var(--text); background: rgba(239,68,68,0.18); }
.side-nav a.active { color: var(--text); background: rgba(239,68,68,0.28); }

/* (Supprimé) Père Noël pendu le long du menu */


@media (max-width: 900px) {
  .sidebar { transform: translateX(calc(-100% + 26px)); }
}

/* Quand l'entête est cachée, le menu remonte en haut de l'écran */
/* plus nécessaire car pas d'entête */
/*.header-hidden .sidebar { top: 0; height: 100vh; }*/

/* Etoiles filantes en arrière-plan */
.shooting-star-layer { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.shooting-star {
  position: fixed;
  top: 0; left: 0;
  width: var(--len, 180px);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.0) 0%, rgba(255,255,255,0.95) 55%, rgba(255,255,255,0.0) 100%);
  filter: drop-shadow(0 0 6px rgba(255,255,210,0.9));
  transform: translate(var(--sx, 0px), var(--sy, 0px)) rotate(var(--angle, -30deg));
  animation: star-move var(--dur, 2.6s) linear forwards;
}
.shooting-star::after {
  content: "";
  position: absolute;
  left: 58%; top: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  background: white;
  box-shadow: 0 0 8px 2px rgba(255,255,220,0.95), 0 0 16px 4px rgba(255,255,200,0.6);
  transform: translate(-50%, -50%);
}
@keyframes star-move {
  0%   { opacity: 0; transform: translate(var(--sx, 0px), var(--sy, 0px)) rotate(var(--angle, -30deg)); }
  10%  { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(var(--sx, 0px) + var(--dx, 800px)), calc(var(--sy, 0px) + var(--dy, -400px))) rotate(var(--angle, -30deg)); }
}
