/* =========================================================
   Sections de la homepage
   ========================================================= */

/* ---------- HERO ---------- */
.hero {
    background:
        radial-gradient(60% 70% at 78% 40%, #dfe9ff 0%, rgba(223, 233, 255, 0) 70%),
        linear-gradient(180deg, #ebf2fe 0%, #f4f8ff 100%);
    padding-block: 44px 120px;
}
.hero__inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: center; }
.hero__copy { max-width: 590px; }
.hero__copy .eyebrow { color: var(--text-muted); }
.hero h1 { margin-top: 24px; font-size: clamp(40px, 4.3vw, 62px); line-height: 1.08; letter-spacing: -.02em; font-weight: 700; }
.hero h1 .hl { display: block; color: var(--bisoft-blue); }
.hero__lead { margin-top: 28px; font-size: 17px; line-height: 1.65; color: var(--text-secondary); max-width: 500px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 20px 24px; margin-top: 44px; }
.hero__trust li { display: flex; align-items: center; gap: 12px; max-width: 162px; font-size: 13px; line-height: 1.35; color: var(--text-secondary); }
.hero__trust .icon { width: 28px; height: 28px; color: var(--bisoft-blue); stroke-width: 1.7; }

/* Composition écosystème */
.stage { position: relative; container-type: inline-size; width: 100%; max-width: 800px; justify-self: end; aspect-ratio: 760 / 540; }
@media (min-width: 1440px) { .stage { margin-right: -40px; } }
.stage__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage__card {
    position: absolute; display: flex; align-items: center; gap: 1.1em;
    font-size: clamp(10px, 1.95cqw, 16px);
    padding: 1.1em 1.6em 1.1em 1.1em; background: #fff; border-radius: 1.5em;
    border: 1px solid #fff; box-shadow: var(--shadow-float);
    transform: perspective(1100px) rotateX(9deg) rotateY(-15deg) rotateZ(-4deg);
}
.stage__card .tile { width: 3.6em; height: 3.6em; border-radius: 1em; }
.stage__card-text { display: grid; gap: .15em; }
.stage__card strong { font-size: 1.55em; line-height: 1.1; letter-spacing: -.02em; font-weight: 700; color: var(--text-primary); }
.stage__card small { font-size: .9em; color: var(--text-muted); line-height: 1.2; }
.stage__card--a { left: 26%; top: 2%; width: 37%; }
.stage__card--b { left: 62%; top: 7%; width: 38%; }
.stage__card--c { left: 3%; top: 60%; width: 36%; }
.stage__card--d { left: 36%; top: 79%; width: 38%; }
.stage__card--e { left: 63%; top: 54%; width: 37%; }

.stage__core {
    position: absolute; left: 37%; top: 33%; width: 29%; aspect-ratio: 1 / 1.05;
    display: grid; place-content: center; justify-items: center; gap: .1em;
    font-size: clamp(10px, 1.95cqw, 16px);
    background: #fff; border-radius: 2em; box-shadow: var(--shadow-float);
    transform: perspective(1100px) rotateX(9deg) rotateY(-15deg) rotateZ(-4deg);
}
.stage__mark { width: 4.2em; height: 4.2em; margin-bottom: .5em; }
.stage__core strong { font-size: 2.2em; line-height: 1; letter-spacing: -.03em; font-weight: 800; color: #0e2f77; }
.stage__core small { font-size: 1.05em; font-weight: 600; color: var(--bisoft-accent); letter-spacing: .04em; }

.stage__screen { position: absolute; left: 0; top: 12%; width: 29%; transform: perspective(900px) rotateY(24deg) rotateZ(-4deg); opacity: .95; }
.mini-screen { background: #fff; border-radius: 12px; box-shadow: var(--shadow-float); overflow: hidden; border: 1px solid #fff; }
.mini-screen__bar { display: flex; gap: 4px; padding: 7px 9px; background: #f1f5fe; }
.mini-screen__bar i { width: 6px; height: 6px; border-radius: 50%; background: #cbd6ee; }

/* ---------- LOGICIELS ---------- */
.section--software { position: relative; margin-top: -64px; background: #fff; border-radius: 44px 44px 0 0; padding-top: 80px; padding-bottom: 56px; }
.sw-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.sw-grid > * { grid-column: span 2; }
.sw-grid > :nth-child(3n+1):nth-last-child(2),
.sw-grid > :nth-child(3n+2):last-child { grid-column: span 3; }
.sw-grid > :nth-child(3n+1):last-child { grid-column: 3 / span 2; }

.sw-card {
    display: flex; flex-direction: column; gap: 16px; padding: 28px;
    background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
}
.sw-card__head { display: flex; align-items: center; gap: 14px; }
.sw-card h3 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--tone); }
.sw-card__desc { font-size: 17px; line-height: 1.45; font-weight: 500; min-height: 49px; }
.sw-card__preview { flex: 1; min-height: 200px; margin-block: 4px; padding: 12px; background: var(--tone-soft); border-radius: var(--radius-md); display: grid; align-items: center; overflow: hidden; }
.sw-card__preview .pv { width: 100%; }
.pv--chart svg { width: 100%; height: auto; border-radius: 8px; box-shadow: var(--shadow-soft); font-family: var(--font); }

.pv--syncom { display: grid; gap: 18px; justify-items: center; }
.pv-sync-row { display: flex; align-items: center; gap: 18px; }
.pv-brand { display: grid; place-items: center; align-content: center; width: 84px; height: 84px; border-radius: 18px; box-shadow: var(--shadow-soft); gap: 2px; }
.pv-brand--shopify { background: #fff; color: #5a9a2c; }
.pv-brand--shopify .icon { width: 38px; height: 38px; }
.pv-brand--shopify small { font-size: 10px; font-weight: 700; }
.pv-brand--sage { background: #0e1118; color: #4ad36a; }
.pv-brand--sage b { font-size: 20px; letter-spacing: -.03em; line-height: 1; }
.pv-brand--sage small { font-size: 13px; color: #fff; font-weight: 700; }
.pv-sync { color: var(--tone); }
.pv-sync .icon { width: 34px; height: 34px; }
.pv-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pv-chips li { font-size: 11px; font-weight: 600; padding: 4px 10px; background: #fff; color: var(--tone); border-radius: 999px; box-shadow: var(--shadow-soft); }

.pv--bixml { display: grid; place-items: center; }
.pv-doc { position: relative; display: grid; justify-items: center; gap: 2px; width: 200px; padding: 34px 20px 20px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-card); text-align: center; }
.pv-doc__ok { position: absolute; top: -18px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bisoft-green); color: #fff; box-shadow: 0 6px 14px rgba(18, 163, 127, .35); }
.pv-doc__ok .icon { width: 20px; height: 20px; stroke-width: 3; }
.pv-doc strong { font-size: 13px; }
.pv-doc small { font-size: 12px; color: var(--text-muted); }
.pv-doc__lines { display: grid; gap: 6px; width: 100%; margin-top: 12px; }
.pv-doc__lines i { height: 6px; border-radius: 3px; background: #f0e1d4; }
.pv-doc__lines i:nth-child(2) { width: 80%; }
.pv-doc__lines i:nth-child(3) { width: 55%; }

/* ---------- BESOINS ---------- */
.section--needs { padding-block: 24px 72px; }
.needs { background: var(--background-soft); border: 1px solid var(--border-soft); border-radius: var(--radius-xl); padding: 52px 28px 40px; }
.needs .section-head { margin-bottom: 36px; }
.needs__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.need + .need { border-left: 1px solid var(--border-soft); }
.need__link { display: flex; flex-direction: column; align-items: center; gap: 14px; height: 100%; padding: 8px 14px; text-align: center; border-radius: 14px; }
.need__icon { display: grid; place-items: center; width: 52px; height: 52px; color: var(--tone); }
.need__icon .icon { width: 36px; height: 36px; stroke-width: 1.8; }
.need__title { font-size: 14.5px; font-weight: 500; line-height: 1.35; flex: 1; }
.need__arrow { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--border-soft); box-shadow: var(--shadow-soft); transition: background-color .15s, color .15s; }
.need__link:hover .need__arrow { background: var(--tone); color: #fff; border-color: var(--tone); }

/* ---------- ÉCOSYSTÈME ---------- */
.section--eco { padding-block: 72px; }
.eco-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.eco-section__copy p:not(.eyebrow) { margin: 20px 0 28px; max-width: 420px; color: var(--text-secondary); font-size: 16px; line-height: 1.65; }

.eco { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 0 clamp(36px, 7%, 80px); }
.eco__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.eco__lines path { fill: none; stroke: #8fb0f2; stroke-width: 1.4; stroke-dasharray: 3 5; animation: eco-flow 14s linear infinite; }
.eco__lines path.is-warm { stroke: #f2a066; }
@keyframes eco-flow { to { stroke-dashoffset: -80; } }
.eco__col { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; position: relative; z-index: 1; }
.eco-node {
    position: relative; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px 0 10px;
    background: #fff; border: 1px solid var(--border-soft); border-radius: 14px; box-shadow: var(--shadow-soft);
    font-size: 15px; font-weight: 600;
}
.eco-node__badge { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--text-primary); flex: none; }
.eco-node__badge .icon { width: 24px; height: 24px; stroke-width: 1.8; }
.eco-node--shopify .eco-node__badge { color: #5a9a2c; }
.eco-node__badge--sage { background: #0e1118; color: #4ad36a; font-size: 10.5px; font-weight: 800; letter-spacing: -.02em; }
.eco-node--product { background: #fff; }
.eco-node--product .eco-node__badge { background: var(--tone); color: #fff; }
.eco-node--product .eco-node__badge .icon { width: 20px; height: 20px; stroke-width: 2.2; }
.eco-node--product:hover { border-color: var(--tone); }
.eco-node__dot { position: absolute; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--bisoft-blue); border: 2px solid #fff; box-shadow: 0 0 0 1px #c6d6f7; }
.eco-node--product .eco-node__dot { background: var(--tone); }
[data-eco-node="left"] .eco-node__dot { right: -6px; }
[data-eco-node="right"] .eco-node__dot { left: -6px; }

.eco__core {
    position: relative; z-index: 1; align-self: center; width: 168px; height: 168px;
    display: grid; place-content: center; justify-items: center; gap: 2px;
    background: linear-gradient(160deg, #11224d, #07122b); color: #fff; border-radius: 30px;
    box-shadow: 0 24px 50px rgba(8, 20, 56, .35);
}
.eco__mark { width: 52px; height: 52px; margin-bottom: 6px; }
.eco__mark path:nth-child(1) { stroke: #7fb0ff; }
.eco__mark path:nth-child(2) { stroke: #fff; }
.eco__mark path:nth-child(3) { stroke: #5fd6c9; }
.eco__mark rect { fill: #5fd6c9; }
.eco__core strong { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.eco__core small { font-size: 12.5px; color: #9bb4e6; font-weight: 600; letter-spacing: .04em; }

/* ---------- POURQUOI ---------- */
.section--why { padding-block: 40px 64px; }
.why { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: 56px; align-items: center; }
.why__head h2 { font-size: clamp(26px, 2.5vw, 34px); }
.why__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.feature { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.feature__icon { display: grid; place-items: center; width: 52px; height: 52px; color: var(--tone, var(--bisoft-blue)); }
.feature__icon .icon { width: 34px; height: 34px; stroke-width: 1.7; }
.feature__body { display: grid; gap: 6px; }
.feature h3 { font-size: 15px; font-weight: 600; line-height: 1.3; }
.feature p { font-size: 13.5px; line-height: 1.5; color: var(--text-secondary); }

/* ---------- SECTEURS ---------- */
.section--industries { padding-block: 24px 72px; }
.section--industries .section-head { margin-bottom: 28px; }
.ind-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.hue-blue   { --hue: #1a56e8; --hue-soft: #dfe9fd; }
.hue-purple { --hue: #6a3fe0; --hue-soft: #e8e1fb; }
.hue-orange { --hue: #f26a1b; --hue-soft: #ffe6d3; }
.hue-green  { --hue: #12a37f; --hue-soft: #d9f2ea; }
.hue-brown  { --hue: #8b5230; --hue-soft: #f1e2d6; }
.ind-card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.ind-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.ind-card a { display: block; }
.ind-card__media { position: relative; display: grid; place-items: center; height: 150px; overflow: hidden; background: linear-gradient(135deg, var(--hue-soft), #fff 140%); }
.ind-card__shape { position: absolute; border-radius: 50%; background: var(--hue); opacity: .1; }
.ind-card__shape--1 { width: 170px; height: 170px; left: -40px; bottom: -80px; }
.ind-card__shape--2 { width: 110px; height: 110px; right: -20px; top: -40px; opacity: .14; }
.ind-card__glyph { position: relative; width: 72px; height: 72px; padding: 18px; border-radius: 20px; background: #fff; color: var(--hue); box-shadow: var(--shadow-card); stroke-width: 1.8; }
.ind-card__body { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 16px; }
.ind-card__name { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.ind-card__name .icon { color: var(--hue); }
.ind-card__go { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--background-soft); border: 1px solid var(--border-soft); }

/* ---------- CTA FINAL ---------- */
.cta { padding-bottom: 72px; }
.cta__panel {
    position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: center;
    background: radial-gradient(70% 90% at 85% 100%, #17356f 0%, rgba(23, 53, 111, 0) 70%), var(--bisoft-dark);
    color: #fff; border-radius: var(--radius-xl); padding: 56px 64px 0; overflow: hidden;
}
.cta h2 { margin-top: 20px; font-size: clamp(28px, 3vw, 42px); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
.cta__copy > p:not(.eyebrow) { margin-top: 18px; max-width: 460px; color: #c3d1ee; font-size: 16.5px; line-height: 1.6; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.cta__device { align-self: end; margin: 0 -64px -70px 0; }
.laptop { width: 100%; max-width: 600px; margin-left: auto; transform: translateX(8%); }
.laptop__screen { padding: 10px 10px 0; background: #070f20; border: 2px solid #26324d; border-bottom: 0; border-radius: 16px 16px 0 0; }
.laptop__screen img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; border-radius: 6px 6px 0 0; }
.laptop__base { height: 16px; width: 112%; margin-left: -6%; background: linear-gradient(#cfd7e8, #8e9ab5); border-radius: 0 0 14px 14px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1279px) {
    .hero { padding-block: 56px 110px; }
    .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .hero__copy { max-width: 640px; }
    .stage { justify-self: center; max-width: 680px; }

    .sw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sw-grid > :nth-child(n):nth-last-child(n) { grid-column: auto; }
    .sw-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }

    .needs__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 0; }
    .need:nth-child(5) { border-left: 0; }
    .eco-section { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .why { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .ind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cta__panel { grid-template-columns: minmax(0, 1fr); padding: 56px 40px 0; }
    .cta__device { margin: 16px -40px 0 0; }
}

@media (max-width: 767px) {
    .hero { padding-block: 40px 90px; }
    .hero h1 { margin-top: 20px; }
    .hero__lead { margin-top: 20px; font-size: 16px; }
    .hero__actions { margin-top: 28px; }
    .hero__actions .btn { width: 100%; }
    .hero__trust { flex-direction: column; gap: 16px; margin-top: 32px; }
    .hero__trust li { max-width: none; }

    /* Composition mobile : grille lisible au lieu d'une réduction du desktop */
    .stage { aspect-ratio: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
    .stage__lines, .stage__screen { display: none; }
    .stage__core, .stage__card { position: static; transform: none; width: auto; font-size: 13px; }
    .stage__core { grid-column: 1 / -1; order: -1; aspect-ratio: auto; padding: 22px; box-shadow: var(--shadow-card); font-size: 14px; }
    .stage__card { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; box-shadow: var(--shadow-card); }
    .stage__card strong { font-size: 17px; }
    .stage__card small { font-size: 12px; }
    .stage__card .tile { width: 44px; height: 44px; }
    .stage__card--e { grid-column: 1 / -1; flex-direction: row; align-items: center; }

    .section--software { margin-top: -40px; border-radius: 32px 32px 0 0; padding-top: 56px; }
    .section-head { margin-bottom: 28px; }
    .sw-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .sw-grid > :nth-child(n):nth-last-child(n) { grid-column: 1 / -1; }
    .sw-card { padding: 22px; }
    .sw-card__desc { min-height: 0; }

    .needs { padding: 36px 16px 24px; border-radius: 24px; }
    .needs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .need + .need { border-left: 0; }
    .need__link { background: #fff; border: 1px solid var(--border-soft); padding: 18px 10px; }
    .need__link:last-child { grid-column: auto; }
    .need:last-child:nth-child(odd) { grid-column: 1 / -1; }

    /* Écosystème : colonnes empilées, sans traits */
    .eco { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .eco__lines { display: none; }
    .eco__col { gap: 10px; }
    .eco__core { order: 0; width: 100%; height: auto; padding: 22px; }
    .eco__core::before, .eco__core::after { content: ""; position: absolute; left: 50%; height: 20px; border-left: 2px dashed #8fb0f2; }
    .eco__core::before { top: -20px; }
    .eco__core::after { bottom: -20px; }
    .eco__col--left { order: -1; }
    .eco-node__dot { display: none; }

    .why__grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .feature { flex-direction: row; text-align: left; align-items: flex-start; gap: 16px; }
    .feature__icon { width: 44px; height: 44px; flex: none; }
    .ind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .ind-card__media { height: 110px; }
    .ind-card__glyph { width: 56px; height: 56px; padding: 14px; }
    .ind-card__body { padding: 12px; flex-direction: column; align-items: flex-start; }
    .ind-card__go { display: none; }

    .cta { padding-bottom: 48px; }
    .cta__panel { padding: 40px 22px 0; border-radius: 24px; }
    .cta__actions .btn { width: 100%; }
    .cta__device { margin: 16px -22px 0 0; }
    .laptop { transform: translateX(8%); }
}

/* Les illustrations débordent volontairement du conteneur : on les coupe au niveau de la section */
.hero { overflow-x: clip; }

/* Symboles officiels : taille pleine du badge (surcharge .icon) */
.eco-node--product .eco-node__badge .icon-logo { width: 100%; height: 100%; }
.need__icon .icon-logo { width: 40px; height: 40px; }

/* Captures réelles d'écran (pas de maquette dessinée) */
.pv-shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; border-radius: 10px; box-shadow: var(--shadow-soft); }

/* Catalogue : la section logiciels suit un bandeau de page, sans chevauchement */
.page-hero + .section--software { margin-top: 0; border-radius: 0; padding-top: 24px; }
