/* =========================================================
   SABONEA : feuille de style du site public
   (surcouche de Bootstrap ; remplace style.css du template)
   ========================================================= */

/* --- Polices de marque --- */
@font-face {
    font-family: 'Pacaembu';
    src: url('../fonts/pacaembu/Pacaembu-Regular-Trial.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Pacaembu';
    src: url('../fonts/pacaembu/Pacaembu-Medium-Trial.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Pacaembu';
    src: url('../fonts/pacaembu/Pacaembu-Bold-Trial.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Pacaembu';
    src: url('../fonts/pacaembu/Pacaembu-Black-Trial.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* --- Palette et réglages communs ---
   Violet = encre et fonds sombres, orange = seul accent,
   vert = états validés des formulaires uniquement. */
:root {
    --sb-ink: #2C0350;
    --sb-purple: #49037F;
    --sb-text: #2B2433;
    --sb-muted: #6A6273;
    --sb-line: #E2DDE5;
    --sb-field: #CFC8D4;
    --sb-paper: #F5F2EC;
    --sb-accent: #FF7F00;
    --sb-accent-dark: #E26F00;
    --sb-success: #056800;
    --sb-success-soft: #E9F2E8;
    --sb-danger: #B42318;
    --sb-radius: 3px;
    --sb-font-display: 'Pacaembu', 'Poppins', sans-serif;
    --sb-font-text: 'Poppins', sans-serif;
    /* Marge gauche commune au logo et au texte du carrousel. */
    --sabonea-edge: clamp(20px, 6vw, 90px);
}

/* Poppins et Pacaembu n'ont pas de glyphes chinois : repli sur Noto Sans SC. */
html[lang="zh"] {
    --sb-font-display: 'Pacaembu', 'Poppins', 'Noto Sans SC', sans-serif;
    --sb-font-text: 'Poppins', 'Noto Sans SC', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--sb-font-text);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--sb-text);
    background: #fff;
}

p, span, li, a, label, small, dd, dt { overflow-wrap: break-word; }

a { color: var(--sb-purple); }
a:hover { color: var(--sb-ink); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sb-font-display);
    font-weight: 700;
    color: var(--sb-ink);
    overflow-wrap: break-word;
}

:focus-visible { outline: 2px solid var(--sb-accent); outline-offset: 2px; }

/* --- Échelle typographique --- */
.t-display {
    font-family: var(--sb-font-display);
    font-weight: 900;
    font-size: clamp(2.5rem, 4.6vw + .75rem, 4.75rem);
    line-height: 1;
    letter-spacing: -.025em;
}
.t-page {
    font-family: var(--sb-font-display);
    font-weight: 900;
    font-size: clamp(2.4rem, 4vw + .75rem, 4.25rem);
    line-height: 1.02;
    letter-spacing: -.025em;
}
.t-h2 {
    font-size: clamp(1.85rem, 1.8vw + 1.1rem, 2.75rem);
    line-height: 1.08;
    letter-spacing: -.015em;
    margin-bottom: 1.25rem;
}
.t-h3 {
    font-size: 1.375rem;
    line-height: 1.2;
    margin-bottom: .75rem;
}
.t-lead {
    font-size: 1.1875rem;
    line-height: 1.6;
}
.t-lead-xl {
    font-family: var(--sb-font-display);
    font-weight: 500;
    font-size: clamp(1.5rem, 1.2vw + 1.1rem, 2.125rem);
    line-height: 1.3;
    letter-spacing: -.01em;
    color: var(--sb-ink);
    margin-bottom: 1.5rem;
}
.t-quote {
    font-family: var(--sb-font-display);
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 1.35;
    color: var(--sb-ink);
    margin: 1.75rem 0;
    padding-left: 1.25rem;
    border-left: 3px solid var(--sb-accent);
}
.label {
    display: block;
    font-family: var(--sb-font-text);
    font-size: .875rem;
    font-weight: 500;
    color: var(--sb-muted);
    margin-bottom: .75rem;
}
.muted { color: var(--sb-muted); }
.measure { max-width: 38rem; }

/* --- Boutons et liens --- */
.btn {
    font-family: var(--sb-font-text);
    font-weight: 600;
    font-size: .9375rem;
    line-height: 1.3;
    padding: .8rem 1.35rem;
    border-radius: var(--sb-radius);
    text-transform: none;
    letter-spacing: 0;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:focus, .btn:active:focus { box-shadow: none; }
.btn:focus-visible { outline: 2px solid var(--sb-accent); outline-offset: 2px; }

.btn-accent, .navbar-cta {
    background: var(--sb-accent);
    border: 1px solid var(--sb-accent);
    color: var(--sb-ink);
}
.btn-accent:hover, .navbar-cta:hover {
    background: var(--sb-accent-dark);
    border-color: var(--sb-accent-dark);
    color: var(--sb-ink);
}
.btn-primary {
    background: var(--sb-ink);
    border-color: var(--sb-ink);
    color: #fff;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:disabled {
    background: var(--sb-purple);
    border-color: var(--sb-purple);
    color: #fff;
}
.btn-outline-primary {
    background: transparent;
    border: 1.5px solid var(--sb-ink);
    color: var(--sb-ink);
}
.btn-outline-primary:hover {
    background: var(--sb-ink);
    border-color: var(--sb-ink);
    color: #fff;
}

.link-more {
    font-weight: 600;
    color: var(--sb-ink);
    text-decoration: underline;
    text-decoration-color: var(--sb-accent);
    text-decoration-thickness: 1.5px;
    text-underline-offset: .35em;
}
.link-more:hover { color: var(--sb-purple); text-decoration-thickness: 3px; }
.link-light, .link-light:hover { color: #fff; }

/* --- Sections --- */
.section { padding: clamp(4rem, 8vw, 7.5rem) 0; }
.section-paper { background: var(--sb-paper); }
.section-ink { background: var(--sb-ink); color: rgba(255,255,255,.8); }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink .label { color: rgba(255,255,255,.6); }
.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2.5rem;
    margin-bottom: 2.5rem;
}
.section-head .t-h2 { max-width: 20ch; margin-bottom: 0; }

.figure-portrait, .figure-wide { margin: 0; }
.figure-portrait img, .figure-wide img { display: block; width: 100%; object-fit: cover; }
.figure-portrait img { aspect-ratio: 4 / 5; }
.figure-wide img { aspect-ratio: 21 / 9; }

/* --- Listes --- */
.rule-list {
    list-style: none;
    padding: 0;
    margin: 1.75rem 0 2rem;
    border-bottom: 1px solid var(--sb-line);
}
.rule-list li { padding: .85rem 0; border-top: 1px solid var(--sb-line); }
.rule-list-lg li {
    font-family: var(--sb-font-display);
    font-weight: 500;
    font-size: 1.25rem;
    line-height: 1.35;
    color: var(--sb-ink);
    padding: 1.1rem 0;
}
.rule-list-sm { margin: 0; font-size: .9375rem; }
.rule-list-sm li { padding: .6rem 0; }

.entry-list { list-style: none; padding: 0; margin: 0; border-bottom: 1px solid var(--sb-line); }
.entry-list li {
    display: grid;
    grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
    gap: .25rem 2rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--sb-line);
}
.entry-list-title { font-family: var(--sb-font-display); font-weight: 700; font-size: 1.125rem; line-height: 1.3; color: var(--sb-ink); }
.entry-list-text { color: var(--sb-muted); }
@media (max-width: 767.98px) {
    .entry-list li { grid-template-columns: 1fr; }
}

.step-list { list-style: none; counter-reset: step; padding: 0; margin: 0 0 2rem; }
.step-list li {
    counter-increment: step;
    position: relative;
    padding: 1.2rem 0 1.2rem 3.25rem;
    border-top: 1px solid var(--sb-line);
}
.step-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 1.05rem;
    font-family: var(--sb-font-display);
    font-weight: 900;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--sb-purple);
}
.step-list-title {
    display: block;
    font-family: var(--sb-font-display);
    font-weight: 700;
    font-size: 1.1875rem;
    line-height: 1.3;
    color: var(--sb-ink);
    margin-bottom: .2rem;
}
.step-list-text { display: block; color: var(--sb-muted); }
.step-list-lg li { padding-left: 4.5rem; }
.step-list-lg li::before { font-size: 2.5rem; top: 1rem; }
.step-list-compact li { padding: .9rem 0 .9rem 2rem; }
.step-list-compact li::before { font-size: 1.125rem; top: 1rem; }
.step-list-compact .step-list-title { font-size: 1.0625rem; }
.step-list-compact .step-list-text { font-size: .9375rem; }
.step-list-light li { border-color: rgba(255,255,255,.18); }
.step-list-light li::before { color: var(--sb-accent); }
.step-list-light .step-list-title { color: #fff; }
.step-list-light .step-list-text { color: rgba(255,255,255,.7); }

.index-list {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 3rem;
}
.index-list li {
    break-inside: avoid;
    padding: .8rem 0;
    border-bottom: 1px solid var(--sb-line);
    font-weight: 500;
    color: var(--sb-ink);
}
@media (max-width: 767.98px) {
    .index-list { columns: 1; }
}

.note {
    font-size: .9375rem;
    color: var(--sb-muted);
    padding-top: 1rem;
    border-top: 1px solid var(--sb-line);
}

/* --- Barre supérieure --- */
.topbar {
    background: var(--sb-paper);
    border-bottom: 1px solid var(--sb-line);
    font-size: .8125rem;
    color: var(--sb-muted);
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 2.5rem;
    padding: 0 var(--sabonea-edge);
}
.topbar a { color: var(--sb-text); text-decoration: none; }
.topbar a:hover { color: var(--sb-purple); text-decoration: underline; }
.topbar-social { display: flex; align-items: center; gap: 1.1rem; }

/* --- Navigation --- */
.navbar.navbar-expand-xl {
    position: sticky;
    top: 0;
    z-index: 1030;
    border-bottom: 1px solid var(--sb-line);
}
.navbar .navbar-brand,
.navbar .navbar-phone { height: 76px; }
.navbar-brand {
    display: flex;
    align-items: center;
    padding-left: var(--sabonea-edge) !important;
    padding-right: 1rem !important;
}
.navbar-brand img { height: 40px; }
.navbar-light .navbar-nav .nav-link {
    position: relative;
    font-family: var(--sb-font-text);
    font-weight: 500;
    font-size: .9375rem;
    color: var(--sb-text);
    margin: 0 .9rem;
    padding: 1.6rem 0;
    white-space: nowrap;
}
.navbar-light .navbar-nav .nav-link:hover { color: var(--sb-purple); }
.navbar-light .navbar-nav .nav-link.active { color: var(--sb-ink); font-weight: 600; }
.navbar-light .navbar-nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1.15rem;
    height: 2px;
    background: var(--sb-accent);
}
.navbar-phone { padding-left: 1rem !important; padding-right: 1rem !important; }
.navbar-cta { padding: .65rem 1.1rem; white-space: nowrap; }

