/* ============================================================
   DIGITAL EXPRESS & CONSULTING — design tokens & styles partagés
   ============================================================ */

:root {
    /* Couleurs */
    --rouge-signal: #890916;
    --rouge-signal-dim: #6B0711;
    --rouge-profond: #4A050C;
    --noir-encre: #161311;
    --blanc: #FFFFFF;
    --gris-lin: #F4F1EE;
    --gris-lin-2: #EAE5E0;
    --gris-ardoise: #6B6560;
    --gris-ligne: #DDD6D0;

    /* Typo */
    --f-display: "Helvetica Neue", "Helvetica", Arial, sans-serif;
    --f-body: "Helvetica Neue", "Helvetica", Arial, sans-serif;

    /* Rythme */
    --section-pad: clamp(4rem, 8vw, 8rem);
    --container: 1240px;
    --radius: 2px;

    /* Easing "fluide" — accélération douce, professionnelle */
    --ease-fluid: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: var(--f-body);
    color: var(--noir-encre);
    background: var(--blanc);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

/* ---------- Typographie ---------- */

h1,
h2,
h3,
h4 {
    font-family: var(--f-display);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.05;
}

.eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--rouge-signal);
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    background: var(--rouge-signal);
    display: inline-block;
}

.h-xl {
    font-size: clamp(2.6rem, 6vw, 5rem);
}

.h-lg {
    font-size: clamp(2rem, 4vw, 3.1rem);
}

.h-md {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

p.lead {
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    color: var(--gris-ardoise);
    max-width: 46ch;
}

/* ---------- Ligne de pouls (signature) ---------- */

.pulse-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 3px;
    height: 100vh;
    z-index: 900;
    background: var(--gris-lin-2);
}

.pulse-progress__fill {
    width: 100%;
    height: 0%;
    background: var(--rouge-signal);
    transition: height 0.08s linear;
}

.pulse-line {
    width: 100%;
    height: auto;
    display: block;
    animation: pulse-glow 3.4s ease-in-out infinite 3.2s;
}

.pulse-line path {
    fill: none;
    stroke: var(--rouge-signal);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: draw-pulse 2.6s ease-out forwards 0.4s;
}

@keyframes draw-pulse {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 0 rgba(228, 3, 46, 0));
    }

    50% {
        filter: drop-shadow(0 0 5px rgba(228, 3, 46, 0.45));
    }
}

/* ---------- Navigation ---------- */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 800;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gris-ligne);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 92px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--f-display);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.nav__logo-mark {
    width: 34px;
    height: 34px;
    background: var(--rouge-signal);
    color: var(--blanc);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
}

/* Variante avec logo image (header) : pas de fond couleur, on laisse le
   logo respirer et on cadre juste sa hauteur sur celle de la nav. */
.nav__logo-mark--brand {
    width: auto;
    height: 72px;
    background: none;
}

.nav__logo-mark--brand img {
    height: 100%;
    width: auto;
    max-width: none;
    object-fit: contain;
    display: block;
}

/* Variante footer : un peu plus discrète, mais toujours bien lisible */
.nav__logo-mark--footer {
    height: 46px;
}

@media (max-width: 620px) {
    .nav__logo-mark--brand {
        height: 42px;
    }

    .nav__logo {
        gap: 0.5rem;
        font-size: 0.92rem;
    }
}

@media (max-width: 400px) {
    .nav__logo-mark--brand {
        height: 36px;
    }

    .nav__logo {
        font-size: 0.82rem;
    }
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 2.4rem;
}

.nav__links a {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--noir-encre);
    position: relative;
    padding: 0.4rem 0;
}

.nav__links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: var(--rouge-signal);
    transition: width 0.35s var(--ease-fluid);
}

.nav__links a:hover::after,
.nav__links a.active::after {
    width: 100%;
}

.nav__links a.active {
    color: var(--rouge-signal);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform 0.4s var(--ease-fluid), background 0.35s var(--ease-fluid), color 0.35s ease, border-color 0.35s ease, box-shadow 0.4s var(--ease-fluid);
    will-change: transform;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px -8px rgba(22, 19, 17, 0.35);
}

