/* ==========================
   RESET + VARIABLES
========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue: #00457C;
  --green: #00A676;
  --white: #ffffff;
  --light: #F5F7FA;
  --text: #333;

  --font-title: "Montserrat", sans-serif;
  --font-body: "Inter", sans-serif;
}
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  background: var(--light);
  color: var(--text);
  line-height: 1.6;
}

/* ==========================
   LAYOUT
========================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

section {
  padding: 80px 0;
}

/* ==========================
   HEADER / NAVIGATION
========================== */
header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

/* Logo */
.logo {
  max-height: 55px;
}

/* ---------- MENU ---------- */
nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: nowrap;
}

nav ul li {
  position: relative;
  display: flex;
  align-items: center;
}

/* Lien principal */
nav ul > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--blue);
  padding: 10px 4px;
  white-space: nowrap;
  transition: color 0.25s;
}

nav ul > li > a:hover,
nav ul > li > a.active {
  color: var(--green);
}

/* ---------- SUBMENU ---------- */
/* ==========================
   SUBMENU FIX CLIQUABLE
========================== */

/* Parent toujours référence */
nav ul > li {
  position: relative;
}

/* Sous-menu */
/* ==========================
   DROPDOWN PRO (ZONE CONTINUE)
========================== */

/* Parent */
nav ul > li {
  position: relative;
}

/* Zone invisible pour couvrir le gap */
nav ul > li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 10px; /* zone tampon */
}

/* Sous-menu */
.submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;

  min-width: 240px;
  background: var(--white);
  border-radius: 12px;
  padding: 8px 0;

  box-shadow: 0 12px 35px rgba(0,0,0,0.15);
  display: none;
  z-index: 300;
}

/* Affichage stable */
nav ul > li:hover > .submenu,
nav ul > li:hover::after,
.submenu:hover {
  display: block;
}

/* Liste */
.submenu li {
  width: 100%;
}

/* Liens sous-catégories */
.submenu li a {
  display: flex;
  align-items: center;
  width: 100%;

  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
  text-decoration: none;

  transition: background 0.2s, color 0.2s;
}

/* Hover plein bloc (✅ important) */
.submenu li a:hover {
  background: #f0fdf7; /* vert très léger */
  color: var(--green);
}
.submenu li:first-child a {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.submenu li:last-child a {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* ==========================
   BUTTONS
========================== */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 6px;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-title);
  font-weight: 700;
  text-decoration: none;
  transition: 0.25s;
}

.btn:hover {
  background: #008c63;
  transform: translateY(-2px);
}

/* ==========================
   TITRES
========================== */
.section-title {
  text-align: center;
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--blue);
  margin-bottom: 45px;
}

/* ==========================
   FORMULAIRE
========================== */
.contact-simple {
  background: var(--white);
  text-align: center;
}

.form-box {
  max-width: 800px;
  margin: auto;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  display: grid;
  gap: 15px;
}

.form-box input,
.form-box textarea,
.form-box select {
  width: 100%;
  padding: 14px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 1rem;
}

.form-box input:focus,
.form-box textarea:focus,
.form-box select:focus {
  border-color: var(--green);
  outline: none;
}

.btn-submit {
  background: var(--green);
  color: white;
  padding: 14px;
  font-size: 1.1rem;
  border-radius: 6px;
  border: none;
  font-weight: 700;
  cursor: pointer;
}

/* ==========================
   FOOTER
========================== */
.footer {
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 60px;
}

.footer-layout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 40px;
}

.footer-bottom {
  background: var(--blue);
  color: white;
  text-align: center;
  padding: 18px;
  font-size: 0.9rem;
}

/* ==========================
   RESPONSIVE
========================== */
@media (max-width: 900px) {
  nav ul {
    gap: 14px;
  }

  .footer-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ==========================
   BURGER MENU CLEAN
========================== */

/* Par défaut : caché */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--blue);
}

/* HEADER alignement mobile */
@media (max-width: 900px) {

  /* Cache le menu desktop */
  nav ul {
    display: none;
  }

  /* Affiche le burger */
  .nav-toggle {
    display: block;
    margin-left: auto; /* 👉 à droite */
  }

  /* Header toujours propre */
  .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}
/* ==========================
   FOOTER LINKS CLEAN
========================== */

.footer a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.25s ease;
}

.footer a:hover {
  color: var(--green);
  text-decoration: underline;
}

/* Espacement entre les lignes */
.footer ul li {
  margin-bottom: 8px;
}

/* Icônes alignées proprement (téléphone, adresse, etc.) */
.footer li svg,
.footer li i {
  margin-right: 6px;
  color: var(--green);
}
/* ==========================
   LINKS STYLE (bouton textuel)
========================== */
/* ==========================
   Bouton lien moderne
========================== */
/* ==========================
   MENU MOBILE - STYLE NIKE
========================== */

@media (max-width: 900px) {

  /* bouton burger */
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    z-index: 1002;
  }

  /* overlay sombre */
  #navMenu {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
  }

  body.menu-open #navMenu {
    opacity: 1;
    pointer-events: auto;
  }

  /* panneau blanc latéral */
  #navMenu > ul {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 88%;
    max-width: 420px;
    background: #ffffff;
    padding: 30px 26px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    display: flex;
    flex-direction: column;
    gap: 26px;
  }

  body.menu-open #navMenu > ul {
    transform: translateX(0);
  }

  /* liens */
  #navMenu > ul > li > a {
    font-size: 1.35rem;
    font-weight: 600;
    color: #111;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  #navMenu > ul > li > a::after {
    content: "›";
    font-size: 1.6rem;
  }

  /* désactivation sous-menus sur mobile */
  /* ==========================
   SOUS-MENUS MOBILE
========================== */

@media (max-width: 900px) {

  /* pas de hover en mobile */
  .dropdown > a {
    pointer-events: auto;
  }

  /* sous-menu caché par défaut */
  .submenu {
    display: none;
    margin-top: 10px;
    padding-left: 12px;
    border-left: 2px solid #e5e7eb;
  }

  /* sous-menu ouvert */
  .dropdown.open > .submenu {
    display: block;
  }

  .submenu li a {
    font-size: 1.1rem;
    font-weight: 500;
    color: #444;
  }
}


  /* cache le menu desktop */
  nav ul {
    display: flex;
  }
}
@media (max-width: 900px) {
  .dropdown > a::after {
    content: "›";
    transform: rotate(90deg);
    transition: transform 0.25s ease;
  }

  .dropdown.open > a::after {
    transform: rotate(-90deg);
  }
}
/* =========================
   LIGHTBOX
========================= */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox::after {
    content: "✕";
    position: absolute;
    top: 25px;
    right: 30px;
    color: white;
    font-size: 32px;
    cursor: pointer;
}
