/* ==========================================================================
   adibox.be — feuille de style v6
   Design system dérivé du brouillon v3 (thème éditorial clair : pills/tags,
   bandeau défilant, stats radiales, sections numérotées à onglets), étendu à
   l'ensemble des 13 pages du site (formulaire, contenu long, 404, modules…).
   Charte adibox : bleu #3A5EFF, rouge #FF5354, encre #191735.
   CSS vanilla, aucune dépendance externe, aucune police tierce.
   ========================================================================== */

:root {
  /* --- Encre & surfaces --- */
  --ink:          #191735;
  --ink-soft:     #5b5878;
  /* #918fae ne donnait que 3,11:1 sur blanc et 2,89:1 sur --paper-tint : sous le
     seuil WCAG AA (4,5:1) alors qu'il porte du texte courant (fil d'Ariane,
     onglets, mention RGPD sous le formulaire). #6e6b8c : 5,04:1 / 4,71:1. */
  --ink-faint:    #6e6b8c;
  --paper:        #ffffff;
  --paper-tint:   #f6f6fd;
  --surface:      #ffffff;
  --line:         #e7e6f5;
  --line-soft:    #f1f0fa;

  /* --- Marque --- */
  --brand:        #3a5eff;
  --brand-dark:   #2440cc;
  --brand-darker: #12163c;
  --brand-tint:   #ebeeff;
  --brand-tint-2: #d9e0ff;

  /* --accent = rouge de marque. Conservé tel quel partout où il n'y a PAS de
     texte par-dessus (pastilles, filets, bandeau défilant) : la charte est
     intacte. Avec du texte blanc il ne donne que 3,17:1, sous le seuil WCAG AA,
     d'où --accent-cta (4,84:1) réservé aux boutons. */
  --accent:       #ff5354;
  --accent-cta:   #d92f30;
  --accent-dark:  #a81f20;
  --accent-tint:  #ffe9e9;

  /* --- États --- */
  --ok:       #1f9d6b;
  --ok-tint:  #e6f6ef;
  --err:      #c0392b;
  --err-tint: #fdecea;

  /* --- Typo --- */
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --fs-eyebrow: .78rem;
  --fs-body: 1.05rem;
  --fs-lede: 1.18rem;
  --fs-h1: clamp(2.4rem, 5vw, 4rem);
  --fs-h2: clamp(1.8rem, 3.2vw, 2.6rem);
  --fs-h3: 1.25rem;

  /* --- Rythme --- */
  --sp-1: .5rem; --sp-2: 1rem; --sp-3: 1.5rem; --sp-4: 2.25rem; --sp-5: 3.5rem; --sp-6: 5rem;
  --radius-sm: 10px; --radius: 18px; --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(25,23,53,.05);
  --shadow: 0 20px 45px -22px rgba(25,23,53,.28);
  --shadow-lg: 0 30px 60px -20px rgba(25,23,53,.4);
  --container: 1240px;
  --container-narrow: 800px;
}

/* --- Reset minimal ---------------------------------------------------------*/

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: 1.65; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, picture, svg, video { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.14; letter-spacing: -.01em; margin: 0 0 var(--sp-2); font-weight: 800; }
h1 { font-size: var(--fs-h1); letter-spacing: -.02em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 var(--sp-2); }
a { color: var(--brand-dark); }
ul, ol { padding-left: 1.2rem; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 8px; z-index: 400; text-decoration: none; }
.skip-link:focus { top: 0; }

/* --- Conteneurs & rythme vertical ------------------------------------------*/

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-3); }
section.section { padding: var(--sp-6) 0; }
section.section--tint { background: var(--paper-tint); }
section.section--sm { padding: var(--sp-4) 0; }
.section__head { max-width: 62ch; margin: 0 0 var(--sp-5); }
.section__head.center { margin: 0 auto var(--sp-5); text-align: center; }
.lede { font-size: var(--fs-lede); color: var(--ink-soft); }
.max-w { max-width: 62ch; }
.max-w.center { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-lg { margin-top: var(--sp-4); }
section.section--flush { padding-top: 0; }
.stats--mb { margin-bottom: var(--sp-3); }

/* --- En-tête / navigation --------------------------------------------------*/

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.93); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: .9rem var(--sp-3); max-width: var(--container); margin: 0 auto; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 32px; width: auto; }

