/* ==========================================================================
   LUXURY — Design system ultra premium · Mairie de Ndande
   Inspiration : Apple, Hermès, Rolex
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* ---- Identité Sénégal : vert institutionnel, or, rouge discret ---- */
    --sn-green-deepest: #062e22;   /* vert forêt, sections dark */
    --sn-green-deep:    #0b4d3a;   /* vert institutionnel premium */
    --sn-green:         #0f6b4e;   /* vert médian (liens, accents) */
    --sn-green-mid:     #1f8a67;
    --sn-green-soft:    #e8f1ec;   /* backgrounds très légers */
    --sn-gold:          #d4a84b;   /* or raffiné */
    --sn-gold-warm:     #e9b84a;
    --sn-gold-deep:     #a6782a;
    --sn-red:           #c8302a;   /* rouge réservé aux accents forts */
    --sn-red-deep:      #9a2420;
    --sn-sand:          #f5efdf;   /* sable clair Sahel */
    --sn-sand-warm:     #ece1c7;   /* sable chaud */
    --sn-earth:         #a87c4f;   /* terre ocre */
    --sn-earth-deep:    #6b4a2b;   /* terre brûlée */
    --sn-bone:          #efe9d9;   /* os / argile */

    /* ---- Neutres (variables lux-* conservées pour compat) ---- */
    --lux-black:   #0a1410;        /* noir à sous-ton vert */
    --lux-ink:     #14201b;
    --lux-char:    #1f2a25;
    --lux-graphite:#2d3832;
    --lux-steel:   #5f6b66;
    --lux-ash:     #8a938e;
    --lux-fog:     #c4cac6;
    --lux-bone:    #e6e4dd;
    --lux-ivory:   #f6f3ec;
    --lux-cream:   #fbf9f3;
    --lux-white:   #ffffff;
    --lux-champ:   var(--sn-gold);
    --lux-gold:    var(--sn-gold-deep);
    --lux-gold-dk: #7d5a1e;

    /* ---- Typographies ---- */
    --lux-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --lux-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* ---- Transitions ---- */
    --lux-t-fast: 260ms cubic-bezier(.22,.61,.36,1);
    --lux-t-base: 520ms cubic-bezier(.22,.61,.36,1);
    --lux-t-slow: 900ms cubic-bezier(.22,.61,.36,1);

    /* ---- Motifs inspirés de Ndande (Cayor + Kalom) ---- */
    /* Cayor : losanges royaux imbriqués */
    --sn-pattern:
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><g fill='none' stroke='%23d4a84b' stroke-width='0.6' opacity='0.5'><path d='M40 5 L75 40 L40 75 L5 40 Z'/><path d='M40 20 L60 40 L40 60 L20 40 Z'/><circle cx='40' cy='40' r='3' fill='%23d4a84b' opacity='0.6'/></g></svg>");
    --sn-pattern-alt:
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'><g fill='none' stroke='%23ffffff' stroke-width='0.5' opacity='0.12'><path d='M30 0 L60 30 L30 60 L0 30 Z'/><path d='M30 15 L45 30 L30 45 L15 30 Z'/></g></svg>");
    /* Kalom : cercles concentriques (puits) */
    --sn-kalom:
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'><g fill='none' stroke='%23d4a84b' stroke-width='0.8' opacity='0.22'><circle cx='200' cy='200' r='40'/><circle cx='200' cy='200' r='80'/><circle cx='200' cy='200' r='120'/><circle cx='200' cy='200' r='160'/><circle cx='200' cy='200' r='200'/></g><circle cx='200' cy='200' r='4' fill='%23d4a84b' opacity='0.6'/></svg>");
    --sn-kalom-light:
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'><g fill='none' stroke='%230b4d3a' stroke-width='0.6' opacity='0.12'><circle cx='200' cy='200' r='40'/><circle cx='200' cy='200' r='80'/><circle cx='200' cy='200' r='120'/><circle cx='200' cy='200' r='160'/><circle cx='200' cy='200' r='200'/></g></svg>");
    /* Bande Cayor : zigzag royal ouest-africain */
    --sn-cayor-band:
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='20' viewBox='0 0 60 20'><g fill='none' stroke='%230b4d3a' stroke-width='1'><path d='M0 10 L10 3 L20 10 L30 3 L40 10 L50 3 L60 10'/><path d='M0 17 L10 10 L20 17 L30 10 L40 17 L50 10 L60 17' stroke='%23d4a84b' opacity='0.8'/></g></svg>");
}

