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

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;              /* distance logo → menu */
    padding: 15px 0;
}

.logo img {
    height: 70x;
    width: auto;
}

.brand{
    display: flex;
    align-items: center;
    text-decoration: none;
}
nav {
    margin-left: 5px;   /* ajuste 10–40 selon ton goût */
}

.brand-logo{
    height: 70px;   /* taille idéale pour header */
    width: auto;
    display: block;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 0;
}

nav a:hover,
nav a.active {
    color: #c66b3d;
}

/* Dropdown menu */
.dropdown {
    position: relative;
}

/* Agrandit la zone cliquable du lien "Les tests" */
.dropdown > a {
    display: inline-block;
    padding: 0px 0; /* plus facile à viser */
}

/* Menu déroulant */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);

    z-index: 2000;
    top: calc(100% - 2px);  /* colle au lien (évite le gap) */
    left: 0;
    margin-top: 0;          /* SUPPRIME le gap */
    padding: 6px 0;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 10px 15px;
    color: #333;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
}


/* Hero Section */
.hero {
    position: relative;
    color: white;
    text-align: center;

    /* Image + voile sombre */
    background-image: url("images/header.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Hauteur bandeau (ajuste si besoin) */
    min-height: 170px;
    padding: 35px 20px;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* Voile pour améliorer la lisibilité du texte */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

/* Remet le contenu au-dessus du voile */
.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 64px;
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hero-content h2 {
    font-size: 20px;
    font-weight: 300;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.3;
}


/* Update Notice */
.update-notice {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 30px 0;
}

.update-notice h3 {
    color: #856404;
    font-size: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    padding: 50px 0;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-wrapper p {
    margin-bottom: 25px;
    font-size: 16px;
    text-align: justify;
}

.intro {
    font-size: 18px;
    line-height: 1.8;
}

.highlight {
    background-color: #f0f8ff;
    padding: 20px;
    border-left: 4px solid #007bff;
    margin: 30px 0;
}

.warning {
    background-color: #fff5f5;
    padding: 20px;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.explore {
    font-style: italic;
    color: #666;
    text-align: center;
    font-size: 18px;
}

/* Glossaire */
.glossaire {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.glossaire h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #333;
}

.glossaire-item {
    background-color: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.glossaire-item h4 {
    color: #c66b3d;
    font-size: 20px;
    margin-bottom: 10px;
}

.glossaire-item p {
    color: #555;
    line-height: 1.7;
}

.glossaire-item a {
    color: #007bff;
    text-decoration: none;
}

.glossaire-item a:hover {
    text-decoration: underline;
}

/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, #407591 0%, #26495C 100%);
    color: white;
    text-align: center;
    padding: 50px 20px;
}

.newsletter p {
    font-size: 18px;
    margin-bottom: 25px;
}

.btn-newsletter {
    display: inline-block;
    padding: 12px 35px;
    background-color: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-newsletter:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content p {
    margin: 10px 0;
    font-size: 14px;
}

.footer-content a {
    color: #c66b3d;
    text-decoration: none;
}

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

/* ========== VIDÉOS ========== */

/* Container vidéo responsive (ratio 16:9) */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

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

/* Placeholder pour vidéos à venir */
.video-placeholder {
    background: linear-gradient(135deg, #f5f5f5 0%, #e9ecef 100%);
    padding: 80px 40px;
    text-align: center;
    border-radius: 10px;
    margin: 20px 0;
    border: 2px dashed #ccc;
}

.video-placeholder p {
    color: #666;
    font-size: 18px;
    margin: 10px 0;
}

.video-placeholder p:first-child {
    font-size: 24px;
    font-weight: bold;
    color: #407591;
}

/* Responsive */
@media (max-width: 768px) {
    .header-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 42px;
    }
    
    .hero-content h2 {
        font-size: 20px;
    }
    
    .content-wrapper p {
        text-align: left;
    }
    
    /* Responsive vidéos */
    .video-container {
        margin: 15px 0;
    }
    
    .video-placeholder {
        padding: 60px 20px;
    }
    
    .video-placeholder p {
        font-size: 16px;
    }
}