/* ==========================================================================
   Iboundji Technologie — feuille de style du site
   Charte graphique officielle (couleurs extraites du logo) :
   vert #039743 · jaune #FFEE02 · violet #312682 · noir #000000 · blanc #FFFFFF
   Toutes les couleurs passent par les variables ci-dessous : ne pas écrire
   de couleur en dur dans les composants.
   ========================================================================== */

/* ---------- 1. Jetons de la charte ---------- */
:root {
  /* Couleurs officielles */
  --ib-green: #039743;
  --ib-yellow: #FFEE02;
  --ib-purple: #312682;
  --ib-black: #000000;
  --ib-white: #FFFFFF;

  /* Nuances dérivées (autorisées par la charte pour dégradés, états et accessibilité) */
  --ib-green-800: #02662D;
  --ib-green-700: #027A36;   /* fond des boutons à texte blanc et texte vert sur blanc : contraste AA 5,3:1 */
  --ib-green-100: #D3F0DF;
  --ib-green-50: #EEF9F2;
  --ib-purple-900: #1C1550;
  --ib-purple-700: #271E6A;
  --ib-purple-100: #E3E1F3;
  --ib-purple-50: #F4F3FA;
  --ib-yellow-600: #E6D600;
  --ib-yellow-50: #FFFCD9;
  --ib-grey-50: #F7F7F9;
  --ib-grey-100: #EDEDF1;
  --ib-grey-200: #DCDCE3;
  --ib-grey-500: #6B6B78;     /* texte secondaire : contraste 5,2:1 sur blanc */
  --ib-ink: #1A1A22;          /* texte courant (noir adouci) */
  --ib-danger: #C62828;
  --ib-danger-50: #FDF1F1;
  --ib-danger-100: #F3C7C7;

  /* Rôles */
  --bg: var(--ib-white);
  --bg-alt: var(--ib-grey-50);
  --surface: var(--ib-white);
  --border: var(--ib-grey-100);
  --border-strong: var(--ib-grey-200);
  --text: var(--ib-ink);
  --muted: var(--ib-grey-500);
  --heading: var(--ib-black);
  --link: var(--ib-green-700);
  --focus: var(--ib-purple);
  --on-dark: rgba(255, 255, 255, .82);
  --on-dark-muted: rgba(255, 255, 255, .62);
  --on-dark-line: rgba(255, 255, 255, .14);

  /* Dégradés discrets (tons de la marque) */
  --grad-brand: linear-gradient(90deg, var(--ib-green) 0 33.3%, var(--ib-yellow) 33.3% 66.6%, var(--ib-purple) 66.6% 100%);
  --grad-soft: linear-gradient(135deg, var(--ib-purple-50), var(--ib-green-50));
  --grad-premium: radial-gradient(60% 90% at 100% 0%, rgba(49, 38, 130, .6), transparent 60%), radial-gradient(50% 80% at 0% 100%, rgba(3, 151, 67, .32), transparent 60%), var(--ib-black);

  /* Typographie */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Manrope", "Inter", system-ui, sans-serif;

  /* Espacements, rayons, ombres */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(72px, 10vw, 120px);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px -16px rgba(28, 21, 80, .18);
  --shadow-lg: 0 30px 70px -30px rgba(28, 21, 80, .28);
  --ring-purple: 0 0 0 4px rgba(49, 38, 130, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 100px;
  color-scheme: light;
}

/* ---------- 2. Base ---------- */
*, *::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-sans); font-size: 1rem; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--heading); line-height: 1.12; letter-spacing: -.025em; margin: 0 0 .6em; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.85rem, 3.8vw, 2.8rem); }
h3 { font-size: clamp(1.12rem, 1.8vw, 1.3rem); font-weight: 700; letter-spacing: -.01em; }
::selection { background: var(--ib-yellow); color: var(--ib-black); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--ib-purple); color: var(--ib-white); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: clamp(48px, 7vw, 80px) 0; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); line-height: 1.65; max-width: 62ch; }

/* Mise en évidence d'un mot : vert, souligné d'un trait jaune (rappel du logo) */
.text-accent { position: relative; z-index: 0; display: inline-block; color: var(--ib-green-700); }
.text-accent::after { content: ""; position: absolute; left: 0; right: 0; bottom: .1em; height: .12em; z-index: -1; background: var(--ib-yellow); border-radius: 2px; }

/* Bande tricolore de la marque */
.brand-bar { height: 4px; background: var(--grad-brand); }

/* ---------- 3. Boutons ---------- */
.btn {
  --btn-pad: 14px 24px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--btn-pad); border-radius: var(--radius-pill); border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.2; cursor: pointer; white-space: nowrap; min-height: 50px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring-purple); }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ib-white); border-right-color: transparent; animation: spin .7s linear infinite; }
.btn.is-loading svg { opacity: 0; }

/* Principal : vert, texte blanc */
.btn-primary { background: var(--ib-green-700); color: var(--ib-white); box-shadow: 0 10px 24px -12px rgba(3, 151, 67, .7); }
.btn-primary:hover { background: var(--ib-green-800); color: var(--ib-white); transform: translateY(-2px); }
/* Secondaire : violet, texte blanc */
.btn-secondary { background: var(--ib-purple); color: var(--ib-white); box-shadow: 0 10px 24px -12px rgba(49, 38, 130, .7); }
.btn-secondary:hover { background: var(--ib-purple-700); color: var(--ib-white); transform: translateY(-2px); }
/* Tertiaire : fond blanc, contour violet (ou vert) */
.btn-ghost { background: var(--ib-white); color: var(--ib-purple); border-color: var(--ib-purple); }
.btn-ghost:hover { background: var(--ib-purple-50); color: var(--ib-purple); transform: translateY(-2px); }
.btn-ghost-green { background: var(--ib-white); color: var(--ib-green-700); border-color: var(--ib-green-700); }
.btn-ghost-green:hover { background: var(--ib-green-50); color: var(--ib-green-800); transform: translateY(-2px); }
/* Sur fond noir ou violet */
.btn-on-dark { background: transparent; color: var(--ib-white); border-color: rgba(255, 255, 255, .6); }
.btn-on-dark:hover { background: rgba(255, 255, 255, .1); color: var(--ib-white); border-color: var(--ib-white); transform: translateY(-2px); }
.btn-sm { --btn-pad: 9px 16px; min-height: 40px; font-size: .9rem; }
.btn-block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--link); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--ib-green-800); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 4. Eyebrow & en-têtes de section ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--ib-purple); font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
/* Trois points vert / jaune / violet : rappel des sommets du logo */
.eyebrow::before {
  content: ""; width: 34px; height: 8px; flex-shrink: 0;
  background:
    radial-gradient(circle 4px at 4px 4px, var(--ib-green) 98%, transparent) 0 0 / 13px 8px no-repeat,
    radial-gradient(circle 4px at 4px 4px, var(--ib-yellow-600) 98%, transparent) 13px 0 / 13px 8px no-repeat,
    radial-gradient(circle 4px at 4px 4px, var(--ib-purple) 98%, transparent) 26px 0 / 8px 8px no-repeat;
}
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }
.section-head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head--split > div { max-width: 680px; }

/* ---------- 5. En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--ib-white); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.site-header.is-scrolled { border-color: var(--border); box-shadow: 0 8px 24px -18px rgba(0, 0, 0, .3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; padding: 4px 0; }
.brand img { height: 88px; width: auto; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 2px; }
.main-nav a { position: relative; display: block; padding: 10px 12px; font-size: .95rem; font-weight: 600; color: var(--ib-ink); white-space: nowrap; border-radius: var(--radius-sm); transition: color .2s, background-color .2s; }
.main-nav a:hover { color: var(--ib-purple); background: var(--ib-purple-50); }
.main-nav a[aria-current="page"] { color: var(--ib-purple); }
.main-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 3px; border-radius: 3px; background: var(--ib-green); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; cursor: pointer; background: var(--ib-white); border: 1px solid var(--border-strong); color: var(--ib-purple); transition: border-color .2s, background-color .2s; }
.icon-btn:hover { border-color: var(--ib-purple); background: var(--ib-purple-50); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-toggle { display: none; }
@media (max-width: 1480px) { .header-cta { display: none; } }
@media (max-width: 1320px) { .main-nav a { padding: 10px 9px; } }
@media (max-width: 1180px) { .main-nav a { padding: 10px 6px; font-size: .86rem; } }
@media (max-width: 960px) {
  :root { --header-h: 80px; }
  .brand img { height: 68px; }
  .menu-toggle { display: inline-grid; }
  .main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--ib-white); padding: 20px var(--gutter) 40px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s; border-top: 1px solid var(--border); }
  .site-header.is-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a { font-size: 1.15rem; font-family: var(--font-display); font-weight: 700; padding: 14px 16px 14px 20px; }
  .main-nav a[aria-current="page"] { background: var(--ib-purple-50); }
  .main-nav a[aria-current="page"]::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 4px; height: auto; }
  .main-nav .nav-cta { display: block; margin-top: 20px; }
  .main-nav .nav-cta a.btn { display: flex; color: var(--ib-white); font-family: var(--font-sans); font-size: 1rem; border-radius: var(--radius-pill); padding: 14px 24px; }
  .main-nav .nav-cta a.btn::after { display: none; }
  .main-nav .nav-cta a.btn:hover { background: var(--ib-green-800); }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 961px) { .main-nav .nav-cta { display: none; } }

/* ---------- 6. Hero ---------- */
.hero { position: relative; padding: clamp(32px, 6vw, 80px) 0 clamp(64px, 9vw, 112px); overflow: hidden; isolation: isolate; background: var(--ib-white); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(45% 60% at 85% 35%, var(--ib-purple-50), transparent 70%), radial-gradient(35% 50% at 5% 95%, var(--ib-green-50), transparent 70%); }
/* Motif de sommets (inspiré de la ligne brisée du logo), très discret */
.hero-pattern { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; z-index: -1; color: var(--ib-purple); opacity: .07; pointer-events: none; }
.hero-pattern svg { width: 100%; height: 100%; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; color: var(--ib-ink); font-size: .93rem; font-weight: 500; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 20px; height: 20px; color: var(--ib-green); flex-shrink: 0; }
.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 540px; width: 100%; margin-left: auto; }
.hero-visual > svg { width: 100%; height: 100%; overflow: visible; }
.hv-green { color: var(--ib-green); } .hv-yellow { color: var(--ib-yellow); } .hv-purple { color: var(--ib-purple); }
.hv-ink { color: var(--ib-black); } .hv-line { color: var(--ib-grey-200); } .hv-paper { color: var(--ib-white); }
.hv-tint-green { color: var(--ib-green-50); } .hv-tint-purple { color: var(--ib-purple-50); }
.hv-float { animation: float 7s ease-in-out infinite; }
.hv-float--2 { animation-delay: -2.5s; } .hv-float--3 { animation-delay: -4.5s; }
.hv-node { animation: blink 3.6s ease-in-out infinite; }
.hv-flow { stroke-dasharray: 4 9; animation: flow 4s linear infinite; }
.hv-orbit { transform-origin: 300px 300px; transform-box: view-box; animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes flow { to { stroke-dashoffset: -52; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--ib-white); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); font-size: .85rem; font-weight: 700; color: var(--ib-black); animation: float 7s ease-in-out infinite; }
.hero-chip svg { width: 18px; height: 18px; }
.hero-chip--1 { top: 6%; left: -6%; } .hero-chip--1 svg { color: var(--ib-green); }
.hero-chip--2 { bottom: 20%; right: -4%; animation-delay: -3s; } .hero-chip--2 svg { color: var(--ib-purple); }
.hero-chip--3 { bottom: 0; left: 8%; animation-delay: -5s; } .hero-chip--3 svg { color: var(--ib-green); }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 400px; margin: 0 auto; order: -1; }
  .hero-chip--1 { left: 0; } .hero-chip--2 { right: 0; }
}
@media (max-width: 560px) { .hero-visual { max-width: 290px; } .hero-chip { font-size: .74rem; padding: 7px 10px; } }

