* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

header {
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 175px;
    padding: 10px 20px;
}

header .logo {
    flex-shrink: 0;
}

header .logo img {
    max-width: 150px;
    height: auto;
}

header nav {
    display: flex;
    justify-content: space-around;
    flex-grow: 1;
}

header nav ul {
    list-style-type: none;
    display: flex;
    padding: 0;
    margin: 0;
}

header nav ul li {
    display: inline-block;
    padding: 0 60px;
    white-space: nowrap;
}

header nav ul li a {
    color: #04234F;
    text-decoration: none;
    font-size: 20px;
    transition: color 0.3s, transform 0.3s;
}

header nav ul li a:hover {
    color: black;
    transform: scale(1.1);
    font-size: 22px;
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger div {
    width: 30px;
    height: 3px;
    background-color: #04234F;
    margin: 5px;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
}

#hero {
    background-color: #166EBA;
    background-image: url('../img/vue-inspirante-lumiere-du-matin_23-2148851773.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: #04234F;
    text-align: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 1;
    position: relative;
}

#hero h1 {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 3px;
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards;
}

#hero p {
    font-size: 1.5em;
    font-weight: bold;
    opacity: 0;
    animation: fadeIn 1s 1.5s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bloc externe commun */
#text,
#partenaires {
  background: linear-gradient(to right, #f5f7fa, #c3cfe2);
  padding: 60px;
  margin: 50px auto;
  max-width: 1200px;
  border-radius: 15px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Titres h2 communs */
#text h2,
#partenaires h2 {
  color: #1a2a6c;
  font-size: 34px;
  margin-bottom: 32px;
  font-weight: 800;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
}

/* ===== Page TEXTE : une SEULE carte blanche interne (sans modifier l'HTML) ===== */
#text {
  position: relative;
  text-align: left;
  transition: transform 0.3s ease-in-out; /* pour l’effet scale */
}

#text:hover {
  transform: scale(1.02); /* même effet que les partenaires */
}

/* La “feuille blanche” derrière tout le contenu */
#text::before {
  content: "";
  position: absolute;
  inset: 16px;                           /* marge intérieure de la carte */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  z-index: 0;
}

/* Le contenu passe AU-DESSUS de la carte */
#text > * {
  position: relative;
  z-index: 1;
  transition: transform .25s ease;       /* pour l’effet hover */
}

/* effet scale léger (comme les cartes partenaires) */
#text:hover > * {
  transform: scale(1.01);
}

/* Typo article */
#text h2 {
  color: #1a2a6c;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
  margin: 24px 32px 16px;                /* marge interne dans la carte */
}

#text h3 {
  color: #1a2a6c;
  font-size: 24px;
  margin: 22px 32px 10px;
}

#text p {
  font-size: 18px;
  line-height: 1.7;
  color: #333;
  margin: 0 32px 16px;
}

#text ul {
  list-style: disc;
  margin: 10px 32px 18px 48px;
}

#text li {
  font-size: 17px;
  color: #444;
  margin-bottom: 10px;
}

#text hr {
  border: none;
  height: 1px;
  background: rgba(0,0,0,0.1);
  margin: 20px 32px;
}

/* ===== Page PARTENAIRES (inchangé) ===== */
#partenaires .partenaire-container {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

#partenaires .partenaire {
  background: #fff;
  flex: 1 1 45%;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: left;
  transition: transform 0.3s ease-in-out;
}

#partenaires .partenaire:hover { transform: scale(1.02); }

#partenaires .partenaire h3 {
  color: #1a2a6c;
  font-size: 24px;
  margin-bottom: 16px;
}

#partenaires .partenaire p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 14px;
  color: #333;
}

#partenaires .partenaire ul {
  margin: 12px 0 18px 22px;
  list-style: disc;
}

#partenaires .partenaire li {
  font-size: 17px;
  color: #444;
  margin-bottom: 10px;
}

#partenaires .video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  margin-top: 20px;
}
#partenaires .video-container iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
}

/* Responsive */
@media (max-width: 900px) {
  #partenaires .partenaire-container { flex-direction: column; }
  #partenaires .partenaire { flex: 1 1 100%; }
}

@media (max-width: 768px) {
  /* PARTENAIRES (inchangé) */
  #partenaires { padding: 30px; margin: 30px 15px; }
  #partenaires h2 { font-size: 26px; margin-bottom: 20px; }
  #partenaires .partenaire p,
  #partenaires .partenaire li { font-size: 16px; }

  /* TEXT (adapté à sa carte interne) */
  #text { padding: 40px 20px; margin: 30px 15px; }
  #text h2 { font-size: 26px; margin-bottom: 16px; }
  #text::before {
    inset: 12px;     /* réduit la carte au lieu de bouger juste le top */
  }
  #text p,
  #text li { font-size: 16px; margin-left: 16px; margin-right: 16px; }
  #text h3 { font-size: 22px; margin: 18px 16px 10px; }
  #text hr { margin: 16px 16px; }
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* format 16:9 */
    padding-top: 25px;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
    margin-top: 20px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Footer */
#footer-principal {
    background-color: #04234F;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-section {
    width: 30%;
    padding: 10px;
    margin: 10px;
}

.footer-section h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.footer-section p,
.footer-section ul {
    font-size: 1em;
    color: white;
}

.footer-section ul {
    list-style-type: none;
    padding: 0;
}

.footer-section ul li a {
    text-decoration: none;
    color: white;
    display: block;
    margin: 5px 0;
}

.footer-section ul li a:hover {
    color: black;
}

footer p {
    margin-top: 20px;
    font-size: 0.9em;
    color: white;
}

/* ðŸ”§ Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        height: auto;
    }

    .logo img {
        max-width: 100px;
    }

    .burger {
        display: flex;
        position: absolute;
        top: 15px;
        right: 20px;
        z-index: 10;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: white;
        position: absolute;
        top: 100px;
        left: 0;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000; 
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 15px 0;
    }

    #text {
        padding: 30px;
        margin: 30px 15px;
    }

    #text h2 {
        font-size: 24px;
    }

    #text p,
    #text li {
        font-size: 16px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        width: 90%;
        text-align: center;
    }
}
