/* =========================================================
   BiSoft by Biware — design tokens, reset, typographie, composants atomiques
   ========================================================= */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    /* Couleurs de marque */
    --bisoft-blue: #1a56e8;
    --bisoft-blue-dark: #1244c2;
    --bisoft-dark: #0a1a38;
    --bisoft-dark-2: #0f2350;
    --bisoft-purple: #6a3fe0;
    --bisoft-green: #12a37f;
    --bisoft-orange: #f26a1b;
    --bisoft-brown: #8b5230;
    --bisoft-accent: #34a89c;

    /* Neutres */
    --background: #ffffff;
    --background-soft: #f4f7fd;
    --background-hero: #eaf1fd;
    --text-primary: #0b1530;
    --text-secondary: #4a5675;
    --text-muted: #6b7a9c;
    --border-soft: #e3e9f5;

    /* Rayons */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Ombres */
    --shadow-soft: 0 1px 2px rgba(15, 35, 95, .04), 0 6px 18px rgba(15, 35, 95, .06);
    --shadow-card: 0 2px 4px rgba(15, 35, 95, .04), 0 14px 36px rgba(15, 35, 95, .08);
    --shadow-float: 0 22px 50px rgba(30, 60, 140, .18), 0 3px 8px rgba(30, 60, 140, .08);

    /* Mise en page */
    --container: 1272px;
    --container-wide: 1392px;
    --gutter: 32px;
    --header-h: 76px;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Tons produits : chaque logiciel redéfinit --tone */
