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

html {
    scroll-behavior: smooth;
}

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

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

ul,
ol {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ========== VARIABLES ========== */
:root {
    --bg: #ffffff;
    --text: #111111;
    --accent: #000000;
    --muted: #777777;
    --border: #e0e0e0;
    --primary: #2563eb;

    --container: 1200px;
    --radius: 12px;

    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --duration: 0.3s;
}

/* ========== UTILITAIRES ========== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--duration) var(--ease);
}

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

.header__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 96px;
}

/* Logo */
.header__logo {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    flex-shrink: 0;
}

.header__logo-img {
    height: 44px;
    width: auto;
    filter: invert(1);
    transition: opacity var(--duration) var(--ease);
}

.header__logo:hover .header__logo-img {
    opacity: 0.7;
}

/* Navigation */
.header__nav {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header__nav-list {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.header__nav-link {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.02em;
    position: relative;
    padding: 0.25rem 0;
    transition: color var(--duration) var(--ease);
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--primary);
    transition: width var(--duration) var(--ease);
}

.header__nav-link:hover,
.header__nav-link.active {
    color: var(--primary);
}

.header__nav-link:hover::after,
.header__nav-link.active::after {
    width: 100%;
}

/* Language Switcher — Dropdown */
.header__lang {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    flex-shrink: 0;
}

.header__lang-toggle {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    padding: 0.4rem 0;
    transition: opacity var(--duration) var(--ease);
}

.header__lang-toggle:hover {
    opacity: 0.6;
}

.header__lang-chevron {
    width: 20px;
    height: 20px;
    transition: transform var(--duration) var(--ease);
    order: -1;
}

.header__lang.open .header__lang-chevron {
    transform: rotate(180deg);
}

.header__lang-option {
    color: var(--muted);
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    transition: all var(--duration) var(--ease);
}

.header__lang-option.active {
    color: var(--text);
    font-weight: 700;
    font-size: 1.3rem;
}

/* Dropdown */
.header__lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--text);
    color: var(--bg);
    border-radius: 0;
    padding: 0.8rem 0.7rem;
    min-width: 90px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--duration) var(--ease);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.header__lang.open .header__lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header__lang-dropdown-item {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
    padding: 0.6rem 0.6rem;
    border-radius: 0;
    transition: all var(--duration) var(--ease);
}

.header__lang-dropdown-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.header__lang-dropdown-item.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

/* ========== HAMBURGER BUTTON ========== */
.header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    z-index: 1001;
}

.header__burger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    transition: all 0.3s var(--ease);
    transform-origin: center;
}

/* Burger X animation */
.header__burger.active .header__burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header__burger.active .header__burger-line:nth-child(2) {
    opacity: 0;
}

.header__burger.active .header__burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== NAV OVERLAY ========== */
.header__nav-overlay {
    display: none;
}

/* ========== RESPONSIVE — BURGER ========== */
@media (max-width: 900px) {
    .header__inner {
        height: 72px;
    }

    .header__logo-img {
        height: 34px;
    }

    .header__burger {
        display: flex;
        position: absolute;
        right: 2rem;
        top: 50%;
        transform: translateY(-50%);
    }

    /* Nav becomes a flex column to push lang to bottom */
    .header__nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: #ffffff;
        border-left: 1px solid var(--border);
        transform: translateX(100%);
        transition: transform 0.4s var(--ease);
        z-index: 1000;
        padding: 6rem 2rem 2rem;
        display: flex;
        flex-direction: column;
    }

    .header__nav.open {
        transform: translateX(0);
    }

    .header__nav-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 280px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.4);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s var(--ease);
    }

    .header__nav.open .header__nav-overlay {
        opacity: 1;
        visibility: visible;
    }

    .header__nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.8rem;
    }

    .header__nav-link {
        font-size: 1.4rem;
    }

    /* Lang switcher — Style 7 Bordered Toggle */
    .header__lang {
        position: static;
        transform: none;
        margin-top: 2rem;
    }

    .header__lang-toggle {
        display: flex;
        align-items: center;
        gap: 0;
        font-size: 1rem;
        padding: 0;
    }

    .header__lang-chevron {
        display: none;
    }

    .header__lang-dropdown {
        display: none !important;
    }

    .header__lang-option {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.6rem 1.2rem;
        border: 2px solid var(--text);
        font-size: 1rem;
        font-weight: 600;
        color: var(--muted);
        cursor: pointer;
        transition: all 0.3s;
        letter-spacing: 0.03em;
    }

    .header__lang-option:first-of-type {
        border-right: none;
    }

    .header__lang-option.active {
        background: var(--text);
        color: var(--bg);
        font-size: 1rem;
        font-weight: 600;
    }
}

