/* Variables */
:root {
  --blue: #0B2C63;
  --yellow: #FFD426;
  --red: #E5342E;
  --white: #fff;
  --dark-bg: #0B0F1C;
  --dark-card: #141A2B;
  --dark-text: #E9ECF5;
}

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

body {
  font-family: 'Barlow Condensed', sans-serif;
  background-color: var(--white);
  color: var(--blue);
  transition: background 0.4s, color 0.4s;
  scroll-behavior: smooth;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--blue);
  padding: 0.8em 1.5em;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.nav-logo img {
  width: 60px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5em;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}

.controls {
  display: flex;
  align-items: center;
  gap: 1em;
}

/* Theme Toggle */
.theme-toggle {
  background: transparent;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: var(--white);
}

/* Burger Menu */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--white);
}

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--yellow) 40%, var(--red));
  color: var(--blue);
  text-align: center;
  padding: 10em 0em 5em;
  margin-top: 10px;
}

.hero-logo {
  width: 400px;
  margin-bottom: -1em;
}

.btn-primary,
.btn-secondary {
  text-decoration: none;
  display: inline-block;
  margin: 0.5em;
  padding: 0.8em 1.5em;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
}

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

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

/* SECTIONS */
section {
  padding: 2em 1.5em;
  text-align: center;
}

.icons {
  margin-top: 1em;
  font-size: 2rem;
}

.program .cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
  margin-top: 2em;
}

.card {
  background: var(--white);
  border: 4px solid var(--blue);
  border-radius: 12px;
  width: 280px;
  padding: 1.2em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background 0.4s, color 0.4s;
}

.card:hover {
  transform: scale(1.05);
}

.info ul {
  list-style: none;
  line-height: 2;
  font-size: 1.1em;
}

.sponsors {
  background: var(--yellow);
}

.sponsor-logos img {
  width: 150px;
  margin: 1em;
}

footer {
  background: var(--blue);
  color: var(--white);
  padding: 1em 0;
  font-size: 0.9em;
}

/* Fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- DARK MODE --- */
body.dark {
  background: var(--dark-bg);
  color: var(--dark-text);
}
body.dark .navbar {
  background: #09102A;
}
body.dark .hero {
  background: linear-gradient(135deg, #2B2F4B, #141A2B);
  color: var(--dark-text);
}
body.dark .card {
  background: var(--dark-card);
  border-color: var(--yellow);
}
body.dark footer {
  background: #11162A;
}
body.dark .btn-secondary {
  background: var(--red);
}
body.dark .btn-primary {
  background: var(--yellow);
  color: var(--blue);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: var(--blue);
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    text-align: center;
    gap: 1em;
    padding: 1em 0;
  }

  .nav-links.active {
    display: flex;
  }

  .burger {
    display: flex;
  }

  .program .cards {
    flex-direction: column;
    align-items: center;
  }

  .hero {
    padding-top: 8em;
  }
}

/* ... (tout le code précédent inchangé) ... */
/* GALLERY */
.gallery {
  background: #f6f6f6;
  padding: 4em 1.5em;
}
.gallery h2 {
  margin-bottom: 0.5em;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1em;
  margin-top: 2em;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s;
}
.gallery-item:hover img {
  transform: scale(1.1);
  filter: brightness(1.2);
}
/* Dark mode adaptation */
body.dark .gallery {
  background: #10182A;
}
body.dark .gallery-item img {
  filter: brightness(0.85);
}
body.dark .gallery-item:hover img {
  filter: brightness(1);
}

.lang-toggle {
  background: transparent;
  border: none;
  font-size: 1.4em;
  cursor: pointer;
  color: white;
  transition: transform 0.2s ease;
}
.lang-toggle:hover {
  transform: scale(1.1);
}

/* SPLASH SCREEN */
#splash {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #FFD426, #E5342E);
  color: #0B2C63;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#splash.hidden {
  opacity: 0;
  visibility: hidden;
}

#splash img {
  width: 160px;
  animation: float 2s ease-in-out infinite;
}

#splash h1 {
  margin-top: 1em;
  font-size: 1.8em;
  text-transform: uppercase;
}

