/* ============================================================
   BOURGOGNE LOGISTIQUE – expertise.css
   Style: Industrial-Tech / Direction: Hardware meet Software
   Sections: Hero · Infrastructure · ERP Mockup · Timeline · CTA
   Mobile-first · Vanilla CSS · BEM · No framework
   ============================================================ */

/* ==============================================================
   VARIABLES SPÉCIFIQUES EXPERTISE
   ============================================================== */
:root {
    --erp-bg: #0a1628;
    --erp-surface: #111f35;
    --erp-border: rgba(28, 156, 63, 0.18);
    --erp-text-dim: #64748b;
    --accent-glow-strong: rgba(28, 156, 63, 0.28);
    --tech-glow:
        0 0 40px rgba(28, 156, 63, 0.22), 0 0 80px rgba(28, 156, 63, 0.1);
}

/* ==============================================================
   UTILITAIRES PARTAGÉS – Section headers
   ============================================================== */
.section-header {
    text-align: center;
    max-width: 660px;
    margin-inline: auto;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(0.6875rem, 1.2vw, 0.8125rem);
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.875rem;
}

.section-eyebrow--tech {
    color: #38d36f;
    text-shadow: 0 0 12px rgba(56, 211, 111, 0.5);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.875rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 1rem;
}

.section-title-accent {
    color: var(--accent);
}

.section-desc {
    font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 58ch;
    margin-inline: auto;
}

/* ==============================================================
   HERO EXPERTISE
   ============================================================== */
.xp-hero {
    position: relative;
    padding-block: clamp(5rem, 10vw, 8rem) clamp(4rem, 7vw, 6rem);
    overflow: hidden;
    border-bottom: 1px solid var(--grid-line);
}

/* Grille de fond industrielle */
.xp-hero__bg-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(
        ellipse 80% 60% at 50% 40%,
        black 40%,
        transparent 100%
    );
}

/* Anneau technique décalé */
.xp-hero__glow {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(400px, 70vw, 900px);
    height: clamp(300px, 50vw, 600px);
    border: 1px solid rgba(28, 156, 63, 0.12);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.xp-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    /* minmax(0, …) : une piste `1fr` ne descend pas sous le min-content
       de son contenu et déborde du conteneur sur les petits écrans. */
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3rem);
    align-items: center;
}

@media (min-width: 900px) {
    .xp-hero__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 4rem;
    }
}

/* Texte hero */
.xp-hero__text {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.xp-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(0.6875rem, 1.2vw, 0.8125rem);
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.xp-hero__title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.95;
    color: var(--text);
}

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

.xp-hero__desc {
    font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
    color: var(--text-muted);
    max-width: 56ch;
    line-height: 1.75;
}

.xp-hero__desc strong {
    color: var(--text);
    font-weight: 600;
}

.xp-hero__actions {
    padding-top: 0.5rem;
}

/* KPI Cards hero */
.xp-hero__kpis {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (min-width: 900px) {
    .xp-hero__kpis {
        flex-direction: column;
        gap: 0.875rem;
    }
}

.xp-kpi {
    background-color: var(--brand-light);
    border: 1px solid rgba(226, 232, 240, 0.07);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    min-width: 130px;
    transition:
        transform 0.3s var(--transition-smooth),
        box-shadow 0.3s var(--transition-smooth),
        border-left-color 0.3s var(--transition-smooth);
}

.xp-kpi:hover {
    transform: translateX(5px);
    border-left-color: rgba(56, 211, 111, 0.8);
    box-shadow: 0 4px 24px rgba(28, 156, 63, 0.14);
}

.xp-kpi__value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.xp-kpi__label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

/* ==============================================================
   SECTION INFRASTRUCTURE – Spec Grid
   ============================================================== */
.infra {
    padding-block: clamp(4rem, 8vw, 7rem);
    background-color: var(--brand);
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 1.25rem;
}

.spec-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--brand-light);
    border: 1px solid var(--line);
    border-top: 2px solid var(--surface-3);
    clip-path: var(--clip-panel);
    padding: clamp(1.25rem, 2.5vw, 1.875rem);
    position: relative;
    transition:
        transform 0.3s var(--transition-smooth),
        border-top-color 0.3s var(--transition-smooth),
        border-color 0.3s var(--transition-smooth);
}