/* ==========================================================================
   Base
   ========================================================================== */
body.lux-body {
    margin: 0;
    font-family: var(--lux-sans);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: var(--lux-ink);
    background: var(--lux-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.005em;
}

.lux-site * { box-sizing: border-box; }

.lux-site h1, .lux-site h2, .lux-site h3, .lux-site h4, .lux-site .lux-display {
    font-family: var(--lux-serif);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.1;
    color: var(--lux-black);
    margin: 0;
}

.lux-site ::selection { background: var(--sn-green-deep); color: var(--sn-gold-warm); }

.lux-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px;
}
@media (max-width: 768px) { .lux-container { padding: 0 24px; } }

/* ==========================================================================
   Typography utilities
   ========================================================================== */
.lux-eyebrow {
    font-family: var(--lux-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--sn-green);
    display: inline-flex;
    align-items: center;
    gap: 14px;
}
.lux-eyebrow::before {
    content: '';
    width: 34px;
    height: 1px;
    background: var(--sn-gold);
}

.lux-display-xl { font-size: clamp(54px, 9vw, 132px); font-weight: 300; letter-spacing: -0.035em; line-height: 0.95; }
.lux-display-l  { font-size: clamp(42px, 6.5vw, 92px);  font-weight: 300; letter-spacing: -0.025em; line-height: 1.02; }
.lux-display-m  { font-size: clamp(32px, 4.5vw, 64px);  font-weight: 400; letter-spacing: -0.015em; line-height: 1.08; }
.lux-display-s  { font-size: clamp(26px, 3.2vw, 44px);  font-weight: 400; letter-spacing: -0.012em; line-height: 1.15; }

.lux-italic { font-style: italic; color: var(--sn-gold-deep); }
.lux-section--dark .lux-italic, .lux-hero .lux-italic, .lux-page-header .lux-italic { color: var(--sn-gold-warm); }
.lux-lead   { font-size: 18px; font-weight: 400; color: var(--lux-steel); line-height: 1.65; max-width: 640px; }

/* Mini drapeau institutionnel (utilisable partout) */
.lux-flag-strip {
    display: inline-block;
    width: 36px; height: 22px;
    background: linear-gradient(90deg, var(--sn-green) 0 33.33%, var(--sn-gold) 33.33% 66.66%, var(--sn-red) 66.66% 100%);
    border-radius: 2px;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.lux-flag-strip::before {
    content: '★';
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    color: var(--sn-green-deepest);
    font-size: 10px;
    line-height: 1;
}

/* Barre institutionnelle (top) : drapeau + République du Sénégal */
.lux-topbar {
    background: var(--sn-green-deepest);
    color: rgba(245,242,237,.85);
    font-size: 12px;
    letter-spacing: 0.08em;
    border-bottom: 1px solid rgba(212,168,75,.2);
}
.lux-topbar__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 8px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.lux-topbar__left { display: flex; align-items: center; gap: 12px; }
.lux-topbar__left strong { color: var(--sn-gold-warm); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 11px; }
.lux-topbar__right { display: flex; align-items: center; gap: 20px; font-size: 12px; }
.lux-topbar__right a { color: rgba(245,242,237,.75); text-decoration: none; transition: color var(--lux-t-fast); }
.lux-topbar__right a:hover { color: var(--sn-gold-warm); }
@media (max-width: 768px) { .lux-topbar__right { display: none; } .lux-topbar__inner { padding: 8px 24px; } }

/* Décalage nav quand topbar présente : JS-driven, fallback */
.lux-site--with-topbar .lux-nav { top: 38px; }

.lux-rule {
    display: block;
    width: 56px;
    height: 2px;
    background: linear-gradient(90deg, var(--sn-green), var(--sn-gold) 60%, var(--sn-red));
    margin: 28px 0;
    border: 0;
    border-radius: 2px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.lux-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 90;
    background: transparent;
    transition: background var(--lux-t-base), box-shadow var(--lux-t-base), backdrop-filter var(--lux-t-base);
}
.lux-nav__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 22px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.lux-nav.is-scrolled,
.lux-nav.is-solid {
    background: rgba(250,248,244,.82);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    box-shadow: 0 1px 0 rgba(10,10,10,.06);
}
.lux-nav.is-scrolled .lux-nav__inner { padding: 14px 40px; }

.lux-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.lux-brand__mark {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sn-green-deep), var(--sn-green));
    border: 1px solid var(--sn-gold);
    display: grid;
    place-items: center;
    font-family: var(--lux-serif);
    font-size: 19px;
    font-weight: 600;
    color: var(--sn-gold-warm);
    letter-spacing: 0.02em;
    transition: transform var(--lux-t-base), box-shadow var(--lux-t-base);
    box-shadow: 0 2px 10px rgba(11,77,58,.18);
}
.lux-brand:hover .lux-brand__mark { box-shadow: 0 4px 18px rgba(11,77,58,.28); transform: rotate(45deg); }
.lux-brand__text { line-height: 1.1; }
.lux-brand__title { font-family: var(--lux-serif); font-size: 20px; font-weight: 500; color: inherit; }
.lux-brand__sub   { font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--lux-steel); margin-top: 4px; }

