/* =========================
   LANGUAGE SWITCHER
========================= */
html[dir="rtl"] .A,
html[dir="rtl"] .B{
    text-align: right;
    padding-right: 25px;
}

html[dir="ltr"] .A,
html[dir="ltr"] .B{
    text-align: left;
    padding-left: 25px;
}
[data-lang]{
    white-space: pre-line;
}

.language-switcher{
    
    margin-top: 15%;
    position: fixed;

    top: 25px;
    right: 25px;

    z-index: 1001;

    transition: .4s ease;
}

.lang-btn{

    min-width: 120px;
    height: 55px;

    padding: 0 20px;

    border: 1px solid rgba(255,255,255,.2);

    border-radius: 999px;

    cursor: pointer;

    color: white;

    font-size: 16px;

    font-weight: 600;

    letter-spacing: 1px;

    backdrop-filter: blur(15px);

    background:
    rgba(255,255,255,.12);

    box-shadow:
    0 10px 30px rgba(0,0,0,.25);

    transition: .35s;
}

.lang-btn:hover{

    transform:
    translateY(-3px)
    scale(1.03);

    background:
    rgba(184,44,44,.85);

    box-shadow:
    0 15px 35px rgba(184,44,44,.4);
}

.language-switcher.hidden{

    opacity: 0;

    visibility: hidden;

    transform: translateY(-20px);
}

@media (max-width:768px){
    
    .language-switcher{
        margin-top: 1%;
        top: 20px;
        right: 20px;
    }

    .lang-btn{

        min-width: 75px;

        height: 55px;

        padding: 0 15px;

        font-size: 14px;
    }

}

* form{
    margin: 35px;
}

/* RESET */
body.no-scroll {
    overflow: hidden;
}

body {
    margin: 0;
    background-image: url("page-diaspora.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: -1;
}
/* الشريط العلوي */
.one {
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

/* القائمة الأفقية */
.tow {
    display: block;
    background-color: rgb(184, 44, 44);
}
.sidebar-header{
    display: flex;

}


.menu-items {
    display: flex;
    width: 100%;
}

.menu-items button {
    flex: 1;
    background: none;
    border: none;
    color: white;
    padding: 15px;
    cursor: pointer;
}

.menu-items button:hover {
    background-color: rgb(150, 30, 30);
}

/* نخفي أشياء الموبايل */
.menu-toggle {
    display: none;
}
.menu-toggle.hide,
.overlay {
    display: none;
    opacity: 0;
    transform: scale(0.8);
}
.menu-toggle.hidden {
    display: none;
}


/* الهيدر داخل القائمة */
.sidebar-header {
    display: flex;              /* 👈 السر */
    justify-content: space-between; /* يبعد العناصر */
    align-items: center;
    padding: 5px;
    background: white;
    border-bottom: 1px solid #eee;
}

/* الصورة (اللوجو) */
.sidebar-header img {
    width: 120px;
    height: 120px;  
}

/* زر التسجيل */
.sidebar-header button {
    background: white;
    border: 1.5px solid black;
    color: black;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.25s;
}

/* Hover محترم */
.sidebar-header button:hover {
    background: black;
    color: white;
    transform: translateY(-1px); /* حركة خفيفة */
}



@media (max-width: 768px) {

    
    /* زر دائري */
    .menu-toggle {
        position: fixed;
        top: 20px;
        left: 20px;
        width: 55px;
        height: 55px;
        border-radius: 50%;
        background-color: rgb(184, 44, 44);
        color: rgb(255, 255, 255);
        font-size: 22px;
        border: none;
        z-index: 1001;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 0.3s;

    }

    /* الخلفية السوداء */
    .overlay {
        position: fixed;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4);
        display: none;
        z-index: 999;
    }

    .overlay.show {
        display: block;
    }

    /* القائمة الجانبية */
    .tow {
        
        position: fixed;
        top: 0;
        left: -270px;
        width: 270px;
        height: 100vh;
        overflow-y: auto;
        flex-direction: column;
        background-color: white; /* 👈 أصبحت بيضاء */
        transition: 0.3s;
        z-index: 1000;
    }

    .tow.show {
        left: 0;
    }

    /* الهيدر */
    .sidebar-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        background: white;
    }

    .sidebar-header img {
        width: 80px;
        margin-bottom: 10px;
    }

    .sidebar-header button {
        background: white;
        border: 1px solid black; /* 👈 الحواف السوداء */
        padding: 10px;
        border-radius: 10px;
        cursor: pointer;
    }

    /* الأزرار */
    .menu-items {
        display: flex;
        flex-direction: column;
        padding: 15px;
        gap: 10px;
    }

    .menu-items button {
        color: black;
        background: #f5f5f5;
        border-radius: 8px;
        text-align: left;
    }

    /* نخفي النسخة العادية */
    .one {
        display: none;
    }
}
/* -------------------------------------------------------------------- */
/* -------------------------------------------------------------------- */
/* -------------------------------------------------------------------- */
/* -------------------------- FORM 2030 STYLE -------------------------- */
/* -------------------------------------------------------------------- */