/* Lien « Devenir fournisseur » : seulement quand la barre a la place. */
.navbar-secondary-link { display: none; }
@media (min-width: 1600px) {
    .navbar-secondary-link {
        display: inline-block;
        margin-right: 1.5rem;
        font-weight: 600;
        font-size: .9375rem;
        color: var(--sb-ink);
        text-decoration: none;
        white-space: nowrap;
    }
    .navbar-secondary-link:hover { color: var(--sb-purple); text-decoration: underline; text-underline-offset: .3em; }
}
@media (min-width: 1200px) and (max-width: 1439.98px) {
    .navbar-light .navbar-nav .nav-link { font-size: .875rem; margin: 0 .6rem; }
    .navbar-brand img { height: 36px; }
}
/* Menu replié (sous 1200 px). */
@media (max-width: 1199.98px) {
    .navbar-collapse { max-height: 80vh; overflow-y: auto; }
    .navbar-nav { border-top: 1px solid var(--sb-line); }
    .navbar-light .navbar-nav .nav-link {
        margin: 0;
        padding: .8rem 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--sb-line);
    }
    .navbar-light .navbar-nav .nav-link.active::after { display: none; }
    .navbar .navbar-phone { height: auto; padding: 1rem 0 .25rem !important; }
    .navbar-phone .navbar-cta { display: block; width: 100%; text-align: center; }
}
.navbar-toggler { border-radius: var(--sb-radius); }
.navbar-toggler:focus { box-shadow: none; }

