/* ============================
   MAÎTRE LAMINE ZAKARIA - CSS
   BARRISTAR THEME STYLE
   ============================ */
:root {
    --gold: #c19b76;
    --gold-light: #dfba98;
    --gold-dark: #a87b51;
    --navy: #112946;
    --navy-light: #1a3c63;
    --navy-dark: #0a192d;
    --light: #ffffff;
    --light-gray: #f9f9f9;
    --border: #e2e8f0;
    --text: #475569;
    --text-muted: #64748b;
    --font-ar: 'Cairo', sans-serif;
    --font-display: 'Amiri', serif;
    --font-latin: 'Playfair Display', serif;
    --font-sans-latin: 'Open Sans', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-ar);
    background: var(--light);
    color: var(--text);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}
body.lang-fr {
    direction: ltr;
    text-align: left;
    font-family: var(--font-sans-latin);
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 30px; }

/* typography headers */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); color: var(--navy); }
body.lang-fr h1, body.lang-fr h2, body.lang-fr h3, body.lang-fr h4, body.lang-fr h5, body.lang-fr h6 {
    font-family: var(--font-latin);
}

/* Hide unneeded old elements */
.hero-bg, .hero-lines, .about-frame-corner { display: none; }

/* ====== LANGUAGE SWITCHER ====== */
.lang-switcher {
    position: fixed;
    top: 22px;
    left: 30px;
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 5px 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.navbar:not(.scrolled) ~ .lang-switcher {
    background: rgba(17, 41, 70, 0.5); border-color: rgba(255,255,255,0.1);
}
.navbar:not(.scrolled) ~ .lang-switcher .lang-btn { color: #fff; }

.lang-btn {
    background: none; border: none;
    color: var(--navy-light); font-size: 13px; font-weight: 700;
    cursor: pointer; padding: 2px 4px; transition: var(--transition);
    font-family: var(--font-ar); text-transform: uppercase;
}
body.lang-fr .lang-btn { font-family: var(--font-sans-latin); }
.lang-btn.active { color: var(--gold); }
.lang-btn:hover { color: var(--gold); }
.lang-sep { color: var(--border); font-size: 12px; }

/* ====== NAVBAR ====== */
.navbar {
    position: fixed; top: 0; right: 0; left: 0;
    z-index: 1000; padding: 20px 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.navbar.scrolled {
    background: #ffffff;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 30px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo-img { height: 48px; transition: var(--transition); }
.navbar.scrolled .nav-logo-img { height: 40px; filter: brightness(0) saturate(100%) invert(13%) sepia(21%) saturate(2335%) hue-rotate(185deg) brightness(97%) contrast(97%); } 

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
    font-size: 16px; font-weight: 600; color: #ffffff;
    transition: var(--transition); position: relative;
    font-family: var(--font-ar);
}
body.lang-fr .nav-links a { font-family: var(--font-sans-latin); }
.navbar.scrolled .nav-links a { color: var(--navy); }
.nav-links a::after { content: ''; position: absolute; bottom: -5px; right: 0; width: 0; height: 2px; background: var(--gold); transition: var(--transition); }
body.lang-fr .nav-links a::after { right: auto; left: 0; }
.nav-links a:hover { color: var(--gold); }
.navbar.scrolled .nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    background: var(--gold) !important; color: #fff !important; 
    padding: 10px 24px !important; border-radius: 3px; font-size: 15px !important; border: none !important;
}
.nav-cta:hover { background: var(--navy) !important; color: #fff !important; }
.navbar.scrolled .nav-cta { background: var(--navy) !important; color: #fff !important; }
.navbar.scrolled .nav-cta:hover { background: var(--gold) !important; }
.nav-cta::after { display: none !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; transition: var(--transition); }
.navbar.scrolled .hamburger span { background: var(--navy); }

/* ====== HERO ====== */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden; 
    background: url('img/hero.jpg') center/cover no-repeat;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: var(--navy);
    opacity: 0.7; z-index: 0;
}
.hero-content {
    position: relative; z-index: 2; text-align: center;
    max-width: 900px; padding: 120px 30px 80px;
    animation: fadeUp 1s ease both;
}
@keyframes fadeUp { from { opacity:0; transform:translateY(40px); } to { opacity:1; transform:translateY(0); } }
.hero-badge {
    display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.05em;
    color: var(--gold); border: 2px solid var(--gold);
    padding: 8px 24px; border-radius: 30px; margin-bottom: 30px; background: rgba(0,0,0,0.3);
}
.hero-title-ar {
    display: block; font-size: clamp(46px, 8vw, 84px); font-weight: 700;
    color: #ffffff; line-height: 1.1; font-family: var(--font-display);
}
.hero-title-fr {
    display: block; font-family: var(--font-latin);
    font-size: clamp(24px, 4vw, 38px); font-weight: 400; font-style: italic;
    color: var(--gold); margin-top: 15px; margin-bottom: 25px;
}
.hero-sub { font-size: 18px; color: #ffffff; margin-bottom: 40px; font-weight: 400; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 55px; }
.btn-primary-hero {
    background: var(--gold); color: #fff; padding: 16px 40px;
    font-size: 16px; font-weight: 700; border-radius: 3px; transition: var(--transition);
}
.btn-primary-hero:hover { background: var(--navy); transform: translateY(-3px); }
.btn-outline-hero {
    background: rgba(255,255,255,0.1); border: 2px solid #fff; color: #fff;
    padding: 14px 40px; font-size: 16px; font-weight: 700; border-radius: 3px; transition: var(--transition);
}
.btn-outline-hero:hover { background: #fff; color: var(--navy); }
.hero-divider { display: none; }
.hero-stats { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; background: rgba(0,0,0,0.4); padding: 25px 40px; border-radius: 5px; backdrop-filter: blur(5px); }
.stat { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.stat-num { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--gold); line-height: 1; }
.stat-label { font-size: 15px; font-weight: 600; color: #fff; }
.stat-sep { width: 1px; height: 40px; background: rgba(255,255,255,0.3); }
.hero-scroll { display:none; }

/* ====== ABOUT ====== */
.about { padding: 120px 0; background: var(--light); position: relative; }
.about-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: center; }
.about-frame { position: relative; width: 100%; max-width: 400px; margin: 0 auto; }
.about-img-placeholder {
    width: 100%; aspect-ratio: 3/4;
    background: var(--light-gray);
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    border: 10px solid #fff; box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}
.about-frame::after {
    content: ''; position: absolute; bottom: -20px; left: -20px; right: 20px; top: 20px;
    border: 4px solid var(--gold); z-index: 1;
}
body.lang-fr .about-frame::after { left: 20px; right: -20px; }
.about-quote { margin-top: 40px; padding: 25px; background: var(--navy); position: relative; z-index: 3; box-shadow: 0 10px 30px rgba(17, 41, 70, 0.2); }
.about-quote p { font-family: var(--font-display); font-size: 20px; font-style: italic; color: #fff; line-height: 1.6; text-align: center; }
body.lang-fr .about-quote p { font-family: var(--font-latin); }
.section-tag { font-size: 14px; font-weight: 800; letter-spacing: 0.1em; color: var(--gold); text-transform: uppercase; margin-bottom: 15px; display: block; }
.section-title-ar { font-size: clamp(32px, 5vw, 48px); font-weight: 700; color: var(--navy); line-height: 1.3; margin-bottom: 25px; }
.about-para { font-size: 17px; line-height: 1.9; color: var(--text); margin-bottom: 20px; }
.about-credentials { margin-top: 40px; display: flex; flex-direction: column; gap: 15px; }
.credential { padding: 20px 25px; background: #fff; border-left: 4px solid var(--gold); box-shadow: 0 5px 20px rgba(0,0,0,0.04); transition: var(--transition); display: flex; align-items: center; gap: 20px; }
body.lang-fr .credential { border-left: none; border-right: 4px solid var(--gold); }
.credential::before { content: '✓'; color: var(--gold); font-size: 20px; font-weight: bold; }
.credential:hover { transform: translateX(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
body.lang-fr .credential:hover { transform: translateX(5px); }
.cred-text { display: flex; flex-direction: column; gap: 5px; }
.cred-text strong { font-size: 18px; color: var(--navy); font-weight: 700; }
.cred-text span { font-size: 15px; color: var(--text-muted); }

/* ====== DOMAINES ====== */
.domaines { padding: 120px 0; background: var(--light-gray); }
.section-header-centered { text-align: center; margin-bottom: 60px; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-title-white { font-size: clamp(32px, 5vw, 48px); color: var(--navy); margin-bottom: 20px; font-weight: 700; }
.section-subtitle { font-size: 17px; color: var(--text); line-height: 1.8; }
.domaines-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; align-items: stretch; }
.domaine-card { background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.03); padding: 40px 30px; transition: var(--transition); border-top: 4px solid transparent; }
.domaine-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-top-color: var(--gold); }
.domaine-card.featured { background: var(--navy); }
.domaine-card.featured h3 { color: #fff; }
.domaine-card.featured .domaine-list li { color: rgba(255,255,255,0.7); }
.domaine-card.featured .domaine-list li::before { color: var(--gold); }
.domaine-card h3 { font-size: 24px; color: var(--navy); margin-bottom: 25px; font-weight: 700; position: relative; padding-bottom: 15px; }
.domaine-card h3::after { content: ''; position: absolute; bottom: 0; right: 0; width: 40px; height: 2px; background: var(--gold); }
body.lang-fr .domaine-card h3::after { right: auto; left: 0; }
.domaine-list { display: flex; flex-direction: column; gap: 12px; }
.domaine-list li { font-size: 16px; color: var(--text); padding-right: 20px; position: relative; line-height: 1.6; }
body.lang-fr .domaine-list li { padding-right: 0; padding-left: 20px; }
.domaine-list li::before { content: '▸'; position: absolute; right: 0; color: var(--gold); font-size: 18px; top: 1px; }
body.lang-fr .domaine-list li::before { right: auto; left: 0; }

/* ====== VALEURS ====== */
.valeurs { padding: 80px 0; background: var(--navy); position: relative; }
.valeurs::before { content: ''; position: absolute; top:0; left:0; width:100%; height:100%; background: url('https://www.transparenttextures.com/patterns/cubes.png'); opacity: 0.05; }
.valeurs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; position: relative; z-index: 2; }
.valeur { padding: 30px; }
.valeur h4 { font-size: 24px; color: var(--gold); margin-bottom: 15px; }
.valeur p { font-size: 16px; color: #fff; line-height: 1.8; opacity: 0.8; }

/* ====== CONTACT ====== */
.contact { padding: 120px 0; background: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
.contact-intro { font-size: 17px; color: var(--text); line-height: 1.9; margin-bottom: 40px; }
.contact-details { display: flex; flex-direction: column; gap: 25px; margin-bottom: 40px; padding: 35px; background: var(--light-gray); border-right: 4px solid var(--navy); }
body.lang-fr .contact-details { border-right: none; border-left: 4px solid var(--navy); }
.contact-item div { display: flex; flex-direction: column; gap: 5px; }
.contact-item strong { font-size: 14px; color: var(--navy); font-weight: 700; text-transform: uppercase; }
.contact-item span { font-size: 16px; color: var(--text); }
.confidentiality-note { padding: 20px; background: rgba(193, 155, 118, 0.1); border: 1px solid rgba(193, 155, 118, 0.3); border-radius: 3px; }
.confidentiality-note p { font-size: 14px; color: var(--navy); line-height: 1.7; font-weight: 600; text-align: center; }
.contact-form-wrap { background: #fff; box-shadow: 0 20px 50px rgba(0,0,0,0.06); padding: 50px; border-top: 5px solid var(--gold); }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.form-group label { font-size: 14px; color: var(--navy); font-weight: 700; }
.form-group input, .form-group select, .form-group textarea {
    background: var(--light-gray); border: 1px solid var(--border); border-radius: 3px;
    padding: 16px; color: var(--navy); font-size: 15px;
    direction: rtl; text-align: right; transition: var(--transition); outline: none; width: 100%;
    font-family: inherit;
}
body.lang-fr .form-group input, body.lang-fr .form-group select, body.lang-fr .form-group textarea {
    direction: ltr; text-align: left;
}
.form-group select option { background: #fff; color: var(--navy); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(193, 155, 118, 0.1); }
.form-group textarea { resize: vertical; min-height: 150px; }
.btn-submit {
    width: 100%; background: var(--navy); color: #fff; border: none;
    padding: 18px 30px; font-size: 16px; font-weight: 700;
    border-radius: 3px; cursor: pointer; transition: var(--transition); margin-top: 10px;
}
.btn-submit:hover { background: var(--gold); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(193, 155, 118, 0.3); }
.form-note { font-size: 13px; color: var(--text-muted); text-align: center; margin-top: 15px; line-height: 1.6; }

/* ====== FOOTER ====== */
.footer { background: var(--navy-dark); padding: 80px 0 40px; color: #fff; }
.footer-inner { text-align: center; }
.footer-name { font-family: var(--font-display); font-size: 28px; color: var(--gold); margin-bottom: 20px; font-weight: 700; }
.footer-bar { width: 60px; height: 2px; background: rgba(255,255,255,0.1); margin: 0 auto 25px; }
.footer-tagline { font-size: 16px; color: rgba(255,255,255,0.7); margin-bottom: 30px; letter-spacing: 0.05em; }
.footer-copy { font-size: 14px; color: rgba(255,255,255,0.4); border-top: 1px solid rgba(255,255,255,0.05); padding-top: 30px; max-width: 600px; margin: 0 auto; }

/* ====== RESPONSIVE ====== */
@media (max-width: 1200px) {
    .domaines-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 60px; }
    .contact-grid { grid-template-columns: 1fr; gap: 60px; }
    .contact-form-wrap { padding: 30px; }
    .hero-title-ar { font-size: 40px; }
}
@media (max-width: 768px) {
    .nav-links { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: var(--navy); flex-direction: column; justify-content: center; z-index: 999; transform: translateY(-100%); transition: var(--transition); gap: 30px; }
    .nav-links.open { transform: translateY(0); display: flex; }
    .nav-links a { font-size: 20px; color: #fff; }
    .hamburger { display: flex; z-index: 1001; }
    .domaines-grid { grid-template-columns: 1fr; }
    .valeurs-grid { grid-template-columns: 1fr; gap: 30px; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .stat-sep { width: 60px; height: 1px; }
    .contact-form .form-row { grid-template-columns: 1fr; }
    .lang-switcher { left: 15px; top: 15px; }
}