.loader {
  margin-top: 1.5em;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(11,44,99,0.3);
  border-top-color: #0B2C63;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Mode sombre */
body.dark #splash {
  background: linear-gradient(135deg, #0B0F1C, #161C33);
  color: #FFD426;
}

.hero.small {
  padding: 8em 1.5em 4em;
  text-align: center;
  background: linear-gradient(135deg, var(--yellow), var(--red));
  color: var(--blue);
}

.content {
  padding: 3em 1.5em;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.contact-form input, .contact-form textarea {
  padding: 0.8em;
  border: 2px solid var(--blue);
  border-radius: 6px;
  font-family: inherit;
}

.press-files li {
  list-style: none;
  margin: 0.8em 0;
}

.press-files a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.press-files a:hover {
  text-decoration: underline;
}

body.dark .contact-form input,
body.dark .contact-form textarea {
  background: var(--dark-card);
  color: var(--dark-text);
  border-color: var(--yellow);
}

.map-container {
  margin: 2em 0;
  border: 4px solid var(--blue);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.transport-list, .tips-list {
  list-style: none;
  padding: 0;
  margin: 1em 0;
  line-height: 1.8;
}
.transport-list li::before {
  content: "• ";
  color: var(--red);
}
body.dark .map-container {
  border-color: var(--yellow);
}

.btn-highlight {
  text-decoration: none;
  display: inline-block;
  margin: 0.5em;
  padding: 0.9em 1.7em;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(45deg, #FFD426, #E5342E);
  color: #0B2C63;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-highlight:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(229,52,46,0.3);
}

body.dark .btn-highlight {
  color: #fff;
}

.countdown {
  margin: 1.5em auto 0;
  color: var(--blue);
  text-transform: uppercase;
}

.countdown .time-box {
  display: flex;
  justify-content: center;
  gap: 1.5em;
  margin-top: 0.5em;
}

.countdown .time-box div {
  background: rgba(255,255,255,0.3);
  padding: 0.8em 1em;
  border-radius: 8px;
  min-width: 70px;
}

.countdown strong {
  font-size: 1.6em;
  display: block;
}

body.dark .countdown {
  color: var(--yellow);
}

body.dark .countdown .time-box div {
  background: rgba(255,255,255,0.1);
}

/* --- Animation du compte à rebours --- */
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  30% { transform: scale(1.3); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeChange {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.countdown strong.animating {
  animation: pulse 0.3s ease;
}

.countdown .time-box div {
  animation: fadeChange 0.5s ease;
}


.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

.faq-item {
  background: rgba(255,255,255,0.8);
  border-left: 5px solid var(--blue);
  padding: 1em 1.5em;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.faq-item h3 {
  color: var(--red);
  margin-bottom: 0.4em;
}

body.dark .faq-item {
  background: var(--dark-card);
  border-left-color: var(--yellow);
}
body.dark .faq-item h3 {
  color: var(--yellow);
}


.section-title {
  margin-top: 2.5em;
  font-size: 1.6em;
  text-align: center;
}

.exhibitor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1em;
  margin-top: 1em;
}

.exhibitor-card {
  background: rgba(255,255,255,0.9);
  border: 3px solid var(--blue);
  border-radius: 10px;
  text-align: center;
  padding: 1em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.exhibitor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}

.exhibitor-card img {
  max-width: 250px;
  max-height: 80px;
  margin-bottom: 0.5em;
  object-fit: contain;
}

.exhibitor-list ul {
  columns: 2;
  gap: 2em;
  margin-top: 1em;
  padding-left: 1em;
}

.section-title.platinum { color: var(--blue); }
.section-title.gold { color: var(--red); }
.section-title.silver { color: #888; }

body.dark .exhibitor-card {
  background: var(--dark-card);
  border-color: var(--yellow);
}
body.dark .exhibitor-list ul { color: var(--dark-text); }

.simple-captcha {
  margin-top: 1em;
  padding: 0.8em;
  border: 2px solid var(--blue);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}
.captcha-check {
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.captcha-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
}
body.dark .simple-captcha {
  border-color: var(--yellow);
}