/* Sélecteur de langue */
.lang-switcher { margin-right: 12px; }
.lang-switcher-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--sb-line);
    border-radius: var(--sb-radius);
    background: #fff;
    color: var(--sb-ink);
    font-family: var(--sb-font-text);
    font-size: .8125rem;
    font-weight: 600;
    transition: border-color .15s ease;
}
.lang-switcher-toggle:hover,
.lang-switcher-toggle[aria-expanded="true"] { border-color: var(--sb-ink); }
.lang-switcher-chevron { font-size: 10px; }
.lang-switcher-menu {
    min-width: 220px;
    padding: 6px 0;
    border: 1px solid var(--sb-line);
    border-radius: var(--sb-radius);
    box-shadow: 0 8px 24px rgba(44, 3, 80, .12);
}
.lang-switcher-title { padding: 6px 14px 8px; font-size: .75rem; font-weight: 500; color: var(--sb-muted); }
.lang-switcher-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    font-size: .9375rem;
    color: var(--sb-text);
}
.lang-switcher-menu .dropdown-item:hover,
.lang-switcher-menu .dropdown-item:focus { background: var(--sb-paper); color: var(--sb-ink); }
.lang-switcher-menu .dropdown-item.active,
.lang-switcher-menu .dropdown-item:active { background: var(--sb-paper); color: var(--sb-ink); font-weight: 600; }
.lang-switcher-item-code { margin-left: auto; font-size: .75rem; color: var(--sb-muted); font-weight: 500; }
.lang-switcher-check { color: var(--sb-ink); font-size: .75rem; margin-left: 4px; }
.lang-flag {
    width: 22px;
    height: 16px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}
.lang-switcher-menu .lang-flag { width: 24px; height: 18px; }
@media (min-width: 1200px) {
    .lang-switcher { margin-right: calc(var(--sabonea-edge) - 1rem); }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .lang-switcher-code { display: none; }
}

