/* ==========================================================================
   STYLE CSS - FINAL (QUETTREVILLE 2026)
   ========================================================================== */

:root {
    --primary-color: #0c484e;   /* Vert Canard */
    --secondary-color: #B06342; /* Orange Terracotta */
    --text-color: #333333;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Open Sans', sans-serif;
    padding-top: 110px; /* Espace pour le menu PC fixe */
    color: var(--text-color);
    background-color: #f8f9fa;
    font-size: 16px; 
    line-height: 1.6;
}
/* BOUTON RETOUR (CORRIGÉ) */
        .btn-back {
            position: fixed;       /* Reste fixe à l'écran */
            top: 20px;             /* 20px du haut */
            left: 20px;            /* 20px de la gauche */
            
            /* FORCE L'AFFICHAGE AU-DESSUS DE TOUT (Important) */
            z-index: 99999 !important; 
            
            /* COULEURS EN DUR (Pour être sûr) */
            background-color: #B06342; /* Orange */
            color: white !important;
            
            padding: 12px 25px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: bold;
            font-family: sans-serif;
            font-size: 16px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.4);
            border: 2px solid white;
            transition: transform 0.2s;
        }

        .btn-back:hover {
            background-color: #0c484e; /* Vert au survol */
            transform: scale(1.1);
            cursor: pointer;
        }

        /* MOBILE : On le descend un peu si le menu gêne */
        @media (max-width: 600px) {
            .btn-back {
                top: 15px; 
                left: 15px;
                padding: 8px 15px;
                font-size: 14px;
            }
        }
        
/* ==========================================================================
   GESTION DES MARGES & CONTENEURS
   ========================================================================== */
.container {
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* MOBILE : 96% de largeur */
@media (max-width: 991px) {
    .container { max-width: 96% !important; width: 96% !important; }
}

/* PC : 80% de largeur */
@media (min-width: 992px) {
    .container { max-width: 80% !important; width: 80% !important; }
}

/* ==========================================================================
   BLOC 1 : MENU (NAVBAR)
   ========================================================================== */
.navbar {
    background-color: var(--primary-color) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    padding: 5px 0;
}

.navbar-brand img {
    height: 100px !important;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s;
}
.navbar-brand:hover img { transform: scale(1.02); }

.nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 600;
    font-size: 0.95rem !important;
    margin: 0 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.nav-link:hover { color: var(--secondary-color) !important; }

nav .btn {
    background-color: var(--secondary-color) !important;
    border: 1px solid var(--secondary-color) !important;
    color: white !important;
    font-weight: bold;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem !important;
}
nav .btn:hover { background-color: white !important; color: var(--secondary-color) !important; }

.navbar-toggler { border-color: rgba(255,255,255,0.5) !important; }
.navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important; }

/* ==========================================================================
   BLOC 2 : HERO SECTION (IMAGE SOUS MENU)
   ========================================================================== */
.hero-section, 
.hero-section::before, 
.hero-section::after {
    background: none !important; /* Nettoie le bloc ET ses pseudo-éléments */
}

.hero-section {
    background: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block; 
}

.hero-img-index, .hero-img-subpage {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Assure un bon remplissage */
}

/* ==========================================================================
   BANDEAU ORANGE (TITRES)
   ========================================================================== */
.orange-header-band {
    background-color: var(--secondary-color);
    color: white;
    padding: 50px 0;
    margin-bottom: 50px;
    text-align: center;
    width: 100%;
}
.orange-header-band h2 {
    color: white !important;
    margin: 0;
    font-size: 3rem !important;
    text-transform: uppercase;
    font-weight: 700;
}
.divider-white {
    height: 5px;
    width: 120px;
    background-color: white;
    margin: 20px auto 0 auto;
}

/* ==========================================================================
   SECTION ACTUALITÉS
   ========================================================================== */
/* Suppression du padding-top pour coller au bandeau orange ou à l'image */
#actus { padding-top: 0 !important; }

.card-actu { 
    transition: transform 0.3s ease; 
    border: none; 
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
}
.card-actu:hover { transform: translateY(-10px); }

/* ==========================================================================
   SECTION ÉQUIPE
   ========================================================================== */
/* Style spécifique pour le texte d'intro (remplace le style inline) */
.equipe-intro {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Cartes membres */
.card-img-top {
    width: 100%;
    height: auto;
    object-fit: contain; 
    display: block;
    transition: transform 0.5s ease;
}
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    background-color: white;
    overflow: hidden;
}
.card:hover .card-img-top { transform: scale(1.05); }

