/* =========================================================
   VARIABLES GLOBALES – PALETTE MONOCHROME
   ========================================================= */
:root {
    --primary: #050505;
    --secondary: #101010;
    --accent: #f5f5f5;        /* accent clair neutre */
    --accent-light: #bfbfbf;  /* accent moyen */
    --text: #f5f5f5;
    --text-light: #9a9a9a;
    --muted: #9a9a9a;         /* utilisé dans les sous-titres de section */
    --transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --section-padding: 120px 0;
    --content-width: 1200px;

    --radius-xl: 26px;
    --radius-lg: 20px;
    --shadow-soft: 0 18px 45px rgba(0,0,0,0.7);
    --font-heading: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --text-main: #f5f5f5;
    --card-yellow-text: #111111;
}

/* =========================================================
   VARIANTE LIGHT – inversion des valeurs (fond clair, texte sombre)
   ========================================================= */
body.light-theme {
    --primary: #f5f5f5;
    --secondary: #ffffff;
    --accent: #111111;
    --accent-light: #444444;
    --text: #111111;
    --text-light: #555555;

    --shadow-soft: 0 18px 45px rgba(0,0,0,0.15);
}

/* =========================================================
   RESET & BASE
   ========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--primary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Barre de progression de scroll */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--accent-light), var(--accent));
    z-index: 2001;
    transform-origin: left center;
    pointer-events: none;
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(10px);
}

body.light-theme .navbar {
    background: rgba(245, 245, 245, 0.9);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.navbar.scrolled {
    padding: 15px 50px;
    background: rgba(5, 5, 5, 0.97);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.75);
}

body.light-theme .navbar.scrolled {
    background: rgba(245, 245, 245, 0.97);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.logo span {
    color: var(--accent-light);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 40px;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

/* =========================================================
   SECTIONS
   ========================================================= */
section {
    padding: var(--section-padding);
    position: relative;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 40px;
}

.section-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(1.9rem, 2.6vw, 2.4rem);
    margin-bottom: 10px;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

/* version unique et propre */
.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 60px auto;
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
    transition-delay: 0.1s;
    text-align: center;
}

.section-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
}

.hero-video-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    opacity: 0.9;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0.15), rgba(0,0,0,0.85));
    z-index: 1;
}

.hero-video-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: calc(100vw * 9 / 21);
    max-height: 130vh;
    transform: translate(-50%, -50%);
    overflow: hidden;
}

@media (max-aspect-ratio: 21/9) {
    .hero-video-wrapper {
        height: 100vh;
        width: calc(100vh * 21 / 9);
    }
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, #171717 0%, #050505 60%, #020202 100%);
    z-index: -3;
}

body.light-theme .hero-bg {
    background: radial-gradient(circle at top, #f0f0f0 0%, #f5f5f5 50%, #ffffff 100%);
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: var(--content-width);
    padding: 0 20px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.5s;
    color: #C49FFF; /* Pourpre premium */
    text-shadow:
        -1px -1px 2px rgba(0, 0, 0, 0.25),
         1px -1px 2px rgba(0, 0, 0, 0.25),
        -1px  1px 2px rgba(0, 0, 0, 0.25),
         1px  1px 2px rgba(0, 0, 0, 0.25),
         0px  2px 3px rgba(0, 0, 0, 0.20);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.7s;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.9s;
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

/* Dark par défaut */
.btn-primary {
    background: var(--accent-light);
    color: #111111;
}

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid rgba(255, 255, 255, 0.25);
}

/* Light – boutons plus contrastés */
body.light-theme .btn-primary {
    background: #111111;
    color: #f5f5f5;
}

body.light-theme .btn-primary:hover {
    background: #000000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

body.light-theme .btn-secondary {
    border-color: rgba(0, 0, 0, 0.35);
    color: #111111;
    background: transparent;
}

body.light-theme .btn-secondary:hover {
    background: #111111;
    color: #f5f5f5;
    border-color: #111111;
}

.btn-secondary:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
    font-size: 0.9rem;
    opacity: 0;
    animation: fadeIn 1s forwards 1.5s;
    z-index: 2;
}

.scroll-indicator i {
    margin-top: 10px;
    animation: bounce 2s infinite;
}

/* =========================================================
   PORTFOLIO
   ========================================================= */
.portfolio {
    background: var(--secondary);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.portfolio-filters.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Dark */
.filter-btn {
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-light);
    border: none;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent-light);
    color: #111111;
}

