/* ══════════════════════════════════════════
   MYSTIK STUDIO — Homepage
   #2A9D8F · #F7A81F · #351126 · #111111
══════════════════════════════════════════ */

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

:root {
    --green:    #2A9D8F;
    --yellow:   #F7A81F;
    --bordeaux: #351126;
    --carbon:   #111111;
    --carbon2:  #0e0e0e;
    --white:    #FFFFFF;
    --font:     'DM Sans', sans-serif;
    --header-h: 70px;
    --row-h:    210px;
    --gap:      8px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--carbon);
    color: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; }

@media (prefers-reduced-motion: reduce) {
    .mosaic__row, .values-strip, .stat-item { animation: none !important; }
}

/* ══════════════════════════════════════════
   INTRO — ROLLING SIGN
══════════════════════════════════════════ */
.intro {
    position: fixed; inset: 0; z-index: 200;
    background: #000;
    overflow: hidden;
    transition: opacity .6s ease;
}
.intro.is-done { opacity: 0; pointer-events: none; }

/* Signe — démarre hors écran à droite */
.intro__sign {
    position: absolute;
    top: calc(50% - 36px);   /* centré verticalement, juste au-dessus de la barre */
    left: 0;
    width: 64px;
    height: 64px;
    object-fit: contain;
    /* Teinte verte : filtre hue-rotate convertit orange → vert */
    filter: hue-rotate(140deg) saturate(1.2) brightness(.92);
    transform: translateX(calc(100vw + 80px));  /* off-screen right */
    will-change: transform;
}

/* Animation déclenchée par JS (.is-rolling) */
.intro.is-rolling .intro__sign {
    animation: intro-roll 8s cubic-bezier(.42, 0, .58, 1) forwards;
}
@keyframes intro-roll {
    from { transform: translateX(calc(100vw + 80px)) rotate(0deg); }
    to   { transform: translateX(-80px)              rotate(-2880deg); }
}

/* Barre de progression */
.intro__bar {
    position: absolute;
    top: 50%;               /* s'aligne avec le bas du signe */
    left: 8%;
    right: 8%;
    height: 2px;
    background: rgba(255,255,255,.1);
    border-radius: 99px;
    overflow: hidden;
}
.intro__bar-fill {
    height: 100%;
    width: 0;
    background: var(--green);
    border-radius: 99px;
}
.intro.is-rolling .intro__bar-fill {
    animation: intro-bar 8s linear forwards;
}
@keyframes intro-bar {
    from { width: 0%; }
    to   { width: 100%; }
}

/* ══════════════════════════════════════════
   NAV FULLSCREEN
══════════════════════════════════════════ */
.nav-overlay {
    position: fixed; inset: 0; z-index: 150;
    background: rgba(10,10,10,.97); backdrop-filter: blur(20px);
    display: flex; flex-direction: column;
    align-items: flex-start; justify-content: center;
    padding: 4rem 6vw;
    opacity: 0; pointer-events: none;
    transition: opacity .45s ease;
}
.nav-overlay.is-open { opacity: 1; pointer-events: all; }

.nav-close {
    position: absolute; top: 2rem; right: 2.5rem;
    background: none; border: none; color: rgba(255,255,255,.4);
    font-size: 2.2rem; cursor: pointer; line-height: 1;
    transition: color .2s, transform .2s;
}
.nav-close:hover { color: var(--white); transform: rotate(90deg); }

.nav-links { list-style: none; margin-bottom: 2.5rem; }
.nav-links li { overflow: hidden; margin-bottom: .1rem; }

.nav-link {
    display: flex; align-items: baseline; gap: 1.2rem;
    font-size: clamp(2rem, 5.5vw, 4.5rem);
    font-weight: 800; color: rgba(255,255,255,.18);
    letter-spacing: -.03em; line-height: 1.15;
    transform: translateY(100%);
    transition: color .25s, transform .5s cubic-bezier(.16,1,.3,1);
}
.nav-overlay.is-open .nav-link { transform: translateY(0); }

.nav-links li:nth-child(1) .nav-link { transition-delay: .04s; }
.nav-links li:nth-child(2) .nav-link { transition-delay: .08s; }
.nav-links li:nth-child(3) .nav-link { transition-delay: .12s; }
.nav-links li:nth-child(4) .nav-link { transition-delay: .16s; }
.nav-links li:nth-child(5) .nav-link { transition-delay: .20s; }
.nav-links li:nth-child(6) .nav-link { transition-delay: .24s; }

