/*
 * NEL FOCUS – Design System
 * Space Grotesk + Inter · Royal Blue #2457C5 · Golden Amber #D4920C
 */

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

/* ─── Design Tokens ─────────────────────────────────────────────────────── */
:root {
    --background:         #F8F9FD;
    --foreground:         #1A1E2B;
    --card:               #ffffff;
    --primary:            #2457C5;
    --primary-dark:       #1B3F9E;
    --accent:             #D4920C;
    --accent-hover:       #B87A08;
    --ink:                #1A1D2E;
    --muted:              #F0F4F8;
    --muted-foreground:   #64748B;
    --border:             #E2E8F0;
    --whatsapp:           #25A244;

    --gradient-brand:     linear-gradient(135deg, #2457C5, #1B3F9E);
    --gradient-hero:      linear-gradient(to right, #0B1929 0%, #1A1D2E 40%, #4A1200 100%);
    --gradient-accent:    linear-gradient(135deg, #D4920C, #C47800);

    --shadow-sm:          0 1px 3px rgba(0,0,0,0.07);
    --shadow-md:          0 4px 16px rgba(36,87,197,0.10);
    --shadow-lg:          0 8px 32px rgba(36,87,197,0.12);
    --shadow-elegant:     0 20px 60px rgba(36,87,197,0.15);

    --radius-sm:          8px;
    --radius-md:          12px;
    --radius-lg:          16px;
    --radius-xl:          24px;

    --font-display:       'Space Grotesk', sans-serif;
    --font-body:          'Inter', sans-serif;
    --transition:         all 0.25s ease;
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    background: var(--background);
    color: var(--foreground);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--foreground);
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--muted); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ─── Utilities ─────────────────────────────────────────────────────────── */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}
@media (min-width: 1024px) { .container { padding: 0 32px; } }

.text-gradient {
    background: linear-gradient(135deg, #D4920C, #2457C5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--gradient-brand);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(36,87,197,0.35);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(36,87,197,0.4);
    color: #fff;
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 4px 14px rgba(212,146,12,0.35);
    height: 56px;
    padding: 0 32px;
    font-size: 1rem;
}
.btn-accent:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    color: #fff;
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.6);
    height: 56px;
    padding: 0 28px;
    font-size: 1rem;
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.12);
    border-color: #fff;
    color: #fff;
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: #fff;
    border-color: var(--whatsapp);
    box-shadow: 0 4px 14px rgba(37,162,68,0.35);
    height: 56px;
    padding: 0 28px;
    font-size: 1rem;
}
.btn-whatsapp:hover {
    background: #1e8a38;
    transform: translateY(-2px);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--border);
}
.btn-outline:hover {
    background: var(--muted);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-navy {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}
.btn-navy:hover {
    background: #252840;
    transform: translateY(-1px);
    color: #fff;
}

.btn-sm { padding: 8px 16px; font-size: 0.82rem; height: auto; }
.btn-xs { padding: 5px 12px; font-size: 0.76rem; height: auto; }
.btn-danger { background: #dc2626; color: #fff; border-color: #dc2626; }
.btn-danger:hover { background: #b91c1c; color: #fff; }

/* ─── Forms ──────────────────────────────────────────────────────────────── */
.form-group  { margin-bottom: 20px; }
.form-label  {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted-foreground);
    font-family: var(--font-display);
}
.form-control {
    width: 100%;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    color: var(--foreground);
    font-family: var(--font-body);
    font-size: 0.93rem;
    outline: none;
    transition: var(--transition);
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(36,87,197,0.12);
}
.form-control::placeholder { color: var(--muted-foreground); opacity: 0.7; }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }

/* ─── Navigation ─────────────────────────────────────────────────────────── */
.site-header {
    background: rgba(248,249,253,0.80);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 200;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 0;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.site-logo img {
    height: 42px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
}
.site-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.brand-main {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.brand-sub {
    font-family: var(--font-body);
    font-size: 0.62rem;
    color: var(--muted-foreground);
    font-weight: 500;
    letter-spacing: 0.04em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--foreground);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.nav-link:hover { color: var(--primary); background: rgba(36,87,197,0.06); }
.nav-link.active { color: var(--primary); font-weight: 600; }

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
.header-phone {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--foreground);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Mobile hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--foreground);
    border-radius: 2px;
    transition: var(--transition);
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
    padding: 100px 0 80px;
    color: #fff;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    background-image: url('/images/hero.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.40;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    opacity: 0.70;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 820px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.9);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}
.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-desc {
    color: rgba(255,255,255,0.75);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

/* ─── Stats Strip ────────────────────────────────────────────────────────── */
.stats-strip {
    background: rgba(240,244,248,0.4);
    padding: 56px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.stat-item {
    text-align: center;
    padding: 24px 20px;
    border-right: 1px solid var(--border);
    position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label {
    color: var(--muted-foreground);
    font-size: 0.88rem;
    font-weight: 500;
}

/* ─── Section Helpers ────────────────────────────────────────────────────── */
.section     { padding: 80px 0; }
.section-alt { padding: 80px 0; background: rgba(240,244,248,0.4); }
.section-py  { padding: 96px 0; }
.section-muted { background: rgba(240,244,248,0.4); }

.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 2.8vw, 2.5rem);
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--muted-foreground);
    font-size: 1rem;
    max-width: 560px;
    line-height: 1.7;
}

/* ─── Services Cards ─────────────────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.service-card::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(36,87,197,0.04);
    pointer-events: none;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elegant);
    border-color: rgba(36,87,197,0.15);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.service-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 10px;
}
.service-card p {
    color: var(--muted-foreground);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 18px;
}
.service-link {
    color: var(--primary);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.service-link:hover { gap: 8px; color: var(--primary-dark); }

/* ─── Gallery / Catalogue Section ────────────────────────────────────────── */
.catalogue-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
}
.catalogue-link {
    color: var(--primary);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.catalogue-link:hover { color: var(--primary-dark); }

.catalogue-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.catalogue-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.catalogue-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elegant);
}

