/* ############## */
/* General */
/* ############## */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #f39c12;
    --accent-color-2: #f1c40f;
    --text-light: #ffffff;
    --text-dark: #2c3e50;
    --black: #000;
}

/* ################ */
/* Section commune */
/* ################ */
section {
    padding: 5rem 0;
    position: relative;
}

/* Title  */
.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}
.section-heading h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.section-heading h3 span {
    color: var(--accent-color);
}
.section-heading p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Bouton de redirection */
.arrow {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background-color: #2c3e50;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    right: 20px;
    bottom: 20px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.arrow:hover {
    background-color: #34495e;
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.icone {
    font-size: 20px;
    color: #fff;
    transition: transform 0.3s ease;
}

.arrow:hover .icone {
    transform: translateY(-2px);
}

/* Mode clair */
body:not(.dark) .navbar-toggler {
    color: #000;
}

/* Mode sombre */
body.dark .navbar-toggler {
    color: #fff;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-color);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 8px;
    transition: background 0.3s;
}

/* ############## */
/* Header */
/* ############## */
/* Header */
.navbar {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 100%
    );
    transition: 0.6s;
    z-index: 1000;
    padding: 15px 30px;
}
.navbar-toggler i {
    color: inherit;
    transition: color 0.3s ease;
}
.navbar .navbar-brand {
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1rem;
    transition: 0.6s;
}

.navbar-nav .nav-link {
    color: var(--text-light);
    margin: 0 10px;
    letter-spacing: 1px;
    transition: color 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover {
    color: var(--text-dark);
}

.navbar.sticky {
    padding: 10px 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Offcanvas menu  */
.offcanvas-end {
    width: 50% !important;
    max-width: 300px;
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 100%
    );
    color: #fff;
    transition: transform 0.3s ease-in-out;
}

/* Liens dans le menu */
.offcanvas .nav-link {
    color: #fff;
    margin: 10px 0;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.offcanvas .nav-link:hover {
    color: var(--text-dark);
}

/* Bouton de fermeture */
.offcanvas-header {
    border-bottom: none;
    justify-content: flex-end;
    padding: 1rem;
}

.offcanvas .btn-close {
    filter: invert(1);
}

/* ############## */
/* Acceuil */
/* ############## */
.home {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 100%
    );
    color: var(--text-light);
    padding: 8rem 0;
}
.home h5 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}
.home h2 {
    font-size: 3rem;
    line-height: 1.2;
}
.home h2 span {
    color: var(--accent-color);
}
.home p {
    font-size: 1.2rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent-color);
}
.atf-home-btn {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.first-btn,
.second-btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}
.first-btn {
    background-color: var(--accent-color);
    color: var(--text-dark);
}
.second-btn {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}
.first-btn:hover,
.second-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.first-btn:hover {
    background-color: var(--accent-color-2);
}
.second-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.fa-angle-right {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}
.first-btn:hover .fa-angle-right,
.second-btn:hover .fa-angle-right {
    transform: translateX(3px);
}

/* ############## */
/* À propos */
/* ############## */
.about {
    background-color: var(--primary-color);
    color: var(--text-light);
}
.about p span {
    color: var(--accent-color);
    font-weight: 600;
}
.rounded {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ############## */
/* Option */
/* ############## */
.option {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 100%
    );
    color: var(--text-light);
}
.cards {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    cursor: pointer;
}
.cards:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}
.icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    transition: all 0.5s ease;
}
.cards:hover .icon {
    transform: rotate(15deg) scale(1.1);
    color: var(--text-light);
}
.cards h3 {
    margin: 1rem 0;
}
.cards .btn {
    background-color: var(--accent-color);
    color: var(--text-dark);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}
.cards .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color: var(--accent-color-2);
}

/* ############## */
/* Sections */
/* ############## */
.section {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 4rem 0;
}