/* Light – filtres plus lisibles */
body.light-theme .filter-btn {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-light);
}

body.light-theme .filter-btn.active,
body.light-theme .filter-btn:hover {
    background: #111111;
    color: #f5f5f5;
    border-color: #111111;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
    position: relative;
    transition: filter 0.3s ease, opacity 0.3s ease;
    justify-content: center;
    justify-items: center;
}

.portfolio-grid.is-loading {
    filter: blur(2px);
    opacity: 0.6;
}

.portfolio-grid.is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(0,0,0,0.4), rgba(0,0,0,0.9));
    z-index: 5;
}

.portfolio-grid.is-loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: var(--accent-light);
    transform: translate(-50%, -50%) rotate(0deg);
    animation: spin 0.7s linear infinite;
    z-index: 6;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1920 / 813;
    background: var(--primary);
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1.4, 0.36, 1);
    cursor: pointer;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.75);
    width: 100%;
    will-change: transform, opacity;
    transform-origin: center center;
}

.portfolio-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Directionnelle */
.portfolio-item.in-down { transform-origin: top center; }
.portfolio-item.in-up { transform-origin: bottom center; }

.portfolio-item.out-down {
    opacity: 0;
    transform: translateY(-40px) rotateX(-6deg) scale(0.96);
}

.portfolio-item.out-up {
    opacity: 0;
    transform: translateY(40px) rotateX(6deg) scale(0.96);
}

.portfolio-item:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.9);
}

.portfolio-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.portfolio-image-container .portfolio-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    transition: filter 0.35s ease, transform 0.45s cubic-bezier(0.22, 1.4, 0.36, 1);
}

/* -------------------------------
   Micro-loader sur les vignettes
   ------------------------------- */

.thumb-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(
        circle,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.65) 60%,
        rgba(0, 0, 0, 0.8) 100%
    );
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease-out;
    z-index: 2;
}

.thumb-loader.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.thumb-loader.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.thumb-loader-spinner {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid rgba(196, 159, 255, 0.18);
    border-top-color: #C49FFF;
    border-right-color: #C49FFF;
    animation: thumb-spinner-rotate 0.7s linear infinite;
}

@keyframes thumb-spinner-rotate {
    to {
        transform: rotate(360deg);
    }
}

/* hover vignette */
.portfolio-item:hover .portfolio-video {
    filter: grayscale(1) brightness(0.95);
    transform: scale(1.03);
}

@media (hover: none) {
    .portfolio-item:hover .portfolio-video {
        filter: none;
        transform: none;
    }
}

/* Dark overlay */
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 5, 5, 0.96) 0%, transparent 55%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: var(--transition);
    z-index: 3;
    transform: translateY(10px);
}

/* Light – overlay un peu moins sombre */
body.light-theme .portfolio-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, transparent 55%);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 42px;
    height: 42px;
    background: rgba(245, 245, 245, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 4;
    box-shadow: 0 8px 20px rgba(0,0,0,0.7);
}

.play-icon i {
    color: #111111;
    font-size: 1.1rem;
    margin-left: 3px;
}

.portfolio-item:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.portfolio-category {
    color: var(--accent-light);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.portfolio-desc {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* =========================================================
   MODALE VIDÉO
   ========================================================= */
.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.video-modal.active,
.video-modal.closing {
    display: flex;
}

.video-modal.active {
    opacity: 1;
}

.video-modal.closing {
    opacity: 0;
}

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 1280px;
    max-height: 90vh;
    background: #111111;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0,0,0,0.95);
    transform-origin: center center;
    opacity: 0;
    transform: scale(0.8) translateY(60px);
    display: flex;
    flex-direction: column;
}

#video-player {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    background: #000;
    flex-shrink: 0;
}

