/* public/css/site-front.css */
/* RESET */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* THEME VARIABLES */
/* =========================
   THEME VARIABLES — TYPO REBALANCED
   ========================= */

:root {
    /* Brand */
    --green: #22c55e;
    --green-strong: #16a34a;
    --white: #f9fafb;
    --black: #020617;
    --text-success: #22c55e; 
    --text-success-soft: #bbf7d0;

    /* Sombre */
    --bg-dark: #020617;
    --bg-soft-dark: #0f172a;
    --text-dark: #f9fafb;
    --text-muted-dark: #9ca3af;
    --card-dark: rgba(15, 23, 42, 0.96);
    --border-dark: rgba(55, 65, 81, 0.95);

    /* Clair */
    --bg-light: #f3f4f6;
    --bg-soft-light: #ffffff;
    --text-light: #1e293b;
    --text-muted-light: #475569; /* ⬅️ un peu plus lisible */
    --card-light: #ffffff;
    --border-light: #d1d5db;

    /* Radius & shadows */
    --radius-lg: 18px;
    --radius-xl: 26px;
    --shadow-deep: 0 20px 60px rgba(0, 0, 0, 0.85);
    --shadow-soft: 0 12px 32px rgba(15, 23, 42, 0.55);

    /* =========================
       TYPOGRAPHY SCALE (REWORK)
       ========================= */

    --fs-xs: 0.85rem;     /* ⬆️ +0.05 → labels secondaires */
    --fs-sm: 0.95rem;     /* ⬆️ +0.075 → meta / notes */
    --fs-base: 1.05rem;   /* ⬆️ base plus confortable */
    --fs-lg: 1.25rem;     /* ⬆️ sous-titres plus affirmés */
    --fs-xl: 1.6rem;      /* ⬆️ titres section */
    --fs-hero: 2.3rem;    /* ⬆️ hero plus impactant */
}

/* THEME DARK (par défaut) */
body[data-theme="dark"],
body:not([data-theme]) {
    background: var(--bg-dark);
    color: var(--text-dark);
}

/* THEME LIGHT */
body[data-theme="light"] {
    background: var(--bg-light);
    color: var(--text-light);
}

/* Cards et blocs principaux selon le thème */
body[data-theme="dark"] .card,
body[data-theme="dark"] .service-card,
body[data-theme="dark"] .sector-card,
body[data-theme="dark"] .brand-card,
body[data-theme="dark"] .contact-form,
body[data-theme="dark"] .impact-card {
    background: var(--card-dark);
    border-color: var(--border-dark);
    color: var(--text-dark);
}

body[data-theme="light"] .card,
body[data-theme="light"] .service-card,
body[data-theme="light"] .sector-card,
body[data-theme="light"] .brand-card,
body[data-theme="light"] .contact-form,
body[data-theme="light"] .impact-card {
    background: var(--card-light);
    border-color: var(--border-light);
    color: var(--text-light);
}

body[data-theme="dark"] .section__subtitle,
body[data-theme="dark"] p,
body[data-theme="dark"] .metric-card__label {
    color: var(--text-muted-dark);
}

body[data-theme="light"] .section__subtitle,
body[data-theme="light"] p,
body[data-theme="light"] .metric-card__label {
    color: var(--text-muted-light);
}

/* APP SHELL */
.app {
    max-width: 1220px;
    margin: 0 auto;
    padding: 18px 18px 40px;
    position: relative;
    z-index: 1;
}

/* BACKGROUND GLOW */
.bg-glow {
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
    animation: pulseGlow 12s ease-in-out infinite alternate;
}

.bg-glow--left {
    top: 0;
    left: -120px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.9), transparent);
}

.bg-glow--right {
    bottom: -60px;
    right: -80px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.8), transparent);
}

@keyframes pulseGlow {
    from { transform: scale(1); opacity: 0.4; }
    to { transform: scale(1.15); opacity: 0.7; }
}

/* HEADER */
.header {
    position: sticky;
    top: 12px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(75, 85, 99, 0.9);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(18px);
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== LOGO IMAGE R3 (header + footer) ===== */

.header__logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

/* === LOGO ROND – HEADER & FOOTER === */

.logo-img-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    background: #ffffff !important; 
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* L'image remplit légèrement plus que le cadre pour éviter les bord blancs */
.logo-img {
    width: 80%;
    height: auto;
    display: block;
}

/* Footer : un peu plus grand si tu veux */
.footer__logo-img-wrap {
    width: 46px;
    height: 46px;
}


/* Légère adaptation en fonction du thème */
body[data-theme="dark"] .logo-img {
    /* logo un peu plus “lumineux” sur fond sombre */
    filter: drop-shadow(0 0 6px rgb(253, 253, 253));
}

body[data-theme="light"] .logo-img {
    /* ombre légère pour le détacher sur fond clair sans le dénaturer */
    filter: drop-shadow(0 2px 6px rgb(254, 254, 254));
}

/* Footer : logo un poil plus grand */
.footer__logo-img {
    height: 40px;
}

/* Responsive : réduire un peu sur mobile */
@media (max-width: 768px) {
    .logo-img {
        height: 28px;
    }

    .footer__logo-img {
        height: 32px;
    }

    .logo-text__sub {
        font-size: 13px;
    }
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: radial-gradient(circle at 10% 0%, #22c55e, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #ecfdf5;
    box-shadow:
        0 0 0 1px rgba(34, 197, 94, 0.4),
        0 0 18px rgba(34, 197, 94, 0.6);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text__main {
    font-weight: 600;
    letter-spacing: 0.12em;
    font-size: 13px;
    text-transform: uppercase;
}

.logo-text__sub {
    font-size: 13px;
    color: #9ca3af;
}

/* NAV */
.nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav__link {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 999px;
    transition: all 0.18s ease;
}

.nav__link:hover {
    color: #f9fafb;
    background: rgba(15, 23, 42, 0.9);
}

.nav__link--ghost {
    border: 1px solid rgba(75, 85, 99, 0.9);
}

/* HEADER ACTIONS (thème + connexion + burger) */
.header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* THEME TOGGLE */
.theme-toggle {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: #f9fafb;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body[data-theme="light"] .theme-toggle {
    color: #0f172a;
    border-color: var(--border-light);
}

/* ICON CONNEXION */
.header__icon {
    font-size: 20px;
    cursor: pointer;
    color: #f9fafb;
    opacity: 0.75;
    transition: opacity 0.25s ease, transform 0.25s ease;
    text-decoration: none;
}

.header__icon:hover {
    opacity: 1;
    transform: translateY(-1px);
}

/* BURGER */
.header__burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
}

.header__burger span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #e5e7eb;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.header__burger.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.header__burger.is-open span:nth-child(2) {
    opacity: 0;
}

.header__burger.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* NAV MOBILE */
.nav-mobile {
    position: fixed;
    inset: 70px 12px auto 12px;
    background: rgba(15, 23, 42, 0.98);
    border-radius: 18px;
    border: 1px solid rgba(75, 85, 99, 0.9);
    padding: 16px;
    display: none;
    flex-direction: column;
    gap: 8px;
    z-index: 19;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.9);
}

.nav-mobile__link {
    color: #f9fafb;
    text-decoration: none;
    font-size: 15px;
    padding: 8px 10px;
    border-radius: 999px;
    transition: background 0.15s ease;
}

.nav-mobile__link:hover {
    background: rgba(15, 23, 42, 0.9);
}

.nav-mobile__cta {
    margin-top: 4px;
}

/* BUTTONS */
.button {
    border-radius: 999px;
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

.button--primary {
    background: linear-gradient(135deg, var(--green), var(--green-strong));
    color: #f6f6f6;
    box-shadow: 0 14px 40px rgba(34, 197, 94, 0.5);
}

.button--primary:hover {
    filter: brightness(1.05);
}

.button--line {
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: transparent;
    color: #f9fafb;
}

.button--line:hover {
    background: rgba(15, 23, 42, 0.9);
}

.button--glow {
    box-shadow:
        0 0 0 1px rgba(34, 197, 94, 0.3),
        0 0 20px rgba(34, 197, 94, 0.6),
        0 18px 40px rgba(34, 197, 94, 0.45);
}

.button--full {
    width: 100%;
}

/* SECTIONS */
.section {
    margin-top: 64px;
}

/* Titres centrés + traits néon */
.section__header {
    margin-bottom: 22px;
    max-width: 100%;
    text-align: center;
    position: relative;
}

.section__header--tight {
    margin-bottom: 14px;
}

.section__title {
    font-size: 26px;
    font-weight: 600;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.section__title::before,
.section__title::after {
    content: "";
    display: inline-block;
    width: 60px;
    height: 1px;
    background: radial-gradient(circle, var(--green), transparent);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
    border-radius: 999px;
}

.section__title-glow {
    display: none;
}

.section__subtitle {
    font-size: 15px;
    margin-top: 4px;
    margin-left: auto;
    margin-right: auto;
    max-width: 640px;
    margin-bottom: 30px;
}

/* SEPARATOR */
.section-separator {
    width: 100%;
    height: 2px;
    margin: 40px 0;
    position: relative;
    z-index: 2;  
    background: linear-gradient(90deg,
        transparent,
        rgba(34, 197, 94, 0.8),
        transparent
    );
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
    opacity: 0.55;
}

/* HERO */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.05fr);
    gap: 28px;
    align-items: center;
    margin-top: 30px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    background: rgba(6, 78, 59, 0.7);
    border: 1px solid rgba(45, 212, 191, 0.9);
    color: #a5f3fc;
    margin-bottom: 12px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.8);
}

.hero__title {
    font-size: 36px;
    line-height: 1.18;
    margin-bottom: 12px;
}

.hero__title-outline {
    padding: 1px 6px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #9ca3af;
}

.hero__title-highlight {
    display: block;
    background: linear-gradient(135deg, #f9fafb, #bbf7d0);
    -webkit-background-clip: text;
    color: transparent;
}

.hero__subtitle {
    font-size: 16px;
    margin-bottom: 18px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.hero__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.metric-card {
    border-radius: var(--radius-lg);
    padding: 10px 12px;
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.95), #020617);
    border: 1px solid rgba(55, 65, 81, 0.95);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.9);
     text-align: center;
}

.metric-card__label {
    font-size: 13px;
    margin-bottom: 4px;
    display: inline-block;
    color: rgba(241,245,249,0.75);
}

body[data-theme="light"] .metric-card__label {
    color: rgba(15,23,42,0.7);
}

.metric-card__value {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

/* Le chiffre */
.metric-card__number {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.5;
    color: #bbf7d0;
}

/* Le texte en dessous */
.metric-card__unit {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.3;
}

/* Mode clair */
body[data-theme="light"] .metric-card__number {
    color: #16a34a;
}

body[data-theme="light"] .metric-card__unit {
    color: #475569;
}

/* HERO VISUAL */
.hero__visual {
    position: relative;
    min-height: 260px;
    perspective: 900px;
}

.hero-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(18px);
    opacity: 0.7;
}

.hero-orb--big {
    width: 230px;
    height: 230px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.7), transparent);
    top: 8%;
    right: -10%;
    animation: driftBig 18s ease-in-out infinite alternate;
}

.hero-orb--small {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.7), transparent);
    bottom: 2%;
    left: 5%;
    animation: driftSmall 16s ease-in-out infinite alternate;
}

@keyframes driftBig {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-20px, 20px, 0); }
}

@keyframes driftSmall {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(12px, -20px, 0); }
}

/* GLASS PANELS */
.glass-panel {
    position: absolute;
    backdrop-filter: blur(18px);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: var(--shadow-deep);
}

.glass-panel--main {
    top: 6%;
    left: -2%;
    right: -4%;
    transform: rotateY(-6deg) rotateX(4deg);
    transform-origin: center;
    padding: 14px 16px;
}

.glass-panel--mini {
    bottom: 8%;
    right: 4%;
    max-width: 210px;
    padding: 10px 14px;
}

.glass-panel__header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 10px;
    color: #9ca3af;
}

.glass-panel__title {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 13px;
}

.glass-panel__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.glass-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.glass-row .label {
    color: #9ca3af;
}

.glass-row .value {
    font-weight: 500;
    color: #f9fafb;
}

body[data-theme="light"] .glass-row .value {
    color: #0f172a;
}

.glass-bar {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.95);
    overflow: hidden;
    margin-top: 6px;
}

.glass-bar__fill {
    height: 100%;
    width: 60%;
    background: linear-gradient(90deg, #22c55e, #a3e635);
    border-radius: inherit;
    animation: barAnim 2.4s ease-in-out infinite alternate;
}

@keyframes barAnim {
    from { width: 38%; }
    to   { width: 82%; }
}

.glass-panel__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    font-size: 13px;
    color: #9ca3af;
}

.glass-panel__label {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 4px;
}

/* TAGS / CHIPS */
.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 13px;
    border: 1px solid rgba(148, 163, 184, 0.5);
}

.chip--green {
    border-color: rgba(34, 197, 94, 0.8);
    background: rgba(34, 197, 94, 0.07);
    color: #bbf7d0;
}

.chip--outline {
    border-color: rgba(148, 163, 184, 0.6);
    color: #9ca3af;
    background: rgba(15, 23, 42, 0.9);
}

.tag {
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 13px;
    border: 1px solid rgba(34, 197, 94, 0.7);
    color: #bbf7d0;
    background: rgba(21, 128, 61, 0.5);
}