.btn--outline:hover {
    box-shadow: 0 10px 24px -10px rgba(228, 3, 46, 0.28);
}

.btn:focus-visible {
    outline: 3px solid var(--rouge-signal);
    outline-offset: 3px;
}

.btn--primary {
    background: var(--noir-encre);
    color: var(--blanc);
}

.btn--primary:hover {
    background: var(--rouge-signal);
}

.btn--outline {
    border-color: var(--noir-encre);
    color: var(--noir-encre);
    background: transparent;
}

.btn--outline:hover {
    border-color: var(--rouge-signal);
    color: var(--rouge-signal);
}

.nav__cta {
    display: none;
}

@media (min-width: 860px) {
    .nav__cta {
        display: inline-flex;
    }
}

.nav__burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav__burger span {
    width: 24px;
    height: 2px;
    background: var(--noir-encre);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav__burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__burger.open span:nth-child(2) {
    opacity: 0;
}

.nav__burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 860px) {
    .nav__burger {
        display: none;
    }
}

@media (max-width: 859px) {
    .nav__links {
        display: none;
    }
}

.nav__mobile {
    display: none;
    flex-direction: column;
    background: var(--blanc);
    border-bottom: 1px solid var(--gris-ligne);
    padding: 1rem 1.75rem 1.5rem;
}

.nav__mobile.open {
    display: flex;
}

.nav__mobile a {
    padding: 0.85rem 0;
    font-weight: 600;
    border-bottom: 1px solid var(--gris-lin-2);
}

/* ---------- Hero ---------- */

.hero {
    padding: calc(92px + 5rem) 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background: var(--gris-lin);
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: -1;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

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

    .hero__bg {
        width: 100%;
        clip-path: none;
        opacity: 0.5;
    }
}

.hero__title {
    margin: 1.1rem 0 1.3rem;
}

.hero__title .accent {
    color: var(--rouge-signal);
}

.hero__slogan {
    font-style: italic;
    font-size: 1.15rem;
    color: var(--noir-encre);
    border-left: 3px solid var(--rouge-signal);
    padding-left: 1rem;
    margin: 1.4rem 0 2rem;
}

.hero__ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.hero__visual {
    position: relative;
    overflow: hidden;
}

.hero__visual img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    transition: transform 1.1s var(--ease-fluid), filter 1.1s var(--ease-fluid);
}

.hero__visual:hover img {
    transform: scale(1.045);
}

.hero__badge {
    position: absolute;
    bottom: -1.2rem;
    left: -1.2rem;
    background: var(--rouge-signal);
    color: var(--blanc);
    padding: 1.1rem 1.4rem;
    max-width: 220px;
    animation: float-badge 4.5s ease-in-out infinite;
}

@keyframes float-badge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

.hero__badge strong {
    display: block;
    font-size: 1.7rem;
    font-family: var(--f-display);
}

.hero__badge span {
    font-size: 0.78rem;
    opacity: 0.9;
}

/* ---------- Sections génériques ---------- */

section {
    padding: var(--section-pad) 0;
}

.section--alt {
    background: var(--gris-lin);
}

.section-head {
    max-width: 640px;
    margin-bottom: 3.2rem;
}

.section-head .eyebrow {
    margin-bottom: 1rem;
}

.section-head p.lead {
    margin-top: 1rem;
}

/* ---------- Duo Conseil / Marketing ---------- */

.duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--gris-ligne);
}

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

.duo__col {
    padding: 3rem 2.6rem;
    position: relative;
}

.duo__col:first-child {
    border-right: 1px solid var(--gris-ligne);
}

@media (max-width: 780px) {
    .duo__col:first-child {
        border-right: none;
        border-bottom: 1px solid var(--gris-ligne);
    }
}

.duo__num {
    font-family: var(--f-display);
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--rouge-signal);
    letter-spacing: 0.1em;
}

.duo__col h3 {
    margin: 0.9rem 0 0.8rem;
    font-size: 1.6rem;
}

