/* ===================== */
/* 🔄 Réinitialisation de base */
/* ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===================== */
/* 🎨 Variables CSS Globales */
/* ===================== */
/* 🌞 Mode clair – blanc prédominant */
:root {
  --colorbkg: #00000000;
  --color-bg: #ffffff; /* Fond blanc absolu */
  --color-text: #111111; /* Texte presque noir (meilleure lisibilité) */
  --color-primary: #000000; /* Boutons / liens principaux — noir pur */
  --color-hover: #333333; /* Noir adouci au survol */
  --color-submenu-bg: #535353bb; /* Sous-menu gris très clair (reste “blanc”) */
  --color-submenu-hover: #333333; /* Hover sous-menu */
  --color-gold: #ffcc00;
  --color-white: #ffffff;
  --color-tooltip-border: #000000;
  --color-scroll-btn: #000000;
  --color-ariane: #656565;
}

/* 🌙 Mode sombre – noir prédominant */
/*body.dar*/
.k {
  --colorbkg: #000000;
  --color-bg: #000000; /* Fond noir absolu */
  --color-text: #eeeeee; /* Texte blanc cassé (évite l’éblouissement) */
  --color-primary: #ffffff; /* Boutons / liens – blanc pur */
  --color-hover: #bfbfbf; /* Gris clair au survol */
  --color-submenu-bg: #111111; /* Sous-menu noir charbonneux */
  --color-submenu-hover: #1a1a1a; /* Hover sous-menu */
  --color-gold: #ffcc00; /* Même accent “or” pour la cohérence */
  --color-white: #ffffff; /* Blanc pur de secours */
  --color-tooltip-border: #ffffff; /* Liseré blanc */
  --color-scroll-btn: #ffffff; /* Flèche retour haut de page */
}

/*=========================*/
/*       Header             */
/*=========================*/
header {
  height: 12rem;
  /* background-image: url(../images/bg.webp); */
  width: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex; /* Ajoute Flexbox */
  justify-content: center; /* Centre horizontalement */
  align-items: center; /* Centre verticalement */
  background-color: var(--colorbkg);
}
header h1 {
  font-family: "Audiowide", cursive;
  font-weight: 400;
  color: var(--color-white);
  font-size: clamp(1.2rem, 4vw, 3rem);
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6); /* Pour améliorer la lisibilité sur image */
}
header a {
  position: absolute;
  bottom: 0;
  left: 0;
}
header a img {
  margin-top: 1.2vw;
  height: clamp(5rem, 10vw, 20rem);
  width: clamp(5rem, 10vw, 20rem);
}

/* ===================== */
/* 🧱 Style du corps */
/* ===================== */
body {
  font-family: "montserrat", sans-serif;

  line-height: 1.6;
  background-color: var(--color-bg);
  color: var(--color-text);
  justify-content: center;
  flex-direction: column;
}

/* ===================== */
/* 🧱 Contenu principal */
/* ===================== */
main {
  min-height: 60lvh;
  display: flex;
  padding: 0 20px;

  margin-block: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 50px auto;
}
/* 🎯 Titre de page */
main h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
  color: var(--particle-color);
}

/* ========================================= */
/* 🎨 Style du bouton de changement de thème *
  * ========================================== */
#themeToggle {
  position: absolute;
  top: -10px;
  right: 70px;
  z-index: 1001;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: 1px solid var(--color-bg);
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 18px;
  transition: background-color 0.3s, color 0.3s;
}
#themeToggle:hover {
  background-color: var(--color-hover);
}
/* ===================== */
/* 🔷 Navigation & Footer */
/* ===================== */
nav,
footer {
  background-color: var(--colorbkg);
}

footer {
  color: var(--color-white);
  padding: 20px;
  text-align: center;
}

.menu-container {
  width: 100%;
  position: relative;
}
.menu-container ul {
  display: flex;
  list-style: none;
}
.menu-container li {
  position: relative;
}
.menu-container li a {
  display: block;
  color: var(--color-white);
  padding: 15px 20px;
  text-decoration: none;
  cursor: pointer;
}
.menu-container li a:hover {
  background-color: var(--color-hover);
}