.nav-link:hover { color: var(--white); }
.nav-link.active { color: rgba(255,255,255,.55); }
.nav-link--cta:hover { color: var(--yellow); }

.nav-num {
    font-size: .72rem; font-weight: 500; color: var(--green);
    letter-spacing: .1em; min-width: 2rem; padding-top: .4rem;
}

.nav-footer {
    display: flex; align-items: center; gap: 2rem;
    font-size: .78rem; color: rgba(255,255,255,.25); letter-spacing: .06em;
    border-top: 1px solid rgba(255,255,255,.07);
    padding-top: 1.8rem; width: 100%;
}
.nav-wa { margin-left: auto; color: #25D366; font-weight: 600; transition: opacity .2s; }
.nav-wa:hover { opacity: .75; }

/* ══════════════════════════════════════════
   HEADER FIXE
══════════════════════════════════════════ */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--header-h);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 2.5rem;
    background: rgba(17,17,17,.0);
    transition: background .3s, border-color .3s;
}
.site-header.is-scrolled {
    background: rgba(17,17,17,.95);
    border-bottom: 1px solid rgba(255,255,255,.06);
    backdrop-filter: blur(12px);
}

.site-logo__img {
    height: 65px; width: auto;
    filter: brightness(0) invert(1); opacity: .92;
    transition: height .35s ease, opacity .35s ease;
}
.site-header.is-scrolled .site-logo__img {
    height: 38px; opacity: .85;
}

.nav-toggle {
    background: none; border: none; cursor: pointer;
    display: flex; flex-direction: column; gap: 5px; padding: 6px;
}
.nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--white); border-radius: 2px;
    transition: transform .3s, opacity .3s, width .3s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════ */
.hero {
    position: relative;
    height: 100vh; min-height: 600px;
    overflow: hidden;
    background: var(--carbon2);
}

/* ── Slides ── */
.hero__slide {
    position: absolute; inset: 0;
    opacity: 0; z-index: 1;
    transition: opacity 1s ease;
    pointer-events: none;
}
.hero__slide.is-active {
    opacity: 1; z-index: 2; pointer-events: all;
}

/* ── Slide 1 : Mosaïque ── */
.mosaic {
    position: absolute; inset: -5%; z-index: 0;
    display: flex; flex-direction: column; gap: var(--gap);
    padding: var(--gap) 0;
    transform: rotate(-1.8deg) scale(1.07);
    transform-origin: center center;
    overflow: hidden; pointer-events: none;
}
.mosaic__row {
    display: flex; gap: var(--gap);
    flex-shrink: 0; will-change: transform;
}
.r1 { animation: goRight 55s linear infinite; }
.r2 { animation: goLeft  38s linear infinite; }
.r3 { animation: goRight 72s linear infinite; }
.r4 { animation: goLeft  46s linear infinite; }

@keyframes goRight { 0%{transform:translateX(-50%)} 100%{transform:translateX(0)} }
@keyframes goLeft  { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

.tile {
    flex-shrink: 0; border-radius: 8px; overflow: hidden;
    height: var(--row-h); min-width: 200px;
    position: relative; display: flex;
    flex-direction: column; justify-content: flex-end;
    padding: 1rem 1.2rem;
}
.t-wide    { min-width: 340px; }
.t-portrait { min-width: 160px; }
.t-img { background: #1a1a1a; }
.t-img img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
}
.t-stat { min-width: 170px; justify-content: center; align-items: center; text-align: center; padding: 1.2rem; }
.t-yellow { background: var(--yellow); color: var(--carbon); }
.t-green  { background: var(--green);  color: var(--white); }
.t-bordeaux { background: var(--bordeaux); color: var(--white); }
.t-stat b { display: block; font-size: 2.8rem; font-weight: 800; line-height: 1; }
.t-stat small { display: block; font-size: .72rem; font-weight: 500; margin-top: .3rem; opacity: .8; text-transform: uppercase; letter-spacing: .1em; }
.t-img-client { background: #1a1a1a; min-width: 200px; justify-content: flex-end; }
.t-img-client img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile__overlay-label { position: relative; z-index: 2; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); border-radius: 4px; padding: .35rem .7rem; display: flex; flex-direction: column; gap: .1rem; align-self: flex-start; }
.tile__overlay-label span { font-size: .58rem; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; color: var(--green); }
.tile__overlay-label strong { font-size: 1rem; font-weight: 700; color: var(--white); }
.t-quote { background: var(--green); min-width: 280px; justify-content: center; align-items: center; padding: 1.4rem; }
.t-bordeaux-bg { background: var(--bordeaux); }
.t-quote q { font-size: .88rem; font-weight: 500; font-style: italic; line-height: 1.5; color: var(--white); white-space: normal; quotes: none; }

/* Slide overlay gradient */
.slide-overlay {
    position: absolute; inset: 0; z-index: 5;
    background: radial-gradient(ellipse 65% 60% at 50% 50%,
        rgba(17,17,17,.88) 0%,
        rgba(17,17,17,.6) 45%,
        rgba(17,17,17,.2) 100%);
    pointer-events: none;
}
.slide-overlay--video {
    background: rgba(10,10,10,.55);
}

/* ── Slide 2 : Vidéo ── */
.slide-video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
}