/* PROCESS LIST */
.process-list {
    list-style: decimal;
    margin-left: 16px;
    font-size: 14px;
    color: #9ca3af;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* GRID SERVICES */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.service-card {
    border-radius: var(--radius-lg);
    padding: 14px 14px 16px;
    border: 1px solid rgba(55, 65, 81, 0.95);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: translateY(14px) scale(0.98);
    opacity: 0;
    transition:
        transform 0.4s ease,
        opacity 0.4s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        translate 0.18s ease;
}

.service-card.is-visible {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.service-card:hover {
    box-shadow:
        0 0 0 1px rgba(34, 197, 94, 0.3),
        0 18px 40px rgba(0, 0, 0, 0.95);
    border-color: rgba(34, 197, 94, 0.8);
    translate: 0 -3px;
}

.service-card__tag {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: #9ca3af;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(55, 65, 81, 0.95);
}

/* évite que le header couvre le titre au scroll */
.service-card--alt { scroll-margin-top: 90px; }

.service-card__text {
    font-size: 16px;
}

.service-card__list{
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 0;
    margin: 0;
    font-size: 14px;
    color: #9ca3af;
}

.service-card__list li{
    display: flex;              /* ✅ on revient en flex */
    align-items: flex-start;    /* multi-lignes propre */
    gap: 8px;                   /* ✅ gap fonctionne */
    line-height: 1.5;
    min-width: 0;               /* ✅ anti overflow */
}

.service-card__list li::before{
    content: "✔";
    color: var(--green);
    flex: 0 0 auto;             /* ✅ icône fixe */
    line-height: 1.2;
    margin-top: 2px;
}

.service-card__list li > span{
    display: block;             /* ✅ le texte est un bloc */
    flex: 1 1 auto;             /* ✅ prend la place restante */
    min-width: 0;               /* ✅ empêche les débordements */
}

/* optionnel : si tu as des mots très longs / URLs */
.service-card__list li > span{
    overflow-wrap: anywhere;
}


/* ===== CTA liens verts néon ===== */

.service-card__cta,
.brand-card__link {
    color: var(--green);
    font-weight: 500;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

.service-card__cta:hover,
.brand-card__link:hover {
    color: #22ff88;
    text-shadow: 0 0 8px rgba(34, 255, 136, 0.7);
}

/* SECTEURS */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.sector-card {
    border-radius: var(--radius-lg);
    padding: 14px 14px 16px;
    border: 1px solid rgba(55, 65, 81, 0.95);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.9);
    transform: translateY(16px);
    opacity: 0;
    transition:
        transform 0.4s ease,
        opacity 0.4s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        translate 0.18s ease;
}

.sector-card.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.sector-card:hover {
    box-shadow:
        0 0 0 1px rgba(34, 197, 94, 0.3),
        0 18px 40px rgba(0, 0, 0, 0.95);
    border-color: rgba(34, 197, 94, 0.8);
    translate: 0 -3px;
}

.sector-card h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.sector-card p {
    font-size: 15px;
    margin-bottom: 8px;
}

/* LAYOUT 2 COLS */
.section__layout {
    display: flex;
    justify-content: space-evenly; /* plus équilibré visuellement */
    align-items: flex-start;
    gap: 32px;
}

.section__column {
    min-width: 0;
}

/* CHECKLIST */
.checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 0;
    margin: 25px 0;
    font-size: var(--fs-base);
}

.checklist li {
    display: flex;
    align-items: flex-start; /* essentiel pour multi-lignes */
    gap: 8px;
    line-height: 1.5;
}

.checklist li::before {
    content: "✔";
    color: var(--green);
    flex-shrink: 0;
    font-size: 0.9em;
    margin-top: 2px; /* alignement optique */
}

.checklist--compact {
    gap: 4px;
    font-size: var(--fs-sm);
}

.checklist--compact li {
    gap: 6px;
    line-height: 1.4;
}

.checklist--compact li::before {
    font-size: 0.8em;
    margin-top: 1px;
}

/* IMPACT SECTION */
.section--impact {
    margin-top: 70px;
}

.impact-card {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(55, 65, 81, 0.95);
    padding: 14px 16px 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95);
}

.impact-card__header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 10px;
}

.impact-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.impact-card__field span {
    font-size: 15px;
    margin-bottom: 4px;
    display: block;
}

.impact-card__field input[type="range"] {
    width: 100%;
}

.impact-card__range-values {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.impact-card__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.impact-stat .label {
    font-size: 13px;
    color: #9ca3af;
}

.impact-stat .value {
    font-size: 16px;
    font-weight: 500;
}

.value--green {
    color: #bbf7d0;
}

.impact-card__note {
    font-size: 13px;
    color: #9ca3af;
}

/* ========================= */
/* CALCULATEUR D'IMPACT RSE */
/* ========================= */

.impact-layout {
    align-items: flex-start;
}

/* Carte formulaire gauche */

.impact-form-card {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(55, 65, 81, 0.95);
    padding: 16px 18px 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95);
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), #020617);
}

