/* ---------- 1. VARIABLES & THEME ---------- */
:root {
  --clr-bg: #fff5f8;
  --clr-bg-alt: #ffe4ec;
  --clr-surface: #ffffff;
  --clr-text: #2b1620;
  --clr-text-muted: #7a5468;
  --clr-primary: #ff4f81;
  --clr-primary-dark: #d6336c;
  --clr-secondary: #ff8fab;
  --clr-accent: #c9184a;
  --clr-border: rgba(43, 22, 32, 0.12);

  --font-title: "Poppins", sans-serif;
  --font-text: "Inter", sans-serif;

  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(43, 22, 32, 0.08);
  --shadow-md: 0 10px 28px rgba(43, 22, 32, 0.14);
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-text);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  padding-top: 80px;
  /* pour ne pas que la navbar cache le contenu */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section {
  padding: var(--space-xl) 0;
}

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

a {
  text-decoration: none;
  color: inherit;
}

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

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

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

.reveal {
  animation: fadeInUp 0.8s ease both;
}

.reveal:nth-child(1) {
  animation-delay: 0.1s;
}

.reveal:nth-child(2) {
  animation-delay: 0.2s;
}

.reveal:nth-child(3) {
  animation-delay: 0.3s;
}

.reveal:nth-child(4) {
  animation-delay: 0.4s;
}

/* ---------- 3. NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 245, 248, 0.9);
  backdrop-filter: blur(10px);
  padding: 1rem var(--space-md);
  box-shadow: var(--shadow-sm);
  z-index: 100;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--clr-primary);
  color: #fff;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
  margin-right: 0.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}

.navbar__logo:hover .logo-badge {
  transform: rotate(-5deg) scale(1.1);
}

.navbar__logo:hover .logo-badge {
  transform: rotate(-5deg) scale(1.1);
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: visible !important;
  /* empêche de cacher 2026 */
}

/* LE 2026 ROSE DE DROITE */
.logo-year {
  display: inline-block !important;
  /* on force l'affichage */
  color: var(--clr-primary);
  /* rose */
  font-size: 1rem;
  font-weight: 900;
  margin-left: 6px;
  padding: 3px 8px;
  background: rgba(255, 87, 132, 0.1);
  /* fond rose très clair */
  border: 2px solid var(--clr-primary);
  border-radius: 8px;
  line-height: 1;
}

.navbar__links {
  display: flex;
  gap: 2rem;
  font-weight: 600;
}

.navbar__links a {
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}

.navbar__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--clr-primary);
  transition: width var(--transition);
}

.navbar__links a:hover::after,
.navbar__links a.active::after {
  width: 100%;
}

/* ---------- 1. DARK MODE ---------- */

/* On assombrit les variables EXISTANTES au lieu d'en créer de nouvelles */
html[data-theme="dark"] {
  --clr-bg: #121212;
  --clr-bg-alt: #1e1e1e;
  --clr-surface: #1e1e1e;
  --clr-text: #f0f0f0;
  --clr-text-muted: #c9b3bd;
  --clr-border: rgba(255, 255, 255, 0.12);
}

body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--clr-text);
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
}

.theme-toggle:hover {
  transform: rotate(20deg);
}

/* ---------- 4. BOUTONS ---------- */
.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--clr-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--clr-primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  border: 2px solid var(--clr-primary);
  color: var(--clr-primary-dark);
}

.btn--ghost:hover {
  background: var(--clr-bg-alt);
  transform: translateY(-3px);
}


/* ---------- BOUTON RETOUR HAUT ---------- */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
  z-index: 999;
  transition: all var(--transition);
  animation: bounce 2s infinite;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--clr-primary-dark);
  transform: translateY(-5px);
}


/* ---------- 5. HERO ---------- */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, var(--clr-bg) 0%, var(--clr-bg-alt) 60%, #ffd3e0 100%);
}

.hero__title {
  font-family: var(--font-title);
  font-size: 3rem;
  animation: fadeInUp 1s ease;
}

.hero__title span {
  color: var(--clr-primary);
}

.hero__subtitle {
  color: var(--clr-text-muted);
  margin: 1rem 0 2rem;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.4s both;
}

.countdown {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
  animation: fadeInUp 1s ease 0.6s both;
}