.video-modal iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.close-modal {
    position: absolute;
    top: -22px;
    right: -22px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0,0,0,0.7);
}

.close-modal:hover {
    background: var(--accent-light);
    color: #111111;
    transform: rotate(90deg);
}

.video-meta {
    padding: 24px 28px 26px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-meta-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.video-meta-category {
    color: var(--accent-light);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.video-meta-title {
    font-size: 1.3rem;
    font-weight: 700;
}

.video-meta-description {
    color: var(--text-light);
    font-size: 0.95rem;
}

.video-back-btn {
    align-self: center;
    margin: 16px 0 10px;
}
/* ==========================
   SECTION "QUI SUIS-JE"
   ========================== */

.section-about-me {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0; /* plein écran, sans padding vertical */
    color: #f5f5f5;
    overflow: hidden;
}

/* Fond plein écran avec la même image que le hero */
.about-me-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.about-me-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transform: scale(1.05);
    /* léger zoom pour éviter les bords sur grands écrans */
}

/* Overlay pour garder ta charte sombre / lisible */
.about-me-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            120deg,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.75) 40%,
            rgba(0, 0, 0, 0.4) 100%
        );
    z-index: 1;
}

/* Contenu */
.about-me-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.about-me-content {
    max-width: 640px;
}

/* Typo & hiérarchie visuelle */
.about-me-kicker {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.about-me-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    line-height: 1.2;
    margin-bottom: 18px;
}

.about-me-title .accent {
    color: #C49FFF;
}

.about-me-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.about-me-bio {
    font-size: 0.98rem;
    color: #f5f5f5;
    max-width: 580px;
    margin-bottom: 28px;
}

/* Signature manuscrite (version typo) */
.about-me-signature {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.signature-handwritten {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.6rem;
    letter-spacing: 0.06em;
}

.signature-role {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-light);
}

/* Version mobile / tablette */
@media (max-width: 768px) {
    .section-about-me {
        min-height: 100vh;
    }

    .about-me-inner {
        align-items: flex-end;
        padding: 70px 20px 40px; /* on remonte un peu le bloc pour libérer le bas */
    }

    .about-me-content {
        background: linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.88) 0%,
            rgba(0, 0, 0, 0.75) 40%,
            rgba(0, 0, 0, 0.0) 100%
        );
        padding: 20px 18px 16px;
        border-radius: 18px;
        backdrop-filter: blur(4px);
    }

    .about-me-title {
        font-size: 2rem;
    }

    .about-me-subtitle {
        font-size: 0.95rem;
    }

    .about-me-bio {
        font-size: 0.9rem;
    }
}

/* =========================================================
   SECTION À PROPOS
   ========================================================= */