.nav-desktop { display: none; }
.nav-desktop__list { list-style: none; display: flex; align-items: center; gap: .1rem; margin: 0; padding: 0; }
.nav-desktop__list > li { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: .3rem; padding: .7rem .85rem; border-radius: 999px; font-weight: 700; font-size: .88rem; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; font-family: inherit; text-transform: uppercase; letter-spacing: .02em; }
.nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--brand-tint); color: var(--brand-dark); }
.nav-link.is-active { color: var(--brand-dark); background: var(--brand-tint); }
.nav-link .chev { width: 10px; height: 10px; transition: transform .15s ease; }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }

.dropdown { position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .5rem; display: none; z-index: 50; }
.dropdown.is-open { display: block; }
.dropdown a { display: block; padding: .65rem .75rem; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 700; text-transform: none; letter-spacing: 0; }
.dropdown a small { display: block; font-weight: 400; color: var(--ink-soft); font-size: .82rem; margin-top: .1rem; }
.dropdown a:hover { background: var(--paper-tint); }
.dropdown a.ext span::after { content: " ↗"; color: var(--ink-faint); }

.header-actions { display: flex; align-items: center; gap: .5rem; }

/* Icônes réseaux sociaux, déplacées ici (à côté du bouton "Contacter adibox")
   depuis l'ancien topbar téléphone/contact, jugé redondant avec la page
   /contact qui affiche déjà ces informations. */
.header-social { display: flex; gap: .4rem; }
.header-social a { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-soft); }
.header-social a:hover { border-color: var(--brand); color: var(--brand-dark); }
.header-social svg { width: 14px; height: 14px; }
@media (max-width: 1039px) { .header-social { display: none; } }

.lang-switch { position: relative; }
.lang-switch__btn { display: inline-flex; align-items: center; gap: .35rem; background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: .45rem .8rem; font-weight: 700; font-size: .82rem; color: var(--ink); cursor: pointer; text-transform: uppercase; letter-spacing: .03em; font-family: inherit; }
.lang-switch__btn:hover { border-color: var(--brand); color: var(--brand-dark); }
.lang-switch__btn .chev { width: 10px; height: 10px; }
.lang-switch__menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: .35rem; display: none; min-width: 130px; z-index: 60; }
.lang-switch__menu.is-open { display: block; }
.lang-switch__menu button { width: 100%; text-align: left; background: none; border: 0; padding: .5rem .6rem; border-radius: 6px; font-size: .9rem; cursor: pointer; color: var(--ink); font-family: inherit; }
.lang-switch__menu button:hover { background: var(--paper-tint); }
.lang-switch__menu button[aria-current="true"] { color: var(--brand-dark); font-weight: 700; }

.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 20px; height: 20px; }