.lux-nav--on-hero .lux-brand__title,
.lux-nav--on-hero .lux-nav-link { color: var(--lux-ivory); }
.lux-nav--on-hero .lux-brand__sub { color: rgba(255,255,255,.55); }
.lux-nav--on-hero.is-scrolled .lux-brand__title,
.lux-nav--on-hero.is-scrolled .lux-nav-link { color: var(--lux-ink); }
.lux-nav--on-hero.is-scrolled .lux-brand__sub { color: var(--lux-steel); }

.lux-nav__menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.lux-nav-link {
    position: relative;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--lux-ink);
    text-decoration: none;
    padding: 10px 16px;
    transition: color var(--lux-t-fast);
}
.lux-nav-link::after {
    content: '';
    position: absolute;
    left: 16px; right: 16px; bottom: 4px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--lux-t-base);
}
.lux-nav-link:hover::after,
.lux-nav-link.is-active::after { transform: scaleX(1); }

.lux-nav__actions { display: flex; align-items: center; gap: 10px; }

.lux-burger {
    display: none;
    width: 44px; height: 44px;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: inherit;
}
.lux-burger span {
    display: block;
    width: 22px; height: 1px;
    margin: 5px auto;
    background: currentColor;
    transition: transform var(--lux-t-fast), opacity var(--lux-t-fast);
}
.lux-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.lux-burger.is-open span:nth-child(2) { opacity: 0; }
.lux-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1024px) {
    .lux-nav__menu, .lux-nav__actions .lux-btn { display: none; }
    .lux-burger { display: block; }
}