body[data-theme="light"] .impact-form-card {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(209, 213, 219, 0.9);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.impact-form-card__header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.impact-form-card__title {
    font-size: 1.05rem;
    font-weight: 600;
}

.impact-form-card__subtitle {
    font-size: 0.9rem;
    margin-top: 4px;
    color: var(--text-muted-dark);
}

body[data-theme="light"] .impact-form-card__subtitle {
    color: var(--text-muted-light);
}

.impact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.impact-form__group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.impact-form__group label {
    font-size: 0.85rem;
    font-weight: 500;
}

.impact-form__hint {
    display: inline-block;
    font-size: 0.75rem;
    opacity: 0.8;
    margin-left: 4px;
}

.impact-form__control {
    border-radius: 999px;
    border: 1px solid rgba(55, 65, 81, 0.95);
    background: #020617;
    color: #f9fafb;
    font-size: 0.95rem;
    padding: 7px 11px;
    outline: none;
}

.impact-form__control:focus {
    border-color: var(--green);
    box-shadow:
        0 0 0 1px rgba(34, 197, 94, 0.6),
        0 0 0 6px rgba(34, 197, 94, 0.18);
}

body[data-theme="light"] .impact-form__control {
    background: #ffffff;
    color: #0f172a;
    border-color: var(--border-light);
}

.impact-form__submit {
    margin-top: 4px;
}

.impact-form__note {
    margin-top: 6px;
    font-size: 0.75rem;
    color: #9ca3af;
}

body[data-theme="light"] .impact-form__note {
    color: #64748b;
}

/* Carte résultats droite */
.impact-results-card {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(55, 65, 81, 0.95);
    padding: 16px 18px 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95);
    background: radial-gradient(circle at top left, rgba(250, 250, 250, 0.98), #f5f5f5);
    display: none;              /* 🔹 MASQUÉE PAR DÉFAUT */
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition:
        opacity 0.4s ease,
        transform 0.4s ease;
}

/* Bloc "impact global" (en dessous) */
.impact-global {
    margin-top: 14px;
    display: none;              /* 🔹 MASQUÉ PAR DÉFAUT */
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition:
        opacity 0.4s ease,
        transform 0.4s ease;
}

.impact-global.is-visible {
    display: block;             /* ou flex selon ton HTML */
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Quand on a fait un calcul : on montre les cartes */
.impact-results-card.is-visible {
    display: flex;              /* 🔹 RÉAPPARAÎT EN FLEX */
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* IMPACT – layout animé */

.section__layout.impact-layout {
    display: flex;
    gap: 26px;
    align-items: flex-start;
}

.impact-layout__col {
    flex: 1;
    min-width: 0;
    transition:
        transform 0.4s ease,
        opacity 0.4s ease;
}

/* Ordre initial : texte à gauche, simulateur à droite */
.impact-layout__col--intro {
    order: 1;
}

.impact-layout__col--simulator {
    order: 2;
}

/* Colonne résultats : à droite au début */
.impact-layout__col--results {
    order: 3;
}

/* Style du bloc intro */
.impact-intro {
    border-radius: 18px;
    padding: 16px 18px;
    border: 1px dashed rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.85);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
    font-size: 0.95rem;
}

body[data-theme="light"] .impact-intro {
    background: rgba(248, 250, 252, 0.96);
    border-color: rgba(148, 163, 184, 0.6);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
}

.impact-intro__title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.impact-intro__text {
    margin-bottom: 6px;
}

.impact-intro__text--hint {
    font-size: 0.85rem;
    opacity: 0.9;
}

.impact-intro__list {
    margin: 8px 0 8px 18px;
    padding: 0;
    font-size: 0.95rem;
}

/* ÉTAT APRÈS CALCUL : le simulateur passe à gauche, le texte disparaît */
.impact-layout--active .impact-layout__col--intro {
    order: 3;
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
}

.impact-layout--active .impact-layout__col--simulator {
    order: 1;
    transform: translateX(-10px);
}

.impact-layout--active .impact-layout__col--results {
    order: 2;                        /* résultats au milieu / à droite */
}
/* Responsive */
@media (max-width: 900px) {
    .section__layout.impact-layout {
        flex-direction: column;
    }

    .impact-layout__col--intro,
    .impact-layout__col--simulator,
    .impact-layout__col--results {
        order: 0;
        transform: none !important;
    }

    .impact-layout--active .impact-layout__col--intro {
        display: none;
    }
}

.impact-results__stat {
    border-radius: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(75, 85, 99, 0.9);
    background: rgba(15, 23, 42, 0.9);
}

body[data-theme="light"] .impact-results__stat {
    background: rgba(15, 23, 42, 0.95);
}

.impact-results__label {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 2px;
}

.impact-results__value {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Valeurs positives (avantages) : CO₂ évité, économies, coût réparation */
.impact-results__value--positive {
    color: #bbf7d0; /* vert clair lisible sur fond sombre */
}

/* Valeur négative (coût à neuf) */
.impact-results__value--negative {
    color: #fecaca; /* rouge clair sur fond sombre */
}

/* Ajustement en mode clair */
body[data-theme="light"] .impact-results__value--positive {
    color: #15803d; /* vert foncé lisible sur fond clair */
}

body[data-theme="light"] .impact-results__value--negative {
    color: #b91c1c; /* rouge foncé lisible sur fond clair */
}


.impact-results__value--accent {
    color: #bbf7d0;
}

.impact-results__sub {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 2px;
}

.impact-results__comment {
    margin-top: 2px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px dashed rgba(75, 85, 99, 0.9);
    background: rgba(190, 191, 192, 0.75);
    font-size: 0.85rem;
}

.impact-results__comment-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin-bottom: 4px;
}

.impact-results__comment-text {
    font-size: 0.9rem;
}

.impact-results__cta {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.impact-results__cta-text {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Bloc "impact global" en dessous */
.impact-global__title {
    font-size: 0.95rem;
    font-weight: 600;
}

.impact-global__subtitle {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 2px;
    margin-bottom: 8px;
}

.impact-global__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.impact-global__card {
    border-radius: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(55, 65, 81, 0.95);
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), #020617);
}

body[data-theme="light"] .impact-global__card {
    background: rgba(255, 255, 255, 0.96);
}

.impact-global__label {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 2px;
}

.impact-global__value {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Grille des résultats : 2 colonnes par défaut */
.impact-results-card__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}


/* Responsive pour le calculateur */

@media (max-width: 1024px) {
    .impact-results-card__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .impact-global__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .impact-global__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* IMPACT – Layout 2 colonnes avec bascule après calcul */

.section__layout.impact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 26px;
    align-items: flex-start;
}

.impact-col {
    min-width: 0;
}

/* ÉTAT INITIAL (avant calcul)
   - Col 1 : intro
   - Col 2 : simulateur
   - Résultats cachés
*/
.impact-col--intro {
    grid-column: 1;
}

.impact-col--form {
    grid-column: 2;
}

.impact-col--results {
    grid-column: 2;
    display: none; /* on cache entièrement la colonne résultats au début */
}

/* ÉTAT APRÈS CALCUL
   .impact-layout--active est ajoutée par le JS
   - Intro disparaît
   - Forme bascule en colonne 1
   - Résultats apparaissent en colonne 2
*/
.impact-layout.impact-layout--active .impact-col--intro {
    display: none;
}

.impact-layout.impact-layout--active .impact-col--form {
    grid-column: 1;
}

.impact-layout.impact-layout--active .impact-col--results {
    display: block;
    grid-column: 2;
}

/* Mobile : on empile, mais on garde la logique avant/après */
@media (max-width: 900px) {
    .section__layout.impact-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .impact-col--intro,
    .impact-col--form,
    .impact-col--results {
        grid-column: 1;
    }

    /* Après calcul : on masque juste l’intro, le reste s’empile form puis résultats */
    .impact-layout.impact-layout--active .impact-col--intro {
        display: none;
    }
}

/* Avant calcul : colonnes quasi équilibrées */
.section__layout.impact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 26px;
    align-items: flex-start;
}

/* Après calcul : simulateur plus étroit, résultats plus larges */
.impact-layout.impact-layout--active {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

/* ====================================================================== */
/*   IMPACT GLOBAL – VERSION PLUS PREMIUM                                 */
/* ====================================================================== */

.impact-global {
    margin-top: 18px;
    padding: 18px 18px 20px;
    border-radius: 20px;
    background: radial-gradient(circle at top left,
        rgba(15, 23, 42, 0.96),
        rgba(2, 6, 23, 0.98)
    );
    border: 1px solid rgba(55, 65, 81, 0.95);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.9);
}

body[data-theme="light"] .impact-global {
    background: rgba(248, 250, 252, 0.96);
    border-color: rgba(209, 213, 219, 0.95);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.impact-global__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.impact-global__title {
    font-size: 0.98rem;
    font-weight: 600;
    margin: 0 0 4px;
}

.impact-global__subtitle {
    font-size: 0.82rem;
    color: #9ca3af;
    margin: 0;
}

body[data-theme="light"] .impact-global__subtitle {
    color: #64748b;
}

.impact-global__chip {
    font-size: 0.75rem;
    padding-inline: 10px;
    white-space: nowrap;
}

/* Grille des 3 cartes */

.impact-global__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

/* Carte */

.impact-global__card {
    position: relative;
    border-radius: 16px;
    padding: 12px 12px 11px;
    border: 1px solid rgba(75, 85, 99, 0.85);
    background: radial-gradient(circle at top left,
        rgba(15, 23, 42, 0.98),
        #020617
    );
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.9);
    overflow: hidden;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease;
}

body[data-theme="light"] .impact-global__card {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(209, 213, 219, 0.95);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

/* Glow léger au survol */

.impact-global__card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left,
        rgba(34, 197, 94, 0.2),
        transparent 55%
    );
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.impact-global__card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 0 0 1px rgba(34, 197, 94, 0.45),
        0 20px 46px rgba(0, 0, 0, 0.95);
    border-color: rgba(34, 197, 94, 0.85);
}

.impact-global__card:hover::before {
    opacity: 1;
}

/* Icône */

.impact-global__icon {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    margin-bottom: 6px;

    background: rgba(15, 23, 42, 0.9);
    color: #bbf7d0;
    box-shadow:
        0 0 0 1px rgba(34, 197, 94, 0.5),
        0 8px 18px rgba(0, 0, 0, 0.9);
}

body[data-theme="light"] .impact-global__icon {
    background: #f9fafb;
    color: #16a34a;
    box-shadow:
        0 8px 18px rgba(15, 23, 42, 0.15),
        0 0 0 1px rgba(209, 213, 219, 0.9);
}

/* Variantes (si tu veux nuancer un peu) */

.impact-global__card--waste .impact-global__icon {
    /* ♻️ vert */
}

.impact-global__card--leadtime .impact-global__icon {
    /* ⏱️ neutre / bleu */
}

.impact-global__card--reuse .impact-global__icon {
    /* 🔁 vert plus intense */
}

/* Texte */

.impact-global__label {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 2px;
}

body[data-theme="light"] .impact-global__label {
    color: #6b7280;
}

.impact-global__value {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 2px;
}

/* Couleurs des valeurs */

.impact-global__value--green {
    color: #bbf7d0;
}

.impact-global__value--green-strong {
    color: #4ade80;
}

.impact-global__value--neutral {
    color: #e5e7eb;
}

body[data-theme="light"] .impact-global__value--green {
    color: #166534;
}

body[data-theme="light"] .impact-global__value--green-strong {
    color: #16a34a;
}

body[data-theme="light"] .impact-global__value--neutral {
    color: #0f172a;
}

/* Sous-texte */

.impact-global__sub {
    font-size: 0.78rem;
    color: #9ca3af;
}

body[data-theme="light"] .impact-global__sub {
    color: #6b7280;
}

/* Responsive */

@media (max-width: 1024px) {
    .impact-global__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .impact-global {
        padding: 16px;
    }

    .impact-global__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* =========================================================
   IMPACT — MOBILE PREMIUM FIX (scopé)
   ========================================================= */

/* 1) Largeur + padding cohérents sur mobile */
.section--impact .section__header,
.section--impact .section__layout.impact-layout{
  width: min(1220px, calc(100% - 28px));
  margin-left: auto;
  margin-right: auto;
}

/* 2) Header mobile : lisible, compact, centré */
@media (max-width: 900px){
  .section--impact{
    margin-top: 44px; /* au lieu de 70 */
  }

  .section--impact .section__header{
    text-align: center;
  }

  .section--impact .section__title{
    font-size: clamp(22px, 5.6vw, 30px);
    line-height: 1.18;
  }

  .section--impact .section__subtitle{
    font-size: 0.98rem;
    line-height: 1.6;
    opacity: .92;
  }
}

/* 3) Layout : on FORCE une colonne sur mobile, proprement */
@media (max-width: 900px){
  .section__layout.impact-layout{
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px;
  }

  .impact-col--intro,
  .impact-col--form,
  .impact-col--results{
    grid-column: 1 !important;
  }

  /* Après calcul : intro masquée, puis form, puis résultats */
  .impact-layout.impact-layout--active .impact-col--intro{ display:none; }
  .impact-layout.impact-layout--active .impact-col--form{ order: 1; }
  .impact-layout.impact-layout--active .impact-col--results{ order: 2; display:block; }
}

/* 4) Intro : éviter l’effet “grand bloc vide”, améliorer la liste */
.impact-intro{
  border-radius: 18px;
  padding: 16px 16px;
}

@media (max-width: 900px){
  .impact-intro{
    padding: 16px 14px;
  }

  .impact-intro__title{
    font-size: 1.02rem;
    line-height: 1.25;
  }

  .impact-intro__text{
    font-size: 0.96rem;
    line-height: 1.65;
    margin-bottom: 10px;
  }
}

/* Liste “premium” dédiée à l’intro (à la place de service-card__list) */
.impact-intro__list{
  list-style: none;
  padding: 0;
  margin: 12px 0 10px;
  display: grid;
  gap: 10px;
}

.impact-intro__list li{
  position: relative;
  padding: 10px 12px 10px 38px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.35);
  border: 1px solid rgba(148,163,184,.18);
  line-height: 1.5;
}

.impact-intro__list li::before{
  content: "✓";
  position: absolute;
  left: 12px;
  top: 10px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: rgba(34,197,94,.18);
  color: #bbf7d0;
  box-shadow: 0 0 0 1px rgba(34,197,94,.35);
}

body[data-theme="light"] .impact-intro__list li{
  background: rgba(255,255,255,.75);
  border-color: rgba(209,213,219,.9);
}

body[data-theme="light"] .impact-intro__list li::before{
  background: rgba(34,197,94,.12);
  color: #166534;
  box-shadow: 0 0 0 1px rgba(34,197,94,.22);
}

/* 5) Formulaire : champs + bouton plus “touch friendly” */
@media (max-width: 900px){
  .impact-form-card{
    padding: 16px 14px 14px;
  }

  .impact-form-card__header{
    flex-direction: column;
    gap: 8px;
  }

  .impact-form-card__subtitle{
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .impact-form__control{
    padding: 10px 12px;
    border-radius: 14px; /* 999px sur mobile = parfois bizarre avec select */
  }

  .impact-form__submit{
    padding: 12px 14px;
    border-radius: 14px;
  }
}

/* 6) Résultats : sur mobile -> 1 colonne, et CTA propre */
@media (max-width: 900px){
  .impact-results-card{
    padding: 16px 14px 14px;
  }

  .impact-results-card__header{
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
  }

  .impact-results-card__grid{
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .impact-results__cta .button{
    border-radius: 16px;
    padding: 12px 14px;
  }
}

/* 7) “Impact global” : chip qui wrap + grille 1 colonne sur petit mobile */
@media (max-width: 900px){
  .impact-global{
    padding: 16px 14px;
  }

  .impact-global__head{
    flex-direction: column;
    align-items: flex-start;
  }

  .impact-global__chip{
    white-space: normal;
  }
}

@media (max-width: 520px){
  .impact-global__grid{
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* =========================================================
   IMPACT RESULTS — THEME FIX (dark/light consistent)
   Colle ce bloc tout en bas de ton CSS Impact
   ========================================================= */

/* Base tokens (résultats) */
.section--impact{
  --impact-card-bg-dark: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), #020617);
  --impact-card-bg-light: rgba(255, 255, 255, 0.96);

  --impact-border-dark: rgba(55, 65, 81, 0.95);
  --impact-border-light: rgba(209, 213, 219, 0.95);

  --impact-text-dark: rgba(241, 245, 249, 0.92);
  --impact-muted-dark: rgba(148, 163, 184, 0.9);

  --impact-text-light: rgba(15, 23, 42, 0.92);
  --impact-muted-light: rgba(71, 85, 105, 0.92);

  --impact-stat-bg-dark: rgba(15, 23, 42, 0.78);
  --impact-stat-bg-light: rgba(248, 250, 252, 0.95);

  --impact-comment-bg-dark: rgba(2, 6, 23, 0.45);
  --impact-comment-bg-light: rgba(248, 250, 252, 0.95);
}

/* =========================
   Résultats (carte)
   ========================= */

.impact-results-card{
  background: var(--impact-card-bg-dark) !important; /* 🔥 on uniformise en dark */
  border-color: var(--impact-border-dark) !important;
  color: var(--impact-text-dark);
}

body[data-theme="light"] .impact-results-card{
  background: var(--impact-card-bg-light) !important; /* ✅ vrai light */
  border-color: var(--impact-border-light) !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  color: var(--impact-text-light);
}

/* Header titres + chip (si présents) */
.impact-results-card__header,
.impact-results-card__title,
.impact-results-card__subtitle{
  color: inherit;
}

/* =========================
   Stats (les 4 blocs)
   ========================= */

.impact-results__stat{
  background: var(--impact-stat-bg-dark) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  box-shadow: inset 0 0 0 1px rgba(148,163,184,.06);
}

body[data-theme="light"] .impact-results__stat{
  background: var(--impact-stat-bg-light) !important;
  border-color: rgba(209, 213, 219, 0.95) !important;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.04);
}

/* Labels/subs lisibles selon thème */
.impact-results__label,
.impact-results__sub,
.impact-results__cta-text{
  color: var(--impact-muted-dark) !important;
}

body[data-theme="light"] .impact-results__label,
body[data-theme="light"] .impact-results__sub,
body[data-theme="light"] .impact-results__cta-text{
  color: var(--impact-muted-light) !important;
}

/* Valeurs */
.impact-results__value{
  color: var(--impact-text-dark);
}

body[data-theme="light"] .impact-results__value{
  color: var(--impact-text-light);
}

/* Positif / négatif (contraste OK dans les 2 thèmes) */
.impact-results__value--positive{
  color: #bbf7d0 !important;         /* dark: vert clair */
}

.impact-results__value--negative{
  color: #fecaca !important;         /* dark: rouge clair */
}

/* En light : verts/rouges plus profonds */
body[data-theme="light"] .impact-results__value--positive{
  color: #166534 !important;         /* vert foncé lisible */
}

body[data-theme="light"] .impact-results__value--negative{
  color: #991b1b !important;         /* rouge foncé lisible */
}

/* =========================
   Commentaire
   ========================= */

.impact-results__comment{
  background: var(--impact-comment-bg-dark) !important;
  border: 1px dashed rgba(148,163,184,.35) !important;
  color: var(--impact-text-dark);
}

body[data-theme="light"] .impact-results__comment{
  background: var(--impact-comment-bg-light) !important;
  border-color: rgba(148,163,184,.45) !important;
  color: var(--impact-text-light);
}

.impact-results__comment-label{
  color: var(--impact-muted-dark) !important;
}

body[data-theme="light"] .impact-results__comment-label{
  color: var(--impact-muted-light) !important;
}

.impact-results__comment-text{
  color: inherit;
}

/* =========================
   CTA (zone bas)
   ========================= */
.impact-results__cta{
  border-top: 1px solid rgba(148,163,184,.14);
  padding-top: 10px;
}

body[data-theme="light"] .impact-results__cta{
  border-top-color: rgba(15,23,42,.08);
}


/* BRANDS */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.brand-card {
    border-radius: var(--radius-lg);
    padding: 14px;
    border: 1px solid rgba(55, 65, 81, 0.95);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.9);
    transform: translateY(14px);
    opacity: 0;
    transition:
        transform 0.4s ease,
        opacity 0.4s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        translate 0.18s ease;
}

.brand-card.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.brand-card:hover {
    box-shadow:
        0 0 0 1px rgba(34, 197, 94, 0.3),
        0 18px 40px rgba(0, 0, 0, 0.95);
    border-color: rgba(34, 197, 94, 0.8);
    translate: 0 -3px;
}

.brand-card h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.brand-card p {
    font-size: 15px;
    margin-bottom: 8px;
}

.brand-card__link {
    font-size: 14px;
    color: #a5b4fc;
    text-decoration: none;
}

/* CONTACT / DEVIS */
.section--contact {
    margin-top: 72px;
}

.contact-form {
    border-radius: var(--radius-xl);
    padding: 14px 16px 18px;
    border: 1px solid rgba(55, 65, 81, 0.95);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form__group label {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.contact-form__group input,
.contact-form__group select,
.contact-form__group textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(55, 65, 81, 0.95);
    background: #020617;
    color: #f9fafb;
    font-size: 15px;
    padding: 7px 10px;
    outline: none;
}

body[data-theme="light"] .contact-form__group input,
body[data-theme="light"] .contact-form__group select,
body[data-theme="light"] .contact-form__group textarea {
    background: #ffffff;
    color: #0f172a;
    border-color: var(--border-light);
}

.contact-form__group input:focus,
.contact-form__group select:focus,
.contact-form__group textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.45);
}

.contact-form__group--inline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.contact-form__note {
    font-size: 13px;
    line-height: 1.3;
    color: rgba(148, 163, 184, 0.85); /* gris doux */
    margin-top: 4px;
    margin-bottom: 10px; /* espace sous la note pour éviter que ça colle */
}

/* Erreur inline (déjà utilisée par ton helper SIRET) */
.contact-form__error-inline {
  color: #b91c1c;
  font-weight: 500;
}

/* Global error (haut du formulaire) */
.devis-global-error{
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(185, 28, 28, 0.35);
  background: rgba(185, 28, 28, 0.08);
  color: #7f1d1d;
  font-size: 13px;
}

/* Important : style des erreurs Symfony sous form_row */
.form-error-message,
.invalid-feedback,
ul.form-errors,
.form-error {
  color: #b91c1c;
  font-size: 13px;
  margin-top: 6px;
}

/* Champ en erreur (Symfony met souvent .is-invalid si Bootstrap theme,
   sinon on le mettra via JS) */
.is-invalid,
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: rgba(185, 28, 28, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12) !important;
}