.nav-mobile { display: none; border-top: 1px solid var(--line); background: #fff; padding: var(--sp-2) var(--sp-3) var(--sp-4); }
.nav-mobile.is-open { display: block; }
.nav-mobile__list { list-style: none; margin: 0; padding: 0; }
.nav-mobile details { border-bottom: 1px solid var(--line-soft); }
.nav-mobile summary { display: flex; align-items: center; justify-content: space-between; padding: .9rem .2rem; font-weight: 700; cursor: pointer; list-style: none; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary::after { content: "+"; color: var(--brand); font-weight: 800; }
.nav-mobile details[open] summary::after { content: "–"; }
.nav-mobile a, .nav-mobile button { display: block; width: 100%; padding: .7rem .2rem; color: var(--ink); text-decoration: none; font-weight: 700; background: none; border: 0; font-family: inherit; font-size: 1rem; text-align: left; cursor: pointer; }
.nav-mobile .sub a { padding-left: 1rem; font-weight: 500; color: var(--ink-soft); }
.nav-mobile > ul > li > a, .nav-mobile > ul > li > button { border-bottom: 1px solid var(--line-soft); padding: .9rem .2rem; }
.nav-mobile__contact { margin-top: var(--sp-3); display: grid; gap: .4rem; font-size: .9rem; color: var(--ink-soft); }

@media (min-width: 1040px) {
  .nav-desktop { display: block; }
  .menu-toggle, .nav-mobile { display: none !important; }
}

/* --- Boutons ---------------------------------------------------------------*/

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: 1rem 1.7rem; border-radius: 12px; font-weight: 700; font-size: .96rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .1s ease, box-shadow .18s ease; line-height: 1.2; font-family: inherit; }
.btn:active { transform: translateY(1px); }
.btn:hover { box-shadow: 0 10px 22px -12px rgba(25,23,53,.35); }
.btn--accent { background: var(--accent-cta); color: #fff; box-shadow: 0 16px 30px -14px rgba(217,47,48,.55); }
.btn--accent:hover { background: var(--accent-dark); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn--ghost-light { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost-light:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.btn--sm { padding: .6rem 1.15rem; font-size: .85rem; }
.btn--block { width: 100%; }

/* --- Eyebrow ---------------------------------------------------------------*/

.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--fs-eyebrow); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); margin: 0 0 var(--sp-2); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); display: inline-block; flex: 0 0 auto; }
.eyebrow--center { justify-content: center; }
.eyebrow--light { color: #ffb3b3; }
.eyebrow--light::before { background: #ffb3b3; }

/* Badge : utilisé pour l'eyebrow juste au-dessus d'un H1 (hero), qui se faisait
   sinon complètement écraser par le grand titre placé juste en dessous. */
.eyebrow--badge { background: var(--accent-tint); border: 1px solid var(--accent); border-radius: 999px; padding: .5rem 1rem .5rem .7rem; }
.eyebrow--badge::before { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255,83,84,.6); animation: eyebrow-pulse 2s ease-out infinite; }
@keyframes eyebrow-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,83,84,.55); }
  70%  { box-shadow: 0 0 0 7px rgba(255,83,84,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,83,84,0); }
}
@media (prefers-reduced-motion: reduce) { .eyebrow--badge::before { animation: none; } }

/* --- Hero ------------------------------------------------------------------*/

.hero { padding: var(--sp-4) 0 var(--sp-5); position: relative; overflow: hidden; }
/* Les deux taches de couleur sont centrées hors de la boîte (au-dessus / en
   dessous de ses bords), pour que seul leur fondu déjà entamé soit visible :
   centrer une tache pile sur le bord (ex. l'ancien "at -5% 100%") coupait le
   dégradé net à sa zone la plus saturée, créant une démarcation dure entre
   la teinte et le blanc de la section suivante (visible sur /contact, y
   compris sur mobile où le hero est plus bas). */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(900px 500px at 85% -25%, var(--brand-tint) 0%, transparent 55%), radial-gradient(560px 380px at -10% 125%, var(--accent-tint) 0%, transparent 50%); }