.section-about {
    background: radial-gradient(circle at top left, #161616, #050505 60%);
}

body.light-theme .section-about {
    background: radial-gradient(circle at top left, #f0f0f0, #ffffff 70%);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.about-block {
    padding: 28px 26px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.about-block h3 {
    font-family: var(--font-heading, "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif);
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    margin-bottom: 10px;
    color: var(--text);
}

.about-block p {
    font-size: 0.96rem;
    line-height: 1.7;
    color: var(--text-light);
}

/* Variante 1 */
/* Variante 1 : Entreprises & marques */
.about-block--blue {
    background: #A976FF;                      /* pourpre plein */
    color: #f5f5f5;                           /* texte foncé lisible */
    border-color: rgba(0, 0, 0, 0.15);
}

.about-block--blue h3 {
    color: #f5f5f5;
}

.about-block--blue p {
    color: #f5f5f5;
}

/* Light theme : on garde la même logique, pour rester cohérent */
body.light-theme .about-block--blue {
    background: #A976FF;
    color: #111111;
    border-color: rgba(0,0,0,0.18);
}

/* Variante 2 : Agences & sous-traitance */
.about-block--yellow {
    background: #A976FF;                      /* pourpre un peu plus sombre pour varier */
    color: #f5f5f5;
    border-color: rgba(0, 0, 0, 0.25);
}

.about-block--yellow h3 {
    color: #ffffff;
}

.about-block--yellow p {
    color: #f0f0f0;
}

body.light-theme .about-block--yellow {
    background: #A976FF;
    color: #f5f5f5;
    border-color: rgba(0,0,0,0.22);
}


/* Responsive À propos */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}
/* État initial des blocs "À propos" (avant entrée en vue) */
.about-block {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    transition:
        opacity 0.7s cubic-bezier(.22,1.4,.36,1),
        transform 0.7s cubic-bezier(.22,1.4,.36,1),
        box-shadow 0.4s ease,
        background 0.4s ease,
        border-color 0.4s ease;
}

/* État visible : le bloc “atterrit” avec un effet légèrement élastique */
.about-block.about-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Premier bloc : animation depuis la gauche */
.about-grid .about-block.about-visible:nth-child(1) {
    animation: aboutInLeft 0.8s cubic-bezier(.22,1.4,.36,1) forwards;
}

/* Second bloc : animation depuis la droite */
.about-grid .about-block.about-visible:nth-child(2) {
    animation: aboutInRight 0.8s cubic-bezier(.22,1.4,.36,1) forwards;
}

/* Keyframes élastiques */
@keyframes aboutInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px) scale(0.94);
    }
    60% {
        opacity: 1;
        transform: translateX(8px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes aboutInRight {
    0% {
        opacity: 0;
        transform: translateX(50px) scale(0.94);
    }
    60% {
        opacity: 1;
        transform: translateX(-8px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* =========================================================
   CAPSULES – MONOCHROME
   ========================================================= */
.section-capsules {
    background: #101010;
}

body.light-theme .section-capsules {
    background: #f5f5f5;
}

.capsules-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    margin-top: 40px;
}

.capsule-card {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 24px 22px 26px;
    overflow: hidden;
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
    transition:
        transform .28s cubic-bezier(.25,.8,.5,1),
        box-shadow .28s cubic-bezier(.25,.8,.5,1),
        border-color .28s ease,
        background 0.3s ease;
}

/* Light */
body.light-theme .capsule-card {
    background: #ffffff;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* Glow neutre */
.capsule-card::before {
    content: "";
    position: absolute;
    inset: -50%;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.18;
    background: #f5f5f5;
    filter: blur(60px);
    transition: opacity .3s ease, transform .3s ease;
}

body.light-theme .capsule-card::before {
    background: #000000;
    opacity: 0.06;
}

.capsule-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

body.light-theme .capsule-card:hover {
    box-shadow: 0 22px 60px rgba(0,0,0,0.12);
    border-color: rgba(0,0,0,0.14);
}

.capsule-card:hover::before {
    opacity: 0.32;
    transform: scale(1.08);
}

/* Tag */
.capsule-tag {
    position: relative;
    z-index: 2;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #C49FFF;
    font-weight: 600;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

body.light-theme .capsule-tag {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.12);
}

/* Hover premium sur le tag */
.capsule-card:hover .capsule-tag {
    color: #ffffff;
    text-shadow: 0 0 6px rgba(196, 159, 255, 0.45);
}

/* Titre & texte */
.capsule-title {
    position: relative;
    z-index: 2;
    margin-top: 12px;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text);
}

.capsule-text {
    position: relative;
    z-index: 2;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-light);
}

/* Responsive Capsules */
@media (max-width: 1024px) {
    .capsules-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

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

/* ================================
   LOADER VIDEO (modale Vimeo)
   ================================ */

.video-modal-content {
    position: relative;
}

.video-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 5, 5, 0.65);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-out;
    z-index: 5;
}

.video-loader.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.video-loader-spinner {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid rgba(196, 159, 255, 0.18);
    border-top-color: #C49FFF;
    border-right-color: #C49FFF;
    animation: video-spinner-rotate 0.8s linear infinite;
}

@keyframes video-spinner-rotate {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   PROCESS – TIMELINE
   ========================================================= */
.process {
    background: #0f0f0f;
}

body.light-theme .process {
    background: #f0f0f0;
}

.process .section-title {
    color: #ffffff;
}

body.light-theme .process .section-title {
    color: #111111;
}

.process .section-subtitle {
    color: #b0b0b5;
}

body.light-theme .process .section-subtitle {
    color: #666666;
}

.process-wrapper {
    position: relative;
    margin-top: 40px;
}

.process-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255,255,255,0.35),
        rgba(255,255,255,0.15),
        transparent
    );
    opacity: 0.7;
    pointer-events: none;
}

body.light-theme .process-line {
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(0,0,0,0.25),
        rgba(0,0,0,0.08),
        transparent
    );
}