.devis-stepper__item.has-error .devis-stepper__bullet {
  position: relative;
}

.devis-stepper__item.has-error .devis-stepper__bullet::after {
  content: "⚠️";
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 14px;
}

/* FOOTER */
.footer {
    margin-top: 40px;
    padding-top: 24px;
    position: relative;
    border-top: none; /* on enlève l’ancien trait */
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;

    /* Trait néon cohérent avec tes séparateurs */
    background: linear-gradient(
        90deg,
        transparent,
        rgba(34, 197, 94, 0.8),
        transparent
    );

    box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
    opacity: 0.7;
}

.footer__main {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.footer__logo {
    margin-bottom: 6px;
}

.footer__text {
    font-size: 14px;
    max-width: 320px;
}

/* Réseaux sociaux */
.footer__socials {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    color: #f9fafb;
    opacity: 0.75;
    transition: opacity 0.2s, transform 0.25s, box-shadow 0.25s;
}

.footer__social:hover {
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 0 12px var(--green);
}

.footer__cols {
    display: flex;
    gap: 40px;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer__col h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.footer__col a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 13px;
}

.footer__col p {
    color: #9ca3af;
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.6;
}

.footer__bottom {
    margin-top: 14px;
    text-align: left;
    font-size: 13px;
}

/* Couleur mode sombre */
body[data-theme="dark"] .footer__bottom--left span {
    color: rgba(226, 232, 240, 0.75); /* gris clair */
}

/* Couleur mode clair */
body[data-theme="light"] .footer__bottom--left span {
    color: rgba(15, 23, 42, 0.7); /* gris foncé */
}

.footer__col > *:not(h4) {
    margin-top: 4px;
}

/* ANIMATIONS */
.fade-in {
    animation: fadeIn 0.7s ease-out both;
}

.fade-up {
    animation: fadeUp 0.7s ease-out both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero__visual {
        min-height: 230px;
        margin-top: 12px;
    }

    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brands-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sectors-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer__main {
        flex-direction: column;
    }

    .footer__cols {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .app {
        padding: 12px 10px 32px;
    }

    .header {
        border-radius: 16px;
        padding-inline: 12px;
    }

    .nav {
        display: none;
    }

    .header__burger {
        display: flex;
    }

    .hero__title {
        font-size: 28px;
    }

    .hero__metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cards-grid,
    .brands-grid,
    .sectors-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .section {
        margin-top: 52px;
    }

    .footer__bottom {
        text-align: left;
    }
}

/* === OVERRIDES FIN DE FICHIER ========================== */

/* Header lisible dans les deux thèmes */
.header {
    color: #f9fafb;
}

/* Toggle thème : toujours visible dans le header sombre, même en mode clair */
body[data-theme="light"] .header .theme-toggle {
    color: #f9fafb;
    border-color: rgba(148, 163, 184, 0.4);
}

/* Boutons outline en mode clair (ex : Voir l’impact RSE) */
body[data-theme="light"] .button--line {
    color: #0f172a;
    background: #ffffff;
    border-color: var(--border-light);
}

/* HERO : cartes métriques + panneau Scan
   -> toujours sombres avec texte clair, quel que soit le thème */
.hero__metrics .metric-card,
.hero__visual .glass-panel {
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), #020617);
    border-color: rgba(55, 65, 81, 0.95);
    color: #f9fafb;
}

.hero__metrics .metric-card .metric-card__label {
    color: rgba(241, 245, 249, 0.75);
}

.hero__metrics .metric-card .metric-card__value,
.hero__visual .glass-row .value {
    color: #f9fafb;
}

/* IMPACT : valeurs lisibles */
.impact-stat .value {
    color: #f9fafb;
}

.value--green {
    color: #bbf7d0;
}

/* Bouton du formulaire de contact */
.section--contact .button--line {
    background: rgba(15, 23, 42, 0.85);
    color: #f9fafb;
    border-color: rgba(148, 163, 184, 0.6);
}

.section--contact .button--line:hover {
    background: rgba(15, 23, 42, 1);
}

/* Variante claire du bouton contact */
body[data-theme="light"] .section--contact .button--line {
    background: #ffffff;
    color: #0f172a;
    border-color: var(--border-light);
}

/* Icône LinkedIn */
.footer__social span {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.footer__social--linkedin {
    background: #0a66c2;
    border-color: #0a66c2;
    color: #ffffff;
}

.footer__social--linkedin span {
    color: #ffffff;
}

body[data-theme="light"] .footer__social--linkedin {
    background: #0a66c2;
}

/* ==== HERO : lisibilité en mode clair ==== */

/* Couleur globale du titre en clair */
body[data-theme="light"] .hero__title {
    color: #020617;
}

/* Le morceau "palettes & caisses plastiques" doit rester bien visible en clair */
body[data-theme="light"] .hero__title-highlight {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    -webkit-background-clip: text;
    color: transparent;
}

/* Le badge "BAS CARBONE" en clair */
body[data-theme="light"] .hero__title-outline {
    border-color: rgba(15, 23, 42, 0.25);
    color: #0f172a;
    background: rgba(248, 250, 252, 0.9);
}

/* ==== SCAN & RÉPARATION : lisibilité en mode clair ==== */

body[data-theme="light"] .hero__visual .glass-panel {
    background: rgba(15, 23, 42, 0.98);
    border-color: rgba(15, 23, 42, 0.9);
    color: #f9fafb;
}

body[data-theme="light"] .glass-panel__header,
body[data-theme="light"] .glass-panel__label,
body[data-theme="light"] .glass-row .label,
body[data-theme="light"] .glass-panel__footer {
    color: rgba(226, 232, 240, 0.85);
}

body[data-theme="light"] .glass-row .value {
    color: #f9fafb;
}

/* Pastille "En cours" plus contrastée */
body[data-theme="light"] .chip--green {
    background: rgba(22, 163, 74, 0.35);
    border-color: rgba(34, 197, 94, 0.9);
    color: #ffffff;
}

/* Liens CTA (ex : Découvrir la réparation →) */
.cta-link {
    font-size: 14px !important;
    color: var(--green) !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.25s ease, transform 0.25s ease;
}

.cta-link--secondary {
    opacity: 0.85;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s ease, opacity .2s ease;
}

.cta-link:hover {
    color: #4ade80 !important; /* Vert néon plus fort, non transparent */
    transform: translateX(4px);
}

body[data-theme="light"] .cta-link--secondary {
    color: #020617 !important; /* noir profond cohérent avec ton design */
    opacity: 0.75;
}

body[data-theme="dark"] .cta-link--secondary {
    color: #ffffff !important;
    opacity: 0.85;
}

/* ========================== */
/* PAGE DEVIS – AJOUTS LÉGERS */
/* ========================== */

/* Flashes devis (succès / erreur) */
.devis-flash {
    border-radius: 999px;
    padding: 8px 14px;
    margin-bottom: 8px;
    text-align: center;
    font-size: 14px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), #020617);
}

/* Tu peux adapter les couleurs selon tes labels */
.devis-flash--success {
    border-color: rgba(34, 197, 94, 0.8);
    color: #bbf7d0;
}

.devis-flash--danger,
.devis-flash--error {
    border-color: rgba(248, 113, 113, 0.8);
    color: #fee2e2;
}

/* Options de type de dommage sous forme de "chips" */
.devis-damage-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.devis-damage-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(55, 65, 81, 0.95);
    font-size: 14px;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease,
        color 0.18s ease;
}