.countdown__item {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  min-width: 90px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}

.countdown__item:hover {
  transform: translateY(-5px);
}

.countdown__value {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
  color: var(--clr-primary-dark);
}

.countdown__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--clr-text-muted);
}

/* ---------- 6. STATS ---------- */
.stats {
  background: var(--clr-bg-alt);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.stat {
  background: var(--clr-surface);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}

.stat:hover {
  transform: translateY(-8px);
}

.stat__number {
  font-family: var(--font-title);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--clr-accent);
}

.stat__label {
  color: var(--clr-text-muted);
  font-weight: 600;
}

/* ---------- 7. POURQUOI ---------- */
.section-title {
  text-align: center;
  font-family: var(--font-title);
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--clr-text-muted);
  margin-bottom: 3rem;
}

.why__grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.why__card {
  flex: 1 1 300px;
  max-width: 340px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all var(--transition);
}

.why__card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.why__card i {
  font-size: 2.5rem;
  color: var(--clr-primary);
  margin-bottom: 1rem;
}

/* ---------- 8. INTERVENANTS ---------- */
/* ---------- Filtres des intervenants ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--clr-primary);
  background: transparent;
  color: var(--clr-primary);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  background: var(--clr-bg-alt);
}

.filter-btn.active {
  background: var(--clr-primary);
  color: #fff;
}
.speakers-grid,
.speakers-grid-full {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.speakers-grid-full {
  grid-template-columns: repeat(3, 1fr);
}

.speaker-card {
  background: var(--clr-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: center;
  border: 1px solid var(--clr-border);
  padding-bottom: 1rem;
  transition: all var(--transition);
}

.speaker-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-md);
}

.speaker-photo {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.speaker-name {
  font-family: var(--font-title);
  margin-top: 1rem;
}

.speaker-role {
  color: var(--clr-text-muted);
  font-size: 0.9rem;
}

.speaker-country {
  color: var(--clr-accent);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ---------- 9. SPONSORS ---------- */
.sponsors {
  background: var(--clr-bg-alt);
  text-align: center;
}

.sponsors__tier {
  margin-bottom: 2rem;
}

.sponsors__level {
  font-family: var(--font-title);
  color: var(--clr-primary-dark);
  font-weight: 700;
  margin-bottom: 1rem;
}

.sponsors__logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.sponsors__logos span {
  font-weight: 700;
  color: var(--clr-text-muted);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.5rem;
  transition: transform var(--transition);
}

.sponsors__logos span:hover {
  transform: scale(1.05);
}

.sponsors__logos--gold span {
  font-size: 1.3rem;
  color: var(--clr-primary-dark);
}

/* ---------- 10. PROGRAMME : ONGLETS (gérés en JavaScript) ---------- */
.tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 2px solid var(--clr-primary);
  font-weight: 700;
  background: transparent;
  color: var(--clr-primary);
  cursor: pointer;
  transition: all var(--transition);
}

.tab-btn:hover {
  background: var(--clr-bg-alt);
  transform: translateY(-2px);
}

.tab-btn.active {
  background: var(--clr-primary);
  color: #fff;
}

.tab-panel {
  display: none;
  animation: fadeInUp 0.5s ease;
}

.tab-panel.active {
  display: block;
}

/* ---------- 11. THEMES ---------- */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.theme-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}

.theme-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.theme-icon i {
  font-size: 2rem;
  color: var(--clr-primary);
}

/* ---------- 12. CONTACT & FAQ ---------- */
.hero-internal {
  padding: 4rem 0 2rem;
  background: var(--clr-bg-alt);
  text-align: center;
}

.breadcrumb {
  color: var(--clr-text-muted);
}

.breadcrumb a:hover {
  color: var(--clr-primary);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
}

.contact-form-wrap,
.contact-info {
  background: var(--clr-surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.8rem;
  border: 1.5px solid var(--clr-border);
  border-radius: 8px;
  background: var(--clr-bg);
  transition: border-color var(--transition);
}

.form-group input:focus {
  border-color: var(--clr-primary);
  outline: none;
}
.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #dc2626;
}

.form-group input.valid,
.form-group select.valid,
.form-group textarea.valid {
  border-color: #16a34a;
}