.catalogue-img-wrap {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--muted);
}
.catalogue-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.catalogue-card:hover .catalogue-img-wrap img { transform: scale(1.06); }

.catalogue-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 12px;
    border-radius: 100px;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26,29,46,0.45);
}
.play-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.catalogue-body { padding: 20px; }
.catalogue-body h3 {
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 4px;
}
.catalogue-body p {
    color: var(--muted-foreground);
    font-size: 0.84rem;
    margin-bottom: 16px;
}
.catalogue-actions {
    display: flex;
    gap: 8px;
}
.catalogue-actions .btn-sm {
    flex: 1;
    justify-content: center;
}

/* Old gallery classes (kept for compatibility with public/gallery page) */
.gallery-filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.filter-btn {
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    background: var(--card);
    border: 1.5px solid var(--border);
    color: var(--muted-foreground);
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 0.83rem;
    font-weight: 600;
    transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--gradient-brand);
    border-color: var(--primary);
    color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.gallery-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    text-align: left;
    width: 100%;
    padding: 0;
}
.gallery-card:hover {
    box-shadow: var(--shadow-elegant);
    transform: translateY(-4px);
    border-color: rgba(36,87,197,0.15);
}
.gallery-thumb {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--muted);
}
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-card:hover .gallery-thumb img { transform: scale(1.06); }
.gallery-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(36,87,197,0.85);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}
.gallery-card:hover .gallery-play-btn { background: var(--accent); transform: translate(-50%,-50%) scale(1.1); }
.gallery-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.badge-image { background: rgba(36,87,197,0.85); color: #fff; }
.badge-video { background: var(--accent); color: #fff; }

.gallery-info { padding: 18px 20px; }
.gallery-info h3 { font-size: 0.95rem; color: var(--foreground); margin-bottom: 6px; font-weight: 700; }
.gallery-info p  { color: var(--muted-foreground); font-size: 0.85rem; line-height: 1.6; }
.gallery-cat-tag {
    display: inline-block;
    margin-top: 10px;
    background: rgba(212,146,12,0.12);
    color: var(--accent);
    border: 1px solid rgba(212,146,12,0.25);
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.74rem;
    font-weight: 600;
}

/* ─── Testimonials ───────────────────────────────────────────────────────── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testimonial-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.testimonial-card:hover {
    box-shadow: var(--shadow-elegant);
    transform: translateY(-4px);
}
.quote-icon {
    font-size: 2.5rem;
    color: var(--accent);
    font-family: Georgia, serif;
    line-height: 1;
    margin-bottom: 16px;
}
.testimonial-text {
    color: var(--foreground);
    font-size: 0.93rem;
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}
.stars {
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
}
.testimonial-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin-bottom: 20px;
}
.testimonial-author-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--foreground);
    margin-bottom: 2px;
}
.testimonial-author-role {
    font-size: 0.82rem;
    color: var(--muted-foreground);
}

/* ─── Partners Strip ─────────────────────────────────────────────────────── */
.partners-strip {
    padding: 40px 0;
    background: rgba(240,244,248,0.4);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.partners-label {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
    text-align: center;
    margin-bottom: 28px;
}

/* ─── Ticker (défilement infini) ─────────────────────────────────────────── */
.partners-ticker {
    position: relative;
    overflow: hidden;
    width: 100%;
}
.partners-ticker::before,
.partners-ticker::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 140px;
    z-index: 2;
    pointer-events: none;
}
.partners-ticker::before {
    left: 0;
    background: linear-gradient(to right, #f9fbfc 0%, transparent 100%);
}
.partners-ticker::after {
    right: 0;
    background: linear-gradient(to left, #f9fbfc 0%, transparent 100%);
}
.partners-track {
    display: flex;
    align-items: center;
    gap: 56px;
    width: max-content;
    animation: partnersScroll 35s linear infinite;
}
.partners-track:hover { animation-play-state: paused; }
@keyframes partnersScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.partner-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: rgba(26,30,43,0.35);
    transition: var(--transition);
    cursor: default;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.partner-name:hover { color: var(--foreground); }

/* ─── Partner Logos ──────────────────────────────────────────────────────── */
.partner-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}
.partner-logo {
    height: 52px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(1) opacity(0.4);
    transition: filter 0.3s ease, transform 0.3s ease;
}
.partner-logo-link:hover .partner-logo {
    filter: grayscale(0) opacity(1);
    transform: scale(1.08);
}

/* ─── CTA Block ──────────────────────────────────────────────────────────── */
.cta-block {
    background: var(--gradient-hero);
    border-radius: 24px;
    padding: 64px 56px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.cta-title {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.cta-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 28px;
}
.cta-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cta-checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
}
.cta-check-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(212,146,12,0.3);
    border: 1.5px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: var(--accent);
    flex-shrink: 0;
}
.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}
.cta-buttons .btn {
    width: 100%;
    justify-content: center;
    height: 52px;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--ink);
    color: rgba(255,255,255,0.7);
}
.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding: 72px 0 48px;
}
.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.55);
    margin-top: 18px;
    max-width: 260px;
}
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}
.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
}
.social-icon:hover { background: var(--accent); color: #fff; }

.footer-col h4 {
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
    color: rgba(255,255,255,0.55);
    font-size: 0.88rem;
    transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--accent); padding-left: 4px; }

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}
.footer-contact-item svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item span { font-size: 0.88rem; color: rgba(255,255,255,0.55); line-height: 1.5; }
.footer-contact-item a   { color: rgba(255,255,255,0.55); transition: var(--transition); }
.footer-contact-item a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.35); }
.footer-bottom a { color: rgba(255,255,255,0.5); font-size: 0.82rem; }
.footer-bottom a:hover { color: var(--accent); }

