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

/* Police de base */
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(
  to bottom,
  #ffffff 0%,
  #ffeeaa 30%,
  #ffeeaa 70%,
  #ffffff 100%
);
  color: #333;
  text-align: center;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px; /* Réduit le padding horizontal */
  max-width: 100vw;   /* Empêche de dépasser la largeur de l'écran */
  box-sizing: border-box;
}

.nav-links {
  display: flex;
  gap: 150px;          /* Espace augmenté entre chaque section */
  list-style: none;
  margin-left: 24px;
  flex-wrap: wrap;
}

/* Responsive pour petits écrans */
@media (max-width: 900px) {
  .navbar {
    padding: 10px 8px;
  }
  .nav-links {
    gap: 18px;
    margin-left: 0;
  }
}

.logo {
  max-height: 85px; /* ou ajuste selon le rendu visuel souhaité */
  width: auto;
  object-fit: contain;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-size: 18px;
  font-weight: 400; /* ✅ normal, léger mais lisible */
}

.nav-links a:not(.btn-connexion-mobile):hover {
  color: #ff6a00;
}


.btn-connexion {
  background-color: #f9d44a;
  padding: 10px 20px;
  border-radius: 10px;
  color: #333;
  text-decoration: none;
  transition: background 0.2s, color 0.2s; /* Ajoute la transition comme sur mobile */
  box-shadow: 0 2px 8px rgba(0,0,0,0.09);
}

.btn-connexion:hover {
  background: #ff6a00;
  color: #fff;
}

.btn-connexion-mobile{
  display: none !important; /* caché par défaut, visible en mobile */
}

/* ————— Footer ————— */
.site-footer {
  padding: 48px 48px 28px 48px;
  position: relative;
  z-index: 1;
}

.footer-content {
  display: flex;
  align-items: stretch;          /* <- change ici pour que tout soit aussi haut */
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 0;                        /* pas de gap horizontal, tout se touche sauf le padding des colonnes */
  min-height: 160px;             /* plus compact */
}

/* Colonne 1 : Logo SX à gauche, texte verticalement centré */
.footer-about {
  display: flex;
  align-items: center;
  flex: 1.2;                   /* colonne plus large */
  min-width: 340px;
  padding: 0 30px 0 0;         /* padding droite important pour l’aération */
  border-radius: 14px 0 0 14px;
}

.footer-logo {
  max-height: 80px;
  min-width: 80px;
  margin-right: 22px;
  display: block;
}

.footer-about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;      /* ← ICI, change flex-start en center */
  height: 100%;
}

.footer-about-content h4 {
  margin: 0 0 8px 0;
  font-size: 15px;
  font-weight: 700;
}

.footer-about-content p {
  margin: 0 0 18px 0;
  font-size: 15px;
  line-height: 1.42;
  max-width: 330px;
}

.footer-about-content h4,
.footer-about-content p {
  text-align: center !important;  /* ← Ajoute ce bloc */
}

.footer-about-content .btn-footer {
  padding: 10px 28px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  background: #FFE066;
  color: #333;
  border: none;
  text-align: center;
  text-decoration: none;
  min-width: 0;
  width: auto;
  margin-top: 0;
}

/* Colonnes 2 & 3 (plus denses) */
.footer-links, .footer-contact {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0 32px;
  min-width: 240px;
  background: transparent;
}
.footer-links { flex: 1; }
.footer-contact { flex: 0.95; }

.footer-links h4,
.footer-contact h4 {
  margin: 0 0 12px 0;
  font-size: 15px;
  font-weight: 600;
}

.social-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.social-list li {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 15px;
}
.social-list img {
  width: 18px;
  height: auto;
  margin-right: 8px;
}

/* Séparateurs verticaux (plus visibles, plus foncés) */
.footer-links,
.footer-contact {
  border-left: 1.5px solid #bfbfbf;
}
.footer-links { border-radius: 0; }
.footer-contact { border-radius: 0 14px 14px 0; }