.hero__inner { max-width: 900px; }
.hero__inner--split { max-width: none; display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: flex-start; justify-content: space-between; }
.hero__inner--split > div:first-child { flex: 1 1 480px; max-width: 640px; }
.support-cta { flex: 0 1 320px; display: flex; flex-direction: column; gap: .5rem; background: var(--accent-tint); border: 2px solid var(--accent); border-radius: var(--radius-lg); padding: var(--sp-3); text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.support-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; }
.support-cta__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.support-cta__icon svg { width: 20px; height: 20px; }
.support-cta__body { display: block; }
.support-cta__body strong { display: block; font-size: 1rem; margin-bottom: .2rem; color: var(--ink); }
.support-cta__body span { font-size: .88rem; color: var(--ink-soft); }
.support-cta__btn { display: inline-flex; align-items: center; justify-content: center; margin-top: .3rem; background: var(--accent); color: #fff; font-weight: 700; font-size: .9rem; padding: .65rem 1rem; border-radius: 999px; text-align: center; }
@media (max-width: 759px) { .support-cta { flex-basis: 100%; } }
/* Sur smartphone, la mise en avant du dépannage à distance encombre plus
   qu'elle n'aide (formulaire de contact déjà tout en long) : on la masque. */
@media (max-width: 639px) { .support-cta { display: none; } }
.hero h1 { color: var(--ink); }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero__lede { max-width: 60ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: var(--sp-4); align-items: center; }
.hero__cta--center { justify-content: center; }
.hero__cta--gap { margin-top: var(--sp-4); }
.hero__media { margin-top: var(--sp-5); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
/* height: auto est indispensable : les <img> ont des attributs HTML
   width/height (bonnes pratiques anti-CLS) qui, sans ce reset, fixent une
   hauteur figée en pixels et empêchent l'aspect-ratio ci-dessous de
   s'appliquer réellement (la largeur suit le CSS, la hauteur restait bloquée
   sur l'attribut HTML — bug repéré en vérifiant le rendu en ligne). */
.hero__media img { width: 100%; height: auto; aspect-ratio: 21/9; object-fit: cover; }

/* Hero des pages intérieures : deux colonnes, plus compact */
.hero--page { padding: var(--sp-5) 0 var(--sp-4); }
.hero--page .hero__grid { display: grid; gap: var(--sp-4); align-items: center; }
.hero--page .hero__media { margin-top: 0; box-shadow: var(--shadow); }
.hero--page .hero__media img { height: auto; aspect-ratio: 4/3; }
.hero--page h1 { font-size: clamp(2rem, 3.8vw, 2.9rem); }
@media (min-width: 900px) { .hero--page .hero__grid { grid-template-columns: 1.05fr .95fr; } }
.hero--compact { padding: var(--sp-5) 0 var(--sp-4); }
.hero--compact h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }


.crumb { font-size: .85rem; color: var(--ink-faint); margin-bottom: var(--sp-2); }
.crumb a { color: var(--ink-soft); text-decoration: none; }
.crumb a:hover { color: var(--brand-dark); text-decoration: underline; }

.hero__lede-row { display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between; align-items: flex-start; }
.hero__lede-row .hero__lede { margin-bottom: 0; flex: 1 1 320px; }
.hero__peppol-badge { height: 72px; width: auto; flex: 0 0 auto; }
@media (max-width: 639px) { .hero__peppol-badge { height: 56px; } }

/* --- Intro services + infobox images ---------------------------------------*/

.services-intro { max-width: 62ch; margin: 0 auto var(--sp-4); text-align: center; }

/* Caption sous l'image (et non plus en overlay dégradé par-dessus) : ça
   découple la hauteur de la photo de l'espace nécessaire au texte, et permet
   de garder une vignette courte sans jamais faire déborder ou tasser le
   titre/sous-titre. */
.infobox-grid { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.infobox { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); transition: box-shadow .2s ease, transform .2s ease; }
.infobox:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.infobox__media { overflow: hidden; }
.infobox img { width: 100%; height: auto; aspect-ratio: 4/3.8; object-fit: cover; display: block; transition: transform .4s ease; }
.infobox:hover img { transform: scale(1.04); }
.infobox__caption { padding: var(--sp-3); }
.infobox__caption h3 { color: var(--ink); font-size: 1.05rem; margin-bottom: .2rem; }
.infobox__caption p { color: var(--ink-soft); font-size: .86rem; margin: 0; }
button.infobox { background: none; padding: 0; margin: 0; font: inherit; text-align: left; width: 100%; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .infobox, .infobox img, .infobox:hover, .infobox:hover img { transition: none; transform: none; } }

/* --- Carrousel (solutions, accueil) -----------------------------------------*/

.carousel { position: relative; padding: 0 54px; }
.carousel__track { display: flex; gap: var(--sp-3); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: .25rem .1rem .75rem; scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track .infobox { flex: 0 0 260px; scroll-snap-align: start; }
@media (min-width: 640px) { .carousel__track .infobox { flex-basis: 300px; } }
.carousel__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 18px rgba(25,23,53,.08); transition: background .2s ease, color .2s ease, border-color .2s ease; }
.carousel__arrow:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.carousel__arrow--prev { left: 0; }
.carousel__arrow--next { right: 0; }
@media (max-width: 639px) { .carousel { padding: 0 42px; } .carousel__arrow { width: 36px; height: 36px; } }

/* --- Bénéfices (colonnes à icônes) -----------------------------------------*/

.benefits-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.benefits-grid--6 { gap: var(--sp-3); }
@media (min-width: 900px) { .benefits-grid--6 { grid-template-columns: repeat(6, 1fr); } }
.benefits-grid--5 { gap: var(--sp-3); }
@media (min-width: 900px) { .benefits-grid--5 { grid-template-columns: repeat(5, 1fr); } }
.benefit { text-align: left; }
.benefit .ico { width: 54px; height: 54px; border-radius: 16px; background: var(--brand-tint); color: var(--brand-dark); display: grid; place-items: center; margin-bottom: var(--sp-2); }
.benefit .ico svg { width: 24px; height: 24px; }
.benefit h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.benefit p { color: var(--ink-soft); font-size: .92rem; margin-bottom: 0; }
.benefit--accent .ico { background: var(--accent-tint); color: var(--accent-dark); }

/* --- Bandeau sombre + stats radiales ---------------------------------------*/

.stats-band { background: var(--brand-darker); color: #fff; border-radius: var(--radius-lg); padding: var(--sp-5) var(--sp-4); position: relative; overflow: hidden; }
.stats-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 340px at 90% 0%, rgba(58,94,255,.5), transparent 60%); }
.stats-band > * { position: relative; }
.stats-band__grid { display: grid; gap: var(--sp-5); align-items: center; }
@media (min-width: 900px) { .stats-band__grid { grid-template-columns: 1fr auto; } }
.stats-band h2 { color: #fff; }
.stats-band p { color: #c7cdec; }
.radial-row { display: flex; gap: var(--sp-4); flex-wrap: wrap; justify-content: center; }
.radial { text-align: center; margin: 0; }
.radial svg { width: 120px; height: 120px; }
.radial .pct { font-size: 1.55rem; font-weight: 800; fill: #fff; }
.radial-track { stroke: rgba(255,255,255,.18); }
.radial-fill { stroke: var(--accent); stroke-linecap: round; }
.radial figcaption { color: #b9c0ec; font-size: .82rem; max-width: 17ch; margin: .5rem auto 0; line-height: 1.4; }

.stat-plain { text-align: center; margin: 0; min-width: 160px; max-width: 220px; padding: 0 var(--sp-3); }
.stat-plain + .stat-plain { border-left: 1px solid rgba(255,255,255,.18); }
.stats-band .stat-plain__value { font-size: 2.75rem; font-weight: 800; color: var(--accent); line-height: 1.05; margin: 0 0 .5rem; letter-spacing: -.01em; }
.stat-plain figcaption { color: #fff; font-size: .92rem; font-weight: 600; max-width: 20ch; margin: 0 auto; line-height: 1.4; }
@media (max-width: 639px) {
  .stat-plain { padding: 0 var(--sp-2); }
  .stats-band .stat-plain__value { font-size: 2.1rem; }
}

/* --- Onglets & principes numérotés -----------------------------------------*/

.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: var(--sp-4); border-bottom: 1px solid var(--line); position: relative; }
.tabs button { background: none; border: 0; padding: .8rem 1.2rem; font-weight: 800; font-size: .95rem; color: var(--ink-faint); cursor: pointer; font-family: inherit; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .18s ease; }
.tabs button:hover { color: var(--ink); }
.tabs button.is-active { color: var(--ink); }
/* Indicateur glissant façon "toggle" : une seule barre qui translate d'un
   onglet à l'autre au lieu d'un simple changement de couleur instantané. */
.tabs__indicator { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--accent); transition: left .28s cubic-bezier(.4,0,.2,1), width .28s cubic-bezier(.4,0,.2,1); }
.tab-panel[hidden] { display: none; }
.tab-panel { transition: opacity .2s ease, transform .2s ease; opacity: 1; transform: translateY(0); }
.tab-panel.tab-panel--fade { opacity: 0; transform: translateY(8px); }
@media (prefers-reduced-motion: reduce) {
  .tabs__indicator { transition: none; }
  .tab-panel { transition: none; }
}
.principle-grid { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.principle { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-3); position: relative; background: #fff; }
.principle .num { position: absolute; top: var(--sp-2); right: var(--sp-3); font-size: 1.8rem; font-weight: 800; color: var(--brand-tint-2); line-height: 1; }
.principle h3 { font-size: 1.05rem; padding-right: 2.6rem; }
.principle p { color: var(--ink-soft); font-size: .93rem; }
.principle p:last-child { margin-bottom: 0; }
.principle a.more { font-weight: 800; font-size: .85rem; text-decoration: none; }

/* --- Étapes numérotées (digitalisation) ------------------------------------*/

.steps { display: grid; gap: var(--sp-3); counter-reset: step; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.step { position: relative; padding-top: var(--sp-3); border-top: 3px solid var(--brand-tint-2); }
.step:first-child { border-top-color: var(--brand); }
.step .num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: .9rem; margin-bottom: .6rem; }
.step h3 { font-size: 1.05rem; }
.step p { color: var(--ink-soft); font-size: .94rem; }
.step p:last-child { margin-bottom: 0; }

/* --- Trust strip (accréditations réelles) ----------------------------------*/

.trust-strip { text-align: center; }
.trust-strip__label { font-weight: 700; color: var(--ink-faint); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--sp-3); }
.trust-strip__row { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
.trust-badge { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1.1rem .55rem .6rem; font-size: .85rem; font-weight: 700; }
.trust-badge img { height: 32px; width: auto; }
.trust-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: 0 0 auto; }

/* --- Équipe (rôles, sans identités inventées) ------------------------------*/

.team-grid { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.team-card { text-align: center; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-4) var(--sp-3); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-tint-2); }
.team-card:hover .avatar { background: var(--brand-dark); color: #fff; }
.team-card .avatar { width: 74px; height: 74px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-dark); display: grid; place-items: center; margin: 0 auto var(--sp-2); transition: background .18s ease, color .18s ease; }
@media (prefers-reduced-motion: reduce) { .team-card { transition: none; } .team-card:hover { transform: none; } }
.team-card .avatar svg { width: 30px; height: 30px; }
.team-card h3 { font-size: 1rem; margin-bottom: .2rem; }
.team-card span { color: var(--ink-faint); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }

/* --- Cartes génériques -----------------------------------------------------*/

.grid { display: grid; gap: var(--sp-3); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow-sm); transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--brand-tint-2); }
.card__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-tint); display: grid; place-items: center; margin-bottom: var(--sp-2); color: var(--brand-dark); }
.card__icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: .4rem; font-size: 1.05rem; }
.card p { color: var(--ink-soft); margin-bottom: 0; font-size: .95rem; }
.card--accent .card__icon { background: var(--accent-tint); color: var(--accent-dark); }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.card-link .more { margin-top: auto; padding-top: var(--sp-2); font-weight: 800; color: var(--brand-dark); font-size: .88rem; }
button.card-link { width: 100%; font: inherit; text-align: left; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }

