:root {
    --primary: #003366; /* Deep Blue */
    --secondary: #C5A059; /* Gold */
    --dark: #1a1a1a;
    --light: #f4f7f6;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --font-en: 'Poppins', sans-serif;
    --font-ar: 'Cairo', sans-serif;
    --accent-gradient: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-en);
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
}

/* Arabic Font Override */
html[lang="ar"] body {
    font-family: var(--font-ar);
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--secondary);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #b08d4b;
    transform: translateY(-2px);
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary);
    margin: 10px auto 0;
}

.bg-light {
    background-color: var(--light);
}

/* Navbar */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary);
}

.lang-switch {
    border: 1px solid var(--primary);
    padding: 5px 10px;
    border-radius: 20px;
}

.lang-switch a.active {
    color: var(--secondary);
    font-weight: bold;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark);
    transition: var(--transition);
}

/* Hero */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1560523160-754a9e25c68f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 70px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    text-align: center;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--secondary);
}

.card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    color: var(--dark);
}

/* About */
.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    list-style: none;
}

.stats .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
}

/* Contact */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-form {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, 
.contact-form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.contact-info {
    flex: 1;
    background: var(--primary);
    color: var(--white);
    padding: 40px;
    border-radius: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item i {
    color: var(--secondary);
    font-size: 1.2rem;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 16px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* RTL Specific Adjustments */
html[dir="rtl"] .nav-links {
    left: auto;
    right: -100%;
}
html[dir="rtl"] .nav-links.active {
    right: 0;
}
:root {
    --primary: #003366;
    --secondary: #C5A059;
    --dark: #1a1a1a;
    --light: #f4f7f6;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --font-en: 'Poppins', sans-serif;
    --font-ar: 'Cairo', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-en);
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    padding-top: 70px; /* Espace pour la navbar fixe */
}

html[lang="ar"] body { font-family: var(--font-ar); }

/* Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.btn {
    display: inline-block; padding: 12px 30px; background: var(--secondary);
    color: var(--white); text-decoration: none; border-radius: 5px;
    font-weight: 600; transition: var(--transition); border: none; cursor: pointer;
}
.btn:hover { background: #b08d4b; transform: translateY(-2px); }
.section { padding: 80px 0; }
.section-title {
    text-align: center; font-size: 2.5rem; margin-bottom: 50px;
    color: var(--primary); position: relative;
}
.section-title::after {
    content: ''; display: block; width: 60px; height: 3px;
    background: var(--secondary); margin: 10px auto 0;
}

/* Page Header (Pour les pages internes) */
.page-header {
    background: var(--primary);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}
.page-header h1 { font-size: 2.5rem; }

/* Navbar */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed; width: 100%; top: 0; z-index: 1000;
    height: 70px; display: flex; align-items: center;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo {
    font-size: 1.5rem; font-weight: 700; color: var(--primary);
    text-decoration: none; display: flex; align-items: center; gap: 10px;
}
.nav-links { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 500; transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--secondary); }
.lang-switch { border: 1px solid var(--primary); padding: 5px 10px; border-radius: 20px; }
.lang-switch a.active { color: var(--secondary); font-weight: bold; }

.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--dark); transition: var(--transition); }

/* Hero */
.hero {
    height: 90vh; /* Ajusté pour ne pas être coupé par la navbar */
     background: 
        radial-gradient(ellipse at center, rgba(34, 135, 198, 0.8) 0%, transparent 70%),
        linear-gradient(180deg, #0d1f3c 0%, #061018 100%); /* couleur degradé */
    position: relative; display: flex; align-items: center;
    margin-top: -70px; /* Annule le padding-top du body pour cette page seulement */
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 51, 102, 0.7); }
.hero-content { position: relative; z-index: 1; color: var(--white); text-align: center; max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: 2.5rem; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card {
    background: var(--white); padding: 40px; border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); text-align: center;
    transition: var(--transition); border-bottom: 3px solid transparent;
}
.card:hover { transform: translateY(-10px); border-bottom: 3px solid var(--secondary); }
.card i { font-size: 3rem; color: var(--primary); margin-bottom: 20px; }

/* About */
.about-container { display: flex; flex-wrap: wrap; align-items: center; gap: 50px; }
.about-text { flex: 1; min-width: 300px; }
.about-image { flex: 1; min-width: 300px; }
.about-image img { width: 100%; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.stats { display: flex; gap: 30px; margin-top: 30px; list-style: none; }
.stats .number { display: block; font-size: 2.5rem; font-weight: 700; color: var(--secondary); }

/* Contact */
.contact-wrapper { display: flex; flex-wrap: wrap; gap: 40px; }
.contact-form { flex: 2; display: flex; flex-direction: column; gap: 15px; }
.contact-form input, .contact-form textarea { padding: 15px; border: 1px solid #ddd; border-radius: 5px; font-family: inherit; }
.contact-info { flex: 1; background: var(--primary); color: var(--white); padding: 40px; border-radius: 10px; }
.info-item { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.info-item i { color: var(--secondary); font-size: 1.2rem; }

/* Footer */
footer { background: var(--dark); color: var(--white); text-align: center; padding: 20px 0; margin-top: 50px; }

/* Responsive */
@media (max-width: 768px) {
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .nav-links {
        position: fixed; left: -100%; top: 70px; gap: 0; flex-direction: column;
        background-color: var(--white); width: 100%; text-align: center; transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    .nav-links.active { left: 0; }
    .nav-links li { margin: 16px 0; }
    .hero h1 { font-size: 2.5rem; }
}

/* RTL */
html[dir="rtl"] .nav-links { left: auto; right: -100%; }
html[dir="rtl"] .nav-links.active { right: 0; }







/* ============================================
   FOOTER AMÉLIORÉ
   ============================================ */

.site-footer {
    background: linear-gradient(135deg, var(--primary) 0%, #002244 100%);
    color: var(--white);
    margin-top: 0;
    padding-top: 0;
}

.footer-top {
    padding: 80px 0 60px;
    background: var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

/* Colonne Logo & Description */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-logo i {
    color: var(--secondary);
    font-size: 2rem;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* Réseaux Sociaux */
.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

/* Titres des Colonnes */
.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--white);
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary);
}

html[dir="rtl"] .footer-col h4::after {
    left: auto;
    right: 0;
}

/* Liens du Footer */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

html[dir="rtl"] .footer-links a:hover {
    padding-left: 0;
    padding-right: 5px;
}

.footer-links i {
    font-size: 0.7rem;
    color: var(--secondary);
}

/* Contact Info Footer */
.contact-info-footer {
    margin-bottom: 25px;
}

.info-item-footer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.info-item-footer i {
    color: var(--secondary);
    margin-top: 3px;
}

/* Newsletter */
.newsletter h5 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--white);
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--secondary);
}

.newsletter-form button {
    padding: 12px 18px;
    background: var(--secondary);
    border: none;
    border-radius: 5px;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: #b08d4b;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.payment-methods i {
    font-size: 1.5rem;
    color: var(--white);
    transition: var(--transition);
}

.payment-methods i:hover {
    color: var(--secondary);
}

.footer-legal {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--secondary);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-top {
        padding: 50px 0 30px;
    }

    .footer-grid {
        gap: 30px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .payment-methods {
        justify-content: center;
    }

    .footer-legal {
        gap: 15px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }
}

/* RTL Adjustments for Footer */
html[dir="rtl"] .footer-col h4::after {
    left: auto;
    right: 0;
}

html[dir="rtl"] .footer-links a:hover {
    padding-left: 0;
    padding-right: 5px;
}

html[dir="rtl"] .payment-methods {
    flex-direction: row-reverse;
}