/* On cache visuellement la checkbox, mais on garde l’accessibilité */
.devis-damage-chip input[type="checkbox"],
.devis-damage-chip input[type="radio"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* État sélectionné – pastille verte néon */
.devis-damage-chip:has(input:checked) {
    background: linear-gradient(135deg, var(--green), var(--green-strong));
    border-color: rgba(34, 197, 94, 0.95);
    box-shadow:
        0 0 0 1px rgba(34, 197, 94, 0.3),
        0 0 22px rgba(34, 197, 94, 0.65);
    transform: translateY(-1px);
}

.devis-damage-chip:has(input:checked) span {
    color: #020617;
    font-weight: 600;
}

/* Hover pour les navigateurs qui ne gèrent pas encore :has (et en bonus pour tous) */
.devis-damage-chip:hover {
    border-color: rgba(34, 197, 94, 0.9);
    box-shadow:
        0 0 0 1px rgba(34, 197, 94, 0.3),
        0 0 16px rgba(34, 197, 94, 0.45);
    transform: translateY(-1px);
}

/* Texte d’aide sous les blocs de gauche (devis) */
.devis-helper-text {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.5;
}

/* Sombre : texte clair */
body[data-theme="dark"] .devis-helper-text {
    color: rgba(226, 232, 240, 0.9);
}

/* Clair : texte plus foncé pour contraster avec le fond vert/gris */
body[data-theme="light"] .devis-helper-text {
    color: rgba(15, 23, 42, 0.8);
    text-shadow: 0 0 6px rgba(241, 245, 249, 0.8);
}


/* Mode clair : pastilles dommage alignées sur les champs du formulaire */
body[data-theme="light"] .devis-damage-chip {
    background: #ffffff;
    border-color: rgba(209, 213, 219, 0.9);
    color: #0f172a;
}

/* En mode clair, si coché → vert mais toujours lisible */
body[data-theme="light"] .devis-damage-chip:has(input:checked) {
    background: linear-gradient(135deg, #bbf7d0, #4ade80);
    border-color: rgba(34, 197, 94, 0.95);
    box-shadow:
        0 0 0 1px rgba(34, 197, 94, 0.25),
        0 0 18px rgba(34, 197, 94, 0.45);
}

body[data-theme="light"] .devis-damage-chip:has(input:checked) span {
    color: #022c22;
}


/* Formulaire devis : un peu plus "glass" en dark, plus doux en light */
.section--contact .contact-form {
    backdrop-filter: blur(18px);
    padding: 20px 22px 24px;
}

/* Espacement vertical entre les groupes de champs */
.section--contact .contact-form__group {
    margin-bottom: 14px;
}

/* Espacement un peu plus généreux entre colonnes */
.section--contact .contact-form__group--inline {
    gap: 14px;
}

/* Champs légèrement plus hauts (meilleure sensation premium) */
.section--contact .contact-form__group input,
.section--contact .contact-form__group select,
.section--contact .contact-form__group textarea {
    padding: 9px 12px;
}

/* Champs du formulaire devis : look "pilule" */
.section--contact .contact-form__group input,
.section--contact .contact-form__group select {
    border-radius: 999px;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease,
        transform 0.12s ease;
}

/* textarea : un peu arrondi, mais pas pilule */
.section--contact .contact-form__group textarea {
    border-radius: 18px;
}

.section--contact .contact-form__group input:focus,
.section--contact .contact-form__group select:focus,
.section--contact .contact-form__group textarea:focus {
    border-color: var(--green);
    box-shadow:
        0 0 0 1px rgba(34, 197, 94, 0.6),
        0 0 0 6px rgba(34, 197, 94, 0.15);
    outline: none;
    transform: translateY(-1px);
}

/* Titres de sections dans le formulaire (si tu as des h3 ou équivalents) */
.section--contact .contact-form h3 {
    font-size: 16px;
    margin: 14px 0 8px;
}

/* Sombre : carte plus dense */
body[data-theme="dark"] .section--contact .contact-form {
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), #020617);
    border-color: rgba(55, 65, 81, 0.9);
}

/* Clair : carte légèrement translucide pour se détacher du fond */
body[data-theme="light"] .section--contact .contact-form {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(209, 213, 219, 0.9);
}

/* Adresse / Contact : 2 colonnes desktop, 1 colonne mobile */
.contact-info-row{
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.contact-info-col{
    flex: 1;
    min-width: 0;
}

/* ✅ Layout mobile: 1 colonne + blocs centrés */
.section--contact .contact-layout{
    display:grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items:start;
}

/* largeur max + centrage des 2 cartes */
.section--contact .contact-card{
    width:100%;
    max-width: 560px;
    margin: 0 auto;
}

/* Adresse/Contact */
.section--contact .contact-info-row{
    display:grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items:start;
}

/* ✅ Mobile */
@media (max-width: 900px){
    .section--contact .contact-layout{
        grid-template-columns: 1fr;
    }
    .section--contact .contact-info-row{
        grid-template-columns: 1fr;
        gap: 20px;
    }
    /* champs inline en 1 colonne sur mobile */
    .section--contact .contact-form__group--inline{
        grid-template-columns: 1fr;
    }
    .section--contact .contact-card{
        padding-top: 6px;
    }
}


/* =========================================================
   FOOTER — MOBILE FRIENDLY (override safe)
   ========================================================= */

/* Base: améliore la “respiration” et évite le footer trop serré */
.footer{
  padding-bottom: 18px;
}

.footer__main{
  align-items: flex-start;
}

/* Zone logo + texte : évite que ça devienne trop étroit */
.footer__text{
  line-height: 1.65;
  opacity: .92;
}

/* Liens + hover plus visible en clair */
.footer__col a{
  transition: color .2s ease, opacity .2s ease;
}
.footer__col a:hover{
  color: rgba(226,232,240,.92);
  opacity: 1;
}
body[data-theme="light"] .footer__col a:hover{
  color: rgba(15,23,42,.92);
}

/* ====== TABLET (<=1024px) : grille stable pour les colonnes ====== */
@media (max-width: 1024px){
  .footer__main{
    flex-direction: column;
    gap: 18px;
  }

  /* Les colonnes deviennent une grille 2x2 propre */
  .footer__cols{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
  }

  /* Bloc “brand” prend toute la largeur au-dessus */
  .footer__main > div:first-child{
    width: 100%;
  }

  .footer__text{
    max-width: 60ch;
  }
}

/* ======================================================
   FOOTER — RESPONSIVE INTELLIGENT
   ≥ 768px : 3 colonnes (Navigation / Légal / Contact)
   < 768px : empilé (mobile)
   ====================================================== */

/* À partir de 768px inclus */
@media (min-width: 768px){
    .footer__main{
        flex-direction: column;
        gap: 24px;
    }

    .footer__cols{
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
        align-items: start;
    }

    /* Bloc logo / intro au-dessus */
    .footer__main > div:first-child{
        width: 100%;
    }

    .footer__text{
        max-width: 65ch;
    }
}

/* Mobile strict : empilé */
@media (max-width: 767px){
    .footer__cols{
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .footer__col{
        padding: 14px 16px;
        border-radius: 14px;
        background: rgba(15, 23, 42, 0.25);
    }

    body[data-theme="light"] .footer__col{
        background: rgba(248, 250, 252, 0.9);
    }
}

/* ====== Très petit mobile (<=420px) : éviter tout overflow ====== */
@media (max-width: 420px){
  .header__logo-link{
    gap: 8px;
  }

  .footer__socials{
    gap: 10px;
  }

  .footer__col{
    padding: 11px 11px;
  }
}

/* ====== TABLETTE : 3 colonnes Navigation / Légal / Contact ====== */
@media (max-width: 1024px) and (min-width: 769px){
    .footer__main{
        flex-direction: column;
        gap: 22px;
    }

    /* Grille 3 colonnes bien équilibrée */
    .footer__cols{
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
        align-items: start;
    }

    /* Bloc logo au-dessus */
    .footer__main > div:first-child{
        width: 100%;
    }

    .footer__text{
        max-width: 65ch;
    }
}

/* ======================================================
   FOOTER — LAYOUT RESPONSIVE FINAL
   ====================================================== */

/* ========== DESKTOP (≥ 1024px) ========== */
@media (min-width: 1024px){

    .footer__main{
        display: grid;
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
        gap: 48px;
        align-items: start;
    }

    /* Bloc gauche : logo + texte */
    .footer__main > div:first-child{
        max-width: 420px;
    }

    /* Bloc droit : Navigation / Légal / Contact */
    .footer__cols{
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 40px;
    }
}

/* ========== TABLETTE (768 → 1023px) ========== */
@media (min-width: 768px) and (max-width: 1023px){

    .footer__main{
        flex-direction: column;
        gap: 28px;
    }

    .footer__cols{
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 28px;
    }

    .footer__text{
        max-width: 70ch;
    }
}

/* ========== MOBILE (< 768px) ========== */
@media (max-width: 767px){

    .footer__main{
        flex-direction: column;
        gap: 22px;
    }

    .footer__cols{
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .footer__col{
        padding: 14px 16px;
        border-radius: 14px;
        background: rgba(15, 23, 42, 0.25);
    }

    body[data-theme="light"] .footer__col{
        background: rgba(248, 250, 252, 0.9);
    }
}


/* ========================= */
/* TYPOGRAPHIE GLOBALE      */
/* Override des petites tailles éparpillées */
/* ========================= */

/* Base globale */
body {
    font-family: "Calibri", "Segoe UI", Roboto, Arial, sans-serif !important;
    min-height: 100vh;
    overflow-x: hidden;
    font-size: var(--fs-base);
    line-height: 1.6;
}

/* Texte standard : paragraphes, listes, contenu des cartes, etc. */
p,
li,
.checklist,
.service-card__text,
.sector-card p,
.brand-card p,
.devis-helper-text,
.contact-form__note,
.footer__col p,
.footer__col a,
.nav-mobile__link {
    font-size: var(--fs-base);
}

/* Petit texte / meta / badges */
.metric-card__label,
.impact-card__note,
.chip,
.tag,
.footer__bottom,
.process-list,
.devis-flash {
    font-size: var(--fs-sm);
}

.hero__title {
    font-size: var(--fs-hero);
}

/* Sous-titres / textes un peu mis en avant */
.section__subtitle,
.hero__subtitle,
.service-card__title,
.sector-card h3,
.brand-card h3,
.impact-stat .value,
.contact-form h2,
.contact-form h3 {
    font-size: var(--fs-lg);
}

/* Navigation / boutons */
.nav__link,
.button,
.button--line,
.button--primary {
    font-size: var(--fs-sm);
}

/* Formulaire : labels & champs */
.contact-form__group label {
    font-size: var(--fs-sm);
}

.contact-form__group input,
.contact-form__group select,
.contact-form__group textarea {
    font-size: var(--fs-base);
}

/* ==== Symfony form errors (contact) ==== */
.section--contact .form-errors,
.section--contact ul.form-errors,
.section--contact .form-error-message,
.section--contact .invalid-feedback,
.section--contact .form-error {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    color: #fca5a5;              /* rouge doux lisible sur fond dark */
    font-size: 13px;
    font-weight: 500;
}

/* Symfony affiche souvent les erreurs dans un <ul><li> */
.section--contact ul li {
    list-style: none;
}

/* Champs invalides : bordure rouge + glow rouge */
.section--contact input.is-invalid,
.section--contact select.is-invalid,
.section--contact textarea.is-invalid,
.section--contact .is-invalid input,
.section--contact .is-invalid select,
.section--contact .is-invalid textarea {
    border-color: rgba(239, 68, 68, 0.95) !important;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.55) !important;
}

body[data-theme="light"] .section--contact .form-error-message,
body[data-theme="light"] .section--contact .invalid-feedback,
body[data-theme="light"] .section--contact .form-error {
    color: #b91c1c;
}

.section--contact .is-invalid:focus {
    box-shadow:
        0 0 0 2px rgba(239, 68, 68, 0.4),
        0 0 0 6px rgba(239, 68, 68, 0.15);
}

/* Assistant AI Chatbox */
.chat-toggle {
    position: relative;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    background: #16a34a;
    color: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    z-index: 1000;
}

.chatbox {
    position: relative;
    bottom: 90px;
    right: 20px;
    width: 320px;
    max-height: 70vh;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.chatbox-header {
    background: #16a34a;
    color: white;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
}

.chatbox-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.chatbox-messages {
    padding: 10px;
    background: #f3f4f6;
    overflow-y: auto;
    flex: 1;
}

.chat-message {
    padding: 8px 10px;
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 14px;
    max-width: 85%;
    word-wrap: break-word;
}

.chat-message.bot {
    background: #e5e7eb;
    align-self: flex-start;
}

.chat-message.user {
    background: #16a34a;
    color: white;
    margin-left: auto;
    align-self: flex-end;
}

.chatbox-input {
    display: flex;
    border-top: 1px solid #e5e7eb;
}

.chatbox-input input {
    flex: 1;
    border: none;
    padding: 10px;
    font-size: 14px;
    outline: none;
}

.chatbox-input button {
    border: none;
    padding: 10px 14px;
    background: #16a34a;
    color: white;
    cursor: pointer;
    font-size: 14px;
}

@media (max-width: 600px) {
    .chatbox {
        width: 95%;
        right: 2.5%;
        bottom: 80px;
    }
}

/* CHAT WIDGET */

.chat-widget {
    width: 100%;
    background: var(--bg-soft-dark, #0f172a);
    border-radius: 16px;
    padding: 20px 20px 16px;
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.55),
        0 0 0 1px rgba(148, 163, 184, 0.1);
    color: var(--text-dark, #f9fafb);
    display: flex;
    flex-direction: column;
    gap: 16px;

    /* Animation d’apparition */
    opacity: 0;
    transform: translateY(32px) scale(0.97);
    transition:
        opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
        transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
        box-shadow 0.3s ease;
}

.chat-widget--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.7),
        0 0 0 1px rgba(148, 163, 184, 0.22);
}

.chat-widget__header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-widget__header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.chat-widget__title-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-widget__logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: radial-gradient(circle at 0% 0%, #22c55e, #0f172a);
    color: #ecfdf5;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.45);
}

.chat-widget__title {
    font-size: 1.15rem;
    line-height: 1.2;
    font-weight: 600;
}

.chat-widget__subtitle {
    font-size: 0.8rem;
    opacity: 0.8;
}

.chat-widget__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.12);
    color: #bbf7d0;
}

.chat-widget__status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
    position: relative;
}

/* Pulsation du point "en ligne" */
.chat-widget__status-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 1px solid rgba(34, 197, 94, 0.6);
    opacity: 0;
    animation: chat-dot-pulse 1.7s ease-out infinite;
}

@keyframes chat-dot-pulse {
    0% {
        transform: scale(0.7);
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.chat-widget__intro {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted-dark, #e5e7eb);
}

/* Corps du chat */
.chat-widget__body {
    background: rgba(15, 23, 42, 0.85);
    border-radius: 12px;
    padding: 12px;
    max-height: 260px;
    min-height: 120px;
    overflow-y: auto;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.15);
}

.chat-widget__messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.86rem;
}

/* Formulaire */
.chat-widget__form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-widget__label {
    font-size: 0.8rem;
    color: var(--text-muted-dark, #e5e7eb);
}

.chat-widget__input-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.chat-widget__input {
    flex: 1;
    resize: vertical;
    min-height: 42px;
    max-height: 120px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-dark, #f9fafb);
    font-size: 0.86rem;
    padding: 8px 10px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.chat-widget__input::placeholder {
    color: rgba(148, 163, 184, 0.8);
}

.chat-widget__input:focus {
    border-color: var(--green, #22c55e);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.5);
    background: #020617;
}

.chat-widget__send {
    border: none;
    border-radius: 10px;
    padding: 0 16px;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #022c22;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.45);
}

.chat-widget__send:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.chat-widget__send:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(34, 197, 94, 0.35);
}

.chat-widget__hint {
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.95);
}

/* Responsive : sur mobile, que ça reste confortable */
@media (max-width: 768px) {
    .chat-widget {
        padding: 16px;
    }

    .chat-widget__header-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .chat-widget__input-row {
        flex-direction: column;
    }

    .chat-widget__send {
        width: 100%;
        padding: 10px 14px;
    }
}

/* Styles spécifiques des messages dans le widget de droite */

.chat-widget__messages .chat-message {
    font-size: 0.86rem;
    padding: 8px 10px;
    border-radius: 10px;
    margin-bottom: 8px;
    max-width: 100%;
    word-wrap: break-word;
}

/* Message de l’assistant (bot) : fond clair, texte foncé */
.chat-widget__messages .chat-message.bot {
    background: #e5e7eb;
    color: #111827; /* texte bien lisible */
    align-self: flex-start;
}

/* Message du visiteur (user) : bulle verte, texte bien contrasté */
.chat-widget__messages .chat-message.user {
    background: #22c55e;
    color: #022c22; /* ou #ffffff si tu préfères */
    margin-left: auto;
    align-self: flex-end;
}

/* =========================================================
   CHAT WIDGET — MODE LIGHT (override)
   ========================================================= */
body[data-theme="light"] .chat-widget{
    background: rgba(255,255,255,.78);
    color: #0f172a;
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.10),
        0 0 0 1px rgba(15,23,42,0.10);
}

body[data-theme="light"] .chat-widget--visible{
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.14),
        0 0 0 1px rgba(15,23,42,0.14);
}

/* Titres / textes */
body[data-theme="light"] .chat-widget__subtitle,
body[data-theme="light"] .chat-widget__intro,
body[data-theme="light"] .chat-widget__label,
body[data-theme="light"] .chat-widget__hint{
    color: rgba(15,23,42,.78);
    opacity: 1; /* important : tu as des opacités dark */
}

/* Badge statut */
body[data-theme="light"] .chat-widget__status{
    background: rgba(34,197,94,.12);
    color: #065f46;
    border: 1px solid rgba(34,197,94,.25);
}

body[data-theme="light"] .chat-widget__status-dot{
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34,197,94,0.18);
}

/* Corps du chat */
body[data-theme="light"] .chat-widget__body{
    background: rgba(255,255,255,.60);
    box-shadow: inset 0 0 0 1px rgba(15,23,42,0.10);
}

/* Textarea */
body[data-theme="light"] .chat-widget__input{
    background: rgba(255,255,255,.92);
    color: #0f172a;
    border-color: rgba(15,23,42,0.18);
}

body[data-theme="light"] .chat-widget__input::placeholder{
    color: rgba(15,23,42,0.45);
}