/* --- Carrousel d'accueil --- */
.hero { position: relative; background: var(--sb-ink); }
.header-carousel .owl-carousel-item {
    position: relative;
    height: clamp(560px, 80vh, 720px);
    overflow: hidden;
}
.header-carousel .owl-carousel-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Voile uni, uniquement pour la lisibilité du texte. */
.header-carousel .owl-carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(20, 8, 32, .55);
}
.owl-carousel-inner {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    padding-bottom: clamp(4rem, 9vh, 6rem);
}
.header-carousel .owl-carousel-inner .container {
    max-width: 100%;
    margin: 0;
    padding-left: var(--sabonea-edge);
    padding-right: var(--sabonea-edge);
}
.hero-copy { max-width: 48rem; }
.hero-label { font-size: .9375rem; font-weight: 500; color: rgba(255,255,255,.75); margin-bottom: 1rem; }
.hero .t-display { color: #fff; margin-bottom: 1.25rem; }
.hero-text { font-size: 1.125rem; color: rgba(255,255,255,.88); max-width: 36rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.header-carousel .owl-dots {
    position: absolute;
    right: var(--sabonea-edge);
    bottom: 1.75rem;
    z-index: 2;
    display: flex;
    gap: 8px;
}
.header-carousel .owl-dots.disabled { display: none; }
.header-carousel .owl-dot { padding: 10px 0; border: 0; background: none; }
.header-carousel .owl-dot span { display: block; width: 28px; height: 3px; background: rgba(255,255,255,.45); }
.header-carousel .owl-dot.active span { background: #fff; }
.hero-strip {
    background: var(--sb-ink);
    border-top: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.8);
    font-size: .9375rem;
}
.hero-strip ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 1rem var(--sabonea-edge);
}
.hero-strip li + li::before { content: "·"; margin: 0 .9rem; color: var(--sb-accent); }
@media (max-width: 575.98px) {
    .hero-text { font-size: 1rem; }
    .hero-actions .btn { width: 100%; text-align: center; }
    .header-carousel .owl-dots { right: auto; left: var(--sabonea-edge); }
}

/* --- Points clés --- */
.facts { padding: 3rem 0; border-bottom: 1px solid var(--sb-line); }
.facts-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.facts-list-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fact { padding: .25rem 1.75rem; border-left: 1px solid var(--sb-line); }
.fact:first-child { padding-left: 0; border-left: 0; }
.fact dt { font-family: var(--sb-font-display); font-weight: 700; font-size: 1.1875rem; line-height: 1.25; color: var(--sb-ink); margin-bottom: .4rem; }
.fact dd { margin: 0; font-size: .9375rem; line-height: 1.55; color: var(--sb-muted); }
@media (max-width: 991.98px) {
    .facts-list, .facts-list-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.5rem; }
    .fact:nth-child(odd) { padding-left: 0; border-left: 0; }
}
@media (max-width: 575.98px) {
    .facts-list, .facts-list-3 { grid-template-columns: 1fr; row-gap: 0; }
    .fact, .fact:nth-child(odd) { padding: 1rem 0; border-left: 0; border-top: 1px solid var(--sb-line); }
    .fact:first-child { border-top: 0; }
}

/* --- Secteurs --- */
.sector-mosaic {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    grid-auto-rows: 15rem;
    gap: 1rem;
}
.sector-tile { position: relative; display: block; overflow: hidden; background: var(--sb-ink); }
.sector-tile:first-child { grid-row: span 2; }
.sector-tile:nth-child(4):last-child { grid-column: span 2; }
.sector-tile img { width: 100%; height: 100%; object-fit: cover; }
.sector-tile-name {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: .55rem .9rem;
    background: #fff;
    font-family: var(--sb-font-display);
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--sb-ink);
    transition: background-color .15s ease;
}
.sector-tile:hover .sector-tile-name,
.sector-tile:focus-visible .sector-tile-name { background: var(--sb-accent); }
@media (max-width: 767.98px) {
    .sector-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 11rem; }
    .sector-tile:first-child { grid-row: auto; grid-column: span 2; }
}

.sector-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 1.5rem; }
.sector-item { margin: 0; }
.sector-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: .75rem; }
.sector-item figcaption { font-family: var(--sb-font-display); font-weight: 700; font-size: 1.125rem; color: var(--sb-ink); }
@media (max-width: 991.98px) { .sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .sector-grid { grid-template-columns: 1fr; } }

/* --- Accueil : fonctionnement et publics --- */
.how-media img { display: block; width: 100%; height: clamp(14rem, 30vw, 24rem); object-fit: cover; }
@media (min-width: 992px) {
    .duo-side { border-left: 1px solid var(--sb-line); padding-left: 2.5rem; }
}

/* --- Bandeau d'appel à l'action --- */
.cta-band {
    background: var(--sb-paper);
    border-top: 4px solid var(--sb-ink);
    padding: clamp(3.5rem, 6vw, 5.5rem) 0;
}
.cta-band-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 2rem 4rem;
}
.cta-band .t-h2 { max-width: 20ch; margin-bottom: .75rem; }
.cta-band p { max-width: 40rem; margin: 0; color: var(--sb-muted); }
.cta-band-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
@media (max-width: 991.98px) {
    .cta-band-inner { grid-template-columns: 1fr; }
}

/* --- En-tête des pages intérieures --- */
.page-head { padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.page-head > .container { padding-bottom: clamp(2rem, 4vw, 3rem); }
.page-head:not(.has-media) { border-bottom: 1px solid var(--sb-line); }
.page-head .t-page { max-width: 18ch; margin: 0; }
.page-crumbs { font-size: .875rem; color: var(--sb-muted); margin-bottom: 1rem; }
.page-crumbs a { color: var(--sb-muted); text-underline-offset: .2em; }
.page-crumbs a:hover { color: var(--sb-ink); }
.page-crumbs-sep { margin: 0 .5rem; }
.page-head-media img { display: block; width: 100%; height: clamp(12rem, 26vw, 22rem); object-fit: cover; object-position: center 30%; }
.page-head-media-short img { height: clamp(9rem, 16vw, 14rem); }

/* --- Panneaux et vitrine d'exemple --- */
.side-panel { background: #fff; border: 1px solid var(--sb-line); padding: 1.75rem; }
.side-panel-note { display: flex; gap: .6rem; align-items: baseline; font-weight: 500; color: var(--sb-ink); }
.side-panel-note i { font-size: .8125rem; }
@media (min-width: 992px) {
    .sticky-aside { position: sticky; top: 110px; }
}

.specimen-ribbon {
    background: var(--sb-paper);
    border-bottom: 1px dashed var(--sb-muted);
    padding: .6rem 0;
    font-size: .875rem;
    color: var(--sb-text);
}
.specimen-id { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.5rem; }
.specimen-logo {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 4.5rem;
    height: 4.5rem;
    border: 1.5px dashed var(--sb-muted);
    font-family: var(--sb-font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--sb-muted);
}
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 2.5rem; }
.tag { padding: .3rem .7rem; border: 1px solid var(--sb-line); border-radius: var(--sb-radius); font-size: .875rem; }
.tag-cert { border-color: var(--sb-ink); color: var(--sb-ink); font-weight: 600; }
.range-item { margin: 0; }
.range-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: .6rem; }
.range-item figcaption { font-weight: 600; color: var(--sb-ink); }