/* ── Slide 3 : Stats animées ── */
.slide-stats {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #0d0d15 60%, #1a0a1a 100%);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.stats-watermark {
    position: absolute; width: 60vmin;
    opacity: .04; pointer-events: none;
    filter: brightness(0) invert(1);
}
.stats-grid {
    position: relative; z-index: 2;
    width: 100%; max-width: 900px; margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 3rem 2rem;
    padding: 2rem;
}
.stat-item {
    text-align: center;
    opacity: 0; transform: scale(.85);
    animation: statPulse 3s ease-in-out infinite;
}
.si-1 { animation-delay: 0s; }
.si-2 { animation-delay: .6s; }
.si-3 { animation-delay: 1.2s; }
.si-4 { animation-delay: 1.8s; grid-column: 1 / span 2; }
.si-5 { animation-delay: 2.4s; }

@keyframes statPulse {
    0%, 100% { opacity: 0; transform: scale(.85); }
    25%       { opacity: 1; transform: scale(1); }
    75%       { opacity: 1; transform: scale(1); }
    95%       { opacity: 0; transform: scale(1.08); }
}

.stat-num {
    display: block;
    font-size: clamp(3rem, 7vw, 7rem);
    font-weight: 800; line-height: 1;
    letter-spacing: -.04em;
}
.stat-label {
    display: block; margin-top: .4rem;
    font-size: .75rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: .14em;
    color: rgba(255,255,255,.4);
}

/* Emoji flottants slide 3 */
.emoji-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}
.emoji-float {
    position: absolute;
    bottom: -60px;
    left: var(--left, 50%);
    font-size: 1.6rem;
    line-height: 1;
    animation: float-up var(--dur, 4s) ease-in infinite;
    animation-delay: var(--delay, 0s);
    opacity: 0;
    user-select: none;
}
@keyframes float-up {
    0%   { transform: translateY(0) scale(0.8);  opacity: 0; }
    10%  { opacity: 1; }
    85%  { opacity: 0.8; }
    100% { transform: translateY(-110vh) scale(1.1); opacity: 0; }
}