/* En-tête des pages intérieures */
.page-hero { position: relative; padding: clamp(44px, 7vw, 96px) 0 clamp(40px, 6vw, 72px); overflow: hidden; isolation: isolate; background: var(--grad-soft); border-bottom: 1px solid var(--border); }
.page-hero .hero-pattern { height: 70%; opacity: .06; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 20ch; }
.page-hero .lead { margin-bottom: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; font-size: .86rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumbs a:hover { color: var(--ib-purple); }

/* ---------- 7. Logos clients ---------- */
.logos { padding: 40px 0; border-block: 1px solid var(--border); background: var(--ib-white); }
.logos-title { text-align: center; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.logos-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 48px; }
.logos-row figure { margin: 0; display: grid; place-items: center; height: 72px; min-width: 100px; padding: 6px 12px; }
.logos-row img { max-height: 60px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.logos-row figure:hover img { filter: none; opacity: 1; }

/* ---------- 8. Grilles & cartes ---------- */
.grid { display: grid; gap: clamp(16px, 2.2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { position: relative; display: flex; flex-direction: column; height: 100%; padding: clamp(22px, 2.6vw, 30px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
/* Liseré tricolore qui apparaît au survol */
.card::after { content: ""; position: absolute; left: 20px; right: 20px; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: var(--grad-brand); opacity: 0; transition: opacity .3s; }
.card--link:hover, .card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--ib-purple-100); }
.card--link:hover::after, .card--hover:hover::after { opacity: 1; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .97rem; }
.card .link-arrow { margin-top: auto; padding-top: 8px; }
.card-link-overlay::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.card-link-overlay:focus-visible { outline: none; }
.card:has(.card-link-overlay:focus-visible) { box-shadow: var(--ring-purple); }

.icon-badge { position: relative; width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px; flex-shrink: 0; background: var(--ib-purple-50); color: var(--ib-purple); }
/* Petit point jaune, discret */
.icon-badge::after { content: ""; position: absolute; right: -3px; top: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--ib-yellow); border: 2px solid var(--ib-white); }
.icon-badge svg { width: 24px; height: 24px; }
.icon-badge--lg { width: 66px; height: 66px; border-radius: 18px; }
.icon-badge--lg svg { width: 30px; height: 30px; }
.icon-badge--green { background: var(--ib-green-50); color: var(--ib-green-700); }

/* Faits clés (données vérifiables uniquement) */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.facts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fact { background: var(--ib-white); padding: 26px 22px; }
.fact strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--ib-purple); line-height: 1.1; margin-bottom: 6px; }
.fact span { color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .fact { padding: 20px 16px; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.check-list { list-style: none; display: grid; gap: 12px; margin: 24px 0; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { width: 20px; height: 20px; color: var(--ib-green); flex-shrink: 0; margin-top: 3px; }
.check-list strong { color: var(--ib-black); }
.panel { position: relative; border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 44px); background: var(--ib-white); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }
.panel--accent { border-top: 4px solid var(--ib-purple); }
.panel--quote { background: var(--ib-purple); color: var(--on-dark); border: 0; }
.panel--quote h3 { color: var(--ib-white); }
.panel--quote p { color: var(--on-dark); }
.panel--quote::after { content: ""; position: absolute; width: 56px; height: 6px; left: clamp(26px, 4vw, 44px); top: 0; background: var(--ib-yellow); border-radius: 0 0 4px 4px; }

/* Section premium (noire) */
.premium { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-lg); padding: clamp(32px, 6vw, 72px); background: var(--grad-premium); color: var(--on-dark); }
.premium h2, .premium h3 { color: var(--ib-white); }
.premium .lead { color: var(--on-dark); }
.premium .eyebrow { color: var(--ib-yellow); }
.premium .card { background: rgba(255, 255, 255, .05); border-color: var(--on-dark-line); box-shadow: none; }
.premium .card p { color: var(--on-dark-muted); }
.premium .icon-badge { background: rgba(255, 255, 255, .08); color: var(--ib-white); }
.premium .icon-badge::after { border-color: var(--ib-black); }
.premium .check-list strong { color: var(--ib-white); }

/* Processus */
.step-num { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; margin-bottom: 18px; font-family: var(--font-display); font-weight: 800; color: var(--ib-white); background: var(--ib-purple); }
.process .card:nth-child(2) .step-num { background: var(--ib-green-700); }
.process .card:nth-child(3) .step-num { background: var(--ib-yellow); color: var(--ib-black); }
.process .card:nth-child(4) .step-num { background: var(--ib-black); }

/* Étiquettes */
.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--radius-pill); font-size: .88rem; font-weight: 600; background: var(--ib-white); border: 1px solid var(--border-strong); color: var(--ib-ink); }
.tag--sm { padding: 4px 10px; font-size: .78rem; }
.tag--accent { background: var(--ib-green-50); border-color: var(--ib-green-100); color: var(--ib-green-800); }
.tag-group-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ib-purple); font-family: var(--font-sans); font-weight: 800; margin-bottom: 12px; }

/* Réalisations & articles */
.project-card, .post-card { padding: 0; overflow: hidden; }
.project-media { aspect-ratio: 16 / 10; background: var(--grad-soft); position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.post-card .project-media { aspect-ratio: 16 / 9; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-card:hover .project-media img, .post-card:hover .project-media img { transform: scale(1.04); }
.project-media .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ib-purple); }
.project-media .placeholder svg { width: 54px; height: 54px; opacity: .6; }
.project-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.post-card h3 { font-size: 1.12rem; line-height: 1.32; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip { padding: 9px 16px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: var(--ib-white); color: var(--ib-ink); font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .2s; min-height: 42px; display: inline-flex; align-items: center; }
.chip:hover { color: var(--ib-purple); border-color: var(--ib-purple); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--ib-purple); color: var(--ib-white); border-color: var(--ib-purple); }
.is-hidden { display: none !important; }
.search-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }

.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.detail-grid--contact { grid-template-columns: 1fr 380px; }
.aside-card { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 960px) { .detail-grid, .detail-grid--contact { grid-template-columns: 1fr; } .aside-card { position: static; } }
.meta-list { list-style: none; display: grid; gap: 14px; margin-bottom: 24px; }
.meta-list li { display: flex; flex-direction: column; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.meta-list span { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ib-purple); font-weight: 700; }
.meta-list strong { color: var(--ib-black); }

/* Témoignages */
.quote-card { margin: 0; }
.quote-card blockquote { margin: 0 0 20px; font-size: 1.05rem; color: var(--ib-ink); line-height: 1.7; }
.quote-card svg.q { width: 30px; height: 30px; color: var(--ib-purple); margin-bottom: 16px; }
.quote-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote-author img, .avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--ib-purple); color: var(--ib-white); display: grid; place-items: center; font-weight: 800; }
.quote-author strong { display: block; color: var(--ib-black); }
.quote-author span:not(.avatar) { font-size: .88rem; color: var(--muted); }
.stars { display: flex; gap: 2px; color: var(--ib-yellow-600); margin-bottom: 12px; }
.stars svg { width: 16px; height: 16px; }

/* Contenu éditorial */
.prose { max-width: 72ch; font-size: 1.05rem; line-height: 1.8; color: var(--ib-ink); }
.prose h2, .prose h3 { margin-top: 2em; }
.prose h3 { font-size: 1.32rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--ib-green); }
.prose a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; height: auto; }
.prose strong { color: var(--ib-black); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--ib-yellow); color: var(--ib-black); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--border); padding: 8px 12px; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 40px; border: 1px solid var(--border); aspect-ratio: 16 / 8; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.share strong { color: var(--ib-black); margin-right: 6px; }

/* Services : liste détaillée */
.service-row { display: grid; grid-template-columns: 66px 1fr 1fr; gap: clamp(20px, 3vw, 40px); padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--border); }
.service-row:last-child { border-bottom: 1px solid var(--border); }
.service-row h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin-bottom: 8px; }
.service-row .tagline { color: var(--ib-green-700); font-weight: 700; font-size: .92rem; margin-bottom: 14px; display: block; }
.service-row h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ib-purple); margin-bottom: 14px; font-family: var(--font-sans); font-weight: 800; }
.service-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
@media (max-width: 900px) { .service-row { grid-template-columns: 1fr; } }

/* FAQ / accordéon */
.accordion { display: grid; gap: 12px; }
.accordion details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--ib-white); transition: border-color .25s, box-shadow .25s; }
.accordion details[open] { border-color: var(--ib-purple-100); box-shadow: var(--shadow); }
.accordion summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative; font-weight: 700; color: var(--ib-black); font-size: 1.02rem; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2.5px solid var(--ib-purple); border-bottom: 2.5px solid var(--ib-purple); transform: rotate(45deg); transition: transform .25s; }
.accordion details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.accordion .answer { padding: 0 22px 22px; color: var(--muted); }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group h2 { font-size: 1.3rem; margin-bottom: 18px; color: var(--ib-purple); }

/* ---------- 9. Formulaires ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .9rem; font-weight: 700; color: var(--ib-black); margin-bottom: 8px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="search"], .field select, .field textarea { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--border-strong); background: var(--ib-white); color: var(--ib-black); font-size: 1rem; transition: border-color .2s, box-shadow .2s; min-height: 50px; }
.field select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--ib-purple) 50%), linear-gradient(135deg, var(--ib-purple) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ib-purple); box-shadow: var(--ring-purple); }
.field .error, .form-error { color: var(--ib-danger); font-size: .86rem; margin-top: 6px; font-weight: 500; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--ib-danger); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ib-green); flex-shrink: 0; }
.check a { color: var(--link); text-decoration: underline; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 18px 20px; border-radius: var(--radius); border: 1px solid; margin-bottom: 24px; display: flex; gap: 12px; align-items: flex-start; color: var(--ib-black); }
.alert svg { width: 22px; height: 22px; flex-shrink: 0; }
.alert a { color: var(--link); text-decoration: underline; }
.alert--success { border-color: var(--ib-green-100); background: var(--ib-green-50); }
.alert--success svg { color: var(--ib-green); }
.alert--error { border-color: var(--ib-danger-100); background: var(--ib-danger-50); }
.alert--error svg { color: var(--ib-danger); }
.contact-list { list-style: none; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon-badge { width: 44px; height: 44px; margin: 0; border-radius: 12px; }
.contact-list .icon-badge::after { display: none; }
.contact-list .icon-badge svg { width: 20px; height: 20px; }
.contact-list span { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.contact-list a, .contact-list strong { color: var(--ib-black); font-weight: 700; }
.contact-list a:hover { color: var(--ib-purple); }

/* ---------- 10. Appel à l'action (violet) ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; text-align: center; border-radius: var(--radius-lg); padding: clamp(40px, 7vw, 88px) clamp(20px, 5vw, 64px); background: radial-gradient(60% 120% at 100% 0%, var(--ib-purple-700), transparent 60%), var(--ib-purple); color: var(--ib-white); }
.cta-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--grad-brand); }
.cta-band .hero-pattern { color: var(--ib-white); opacity: .08; height: 60%; }
.cta-band h2 { color: var(--ib-white); max-width: 22ch; margin-left: auto; margin-right: auto; }
.cta-band p { color: var(--on-dark); font-size: 1.12rem; max-width: 56ch; margin: 0 auto 32px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- 11. Pied de page (noir) ---------- */
.site-footer { background: var(--ib-black); color: var(--on-dark-muted); padding: 0 0 32px; }
.site-footer .brand-bar { margin-bottom: clamp(56px, 8vw, 80px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; margin-bottom: 56px; }
.footer-grid h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; color: var(--ib-yellow); margin-bottom: 18px; font-family: var(--font-sans); font-weight: 800; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a { color: var(--on-dark); font-size: .95rem; }
.footer-grid a:hover { color: var(--ib-white); text-decoration: underline; text-underline-offset: 3px; }
/* Logo officiel inchangé, posé sur une plaque blanche (zone de respiration) */
.logo-plate { display: inline-block; background: var(--ib-white); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 20px; }
.logo-plate img { height: 92px; width: auto; }
.footer-brand p { font-size: .95rem; max-width: 36ch; color: var(--on-dark-muted); }
.site-footer .contact-list span { color: var(--on-dark-muted); }
.site-footer .contact-list a, .site-footer .contact-list strong { color: var(--ib-white); font-weight: 600; }
.site-footer .contact-list .icon-badge { background: rgba(255, 255, 255, .08); color: var(--ib-green); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.site-footer .icon-btn { background: transparent; border-color: rgba(255, 255, 255, .22); color: var(--ib-white); }
.site-footer .icon-btn:hover { background: var(--ib-green-700); border-color: var(--ib-green-700); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; border-top: 1px solid var(--on-dark-line); font-size: .88rem; }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a { color: var(--on-dark); }
.footer-bottom a:hover { color: var(--ib-white); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; list-style: none; margin-top: 48px; }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 12px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--ib-white); font-weight: 700; color: var(--ib-ink); }
.pagination a:hover { border-color: var(--ib-purple); color: var(--ib-purple); }
.pagination .active span { background: var(--ib-purple); color: var(--ib-white); border-color: var(--ib-purple); }
.pagination .disabled span { opacity: .4; }

/* ---------- 12. Boutons flottants : WhatsApp + IB Assistant ---------- */
.floating { position: fixed; right: 20px; bottom: 20px; z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fab { position: relative; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer; box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .35); transition: transform .2s var(--ease), box-shadow .2s; }
.fab:hover { transform: translateY(-3px); }
.fab:focus-visible { outline: 3px solid var(--ib-purple); outline-offset: 3px; }
.fab svg { width: 28px; height: 28px; }
/* WhatsApp : bouton blanc, icône verte (le vert plein est réservé à IB Assistant) */
.fab--wa { background: var(--ib-white); color: var(--ib-green); width: 52px; height: 52px; border: 1px solid var(--border-strong); }
.fab--wa svg { width: 26px; height: 26px; }
/* IB Assistant : bouton flottant vert, pastille jaune discrète */
.fab--bot { background: var(--ib-green-700); color: var(--ib-white); }
.fab--bot::after { content: ""; position: absolute; top: 3px; right: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--ib-yellow); border: 2px solid var(--ib-white); }
.fab-label { position: absolute; right: 72px; top: 50%; transform: translateY(-50%); white-space: nowrap; pointer-events: none; background: var(--ib-black); color: var(--ib-white); padding: 8px 12px; border-radius: 10px; font-size: .85rem; font-weight: 600; opacity: 0; transition: opacity .2s; }
.fab:hover .fab-label, .fab:focus-visible .fab-label { opacity: 1; }
.wa-wrap { position: relative; }
.wa-menu { position: absolute; right: 0; bottom: 64px; width: min(320px, calc(100vw - 40px)); padding: 10px; background: var(--ib-white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); display: none; }
.wa-menu.is-open { display: block; }
.wa-menu p { font-size: .82rem; color: var(--muted); margin: 6px 10px 8px; }
.wa-menu a { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; font-size: .92rem; font-weight: 600; color: var(--ib-black); }
.wa-menu a:hover { background: var(--ib-green-50); }
.wa-menu a svg { width: 18px; height: 18px; color: var(--ib-green); flex-shrink: 0; }