.footer-contact a {
  margin-bottom: 8px;
  color: #333;
  text-decoration: none;
  font-size: 15px;
  text-align: left;
}
.footer-contact p {
  margin: 8px 0 0 0;
  font-size: 12px;
  color: #777;
  line-height: 1.4;
}

.social-list a {
  color: #333 !important;
  text-decoration: none !important;
  font-size: 15px;
  transition: color 0.2s;
}
.social-list a:hover {
  color: #FFB300;
  text-decoration: none;
}

/* ============================= */
/*     RESPONSIVE SX MOBILE      */
/* ============================= */
@media (max-width: 900px) {

  /* NAVBAR + BURGER */
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    min-height: 56px;
    background: transparent;
  }
  .navbar .logo {
    height: 40px;
    width: auto;
  }
  .navbar .btn-connexion {
    display: none !important;
  }

  .burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 300;
}
.burger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #ffae00;
  margin: 4px 0;
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(.77,0,.18,1);
}
.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

  /* Menu latéral mobile */
  /* EN MOBILE */
.nav-links {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 85vw;
  max-width: 320px;
  height: 100vh;
  background: #fffbe0;
  box-shadow: -6px 0 22px rgba(0,0,0,0.13);
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 38px 25px 0 25px;
  gap: 18px;
  z-index: 250;
  transition: transform 0.33s cubic-bezier(.77,0,.18,1);
  transform: translateX(100%);
}
.nav-links.open {
  display: flex;
  transform: translateX(0);
}

  .nav-links li {
    width: 100%;
    font-size: 1.2rem;
    margin-bottom: 17px;
    text-align: left;
  }
  .nav-links a {
    color: #222;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
  }
  .nav-links a:not(.btn-connexion-mobile):hover {
    color: #ff6a00;
  }
  /* FOOTER - ESPACE & CENTRAGE PRO */
  .site-footer {
    background: transparent;
    padding: 0 0 14px 0;
    margin: 0 auto;
    border-top: none;
  }
  .footer-content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 11px;
    padding: 0 0 5px 0;
    width: 100%;
  }
  .footer-section {
    width: 100%;
    margin: 0 0 13px 0;
    padding: 0;
    align-items: center;
    text-align: center;
  }
  .footer-logo {
    display: block;
    margin: 0 auto 9px auto;
    width: 54px;
  }
  .footer-section h4 {
    font-size: 1.06rem;
    margin-bottom: 2px;
    font-weight: 600;
  }
  .footer-section a,
  .footer-section p {
    font-size: 0.96rem;
    margin: 2px 0;
  }
  .footer-links ul.social-list {
    justify-content: center;
    gap: 8px;
    margin: 5px 0 0 0;
    padding: 0;
  }
  .footer-links li {
    justify-content: center;
    align-items: center;
    font-size: 0.95rem;
    margin: 0 2px;
  }
  .footer-section:last-child p {
    font-size: 0.85rem;
    color: #888;
  }
}

@media (max-width:900px) {
  .btn-connexion {
    display: none !important;     /* cache bouton desktop */
  }
  .btn-connexion-mobile {
    display: block !important;    /* affiche le bouton menu mobile */
    background: #f9d44a;
    color: black;
    border: none;
    border-radius: 9px;
    padding: 13px 0;
    font-size: 1.07rem;
    font-weight: 600;
    width: 90%;
    max-width: 220px;
    text-align: center;
    margin-top: 8px;
    margin-bottom: 7px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.09);
    transition: background .2s;
  }

  .btn-connexion-mobile:hover {
  background: #ff6a00;
  color: #fff;         /* texte blanc au hover */
  }

  .menu-connexion {
    width: 100%;
    display: flex;
    justify-content: flex-start;
  }
}


/* -------- Ultra petits écrans -------- */
@media (max-width: 500px) {
  .footer-section p {
    font-size: 0.89rem !important;
    margin-bottom: 2px;
  }
  .footer-logo {
    width: 36px;
    margin-bottom: 7px;
  }
}

/* -------- Bonne pratique UX : espace entre sections -------- */
@media (max-width:900px) {
  .site-footer { margin-top: 22px; }
}