.error-message {
  color: #dc2626;
  font-size: 0.85rem;
  min-height: 18px;
}

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #16a34a;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.form-success.show {
  display: flex;
  animation: fadeInUp 0.4s ease;
}

.faq-item {
  border-bottom: 1px solid var(--clr-border);
}

.faq-item input {
  display: none;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  font-weight: 700;
  cursor: pointer;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform var(--transition);
}

.faq-item input:checked+.faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  color: var(--clr-text-muted);
}

.faq-item input:checked~.faq-answer {
  max-height: 200px;
  padding-bottom: 1rem;
}

.map-wrap iframe {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: var(--radius-lg);
  margin-top: 2rem;
}

/* ---------- 13. FOOTER ---------- */
.footer {
  background: var(--clr-bg-alt);
  padding: 3rem 0 1rem;
  margin-top: 5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer__logo {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
}

.footer__logo span {
  color: var(--clr-primary);
}

.footer__col h3 {
  margin-bottom: 1rem;
}

.footer__col a {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--clr-text-muted);
  transition: color var(--transition);
}

.footer__col a:hover {
  color: var(--clr-primary);
}

.footer__socials {
  display: flex;
  gap: 1rem;
  font-size: 1.3rem;
}

.footer__bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
}

/* ---------- 14. RESPONSIVE ---------- */
@media (max-width: 992px) {
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar__links {
    display: none;
  }

  .hero__title {
    font-size: 2.2rem;
  }

  .stats__grid,
  .why__grid,
  .speakers-grid,
  .speakers-grid-full,
  .themes-grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

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

  section {
    padding: 3rem 0;
  }

  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 15px;
    right: 15px;
  }
}

/* ============================================================
   Dark/Light mode, navbar dynamique et burger
   ============================================================ */

/* ---------- 1. DARK MODE ---------- */

:root {
  --bg-color: #ffffff;
  --text-color: #1a1a1a;
  --navbar-bg: #ffffff;
  --card-bg: #f9f9f9;
}

/* Quand data-theme="dark" est présent sur <html>, on écrase les variables */
html[data-theme="dark"] {
  --bg-color: #121212;
  --text-color: #f0f0f0;
  --navbar-bg: #1e1e1e;
  --card-bg: #1e1e1e;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-color);
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
}

.theme-toggle:hover {
  transform: rotate(20deg);
}


/* ---------- 2. NAVBAR DYNAMIQUE ---------- */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: transparent;
  box-shadow: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  z-index: 1000;
}

/* Classe ajoutée en JS après 80px de scroll */
.navbar--scrolled {
  background-color: var(--navbar-bg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
}


/* ---------- 3. MENU HAMBURGER MOBILE ---------- */

.burger {
  display: none;
  /* caché en desktop, affiché seulement en media query mobile */
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--text-color);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animation du burger en croix quand le menu est ouvert */
.burger--active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.burger--active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Media query : le burger n'apparaît que sur mobile/tablette */
@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .navbar__links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    background-color: var(--navbar-bg);
    gap: 20px;
    padding: 30px 0;
    transform: translateY(-150%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  /* Classe ajoutée en JS quand on clique sur le burger */
  .navbar__links.navLinks--open {
    transform: translateY(0);
    opacity: 1;
  }
}
/* 1. Icônes "Pourquoi participer" dans un cercle rose (plus pro que l'icône seule) */
.why__card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--clr-bg-alt);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

/* 2. Petit zoom doux sur les photos d'intervenants au survol */
.speaker-photo {
  transition: transform 0.4s ease;
}
.speaker-card:hover .speaker-photo {
  transform: scale(1.06);
}

/* 3. Ombre plus douce sur les boutons principaux au survol */
.btn--primary:hover,
.btn-primary:hover {
  box-shadow: 0 8px 20px rgba(255, 79, 129, 0.35);
}

/* 4. Petit espace visuel entre le titre de section et son soulignement discret */
.section-title {
  position: relative;
  padding-bottom: 0.5rem;
}

/* 5. Sélection de texte personnalisée (petit détail qui fait "fini") */
::selection {
  background: var(--clr-primary);
  color: #fff;
}

/* 6. Scrollbar rose discrète (Chrome/Edge) */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--clr-bg-alt);
}
::-webkit-scrollbar-thumb {
  background: var(--clr-primary);
  border-radius: 10px;
}