/* Fenêtre IB Assistant : blanche, titre violet, accents verts, détails jaunes discrets */
.chat-panel { position: fixed; right: 20px; bottom: 96px; z-index: 950; width: min(400px, calc(100vw - 24px)); height: min(640px, calc(100dvh - 120px)); display: flex; flex-direction: column; overflow: hidden; background: var(--ib-white); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(16px) scale(.98); transform-origin: bottom right; transition: opacity .25s, transform .3s var(--ease), visibility .25s; }
.chat-panel.is-open { opacity: 1; visibility: visible; transform: none; }
.chat-panel::before { content: ""; height: 4px; flex-shrink: 0; background: var(--grad-brand); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.chat-logo { height: 48px; width: auto; flex-shrink: 0; }
.chat-title strong { display: block; color: var(--ib-purple); font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.chat-status { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); }
.chat-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ib-green); box-shadow: 0 0 0 3px var(--ib-green-100); }
.chat-head .icon-btn { margin-left: auto; width: 38px; height: 38px; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; background: var(--ib-grey-50); overscroll-behavior: contain; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: .93rem; line-height: 1.55; white-space: pre-wrap; word-wrap: break-word; }
.msg--bot { align-self: flex-start; background: var(--ib-white); border: 1px solid var(--border); color: var(--ib-ink); border-bottom-left-radius: 6px; }
.msg--user { align-self: flex-end; background: var(--ib-green-50); border: 1px solid var(--ib-green-100); border-right: 3px solid var(--ib-green); color: var(--ib-black); border-bottom-right-radius: 6px; }
.msg a { color: var(--link); text-decoration: underline; }
.msg-actions { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; max-width: 100%; }
.msg-actions button, .msg-actions a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--radius-pill); font-size: .84rem; font-weight: 700; border: 1.5px solid var(--ib-purple); background: var(--ib-white); color: var(--ib-purple); cursor: pointer; }
.msg-actions button:hover, .msg-actions a:hover { background: var(--ib-purple-50); }
.msg-actions a[href*="wa.me"] { border-color: var(--ib-green-700); color: var(--ib-green-700); }
.msg-actions a[href*="wa.me"]:hover { background: var(--ib-green-50); }
.msg-actions svg { width: 15px; height: 15px; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ib-purple); animation: typing 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; background: var(--ib-green); }
.typing span:nth-child(3) { animation-delay: .3s; background: var(--ib-yellow-600); }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-suggestions button { padding: 8px 12px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: var(--ib-white); color: var(--ib-ink); font-size: .84rem; font-weight: 500; cursor: pointer; }
.chat-suggestions button:hover { border-color: var(--ib-purple); color: var(--ib-purple); }
.chat-foot { border-top: 1px solid var(--border); padding: 12px; background: var(--ib-white); }
.chat-form { display: flex; gap: 8px; align-items: flex-end; }
.chat-form textarea { flex: 1; resize: none; min-height: 46px; max-height: 120px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--border-strong); background: var(--ib-white); color: var(--ib-black); font-size: .95rem; line-height: 1.4; }
.chat-form textarea:focus { outline: none; border-color: var(--ib-purple); box-shadow: var(--ring-purple); }
.chat-send { width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--ib-green-700); color: var(--ib-white); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.chat-send:hover { background: var(--ib-green-800); }
.chat-send:disabled { opacity: .5; cursor: not-allowed; }
.chat-send svg { width: 20px; height: 20px; }
.chat-legal { font-size: .72rem; color: var(--muted); margin: 8px 2px 0; line-height: 1.4; }
.chat-legal label { display: flex; gap: 6px; align-items: flex-start; cursor: pointer; }
.chat-legal input { accent-color: var(--ib-green); margin-top: 1px; }
.chat-lead { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--ib-purple-100); border-top: 3px solid var(--ib-purple); border-radius: 16px; background: var(--ib-white); align-self: stretch; }
.chat-lead strong { color: var(--ib-purple); font-size: .95rem; }
.chat-lead input, .chat-lead textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--border-strong); background: var(--ib-white); color: var(--ib-black); font-size: .9rem; }
.chat-lead input:focus, .chat-lead textarea:focus { outline: none; border-color: var(--ib-purple); }
.chat-lead textarea { min-height: 70px; resize: vertical; }
.chat-lead .check { font-size: .78rem; }
.chat-lead .form-error { margin: 0; }
@media (max-width: 520px) {
  .floating { right: 14px; bottom: 14px; }
  .chat-panel { right: 0; left: 0; bottom: 0; width: 100%; height: 100dvh; border-radius: 0; }
  .fab-label { display: none; }
}

/* ---------- 13. Animations ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .07s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .14s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .21s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .28s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .35s; }
.reveal-stagger.is-visible > *:nth-child(n+7) { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal, .js .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ---------- 14. Utilitaires ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: clamp(32px, 5vw, 56px); }
.center { text-align: center; }
.flex-wrap-gap { display: flex; flex-wrap: wrap; gap: 12px; }
.stack { display: grid; gap: 22px; }
.empty-state { text-align: center; padding: 48px 20px; border: 1px dashed var(--border-strong); border-radius: var(--radius); color: var(--muted); }
.h-sm { font-size: 1.2rem; }
.h-md { font-size: 1.6rem; }

/* ---------- 15. Photographies (reprises du site d'origine) ---------- */
/* Cadre photo : coins arrondis, liseré tricolore, légère teinte violette pour harmoniser avec la charte */
.photo-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--ib-purple-50); isolation: isolate; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-frame::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(28, 21, 80, .35)); mix-blend-mode: multiply; }
.photo-frame::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; z-index: 2; background: var(--grad-brand); }
.photo-frame--hero { aspect-ratio: 4 / 3.4; }
.photo-frame--wide { aspect-ratio: 16 / 10; }
.photo-frame--tall { aspect-ratio: 4 / 5; }
/* Fondu entre les photos de la bannière (comme le diaporama d'origine) */
.photo-slides img { position: absolute; inset: 0; opacity: 0; animation: slide-fade 14s infinite; }
.photo-slides img:first-child { position: relative; animation-delay: 0s; }
.photo-slides img:nth-child(2) { animation-delay: 7s; }
@keyframes slide-fade { 0%, 45% { opacity: 1; } 50%, 95% { opacity: 0; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .photo-slides img { animation: none; opacity: 0; } .photo-slides img:first-child { opacity: 1; } }

/* Composition de deux photos (section « Qui sommes-nous ») */
.photo-collage { position: relative; padding: 0 0 56px 56px; }
.photo-collage .photo-frame--tall { width: 78%; margin-left: auto; }
.photo-collage .photo-frame--small { position: absolute; left: 0; bottom: 0; width: 48%; aspect-ratio: 1 / 1.05; border: 6px solid var(--ib-white); }
.photo-badge { position: absolute; right: 6%; bottom: 20px; z-index: 3; background: var(--ib-white); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; }
.photo-badge strong { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; color: var(--ib-purple); line-height: 1; }
.photo-badge span { font-size: .85rem; color: var(--muted); line-height: 1.3; }
.photo-badge::before { content: ""; width: 6px; align-self: stretch; border-radius: 3px; background: var(--ib-green); }
@media (max-width: 560px) { .photo-collage { padding: 0 0 40px 24px; } }

/* Cartes de service avec photo */
.service-card { padding: 0; overflow: hidden; }
.service-card .project-media { aspect-ratio: 16 / 9; }
.service-card .card-body { position: relative; padding: 34px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.service-card .icon-badge { position: absolute; top: -28px; left: 24px; margin: 0; background: var(--ib-white); box-shadow: var(--shadow); }
.service-cover { margin-bottom: 40px; }
.hero-visual--photo { aspect-ratio: auto; max-width: 600px; }
@media (max-width: 960px) { .hero-visual--photo { max-width: 560px; } }
.service-card .card-body { position: static; }
.service-card .icon-badge { position: relative; top: auto; left: auto; margin: -62px 0 18px; }
.photo-frame--natural img { height: auto; }
.btn svg { flex-shrink: 0; }
.btn-block { white-space: normal; text-align: center; }

/* ==========================================================================
   16. IboundjiHeroAnimation — formes du logo qui prennent vie
   Séquence d'entrée (≈ 2,6 s) puis mouvement permanent très léger.
   Toutes les couleurs passent par les variables de la charte.
   ========================================================================== */
.iha { --iha-amp: 7px; --iha-x: 0; --iha-y: 0; pointer-events: none; aspect-ratio: 600 / 480; }
.iha-svg { width: 100%; height: 100%; overflow: visible; }

/* Couleurs (charte) */
.iha-f-green { fill: var(--ib-green); } .iha-f-yellow { fill: var(--ib-yellow); } .iha-f-purple { fill: var(--ib-purple); }
.iha-s-green { stroke: var(--ib-green); } .iha-s-purple { stroke: var(--ib-purple); }
.iha-stop-green { stop-color: var(--ib-green); } .iha-stop-green-hi { stop-color: color-mix(in srgb, var(--ib-green), var(--ib-white) 10%); }
.iha-stop-yellow { stop-color: var(--ib-yellow); } .iha-stop-yellow-hi { stop-color: color-mix(in srgb, var(--ib-yellow), var(--ib-white) 22%); }
.iha-stop-purple { stop-color: var(--ib-purple); } .iha-stop-purple-hi { stop-color: color-mix(in srgb, var(--ib-purple), var(--ib-white) 10%); }
.iha-stop-white { stop-color: var(--ib-white); }
.iha-shadow-color { flood-color: var(--ib-purple); }
.iha-line { fill: none; stroke: var(--ib-black); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.iha-base { fill: none; stroke: var(--ib-grey-200); stroke-width: 2; stroke-linecap: round; }
.iha-dot { fill: var(--ib-black); }
.iha-dash { fill: none; stroke-width: 1.4; stroke-linecap: round; }

/* --- Étape 1 : la ligne angulaire se dessine --- */
.iha-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: iha-draw 1.5s .15s cubic-bezier(.65, 0, .35, 1) forwards; }
.iha-base { stroke-dasharray: 1; stroke-dashoffset: 1; animation: iha-draw 1.2s cubic-bezier(.65, 0, .35, 1) forwards; }
@keyframes iha-draw { to { stroke-dashoffset: 0; } }

/* --- Étape 2 : les trois formes se construisent (masques) --- */
.iha-build { transform-box: fill-box; }
.iha-build--green { clip-path: inset(100% 0 0 0); animation: iha-rise 1s .7s cubic-bezier(.2, .8, .2, 1) forwards; }
.iha-build--yellow { transform-origin: 50% 60%; transform: scale(.2); opacity: 0; animation: iha-grow 1s 1s cubic-bezier(.2, .8, .2, 1) forwards; }
.iha-build--purple { clip-path: inset(0 0 0 100%); animation: iha-wipe 1s 1.3s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes iha-rise { to { clip-path: inset(0 0 0 0); } }
@keyframes iha-wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes iha-grow { to { transform: scale(1); opacity: 1; } }

/* --- Étape 3 : les sommets apparaissent successivement, puis pulsent --- */
.iha-peak { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: iha-pop .55s cubic-bezier(.3, 1.6, .5, 1) forwards; }
.iha-peak--1 { animation-delay: 1.9s; } .iha-peak--2 { animation-delay: 2.15s; } .iha-peak--3 { animation-delay: 2.4s; }
@keyframes iha-pop { to { transform: scale(1); } }
.iha-halo { transform-box: fill-box; transform-origin: center; opacity: 0; animation: iha-halo 3.2s 2.6s ease-out infinite; }
.iha-peak--2 .iha-halo { animation-delay: 3.1s; } .iha-peak--3 .iha-halo { animation-delay: 3.6s; }
@keyframes iha-halo { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(2.4); opacity: 0; } }
.iha-dot { transform-box: fill-box; transform-origin: center; animation: iha-breathe 4s 2.6s ease-in-out infinite; }
@keyframes iha-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

/* --- Étape 4 : mouvement permanent très léger --- */
.iha-float { animation: iha-float 7s 2.6s ease-in-out infinite; }
.iha-float--2 { animation-duration: 8.5s; animation-delay: 3s; }
.iha-float--3 { animation-duration: 7.8s; animation-delay: 3.4s; }
@keyframes iha-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(calc(var(--iha-amp) * -1)); } }
/* Variation de luminosité : reflet qui passe doucement sur chaque forme */
.iha-shine { opacity: 0; animation: iha-shine 6s calc(2.6s + var(--d, 0s)) ease-in-out infinite; }
@keyframes iha-shine { 0%, 100% { opacity: 0; } 50% { opacity: .35; } }
/* Lignes de connexion qui circulent */
.iha-links, .iha-net { opacity: 0; animation: iha-fade 1s 2.4s forwards; }
.iha-dash { stroke-dasharray: 3 5; animation: iha-flow 9s linear infinite; }
.iha-dash--slow { animation-duration: 16s; }
@keyframes iha-flow { to { stroke-dashoffset: -100; } }
@keyframes iha-fade { to { opacity: 1; } }
.iha-sat, .iha-spark { transform-box: fill-box; transform-origin: center; animation: iha-twinkle 3.6s calc(2.8s + var(--d, 0s)) ease-in-out infinite; }
@keyframes iha-twinkle { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.2); } }
/* Profondeur */
.iha-depth { opacity: 0; animation: iha-fade 1.4s 1.6s forwards; }
.iha-depth polygon { opacity: .1; }
.iha-depth--far { display: none; }

