/* styles.css */

/* --- Styles Généraux --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f4f6f9;
    color: #333;
}

/* --- Bandeau du Haut (Header) --- */



header {
    position: relative;
    width: 100%;
    min-height: 300px;
    max-height: 400px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Conteneur image */
.header-image-container {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

/* Image *//* Affiche toute l'image sans la rogner */
.header-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* ou cover selon l'effet désiré */
    display: block;
}

/* Bandeau texte */
.header-text-line {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 15px 10px;
    font-size: 1em;
}

.header-text-line a {
    color: #1abc9c;
    text-decoration: none;
}

.header-text-line a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {

    header {
        min-height: 200px;
    }

    .header-image-container {
        height: 200px;
    }

    .header-text-line {
        font-size: 0.9em;
        padding: 12px 10px;
    }
}



/* --- Structure Principale --- */
.container {
    display: flex;
    flex: 1; /* Permet de pousser le footer vers le bas */
}

/* --- Menu Déroulant Latéral (Sidebar) --- */
aside {
    width: 250px;
    background-color: #34495e;
    padding: 20px 10px;
}

.dropdown-menu {
    list-style: none;
}

.dropdown-item {
    position: relative;
}

/* Bouton principal du menu */
.menu-btn {
    display: block;
    width: 100%;
    background-color: #1abc9c;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    text-align: left;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.menu-btn:hover {
    background-color: #16a085;
}

/* Contenu déroulant (caché par défaut) */
.submenu {
    display: none;
    list-style: none;
    background-color: #2c3e50;
    margin-top: 5px;
    border-radius: 4px;
    overflow: hidden;
}

/* Affiche le sous-menu au survol du bloc */
.dropdown-item:hover .submenu {
    display: block;
}

.submenu a {
    display: block;
    color: #ecf0f1;
    padding: 10px 15px;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s;
}

.submenu a:hover {
    background-color: #34495e;
    color: #1abc9c;
}

/* --- Corps de la Page (Main Content) --- */
main {
    flex: 1;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Sections alternées */
.section-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Inversion de l'ordre pour une section sur deux */
.section-row.reverse {
    flex-direction: row-reverse;
}

.text-content {
    flex: 1;
}

.text-content h2 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.text-content p {
    line-height: 1.6;
    color: #666;
}

.image-placeholder {
    flex: 1;
    height: 400px;
    background-color: #bdc3c7;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #7f8c8d;
    font-weight: bold;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Boutons */
.btn {
    display: inline-block;
    background-color: #1abc9c;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
    margin-top: 10px;
}

.btn:hover {
    background-color: #16a085;
}

/* --- Pied de Page (Footer) --- */
footer {
    background-color: #2c3e50;
    color: #bdc3c7;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    border-top: 3px solid #1abc9c;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    gap: 20px;
}

footer a {
    color: #1abc9c;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* --- Adaptabilité Mobile (Responsive) --- */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    aside {
        width: 100%;
    }
    .section-row, .section-row.reverse {
        flex-direction: column;
    }
    .image-placeholder {
        width: 100%;
    }
}
/* --- Style pour les champs du formulaire --- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

/* --- Taille des champs pour PC (écrans larges) --- */
@media (min-width: 769px) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 12px;
        font-size: 16px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }

    .form-group textarea {
        resize: vertical;
        min-height: 120px;
    }
}

/* --- Taille des champs pour téléphones (écrans étroits) --- */
@media (max-width: 768px) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 10px;
        font-size: 16px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }

    .form-group textarea {
        resize: vertical;
        min-height: 100px;
    }
}

/* --- Style pour les champs obligatoires --- */
[required] {
    border-left: 3px solid #dc3545;
}

/* --- Style pour la case de consentement --- */
.consent-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.consent-group input {
    width: auto;
}

.consent-group label {
    font-weight: normal;
    margin-bottom: 0;
}

/* --- Message de confirmation --- */
.form-success {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    text-align: center;
}
/* Style pour la miniature */
.thumbnail {
  cursor: pointer;
  max-width: 200px; /* Ajuste selon tes besoins */
  max-height: 200px; /* Ajuste selon tes besoins */
  border-radius: 8px; /* Optionnel : pour arrondir les coins */
  transition: transform 0.2s; /* Animation au survol */
}

.thumbnail:hover {
  transform: scale(1.05); /* Effet de zoom au survol */
}

/* Style pour la modale */
.modal {
  display: none; /* Masquée par défaut */
  position: fixed; /* Reste en place même si on scroll */
  z-index: 1000; /* S'affiche par-dessus tout */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9); /* Fond semi-transparent */
}

/* Style pour l'image dans la modale */
.modal-content {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 90%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: zoom 0.3s; /* Animation d'apparition */
}

/* Animation pour l'ouverture de l'image */
@keyframes zoom {
  from {
    transform: translate(-50%, -50%) scale(0.8);
  }
  to {
    transform: translate(-50%, -50%) scale(1);
  }
}
/* Dans ton fichier styles.css */
.clickable-image {
  cursor: pointer; /* Change le curseur en main 👆 */
}