/* /ecole/assets/css/ecole.css */

/* ---- BASE ---- */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f4f9f4;
    color: #333;
}

/* ---- HEADER ---- */
.ecole-header {
    background: linear-gradient(90deg, #2E7D32, #1976D2);
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ecole-header .logo {
    font-weight: bold;
}

.ecole-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ecole-header .menu-left,
.ecole-header .menu-right {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.ecole-header .menu-left li,
.ecole-header .menu-right li {
    margin: 0 10px;
}

.ecole-header a {
    color: white;
    text-decoration: none;
}

.ecole-header .btn-exit {
    background: #D32F2F;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
}

.ecole-header .btn-exit:hover {
    background: #b71c1c;
}

/* ---- FOOTER ---- */
.ecole-footer {
    background: #2E7D32;
    color: white;
    padding: 10px;
    text-align: center;
}

/* ---- CARDS & DASHBOARD ---- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    display: block;
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.card h2 {
    margin-top: 0;
    color: #2e7d32; /* vert thème */
}

.card p {
    margin: 5px 0 0;
    font-size: 0.9em;
    color: #555;
}

/* ---- FORMULAIRES ---- */
.form-ecole {
    max-width: 600px;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.form-ecole .form-group {
    margin-bottom: 15px;
}

.form-ecole label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.form-ecole input,
.form-ecole textarea,
.form-ecole select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-ecole .checkbox {
    display: flex;
    align-items: center;
}

.btn-primary {
    background: #1976D2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-primary:hover {
    background: #125ca1;
}

/* ---- INSCRIPTIONS ---- */
.inscription-card {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* ---- MESSAGES ---- */
.ecole-msg {
    position: fixed;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    transition: top 0.3s ease;
    z-index: 9999;
}
.ecole-msg.success { background-color: #2E7D32; }
.ecole-msg.error { background-color: #D32F2F; }
.ecole-msg.visible { top: 20px; }

/* ---- COMPÉTENCES ---- */
.competence-block {
    background: white;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.competence-list {
    list-style: none;
    padding: 0;
}

.competence-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
}

/* ---- BADGES ---- */
.badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
    color: white;
    font-size: 0.9em;
}

.badge.expert {
    background-color: #2E7D32; /* vert foncé */
}

.badge.acquis {
    background-color: #4CAF50; /* vert */
}

.badge.en_progres {
    background-color: #FFC107; /* jaune */
    color: #000;
}


/* Menu burger position gauche */
.menu-toggle {
    font-size: 1.5em;
    cursor: pointer;
    margin-right: 15px;
    display: none;
}

.menu-container {
    display: flex;
    flex: 1;
    justify-content: space-between;
}

/* Overlay fond sombre */
.menu-overlay {
    display: none;
}

.menu-overlay.visible {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 998;
}

/* --- Responsive slide menu --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .menu-container {
        flex-direction: column;
        background: #2E7D32;
        position: fixed;
        top: 0;
        left: -250px; /* caché par défaut */
        width: 250px;
        height: 100%;
        padding-top: 60px;
        box-shadow: 2px 0 8px rgba(0,0,0,0.2);
        transition: left 0.3s ease;
        z-index: 999;
    }

    .menu-container.open {
        left: 0; /* slide in */
    }

    .menu-left,
    .menu-right {
        flex-direction: column;
        text-align: left;
        padding: 0 20px;
    }

    .menu-left li,
    .menu-right li {
        margin: 20px 0;
    }
    .menu-left li a,
    .menu-right li a {
        display: block;
        padding: 10px 0; /* zone cliquable plus grande */
        font-size: 1.1em; /* texte un peu plus grand pour lisibilité */
    }
}
.mini-fil {
    margin-top: 30px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.mini-fil h2 {
    margin-top: 0;
    color: #2E7D32;
}
.mini-fil-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.mini-fil-discret {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85em;
}

.fil-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.fil-header h2 {
    font-size: 1em;
    margin: 0;
}

.fil-item {
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px dashed #ccc;
}

.fil-item:last-child {
    border-bottom: none;
}

.fil-meta {
    display: flex;
    justify-content: flex-end;
    font-size: 0.75em;
    color: #666;
}

.fil-vide {
    font-style: italic;
    color: #777;
    margin: 0;
}

.btn-mini {
    font-size: 0.8em;
    color: #1976D2;
    text-decoration: none;
}

.btn-mini:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .mini-fil-container {
        grid-template-columns: 1fr;
    }
}
/* Tuiles validation inscriptions */
.table-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    padding: 15px;
}

.inscription-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.inscription-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.inscription-card h3 {
    margin-top: 0;
    color: #2E7D32; /* vert thème */
    font-size: 1.2em;
    margin-bottom: 10px;
}

.inscription-card p {
    margin: 4px 0;
    font-size: 0.9em;
    color: #444;
}

.inscription-card strong {
    color: #1976D2; /* bleu thème */
}

.inscription-card button {
    background: #1976D2;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
    font-size: 0.9em;
}

.inscription-card button:hover {
    background: #125ca1;
}

.inscription-card button:nth-child(2) {
    background: #D32F2F;
}

.inscription-card button:nth-child(2):hover {
    background: #b71c1c;
}

/* Boutons en ligne */
.inscription-card div {
    margin-top: 10px;
    display: flex;
    justify-content: flex-start;
}
.badge-menu {
    background: #D32F2F;
    color: white;
    padding: 2px 6px;
    font-size: 0.8em;
    border-radius: 10px;
    margin-left: 5px;
}
/* Styles fun pour enfants */
.card-fun {
    background: linear-gradient(135deg, #fff7e6, #e6f7ff);
    border: 2px solid #ffe58f;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-fun:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.icon-big {
    font-size: 2.5em;
    margin-bottom: 10px;
}
