/* ============================================
   SIDI MOUNIR — TARIQA QADIRIYA BOUTCHICHIYA
   Design: Editorial Luxury / Spiritual Minimalism
   Palette: Midnight Navy + Warm Gold + Ivory
   ============================================ */

:root {
    --navy: #0d1b2a;
    --navy-mid: #1b2d44;
    --navy-light: #2a4060;
    --gold: #b8860b;
    --gold-light: #d4a843;
    --gold-pale: #f0dca0;
    --ivory: #fdfbf7;
    --ivory-warm: #f8f4ec;
    --ivory-dark: #ede8dc;
    --charcoal: #1a1a1a;
    --slate: #4a4a4a;
    --muted: #7a7a7a;
    --border: rgba(184, 134, 11, 0.15);

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-arabic: 'Amiri', serif;

    --space-section: clamp(5rem, 10vw, 10rem);
    --space-container: clamp(1.5rem, 5vw, 4rem);
    --max-width: 1280px;
    --transition: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background: var(--ivory);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-container); }
.section { padding: var(--space-section) 0; }

/* --- Preloader --- */
#preloader {
    position: fixed; inset: 0; z-index: 10000;
    background: var(--navy);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 1s ease, visibility 1s ease;
}
#preloader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-content { text-align: center; }
.loader-ring {
    width: 70px; height: 70px; margin: 0 auto 2rem;
    border: 1px solid var(--gold); border-radius: 50%;
    animation: spin 3s linear infinite;
}
.loader-ring-2 {
    width: 50px; height: 50px;
    position: absolute; top: 10px; left: 10px;
    border-color: var(--gold-light);
    animation-direction: reverse; animation-duration: 2s;
}
.loader-content { position: relative; }
@keyframes spin { to { transform: rotate(360deg); } }
.loader-bismillah { font-family: var(--font-arabic); color: var(--gold-light); font-size: 1.5rem; }

