/* ============================================
   ARTPULSION - Proposition 2
   Style Minimaliste Éditorial
   Inspiré de 5-5.paris
   ============================================ */

/* --- Variables --- */
:root {
    /* Nouvelle palette 5-5.paris */
    --color-primary: #fff58c;         /* Jaune pâle (accent) */
    --color-primary-dark: #f5e97a;    /* Jaune plus foncé */
    --color-black: #000000;           /* Noir pur */
    --color-white: #ffffff;           /* Blanc pur */
    --color-gray: #666666;            /* Textes secondaires */
    --color-gray-light: #f5f5f5;      /* Fond léger */
    --color-border: #000000;          /* Bordures */
    --color-bg: #ffffff;              /* Fond principal */

    /* Typographie */
    --font-main: 'Open Sans', sans-serif;

    /* Espacement */
    --section-padding-ratio: 0.3;   /* 30% de la hauteur du contenu */
    --border-width: 1px;
    --gap: 0;

    /* A11y Toolkit overrides (coins carrés Artpulsion) */
    --a11y-tk-accent: #fff58c;
    --a11y-tk-radius: 0;
    --a11y-tk-btn-radius: 0;

    /* Transitions */
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Breakpoints */
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
}

/* --- Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-black);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img, video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   HEADER - Style Transparent avec Blur
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem 0 0;
    background: var(--color-white);
    border: 1px solid var(--color-black);
    border-top: none;
    transition: all var(--transition), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header caché au départ (au-dessus de l'écran) */
.header--hidden {
    transform: translateY(-100%);
}

/* Header visible (descend comme un volet) */
.header--visible {
    transform: translateY(0);
}

.header.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header__logo {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
}

.header__logo .logo-img {
    height: 45px;
    width: auto;
    /* Logo noir */
    transition: all var(--transition);
}

.header__nav {
    display: none;
    gap: 2.5rem;
    align-items: center;
    padding: 1rem 2rem;
}

@media (min-width: 768px) {
    .header__nav {
        display: flex;
        flex: 1;
        justify-content: center;
    }
}

.header__link {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-black);
    position: relative;
    display: flex;
    align-items: center;
    transition: all var(--transition);
}

.header__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-black);
    transition: width var(--transition);
}

.header__link:hover::after {
    width: 100%;
}

.header__link--cta {
    padding: 0.6rem 1.2rem;
    background: var(--color-primary);
    border: none;
    color: var(--color-black);
}

.header__link--cta::after {
    display: none;
}

.header__link--cta:hover {
    background: var(--color-primary-dark);
}

.header__groupe {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.header__menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem 1.5rem;
    position: relative;
    z-index: 101;
}

@media (min-width: 768px) {
    .header__menu {
        display: none;
    }
}

.header__menu span {
    width: 24px;
    height: 2px;
    background: var(--color-black);
    transition: var(--transition);
}

.header__menu.active span:first-child {
    transform: translateY(8px) rotate(45deg);
}

.header__menu.active span:nth-child(2) {
    opacity: 0;
}

.header__menu.active span:last-child {
    transform: translateY(-8px) rotate(-45deg);
}

/* Logo in mobile nav (hidden in desktop) */
.header__nav-logo {
    display: none;
}

/* Menu mobile — animations */
@keyframes menuSlideDown {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}

@keyframes menuSlideUp {
    from { transform: translateY(0); }
    to   { transform: translateY(-100%); }
}

/* Menu mobile */
.header__nav.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    padding-top: 100px;
    gap: 2rem;
    justify-content: flex-start;
    align-items: center;
    z-index: 99;
    animation: menuSlideDown 0.4s ease-out forwards;
}

.header__nav.closing {
    animation: menuSlideUp 0.3s ease-in forwards;
}

.header__nav.active .header__nav-logo {
    display: block;
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
}

.header__nav.active .header__link {
    color: var(--color-black);
    font-size: 1.12rem;
    padding: 0.4rem 0;
}

.header__nav.active .header__link--cta {
    padding: 0.6rem 2rem;
}

/* ============================================
   HERO - Intro animée puis vidéo (effet parallax)
   ============================================ */
.hero {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-black);
    z-index: 1;
}

/* Spacer pour compenser le hero fixed */
.hero-spacer {
    height: 100vh;
    min-height: 600px;
}

/* Overlay d'intro jaune - seul le fond disparaît */
.hero__intro {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    animation: introBackgroundFade 3s ease-in-out forwards;
    pointer-events: none;
}

@keyframes introBackgroundFade {
    0% {
        background: var(--color-primary);
    }
    50% {
        background: var(--color-primary);
    }
    100% {
        background: transparent;
    }
}

/* Halo blanc doux derrière le logo - pulse rapide */
.hero__glow {
    position: absolute;
    top: calc(50% - 50px);
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    animation: glowBounce 0.6s ease-out forwards;
    pointer-events: none;
}