/* Effet Hover sur photo */
.hover-show {
    background-color: rgba(12, 72, 78, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; text-align: center;
}
.card:hover .hover-show { opacity: 1; }
.card-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; color: var(--primary-color); }

/* ==========================================================================
   FOOTER (PIED DE PAGE)
   ========================================================================== */
footer {
    background-color: #B06342 !important;
    color: white !important;
    padding-top: 60px !important;
    padding-bottom: 60px !important;
    margin-top: 80px !important;
    width: 100% !important;
    display: block !important;
    position: relative !important;
}

footer img {
    height: auto !important;
    width: auto !important;
    max-width: 250px;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    margin-bottom: -15px !important;
}

footer h5 {
    color: #0c484e !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    font-size: 1.4rem !important;
    margin-bottom: 25px !important;
}

footer a { color: white !important; text-decoration: none !important; }
footer a:hover { color: #0c484e !important; }

/* Correction Mobile Footer */
@media (max-width: 991px) {
    footer {
        width: 100vw !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }
}

/* ==========================================================================
   MODAL (POPUP)
   ========================================================================== */
@media (min-width: 992px) {
    .modal-dialog { max-width: 900px !important; margin: 3rem auto; }
}
@media (max-width: 991px) {
    .modal-dialog { max-width: 95% !important; margin: 10px auto; }
}

.modal-content {
    background-color: #ffffff !important;
    border-radius: 15px;
    border: none;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}
.modal-header { border-bottom: none; }
#modal-img {
    max-width: 450px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
#modal-nom { font-size: 2.5rem; color: var(--primary-color); }
#modal-role { font-size: 1.4rem; color: var(--secondary-color); font-weight: bold; }
#modal-desc { font-size: 1.3rem; color: #555; line-height: 1.8; }

/* ==========================================================================
   UTILITAIRES
   ========================================================================== */
.bg-primary { background-color: var(--primary-color) !important; }
.text-primary { color: var(--primary-color) !important; }
.btn-primary { background-color: var(--primary-color) !important; border-color: var(--primary-color) !important; }
/* --- UTILITAIRE COULEUR ORANGE --- */
.text-orange {
    color: var(--secondary-color) !important; /* Récupère ton orange #B06342 */
}
/* ==========================================================================
   TYPOGRAPHIE & TEXTE (JUSTIFICATION MOBILE)
   ========================================================================== */
main p, .container p {
    text-align: justify !important; /* Force le texte justifié partout */
    text-justify: inter-word;
    
    /* Active la coupure des mots pour éviter les trous sur mobile */
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto; 
    
    margin-bottom: 1.5rem; /* Aère un peu les paragraphes */
}

/* ==========================================================================
   SECTION VIDÉOS - SWIPER REEL EFFECT
   ========================================================================== */

/* Conteneur principal */
.videoSwiper {
    width: 100%;
    padding: 20px 0 50px 0;
    overflow: hidden;
}

/* 1. Comportement par défaut : TOUTES les slides sont cachées */
.videoSwiper .swiper-slide {
    width: 320px; 
    opacity: 0; 
    visibility: hidden; /* Empêche les clics accidentels sur les éléments invisibles */
    transform: scale(0.85);
    transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s;
}

/* 2. On affiche uniquement la précédente et la suivante (transparentes) */
.videoSwiper .swiper-slide-prev,
.videoSwiper .swiper-slide-next {
    opacity: 0.4;
    visibility: visible;
}

/* 3. La vidéo active (au centre) en pleine taille et opaque */
.videoSwiper .swiper-slide-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 10;
}

/* Design des vidéos et placeholders */
.reel-video, 
.reel-placeholder {
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    object-fit: cover;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: none;
}

.reel-placeholder {
    border: 3px dashed #ccc;
}

/* Personnalisation des flèches Swiper pour garder ton design */
.videoSwiper .custom-nav-btn {
    background-color: #0c484e;
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease;
}

.videoSwiper .custom-nav-btn:hover {
    background-color: #B06342; /* Ton orange au survol */
}

/* On réduit la taille de l'icône de base de Swiper */
.videoSwiper .custom-nav-btn::after {
    font-size: 20px;
    font-weight: bold;
}
