/* e-cole — Styles communs (bootstrap.css doit être chargé avant) */
@import url('https://fonts.cdnfonts.com/css/opendyslexic');
@import url('https://fonts.googleapis.com/css2?family=Cairo+Play:wght@600&display=swap');

/* Base — header et footer toujours visibles, scroll confiné à main */
body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    height: 100dvh;
    overflow: hidden;
}
main {
    min-height: 0;
    overflow-y: auto;
}

/* Header */
header h1 {
    font-size: 1.4em;
    font-family: 'Cairo Play', sans-serif;
    letter-spacing: 0.02em;
    line-height: 1.15;
}

.header-icone { color: #1e7e46; vertical-align: middle }

.header-content { max-width: 1100px; margin: 0 auto }

.sous-titre {
    position: absolute;
    left: 0; right: 0;
    margin: 0;
    pointer-events: none;
    font-family: 'Cairo Play', sans-serif;
    font-size: 1.1em;
    opacity: 0.6;
    text-align: center;
}

.header-settings {
    margin-left: auto;
    font-size: 1.3em;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.2s;
}
.header-settings:hover { opacity: 1 }

/* Footer */
.footer-titre {
    font-family: 'Cairo Play', sans-serif;
    font-size: 1.4em;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 4px;
}
.footer-titre:hover { color: #fff; opacity: 0.8 }

.footer-icone { color: #1e7e46; vertical-align: middle }

.footer-auteur {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Cairo Play', sans-serif;
    opacity: 0.5;
    font-size: 1.1em;
    letter-spacing: 0.02em;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 480px) {
    .footer-titre { font-size: 0.8em }
    .footer-auteur { font-size: 0.8em }
}
.footer-auteur:hover {
    color: inherit;
    text-decoration: none;
}

.footer-install {
    margin-left: auto;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.2s;
    background: none;
    border: none;
    color: inherit;
    display: flex;
    align-items: center;
}
.footer-install:hover { opacity: 1 }
.footer-install:not(.d-none) + .footer-info { margin-left: 12px }

.footer-info {
    margin-left: auto;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.2s;
    background: none;
    border: none;
    color: inherit;
    display: flex;
    align-items: center;
}
.footer-info:hover { opacity: 1 }

/* Compteur écoles — modale À propos */
.compteur-apropos {
    text-align: center;
    font-family: 'Cairo Play', sans-serif;
    font-size: 1.2em;
    color: #1e7e46;
    margin-bottom: 12px;
}

/* Modales — styles communs */
.modal-dialog { max-width: 500px }
.modal-dialog-lg { max-width: 800px }

.modale-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 2000;
    display: flex; align-items: center; justify-content: center;
}
.modale-cache { display: none !important }
.modale {
    background: #fff; max-width: 800px; width: 95%;
    border-radius: 8px; max-height: 85vh; overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.modale-header {
    border-bottom: none; border-radius: 8px 8px 0 0;
    background: #198754; color: #fff;
}
.modale-header h2 { font-size: 1.2em; color: inherit; font-weight: bold }
.modale-fermer {
    background: none; border: none; font-size: 1.5em;
    cursor: pointer; color: rgba(255,255,255,0.7);
}
.modale-fermer:hover { color: #fff }
.modale-contenu { padding: 16px 20px }

/* Modale À propos (Bootstrap modal) */
#modale-apropos .apropos-icone { flex-shrink: 0 }
#modale-apropos .list-group-item-action:hover { background: #eaf7ef }
