/* ==========================================================================
   VARIABLES & BASE
   ========================================================================== */
:root {
    --primary-color: #082063;
    --secondary-color: #9eb5e8;
    --accent-color: #E1BEE7;
    --bg-color: #F5F5F5;
    --text-color: #2c3e50;
    --white: #FFFFFF;
}

* { 
    box-sizing: border-box; 
}
/* Défilement fluide et décalage pour le header fixe */
html {
    scroll-padding-top: 100px; /* Évite que le titre soit caché sous le menu */
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0; 
    padding: 0;
    display: flex; 
    flex-direction: column; 
    min-height: 100vh;
}

main { 
    flex: 1; 
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1.2rem 2rem;
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky; 
    top: 0; 
    z-index: 1000;
}

.header-logo { 
    display: flex; 
    align-items: center; 
    z-index: 1001; 
    padding: 0.5rem;
    text-decoration: none;
}

.header-logo img { 
    height: 40px; 
    width: auto; 
    object-fit: contain; 
}

/* MENU BURGER (Invisible sur Desktop) */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.burger-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 10px;
    transition: all 0.3s ease;
    transform-origin: left center;
}

/* NAVIGATION DESKTOP */
.header-nav { 
    display: flex; 
    gap: 1.5rem; 
    align-items: center; 
}

.header-nav a {
    color: var(--white); 
    text-decoration: none; 
    font-weight: 500;
    font-size: 0.95rem; 
    padding: 0.5rem 1rem; 
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.header-nav a:not(.admin-btn):hover { 
    background-color: rgba(255, 255, 255, 0.15); 
}

.header-nav a.admin-btn {
    background-color: var(--secondary-color); 
    color: var(--primary-color); 
    font-weight: 600;
}

.header-nav a.admin-btn:hover { 
    background-color: var(--white); 
}

/* DROPDOWN MENUS */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown .dropbtn {
    cursor: pointer;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.dropdown:hover .dropbtn { 
    background-color: rgba(255, 255, 255, 0.15); 
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background-color: var(--white);
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(8, 32, 99, 0.15);
    border-radius: 8px;
    z-index: 1000;
    overflow: visible;
}

/* Le pont invisible pour le hover */
.dropdown-content::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 0.8rem 1.2rem;
    display: block;
    border-radius: 0;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-content a:first-child { border-radius: 8px 8px 0 0; }
.dropdown-content a:last-child { border-radius: 0 0 8px 8px; }

.dropdown-content a:hover { 
    background-color: var(--bg-color); 
    color: var(--primary-color); 
}

.dropdown:hover .dropdown-content { 
    display: block; 
}

/* ==========================================================================
   HERO SECTIONS
   ========================================================================== */
/* Hero Fullscreen (Page d'accueil) */
.hero-fullscreen {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 76px); 
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/monodeski-home.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 2rem 8%;
}

.hero-fullscreen-content {
    text-align: right;
    color: var(--white);
    max-width: 700px;
}

.hero-fullscreen-logo {
    height: 40px;
    margin-bottom: 1.5rem;
    object-fit: contain;
}

.hero-tagline {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

/* Hero Classique (Sous-pages) */
.hero { 
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a8f 100%); 
    color: var(--white); 
    text-align: center; 
    padding: 6rem 2rem; 
}
.hero h1 { font-size: 2.8rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.2; }
.hero p { font-size: 1.2rem; font-weight: 300; max-width: 700px; margin: 0 auto; color: var(--secondary-color); }

/* ==========================================================================
   SECTIONS & CONTENUS
   ========================================================================== */
.section-header { text-align: center; margin: 0rem auto 3rem auto; padding: 0 2rem; background-color: var(--primary-color)}
.section-header h2 { color: var(--white); font-size: 2.2rem; margin-bottom: 0.5rem; font-weight: 700; }

/* Blocs Image + Texte (Écoles & Moniteurs) */
.school-features-container { max-width: 1100px; margin: 4rem auto; padding: 0 2rem; display: flex; flex-direction: column; gap: 5rem; }
.school-feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.school-feature-row:nth-child(even) .school-feature-content { order: 2; }
.school-feature-row:nth-child(even) .school-feature-image { order: 1; }
.school-feature-content { display: flex; flex-direction: column; gap: 1.2rem; }
.school-feature-title { font-size: 3.5rem; color: var(--primary-color); font-weight: 700; line-height: 1.1; }
.school-feature-text { font-size: 1.1rem; color: #555; line-height: 1.6; }

.school-feature-image img { 
    width: 100%; 
    height: auto; 
    border-radius: 16px; 
    object-fit: contain; 
    background-color: transparent;
    filter: drop-shadow(0 8px 24px rgba(8, 32, 99, 0.15));
}

/* Cartes Écosystème */
.ecosystem-container { max-width: 1100px; margin: 0 auto 2rem auto; padding: 0 2rem; display: grid; gap: 2rem; justify-content: center; }
.feature-card { background: var(--white); padding: 2.5rem; border-radius: 16px; box-shadow: 0 8px 24px rgba(8, 32, 99, 0.08); text-align: center; transition: transform 0.3s ease; }
.feature-card:hover { transform: translateY(-5px); }
.feature-icon { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 1.5rem; }
.feature-card h3 { color: var(--primary-color); font-size: 1.3rem; margin-bottom: 1rem; font-weight: 600; }
.feature-card p { font-size: 0.95rem; color: #555; line-height: 1.6; }

/* Bannière pleine largeur */
.workflow-banner { background-color: var(--white); padding: 4rem 2rem; text-align: center; border-top: 1px solid #eaeaea; border-bottom: 1px solid #eaeaea; margin-top: 4rem; }
.workflow-banner h2 { color: var(--primary-color); font-size: 2rem; margin-bottom: 1.5rem; }
.workflow-banner p { max-width: 800px; margin: 0 auto; font-size: 1.1rem; color: #666; }

/* Page Politique de Confidentialité */
.privacy-container { max-width: 800px; margin: 4rem auto; background: var(--white); padding: 2.5rem; border-radius: 16px; box-shadow: 0 4px 12px rgba(8, 32, 99, 0.05); }
.privacy-container h1 { color: var(--primary-color); margin-top: 0; }
.privacy-container h2 { color: var(--primary-color); border-bottom: 2px solid var(--secondary-color); padding-bottom: 0.5rem; margin-top: 2rem; font-weight: 600; font-size: 1.3rem; }
.privacy-container p, .privacy-container li { font-weight: 400; font-size: 0.95rem; }
.privacy-container ul { padding-left: 1.2rem; }
.privacy-container li { margin-bottom: 0.5rem; }
.privacy-container a { color: var(--primary-color); text-decoration: none; font-weight: 500; }
.privacy-container a:hover { text-decoration: underline; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 4rem 2rem 2rem 2rem;
    font-size: 0.95rem;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: left;
}

.footer-column h4 { color: var(--white); font-size: 1.1rem; margin-bottom: 1.2rem; font-weight: 600; }
.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column ul li { margin-bottom: 0.8rem; }
.footer-column a { color: var(--secondary-color); text-decoration: none; transition: color 0.3s ease; }
.footer-column a:hover { color: var(--white); }
.footer-column p { margin: 0 0 0.8rem 0; }

.footer-bottom {
    max-width: 1100px;
    margin: 3rem auto 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ==========================================================================
   FORMULAIRE SUPPORT
   ========================================================================== */
.form-section {
    background-color: var(--white);
}

.form-container {
    max-width: 600px;
    margin: 2rem auto 0 auto;
    text-align: left;
}

.support-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--primary-color);
}

.support-form select,
.support-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--text-color);
    background-color: #fafafa;
    transition: border-color 0.3s ease;
}

.support-form select:focus,
.support-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: var(--white);
}

.submit-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Messages de confirmation ou d'erreur */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-align: center;
}

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

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
/* ==========================================================================
   BOUTONS DE TÉLÉCHARGEMENT (STORES)
   ========================================================================== */