/* --- Split (image + texte) -------------------------------------------------*/

.split { display: grid; gap: var(--sp-5); align-items: center; }
.split__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.split__media img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.split--reverse .split__media { order: 2; }
/* Variante d'image moins haute pour les sections où le grand format 4/3
   dominait trop la mise en page (ex. bloc "Qui sommes-nous" de l'accueil). */
.split--compact-media .split__media img { aspect-ratio: 16/10; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: initial; }
  .split--reverse .split__text { order: 2; }
}

/* --- Chiffres --------------------------------------------------------------*/

.stats { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat { text-align: left; }
.stat strong { display: block; font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--brand-dark); letter-spacing: -.02em; line-height: 1.1; }
.stat span { color: var(--ink-soft); font-size: .92rem; }

/* --- Bandeaux CTA ----------------------------------------------------------*/

.cta-band { background: var(--brand-darker); color: #fff; border-radius: var(--radius-lg); padding: var(--sp-5) var(--sp-4); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 15% 0%, rgba(58,94,255,.6), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d7ddf3; }
.cta-band .hero__cta { justify-content: center; }
.cta-final { text-align: center; }
.cta-final h2 { margin-bottom: .5rem; }
.cta-final .hero__cta { justify-content: center; }

/* --- Modules (adisoft PME) -------------------------------------------------*/

.modules { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.module { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-3); background: #fff; }
.module .num { font-weight: 800; color: var(--brand-tint-2); font-size: 2rem; line-height: 1; display: block; margin-bottom: .3rem; }
.module h3 { font-size: 1.1rem; }
.module p { color: var(--ink-soft); font-size: .94rem; }

/* --- Sélecteur de profil (page adisoft) ------------------------------------*/

.profile-picker { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.profile-card { border: 2px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-4); text-decoration: none; color: inherit; display: flex; flex-direction: column; background: #fff; transition: border-color .18s ease, background .18s ease; }
.profile-card:hover { border-color: var(--brand); background: var(--brand-tint); }
.profile-card h3 { color: var(--brand-dark); }
.profile-card p { color: var(--ink-soft); font-size: .95rem; }
.profile-card .more { font-weight: 800; color: var(--brand-dark); font-size: .88rem; margin-top: auto; padding-top: var(--sp-2); }

/* --- Listes à coches -------------------------------------------------------*/

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink-soft); }
.check-list svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--ok); margin-top: 3px; }
.check-list--2 { grid-template-columns: 1fr; }
@media (min-width: 760px) { .check-list--2 { grid-template-columns: 1fr 1fr; gap: .6rem var(--sp-3); } }