/* Mobile drawer */
.lux-drawer {
    position: fixed;
    inset: 0;
    background: var(--sn-green-deepest);
    color: var(--lux-ivory);
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--lux-t-base);
}
.lux-drawer.is-open { opacity: 1; pointer-events: auto; }
.lux-drawer ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.lux-drawer li { margin: 18px 0; }
.lux-drawer a {
    font-family: var(--lux-serif);
    font-size: 32px;
    color: var(--lux-ivory);
    text-decoration: none;
    transition: color var(--lux-t-fast);
}
.lux-drawer a:hover { color: var(--sn-gold-warm); }
.lux-drawer__close { position: absolute; top: 24px; right: 24px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.lux-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    font-family: var(--lux-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    background: transparent;
    color: var(--lux-ink);
    cursor: pointer;
    transition: all var(--lux-t-base);
    position: relative;
    overflow: hidden;
}
.lux-btn i { font-size: 11px; transition: transform var(--lux-t-base); }
.lux-btn:hover i { transform: translateX(4px); }

.lux-btn--primary {
    background: var(--sn-green-deep);
    color: var(--lux-ivory);
    border-color: var(--sn-green-deep);
}
.lux-btn--primary:hover { background: var(--sn-green-deepest); color: var(--sn-gold-warm); border-color: var(--sn-green-deepest); }

.lux-btn--outline {
    border-color: var(--sn-green-deep);
    color: var(--sn-green-deep);
}
.lux-btn--outline:hover { background: var(--sn-green-deep); color: var(--lux-ivory); }

.lux-btn--light {
    border-color: rgba(255,255,255,.5);
    color: var(--lux-ivory);
}
.lux-btn--light:hover { background: var(--lux-ivory); color: var(--lux-black); border-color: var(--lux-ivory); }

.lux-btn--gold {
    background: var(--sn-gold);
    color: var(--sn-green-deepest);
    border-color: var(--sn-gold);
}
.lux-btn--gold:hover { background: var(--sn-gold-warm); border-color: var(--sn-gold-warm); color: var(--sn-green-deepest); }

.lux-btn--ghost {
    padding: 10px 0;
    color: var(--lux-ink);
    border: 0;
    position: relative;
}
.lux-btn--ghost::after {
    content: '';
    position: absolute;
    left: 0; bottom: 2px;
    width: 100%; height: 1px;
    background: currentColor;
    transform-origin: right;
    transition: transform var(--lux-t-base);
}
.lux-btn--ghost:hover::after { transform-origin: left; }

.lux-btn--block { display: flex; width: 100%; justify-content: center; }

/* ==========================================================================
   Hero
   ========================================================================== */
.lux-hero {
    position: relative;
    min-height: 100vh;
    background: var(--sn-green-deepest);
    color: var(--lux-ivory);
    display: flex;
    align-items: center;
    overflow: hidden;
}
.lux-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1200px 600px at 82% 8%, rgba(212,168,75,.22), transparent 55%),
        radial-gradient(900px 500px at 8% 92%, rgba(200,48,42,.14), transparent 60%),
        linear-gradient(180deg, #062e22 0%, #0b4d3a 55%, #06241c 100%);
}
.lux-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--sn-pattern-alt);
    background-size: 90px 90px;
    mask-image: radial-gradient(ellipse at center, #000 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 80%);
    opacity: .9;
}
/* Bande drapeau subtile en pied de hero */
.lux-hero__bg::before {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sn-green) 0 33%, var(--sn-gold) 33% 66%, var(--sn-red) 66% 100%);
    opacity: .85;
}
.lux-hero__inner {
    position: relative;
    z-index: 2;
    padding: 180px 0 140px;
    width: 100%;
}
.lux-hero__title {
    color: var(--lux-ivory);
    max-width: 18ch;
    margin: 26px 0 28px;
}
.lux-hero__title em {
    font-style: italic;
    color: var(--sn-gold-warm);
    font-weight: 300;
}
.lux-hero__sub {
    max-width: 520px;
    color: rgba(245,242,237,.68);
    font-size: 17px;
    line-height: 1.75;
    margin-bottom: 44px;
}
.lux-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.lux-hero__scroll {
    position: absolute;
    bottom: 40px; left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(245,242,237,.6);
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.lux-hero__scroll::after {
    content: '';
    width: 1px; height: 48px;
    background: linear-gradient(180deg, rgba(245,242,237,.6), transparent);
    animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
    0%   { transform: scaleY(0); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: top; }
    50.1%{ transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ==========================================================================
   Sections & page header
   ========================================================================== */
.lux-section { padding: 140px 0; position: relative; }
.lux-section--tight { padding: 90px 0; }
.lux-section--dark  {
    background: var(--sn-green-deepest);
    color: var(--lux-ivory);
    position: relative;
    overflow: hidden;
}
.lux-section--dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--sn-pattern-alt);
    background-size: 90px 90px;
    opacity: .4;
    pointer-events: none;
}
.lux-section--dark > * { position: relative; z-index: 1; }
.lux-section--dark h1, .lux-section--dark h2, .lux-section--dark h3 { color: var(--lux-ivory); }
.lux-section--ivory { background: var(--sn-sand); }
.lux-section--soft  { background: var(--sn-green-soft); }
@media (max-width: 768px) { .lux-section { padding: 80px 0; } }

.lux-page-header {
    background: linear-gradient(180deg, var(--sn-green-deepest), var(--sn-green-deep));
    color: var(--lux-ivory);
    padding: 220px 0 100px;
    position: relative;
    overflow: hidden;
}
.lux-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(700px 350px at 85% 20%, rgba(212,168,75,.22), transparent 60%),
        var(--sn-pattern-alt);
    background-size: auto, 80px 80px;
}
.lux-page-header::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sn-green-mid) 0 33%, var(--sn-gold) 33% 66%, var(--sn-red) 66% 100%);
}
.lux-page-header__inner { position: relative; z-index: 2; max-width: 800px; }
.lux-page-header h1 { color: var(--lux-ivory); margin: 20px 0 16px; }
.lux-page-header .lux-lead { color: rgba(245,242,237,.7); }