/* ========== RESPONSIVE — MOBILE ========== */
@media (max-width: 480px) {
    .container {
        padding: 0 1.2rem;
    }

    .header__inner {
        height: 64px;
    }

    .header__logo-img {
        height: 28px;
    }

    .header__nav {
        width: 100%;
    }

    .header__nav-link {
        font-size: 1.25rem;
    }
}

/* ========== HERO — BLOC 1.1 ========== */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding-top: 96px;
    background-image: radial-gradient(rgba(37, 99, 235, 0.1) 1px, transparent 1px);
    background-size: 32px 32px;
    overflow: hidden;
}

.hero__deco {
    position: absolute;
    border-radius: 50%;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0.15;
    z-index: -1;
    animation: float 6s ease-in-out infinite alternate;
}

.hero__deco--1 {
    width: 350px;
    height: 350px;
    top: 10%;
    left: 5%;
}

.hero__deco--2 {
    width: 250px;
    height: 250px;
    bottom: 10%;
    right: 10%;
    animation-delay: -3s;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-30px) scale(1.05);
    }
}

.hero__inner {
    text-align: center;
}

.hero__title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(3.2rem, 9vw, 6.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--text);
}

.hero__highlight {
    color: #2563eb;
}

.hero__underline {
    position: relative;
    display: inline-block;
}

.hero__arc {
    position: absolute;
    left: -2%;
    bottom: -6px;
    width: 104%;
}

.hero__action {
    display: flex;
    justify-content: center;
}

/* ===== BLOC 1.2 — PROJETS PREVIEW ===== */
.projects-preview {
    padding: 4rem 0 6rem;
    overflow: hidden;
}

.projects-preview__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

.projects-preview__title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--text);
}

.projects-preview__cta {
    font-size: 0.95rem;
    font-weight: 500;
    color: #2563eb;
    text-decoration: none;
    transition: opacity 0.2s;
}

.projects-preview__cta:hover {
    opacity: 0.7;
}

.projects-preview__marquee {
    width: 100%;
    overflow: hidden;
}

.projects-preview__track {
    display: flex;
    gap: 4px;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

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

.projects-preview__card {
    text-decoration: none;
    color: #fff;
    display: block;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    width: 420px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projects-preview__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
}

.projects-preview__img-wrap {
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

.projects-preview__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.projects-preview__card:hover .projects-preview__img {
    transform: scale(1.05);
}

.projects-preview__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 1.2rem 1.2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.projects-preview__card:hover .projects-preview__info {
    opacity: 1;
}

.projects-preview__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.4rem;
}

.projects-preview__tag::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

.projects-preview__name {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
}


/* ===== BLOC 1.25 — À PROPOS ===== */
.about {
    padding: 6rem 0 8rem;
    background: linear-gradient(180deg, var(--bg) 0%, rgba(37, 99, 235, 0.02) 100%);
    border-top: 1px solid var(--border);
}

.about__inner {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 992px) {
    .about__inner {
        flex-direction: row;
        justify-content: space-between;
        gap: 6rem;
    }
}

.about__content {
    flex: 1;
    max-width: 600px;
}

.about__title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 2.5rem;
    color: var(--text);
    line-height: 1.2;
}

.about__title .hero__arc {
    bottom: -6px;
}