/* ── Slide 3 : Chat conversation ── */
.slide-chat {
    position: absolute; inset: 0;
    background: linear-gradient(160deg, #0c0c12 0%, #111118 60%, #0e0e0e 100%);
    display: flex; align-items: center; justify-content: center;
    padding: 2rem;
}

.chat-card {
    width: 100%; max-width: 380px;
    background: #1e1e2e;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.06);
}

.chat-header {
    display: flex; align-items: center; gap: .9rem;
    padding: .9rem 1.2rem;
    background: #252535;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.chat-av {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--green);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .9rem; color: #fff;
    flex-shrink: 0;
}

.chat-hinfo strong { display: block; font-size: .85rem; font-weight: 700; }
.chat-online {
    display: flex; align-items: center; gap: .35rem;
    font-size: .68rem; color: rgba(255,255,255,.4);
}
.chat-online i {
    width: 6px; height: 6px; border-radius: 50%;
    background: #25D366; display: block;
    animation: pulse-green 2s ease infinite;
}
@keyframes pulse-green {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
    50% { opacity: .8; box-shadow: 0 0 0 4px rgba(37,211,102,0); }
}

.chat-body {
    padding: 1rem 1rem 1.2rem;
    display: flex; flex-direction: column; gap: .55rem;
    background: #181825;
    min-height: 260px;
}

.chat-msg {
    display: flex;
    opacity: 0;
    transform: translateY(12px);
}
.chat-msg--in  { justify-content: flex-start; }
.chat-msg--out { justify-content: flex-end; }

/* Animation par message */
.cm1 { animation: msgIn .4s ease forwards .4s; }
.cm2 { animation: msgIn .4s ease forwards 1.3s; }
.cm3 { animation: msgIn .4s ease forwards 2.3s; }
.cm4 { animation: msgIn .4s ease forwards 3.3s; }
.cm5 { animation: msgIn .4s ease forwards 4.5s; }

@keyframes msgIn {
    to { opacity: 1; transform: translateY(0); }
}

.chat-bubble {
    max-width: 78%;
    padding: .55rem .9rem;
    border-radius: 12px;
    font-size: .82rem; line-height: 1.55;
    position: relative;
}

.chat-msg--in .chat-bubble {
    background: #2e2e42;
    color: rgba(255,255,255,.85);
    border-bottom-left-radius: 3px;
}
.chat-msg--out .chat-bubble {
    background: var(--green);
    color: #fff;
    border-bottom-right-radius: 3px;
}

.chat-ts {
    display: block; font-size: .6rem;
    margin-top: .25rem;
    color: rgba(255,255,255,.35);
    text-align: right;
}
.chat-msg--in .chat-ts { text-align: left; }

/* Typing dots */
.chat-bubble--typing {
    padding: .7rem 1rem;
}
.tdots {
    display: flex; gap: 4px; align-items: center;
}
.tdots span {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255,255,255,.5);
    animation: tdot 1.2s ease infinite;
}
.tdots span:nth-child(2) { animation-delay: .2s; }
.tdots span:nth-child(3) { animation-delay: .4s; }
@keyframes tdot {
    0%, 80%, 100% { transform: scale(.7); opacity: .4; }
    40% { transform: scale(1); opacity: 1; }
}

/* ── Hero foreground ── */
.hero__fg {
    position: absolute; inset: 0; z-index: 20;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; padding: 0 1.5rem;
    pointer-events: none;
}

.hero__headlines { position: relative; min-height: 0; margin-bottom: 2rem; }

.hero__h {
    font-size: clamp(2.4rem, 5.5vw, 5.5rem);
    font-weight: 800; line-height: 1.08;
    letter-spacing: -.03em;
    position: absolute; top: 0; left: 0; right: 0;
    opacity: 0; transform: translateY(20px);
    transition: opacity .7s ease, transform .7s ease;
    pointer-events: none;
}
.hero__h.is-active {
    opacity: 1; transform: translateY(0);
    position: relative; pointer-events: none;
}
/* Slide 3 — pas de titre, pas d'espace */
.hero__h:empty.is-active { margin: 0; }

.accent-green  { color: var(--green); }
.accent-yellow { color: var(--yellow); }

.hero__cta-group {
    display: flex; align-items: center; gap: 1rem;
    flex-wrap: wrap; justify-content: center;
    pointer-events: all;
}

.btn-cta {
    display: inline-block;
    font-family: var(--font); font-size: 1rem; font-weight: 700;
    padding: 1.05rem 2.8rem;
    background: var(--green); color: var(--white);
    border: none; border-radius: 4px; cursor: pointer;
    letter-spacing: .03em;
    transition: background .25s, transform .25s, box-shadow .25s;
}
.btn-cta:hover {
    background: #249085;
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(42,157,143,.4);
}

.btn-secondary {
    display: inline-block;
    font-family: var(--font); font-size: 1rem; font-weight: 600;
    padding: 1.05rem 2.2rem;
    background: transparent;
    color: rgba(255,255,255,.8);
    border: 1.5px solid rgba(255,255,255,.22);
    border-radius: 4px; cursor: pointer;
    letter-spacing: .02em;
    transition: background .25s, border-color .25s, color .25s, transform .25s;
}
.btn-secondary:hover {
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.55);
    color: var(--white);
    transform: translateY(-3px);
}

.hero__dots {
    display: flex; gap: .7rem; margin-top: 1.8rem;
    pointer-events: all;
}
.hero__dot {
    width: 28px; height: 3px;
    background: rgba(255,255,255,.3); border: none;
    border-radius: 2px; cursor: pointer;
    transition: background .3s, width .3s;
}
.hero__dot.is-active { background: var(--yellow); width: 48px; }

/* ── Barre villes ── */
.hero__strip {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 25;
    display: flex; align-items: center; justify-content: center;
    gap: 1.2rem;
    padding: .9rem 0;
    background: rgba(17,17,17,.65);
    backdrop-filter: blur(6px);
    border-top: 1px solid rgba(255,255,255,.06);
    font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .2em;
    color: rgba(255,255,255,.6);
    pointer-events: none;
}
.vs-sep { color: var(--green); opacity: .7; }