/* --- Navigation --- */
#main-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 1.2rem 0;
    transition: all var(--transition);
}
#main-header.scrolled {
    background: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(20px) saturate(1.2);
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(184, 134, 11, 0.1);
}
.navbar {
    max-width: var(--max-width); margin: 0 auto;
    padding: 0 var(--space-container);
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 0.8rem; }
.logo-mark {
    width: 36px; height: 36px;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.logo-initial {
    font-family: var(--font-arabic); color: var(--gold); font-size: 1rem;
}
.logo-name {
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em;
    color: rgba(255,255,255,0.8); font-weight: 400;
}
.nav-toggle { display: none; flex-direction: column; gap: 7px; padding: 8px; z-index: 100; }
.nav-toggle span {
    display: block; width: 22px; height: 1.5px; background: #fff;
    transition: all 0.3s ease; transform-origin: center;
}
.nav-toggle.open span:first-child { transform: rotate(45deg) translate(3px, 3px); }
.nav-toggle.open span:last-child { transform: rotate(-45deg) translate(3px, -3px); }
.nav-menu { display: flex; align-items: center; list-style: none; gap: 0; }
.nav-link {
    color: rgba(255,255,255,0.7); font-size: 0.8rem; font-weight: 300;
    padding: 0.5rem 1.1rem; letter-spacing: 0.04em;
    transition: color var(--transition);
}
.nav-link:hover { color: #fff; }
.nav-link.active { color: var(--gold-light); }
.btn-nav {
    margin-left: 0.5rem; padding: 0.5rem 1.4rem;
    border: 1px solid var(--gold); border-radius: 3px;
    color: var(--gold) !important; font-weight: 400;
}
.btn-nav:hover { background: var(--gold); color: var(--navy) !important; }

/* Language Switcher */
.lang-switcher {
    display: flex; align-items: center; gap: 0.3rem;
    margin-left: 1rem; padding-left: 1rem;
    border-left: 1px solid rgba(255,255,255,0.15);
}
.lang-btn {
    font-size: 0.68rem; font-weight: 500; letter-spacing: 0.05em;
    color: rgba(255,255,255,0.5); padding: 0.3rem 0.5rem;
    border-radius: 3px; transition: all var(--transition);
    font-family: var(--font-body);
}
.lang-btn:hover { color: rgba(255,255,255,0.9); }
.lang-btn.active { color: var(--gold); background: rgba(184,134,11,0.1); }

/* --- Hero --- */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center;
    background: var(--navy); overflow: hidden;
}
.hero-bg-layers { position: absolute; inset: 0; }
.hero-bg-gradient {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 20% 80%, rgba(184,134,11,0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(212,168,67,0.04) 0%, transparent 40%),
                linear-gradient(160deg, #0d1b2a 0%, #162a3e 50%, #0f1f30 100%);
}
.hero-bg-texture {
    position: absolute; inset: 0; opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-bg-circles { position: absolute; inset: 0; }
.circle {
    position: absolute; border-radius: 50%;
    border: 1px solid rgba(184,134,11,0.08);
}
.circle-1 { width: 600px; height: 600px; top: -200px; right: -100px; }
.circle-2 { width: 400px; height: 400px; bottom: -100px; left: -100px; border-color: rgba(184,134,11,0.05); }
.circle-3 { width: 800px; height: 800px; top: 50%; left: 50%; transform: translate(-50%, -50%); border-color: rgba(255,255,255,0.02); }

.hero-layout {
    position: relative; z-index: 2;
    max-width: var(--max-width); margin: 0 auto;
    padding: 0 var(--space-container);
    display: grid; grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem; align-items: center;
    min-height: 100vh;
    padding-top: 6rem; padding-bottom: 4rem;
}
.hero-left { padding-right: 2rem; }
.hero-label {
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.25em;
    color: var(--gold); margin-bottom: 2rem; font-weight: 400;
}
.hero-name { margin-bottom: 2.5rem; }
.hero-name-ar {
    display: block; font-family: var(--font-arabic);
    font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--gold-light);
    margin-bottom: 0.8rem; line-height: 1.5;
}
.hero-name-fr {
    display: block; font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5rem); font-weight: 400;
    color: #ffffff; line-height: 1.05; letter-spacing: -0.03em;
}
.hero-name-family {
    display: block; font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 400;
    color: rgba(255,255,255,0.5); font-style: italic;
    margin-top: 0.3rem;
}
.hero-verse-block {
    margin-bottom: 2.5rem; padding: 1.5rem 0;
    border-top: 1px solid rgba(184,134,11,0.2);
    border-bottom: 1px solid rgba(184,134,11,0.2);
}
.verse-ar {
    font-family: var(--font-arabic); font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--gold-pale); line-height: 2; margin-bottom: 0.6rem;
}
.verse-fr {
    font-size: 0.9rem; color: rgba(255,255,255,0.6);
    font-style: italic; margin-bottom: 0.4rem; line-height: 1.6;
}
.hero-verse-block cite {
    font-size: 0.75rem; color: rgba(255,255,255,0.3); font-style: normal;
}
.hero-btn {
    display: inline-flex; align-items: center; gap: 0.8rem;
    padding: 1rem 2rem; border: 1px solid var(--gold);
    color: var(--gold); font-size: 0.82rem; letter-spacing: 0.08em;
    font-weight: 400; transition: all var(--transition);
}
.hero-btn:hover {
    background: var(--gold); color: var(--navy);
    transform: translateX(4px);
}
.hero-btn svg { transition: transform 0.3s ease; }
.hero-btn:hover svg { transform: translate(3px, -3px); }

.hero-right { display: flex; justify-content: center; align-items: center; }
.hero-values { display: flex; flex-direction: column; gap: 1.5rem; }
.hero-value-item {
    display: flex; align-items: center; gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(184,134,11,0.15);
    border-radius: 8px;
    transition: all var(--transition);
}
.hero-value-item:hover {
    background: rgba(184,134,11,0.06);
    border-color: var(--gold);
    transform: translateX(6px);
}
.hero-value-ar {
    font-family: var(--font-arabic); font-size: 2.2rem;
    color: var(--gold); min-width: 70px; text-align: center;
}
.hero-value-label {
    font-size: 0.95rem; color: rgba(255,255,255,0.8);
    font-weight: 300; letter-spacing: 0.02em;
}
.hero-portrait {
    position: relative; width: 100%; max-width: 420px;
    aspect-ratio: 3/4;
}
.portrait-glow {
    position: absolute; inset: -20%; border-radius: 50%;
    background: radial-gradient(circle, rgba(184,134,11,0.08) 0%, transparent 70%);
    filter: blur(40px);
}
.portrait-img {
    position: relative; z-index: 2;
    width: 100%; height: 100%; object-fit: cover; object-position: top center;
    border-radius: 4px;
    filter: contrast(1.05) brightness(0.95);
}
.portrait-frame-corner {
    position: absolute; z-index: 3;
    width: 40px; height: 40px;
    border-color: var(--gold); border-style: solid; border-width: 0;
}
.portrait-frame-corner.tl { top: -8px; left: -8px; border-top-width: 1.5px; border-left-width: 1.5px; }
.portrait-frame-corner.tr { top: -8px; right: -8px; border-top-width: 1.5px; border-right-width: 1.5px; }
.portrait-frame-corner.bl { bottom: -8px; left: -8px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.portrait-frame-corner.br { bottom: -8px; right: -8px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

.hero-scroll {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
    z-index: 5;
}
.scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scroll-anim 2s ease-in-out infinite;
}
@keyframes scroll-anim {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(0.5); }
}
.scroll-text { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(255,255,255,0.3); }