@keyframes glowBounce {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    30% { transform: translate(-50%, -50%) scale(2.5); opacity: 0.9; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
}

/* Cercles de pulsation */
.hero__pulse {
    position: absolute;
    top: calc(50% - 50px);
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    pointer-events: none;
    animation: hidePulse 0.5s ease-out 2.5s forwards;
}

@keyframes hidePulse {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.hero__pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 100px;
    height: 100px;
    border: 4px solid rgba(255, 255, 255, 1);
    border-radius: 50%;
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.hero__intro-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    pointer-events: none;
}

.hero__intro-logo {
    width: clamp(200px, 40vw, 400px);
    height: auto;
    margin-bottom: 2rem;
    transition: filter 0.5s ease-out;
    animation: logoBounce 3s ease-out forwards;
}

/* Logo passe en blanc à la fin */
.hero__intro-content.white .hero__intro-logo {
    filter: brightness(0) invert(1);
}

.hero__intro-tagline {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
    color: var(--color-black);
    transition: color 0.5s ease-out;
    /* Cachée au départ, apparaît avec animation */
    opacity: 0;
    transform: translateY(1rem);
    animation: taglineReveal 1s ease-out 2s forwards;
}

.hero__intro-tagline--highlight {
    color: inherit;
    transition: color 0.5s ease-out;
}

.hero__intro-content.white .hero__intro-tagline--highlight {
    color: var(--color-primary);
}

@keyframes taglineReveal {
    0% {
        opacity: 0;
        transform: translateY(1rem);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tagline passe en blanc */
.hero__intro-content.white .hero__intro-tagline {
    color: var(--color-white);
    margin-top: 1rem;
    text-align: center;
    line-height: 1.4;
}

/* Animation rebond du logo - un bond vif puis dézoom lent */
@keyframes logoBounce {
    0% { transform: scale(1); }
    10% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

/* Animation rebond de l'accroche - légèrement décalée */
@keyframes taglineBounce {
    0% { transform: scale(1); }
    10% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* Animation du fond jaune - supprimée car redéfinie plus haut */

/* Vidéo en arrière-plan - visible dès le début, révélée par le fade du jaune */
.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}

/* Bouton Découvrir */
.hero__scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-white);
    text-decoration: none;
    cursor: pointer;
    opacity: 0;
    animation: fadeInDelayed 1s ease-out 3s forwards;
    z-index: 5;
}

@keyframes fadeInDelayed {
    to {
        opacity: 0.8;
    }
}

.hero__scroll-line {
    width: 1px;
    height: 50px;
    background: var(--color-white);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
}

/* ============================================
   PATCHWORK - Grille Masonry style 5-5.paris
   ============================================ */
.patchwork {
    position: relative;
    z-index: 10;
    background: var(--color-primary);
}

.patchwork__grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 65vw; /* Hauteur basée sur viewport mobile */
    grid-auto-flow: dense;
    gap: 8px;
    padding: 8px;
}

@media (min-width: 600px) {
    .patchwork__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 40vw;
        gap: 10px;
        padding: 10px;
    }
}

@media (min-width: 1024px) {
    .patchwork__grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 22vw; /* Hauteur proportionnelle au viewport */
        gap: 12px;
        padding: 12px;
    }
}

@media (min-width: 1400px) {
    .patchwork__grid {
        grid-auto-rows: 20vw;
    }
}

.patchwork__item {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    background: var(--color-white);
    cursor: pointer;
}

/* Variantes de taille - Masonry asymétrique */
/* Large : 2 colonnes × 1 ligne */
.patchwork__item--large {
    grid-column: span 1;
}

@media (min-width: 600px) {
    .patchwork__item--large {
        grid-column: span 2;
    }
}

/* Tall : 1 colonne × 2 lignes */
.patchwork__item--tall {
    grid-row: span 2;
}

/* Big : 2 colonnes × 2 lignes (hero block) */
.patchwork__item--big {
    grid-column: span 1;
    grid-row: span 2;
}

@media (min-width: 600px) {
    .patchwork__item--big {
        grid-column: span 2;
        grid-row: span 2;
    }
}

/* Blocs avec image */
.patchwork__item--image {
    background: var(--color-gray-light);
}


.patchwork__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
}

.patchwork__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.6s ease 0.3s; /* Délai pour apparaître après l'image */
}

.patchwork__item--image .patchwork__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    align-items: flex-start;
    color: var(--color-white);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease 0.4s, transform 0.5s ease 0.4s;
}

/* === ÉTAT CHARGÉ === */
.patchwork__item--image.loaded .patchwork__overlay {
    opacity: 1;
}

.patchwork__item--image.loaded .patchwork__content {
    opacity: 1;
    transform: translateY(0);
}

/* Hover : léger zoom */
.patchwork__item--image.loaded:hover .patchwork__media {
    transform: scale(1.05);
}

.patchwork__item--image:hover .patchwork__overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 100%);
}

/* Blocs texte (liens pages internes) */
.patchwork__item--text {
    text-align: center;
}

.patchwork__item--primary {
    background: var(--color-primary);
    color: var(--color-black);
}

.patchwork__item--primary:hover {
    background: var(--color-primary-dark);
}

.patchwork__item--white {
    background: var(--color-white);
    color: var(--color-black);
}

.patchwork__item--white:hover {
    background: var(--color-gray-light);
}

/* Contenu des blocs */
.patchwork__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.patchwork__item--text .patchwork__content {
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 0.75rem;
}

.patchwork__tag {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.6rem;
    background: var(--color-primary);
    color: var(--color-black);
    margin-bottom: 0.5rem;
}

/* Tag News - Fond jaune, texte noir */
.patchwork__tag--news {
    background: var(--color-primary);
    color: var(--color-black);
}

/* Tag Coulisses - Fond noir, texte blanc */
.patchwork__tag--coulisses {
    background: var(--color-black);
    color: var(--color-white);
}

.patchwork__number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1;
}

.patchwork__icon {
    margin-bottom: 0.5rem;
}

.patchwork__icon svg {
    width: 40px;
    height: 40px;
}

@media (min-width: 768px) {
    .patchwork__icon svg {
        width: 48px;
        height: 48px;
    }
}

.patchwork__title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .patchwork__title {
        font-size: 1.1rem;
    }
}

.patchwork__subtitle {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
    margin-top: 0.25rem;
}

.patchwork__cta {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
    padding-bottom: 2px;
    border-bottom: 1px solid currentColor;
    opacity: 0.8;
    transition: var(--transition);
}

.patchwork__item:hover .patchwork__cta {
    opacity: 1;
}

/* ============================================
   ATELIER - Grille de 4 Cases
   ============================================ */
.atelier {
    border: var(--border-width) solid var(--color-black);
    border-top: none;
    background: var(--color-white);
    padding: 3rem 15%;
}

.atelier__header {
    text-align: center;
    padding: 0 2rem;
    border-bottom: var(--border-width) solid var(--color-black);
}

