:root {
  --bg: #f1f5f9;
  --text: #1e293b;
  --text-subtle: #222;
  --accent: #6366f1;
  --accent-dark: #4f46e5;
  --card-bg: rgba(255, 255, 255, 0.75);
  --card-border: rgba(255, 255, 255, 0.2);
  --gold: #facc15;
  --badge-glow: rgba(250, 204, 21, 0.5);
  --shadow: rgba(0,0,0,0.1);
}

*, *::before, *::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #1e293b;
  background: #f1f5f9;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: #393be5;
  text-decoration: none;
}
a:hover, a:focus {
  text-decoration: underline;
  outline-offset: 2px;
}


header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem;
  z-index: 1000;
}
.logo {
  display: inline-block;
  line-height: 0;
}

.logo img {
  height: 70px;
  width: auto;
  display: block;
  user-select: none;
}

nav {
  display: none;
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}
nav li {
  font-weight: 600;
  font-size: 1rem;
}
nav a {
  color: #393be5;
}

/* Bouton hamburger (ton style existant) */
#menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 22px;
  position: relative;
  z-index: 1100;
}
#menu-toggle span,
#menu-toggle span::before,
#menu-toggle span::after {
  display: block;
  background: #393be5;
  height: 3px;
  border-radius: 2px;
  position: absolute;
  width: 100%;
  transition: 0.3s ease-in-out;
}
#menu-toggle span {
  top: 50%;
  transform: translateY(-50%);
}
#menu-toggle span::before {
  content: '';
  top: -8px;
}
#menu-toggle span::after {
  content: '';
  top: 8px;
}
#menu-toggle.open span {
  background: transparent;
}
#menu-toggle.open span::before {
  top: 0;
  transform: rotate(45deg);
}
#menu-toggle.open span::after {
  top: 0;
  transform: rotate(-45deg);
}

#primary-navigation {
  display: none; /* caché par défaut */
  position: absolute;
  top: 90px; /* sous le bouton menu */
  left: 0;
  width: 100vw; /* prend toute la largeur de l’écran */
  background-color: white;
  padding: 1.5rem 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 999;
  text-align: center;
}

#primary-navigation.open {
  display: block;
}

#primary-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

#primary-navigation li {
  margin: 0;
}

#primary-navigation a {
  position: relative;
  color: #222;
  background-color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  padding: 0.7rem 1.5rem;
  display: inline-block;
  min-height: 48px;
  line-height: 48px;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
}

#primary-navigation a:hover {
  background-color: #6366f1;
  color: white;
}

#primary-navigation a.active {
  background-color: #6366f1;
  color: white;
  box-shadow: 0 4px 8px rgba(99, 102, 241, 0.4);
}

#primary-navigation ul li a.active::after {
  content: none; /* on supprime la ligne soulignée pour éviter doublons */
}




.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #393be5;
  color: white;
  padding: 8px 16px;
  font-size: 1rem;
  z-index: 100;
  text-decoration: none;
  transition: top 0.3s ease;
  border-radius: 4px;
}
.skip-link:focus,
.skip-link:active {
  top: 10px;
  outline: none;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap; /* Pour gérer les retours à la ligne sur petits écrans */
  align-items: center;
  gap: 0.5rem; /* Espace entre les éléments */
  font-size: 1rem;
  color: #222;
  margin: 1rem 1rem 0.5rem 1rem;
}

.breadcrumb a {
  color: #393be5;
  text-decoration: underline;
}

.breadcrumb .separator {
  color: #222;
  user-select: none; /* Empêche de sélectionner les chevrons */
}


.site-footer {
  background-color: white;
  padding: 2.5rem 1.5rem;
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  color: #444;
  border-top: 1px solid #ddd;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
  align-items: center;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-brand strong {
  font-size: 1.1rem;
  color: #393be5;
}

.footer-brand p {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: #222;
}

.footer-links,
.footer-social {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a,
.footer-social a {
  color: #4a4ae6;
  text-decoration: none;
  transition: all 0.25s ease;
  font-weight: 500;
}

.footer-links a:hover,
.footer-social a:hover {
  color: #222;
  transform: translateY(-2px);
  opacity: 0.9;
}

#back-to-top {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  background-color: #393be5; /* rond coloré */
  color: white;             /* flèche blanche */
  border: none;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: opacity 0.3s ease;
  z-index: 1500;
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
#back-to-top:hover {
  opacity: 1;
}




/* === MEDIA QUERY 768px à 1024px === */
@media (min-width: 768px) and (max-width: 1024px) {
  
  /* Navigation */
  nav {
    display: block ;
  }

  #menu-toggle {
    display: none; /* On cache le bouton hamburger sur cette plage */
  }

  #primary-navigation {
    display: block ; /* toujours visible */
    position: static;
    width: auto;
    background: none;
    padding: 0;
    box-shadow: none;
    text-align: right;
  }

  #primary-navigation ul {
    flex-direction: row;
    gap: 2rem;
    justify-content: flex-end;
    align-items: center;
    display: flex; /* pour s'assurer */
  }

  

  /* Header */
  header {
    padding: 1rem 2rem;
  }

  .logo img {
    height: 60px; /* un peu plus petit que mobile */
  }

  /* Footer */
  .site-footer {
    padding: 3rem 3rem;
  }

  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer-links,
  .footer-social {
    justify-content: flex-start;
  }

 
}

@media (min-width: 1025px) {
  nav {
    display: block;
  }

  .logo img {
  height: 80px;
  width: auto;
}

 #primary-navigation {
    display: flex;
    position: static;
    width: auto;
    background: none;
    padding: 0;
    box-shadow: none;
    justify-content: center;
    text-align: center;
  }

  #primary-navigation ul {
    flex-direction: row;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    display: flex;
  }




  #menu-toggle {
    display: none;
  }

  

  .footer-container {
    max-width: 1200px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    text-align: left;
    padding: 0;
  }

  .footer-links,
  .footer-social {
    justify-content: flex-start;
  }


}