/* ===================== */
/* 📂 Sous-menus */
/* ===================== */
#menu li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-submenu-bg);
  list-style: none;
  z-index: 99;
  min-width: 200px;
  border-radius: 6px;
  padding: 0;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
}
#menu li ul li a {
  padding: 12px 20px;
  color: var(--color-white);
  background-color: var(--color-submenu-bg);
  display: block;
}
#menu li ul li a:hover {
  background-color: var(--color-submenu-hover);
}
#menu li:hover > ul {
  display: block;
  height: auto;
  transition: 1s;
}
/*sous sous menu <> */
/* Lien contenant un sous-menu : on ajoute la flèche */
nav li.has-submenu > a::after {
  content: "\f054";          /* chevron-right dans Font Awesome 5 Free */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-left: 0.5rem;
  font-size: 0.75em;
  transition: transform 0.2s;
}

/* Quand le sous-menu est déplié, on pivote la flèche vers le bas */
nav li.has-submenu.open > a::after {
  transform: rotate(90deg);
}

/* ===================== */
/* 🍔 Menu burger mobile */
/* ===================== */
.menu-toggle {
  display: none;
  background-color: var(--colorbkg);
  color: var(--color-white);
  padding: 15px 20px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-container ul {
    flex-direction: column;
  }
  #menu li {
    width: 100%;
  }
  .menu-toggle {
    display: block;
  }
  #menu {
    flex-direction: column;
    display: none;
  }
  #menu.active {
    display: flex;
  }
  #menu li a {
    padding: 12px;
    border-bottom: 1px solid var(--color-hover);
  }
  #menu li.active > ul {
    display: block;
  }
  #menu li ul {
    position: static;
  }
}

/* ===================== */
/* 💬 Tooltips personnalisés */
/* ===================== */
[data-tooltip] {
  position: relative;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 80%;
  left: 110%;
  transform: translateX(-50%);
  background-color: var(--color-white);
  color: black;
  padding: 6px 10px;
  border-radius: 5px;
  white-space: nowrap;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 120;
  border: solid 1px var(--color-tooltip-border);
}
[data-tooltip]:hover::after {
  opacity: 1;
  overflow: hidden;
}
/* tolltip evite de deborder du body */
/* 1 – Largeur et retour à la ligne  --------------------------- */
[data-tooltip]::after {
  max-width: 260px; /* ou ce que tu veux, mais < 100 vw            */
  width: max-content; /* garde la largeur mini du texte              */
  white-space: normal; /* autorise le retour à la ligne               */
  word-break: break-word; /* casse les mots trop longs (URL, etc.)       */
  text-align: center;
}

/* 2 – Empêcher le dépassement horizontal sur mobile ----------- */
@media (max-width: 600px) {
  [data-tooltip]::after {
    left: 50%; /* on garde le centrage…        */
    transform: translateX(-50%); /* …mais la largeur est bornée  */
    max-width: 90vw; /* jamais plus large que l’écran */
  }
}

/* 3 – Facultatif : pas de scroll latéral si jamais ça touche   */
body {
  overflow-x: hidden;
}
/*fin tolltip evite de deborder du body */
/* ===================== */
/* ⬆ Bouton retour en haut */
/* ===================== */
#scrollTopBtn {
  position: fixed;
  bottom: 40px;
  /* right: -60px; */
  display: none;
  background: #ffffff00;
  border: none;
  color: #000000;

  border-radius: 50%;
  cursor: pointer;
  transition: right 0.5s ease-out, opacity 0.3s;
  opacity: 0;
  z-index: 1000;
}
#scrollTopBtn img {
  width: 70px;
  height: 70px;
}
#scrollTopBtn.show {
  display: block;
  right: 20px;
  opacity: 1;
}

/*=========================== */
/*       fil d'ariane        */
/*=========================== */
.breadcrumb {
  padding: 0px 20px;
  background-color: var(--colorbgk);
  font-size: 14px;
  color: var(--color-ariane);
}

.breadcrumb a {
  color: var(--color-ariane);
  text-decoration: none;
  margin: 0 5px;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 5px;
}

/****************************************************************/
/* --------------------------------------------------
   Feuille de style — Accueil (pages/accueil.php)
   -------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap");

:root {
  --neon: #ff6b6b; /* Couleur d'accent principale */
  --neon-alt: #ffb854; /* Deuxième couleur d'accent  */
  --bg: #0f0f0f; /* Couleur de fond globale    */
  --bg-card: rgba(255, 255, 255, 0.05);
  --text: #eaeaea;
  --heading: #ffffff;
}