/* --- Section Common --- */
.section-tag {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.25em;
    color: var(--gold); margin-bottom: 1rem; font-weight: 500;
}
.section-heading {
    font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400; line-height: 1.2; color: var(--charcoal);
    margin-bottom: 1.5rem; letter-spacing: -0.02em;
}
.heading-ar {
    display: block; font-family: var(--font-arabic);
    font-size: 1.2rem; color: var(--gold); margin-bottom: 0.5rem;
    font-weight: 400;
}
.section-intro {
    max-width: 620px; font-size: 1.05rem; color: var(--slate);
    line-height: 1.8; margin-bottom: 3rem;
}

/* --- Guide Section --- */
.section-guide { background: var(--ivory-warm); }
.guide-intro { margin-bottom: 4rem; }
.guide-content {
    display: grid; grid-template-columns: 0.45fr 0.55fr;
    gap: 4rem; align-items: start;
}
.guide-photo-col { position: sticky; top: 6rem; }
.guide-photo-main {
    border-radius: 6px; overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}
.guide-photo-main img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; }
.guide-quote-card {
    background: var(--navy); padding: 2rem; border-radius: 6px;
    position: relative; overflow: hidden;
}
.guide-quote-card::before {
    content: '\201C'; position: absolute; top: -0.5rem; left: 1rem;
    font-family: var(--font-display); font-size: 5rem;
    color: var(--gold); opacity: 0.2; line-height: 1;
}
.guide-quote-card blockquote p {
    font-family: var(--font-display); font-size: 1rem;
    color: rgba(255,255,255,0.85); font-style: italic; line-height: 1.7;
    position: relative; z-index: 1;
}
.guide-text-col {}
.bio-lead {
    font-size: 1.15rem; line-height: 1.8; color: var(--charcoal);
    margin-bottom: 1.5rem; font-weight: 400;
}
.guide-bio p { color: var(--slate); margin-bottom: 1.2rem; font-size: 0.95rem; }
.guide-bio em { color: var(--gold); font-style: italic; }

.guide-credentials { margin-top: 3rem; }
.guide-credentials h3, .guide-roles h3 {
    font-family: var(--font-display); font-size: 1.3rem;
    color: var(--charcoal); margin-bottom: 1.5rem; font-weight: 500;
}
.credential-list { display: flex; flex-direction: column; gap: 1.2rem; }
.credential {
    display: flex; gap: 1rem; padding: 1.2rem;
    background: var(--ivory); border-radius: 8px;
    border: 1px solid var(--border); transition: all var(--transition);
}
.credential:hover { border-color: var(--gold); box-shadow: 0 4px 20px rgba(184,134,11,0.08); }
.credential-icon {
    flex-shrink: 0; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
}
.credential strong {
    display: block; font-size: 0.9rem; color: var(--charcoal);
    margin-bottom: 0.3rem; font-weight: 600;
}
.credential p { font-size: 0.82rem; color: var(--muted); margin: 0; line-height: 1.5; }

.guide-roles { margin-top: 2.5rem; }
.role-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.role-tag {
    font-size: 0.75rem; padding: 0.5rem 1rem;
    background: var(--ivory); border: 1px solid var(--border);
    border-radius: 20px; color: var(--slate); font-weight: 400;
    transition: all var(--transition);
}
.role-tag:hover { border-color: var(--gold); color: var(--gold); }