.about__text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about__software-logos {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.software-logo {
    height: 32px;
    width: auto;
    opacity: 0.6;
    filter: grayscale(100%) contrast(1.2);
    transition: all 0.3s var(--ease);
}

.software-logo:hover {
    opacity: 1;
    filter: grayscale(0%) contrast(1);
    transform: translateY(-2px);
}

.about__image-wrapper {
    flex: 1;
    position: relative;
    max-width: 500px;
    width: 100%;
}

.about__image-deco {
    position: absolute;
    top: 2rem;
    left: 2rem;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    z-index: 0;
    transition: transform 0.4s var(--ease);
}

.about__image {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: var(--radius);
    aspect-ratio: 4/5;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.about__image-wrapper:hover .about__image {
    transform: translate(-10px, -10px) scale(1.02);
}

.about__image-wrapper:hover .about__image-deco {
    transform: translate(15px, 15px);
    background: rgba(37, 99, 235, 0.05);
}

/* ===== À PROPOS DÉTAILLÉ (about.html) ===== */
.about__extended {
    margin-top: 6rem;
    padding-top: 5rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

.about__extended::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 4px;
}

.about__subtitle {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text);
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-box {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.3s var(--ease);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}

.stat-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.3);
}

.stat-box:hover::before {
    transform: scaleX(1);
}

/* 4ème carré cliquable (alternance) */
.stat-box--link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.stat-box--link .stat-box__title {
    color: var(--primary);
}

/* Version pleine largeur sous la grille */
.stat-box--wide {
    width: 100%;
    margin-top: 1.5rem;
    text-align: center;
}

.stat-box__title {
    display: block;
    font-family: 'Unbounded', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.stat-box__desc {
    display: block;
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 500;
}

.about__cta-section {
    margin-top: 6rem;
    width: 100%;
    padding: 7rem 2rem;
    background: var(--bg);
    text-align: center;
}

/* Trait bleu centré en haut du bloc */
.about__cta-section::before {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    margin: 0 auto 3rem;
}

.about__cta {
    max-width: 680px;
    margin: 0 auto;
}

.about__cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Pill label */
.about__cta-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.about__cta-title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1.25rem;
    color: var(--text);
    letter-spacing: -0.03em;
}

.about__cta-sub {
    font-size: 1.05rem;
    color: var(--muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 440px;
}

.btn--cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #2563eb;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.45);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.btn--cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn--cta:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.55);
    background: #1d4ed8;
}

.btn--cta:hover::before {
    opacity: 1;
}

.btn--cta svg {
    transition: transform 0.3s ease;
}

.btn--cta:hover svg {
    transform: translateX(5px);
}

.about__journey p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 1.5rem;
    max-width: 800px;
    position: relative;
    padding-left: 1.5rem;
}

.about__journey p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.7;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

.skill-card {
    background: var(--bg);
    padding: 3rem 2.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, transparent 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.3);
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-card h4 {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--text);
    position: relative;
    display: inline-block;
}

.skill-card h4::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.skill-card:hover h4::after {
    width: 100%;
}

.skill-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--muted);
    margin-top: 1.5rem;
}

/* ===== BLOC 1.3 — AVIS ===== */
.testimonials {
    padding: 2rem 0 6rem;
}

.testimonials__header {
    margin-bottom: 5rem;
    text-align: center;
}

.testimonials__title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--text);
}

.testimonials__grid {
    display: grid;
    gap: 4rem;
    padding: 0 1.5rem;
    /* Fallback for mobile padding */
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .testimonials__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8rem;
        padding: 0 4rem;
        /* Sors du cadre standard qui est de 1200px */
    }
}

.testimonial-item {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 2rem;
    border-radius: var(--radius);
    transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}

.testimonial-item:hover {
    transform: translateY(-8px);
    background: rgba(37, 99, 235, 0.03);
}

.testimonial-item::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: 'Unbounded', sans-serif;
    font-size: 6rem;
    color: var(--primary);
    opacity: 0.1;
    line-height: 1;
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.testimonial-item:hover::before {
    opacity: 0.2;
    transform: scale(1.1) rotate(-5deg) translateY(-5px);
}