/* ==========================================================================
   Grid : services / features
   ========================================================================== */
.lux-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 80px; align-items: center; }
.lux-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--lux-bone); border: 1px solid var(--lux-bone); }
.lux-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
@media (max-width: 1024px) { .lux-grid-2 { grid-template-columns: 1fr; gap: 60px; } .lux-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .lux-grid-3 { grid-template-columns: 1fr; } .lux-grid-4 { grid-template-columns: 1fr; } }

.lux-feature {
    background: var(--lux-white);
    padding: 56px 44px;
    transition: background var(--lux-t-base), transform var(--lux-t-base), box-shadow var(--lux-t-base);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-height: 340px;
    position: relative;
    border-top: 2px solid transparent;
}
.lux-feature::after {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--sn-green), var(--sn-gold));
    transition: width var(--lux-t-base);
}
.lux-feature:hover { background: var(--sn-green-soft); box-shadow: 0 20px 40px -24px rgba(11,77,58,.25); }
.lux-feature:hover::after { width: 100%; }
.lux-feature__num {
    font-family: var(--lux-serif);
    font-size: 14px;
    color: var(--sn-gold-deep);
    letter-spacing: 0.2em;
    font-weight: 500;
}
.lux-feature__title {
    font-family: var(--lux-serif);
    font-size: 30px;
    font-weight: 500;
    color: var(--sn-green-deepest);
    margin: 24px 0 16px;
    line-height: 1.15;
}
.lux-feature__desc { color: var(--lux-steel); font-size: 15px; line-height: 1.7; flex: 1; }
.lux-feature__more {
    margin-top: 28px;
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--sn-green-deep);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: gap var(--lux-t-base);
}
.lux-feature:hover .lux-feature__more { gap: 16px; }
.lux-feature__more::after { content: '→'; font-family: var(--lux-serif); font-size: 16px; }

/* ==========================================================================
   Article / project / media cards
   ========================================================================== */
.lux-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
@media (max-width: 1024px) { .lux-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .lux-cards { grid-template-columns: 1fr; } }

.lux-card {
    background: transparent;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.lux-card__media {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--lux-bone);
    margin-bottom: 22px;
    position: relative;
}
.lux-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(.22,.61,.36,1), filter var(--lux-t-base);
    filter: saturate(.92);
}
.lux-card:hover .lux-card__media img { transform: scale(1.06); filter: saturate(1); }
.lux-card__media--placeholder {
    background: linear-gradient(135deg, var(--lux-ink), var(--lux-graphite));
    display: grid; place-items: center;
    color: rgba(201,169,97,.6);
    font-size: 48px;
}
.lux-card__cat {
    font-size: 10.5px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--sn-green);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}
.lux-card__title {
    font-family: var(--lux-serif);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.25;
    margin: 0 0 10px;
    color: var(--sn-green-deepest);
    transition: color var(--lux-t-fast);
}
.lux-card:hover .lux-card__title { color: var(--sn-green); }
.lux-card__excerpt { color: var(--lux-steel); font-size: 14.5px; line-height: 1.65; margin: 0 0 16px; }
.lux-card__meta { font-size: 12px; color: var(--lux-ash); letter-spacing: 0.04em; }

/* ==========================================================================
   Stats
   ========================================================================== */