/* --- Wassiya Banner --- */
.section-wassiya {
    background: var(--navy); padding: 4rem 0;
}
.wassiya-banner {
    display: grid; grid-template-columns: auto 1fr auto;
    gap: 3rem; align-items: center;
}
.wassiya-ornament { color: var(--gold); opacity: 0.7; }
.wassiya-text h3 {
    font-family: var(--font-display); font-size: 1.3rem;
    color: #fff; margin-bottom: 0.8rem; font-weight: 400;
}
.wassiya-text p { font-size: 0.9rem; color: rgba(255,255,255,0.65); line-height: 1.7; }
.wassiya-text em { color: var(--gold-light); }
.wassiya-dates { display: flex; align-items: center; gap: 1.5rem; }
.w-date { text-align: center; }
.w-year {
    display: block; font-family: var(--font-display); font-size: 1.5rem;
    color: var(--gold-light); margin-bottom: 0.3rem;
}
.w-event { font-size: 0.7rem; color: rgba(255,255,255,0.5); line-height: 1.4; }
.w-line { width: 30px; height: 1px; background: var(--gold); opacity: 0.3; }
.w-date-current .w-year { color: #fff; font-size: 1.8rem; }
.w-date-current .w-event { color: var(--gold-light); font-weight: 500; }

/* --- Lignée Section --- */
.section-lignee { background: var(--ivory); }
.lignee-timeline {
    position: relative; max-width: 780px; margin: 3rem auto 0;
    padding-left: 3rem;
}
.lignee-timeline::before {
    content: ''; position: absolute; left: 7px; top: 0; bottom: 0;
    width: 1px; background: linear-gradient(to bottom, var(--gold), var(--border), var(--gold));
}
.lignee-item { position: relative; margin-bottom: 2.5rem; }
.lignee-item:last-child { margin-bottom: 0; }
.lignee-marker { position: absolute; left: -3rem; top: 1.5rem; }
.marker-dot {
    width: 15px; height: 15px; border-radius: 50%;
    background: var(--ivory); border: 2px solid var(--gold);
    position: relative; left: 0;
}
.marker-dot-accent { background: var(--gold); border-color: var(--gold); }
.marker-dot-current {
    background: var(--navy); border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(184,134,11,0.2);
}
.marker-dots { display: flex; flex-direction: column; gap: 5px; align-items: center; }
.marker-dots span { width: 5px; height: 5px; background: var(--gold); border-radius: 50%; opacity: 0.5; }

.lignee-card {
    background: var(--ivory-warm); padding: 2rem 2.5rem;
    border-radius: 10px; border: 1px solid var(--border);
    transition: all var(--transition);
}
.lignee-card:hover { border-color: var(--gold); box-shadow: 0 8px 30px rgba(184,134,11,0.06); }
.lignee-card-subtle { background: transparent; border-color: transparent; padding: 1rem 2.5rem; }
.lignee-card-highlight {
    background: linear-gradient(135deg, var(--ivory-warm) 0%, #fdf6e3 100%);
    border-color: var(--gold);
}
.lignee-card-current {
    background: linear-gradient(135deg, var(--ivory-warm) 0%, #f7f2e8 100%);
    border-color: var(--gold); border-width: 1.5px;
    box-shadow: 0 6px 24px rgba(184,134,11,0.1);
}
.lignee-card-current .lignee-period { color: var(--gold); }
.lignee-card-current h3 { color: var(--charcoal); }
.lignee-card-current .lignee-dates { color: var(--gold); }
.lignee-card-current p { color: var(--slate); }

.lignee-period {
    font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.15em;
    color: var(--gold); font-weight: 600; margin-bottom: 0.4rem; display: block;
}
.lignee-card h3 {
    font-family: var(--font-display); font-size: 1.4rem; font-weight: 500;
    color: var(--charcoal); margin-bottom: 0.2rem;
}
.lignee-dates { font-size: 0.82rem; color: var(--muted); font-weight: 500; margin-bottom: 0.8rem; display: block; }
.lignee-card p { font-size: 0.88rem; color: var(--slate); line-height: 1.7; }
.lignee-card p + p { margin-top: 0.8rem; }
.chain-text { font-style: italic; color: var(--muted) !important; font-size: 0.85rem !important; }

.lignee-expanded { margin-top: 0.5rem; }
.warrior-badge {
    display: inline-flex; align-items: center; gap: 0.6rem;
    margin-top: 1rem; padding: 0.6rem 1rem;
    background: rgba(184,134,11,0.08); border-radius: 4px;
    border: 1px solid var(--border);
}
.warrior-badge svg { color: var(--gold); flex-shrink: 0; }
.warrior-badge span { font-size: 0.75rem; font-weight: 500; color: var(--gold); }

.lignee-photo-small {
    width: 60px; height: 60px; border-radius: 50%; overflow: hidden;
    border: 2px solid var(--border); float: right; margin-left: 1rem; margin-bottom: 0.5rem;
}
.lignee-photo-small img { width: 100%; height: 100%; object-fit: cover; }
.lignee-card-current .lignee-photo-small { border-color: var(--gold); }

/* Dual lineage layout */
.lignee-dual {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1.5rem; margin-bottom: 2.5rem;
    position: relative;
}
.lignee-dual .lignee-item { margin-bottom: 0; }
.lignee-dual .lignee-marker { display: none; }
.lignee-dual .lignee-card { height: 100%; }

.lignee-card-spiritual {
    background: linear-gradient(135deg, var(--ivory-warm) 0%, #f5f0e5 100%);
    border-color: var(--gold); border-style: dashed;
}
.marker-dot-spiritual {
    background: var(--ivory); border: 2px dashed var(--gold);
}

.lignee-dual-connector {
    grid-column: 1 / -1;
    display: flex; flex-direction: column; align-items: center;
    padding: 1rem 0;
}
.connector-dashed {
    width: 2px; height: 25px;
    border-left: 2px dashed var(--gold); opacity: 0.5;
}
.connector-label {
    font-size: 0.7rem; color: var(--gold); font-style: italic;
    margin-top: 0.5rem; text-align: center;
}

@media (max-width: 768px) {
    .lignee-dual { grid-template-columns: 1fr; }
}

/* --- Voie Section --- */
.section-voie { background: var(--ivory-warm); }
.voie-pillars {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 2rem; margin-bottom: 4rem;
}
.pillar {
    padding: 2.5rem 2rem; background: var(--ivory);
    border-radius: 10px; border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative; overflow: hidden;
}
.pillar::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 3px; background: var(--gold); transform: scaleX(0);
    transition: transform var(--transition); transform-origin: left;
}
.pillar:hover::after { transform: scaleX(1); }
.pillar:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.06); }
.pillar-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 1.5rem;
}
.pillar-ar { font-family: var(--font-arabic); font-size: 1.5rem; color: var(--gold); }
.pillar-num { font-family: var(--font-display); font-size: 2rem; color: var(--border); font-weight: 400; }
.pillar h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--charcoal); margin-bottom: 0.2rem; }
.pillar h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 1.2rem; font-weight: 500; }
.pillar p { font-size: 0.88rem; color: var(--slate); line-height: 1.8; }
.pillar em { color: var(--gold); }