.testimonials__slider {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
    /* Empêche le débordement sur les bords de l'écran */
}

.testimonials__track-container {
    overflow: hidden;
    width: 100%;
}

.testimonials__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2rem;
    padding-top: 1rem;
    gap: 2rem;

    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.testimonials__track::-webkit-scrollbar {
    display: none;
}

.testimonial-item {
    /* Full width on mobile so it doesn't peek and overflow */
    flex: 0 0 100%;
    min-width: 100%;
    scroll-snap-align: center;
    background: transparent;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    position: relative;
    cursor: grab;
}

.testimonial-item:active {
    cursor: grabbing;
}

/* Restored side dividers */
.testimonial-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 80%;
    right: -1rem;
    width: 1px;
    background-color: rgba(37, 99, 235, 0.15);
}

@media (min-width: 768px) {
    .testimonial-item {
        /* 3 items per view on desktop, gap is 2rem */
        flex: 0 0 calc((100% - 4rem) / 3);
        min-width: calc((100% - 4rem) / 3);
        padding: 4rem 4rem;
        /* Encore plus aéré */
    }

    .testimonial-item:not(:last-child)::after {
        top: 0;
        bottom: 0;
        height: auto;
        transform: none;
    }
}

.testimonials__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: var(--text);
    cursor: pointer;
    flex-shrink: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.testimonials__arrow:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.testimonials__arrow:disabled {
    opacity: 0;
    cursor: default;
    pointer-events: none;
}

.testimonials__arrow--prev {
    left: 10px;
}

.testimonials__arrow--next {
    right: 10px;
}

@media (min-width: 768px) {
    .testimonials__arrow {
        position: static;
        transform: none;
        width: 48px;
        height: 48px;
        background: transparent;
    }

    .testimonials__arrow:disabled {
        opacity: 0.3;
        cursor: not-allowed;
        background: transparent;
        pointer-events: auto;
    }
}

.testimonial-item__text {
    font-size: 1.25rem;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 3rem;
    /* Espace plus grand entre le texte et l'auteur */
    font-weight: 400;
    text-align: center;
    /* Alignement centré demandé */
}

.testimonial-item__author {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centre les éléments enfants (nom, entreprise) */
    text-align: center;
    gap: 0.3rem;
    margin-top: auto;
    /* Pousse l'auteur tout en bas pour les aligner tous au même niveau */
}


.testimonial-item__person {
    white-space: nowrap;
}

.testimonial-item__name {
    /* Mettre "comme les autres", on laisse hériter les styles normaux */
    font-weight: 500;
}

.testimonial-item__company {
    font-weight: 700;
    /* Entreprise en gras */
    color: var(--text);
}

.testimonials__action {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

.btn {
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn--pill {
    background: var(--primary);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 500;
    border: none;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.btn--pill:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4);
}

/* ===== BLOC 1.4 — COLLABORATIONS ===== */
.collaborations {
    padding: 6rem 0;
    border-top: 1px solid var(--border);
}

.collaborations__header {
    text-align: center;
    margin-bottom: 4rem;
}

.collaborations__title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--text);
}

/* Adjust the arc spacing just for this section */
.collaborations__title .hero__arc {
    bottom: -2px;
}

.collaborations__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
    justify-items: center;
}

@media (min-width: 600px) {
    .collaborations__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem;
        max-width: 1100px;
        margin: 0 auto;
    }
}

@media (min-width: 900px) {
    .collaborations__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 4rem;
        max-width: 1100px;
        margin: 0 auto;
    }
}

.collaboration-item {
    display: flex;
    justify-content: center;
    align-items: center;
    filter: grayscale(100%) opacity(60%);
    transition: filter var(--duration) var(--ease), transform var(--duration) var(--ease);
    height: 120px;
    width: 100%;
}

.collaboration-item--dark-logo {
    filter: grayscale(100%) opacity(60%) brightness(0);
}

.collaboration-item:hover {
    filter: grayscale(0%) opacity(100%);
    transform: scale(1.05);
}

