/* ============================================================
   DGFC - Theme noir / bleu ciel / rouge
   ============================================================ */
:root {
  --sky: #38bdf8;
  --sky-deep: #0ea5e9;
  --red: #ff2a2a;
  --black: #05070d;
  --panel: #0c1018;
  --panel-2: #11161f;
  --text: #e8eef6;
  --muted: #8a97a8;
  --border: #1d2735;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ---------- Fond video / animation ---------- */
.bg-wrap {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: radial-gradient(circle at 70% 20%, #0a1726 0%, var(--black) 60%);
}
.bg-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
#bgYouTube {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;      /* 16:9 par rapport à la largeur */
  min-height: 100vh;
  min-width: 177.78vh;  /* 16:9 par rapport à la hauteur */
  transform: translate(-50%, -50%);
  border: 0;
  opacity: 0.45;
  pointer-events: none;
}
.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5,7,13,.4) 0%, rgba(5,7,13,.85) 70%, var(--black) 100%);
}

/* Animation de secours quand il n'y a pas de video : ciel + jet */
.sky-anim { position: absolute; inset: 0; }
.star {
  position: absolute;
  width: 2px; height: 2px;
  background: #fff;
  border-radius: 50%;
  opacity: .5;
  animation: twinkle 3s infinite ease-in-out;
}
@keyframes twinkle { 0%,100%{opacity:.2} 50%{opacity:.9} }
.jet {
  position: absolute;
  top: 35%;
  left: -160px;
  width: 150px;
  filter: drop-shadow(0 0 14px var(--sky));
  animation: fly 14s linear infinite;
}
@keyframes fly {
  0%   { left: -180px; top: 38%; }
  50%  { top: 30%; }
  100% { left: 110%;  top: 42%; }
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 26px;
  background: rgba(5,7,13,.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav .logo img { height: 46px; display: block; }
.nav-links { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.nav-links a {
  color: var(--text);
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  transition: .2s;
}
.nav-links a:hover { background: var(--panel-2); color: var(--sky); }

.lang-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  transition: .2s;
}
.lang-btn:hover { border-color: var(--sky); }
.flag { width: 22px; height: 15px; border-radius: 3px; display: inline-block; overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 60px;
  position: relative;
}
.hero img.hero-logo {
  width: min(340px, 80vw);
  margin-bottom: 24px;
  filter: drop-shadow(0 0 30px rgba(56,189,248,.4));
  animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--sky), #fff 50%, var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(56,189,248,.25);
}
.hero p.subtitle {
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  margin-top: 10px;
  max-width: 640px;
}
.hero .cta {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  border: none;
  cursor: pointer;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 12px;
  font-size: 1rem;
  transition: .2s transform, .2s box-shadow;
}
.btn:hover { transform: translateY(-2px); }
.btn-sky { background: var(--sky); color: #04212f; box-shadow: 0 8px 24px rgba(56,189,248,.35); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 24px rgba(255,42,42,.35); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }

/* ---------- Sections ---------- */
section.block {
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 22px;
}
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title::before {
  content: '';
  width: 8px; height: 30px;
  border-radius: 6px;
  background: linear-gradient(var(--sky), var(--red));
}
.section-sub { color: var(--muted); margin-bottom: 28px; }

/* ---------- Cartes reseaux ---------- */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.social-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  transition: .25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.social-card:hover { transform: translateY(-6px); border-color: var(--sky); box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.social-card .ico { width: 46px; height: 46px; color: #fff; display: flex; align-items: center; justify-content: center; transition: transform .25s; }
.social-card .ico svg { width: 100%; height: 100%; display: block; }
.social-card:hover .ico { transform: translateY(-2px) scale(1.08); }
.social-card .label { font-weight: 700; }

/* ---------- Videos ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.video-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.video-card .frame { position: relative; padding-top: 56.25%; }
.video-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card .v-title { padding: 12px 16px; font-weight: 700; }

/* ---------- Calendrier ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-head h3 { font-size: 1.3rem; text-transform: capitalize; }
.cal-nav button {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px; height: 40px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
}
.cal-nav button:hover { border-color: var(--sky); }
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.cal-dow { text-align: center; color: var(--muted); font-weight: 700; font-size: .8rem; padding-bottom: 6px; }
.cal-cell {
  min-height: 78px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  font-size: .85rem;
  position: relative;
}
.cal-cell.empty { background: transparent; border: none; }
.cal-cell.today { border-color: var(--sky); box-shadow: 0 0 0 1px var(--sky) inset; }
.cal-cell .num { color: var(--muted); font-weight: 700; }
.cal-event {
  margin-top: 4px;
  font-size: .72rem;
  padding: 2px 5px;
  border-radius: 6px;
  background: var(--sky);
  color: #04212f;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- News ---------- */
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.news-item h4 { font-size: 1.2rem; margin-bottom: 6px; }
.news-item .date { color: var(--muted); font-size: .8rem; margin-bottom: 8px; }
.news-item img { max-width: 100%; border-radius: 10px; margin-top: 10px; }

/* ---------- Newsletter ---------- */
.newsletter {
  background: linear-gradient(135deg, rgba(56,189,248,.12), rgba(255,42,42,.12));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  text-align: center;
}
.newsletter form { display: flex; gap: 10px; max-width: 460px; margin: 18px auto 0; flex-wrap: wrap; }
.newsletter input {
  flex: 1;
  min-width: 200px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--black);
  color: var(--text);
  font-size: 1rem;
}
.newsletter small { color: var(--muted); display: block; margin-top: 12px; }

/* ---------- Compteurs ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
}
.stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.stat-card .val {
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 900;
  color: var(--sky);
}
.stat-card:nth-child(2) .val { color: #fff; }
.stat-card:nth-child(3) .val { color: var(--red); }
.stat-card .lbl { color: var(--muted); text-transform: uppercase; font-size: .8rem; letter-spacing: 1px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 40px 22px;
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
}
footer .legal { max-width: 760px; margin: 14px auto 0; line-height: 1.7; }
footer .made { margin-top: 10px; }
footer a { color: var(--sky); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--panel-2);
  border: 1px solid var(--sky);
  color: var(--text);
  padding: 14px 22px;
  border-radius: 12px;
  z-index: 200;
  transition: .3s;
  box-shadow: 0 10px 30px rgba(0,0,0,.6);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 150;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  max-width: 440px;
  width: 100%;
}
.modal-box h3 { margin-bottom: 10px; }
.modal-box .date { color: var(--sky); font-weight: 700; margin-bottom: 8px; }

/* reveal au scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: .7s; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 600px) {
  .nav-links { gap: 2px; }
  .nav-links a { padding: 6px 9px; font-size: .82rem; }
  .stats { grid-template-columns: 1fr; }
}

/* ============================================================
   DGFC v2 — style HUD cockpit, entrée, langues, comptes, DC ACTU
   ============================================================ */

/* Lignes de scan (HUD) */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(56,189,248,.03) 0, rgba(56,189,248,.03) 1px, transparent 1px, transparent 3px);
  mix-blend-mode: screen;
}

/* Overlay d'entrée */
.enter-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: radial-gradient(circle at 50% 40%, #0a1726 0%, #02040a 70%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; transition: opacity .8s, visibility .8s;
}
.enter-overlay.hide { opacity: 0; visibility: hidden; }
.enter-overlay img { width: min(420px, 82vw); filter: drop-shadow(0 0 40px rgba(56,189,248,.5)); animation: floaty 5s ease-in-out infinite; }
.enter-overlay .hud-ring {
  margin-top: 18px; position: relative;
}
.enter-btn {
  margin-top: 26px;
  background: transparent; color: var(--sky);
  border: 1px solid var(--sky); padding: 16px 44px; border-radius: 4px;
  font-size: 1.1rem; font-weight: 800; letter-spacing: 4px; text-transform: uppercase; cursor: pointer;
  position: relative; overflow: hidden; transition: .3s;
  box-shadow: 0 0 24px rgba(56,189,248,.25), inset 0 0 18px rgba(56,189,248,.15);
}
.enter-btn:hover { background: var(--sky); color: #02131c; box-shadow: 0 0 40px rgba(56,189,248,.6); }
.enter-corners::before, .enter-corners::after,
.enter-corners > span::before, .enter-corners > span::after { content: ''; position: absolute; width: 22px; height: 22px; border: 2px solid var(--red); }

/* Coins HUD pour les cartes/sections */
.hud { position: relative; }
.hud::before, .hud::after {
  content: ''; position: absolute; width: 16px; height: 16px; pointer-events: none;
}
.hud::before { top: -1px; left: -1px; border-top: 2px solid var(--sky); border-left: 2px solid var(--sky); }
.hud::after  { bottom: -1px; right: -1px; border-bottom: 2px solid var(--red); border-right: 2px solid var(--red); }

/* Glow boutons */
.btn-sky, .btn-red { position: relative; }
.btn-sky:hover { box-shadow: 0 0 28px rgba(56,189,248,.7); }
.btn-red:hover { box-shadow: 0 0 28px rgba(255,42,42,.7); }

/* Menu langues (dropdown drapeaux) */
.lang-wrap { position: relative; }
.lang-menu {
  position: absolute; right: 0; top: 110%;
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 6px; display: none; flex-direction: column; gap: 2px; z-index: 80; min-width: 160px;
  box-shadow: 0 12px 30px rgba(0,0,0,.6);
}
.lang-menu.open { display: flex; }
.lang-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; color: var(--text); }
.lang-opt:hover { background: var(--panel-2); }
.lang-opt .flag { width: 24px; height: 16px; }
.flag svg { width: 100%; height: 100%; display: block; border-radius: 3px; }

/* Barre compte */
.account-bar { display: flex; align-items: center; gap: 8px; }
.chip { background: var(--panel-2); border: 1px solid var(--border); padding: 6px 12px; border-radius: 20px; font-size: .82rem; font-weight: 700; }
.chip.role-admin { border-color: var(--red); color: var(--red); }
.chip.role-staff { border-color: var(--sky); color: var(--sky); }

/* Dernière vidéo */
.last-video { max-width: 760px; margin: 0 auto 10px; }
.last-video .frame { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.last-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Catégories DC ACTU */
.cat-tag { display: inline-block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
  padding: 3px 9px; border-radius: 20px; margin-bottom: 8px; }
.cat-aviation { background: rgba(56,189,248,.18); color: var(--sky); border: 1px solid var(--sky); }
.cat-conflit  { background: rgba(255,42,42,.18); color: var(--red); border: 1px solid var(--red); }
.cat-exercice { background: rgba(250,204,21,.16); color: #facc15; border: 1px solid #facc15; }
.cat-otan     { background: rgba(52,211,153,.16); color: #34d399; border: 1px solid #34d399; }
.cat-general  { background: var(--panel-2); color: var(--muted); border: 1px solid var(--border); }

/* Modal compte */
.auth-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.auth-tabs button { flex: 1; padding: 9px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel-2); color: var(--text); cursor: pointer; font-weight: 700; }
.auth-tabs button.active { background: var(--sky); color: #04212f; border-color: var(--sky); }
.auth-form { display: none; }
.auth-form.active { display: block; }
.auth-form input { width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--border); background: var(--black); color: var(--text); margin-bottom: 10px; }

/* ============================================================
   DGFC v3 — Élégance éditoriale (inspiré portfolio) + couleurs FR
   ============================================================ */
body { font-family: 'DM Sans', system-ui, -apple-system, Arial, sans-serif; }

/* Texture grain subtile */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* Curseur custom (desktop, page publique) */
body.has-cursor { cursor: none; }
body.has-cursor a, body.has-cursor button, body.has-cursor input, body.has-cursor select, body.has-cursor textarea { cursor: none; }
.cursor {
  width: 10px; height: 10px; background: var(--sky); border-radius: 50%;
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%); transition: width .25s, height .25s, background .25s;
  box-shadow: 0 0 14px var(--sky); display: none;
}
.cursor-ring {
  width: 34px; height: 34px; border: 1.5px solid rgba(255,42,42,.7); border-radius: 50%;
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%); transition: width .25s, height .25s, border-color .25s; display: none;
}
body.has-cursor .cursor, body.has-cursor .cursor-ring { display: block; }

/* Typographie éditoriale */
.hero h1 {
  font-family: 'Playfair Display', serif; font-weight: 800; letter-spacing: 0;
  line-height: .98;
}
.hero p.subtitle { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: clamp(1.15rem, 2.6vw, 1.7rem); letter-spacing: .02em; }
.section-title { font-family: 'Playfair Display', serif; font-weight: 800; }
.section-title em, .hero h1 em { font-style: italic; color: var(--sky); }
.hero-logo, .hero h1, .hero p.subtitle, .hero .cta, .hero-scroll { position: relative; z-index: 2; }

/* Blobs organiques (bleu / rouge — couleurs FR) */
.blob {
  position: absolute; border-radius: 60% 40% 70% 30% / 40% 60% 30% 70%;
  opacity: .16; filter: blur(60px); z-index: 0; pointer-events: none;
  animation: morphBlob 14s ease-in-out infinite alternate;
}
.blob-1 { width: 480px; height: 480px; background: var(--sky); top: -120px; left: -140px; }
.blob-2 { width: 420px; height: 420px; background: var(--red); bottom: -120px; right: -120px; animation-delay: -5s; }
.blob-3 { width: 300px; height: 300px; background: #fff; top: 40%; right: 18%; opacity: .06; animation-delay: -9s; }
@keyframes morphBlob {
  0%   { border-radius: 60% 40% 70% 30% / 40% 60% 30% 70%; transform: translate(0,0) rotate(0deg); }
  50%  { border-radius: 40% 60% 30% 70% / 60% 40% 70% 30%; }
  100% { border-radius: 55% 45% 65% 35% / 45% 55% 35% 65%; transform: translate(24px,18px) rotate(6deg); }
}

/* Indicateur de scroll */
.hero-scroll { margin-top: 40px; display: flex; justify-content: center; }
.scroll-line { width: 1px; height: 56px; background: linear-gradient(var(--sky), transparent); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100%{opacity:.3} 50%{opacity:1} }

/* Boutons style pilule élégant */
.btn { border-radius: 100px; letter-spacing: .04em; text-transform: uppercase; font-size: .82rem; font-weight: 700; padding: 14px 30px; }
.section-title { letter-spacing: 0; }

/* Overlay d'entrée raffiné */
.enter-overlay { gap: 26px; background: radial-gradient(ellipse at center, #0a1726 0%, #02040a 100%); }
.enter-noise { position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n2'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n2)'/%3E%3C/svg%3E"); }
.enter-overlay img { animation: entryFade 1.4s ease both, floaty 5s ease-in-out infinite; }
.enter-divider { width: 64px; height: 1px; background: var(--sky); opacity: .6; animation: entryFade 1.4s .2s ease both; }
.enter-btn {
  border-radius: 100px; letter-spacing: .45em; padding: 16px 42px; font-size: .9rem;
  animation: entryFade 1.4s .4s ease both, entryPulse 2.6s 1.6s ease-in-out infinite;
}
.enter-hint {
  font-family: 'Cormorant Garamond', serif; font-size: .95rem; letter-spacing: .35em;
  text-transform: uppercase; color: var(--muted); animation: entryFade 1.4s .7s ease both;
}
@keyframes entryFade { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes entryPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(56,189,248,.4); } 50% { box-shadow: 0 0 0 16px rgba(56,189,248,0); } }

/* Cartes plus douces */
.social-card, .video-card, .news-item, .stat-card, .newsletter { border-radius: 18px; }
.section-sub { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; }

/* Désactive le curseur custom sur tactile / petit écran */
@media (hover: none), (max-width: 768px) {
  body.has-cursor { cursor: auto; }
  body.has-cursor a, body.has-cursor button, body.has-cursor input, body.has-cursor select, body.has-cursor textarea { cursor: auto; }
  .cursor, .cursor-ring { display: none !important; }
}

/* ============================================================
   DGFC v4 — Mobile (burger), maintenance, changelog, thèmes saisonniers
   ============================================================ */

/* Bouton burger (caché sur ordinateur) */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: transparent; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 26px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; display: block; }

/* Page de maintenance */
.maint-overlay {
  position: fixed; inset: 0; z-index: 10001; display: none;
  flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 18px; padding: 32px;
  background: radial-gradient(ellipse at center, #0a1726 0%, #02040a 100%);
}
.maint-overlay.show { display: flex; }
.maint-noise { position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n3'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n3)'/%3E%3C/svg%3E"); }
.maint-overlay img { width: min(340px, 80vw); filter: drop-shadow(0 0 30px rgba(56,189,248,.4)); position: relative; }
.maint-overlay h1 { font-family: 'Playfair Display', serif; font-weight: 800; font-size: clamp(1.8rem, 6vw, 3rem); position: relative; }
.maint-overlay p { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; color: var(--muted); max-width: 480px; position: relative; }
.maint-admin { margin-top: 8px; font-size: .75rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--sky); border: 1px solid var(--border); padding: 11px 22px; border-radius: 100px; position: relative; transition: .25s; }
.maint-admin:hover { border-color: var(--sky); box-shadow: 0 0 22px rgba(56,189,248,.3); }

/* ----- Thèmes saisonniers : particules ----- */
.season-layer { position: fixed; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }
.particle { position: absolute; top: -24px; animation-name: seasonFall; animation-timing-function: linear; animation-iteration-count: infinite; will-change: transform; }
@keyframes seasonFall {
  0%   { transform: translateY(-24px) translateX(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(106vh) translateX(var(--drift, 0)) rotate(360deg); opacity: 0; }
}
.flake  { background: #fff; border-radius: 50%; box-shadow: 0 0 6px rgba(255,255,255,.85); opacity: .9; }
.petal  { background: linear-gradient(135deg, #ff9ec7, #ff5ea0); border-radius: 60% 0 60% 0; opacity: .85; }
.leaf   { background: linear-gradient(135deg, #ea580c, #b45309); border-radius: 0 65% 0 65%; opacity: .85; }
.spooky { background: radial-gradient(circle, #c084fc, #7c3aed); border-radius: 50%; box-shadow: 0 0 8px rgba(168,85,247,.7); opacity: .8; }
.pollen { background: #fde68a; border-radius: 50%; box-shadow: 0 0 6px rgba(253,230,138,.6); opacity: .5; }

/* ----- Thèmes saisonniers : ambiance ----- */
body.theme-christmas .bg-overlay { box-shadow: inset 0 0 220px rgba(220,38,38,.22); }
body.theme-winter    .bg-overlay { box-shadow: inset 0 0 220px rgba(56,189,248,.20); }
body.theme-autumn    .bg-overlay { box-shadow: inset 0 0 220px rgba(234,88,12,.20); }
body.theme-halloween .bg-overlay { box-shadow: inset 0 0 240px rgba(124,58,237,.26); }
body.theme-spring    .bg-overlay { box-shadow: inset 0 0 220px rgba(34,197,94,.16); }
body.theme-summer    .bg-overlay { box-shadow: inset 0 0 220px rgba(250,204,21,.14); }
body.theme-beach     .bg-overlay { box-shadow: inset 0 0 220px rgba(56,189,248,.18); }
/* Guirlande de Noël en haut */
body.theme-christmas .season-layer::before {
  content: ''; position: fixed; top: 0; left: 0; right: 0; height: 5px; z-index: 60;
  background: repeating-linear-gradient(90deg, #d62828 0 18px, #f5f0e8 18px 36px, #2a9d3a 36px 54px);
}

/* ----- Décors saisonniers (props) ----- */
.prop { position: fixed; pointer-events: none; z-index: 4; }
.prop svg { width: 100%; height: 100%; display: block; }

/* Palmiers (été) */
.palm { bottom: 0; height: min(42vh, 380px); width: auto; aspect-ratio: 220/320; transform-origin: bottom center; }
.palm svg { animation: propSway 6s ease-in-out infinite; transform-origin: bottom center; }
.palm-left  { left: -14px; }
.palm-right { right: -14px; transform: scaleX(-1); }
.sun { top: 7%; right: 9%; width: 230px; height: 230px; border-radius: 50%;
  background: radial-gradient(circle, rgba(253,224,71,.6), rgba(251,146,60,.18) 58%, transparent 72%);
  animation: propPulse 5s ease-in-out infinite; }

/* Sapins (hiver / Noël) */
.pine { bottom: 0; height: min(34vh, 320px); aspect-ratio: 160/300; }
.pine-left  { left: 6px; }
.pine-right { right: 6px; }

/* Halloween */
.moon { top: 8%; right: 10%; width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, #f5f3e7, #cfc9ad); box-shadow: 0 0 70px rgba(245,243,231,.45); }
.pumpkin { bottom: 10px; height: 86px; aspect-ratio: 130/100; }
.pumpkin-left { left: 14px; } .pumpkin-right { right: 14px; }
.bat { width: 54px; height: 27px; animation: batFly 9s ease-in-out infinite; opacity: .9; }
.bat-1 { top: 18%; left: 12%; animation-delay: 0s; }
.bat-2 { top: 26%; left: 60%; animation-delay: -3s; transform: scale(.7); }
.bat-3 { top: 14%; left: 78%; animation-delay: -6s; transform: scale(1.2); }

/* Bouees de plage (vue de profil, flottant sur l'eau) */
.buoy { bottom: 6px; width: min(17vw, 185px); height: auto; aspect-ratio: 160/80; }
.buoy svg { animation: propFloat 5s ease-in-out infinite; }
.buoy-left  { left: 26px; }
.buoy-right { right: 26px; width: min(14vw, 155px); }
.buoy-right svg { animation-duration: 6.3s; animation-delay: -1.9s; }
/* la petite au centre est plus loin : plus haute dans la bande, plus petite, plus delavee */
.buoy-mid   { bottom: 34px; left: 50%; transform: translateX(-50%); width: min(9vw, 100px); opacity: .75; }
.buoy-mid svg { animation-duration: 7.1s; animation-delay: -3.4s; }
/* Bande de mer en bas de page */
body.theme-beach .season-layer::after {
  content: ''; position: fixed; left: 0; right: 0; bottom: 0; height: 110px; z-index: -1;
  border-top: 1px solid rgba(191,233,245,.16);
  background: linear-gradient(180deg, rgba(56,189,248,.05) 0%, rgba(30,140,180,.20) 38%, rgba(10,80,110,.44) 100%);
}

/* Fleurs (printemps) */
.flower { bottom: 0; height: 160px; aspect-ratio: 80/150; transform-origin: bottom center; }
.flower svg { animation: propSway 5s ease-in-out infinite; transform-origin: bottom center; }
.flower-left { left: 16px; } .flower-right { right: 16px; }

@keyframes propSway { 0%,100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
@keyframes propPulse { 0%,100% { opacity: .65; } 50% { opacity: 1; } }
@keyframes propFloat { 0%,100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-6px) rotate(1.2deg); } }
@keyframes batFly { 0%,100% { transform: translate(0,0); } 25% { transform: translate(30px,-18px); } 50% { transform: translate(60px,6px); } 75% { transform: translate(24px,16px); } }

/* Flocons plus visibles */
.flake { background: #fff; border-radius: 50%; box-shadow: 0 0 8px rgba(255,255,255,.95); opacity: .95; }

/* Bonnet de Noël sur le logo */
.logo-wrap { position: relative; display: inline-block; }
.santa-hat { position: absolute; top: -24px; left: -16px; width: 80px; transform: rotate(-18deg); display: none; z-index: 3; pointer-events: none; filter: drop-shadow(0 3px 4px rgba(0,0,0,.4)); }
body.theme-christmas .santa-hat { display: block; }

@media (max-width: 600px) {
  .palm { height: 26vh; } .pine { height: 22vh; } .buoy { width: 38vw; } .buoy-right { width: 32vw; } .buoy-mid { width: 22vw; }
  .buoy-mid { display: none; }
  .pumpkin { height: 64px; } .sun, .moon { width: 150px; height: 150px; }
  .santa-hat { width: 60px; top: -18px; left: -10px; }
}

/* ============================================================
   Responsive téléphone
   ============================================================ */
@media (max-width: 820px) {
  .nav { flex-wrap: wrap; padding: 12px 16px; gap: 10px; }
  .nav .logo img { height: 38px; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav.open { background: rgba(5,7,13,.98); }
  .nav-links { display: none; order: 5; width: 100%; flex-direction: column; gap: 2px; padding-top: 10px; margin-left: 0; border-top: 1px solid var(--border); }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 13px 10px; font-size: 1rem; border-radius: 10px; }

  .account-bar { display: none; order: 6; width: 100%; justify-content: center; }
  .nav.open .account-bar { display: flex; }
  .lang-wrap { display: none; order: 7; width: 100%; }
  .nav.open .lang-wrap { display: flex; justify-content: center; }
  .lang-menu { right: auto; left: 50%; transform: translateX(-50%); }
}

@media (max-width: 600px) {
  section.block { padding: 48px 18px; }
  .hero { min-height: 70vh; padding: 90px 18px 40px; }
  .hero .cta { flex-direction: column; width: 100%; }
  .hero .cta .btn { width: 100%; }
  .section-title { font-size: 1.7rem; }

  .calendar { gap: 4px; }
  .cal-dow { font-size: .62rem; }
  .cal-cell { min-height: 52px; padding: 3px; }
  .cal-cell .num { font-size: .72rem; }
  .cal-event { font-size: .58rem; padding: 1px 3px; }
  .cal-head h3 { font-size: 1.05rem; }

  .social-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; }
  .blob { filter: blur(50px); opacity: .12; }
}

@media (max-width: 380px) {
  .social-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2rem, 12vw, 3rem); }
}