/* Parallaxe (variables mises à jour par hero-animation.js) */
.iha-layer { transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.iha-layer--back { transform: translate(calc(var(--iha-x) * -6px), calc(var(--iha-y) * -5px)); }
.iha-layer--mid { transform: translate(calc(var(--iha-x) * 9px), calc(var(--iha-y) * 7px)); }
.iha-layer--front { transform: translate(calc(var(--iha-x) * 15px), calc(var(--iha-y) * 11px)); }

/* Pause quand l'animation sort de l'écran (économie de batterie) */
.iha.is-paused * { animation-play-state: paused !important; }

/* --- Variantes par page --- */
.iha--about .iha-float, .iha--about .iha-shine { animation: none; }
.iha--about .iha-links, .iha--about .iha-net { display: none; }
.iha--services .iha-net, .iha--projects .iha-net, .iha--news .iha-net, .iha--contact .iha-net, .iha--default .iha-net, .iha--home .iha-net { display: none; }
.iha--ai .iha-links { display: none; }
.iha--ai .iha-halo { animation-duration: 2.4s; }
.iha--projects .iha-links { display: none; }
.iha--projects .iha-depth--far { display: inline; }
.iha--projects .iha-depth polygon { opacity: .16; }
.iha--projects .iha-depth--far polygon { opacity: .08; }
.iha--news .iha-links, .iha--contact .iha-links { opacity: .6; }

/* --- Intégration dans les en-têtes des pages intérieures --- */
.page-hero--animated { min-height: clamp(380px, 36vw, 520px); display: flex; align-items: center; }
.page-hero--animated > .container { position: relative; z-index: 1; }
.page-hero--animated .page-hero-text { max-width: 56%; }
.page-hero .iha { position: absolute; z-index: 0; right: max(var(--gutter), calc((100vw - var(--container)) / 2 - 20px)); top: 50%; width: min(38%, 500px); transform: translateY(-46%); }
/* --- Intégration dans le hero de l'accueil (derrière la photo) --- */
.hero-visual--photo { isolation: isolate; }
.hero .iha { position: absolute; z-index: -1; width: 74%; left: -26%; bottom: -16%; }
.hero .iha .iha-links { display: none; }

/* Tablette : formes plus petites, mouvements réduits */
@media (max-width: 1100px) {
  .iha { --iha-amp: 4px; }
  .page-hero--animated .page-hero-text { max-width: 62%; }
  .page-hero .iha { width: 34%; }
  .iha-depth--far { display: none !important; }
}
/* Mobile : composition simplifiée, sous le texte, jamais par-dessus */
@media (max-width: 860px) {
  .page-hero--animated { min-height: 0; display: block; }
  .page-hero--animated .page-hero-text { max-width: none; }
  .page-hero .iha { position: relative; right: auto; top: auto; transform: none; width: min(300px, 78%); margin: 28px 0 0 auto; }
  .iha .iha-links, .iha .iha-net, .iha .iha-depth { display: none; }
  .iha-float, .iha-shine { animation: none; }
  .iha-layer { transform: none !important; transition: none; }
  .hero .iha { width: 60%; left: -12%; bottom: -10%; }
}
@media (max-width: 560px) { .hero .iha { display: none; } }

/* Accessibilité : composition statique, aucune animation */
@media (prefers-reduced-motion: reduce) {
  .iha, .iha * { animation: none !important; transition: none !important; }
  .iha-line, .iha-base { stroke-dashoffset: 0; }
  .iha-build--green, .iha-build--purple { clip-path: none; }
  .iha-build--yellow, .iha-peak { transform: none; opacity: 1; }
  .iha-links, .iha-net, .iha-depth { opacity: 1; }
  .iha-halo, .iha-shine { opacity: 0; }
  .iha-layer { transform: none !important; }
}

/* ==========================================================================
   17. Partenaires — défilement continu + animation au survol / toucher
   ========================================================================== */
.partners { padding: clamp(40px, 6vw, 64px) 0; border-block: 1px solid var(--border); background: var(--ib-white); overflow: hidden; }
.partners .logos-title { font-size: .8rem; margin-bottom: 28px; }
.partners-marquee {
  position: relative; overflow: hidden; padding: 18px 0 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.partners-track { display: flex; gap: 24px; width: max-content; list-style: none; margin: 0; padding: 0 12px; animation: partners-scroll calc(var(--partners-count, 12) * 4.5s) linear infinite; }
@keyframes partners-scroll { to { transform: translateX(calc(-50% - 12px)); } }
/* Pause au survol, au focus clavier, ou quand une carte est « touchée » */
.partners-marquee:hover .partners-track, .partners-marquee:focus-within .partners-track, .partners-marquee.is-holding .partners-track { animation-play-state: paused; }

.partner-card {
  position: relative; flex: 0 0 auto; width: 220px; height: 150px; padding: 18px 20px 30px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ib-white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); cursor: pointer; outline: none; overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
/* Liseré tricolore qui se déploie */
.partner-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--grad-brand); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.partner-logo { display: grid; place-items: center; width: 100%; height: 96px; transition: transform .45s var(--ease); }
.partner-logo img { max-width: 100%; max-height: 96px; width: auto; height: auto; object-fit: contain; }
.partner-name {
  position: absolute; left: 10px; right: 10px; bottom: 10px; text-align: center;
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ib-purple);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s var(--ease);
}
/* Animation au survol (souris), au focus (clavier) et au toucher (classe ajoutée par site.js) */
.partner-card:hover, .partner-card:focus-visible, .partner-card.is-active {
  transform: translateY(-10px) scale(1.04); border-color: var(--ib-purple-100);
  box-shadow: 0 22px 40px -18px rgba(28, 21, 80, .35);
}
.partner-card:hover::after, .partner-card:focus-visible::after, .partner-card.is-active::after { transform: scaleX(1); }
.partner-card:hover .partner-logo, .partner-card:focus-visible .partner-logo, .partner-card.is-active .partner-logo { transform: scale(1.08) translateY(-8px); }
.partner-card:hover .partner-name, .partner-card:focus-visible .partner-name, .partner-card.is-active .partner-name { opacity: 1; transform: none; }
.partner-card:focus-visible { box-shadow: var(--ring-purple), 0 22px 40px -18px rgba(28, 21, 80, .35); }
/* Les autres cartes s'estompent légèrement pour mettre en valeur celle survolée */
@media (hover: hover) {
  .partners-track:hover .partner-card:not(:hover) { opacity: .7; }
  .partner-card { transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s, opacity .35s; }
}

@media (max-width: 680px) {
  .partner-card { width: 168px; height: 124px; padding: 14px 14px 26px; }
  .partner-logo { height: 76px; }
  .partner-logo img { max-height: 76px; }
  .partners-track { gap: 16px; }
}

/* Sans animation : grille statique, sans doublons */
@media (prefers-reduced-motion: reduce) {
  .partners-marquee { -webkit-mask-image: none; mask-image: none; }
  .partners-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; padding: 0 var(--gutter); }
  .partner-card[aria-hidden="true"] { display: none; }
  .partner-card, .partner-logo, .partner-name, .partner-card::after { transition: none; }
}

/* ==========================================================================
   18. Pôle santé — catalogue de matériel médical
   ========================================================================== */
/* Établissements accompagnés */
.med-audience { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 28px; }
.med-audience li { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ib-black); }
.med-audience .icon-badge { margin: 0; width: 46px; height: 46px; }
.med-audience .icon-badge::after { display: none; }

/* Modes de vente */
.med-mode { position: relative; padding-top: 30px; }
.med-mode-num { position: absolute; top: 22px; right: 24px; font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--ib-grey-100); }
.med-mode h3 { padding-right: 40px; }
.med-mode--stock { border-top: 4px solid var(--ib-green); }
.med-mode--commande { border-top: 4px solid var(--ib-yellow); }
.med-mode--devis { border-top: 4px solid var(--ib-purple); }
.med-mode.is-current { box-shadow: var(--ring-purple); }

/* Mise en page catalogue */
.med-layout { display: grid; grid-template-columns: 270px 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.med-sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 24px; }
.med-cats { display: grid; gap: 4px; }
.med-cats a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); font-weight: 600; font-size: .93rem; color: var(--ib-ink); transition: background-color .2s, color .2s; }
.med-cats a svg { width: 18px; height: 18px; color: var(--ib-purple); flex-shrink: 0; }
.med-cats a span { flex: 1; }
.med-cats a small { min-width: 26px; text-align: center; padding: 1px 7px; border-radius: var(--radius-pill); background: var(--ib-grey-100); color: var(--muted); font-size: .75rem; font-weight: 700; }
.med-cats a:hover { background: var(--ib-purple-50); color: var(--ib-purple); }
.med-cats a.is-active { background: var(--ib-purple); color: var(--ib-white); }
.med-cats a.is-active svg { color: var(--ib-yellow); }
.med-cats a.is-active small { background: rgba(255, 255, 255, .2); color: var(--ib-white); }
.med-help { padding: 22px; }
.med-help .muted { font-size: .9rem; }
.med-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.med-search { position: relative; flex: 1 1 280px; max-width: 420px; }
.med-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
.med-search input { width: 100%; min-height: 48px; padding: 12px 16px 12px 42px; border-radius: var(--radius-pill); border: 1.5px solid var(--border-strong); background: var(--ib-white); font-size: .95rem; }
.med-search input:focus { outline: none; border-color: var(--ib-purple); box-shadow: var(--ring-purple); }
.med-result { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 20px; }
.med-cat-intro { margin-bottom: 24px; }
@media (max-width: 1100px) { .med-grid.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .med-layout { grid-template-columns: 1fr; }
  .med-sidebar { position: static; }
  .med-cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .med-cats a { flex: 0 0 auto; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); padding: 8px 14px; }
  .med-help { display: none; }
}
@media (max-width: 560px) { .med-grid.grid-3, .med-grid.grid-4 { grid-template-columns: 1fr; } }

/* Carte article */
.med-card { padding: 0; overflow: hidden; }
.med-media { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--grad-soft); border-bottom: 1px solid var(--border); overflow: hidden; }
.med-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.med-card:hover .med-media img { transform: scale(1.04); }
.med-icon { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 28px; background: var(--ib-white); color: var(--ib-purple); box-shadow: var(--shadow); transition: transform .4s var(--ease); }
.med-icon svg { width: 46px; height: 46px; }
.med-card:hover .med-icon { transform: translateY(-6px) rotate(-4deg); }
.med-card--stock .med-media { background: linear-gradient(135deg, var(--ib-green-50), var(--ib-white)); }
.med-card--commande .med-media { background: linear-gradient(135deg, var(--ib-yellow-50), var(--ib-white)); }
.med-card--devis .med-media { background: linear-gradient(135deg, var(--ib-purple-50), var(--ib-white)); }
.med-badge { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--radius-pill); font-size: .74rem; font-weight: 800; letter-spacing: .02em; }
.med-badge svg { width: 14px; height: 14px; }
.med-badge--stock { background: var(--ib-green-700); color: var(--ib-white); }
.med-badge--commande { background: var(--ib-yellow); color: var(--ib-black); }
.med-badge--devis { background: var(--ib-purple); color: var(--ib-white); }
.med-badge--static { position: static; }
.med-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.med-cat { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ib-purple); margin-bottom: 8px; }
.med-body h3 { font-size: 1.08rem; margin-bottom: 8px; }
.med-body p { font-size: .92rem; }
.med-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.med-actions .btn { position: relative; z-index: 2; }
.med-actions .link-arrow { padding-top: 0; }
.btn.is-added { background: var(--ib-purple); }

/* Fiche produit */
.med-hero-media { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); background: var(--grad-soft); border: 1px solid var(--border); overflow: hidden; margin-bottom: 36px; }
.med-hero-media img { width: 100%; height: 100%; object-fit: contain; background: var(--ib-white); }
.med-icon--lg { width: 150px; height: 150px; border-radius: 40px; }
.med-icon--lg svg { width: 74px; height: 74px; }
.qty { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.qty input { width: 90px; min-height: 44px; text-align: center; border: 1.5px solid var(--border-strong); border-radius: 12px; font-weight: 700; font-size: 1rem; }
.qty input:focus { outline: none; border-color: var(--ib-purple); }

/* Liste de la demande de devis */
.quote-list { list-style: none; display: grid; gap: 10px; }
.quote-item { display: grid; grid-template-columns: 1fr 96px 44px; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--ib-grey-50); }
.quote-item strong { display: block; color: var(--ib-black); }
.quote-item small { color: var(--muted); font-size: .8rem; }
.quote-item input[type="number"] { width: 100%; min-height: 42px; text-align: center; border: 1.5px solid var(--border-strong); border-radius: 10px; font-weight: 700; background: var(--ib-white); }
.quote-item .icon-btn svg { color: var(--ib-danger); }