/* ── Scroll hint ── */
.scroll-hint {
    position: absolute; bottom: 3rem; right: 2.5rem; z-index: 25;
    display: flex; flex-direction: column; align-items: center; gap: .5rem;
    font-size: .65rem; font-weight: 600; letter-spacing: .18em;
    text-transform: uppercase; color: rgba(255,255,255,.3);
    pointer-events: none;
    animation: fadeScroll 2s ease 11s both;
}
.scroll-hint__arrow {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,.3), transparent);
    animation: arrowBounce 1.8s ease-in-out infinite;
}
@keyframes arrowBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes fadeScroll { from { opacity: 0; } to { opacity: 1; } }

/* ══════════════════════════════════════════
   SHARED SECTION STYLES
══════════════════════════════════════════ */
.section-tag {
    font-size: .72rem; font-weight: 600; letter-spacing: .22em;
    text-transform: uppercase; color: var(--green); margin-bottom: .9rem;
}
.section-title {
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 800; line-height: 1.05; letter-spacing: -.03em;
}
.section-head { text-align: center; margin-bottom: 4rem; }

.btn-outline {
    display: inline-block;
    padding: .85rem 2.2rem;
    border: 1.5px solid rgba(255,255,255,.2);
    border-radius: 4px; color: rgba(255,255,255,.7);
    font-size: .9rem; font-weight: 600; letter-spacing: .04em;
    transition: border-color .2s, color .2s;
}
.btn-outline:hover { border-color: var(--white); color: var(--white); }
.btn-outline--light { border-color: rgba(255,255,255,.3); color: var(--white); }

.section-cta-row { text-align: center; margin-top: 3.5rem; }

/* ══════════════════════════════════════════
   SECTION AGENCE
══════════════════════════════════════════ */
.s-agency {
    background: var(--carbon);
    padding: 7rem 5vw;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* ── Images watermark B&W (dame + violon) ── */
.s-agency__image {
    position: absolute;
    opacity: .13;
    pointer-events: none;
    z-index: 2;
    filter: grayscale(1);
    mix-blend-mode: luminosity;
}
.s-agency__image img { width: 100%; display: block; }

/* Dame qui sourit — gauche, au-dessus du titre */
.s-agency__image--left {
    left: -2vw; top: 3rem;
    width: 30vw; max-width: 420px;
}

/* Garçon au violon — droite */
.s-agency__image--right {
    right: -2vw; top: 50%;
    transform: translateY(-50%);
    width: 30vw; max-width: 420px;
}

/* ── Contenu ── */
.s-agency__inner {
    display: grid; grid-template-columns: 1fr 1.3fr;
    gap: 5rem; max-width: 1200px; margin: 0 auto;
    position: relative; z-index: 3;
}
.s-agency__body {
    font-size: 1.05rem; font-weight: 300; line-height: 1.85;
    color: rgba(255,255,255,.6); margin-bottom: 1.2rem;
}
.s-agency__body strong { color: var(--white); font-weight: 700; }

/* ── Chiffres animés ── */
.s-agency__metrics {
    display: flex; gap: 2.5rem; margin: 2rem 0;
    border-top: 1px solid rgba(255,255,255,.1);
    border-bottom: 1px solid rgba(255,255,255,.1);
    padding: 1.5rem 0;
}
.metric { position: relative; }
.metric b {
    display: block;
    font-size: 2.4rem; font-weight: 800;
    color: var(--yellow);
    font-variant-numeric: tabular-nums;
    transition: color .3s;
}
.metric span {
    font-size: .72rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .12em;
    color: rgba(255,255,255,.35);
}

/* ── Bouton Découvrir animé ── */
.btn-outline--agency {
    position: relative; overflow: hidden;
    border-color: rgba(42,157,143,.4);
    color: rgba(255,255,255,.8);
    transition: color .3s, border-color .3s, transform .3s;
}
.btn-outline--agency::before {
    content: '';
    position: absolute; inset: 0;
    background: var(--green);
    transform: translateX(-101%);
    transition: transform .4s cubic-bezier(.16,1,.3,1);
    z-index: -1;
}
.btn-outline--agency:hover {
    color: var(--white);
    border-color: var(--green);
    transform: translateY(-3px);
}
.btn-outline--agency:hover::before { transform: translateX(0); }

/* ══════════════════════════════════════════
   SECTION PROJETS
══════════════════════════════════════════ */
.s-projects {
    background: var(--carbon2);
    padding: 0 0 5rem;
    overflow: hidden;
}

/* ── Marquee titre défilant ── */
.marquee-block {
    padding: 3rem 0;
    overflow: hidden;
    user-select: none;
}

.marquee-row {
    display: flex;
    width: max-content;
    will-change: transform;
}

.marquee-row--left  { animation: marqueeLeft  25s linear infinite; }
.marquee-row--right { animation: marqueeRight 30s linear infinite; }

@keyframes marqueeLeft  { 0% { transform: translateX(0); }     100% { transform: translateX(-50%); } }
@keyframes marqueeRight { 0% { transform: translateX(-50%); }  100% { transform: translateX(0); } }

.marquee-content {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.marquee-content span {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 900;
    letter-spacing: -.03em;
    text-transform: uppercase;
    color: var(--white);
    white-space: nowrap;
    padding: 0 .5rem;
}

.marquee-icon {
    font-size: clamp(2.2rem, 4.5vw, 4rem) !important;
    padding: 0 1rem !important;
}

.marquee-row--right .marquee-content span {
    -webkit-text-stroke: 1.5px rgba(255,255,255,.3);
    color: transparent;
}
.marquee-row--right .marquee-icon { color: var(--green) !important; -webkit-text-stroke: 0 !important; }

/* ── Header projets ── */
.projects-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    max-width: 1300px;
    margin: 0 auto 2.5rem;
    padding: 0 5vw;
}
.projects-header .section-tag { margin-bottom: .4rem; }
.projects-header .section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); }

