/* ===== Styles globaux pour les erreurs de formulaire ===== */

/* Erreurs Symfony (form_errors) : rendues comme <ul><li> */
.form-group ul {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0 0;
}

.form-group ul li {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.15rem;
}

/* Erreurs de formulaire au niveau global (form_errors(form)) */
form > ul,
.register-form > ul,
.login-form > ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

form > ul > li,
.register-form > ul > li,
.login-form > ul > li {
    color: #dc3545;
    font-size: 0.85rem;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.25rem;
}

/* Classe d'erreur générique réutilisable */
.form-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.flash-error,
.flash-danger {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

/* ===== Réinitialisation et styles de base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: white;
}

/* En-tête principal */
.entete-principal {
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-site {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.logo-site:hover {
    color: #7c3aed;
    text-decoration: none;
}

.logo-site span {
    color: #7c3aed;
}

.navigation-principale {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.navigation-principale a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 600;
    transition: color 0.3s;
    letter-spacing: 0.01em;
}

.navigation-principale a:hover,
.navigation-principale a:focus {
    color: #7c3aed;
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
    border-radius: 3px;
}

.bouton-connexion {
    padding: 0.5rem 1.5rem;
    border: 1px solid #7c3aed;
    border-radius: 5px;
    color: #7c3aed;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.bouton-connexion:hover {
    background: #ffffff;
    color: rgb(255, 254, 254);
}

.bouton-inscription {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 5px;
    background: #7c3aed;
    color: white;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.bouton-inscription:hover {
    background: #f9f9f9;
}

/* Section héro */
.section-hero {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    padding: 4rem 2rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 3rem;
    min-height: 500px;
}

.contenu-hero {
    flex: 1;
    max-width: 600px;
    color: white;
}

.contenu-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.contenu-hero p {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.groupe-boutons-hero {
    display: flex;
    gap: 1rem;
}

.bouton-primaire {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    background: #10b981;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 1rem;
}

.bouton-primaire:hover {
    background: #059669;
}

.bouton-secondaire {
    padding: 0.8rem 2rem;
    border: 2px solid white;
    border-radius: 5px;
    background: transparent;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.bouton-secondaire:hover {
    background: white;
    color: #7c3aed;
}

.bouton-secondaire-blanc {
    padding: 0.8rem 2rem;
    border: 2px solid white;
    border-radius: 5px;
    background: transparent;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.bouton-secondaire-blanc:hover {
    background: white;
    color: #7c3aed;
}

.demonstration-hero {
    flex: 1;
    max-width: 400px;
}

.carte-demo {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 1.5rem;
    color: white;
}

.element-demo {
    background: rgba(255, 255, 255, 0.15);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.element-demo:last-child {
    margin-bottom: 0;
}

.icone-demo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.icone-demo svg {
    width: 24px;
    height: 24px;
}

.icone-maths { background: #10b981; }
.icone-physique { background: #f59e0b; }
.icone-histoire { background: #ef4444; }

/* Section fonctionnalités */
.section-fonctionnalites {
    padding: 4rem 2rem;
    background: white;
}

.entete-fonctionnalites {
    text-align: center;
    margin-bottom: 3rem;
}

.entete-fonctionnalites h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.entete-fonctionnalites p {
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.grille-fonctionnalites {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.carte-fonctionnalite {
    text-align: center;
    padding: 2rem;
}

.icone-fonctionnalite {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.icone-fonctionnalite svg {
    width: 40px;
    height: 40px;
}

.icone-presence { background: #ede9fe; color: #7c3aed; }
.icone-emploi-temps { background: #d1fae5; color: #10b981; }
.icone-justificatifs { background: #fed7aa; color: #f97316; }
.icone-statistiques { background: #fee2e2; color: #ef4444; }
.icone-communication { background: #ddd6fe; color: #7c3aed; }
.icone-securite { background: #e0e7ff; color: #6366f1; }

.carte-fonctionnalite h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.carte-fonctionnalite p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Section pourquoi choisir */
.section-pourquoi-choisir {
    padding: 4rem 2rem;
    background: #f9fafb;
}

.conteneur-pourquoi-choisir {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contenu-arguments h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #1f2937;
}

.liste-arguments {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.argument {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.icone-validation {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #10b981;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
    font-size: 1.2rem;
}

.argument h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: #1f2937;
    font-weight: 600;
}

.argument p {
    color: #6b7280;
    line-height: 1.5;
    font-size: 0.95rem;
}

.carte-tableau-bord {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.carte-tableau-bord h3 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
    color: #1f2937;
    font-weight: 700;
}

.sous-titre-tableau {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.statistiques-tableau {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ligne-statistique {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.ligne-statistique:last-child {
    border-bottom: none;
}

.libelle-stat {
    color: #4b5563;
    font-size: 1rem;
    font-weight: 500;
}

.valeur-stat {
    font-weight: 700;
    font-size: 1.1rem;
}

.valeur-verte {
    color: #10b981;
}

.valeur-orange {
    color: #f97316;
}

.valeur-rouge {
    color: #ef4444;
}

/* Section appel à l'action */
.section-appel-action {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    padding: 4rem 2rem;
    text-align: center;
}

.contenu-appel-action {
    max-width: 800px;
    margin: 0 auto;
}

.contenu-appel-action h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.contenu-appel-action p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

.boutons-appel-action {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Pied de page */
.pied-de-page {
    background: #1f2937;
    color: white;
    padding: 3rem 2rem 1rem;
}

.conteneur-footer {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.colonne-footer h3 {
    margin-bottom: 1rem;
}

.logo-footer {
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-footer span {
    color: #7c3aed;
}

.colonne-footer p {
    color: #9ca3af;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.colonne-footer h4 {
    margin-bottom: 1rem;
    color: white;
}

.colonne-footer a {
    display: block;
    color: #9ca3af;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.colonne-footer a:hover {
    color: #7c3aed;
}

.liens-sociaux {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.liens-sociaux a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.liens-sociaux a:hover {
    background: #7c3aed;
}

.liens-sociaux svg {
    width: 18px;
    height: 18px;
}

.bas-footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Responsive - Adaptation tablette et mobile */
@media (max-width: 1024px) {
    .conteneur-pourquoi-choisir {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .conteneur-footer {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .section-hero {
        flex-direction: column;
        text-align: center;
    }

    .contenu-hero h1 {
        font-size: 2rem;
    }

    .groupe-boutons-hero {
        justify-content: center;
        flex-wrap: wrap;
    }

    .navigation-principale {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .grille-fonctionnalites {
        grid-template-columns: 1fr;
    }

    .contenu-appel-action h2 {
        font-size: 1.8rem;
    }

    .boutons-appel-action {
        flex-direction: column;
        align-items: center;
    }

    .conteneur-footer {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .entete-principal {
        flex-direction: column;
        gap: 1rem;
    }

    .navigation-principale {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Styles pour le menu burger */
.bouton-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.bouton-hamburger span {
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.bouton-hamburger.actif span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.bouton-hamburger.actif span:nth-child(2) {
    opacity: 0;
}

.bouton-hamburger.actif span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Media queries pour tablette et mobile */
@media screen and (max-width: 1024px) {
    .bouton-hamburger {
        display: flex;
    }

    .navigation-principale {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 300px;
        max-width: 80%;
        background: white;
        flex-direction: column;
        align-items: stretch;
        padding: 80px 30px 30px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .navigation-principale.actif {
        right: 0;
    }

    .navigation-principale a,
    .navigation-principale button {
        margin: 10px 0;
        padding: 15px;
        text-align: center;
        width: 100%;
    }

    .navigation-principale a {
        border-bottom: 1px solid #eee;
    }

    .navigation-principale button {
        margin-top: 15px;
    }

    body.menu-ouvert::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
}

@media screen and (max-width: 768px) {
    .navigation-principale {
        width: 100%;
        max-width: 100%;
    }
}