/* Barre flottante « Ma demande de devis » + notification */
.quote-bar { position: fixed; left: 20px; bottom: 20px; z-index: 880; display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 14px; background: var(--ib-white); border: 1px solid var(--border); border-radius: var(--radius-pill); box-shadow: var(--shadow-lg); animation: quote-in .4s var(--ease); }
.quote-bar[hidden] { display: none; }
.quote-bar-icon { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ib-purple-50); color: var(--ib-purple); }
.quote-bar-icon svg { width: 20px; height: 20px; }
.quote-bar-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--ib-yellow); color: var(--ib-black); font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.quote-bar-text { display: grid; line-height: 1.2; }
.quote-bar-text strong { color: var(--ib-black); font-size: .9rem; }
.quote-bar-text small { color: var(--muted); font-size: .78rem; }
@keyframes quote-in { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.quote-toast { position: fixed; left: 50%; bottom: 96px; z-index: 990; transform: translate(-50%, 16px); opacity: 0; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: var(--radius-pill); background: var(--ib-black); color: var(--ib-white); font-size: .9rem; font-weight: 600; box-shadow: var(--shadow-lg); transition: opacity .3s, transform .3s var(--ease); }
.quote-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 560px) {
  .quote-bar { left: 12px; right: 84px; bottom: 14px; gap: 10px; }
  .quote-bar-text small { display: none; }
  .quote-bar .btn { padding: 8px 12px; }
}

/* ==========================================================================
   19. Vidéo du hero de l'accueil (animation du logo)
   ========================================================================== */
.hero-video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--ib-white); box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.hero-video-frame::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--grad-brand); z-index: 1; }
.hero-video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--ib-white); }
.hero-video-toggle { position: absolute; right: 14px; bottom: 20px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, .92); color: var(--ib-purple); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); transition: background-color .2s, transform .2s; }
.hero-video-toggle:hover { background: var(--ib-white); transform: scale(1.06); }
.hero-video-toggle svg { width: 16px; height: 16px; }
.hero-video-toggle .i-play { display: none; }
.hero-video-toggle.is-paused .i-play { display: block; }
.hero-video-toggle.is-paused .i-pause { display: none; }
.hero-visual--photo .hero-chip--1 { top: -18px; left: -4%; }
.hero-visual--photo .hero-chip--2 { bottom: -18px; right: -2%; top: auto; }
@media (max-width: 960px) { .hero-visual--photo .hero-chip--1 { left: 8px; } .hero-visual--photo .hero-chip--2 { right: 8px; } }
.hero-visual--photo .hero-chip { z-index: 3; }
.hero-video-toggle[hidden] { display: none; }

/* ==========================================================================
   20. Hero de l'accueil — vidéo plein cadre en arrière-plan
   La vidéo (logo animé sur fond blanc) couvre tout le hero ; elle est décalée
   vers la droite pour que le logo n'entre pas en conflit avec le titre, et un
   dégradé blanc à gauche garantit la lisibilité des textes.
   ========================================================================== */
.hero--video { display: flex; align-items: center; min-height: clamp(560px, calc(100svh - var(--header-h)), 820px); padding: clamp(40px, 6vw, 72px) 0; background: var(--ib-white); }
.hero--video::before { display: none; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--ib-white); }
.hero-bg-video {
  position: absolute; top: 50%; right: -16%; height: 104%; width: auto; aspect-ratio: 16 / 9;
  transform: translateY(-50%); object-fit: cover; background: var(--ib-white);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%);
}
.hero-bg-fade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--ib-white) 0%, rgba(255, 255, 255, .94) 30%, rgba(255, 255, 255, .55) 46%, rgba(255, 255, 255, 0) 60%); pointer-events: none; }
.hero-video-content { position: relative; z-index: 1; width: 100%; }
.hero-text { max-width: 560px; }
.hero--video h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
.hero-video-chips { pointer-events: none; }
.hero--video .hero-chip--1 { top: -6%; left: auto; right: 34%; }
.hero--video .hero-chip--2 { bottom: -4%; top: auto; right: 2%; }
.hero-video-toggle--bg { position: absolute; right: 24px; bottom: 24px; z-index: 2; }
/* Très grands écrans : on garde le logo dans la moitié droite */
@media (min-width: 1700px) { .hero-bg-video { right: -10%; } }

/* Tablette et mobile : bandeau vidéo en haut du hero, textes dessous (jamais par-dessus le logo) */
@media (max-width: 1100px) {
  .hero--video { display: block; min-height: 0; padding: 0 0 clamp(40px, 8vw, 64px); }
  .hero-bg { position: relative; inset: auto; z-index: 0; aspect-ratio: 16 / 9; max-height: 56vh; }
  .hero-bg-video { position: absolute; inset: 0; top: 0; right: 0; width: 100%; height: 100%; transform: none; -webkit-mask-image: none; mask-image: none; }
  .hero-bg-fade { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 70%, var(--ib-white) 100%); }
  .hero-video-content { margin-top: 8px; }
  .hero-text { max-width: 640px; }
  .hero-video-chips { display: none; }
  .hero-video-toggle--bg { top: calc(min(56.25vw, 56vh) - 56px); bottom: auto; right: 16px; }
}
/* Lisibilité renforcée sur écrans moyens */
.hero-bg-fade { background: linear-gradient(90deg, var(--ib-white) 0%, rgba(255, 255, 255, .96) 36%, rgba(255, 255, 255, .6) 50%, rgba(255, 255, 255, 0) 64%); }
@media (max-width: 1366px) and (min-width: 1101px) { .hero-bg-video { right: -26%; } }
@media (max-width: 1100px) { .hero-bg-fade { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 70%, var(--ib-white) 100%); } }

/* Prix indicatif des articles médicaux (affiché uniquement s'il est renseigné dans l'admin) */
.med-price { margin: 4px 0 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.med-price strong { font-family: var(--font-display, inherit); font-size: 1.12rem; font-weight: 800; color: var(--ib-purple); }
.med-price span { font-size: .88rem; color: var(--muted); }
.med-price small { flex-basis: 100%; font-size: .76rem; color: var(--muted); }
.med-price--lg { margin: 16px 0 4px; padding: 14px 16px; border-radius: 12px; background: var(--ib-purple-50, #F4F3FA); }
.med-price--lg strong { font-size: 1.25rem; white-space: nowrap; }

/* En-tête des fiches produits médicaux : texte + actions à gauche, visuel à droite */
.med-phero { --tint: var(--ib-purple-50); --tint-2: var(--ib-green-50); position: relative; overflow: hidden; isolation: isolate; padding: clamp(28px, 5vw, 64px) 0 clamp(36px, 5vw, 72px); background: linear-gradient(180deg, var(--ib-white) 0%, var(--tint) 100%); border-bottom: 1px solid var(--border); }
.med-phero--stock { --tint: var(--ib-green-50); --tint-2: var(--ib-purple-50); }
.med-phero--commande { --tint: var(--ib-yellow-50); --tint-2: var(--ib-green-50); }
.med-phero--devis { --tint: var(--ib-purple-50); --tint-2: var(--ib-green-50); }
.med-phero::before { content: ""; position: absolute; z-index: -1; right: -12%; top: -30%; width: 62%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--tint-2), transparent); opacity: .9; }
.med-phero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.med-phero h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin: 6px 0 14px; max-width: 18ch; }
.med-phero .lead { margin: 0 0 22px; max-width: 48ch; }
.med-phero-mode { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px; padding: 12px 14px; max-width: 560px; background: rgba(255, 255, 255, .72); border: 1px solid var(--border); border-radius: 14px; font-size: .9rem; color: var(--muted); }
.med-phero-mode .med-badge { flex-shrink: 0; }
.med-phero-mode > span:last-child { padding-top: 3px; }
.med-price--hero { margin: -4px 0 22px; }
.med-price--hero strong { font-size: 1.6rem; }
.med-phero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.med-phero-visual { position: relative; }
.med-phero-media { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--ib-white); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.med-phero-media img { width: 100%; height: 100%; object-fit: cover; }
.med-phero-visual::after { content: ""; position: absolute; z-index: -1; left: -18px; bottom: -18px; width: 46%; height: 46%; border-radius: var(--radius-lg); background: repeating-linear-gradient(135deg, transparent 0 9px, rgba(49, 38, 130, .08) 9px 10px); }
@media (max-width: 900px) {
  .med-phero-grid { grid-template-columns: 1fr; }
  .med-phero-visual { order: -1; max-width: 520px; }
  .med-phero .breadcrumbs { margin-bottom: 12px; }
}
@media (max-width: 560px) {
  .med-phero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .med-phero-mode { flex-direction: column; gap: 8px; }
}
.detail-grid > div > .panel.mt-lg:first-child { margin-top: 0; }
.med-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.med-steps li { position: relative; padding-left: 46px; color: var(--muted); font-size: .95rem; counter-increment: step; }
.med-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ib-purple-50); color: var(--ib-purple); font-weight: 800; font-size: .9rem; }
.med-steps strong { display: block; color: var(--ib-black); margin-bottom: 2px; }
#devis { scroll-margin-top: 110px; }

/* Fiches produits : animation IboundjiHeroAnimation derrière la carte du produit */
.med-phero-visual { isolation: isolate; }
.med-phero-visual::after { display: none; }
.med-phero .iha.med-phero-iha { position: absolute; z-index: -1; width: 64%; left: -20%; bottom: -10%; top: auto; right: auto; transform: none; }
.med-phero-iha .iha-links { display: none; }
.med-phero { padding-bottom: clamp(56px, 7vw, 104px); }
.med-phero-media { z-index: 1; }
@media (max-width: 900px) {
  .med-phero .iha.med-phero-iha { width: 70%; left: -14%; bottom: -18%; }
}
@media (max-width: 560px) {
  .med-phero .iha.med-phero-iha { width: 78%; left: -10%; bottom: -14%; }
}
/* Composition : la carte produit posée sur les montagnes animées */
@media (min-width: 901px) {
  .med-phero-visual { padding-bottom: 150px; }
  .med-phero-media { width: 78%; margin-left: auto; }
  .med-phero .iha.med-phero-iha { width: 86%; left: -6%; bottom: -6%; }
}
@media (max-width: 900px) {
  .med-phero-visual { padding-bottom: 110px; }
  .med-phero-media { width: 82%; margin-left: auto; }
  .med-phero .iha.med-phero-iha { width: 80%; left: -4%; bottom: -8%; }
}
@media (max-width: 560px) {
  .med-phero-visual { padding-bottom: 0; }
  .med-phero-media { width: 100%; }
  .med-phero .iha.med-phero-iha { display: none; }
}
/* v2 : montagnes entières, devant le coin inférieur gauche de la carte (aucun sommet masqué) */
@media (min-width: 561px) {
  .med-phero-visual { padding-bottom: 56px; }
  .med-phero-media { width: 86%; margin-left: auto; }
  .med-phero .iha.med-phero-iha { z-index: 2; width: 44%; left: -6%; bottom: -4%; }
}
@media (min-width: 561px) and (max-width: 900px) {
  .med-phero .iha.med-phero-iha { width: 42%; left: -2%; }
}

