body, h1, h2, h3, h4, h5, h6, p, label, input, button, nav a {
  font-family: Cambria, "Times New Roman", Times, serif;
}

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(120deg, #ffffff, #ffffff);
  color: #333;
}

header {
  background: linear-gradient(90deg, #2cbf33, #a1dda4);
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
  margin: 0;
  font-size: 1.2rem;
}

.logo-title {
  display: flex;
  align-items: center;
}

nav {
  display: flex;
  gap: 15px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 12px 28px;
  border-radius: 30px;
  background: linear-gradient(90deg, #2cbf33 0%, #a1dda4 100%);
  box-shadow: 0 4px 16px rgba(44,191,51,0.15), 0 1.5px 0 #fff inset;
  font-size: 1.1rem;
  letter-spacing: 1px;
  border: 2px solid #fff;
  outline: none;
  cursor: pointer;
  transition: all 0.3s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

nav a:hover {
  background: linear-gradient(90deg, #a1dda4 0%, #2cbf33 100%);
  color: #2cbf33;
  box-shadow: 0 6px 24px rgba(44,191,51,0.25);
  border-color: #2cbf33;
  transform: translateY(-2px) scale(1.05);
  z-index: 1;
  opacity: 0.7;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle span {
  width: 22px;
  height: 3px;
  background: white;
}

/* MOBILE */
@media (max-width: 700px) {
  /* Cacher le nav par défaut en mobile, il s’ouvrira avec .open */
  nav {
    display: none;
    position: absolute;
    top: 55px;
    right: 10px;
    background: linear-gradient(120deg, #f2eff5cc 0%, #2cbf2ccc 100%);
    flex-direction: column;
    width: 85vw;
    max-width: 320px;
    padding: 18px 12px;
    border-radius: 22px;
    box-shadow: 0 12px 40px rgba(123,44,191,0.22);
    z-index: 1001;
    border: 2px solid #fff3;
    backdrop-filter: blur(8px) brightness(1.1);
    animation: menuMobileFadeIn 0.5s cubic-bezier(.42,0,.58,1) both;
    overflow: hidden;
  }

  /* Quand toggleMenu() ajoute .open, on affiche le menu */
  nav.open {
    display: flex;
  }

  nav a {
    border: none;
    text-align: center;
    width: 90%;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s;
  }

  nav a:hover {
    background: linear-gradient(90deg, #a1dda4 0%, #2cbf33 100%);
    color: #2cbf33;
    box-shadow: 0 4px 16px rgba(44,191,51,0.18);
    transform: scale(1.04);
  }

  .menu-toggle {
    display: flex; /* montrer le bouton hamburger en mobile */
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 1002;
  }
}

/* Bannière */
.banner {
  background: linear-gradient(120deg, #4edd61 0%, #44bf2c 100%);
  text-align: center;
  padding: 70px 30px 60px 30px;
  color: #fff;
  box-shadow: 0 8px 32px rgba(44, 191, 64, 0.18);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(2px);
  animation: bannerFadeIn 1.2s cubic-bezier(.42,0,.58,1) both;
}

.banner-bg-carousel {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
  overflow: hidden;
  border-radius: 24px;
}

.carousel-img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 1.2s;
  z-index: 0;
  opacity: 0;
  filter: brightness(0.85);
}

.banner h2, .banner p {
  position: relative;
  z-index: 1;
}

@keyframes bannerFadeIn {
  0% { opacity: 0; transform: translateY(-30px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.banner::before {
  content: "";
  position: absolute;
  top: -40px; left: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, #fff3 60%, transparent 100%);
  border-radius: 50%;
  z-index: 0;
}

.banner::after {
  content: "";
  position: absolute;
  bottom: -30px; right: -30px;
  width: 80px; height: 80px;
  background: radial-gradient(circle, #fff2 50%, transparent 100%);
  border-radius: 50%;
  z-index: 0;
}

.banner h2 {
  font-size: 1.8rem;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: 2px;
  text-shadow: 0 2px 12px #7b2cbf55;
  position: relative;
  z-index: 1;
}

.banner p {
  font-size: 1.3rem;
  margin: 0;
  font-weight: 600;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 12px #2228, 0 1px 0 #fff8;
}

/* Soulignement tricolore sous le titre du congrès */
.banner-underline {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
  margin-bottom: 18px;
  gap: 6px;
}
.banner-underline span {
  display: block;
  height: 5px;
  width: 60px;
  border-radius: 8px;
  box-shadow: 0 2px 10px #c4131322;
  opacity: 0;
  animation: underlineFadeIn 0.8s cubic-bezier(.42,0,.58,1) forwards;
}
.banner-underline span:nth-child(1) { animation-delay: 0.1s; }
.banner-underline span:nth-child(2) { animation-delay: 0.25s; }
.banner-underline span:nth-child(3) { animation-delay: 0.4s; }
@keyframes underlineFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 600px) {
  .banner-underline span {
    width: 32px;
    height: 7px;
  }
}

.container {
  max-width: 800px;
  margin: 20px auto;
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}

.container:hover {
  transform: translateY(-3px);
}

h3 {
  color: #7b2cbf;
  font-size: 1.3rem;
  border-left: 5px solid #9d4edd;
  padding-left: 10px;
  margin-bottom: 15px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 15px 0;
}

label {
  font-weight: bold;
  font-size: 0.95rem;
}

input {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  width: 92%;
  transition: border 0.3s;
}

input:focus {
  border-color: #9d4edd;
  outline: none;
  box-shadow: 0 0 5px rgba(157,78,221,0.3);
}

button {
  background: linear-gradient(90deg, #ffffff, #ffffff);
  color: rgb(59, 221, 67);
  border: none;
  padding: 14px 26px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  display: inline-block;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(44, 191, 51, 0.0), 0 10px 24px rgba(0,0,0,0.12);
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease, background .3s ease;
  border: 4px solid #ffffff22;

}
button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(249, 255, 251, 0.199);
  opacity: .100;
}


.sponsor-btn {
  width: 250px;
  min-width: unset;
  max-width: 120%;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

button:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.qr-container {
  text-align: center;
  margin-top: 20px;
}

#qrcode {
  margin: 10px auto;
}

.data-list {
  margin-top: 20px;
  background: #ffffff;
  padding: 15px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.export-btn {
  margin-top: 10px;
  width: 100%;
  background: linear-gradient(90deg, #42e057, #2cbf44);
}

/* Spécifique page inscription */
body.inscription-bg {
  background: linear-gradient(120deg, #ffffff 0%, #e3eafc 100%);
}
.banner.inscription-banner {
  background: linear-gradient(120deg, #ffffff 0%, #ffffff 100%);
}
.banner.inscription-banner h2 {
  color: #1976d2;
  text-shadow: none;
}
.banner.inscription-banner p {
  color: #1976d2;
  font-style: normal;
  font-weight: 600;
  text-shadow: none;
}

.form-instruction {
  font-family: Cambria, Georgia, serif;
  color: #222;
  font-size: 1.80rem;
  margin-bottom: 18px;
  font-style: italic;
  font-weight: 900;
}

/* Champs du formulaire inscription longs et élégants */
#registerForm input[type="text"],
#registerForm input[type="email"],
#registerForm input[type="tel"],
#registerForm button {
  width: 100%;
  max-width: none;
  margin: 0 auto 14px auto;
  display: block;
  font-size: 1.08rem;
  padding: 13px 0px;
  border-radius: 10px;
  border: 1.5px solid #12db77;
  background: #ffffff;
  box-shadow: 0 2px 12px #50da4b22;
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease, background .3s ease;

}
#registerForm input:focus {
  border-color: #2cbf51;
  box-shadow: 0 4px 18px #2cbf3833;
}
#registerForm label {
  font-size: 1.01rem;
  font-weight: 560;
  color: #000000;
  margin-bottom: 4px;
  margin-top: 5px;
  display: block;
}


#registerForm button {

  display: inline-block;
  background: linear-gradient(90deg, #ffffff, #ffffff);
  color: #19dd19;
  text-decoration: none;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(44, 191, 51, 0.0), 0 10px 24px rgba(0,0,0,0.12);
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease, background .3s ease;
  border: 6px solid #ffffff00;
}

.inscription-btn {
  width: 250px;
  min-width: unset;
  max-width: 120%;
  margin-left: auto;
  margin-right: auto;
  display: block;


}
/* Section 2 colonnes image + texte */
.hero-2col {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
  background: #5ae055; /* violet proche de votre charte */
  color: #fff;
  padding: 48px 28px;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.986);
  margin: 30px auto;
  max-width: 1100px;
}

.hero-img {
  border-radius: 22px;
  overflow: hidden;
}

.hero-img img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
  border-radius: 22px;
}

.hero-content h2 {
  font-size: clamp(1.8rem, 2.8vw + 1rem, 3rem);
  line-height: 1.1;
  margin: 0 0 14px;
  font-weight: 800;
}

.hero-divider {
  width: 70px;
  height: 4px;
  background: #fff;
  border-radius: 4px;
  margin: 10px 0 18px;
  opacity: 0.8;
}

.hero-content p {
  margin: 0 0 12px;
  color: #ffffff;
  line-height: 1.6;
  font-weight: 500;
}

/* Bouton primaire réutilisable + variante hero */
.btn-primary {
  display: inline-block;
  background: linear-gradient(90deg, #ffffff, #ffffff);
  color: #19dd19;
  text-decoration: none;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(44, 191, 51, 0.0), 0 10px 24px rgba(0,0,0,0.12);
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease, background .3s ease;
  border: 2px solid #ffffff22;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(252, 249, 255, 0.3);
  opacity: .95;
}

.hero-cta {
  margin-top: 16px; /* bouton sous le texte */
}

/* Responsive */
@media (max-width: 900px) {
  .hero-2col {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 32px 18px;
    border-radius: 18px;
  }
  .hero-img img {
    max-height: 360px;
  }
  .hero-content h2 {
    text-align: left;
  }
}
/* Footer */
.site-footer {
  margin: 40px auto 0;
  background: linear-gradient(120deg, #61e773 0%, #61e773 100%);
  color: #dba40c;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -8px 32px rgba(123,44,191,0.18);
  overflow: hidden;
  padding: 18px 0; /* Ajouté */
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  padding: 12px 18px;
  max-width: 900px;
  margin: 0 auto;
}

.footer-brand .footer-logo {
  height: 60px;
  width: auto;
  border-radius: 8px;
  background: #ffffff12;
  padding: 4px 6px;
  display: block;
}

.footer-tagline {
  margin: 6px 0 8px;
  color: #ffffff;
  line-height: 1.35;
}

.footer-contact h4 {
  margin: 0 0 6px;
}

.footer-contact ul {
  margin: 0 0 6px;
}
.footer-social {
  display: flex;
  gap: 12px;
}

.footer-links h4 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  letter-spacing: .3px;
  margin-top: 60px; /* Essaie différentes valeurs ! */
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0 0 6px;
  margin-top: 40px; /* Essaie différentes valeurs ! */
    font-size: 1.15rem;
}

.footer-links li,
.footer-contact li {
  margin: 6px 0;
  color: #ffffff;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.footer-links a:hover {
  color: #d9c6ff;
  border-color: #ffffff55;
}

.footer-cta {
  display: inline-block;
  margin-top: 8px;
}

/* Barre légale */
.footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #13db0d;
  color: #ffffff;
  padding: 12px 16px;
  font-size: 1.00rem;
}

.footer-legal a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.footer-legal a:hover {
  border-color: #ffffff88;
}

.footer-legal .dot {
  opacity: .6;
}

/* Responsive footer */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
    padding: 28px 18px;
    gap: 20px;
  }
  .footer-brand .footer-logo {
    height: 50px;
  }
  .footer-legal {
    flex-wrap: wrap;
    gap: 6px 12px;
    text-align: center;
  }
}
/* --- AJOUTS POUR MEILLEURE RESPONSIVITÉ TOUT APPAREIL --- */

/* Images toujours 100% largeur par défaut */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Section hero 2 colonnes devient 1 colonne sur mobile */
@media (max-width: 900px) {
  .hero-2col {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px 8px;
  }
  .hero-img img {
    max-height: 240px;
  }
  .hero-content h2 {
    font-size: 1.3rem;
    text-align: left;
  }
}

/* Menu hamburger actif sur mobile */
@media (max-width: 700px) {
  .menu-toggle { display: flex !important; }
  nav { display: none; }
  nav.open { display: flex; flex-direction: column; }
}

/* Padding général sur petits appareils */
@media (max-width: 600px) {
  .banner, .container, .site-footer, .hero-2col {
    padding-left: 4vw !important;
    padding-right: 4vw !important;
  }
  .banner h2 { font-size: 1.1rem; }
  .hero-content h2 { font-size: 1.05rem; }
  .hero-img img { max-height: 180px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand, .footer-contact { text-align: center; }
  .banner-underline span { width: 28px; }
}

/* Pour les tout petits écrans (iPhone SE, Galaxy mini, etc.) */
@media (max-width: 400px) {
  .banner, .container, .site-footer, .hero-2col {
    padding-left: 2vw !important;
    padding-right: 2vw !important;
  }
  .banner h2, .banner p { font-size: 0.96rem; }
  .btn-primary, .btn-primary.hero-cta, .inscription-btn, .sponsor-btn {
    font-size: 0.92rem;
    padding: 12px 10px;
  }
}

/* Footer grid adaptatif */
@media (max-width: 500px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px 8px;
  }
}

/* Bannière : paddings et tailles de police réduites sur mobile */
@media (max-width: 600px) {
  .banner { padding: 24px 2vw 24px 2vw; }
  .banner h2 { font-size: 1.08rem; }
  .banner p { font-size: 1.01rem; }
}

/* Navigation : liens plus petits sur mobile */
@media (max-width: 600px) {
  nav a {
    font-size: 0.98rem;
    padding: 10px 6px;
  }
}

/* Empêche le débordement horizontal sur mobile */
body {
  overflow-x: hidden;
}