.tone-purple { --tone: var(--bisoft-purple); --tone-dark: #5430c0; --tone-soft: #efeafd; }
.tone-blue   { --tone: var(--bisoft-blue);   --tone-dark: var(--bisoft-blue-dark); --tone-soft: #e8f0fe; }
/* SYNCOM : charte de l'application (--blue bouton, --green accent, --sidebar) */
.tone-syncom { --tone: #285f94; --tone-dark: #1f4d7a; --tone-soft: #eef5f1; --tone-accent: #247d67; }
/* Biroast : charte de l'application (boutons d'action .btn-accent #c17a3d / survol #a9662f, barre latérale --coffee-800, fond --cream) */
.tone-brown  { --tone: #c17a3d; --tone-dark: #a9662f; --tone-soft: #faf6f1; --tone-accent: #3a2418; }
.tone-green  { --tone: var(--bisoft-green);  --tone-dark: #0d8465; --tone-soft: #e3f6ef; }
/* Bigenerateur : charte de l'application (--color-primary, --color-primary-dark, --color-primary-bg ; barre latérale --color-sidebar #17233b) */
.tone-generator { --tone: #f97316; --tone-dark: #c2410c; --tone-soft: #fff1e6; --tone-accent: #17233b; }
.tone-orange { --tone: var(--bisoft-orange); --tone-dark: #d9560c; --tone-soft: #fff0e4; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--text-primary);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid rgba(26, 86, 232, .45); outline-offset: 2px; border-radius: 6px; }

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 200;
    background: var(--bisoft-blue); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--wide { width: min(100% - 2 * var(--gutter), var(--container-wide)); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--text-muted); }

/* ---------- Icônes ---------- */
.icon { width: 22px; height: 22px; flex: none; }
.icon--xs { width: 16px; height: 16px; }
.icon--sm { width: 18px; height: 18px; }

/* ---------- Pastille d'icône ---------- */
.tile {
    display: inline-grid; place-items: center; flex: none;
    width: 48px; height: 48px; border-radius: 13px;
    background: var(--tone, var(--bisoft-blue)); color: #fff;
}
.tile .icon { width: 55%; height: 55%; stroke-width: 2.2; }
.tile--sm { width: 36px; height: 36px; border-radius: 10px; }
.tile--md { width: 48px; height: 48px; }
.tile--lg { width: 56px; height: 56px; border-radius: 15px; }
.tile--xl { width: 72px; height: 72px; border-radius: 18px; }

/* ---------- Titres ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: .08em; text-transform: uppercase;
    color: var(--bisoft-blue);
}
/* petit trait d'accent ; de chaque côté quand le titre est centré */
.eyebrow::before, .section-head--center .eyebrow::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; opacity: .55; }
.eyebrow--blue { color: var(--bisoft-blue); }
.eyebrow--light { color: #8fb1f7; }

.section { padding-block: 72px; }
.section--soft { background: var(--background-soft); }
.section-head { margin-bottom: 40px; }
.section-head h2, .why__head h2, .eco-section__copy h2 { font-size: clamp(28px, 3.1vw, 40px); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; margin-top: 12px; }
.section-head--center { text-align: center; }
.section-head__sub { margin-top: 12px; color: var(--text-secondary); font-size: 16px; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; padding: 0 22px; border-radius: var(--radius-sm);
    font-size: 14.5px; font-weight: 600; line-height: 1; white-space: nowrap;
    border: 1.5px solid transparent; transition: background-color .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--lg { height: 54px; padding: 0 30px; font-size: 15px; }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--bisoft-blue); color: #fff; box-shadow: 0 8px 18px rgba(26, 86, 232, .22); }
.btn--primary:hover { background: var(--bisoft-blue-dark); }
.btn--outline { background: #fff; color: var(--bisoft-blue); border-color: #b7cbf5; }
.btn--outline:hover { border-color: var(--bisoft-blue); background: #f6f9ff; }
.btn--tone { background: var(--tone); color: #fff; box-shadow: 0 8px 18px color-mix(in srgb, var(--tone) 28%, transparent); }
.btn--tone:hover { background: var(--tone-dark); }
.btn--ghost-light { color: #fff; border-color: rgba(255, 255, 255, .55); background: transparent; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }

.icon-btn {
    display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
    background: #fff; border: 1px solid var(--border-soft); color: var(--text-primary);
}
.icon-btn:hover { background: var(--background-soft); }
.icon-btn .icon { width: 18px; height: 18px; }
.icon-btn--plain { border: 0; background: transparent; }

/* ---------- Tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li, .chip {
    font-size: 12px; font-weight: 500; color: var(--text-secondary);
    background: var(--background-soft); border: 1px solid var(--border-soft);
    padding: 5px 12px; border-radius: var(--radius-xs);
}
.chip { display: inline-block; }
.chip--link { color: var(--tone); background: var(--tone-soft); border-color: transparent; font-weight: 600; }

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

@media (max-width: 767px) {
    :root { --gutter: 20px; --header-h: 64px; }
    .section { padding-block: 52px; }
    .btn--lg { height: 52px; padding: 0 24px; }
}

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Symboles officiels (images) : pas de fond teinté, pas de contour */
.icon-logo { object-fit: contain; border-radius: 22%; }
.tile .icon-logo { width: 100%; height: 100%; }
.tile:has(> .icon-logo) { background: none; box-shadow: none; }
.eco-node__badge:has(> .icon-logo), .need__icon:has(> .icon-logo) { background: none; }
.eco__mark, .stage__mark { object-fit: contain; }
.eco-node__badge:has(.icon-logo), .need__icon:has(.icon-logo) { background: none; }
.eco-node--product .eco-node__badge .icon-logo { width: 100%; height: 100%; }
/* Symbole BiSoft officiel posé sur une pastille blanche quand le fond est sombre */
.eco__mark { background: #fff; border-radius: 50%; padding: 6px; box-sizing: content-box; }
.eco-node--product .eco-node__badge:has(.icon-logo) { background: none; }

/* SYNCOM : logo clair posé sur le vert foncé de son application (--sidebar #173c35) */
.icon-logo--plate { background: #173c35; padding: 12% 10%; box-sizing: border-box; object-fit: contain; }
