/* ══════════════════════════════════════════
   COMPLEXE SCOLAIRE SEKOU FOFANA
   Feuille de style — Page Infos & Documents
   Fichier : css/infos.css
══════════════════════════════════════════ */


/* ══════════════════════════════
   VARIABLES & RESET
══════════════════════════════ */

:root {
    --bleu: #0D47A1;
    --bleu-clair: #1565C0;
    --or: #FFD700;
    --vert: #2E7D32;
    --rouge: #C62828;
    --orange: #E65100;
    --violet: #6A1B9A;
    --blanc: #ffffff;
    --gris-clair: #f5f7fa;
    --texte: #1a1a2e;
    --texte-doux: #5a6a7e;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--gris-clair);
    color: var(--texte);
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}


/* ══════════════════════════════
   NAVBAR
══════════════════════════════ */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0D47A1 0%, #1565C0 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    height: 70px;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.nav-logo-icon {
    height: 42px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    font-size: 0.72rem;
    line-height: 1.3;
    font-weight: 500;
    opacity: 0.95;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 6px;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.nav-cta {
    background: var(--or) !important;
    color: var(--bleu) !important;
    font-weight: 700 !important;
    padding: 8px 18px !important;
    border-radius: 8px;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-hamburger span {
    width: 26px;
    height: 2px;
    background: white;
    border-radius: 2px;
}


/* ══════════════════════════════
   HERO
══════════════════════════════ */

.hero-infos {
    background: linear-gradient(135deg, #0D47A1 0%, #1565C0 60%, #1976D2 100%);
    padding: 60px 5% 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-infos::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 215, 0, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.hero-infos .hero-content {
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    background: rgba(255, 215, 0, 0.2);
    color: var(--or);
    border: 1px solid rgba(255, 215, 0, 0.4);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hero-infos h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: white;
    margin-bottom: 14px;
    line-height: 1.2;
}

.hero-infos h1 span {
    color: var(--or);
}

.hero-infos p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

.hero-nav-pills {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pill {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 9px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.25s;
}

.pill:hover {
    background: var(--or);
    color: var(--bleu);
    border-color: var(--or);
    transform: translateY(-2px);
}


/* ══════════════════════════════
   SECTIONS GÉNÉRALES
══════════════════════════════ */

.section-infos {
    padding: 70px 5%;
}

.bg-white {
    background: white;
}

.bg-light {
    background: var(--gris-clair);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.section-label-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--bleu), var(--bleu-clair));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(13, 71, 161, 0.25);
}

.section-label-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--texte);
}

.section-label-text h2 span {
    color: var(--bleu);
}

.section-label-text p {
    color: var(--texte-doux);
    font-size: 0.9rem;
    margin-top: 4px;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--bleu), var(--or));
    border-radius: 2px;
    margin: 0 0 36px 68px;
}


/* ══════════════════════════════
   FILTRES CALENDRIER
══════════════════════════════ */

.cal-filtres {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.cal-btn {
    padding: 8px 20px;
    border-radius: 25px;
    border: 2px solid #e0e7ff;
    background: white;
    color: var(--texte-doux);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
}

.cal-btn:hover,
.cal-btn.active {
    background: var(--bleu);
    border-color: var(--bleu);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.2);
}


/* ══════════════════════════════
   GRILLE AVIS
══════════════════════════════ */

.avis-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.avis-card {
    background: white;
    border-radius: 16px;
    padding: 22px;
    display: flex;
    gap: 16px;
    border: 2px solid #e8eeff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.avis-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(13, 71, 161, 0.1);
    border-color: var(--bleu);
}

.avis-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--gris-clair);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avis-body {
    flex: 1;
}

.avis-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 10px;
    margin-bottom: 8px;
}

.avis-tag.composition {
    background: #e8f0fe;
    color: var(--bleu);
}

.avis-tag.devoir {
    background: #e8f5e9;
    color: var(--vert);
}

.avis-tag.conge {
    background: #fff3e0;
    color: var(--orange);
}

.avis-tag.ferie {
    background: #fce4ec;
    color: #c62828;
}

.avis-tag.evenement {
    background: #f3e5f5;
    color: var(--violet);
}

.avis-tag.urgent {
    background: #fff3e0;
    color: #e65100;
}

.avis-card.urgent {
    border-left: 4px solid #e65100;
    box-shadow: 0 0 0 2px rgba(230, 81, 0, 0.15);
}

.avis-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--texte);
    margin-bottom: 6px;
    line-height: 1.3;
}

.avis-body p {
    font-size: 0.83rem;
    color: var(--texte-doux);
    line-height: 1.5;
    margin-bottom: 12px;
}

.avis-dates {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.date-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--texte);
}

.date-item strong {
    color: var(--bleu);
}


/* Couleurs bordures par type */

.avis-card.composition {
    border-left: 4px solid var(--bleu);
}

.avis-card.devoir {
    border-left: 4px solid var(--vert);
}

.avis-card.conge {
    border-left: 4px solid var(--orange);
}

.avis-card.ferie {
    border-left: 4px solid var(--rouge);
}

.avis-card.evenement {
    border-left: 4px solid var(--violet);
}


/* ══════════════════════════════
   FRAIS DE SCOLARITÉ
══════════════════════════════ */

.frais-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.frais-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease;
}

.frais-card:hover {
    transform: translateY(-6px);
}

.frais-header {
    padding: 24px 20px;
    text-align: center;
    color: white;
}

