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

body {
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
}

.top20 {
    padding-top: 10px;
    font-size: 1.2em;
    color: #14660d;
    font-style: italic;
}

/* Barre de navigation principale */
.main-nav {
    background-color: #51504f;
    width: 100%;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.brown{background-color:#da9a00;}
.brownc{background-color:#c06a0a;}
.green{background-color:#20700f;}
.gris{background-color:#494949;}
.red{background-color:#ac2626;}
.grisc{background-color:#c5b9b9;}

.brown:hover{
    color:white;
    background:#dbb352;
    border-bottom: 3px solid white;
}

.brownc:hover{
    color:white;
    background:#d28f45;
    border-bottom: 3px solid white;
}
.green:hover{
    color:white;
    background:#35a01e;
    border-bottom: 3px solid white;
}
.gris:hover{
    color:white;
    background:#7e7c7c;
    border-bottom: 3px solid white;
}
.red:hover{
    color:white;
    background:#d53636;
    border-bottom: 3px solid white;
}
.grisc:hover{
    color:white;
    background:#807979;
    border-bottom: 3px solid white;
}

.nav-item {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 18px 25px;
    text-align: center;
    transition: all 0.3s ease;
    flex: 1;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

/* Logo */
.site-logo {
    position: absolute;
    top: 80px;
    left: 20px;
    height: 200px;
    z-index: 100;
    object-fit: contain;
}

/* Conteneur vidéo et fallback */
.video-container {
    width: 100%;
    height: 78vh;
    position: relative;
    overflow: hidden;
}

.video-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.fallback-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    z-index: 1;
}

/* Vague décorative */
.wave-image {
    position: absolute;
    width: 100%;
    height: auto;
    display: block;
    z-index: 2;
    pointer-events: none;
    bottom: 0;
}

/* Contenu principal */
.main-content {
    background-color: rgba(255, 255, 255);
    padding: 40px 20px;
    position: relative;
    z-index: 1;
    margin-top: 0;
    flex: 1;
}

/* Styles du contenu */
article {
    max-width: 800px;
    margin: 0 auto;
    color: #333;
}

article h2 {
    text-align: center;
    font-size: 3em;
    color: #b51919;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

article p {
    text-align: center;
    font-size: 1.2em;
    opacity: 0.9;
}

/* Footer */
.site-footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    width: 100%;
    margin-top: auto;
}

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

.site-footer a {
    color: #fff;
    text-decoration: none;
}

/* Navigation mobile */
.mobile-nav {
    display: none;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin: 20px auto;
    width: 90%;
    max-width: 300px;
    position: relative;
    z-index: 10;
    text-align: center;
}

.mobile-nav .nav-btn {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
}

/* Boutons navigation */
.nav-btn {
    padding: 8px 15px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-btn:hover {
    background-color: #b51919;
    color: white;
    border-color: #b51919;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Section colonnes d'information */
.info-columns {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    width: 80%;
    max-width: 1400px;
    margin: 40px auto 0;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.info-column {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.info-column h3 {
    color: #b51919;
    margin-bottom: 25px;
    font-size: 1.6em;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.info-column p {
    margin: 15px 0;
    font-size: 1.3em;
    line-height: 1.7;
    color: #444;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }
    
    .mobile-nav {
        display: block;
        margin-top: 80px;
    }
    
    .site-logo {
        top: 20px;
        left: 20%;
        transform: translateX(-50%);
        width: 20%;
        height: auto;
        max-width: 150px;
    }
    
    .video-container {
        width: 100vw;
        height: auto;
        aspect-ratio: 16/9;
    }
    
    .video-container video,
    .fallback-image {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        height: 100%;
    }
    
    .wave-image {
        margin-top: -40px;
        width: 100vw;
    }
}

@media (max-width: 768px) {
    .video-container {
        
    }
    
    .fallback-image {
        object-position: center top;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 20px 10px;
    }
    
    article h2 {
        font-size: 2.2em;
    }
    
    article p {
        font-size: 1em;
    }

    .wave-image {
        margin-top: -19px;
        width: 100vw;
    }
    
    .info-columns {
        width: 100%;
        padding: 20px 10px;
        border-radius: 0;
    }

    .info-column h3 {
        font-size: 1.4em;
    }

    .info-column p {
        font-size: 1.1em;
    }
}

/* Support pour aspect-ratio */
@supports (aspect-ratio: 16/9) {
    .video-container {
        aspect-ratio: 16/9;
    }
}