/* ══════════════════════════════════════════
   COMPLEXE SCOLAIRE SEKOU FOFANA
   Feuille de style — Pages Spéciales
   (Anniversaires & CA)
   Fichier : css/special.css
══════════════════════════════════════════ */


/* ══════════════════════════════
   VARIABLES & RESET
══════════════════════════════ */

:root {
    --bleu: #0D47A1;
    --bleu-clair: #1565C0;
    --or: #FFD700;
    --vert: #2E7D32;
    --vert-clair: #388E3C;
    --orange: #E65100;
    --violet: #6A1B9A;
    --rouge: #C62828;
    --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;
}

img {
    max-width: 100%;
    display: block;
}


/* ══════════════════════════════
   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: 4px;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 7px 11px;
    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 16px !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 SPÉCIAL
══════════════════════════════ */

.hero-special {
    padding: 70px 5% 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-special--bleu {
    background: linear-gradient(135deg, #0D47A1, #1565C0, #1976D2);
}

.hero-special--vert {
    background: linear-gradient(135deg, #1B5E20, #2E7D32, #388E3C);
}

.hero-special::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.hero-special::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    pointer-events: none;
}

.hero-special-deco {
    font-size: 5rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

.hero-special-content {
    position: relative;
    z-index: 1;
}

.hero-tag-sp {
    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.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hero-special h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    color: white;
    margin-bottom: 16px;
    line-height: 1.15;
}

.hero-special h1 span {
    color: var(--or);
}

.hero-special p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    max-width: 620px;
    margin: 0 auto 28px;
    line-height: 1.75;
}

.btn-hero-sp {
    display: inline-block;
    background: var(--or);
    color: var(--bleu);
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.25s;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-hero-sp:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}


/* ══════════════════════════════
   SECTIONS SPÉCIALES
══════════════════════════════ */

.section-sp {
    padding: 70px 5%;
}

.bg-white {
    background: white;
}

.bg-light {
    background: var(--gris-clair);
}

.bg-blue-sp {
    background: linear-gradient(135deg, #0D47A1, #1565C0);
}

.sp-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 16px;
}

.sp-icon-box {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--bleu), var(--bleu-clair));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(13, 71, 161, 0.25);
}

.sp-icon-box--vert {
    background: linear-gradient(135deg, #1B5E20, var(--vert));
    box-shadow: 0 6px 20px rgba(27, 94, 32, 0.25);
}

.sp-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--texte);
    line-height: 1.2;
}

.sp-header h2 span {
    color: var(--bleu);
}

.sp-header p {
    color: var(--texte-doux);
    font-size: 0.9rem;
    margin-top: 4px;
}

.sp-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--bleu), var(--or));
    border-radius: 2px;
    margin: 0 0 40px 74px;
}


/* ══════════════════════════════
   AVANTAGES GRID
══════════════════════════════ */

.avantages-sp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.avantage-sp {
    background: white;
    border-radius: 18px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-top: 4px solid var(--bleu);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avantage-sp--vert   { border-top-color: var(--vert); }
.avantage-sp--bleu   { border-top-color: var(--bleu); }
.avantage-sp--or     { border-top-color: var(--or); }
.avantage-sp--orange { border-top-color: var(--orange); }


/* ══════════════════════════════
   MODIFICATEURS — FORMULES
══════════════════════════════ */

.formule-header--vert   { background: linear-gradient(135deg, var(--vert), var(--vert-clair)); }
.formule-header--bleu   { background: linear-gradient(135deg, var(--bleu), var(--bleu-clair)); }
.formule-header--violet { background: linear-gradient(135deg, #6A1B9A, #7B1FA2); }


/* ══════════════════════════════
   SECTION BLEUE — SURCHARGES
   Styles contextuels pour les éléments
   affichés sur fond .bg-blue-sp
══════════════════════════════ */

.bg-blue-sp .sp-header h2     { color: white; }
.bg-blue-sp .sp-header h2 span { color: var(--or); }
.bg-blue-sp .sp-header p      { color: rgba(255, 255, 255, 0.8); }

.sp-icon-box--glass {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.sp-divider--light {
    background: linear-gradient(90deg, var(--or), white);
}

.avantage-sp:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.1);
}

.av-icon {
    font-size: 2.5rem;
    margin-bottom: 14px;
    display: block;
}

.avantage-sp h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--texte);
    margin-bottom: 10px;
}

.avantage-sp p {
    font-size: 0.85rem;
    color: var(--texte-doux);
    line-height: 1.6;
}


/* ══════════════════════════════
   FORMULES ANNIVERSAIRES
══════════════════════════════ */

.formules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.formule-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.formule-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

.formule-card.popular {
    transform: scale(1.03);
    box-shadow: 0 10px 40px rgba(13, 71, 161, 0.2);
}

.formule-card.popular:hover {
    transform: scale(1.03) translateY(-8px);
}

.formule-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--or);
    color: var(--bleu);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 5px 20px;
    border-radius: 0 0 12px 12px;
    letter-spacing: 0.5px;
    z-index: 2;
}

.formule-header {
    padding: 32px 24px 24px;
    text-align: center;
    color: white;
}

.formule-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
}