.lux-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
@media (max-width: 768px) { .lux-stats { grid-template-columns: repeat(2, 1fr); } }
.lux-stat {
    padding: 0 32px;
    border-left: 1px solid rgba(245,242,237,.14);
    text-align: left;
}
.lux-stat:first-child { border-left: 0; padding-left: 0; }
.lux-stat__value {
    font-family: var(--lux-serif);
    font-size: clamp(48px, 6vw, 84px);
    font-weight: 300;
    background: linear-gradient(135deg, var(--sn-gold-warm), var(--sn-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    letter-spacing: -0.02em;
}
.lux-stat__value sup { font-size: 0.5em; vertical-align: top; margin-left: 4px; }
.lux-stat__label {
    margin-top: 14px;
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(245,242,237,.7);
}

/* ==========================================================================
   Service list (horizontal rows)
   ========================================================================== */
.lux-list { border-top: 1px solid var(--lux-bone); }
.lux-list__row {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 40px;
    align-items: center;
    padding: 40px 0;
    border-bottom: 1px solid var(--lux-bone);
    text-decoration: none;
    color: inherit;
    transition: padding var(--lux-t-base);
}
.lux-list__row:hover { padding-left: 24px; }
.lux-list__num { font-family: var(--lux-serif); font-size: 26px; color: var(--sn-gold-deep); font-style: italic; font-weight: 500; }
.lux-list__title { font-family: var(--lux-serif); font-size: clamp(24px, 3vw, 38px); font-weight: 500; color: var(--sn-green-deepest); margin: 0 0 6px; line-height: 1.2; transition: color var(--lux-t-fast); }
.lux-list__desc  { color: var(--lux-steel); font-size: 14.5px; margin: 0; max-width: 560px; }
.lux-list__arrow { font-family: var(--lux-serif); font-size: 32px; color: var(--lux-ink); transition: transform var(--lux-t-base); }
.lux-list__row:hover .lux-list__arrow { transform: translateX(10px); color: var(--sn-green); }
.lux-list__row:hover .lux-list__title { color: var(--sn-green-deep); }
@media (max-width: 640px) {
    .lux-list__row { grid-template-columns: auto 1fr; }
    .lux-list__arrow { grid-column: 2; }
}

/* ==========================================================================
   Form
   ========================================================================== */
.lux-form .lux-field { position: relative; margin-bottom: 32px; }
.lux-form label {
    display: block;
    font-size: 10.5px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--lux-steel);
    margin-bottom: 10px;
    font-weight: 500;
}
.lux-form input,
.lux-form textarea,
.lux-form select {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--lux-bone);
    padding: 12px 0;
    font-family: var(--lux-sans);
    font-size: 16px;
    color: var(--lux-black);
    outline: none;
    transition: border-color var(--lux-t-base);
    border-radius: 0;
}
.lux-form input:focus,
.lux-form textarea:focus,
.lux-form select:focus { border-bottom-color: var(--sn-green-deep); }
.lux-form textarea { resize: vertical; min-height: 120px; }
.lux-form ::placeholder { color: var(--lux-fog); }

.lux-form__row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 640px) { .lux-form__row-2 { grid-template-columns: 1fr; gap: 0; } }

.lux-alert {
    padding: 18px 22px;
    border: 1px solid var(--sn-green-soft);
    background: #f4faf6;
    font-size: 14px;
    color: var(--sn-green-deepest);
    margin-bottom: 32px;
    border-left: 3px solid var(--sn-green);
}

/* ==========================================================================
   Editorial split (image + text)
   ========================================================================== */
.lux-split__image {
    aspect-ratio: 4 / 5;
    background-size: cover;
    background-position: center;
    box-shadow: 40px 40px 0 -6px var(--sn-gold);
    position: relative;
}
.lux-split__image::before {
    content: '';
    position: absolute;
    left: -18px; top: -18px;
    width: 90px; height: 90px;
    border-top: 2px solid var(--sn-green-deep);
    border-left: 2px solid var(--sn-green-deep);
}
.lux-split__image--alt { box-shadow: -40px 40px 0 -6px var(--sn-gold); }

/* ==========================================================================
   Footer
   ========================================================================== */
.lux-footer {
    background: var(--sn-green-deepest);
    color: var(--lux-ivory);
    padding: 100px 0 40px;
    position: relative;
    overflow: hidden;
}
.lux-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--sn-pattern-alt);
    background-size: 80px 80px;
    opacity: .35;
    pointer-events: none;
}
.lux-footer::after {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sn-green-mid) 0 33%, var(--sn-gold) 33% 66%, var(--sn-red) 66% 100%);
}
.lux-footer > * { position: relative; z-index: 1; }
.lux-footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 80px; border-bottom: 1px solid rgba(245,242,237,.12); }
@media (max-width: 900px) { .lux-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .lux-footer__top { grid-template-columns: 1fr; gap: 36px; } }