.store-buttons-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.store-btn:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.store-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.store-btn-web {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.store-btn-web:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ==========================================================================
   RESPONSIVE (MOBILE)
   ========================================================================== */
@media (max-width: 768px) {
    /* Header & Navigation Mobile */
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
    }

    .burger-btn { display: flex; }
    
    .burger-btn.open span:first-child { transform: rotate(45deg); }
    .burger-btn.open span:nth-child(2) { opacity: 0; }
    .burger-btn.open span:nth-child(3) { transform: rotate(-45deg); }

    .header-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: stretch;
        padding: 5rem 2rem 2rem 2rem;
        transition: left 0.3s ease-in-out;
        box-shadow: 4px 0 15px rgba(0,0,0,0.2);
        z-index: 1000;
    }
    
    .header-nav.active { left: 0; }
    .header-nav a { text-align: left; padding: 1rem; border-radius: 0; font-size: 1.1rem; }
    
    .dropdown { flex-direction: column; align-items: stretch; }
    .dropdown .dropbtn { text-align: left; padding: 1rem; border-radius: 0; font-size: 1.1rem; }
    
    .dropdown-content {
        position: relative; 
        top: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.05); 
        box-shadow: none;
        border-radius: 8px;
    }
    
    .dropdown-content::before { display: none; } 
    .dropdown-content a { color: var(--secondary-color); padding: 0.8rem 1rem 0.8rem 2rem; font-size: 1rem; }
    .dropdown-content a:hover { background-color: rgba(255,255,255,0.1); color: var(--white); }

    .header-nav a.admin-btn { text-align: center; margin-top: 2rem; border-radius: 8px; }

    /* Hero Fullscreen Mobile */
    .hero-fullscreen {
        justify-content: center;
        align-items: flex-start;
        padding-top: 15vh;
    }
    .hero-fullscreen-content { text-align: center; }
    .hero-tagline { font-size: 3rem; }

    /* Hero Classique Mobile */
    .hero h1 { font-size: 2rem; }

    /* Sections Mobile */
    .school-feature-row { grid-template-columns: 1fr; gap: 2rem; text-align: left; }
    .school-feature-row:nth-child(even) .school-feature-content { order: 1; }
    .school-feature-row:nth-child(even) .school-feature-image { order: 2; }
    .school-feature-title { font-size: 2.5rem; }
    
    .section-header h2 { font-size: 1.8rem; }
    .privacy-container { margin: 2rem 1rem; padding: 1.5rem; }
    .footer-container { text-align: center; }

    
}