/* --- Formulaire de contact -------------------------------------------------*/

.contact-layout { display: grid; gap: var(--sp-5); }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1fr 1.2fr; align-items: start; } }

.contact-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-4); background: var(--surface); box-shadow: var(--shadow-sm); }
.contact-info { display: grid; gap: var(--sp-3); }
.contact-info__item { display: flex; gap: .85rem; align-items: flex-start; }
.contact-info__icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-tint); display: grid; place-items: center; color: var(--brand-dark); }
.contact-info__icon svg { width: 20px; height: 20px; }
.contact-info__item h3 { margin-bottom: .1rem; font-size: 1rem; }
.contact-info__item p { color: var(--ink-soft); margin-bottom: 0; font-size: .94rem; }
.contact-info__item a { color: var(--brand-dark); text-decoration: none; }
.contact-info__item a:hover { text-decoration: underline; }

.form-row { margin-bottom: var(--sp-2); }
.form-row label { display: block; margin-bottom: .3rem; font-size: .9rem; font-weight: 700; color: var(--ink); }
.req { color: var(--accent); }

.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: .75rem .9rem; font: inherit; font-size: .96rem; color: var(--ink); background: #fcfcff; border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s ease, box-shadow .15s ease; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(58,94,255,.18); background: #fff; }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-feedback { margin: var(--sp-2) 0 0; padding: .75rem .9rem; border-radius: 12px; font-size: .92rem; font-weight: 700; display: none; }
.form-feedback[data-state="ok"] { display: block; color: var(--ok); background: var(--ok-tint); }
.form-feedback[data-state="error"] { display: block; color: var(--err); background: var(--err-tint); }
.form-note { margin: var(--sp-1) 0 0; font-size: .8rem; color: var(--ink-faint); }