/* ----- Layout principal ----- */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container {
  max-width: 72rem;
  padding: 5rem 1rem 2rem;
  text-align: center;
}
.container h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.5rem, 6vw+1rem, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(90deg, var(--neon) 0%, var(--neon-alt) 100%);
  -webkit-background-clip: text;
  color: transparent;
}
.container p {
  font-size: 1.25rem;
  opacity: 0.8;
}

/* ----- Section récapitulative ----- */
.site-summary {
  width: 100%;
  max-width: 72rem;
  padding: 0 1rem 6rem;
}

.cards {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  position: relative;
  padding: 3.25rem 2rem 2.5rem;
  border: 1px solid transparent;
  background: var(--bg-card);
  border-radius: 1rem;
  text-align: center;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s,
    border-color 0.35s;
}
.card:hover {
  transform: translateY(-12px);
  border-color: var(--neon);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.card::before,
.card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.2;
  transition: opacity 0.35s;
}
.card::before {
  width: 180px;
  height: 180px;
  background: var(--neon);
  top: -60px;
  left: -60px;
}
.card::after {
  width: 220px;
  height: 220px;
  background: var(--neon-alt);
  bottom: -80px;
  right: -80px;
}
.card:hover::before,
.card:hover::after {
  opacity: 0.4;
}

.card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
  transition: transform 0.35s;
}
.card:hover img {
  transform: scale(1.1);
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 600;
}
.card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.9;
}

/* ----- Accessibilité / Préférences ----- */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
@media (max-width: 480px) {
  .card {
    padding: 2.75rem 1.5rem 2rem;
  }
  .card img {
    width: 56px;
    height: 56px;
  }
}

/*map*/
/* Styles rapides si map.css n’existe pas encore */
#map .container.contact {
  width: 80%; /* 80 % sur desktop */
  max-width: 1200px;
  margin-inline: auto;
  padding: 2rem;
}
/* Pleine largeur sur mobile */
@media (max-width: 768px) {
  #map .container.contact {
    width: 100%;
    padding: 1rem;
  }

}

.mapConsent {
  background: var(--neon-dark-10);
  border: 1px solid var(--neon-primary-50);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
}
.mapConsent p {
  margin-bottom: 1rem;
  line-height: 1.5;
}
#mapContainer {
  width: 100%;
}
#mapContainer iframe {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.2);
}





/* --- base desktop --- */
.footer-wrapper{
    /* déjà défini dans votre thème dark */
  color:#fff;
  padding:20px;
  display:flex;
  justify-content:space-around;
  flex-wrap:wrap;
}

.footer-section{
  min-width:150px;
  margin:10px;
  text-align:left;      /* toujours aligné à gauche */
}

.footer-section h3{
  font-size:16px;
  margin-bottom:10px;
  color:#FFD700;
}

.footer-section ul{
  list-style:none;
  padding:0;
}

.footer-section ul li{
  margin-bottom:5px;
}

.footer-section a{
  color:#fff;
  text-decoration:none;
}

.footer-section a:hover{
  color:#00BFFF;
}

/* --- bloc réseaux sociaux --- */
.footer-section.social ul{
  display:flex;
  gap:10px;
}
  /*sub sub menu*/
  #menu li ul li {
    position: relative;
  
  }
  #menu li ul li ul {
    top: 0;
    left: 100%;
    display: none;
  }
    li a{
    border-radius: 10px;
    
  }
  li ul{
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
  }
/* --- RESPONSIVE : ≤ 768 px --- */
@media (max-width:768px){
  .footer-wrapper{
    flex-direction:column;   /* on empile les colonnes */
    align-items:flex-start;  /* tout est bien calé à gauche */
    gap:20px;                /* petit espacement vertical */
  }

  .footer-section{
    width:100%;              /* chaque bloc occupe 100 % */
    min-width:0;             /* inutile de forcer 150 px */
  }

  .footer-section.social ul{
    justify-content:flex-start; /* icônes alignées avec le texte */
  }

  /* le texte légal/logos passe aussi à gauche */
  #footer p{
    text-align:left;
  }
}