.voie-practices { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.practice-card {
    padding: 2rem; background: var(--ivory);
    border-radius: 8px; border-left: 3px solid var(--gold);
}
.practice-icon { color: var(--gold); margin-bottom: 1rem; }
.practice-card h4 { font-family: var(--font-display); font-size: 1.15rem; color: var(--charcoal); margin-bottom: 0.8rem; }
.practice-card p { font-size: 0.88rem; color: var(--slate); line-height: 1.8; }
.practice-card em { color: var(--gold); }

/* --- Vision Section --- */
.section-vision { background: var(--ivory); }
.vision-quote-block {
    max-width: 750px; margin: 0 auto 4rem; text-align: center;
}
.vision-quote-block blockquote p {
    font-family: var(--font-display); font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-style: italic; color: var(--navy-mid); line-height: 1.7;
}
.vision-quote-block footer {
    margin-top: 1.2rem; font-size: 0.85rem; color: var(--gold); font-weight: 500;
}
.vision-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.vision-card {
    padding: 2.5rem; background: var(--ivory-warm);
    border-radius: 10px; border: 1px solid var(--border);
    transition: all var(--transition);
}
.vision-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.04); }
.vision-num {
    font-family: var(--font-display); font-size: 1.8rem; color: var(--gold);
    opacity: 0.5; margin-bottom: 1rem; display: block; font-weight: 400;
}
.vision-card h4 { font-family: var(--font-display); font-size: 1.2rem; color: var(--charcoal); margin-bottom: 0.8rem; }
.vision-card p { font-size: 0.88rem; color: var(--slate); line-height: 1.8; }