.projects-header__actions {
    display: flex;
    align-items: center;
    gap: .7rem;
}

.proj-nav-btn {
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    color: var(--white); font-size: 1rem;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}
.proj-nav-btn:hover {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.3);
}

.btn-projects {
    display: inline-flex; align-items: center;
    padding: .7rem 1.6rem;
    background: var(--green);
    color: var(--white);
    font-size: .78rem; font-weight: 700;
    letter-spacing: .08em;
    border-radius: 4px;
    transition: background .25s, transform .25s;
}
.btn-projects:hover { background: #249085; transform: translateY(-2px); }

/* ── Slider projets horizontal ── */
.projects-track {
    display: flex;
    gap: 1.5rem;
    padding: 0 5vw;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}
.projects-track::-webkit-scrollbar { display: none; }

.project-card {
    flex: 0 0 calc(50% - .75rem);
    min-width: 340px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    transition: transform .35s ease;
}
.project-card:hover { transform: translateY(-4px); }

.project-card__img {
    display: block;
    height: 360px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
.project-card__img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.project-card:hover .project-card__img img { transform: scale(1.04); }

.project-card__info {
    padding: 1.2rem 0 .5rem;
}
.project-card__info h3 {
    font-size: 1.3rem; font-weight: 700;
    margin-bottom: .7rem; line-height: 1.2;
}
.project-card__info h3 a {
    transition: color .2s;
}
.project-card__info h3 a:hover { color: var(--green); }

.project-tags {
    display: flex; flex-wrap: wrap; gap: .4rem;
}
.project-tags span {
    padding: .35rem .85rem;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 3px;
    font-size: .7rem; font-weight: 600;
    color: rgba(255,255,255,.5);
    letter-spacing: .04em;
}

/* Tags colorés projets */
.project-tags .tag-green    { background: rgba(42,157,143,.18); color: #2A9D8F; border-color: rgba(42,157,143,.4); }
.project-tags .tag-yellow   { background: rgba(247,168,31,.15); color: #F7A81F; border-color: rgba(247,168,31,.4); }
.project-tags .tag-bordeaux { background: rgba(53,17,38,.5);    color: #e07a97; border-color: rgba(224,122,151,.3); }

/* Hover description on project card image */
.project-card__hover {
    position: absolute;
    inset: 0;
    background: rgba(17,17,17,.85);
    color: #fff;
    font-size: .85rem;
    font-weight: 400;
    line-height: 1.65;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
    opacity: 0;
    transition: opacity .35s ease;
    backdrop-filter: blur(4px);
}
.project-card__img:hover .project-card__hover { opacity: 1; }

/* ══════════════════════════════════════════
   SECTION SERVICES
══════════════════════════════════════════ */
.s-services {
    background: var(--carbon);
    padding: 5rem 5vw 0;
}

/* Services marquee title */
.services-marquee-block {
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.06);
    margin-bottom: 4px;
    background: var(--carbon);
}
.services-marquee-row {
    display: flex;
    white-space: nowrap;
    overflow: hidden;
}
.services-marquee-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem 1.5rem;
    animation: marqueeLeft 18s linear infinite;
    flex-shrink: 0;
}
.services-marquee-content span:not(.marquee-icon) {
    font-size: clamp(1.2rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: #fff;
}
.marquee-icon--yellow { font-size: 1.2rem; color: var(--yellow); }

.services-header {
    text-align: center;
    margin-bottom: 3rem;
}
.services-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -.03em;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: 4px;
    max-width: 1300px; margin: 0 auto;
    border-radius: 12px; overflow: hidden;
}

.service-card {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem 1.8rem;
    text-decoration: none;
}

.service-card__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.8) 0%,
        rgba(0,0,0,.35) 50%,
        rgba(0,0,0,.2) 100%
    );
    transition: background .4s;
}
.service-card:hover .service-card__overlay {
    background: linear-gradient(
        to top,
        rgba(0,0,0,.85) 0%,
        rgba(0,0,0,.5) 50%,
        rgba(0,0,0,.3) 100%
    );
}