/* --- Contact et formulaires publics --- */
.contact-channels { margin: 2rem 0 0; border-bottom: 1px solid var(--sb-line); }
.contact-channels > div { padding: 1rem 0; border-top: 1px solid var(--sb-line); }
.contact-channels dt { font-size: .875rem; font-weight: 500; color: var(--sb-muted); }
.contact-channels dd { margin: 0; font-weight: 600; }
.contact-channels a { color: var(--sb-ink); text-underline-offset: .2em; }

.form-label { font-weight: 600; font-size: .9375rem; color: var(--sb-ink); margin-bottom: .4rem; }
.form-legend {
    float: none;
    font-family: var(--sb-font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--sb-ink);
    margin-bottom: 1rem;
}
fieldset + fieldset { margin-top: 2.5rem; }
.form-control, .form-select {
    min-height: 3rem;
    border: 1px solid var(--sb-field);
    border-radius: var(--sb-radius);
    font-size: 1rem;
    color: var(--sb-text);
    background-color: #fff;
}
.form-control:focus, .form-select:focus {
    border-color: var(--sb-ink);
    box-shadow: 0 0 0 3px rgba(255, 127, 0, .35);
}
.form-success {
    border-left: 3px solid var(--sb-success);
    background: var(--sb-success-soft);
    color: #1e3d1c;
    padding: 1rem 1.25rem;
}
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Case « Je ne suis pas un robot » (reCAPTCHA) : sa place est réservée pendant le chargement du script de Google */
.g-recaptcha { min-height: 78px; }
.sf-captcha { margin-bottom: 1.5rem; }
@media (max-width: 359.98px) {
    .g-recaptcha { transform: scale(.88); transform-origin: 0 0; }
}

/* Conditions (gratuit / payant) annoncées avant les formulaires fournisseurs et acheteurs */
.pricing-note {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    max-width: 46rem;
    margin-bottom: 2rem;
    padding: 1rem 1.25rem;
    background: var(--sb-paper);
    border-left: 3px solid var(--sb-accent);
    font-size: .9375rem;
    color: var(--sb-text);
}
.pricing-note i { margin-top: .2rem; color: var(--sb-accent-dark); }
.pricing-note-centered { max-width: 760px; margin-left: auto; margin-right: auto; }

/* --- Pied de page --- */
.site-footer {
    background: var(--sb-ink);
    color: rgba(255,255,255,.72);
    font-size: .9375rem;
    padding-top: clamp(3.5rem, 6vw, 5rem);
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.footer-logo { height: 44px; margin-bottom: 1.25rem; }
.footer-tagline { max-width: 26rem; }
.footer-title {
    font-family: var(--sb-font-text);
    font-size: .875rem;
    font-weight: 500;
    color: rgba(255,255,255,.55);
    margin-bottom: 1rem;
}
.footer-links, .footer-langs { list-style: none; padding: 0; margin: 0; }
.footer-links li + li, .footer-langs li + li { margin-top: .5rem; }
.footer-langs li { display: flex; align-items: center; gap: .6rem; }
.footer-langs .is-current { color: #fff; font-weight: 600; }
.footer-langs .is-upcoming { opacity: .5; }
.footer-social { display: flex; gap: .5rem; margin-top: 1.5rem; }
.footer-social a {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: var(--sb-radius);
}
.footer-social a:hover { border-color: #fff; text-decoration: none; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem 1.5rem;
    margin-top: 3.5rem;
    padding: 1.25rem 0 1.5rem;
    border-top: 1px solid rgba(255,255,255,.14);
    font-size: .8125rem;
    color: rgba(255,255,255,.55);
}
.footer-bottom a { color: rgba(255,255,255,.75); }
.footer-legal-links a + a { margin-left: 1rem; }
.footer-credit { opacity: .7; }

/* Retour en haut */
.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 99;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    background: var(--sb-ink);
    color: #fff;
    border-radius: var(--sb-radius);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility 0s linear .2s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transition: opacity .2s ease; }
.back-to-top:hover { background: var(--sb-purple); color: #fff; }

/* --- Utilitaires encore utilisés par les formulaires --- */
.text-sabonea-green { color: var(--sb-success) !important; }
.bg-sabonea-green { background: var(--sb-success) !important; }

/* --- Pages juridiques (texte saisi dans le back-office) --- */
.legal-content h2 { font-size: 1.6rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.legal-content h3 { font-size: 1.25rem; margin-top: 2rem; margin-bottom: .75rem; }
.legal-content ul, .legal-content ol { margin-bottom: 1rem; }
.legal-content a { color: var(--sb-purple); text-decoration: underline; }

/* =========================================================
   Formulaires fournisseurs (prise de contact et intégration)
   ========================================================= */
[x-cloak] { display: none !important; }
.sf { --sf-border: var(--sb-field); --sf-muted: var(--sb-muted); }
.sf section[id] { scroll-margin-top: 110px; }
.sf-intro { max-width: 46rem; margin-bottom: 2.5rem; }

/* Cartes de section */
.sf-card {
    background: #fff;
    border: 1px solid var(--sb-line);
    border-radius: var(--sb-radius);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}
@media (min-width: 992px) { .sf-card { padding: 2.25rem 2.5rem; } }
.sf-card-header {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--sb-line);
}
.sf-card-heading { flex-grow: 1; min-width: 0; }
.sf-card-eyebrow { display: block; font-size: .8125rem; font-weight: 500; color: var(--sb-muted); }
.sf-card-title { margin: .15rem 0 0; font-size: 1.5rem; }
.sf-card-status {
    flex-shrink: 0;
    min-width: 2.75rem;
    padding: .2rem .55rem;
    border: 1px solid var(--sb-line);
    border-radius: var(--sb-radius);
    text-align: center;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--sb-muted);
}
.sf-card-status.is-complete { border-color: var(--sb-success); color: var(--sb-success); }
.sf-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--sb-line);
}