/* --- Rayonnement Section --- */
.section-rayonnement { background: var(--ivory-warm); }
.rayonnement-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem; margin-bottom: 4rem; align-items: center;
}
.map-visual {
    position: relative; aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center;
}
.map-center-point { position: relative; z-index: 2; }
.map-dot { width: 14px; height: 14px; background: var(--gold); border-radius: 50%; }
.map-pulse-ring {
    position: absolute; inset: -15px;
    border: 1px solid var(--gold); border-radius: 50%;
    animation: pulse-ring 2.5s ease-out infinite;
}
.map-pulse-ring-2 { animation-delay: 1.2s; }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(4); opacity: 0; } }
.map-label-madagh {
    position: absolute; top: 55%; left: 55%; z-index: 3;
}
.map-label-madagh strong { display: block; font-size: 1rem; color: var(--charcoal); font-family: var(--font-display); }
.map-label-madagh span { font-size: 0.75rem; color: var(--muted); }
.map-orbits { position: absolute; inset: 0; }
.orbit {
    position: absolute; border-radius: 50%;
    border: 1px dashed var(--border);
    top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.orbit-1 { width: 60%; height: 60%; }
.orbit-2 { width: 80%; height: 80%; opacity: 0.6; }
.orbit-3 { width: 100%; height: 100%; opacity: 0.3; }

.rayonnement-list { display: flex; flex-direction: column; gap: 1.2rem; }
.presence-item {
    padding: 1.2rem 1.5rem; background: var(--ivory);
    border-radius: 8px; border-left: 3px solid var(--gold);
    transition: all var(--transition);
}
.presence-item:hover { transform: translateX(4px); box-shadow: 0 4px 15px rgba(0,0,0,0.04); }
.presence-item h4 { font-family: var(--font-display); font-size: 1.05rem; color: var(--charcoal); margin-bottom: 0.3rem; }
.presence-item p { font-size: 0.82rem; color: var(--slate); line-height: 1.6; }

.forum-card {
    background: var(--navy); padding: 3.5rem; border-radius: 12px;
    text-align: center; position: relative; overflow: hidden;
}
.forum-card::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(184,134,11,0.08) 0%, transparent 60%);
}
.forum-label {
    position: relative; display: inline-block;
    font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.2em;
    color: var(--gold); border: 1px solid var(--gold); padding: 0.3rem 1.2rem;
    border-radius: 20px; margin-bottom: 1.5rem;
}
.forum-card h3 {
    position: relative; font-family: var(--font-display); font-size: 1.8rem;
    color: #fff; font-weight: 400; margin-bottom: 1rem;
}
.forum-card > p {
    position: relative; font-size: 0.9rem; color: rgba(255,255,255,0.7);
    max-width: 600px; margin: 0 auto 2rem; line-height: 1.7;
}
.forum-themes {
    position: relative; display: flex; flex-wrap: wrap;
    justify-content: center; gap: 0.6rem;
}
.forum-themes span {
    font-size: 0.72rem; padding: 0.4rem 1rem;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px; color: rgba(255,255,255,0.7);
}

/* --- Bruxelles Section --- */
.section-bruxelles { background: var(--ivory); }
.bruxelles-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.bruxelles-card {
    padding: 2rem; background: var(--ivory-warm);
    border-radius: 10px; border: 1px solid var(--border);
    transition: all var(--transition);
}
.bruxelles-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.05); }
.bruxelles-card-featured {
    grid-column: 1 / -1; background: var(--navy); border-color: var(--navy);
    position: relative; overflow: hidden;
}
.bruxelles-card-featured::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(184,134,11,0.1) 0%, transparent 50%);
}
.bruxelles-card-featured h4 { color: #fff; font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 0.3rem; position: relative; }
.bruxelles-card-featured p { color: rgba(255,255,255,0.7); font-size: 0.88rem; line-height: 1.7; position: relative; }
.bruxelles-card-featured .bruxelles-date { color: var(--gold-light); font-size: 0.78rem; font-weight: 500; margin-bottom: 0.8rem; }
.bruxelles-card-badge {
    position: relative; display: inline-block; font-size: 0.65rem; text-transform: uppercase;
    letter-spacing: 0.15em; color: var(--gold); border: 1px solid var(--gold);
    padding: 0.25rem 0.8rem; border-radius: 12px; margin-bottom: 1rem;
}
.bruxelles-card-icon { color: var(--gold); margin-bottom: 1rem; }
.bruxelles-card h4 { font-family: var(--font-display); font-size: 1.1rem; color: var(--charcoal); margin-bottom: 0.6rem; }
.bruxelles-card p { font-size: 0.85rem; color: var(--slate); line-height: 1.7; }

@media (max-width: 768px) {
    .bruxelles-grid { grid-template-columns: 1fr; }
}

/* --- Galerie Photos & Vidéo Section --- */
.section-galerie { background: var(--ivory); }

/* Photo Mosaic */
.photo-mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    gap: 0.8rem;
    margin-bottom: 3rem;
}
.mosaic-item {
    border-radius: 8px; overflow: hidden;
    position: relative;
}
.mosaic-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}
.mosaic-item:hover img { transform: scale(1.04); }
.mosaic-wide { grid-column: span 2; }
.mosaic-tall { grid-row: span 2; }