body[data-theme="light"] .chat-widget__input:focus{
    background: #ffffff;
    border-color: var(--green, #22c55e);
    box-shadow: 0 0 0 2px rgba(34,197,94,.18);
}

/* Bulles messages (light clean) */
body[data-theme="light"] .chat-widget__messages .chat-message.bot{
    background: rgba(15,23,42,.06);
    color: #0f172a;
    border: 1px solid rgba(15,23,42,.10);
}

body[data-theme="light"] .chat-widget__messages .chat-message.user{
    background: rgba(34,197,94,.20);
    color: #064e3b;
    border: 1px solid rgba(34,197,94,.25);
}

/* Bouton envoyer : garder le vert, ajuster l'ombre */
body[data-theme="light"] .chat-widget__send{
    box-shadow: 0 10px 25px rgba(34,197,94,0.25);
}


/* HERO FULL BACKGROUND */

.hero.hero--bg {
    position: relative;
    width: 100%;
    min-height: 680px;
    display: flex;              /* centre verticalement */
    align-items: center;
    overflow: hidden;
    isolation: isolate;         /* pour bien gérer les overlays */

    /* FONDU + FLOU DES BORDS */
    -webkit-mask-image: radial-gradient(
        circle at center,
        rgba(0,0,0,1) 75%,
        rgba(0,0,0,0.5) 85%,
        rgba(0,0,0,0) 100%
    );
    mask-image: radial-gradient(
        circle at center,
        rgba(0,0,0,1) 75%,
        rgba(0,0,0,0.5) 85%,
        rgba(0,0,0,0) 100%
    );
}

body[data-theme="dark"] .hero.hero--bg {
    background-image:
        radial-gradient(
            circle at center,
            rgba(0,0,0,0) 18%,
            rgba(0,0,0,0.5) 95%,
            var(--bg-soft-dark) 100%
        ),
        url('/images/hero/atelier-plastic-r3.webp');
    background-size: cover;
    background-position: center;
}

body[data-theme="light"] .hero.hero--bg {
    background-image:
        radial-gradient(
            circle at center,
            rgba(255,255,255,0) 5%,
            rgba(255,255,255,0.6) 95%,
            #f1f5f9 100%
        ),
        url('/images/hero/atelier-plastic-r3.webp');
    background-size: cover;
    background-position: center;
}

/* Voile global sombre / léger pour calmer la photo */
.hero.hero--bg::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

body[data-theme="dark"] .hero.hero--bg::before {
    background: radial-gradient(
        circle at top left,
        rgba(15, 118, 110, 0.45),
        rgba(15, 23, 42, 0.92)
    );
}

body[data-theme="light"] .hero.hero--bg::before {
    background: linear-gradient(
        to right,
        rgba(248, 250, 252, 0.14),
        rgba(248, 250, 252, 0.20),
        rgba(15, 23, 42, 0.4)
    );
}

/* CONTENU HERO */

.hero__content {
    position: relative;
    z-index: 1;
        max-width: 760px;      /* un peu plus large */
    padding: 80px 32px;    /* marge interne */
    margin-left: 48px;     /* marge extérieure gauche */
    margin-right: 48px;    /* marge extérieure droite */
}

/* Petit “carton” clair sous le texte en mode clair pour la lisibilité */
body[data-theme="light"] .hero__content {
    background: rgba(248, 250, 252, 0.14);
    border-radius: 24px;
    padding: 40px 48px 48px;   /* marges internes confortables */
    margin: 40px auto;         /* marge haut/bas + centré horizontalement */
    max-width: 900px;          /* un peu plus large en clair */
    backdrop-filter: blur(10px);
    box-shadow:
        0 24px 80px rgba(15, 23, 42, 0.18),
        0 0 0 1px rgba(148, 163, 184, 0.25);
}

body[data-theme="light"] .hero__metrics {
    margin-top: 24px;
}

/* En sombre : pas de “carte” visible, juste le texte posé sur l’image */
body[data-theme="dark"] .hero__content {
    padding: 100px 32px 120px;   /* texte ventilé et cohérent */
    margin-left: 64px;
}

/* Mode sombre : texte clair quasi blanc */
body[data-theme="dark"] .hero__subtitle {
    color: #e5e7eb;            /* gris très clair */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

/* Mode clair : texte foncé, bien contrasté */
body[data-theme="light"] .hero__subtitle {
    color: #0f172a;            /* bleu/noir profond */
}

/* ========================= */
/* HERO — Responsive mobile  */
/* ========================= */

@media (max-width: 768px) {

    .hero.hero--bg {
        min-height: 520px; /* évite un scroll énorme */
        background-position: center top;
    }

    .hero__content {
        padding: 32px 18px !important;
        margin: 0 !important;
        max-width: 100% !important;
        text-align: left;
    }

    .hero__title {
        font-size: 1.65rem !important; /* ~26px */
        line-height: 1.25;
    }

    .hero__subtitle {
        font-size: 1rem; /* 16px */
        margin-bottom: 16px;
    }

    .hero__actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .hero__metrics {
        grid-template-columns: 1fr; /* 1 colonne */
        gap: 12px;
        margin-top: 24px;
    }

    body[data-theme="light"] .hero__content {
        padding: 32px 20px !important;
        margin-top: 20px;
    }
}

/* ================================ */
/* SERVICES – ICÔNES PREMIUM R3     */
/* ================================ */

/* On garde tes cards mais on prépare la place pour l’icône en haut */
.service-card {
    position: relative;
    align-items: flex-start;
}

/* Petit médaillon rond pour les icônes */
.service-card__icon-wrap {
    width: 88px;
    height: 88px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;

    background: rgba(255, 255, 255, 0.94);
    box-shadow:
        0 8px 22px rgba(15, 23, 42, 0.35),
        0 0 0 1px rgba(148, 163, 184, 0.35);
}

/* Icône à l’intérieur du cercle */
.service-card__icon {
    width: 68px;
    height: 68px;
    display: block;
    flex-shrink: 0;
    opacity: 0.95;
}

/* Mode sombre : médaillon “verre” lumineux, icône éclaircie */
body[data-theme="dark"] .service-card__icon-wrap {
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.85),
        0 0 0 1px rgba(148, 163, 184, 0.5);
    backdrop-filter: blur(14px);
}

body[data-theme="dark"] .service-card__icon {
    filter: brightness(2.6);
}

/* Mode clair : médaillon blanc propre, icône un peu assombrie */
body[data-theme="light"] .service-card__icon-wrap {
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
        0 10px 26px rgba(15, 23, 42, 0.2),
        0 0 0 1px rgba(209, 213, 219, 0.9);
}

body[data-theme="light"] .service-card__icon {
    filter: brightness(0.5);
}


/* ========================================================================= */
/*    SERVICE TAG — aligné avec l'icône + continuité du trait premium        */
/* ========================================================================= */

/* Ligne icône + tag sur une seule ligne */
.service-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

/* Icône dans la ligne */
.service-card__head .service-card__icon-wrap {
    margin-bottom: 0;
    flex-shrink: 0;
}

/* Tag "Réparation / Personnalisation" */
.service-card__tag {
    position: relative;
    display: inline-flex;
    align-items: center;

    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;

    padding: 4px 10px;
    margin: 0;

    background: transparent;
    border: none;
    color: var(--green);
}

/* Trait qui continue vers la droite */
.service-card__head::after {
    content: "";
    flex: 1;
    height: 1px;
    margin-left: 10px;
    border-radius: 999px;

    background: linear-gradient(
        90deg,
        rgba(34, 197, 94, 0.0),
        rgba(34, 197, 94, 0.6),
        rgba(34, 197, 94, 0.0)
    );
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

/* ============================= */
/* SECTEURS – VERSION PREMIUM R3 */
/* ============================= */

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.sector-card {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 16px 16px 18px;
    border: 1px solid rgba(55, 65, 81, 0.95);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.9);
    transform: translateY(16px);
    opacity: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition:
        transform 0.4s ease,
        opacity 0.4s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        translate 0.18s ease;
}

.sector-card.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.sector-card:hover {
    box-shadow:
        0 0 0 1px rgba(34, 197, 94, 0.3),
        0 18px 40px rgba(0, 0, 0, 0.95);
    border-color: rgba(34, 197, 94, 0.8);
    translate: 0 -3px;
}

/* Head : icône + titre + trait */
.sector-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.sector-card__head::after {
    content: "";
    flex: 1;
    height: 1px;
    margin-left: 8px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgba(34, 197, 94, 0.0),
        rgba(34, 197, 94, 0.6),
        rgba(34, 197, 94, 0.0)
    );
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

/* Icône ronde comme pour les services */
.sector-card__icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
        0 8px 22px rgba(15, 23, 42, 0.35),
        0 0 0 1px rgba(148, 163, 184, 0.35);
    flex-shrink: 0;
}

.sector-card__icon {
    width: 28px;
    height: 28px;
    display: block;
    flex-shrink: 0;
}

/* Mode sombre / clair pour l’icône */
body[data-theme="dark"] .sector-card__icon-wrap {
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.85),
        0 0 0 1px rgba(148, 163, 184, 0.5);
    backdrop-filter: blur(12px);
}

body[data-theme="dark"] .sector-card__icon {
    filter: brightness(2.2);
}

body[data-theme="light"] .sector-card__icon-wrap {
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
        0 10px 26px rgba(15, 23, 42, 0.16),
        0 0 0 1px rgba(209, 213, 219, 0.9);
}

body[data-theme="light"] .sector-card__icon {
    filter: brightness(0.6);
}

/* Titre secteur */
.sector-card h3 {
    font-size: var(--fs-lg);
    margin: 0;
}

/* Texte & checklist */
.sector-card p {
    font-size: var(--fs-base);
    margin-top: 4px;
    margin-bottom: 6px;
}

.sector-card .checklist {
    margin-top: 4px;
}

/* Grille */
.sectors-grid.centered-icons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

/* Cartes */
.sector-card {
    text-align: center;
    padding: 26px 22px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(120, 125, 135, 0.34);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.78);
    transition: all 0.3s ease;
}

.sector-card:hover {
    border-color: rgba(34, 197, 94, 0.6);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.92);
    translate: 0 -4px;
}