.process-grid {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.process-step {
    position: relative;
    display: flex;
}

.process-step:nth-child(odd) {
    justify-content: flex-start;
}

.process-step:nth-child(even) {
    justify-content: flex-end;
}

.process-step-card {
    position: relative;
    max-width: 46%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 18px;
    padding: 22px 22px 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.7);
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity .55s cubic-bezier(.22,1.4,.36,1),
        transform .55s cubic-bezier(.22,1.4,.36,1),
        box-shadow .45s ease,
        background .45s ease,
        border-color .45s ease;
}

body.light-theme .process-step-card {
    background: rgba(255,255,255,0.9);
    border-color: rgba(0,0,0,0.12);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.process-step:nth-child(odd) .process-step-card {
    transform: translateY(24px) translateX(-30px);
}

.process-step:nth-child(even) .process-step-card {
    transform: translateY(24px) translateX(30px);
}

.process-step.visible .process-step-card {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* Badge étape */
.process-step-number-badge {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--accent-light);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 1.25rem;
    color: #111111;
    margin-bottom: 10px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.5);
}

/* Light – badge + lisible */
body.light-theme .process-step-number-badge {
    background: #C49FFF;
    color: #f5f5f5;
}

.process-step-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: #ffffff;
}

body.light-theme .process-step-title {
    color: #111111;
}

.process-step-text {
    font-size: 0.95rem;
    color: #d7d7dc;
    line-height: 1.6;
}

body.light-theme .process-step-text {
    color: #555555;
}

.process-step-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.25);
    box-shadow: 0 26px 55px rgba(0,0,0,0.95);
}

body.light-theme .process-step-card:hover {
    background: #ffffff;
    border-color: rgba(0,0,0,0.18);
    box-shadow: 0 18px 45px rgba(0,0,0,0.14);
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
    background: var(--secondary);
    text-align: center;
}

body.light-theme .contact {
    background: #f7f7f7;
}

.contact-form {
    max-width: 900px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px 30px;
}

.contact-form .form-alert,
.contact-form .full-width,
.contact-form button[type="submit"] {
    grid-column: 1 / -1;
}

.contact-form .form-group {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .contact-form {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.contact-form.visible {
    opacity: 1;
    transform: translateY(0);
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-control {
    width: 100%;
    padding: 18px 25px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: var(--text);
    font-size: 1rem;
    transition: var(--transition);
}

body.light-theme .form-control {
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.12);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

body.light-theme .form-control:focus {
    background: #ffffff;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-alert {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    display: none;
}

/* Monochrome */
.form-alert.success {
    display: block;
    background: rgba(255,255,255,0.06);
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.22);
}

body.light-theme .form-alert.success {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.08);
}

.form-alert.error {
    display: block;
    background: rgba(255,255,255,0.03);
    color: var(--text-light);
    border: 1px solid rgba(255,255,255,0.2);
}

body.light-theme .form-alert.error {
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.08);
}

.field-error {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--accent-light);
    min-height: 1em;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 30px;
    margin-bottom: 25px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

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

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
    background: var(--primary);
    padding: 80px 0 40px;
    text-align: center;
}

.footer-content {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 40px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

/* Social global (footer) */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards 0.9s;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-size: 1.2rem;
    transition: var(--transition);
}