/* ===== Bulles & vagues animées (couleurs du logo) — partial site.partials.bubbles ===== */
.ib-bubbles { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
/* Grandes formes floues qui dérivent et se déforment */
.ib-blob { position: absolute; width: clamp(220px, 30vw, 440px); aspect-ratio: 1; filter: blur(42px); opacity: .55; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; animation: ibBlob 16s ease-in-out infinite alternate, ibMorph 11s ease-in-out infinite alternate; }
.ib-blob--green { background: rgba(3, 151, 67, .45); left: -8%; top: 18%; }
.ib-blob--yellow { background: rgba(255, 238, 2, .7); left: 38%; bottom: -30%; width: clamp(180px, 24vw, 360px); animation-duration: 19s, 13s; animation-delay: -6s, -3s; }
.ib-blob--purple { background: rgba(49, 38, 130, .38); right: -6%; top: -22%; animation-duration: 21s, 12s; animation-delay: -9s, -5s; }
@keyframes ibBlob { 0% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(8vw, -6%) rotate(40deg); } 100% { transform: translate(-4vw, 10%) rotate(-30deg); } }
@keyframes ibMorph { 0% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; } 100% { border-radius: 63% 37% 38% 62% / 58% 63% 37% 42%; } }
/* Bulles qui montent en ondulant */
.ib-bubble { position: absolute; left: var(--x); top: 100%; width: var(--s); height: var(--s); animation: ibRiseUp var(--d) cubic-bezier(.45, .05, .55, .95) var(--delay) infinite; }
.ib-bubble i { display: block; width: 100%; height: 100%; border-radius: 50%; animation: ibSway calc(var(--d) / 4) ease-in-out var(--delay) infinite alternate; }
.ib-bubble--fill i { background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, .95) 0 12%, transparent 36%), var(--bc); box-shadow: inset -4px -6px 10px rgba(255, 255, 255, .35); }
.ib-bubble--ring i { border: 2.5px solid var(--bc-ring); background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, .85) 0 8%, transparent 28%), var(--bc-soft); }
.ib-bubble--green { --bc: rgba(3, 151, 67, .32); --bc-ring: rgba(3, 151, 67, .5); --bc-soft: rgba(3, 151, 67, .06); }
.ib-bubble--yellow { --bc: rgba(255, 228, 0, .62); --bc-ring: rgba(225, 200, 0, .75); --bc-soft: rgba(255, 238, 2, .1); }
.ib-bubble--purple { --bc: rgba(49, 38, 130, .26); --bc-ring: rgba(49, 38, 130, .42); --bc-soft: rgba(49, 38, 130, .05); }
@keyframes ibRiseUp {
  0% { top: 104%; transform: scale(.55); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: scale(1); }
  85% { opacity: .95; }
  100% { top: -14%; transform: scale(1.15); opacity: 0; }
}
@keyframes ibSway { from { transform: translateX(-34px); } to { transform: translateX(34px); } }
/* Vagues : défilement continu + houle verticale */
.ib-waves { position: absolute; z-index: -1; left: 0; right: 0; bottom: -1px; height: clamp(90px, 11vw, 150px); overflow: hidden; pointer-events: none; }
.ib-wave { position: absolute; left: 0; bottom: 0; width: 200%; max-width: none; height: 100%; animation: ibWave 12s linear infinite, ibSwell 5s ease-in-out infinite alternate; }
.ib-wave--purple { fill: rgba(49, 38, 130, .12); }
.ib-wave--green { fill: rgba(3, 151, 67, .16); animation-duration: 16s, 6s; animation-direction: reverse, alternate; }
.ib-wave--yellow { fill: rgba(255, 238, 2, .38); animation-duration: 20s, 4s; }
@keyframes ibWave { from { translate: 0 0; } to { translate: -50% 0; } }
@keyframes ibSwell { from { transform: translateY(10px) scaleY(.92); } to { transform: translateY(-4px) scaleY(1.08); } }
.med-phero > .container { position: relative; z-index: 1; }
/* La carte produit flotte doucement */
.med-phero-media { animation: ibCardFloat 6s ease-in-out infinite alternate; }
@keyframes ibCardFloat { from { transform: translateY(6px) rotate(-.4deg); } to { transform: translateY(-10px) rotate(.4deg); } }
@media (prefers-reduced-motion: reduce) {
  .ib-bubble { animation: none; top: calc(15% + var(--x) * .55); }
  .ib-bubble i, .ib-wave, .ib-blob, .med-phero-media { animation: none; }
}
@media (max-width: 560px) {
  .ib-bubble:nth-child(3n) { display: none; }
  .ib-blob { filter: blur(30px); opacity: .4; }
}

/* Bulles & vagues sur tous les bandeaux (pages intérieures + accueil) */
.page-hero { padding-bottom: clamp(76px, 9vw, 132px); }
.page-hero > .container { position: relative; z-index: 1; }
.hero-bg .ib-bubbles, .hero-bg .ib-waves { z-index: 1; }
.hero--video .ib-blob { opacity: .32; }
.hero--video .ib-blob--purple { right: auto; left: 30%; top: -30%; }
@media (min-width: 1101px) { .hero--video { padding-bottom: clamp(90px, 9vw, 130px); } }

/* ======================================================================
   Actualités (2026) : cartes, liste, article, sommaire, commentaires
   ====================================================================== */
.news-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; }
.news-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.news-cats .chip small { margin-left: 6px; font-size: .74rem; font-weight: 700; opacity: .65; }
.news-search { position: relative; flex: 0 1 320px; }
.news-search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.news-search input { width: 100%; min-height: 46px; padding: 10px 16px 10px 44px; border-radius: var(--radius-pill); border: 1.5px solid var(--border-strong); background: var(--ib-white); font-size: .95rem; }
.news-search input:focus { outline: none; border-color: var(--ib-purple); box-shadow: var(--ring-purple); }
.news-result { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -8px 0 24px; }
.news-heading { font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin: 0 0 20px; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
@media (max-width: 1024px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .news-grid { grid-template-columns: 1fr; } .news-search { flex-basis: 100%; } }

/* Carte article */
.news-card { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: var(--radius-lg); background: var(--ib-white); border: 1px solid var(--border); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--ib-purple-100); }
.news-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--grad-soft); }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.news-card:hover .news-card-media img { transform: scale(1.06); }
.news-card-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ib-purple); }
.news-card-placeholder svg { width: 56px; height: 56px; opacity: .5; }
.news-cat { position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .94); color: var(--ib-purple); font-size: .76rem; font-weight: 800; letter-spacing: .02em; box-shadow: 0 6px 18px rgba(28, 21, 80, .14); backdrop-filter: blur(6px); }
.news-flag { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--ib-yellow); color: var(--ib-black); font-size: .76rem; font-weight: 800; }
.news-flag svg { width: 14px; height: 14px; }
.news-card-body { display: flex; flex-direction: column; flex: 1; padding: clamp(18px, 2.2vw, 24px); }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .84rem; color: var(--muted); margin: 0 0 10px; }
.news-meta span, .news-meta a { display: inline-flex; align-items: center; gap: 5px; }
.news-meta svg { width: 15px; height: 15px; }
.news-meta a { color: inherit; }
.news-meta a:hover { color: var(--ib-purple); }
.news-title { font-size: 1.14rem; line-height: 1.35; margin: 0 0 10px; }
.news-title a { color: var(--ib-black); }
.news-card:hover .news-title a { color: var(--ib-purple); }
.news-excerpt { color: var(--muted); font-size: .95rem; line-height: 1.6; margin: 0 0 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .86rem; }
.news-author { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ib-ink); }
.news-avatar { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; display: inline-grid; place-items: center; font-size: .74rem; font-weight: 800; color: var(--ib-white); background: linear-gradient(135deg, var(--ib-green), var(--ib-purple)); }
.news-avatar--lg { width: 46px; height: 46px; font-size: .9rem; }
.news-avatar--xl { width: 64px; height: 64px; font-size: 1.15rem; }
.news-avatar--team { background: var(--ib-white); color: var(--ib-purple); box-shadow: inset 0 0 0 2px var(--ib-purple); }
.news-comments { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; }
.news-comments svg { width: 16px; height: 16px; }

/* Carte « À la une » */
.news-card--featured { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.news-card--featured .news-card-media { aspect-ratio: auto; min-height: 340px; }
.news-card--featured .news-card-body { padding: clamp(24px, 3.6vw, 44px); justify-content: center; }
.news-card--featured .news-title { font-size: clamp(1.45rem, 2.6vw, 2.05rem); line-height: 1.2; }
.news-card--featured .news-excerpt { font-size: 1.02rem; -webkit-line-clamp: 4; }
@media (max-width: 860px) { .news-card--featured { grid-template-columns: 1fr; } .news-card--featured .news-card-media { min-height: 0; aspect-ratio: 16 / 9; } }

/* Les plus lus */
.news-popular { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; padding: clamp(24px, 3.6vw, 40px); border-radius: var(--radius-lg); background: var(--grad-soft); border: 1px solid var(--border); }
.news-popular-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 4px; }
.news-popular-list a { display: flex; gap: 16px; align-items: flex-start; padding: 12px; border-radius: 14px; color: var(--ib-ink); transition: background-color .2s; }
.news-popular-list a:hover { background: rgba(255, 255, 255, .7); }
.news-popular-list strong { display: block; color: var(--ib-black); line-height: 1.35; }
.news-popular-list small { color: var(--muted); }
.news-rank { flex-shrink: 0; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: var(--ib-white); background: var(--ib-purple); }
.news-popular-list li:nth-child(2) .news-rank { background: var(--ib-green-700); }
.news-popular-list li:nth-child(3) .news-rank { background: var(--ib-yellow); color: var(--ib-black); }
.news-follow { padding: 24px; border-radius: var(--radius); background: var(--ib-white); border: 1px solid var(--border); }
@media (max-width: 860px) { .news-popular { grid-template-columns: 1fr; } }

/* Article */
.read-progress { position: fixed; z-index: 120; left: 0; right: 0; top: 0; height: 4px; pointer-events: none; }
.read-progress span { display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--ib-green), var(--ib-yellow), var(--ib-purple)); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 4vw, 64px); align-items: start; }
.article-main { min-width: 0; max-width: 780px; }
.article-byline { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.article-byline strong { color: var(--ib-black); }
.article-byline .news-meta { margin-top: 2px; }
.article-cover { margin: 0 0 36px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); aspect-ratio: auto; }
.article-cover img { width: 100%; height: auto; display: block; }
.article-prose { max-width: none; }
.article-prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); scroll-margin-top: calc(var(--header-h) + 24px); }
.article-prose h3 { scroll-margin-top: calc(var(--header-h) + 24px); }
.article-tags { margin-top: 32px; }
.article-aside-sticky { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.article-toc { padding: 20px 22px; border-radius: var(--radius); background: var(--ib-white); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.article-toc ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.article-toc a { display: block; padding: 7px 10px; border-radius: 10px; font-size: .9rem; line-height: 1.35; color: var(--muted); border-left: 3px solid transparent; transition: all .2s; }
.article-toc a:hover { color: var(--ib-purple); background: var(--ib-purple-50); }
.article-toc a.is-active { color: var(--ib-purple); font-weight: 700; border-left-color: var(--ib-green); background: var(--ib-purple-50); }
.article-toc .toc-l3 a { padding-left: 24px; font-size: .85rem; }
.article-toc--inline { display: none; margin-bottom: 28px; }
.article-toc--inline summary { cursor: pointer; font-weight: 800; color: var(--ib-black); }
.article-cta { padding: 24px; }
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { display: none; }
  .article-toc--inline { display: block; }
  .article-main { max-width: none; }
}

/* Partage */
.share-btn { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ib-white); border: 1px solid var(--border-strong); color: var(--ib-ink); cursor: pointer; transition: transform .2s, background-color .2s, color .2s, border-color .2s; }
.share-btn svg { width: 18px; height: 18px; }
.share-btn:hover { transform: translateY(-2px); color: var(--ib-white); background: var(--ib-purple); border-color: var(--ib-purple); }
.share-btn--whatsapp:hover { background: var(--ib-green-700); border-color: var(--ib-green-700); }

/* Auteur + navigation entre articles */
.article-author { display: flex; gap: 18px; align-items: flex-start; margin-top: 40px; padding: 24px; border-radius: var(--radius-lg); background: var(--grad-soft); border: 1px solid var(--border); }
.article-author .h-sm { margin: 2px 0 6px; }
.article-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.article-pager-link { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--ib-white); color: var(--ib-black); transition: border-color .2s, box-shadow .2s, transform .2s; }
.article-pager-link:hover { border-color: var(--ib-purple-100); box-shadow: var(--shadow); transform: translateY(-2px); }
.article-pager-link small { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.article-pager-link small svg { width: 14px; height: 14px; }
.article-pager-link strong { line-height: 1.35; }
.article-pager-link--next { text-align: right; align-items: flex-end; grid-column: 2; }
@media (max-width: 640px) { .article-pager { grid-template-columns: 1fr; } .article-pager-link--next { grid-column: auto; } }

/* Commentaires */
.comments { margin-top: clamp(48px, 6vw, 72px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--border); scroll-margin-top: calc(var(--header-h) + 16px); }
.comments-title { display: flex; align-items: center; gap: 12px; font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 24px; }
.comments-count { min-width: 34px; height: 34px; padding: 0 10px; border-radius: var(--radius-pill); display: inline-grid; place-items: center; background: var(--ib-purple-50); color: var(--ib-purple); font-size: .95rem; }
.comments-empty { margin-bottom: 28px; }
.comment-list, .comment-replies { list-style: none; margin: 0; padding: 0; }
.comment-list { display: grid; gap: 18px; margin-bottom: 40px; }
.comment-replies { margin: 14px 0 0 clamp(20px, 5vw, 56px); padding-left: clamp(14px, 2vw, 20px); border-left: 2px solid var(--ib-purple-100); display: grid; gap: 14px; }
.comment-item { display: flex; gap: 14px; align-items: flex-start; }
.comment-item .news-avatar { width: 42px; height: 42px; font-size: .85rem; }
.comment-content { flex: 1; min-width: 0; padding: 16px 18px; border-radius: 4px var(--radius) var(--radius) var(--radius); background: var(--ib-white); border: 1px solid var(--border); }
.comment-item--team .comment-content { background: var(--ib-purple-50); border-color: var(--ib-purple-100); }
.comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 6px; }
.comment-head strong { color: var(--ib-black); }
.comment-head time { font-size: .8rem; color: var(--muted); margin-left: auto; }
.comment-badge { padding: 2px 9px; border-radius: var(--radius-pill); background: var(--ib-purple); color: var(--ib-white); font-size: .7rem; font-weight: 800; }
.comment-body { color: var(--ib-ink); line-height: 1.65; overflow-wrap: anywhere; }
.comment-reply { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--ib-purple); font-weight: 700; font-size: .85rem; cursor: pointer; }
.comment-reply svg { width: 15px; height: 15px; }
.comment-reply:hover { text-decoration: underline; }
.comment-form { display: grid; gap: 18px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg); background: var(--ib-white); border: 1px solid var(--border); box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 16px); }
.comment-form h3 { margin: 0; }
.comment-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .comment-form-grid { grid-template-columns: 1fr; } }
.comment-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.comment-replying { margin: -6px 0 0; display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--ib-purple-50); font-size: .9rem; }
.comment-replying button { border: 0; background: none; cursor: pointer; padding: 0; margin-left: auto; }
.comment-replying[hidden] { display: none; }

