/* ==========================================================================
   Usidistrib – feuille de style unique (aucune dépendance externe)
   ========================================================================== */

:root {
    --brand: #202078;
    --brand-2: #2c3f8f;
    --accent: #2f6fd0;
    --bg: #ffffff;
    --bg-alt: #f4f5fb;
    --surface: #ffffff;
    --text: #1b1d2e;
    --heading: #14163a;
    --muted: #5b5f78;
    --border: #e1e3ef;
    --shadow: 0 1px 2px rgb(20 20 60 / .06), 0 8px 24px rgb(20 20 60 / .08);
    --radius: 14px;
    --radius-sm: 8px;
    --max: 1160px;
    --header-h: 72px;
    --font: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Thème sombre : le blanc sert d'accent, le texte courant est bleu-gris. */
        --brand: #ffffff;
        --brand-2: #dfe5ef;
        --accent: #9fb1cf;
        --bg: #0f1424;
        --bg-alt: #141a2d;
        --surface: #19203a;
        --text: #b9c3d6;
        --heading: #d5dce8;
        --muted: #8792aa;
        --border: #283152;
        --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .35);
        color-scheme: dark;
    }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { color: var(--heading); line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }

.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.center { text-align: center; }
.grid + .center { margin-top: 40px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--brand); color: #fff; padding: 8px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 650; color: var(--accent); margin-bottom: .75em; }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--muted); max-width: 62ch; }

