/* Couleurs extraites de votre logo */
:root {
    --bleu-fonce: #235489;
    --bleu-clair: #4a90e2;
    --vert: #6fb05b;
    --orange: #f28b20;
    --rouge: #df4b26;
    --blanc: #ffffff;
    --noir: #222222;
    --gris-fond: #f9f9f9;
}

html {
    scroll-behavior: smooth; 
    scroll-padding-top: 270px; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: var(--blanc);
    color: var(--noir);
    line-height: 1.6;
}

/* Header & Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    background-color: var(--blanc);
    border-bottom: 3px solid var(--bleu-fonce);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo { height: 210px; }

nav a {
    text-decoration: none;
    color: var(--bleu-fonce);
    font-weight: bold;
    margin-left: 20px;
    text-transform: uppercase;
    font-size: 1.5em; 
    transition: color 0.3s;
}

nav a:hover { color: var(--orange); }

/* Sections globales */
section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.section-title {
    text-align: center;
    color: var(--bleu-fonce);
    font-size: 2.2em;
    margin-bottom: 5px;
}
.subtitle {
    text-align: center;
    margin-bottom: 30px;
    font-style: italic;
    color: #666;
}

/* Accueil (Espaces resserrés) */
.hero {
    text-align: center;
    background-color: var(--gris-fond);
    border-radius: 15px;
    margin-top: 20px;
    padding: 30px 20px;
}
.hero h1 {
    color: var(--bleu-fonce);
    font-size: 2.5em;
    line-height: 1.1;
}
.hero h2 {
    color: var(--orange);
    margin-bottom: 15px;
    font-size: 1.3em;
}
.intro-text {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 15px auto;
}
.alert-box {
    background-color: var(--bleu-fonce);
    color: var(--blanc);
    display: inline-block;
    padding: 10px 25px;
    border-radius: 8px;
    border-left: 6px solid var(--vert);
}
.alert-box h3 {
    margin-bottom: 5px;
    font-size: 1.1em;
}

/* Équipe & Trombinoscope */
.trombi-container {
    text-align: center;
    margin-bottom: 40px;
}
.trombi-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Slider des portraits */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}
.slider-track-container {
    width: 100%;
    position: relative;
    padding: 20px 0;
}
.slider-track {
    position: relative;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-item {
    position: absolute;
    width: 60%;
    max-width: 500px;
    transition: all 0.5s ease-in-out;
    opacity: 0;
    z-index: 0;
    transform: scale(0.7) translateX(0);
    pointer-events: none;
}
.slider-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    object-fit: contain;
}

.slider-item.active {
    opacity: 1;
    z-index: 10;
    transform: scale(1) translateX(0);
}
.slider-item.prev {
    opacity: 0.3;
    z-index: 5;
    transform: scale(0.8) translateX(-65%);
}
.slider-item.next {
    opacity: 0.3;
    z-index: 5;
    transform: scale(0.8) translateX(65%);
}