/* IB Assistant : la case de consentement garde sa taille (la règle .chat-lead input lui donnait 100 % de largeur) */
.chat-lead .check { display: flex; align-items: flex-start; gap: 10px; }
.chat-lead .check input { width: 18px; height: 18px; min-width: 18px; padding: 0; margin: 2px 0 0; flex-shrink: 0; border-radius: 4px; }
.chat-lead .check span { flex: 1; min-width: 0; line-height: 1.45; }
.chat-lead { min-width: 0; max-width: 100%; }
.chat-body { overflow-x: hidden; }

/* ===== Carte « Nous trouver » ===== */
.location-wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-lg); background: var(--ib-white); }
.location-map { min-height: 440px; background: var(--grad-soft); z-index: 0; }
.location-map:not(.is-ready)::after { content: "Chargement de la carte…"; display: grid; place-items: center; height: 100%; min-height: 440px; color: var(--muted); font-size: .9rem; }
.location-card { position: relative; padding: clamp(24px, 3vw, 36px); border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 14px; }
.location-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--ib-green) 0 33.3%, var(--ib-yellow) 33.3% 66.6%, var(--ib-purple) 66.6%); }
.location-logo img { height: 64px; width: auto; }
.location-card h3 { margin: 0; font-size: 1.3rem; }
.location-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.location-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ib-ink); font-size: .95rem; line-height: 1.5; }
.location-list svg { width: 20px; height: 20px; color: var(--ib-green-700); flex-shrink: 0; margin-top: 2px; }
.location-list a { color: var(--ib-ink); font-weight: 600; }
.location-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
@media (max-width: 900px) { .location-wrap { grid-template-columns: 1fr; } .location-map, .location-map:not(.is-ready)::after { min-height: 340px; } .location-card { border-left: 0; border-top: 1px solid var(--border); } }
/* Repère aux couleurs du logo (site et admin) */
.ib-pin { background: none; border: 0; }
.ib-pin span { position: relative; display: block; width: 36px; height: 36px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: conic-gradient(from 200deg, #039743 0 33%, #FFEE02 0 66%, #312682 0); box-shadow: 0 8px 18px rgba(28, 21, 80, .35); border: 3px solid #fff; }
.ib-pin span::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }
.leaflet-container { font-family: var(--font-sans, inherit); }

/* Lien vers l'administration */
.footer-admin { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--on-dark-line); }
.footer-admin svg { width: 14px; height: 14px; }
.footer-admin:hover { border-color: var(--ib-yellow); color: var(--ib-yellow) !important; }
.admin-shortcut { position: fixed; z-index: 95; left: 20px; bottom: 20px; display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--ib-black); box-shadow: 0 12px 30px rgba(0, 0, 0, .28); }
.admin-shortcut a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; color: var(--ib-white); font-size: .85rem; font-weight: 700; white-space: nowrap; transition: background-color .2s, color .2s; }
.admin-shortcut a svg { width: 16px; height: 16px; }
.admin-shortcut a:hover { background: rgba(255, 255, 255, .12); }
.admin-shortcut .admin-shortcut-main { background: var(--ib-green-700); }
.admin-shortcut .admin-shortcut-main:hover { background: var(--ib-green-800); }
@media (max-width: 560px) { .admin-shortcut { left: 12px; bottom: 12px; } .admin-shortcut a { padding: 8px 12px; font-size: .8rem; } }
@media print { .admin-shortcut { display: none; } }

/* ===== Sélecteur de langue FR / EN ===== */
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--ib-white); }
.lang-switch a { min-width: 38px; height: 32px; padding: 0 10px; border-radius: 999px; display: inline-grid; place-items: center; font-size: .78rem; font-weight: 800; letter-spacing: .04em; color: var(--muted); transition: background-color .2s, color .2s; }
.lang-switch a:hover { color: var(--ib-purple); }
.lang-switch a[aria-current="true"] { background: var(--ib-purple); color: var(--ib-white); }
.main-nav .nav-lang { display: none; }
@media (max-width: 960px) {
  .header-actions .lang-switch { display: none; }
  .main-nav .nav-lang { display: flex; gap: 8px; margin-top: 16px; padding: 0 4px; }
  .main-nav .nav-lang a { flex: 1; justify-content: center; text-align: center; padding: 12px; border-radius: 12px; border: 1px solid var(--border-strong); font-family: var(--font-sans); font-size: .95rem; }
  .main-nav .nav-lang a[aria-current="true"] { background: var(--ib-purple); border-color: var(--ib-purple); color: var(--ib-white); }
  .main-nav .nav-lang a::after { display: none; }
}

/* ===== Accueil sur mobile : bandeau vidéo dégagé, boutons pleine largeur, boutons flottants compacts ===== */
@media (max-width: 1100px) {
  /* Le logo de la vidéo reste lisible : pas de vagues ni de formes floues par-dessus, peu de bulles */
  .hero-bg .ib-waves, .hero-bg .ib-blob { display: none; }
  .hero-bg .ib-bubble:nth-child(n+10) { display: none; }
}
@media (max-width: 640px) {
  .hero--video .eyebrow { font-size: .7rem; letter-spacing: .1em; gap: 8px; text-wrap: balance; }
  .hero--video h1 { font-size: clamp(2rem, 9.4vw, 2.5rem); }
  .hero-actions { flex-direction: column; gap: 10px; margin-bottom: 28px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-trust { flex-direction: column; gap: 10px; font-size: .9rem; }
  .hero-trust li { align-items: flex-start; }
  .hero-trust svg { margin-top: 1px; }
  /* Boutons flottants plus discrets et marge pour ne pas masquer le contenu */
  .floating { right: 12px; bottom: 12px; gap: 10px; }
  .fab { width: 50px; height: 50px; }
  .fab svg { width: 24px; height: 24px; }
  .hero-video-content { padding-bottom: 72px; }
}

/* ==========================================================================
   Logiciels Iboundji (catalogue + fiche produit)
   ========================================================================== */
.sw-facts { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; }
.sw-facts li { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.sw-facts strong { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; color: var(--ib-purple); }
.sw-facts span { color: var(--text); font-weight: 600; font-size: .95rem; line-height: 1.35; }
.sw-facts .icon-badge { margin: 0; width: 46px; height: 46px; }

.sw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.sw-card { --sw: var(--ib-purple); position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.sw-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(49,38,130,.14); border-color: color-mix(in srgb, var(--sw) 40%, var(--border)); }
.sw-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--sw); z-index: 2; }
.sw-card:has(.card-link-overlay:focus-visible) { box-shadow: var(--ring-purple); }
.sw-card-media { position: relative; aspect-ratio: 16 / 10; background: color-mix(in srgb, var(--sw) 10%, var(--ib-white)); overflow: hidden; }
.sw-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s var(--ease); }
.sw-card:hover .sw-card-media img { transform: scale(1.04); }
.sw-sector { position: absolute; left: 12px; bottom: 12px; padding: 5px 12px; border-radius: var(--radius-pill); background: rgba(255,255,255,.94); color: var(--ib-ink); font-size: .76rem; font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.sw-card-body { display: flex; flex-direction: column; gap: 14px; flex: 1; padding: 22px 22px 24px; }
.sw-card-head { display: flex; gap: 14px; align-items: flex-start; }
.sw-logo { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px; background: var(--sw); color: #fff; font-weight: 800; font-size: .95rem; letter-spacing: .02em; box-shadow: 0 8px 18px color-mix(in srgb, var(--sw) 35%, transparent); }
.sw-logo--lg { width: 58px; height: 58px; border-radius: 16px; font-size: 1.15rem; }
.sw-name { font-size: 1.22rem; margin: 0 0 4px; }
.sw-name a { color: var(--heading); }
.sw-tagline { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.sw-audience { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: .9rem; color: var(--text); }
.sw-audience svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--ib-green-700); }
.sw-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.sw-chips li { padding: 5px 11px; border-radius: var(--radius-pill); background: var(--ib-grey-50); border: 1px solid var(--border); font-size: .8rem; font-weight: 600; color: var(--ib-ink); }
.sw-chips--lg li { padding: 8px 16px; font-size: .92rem; background: var(--ib-purple-50); border-color: var(--ib-purple-100); color: var(--ib-purple); }
.sw-more { margin-top: auto; padding-top: 4px; }
.sw-note { margin: 22px 0 0; font-size: .86rem; text-align: center; }

.sw-steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; }
.sw-step { position: relative; padding: 26px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.sw-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.sw-step p { font-size: .92rem; color: var(--muted); }
.sw-step .icon-badge { margin-bottom: 16px; width: 48px; height: 48px; }
.sw-step-num { position: absolute; top: 18px; right: 20px; font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; line-height: 1; color: var(--ib-green); opacity: .28; }

.sw-custom { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--grad-soft); border: 1px solid var(--border); }
.sw-custom > div:first-child { max-width: 640px; }
.sw-custom h2 { margin-bottom: 10px; }
.sw-custom-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Fiche produit */
.sw-hero { --sw: var(--ib-purple); position: relative; overflow: hidden; isolation: isolate; padding: clamp(28px, 5vw, 64px) 0 clamp(64px, 8vw, 120px); background: linear-gradient(180deg, var(--ib-white) 0%, color-mix(in srgb, var(--sw) 9%, var(--ib-white)) 100%); border-bottom: 1px solid var(--border); }
.sw-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.sw-hero-id { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.sw-hero-id .eyebrow { margin: 0; }
.sw-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 10px; }
.sw-hero-tagline { font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 700; color: var(--sw); margin-bottom: 16px; }
.sw-hero .lead { margin-bottom: 18px; }
.sw-hero .sw-audience { margin-bottom: 26px; font-size: .98rem; }
.sw-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sw-hero-media { margin: 0; }
.sw-window { border-radius: 16px; background: var(--ib-white); border: 1px solid var(--border); box-shadow: 0 30px 70px color-mix(in srgb, var(--sw) 22%, rgba(0,0,0,.08)), 0 4px 14px rgba(0,0,0,.06); overflow: hidden; transform: perspective(1400px) rotateY(-4deg) rotateX(2deg); transition: transform .6s var(--ease); }
.sw-window:hover { transform: none; }
.sw-window-bar { display: flex; gap: 6px; padding: 10px 14px; background: var(--ib-grey-50); border-bottom: 1px solid var(--border); }
.sw-window-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--ib-grey-200); }
.sw-window-bar span:nth-child(1) { background: #ff5f57; }
.sw-window-bar span:nth-child(2) { background: var(--ib-yellow); }
.sw-window-bar span:nth-child(3) { background: var(--ib-green); }
.sw-window img { display: block; width: 100%; height: auto; }
.sw-hero-media figcaption { margin-top: 12px; font-size: .82rem; color: var(--muted); text-align: center; }

.sw-challenge { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.sw-challenge-text p { font-size: 1.08rem; line-height: 1.75; color: var(--text); }
.sw-challenge-text p:first-child { font-size: 1.2rem; color: var(--heading); font-weight: 500; }

.sw-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.sw-feature { padding: 26px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), border-color .3s; }
.sw-feature:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--sw) 45%, var(--border)); }
.sw-feature .icon-badge { background: color-mix(in srgb, var(--sw) 12%, var(--ib-white)); color: var(--sw); margin-bottom: 16px; width: 50px; height: 50px; }
.sw-feature h3 { font-size: 1.08rem; margin-bottom: 8px; }
.sw-feature p { font-size: .94rem; color: var(--muted); line-height: 1.6; }

.sw-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); align-items: start; }
.sw-benefits { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.sw-benefits li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.02rem; line-height: 1.55; }
.sw-benefits svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--ib-green); margin-top: 1px; }
.sw-audiences .sw-chips { margin-top: 20px; }
.sw-demo-box { margin-top: 32px; padding: 26px; border-radius: var(--radius); background: var(--ib-purple); color: var(--ib-white); position: relative; overflow: hidden; }
.sw-demo-box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--grad-brand); }
.sw-demo-box h3 { color: var(--ib-white); font-size: 1.2rem; margin-bottom: 8px; }
.sw-demo-box p { color: var(--on-dark); margin-bottom: 18px; }

@media (max-width: 1100px) {
	.sw-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.sw-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
	.sw-grid, .sw-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sw-hero-grid, .sw-challenge, .sw-split { grid-template-columns: 1fr; }
	.sw-window { transform: none; }
}
@media (max-width: 640px) {
	.sw-grid, .sw-features, .sw-steps, .sw-facts { grid-template-columns: 1fr; }
	.sw-hero-actions .btn, .sw-custom-actions .btn { flex: 1 1 100%; justify-content: center; }
}
.sw-logo-img { flex-shrink: 0; width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(20, 16, 50, .16)); }
.sw-logo-img--lg { width: 68px; height: 68px; }
.sw-window--bare { border: 0; border-radius: 18px; background: transparent; }
/* Logiciels : images animées */
.sw-hero-media { animation: sw-float 7s ease-in-out infinite; }
.sw-window img.sw-pan { transform-origin: 30% 20%; animation: sw-pan 16s ease-in-out infinite alternate; }
@keyframes sw-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes sw-pan { 0% { transform: scale(1); } 100% { transform: scale(1.12) translate(-3%, -2%); } }
.sw-card-media img.sw-pan { animation: sw-pan 18s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .sw-hero-media, .sw-window img.sw-pan, .sw-card-media img.sw-pan { animation: none; } }