.atelier__title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.atelier__subtitle {
    font-size: 1rem;
    color: var(--color-gray);
    max-width: 500px;
    margin: 0 auto 2rem;
}

.atelier__grid {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .atelier__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .atelier__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.atelier__step {
    position: relative;
    text-align: center;
    padding: 6.5rem 2rem;
    border-left: var(--border-width) solid var(--color-black);
    border-right: var(--border-width) solid var(--color-black);
    border-bottom: var(--border-width) solid var(--color-black);
    background: var(--color-white);
    min-width: 0; /* Permet au grid item de shrink sous min-content */
    /* Pas d'overflow hidden pour laisser les flèches déborder */
}

/* Mobile : blocs plus compacts (pas de hover) */
@media (max-width: 767px) {
    .atelier__step {
        padding: 4rem 1.5rem;
    }
}

/* Desktop : fond transparent pour laisser voir l'image panoramique */
@media (min-width: 1024px) {
    .atelier__step {
        background: transparent;
        border-left: none; /* Géré par ::before au reveal */
    }
}

/* Z-index décroissant : les flèches d'un bloc restent au-dessus du bloc suivant */
.atelier__step:nth-child(1) { z-index: 4; }
.atelier__step:nth-child(2) { z-index: 3; }
.atelier__step:nth-child(3) { z-index: 2; }
.atelier__step:nth-child(4) { z-index: 1; }

/* Overlay blanc (::before) — couvre l'image panoramique */
.atelier__step::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-primary);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    will-change: opacity;
}
.atelier__step.revealed::before {
    opacity: 1;
}
@media (hover: hover) {
    .atelier__step.revealed:hover::before {
        opacity: 0;
    }
}

/* Contenu texte au-dessus de l'overlay */
.atelier__step-content {
    position: relative;
    z-index: 3;
    transition: color 0.5s ease, opacity 0.5s ease;
}

/* Desktop : texte masqué au départ, visible uniquement après revealed */
@media (min-width: 1024px) {
    .atelier__step-content {
        opacity: 0;
    }
    .atelier__step.revealed .atelier__step-content {
        opacity: 1;
    }
}

/* Texte blanc au hover (image visible en dessous) — desktop uniquement */
@media (hover: hover) {
    .atelier__step.revealed:hover .atelier__step-title,
    .atelier__step.revealed:hover .atelier__step-text {
        color: white;
    }
    .atelier__step.revealed:hover .atelier__number {
        color: white;
    }
}

/* ---- DEMI-CERCLE PUZZLE entre les blocs ----
   Porté par le bloc de gauche (z-index plus haut),
   dépasse sur le bloc de droite. Effet pièce de puzzle.
*/
.atelier__step:not(:last-child)::after {
    content: '';
    position: absolute;
    z-index: 20;
    background-color: var(--color-primary);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.atelier__step.revealed::after {
    opacity: 1;
}

/* Mobile (1 col) : demi-cercle en bas, chevron vers le bas */
.atelier__step:not(:last-child)::after {
    width: 44px;
    height: 24px;
    bottom: -24px;
    left: calc(50% - 22px);
    border: 0.5px solid var(--color-black);
    border-top: none;
    border-radius: 0 0 22px 22px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-position: center 4px;
}

@media (min-width: 768px) {
    .atelier__step:nth-child(2n) {
        border-right: none;
    }

    /* Tablette 2 cols : demi-cercle à droite, chevron droite */
    .atelier__step:not(:last-child)::after {
        width: 24px;
        height: 44px;
        bottom: auto;
        left: auto;
        right: -24px;
        top: calc(50% - 22px);
        border: 0.5px solid var(--color-black);
        border-left: none;
        border-radius: 0 22px 22px 0;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
        background-position: 1px center;
    }

    /* Étape 2 : passage à la ligne, demi-cercle en bas */
    .atelier__step:nth-child(2)::after {
        width: 44px;
        height: 24px;
        right: auto;
        top: auto;
        bottom: -24px;
        left: calc(50% - 22px);
        border: 0.5px solid var(--color-black);
        border-top: none;
        border-radius: 0 0 22px 22px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
        background-position: center 4px;
    }
}

@media (min-width: 1024px) {
    .atelier__step:first-child {
        border-left: var(--border-width) solid var(--color-black);
    }
    .atelier__step:nth-child(2n) {
        border-right: var(--border-width) solid var(--color-black);
    }

    /* Desktop 4 cols : tous en demi-cercle à droite */
    .atelier__step:not(:last-child)::after {
        width: 25px;
        height: 44px;
        bottom: auto;
        left: auto;
        right: -24px;
        top: calc(50% - 22px);
        border: 0.5px solid var(--color-black);
        border-left: none;
        border-radius: 0 22px 22px 0;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
        background-position: 1px center;
    }

    /* Reset étape 2 pour desktop */
    .atelier__step:nth-child(2)::after {
        width: 25px;
        height: 44px;
        bottom: auto;
        left: auto;
        right: -24px;
        top: calc(50% - 22px);
        border: 0.5px solid var(--color-black);
        border-left: none;
        border-radius: 0 22px 22px 0;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
        background-position: 1px center;
    }

    /* État initial desktop : bump visible en contour blanc (outline puzzle) */
    .atelier__step:not(:last-child)::after {
        opacity: 1;
        background-color: transparent;
        background-image: none;
        border-color: white;
        transition: opacity 0.5s ease, background-color 0.5s ease, border-color 0.5s ease;
    }

    /* Revealed : bump rempli jaune avec bordure noire et chevron */
    .atelier__step.revealed:not(:last-child)::after {
        background-color: var(--color-primary);
        border-color: var(--color-black);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
        background-position: 1px center;
        background-size: 18px;
    }

    /* Hover : bump transparent avec chevron blanc */
    .atelier__step.revealed:hover:not(:last-child)::after {
        background-color: transparent;
        border-color: rgba(255, 255, 255, 0.6);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
        background-position: 1px center;
        background-size: 18px;
    }
}

/* ---- DÉSACTIVER LE HOVER (page Agence) ---- */
.atelier--no-hover .atelier__step.revealed:hover::before {
    opacity: 1;
    background: var(--color-primary);
    border-right-color: var(--color-black);
    border-left-color: var(--color-black);
}

.atelier--no-hover .atelier__step.revealed:hover .atelier__step-title,
.atelier--no-hover .atelier__step.revealed:hover .atelier__step-text,
.atelier--no-hover .atelier__step.revealed:hover .atelier__number {
    color: inherit;
}

.atelier--no-hover .atelier__step.revealed:hover:not(:last-child)::after {
    background-color: var(--color-primary);
    border-color: var(--color-black);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
}

/* ---- ANIMATION ----
   Toutes les steps fade-up ensemble, puis le blanc apparaît séquentiellement via .revealed (JS)
*/

.atelier__step[data-animation="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.atelier__step[data-animation="fade-up"].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Desktop : toutes apparaissent en même temps (pas de stagger) */
@media (min-width: 1024px) {
    .atelier__step:nth-child(1),
    .atelier__step:nth-child(2),
    .atelier__step:nth-child(3),
    .atelier__step:nth-child(4) {
        transition-delay: 0s;
    }
}

.atelier__number {
    display: block;
    font-size: 5rem;
    font-weight: 800;
    color: var(--color-black);
    margin-bottom: 1rem;
    transition: color 0.5s ease;
}

.atelier__step-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    transition: color 0.5s ease;
    overflow-wrap: break-word;
}

.atelier__step-text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--color-gray);
    transition: color 0.5s ease;
}

