/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
  background-image: url('../images/fond.jpg'); /* chemin vers ton image */
  background-repeat: repeat;                  /* répétition en mosaïque */
  background-position: top left;              /* position de départ */
  background-size: 500px;                       /* taille naturelle de l’image */
  background-attachment: fixed;                /* optionnel : fond fixe lors du scroll */
  background-color: #f9f9f9;                   /* couleur de fond de secours */
    color: #333;
}


/* HEADER */
header {
    background: white;
    border-bottom: 2px solid #ddd;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* au-dessus des autres éléments */
    padding: 20px 0; /* un peu plus d'espace */
    display: flex;
    flex-direction: column; /* empile logo et menu */
    align-items: center;
    transition: all 0.3s ease;
}

header .logo {
  transition: all 0.3s ease;
}

header .logo img {
    max-height: 120px; /* hauteur du logo agrandie */
    transition: all 0.3s ease;
}

/* MENU */
.navbar {
    width: 100%;
    margin-top: 15px; /* espace entre logo et menu */
    transition: all 0.3s ease;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center; /* centrer horizontalement */
    gap: 30px; /* espace entre les liens */
    padding: 0;
}

.navbar a {
    text-decoration: none;
    color: #004080;
    font-weight: bold;
    font-size: 1.2rem; /* taille du texte augmentée */
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #0070ff;
}

/* Bouton burger */
.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}


/* HEADER RÉTRÉCI */
header.shrink {
  flex-direction: row;
  justify-content: space-between;
  padding: 10px 40px;
  align-items: center;
  border-bottom-width: 1px;
}

header.shrink .logo img {
  max-height: 50px;
}

header.shrink .navbar {
  width: auto;
  margin-top: 0;
}

header.shrink .navbar ul {
  justify-content: flex-end;
  gap: 20px;
}

/* FOOTER */
footer {
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px;
    background: #004080;  
    border-top: 2px solid #ddd;
    color: white;
    margin-top: 40px;
}


/* PRESENTATION */
main {
  padding-top: 200px;    /* assez pour header (logo + menu) */
  padding-bottom: 50px;  /* assez pour footer */
  max-width: 1200px;
  margin: 0 auto;
}

.presentation {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 40px auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Zone texte */
.presentation-text {
    flex: 1 1 50%;  /* prend toujours environ 50% de la largeur */
    padding: 40px;
    min-width: 300px;
}

.presentation-text h1 {
    color: #004080;
    margin-bottom: 15px;
}

.presentation-text p {
    line-height: 1.6;
    text-align: justify;
}

/* Zone image */
.presentation-image {
    flex: 1 1 50%; /* prend toujours environ 50% de la largeur */
    min-width: 300px;
}

.presentation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* remplissage harmonieux sans déformer */
}

/* Responsive : pile en colonne sur petits écrans */
@media (max-width: 768px) {
    .presentation {
        flex-direction: column;
    }
    .presentation-text,
    .presentation-image {
        flex: 1 1 100%;
        min-width: auto;
    }
}

/* RESPONSIVE */


@media (max-width: 768px) {
    .navbar ul {
        display: none;
        flex-direction: column;
        background: #004080;
        position: absolute;
        top: 70px;
        right: 0;
        width: 200px;
        padding: 20px;
    }
  main {
    padding-top: 140px;
    padding-bottom: 50px;
    margin: 0 20px;
  }
    .navbar ul.show {
        display: flex;
    }

    .navbar a {
        color: white;
    }

    .menu-toggle {
        display: block;
        color: #004080;
    }
}