.frais-header.maternelle {
    background: linear-gradient(135deg, #2E7D32, #388E3C);
}

.frais-header.primaire {
    background: linear-gradient(135deg, #0D47A1, #1565C0);
}

.frais-header.college {
    background: linear-gradient(135deg, #6A1B9A, #7B1FA2);
}

.frais-header.lycee {
    background: linear-gradient(135deg, #E65100, #F57C00);
}

.frais-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.frais-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.frais-header p {
    font-size: 0.78rem;
    opacity: 0.85;
}

.frais-body {
    padding: 18px 20px;
}

.frais-ligne {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.85rem;
    color: var(--texte-doux);
}

.frais-ligne strong {
    color: var(--texte);
    font-weight: 600;
}

.frais-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 2px solid var(--bleu);
    margin-top: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--bleu);
}

.frais-cantine {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    margin-top: 12px;
    background: #fff8e1;
    border-radius: 10px;
    font-size: 0.82rem;
    color: var(--orange);
    font-weight: 600;
    border: 1px solid #ffe0b2;
}


/* Note cantine */

.frais-note {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #fff8e1;
    border: 2px solid #ffe0b2;
    border-radius: 14px;
    padding: 20px 24px;
}

.note-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.note-text h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 6px;
}

.note-text p {
    font-size: 0.87rem;
    color: var(--texte-doux);
    line-height: 1.6;
}

.note-text p strong {
    color: var(--texte);
}


/* ══════════════════════════════
   PROGRAMME SCOLAIRE
══════════════════════════════ */

.programme-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 10px 22px;
    border-radius: 12px;
    border: 2px solid #e0e7ff;
    background: white;
    color: var(--texte-doux);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--bleu);
    border-color: var(--bleu);
    color: white;
    box-shadow: 0 4px 14px rgba(13, 71, 161, 0.25);
}

.programme-content {
    display: none;
}

.programme-content.active {
    display: block;
}

.matieres-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.matiere-card {
    background: white;
    border-radius: 14px;
    padding: 22px 18px;
    text-align: center;
    border: 2px solid #e8eeff;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.matiere-card:hover {
    border-color: var(--bleu);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(13, 71, 161, 0.12);
}

.matiere-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.matiere-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--texte);
    margin-bottom: 8px;
}

.matiere-card p {
    font-size: 0.8rem;
    color: var(--texte-doux);
    line-height: 1.5;
}


/* ══════════════════════════════
   EMPLOIS DU TEMPS
══════════════════════════════ */

.emplois-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.emploi-group {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
}

.emploi-group-header {
    background: linear-gradient(135deg, var(--bleu), var(--bleu-clair));
    color: white;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 14px 18px;
    letter-spacing: 0.5px;
}

.emploi-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f4ff;
    transition: background 0.2s;
}

.emploi-item:hover {
    background: #f8faff;
}

.emploi-item:last-child {
    border-bottom: none;
}

.emploi-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.emploi-classe {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--texte);
}

.emploi-annee {
    font-size: 0.72rem;
    color: var(--texte-doux);
}

.emploi-actions {
    display: flex;
    gap: 6px;
}

.btn-voir,
.btn-dl {
    padding: 5px 12px;
    border-radius: 8px;
    border: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-voir {
    background: #e8f0fe;
    color: var(--bleu);
}

.btn-voir:hover {
    background: var(--bleu);
    color: white;
}

.btn-dl {
    background: #e8f5e9;
    color: var(--vert);
}

.btn-dl:hover {
    background: var(--vert);
    color: white;
}


/* ══════════════════════════════
   MODAL EMPLOI DU TEMPS
══════════════════════════════ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 30, 70, 0.65);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-emploi {
    background: white;
    border-radius: 20px;
    padding: 32px;
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-emploi {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: var(--gris-clair);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    color: var(--texte-doux);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #e0e7ff;
    color: var(--bleu);
}

.modal-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e8eeff;
}

.modal-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--texte);
    margin-bottom: 4px;
}

.modal-header h3 span {
    color: var(--bleu);
}

.modal-header p {
    font-size: 0.85rem;
    color: var(--texte-doux);
}

.emploi-table-wrapper {
    overflow-x: auto;
    margin-bottom: 16px;
}

.emploi-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.emploi-table th {
    background: var(--bleu);
    color: white;
    padding: 10px 12px;
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
}

.emploi-table td {
    padding: 9px 12px;
    text-align: center;
    border-bottom: 1px solid #e8eeff;
    color: var(--texte);
}

.emploi-table tr:hover td {
    background: #f5f8ff;
}

.emploi-table tr.pause td {
    background: #fff8e1;
    color: var(--orange);
    font-weight: 600;
    font-size: 0.8rem;
    text-align: center;
}

.emploi-table td:first-child {
    font-weight: 600;
    color: var(--bleu);
    white-space: nowrap;
    background: #f0f4ff;
}

.modal-note {
    font-size: 0.8rem;
    color: var(--texte-doux);
    font-style: italic;
    margin-bottom: 16px;
}

.btn-dl-modal {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--vert), #388E3C);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
}

.btn-dl-modal:hover {
    background: linear-gradient(135deg, #1B5E20, var(--vert));
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(46, 125, 50, 0.3);
}


/* ══════════════════════════════
   ANIMATIONS
══════════════════════════════ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}


/* ══════════════════════════════
   FOOTER
══════════════════════════════ */

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */

@media (max-width: 1100px) {
    .frais-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .emplois-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .matieres-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .avis-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .nav-hamburger {
        display: flex;
    }
    .avis-grid {
        grid-template-columns: 1fr;
    }
    .frais-grid {
        grid-template-columns: 1fr;
    }
    .matieres-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .emplois-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-nav-pills {
        gap: 8px;
    }
    .pill {
        padding: 7px 14px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .matieres-grid {
        grid-template-columns: 1fr;
    }
    .modal-emploi {
        padding: 20px 14px;
    }
    .section-divider {
        margin-left: 0;
        margin-top: 10px;
    }
}