/* Repères d'angle sur les coins non coupés */
.spec-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background:
        linear-gradient(var(--accent), var(--accent)) top right / 16px 2px no-repeat,
        linear-gradient(var(--accent), var(--accent)) top right / 2px 16px no-repeat,
        linear-gradient(var(--accent), var(--accent)) bottom left / 16px 2px no-repeat,
        linear-gradient(var(--accent), var(--accent)) bottom left / 2px 16px no-repeat;
    transition: opacity 0.3s var(--transition-smooth);
}

.spec-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--accent);
    border-color: var(--line-strong);
}

.spec-card:hover::after {
    opacity: 1;
}

.spec-card__icon {
    width: 52px;
    height: 52px;
    background-color: var(--brand);
    border: 1.5px solid var(--line-strong);
    clip-path: var(--clip-panel-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform 0.35s var(--transition-smooth);
}

.spec-card:hover .spec-card__icon {
    transform: scale(1.1);
}

/* Modifier : carte "chaîne du froid" – accent secondaire bleu glacé */
.spec-card--cold:hover {
    border-top-color: var(--cold);
}

.spec-card--cold .spec-card__icon,
.spec-card--cold .spec-card__value {
    color: var(--cold);
}

.spec-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.spec-card__value {
    font-family: var(--font-display);
    font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.spec-card__title {
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.6vw, 1.1875rem);
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.01em;
}

.spec-card__desc {
    font-size: clamp(0.8125rem, 1.2vw, 0.9375rem);
    color: var(--text-muted);
    line-height: 1.65;
}

/* Modifier : carte enrichie (texte long + liste de points) sur 2 colonnes */
@media (min-width: 720px) {
    .spec-card--wide {
        grid-column: span 2;
    }
}

/* Liste de points clés dans une spec-card */
.spec-card__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.25rem;
    padding-top: 0.875rem;
    border-top: 1px solid var(--line);
}

.spec-card__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: clamp(0.8125rem, 1.2vw, 0.9375rem);
    color: var(--text-muted);
    line-height: 1.5;
}

.spec-card__list li::before {
    content: "";
    flex-shrink: 0;
    margin-top: 0.5em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.spec-card--cold .spec-card__list li::before {
    background: var(--cold);
}

/* ==============================================================
   SECTION ERP PROPRIÉTAIRE
   ============================================================== */
.erp {
    position: relative;
    padding-block: clamp(4rem, 8vw, 7rem);
    background-color: var(--erp-bg);
    overflow: hidden;
}

/* Dégradé décoratif de fond */
.erp__bg-accent {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(
            ellipse 60% 50% at 80% 50%,
            rgba(28, 156, 63, 0.07) 0%,
            transparent 65%
        ),
        radial-gradient(
            ellipse 40% 30% at 20% 80%,
            rgba(28, 156, 63, 0.05) 0%,
            transparent 65%
        );
    z-index: 0;
}

.erp__inner {
    position: relative;
    z-index: 1;
    display: grid;
    /* minmax(0, 1fr) et non 1fr : la piste `1fr` a un minimum `auto`,
       si bien que la maquette ERP imposait sa largeur min-content
       (496px) et débordait de 180px sur un écran de 360px. */
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(3rem, 6vw, 5rem);
    align-items: center;
}

@media (min-width: 1024px) {
    .erp__inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
        gap: 4rem;
    }
}

/* Texte ERP */
.erp__intro {
    font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
    color: var(--text-muted);
    line-height: 1.75;
    margin-block: 1.25rem;
}

.erp__intro strong {
    color: var(--text);
    font-weight: 600;
}

/* Liste de fonctionnalités ERP */
.erp__features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
}

.erp__feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 1.125rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--erp-border);
    border-radius: var(--radius);
    transition:
        background-color 0.25s var(--transition-smooth),
        border-color 0.25s var(--transition-smooth);
}

.erp__feature:hover {
    background-color: rgba(28, 156, 63, 0.07);
    border-color: rgba(28, 156, 63, 0.38);
}

.erp__feature-icon {
    width: 36px;
    height: 36px;
    background-color: rgba(28, 156, 63, 0.12);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
    transition:
        transform 0.3s var(--transition-smooth),
        box-shadow 0.3s var(--transition-smooth);
}

.erp__feature:hover .erp__feature-icon {
    transform: scale(1.15);
    box-shadow: 0 0 16px rgba(28, 156, 63, 0.25);
}