/* ---------- Boutons ---------- */
.button {
    display: inline-flex; align-items: center; gap: .5em;
    padding: .8em 1.4em; border-radius: 999px;
    background: var(--brand); color: #fff; font-weight: 600; text-decoration: none;
    border: 2px solid var(--brand); transition: transform .15s ease, background .15s ease;
}
.button:hover { color: #fff; background: var(--brand-2); border-color: var(--brand-2); transform: translateY(-1px); }
.button-ghost { background: transparent; color: var(--brand); }
.button-ghost:hover { background: var(--brand); color: #fff; }
.button-light { background: #fff; color: #202078; border-color: #fff; }
.button-light:hover { background: #eef0ff; color: #202078; border-color: #eef0ff; }
@media (prefers-color-scheme: dark) {
    .button { color: #14163a; }
    .button:hover { color: #14163a; }
    .button-ghost { color: var(--brand); }
    .button-ghost:hover { color: #14163a; }
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.actions-center { justify-content: center; }

/* ---------- En-tête ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand img { width: 150px; height: auto; border-radius: 6px; }
@media (prefers-color-scheme: dark) { .brand img, .footer-logo { box-shadow: 0 0 0 1px rgb(255 255 255 / .18); } }

.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { display: block; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-weight: 550; font-size: .97rem; }
.site-nav ul a:hover { background: var(--bg-alt); color: var(--brand); }
.site-nav ul a[aria-current="page"] { color: var(--brand); background: var(--bg-alt); }
.site-nav .nav-cta { background: var(--brand); color: #fff; padding-inline: 18px; border-radius: 999px; }
.site-nav .nav-cta:hover, .site-nav .nav-cta[aria-current="page"] { background: var(--brand-2); color: #fff; }
@media (prefers-color-scheme: dark) {
    .site-nav .nav-cta, .site-nav .nav-cta:hover, .site-nav .nav-cta[aria-current="page"] { color: #14163a; }
}

.lang-switch { display: flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.lang-switch a { padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 650; color: var(--muted); text-decoration: none; }
.lang-switch a[aria-current="true"] { background: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { .lang-switch a[aria-current="true"] { color: #14163a; } }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    position: absolute; left: 11px; width: 20px; height: 2px; background: var(--text); border-radius: 2px; content: ""; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; top: -6px; }
.nav-toggle-bar::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .site-nav {
        display: none; position: absolute; inset: var(--header-h) 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 16px;
        padding: 16px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    }
    .site-nav.is-open { display: flex; }
    .site-nav ul { flex-direction: column; align-items: stretch; }
    .site-nav ul a { padding: 12px; }
    .site-nav .nav-cta { text-align: center; }
    .lang-switch { align-self: center; }
    /* Sans JavaScript, le menu reste accessible. */
    .no-js .site-nav { display: flex; position: static; box-shadow: none; border: 0; padding: 0 0 16px; }
    .no-js .nav-toggle { display: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.page-header { padding-block: clamp(48px, 7vw, 88px) clamp(24px, 4vw, 40px); background: linear-gradient(180deg, var(--bg-alt), var(--bg)); border-bottom: 1px solid var(--border); }
.page-header h1 { max-width: 22ch; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid + h2 { margin-top: 56px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); margin: 0; }
.card > :last-child { margin-bottom: 0; }
.sticky { position: sticky; top: calc(var(--header-h) + 24px); }

/* ---------- Accueil ---------- */
.hero { padding-block: clamp(56px, 9vw, 112px); background:
    radial-gradient(60% 80% at 85% 10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { max-width: 16ch; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }

.hero-visual { position: relative; aspect-ratio: 5 / 4; }
.device { position: absolute; border-radius: 12px; overflow: hidden; background: #111; box-shadow: 0 24px 60px rgb(20 20 80 / .28); border: 6px solid #15162a; }
.device img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.device-desktop { inset: 0 0 22% 6%; }
.device-tablet { width: 52%; aspect-ratio: 4 / 3; left: 0; bottom: 4%; border-width: 8px; }
.device-phone { width: 22%; aspect-ratio: 9 / 18; right: 4%; bottom: 0; border-radius: 18px; border-width: 5px; }

.feature-icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 14%, transparent); stroke: var(--brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.feature p { color: var(--muted); }

.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(32px, 5vw, 56px); border-radius: calc(var(--radius) * 1.5); background: linear-gradient(120deg, #202078, #1f3a7a 55%, #2d5a8a); color: #fff; }
.cta h2 { color: #fff; }
.cta h2 { margin-bottom: .3em; }
.cta p { margin: 0; color: rgb(255 255 255 / .85); }

/* ---------- Étapes Usidistrib ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.steps a { position: relative; display: flex; flex-direction: column; height: 100%; padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.steps a:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }
.steps li:not(:last-child) a::after { content: "→"; position: absolute; right: -17px; top: 50%; translate: 0 -50%; font-size: 1.2rem; color: var(--accent); }
@media (max-width: 900px) { .steps li a::after { display: none; } }
.step-number { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: .9rem; }
@media (prefers-color-scheme: dark) { .step-number { color: #14163a; } }
.step-icon { width: 40px; height: 40px; margin: 16px 0 8px; stroke: var(--brand); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.step-name { font-weight: 650; font-size: 1.1rem; }
.step-text { color: var(--muted); font-size: .95rem; margin-top: 4px; }

.steps-detail { display: grid; gap: 24px; margin-top: 48px; }
.detail { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 360px); gap: 24px; align-items: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.detail:not(:has(.detail-media)) { grid-template-columns: auto minmax(0, 1fr); }
.detail-media { border-radius: var(--radius-sm); border: 1px solid var(--border); }
.detail ul { padding-left: 1.2em; }
.detail li { margin-bottom: .4em; }
@media (max-width: 900px) { .detail { grid-template-columns: auto minmax(0, 1fr); } .detail-media { grid-column: 1 / -1; } }

/* ---------- Offre ---------- */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.toc a { padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; font-size: .92rem; color: var(--text); background: var(--surface); }
.toc a:hover { border-color: var(--accent); color: var(--brand); }

.checklist { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 18%, transparent); }
.checklist li::after { content: ""; position: absolute; left: 7px; top: calc(.3em + 4px); width: 5px; height: 9px; border: solid var(--brand); border-width: 0 2px 2px 0; rotate: 45deg; }

.stack-card dl { margin: 0; display: grid; gap: 4px 0; }
.stack-card dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; margin-top: 12px; }
.stack-card dd { margin: 0; font-weight: 550; }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: #000; margin-bottom: 16px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.file-link { font-weight: 600; }
.file-link::before { content: "PDF"; display: inline-block; margin-right: 8px; padding: 1px 6px; border-radius: 4px; background: #c62828; color: #fff; font-size: .72rem; font-weight: 700; vertical-align: 2px; }

/* ---------- Réalisations ---------- */
.project-card { padding: 0; overflow: hidden; display: flex; transition: transform .2s ease, box-shadow .2s ease; }
.project-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgb(20 20 60 / .06), 0 16px 40px rgb(20 20 60 / .14); }
.project-card-link { display: flex; flex-direction: column; width: 100%; color: inherit; text-decoration: none; }
.project-card-link:hover { color: inherit; }
.project-card-media { aspect-ratio: 16 / 10; background: var(--bg-alt); overflow: hidden; border-bottom: 1px solid var(--border); }
.project-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s ease; }
.project-card:hover .project-card-media img { transform: scale(1.03); }
.project-card-media.is-logo, .aside-cover.is-logo { background: #fff; display: grid; place-items: center; }
.project-card-media.is-logo img { width: auto; height: 70%; object-fit: contain; }
.project-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.project-card-body h3 { color: var(--brand); }
.project-card-body > p:not(.eyebrow) { color: var(--muted); font-size: .98rem; }
.project-card-body .eyebrow { color: var(--muted); text-transform: none; letter-spacing: 0; font-size: .82rem; font-weight: 550; }
.project-card-body .tags { margin-top: auto; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.tags li { font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--brand); }

.breadcrumb { display: flex; gap: 8px; font-size: .92rem; color: var(--muted); margin-bottom: 16px; }
.facts { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-wrap: wrap; gap: 12px 40px; }
.facts span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; }

.prose { max-width: 70ch; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h2:first-child, .prose figure + h2 { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.before-after { margin: 0 0 40px; }
.before-after img { border-radius: var(--radius-sm); background: #ccc; }
.before-after figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.aside-cover { border-radius: var(--radius-sm); margin-bottom: 20px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.aside-cover.is-logo { object-fit: contain; padding: 16px; }
figure.card figcaption { font-weight: 600; }

.gallery { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); align-items: start; }
.gallery figure { margin: 0; }
.gallery img { border-radius: var(--radius-sm); border: 1px solid var(--border); width: 100%; }
.gallery .is-portrait img { max-height: 460px; width: auto; margin-inline: auto; }
.gallery figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }

/* ---------- À propos ---------- */
.profile { text-align: center; }
.profile-photo { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin: 0 auto 20px; border: 4px solid var(--bg-alt); }
.profile h2 { font-size: 1.3rem; margin-bottom: .2em; }
.profile-role { color: var(--accent); font-weight: 600; }
.profile p:not(.profile-role) { color: var(--muted); font-size: .97rem; }
.profile-links { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 16px; font-weight: 600; }

/* ---------- Contact & liens ---------- */
.contact-card, .link-card { color: inherit; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
a.contact-card:hover, .link-card:hover { border-color: var(--accent); transform: translateY(-2px); color: inherit; }
.contact-card h2 { font-size: 1.15rem; }
.contact-card p { color: var(--muted); overflow-wrap: anywhere; }
.link-card h3 { color: var(--brand); }
.link-card p { color: var(--muted); }
.small-title { font-size: 1.1rem; margin-top: 48px; }

/* ---------- Erreur ---------- */
.error-code { font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; line-height: 1; margin: 0 0 16px; background: linear-gradient(120deg, var(--heading), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page .lead { margin-inline: auto; }

/* ---------- Pied de page ---------- */
.site-footer { background: #121838; color: #b9c3d6; padding-top: 56px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #d5dce8; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { width: 130px; margin-bottom: 16px; border-radius: 6px; }
.footer-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #8a97b3; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-block: 20px; border-top: 1px solid rgb(255 255 255 / .1); }
.footer-bottom p { margin: 0; }

.social { list-style: none; display: flex; justify-content: center; gap: 10px; padding: 0; margin: 0; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); color: var(--brand); }
.social a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.site-footer .social a { border-color: rgb(255 255 255 / .2); color: #fff; }
.site-footer .social a:hover { background: #fff; color: #13143a; }

/* ---------- Avant / après ---------- */
.section-dark { background: #0b0e1c; color: #b9c3d6; }
.subsection-title { margin: 56px 0 24px; font-size: 1.3rem; }

.ba-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.2fr); align-items: center; gap: 16px; }
.ba-side { margin: 0; position: relative; }
.ba-frame { background: #000; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16 / 10; display: grid; place-items: center; }
.ba-frame img { width: 100%; height: 100%; object-fit: contain; }
.ba-label {
    position: absolute; top: 12px; left: 12px; z-index: 1;
    padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    background: rgb(255 255 255 / .14); color: #fff; backdrop-filter: blur(6px); border: 1px solid rgb(255 255 255 / .25);
}
.ba-after .ba-label { background: #fff; color: #14163a; border-color: #fff; }
.ba-side figcaption { margin-top: 10px; font-size: .92rem; color: #9aa6bf; }
.ba-arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; }
.ba-arrow svg { width: 22px; height: 22px; fill: none; stroke: #14163a; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) {
    .ba-pair { grid-template-columns: 1fr; }
    .ba-arrow { justify-self: center; rotate: 90deg; }
}

.carousel { position: relative; background: #0b0e1c; border-radius: calc(var(--radius) * 1.4); padding: clamp(16px, 3vw, 32px); box-shadow: var(--shadow); }
.carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 32px; overscroll-behavior-x: contain; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline-offset: 6px; }
.carousel-slide { flex: 0 0 100%; scroll-snap-align: center; }
.carousel-caption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgb(255 255 255 / .1); }
.carousel-caption h3 { margin: 0; color: #fff; font-size: 1.35rem; }
.carousel-caption a { color: #fff; font-weight: 600; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; }
.carousel-button { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .25); background: transparent; cursor: pointer; }
.carousel-button:hover { background: #fff; }
.carousel-button svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.carousel-button:hover svg { stroke: #14163a; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots button { width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; background: rgb(255 255 255 / .3); cursor: pointer; transition: width .2s ease, background .2s ease; }
.carousel-dots button[aria-current="true"] { width: 28px; background: #fff; }
.no-js .carousel-controls { display: none; }

/* ---------- Galerie & visionneuse ---------- */
.section-tight { padding-top: 0; }
.gallery a { display: block; cursor: zoom-in; border-radius: var(--radius-sm); overflow: hidden; }
.gallery a:hover img { transform: scale(1.02); }
.gallery img { transition: transform .3s ease; background: var(--surface); }

.lightbox { width: min(96vw, 1400px); max-height: 94vh; padding: 0; border: 0; border-radius: var(--radius); background: #0b0e1c; color: #d5dce8; overflow: visible; }
.lightbox::backdrop { background: rgb(5 8 20 / .85); backdrop-filter: blur(4px); }
.lightbox figure { margin: 0; padding: 16px 16px 12px; }
.lightbox img { width: 100%; max-height: calc(94vh - 80px); object-fit: contain; border-radius: var(--radius-sm); }
.lightbox figcaption { margin-top: 10px; text-align: center; font-size: .95rem; }
.lightbox-close, .lightbox-nav { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #14163a; font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.lightbox-close { top: -14px; right: -14px; }
.lightbox-nav { top: 50%; translate: 0 -50%; }
.lightbox-prev { left: -14px; }
.lightbox-next { right: -14px; }
@media (max-width: 760px) {
    .lightbox-close { top: 8px; right: 8px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}