/* Light – bulles plus lisibles */
body.light-theme .social-links a {
    background: rgba(0,0,0,0.06);
    color: #111111;
}

.social-links a:hover {
    background: var(--accent-light);
    color: #111111;
    transform: translateY(-5px);
}

/* Icônes premium */
.social-links a i {
    color: #C49FFF;
    font-size: 1.4rem;
    transition:
        color 0.3s ease,
        transform 0.3s ease,
        text-shadow 0.3s ease;
}

.social-links a:hover i {
    color: #ffffff;
    transform: translateY(-2px) scale(1.05);
    text-shadow: 0 0 8px rgba(196, 159, 255, 0.6);
}

body.light-theme .social-links a:hover {
    background: #111111;
    color: #f5f5f5;
}

.copyright {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 40px;
}

/* Mentions légales popup */
.legal-wrapper {
    position: relative;
    display: inline-block;
    margin-top: 20px;
}

.legal-link {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color 0.25s ease;
}

.legal-link:hover,
.legal-wrapper:focus-within .legal-link {
    color: var(--accent);
}

.legal-popup {
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: min(680px, 95vw);
    background: rgba(10, 10, 10, 0.98);
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85);
    color: #f4f4f4;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.35s ease,
        transform 0.35s cubic-bezier(0.22, 1.4, 0.36, 1),
        visibility 0.35s ease;
    z-index: 50;
}

.legal-wrapper:hover .legal-popup,
.legal-wrapper:focus-within .legal-popup {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.legal-popup::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: rgba(10, 10, 10, 0.98) transparent transparent transparent;
}

.legal-popup-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 26px;
}

.legal-col-title {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 8px;
}

.legal-text-block {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #dddddd;
}

.legal-text-block strong {
    font-weight: 600;
}

/* =========================================================
   BOUTON "LOAD MORE"
   ========================================================= */
.portfolio-load-more-wrapper {
    text-align: center;
    margin-top: 40px;
}

.portfolio-load-more {
    border: none;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 999px;
    background: var(--accent-light);
    color: #111111;
    transition: var(--transition);
}

.portfolio-load-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
    background: var(--accent);
}

/* Light – CTA bien franc */
body.light-theme .portfolio-load-more {
    background: #111111;
    color: #f5f5f5;
}