.body{
    background-color: #f5f5f5;
    font-family: "Inter", Arial, sans-serif;
}



/* الحاوية */
.thri{

    margin-top: 70px;
    margin-bottom: 70px;

    padding: 20px;
}

/* الفورم */
.form{

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    gap: 30px;
}

/* الصناديق */
.form fieldset{

    width: 100%;

    max-width: 620px;

    padding: 40px;

    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 32px;

    background: rgba(255,255,255,0.08);

    backdrop-filter: blur(20px);

    -webkit-backdrop-filter: blur(20px);

    box-shadow:
    0 15px 50px rgba(0,0,0,0.25);

    animation: fadeUp .6s ease;
}

/* العناوين */
.form legend{

    font-size: 34px;

    font-weight: 800;

    color: white;

    padding: 0 12px;

    letter-spacing: 1px;
}

/* النصوص */
.form label{

    color: rgba(255,255,255,0.92);

    font-size: 130%;

    font-weight: 600;

    letter-spacing: .4px;
    text-shadow:0 4px 5px #030303;
}

/* جميع المدخلات */
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form textarea{

    width: 100%;

    margin-top: 10px;

    padding: 18px;

    border: none;

    outline: none;

    border-radius: 18px;

    background: rgba(255,255,255,0.12);

    color: white;

    font-size: 120%;

    transition: .3s ease;

    box-sizing: border-box;
}

/* التأثير عند الضغط */
.form input[type="text"]:focus,
.form input[type="email"]:focus,
.form input[type="tel"]:focus,
.form textarea:focus{

    background: rgba(255,255,255,0.18);

    transform: scale(1.01);

    box-shadow:
    0 0 0 4px rgba(255,255,255,0.06);
}

/* placeholder */
.form input::placeholder,
.form textarea::placeholder{

    color: rgba(255,255,255,0.6);
}

/* textarea */
.form textarea{

    min-height: 180px;

    resize: vertical;
}

/* ---------------- RADIO MODERNE ---------------- */

.form input[type="radio"]{

    appearance: none;

    width: 18px;

    height: 18px;

    border-radius: 50%;

    border: 2px solid rgba(255,255,255,0.7);

    background: transparent;

    margin-right: 10px;

    position: relative;

    top: 3px;

    cursor: pointer;

    font-size: 150%;

    transition: .25s ease;
}

/* الدائرة الداخلية */
.form input[type="radio"]:checked{

    border-color: rgb(184, 44, 44);

    background: rgb(184, 44, 44);

    box-shadow:
    0 0 10px rgba(184,44,44,0.7);
}

/* مسافة بين الخيارات */
.form label:has(input[type="radio"]){

    display: inline-flex;

    align-items: center;

    margin-bottom: 14px;

    cursor: pointer;
}