/* Icône ronde centrée */
.sector-card__icon-wrap {
    margin: 0 auto 14px;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
        0 10px 26px rgba(15, 23, 42, 0.3),
        0 0 0 1px rgba(148, 163, 184, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sector-card__icon {
    width: 80px;
    height: 80px;
}

/* Appliquer luminosité selon thème */
body[data-theme="dark"] .sector-card__icon {
    filter: brightness(2);
}

body[data-theme="light"] .sector-card__icon {
    filter: brightness(0.6);
}

/* Titre */
.sector-card__title {
    margin-bottom: 10px;
}

/* Ligne d’icônes multiples dans une même carte */
.sector-card__icons-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px; /* espace entre les 2 icônes */
    margin-bottom: 14px;
}

/* SECTEURS – RESPONSIVE */

@media (max-width: 1024px) {
    .sectors-grid,
    .sectors-grid.centered-icons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .sectors-grid,
    .sectors-grid.centered-icons {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ============================= */
/* FORMULAIRE DEMANDE DE DEVIS   */
/* MINI-WIZARD MULTI-ÉTAPES      */
/* ============================= */

/* Conteneur global du wizard */
.devis-multistep {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    padding: 14px 16px 18px;
}

/* Thème sombre */
body[data-theme="dark"] .devis-multistep {
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
    color: var(--text-dark);
}

/* Thème clair */
body[data-theme="light"] .devis-multistep {
    background: var(--card-light);
    border: 1px solid var(--border-light);
    color: var(--text-light);
}

/* Header du wizard */
.devis-multistep__header {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    margin-bottom: 16px;
}

.devis-multistep__topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.devis-multistep__title {
    font-size: 14px;
    font-weight: 600;
}

.devis-multistep__count {
    font-size: 13px;
    color: rgba(148, 163, 184, 1);
}

/* Barre de progression */
.devis-multistep__progress {
    position: relative;
    height: 4px;
    background: rgba(148, 163, 184, 0.25);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 12px;
}

.devis-multistep__progress-bar {
    position: absolute;
    inset: 0;
    width: 0;
    background: linear-gradient(90deg, var(--green), var(--green-strong));
    transition: width 0.3s ease;
}

/* Stepper (les 3 étapes) */
.devis-stepper {
    display: flex;
    gap: 10px;
}

.devis-stepper__item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    opacity: 0.6;
    border: none;
    background: transparent;
    padding: 4px 0;
    cursor: pointer;
    text-align: left;
    color: inherit;
}

.devis-stepper__item.is-locked {
    opacity: 0.3;
    cursor: default;
}

.devis-stepper__bullet {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.devis-stepper__label {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.devis-stepper__item.is-active .devis-stepper__bullet {
    border-color: var(--green);
    background: rgba(34, 197, 94, 0.1);
}

.devis-stepper__item.is-active {
    opacity: 1;
    font-weight: 600;
}

.devis-stepper__item.is-completed {
    opacity: 0.9;
}

/* Étapes */
.devis-step {
    display: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.devis-step--active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.devis-step__title {
    font-size: 14px;
    margin-bottom: 6px;
}

.devis-step__note {
    margin-top: 6px;
}

/* Cartes d’aide à gauche */
.devis-card {
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    box-shadow: var(--shadow-deep);
}

/* Sombre */
body[data-theme="dark"] .devis-card {
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
    color: var(--text-dark);
}

/* Clair */
body[data-theme="light"] .devis-card {
    background: var(--card-light);
    border: 1px solid var(--border-light);
    color: var(--text-light);
}

.devis-card--spaced { margin-top: 12px; }

.devis-card__title {
    font-size: 15px;
    margin-bottom: 6px;
}

/* Boutons suivant/précédent */
.contact-form__actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
}

.contact-form__actions--right {
    justify-content: flex-end;
}

.contact-form__actions--split {
    justify-content: space-between;
}

/* Séparateur doux entre blocs */
.section-separator--soft {
    margin: 18px 0;
}

/* Mobile */
@media (max-width: 768px) {
    .devis-stepper {
        flex-direction: column;
        gap: 4px;
    }
}

.devis-photos-block input[type="file"] {
    padding: 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background-color: var(--surface);
    cursor: pointer;
}

.devis-photos-block input[type="file"]:hover {
    border-color: var(--primary);
}

/* ============================= */
/*  DEVIS – BLOC PHOTOS PREMIUM  */
/* ============================= */

.devis-photos-block {
    margin-top: 10px;
}

.devis-photos-block .devis-card__title {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.devis-photos {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.devis-photos__input {
    display: none;
}

.devis-photos__input.is-invalid {
    outline: 2px solid rgba(239, 68, 68, .6);
    border-radius: 12px;
}

.devis-photos__dropzone {
    position: relative;
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border: 1px dashed rgba(148, 163, 184, 0.7);
    background: radial-gradient(circle at top left,
        rgba(15, 23, 42, 0.96),
        rgba(2, 6, 23, 0.98)
    );
    box-shadow:
        0 14px 38px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(15, 23, 42, 0.9);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease,
        background 0.2s ease;
}

.devis-photos__dropzone:hover,
.devis-photos__dropzone.is-dragover {
    border-color: rgba(34, 197, 94, 0.9);
    box-shadow:
        0 0 0 1px rgba(34, 197, 94, 0.5),
        0 18px 46px rgba(0, 0, 0, 0.95);
    transform: translateY(-1px);
}

body[data-theme="light"] .devis-photos__dropzone {
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 14px 32px rgba(15, 23, 42, 0.18),
        0 0 0 1px rgba(209, 213, 219, 0.9);
    border-color: rgba(209, 213, 219, 0.9);
}

body[data-theme="light"] .devis-photos__dropzone:hover,
body[data-theme="light"] .devis-photos__dropzone.is-dragover {
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.22),
        0 0 0 1px rgba(34, 197, 94, 0.6);
}

/* Icone caméra */
.devis-photos__icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: radial-gradient(circle at 0% 0%, #22c55e, #0f172a);
    color: #ecfdf5;
    box-shadow:
        0 0 0 1px rgba(34, 197, 94, 0.45),
        0 10px 26px rgba(0, 0, 0, 0.9);
    flex-shrink: 0;
}

/* Texte dans la zone */
.devis-photos__text {
    font-size: 0.86rem;
}

.devis-photos__text strong {
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.devis-photos__text span {
    font-size: 0.78rem;
    opacity: 0.9;
}

/* Preview des vignettes */
.devis-photos__preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.devis-photos__thumb {
    width: 86px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(55, 65, 81, 0.9);
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

body[data-theme="light"] .devis-photos__thumb {
    background: rgba(248, 250, 252, 0.98);
    border-color: rgba(209, 213, 219, 0.95);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.devis-photos__thumb img {
    width: 100%;
    height: 64px;
    object-fit: cover;
    display: block;
}

.devis-photos__thumb-caption {
    font-size: 0.7rem;
    padding: 4px 6px 5px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/* ============================== */
/*   LAYOUT DEVIS 30% / 70%       */
/* ============================== */

.devis-layout {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 26px;
    align-items: flex-start;
}

/* Colonne gauche un peu plus étroite */
.devis-layout__left {
    min-width: 0;
}

/* Colonne formulaire bien large */
.devis-layout__right {
    min-width: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .devis-layout {
        grid-template-columns: 1fr;
    }
}

/* ================================
   PAGES LÉGALES / JURIDIQUE (v2)
   ================================ */

.legal-page {
    /* Décalage plus important pour ne PAS passer sous le header fixe */
    padding: 120px 0 96px;
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.06), transparent 55%),
                #0b1120;
}

@media (max-width: 1024px) {
    .legal-page {
        padding: 110px 0 80px;
    }
}

@media (max-width: 768px) {
    .legal-page {
        padding: 96px 0 72px;
    }
}

.legal-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 18px;
}

/* -------- HERO -------- */

.legal-hero {
    text-align: left;
    margin-bottom: 32px;
    color: #e5e7eb;
}

.legal-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    background: rgba(34, 197, 94, 0.12);
    color: #bbf7d0;
    border: 1px solid rgba(34, 197, 94, 0.45);
}

.legal-pill i {
    font-size: 16px;
}

.legal-title {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 18px 0 8px;
    color: #f9fafb;
}

@media (max-width: 768px) {
    .legal-title {
        font-size: 26px;
    }
}

.legal-subtitle {
    font-size: 14px;
    color: #9ca3af;
    margin: 0;
}

.legal-meta {
    margin-top: 10px;
    font-size: 13px;
    color: #6b7280;
}

.legal-meta strong {
    color: #e5e7eb;
}

/* -------- CARD CONTENU -------- */

.legal-card {
    position: relative;
    border-radius: 22px;
    background: #020617;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow:
        0 28px 60px rgba(15, 23, 42, 0.55),
        0 0 0 1px rgba(15, 23, 42, 0.8);
    padding: 28px 28px 22px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .legal-card {
        border-radius: 18px;
        padding: 22px 18px 18px;
    }
}

.legal-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.15), transparent 55%),
        radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.12), transparent 55%);
    opacity: 0.9;
    pointer-events: none;
}

.legal-card__inner {
    position: relative;
    z-index: 1;
}

/* Contenu généré par CKEditor dans les pages légales */

.legal-content {
    font-size: 15.5px;
    line-height: 1.8;
    color: #e5e7eb;
}

/* Paragraphes */
.legal-content p {
    margin-bottom: 1rem;
}

/* Titres internes */
.legal-content h2,
.legal-content h3,
.legal-content h4 {
    margin-top: 2rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: #f9fafb;
}

/* Le tout premier h2 : on évite un gros trou en haut */
.legal-content h2:first-of-type {
    margin-top: 0.5rem;
}

/* Listes – important pour tes puces CKEditor */
.legal-content ul,
.legal-content ol {
    margin: 0 0 1rem 0;
    padding-left: 1.4rem;      /* décale les puces proprement */
    list-style-position: outside;
}

.legal-content li {
    margin-bottom: 0.35rem;
}

/* Liens */
.legal-content a {
    color: #4ade80;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.legal-content a:hover {
    color: #22c55e;
}

/* ----------------------------- */
/* MODE CLAIR                   */
/* ----------------------------- */
body[data-theme="light"] .legal-content {
    color: #1f2937; /* Gris très foncé */
}

body[data-theme="light"] .legal-content h2,
body[data-theme="light"] .legal-content h3,
body[data-theme="light"] .legal-content h4 {
    color: #111827; /* Noir doux premium */
}

body[data-theme="light"] .legal-content a {
    color: #16a34a;
}

body[data-theme="light"] .legal-content a:hover {
    color: #15803d;
}

/* Listes */
body[data-theme="light"] .legal-content ul,
body[data-theme="light"] .legal-content ol {
    padding-left: 1.4rem;
}

body[data-theme="light"] .legal-content li {
    margin-bottom: 0.35rem;
}

/* Carte */
body[data-theme="light"] .legal-card {
    background: #ffffff;
    border-color: rgba(148, 163, 184, 0.35);
    box-shadow:
            0 22px 45px rgba(15, 23, 42, 0.10),
            0 0 0 1px rgba(148, 163, 184, 0.15);
}

/* ----------------------------- */
/* MODE SOMBRE                  */
/* ----------------------------- */
body[data-theme="dark"] .legal-content {
    color: #e5e7eb; /* gris clair premium */
}

body[data-theme="dark"] .legal-content h2,
body[data-theme="dark"] .legal-content h3,
body[data-theme="dark"] .legal-content h4 {
    color: #f9fafb; /* Blanc premium */
}

body[data-theme="dark"] .legal-content a {
    color: #4ade80;
}

body[data-theme="dark"] .legal-content a:hover {
    color: #22c55e;
}

/* Listes */
body[data-theme="dark"] .legal-content ul,
body[data-theme="dark"] .legal-content ol {
    padding-left: 1.4rem;
}

body[data-theme="dark"] .legal-content li {
    margin-bottom: 0.35rem;
}

/* Carte */
body[data-theme="dark"] .legal-card {
    background: #0f172a; /* bleu-noir premium */
    border-color: rgba(255, 255, 255, 0.1);

    box-shadow:
            0 22px 45px rgba(0, 0, 0, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.05);
}

.services-checklists {
    display: flex;
    justify-content: space-around;
    gap: 24px;
    margin-top: 16px;
    flex-wrap: wrap;
    text-align: left;
}

.services-checklists .checklist {
    margin: 0;
}

.services-alt {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.services-alt__row {
    display: grid;
    grid-template-columns: minmax(0, 0.3fr) minmax(0, 0.7fr);
    gap: 24px;
    align-items: center;
}

.services-alt__row--reverse {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 0.3fr);
}

.services-alt__col {
    min-width: 0;
}

.services-alt__col--text .service-card--alt {
    box-shadow: none; /* un peu plus sobre si tu veux */
}

@media (max-width: 900px) {
    .services-alt__row,
    .services-alt__row--reverse {
        grid-template-columns: minmax(0, 1fr);
    }
}

.service-carousel {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0,0,0,0.85);
    background: #020617;
}

.service-carousel__track {
    display: flex;
    transition: transform 0.4s ease;
}

.service-carousel__slide {
    min-width: 100%;
}

.service-carousel__slide img {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.service-carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(15,23,42,0.85);
    color: #f9fafb;
    cursor: pointer;
}

.service-carousel__nav--prev { left: 10px; }
.service-carousel__nav--next { right: 10px; }

/* ====== SECTION PROCESS / TIMELINE ====== */
/* CONTENEUR TIMELINE */
.process-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)); /* 4 étapes */
    column-gap: 28px;
    margin-top: 32px;
    padding: 40px 0 40px; /* un peu d’air au-dessus et en dessous */
}

/* Ligne horizontale, à peu près entre titre et texte */
.process-timeline::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 95px; /* 🔹 monte / descend la ligne ici (90–105px) */
    height: 2px;
    background: linear-gradient(
        90deg,
        rgba(148,163,184,0.1),
        rgba(34,197,94,0.6),
        rgba(148,163,184,0.1)
    );
    border-radius: 999px;
}

/* Étape */
.process-step {
    position: relative;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .4s ease, transform .4s ease;
}

.process-step.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Titre au-dessus de la ligne */
.process-step__head {
    margin-bottom: 12px; /* 🔹 avant tu avais 32px, on rapproche du trait */
}

.process-step__title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

/* Point centré sur la ligne */
.process-step__dot {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #020617;
    border: 2px solid rgba(148,163,184,0.8);
    box-shadow: 0 0 0 0 rgba(34,197,94,0.6);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;

    position: absolute;
    left: 50%;
    top: 48px;          /* 🔹 même valeur que la ligne */
    transform: translateX(-50%);
}

.process-step.is-visible .process-step__dot {
    border-color: #22c55e;
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34,197,94,0.30);
}