.formule-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.formule-prix {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.formule-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.formule-item {
    font-size: 0.87rem;
    color: var(--texte);
    padding: 8px 12px;
    background: var(--gris-clair);
    border-radius: 8px;
    font-weight: 500;
}

.btn-formule {
    display: block;
    margin: 0 24px 24px;
    padding: 13px;
    background: linear-gradient(135deg, var(--bleu), var(--bleu-clair));
    color: white;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.25s;
}

.btn-formule:hover {
    background: linear-gradient(135deg, #0a3d8f, var(--bleu));
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(13, 71, 161, 0.3);
}


/* ══════════════════════════════
   GALERIE SPÉCIALE
══════════════════════════════ */

.galerie-sp {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    gap: 16px;
}

.galerie-sp-item {
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: linear-gradient(135deg, #e8eeff, #dce8ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.galerie-sp-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.galerie-sp-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.galerie-sp-item:hover img {
    transform: scale(1.06);
}

.galerie-sp-item::after {
    content: '🔍';
    position: absolute;
    inset: 0;
    background: rgba(13, 71, 161, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.galerie-sp-item:hover::after {
    opacity: 1;
}


/* ══════════════════════════════
   FORMULAIRE SPÉCIAL
══════════════════════════════ */

.form-sp-wrapper {
    max-width: 680px;
    margin: 0 auto;
}

.form-sp {
    background: white;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.15);
}

.form-sp-group {
    margin-bottom: 18px;
}

.form-sp-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--texte);
    margin-bottom: 7px;
}

.form-sp-group input,
.form-sp-group select,
.form-sp-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e7ff;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--texte);
    background: white;
    transition: border-color 0.2s;
    outline: none;
}

.form-sp-group input:focus,
.form-sp-group select:focus,
.form-sp-group textarea:focus {
    border-color: var(--bleu);
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.08);
}

.form-sp-group textarea {
    height: 100px;
    resize: vertical;
}

.form-sp-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-sp-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--bleu), var(--bleu-clair));
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 8px;
}

.btn-sp-submit:hover {
    background: linear-gradient(135deg, #0a3d8f, var(--bleu));
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 71, 161, 0.35);
}


/* ══════════════════════════════
   CA — INTRO & POINTS
══════════════════════════════ */

.ca-intro {
    background: white;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.ca-intro>p {
    font-size: 1rem;
    color: var(--texte-doux);
    line-height: 1.7;
    margin-bottom: 24px;
}

.ca-intro>p strong {
    color: var(--bleu);
}

.ca-points {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.ca-point {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--gris-clair);
    padding: 18px;
    border-radius: 12px;
    border-left: 4px solid var(--vert);
    transition: transform 0.2s;
}

.ca-point:hover {
    transform: translateX(4px);
}

.ca-point-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.ca-point h4 {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--texte);
    margin-bottom: 4px;
}

.ca-point p {
    font-size: 0.83rem;
    color: var(--texte-doux);
    line-height: 1.5;
}


/* ══════════════════════════════
   CA — RÉUNIONS
══════════════════════════════ */

.reunions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.reunion-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
    border-left: 4px solid var(--bleu);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.reunion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.reunion-card.passee {
    border-left-color: var(--vert);
}

.reunion-card.a-venir {
    border-left-color: var(--or);
    background: #fffef5;
}

.reunion-card.planifiee {
    border-left-color: var(--texte-doux);
    background: #f9f9f9;
}

.reunion-statut {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.reunion-statut.passee {
    background: #e8f5e9;
    color: var(--vert);
}

.reunion-statut.a-venir {
    background: #fff8e1;
    color: #E65100;
}

.reunion-statut.planifiee {
    background: #f5f5f5;
    color: var(--texte-doux);
}

.reunion-date {
    font-size: 0.82rem;
    color: var(--bleu);
    font-weight: 600;
    margin-bottom: 10px;
}

.reunion-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--texte);
    margin-bottom: 8px;
    line-height: 1.3;
}

.reunion-card p {
    font-size: 0.83rem;
    color: var(--texte-doux);
    line-height: 1.55;
    margin-bottom: 12px;
}

.reunion-participants {
    font-size: 0.78rem;
    color: var(--texte-doux);
    font-weight: 500;
    background: var(--gris-clair);
    padding: 5px 10px;
    border-radius: 8px;
    display: inline-block;
}


/* ══════════════════════════════
   CA — CITATION
══════════════════════════════ */

.ca-citation {
    text-align: center;
    max-width: 750px;
    margin: 0 auto;
    padding: 20px;
}

.citation-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.ca-citation blockquote {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 600;
    color: white;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 20px;
}

.ca-citation cite {
    color: var(--or);
    font-size: 0.9rem;
    font-weight: 600;
    font-style: normal;
}


/* ══════════════════════════════
   TOAST SPÉCIAL
══════════════════════════════ */

.toast-sp {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--texte);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 3000;
    opacity: 0;
    transition: all 0.4s ease;
    white-space: nowrap;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.toast-sp.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-sp.erreur {
    background: var(--rouge);
}

.toast-sp.succes {
    background: var(--vert);
}


/* ══════════════════════════════
   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) {
    .avantages-sp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .formules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .reunions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .nav-hamburger {
        display: flex;
    }
    .avantages-sp-grid {
        grid-template-columns: 1fr;
    }
    .formules-grid {
        grid-template-columns: 1fr;
    }
    .formule-card.popular {
        transform: none;
    }
    .reunions-grid {
        grid-template-columns: 1fr;
    }
    .ca-points {
        grid-template-columns: 1fr;
    }
    .galerie-sp {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .galerie-sp-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }
    .form-sp-row {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .sp-divider {
        margin-left: 0;
        margin-top: 10px;
    }
    .sp-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .galerie-sp {
        grid-template-columns: 1fr;
    }
    .galerie-sp-item.large {
        grid-column: span 1;
    }
    .section-sp {
        padding: 50px 4%;
    }
    .form-sp {
        padding: 24px 16px;
    }
}