/* ---- NOTCH (encoche gauche) via mask-image sur le ::before uniquement ----
   Appliqué au ::before (overlay blanc) et non au step lui-même,
   pour ne pas couper le bump (::after) qui dépasse à droite.
   Desktop uniquement.
---- */
@media (min-width: 1024px) {
    .atelier__step--middle::before,
    .atelier__step--last::before {
        mask-image: radial-gradient(
            circle 22px at 0% 50%,
            transparent 21px,
            black 22px
        );
        -webkit-mask-image: radial-gradient(
            circle 22px at 0% 50%,
            transparent 21px,
            black 22px
        );
    }
}

/* ---- IMAGE PANORAMIQUE au niveau du grid (desktop uniquement) ---- */
@media (min-width: 1024px) {
    .atelier__grid {
        position: relative;
        background: url('../images/methode-panoramique.jpg') center/cover no-repeat;
    }
}

/* ---- BORDURES — filet vertical simple ---- */
@media (min-width: 1024px) {
    /* Pas de bordure avant le reveal (image panoramique visible) */
    .atelier__step:not(:last-child) {
        border-right: none;
    }

    /* Revealed : bordures noires sur ::before.
       Le bump (::after z-index:20, fond blanc) couvre
       naturellement la bordure dans la zone du demi-cercle. */
    .atelier__step.revealed:not(:last-child)::before {
        border-right: 1px solid var(--color-black);
    }

    .atelier__step.revealed::before {
        border-left: 1px solid var(--color-black);
    }

    /* Hover : voile sombre, bordures transparentes */
    .atelier__step.revealed:hover::before {
        opacity: 1;
        background: rgba(0, 0, 0, 0.25);
        border-right-color: transparent;
        border-left-color: transparent;
    }
}

/* ============================================
   EXPERTISE - 3 Cases
   ============================================ */
.expertise {
    display: grid;
    grid-template-columns: 1fr;
    border: var(--border-width) solid var(--color-black);
    border-top: none;
}

@media (min-width: 768px) {
    .expertise {
        grid-template-columns: repeat(3, 1fr);
    }
}

.expertise__item {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    cursor: pointer;
    border-right: var(--border-width) solid var(--color-black);
    border-bottom: var(--border-width) solid var(--color-black);
}

@media (min-width: 768px) {
    .expertise__item {
        aspect-ratio: 2/3;
        border-bottom: none;
    }
    .expertise__item:last-child {
        border-right: none;
    }
}

.expertise__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
}

.expertise__item:hover .expertise__media {
    transform: scale(1.05);
}

.expertise__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    transition: var(--transition);
}

.expertise__item:hover .expertise__overlay {
    background: linear-gradient(to top, rgba(255,245,140,0.9) 0%, rgba(0,0,0,0.2) 100%);
}

.expertise__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    z-index: 2;
    color: var(--color-white);
}

.expertise__item:hover .expertise__content {
    color: var(--color-black);
}

.expertise__number {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.expertise__title {
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.expertise__text {
    font-size: 0.8rem;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.expertise__item:hover .expertise__text {
    opacity: 0.9;
    transform: translateY(0);
}

/* ============================================
   STATS - Bandeau Noir / Texte Jaune
   ============================================ */
.stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background: var(--color-primary);
    border: var(--border-width) solid var(--color-black);
    border-top: none;
}

.stats__item {
    flex: 1;
    min-width: 150px;
    text-align: center;
    padding: 3rem 2rem;
    border-right: 1px solid var(--color-black);
}

.stats__item:last-child {
    border-right: none;
}

@media (max-width: 767px) {
    .stats__item {
        flex: 1 1 50%;
        border-bottom: 1px solid var(--color-black);
    }
    .stats__item:nth-child(2n) {
        border-right: none;
    }
    .stats__item:nth-last-child(-n+2) {
        border-bottom: none;
    }
}

.stats__number {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: var(--color-black);
    line-height: 1;
}

.stats__suffix {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    color: var(--color-black);
}

.stats__label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-black);
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* ============================================
   CLIENTS - Logos
   ============================================ */
.clients {
    background: var(--color-white);
    border: var(--border-width) solid var(--color-black);
    border-top: none;
}

.clients__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .clients__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.clients__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--color-white);
    border-right: var(--border-width) solid var(--color-black);
    border-bottom: var(--border-width) solid var(--color-black);
    opacity: 0.6;
    transition: var(--transition);
}

