/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #f9fafc;
    color: #333;
}

/* ================= HEADER / NAV ================= */
header {
    background-color: #1e3a8a;
    color: white;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1500; /* légèrement au-dessus du contenu */
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
header h1 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 10px;
}

nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.3s;
}
nav a:hover {
    background-color: #2563eb;
}

/* ================= HERO ================= */
.hero {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    border-radius: 0 0 30px 30px;
    margin-bottom: 40px;
}
.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: auto;
    margin-bottom: 20px;
}
.hero button {
    background-color: #fbbf24;
    border: none;
    color: #1e3a8a;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}
.hero button:hover {
    background-color: #f59e0b;
}

/* ================= CARDS ================= */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}
.card {
    background-color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}
.card h3 {
    color: #1e3a8a;
    margin-bottom: 10px;
}

/* ================= PERSONNEL ================= */
.personnel-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

/* ================= FORM ================= */
form {
    background-color: white;
    padding: 25px;
    border-radius: 15px;
    max-width: 500px;
    margin: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
form input, form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
}
form button {
    width: 100%;
    background-color: #1e3a8a;
    color: white;
    padding: 12px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}
form button:hover {
    background-color: #2563eb;
}
#formMessage {
    text-align: center;
    margin-top: 10px;
    font-weight: 600;
}

/* ================= FOOTER ================= */
footer {
    background-color: #1e3a8a;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

/* ================= MENU BURGER ================= */

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 3000; /* AU-DESSUS DE TOUT */
}
.burger div {
  width: 28px;
  height: 3px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ================= FULL MOBILE MODE ================= */
@media (max-width: 768px) {

  /* Le header devient non collant pour éviter le chevauchement */
  header {
    position: relative;
  }

  /* NAV VERSION MOBILE FULL SCREEN */
  nav {
    position: fixed;
    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    background: #1e3a8a;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 2rem;
    padding: 0;

    transform: translateY(-100%);
    transition: transform 0.35s ease-in-out;

    z-index: 2000;
    flex-wrap: nowrap;
  }

  nav a {
    font-size: 1.6rem;
    width: 100%;
    text-align: center;
    padding: 15px 0;
    color: white;
  }

  nav.nav-active {
    transform: translateY(0);
  }

  .burger {
    display: flex;
    position: absolute;
    top: 15px;
    right: 20px;
  }
}

/* Animation croix */
.burger.toggle div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger.toggle div:nth-child(2) {
  opacity: 0;
}
.burger.toggle div:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
/* ================= ETABLISSEMENTS ================= */

.etab-card {
    text-align: center;
    padding-bottom: 20px;
}

.etab-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
}

.btn-etab {
    display: inline-block;
    margin-top: 10px;
    background: #1e3a8a;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-etab:hover {
    background: #2563eb;
}