/* Libellés */
.sf-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin-bottom: .5rem; }
.sf-label { font-weight: 600; font-size: .9375rem; color: var(--sb-ink); }
.sf-required { color: var(--sb-accent-dark); margin-left: 3px; }
.sf-optional { flex-shrink: 0; font-size: .8125rem; color: var(--sb-muted); }
.sf-help { font-size: .8125rem; color: var(--sb-muted); margin: -2px 0 10px; }
.sf-help-below { margin: 8px 0 0; }

/* Champs */
.sf .form-control, .sf .form-select { font-size: .9375rem; }
.sf textarea.form-control { min-height: 120px; padding-top: 12px; }
.sf .form-control.is-invalid, .sf .form-select.is-invalid { border-color: var(--sb-danger); background-image: none; padding-right: .75rem; }
.sf-add-country { border-style: dashed !important; color: var(--sb-ink); }

/* Choix en tuiles */
.sf-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.sf-choices-compact { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.sf-choice, .sf-consent {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 11px 14px;
    min-height: 50px;
    cursor: pointer;
    user-select: none;
    background: #fff;
    border: 1px solid var(--sb-field);
    border-radius: var(--sb-radius);
    transition: border-color .15s ease, background-color .15s ease;
}
.sf-choice:hover, .sf-consent:hover { border-color: var(--sb-ink); }
.sf-choice-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.sf-choice-mark {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--sb-field);
    border-radius: 2px;
    background: #fff;
    color: transparent;
    font-size: 10px;
}
.sf-choice-mark.is-radio { border-radius: 50%; }
.sf-choice-label { font-size: .875rem; line-height: 1.35; color: var(--sb-text); }
.sf-choice.is-selected, .sf-choice:has(.sf-choice-input:checked),
.sf-consent.is-selected, .sf-consent:has(.sf-choice-input:checked) {
    border-color: var(--sb-ink);
    background: var(--sb-paper);
}
.sf-choice.is-selected .sf-choice-label, .sf-choice:has(.sf-choice-input:checked) .sf-choice-label { color: var(--sb-ink); font-weight: 600; }
.sf-choice.is-selected .sf-choice-mark, .sf-choice-input:checked + .sf-choice-mark,
.sf-consent.is-selected .sf-choice-mark {
    background: var(--sb-ink);
    border-color: var(--sb-ink);
    color: #fff;
}
.sf-choice-input:focus-visible + .sf-choice-mark { outline: 2px solid var(--sb-accent); outline-offset: 2px; }
.has-error .sf-choice, .has-error .sf-consent { border-color: #E6A8A2; }

/* Précision « Autre » */
.sf-detail { margin-top: 12px; padding-left: 14px; border-left: 2px solid var(--sb-line); }
.sf-detail-label { display: block; font-size: .8125rem; font-weight: 600; color: var(--sb-ink); margin-bottom: 6px; }
.sf-detail-label i { margin-right: 6px; opacity: .5; }

/* Consentement */
.sf-consent { align-items: flex-start; padding: 16px 18px; background: var(--sb-paper); }
.sf-consent .sf-choice-mark { margin-top: 2px; }
.sf-consent-text { font-size: .875rem; line-height: 1.55; color: var(--sb-text); }
.sf-consent-text a { color: var(--sb-ink); font-weight: 600; text-decoration: underline; }

/* Erreurs et messages */
.sf-error { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .8125rem; font-weight: 500; color: var(--sb-danger); }
.sf-alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; margin-bottom: 1.5rem; border-radius: var(--sb-radius); font-size: .875rem; }
.sf-alert i { margin-top: 3px; }
.sf-alert-error { background: #FDF0EF; color: #8A1C12; border: 1px solid #F1C4BF; }
.sf-alert-test { background: var(--sb-paper); color: var(--sb-text); border: 1px dashed var(--sb-muted); }
.sf-note {
    margin: -.5rem 0 1.5rem;
    padding: .75rem 1rem;
    background: var(--sb-paper);
    border-left: 2px solid var(--sb-ink);
    font-size: .875rem;
    color: var(--sb-text);
}

/* Téléphone international */
.supplier-phone .iti { width: 100%; }
.supplier-phone .iti__selected-country { border-radius: var(--sb-radius) 0 0 var(--sb-radius); }
.supplier-phone.is-invalid .form-control { border-color: var(--sb-danger); }

/* Pays sélectionnés */
.supplier-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.supplier-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 4px 3px 10px;
    border: 1px solid var(--sb-line);
    border-radius: var(--sb-radius);
    background: var(--sb-paper);
    color: var(--sb-ink);
    font-size: .875rem;
    font-weight: 500;
}
.supplier-chip-remove {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 2px;
    background: transparent;
    color: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}
