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

body {
    font-family: 'Avenir Next', sans-serif;
    color: #003F72;
    background-color: #ffffff;
    line-height: 1.6;
    font-size: 18px;
}

/* Conteneur principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Header et menu */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    padding: 20px 5%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

nav .logo {
    font-family: 'Avenir Next Ultra Light', sans-serif;
    font-size: 34px;
    color: #003F72;
    font-weight: 300;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav a {
    font-family: 'Avenir Next Ultra Light', sans-serif;
    text-decoration: none;
    color: #003F72;
    font-size: 28px;
    font-weight: 300;
    transition: color 0.3s;
}

nav a:hover {
    color: #6BA3C8;
}

/* Image en pleine largeur sous le menu */
.hero-image {
    width: 100%;
    height: 70vh;
    object-fit: cover;
    margin-top: 80px;
}


@media (max-width: 768px) {
    .hero-image, {
        width: 60%;
        max-width: 60%; /* Largeur maximale sur mobile */
        height: auto;
        padding: 0 !important; /* Supprime les paddings */
        margin: 0; /* Centre les images si elles sont plus petites que l'écran */
    }
}



/* Sections */
section {
    padding: 40px 0;
}

/* Layout texte avec marges */
.text-content {
    width: 60%;
    margin-left: 20%;
    margin-right: 20%;
}



/* Conteneur de texte sur mobile */
@media (max-width: 768px) {
    .text-content {
        width: auto !important;  
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 40px !important;
        box-sizing: border-box !important;
    }
}


.text-content p {
    text-align: justify;
    margin-bottom: 20px;
}

/* Image en pleine largeur */
.full-width-image {
    width: 60%; /* Largeur limitée à 60% sur ordinateur */
    height: 100%;
    margin: 30px auto;
    display: block;
}


/* Images sur mobile */

/* Conteneur parent (ex: .text-content, .container) sur mobile */
@media (max-width: 768px) {
    /* Réinitialise les conteneurs parents */
    .text-content, .container {
        width: 100% !important; /* Largeur à 100% sur mobile */
        padding: 0 !important; /* Supprime les paddings */
        margin: 0 !important; /* Supprime les marges */
    }

    /* Images sur mobile */
    .full-width-image {
        width: 100% !important; /* Largeur à 100% de l'écran */
        height: auto !important; /* Hauteur proportionnelle */
        margin: 10px 0 !important; /* Marge verticale réduite */
        max-width: 100% !important; /* Évite les débordements */
        display: block;
    }
}




/* Liste à puces */
.list-section ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 20px 0;
}

.list-section li {
    margin-bottom: 10px;
}

/* Formulaire */
.form-section {
    width: 60%;
    margin-left: 30%;
    margin-right: 10%;
    background-color: transparent;
    padding: 20px 0;
}

.form-section h2 {
    margin-bottom: 20px;
    color: rgba(0, 0, 0, 0.8);
    font-size: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: none;
    border-bottom: 1px solid #ddd;
    background: transparent;
    font-family: Arial, sans-serif;
    font-size: 16px;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom: 1px solid #6BA3C8;
}

button[type="submit"] {
    background-color: transparent;
    color: #6BA3C8;
    border: none;
    padding: 10px 0;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Avenir Next Ultra Light', sans-serif;
    font-weight: 300;
    border-bottom: 1px solid #6BA3C8;
    width: 100%;
    text-align: left;
    transition: color 0.3s, border-color 0.3s;
    margin-top: 10px;
}

button[type="submit"]:hover {
    color: #4a89b8;
    border-bottom: 1px solid #4a89b8;
}

/* Vidéo YouTube */
/* Conteneur de la vidéo YouTube */

/* Conteneur parent pour contrôler la hauteur */
.video-wrapper {
    width: 60%; /* Même largeur que le texte et les images */
    margin: 20px auto; /* Marge verticale réduite */
    max-width: 800px; /* Limite la largeur maximale */
}

/* Conteneur de la vidéo YouTube */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    width: 100%; /* Prend toute la largeur du parent */
}

/* Style de l'iframe */
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}


/* Footer */
footer {
    background-color: #003F72;
    padding: 30px 5%;
    font-size: 12px;
    line-height: 1.1;
    border-top: 1px solid #eee;
    color: white;
}

footer p {
    margin-bottom: 8px;
    font-weight: normal;
    color: white;
}

footer a {
    color: rgba(0, 0, 0, 0.8);
    text-decoration: none;
    color: white;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .text-content,
    .form-section,
    .video-container {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    nav ul {
        gap: 20px;
    }
    .hero-image,
    .full-width-image {
        height: 50vh;
    }
    section {
        padding: 30px 0;
    }
}

@media (max-width: 768px) {
    .hero-image, .full-width-image {
        width: 100%;
    }
}