.clients__logo:hover {
    opacity: 1;
    background: var(--color-gray-light);
}

/* Ajuster bordures */
.clients__logo:nth-child(2n) {
    border-right: none;
}

@media (min-width: 768px) {
    .clients__logo:nth-child(2n) {
        border-right: var(--border-width) solid var(--color-black);
    }
    .clients__logo:nth-child(4n) {
        border-right: none;
    }
    /* Dernière ligne sans bordure bottom */
    .clients__logo:nth-last-child(-n+4) {
        border-bottom: none;
    }
}

.clients__logo svg {
    width: 100%;
    max-width: 120px;
    height: 40px;
}

/* ============================================
   CTA - Section Contact
   ============================================ */
.cta {
    position: relative;
    height: 50vh;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: var(--border-width) solid var(--color-black);
    border-top: none;
}

.cta__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta__overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 245, 140, 0.7);
}

.cta__content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta__title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-black);
    margin-bottom: 2rem;
}

.cta__btn {
    display: inline-block;
    padding: 1rem 3rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-black);
    background: var(--color-white);
    border: var(--border-width) solid var(--color-black);
    transition: var(--transition);
}

.cta__btn:hover {
    background: var(--color-black);
    color: var(--color-white);
}

/* ============================================
   FOOTER - Style Minimaliste
   ============================================ */
.footer {
    position: relative;
    z-index: 10;
    background: var(--color-black);
    color: var(--color-white);
    border: var(--border-width) solid var(--color-black);
    border-top: none;
}

.footer__container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer__main {
    display: grid;
    grid-template-columns: 1fr;
    border-bottom: var(--border-width) solid rgba(255,255,255,0.2);
}

@media (min-width: 768px) {
    .footer__main {
        grid-template-columns: auto auto 1fr;
    }
}

.footer__brand,
.footer__contact,
.footer__nav {
    padding: 3rem;
    border-bottom: var(--border-width) solid rgba(255,255,255,0.2);
}

@media (min-width: 768px) {
    .footer__brand,
    .footer__contact,
    .footer__nav {
        border-bottom: none;
    }
    .footer__brand,
    .footer__contact {
        border-right: var(--border-width) solid rgba(255,255,255,0.2);
    }
}

.footer__logo-img {
    height: 55px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

.footer__tagline {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 1.5rem;
    white-space: nowrap;
}

.footer__social {
    display: flex;
    gap: 0.75rem;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: var(--border-width) solid rgba(255,255,255,0.3);
    transition: var(--transition);
}

.footer__social-link:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-black);
}

.footer__nav-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.footer__nav-list {
    list-style: none;
}

.footer__nav-list li {
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .footer__nav-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem 1.5rem;
    }
    .footer__nav-list li {
        margin-bottom: 0;
    }
}

.footer__nav-list a {
    font-size: 0.85rem;
    opacity: 0.7;
    transition: var(--transition);
    position: relative;
}

.footer__nav-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-primary);
    transition: width var(--transition);
}

.footer__nav-list a:hover {
    opacity: 1;
}

.footer__nav-list a:hover::after {
    width: 100%;
}

.footer__address {
    font-style: normal;
    font-size: 0.85rem;
    line-height: 1.8;
    opacity: 0.7;
}

.footer__address a {
    transition: var(--transition);
}

.footer__address a:hover {
    color: var(--color-primary);
}

.footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 3rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer__copyright {
    font-size: 0.75rem;
    opacity: 0.5;
}

.footer__legal {
    display: flex;
    gap: 1.5rem;
}

.footer__legal a {
    font-size: 0.75rem;
    opacity: 0.5;
    transition: var(--transition);
}

.footer__legal a:hover {
    opacity: 1;
    color: var(--color-primary);
}

.footer__credit {
    font-size: 0.75rem;
    opacity: 0.5;
}

.footer__credit a {
    transition: var(--transition);
}

.footer__credit a:hover {
    opacity: 1;
    color: var(--color-primary);
}

/* ============================================
   IMAGE LOADER - Point rebondissant + pourcentage
   ============================================ */
.img-loader {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: var(--color-gray-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: opacity 0.4s ease;
}

.img-loader__dot {
    width: 10px;
    height: 10px;
    background: var(--color-black);
    border-radius: 50%;
    animation: loaderBounce 0.6s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes loaderBounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-12px); }
}

.img-loader__percent {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-black);
    letter-spacing: 0.05em;
}

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

/* ============================================
   IMAGE REVEAL - Arc de cercle (clip-path)
   ============================================ */
.img-reveal {
    clip-path: circle(0% at var(--reveal-x, 50%) var(--reveal-y, 50%));
    transition: clip-path 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.img-reveal--visible {
    clip-path: circle(150% at var(--reveal-x, 50%) var(--reveal-y, 50%));
}

/* ============================================
   EXPERTISE - États loaded (masqués avant chargement)
   ============================================ */
.expertise__item .expertise__overlay {
    transition: opacity 0.6s ease 0.3s, background 0.3s ease;
    opacity: 0;
}

.expertise__item.loaded .expertise__overlay {
    opacity: 1;
}

.expertise__item .expertise__content {
    transition: opacity 0.5s ease 0.4s;
    opacity: 0;
}

.expertise__item.loaded .expertise__content {
    opacity: 1;
}

/* ============================================
   ANIMATIONS - Subtiles et Sobres
   ============================================ */
[data-animation="reveal"] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-animation="reveal"].visible {
    opacity: 1;
    transform: translateY(0);
}

[data-animation="fade"] {
    opacity: 0;
    transition: opacity 0.5s ease;
}

[data-animation="fade"].visible {
    opacity: 1;
}