.lux-footer__brand-title { font-family: var(--lux-serif); font-size: 28px; color: var(--lux-ivory); margin-bottom: 14px; }
.lux-footer__brand-desc { color: rgba(245,242,237,.6); max-width: 340px; line-height: 1.7; font-size: 14.5px; }
.lux-footer__title {
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--sn-gold-warm);
    margin-bottom: 22px;
    font-weight: 600;
}
.lux-footer ul { list-style: none; margin: 0; padding: 0; }
.lux-footer li { margin-bottom: 12px; }
.lux-footer a {
    color: rgba(245,242,237,.7);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--lux-t-fast);
    position: relative;
}
.lux-footer a:hover { color: var(--sn-gold-warm); }
.lux-footer__contact p { color: rgba(245,242,237,.7); font-size: 14px; margin: 0 0 10px; line-height: 1.6; }
.lux-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    font-size: 12px;
    color: rgba(245,242,237,.45);
    letter-spacing: 0.05em;
    flex-wrap: wrap;
    gap: 14px;
}
.lux-footer__social { display: flex; gap: 18px; }
.lux-footer__social a { font-size: 14px; color: rgba(245,242,237,.55); }
.lux-footer__social a:hover { color: var(--sn-gold-warm); }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.lux-reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s ease, transform .9s cubic-bezier(.22,.61,.36,1); }
.lux-reveal.is-visible { opacity: 1; transform: translateY(0); }
.lux-reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s cubic-bezier(.22,.61,.36,1); }
.lux-reveal-stagger.is-visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: .05s; }
.lux-reveal-stagger.is-visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: .15s; }
.lux-reveal-stagger.is-visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: .25s; }
.lux-reveal-stagger.is-visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: .35s; }
.lux-reveal-stagger.is-visible > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: .45s; }
.lux-reveal-stagger.is-visible > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: .55s; }

/* ==========================================================================
   Mini utilities
   ========================================================================== */
.lux-center { text-align: center; }
.lux-center .lux-lead { margin-left: auto; margin-right: auto; }
.lux-mt-s { margin-top: 20px; } .lux-mt-m { margin-top: 40px; } .lux-mt-l { margin-top: 72px; }
.lux-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid var(--lux-bone);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--lux-steel);
    border-radius: 9999px;
    font-weight: 600;
}
.lux-tag--gold  { color: var(--sn-gold-deep); border-color: var(--sn-gold); background: rgba(212,168,75,.08); }
.lux-tag--green { color: var(--sn-green-deep); border-color: var(--sn-green); background: var(--sn-green-soft); }
.lux-tag--red   { color: var(--sn-red-deep); border-color: var(--sn-red); background: rgba(200,48,42,.06); }
.lux-tag--dark  { background: var(--sn-green-deepest); color: var(--lux-ivory); border-color: var(--sn-green-deepest); }

/* ==========================================================================
   NDANDE · Composants identité territoriale
   ========================================================================== */

/* Section sable (Sahel) avec motif Kalom en arrière-plan */
.lux-section--sand {
    background: var(--sn-sand);
    position: relative;
    overflow: hidden;
}
.lux-section--sand::before {
    content: '';
    position: absolute;
    right: -100px; top: 50%;
    transform: translateY(-50%);
    width: 600px; height: 600px;
    background-image: var(--sn-kalom-light);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    opacity: .9;
}
.lux-section--sand > .lux-container { position: relative; z-index: 1; }

/* Bande Cayor : séparateur institutionnel en zigzag royal */
.lux-cayor-band {
    height: 18px;
    background-image: var(--sn-cayor-band);
    background-repeat: repeat-x;
    background-size: 60px 20px;
    background-position: center;
    opacity: .85;
}

