* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #172033;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}


/* =========================
   EN-TÊTE
========================= */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e7e7e7;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-placeholder,
.logo-image {
    width: 65px;
    height: 65px;
    flex: 0 0 65px;
    border-radius: 50%;
    background: #f0f2ed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-placeholder {
    font-size: 12px;
    font-weight: bold;
    color: #777;
}

.logo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand-text h1 {
    font-size: 18px;
    color: #102957;
}

.brand-text p {
    font-size: 15px;
    color: #155c35;
}


/* =========================
   MENU
========================= */

.navigation {
    display: flex;
    align-items: center;
    gap: 18px;
}

.navigation a {
    color: #172033;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}

.navigation a span {
    display: block;
    direction: rtl;
    color: #155c35;
    font-size: 12px;
    font-weight: normal;
    margin-top: 2px;
}

.navigation a:hover {
    color: #155c35;
}


/* =========================
   HERO
========================= */

.hero {
    background: linear-gradient(135deg, #063d25, #0b693d);
    color: white;
    padding: 100px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: center;
    gap: 50px;
}

.surtitle {
    letter-spacing: 3px;
    font-size: 14px;
    margin-bottom: 15px;
}

.hero h2 {
    font-size: 52px;
    line-height: 1.15;
    margin-bottom: 15px;
}

.arabic-title {
    font-size: 30px;
    direction: rtl;
    margin-bottom: 25px;
}

.hero-description {
    font-size: 20px;
    margin-bottom: 5px;
}

.arabic-description {
    font-size: 19px;
    direction: rtl;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 13px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.btn-primary {
    background: #ffffff;
    color: #0b5d35;
}

.btn-secondary {
    border: 1px solid white;
    color: white;
}

.btn-primary span,
.btn-secondary span {
    display: block;
    font-size: 12px;
    direction: rtl;
    font-weight: normal;
}

.hero-decoration {
    min-height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.book-icon {
    font-size: 100px;
    margin-bottom: 20px;
}

.hero-decoration p {
    font-size: 20px;
}

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero-registration-actions {
    display: flex;
    gap: 14px;
    width: 100%;
}

.registration-btn {
    flex: 1;
    min-height: 72px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    transition: 0.25s ease;
    box-sizing: border-box;
}

.registration-btn span {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    font-weight: normal;
}

.registration-btn-main {
    background: white;
    color: #245c45;
    border: 1px solid white;
}

.registration-btn-track {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.registration-btn:hover {
    transform: translateY(-2px);
}

/* =========================
   SECTIONS
========================= */

.section {
    padding: 90px 0;
}

.section-light {
    background: #f5f7f3;
}

.section-heading {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.section-label {
    color: #b17a0b;
    letter-spacing: 3px;
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 10px;
}

.section-heading h2 {
    font-size: 34px;
    color: #102957;
    margin-bottom: 8px;
}

.section-heading p:last-child {
    color: #155c35;
    font-size: 19px;
}


/* =========================
   PRÉSENTATION
========================= */

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.content-box {
    background: white;
    padding: 35px;
    border-radius: 12px;
    border: 1px solid #e7e7e7;
}

.content-box h3 {
    color: #102957;
    font-size: 24px;
    margin-bottom: 20px;
}

.content-box p {
    margin-bottom: 15px;
    color: #555;
}

.arabic-box {
    text-align: right;
}

.arabic-box h3 {
    color: #155c35;
}


/* =========================
   CARTES
========================= */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.feature-card {
    background: white;
    padding: 35px;
    text-align: center;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

.feature-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #e9f0e8;
    color: #155c35;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
}

.feature-card h3 {
    color: #102957;
    margin-bottom: 12px;
}

.feature-card p {
    color: #666;
}

.arabic-text {
    margin-top: 12px;
    color: #155c35 !important;
}


/* =========================
   VISION
========================= */

.vision-box {
    background: #102957;
    color: white;
    padding: 50px;
    border-radius: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.vision-box h3 {
    font-size: 25px;
    margin-bottom: 15px;
}

.vision-box p {
    color: #e4e8ef;
}

.arabic-content {
    text-align: right;
}


/* =========================
   VALEURS
========================= */

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.value-card {
    background: white;
    border: 1px solid #e2e2e2;
    padding: 30px 20px;
    text-align: center;
    border-radius: 12px;
}

.value-number {
    color: #b17a0b;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
}

.value-card h3 {
    color: #102957;
    font-size: 22px;
}

.value-card p {
    color: #155c35;
    font-size: 18px;
}

.slogan {
    text-align: center;
    margin-top: 45px;
}

.slogan p:first-child {
    font-size: 25px;
    color: #102957;
    font-weight: bold;
}

.slogan p:last-child {
    color: #155c35;
    font-size: 20px;
    margin-top: 5px;
}


/* =========================
   CONTACT
========================= */

.contact-section {
    background: #ffffff;
}

.contact-box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.contact-item {
    background: #f5f7f3;
    padding: 25px;
    border-radius: 10px;
}

.contact-item h3 {
    color: #102957;
    margin-bottom: 10px;
}

.contact-item p {
    color: #666;
}

.contact-item p[dir="rtl"] {
    color: #155c35;
    margin-top: 5px;
}


/* =========================
   GALERIE PHOTOS
========================= */

.photo-section {
    overflow: hidden;
}

.school-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.school-photo {
    margin: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
}

.school-photo-featured {
    grid-column: span 2;
    grid-row: span 2;
}

.school-photo img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.school-photo-featured img {
    height: 100%;
    min-height: 562px;
}

.school-photo:hover img {
    transform: scale(1.035);
}

.school-photo figcaption {
    padding: 14px 16px;
    font-weight: 600;
    color: #102957;
}


/* =========================
   PHOTOS DU DIRECTEUR
========================= */

.director-profile {
    display: block;
}

.director-photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 24px;
}

.director-photos figure {
    margin: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
}

.director-photos img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    display: block;
}


/* =========================
   PIED DE PAGE
========================= */

.site-footer {
    background: #102957;
    color: white;
    text-align: center;
    padding: 50px 20px;
}

.site-footer h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.site-footer p {
    margin-top: 8px;
}

.site-footer p[dir="rtl"] {
    color: #d7e7dc;
}

.footer-line {
    width: 80px;
    height: 2px;
    background: #b17a0b;
    margin: 25px auto;
}

.copyright {
    font-size: 13px;
    color: #c7ced9;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 950px) {

    .header-content {
        flex-direction: column;
        padding: 20px 0;
    }

    .navigation {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero h2 {
        font-size: 40px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-box {
        grid-template-columns: repeat(2, 1fr);
    }

    .vision-box {
        grid-template-columns: 1fr;
    }

    .school-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .school-photo-featured {
        grid-column: span 2;
        grid-row: auto;
    }

    .school-photo-featured img {
        height: 380px;
        min-height: 0;
    }
}


@media (max-width: 600px) {

    .hero {
        padding: 70px 0;
    }

    .hero h2 {
        font-size: 32px;
    }

    .arabic-title {
        font-size: 24px;
    }

    .two-columns {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .contact-box {
        grid-template-columns: 1fr;
    }

    .navigation {
        gap: 12px;
    }

    .school-gallery,
    .director-photos {
        grid-template-columns: 1fr;
    }

    .school-photo-featured {
        grid-column: span 1;
    }

    .school-photo img,
    .school-photo-featured img {
        height: 260px;
        min-height: 0;
    }

    .director-photos img {
        height: 320px;
    }

    .logo-placeholder,
    .logo-image {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
    }
}