[data-animation="fade-up"] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

[data-animation="fade-up"].visible {
    opacity: 1;
    transform: translateY(0);
}

[data-animation="scale-in"] {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

[data-animation="scale-in"].visible {
    opacity: 1;
    transform: scale(1);
}

[data-animation="fade-in"] {
    opacity: 0;
    transition: opacity 0.4s ease;
}

[data-animation="fade-in"].visible {
    opacity: 1;
}

/* Stagger delays - réduits pour meilleure fluidité */
[data-animation]:nth-child(1) { transition-delay: 0ms; }
[data-animation]:nth-child(2) { transition-delay: 30ms; }
[data-animation]:nth-child(3) { transition-delay: 60ms; }
[data-animation]:nth-child(4) { transition-delay: 90ms; }
[data-animation]:nth-child(5) { transition-delay: 120ms; }
[data-animation]:nth-child(6) { transition-delay: 150ms; }
[data-animation]:nth-child(7) { transition-delay: 180ms; }
[data-animation]:nth-child(8) { transition-delay: 210ms; }

/* ============================================
   CTA STICKY BAR (identique Galis, coins droits)
   ============================================ */

/* Bouton cercle réutilisable */
.btn-circle {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 0;
    border: 1px solid currentColor;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-circle:hover {
    background: currentColor;
}

.btn-circle:hover svg {
    color: var(--color-white);
}

.btn-circle--small {
    width: 36px;
    height: 36px;
}

/* Barre CTA fixe */
#cta {
    position: fixed;
    bottom: 10px;
    left: 50%;
    width: calc(100% - 30px);
    max-width: 900px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.66);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 0;
    border: 0.5px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateX(-50%) translateY(calc(100% + 25px));
    opacity: 0;
    pointer-events: none;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

#cta.visible {
    transform: translateX(-50%);
    opacity: 1;
    pointer-events: auto;
}

.cta-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cta-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 50px;
    min-width: 0;
}

.cta-eco-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cta-eco {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cta-eco-icon-wrapper {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.cta-eco-icon {
    height: 24px;
    width: auto;
    color: #75ff2c;
}

.cta-eco-title {
    font-size: 10px;
    font-weight: 700;
    color: #75ff2c;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-eco-stats {
    font-size: 9px;
    color: var(--color-white);
    opacity: 1;
    line-height: 1.3;
}

.cta-brief-btn {
    background: var(--color-primary);
    color: var(--color-black);
    padding: 16px 28px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1), top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    top: 0;
    box-shadow: 0 4px 15px rgba(255, 245, 140, 0.4);
}

.cta-brief-btn:hover {
    background: var(--color-black);
    color: var(--color-white);
}

.cta-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 50px;
}

.cta-scroll-up {
    color: var(--color-white);
    border-color: var(--color-white);
}

.cta-scroll-up:hover {
    background: var(--color-white);
    color: var(--color-black);
    border-color: var(--color-white);
}

.cta-scroll-up:hover svg {
    color: var(--color-black);
}

/* Icône accessibilité : passer en noir au hover */
#cta-a11y-btn:hover img {
    filter: brightness(0);
}

/* A11y toggle active state (in CTA bar) */
#cta-a11y-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

#cta-a11y-btn img {
    filter: brightness(0) invert(1);
    width: 17px;
    height: 17px;
}

#cta-a11y-btn.active img {
    filter: brightness(0);
}

/* A11yToolkit overrides — embed panel inside CTA bar */
#a11y-tk-container {
    display: none !important;
}

.cta-a11y-row .a11y-tk-panel {
    background: transparent;
    border: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-radius: 0;
    margin: 0;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-a11y-row .a11y-tk-panel[aria-hidden="false"] {
    max-height: 130px;
    padding: 8px 0 10px;
    overflow: visible;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Brief button when panel is open */
#cta:has(.a11y-tk-panel[aria-hidden="false"]) .cta-brief-btn {
    top: 0;
}

/* Coins carrés sur tous les boutons toolkit */
.cta-a11y-row .a11y-tk-btn {
    border-radius: 0 !important;
}

/* Responsive mobile */
@media (max-width: 768px) {
    #cta {
        width: calc(100% - 20px);
        padding: 8px 12px;
    }

    .cta-container {
        flex-wrap: nowrap;
        gap: 10px;
        justify-content: space-between;
    }

    .cta-left {
        flex: 0 0 auto;
    }

    .cta-eco-group {
        display: none;
    }

    .cta-brief-btn {
        padding: 12px 20px;
        flex-shrink: 0;
    }

    .cta-right {
        flex: 0 0 auto;
        gap: 12px;
    }

    .cta-a11y-row .a11y-tk-panel[aria-hidden="false"] {
        max-height: 200px;
    }
}

/* ============================================
   CUSTOM CURSOR - Cercle noir 50% opacité
   ============================================ */

/* Masquer le curseur natif partout */
*, *::before, *::after {
    cursor: none !important;
}

/* Cercle principal */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
    will-change: transform;
}

/* Curseur sur fond sombre : jaune */
.cursor--light {
    background: rgba(255, 245, 140, 0.75);
}

/* État hover : cercle légèrement plus grand */
.cursor--hover {
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.3);
}

.cursor--hover.cursor--light {
    background: rgba(255, 245, 140, 0.4);
}

/* Ondes animées au hover */
.cursor__ripple {
    position: fixed;
    border-radius: 50%;
    border: 1.5px solid var(--ripple-color, rgba(0, 0, 0, 0.4));
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%) scale(1);
    animation: cursorRipple 1s ease-out forwards;
    will-change: transform, opacity;
}

@keyframes cursorRipple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(3.5);
        opacity: 0;
    }
}

/* Désactiver le curseur custom quand le toolkit a11y modifie le curseur */
body.a11y-bigcursor .cursor,
body.a11y-bigcursor .cursor__ripple,
body.a11y-cursorHighlight .cursor,
body.a11y-cursorHighlight .cursor__ripple {
    display: none !important;
}