/* ─── WhatsApp FAB ───────────────────────────────────────────────────────── */
.whatsapp-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1000;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 6px 24px rgba(37,162,68,0.45);
    transition: var(--transition);
    text-decoration: none;
}
.whatsapp-fab:hover {
    background: #1e8a38;
    transform: scale(1.1);
    color: #fff;
}

/* ─── Lightbox ───────────────────────────────────────────────────────────── */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 24px;
}
.lightbox-overlay.active { opacity: 1; pointer-events: auto; }
.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26,29,46,0.93);
    border: none;
    cursor: default;
    width: 100%;
    height: 100%;
}
.lightbox-content  { max-width: 900px; width: 100%; position: relative; z-index: 1; }
.lightbox-close {
    position: absolute;
    top: -16px;
    right: -16px;
    background: var(--accent);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.lightbox-close:hover { background: var(--accent-hover); }
.lightbox-img     { width: 100%; border-radius: var(--radius-md); max-height: 80vh; object-fit: contain; }
.lightbox-video   { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-md); }
.lightbox-caption { color: rgba(255,255,255,0.65); text-align: center; margin-top: 14px; font-size: 0.9rem; }

/* ─── Toast ──────────────────────────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 100px;
    right: 24px;
    z-index: 3000;
    padding: 14px 22px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    animation: slideToast 0.3s ease-out;
}
.toast-success { background: #ecfdf5; border: 1.5px solid #6ee7b7; color: #065f46; }
.toast-error   { background: #fef2f2; border: 1.5px solid #fca5a5; color: #991b1b; }
@keyframes slideToast { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ─── Login Page ─────────────────────────────────────────────────────────── */
.login-page { min-height: 100vh; display: flex; background: var(--muted); }
.login-left {
    flex: 1;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    position: relative;
    overflow: hidden;
}
.login-deco-1 {
    position: absolute;
    right: -80px; top: -80px;
    width: 320px; height: 320px;
    border-radius: 50%;
    border: 60px solid rgba(212,146,12,0.15);
    pointer-events: none;
}
.login-deco-2 {
    position: absolute;
    left: -60px; bottom: -60px;
    width: 240px; height: 240px;
    border-radius: 50%;
    border: 40px solid rgba(255,255,255,0.06);
    pointer-events: none;
}
.login-left-content {
    position: relative;
    z-index: 2;
    max-width: 380px;
    color: #fff;
}
.login-left-content h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 16px;
}
.login-left-content p {
    color: rgba(255,255,255,0.65);
    line-height: 1.75;
    font-size: 0.93rem;
    margin-bottom: 36px;
}
.login-feature-list { display: flex; flex-direction: column; gap: 14px; }
.login-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.65);
    font-size: 0.88rem;
}
.login-feature-icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(212,146,12,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}
.login-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 48px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(36,87,197,0.12);
    border: 1px solid var(--border);
}
.login-card h1 {
    font-size: 1.6rem;
    color: var(--foreground);
    margin-bottom: 6px;
}
.login-card .sub {
    color: var(--muted-foreground);
    font-size: 0.88rem;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* ─── Admin Layout ───────────────────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
    width: 256px;
    flex-shrink: 0;
    background: var(--ink);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    border-right: 1px solid rgba(255,255,255,0.06);
}