.supplier-chip-remove:hover { background: rgba(44, 3, 80, .1); }

/* Dépôt de fichiers */
.sf-dropzone {
    position: relative;
    padding: 18px 22px;
    border: 1.5px dashed var(--sb-field);
    border-radius: var(--sb-radius);
    background: #fff;
    transition: border-color .15s ease, background-color .15s ease;
}
.sf-dropzone:hover, .sf-dropzone.is-over { border-color: var(--sb-ink); background: var(--sb-paper); }
.sf-dropzone-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.sf-dropzone-body { display: flex; align-items: center; gap: 16px; pointer-events: none; }
.sf-dropzone-body > i { flex-shrink: 0; font-size: 1.5rem; color: var(--sb-muted); }
.sf-dropzone-text { display: flex; flex-direction: column; }
.sf-dropzone-text strong { color: var(--sb-ink); }
.sf-dropzone-text span { font-size: .875rem; color: var(--sb-purple); text-decoration: underline; }
.sf-dropzone-text small { margin-top: 4px; font-size: .75rem; color: var(--sb-muted); }
.sf-dropzone-progress { font-size: .875rem; font-weight: 600; color: var(--sb-ink); }
.sf-dropzone-progress .progress { margin-top: 10px; }
.sf-files { display: grid; gap: 6px; list-style: none; padding: 0; margin: 12px 0 0; }
.sf-files li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid var(--sb-line);
    border-radius: var(--sb-radius);
    background: #fff;
    font-size: .875rem;
}
.sf-files li > i { font-size: 1.1rem; color: var(--sb-muted); }
.sf-file-name { flex-grow: 1; min-width: 0; overflow-wrap: anywhere; color: var(--sb-ink); }
.sf-files small { color: var(--sb-muted); white-space: nowrap; }