.service-card__content {
    position: relative; z-index: 2;
}

.service-card h3 {
    font-size: 1.3rem; font-weight: 700;
    line-height: 1.25; margin-bottom: .3rem;
    color: var(--white);
}

.service-desc {
    font-size: .78rem;
    color: rgba(255,255,255,.55);
    line-height: 1.55;
    margin-top: .4rem;
    max-width: 280px;
}

.service-arrow {
    position: absolute;
    top: 50%; right: 0;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--green);
    opacity: 0;
    transition: opacity .3s, transform .3s;
}
.service-card:hover .service-arrow {
    opacity: 1;
    transform: translateY(-50%) translateX(4px);
}

/* ── Logos partenaires ── */
.partners-block {
    padding: 4rem 0 5rem;
    overflow: hidden;
}

.partners-row {
    display: flex;
    width: max-content;
    margin-bottom: 1.5rem;
}
.partners-row:last-child { margin-bottom: 0; }

.partners-row--left  { animation: marqueeLeft  35s linear infinite; }
.partners-row--right { animation: marqueeRight 40s linear infinite; }

.partners-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-shrink: 0;
    padding: 0 2rem;
}

.partners-track img {
    height: 52px;
    max-width: 140px;
    object-fit: contain;
    filter: none;
    opacity: .85;
    transition: opacity .3s;
    flex-shrink: 0;
}
.partners-track img:hover { opacity: 1; }

/* ══════════════════════════════════════════
   SECTION TÉMOIGNAGES
══════════════════════════════════════════ */
.s-testimonials {
    padding: 5rem 5vw 6rem;
    background: #0d0d1a;
    overflow: hidden;
    position: relative;
}

.testimonials-heading {
    text-align: center;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: 3.5rem;
    font-style: italic;
}

.testimonials-masonry {
    columns: 4;
    column-gap: 1.2rem;
    max-width: 1300px;
    margin: 0 auto;
}

.testimonial-card {
    break-inside: avoid;
    background: #1a1a2e;
    border: 1px solid rgba(42,157,143,.2);
    border-radius: 14px;
    padding: 1.8rem;
    margin-bottom: 1.2rem;
    transition: transform .3s ease, border-color .3s;
}
.testimonial-card:nth-child(odd) {
    background: #1e1a0f;
    border-color: rgba(247,168,31,.18);
}
.testimonial-card:nth-child(3n) {
    background: #1e0f17;
    border-color: rgba(224,122,151,.18);
}
.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(42,157,143,.4);
}

.testimonial-quote {
    font-size: .88rem; font-weight: 300; line-height: 1.75;
    color: rgba(255,255,255,.6); font-style: italic;
    margin-bottom: 1.2rem;
}

.testimonial-author {
    display: flex; flex-direction: column; gap: .15rem;
}
.testimonial-author strong {
    font-size: .8rem; font-weight: 600;
    color: rgba(255,255,255,.8);
}
.testimonial-author span {
    font-size: .72rem;
    color: var(--green);
    font-weight: 500;
}