.sidebar-logo {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-logo .brand-main { color: #fff; }
.sidebar-logo .brand-sub { color: rgba(255,255,255,0.4); }

.sidebar-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.3);
    padding: 16px 20px 8px;
}

.sidebar-nav {
    padding: 12px 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.55);
    font-weight: 600;
    font-size: 0.88rem;
    font-family: var(--font-display);
    transition: var(--transition);
}
.sidebar-link:hover  { background: rgba(255,255,255,0.08); color: #fff; }
.sidebar-link.active { background: var(--primary); color: #fff; }
.sidebar-link .icon  { width: 20px; text-align: center; font-size: 1rem; }
.sidebar-badge {
    margin-left: auto;
    background: rgba(212,146,12,0.25);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
}
.sidebar-badge-alert { background: #7f1d1d; color: #fee2e2; }
.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.admin-main { flex: 1; margin-left: 256px; background: #EEF2F8; min-height: 100vh; }

.admin-topbar {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
}
.admin-topbar h1 { font-size: 1.4rem; color: var(--foreground); margin-bottom: 2px; }
.admin-topbar p  { color: var(--muted-foreground); font-size: 0.82rem; }
.admin-user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 7px 14px 7px 7px;
    text-decoration: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
    cursor: pointer;
    max-width: 220px;
}
.admin-user-chip:hover {
    border-color: var(--primary);
    background: rgba(36,87,197,.05);
    box-shadow: 0 2px 10px rgba(36,87,197,.1);
}
.chip-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid rgba(36,87,197,.15);
}
.chip-avatar img { width:100%; height:100%; object-fit:cover; display:block; }
.chip-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}
.chip-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    font-family: var(--font-display);
}
.chip-role {
    font-size: 0.7rem;
    color: var(--muted-foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}
.chip-edit-icon {
    flex-shrink: 0;
    color: var(--muted-foreground);
    opacity: 0;
    transition: opacity .2s;
}
.admin-user-chip:hover .chip-edit-icon { opacity: 1; }

.admin-content { padding: 28px 32px; }

/* ─── Admin Metric Cards ─────────────────────────────────────────────────── */
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
.metric-card {
    background: var(--card);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.metric-card:hover { box-shadow: var(--shadow-md); }
.metric-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.metric-label  { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted-foreground); }
.metric-icon   { width: 38px; height: 38px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.metric-icon-primary { background: rgba(36,87,197,0.10); }
.metric-icon-accent  { background: rgba(212,146,12,0.12); }
.metric-icon-orange  { background: rgba(212,146,12,0.12); }
.metric-icon-navy    { background: rgba(36,87,197,0.10); }
.metric-value  { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--primary); line-height: 1; }
.metric-value.orange { color: var(--accent); }

/* ─── Admin Panel / Table ────────────────────────────────────────────────── */
.dash-grid   { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; }
.admin-panel {
    background: var(--card);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.panel-title  { font-size: 1rem; color: var(--foreground); font-weight: 700; font-family: var(--font-display); }
.table-wrap   { overflow-x: auto; }
.admin-table  { width: 100%; border-collapse: collapse; text-align: left; }
.admin-table th { padding: 10px 14px; border-bottom: 2px solid var(--border); color: var(--muted-foreground); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; background: var(--muted); }
.admin-table td { padding: 13px 14px; border-bottom: 1px solid var(--border); font-size: 0.9rem; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(36,87,197,0.02); }

.tbl-thumb    { width: 52px; height: 36px; border-radius: 6px; object-fit: cover; border: 1px solid var(--border); }
.tbl-actions  { display: flex; gap: 6px; }
.tbl-btn {
    width: 30px; height: 30px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: transparent;
    color: var(--muted-foreground); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; transition: var(--transition);
}
.tbl-btn:hover        { background: var(--muted); color: var(--foreground); }
.tbl-btn.edit:hover   { background: rgba(36,87,197,0.08); color: var(--primary); border-color: var(--primary); }
.tbl-btn.delete:hover { background: #fef2f2; color: #dc2626; border-color: #fca5a5; }
.tbl-btn.read:hover   { background: #ecfdf5; color: #059669; border-color: #6ee7b7; }

/* ─── Badges ─────────────────────────────────────────────────────────────── */
.badge {
    display: inline-block; padding: 3px 10px; border-radius: 100px;
    font-size: 0.73rem; font-weight: 700; letter-spacing: 0.02em;
}
.badge-success { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.badge-warning { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.badge-danger  { background: #fef2f2; color: #dc2626; border: 1px solid #fca5a5; }
.badge-primary { background: rgba(36,87,197,0.1); color: var(--primary); border: 1px solid rgba(36,87,197,0.2); }
.badge-navy    { background: rgba(36,87,197,0.1); color: var(--primary); border: 1px solid rgba(36,87,197,0.2); }
.badge-accent  { background: rgba(212,146,12,0.12); color: var(--accent); border: 1px solid rgba(212,146,12,0.25); }
.badge-orange  { background: rgba(212,146,12,0.12); color: var(--accent); border: 1px solid rgba(212,146,12,0.25); }

/* ─── Admin Gallery Grid ─────────────────────────────────────────────────── */
.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
    margin-top: 20px;
}
.admin-gallery-card {
    background: var(--card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.admin-gallery-card:hover { box-shadow: var(--shadow-md); }
.admin-gallery-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--muted);
}
.admin-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.admin-gallery-card:hover .admin-gallery-thumb img { transform: scale(1.05); }
.admin-gallery-overlay {
    position: absolute; inset: 0;
    background: rgba(26,29,46,0.65);
    display: flex; align-items: center; justify-content: center; gap: 8px;
    opacity: 0; transition: opacity 0.25s ease;
}
.admin-gallery-card:hover .admin-gallery-overlay { opacity: 1; }
.admin-gallery-info { padding: 12px 14px; }
.admin-gallery-info h4 {
    font-size: 0.88rem;
    color: var(--foreground);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─── Add Form Box ───────────────────────────────────────────────────────── */
.add-form-box {
    background: var(--card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 28px;
}
.add-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.add-form-header h3 { font-size: 1rem; color: var(--foreground); margin: 0; }

/* ─── Toggle / Switch ────────────────────────────────────────────────────── */
.form-switch { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.form-switch input[type=checkbox] { accent-color: var(--primary); width: 17px; height: 17px; cursor: pointer; }

/* ─── Empty State ────────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 56px 24px; }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.4; }
.empty-state p { color: var(--muted-foreground); font-size: 0.95rem; margin-bottom: 20px; }


/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .catalogue-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .cta-block { grid-template-columns: 1fr; gap: 40px; padding: 48px 36px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
    .dash-grid { grid-template-columns: 1fr; }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .admin-sidebar { width: 64px; }
    .sidebar-link span:not(.icon),
    .sidebar-logo .site-logo-text,
    .sidebar-footer span:not(.icon),
    .sidebar-badge,
    .sidebar-section-label { display: none; }
    .admin-main { margin-left: 64px; }
    .admin-content { padding: 20px; }
    .admin-topbar { padding: 14px 20px; }
}

@media (max-width: 768px) {
    .site-nav { display: none; }
    .site-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--border); padding: 12px; z-index: 100; gap: 4px; }
    .nav-toggle { display: flex; }
    .header-phone { display: none; }
    .hero { padding: 64px 0 48px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
    .stat-item:nth-child(2n) { border-right: none; }
    .services-grid { grid-template-columns: 1fr; }
    .catalogue-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .login-page { flex-direction: column; }
    .login-left { display: none; }
    .admin-topbar h1 { font-size: 1.1rem; }
    .metrics-grid { grid-template-columns: 1fr 1fr; }
    .cta-block { border-radius: 16px; padding: 36px 24px; }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .metrics-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .partners-track { gap: 32px; }
    .partners-ticker::before, .partners-ticker::after { width: 60px; }
    .hero h1 { font-size: 1.9rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PAGE HERO (inner pages)
═══════════════════════════════════════════════════════════════════════════ */
.page-hero {
    position: relative;
    overflow: clip; /* 'clip' n'affecte pas les enfants avec filter:blur */
    background: var(--ink); color: #fff;
    padding: 80px 0 100px;
    /* isolation crée un nouveau stacking context, empêche le débordement z-index */
    isolation: isolate;
}
.page-hero-gradient {
    position: absolute; inset: 0;
    background: var(--gradient-hero); opacity: 0.9;
    z-index: 0;
}
.page-hero-blob {
    position: absolute; right: -80px; top: -80px;
    width: 350px; height: 350px; border-radius: 50%;
    background: rgba(212,146,12,0.18); filter: blur(80px);
    pointer-events: none; z-index: 0;
}
.page-hero-content {
    position: relative; z-index: 1;
}
.page-eyebrow {
    font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--accent); margin-bottom: 14px;
}
.page-hero-title {
    font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700; color: #fff; line-height: 1.1;
    max-width: 760px; margin-bottom: 18px;
}
.page-hero-desc {
    font-size: 1.05rem; color: rgba(255,255,255,0.75);
    max-width: 600px; line-height: 1.75;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ABOUT PAGE
═══════════════════════════════════════════════════════════════════════════ */
.about-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 12px; padding: 28px 24px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.about-card:hover {
    box-shadow: var(--shadow-elegant); transform: translateY(-4px);
    border-color: transparent;
}
.about-card .service-icon-wrap {
    width: 48px; height: 48px; border-radius: 10px;
    background: var(--gradient-brand); color: #fff;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.about-card h3 { font-size: 1.1rem; color: var(--ink); margin-bottom: 8px; }
.about-card p  { font-size: 0.9rem; color: var(--muted-foreground); line-height: 1.7; }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 16px; }
.timeline-item {
    display: flex; gap: 20px; align-items: flex-start;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 16px; padding: 22px 24px;
}
.timeline-year {
    width: 64px; height: 64px; border-radius: 12px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent), #B87A08);
    color: var(--ink); font-family: var(--font-display);
    font-size: 1rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.timeline-item h3 { font-size: 1rem; color: var(--ink); margin-bottom: 4px; }
.timeline-item p  { font-size: 0.88rem; color: var(--muted-foreground); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════════════════════
   SERVICES DETAIL PAGE
═══════════════════════════════════════════════════════════════════════════ */
.services-detail { display: flex; flex-direction: column; gap: 80px; }
.service-detail-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.service-detail-row.reverse .service-detail-image { order: 2; }
.service-detail-img-wrap {
    border-radius: 16px; overflow: hidden;
    box-shadow: var(--shadow-elegant);
}
.service-detail-img-wrap img {
    width: 100%; aspect-ratio: 4/3; object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.service-detail-img-wrap:hover img { transform: scale(1.04); }
.service-detail-content h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.1rem); color: var(--ink); margin-bottom: 14px;
}
.service-detail-content p { color: var(--muted-foreground); line-height: 1.75; margin-bottom: 20px; }

.check-list {
    list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 28px;
}
.check-list li {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.9rem; color: var(--foreground);
}
.check-list li::before {
    content: '';
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid var(--accent);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23D4920C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat;
    flex-shrink: 0;
}
.service-detail-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════════════════════
   DEVIS / CONTACT FORMS
═══════════════════════════════════════════════════════════════════════════ */
.form-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 16px; padding: 36px 40px;
    box-shadow: var(--shadow-md);
}
.form-error {
    display: block; margin-top: 4px;
    font-size: 0.78rem; color: #dc2626;
}

/* Contact page layout */
.contact-page-grid {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start;
}
.contact-info-col { display: flex; flex-direction: column; gap: 14px; }
.contact-info-card {
    display: flex; gap: 14px; align-items: flex-start;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 12px; padding: 18px 20px;
    box-shadow: var(--shadow-sm);
}
.contact-info-icon {
    width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
    background: var(--gradient-brand); color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.contact-info-title {
    font-family: var(--font-display); font-weight: 600;
    color: var(--ink); font-size: 0.95rem; margin-bottom: 4px;
}
.contact-info-value { font-size: 0.88rem; color: var(--muted-foreground); line-height: 1.65; }

/* ═══════════════════════════════════════════════════════════════════════════
   CARRIÈRES PAGE
═══════════════════════════════════════════════════════════════════════════ */
.jobs-list { display: flex; flex-direction: column; gap: 14px; }
.job-card {
    display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 14px; padding: 22px 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s ease;
}
.job-card:hover { box-shadow: var(--shadow-lg); }
.job-icon-wrap {
    width: 48px; height: 48px; border-radius: 10px; flex-shrink: 0;
    background: var(--gradient-brand); color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.job-info { flex: 1; min-width: 200px; }
.job-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.job-badge {
    background: rgba(36,87,197,0.1); color: var(--primary);
    font-size: 0.72rem; font-weight: 700; padding: 2px 10px;
    border-radius: 100px; font-family: var(--font-display);
}
.job-dept { font-size: 0.78rem; color: var(--muted-foreground); }
.job-info h3 { font-size: 1.05rem; color: var(--ink); font-weight: 700; margin-bottom: 4px; }
.job-location {
    display: flex; gap: 4px; align-items: center;
    font-size: 0.78rem; color: var(--muted-foreground);
}

.spontaneous-card {
    display: flex; gap: 20px; align-items: center; justify-content: space-between;
    flex-wrap: wrap;
    background: rgba(36,87,197,0.04); border: 1px solid rgba(36,87,197,0.15);
    border-radius: 14px; padding: 24px 28px; margin-top: 32px;
}
.spontaneous-card h3 { font-size: 1rem; color: var(--ink); margin-bottom: 6px; }
.spontaneous-card p  { font-size: 0.88rem; color: var(--muted-foreground); max-width: 480px; }

/* Candidature spontanée dark — style du modèle */
.spontaneous-dark-card {
    position: relative; overflow: hidden;
    background: var(--gradient-hero);
    border-radius: 16px; padding: 40px 48px;
    margin-top: 40px;
}
.spontaneous-dark-card::after {
    content: '';
    position: absolute; right: -80px; top: -80px;
    width: 320px; height: 320px; border-radius: 50%;
    background: rgba(212,146,12,0.12); filter: blur(60px);
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE – NEW PAGES
═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .service-detail-row { grid-template-columns: 1fr; gap: 32px; }
    .service-detail-row.reverse .service-detail-image { order: 0; }
    .contact-page-grid { grid-template-columns: 1fr; }
    .check-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .form-card { padding: 24px 20px; }
    .job-card { flex-direction: column; align-items: flex-start; }
    .spontaneous-card { flex-direction: column; }
    .page-hero { padding: 60px 0 72px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ADMIN – PARTENAIRES
═══════════════════════════════════════════════════════════════════════════ */
.partners-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.partner-admin-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex; flex-direction: column;
}
.partner-admin-card:hover { box-shadow: var(--shadow-md); }
.partner-inactive { opacity: 0.55; }

.partner-admin-logo-wrap {
    position: relative;
    background: var(--muted);
    display: flex; align-items: center; justify-content: center;
    padding: 24px 20px; min-height: 90px;
    border-bottom: 1px solid var(--border);
}
.partner-admin-logo {
    max-height: 52px; max-width: 140px;
    width: auto; object-fit: contain;
}

.partner-admin-info {
    padding: 12px 14px; flex: 1;
}
.partner-admin-actions {
    display: flex; gap: 6px;
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    background: var(--muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PAGE GALERIE — Design complet
═══════════════════════════════════════════════════════════════════════════ */

/* Compteur dans le hero */
.gallery-count-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 100px;
    padding: 2px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 10px;
    vertical-align: middle;
}

/* ─── Barre de filtres sticky ────────────────────────────────────────────── */
.gallery-filter-bar {
    position: sticky;
    top: 0; /* colle juste sous le header sticky */
    z-index: 90;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.2s ease;
}
.gallery-filter-bar.is-sticky {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.gallery-filter-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 14px 0;
}
.filter-group { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-sep {
    width: 1px; height: 28px;
    background: var(--border);
    margin: 0 4px;
    flex-shrink: 0;
}
.filter-pill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 14px;
    border-radius: 100px;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--muted-foreground);
    font-family: var(--font-display);
    font-size: 0.82rem; font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.filter-pill:hover { border-color: var(--primary); color: var(--primary); }
.filter-pill.active {
    background: var(--ink); border-color: var(--ink);
    color: #fff;
}
.filter-pill.filter-pill-cat.active {
    background: var(--accent); border-color: var(--accent);
    color: var(--ink);
}
.filter-count {
    background: rgba(0,0,0,0.08);
    border-radius: 100px;
    padding: 1px 7px;
    font-size: 0.72rem;
    font-weight: 700;
}
.filter-pill.active .filter-count { background: rgba(255,255,255,0.2); }
.filter-result-count {
    margin-left: auto;
    font-size: 0.82rem;
    color: var(--muted-foreground);
    font-weight: 600;
}

/* ─── Grille galerie ─────────────────────────────────────────────────────── */
.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ─── Card galerie ───────────────────────────────────────────────────────── */
.gal-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    /* transition inclut opacity pour le filtrage client */
    transition: transform 0.3s ease, box-shadow 0.3s ease,
                opacity 0.2s ease, border-color 0.3s ease;
    text-align: left;
    width: 100%;
    padding: 0;
    font-family: inherit;
    display: flex; flex-direction: column;
}
.gal-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-elegant);
    border-color: transparent;
}
.gal-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Thumbnail */
.gal-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--muted);
    flex-shrink: 0;
}
.gal-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
    display: block;
}
.gal-card:hover .gal-img { transform: scale(1.06); }

.gal-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--muted-foreground); opacity: 0.4;
}

/* Badge type (haut-droite) */
.gal-type-badge {
    position: absolute; top: 10px; right: 10px;
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 9px; border-radius: 100px;
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em;
    backdrop-filter: blur(6px);
}
.gal-type-image {
    background: rgba(36,87,197,0.85); color: #fff;
}
.gal-type-video {
    background: rgba(212,146,12,0.90); color: var(--ink);
}

/* Overlay hover */
.gal-overlay {
    position: absolute; inset: 0;
    background: rgba(11,25,41,0.55);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gal-card:hover .gal-overlay { opacity: 1; }
.gal-overlay-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent); color: var(--ink);
    font-family: var(--font-display); font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 22px; border-radius: 100px;
    transform: translateY(8px);
    transition: transform 0.3s ease;
    white-space: nowrap;
}
.gal-card:hover .gal-overlay-btn { transform: translateY(0); }

/* Info bas de carte */
.gal-info {
    padding: 16px 18px 18px;
    flex: 1; display: flex; flex-direction: column;
}
.gal-cat {
    display: inline-block;
    background: var(--orange-light, rgba(212,146,12,0.10));
    color: var(--accent);
    border: 1px solid rgba(212,146,12,0.2);
    font-size: 0.72rem; font-weight: 700;
    padding: 2px 10px; border-radius: 100px;
    margin-bottom: 8px;
    font-family: var(--font-display);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.gal-title {
    font-family: var(--font-display);
    font-size: 0.95rem; font-weight: 700;
    color: var(--ink); margin-bottom: 4px;
    line-height: 1.3;
}
.gal-desc {
    font-size: 0.84rem; color: var(--muted-foreground);
    line-height: 1.55; margin: 0;
}

/* ─── États vides ────────────────────────────────────────────────────────── */
.gallery-empty-filter {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 72px 24px;
    color: var(--muted-foreground);
    text-align: center;
}
.gallery-empty-filter svg { opacity: 0.3; }
.gallery-empty-filter p { font-size: 1rem; margin: 0; }

.gallery-empty-state {
    text-align: center;
    padding: 80px 24px;
    background: var(--card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.gallery-empty-icon {
    display: flex; align-items: center; justify-content: center;
    width: 88px; height: 88px;
    background: var(--muted);
    border-radius: 50%;
    margin: 0 auto 24px;
    color: var(--muted-foreground); opacity: 0.4;
}
.gallery-empty-state h3 {
    font-size: 1.2rem; color: var(--ink); margin-bottom: 10px;
}
.gallery-empty-state p {
    color: var(--muted-foreground); margin-bottom: 24px;
}

/* ─── Lightbox (<dialog>) ────────────────────────────────────────────────── */
dialog.lightbox-overlay {
    position: fixed; inset: 0;
    width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
    background: rgba(8,25,41,0.95);
    border: none; padding: 0; margin: 0;
    display: flex; align-items: center; justify-content: center;
    z-index: 2000;
}
dialog.lightbox-overlay::backdrop {
    background: rgba(8,25,41,0.95);
}
dialog.lightbox-overlay:not([open]) { display: none; }
dialog.lightbox-overlay[open] { opacity: 1; pointer-events: auto; }

.lightbox-shell {
    position: relative;
    width: 100%; max-width: 960px;
    padding: 0 72px;
    display: flex; flex-direction: column;
    align-items: center;
}

/* Bouton fermer — galerie dialog */
dialog.lightbox-overlay .lightbox-close {
    position: fixed; top: 20px; right: 24px;
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.25);
    color: #f1f5f9; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition); z-index: 2;
}
dialog.lightbox-overlay .lightbox-close:hover {
    background: var(--accent); border-color: var(--accent); color: var(--ink);
}

/* Navigation gauche/droite — galerie dialog */
.lightbox-nav {
    position: fixed; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(0,0,0,0.40);
    border: 1px solid rgba(255,255,255,0.20);
    color: #f1f5f9; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition); z-index: 2;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-nav:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* Contenu — galerie dialog (renommé pour éviter conflit) */
#lb-content { width: 100%; }
.lb-img {
    width: 100%; max-height: 78vh;
    object-fit: contain; border-radius: var(--radius-md);
    display: block;
}
.lb-video {
    width: 100%; aspect-ratio: 16/9;
    border-radius: var(--radius-md); border: none; display: block;
}
.lb-empty {
    color: rgba(255,255,255,0.5);
    text-align: center; padding: 60px;
}

/* Caption */
.lightbox-caption-bar {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 14px; width: 100%;
    color: rgba(255,255,255,0.65); font-size: 0.88rem;
}
.lb-counter {
    font-size: 0.78rem; color: rgba(255,255,255,0.4);
    font-family: var(--font-display); font-weight: 600;
}

/* Utilitaire accessibilité */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ─── Responsive galerie ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .gallery-masonry { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .gallery-masonry { grid-template-columns: 1fr; gap: 14px; }
    .gallery-filter-inner { gap: 6px; }
    .filter-sep { display: none; }
    .filter-result-count { width: 100%; margin-left: 0; }
    .lightbox-shell { padding: 0 48px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}
