* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1,5;
    color: white;
    background-color: black;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1px;
}

/* Header avec logo centré */
header {
    background-color: #00426b;
    color: white;
    padding: 0.1rem 0; /* Légèrement réduit pour éviter un header trop haut */
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: center; /* Centre le contenu */
    align-items: center;
    position: relative; /* Pour positionner les nav-links en absolu */
    height: 100%;
    min-height: 60px; /* Hauteur minimale pour le header */
}

/* Logo centré utilisant toute la hauteur */
.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 0.1rem 0; /* Petit espacement haut/bas */
}

.logo img {
    height: calc(100% - 0.4rem); /* Utilise toute la hauteur moins le padding */
    max-height: 180px; /* Limite maximale pour éviter un header trop grand */
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Navigation positionnée à droite */
.nav-links {
    display: flex;
    list-style: none;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #f1f1f1;
}

/* Menu hamburger positionné à droite */
.burger {
    display: none;
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Responsive mobile */
@media screen and (max-width: 768px) {
    header {
        padding: 0.6rem 0; /* Header légèrement plus petit sur mobile */
    }

    .navbar {
        padding: 0 20px; /* Espacement sur les côtés */
        min-height: 50px; /* Hauteur minimale réduite sur mobile */
    }

    .logo img {
        max-height: 55px; /* Plus grand sur mobile maintenant */
        height: calc(100% - 0.3rem);
    }

    .nav-links {
        position: absolute;
        right: 0;
        height: 0;
        top: 60px;
        background-color: #4285f4;
        display: flex;
        flex-direction: column;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in, height 0.3s ease;
        overflow: hidden;
    }

    .nav-links.active {
        transform: translateX(0%);
        height: auto;
    }

    .nav-links li {
        opacity: 0;
        margin: 0;
        padding: 1rem;
        text-align: center;
    }

    .nav-links.active li {
        opacity: 1;
        transition: opacity 0.5s ease;
    }

    .burger {
        display: block;
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* Pour très petits écrans */
@media screen and (max-width: 480px) {
    header {
        padding: 0.5rem 0;
    }

    .navbar {
        min-height: 45px;
        padding: 0 15px;
    }

    .logo img {
        max-height: 50px;
        height: calc(100% - 0.2rem);
    }
}

main {
    margin: 2rem 0;
}

.section {
    background-color: black;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

h1 {
    color: #037fcd;
    margin-bottom: 1rem;
    text-align: center;
}

p {
    margin-bottom: 0rem;
    text-align: center;
}

/* Carrousel Styles - Version agrandie */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* Crée un carré parfait */
    overflow: hidden;
}

.carousel-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.carousel-controls:hover {
    background-color: rgba(0,0,0,0.9);
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background-color: rgba(0,0,0,0.05);
    gap: 10px;
    flex-wrap: wrap;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.carousel-dot.active {
    background-color: #4285f4;
    transform: scale(1.2);
}

.carousel-dot:hover {
    background-color: #666;
}

.carousel-counter {
    font-size: 14px;
    color: #666;
    margin: 0 15px;
}

/* Styles pour la vidéo - même taille que le carrousel */
.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Ratio 16:9 pour les vidéos YouTube */
    overflow: hidden;
}

/* Si vous préférez un format carré comme le carrousel, utilisez ceci à la place */
.video-container.square {
    padding-bottom: 100%; /* Crée un carré parfait comme le carrousel */
}

.video-container.square .video-wrapper {
    padding-bottom: 100%;
}

/* Media Queries pour le carrousel */
@media screen and (max-width: 768px) {
    .carousel-container {
        width: 100vw; /* Utilise toute la largeur de la fenêtre */
        max-width: none;
        margin: 1rem 0;
        margin-left: calc(-50vw + 50%); /* Sort du conteneur parent */
        border-radius: 0; /* Supprime les bordures arrondies sur mobile pour un effet pleine largeur */
    }

    /* Le carousel-wrapper garde son padding-bottom: 100% pour rester carré */

    .carousel-controls {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .carousel-indicators {
        padding: 10px;
        gap: 5px;
    }

    .carousel-dot {
        width: 6px;
        height: 6px;
    }

    /* Vidéo responsive - même taille que le carrousel */
    .video-container {
        width: 100vw;
        max-width: none;
        margin: 1rem 0;
        margin-left: calc(-50vw + 50%);
        border-radius: 0;
    }
}

footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

/* Media Queries pour la responsivité */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        height: 0;
        top: 60px;
        background-color: #4285f4;
        display: flex;
        flex-direction: column;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in, height 0.3s ease;
        overflow: hidden;
    }

    .nav-links.active {
        transform: translateX(0%);
        height: auto;
    }

    .nav-links li {
        opacity: 0;
        margin: 0;
        padding: 1rem;
        text-align: center;
    }

    .nav-links.active li {
        opacity: 1;
        transition: opacity 0.5s ease;
    }

    .burger {
        display: block;
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* Styles pour le logo/titre centré */
.logo-title {
    text-align: center;
    margin: 2rem auto 3rem auto;
    padding: 0 20px; /* Espacement sur les côtés pour mobile */
}

.logo-title img {
    max-width: 100%;
    height: auto;
    max-height: 120px; /* Limite la hauteur sur desktop */
    width: auto;
    display: block;
    margin: 0 auto;
    /* Optionnel : effet de survol */
    transition: transform 0.3s ease;
}

.logo-title img:hover {
    transform: scale(1.05);
}

/* Responsive pour mobile */
@media screen and (max-width: 768px) {
    .logo-title {
        margin: 1.5rem auto 2rem auto;
        padding: 0 15px;
    }

    .logo-title img {
        max-height: 80px; /* Plus petit sur mobile */
        max-width: 90%; /* Assure qu'il ne déborde pas */
    }
}

/* Pour très petits écrans */
@media screen and (max-width: 480px) {
    .logo-title img {
        max-height: 60px;
        max-width: 85%;
    }
}

/* Styles spécifiques pour le formulaire */
.form-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #222;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #037fcd;
    font-weight: bold;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #444;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #333;
    color: white;
    font-family: 'Arial', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #037fcd;
}

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

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #037fcd;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    background-color: #025a9c;
}

.submit-btn:disabled {
    background-color: #666;
    cursor: not-allowed;
}

.success-message,
.error-message {
    display: none;
    padding: 15px;
    border-radius: 5px;
    margin-top: 1rem;
    text-align: center;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.required {
    color: #ff6b6b;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .form-container {
        margin: 1rem auto;
        padding: 1.5rem;
    }
}

/* Styles pour le footer */
footer {
    background-color: #037fcd;
    color: white;
    padding: 20px 0;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 0 20px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 0.8;
}

.footer-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Responsive pour mobile */
@media screen and (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 15px;
    }
}