.galerie-subtitle {
    font-family: var(--font-display); font-size: 1.3rem;
    color: var(--charcoal); margin-bottom: 1.5rem;
    padding-bottom: 0.8rem; border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
    .photo-mosaic {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 180px;
    }
    .mosaic-wide { grid-column: span 2; }
    .mosaic-tall { grid-row: span 1; }
}
@media (max-width: 480px) {
    .photo-mosaic { grid-template-columns: 1fr; grid-auto-rows: 200px; }
    .mosaic-wide { grid-column: span 1; }
}
.galerie-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.galerie-item {
    position: relative; border-radius: 10px; overflow: hidden;
    background: var(--navy); border: 1px solid var(--border);
}
.galerie-item-large { grid-column: 1 / -1; }
.galerie-item video, .galerie-item iframe {
    width: 100%; aspect-ratio: 16/9; display: block; border-radius: 10px 10px 0 0;
}
.galerie-item-large video { max-height: 450px; object-fit: cover; }
.galerie-caption {
    padding: 1rem 1.2rem; font-size: 0.82rem; color: rgba(255,255,255,0.8);
    background: var(--navy);
}

@media (max-width: 768px) {
    .galerie-grid { grid-template-columns: 1fr; }
}

/* --- Gallery Section --- */
.section-gallery { background: var(--ivory); }
.gallery-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr;
    gap: 1rem; margin-top: 2rem;
}
.gallery-item {
    position: relative; border-radius: 8px; overflow: hidden;
    aspect-ratio: 16/10;
}
.gallery-item-large { grid-row: span 2; aspect-ratio: auto; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 1.5rem 1rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff; font-size: 0.78rem; font-weight: 400;
}

/* --- Références Section --- */
.section-references { background: var(--ivory); }
.ref-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}
.ref-category {}
.ref-category-title {
    font-family: var(--font-display); font-size: 1.2rem;
    color: var(--charcoal); margin-bottom: 1.2rem; font-weight: 500;
    padding-bottom: 0.6rem; border-bottom: 1px solid var(--border);
}
.ref-links { display: flex; flex-direction: column; gap: 0.6rem; }
.ref-link {
    display: block; padding: 1rem 1.2rem;
    background: var(--ivory-warm); border-radius: 8px;
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.ref-link:hover {
    border-color: var(--gold); transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(184,134,11,0.08);
}
.ref-link-title {
    display: block; font-size: 0.88rem; font-weight: 500;
    color: var(--charcoal); margin-bottom: 0.2rem;
}
.ref-link:hover .ref-link-title { color: var(--gold); }
.ref-link-desc {
    display: block; font-size: 0.75rem; color: var(--muted); line-height: 1.5;
}

@media (max-width: 768px) {
    .ref-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* --- Contact Section --- */
.section-contact { background: var(--ivory-warm); }
.contact-layout { display: grid; grid-template-columns: 0.4fr 0.6fr; gap: 4rem; }
.contact-left {}
.contact-place { margin-bottom: 2rem; }
.contact-place h4 { font-family: var(--font-display); font-size: 1.2rem; color: var(--charcoal); margin-bottom: 0.5rem; }
.contact-place p { font-size: 0.9rem; color: var(--slate); line-height: 1.8; }
.contact-asbl {
    margin-top: 1.2rem; padding-top: 1.2rem;
    border-top: 1px solid var(--border);
}
.contact-asbl p {
    font-size: 0.78rem; color: var(--muted); line-height: 1.7;
}
.contact-social { display: flex; gap: 0.8rem; margin-top: 1.5rem; }
.social-btn {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: 50%;
    color: var(--slate); transition: all var(--transition);
}
.social-btn:hover { border-color: var(--gold); color: var(--gold); background: rgba(184,134,11,0.05); }

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-field label {
    display: block; font-size: 0.75rem; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.5rem; font-weight: 500;
}
.form-field input, .form-field textarea {
    width: 100%; padding: 0.9rem 1.1rem;
    border: 1px solid var(--border); border-radius: 6px;
    font-family: var(--font-body); font-size: 0.9rem;
    color: var(--charcoal); background: var(--ivory);
    transition: all var(--transition);
}
.form-field input:focus, .form-field textarea:focus {
    outline: none; border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184,134,11,0.08);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-btn {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 0.8rem;
    padding: 0.9rem 2rem; background: var(--navy); color: #fff;
    font-size: 0.82rem; letter-spacing: 0.06em; border-radius: 4px;
    font-weight: 400; transition: all var(--transition);
}
.form-btn:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }

/* --- Footer --- */
.site-footer { background: var(--navy); padding: 3rem 0; }
.footer-top {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 2rem;
}
.footer-brand {}
.footer-ar { display: block; font-family: var(--font-arabic); color: var(--gold); font-size: 1.1rem; }
.footer-name { font-size: 0.68rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.15em; }
.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a { font-size: 0.78rem; color: rgba(255,255,255,0.5); transition: color 0.3s; }
.footer-nav a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 0.72rem; color: rgba(255,255,255,0.3); }
.footer-verse { font-family: var(--font-arabic); font-size: 0.9rem; color: rgba(184,134,11,0.4); }
.footer-credit { font-size: 0.55rem; color: rgba(255,255,255,0.08); letter-spacing: 0.1em; margin-top: 1.5rem; }