/* ══════════════════════════════════════════
   SECTION DISCOVERY CTA
══════════════════════════════════════════ */
/* CTA background image animated */
.s-discovery {
    position: relative;
    overflow: hidden;
    background: var(--bordeaux);
    padding: 8rem 5vw;
    text-align: center;
}
.s-discovery::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(42,157,143,.12) 0%, transparent 70%);
}
.s-discovery__bg {
    position: absolute;
    inset: -10%;
    z-index: 0;
}
.s-discovery__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .15;
    animation: bg-slow-zoom 20s ease-in-out infinite alternate;
    filter: grayscale(30%);
}
@keyframes bg-slow-zoom {
    from { transform: scale(1); }
    to   { transform: scale(1.15); }
}
.s-discovery__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--bordeaux) 0%, rgba(17,17,17,.9) 100%);
    z-index: 0;
}
.s-discovery__inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.s-discovery__title {
    font-size: clamp(2.4rem, 5vw, 5rem);
    font-weight: 800; line-height: 1.05; letter-spacing: -.03em;
    margin-bottom: 1.2rem;
}
.s-discovery__sub {
    font-size: 1.05rem; font-weight: 300;
    color: rgba(255,255,255,.6); line-height: 1.8;
    margin-bottom: 2.5rem;
}
.s-discovery__actions {
    display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.s-discovery__note {
    font-size: .82rem; color: rgba(255,255,255,.3);
}
.s-discovery__note a { color: #25D366; text-decoration: underline; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.site-footer { background: var(--carbon2); padding: 5rem 5vw 2rem; }

.site-footer__top {
    display: grid; grid-template-columns: 250px 1fr;
    gap: 4rem; padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
    margin-bottom: 2rem;
}

.footer-logo { height: 80px; width: 160px; object-fit: contain; filter: brightness(0) invert(1); opacity: .9; margin-bottom: 1rem; }
.footer-brand p { font-size: .82rem; color: rgba(255,255,255,.3); line-height: 1.6; }

.footer-nav {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.footer-nav__col { display: flex; flex-direction: column; gap: .6rem; }
.footer-nav__col span {
    font-size: .68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .14em; color: rgba(255,255,255,.25);
    margin-bottom: .4rem;
}
.footer-nav__col a { font-size: .85rem; color: rgba(255,255,255,.5); transition: color .2s; }
.footer-nav__col a:hover { color: var(--white); }

.site-footer__bottom {
    display: flex; align-items: center; justify-content: space-between;
    font-size: .75rem; color: rgba(255,255,255,.2);
}

.footer-socials { display: flex; gap: 1rem; }
.social-link {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.06);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.5);
    transition: background .2s, color .2s;
}
.social-link:hover { background: rgba(255,255,255,.12); color: var(--white); }

/* ══════════════════════════════════════════
   WHATSAPP
══════════════════════════════════════════ */
.wa-btn {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 50;
    width: 52px; height: 52px; background: #25D366; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,.4);
    transition: transform .3s, box-shadow .3s;
}
.wa-btn:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.5); }

/* ══════════════════════════════════════════
   ANIMATIONS SCROLL
══════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: 1fr 1fr; }
    .s-agency__inner { grid-template-columns: 1fr; gap: 2rem; }
    .s-agency__image { width: 35vw; opacity: .09; }
    .testimonials-masonry { columns: 3; }
    .project-card { flex: 0 0 calc(50% - .75rem); min-width: 300px; }
}

@media (max-width: 768px) {
    :root { --row-h: 155px; }
    .services-grid { grid-template-columns: 1fr; grid-template-rows: repeat(6, 220px); }
    .testimonials-masonry { columns: 2; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .si-4 { grid-column: 1 / span 2; }
    .site-footer__top { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-nav { grid-template-columns: 1fr 1fr; }
    .s-discovery__actions { flex-direction: column; align-items: center; }
    .hero__h { font-size: clamp(2rem, 8vw, 3rem); }
    .nav-link { font-size: clamp(1.8rem, 7vw, 3rem); }
    .site-footer__bottom { flex-direction: column; gap: 1rem; }
    .hero__cta-group { flex-direction: column; gap: .7rem; }
    .btn-cta, .btn-secondary { width: 100%; max-width: 320px; text-align: center; }
    .chat-card { max-width: 320px; }
    .site-logo__img { height: 48px; }
    .site-header.is-scrolled .site-logo__img { height: 34px; }
    .s-agency__image { display: none; }
    .s-agency__metrics { gap: 1.4rem; }
    .project-card { flex: 0 0 85vw; min-width: 280px; }
    .project-card__img { height: 260px; }
    .projects-header { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
    .marquee-content span { font-size: clamp(2rem, 8vw, 3.5rem); }
    .testimonials-masonry { columns: 1; }
}
