/* ======================================================
   landing.css - ENS-NDJ - VERSION CORRIGÉE
   ====================================================== */

/* Zone principale */
.landing-zone {
    height: calc(100vh - 160px);
    min-height: 500px;
}

/* Image de fond */
.landing-bg {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Voile sombre */
.landing-overlay {
    height: 100%;
    width: 100%;
    background: rgba(0, 50, 30, 0.65);
    position: relative;
    padding: 2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* ======================================================
   COUNTDOWN
   ====================================================== */

.countdown-box {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: #01021e;
    padding: 12px 24px;
    border-radius: 10px;
    color: #a40c0c;
    text-align: center;
    box-shadow: 0 6px 20px rgba(147, 202, 222, 0.5);
    z-index: 10;
}

.countdown-fr,
.countdown-ar {
    margin: 4px 0;
    font-size: 1.2rem;
}

.countdown-ar {
    font-family: "Amiri", "Noto Naskh Arabic", serif;
}

.countdown-box span {
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.25);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 4px;
}

/* ======================================================
   COLONNES
   ====================================================== */

.landing-columns {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 4rem 3rem 2rem;
}

.landing-col {
    flex: 1;
    max-width: 500px;
    color: #fff;
}

.col-fr {
    text-align: left;
}

.col-ar {
    text-align: right;
    font-family: "Amiri", "Noto Naskh Arabic", serif;
}

.landing-col h1 {
    font-size: clamp(1.5rem, 2vw + 0.8rem, 2.2rem);
    margin-bottom: 1rem;
    line-height: 1.35;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.landing-desc {
    font-size: clamp(0.95rem, 1.2vw + 0.5rem, 1.15rem);
    line-height: 1.7;
    opacity: 0.95;
}

/* ======================================================
   BOUTON LANGUE
   ====================================================== */

.landing-action {
    text-align: center;
    padding: 1rem 0 2rem;
}

.btn-lang-landing {
    background: #004d26;
    border: 2px solid #dc3545;
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-lang-landing:hover {
    background: #dc3545;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

/* ======================================================
   RESPONSIVE
   ====================================================== */

@media (max-width: 991.98px) {
    .landing-zone {
        height: auto;
        min-height: calc(100vh - 120px);
    }
    
    .landing-overlay {
        padding: 1.5rem;
    }
    
    .countdown-box {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        margin-bottom: 1.5rem;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }
    
    .landing-columns {
        flex-direction: column !important;
        padding: 0 1rem;
        gap: 2rem;
    }
    
    .landing-col {
        width: 100% !important;
        max-width: 100%;
        text-align: center !important;
    }
    
    .col-ar {
        text-align: center !important;
    }
    
    .landing-col h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .countdown-box {
        padding: 10px 16px;
    }
    
    .countdown-fr,
    .countdown-ar {
        font-size: 0.85rem;
    }
    
    .countdown-box span {
        font-size: 1rem;
    }
    
    .landing-col h1 {
        font-size: 1.3rem;
    }
    
    .landing-desc {
        font-size: 0.9rem;
    }
    
    .btn-lang-landing {
        font-size: 1rem;
        padding: 12px 24px;
    }
}

/* ======================================================
   RTL
   ====================================================== */

html[lang="ar"] .landing-columns,
html[dir="rtl"] .landing-columns,
body.rtl .landing-columns,
body.lang-ar .landing-columns {
    flex-direction: row-reverse;
}

@media (max-width: 991.98px) {
    html[lang="ar"] .landing-columns,
    html[dir="rtl"] .landing-columns,
    body.rtl .landing-columns,
    body.lang-ar .landing-columns {
        flex-direction: column !important;
    }
}