.erp__feature div:last-child {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.erp__feature strong {
    font-size: clamp(0.875rem, 1.3vw, 0.9375rem);
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.erp__feature span {
    font-size: clamp(0.8125rem, 1.1vw, 0.875rem);
    color: var(--text-muted);
    line-height: 1.6;
}

/* Badge connectivité API */
.erp__api-badge {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-top: 1.75rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(
        135deg,
        rgba(28, 156, 63, 0.1) 0%,
        rgba(28, 156, 63, 0.04) 100%
    );
    border: 1px solid rgba(28, 156, 63, 0.3);
    clip-path: var(--clip-panel-sm);
}

.erp__api-badge > div:nth-child(2) {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.erp__api-badge strong {
    font-size: clamp(0.875rem, 1.3vw, 0.9375rem);
    font-weight: 600;
    color: #38d36f;
}

.erp__api-badge p {
    font-size: clamp(0.8125rem, 1.1vw, 0.875rem);
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.erp__api-icon {
    color: var(--accent);
}

.erp__api-connectors {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.erp__connector {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    background-color: rgba(28, 156, 63, 0.1);
    border: 1px solid rgba(28, 156, 63, 0.25);
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    letter-spacing: 0.03em;
}

/* ==============================================================
   ERP WINDOW MOCKUP
   ============================================================== */
.erp__mockup {
    position: relative;
}

/* Lueurs décoratives autour du mockup */
.erp__mockup-glow {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
}

/* Mobile-first : les lueurs restent DANS la largeur de la maquette —
   débordant de 60px, elles ne devaient leur invisibilité qu'au
   `overflow-x: clip` du body. Elles s'échappent à partir de 48rem,
   où la marge latérale existe réellement. */
.erp__mockup-glow--1 {
    width: 280px;
    height: 280px;
    background: rgba(28, 156, 63, 0.18);
    top: -30px;
    right: 0;
}

.erp__mockup-glow--2 {
    width: 200px;
    height: 200px;
    background: rgba(28, 156, 63, 0.1);
    bottom: -40px;
    left: 0;
}

@media (min-width: 48rem) {
    .erp__mockup-glow--1 {
        top: -60px;
        right: -60px;
    }

    .erp__mockup-glow--2 {
        left: -40px;
    }
}

/* Fenêtre navigateur simulée */
.erp-window {
    background-color: var(--erp-bg);
    border: 1px solid rgba(28, 156, 63, 0.25);
    border-radius: 10px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(28, 156, 63, 0.08),
        0 24px 64px rgba(0, 0, 0, 0.6);
    transition: box-shadow 0.4s var(--transition-smooth);
}

.erp-window:hover {
    box-shadow:
        0 0 0 1px rgba(28, 156, 63, 0.2),
        0 28px 80px rgba(0, 0, 0, 0.7);
}

/* Barre titre (navigateur simulé) */
.erp-window__bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.875rem;
    background-color: var(--erp-surface);
    border-bottom: 1px solid var(--erp-border);
}

.erp-window__dots {
    display: flex;
    gap: 5px;
}

.erp-window__dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: rgba(148, 163, 184, 0.2);
}

.erp-window__dots span:nth-child(1) {
    background-color: #ff5f57;
}
.erp-window__dots span:nth-child(2) {
    background-color: #febc2e;
}
.erp-window__dots span:nth-child(3) {
    background-color: #28c840;
}

.erp-window__url {
    flex: 1;
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    padding: 0.2rem 0.625rem;
    font-size: 0.6875rem;
    color: var(--text-muted);
    letter-spacing: 0.01em;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.erp-window__actions {
    color: var(--erp-text-dim);
}

/* Corps dashboard */
.erp-window__body {
    display: flex;
    height: 420px;
}

/* Sidebar */
.erp-sidebar {
    width: 100px;
    background-color: var(--erp-surface);
    border-right: 1px solid var(--erp-border);
    display: flex;
    flex-direction: column;
    padding: 0.875rem 0.5rem;
    gap: 0.5rem;
    flex-shrink: 0;
}

.erp-sidebar__logo {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 0.05em;
    text-align: center;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid var(--erp-border);
    margin-bottom: 0.25rem;
}

.erp-sidebar__logo span {
    color: var(--accent);
}

.erp-sidebar__menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    list-style: none;
}

.erp-sidebar__item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--erp-text-dim);
    border-radius: 5px;
    cursor: default;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.erp-sidebar__item:hover {
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
}

.erp-sidebar__item--active {
    background-color: rgba(28, 156, 63, 0.15);
    color: #38d36f;
}

/* Zone principale dashboard */
.erp-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding: 0.875rem;
    overflow: hidden;
    background-color: var(--erp-bg);
}

/* Header */
.erp-main__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* La pastille « Système opérationnel » fait 158px à elle seule :
       sous ~340px de large elle passe simplement à la ligne. */
    flex-wrap: wrap;
    gap: 0.5rem;
}