.collaboration-item--dark-logo:hover {
    filter: grayscale(0%) opacity(100%) brightness(0);
}

.collaboration-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.collaboration-item--placeholder {
    border: 2px dashed var(--border);
    border-radius: 8px;
    opacity: 0.4;
}

@media (max-width: 600px) {
    .projects-preview__header {
        flex-direction: column;
        gap: 0.8rem;
    }

    .projects-preview__card {
        width: 260px;
    }
}

/* ===== BLOC 1.6 — CONTACT ===== */
.contact {
    padding: 10rem 0;
    text-align: center;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.contact__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.contact__title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1rem;
}

.contact__desc {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact__action {
    margin-top: 2rem;
}

.contact__form {
    width: 100%;
    max-width: 800px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: left;
}

@media (min-width: 600px) {
    .contact__form {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form__group--full {
    grid-column: 1 / -1;
}

.form__label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--muted);
}

.form__input,
.form__textarea {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__input:focus,
.form__textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form__submit {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
    gap: 1rem;
}

.form__status {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

.form__status.form__status--success {
    color: var(--text);
    /* Matches site aesthetic */
    opacity: 1;
}

.form__status.form__status--error {
    color: #2563eb;
    /* Primary blue */
    opacity: 1;
}

.contact__btn {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.1rem;
    padding: 1.2rem 3rem;
    border: none;
    cursor: pointer;
}

/* ===== BLOC 1.5 — ALTERNANCE ===== */
.alternance {
    display: block;
    text-decoration: none;
    position: relative;
    padding: 12rem 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    overflow: hidden;
    text-align: center;
}

/* Version intégrée dans about.html */
.alternance--inline {
    margin: 3rem 0 2rem;
    padding: 5rem 2rem;
    border-top: none;
    border-radius: var(--radius);
}

.alternance__watermark {
    position: absolute;
    left: -2%;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(10rem, 22vw, 20rem);
    font-weight: 900;
    color: var(--text);
    opacity: 0.04;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.04em;
}

.alternance__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.alternance__subtag {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: var(--text);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.alternance__subtag strong {
    font-weight: 700;
}

.alternance__title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(1.8rem, 4.5vw, 3.5rem);
    font-weight: 200;
    letter-spacing: -0.01em;
    color: var(--text);
    line-height: 1.1;
}

.alternance__badge {
    display: inline-block;
    border: 2.5px solid var(--text);
    border-radius: 100px;
    padding: 0.4rem 2rem;
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(1.8rem, 4.5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text);
    line-height: 1.2;
    background: transparent;
    transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease),
        letter-spacing 0.4s var(--ease), transform 0.4s var(--ease);
}

.alternance:hover .alternance__badge {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    letter-spacing: 0.06em;
    transform: scale(1.04);
}

.alternance__title {
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.alternance:hover .alternance__title {
    opacity: 0.5;
    transform: translateY(-4px);
}

.alternance__date {
    font-size: 1rem;
    font-weight: 400;
    color: var(--muted);
    letter-spacing: 0.05em;
    margin-top: 0.6rem;
    font-style: italic;
}

.alternance__date strong {
    font-weight: 700;
    font-style: normal;
    color: var(--text);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--text);
    color: var(--bg);
    padding: 4rem 0 2.5rem;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Top row */
.footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer__logo-img {
    height: 36px;
    width: auto;
    filter: invert(0);
    opacity: 0.9;
    transition: opacity var(--duration) var(--ease);
}

.footer__logo:hover .footer__logo-img {
    opacity: 0.6;
}

.footer__nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.footer__nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color var(--duration) var(--ease);
}

.footer__nav-link:hover {
    color: #fff;
}

/* Divider */
.footer__divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

/* Bottom row */
.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer__copy {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.03em;
}

.footer__copy strong {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.footer__socials {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    transition: color var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.footer__social-link:hover {
    color: #fff;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 600px) {
    .footer__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .footer__nav {
        gap: 1.2rem;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========== ANIMATIONS ========== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}