/* Barre d'envoi et boutons */
.sf-submit-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--sb-line);
    border-radius: var(--sb-radius);
    background: #fff;
    color: var(--sb-muted);
}
.sf-submit { padding: .85rem 1.75rem; }
.sf-btn-ghost { padding: .85rem 1.25rem; border: 1px solid var(--sb-field); background: #fff; color: var(--sb-ink); }
.sf-btn-ghost:hover { border-color: var(--sb-ink); color: var(--sb-ink); }
@media (max-width: 575.98px) {
    .sf-card { padding: 1.4rem 1.1rem; }
    .sf-card-title { font-size: 1.2rem; }
    .sf-submit-bar .sf-submit, .sf-card-footer .sf-submit { width: 100%; }
    .sf-card-footer > div { order: 2; width: 100%; }
    .sf-card-footer > div .sf-btn-ghost { width: 100%; }
}

/* Progression */
.progress { height: 6px; border-radius: 0; background: var(--sb-line); }
.sf-mobile-progress { padding: 14px 16px; margin-bottom: 20px; border: 1px solid var(--sb-line); border-radius: var(--sb-radius); background: #fff; }

/* Colonne latérale */
.sf-sidebar { position: sticky; top: 100px; }
.sf-side-card { padding: 1.5rem; margin-bottom: 1rem; border: 1px solid var(--sb-line); border-radius: var(--sb-radius); background: #fff; }
.sf-side-title { font-size: .875rem; font-weight: 500; color: var(--sb-muted); }
.sf-side-percent { margin: 4px 0 12px; font-family: var(--sb-font-display); color: var(--sb-ink); }
.sf-side-percent strong { font-size: 2.75rem; font-weight: 900; line-height: 1; }
.sf-side-percent span { margin-left: 2px; font-size: 1.125rem; font-weight: 700; }
.sf-side-steps { display: grid; gap: 2px; list-style: none; padding: 0; margin: 1.25rem 0 0; }
.sf-side-step {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 7px 8px;
    border: 0;
    border-radius: var(--sb-radius);
    background: transparent;
    text-align: left;
    text-decoration: none;
    font-size: .875rem;
    color: var(--sb-text);
    transition: background-color .15s ease;
}
a.sf-side-step:hover, button.sf-side-step:not(:disabled):hover { background: var(--sb-paper); color: var(--sb-ink); }
button.sf-side-step:disabled { cursor: not-allowed; opacity: .5; }
.sf-side-step-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid var(--sb-field);
    border-radius: var(--sb-radius);
    font-size: .75rem;
    font-weight: 600;
    color: var(--sb-muted);
}
.sf-side-step-title { flex-grow: 1; line-height: 1.3; }
.sf-side-step-count { font-size: .75rem; color: var(--sb-muted); }
.sf-side-step.is-complete .sf-side-step-icon { border-color: var(--sb-success); background: var(--sb-success); color: #fff; }
.sf-side-step.is-current { background: var(--sb-paper); color: var(--sb-ink); font-weight: 600; }
.sf-side-step.is-current .sf-side-step-icon { border-color: var(--sb-ink); background: var(--sb-ink); color: #fff; }
.sf-side-meta { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--sb-line); font-size: .8125rem; color: var(--sb-muted); }
.sf-side-meta i { margin-right: 8px; }
.sf-side-help strong { color: var(--sb-ink); }
.sf-side-help p { font-size: .875rem; color: var(--sb-muted); }
.sf-side-help a { color: var(--sb-ink); font-weight: 600; overflow-wrap: anywhere; }
.sf-secure-note { padding: 0 .5rem; font-size: .8125rem; color: var(--sb-muted); }

/* Écran de confirmation */
.sf-done {
    max-width: 760px;
    margin: 0 auto;
    padding: 2.5rem 1.75rem;
    border: 1px solid var(--sb-line);
    border-top: 4px solid var(--sb-success);
    background: #fff;
}
.sf-done.is-locked { border-top-color: var(--sb-ink); }
@media (min-width: 768px) { .sf-done { padding: 3rem 3.5rem; } }
.sf-done-icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.5rem;
    border-radius: var(--sb-radius);
    background: var(--sb-success);
    color: #fff;
    font-size: 1.25rem;
}
.sf-done-icon.is-locked { background: var(--sb-ink); }
.sf-done-title { margin-bottom: .75rem; }
.sf-done-text { font-size: 1.0625rem; color: var(--sb-text); margin-bottom: 2rem; }
.sf-next { margin-bottom: 2rem; padding: 1.5rem; background: var(--sb-paper); }
.sf-next-title { font-size: 1.125rem; margin-bottom: 1rem; }
.sf-next-steps { display: grid; gap: 1rem; list-style: none; padding: 0; margin: 0; }
.sf-next-steps li { display: flex; gap: 14px; align-items: flex-start; }
.sf-next-number {
    flex-shrink: 0;
    font-family: var(--sb-font-display);
    font-weight: 900;
    font-size: 1.25rem;
    line-height: 1.2;
    min-width: 1.25rem;
    color: var(--sb-purple);
}
.sf-next-steps strong { display: block; color: var(--sb-ink); }
.sf-next-steps li > div > span { display: block; font-size: .875rem; color: var(--sb-muted); }

/* --- Page introuvable (404) --- */
.error-page {
    padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4rem, 8vw, 7rem);
    background: var(--sb-paper);
    border-top: 1px solid var(--sb-line);
}
.error-eyebrow {
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--sb-accent-dark);
    margin-bottom: 1rem;
}
.error-title { max-width: 16ch; margin-bottom: 1.25rem; }
.error-text { max-width: 36rem; font-size: 1.125rem; color: var(--sb-muted); }
.error-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.error-code {
    font-family: var(--sb-font-display);
    font-weight: 900;
    font-size: clamp(6.5rem, 20vw, 13.5rem);
    line-height: .85;
    letter-spacing: -.05em;
    color: var(--sb-ink);
    text-align: center;
    user-select: none;
}
.error-code-zero { color: var(--sb-accent); }
.error-shortcuts { margin-top: clamp(3rem, 7vw, 5rem); padding-top: 2rem; border-top: 1px solid var(--sb-line); }
.error-shortcuts-title { font-size: 1rem; font-weight: 600; color: var(--sb-ink); margin-bottom: 1.25rem; }
.error-shortcut {
    display: flex;
    align-items: center;
    gap: .875rem;
    height: 100%;
    padding: 1.15rem 1.25rem;
    background: #fff;
    border: 1px solid var(--sb-line);
    border-radius: var(--sb-radius);
    color: var(--sb-ink);
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease;
}
.error-shortcut:hover, .error-shortcut:focus-visible { border-color: var(--sb-ink); color: var(--sb-ink); transform: translateY(-2px); }
.error-shortcut-icon { width: 1.25rem; text-align: center; color: var(--sb-accent); }
.error-shortcut-arrow { margin-left: auto; font-size: .8rem; color: var(--sb-muted); transition: transform .2s ease; }
.error-shortcut:hover .error-shortcut-arrow { transform: translateX(3px); color: var(--sb-ink); }

/* --- Téléphones --- */
@media (max-width: 575.98px) {
    .navbar-brand { padding-right: .5rem !important; margin-right: 0; }
    .navbar-brand img { height: 34px; }
    .navbar .navbar-toggler { margin-right: 1rem !important; }
    .lang-switcher { margin-right: 8px; }
    .lang-switcher-code { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