/* Flèches en PIP */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(35, 84, 137, 0.85);
    color: var(--blanc);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 100;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider-btn:hover {
    background: var(--orange);
    transform: translateY(-50%) scale(1.1);
}
.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* Grille du Programme */
.grid-programme {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.card {
    background: var(--blanc);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    border-top: 5px solid var(--noir);
}
.card h3 { margin-bottom: 10px; font-size: 1.3em; }
.card p { margin-bottom: 15px; }
.card ul { padding-left: 20px; }
.card ul li { margin-bottom: 8px; }

/* Thèmes couleurs */
.theme-bleu { border-top-color: var(--bleu-fonce); }
.theme-bleu h3 { color: var(--bleu-fonce); }
.theme-orange { border-top-color: var(--orange); }
.theme-orange h3 { color: var(--orange); }
.theme-vert { border-top-color: var(--vert); }
.theme-vert h3 { color: var(--vert); }
.theme-bleu-clair { border-top-color: var(--bleu-clair); }
.theme-bleu-clair h3 { color: var(--bleu-clair); }
.theme-rouge { border-top-color: var(--rouge); }
.theme-rouge h3 { color: var(--rouge); }

/* Footer & Suivez-nous */
footer {
    background-color: var(--bleu-fonce);
    color: var(--blanc);
    text-align: center;
    padding: 50px 20px;
    margin-top: 40px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.social-icon {
    width: 60px;
    height: 60px;
    fill: var(--blanc);
    transition: all 0.3s ease;
}
.social-icon.fb:hover { fill: var(--bleu-clair); transform: scale(1.1); }
.social-icon.insta:hover { fill: var(--orange); transform: scale(1.1); }

.qr-container {
    margin-bottom: 30px;
}

.qr-code {
    width: 120px;
    height: auto;
    border-radius: 10px;
    border: 3px solid var(--blanc);
    background-color: var(--blanc);
}

/* --- LE CADRE BLANC DU LOGO FOOTER --- */
.logo-footer-box {
    background-color: var(--blanc);
    display: inline-block;
    padding: 15px 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); 
}

.logo-footer {
    height: 60px; 
    display: block;
}

footer p { margin-bottom: 5px; }


/* ========================================================
   NOUVEAUX STYLES : BOUTON ET POP-UP IDÉES
======================================================== */

.suggestion-trigger-btn {
    background-color: var(--orange);
    color: var(--blanc);
    font-size: 1.3em;
    font-weight: bold;
    padding: 18px 40px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(242, 139, 32, 0.3);
    transition: transform 0.2s, background-color 0.3s;
    display: inline-block;
}

.suggestion-trigger-btn:hover {
    background-color: #d97a1a;
    transform: translateY(-3px);
}

.modal-suggestion {
    display: none; 
    position: fixed;
    z-index: 3000; /* Assure d'être au dessus de tout */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(35, 84, 137, 0.75); 
    backdrop-filter: blur(5px); 
}

.modal-suggestion-content {
    background-color: var(--blanc);
    margin: 6vh auto; 
    padding: 30px 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 650px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    position: relative;
    border-top: 6px solid var(--orange);
    animation: apparitionModal 0.4s ease-out; 
    max-height: 85vh;
    overflow-y: auto;
}

@keyframes apparitionModal {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-row-suggestion {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group-suggestion {
    flex: 1;
    text-align: left;
}

.form-group-suggestion.full-width {
    width: 100%;
    margin-bottom: 20px;
}

.form-group-suggestion label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--bleu-fonce);
    font-size: 0.95em;
}

.form-group-suggestion input,
.form-group-suggestion textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group-suggestion input:focus,
.form-group-suggestion textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 5px rgba(242, 139, 32, 0.3);
}

.char-counter-suggestion {
    text-align: right;
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
}

.char-counter-suggestion.limit-reached {
    color: var(--rouge);
    font-weight: bold;
}

.submit-suggestion-btn {
    background-color: var(--vert);
    color: var(--blanc);
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s, transform 0.2s;
}

.submit-suggestion-btn:hover {
    background-color: #5a9148;
    transform: translateY(-2px);
}

/* --- RESPONSIVE SMARTPHONE --- */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 130px; 
    }

    header {
        flex-direction: column;
        align-items: flex-end; 
        padding: 10px 15px;
    }

    .logo-container {
        width: 100%;
        text-align: right; 
    }

    .logo { 
        height: 60px; 
    }

    nav {
        display: flex;
        flex-direction: row; 
        flex-wrap: wrap; 
        justify-content: flex-end; 
        width: 100%;
        margin-top: 8px;
    }

    nav a {
        margin-left: 15px;
        margin-bottom: 5px;
        font-size: 1.1em; 
    }

    .slider-item { width: 90%; }
    .hero h1 { font-size: 1.8em; }
    .hero h2 { font-size: 1.1em; }
    
    .suggestion-trigger-btn {
        font-size: 1.1em;
        padding: 15px 20px;
        width: 90%;
    }

    .form-row-suggestion {
        flex-direction: column;
        gap: 15px;
    }

    .modal-suggestion-content {
        padding: 25px 20px;
    }
}