/* Timeline verticale pour storytelling territorial */
.lux-timeline {
    position: relative;
    padding-left: 60px;
}
.lux-timeline::before {
    content: '';
    position: absolute;
    left: 18px; top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, var(--sn-green-deep), var(--sn-gold) 50%, var(--sn-earth));
}
.lux-timeline__item {
    position: relative;
    padding: 20px 0 48px;
}
.lux-timeline__item:last-child { padding-bottom: 0; }
.lux-timeline__dot {
    position: absolute;
    left: -50px;
    top: 24px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--lux-white);
    border: 1px solid var(--sn-gold);
    display: grid;
    place-items: center;
    font-family: var(--lux-serif);
    font-size: 15px;
    font-weight: 600;
    color: var(--sn-green-deep);
    box-shadow: 0 0 0 4px var(--lux-cream);
}
.lux-timeline__era {
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--sn-gold-deep);
    font-weight: 600;
    margin-bottom: 8px;
}
.lux-timeline__title {
    font-family: var(--lux-serif);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 500;
    color: var(--sn-green-deepest);
    margin: 0 0 14px;
    line-height: 1.15;
}
.lux-timeline__desc {
    color: var(--lux-steel);
    font-size: 15.5px;
    line-height: 1.8;
    max-width: 620px;
}

/* Story card : pilier identitaire (Cayor, Kalom, Sahel, Communauté) */
.lux-pillar {
    background: var(--lux-white);
    border: 1px solid var(--sn-bone);
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    overflow: hidden;
    transition: transform var(--lux-t-base), box-shadow var(--lux-t-base), border-color var(--lux-t-base);
}
.lux-pillar::before {
    content: '';
    position: absolute;
    right: -40px; bottom: -40px;
    width: 140px; height: 140px;
    border-radius: 50%;
    border: 1px solid var(--sn-gold);
    opacity: 0;
    transition: opacity var(--lux-t-base), transform var(--lux-t-base);
}
.lux-pillar::after {
    content: '';
    position: absolute;
    right: -70px; bottom: -70px;
    width: 200px; height: 200px;
    border-radius: 50%;
    border: 1px solid var(--sn-gold);
    opacity: 0;
    transition: opacity var(--lux-t-base), transform var(--lux-t-base);
}
.lux-pillar:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(11,77,58,.25); border-color: var(--sn-gold); }
.lux-pillar:hover::before { opacity: .55; transform: scale(1.05); }
.lux-pillar:hover::after { opacity: .35; transform: scale(1.05); }

.lux-pillar__icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--sn-green-soft);
    border: 1px solid var(--sn-green-deep);
    display: grid;
    place-items: center;
    color: var(--sn-green-deep);
    font-size: 22px;
    position: relative;
    z-index: 1;
}
.lux-pillar__label {
    font-size: 11px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--sn-gold-deep);
    font-weight: 600;
    position: relative; z-index: 1;
}
.lux-pillar__title {
    font-family: var(--lux-serif);
    font-size: 26px;
    font-weight: 500;
    color: var(--sn-green-deepest);
    margin: 0;
    line-height: 1.2;
    position: relative; z-index: 1;
}
.lux-pillar__text {
    color: var(--lux-steel);
    font-size: 14.5px;
    line-height: 1.7;
    margin: 0;
    position: relative; z-index: 1;
}

/* Hero Kalom : variante avec puits stylisé */
.lux-hero__kalom {
    position: absolute;
    right: -200px;
    top: 50%;
    transform: translateY(-50%);
    width: 900px;
    height: 900px;
    background-image: var(--sn-kalom);
    background-size: contain;
    background-repeat: no-repeat;
    opacity: .7;
    pointer-events: none;
    z-index: 1;
}
@media (max-width: 1024px) { .lux-hero__kalom { width: 600px; height: 600px; right: -250px; opacity: .4; } }

/* Encadré historique à filet or */
.lux-quote {
    border-left: 2px solid var(--sn-gold);
    padding: 8px 0 8px 28px;
    font-family: var(--lux-serif);
    font-size: 22px;
    font-style: italic;
    line-height: 1.5;
    color: var(--sn-green-deepest);
    max-width: 680px;
}
.lux-quote cite {
    display: block;
    margin-top: 14px;
    font-family: var(--lux-sans);
    font-size: 11px;
    font-style: normal;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--sn-gold-deep);
    font-weight: 600;
}

/* Hide senegal-theme conflicts inside lux */
.lux-site .navbar-senegal, .lux-site .footer-senegal { display: none !important; }