.duo__col p {
    color: var(--gris-ardoise);
    margin-bottom: 1.2rem;
}

.duo__col ul li {
    padding: 0.5rem 0;
    border-top: 1px solid var(--gris-lin-2);
    font-size: 0.92rem;
    display: flex;
    gap: 0.6rem;
}

.duo__col ul li::before {
    content: "—";
    color: var(--rouge-signal);
    font-weight: 700;
}

.duo__x {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    background: var(--noir-encre);
    color: var(--blanc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    z-index: 5;
}

@media (max-width: 780px) {
    .duo__x {
        display: none;
    }
}

/* ---------- Services grid ---------- */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5px;
    background: var(--gris-ligne);
    border: 1px solid var(--gris-ligne);
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.service-card {
    background: var(--blanc);
    padding: 2.4rem 2rem;
    transition: background 0.5s var(--ease-fluid), transform 0.5s var(--ease-fluid), box-shadow 0.5s var(--ease-fluid);
    transform-style: preserve-3d;
    will-change: transform;
}

.service-card:hover {
    background: var(--noir-encre);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.service-card:hover * {
    color: var(--blanc) !important;
}

.service-card:hover .service-card__icon {
    background: var(--rouge-signal);
}

.service-card__icon {
    width: 46px;
    height: 46px;
    background: var(--gris-lin);
    color: var(--rouge-signal);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.4rem;
    font-size: 1.2rem;
    transition: background 0.4s var(--ease-fluid), transform 0.4s var(--ease-fluid);
}

.service-card h4 {
    font-size: 1.08rem;
    margin-bottom: 0.6rem;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--gris-ardoise);
}

/* ---------- Stats ---------- */

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    background: var(--noir-encre);
    color: var(--blanc);
    padding: 3.5rem 2.5rem;
}

@media (max-width: 760px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat__num {
    font-family: var(--f-display);
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 2.9rem);
    color: var(--rouge-signal);
}

.stat__label {
    font-size: 0.82rem;
    color: #C9C4C0;
    margin-top: 0.3rem;
}

/* ---------- Timeline / process ---------- */

.process {
    display: flex;
    flex-direction: column;
}

.process__row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 1.5rem;
    padding: 2rem 0;
    border-top: 1px solid var(--gris-ligne);
    align-items: start;
}

.process__row:last-child {
    border-bottom: 1px solid var(--gris-ligne);
}

.process__step {
    font-family: var(--f-display);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--rouge-signal);
}

.process__row h4 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

.process__row p {
    color: var(--gris-ardoise);
    font-size: 0.95rem;
    max-width: 60ch;
}

/* ---------- CTA banner ---------- */

.cta-band {
    background: var(--rouge-signal);
    color: var(--blanc);
    text-align: center;
    padding: 5rem 2rem;
}

.cta-band h2 {
    margin-bottom: 1.2rem;
}

.cta-band .btn--primary {
    background: var(--noir-encre);
}

.cta-band .btn--primary:hover {
    background: var(--blanc);
    color: var(--noir-encre);
}

/* ---------- Footer ---------- */