/* الفقرات */
.form p{

    color: rgba(255,255,255,0.85);

    line-height: 1.8;

    font-size: 150%;
}

/* زر الإرسال */
.form input[type="submit"]{

    width: 100%;

    height: 60px;

    border: none;

    border-radius: 18px;

    background: linear-gradient(
        135deg,
        rgb(184,44,44),
        rgb(120,20,20)
    );

    color: white;

    font-size: 150%;

    font-weight: 700;

    letter-spacing: 1px;

    cursor: pointer;

    transition: .3s ease;

    margin-top: 20px;
}

/* Hover */
.form input[type="submit"]:hover{

    transform: translateY(-2px);

    box-shadow:
    0 10px 25px rgba(184,44,44,0.35);
}

/* ---------------- MOBILE ---------------- */

@media (max-width: 768px){

    .thri{

        margin-top: 110px;

        padding: 15px;
    }

    .form fieldset{

        padding: 28px 22px;

        border-radius: 28px;
    }

    .form legend{

        font-size: 28px;
    }

    .form input[type="text"],
    .form input[type="email"],
    .form input[type="tel"],
    .form textarea{

        padding: 16px;

        font-size: 130%;
    }

    .form input[type="submit"]{

        height: 56px;
    }
}

/* Animation */
@keyframes fadeUp {

    from{

        opacity: 0;

        transform:
        translateY(40px);
    }

    to{

        opacity: 1;

        transform:
        translateY(0);
    }
}

/* --------------------------------------------------------------------- */
/* --------------------------------------------------------------------- */
.height{
    height: auto;
    width: 100%;
    background-color: rgba(184, 44, 44, 0.800);
    display: flex;
    gap: 3%;
    
}
.imag{
    width: 300px;
    height: 400px;
    margin-top:50px;
    margin-left: 2%;
}
@media (max-width: 600px){
   
    .height{
        flex-direction: column;
        height: auto;
        gap: 0px;
    }
    .imag {
        
        max-width: 250px;
        max-height: 350px;
        margin-left: 15%;
        margin-top: 10px;
    
    }
    
    .A{
        font-size: 15px;
        margin-left: 30px;
    }

    .A a{
        font-size: 19.5px;
    }
    .B{
        margin-left: 30px;
    }
    
    .B h1{
        
        margin-left: 30px;
    }
    .B a{
        
        font-size: 20px;
    }
}

.A{
    margin-top: 25px;
}

.A h1{
    font-family: Times ;
    font-size: 35px;
    margin-bottom: 10%;
    color: white;
}
.A p {
    font-size: 130%;
    line-height: 1.8;      
    margin-bottom: 8px;   
    color: white;
    font-family: Arial, Helvetica, sans-serif;
}
.A a{
    line-height: 1.8;
    color: rgb(255, 255, 255);
}

.B{
    margin-top: 25px;
}
.B h1{
    font-family:'Times New Roman', Times, serif;
    color: aliceblue;
    margin-left: 10px;
    font-size: 30px;
}
.B a{
    font-size: 20px ;
    line-height: 40px;
    margin-left: 10px;
    color:rgb(255, 255, 255);
}

.droits{
    height: auto;
    display:flex;
   
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8);
   
}
.motiver{
    height: 6vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items: center;
    text-align: center;
    background-color: rgba(184, 44, 44, 0.800);
}
.motiver p{
    color: aliceblue;
    font-family: 'Times New Roman', Times, serif;
    letter-spacing: 1px;
    font-size: 3vh;
    text-align: center;
}
@media (max-width: 600px) {
    .motiver{
        height: auto;
    }
}


.imag{
    display:flex;
    justify-content:center;
    align-items:center;
}
.imag img{
    max-width: 320px;
    height: auto;
    margin: 60px auto;

    display: block;
}
@media (max-width: 600px){

    .imag{
        max-width: 220px;
        margin: 20px auto;
    }
}