body.a11y-cursorHighlight *,
body.a11y-cursorHighlight *::before,
body.a11y-cursorHighlight *::after {
    cursor: auto !important;
}

/* Masquer le curseur custom sur mobile/tactile */
@media (hover: none), (pointer: coarse) {
    *, *::before, *::after {
        cursor: auto !important;
    }
    .cursor,
    .cursor__ripple {
        display: none !important;
    }
}

/* ============================================
   OPTIMISATIONS PERFORMANCES
   ============================================ */

/* Focus visible pour accessibilité */
.header__link:focus-visible,
.cta__btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ============================================
   AGENCE HERO - Bandeau 450px
   ============================================ */
.agence-hero {
    height: 450px;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: var(--border-width) solid var(--color-black);
    border-top: none;
    border-bottom: none;
    margin-top: 77px; /* Hauteur du header */
    position: relative;
    overflow: hidden;
}

/* Pulse animation (réutilise les styles du hero index) */
.agence-hero .hero__glow {
    top: 50%;
    animation: glowBounce 0.6s ease-out forwards;
}

.agence-hero .hero__pulse {
    top: 50%;
    animation: none;
}

.agence-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.agence-hero__logo {
    width: clamp(250px, 35vw, 400px);
    height: auto;
    margin-bottom: 2rem;
}

.agence-hero__tagline {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.3;
    color: var(--color-black);
    letter-spacing: 0.05em;
}

/* Bouton Découvrir agence — mobile uniquement */
.agence-hero__scroll {
    display: none;
}

@media (max-width: 767px) {
    .agence-hero__scroll {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        position: absolute;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.7rem;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: var(--color-black);
        text-decoration: none;
        opacity: 0.6;
        z-index: 5;
    }
}

/* ============================================
   ABOUT SECTION - Présentation
   ============================================ */
.about {
    background: var(--color-white);
    border-top: none;
    padding: 100px 3rem;
}

.about__container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Rectangle jaune animé + filet noir sur dernier mot des tetières */
.title-highlight {
    position: relative;
    display: inline-block;
}

.title-highlight::before,
.title-highlight::after {
    content: '';
    position: absolute;
    inset: -5px -10px;
    z-index: -1;
}

.title-highlight::before {
    background: var(--color-primary);
    -webkit-mask-image:
        linear-gradient(135deg, black 30%, transparent 55%),
        linear-gradient(135deg, black 0%, black 70%, transparent 75%),
        radial-gradient(circle, black 46%, transparent 47%);
    -webkit-mask-size: 100% 100%, 100% 100%, 7px 7px;
    -webkit-mask-composite: source-over, source-in;
    mask-image:
        linear-gradient(135deg, black 30%, transparent 55%),
        linear-gradient(135deg, black 0%, black 70%, transparent 75%),
        radial-gradient(circle, black 46%, transparent 47%);
    mask-size: 100% 100%, 100% 100%, 7px 7px;
    mask-composite: add, intersect;
    animation: jitter-fill 1.2s steps(1) infinite;
}

/* Zone points moyens */
.title-highlight__dots {
    position: absolute;
    inset: -5px -10px;
    z-index: -1;
    background: var(--color-primary);
    pointer-events: none;
    -webkit-mask-image:
        linear-gradient(135deg, transparent 65%, black 70%, black 80%, transparent 85%),
        radial-gradient(circle, black 30%, transparent 31%);
    -webkit-mask-size: 100% 100%, 7px 7px;
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(135deg, transparent 65%, black 70%, black 80%, transparent 85%),
        radial-gradient(circle, black 30%, transparent 31%);
    mask-size: 100% 100%, 7px 7px;
    mask-composite: intersect;
}

/* Zone petits points */
.title-highlight__dots::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-primary);
    -webkit-mask-image:
        linear-gradient(135deg, transparent 75%, black 80%, transparent 90%),
        radial-gradient(circle, black 14%, transparent 15%);
    -webkit-mask-size: 100% 100%, 7px 7px;
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(135deg, transparent 75%, black 80%, transparent 90%),
        radial-gradient(circle, black 14%, transparent 15%);
    mask-size: 100% 100%, 7px 7px;
    mask-composite: intersect;
}