.section .section-heading h3 {
    font-size: 2rem;
    font-weight: 700;
}
.section .section-heading p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.icon-card {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.icon-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.icon-circle {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}
.icon-card:hover .icon-circle {
    transform: scale(1.2);
}

.icon-card h6 {
    margin-top: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
}

.bg-warning {
    background-color: var(--accent-color) !important;
}
.bg-primary {
    background-color: var(--secondary-color) !important;
}
.bg-success {
    background-color: #28a745 !important;
}
.bg-info {
    background-color: #17a2b8 !important;
}
.bg-danger {
    background-color: #e74c3c !important;
}
.bg-secondary {
    background-color: #6c757d !important;
}

/* ############## */
/* Contact */
/* ############## */
.contact {
    background-color: var(--primary-color);
    color: var(--text-light);
}
.contact .form-control,
.contact .form-select {
    color: var(--text-light) !important;
    border-radius: 0;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    background-color: transparent !important;
    padding: 1rem 0;
    transition: all 0.3s ease;
}
.contact .form-control:focus,
.contact .form-select:focus {
    box-shadow: none;
    border-color: var(--accent-color);
}
.contact .input-border {
    height: 2px;
    width: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}
.contact .form-group:focus-within .input-border {
    width: 100%;
}
.contact .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}
.contact .cards {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}
.contact .container .row form .mb-4 .form-group textarea {
    resize: none;
}
.contact .cards:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}
.contact .first-btn {
    padding: 0.8rem 3rem;
    font-size: 1.1rem;
}
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    background-color: rgba(33, 37, 41, 0.9) !important;
}

/* ############## */
/* Footer */
/* ############## */
.footer {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 100%
    );
    color: var(--text-light);
    padding: 3rem 0;
    cursor: pointer;
}

/* Cards du footer */
.contact-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    text-align: center;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Texte et email responsive */
.contact-card p.small {
    font-size: 0.9rem;
    word-break: break-word;
}

.contact-card h5 {
    font-size: 1rem;
}

/* Email long */
.email-link {
    word-break: break-all;
    display: inline-block;
}

/* Réseaux sociaux */
.social-links i {
    font-size: 1rem;
    transition: all 0.2s ease;
}

.social-links a:hover i {
    color: var(--accent-color) !important;
    transform: scale(1.2);
}

/* Compact sur mobile */
@media (max-width: 767px) {
    .contact-card {
        padding: 1.5rem 1rem;
        height: auto;
    }

    .contact-card p.small {
        font-size: 0.8rem;
    }

    .contact-card h5 {
        font-size: 0.9rem;
    }
}

/* ############################ */
/* Politique de Confidentialité */
/* ############################ */

.privacy-header {
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    margin-top: 5rem;
}

.privacy-section {
    padding: 2rem 0;
}

.privacy-section .container .row .privacy-card {
    border-left: 4px solid #ffb300;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.privacy-section .container .row .privacy-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.privacy-section .container .row .privacy-card .privacy-title {
    color: #1a237e;
    font-weight: 600;
}

.privacy-section .container .row .privacy-card .privacy-highlight {
    background-color: #e8eaf6;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

/* ############## */
/* Annonces        */
/* ############## */
#frais-scolaire {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* ############## */
/* Responsive */
/* ############## */
@media (max-width: 576px) {
    .home h2 {
        font-size: 1.8rem;
    }

    .section-heading h3 {
        font-size: 1.8rem;
    }

    .cards {
        margin-bottom: 1.5rem;
    }
    .contact-card {
        padding: 2rem !important;
    }
}

@media (max-width: 767.98px) {
    .footer {
        padding: 2rem 0;
    }

    .contact-card {
        margin-bottom: 1rem;
    }

    .social-links {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }

    .home {
        padding: 5rem 0;
    }

    .home h2 {
        font-size: 2rem;
    }

    .section-heading h3 {
        font-size: 2rem;
    }

    .atf-home-btn {
        flex-direction: column;
        gap: 1rem;
    }

    .second-btn {
        margin-left: 0 !important;
    }
    .contact {
        padding: 3rem 0;
    }

    .contact .cards {
        padding: 2rem !important;
    }
    .privacy-header {
        padding: 2rem 0;
    }

    .privacy-section {
        padding: 1rem 0;
    }
}
@media (max-width: 991.98px) {
    .footer {
        padding: 2.5rem 0;
    }
}
@media (max-width: 992px) {
    .home h2 {
        font-size: 2.5rem;
    }

    .section-heading h3 {
        font-size: 2.2rem;
    }
    .contact-card {
        margin-bottom: 2rem;
    }

    .social-links {
        justify-content: center !important;
    }
    .newsletter-card {
        margin-top: 2rem;
    }
}

/* Responsive navbar */
@media (max-width: 991px) {
    .navbar-nav {
        padding: 1rem;
    }

    .navbar-nav .nav-link {
        margin: 8px 0;
    }
}
