/* Variables CSS */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e6c757; /* Or clair */
    --gold-light: #f4e4a3; /* Or très clair */
    --gold-dark: #d4a436; /* Or foncé */
    --light-bg: #fafafa;
    --lighter-bg: #ffffff;
    --dark-bg: #1a1a1a;
    --text-dark: #333333;
    --text-light: #ffffff;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--lighter-bg);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gold-dark);
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.bg-dark {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

.text-white {
    color: var(--text-light);
}

.text-muted {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.hidden {
    display: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.btn-primary:hover {
    background-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--text-dark);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--text-dark);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--lighter-bg);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-dark);
}

.logo-accent {
    color: var(--secondary-color);
    margin-right: 10px;
}

.logo-text {
    display: none;
}

.main-nav {
    display: none;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    position: relative;
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-switcher {
    display: none;
}

.lang-btn {
    padding: 5px 10px;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn:hover {
    border-color: var(--secondary-color);
}

.lang-btn.active {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--lighter-bg);
    box-shadow: -4px 0 8px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1001;
    padding: 2rem;
}

.mobile-menu.active {
    right: 0;
}

.close-menu-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav-list {
    list-style: none;
    margin-top: 3rem;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 0;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
}

.mobile-lang-switcher {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.7)), url('../images/hero-image.jpg') center/cover;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath fill='%23e6c757' d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z'%3E%3C/path%3E%3C/svg%3E");
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.hero-title {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--secondary-color);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.hero-description {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.125rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Arabic SVG Animation */
.arabic-svg {
    position: absolute;
    width: 100%;
    max-width: 800px;
    height: 150px;
    opacity: 0.7;
    left: 50%;
    transform: translateX(-50%);
}

.arabic-svg-top {
    top: 10%;
}

.arabic-svg-bottom {
    bottom: 10%;
}

.arabic-path {
    stroke: var(--secondary-color);
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw 4s forwards;
    filter: drop-shadow(0 0 3px rgba(230, 199, 87, 0.5));
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Expertise Section */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.expertise-card {
    background-color: var(--lighter-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.expertise-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gold-light);
    color: var(--gold-dark);
    border-radius: 50%;
    font-size: 1.5rem;
}

.expertise-list {
    list-style: none;
    margin-top: 1rem;
}

.expertise-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.expertise-list i {
    color: var(--secondary-color);
    margin-top: 0.25rem;
}

/* Publication Card */
.publication-card {
    background-color: var(--lighter-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.publication-content {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.publication-image {
    flex-shrink: 0;
}

.publication-image img {
    width: 200px;
    height: auto;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
}

.publication-details h4 {
    margin-bottom: 0.5rem;
}

.publication-publisher {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.publication-quote {
    font-style: italic;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--secondary-color);
}

.publication-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--secondary-color);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card .service-icon {
    margin: 0 auto 1.5rem;
}

.service-list {
    list-style: none;
    text-align: left;
    margin-top: 1rem;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.service-list i {
    color: var(--secondary-color);
    margin-top: 0.25rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
}

.about-sidebar {
    text-align: center;
    position: sticky;
    top: 100px;
    align-self: start;
}

.about-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gold-light);
    color: var(--gold-dark);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.about-location p {
    margin-bottom: 0.5rem;
}

.about-location i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

/* Atouts */
.atouts-list {
    margin-top: 1.5rem;
}

.atout-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.atout-marker {
    width: 16px;
    height: 16px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.atout-content h4 {
    margin-bottom: 0.5rem;
}

/* Affiliations */
.affiliations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.affiliation-card {
    background-color: var(--lighter-bg);
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    font-weight: 500;
}

/* Testimonials */
.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-wrapper {
    position: relative;
    min-height: 250px;
}

.testimonial-card {
    display: none;
    background-color: var(--lighter-bg);
    color: var(--text-dark);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.testimonial-card.active {
    display: block;
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--gold-light);
    border-radius: 50%;
}

.author-name {
    font-weight: bold;
}

.author-title {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--secondary-color);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-dark);
}

.faq-question i {
    color: var(--secondary-color);
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-top: 1rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gold-light);
    color: var(--gold-dark);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Contact Form */
.contact-form {
    background-color: var(--lighter-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(230, 199, 87, 0.1);
}

.form-status {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-light);
}

.footer-brand p {
    margin-top: 0.5rem;
    color: rgba(255,255,255,0.7);
}

.footer-social a {
    color: var(--text-light);
    margin-left: 1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
    color: var(--text-light);
}

.footer-credit {
    text-align: center;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
}

.footer-credit a {
    color: var(--secondary-color);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--gold-dark);
    transform: translateY(-3px);
}

/* RTL Support */
[dir="rtl"] {
    direction: rtl;
}

[dir="rtl"] .nav-link::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .service-list li,
[dir="rtl"] .expertise-list li {
    flex-direction: row-reverse;
}

[dir="rtl"] .atout-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .testimonial-card {
    border-left: none;
    border-right: 4px solid var(--secondary-color);
}

/* Responsive */
@media (min-width: 768px) {
    .logo-text {
        display: inline;
    }
    
    .main-nav {
        display: block;
    }
    
    .language-switcher {
        display: flex;
        gap: 0.5rem;
    }
    
    .mobile-menu-btn {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .publication-content {
        flex-direction: column;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-sidebar {
        position: static;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content,
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}