.title-highlight::after {
    border: 2px solid var(--color-dark, #000);
    background: transparent;
    filter: url(#sketchy);
    -webkit-mask-image: linear-gradient(135deg, black 40%, transparent 90%);
    mask-image: linear-gradient(135deg, black 40%, transparent 90%);
    animation: jitter-stroke 2.8s steps(1) infinite;
    z-index: -2;
}

.title-highlight__white {
    position: absolute;
    inset: -5px -10px;
    border: 2px solid #fff;
    z-index: -1;
    scale: 0.7;
    filter: url(#sketchy);
    animation: jitter-white 2.4s steps(1) infinite;
}

@keyframes jitter-white {
    0%   { transform: translate(0px, 0px)   rotate(0deg); }
    10%  { transform: translate(-1px, 2px)  rotate(1deg); }
    20%  { transform: translate(2px, -1px)  rotate(-2deg); }
    30%  { transform: translate(-2px, -1px) rotate(2deg); }
    40%  { transform: translate(1px, 2px)   rotate(-1deg); }
    50%  { transform: translate(-1px, -2px) rotate(2deg); }
    60%  { transform: translate(2px, 1px)   rotate(-2deg); }
    70%  { transform: translate(-2px, 1px)  rotate(1deg); }
    80%  { transform: translate(1px, -2px)  rotate(-1deg); }
    90%  { transform: translate(-1px, 1px)  rotate(2deg); }
    100% { transform: translate(0px, 0px)   rotate(0deg); }
}

@keyframes jitter-fill {
    0%   { transform: translate(0px, 0px)   rotate(0deg); }
    10%  { transform: translate(-3px, 1px)  rotate(-5deg); }
    20%  { transform: translate(2px, -4px)  rotate(7deg); }
    30%  { transform: translate(-1px, 3px)  rotate(-4deg); }
    40%  { transform: translate(4px, -2px)  rotate(6deg); }
    50%  { transform: translate(-4px, -1px) rotate(-7deg); }
    60%  { transform: translate(1px, 4px)   rotate(3deg); }
    70%  { transform: translate(-2px, -3px) rotate(-6deg); }
    80%  { transform: translate(3px, 2px)   rotate(5deg); }
    90%  { transform: translate(-4px, -2px) rotate(-3deg); }
    100% { transform: translate(0px, 0px)   rotate(0deg); }
}

@keyframes jitter-stroke {
    0%   { transform: translate(0px, 0px)   rotate(0deg);  opacity: 0.25; }
    10%  { transform: translate(2px, -1px)  rotate(2deg);  opacity: 0.22; }
    20%  { transform: translate(-1px, 2px)  rotate(-1deg); opacity: 0.28; }
    30%  { transform: translate(1px, -2px)  rotate(-2deg); opacity: 0.21; }
    40%  { transform: translate(-2px, 1px)  rotate(1deg);  opacity: 0.3; }
    50%  { transform: translate(1px, 2px)   rotate(-2deg); opacity: 0.23; }
    60%  { transform: translate(-2px, -1px) rotate(2deg);  opacity: 0.27; }
    70%  { transform: translate(2px, 1px)   rotate(-1deg); opacity: 0.2; }
    80%  { transform: translate(-1px, -2px) rotate(1deg);  opacity: 0.29; }
    90%  { transform: translate(2px, -1px)  rotate(-2deg); opacity: 0.24; }
    100% { transform: translate(0px, 0px)   rotate(0deg);  opacity: 0.25; }
}

.about__title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    color: var(--color-black);
}

.about__text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-gray);
}

/* ============================================
   SHOWCASE - Grille masonry page Agence
   ============================================ */
.showcase {
    background: var(--color-primary);
    border-top: none;
}

.showcase__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(7, 1fr);
    gap: 12px;
    padding: 12px;
    min-height: 110vh;
}

/* Placements explicites : chiffres = 2 rows, stands = 5 rows */
.showcase__item--c1 { grid-column: 1; grid-row: 1 / 3; }
.showcase__item--s1 { grid-column: 2; grid-row: 1 / 6; }
.showcase__item--c3 { grid-column: 3; grid-row: 1 / 3; }
.showcase__item--s2 { grid-column: 1; grid-row: 3 / 8; }
.showcase__item--c2 { grid-column: 2; grid-row: 6 / 8; }
.showcase__item--s3 { grid-column: 3; grid-row: 3 / 8; }

/* Blocs chiffres */
.showcase__item--stat {
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase__item--stat .patchwork__content {
    align-items: center;
    text-align: center;
}

.showcase__stat-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.showcase__number {
    font-size: clamp(4rem, 9vw, 6rem);
    font-weight: 900;
    color: var(--color-black);
    line-height: 1;
}

.showcase__suffix {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 900;
    color: var(--color-black);
}

.showcase__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-black);
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* Blocs stands */
.showcase__item--stand {
}

/* Responsive Showcase */
@media (max-width: 599px) {
    .showcase__grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        min-height: auto;
    }

    .showcase__item--c1,
    .showcase__item--s1,
    .showcase__item--c3,
    .showcase__item--s2,
    .showcase__item--c2,
    .showcase__item--s3 {
        grid-column: 1;
        grid-row: auto;
    }

    .showcase__item--stat {
        min-height: 180px;
    }

    .showcase__item--stand {
        min-height: 280px;
    }
}

@media (min-width: 600px) and (max-width: 1023px) {
    .showcase__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        min-height: auto;
    }

    .showcase__item--c1 { grid-column: 1; grid-row: 1; }
    .showcase__item--c3 { grid-column: 2; grid-row: 1; }
    .showcase__item--s1 { grid-column: 1; grid-row: 2; }
    .showcase__item--s2 { grid-column: 2; grid-row: 2; }
    .showcase__item--c2 { grid-column: 1; grid-row: 3; }
    .showcase__item--s3 { grid-column: 2; grid-row: 3; }

    .showcase__item--stat {
        min-height: 200px;
    }

    .showcase__item--stand {
        min-height: 300px;
    }
}

/* ============================================
   HEADER LINK ACTIVE STATE
   ============================================ */
.header__link--active {
    position: relative;
}

.header__link--active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-black);
}

/* ============================================
   RESPONSIVE AGENCE
   ============================================ */
@media (max-width: 767px) {
    /* 8. Logo Galis — taille réduite mobile */
    .header__groupe {
        height: 20px;
    }

    /* 5. Hero Agence — quasi plein écran */
    .agence-hero {
        height: calc(100vh - 65px);
        min-height: 400px;
        margin-top: 65px;
    }

    .agence-hero__logo {
        width: 200px;
        margin-bottom: 1.5rem;
    }

    /* 6. Section "Ce que nous faisons" — marges réduites */
    .about {
        padding: 32px 1.5rem;
    }

    .about__text {
        font-size: 1rem;
        text-align: left;
    }

    /* 7. Blocs méthode — centrage + animation accélérée */
    .atelier {
        padding: 2rem 0;
    }

    .atelier__step::before {
        transition: opacity 0.3s ease;
    }

    /* 4. Footer mobile — brand centré, contact+sitemap côte à côte */
    .footer__main {
        grid-template-columns: 1fr 1fr;
    }

    .footer__brand {
        grid-column: 1 / -1;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer__social {
        justify-content: center;
    }

    .footer__contact {
        border-right: var(--border-width) solid rgba(255,255,255,0.2);
    }

    .footer__bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }

    .footer__legal {
        justify-content: center;
    }
}