footer {
    background: var(--noir-encre);
    color: var(--blanc);
    padding: 4rem 0 2rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

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

.footer__brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer__col h5 {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #C9C4C0;
    margin-bottom: 1rem;
}

.footer__col a,
.footer__col p {
    font-size: 0.9rem;
    color: #E7E3E0;
    display: block;
    padding: 0.35rem 0;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.6rem;
    font-size: 0.8rem;
    color: #A39E9A;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ---------- Scroll reveal ---------- */

.reveal {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
    filter: blur(3px);
    transition: opacity 0.9s var(--ease-fluid), transform 0.9s var(--ease-fluid), filter 0.9s var(--ease-fluid);
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Stagger: direct children of a revealed grid fade in one after another */
.services-grid.in-view>.service-card,
.team-grid.in-view>.team-card,
.values-grid.in-view>.value-card,
.stats.in-view>div,
.process.in-view>.process__row {
    animation: stagger-in 0.6s ease both;
}

.services-grid>.service-card:nth-child(1),
.team-grid>.team-card:nth-child(1),
.values-grid>.value-card:nth-child(1),
.stats>div:nth-child(1),
.process>.process__row:nth-child(1) {
    animation-delay: 0.05s;
}

.services-grid>.service-card:nth-child(2),
.team-grid>.team-card:nth-child(2),
.values-grid>.value-card:nth-child(2),
.stats>div:nth-child(2),
.process>.process__row:nth-child(2) {
    animation-delay: 0.15s;
}

.services-grid>.service-card:nth-child(3),
.team-grid>.team-card:nth-child(3),
.values-grid>.value-card:nth-child(3),
.stats>div:nth-child(3),
.process>.process__row:nth-child(3) {
    animation-delay: 0.25s;
}

.services-grid>.service-card:nth-child(4),
.values-grid>.value-card:nth-child(4),
.stats>div:nth-child(4),
.process>.process__row:nth-child(4) {
    animation-delay: 0.35s;
}

.services-grid>.service-card:nth-child(5) {
    animation-delay: 0.45s;
}

.services-grid>.service-card:nth-child(6) {
    animation-delay: 0.55s;
}

@keyframes stagger-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

/* Nav shadow on scroll */
.nav {
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.nav.scrolled {
    box-shadow: 0 4px 20px rgba(22, 19, 17, 0.08);
}

/* Hero entrance animation (plays once on load, independent of scroll) */
.hero__grid>div:first-child>* {
    opacity: 0;
    animation: hero-in 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.hero__grid>div:first-child>*:nth-child(1) {
    animation-delay: 0.05s;
}

.hero__grid>div:first-child>*:nth-child(2) {
    animation-delay: 0.15s;
}

.hero__grid>div:first-child>*:nth-child(3) {
    animation-delay: 0.3s;
}

.hero__grid>div:first-child>*:nth-child(4) {
    animation-delay: 0.4s;
}

.hero__grid>div:first-child>*:nth-child(5) {
    animation-delay: 0.5s;
}

.hero__visual {
    opacity: 0;
    animation: hero-in 0.9s cubic-bezier(0.25, 0.8, 0.25, 1) forwards 0.35s;
}

@keyframes hero-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

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

/* Subtle animated shine sweep on the CTA band */
.cta-band {
    position: relative;
    overflow: hidden;
}

.cta-band::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.16), transparent);
    animation: cta-shine 5s ease-in-out infinite;
}

@keyframes cta-shine {
    0% {
        left: -60%;
    }

    40%,
    100% {
        left: 130%;
    }
}

/* Buttons: subtle press feedback */
.btn:active {
    transform: translateY(0) scale(0.97);
}

/* Service icon nudges on card hover */
.service-card {
    overflow: hidden;
}

.service-card__icon {
    transition: background 0.25s ease, transform 0.3s ease;
}

.service-card:hover .service-card__icon {
    transform: rotate(-6deg) scale(1.05);
}

/* Stat numbers: gentle pop when counting starts */
.stat__num {
    display: inline-block;
}

/* ---------- Page hero (sous-pages) ---------- */

.page-hero {
    padding: calc(92px + 4rem) 0 3.5rem;
    border-bottom: 1px solid var(--gris-ligne);
}

.page-hero h1 {
    margin-top: 1rem;
}

.breadcrumb {
    font-size: 0.82rem;
    color: var(--gris-ardoise);
}

.breadcrumb a {
    color: var(--rouge-signal);
    font-weight: 600;
}

/* ---------- Formulaire contact ---------- */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

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

.field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.field label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.field input,
.field textarea,
.field select {
    border: 1.5px solid var(--gris-ligne);
    padding: 0.85rem 1rem;
    font-family: var(--f-body);
    font-size: 0.95rem;
    background: var(--blanc);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: var(--rouge-signal);
    box-shadow: 0 0 0 4px rgba(228, 3, 46, 0.08);
}

.field input:invalid:not(:placeholder-shown) {
    border-color: #C97A7A;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
}

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

.contact-info__item {
    display: flex;
    gap: 1rem;
    padding: 1.3rem 0;
    border-top: 1px solid var(--gris-ligne);
    transition: padding-left 0.25s ease, border-color 0.25s ease;
}

.contact-info__item:hover {
    padding-left: 0.5rem;
    border-color: var(--rouge-signal);
}

.contact-info__item strong {
    display: block;
    font-size: 0.9rem;
}

.contact-info__item span {
    font-size: 0.88rem;
    color: var(--gris-ardoise);
}

.form-success {
    display: none;
    background: var(--gris-lin);
    border-left: 3px solid var(--rouge-signal);
    padding: 1.2rem 1.4rem;
    font-size: 0.92rem;
    margin-top: 1rem;
}

.form-success.show {
    display: block;
    animation: success-pop 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes success-pop {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.btn--primary.is-sending {
    opacity: 0.75;
    pointer-events: none;
}


/* ---------- Team ---------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 860px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.team-card {
    overflow: hidden;
}

.team-card img {
    aspect-ratio: 4/5;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.6s var(--ease-fluid), transform 0.7s var(--ease-fluid);
    display: block;
}

.team-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.06);
}

.team-card h4 {
    margin-top: 1rem;
    font-size: 1.05rem;
}

.team-card span {
    font-size: 0.85rem;
    color: var(--rouge-signal);
    font-weight: 600;
}

/* ---------- Valeurs ---------- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8rem;
}

@media (max-width: 900px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.value-card {
    border-top: 3px solid var(--rouge-signal);
    padding-top: 1.2rem;
}

.value-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.value-card p {
    font-size: 0.88rem;
    color: var(--gris-ardoise);
}

.value-card {
    transition: transform 0.5s var(--ease-fluid);
}

.value-card:hover {
    transform: translateY(-4px);
}

/* ============================================================
   FLUIDITÉ AVANCÉE — parallax, tilt, transitions de page, curseur
   ============================================================ */

/* Scrollbar fine et discrète (Webkit) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gris-lin);
}

::-webkit-scrollbar-thumb {
    background: var(--gris-ligne);
    border-radius: 6px;
    border: 2px solid var(--gris-lin);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--rouge-signal);
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--gris-ligne) var(--gris-lin);
}

/* Transition d'entrée / sortie de page (fondu doux entre les pages) */
body {
    opacity: 0;
    transition: opacity 0.45s var(--ease-fluid);
}

body.is-ready {
    opacity: 1;
}

body.is-leaving {
    opacity: 0;
}

/* Parallax léger sur le visuel du hero (piloté en JS via --parallax-y) */
.hero__bg {
    transform: translateY(calc(var(--parallax-y, 0px) * 0.4));
    transition: transform 0.05s linear;
}

.hero__visual {
    transform: translateY(calc(var(--parallax-y, 0px) * -0.12));
}

/* Tilt 3D léger au survol (piloté en JS via --tilt-x / --tilt-y) */
.service-card,
.team-card,
.duo__col {
    perspective: 900px;
}

.service-card.tilt,
.team-card.tilt {
    transform: translateY(-4px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
    transition: transform 0.12s linear;
}

.service-card:not(.tilt),
.team-card:not(.tilt) {
    transition: transform 0.5s var(--ease-fluid), filter 0.6s var(--ease-fluid), background 0.5s var(--ease-fluid), box-shadow 0.5s var(--ease-fluid);
}

/* Lueur discrète qui suit le curseur dans le hero */
.cursor-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 420px;
    height: 420px;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(228, 3, 46, 0.10) 0%, rgba(228, 3, 46, 0) 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.hero:hover .cursor-glow {
    opacity: 1;
}

/* Sous-lignage progressif des liens de contenu (texte lu) */
.lead a,
p a:not(.btn) {
    background-image: linear-gradient(var(--rouge-signal), var(--rouge-signal));
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0% 1.5px;
    transition: background-size 0.4s var(--ease-fluid);
}

.lead a:hover,
p a:not(.btn):hover {
    background-size: 100% 1.5px;
}

/* Respect du confort de lecture : on désactive les mouvements superflus */
@media (prefers-reduced-motion: reduce) {

    .hero__bg,
    .hero__visual {
        transform: none !important;
    }

    .cursor-glow {
        display: none !important;
    }

    body {
        opacity: 1 !important;
        transition: none !important;
    }
}

/* ============================================================
   HERO — particules, typewriter, glitch (mix dosé, sobre)
   ============================================================ */

/* Canvas de particules discret, en fond du hero */
.hero-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

/* Eyebrow en machine à écrire */
.eyebrow--type__text::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 0.85em;
    background: currentColor;
    margin-left: 3px;
    vertical-align: -0.1em;
    animation: caret-blink 0.9s steps(1) infinite;
}

@keyframes caret-blink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

/* Glitch RVB très bref, déclenché une seule fois au chargement */
.accent--glitch {
    position: relative;
    display: inline-block;
}

.accent--glitch.glitching::before,
.accent--glitch.glitching::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--blanc);
    overflow: hidden;
}

.accent--glitch.glitching::before {
    clip-path: inset(0 0 55% 0);
    color: var(--rouge-profond);
    animation: glitch-slice-1 0.45s steps(2, end) 1;
}

.accent--glitch.glitching::after {
    clip-path: inset(55% 0 0 0);
    color: var(--noir-encre);
    animation: glitch-slice-2 0.45s steps(2, end) 1;
}

@keyframes glitch-slice-1 {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-4px, -1px);
    }

    50% {
        transform: translate(3px, 1px);
    }

    75% {
        transform: translate(-2px, 1px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes glitch-slice-2 {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(4px, 1px);
    }

    50% {
        transform: translate(-3px, -1px);
    }

    75% {
        transform: translate(2px, -1px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-particles {
        display: none;
    }

    .eyebrow--type__text::after {
        display: none;
    }
}

/* ============================================================
   SOUS-PAGES — entrée animée du page-hero + rows interactives
   ============================================================ */

.page-hero .container>* {
    opacity: 0;
    animation: hero-in 0.8s var(--ease-fluid) forwards;
}

.page-hero .container>*:nth-child(1) {
    animation-delay: 0.05s;
}

.page-hero .container>*:nth-child(2) {
    animation-delay: 0.15s;
}

.page-hero .container>*:nth-child(3) {
    animation-delay: 0.28s;
}

.page-hero .container>*:nth-child(4) {
    animation-delay: 0.4s;
}

/* Ligne pulse en pied de titre sur les sous-pages */
.page-hero .pulse-line {
    max-width: 320px;
    margin: 1.3rem 0 0;
}

/* Lignes du process (services) : légère réaction au survol */
.process__row {
    transition: padding-left 0.35s var(--ease-fluid), border-color 0.35s ease;
}

.process__row:hover {
    padding-left: 0.6rem;
    border-color: var(--rouge-signal);
}

.process__row:hover .process__step {
    transform: scale(1.12);
}

.process__step {
    transition: transform 0.35s var(--ease-fluid), color 0.35s ease;
    display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
    .page-hero .container>* {
        opacity: 1;
        animation: none !important;
    }
}

.trust-section {
    padding: 80px 0;
    overflow: hidden;
}

.trust-header {
    text-align: center;
    margin-bottom: 48px;
}

.trust-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.trust-marquee+.trust-marquee {
    margin-top: 16px;
}

.trust-track {
    display: flex;
    align-items: center;
    gap: 64px;
    width: max-content;
    animation: trustScrollLeft linear infinite;
}

.trust-track-reverse {
    animation-name: trustScrollRight;
}

.trust-marquee:hover .trust-track {
    animation-play-state: paused;
}

.trust-logo {
    flex: 0 0 auto;
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.trust-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

@keyframes trustScrollLeft {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes trustScrollRight {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .trust-logo {
        height: 36px;
    }

    .trust-track {
        gap: 40px;
    }
}