/* ==========================================================================
   DBL Services — design system
   Palette extraite du logo (dégradé marine → bleu royal → cyan).
   ========================================================================== */

:root {
    --navy-950: #060B24;
    --navy-900: #0A1440;
    --navy-800: #0F1F5C;
    --blue-700: #0B3D91;
    --blue-600: #0A5FC2;
    --blue-500: #0B7FDC;
    --cyan-500: #02A2EB;
    --sky-400: #52C4EF;
    --sky-100: #E6F5FD;
    --paper: #F7FAFC;
    --white: #FFFFFF;
    --ink: #0C1526;
    --slate: #4A5568;
    --slate-light: #8A94A6;
    --line: #E2E8F0;

    --gradient-brand: linear-gradient(120deg, var(--navy-900) 0%, var(--blue-700) 45%, var(--cyan-500) 100%);
    --gradient-accent: linear-gradient(120deg, var(--blue-600) 0%, var(--cyan-500) 60%, var(--sky-400) 100%);

    --shadow-sm: 0 1px 2px rgba(10, 20, 64, 0.06), 0 1px 3px rgba(10, 20, 64, 0.08);
    --shadow-md: 0 4px 16px rgba(10, 20, 64, 0.10);
    --shadow-lg: 0 20px 50px rgba(10, 20, 64, 0.16);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --container: 1180px;
    color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 0.5em;
    color: var(--navy-900);
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--slate); }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cyan-500);
    margin-bottom: 14px;
}
.eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    background: var(--cyan-500);
    display: inline-block;
}

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn-primary {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-primary::after {
    content: "";
    position: absolute;
    top: 0; left: -75%;
    width: 45%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg);
    transition: left 0.65s ease;
}
.btn-primary:hover::after { left: 130%; }
.btn-ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-outline {
    background: transparent;
    color: var(--navy-900);
    border-color: var(--line);
}
.btn-outline:hover { border-color: var(--cyan-500); color: var(--blue-700); }

/* ---------- Header / nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247, 250, 252, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}
.nav-logo img { height: 50px; width: auto; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--navy-900);
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-links a:hover,
.nav-links a.active { border-color: var(--cyan-500); color: var(--blue-700); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-cta .btn { padding: 11px 22px; background: var(--gradient-brand); color: var(--white); box-shadow: none; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy-900);
    margin: 5px 0;
    transition: 0.2s;
}

@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        padding: 12px 24px 20px;
        box-shadow: var(--shadow-md);
    }
    .nav-links.open a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
    .nav-toggle { display: block; }
    .nav-cta .btn-label { display: none; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: var(--gradient-brand);
    color: var(--white);
    overflow: hidden;
    padding: 96px 0 110px;
}
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
}
.hero::before {
    width: 520px; height: 520px;
    background: rgba(2, 162, 235, 0.35);
    top: -220px; right: -140px;
}
.hero::after {
    width: 420px; height: 420px;
    background: rgba(82, 196, 239, 0.18);
    bottom: -200px; left: -100px;
}
.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: radial-gradient(rgba(255,255,255,0.6) 1px, transparent 1px);
    background-size: 26px 26px;
}
.hero-inner { position: relative; max-width: 720px; }
.hero p.lead { color: rgba(255,255,255,0.94); font-size: 1.12rem; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.page-hero {
    padding: 68px 0 64px;
}
.page-hero p.lead { color: rgba(255,255,255,0.75); max-width: 620px; }

/* ---------- Bannière image (pages secondaires) ---------- */
.page-banner {
    position: relative;
    padding: 100px 0 68px;
    color: var(--white);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(6,11,36,0.93) 10%, rgba(10,63,145,0.82) 55%, rgba(2,162,235,0.55));
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner p.lead { color: rgba(255,255,255,0.94); max-width: 620px; }
@media (max-width: 640px) { .page-banner { padding: 84px 0 52px; } }

/* ---------- Hero slider (accueil) — effet carrousel (translation horizontale) ---------- */
.hero-slider {
    position: relative;
    height: 680px;
    overflow: hidden;
    color: var(--white);
}
.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.85s cubic-bezier(0.65, 0, 0.35, 1);
}
.hero-slider .slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}
.hero-slider .slide-media {
    position: absolute;
    inset: -4%;
    background-size: cover;
    background-position: center;
    animation: kenburns 14s ease-in-out infinite alternate;
    animation-play-state: paused;
    will-change: transform;
}
.hero-slider .slide.active .slide-media { animation-play-state: running; }
.hero-slider .slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(6,11,36,0.94) 12%, rgba(10,63,145,0.82) 55%, rgba(2,162,235,0.5));
}
.hero-slider .hero-inner { position: relative; z-index: 1; padding: 90px 0 120px; width: 100%; }
.hero-slider p.lead { color: rgba(255,255,255,0.94) !important; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.13); } }

.slider-dots {
    position: absolute;
    z-index: 4;
    bottom: 30px;
    left: 0; right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.slider-dots button {
    width: 9px; height: 9px;
    border-radius: 999px;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
}
.slider-dots button.active { background: var(--white); width: 28px; }

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    backdrop-filter: blur(6px);
    transition: background 0.2s ease, transform 0.2s ease;
}
.slider-arrow:hover { background: rgba(255,255,255,0.25); transform: translateY(-50%) scale(1.06); }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }
@media (max-width: 720px) {
    .hero-slider { min-height: 580px; }
    .slider-arrow { display: none; }
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 30px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover .card-icon { transform: scale(1.1) rotate(-6deg); background: var(--gradient-accent); color: var(--white); }
.card-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--sky-100);
    color: var(--blue-700);
    margin-bottom: 18px;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.card-icon svg { width: 26px; height: 26px; }

/* Cascade : les cartes d'une même grille apparaissent l'une après l'autre. */
.grid .reveal:nth-child(1) { transition-delay: 0s; }
.grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.grid .reveal:nth-child(4) { transition-delay: 0.3s; }

.tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--sky-100);
    color: var(--blue-700);
}

/* ---------- CTA band ---------- */
.cta-band {
    background: var(--gradient-brand);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.78); max-width: 520px; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-950);
    color: rgba(255,255,255,0.65);
    padding: 64px 0 28px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--sky-400); }
.footer-logo img { height: 40px; margin-bottom: 16px; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    font-size: 0.82rem;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-socials { display: flex; gap: 14px; }
.footer-socials a {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}
.footer-socials a:hover { background: var(--cyan-500); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

.badge-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.badge-list span {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.stat { text-align: center; }
.stat .num { font-size: 2.4rem; font-weight: 800; color: var(--blue-700); font-family: 'Montserrat', sans-serif; }
.stat .label { font-size: 0.85rem; color: var(--slate-light); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,0.85); }

.case-study-card { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 800px) { .case-study-card { grid-template-columns: 1fr; } }

.partner-card { display: grid; grid-template-columns: 220px 1fr; gap: 36px; }
@media (max-width: 640px) { .partner-card { grid-template-columns: 1fr; gap: 16px; } }
.partner-logo { max-height: 64px; max-width: 100%; width: auto; }

/* ---------- Équipe ---------- */
.team-card { text-align: center; }
.team-photo {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.team-card:hover .team-photo img { transform: scale(1.05); }
.team-card h3 { margin-bottom: 2px; }
.team-card .role { color: var(--blue-700); font-weight: 700; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.03em; }