.erp-main__greeting {
    font-size: 0.6875rem;
    color: var(--erp-text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Sans min-width: 0, un élément flex refuse de descendre sous son
       min-content et l'ellipsis ne se déclenche jamais. */
    min-width: 0;
}

.erp-status {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    /* Pas de `white-space: nowrap` : « Système opérationnel » mesure
       158px insécables, soit plus que la colonne principale de la
       maquette sous 340px — la pastille sortait du cadre. Elle passe
       maintenant sur deux lignes quand il le faut, et reste sur une
       seule dès qu'il y a la place. */
    text-wrap: balance;
}

.erp-status--ok {
    background-color: rgba(28, 156, 63, 0.15);
    color: #38d36f;
    border: 1px solid rgba(28, 156, 63, 0.3);
}

/* KPI mini cards */
.erp-kpis {
    display: grid;
    /* Les 3 cartes réclament 254px de min-content : sur mobile elles ne
       disposent que de 182px et la troisième était tronquée par
       l'`overflow: hidden` de .erp-main. En auto-fit, elles passent
       d'elles-mêmes à 2 colonnes puis reviennent à 3 dès que la place
       existe (80px est le min-content mesuré d'une carte). */
    grid-template-columns: repeat(auto-fit, minmax(min(80px, 100%), 1fr));
    gap: 0.5rem;
}

.erp-kpi-card {
    background-color: var(--erp-surface);
    border: 1px solid var(--erp-border);
    border-radius: 6px;
    padding: 0.5rem 0.625rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.erp-kpi-card__label {
    font-size: 0.5625rem;
    color: var(--erp-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.2;
}

.erp-kpi-card__value {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.erp-kpi-card__delta {
    font-size: 0.5625rem;
    font-weight: 600;
}

.erp-kpi-card__delta--up {
    color: #38d36f;
}
.erp-kpi-card__delta--down {
    color: #f87171;
}
.erp-kpi-card__delta--neutral {
    color: var(--text-muted);
}

/* Graphique stock */
.erp-chart {
    background-color: var(--erp-surface);
    border: 1px solid var(--erp-border);
    border-radius: 6px;
    padding: 0.625rem;
    flex-shrink: 0;
}

.erp-chart__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.erp-chart__title {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.erp-chart__tag {
    font-size: 0.5625rem;
    font-weight: 600;
    color: var(--accent);
    background-color: rgba(28, 156, 63, 0.12);
    border: 1px solid rgba(28, 156, 63, 0.2);
    border-radius: 999px;
    padding: 0.1rem 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.erp-chart__tag::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 1.5s ease-in-out infinite;
}

.erp-chart__area {
    width: 100%;
}

.erp-chart__area canvas {
    width: 100% !important;
    height: 80px !important;
}

/* Feed expéditions */
.erp-feed {
    flex: 1;
    background-color: var(--erp-surface);
    border: 1px solid var(--erp-border);
    border-radius: 6px;
    padding: 0.625rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.erp-feed__header {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
    padding-bottom: 0.375rem;
    border-bottom: 1px solid var(--erp-border);
    flex-shrink: 0;
}

.erp-feed__list {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 3px;
    list-style: none;
}

.erp-feed__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0.375rem;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.02);
    font-size: 0.5625rem;
    color: var(--text-muted);
    transition: opacity 0.5s ease;
    gap: 0.375rem;
}

.erp-feed__item--new {
    animation: feedSlide 0.4s var(--transition-smooth) forwards;
}

.erp-feed__item-ref {
    font-weight: 600;
    color: var(--text);
    font-family: monospace;
    white-space: nowrap;
}

.erp-feed__item-carrier {
    background-color: rgba(28, 156, 63, 0.1);
    color: #38d36f;
    border-radius: 3px;
    padding: 0.1rem 0.3rem;
    white-space: nowrap;
    font-weight: 600;
}

.erp-feed__item-time {
    color: var(--erp-text-dim);
    margin-left: auto;
    white-space: nowrap;
}

/* ==============================================================
   SECTION PROCESSUS – Timeline
   ============================================================== */
.process {
    padding-block: clamp(4rem, 8vw, 7rem);
    background-color: var(--brand);
    position: relative;
}

.timeline {
    position: relative;
    list-style: none;
    max-width: 800px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Ligne centrale verticale */
.timeline::before {
    content: "";
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--surface-3) 5%,
        var(--accent) 50%,
        var(--surface-3) 95%,
        transparent 100%
    );
}

@media (min-width: 680px) {
    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Étape */
.timeline__step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding-left: 64px;
    padding-bottom: 2.5rem;
    position: relative;
}

@media (min-width: 680px) {
    .timeline__step {
        padding-left: 0;
        padding-right: 0;
        width: 50%;
        align-self: flex-start;
        padding-left: 0;
        padding-bottom: 3rem;
    }

    .timeline__step:nth-child(odd) {
        padding-right: 2.5rem;
        padding-left: 0;
        align-self: flex-start;
    }

    .timeline__step:nth-child(even) {
        align-self: flex-end;
        padding-left: 2.5rem;
        padding-right: 0;
        margin-top: -6rem;
    }
}

/* Connecteur (nœud sur la ligne) */
.timeline__connector {
    position: absolute;
    left: 13px;
    top: 0;
    z-index: 2;
}

@media (min-width: 680px) {
    .timeline__step:nth-child(odd) .timeline__connector {
        right: -12px;
        left: auto;
    }

    .timeline__step:nth-child(even) .timeline__connector {
        left: -12px;
    }
}

.timeline__node {
    width: 48px;
    height: 48px;
    background-color: var(--brand-light);
    border: 2px solid var(--surface-3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition:
        border-color 0.35s var(--transition-smooth),
        color 0.35s var(--transition-smooth),
        box-shadow 0.35s var(--transition-smooth);
}

.timeline__step.is-visible .timeline__node {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 16px rgba(28, 156, 63, 0.3);
}

.timeline__node--accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.timeline__step.is-visible .timeline__node--accent {
    box-shadow: 0 0 24px rgba(28, 156, 63, 0.5);
}

/* Carte contenu */
.timeline__card {
    background-color: var(--brand-light);
    border: 1px solid var(--line);
    clip-path: var(--clip-panel-sm);
    padding: 1.5rem;
    position: relative;
    flex: 1;
    transition: border-color 0.35s var(--transition-smooth);
}

.timeline__step.is-visible .timeline__card {
    border-color: rgba(28, 156, 63, 0.25);
}

.timeline__card--accent {
    background: linear-gradient(
        135deg,
        rgba(28, 156, 63, 0.1) 0%,
        var(--brand-light) 100%
    );
    border-color: rgba(28, 156, 63, 0.2);
}

.timeline__step.is-visible .timeline__card--accent {
    border-color: rgba(28, 156, 63, 0.35);
    box-shadow: 0 8px 32px rgba(28, 156, 63, 0.15);
}

/* Numéro d'étape */
.timeline__step-badge {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.timeline__step-badge--accent {
    color: var(--accent);
}

.timeline__card-title {
    font-family: var(--font-display);
    font-size: clamp(1.125rem, 1.8vw, 1.375rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.625rem;
    letter-spacing: -0.01em;
}

.timeline__card-desc {
    font-size: clamp(0.8125rem, 1.2vw, 0.9375rem);
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Tags */
.timeline__card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    list-style: none;
}

.timeline__card-tags li {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    background-color: rgba(148, 163, 184, 0.07);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 999px;
    padding: 0.2rem 0.625rem;
}

.timeline__card-tags--accent li {
    color: var(--accent);
    background-color: rgba(28, 156, 63, 0.1);
    border-color: rgba(28, 156, 63, 0.2);
}

/* ==============================================================
   SECTION CTA FINAL
   ============================================================== */
.xp-cta {
    padding-block: clamp(4rem, 8vw, 6rem);
    background-color: var(--brand-light);
    position: relative;
    overflow: hidden;
}

.xp-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 80% 60% at 50% 100%,
        rgba(28, 156, 63, 0.1) 0%,
        transparent 65%
    );
    pointer-events: none;
}

.xp-cta__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .xp-cta__inner {
        grid-template-columns: 1fr auto;
        text-align: left;
        gap: 4rem;
    }
}

.xp-cta__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.xp-cta__desc {
    font-size: clamp(0.875rem, 1.4vw, 1rem);
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 52ch;
}

.xp-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .xp-cta__actions {
        justify-content: flex-start;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==============================================================
   ANIMATIONS
   ============================================================== */
@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.85);
    }
}

@keyframes feedSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatY {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@keyframes geoPing {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(3.5);
        opacity: 0;
    }
}