/* ==========================================================================
   Effets sur les images (media-fx.js) — survol, parallaxe, reflet, apparition
   ========================================================================== */
.fx-media { --mx: 50%; --my: 50%; --px: 0; --py: 0; position: relative; overflow: hidden; }
.fx-media img { transition: transform 1s cubic-bezier(.2, .7, .2, 1), filter .6s ease; will-change: transform; }
.fx-media.is-fx img { transform: scale(1.09) translate(calc(var(--px) * -14px), calc(var(--py) * -14px)) !important; filter: saturate(1.15) contrast(1.04); transition: transform .35s ease-out, filter .6s ease; }
.fx-media > .fx-tint, .fx-media > .fx-spot, .fx-media > .fx-shine { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
/* voile aux couleurs de la charte */
.fx-tint { background: linear-gradient(135deg, rgba(3, 151, 67, .28), rgba(49, 38, 130, .32)); mix-blend-mode: multiply; opacity: 0; transition: opacity .5s ease; }
.fx-media.is-fx > .fx-tint { opacity: .55; }
/* halo qui suit le curseur */
.fx-spot { background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 238, 2, .35), rgba(255, 255, 255, .12) 22%, transparent 48%); mix-blend-mode: screen; opacity: 0; transition: opacity .4s ease; }
.fx-media.is-fx > .fx-spot { opacity: 1; }
/* reflet diagonal */
.fx-shine { background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 48%, rgba(255, 255, 255, .1) 54%, transparent 68%); transform: translateX(-130%); }
.fx-media.is-fx > .fx-shine { transform: translateX(130%); transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.fx-media.fx-in:not(.fx-instant) > .fx-shine { animation: fx-shine 1.3s .55s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes fx-shine { from { transform: translateX(-130%); } to { transform: translateX(130%); } }
/* apparition au défilement : dévoilement de bas en haut + dézoom */
.fx-media.fx-wait { clip-path: inset(100% 0 0 0); }
.fx-media.fx-wait img { transform: scale(1.25); }
.fx-media.fx-in { clip-path: inset(0 0 0 0); transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1); }
.fx-media.fx-in:not(.is-fx) img { transform: none; transition: transform 1.6s cubic-bezier(.2, .7, .2, 1); }
.fx-media.fx-instant { transition: none; }
/* inclinaison 3D des grandes photos */
.fx-tilt { transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s ease; }
.fx-tilt.is-fx { transform: perspective(1000px) rotateX(calc(var(--py) * -7deg)) rotateY(calc(var(--px) * 9deg)) translateY(-4px); box-shadow: 0 34px 60px -26px rgba(28, 21, 80, .45); transition: transform .15s ease-out, box-shadow .5s ease; }
/* liseré de la charte qui s'étire sous les photos */
.photo-frame.fx-media::after { transform-origin: left; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.photo-frame.fx-media.fx-wait::after { transform: scaleX(0); }
.photo-frame.fx-media.is-fx::after { height: 8px; }
/* le petit cadre du collage flotte */
.photo-collage .photo-frame--small { animation: fx-float 7s ease-in-out infinite; }
@keyframes fx-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
/* avatars des témoignages et logos */
.quote-author img { transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s; }
.quote-author:hover img { transform: scale(1.12) rotate(-4deg); box-shadow: 0 0 0 3px var(--ib-white), 0 0 0 5px var(--ib-green); }
.sw-logo-img { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.sw-card:hover .sw-logo-img { transform: rotate(-8deg) scale(1.1); }
@media (prefers-reduced-motion: reduce) {
  .photo-collage .photo-frame--small, .fx-media > .fx-shine { animation: none !important; }
}
.project-gallery-item { border-radius: var(--radius); border: 1px solid var(--border); }
.project-gallery-item img { display: block; width: 100%; height: auto; }
/* En-tête : conteneur un peu plus large que le contenu (logo + 9 liens + langue + bouton = ~1290 px) pour rester centré */
.site-header .header-inner { max-width: calc(1320px + var(--gutter) * 2); }

/* ==========================================================================
   Cartes animées (media-fx.js) — lueur, inclinaison 3D, icônes qui se dessinent
   ========================================================================== */
.js .fx-card { --cx: 50%; --cy: 50%; --tx: 0; --ty: 0; transition: opacity .7s var(--ease), transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease, border-color .4s ease, background-color .4s ease; }
.js .fx-card.is-hover { transform: perspective(900px) translateY(-6px) rotateX(calc(var(--ty) * -5deg)) rotateY(calc(var(--tx) * 6deg)); box-shadow: 0 26px 50px -24px rgba(28, 21, 80, .32), 0 2px 6px rgba(28, 21, 80, .05); border-color: var(--ib-purple-100); transition: opacity .7s var(--ease), transform .12s linear, box-shadow .4s ease, border-color .4s ease; }
.js .fx-card.fx-card--flat.is-hover { transform: translateY(-3px); }
/* lueur qui suit le curseur (vert / violet de la charte) */
.fx-card.is-hover { background-image: radial-gradient(420px circle at var(--cx) var(--cy), rgba(3, 151, 67, .075), rgba(49, 38, 130, .04) 35%, transparent 60%); }
.panel--quote.fx-card.is-hover, .sw-demo-box.fx-card.is-hover { background-image: radial-gradient(420px circle at var(--cx) var(--cy), rgba(255, 238, 2, .14), rgba(255, 255, 255, .05) 35%, transparent 60%); }
/* liseré tricolore en haut de toutes les cartes au survol */
.card.fx-card.is-hover::after { opacity: 1; }
.fx-card h3 { transition: color .3s ease; }
.fx-card.is-hover h3 { color: var(--ib-purple); }
.panel--quote.fx-card.is-hover h3, .sw-demo-box.fx-card.is-hover h3 { color: var(--ib-white); }

/* pastille d'icône : saut, inversion des couleurs, tracé qui se dessine */
.fx-card .icon-badge { transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), background-color .35s ease, color .35s ease, box-shadow .35s ease; }
.fx-card.is-hover .icon-badge { transform: translateY(-4px) rotate(-8deg) scale(1.08); background: var(--ib-purple); color: var(--ib-white); box-shadow: 0 12px 22px -10px rgba(49, 38, 130, .7); }
.fx-card.is-hover .icon-badge--green { background: var(--ib-green-700); box-shadow: 0 12px 22px -10px rgba(3, 151, 67, .7); }
.fx-card.is-hover .icon-badge svg :is(path, circle, rect, line, polyline, polygon, ellipse),
.fx-card.fx-seen .icon-badge svg :is(path, circle, rect, line, polyline, polygon, ellipse) { stroke-dasharray: 120; animation: fx-draw 1s cubic-bezier(.4, 0, .2, 1) both; }
.fx-card.is-hover .icon-badge svg :is(path, circle, rect, line, polyline, polygon, ellipse) { animation-name: fx-draw-hover; }
@keyframes fx-draw { from { stroke-dashoffset: 120; } to { stroke-dashoffset: 0; } }
@keyframes fx-draw-hover { from { stroke-dashoffset: 120; } to { stroke-dashoffset: 0; } }
/* point jaune : pulsation douce permanente, plus marquée au survol */
.fx-card .icon-badge::after { animation: fx-dot 2.8s ease-in-out infinite; }
.fx-card.is-hover .icon-badge::after { animation-duration: 1s; }
@keyframes fx-dot { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 238, 2, .7); } 50% { box-shadow: 0 0 0 6px rgba(255, 238, 2, 0); } }

/* numéros d'étapes et logos */
.fx-card .step-num, .fx-card .sw-step-num { transition: transform .6s cubic-bezier(.34, 1.56, .64, 1), opacity .3s; }
.fx-card.is-hover .step-num { transform: rotate(360deg) scale(1.1); }
.fx-card.is-hover .sw-step-num { transform: scale(1.35); opacity: .6; }
.fx-card .link-arrow svg { transition: transform .3s ease; }
.fx-card.is-hover .link-arrow svg { transform: translateX(5px); }
/* chiffres clés */
.sw-facts li.fx-card strong { display: inline-block; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.sw-facts li.fx-card.is-hover strong { transform: scale(1.18); color: var(--ib-green-700); }

@media (prefers-reduced-motion: reduce) {
  .js .fx-card, .js .fx-card.is-hover { transform: none !important; }
  .fx-card .icon-badge::after, .fx-card .icon-badge svg * { animation: none !important; }
}

/* ==========================================================================
   Navigation SPA (spa.js) : barre de progression et transition entre pages
   ========================================================================== */
.ib-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 2000; pointer-events: none; background: linear-gradient(90deg, var(--ib-green), var(--ib-yellow), var(--ib-purple)); transform-origin: left; transform: scaleX(0); opacity: 0; }
.ib-progress.is-active { opacity: 1; animation: ib-progress 8s cubic-bezier(.08, .7, .2, 1) forwards; box-shadow: 0 0 10px rgba(3, 151, 67, .45); }
.ib-progress.is-done { opacity: 0; transform: scaleX(1); transition: transform .2s ease, opacity .35s .15s ease; }
@keyframes ib-progress { 0% { transform: scaleX(0); } 20% { transform: scaleX(.45); } 60% { transform: scaleX(.8); } 100% { transform: scaleX(.94); } }
main#contenu:focus { outline: none; }
main#contenu.ib-enter { animation: ib-enter .38s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes ib-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ib-progress.is-active { animation: none; transform: scaleX(.7); } main#contenu.ib-enter { animation: none; } }

/* Bouton « retour en haut » (au-dessus de WhatsApp) */
.fab--top { width: 48px; height: 48px; background: var(--ib-white); color: var(--ib-purple); border: 0; opacity: 0; transform: translateY(14px) scale(.85); transition: opacity .25s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease, background-color .3s ease, color .3s ease; }
.fab--top.is-visible { opacity: 1; transform: none; }
.fab--top.is-visible:hover { transform: translateY(-3px); background: var(--ib-purple); color: var(--ib-white); }
.fab--top .fab-top-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.fab--top .fab-top-ring circle { fill: none; stroke: var(--ib-purple-100); stroke-width: 3; }
.fab--top .fab-top-ring .fab-top-progress { stroke: var(--ib-green); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .15s linear; }
.fab--top:hover .fab-top-ring .fab-top-progress { stroke: var(--ib-yellow); }
.fab--top .fab-top-arrow { position: relative; width: 22px; height: 22px; }
/* en bas de page : la flèche rebondit pour inviter à remonter */
.fab--top.is-bottom .fab-top-arrow { animation: fab-top-bounce 1.4s ease-in-out infinite; }
@keyframes fab-top-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.fab--top[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .fab--top, .fab--top .fab-top-arrow { animation: none !important; transition: none; } }

/* Bandeau « Pôle santé » (pages non médicales) */
.health-band { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(28px, 4vw, 56px); border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--ib-green-50) 0%, var(--ib-white) 55%, var(--ib-purple-50) 100%); border: 1px solid var(--border); }
.health-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--grad-brand); }
.health-band h2 { margin-bottom: 12px; }
.health-band .lead { margin-bottom: 18px; }
.health-band-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; }
.health-band-list li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: var(--radius-pill); background: var(--ib-white); border: 1px solid var(--border); font-size: .88rem; font-weight: 600; color: var(--ib-ink); }
.health-band-list svg { width: 17px; height: 17px; color: var(--ib-green-700); }
.health-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.health-band-side { display: grid; gap: 14px; }
.health-band-card { display: block; padding: 20px 22px; border-radius: var(--radius); background: var(--ib-white); border: 1px solid var(--border); box-shadow: var(--shadow-sm); color: inherit; }
.health-band-card .icon-badge { width: 46px; height: 46px; margin-bottom: 12px; }
.health-band-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.health-band-card p { margin: 0; font-size: .93rem; color: var(--muted); }
.health-band-card--link .link-arrow { margin-top: 10px; }
.health-band-card--link:hover { border-color: var(--ib-purple-100); }
@media (max-width: 900px) { .health-band { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .health-band-actions .btn { flex: 1 1 100%; justify-content: center; } }
.chip--health { gap: 6px; border-color: var(--ib-green-100); color: var(--ib-green-800); background: var(--ib-green-50); }
.chip--health svg { width: 16px; height: 16px; }
.chip--health:hover { border-color: var(--ib-green-700); color: var(--ib-green-800); }

/* Matériel médical : engagement du pôle santé */
.med-commit { padding-top: 0; }
.med-commit .container > * { max-width: 820px; }
.med-priorities { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 0; padding: 0; }
.med-priorities li { display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px; border-radius: var(--radius-pill); background: var(--ib-green-50); border: 1px solid var(--ib-green-100); color: var(--ib-green-800); font-weight: 700; }
.med-priorities svg { width: 19px; height: 19px; }