/* --- Animations --- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-layout { grid-template-columns: 1fr; gap: 3rem; text-align: center; padding-top: 8rem; }
    .hero-left { padding-right: 0; }
    .hero-right { order: -1; }
    .hero-portrait { max-width: 300px; }
    .guide-content { grid-template-columns: 1fr; gap: 3rem; }
    .guide-photo-col { position: static; max-width: 400px; }
    .wassiya-banner { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .wassiya-ornament { display: none; }
    .wassiya-dates { justify-content: center; }
    .rayonnement-grid { grid-template-columns: 1fr; }
    .map-visual { max-width: 300px; margin: 0 auto; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item-large { grid-row: span 1; aspect-ratio: 16/9; }
    .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        background: var(--navy); flex-direction: column; align-items: flex-start;
        padding: 5rem 2rem 2rem; gap: 0.3rem;
        transition: right 0.4s ease; box-shadow: -4px 0 30px rgba(0,0,0,0.3);
    }
    .nav-menu.active { right: 0; }
    .nav-link { font-size: 1rem; padding: 0.8rem 0; width: 100%; }
    .btn-nav { margin-left: 0; margin-top: 1rem; text-align: center; }
    .lang-switcher {
        position: fixed; top: 1rem; right: 4rem; z-index: 1001;
        margin-left: 0; padding-left: 0; border-left: none;
        background: rgba(13,27,42,0.9); padding: 0.3rem 0.5rem;
        border-radius: 4px;
    }
    .voie-pillars { grid-template-columns: 1fr; }
    .voie-practices { grid-template-columns: 1fr; }
    .vision-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-top { flex-direction: column; gap: 1.5rem; align-items: flex-start; }
    .footer-nav { flex-wrap: wrap; gap: 1rem; }
    .footer-bottom { flex-direction: column; gap: 0.8rem; align-items: flex-start; }
    .lignee-timeline { padding-left: 2rem; }
    .lignee-timeline::before { left: 5px; }
    .lignee-marker { left: -2rem; }
}

@media (max-width: 480px) {
    :root { --space-section: 3.5rem; }
    .hero-name-fr { font-size: 2.5rem; }
    .hero-portrait { max-width: 250px; }
    .section-heading { font-size: 1.8rem; }
    .lignee-card { padding: 1.5rem; }
    .pillar { padding: 1.8rem 1.5rem; }
    .vision-card { padding: 1.8rem; }
    .forum-card { padding: 2rem 1.5rem; }
    .forum-themes { flex-direction: column; align-items: center; }
}

/* --- Print --- */
@media print {
    #main-header, .hero-scroll, .hero-btn, .contact-form, .contact-social, #preloader, .hero-bg-layers { display: none; }
    .hero { min-height: auto; padding: 2rem 0; background: white; }
    .section { padding: 2rem 0; break-inside: avoid; }
    body { color: black; background: white; }
}