/* --- Contenu long (mentions légales, confidentialité) ----------------------*/

.prose { max-width: var(--container-narrow); margin: 0 auto; }
.prose h2 { margin-top: var(--sp-5); font-size: 1.35rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--sp-3); font-size: 1.08rem; }
.prose ul, .prose ol { color: var(--ink-soft); }
.prose li { margin-bottom: .35rem; }
.prose p { color: var(--ink-soft); }
.prose table { width: 100%; border-collapse: collapse; margin: var(--sp-3) 0; font-size: .92rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6rem .7rem; text-align: left; vertical-align: top; }
.prose th { background: var(--paper-tint); color: var(--ink); }

/* --- Page 404 --------------------------------------------------------------*/

.error-page { text-align: center; padding: var(--sp-6) 0; }
.error-page .code { font-size: clamp(3.5rem, 10vw, 6rem); font-weight: 800; color: var(--brand-tint-2); line-height: 1; }

/* --- Footer ----------------------------------------------------------------*/

.site-footer { background: var(--brand-darker); color: #b9c0ec; }
.site-footer a { color: #e7ebff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; padding: var(--sp-6) 0 var(--sp-4); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-col h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--sp-2); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .92rem; }
.link-btn { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: #e7ebff; text-decoration: none; cursor: pointer; text-align: left; }
.link-btn:hover { text-decoration: underline; }
.footer-brand img { height: 36px; width: auto; margin-bottom: var(--sp-2); }
.footer-brand p { color: #9aa3cc; font-size: .9rem; max-width: 34ch; }
.footer-social { display: flex; gap: .6rem; margin-top: var(--sp-2); }
.footer-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
@media (max-width: 639px) { .footer-actions { display: none; } }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; color: #e7ebff; }
.footer-social a:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: var(--sp-3) 0 var(--sp-4); display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: space-between; align-items: center; font-size: .82rem; color: #8f97c4; }
.footer-bottom nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-bottom nav a { color: #8f97c4; }
.footer-credit { border-top: 0; padding-top: 0; }

/* --- Modale (choix "Nos logiciels") -----------------------------------------*/

.modal { position: fixed; inset: 0; z-index: 400; display: none; align-items: center; justify-content: center; padding: var(--sp-3); }
.modal.is-open { display: flex; }
.modal__overlay { position: absolute; inset: 0; background: rgba(18, 22, 60, .6); border: 0; cursor: pointer; }
.modal__panel { position: relative; background: #fff; border-radius: var(--radius-lg); padding: var(--sp-5) var(--sp-4) var(--sp-4); max-width: 720px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal__panel--sm { max-width: 480px; text-align: center; }
.modal__panel--lg { max-width: 960px; }
.modal__close { position: absolute; top: var(--sp-2); right: var(--sp-2); width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--ink-soft); }
.modal__close:hover { background: var(--brand-tint); color: var(--brand-dark); }
body.modal-open { overflow: hidden; }

/* --- Bandeau cookies -------------------------------------------------------*/

.cookie-banner { position: fixed; left: var(--sp-2); right: var(--sp-2); bottom: var(--sp-2); z-index: 300; max-width: 660px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: var(--sp-3); display: none; }
.cookie-banner.is-visible { display: block; max-height: calc(100dvh - 2 * var(--sp-2)); overflow: auto; }
.cookie-banner h2 { margin: 0; font-size: 1.15rem; }
.cookie-banner p { margin: 0; font-size: .88rem; color: var(--ink-soft); }
.cookie-banner [data-cookie-summary] > * + *,
.cookie-banner [data-cookie-settings] > * + * { margin-top: var(--sp-2); }
.cookie-banner .actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie-option { display: flex; align-items: flex-start; gap: .65rem; padding: .65rem; border: 1px solid var(--line); border-radius: var(--radius); }
.cookie-option input { width: 1.1rem; height: 1.1rem; flex: 0 0 auto; margin: .2rem 0 0; accent-color: var(--brand); }
.cookie-option small { display: block; color: var(--ink-soft); }

/* --- Placeholder visuel ----------------------------------------------------*/

.ph { background: var(--line-soft); display: grid; place-items: center; color: var(--ink-faint); font-size: .85rem; text-align: center; padding: var(--sp-3); }

/* --- Guides : questions fréquentes (ajout SEO 10/2026) ----------------------*/
.prose details { border: 1px solid var(--line); border-radius: 12px; padding: 0 1rem; margin: .6rem 0; background: var(--paper-tint); }
.prose summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: .8rem 0; }
.prose details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: .6rem; }
.prose details p { margin-top: 0; }
.prose td code { overflow-wrap: anywhere; }
.prose .eyebrow + h2 { margin-top: .4rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 560px; }