/* Contenu en dessous de la ligne */
.process-step__content {
    margin-top: 60px;      /* 🔹 on descend les textes pour qu’ils soient sous la ligne */
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.process-step__content ul {
    padding-left: 0;
    margin: 0;
}

.process-step__content li + li {
    margin-top: 4px;
}

/* ====== MOBILE ====== */
@media (max-width: 768px) {

    .process-timeline {
        position: relative;
        display: block;
        margin-top: 24px;
        padding: 0;
    }

    /* Ligne verticale à gauche */
    .process-timeline::before {
        content: "";
        position: absolute;
        left: 18px;
        top: 4px;  /* point de départ de la ligne */
        bottom: 0;
        width: 2px;
        height: calc(100% - 8px);   /* ✅ override le height:2px du desktop */
        background: linear-gradient(
            180deg,
            rgba(148,163,184,0.1),
            rgba(34,197,94,0.6),
            rgba(148,163,184,0.1)
        );
    }

    /* Chaque étape : bloc avec marge à gauche pour laisser la ligne + le point */
    .process-step {
        position: relative;
        padding-left: 48px;   /* espace pour la timeline + dot */
        margin-bottom: 32px;
        opacity: 1;
        transform: none;
        text-align: left;
    }

    .process-step__head {
        margin-bottom: 4px;
        text-align: left;
    }

    .process-step__title {
        font-size: 15px;
        font-weight: 600;
        margin-bottom: 4px;
    }

    /* Pastille positionnée sur la ligne, à gauche du titre */
    .process-step__dot {
        position: absolute;
        left: 18px;
        top: 4px;                 /* ajuste si besoin */
        transform: translateX(-50%);
        width: 14px;
        height: 14px;
        border-radius: 999px;
        background: #020617;
        border: 2px solid rgba(148,163,184,0.8);
        box-shadow: 0 0 0 0 rgba(34,197,94,0.3);
        flex-shrink: 0;
    }

    .process-step.is-visible .process-step__dot {
        border-color: #22c55e;
        background: #22c55e;
        box-shadow: 0 0 0 4px rgba(34,197,94,0.25);
    }

    /* Texte directement sous le titre, à droite de la timeline */
    .process-step__content {
        margin-top: 0;
        max-width: none;
        text-align: left;
    }

    .process-step__content ul {
        padding-left: 18px;
        margin: 0;
    }
}

/* Liste "check" pour le process */
.process-step__list{
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 0;
    margin: 0;
    font-size: 14px;
    color: #9ca3af;
}

.process-step__list li{
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.process-step__list li::before{
    content: "✔";
    color: var(--green);
    flex-shrink: 0;
    line-height: 1.2;
    margin-top: 2px;
}

/* ================================
SECTION "RÉPARATION D’EMBALLAGES"
Cartes + carrousels
================================ */

.services-alt {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Ligne normale = image à droite */
.services-alt__row {
    display: flex;
    align-items: stretch;
    gap: 32px;
}

/* Ligne inversée = image à gauche */
.services-alt__row--reverse {
    flex-direction: row-reverse; /* ← L’INVERSER */
}

/* Colonnes */
.services-alt__col {
    flex: 1 1 0;
}

/* 30% / 70% comme du Bootstrap-ish */
.services-alt__col--text {
    flex: 0 0 34%;
    max-width: 420px;
}

.services-alt__col--media {
    flex: 1;
    display: flex;
    align-items: stretch;
}

/* Carte texte */
.service-card--alt {
    background: radial-gradient(circle at top left, rgba(15,23,42,0.9), #020617);
    border-radius: 18px;
    padding: 24px 24px 20px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.45);
    border: 1px solid rgba(148,163,184,0.25);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.service-card__text {
    font-size: 16px;
    line-height: 1.6;
    color: #e5e7eb;
    margin-bottom: 12px;
}

.service-card__list {
    list-style: disc;
    padding-left: 18px;
    margin-bottom: 16px;
    font-size: 14px;
}

.service-card__list li + li {
    margin-top: 4px;
}

/* Lien CTA */
.service-card__cta {
    margin-top: auto;
    font-weight: 500;
}

/* ===== Carrousel (palettes / caisses / conteneurs) ===== */

.service-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #020617;
    box-shadow: 0 16px 40px rgba(0,0,0,0.55);
    width: 100%;
    aspect-ratio: 16 / 9;      /* change ici: 4/3 si tu préfères */
    min-height: auto;          /* retire les min-height fixes si tu peux */
    height: auto;
}

.service-carousel__track {
    display: flex;
    transition: transform 0.4s ease;
    width: 100%;
    height: 100%;
}

.service-carousel__slide {
    min-width: 100%;
    height: 100%;
}

.service-carousel__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #fcfcfcff;  /* pour que les bandes aient la même couleur */
}

/* Flèches */
.service-carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(15,23,42,0.8);
    border-radius: 999px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: #e5e7eb;
}

.service-carousel__nav--prev { left: 10px; }
.service-carousel__nav--next { right: 10px; }

/* ========================
RESPONSIVE
======================== */

@media (max-width: 992px) {
    .services-alt__col--text {
        flex: 0 0 40%;
        max-width: none;
    }
}

/* Mobile : cartes verticales, carrousel en dessous du texte */
@media (max-width: 768px) {

    .services-alt__row,
    .services-alt__row--reverse {
        flex-direction: column;
    }

    .services-alt__col--text,
    .services-alt__col--media {
        flex: 0 0 auto;
        max-width: none;
        width: 100%;
    }

    /* Sur mobile, on force toujours le texte au-dessus du carrousel,
    même pour les lignes "reverse" */
    .services-alt__row--reverse .services-alt__col--text {
        order: 1;
    }
    .services-alt__row--reverse .services-alt__col--media {
        order: 2;
    }

    .service-card--alt {
        padding: 20px 18px 16px;
    }

    .service-carousel {
        margin-top: 12px;
        min-height: 220px;
        aspect-ratio: 4 / 3;
    }

    .service-carousel__slide img {
        object-fit: contain;
        background: #020617; /* pour que les bandes aient la même couleur */
    }

}

.text-success {
    color: var(--text-success);
    font-weight: 500;
}

.text-success-soft {
    color: var(--text-success-soft);
    font-weight: 400;
}

.text-success--strong {
    color: var(--green-strong);
    font-weight: 600;
}


/* =========================
REASSURANCE / TRUST
========================= */

.section--reassurance .section__header {
    margin-bottom: 14px;
}

.trust-wrap {
    display: grid;
    gap: 14px;
}

.trust-marquee {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(55, 65, 81, 0.95);
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.95), #020617);
    box-shadow: var(--shadow-soft);
    padding: 14px 10px;
}

/* body[data-theme="light"] .trust-marquee {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(243, 244, 246, 0.9));
    border-color: var(--border-light);
} */
/* Garder la marquee sombre en mode light pour lisibilité logos */
body[data-theme="light"] .trust-marquee {
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.92), #020617);
    border-color: rgba(15, 23, 42, 0.18);
}

/* Voile gauche/droite (effet fondu) */
.trust-marquee::before,
.trust-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 72px;
    z-index: 2;
    pointer-events: none;
}

.trust-marquee::before {
    left: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 1), rgba(2, 6, 23, 0));
}

.trust-marquee::after {
    right: 0;
    background: linear-gradient(270deg, rgba(2, 6, 23, 1), rgba(2, 6, 23, 0));
}

/* body[data-theme="light"] .trust-marquee::before {
    background: linear-gradient(90deg, rgba(243, 244, 246, 1), rgba(243, 244, 246, 0));
}

body[data-theme="light"] .trust-marquee::after {
    background: linear-gradient(270deg, rgba(243, 244, 246, 1), rgba(243, 244, 246, 0));
} */
body[data-theme="light"] .trust-marquee::before {
    background: linear-gradient(90deg, rgba(2, 6, 23, 1), rgba(2, 6, 23, 0));
}
body[data-theme="light"] .trust-marquee::after {
    background: linear-gradient(270deg, rgba(2, 6, 23, 1), rgba(2, 6, 23, 0));
}


/* Track de défilement */
.trust-marquee__track {
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    animation: trust-scroll 26s linear infinite;
    padding-right: 18px;
}

@keyframes trust-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .trust-marquee__track { animation: none; }
}

/* Carte logo */
.trust-logo {
    width: 160px;
    height: 74px;
    border-radius: 14px;
    border: 1px solid rgba(55, 65, 81, 0.75);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
        radial-gradient(circle at 20% 20%, rgba(34, 197, 94, 0.12), transparent 55%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    position: relative;
    overflow: hidden;
    padding: 10px 16px; /* aide les logos petits à mieux remplir */
}

/* body[data-theme="light"] .trust-logo {
    border-color: rgba(209, 213, 219, 0.9);
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0)),
        radial-gradient(circle at 20% 20%, rgba(34, 197, 94, 0.10), transparent 55%),
        rgba(255, 255, 255, 0.85);
} */
body[data-theme="light"] .trust-logo {
    /* background: rgba(2,6,23,0.28); */
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
        radial-gradient(circle at 20% 20%, rgba(34, 197, 94, 0.12), transparent 55%);
    border-color: rgba(255,255,255,0.14);
    box-shadow: 0 10px 26px rgba(15,23,42,0.10);
}

.trust-logo__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    opacity: 0.92;
}

/* Note + CTA */
.trust-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(55, 65, 81, 0.75);
    background: rgba(2, 6, 23, 0.45);
    padding: 12px;
}

body[data-theme="light"] .trust-note {
    background: rgba(255, 255, 255, 0.75);
    border-color: var(--border-light);
}

.trust-note__text {
    margin: 0;
    color: rgba(241, 245, 249, 0.78);
    font-size: var(--fs-sm);
    line-height: 1.55;
}

body[data-theme="light"] .trust-note__text {
    color: rgba(15, 23, 42, 0.70);
}

/* =========================
   BENEFITS (premium)
   ========================= */

.benefits-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* Cards */
.benefit-card {
  border-radius: var(--radius-lg);
  padding: 16px 16px 14px;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.95), var(--bg-dark));
  border: 1px solid var(--border-dark);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.benefit-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.75);
  border-color: rgba(34, 197, 94, 0.35);
}

.benefit-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

/* Icon (SVG) */
.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.10);
  border: 1px solid rgba(34, 197, 94, 0.18);
  color: var(--green);
}

body[data-theme="light"] .benefit-icon {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.20);
}

.benefit-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.benefit-card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  color: var(--text-dark);
  letter-spacing: 0.2px;
}

.benefit-card__text {
  margin: 0 0 10px;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(241, 245, 249, 0.82);
}

.benefit-card__list {
  margin: 0;
  padding-left: 18px;
  color: rgba(241, 245, 249, 0.82);
  /* font-size: 13.5px; */
  line-height: 1.20;
}

.benefit-card__list li + li {
  margin-top: 4px;
}

/* Side card (sticky desktop) */
.benefits-side__card {
  border-radius: var(--radius-xl);
  padding: 18px 18px 16px;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.95), var(--bg-dark));
  border: 1px solid rgba(34, 197, 94, 0.25);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 92px;
}

.benefits-side__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.22);
  background: rgba(34, 197, 94, 0.08);
  font-size: 13px;
  color: rgba(241, 245, 249, 0.86);
  margin-bottom: 10px;
}

.benefits-side__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text-dark);
}

.benefits-side__text {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(241, 245, 249, 0.82);
}

.benefits-side__highlights {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.highlight {
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.35);
}

.highlight__label {
  font-size: 14px;
  color: rgba(241, 245, 249, 0.65);
  margin-bottom: 3px;
}

.highlight__value {
  font-size: 14.5px;
  color: rgba(241, 245, 249, 0.9);
  font-weight: 600;
}

.benefits-side__actions {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.benefits-side__note {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: rgba(241, 245, 249, 0.70);
  line-height: 1.5;
}

/* Light mode */
body[data-theme="light"] .benefit-card,
body[data-theme="light"] .benefits-side__card {
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), var(--bg-soft-light));
  border-color: rgba(209, 213, 219, 0.95);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
}

body[data-theme="light"] .benefit-card__title,
body[data-theme="light"] .benefits-side__title {
  color: var(--text-light);
}

body[data-theme="light"] .benefit-card__text,
body[data-theme="light"] .benefit-card__list,
body[data-theme="light"] .benefits-side__text,
body[data-theme="light"] .benefits-side__note,
body[data-theme="light"] .benefits-side__badge {
  color: rgba(15, 23, 42, 0.82);
}

body[data-theme="light"] .benefits-side__badge {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.25);
}

body[data-theme="light"] .highlight {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(209, 213, 219, 0.9);
}

body[data-theme="light"] .highlight__label {
  color: rgba(15, 23, 42, 0.65);
}

body[data-theme="light"] .highlight__value {
  color: rgba(15, 23, 42, 0.9);
}

/* Responsive */
@media (max-width: 992px) {
  .benefits-layout {
    grid-template-columns: 1fr;
  }
  .benefits-side__card {
    position: relative;
    top: auto;
  }
}

@media (max-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
FAQ AI – HOME
========================= */

.faq-ai-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.6fr; /* ✅ chat plus large */
    gap: 22px;
    align-items: stretch;
}

/* Colonne gauche */
.faq-ai-content {
    border-radius: var(--radius-xl);
    padding: 20px 20px 18px;
    background: radial-gradient(circle at top left, rgba(15,23,42,0.95), var(--bg-dark));
    border: 1px solid var(--border-dark);
    box-shadow: var(--shadow-soft);
}

.faq-ai-text {
    margin: 0 0 12px;
    font-size: 14.5px;
    line-height: 1.6;
    color: rgba(241,245,249,0.85);
}

.faq-ai-points {
    margin: 12px 0 14px;
    padding-left: 0;
    list-style: none; 
    font-size: 14px;
    color: rgba(241,245,249,0.8);
}

.faq-ai-points li {
    display: flex;
    gap: 8px;
    align-items: baseline;
}

.faq-ai-points li + li {
    margin-top: 6px; 
}

.faq-ai-points li::before {
    content: "✔ ";
    color: var(--green);
    font-size: 0.95em;
}

.faq-ai-note {
    margin-top: 12px;
    font-size: 13.5px;
    color: rgba(241,245,249,0.7);
}

/* Colonne droite : chat */
.faq-ai-chat {
    border-radius: var(--radius-xl);
    padding: 16px;
    background: radial-gradient(circle at top left, rgba(15,23,42,0.95), var(--bg-dark));
    border: 1px solid rgba(34,197,94,0.25);
    box-shadow: var(--shadow-soft);
    display: flex;
}

/* Assure que le chat prend toute la hauteur */
.faq-ai-chat > * {
    flex: 1;
}

/* Light mode */
body[data-theme="light"] .faq-ai-content,
body[data-theme="light"] .faq-ai-chat {
    background: radial-gradient(circle at top left, rgba(255,255,255,0.95), var(--bg-soft-light));
    border-color: var(--border-light);
}

body[data-theme="light"] .faq-ai-text,
body[data-theme="light"] .faq-ai-points,
body[data-theme="light"] .faq-ai-note {
    color: rgba(15,23,42,0.8);
}

/* Responsive */
@media (max-width: 992px) {
    .faq-ai-layout {
        grid-template-columns: 1fr;
    }
}

.badges { display:flex; flex-wrap:wrap; gap:8px; }
.badge { 
    display:inline-flex; 
    align-items:center; 
    padding:4px 10px; 
    border-radius:999px; 
    font-size:12px; 
    line-height:1; 
    background: rgba(34,197,94,0.12);
    color: #22c55e;
    font-weight: 500;
}
.badge--link { text-decoration:none; border:1px solid rgba(255,255,255,25); background:rgba(255,255,255,25); }
.badge--link:hover { transform: translateY(-1px); }

.service-card__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 14px;
    width: 100%;
    gap: 20px;
}

/* Mobile : on empile proprement */
@media (max-width: 640px) {
    .service-card__actions {
        flex-direction: column;
        align-items: flex-start;
    }
}