body.light-theme .portfolio-load-more:hover {
    background: #000000;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes modalInSpring {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(60px);
    }
    60% {
        opacity: 1;
        transform: scale(1.05) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalOutSpring {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    30% {
        opacity: 1;
        transform: scale(1.02) translateY(-8px);
    }
    100% {
        opacity: 0;
        transform: scale(0.9) translateY(90px);
    }
}

.video-modal.active .video-modal-content {
    animation: modalInSpring 0.65s cubic-bezier(0.22, 1.4, 0.36, 1) forwards;
}

.video-modal.closing .video-modal-content {
    animation: modalOutSpring 0.55s cubic-bezier(0.22, 1.4, 0.36, 1) forwards;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
    .process-wrapper {
        margin-top: 30px;
    }

    .process-line {
        display: none;
    }

    .process-grid {
        flex-direction: row;
        overflow-x: auto;
        gap: 18px;
        padding-bottom: 10px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .process-grid::-webkit-scrollbar {
        display: none;
    }

    .process-step {
        flex: 0 0 auto;
        width: 80%;
        justify-content: flex-start !important;
    }

    .process-step-card {
        max-width: 100%;
        min-width: 100%;
        scroll-snap-align: center;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: var(--transition);
        backdrop-filter: blur(10px);
    }

    body.light-theme .nav-links {
        background: rgba(245, 245, 245, 0.98);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 10px 20px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .container {
        padding: 0 20px;
    }

    .hero-content {
        padding: 0 15px;
        width: 100%;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
        line-height: 1.4;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        padding: 14px 25px;
        font-size: 0.95rem;
    }

    .scroll-indicator {
        bottom: 20px;
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .portfolio-filters {
        gap: 10px;
        margin-bottom: 40px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .video-modal-content {
        width: 100%;
        margin: 0 10px;
    }

    .legal-popup-inner {
        grid-template-columns: 1fr;
    }

    .legal-popup {
        bottom: 150%;
        padding: 18px 16px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 12px 15px;
    }

    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-content {
        margin-top: 0;
    }

    .video-meta {
        padding: 18px 16px 20px;
    }
}

@media (max-width: 320px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        padding-top: 60px;
    }

    .hero-content {
        padding-top: 40px;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .hero-btns {
        flex-direction: row;
        gap: 10px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* petits ajustements */
.privacy-popup .legal-text-block {
    font-size: 0.85rem;
}

.legal-inline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.legal-separator {
    color: var(--text-light);
    font-size: 0.9rem;
    user-select: none;
}

.services-grid {
    display: grid;
    justify-items: center !important;
    align-items: start;
}

.service-card {
    display: flex !important;
    flex-direction: column;
    align-items: center !important;
    text-align: center !important;
}

.service-title,
.service-text {
    text-align: center !important;
    width: 100%;
}

/* =========================================================
   BOUTON LIGHT / DARK
   ========================================================= */
#themeToggle {
    position: fixed;
    right: 24px;
    bottom: 24px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(0,0,0,0.6);
    color: #f5f5f5;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    z-index: 1500;
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

body.light-theme #themeToggle {
    background: rgba(255,255,255,0.9);
    color: #111111;
    border-color: rgba(0,0,0,0.15);
}

#themeToggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

/* liens violets réutilisables */
.link-purple {
    color: #C49FFF !important;
    text-decoration: none;
    font-weight: 500;
    transition: color .3s ease;
}

.link-purple:hover {
    color: #e3c7ff !important;
}

/* ============================
   Bannière cookies
   ============================ */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(8, 8, 8, 0.96);
    color: #f5f5f5;
    padding: 16px;
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    font-size: 0.9rem;
}

.cookie-banner.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.cookie-text p {
    margin: 0 0 4px 0;
}

.cookie-link {
    color: #c49fff;
    text-decoration: underline;
    font-size: 0.85rem;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cookie-btn {
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease, background 0.2s ease;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: #c49fff;
    color: #050505;
}

.cookie-btn-primary:hover {
    transform: translateY(-1px);
}

.cookie-btn-secondary {
    background: transparent;
    color: #f5f5f5;
    border: 1px solid #555;
}

.cookie-btn-secondary:hover {
    background: #1b1b1b;
}

/* Mobile */
@media (max-width: 600px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}




/* ============================
   SECTION EN ACTION – TITRE + CARROUSEL
   ============================ */

.section-action {
    padding: var(--section-padding, 100px 0);
}

/* Titre centré dans le container */
.section-action .section-header {
    text-align: center;
    margin-bottom: 0px;
}

.section-action .section-title {
    width: 100%;
    text-align: center;
    margin: 0 auto;
}

/* ⚠ C'est ICI qu'on force le full-width du carrousel */
.action-carousel-outer {
    width: 100vw;                         /* largeur viewport */
    margin-left: calc(50% - 50vw);        /* on sort du flux centré */
    margin-top: 10px;
    overflow: hidden;
}

/* Zone visible */
.action-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* La piste : plus d'animation CSS, c'est le JS qui bouge tout */
.action-track {
    display: flex;
    align-items: stretch;
    width: max-content;
    will-change: transform;
}

/* 1 image par viewport mobile */
.action-item {
    flex: 0 0 100vw;
}

/* 2 images visibles sur desktop */
@media (min-width: 992px) {
    .action-item {
        flex: 0 0 50vw;
    }
}

/* Ratio 4/3 */
.action-image-ratio {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.action-image-ratio img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Légende */
.action-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 4px 8px;
    font-size: 0.85rem;
    line-height: 8.2;
    text-align: center;
    color: var(--text, #f5f5f5);
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85),
        rgba(0, 0, 0, 0.0)
    );
    pointer-events: none;
}

@media (max-width: 768px) {
    .action-caption {
        font-size: 0.6rem;
    }
}

