/* =========================================================================
   ADN — Feuille de style principale (site public)
   Thème clair institutionnel (style KEBS) — AUCUN dégradé, aplats de couleur.
   Charte : bleu #1E78BE dominant, vert #3AAA35, rouge #E2231A, fond blanc.
   Police : Open Sans (corps) + Roboto (titres).
   ========================================================================= */

:root {
  --blue: #1E78BE;
  --blue-dark: #0E3A5F;
  --blue-700: #155a90;
  --green: #3AAA35;
  --green-dark: #2e8a2a;
  --red: #E2231A;

  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --surface: #ffffff;
  --text: #1f2b38;
  --text-soft: #51606f;
  --muted: #8a98a8;
  --border: #e4ebf2;
  --primary: var(--blue);
  --shadow-sm: 0 1px 3px rgba(14,58,95,.08);
  --shadow: 0 4px 18px rgba(14,58,95,.10);
  --shadow-lg: 0 14px 40px rgba(14,58,95,.16);
  --ring: rgba(30,120,190,.18);

  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --container: 1200px;
  --header-h: 72px;

  --font-body: 'Open Sans', system-ui, -apple-system, sans-serif;
  --font-head: 'Roboto', var(--font-body);
  --t: .2s ease;
}

[data-theme="dark"] {
  --bg: #0a1622;
  --bg-alt: #0e1d2c;
  --surface: #11212f;
  --text: #e8eef4;
  --text-soft: #aebccb;
  --muted: #7e8ea0;
  --border: #1d3346;
  --primary: #389ae8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
  --shadow: 0 4px 18px rgba(0,0,0,.4);
  --shadow-lg: 0 14px 40px rgba(0,0,0,.5);
  --ring: rgba(56,154,232,.28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* overflow-x:hidden sur html ET body : indispensable pour découper le tiroir
   hors-écran en RTL (un élément position:fixed n'est pas clippé par body seul). */
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  width: 100%;
  max-width: 100%;
}
h1,h2,h3,h4 { font-family: var(--font-head); line-height: 1.2; color: var(--blue-dark); font-weight: 700; }
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] h4 { color: var(--text); }
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 880px; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 16px; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 999; }
.text-gradient { color: var(--green); display: block; }   /* plus de dégradé : aplat vert */

/* ---------- Boutons (aplats) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .92rem;
  padding: 12px 22px; border-radius: var(--radius-sm); border: 2px solid transparent;
  cursor: pointer; transition: var(--t); white-space: nowrap; line-height: 1.2;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-outline { border-color: var(--border); color: var(--blue-dark); background: var(--surface); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { color: var(--primary); }
.btn-light { background: #fff; color: var(--blue-dark); border-color: #fff; }
.btn-light:hover { background: var(--bg-alt); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost-light:hover { background: rgba(255,255,255,.14); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-sm { padding: 9px 16px; font-size: .82rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Barre utilitaire (topbar) ---------- */
.topbar { background: var(--blue-dark); color: #cfe0ee; font-size: .82rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.topbar-welcome { font-weight: 500; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-link { display: inline-flex; align-items: center; gap: 6px; color: #cfe0ee; }
.topbar-link:hover { color: #fff; }
.topbar-link .icon { width: 1em; height: 1em; color: var(--green); }
.lang-flags { display: flex; gap: 4px; }
.lang-flags a { display: inline-flex; align-items: center; gap: 5px; color: #cfe0ee; padding: 3px 8px; border-radius: 4px; font-weight: 600; }
.lang-flags a.is-active { background: rgba(255,255,255,.16); color: #fff; }
.flag { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--surface); border-bottom: 1px solid var(--border); transition: box-shadow var(--t); }
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand-logo { height: 48px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.main-nav > a, .has-dropdown > a {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--blue-dark); font-family: var(--font-head); font-weight: 500; font-size: .92rem;
  padding: 10px 13px; border-radius: 6px; position: relative; transition: var(--t);
}
[data-theme="dark"] .main-nav > a, [data-theme="dark"] .has-dropdown > a { color: var(--text); }
.main-nav > a:hover, .has-dropdown > a:hover { color: var(--blue); background: var(--bg-alt); }
.main-nav > a.is-active, .has-dropdown > a.is-active { color: var(--blue); }
.main-nav > a.is-active::after, .has-dropdown > a.is-active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 0; height: 3px; background: var(--green); border-radius: 3px;
}
.caret { width: .9em; height: .9em; transition: transform var(--t); }

/* Menus déroulants */
.has-dropdown { position: relative; }
.dd-toggle { display: none; }
.dropdown {
  position: absolute; top: calc(100% + 6px); inset-inline-start: 0; min-width: 240px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: var(--t); z-index: 50;
}
.dropdown-wide { min-width: 360px; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dropdown:hover .caret { transform: rotate(180deg); }
.dropdown a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 7px; color: var(--text); font-size: .9rem; transition: var(--t); }
.dropdown a:hover { background: var(--bg-alt); color: var(--blue); }
.dropdown a .icon { color: var(--blue); width: 1.3em; height: 1.3em; flex-shrink: 0; }
.dropdown a span { display: flex; flex-direction: column; }
.dropdown a span strong { font-weight: 600; font-size: .9rem; }
.dropdown a span small { color: var(--muted); font-size: .78rem; }
.dropdown-all { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 12px !important; font-weight: 600; color: var(--blue) !important; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle, .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; transition: var(--t); }
.theme-toggle:hover, .nav-toggle:hover { border-color: var(--blue); color: var(--blue); }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.nav-toggle { display: none; }
.nav-mobile-head, .nav-mobile-lang { display: none; }

/* z-index 99 : sous le header (100) afin que le tiroir, qui vit DANS le header,
   reste cliquable au-dessus du voile. Sinon l'overlay grise et bloque le menu. */
.nav-overlay { position: fixed; inset: 0; background: rgba(14,58,95,.5); z-index: 99; opacity: 0; transition: opacity var(--t); }
.nav-overlay.show { opacity: 1; }

/* ---------- Héro — Slider ---------- */
.hero-slider { position: relative; overflow: hidden; background: var(--blue-dark); }
.hero-slider .slides { position: relative; height: 540px; }
.hero-slider .slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  display: flex; align-items: center; opacity: 0; visibility: hidden;
  transition: opacity .7s ease; z-index: 1;
}
.hero-slider .slide.active { opacity: 1; visibility: visible; z-index: 2; }
.slide-inner { color: #fff; max-width: 680px; }
.slide-inner .hero-badge { background: var(--green); margin-bottom: 18px; animation: slideUp .6s .1s both; }
.slide-inner .hero-title { color: #fff; font-size: clamp(2rem,4.5vw,3.2rem); font-weight: 900; line-height: 1.15; margin-bottom: 16px; animation: slideUp .6s .2s both; }
.slide-inner .hero-title em { color: #6ee06a; font-style: normal; }
.slide-inner .hero-lead { color: rgba(255,255,255,.92); font-size: 1.14rem; max-width: 560px; margin-bottom: 26px; animation: slideUp .6s .3s both; }
.slide-inner .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; animation: slideUp .6s .4s both; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--t); }
.slider-arrow:hover { background: rgba(255,255,255,.32); }
.slider-arrow.prev { inset-inline-start: 22px; } .slider-arrow.next { inset-inline-end: 22px; }
.slider-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 8px; }
.slider-dots button { width: 28px; height: 5px; border-radius: 3px; border: none; background: rgba(255,255,255,.4); cursor: pointer; transition: var(--t); padding: 0; }
.slider-dots button.active { background: var(--green); width: 40px; }
[dir="rtl"] .slider-arrow.prev .icon, [dir="rtl"] .slider-arrow.next .icon { transform: scaleX(-1); }

/* ---------- Héro (ancien, conservé pour pages internes éventuelles) ---------- */
.hero { position: relative; padding: 70px 0 84px; overflow: hidden; background: var(--bg-alt); }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 46px 46px; opacity: .4; mask-image: radial-gradient(circle at 70% 30%, #000, transparent 70%); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; color: #fff; background: var(--green); padding: 7px 15px; border-radius: 50px; margin-bottom: 22px; }
.hero-badge .icon { color: #fff; }
.hero-title { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 900; letter-spacing: -.01em; margin-bottom: 18px; color: var(--blue); }
.hero-lead { font-size: 1.12rem; color: var(--text-soft); max-width: 540px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; font-weight: 600; color: var(--text-soft); }
.hero-trust .icon { color: var(--green); width: 1.1em; height: 1.1em; }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 380px; }
.hero-logo-ring { width: 330px; height: 330px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); }
.hero-logo-ring img { width: 76%; }
.hero-card-float { position: absolute; display: flex; align-items: center; gap: 11px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow); z-index: 2; animation: floaty 5s ease-in-out infinite; }
.hero-card-float .icon { width: 28px; height: 28px; padding: 6px; border-radius: 8px; background: var(--bg-alt); }
.hero-card-float strong { display: block; font-size: .88rem; color: var(--blue-dark); }
.hero-card-float small { color: var(--muted); font-size: .76rem; }
.hero-card-float.card-1 { top: 18px; inset-inline-start: -14px; }
.hero-card-float.card-1 .icon { color: var(--blue); }
.hero-card-float.card-2 { bottom: 110px; inset-inline-end: -16px; animation-delay: .6s; }
.hero-card-float.card-2 .icon { color: var(--green); }
.hero-card-float.card-3 { top: 92px; inset-inline-end: -8px; animation-delay: 1.1s; }
.hero-card-float.card-3 .icon { color: var(--red); }
.hero-card-float.card-4 { bottom: 18px; inset-inline-start: 6px; animation-delay: 1.6s; }
.hero-card-float.card-4 .icon { color: var(--blue-dark); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Stats ---------- */
.stats-band { padding: 0 0 10px; margin-top: -32px; position: relative; z-index: 3; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; background: var(--blue-dark); border-radius: var(--radius-lg); padding: 30px 20px; box-shadow: var(--shadow-lg); }
.stat-item { text-align: center; padding: 4px 16px; position: relative; }
.stat-item:not(:last-child)::after { content:""; position: absolute; inset-inline-end: 0; top: 18%; height: 64%; width: 1px; background: rgba(255,255,255,.18); }
.stat-icon { display: inline-flex; color: #79c3ff; margin-bottom: 6px; }
.stat-icon .icon { width: 26px; height: 26px; }
.stat-value { font-family: var(--font-head); font-size: 2.3rem; font-weight: 900; color: #fff; }
.stat-suffix { font-family: var(--font-head); font-size: 1.5rem; font-weight: 900; color: var(--green); }
.stat-label { display: block; color: #b9cee0; font-size: .86rem; margin-top: 2px; }

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-head); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--green); margin-bottom: 12px; }
.eyebrow .icon { width: 1.1em; height: 1.1em; }
.eyebrow-light { color: #6ee06a; }

/* L'ADN en bref */
.intro-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.intro-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.intro-media img { width: 100%; height: 100%; object-fit: cover; }
.intro-badge { position: absolute; bottom: 16px; inset-inline-start: 16px; display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 10px; padding: 12px 16px; box-shadow: var(--shadow); }
.intro-badge .icon { color: var(--green); width: 26px; height: 26px; }
.intro-badge strong { display: block; font-size: .9rem; color: var(--blue-dark); }
.intro-badge span { font-size: .76rem; color: var(--muted); }
.intro-text .section-title { padding-bottom: 0; }
.intro-text .section-title::after { display: none; }
.intro-text p { color: var(--text-soft); margin: 14px 0; }
.intro-list { list-style: none; margin: 18px 0 22px; display: flex; flex-direction: column; gap: 10px; }
.intro-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-soft); }
.intro-list .icon { color: var(--green); flex-shrink: 0; margin-top: 3px; }
.intro-list strong { color: var(--blue-dark); }
[data-theme="dark"] .intro-list strong, [data-theme="dark"] .intro-badge strong { color: var(--text); }

/* Secteurs */
.sectors-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.sector-card { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; transition: var(--t); }
.sector-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue); }
.sector-icon { display: inline-flex; padding: 11px; border-radius: 10px; background: var(--bg-alt); color: var(--blue); flex-shrink: 0; }
.sector-card h3 { font-size: 1.02rem; margin-bottom: 4px; }
.sector-card p { color: var(--text-soft); font-size: .85rem; }

/* Pourquoi se conformer */
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.why-card { background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--blue); border-radius: var(--radius); padding: 30px 26px; }
.why-card-accent { border-top-color: var(--green); }
.why-icon { display: inline-flex; padding: 14px; border-radius: 12px; background: var(--bg-alt); color: var(--blue); margin-bottom: 14px; }
.why-card-accent .why-icon { color: var(--green); }
.why-card h3 { font-size: 1.2rem; margin-bottom: 14px; }
.why-card ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.why-card li { display: flex; gap: 9px; align-items: flex-start; color: var(--text-soft); font-size: .92rem; }
.why-card .icon { color: var(--green); flex-shrink: 0; margin-top: 3px; width: 1.1em; height: 1.1em; }

/* FAQ home */
.faq-home-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 44px; align-items: start; }
.faq-home-intro .section-title { padding-bottom: 0; }
.faq-home-intro .section-title::after { display: none; }
.faq-home-intro p { color: var(--text-soft); margin: 14px 0 22px; }
.faq-home-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Bandeau DRIVE */
.drive-band { background: var(--blue-dark); color: #fff; padding: 52px 0; }
.drive-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.drive-text { max-width: 680px; }
.drive-text h2 { color: #fff; font-size: clamp(1.4rem,2.4vw,1.9rem); margin-bottom: 10px; }
.drive-text p { color: rgba(255,255,255,.85); }

/* ---------- (ancien) Sections ---------- */
.section--legacy { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.section-head-row { display: flex; justify-content: space-between; align-items: center; text-align: start; max-width: none; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; position: relative; padding-bottom: 16px; }
.section-head .section-title::after { content:""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 64px; height: 4px; background: var(--green); border-radius: 4px; }
.section-head-row .section-title::after { left: 0; transform: none; }
.section-sub { color: var(--text-soft); font-size: 1.05rem; margin-top: 14px; }
.section-cta { text-align: center; margin-top: 42px; }

/* ---------- Cibles ---------- */
.audience-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.audience-card { background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--blue); border-radius: var(--radius); padding: 34px 28px; transition: var(--t); }
.audience-card.audience-card-accent { border-top-color: var(--green); }
.audience-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.audience-icon { display: inline-flex; padding: 15px; border-radius: 10px; background: var(--bg-alt); color: var(--blue); margin-bottom: 16px; }
.audience-icon .icon { width: 28px; height: 28px; }
.audience-card-accent .audience-icon { color: var(--green); }
.audience-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.audience-card p { color: var(--text-soft); margin-bottom: 14px; }
.audience-link { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 700; font-size: .9rem; font-family: var(--font-head); }
.audience-link .icon { transition: transform var(--t); }
.audience-card:hover .audience-link .icon { transform: translateX(4px); }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.services-grid-lg { grid-template-columns: repeat(2,1fr); gap: 26px; }
.service-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; transition: var(--t); display: flex; flex-direction: column; gap: 10px; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--blue); }
.service-icon { display: inline-flex; padding: 13px; border-radius: 10px; background: var(--bg-alt); color: var(--blue); width: fit-content; }
.service-icon .icon { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.12rem; }
.service-card p { color: var(--text-soft); font-size: .92rem; flex-grow: 1; }
.service-benefit { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 700; color: var(--green); }
.service-link { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 700; font-size: .88rem; font-family: var(--font-head); }

/* ---------- Normes ---------- */
.standards-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.cat-title { font-size: 1.3rem; margin: 10px 0 22px; padding-inline-start: 14px; border-inline-start: 4px solid var(--green); }
.standard-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: var(--t); display: flex; flex-direction: column; gap: 12px; }
.standard-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.standard-card-top { display: flex; align-items: center; justify-content: space-between; }
.standard-icon { display: inline-flex; padding: 11px; border-radius: 9px; background: var(--bg-alt); color: var(--blue); }
.standard-code { font-family: var(--font-head); font-weight: 700; font-size: .76rem; color: #fff; background: var(--blue); padding: 5px 11px; border-radius: 4px; }
.standard-card h3 { font-size: 1.1rem; }
.standard-forwho { font-size: .87rem; color: var(--text-soft); flex-grow: 1; }
.standard-forwho strong { color: var(--text); }
.standard-link { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 700; font-size: .87rem; font-family: var(--font-head); }

/* ---------- Métrologie ---------- */
.metro-band { background: var(--blue-dark); color: #fff; padding: 66px 0; }
.metro-band-inner { padding: 56px 0; }
.metro-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.metro-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .88rem; color: var(--green); margin-bottom: 14px; }
.metro-q { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 900; line-height: 1.35; margin-bottom: 16px; color: #fff; }
.metro-inner p { color: rgba(255,255,255,.85); margin-bottom: 22px; }
.metro-instruments { display: flex; flex-wrap: wrap; gap: 12px; }
.metro-chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: 10px 16px; border-radius: 8px; font-size: .9rem; font-weight: 500; }
.metro-chip .icon { color: #9fe09b; }
.metro-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.metro-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: var(--t); }
.metro-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.metro-card-icon { display: inline-flex; padding: 12px; border-radius: 9px; background: var(--bg-alt); color: var(--blue); margin-bottom: 12px; }
.metro-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.metro-card p { color: var(--text-soft); font-size: .9rem; margin-bottom: 10px; }
.metro-oblig { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--green); font-weight: 700; }

/* ---------- Méthode ---------- */
.method-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.method-step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 24px; text-align: center; transition: var(--t); }
.method-step:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.method-num { position: absolute; top: 12px; inset-inline-end: 16px; font-family: var(--font-head); font-weight: 900; font-size: 2.2rem; color: var(--bg-alt); }
.method-icon { display: inline-flex; padding: 16px; border-radius: 50%; background: var(--blue); color: #fff; margin-bottom: 16px; }
.method-icon .icon { width: 26px; height: 26px; }
.method-step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.method-step p { color: var(--text-soft); font-size: .9rem; }

/* ---------- Actualités ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.news-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--t); display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-thumb { aspect-ratio: 16/9; background: var(--bg-alt); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-thumb img { transform: scale(1.05); }
.news-thumb-fallback { color: var(--muted); } .news-thumb-fallback .icon { width: 44px; height: 44px; }
.news-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.news-body time { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); }
.news-body time .icon { width: 1em; height: 1em; }
.news-body h3 { font-size: 1.1rem; }
.news-body p { color: var(--text-soft); font-size: .9rem; flex-grow: 1; }
.news-link { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 700; font-size: .87rem; font-family: var(--font-head); }

/* ---------- Vidéos ---------- */
.videos-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.video-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--t); }
.video-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.video-thumb { position: relative; aspect-ratio: 16/9; background: var(--blue-dark); overflow: hidden; display: block; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.video-play span { width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); transition: var(--t); }
.video-play span .icon { color: var(--red); width: 26px; height: 26px; margin-inline-start: 3px; }
.video-card:hover .video-play span { transform: scale(1.1); background: #fff; }
.video-cat { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--green); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 4px; }
.video-info { padding: 18px 20px; }
.video-info h3 { font-size: 1.05rem; margin-bottom: 6px; }
.video-info p { color: var(--text-soft); font-size: .88rem; }

/* Modal vidéo */
.video-modal { position: fixed; inset: 0; background: rgba(8,16,25,.86); z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; }
.video-modal.open { display: flex; }
.video-modal-inner { width: 100%; max-width: 880px; position: relative; }
.video-modal-inner iframe { width: 100%; aspect-ratio: 16/9; border: none; border-radius: var(--radius); background: #000; }
.video-modal-close { position: absolute; top: -44px; inset-inline-end: 0; background: none; border: none; color: #fff; cursor: pointer; }
.video-modal-close .icon { width: 30px; height: 30px; }

/* ---------- Témoignages ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; position: relative; }
.testimonial-quote { color: var(--blue); opacity: .15; position: absolute; top: 18px; inset-inline-end: 20px; }
.testimonial-quote .icon { width: 40px; height: 40px; }
.testimonial-card blockquote { font-size: 1rem; color: var(--text); margin-bottom: 18px; position: relative; z-index: 1; }
.testimonial-stars { display: flex; gap: 2px; color: #f5a623; margin-bottom: 8px; }
.testimonial-stars .icon { width: 1em; height: 1em; fill: #f5a623; }
.testimonial-card figcaption strong { display: block; color: var(--blue-dark); }
.testimonial-card figcaption small { color: var(--muted); }

/* ---------- Partenaires ---------- */
.partners-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.partner-chip { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 16px 26px; font-family: var(--font-head); font-weight: 600; color: var(--text-soft); transition: var(--t); }
.partner-chip:hover { border-color: var(--blue); color: var(--blue); }
.partner-chip img { height: 40px; }

/* ---------- Valeurs / équipe ---------- */
.values-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.value-card { text-align: center; padding: 28px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: var(--t); }
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.value-icon { display: inline-flex; padding: 15px; border-radius: 50%; background: var(--bg-alt); color: var(--green); margin-bottom: 14px; }
.value-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.value-card p { color: var(--text-soft); font-size: .9rem; }
.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.team-card { text-align: center; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.team-avatar { width: 90px; height: 90px; margin: 0 auto 14px; border-radius: 50%; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; color: var(--muted); overflow: hidden; }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1.04rem; }
.team-card p { color: var(--text-soft); font-size: .88rem; }

/* ---------- Bande CTA ---------- */
.cta-band { padding: 0 0 76px; }
.cta-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; background: var(--blue); border-radius: var(--radius-lg); padding: 48px; color: #fff; }
.cta-text h2 { color: #fff; font-size: 1.8rem; margin-bottom: 10px; }
.cta-text p { color: rgba(255,255,255,.9); margin-bottom: 22px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.newsletter-box { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); padding: 26px; }
.newsletter-box h3 { color: #fff; margin-bottom: 6px; }
.newsletter-box p { color: rgba(255,255,255,.85); font-size: .9rem; margin-bottom: 16px; }
.newsletter-field { display: flex; gap: 8px; }
.newsletter-field input { flex-grow: 1; padding: 12px 16px; border-radius: 6px; border: none; font-family: var(--font-body); }
.newsletter-field .btn { padding: 12px 18px; }

/* ---------- Page hero (intérieures) ---------- */
.page-hero { position: relative; padding: 54px 0 44px; background: var(--blue-dark); color: #fff; overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; opacity: .25; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(circle at 80% 20%, #000, transparent 70%); }
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { font-size: .84rem; color: #b9cee0; margin-bottom: 12px; }
.breadcrumb a { color: #cfe0ee; }
.breadcrumb span { margin: 0 6px; }
.page-hero-title { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 900; color: #fff; }
.page-hero-sub { color: #cfe0ee; font-size: 1.05rem; margin-top: 8px; max-width: 720px; }

/* ---------- Contenu ---------- */
.prose { color: var(--text-soft); font-size: 1.04rem; }
.prose p { margin-bottom: 16px; }
.prose h2,.prose h3 { color: var(--blue-dark); margin: 26px 0 12px; }
[data-theme="dark"] .prose h2, [data-theme="dark"] .prose h3 { color: var(--text); }
.prose ul { margin: 0 0 16px; padding-inline-start: 22px; }
.prose li { margin-bottom: 8px; }
.detail-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow-sm); }
.detail-icon { display: inline-flex; padding: 16px; border-radius: 12px; background: var(--bg-alt); color: var(--blue); margin-bottom: 18px; }
.detail-benefit { margin-top: 20px; padding: 16px 20px; background: rgba(58,170,53,.1); border-inline-start: 4px solid var(--green); border-radius: 8px; color: var(--text); }
.detail-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.qa-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin-bottom: 26px; }
.qa-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.qa-block-accent { background: var(--bg-alt); border-color: var(--green); }
.qa-icon { display: inline-flex; padding: 11px; border-radius: 9px; background: var(--bg-alt); color: var(--blue); margin-bottom: 12px; }
.qa-block-accent .qa-icon { color: var(--green); background: #fff; }
.qa-block h3 { font-size: 1.08rem; margin-bottom: 8px; }
.qa-block p { color: var(--text-soft); font-size: .94rem; }
.standard-meta { display: flex; gap: 26px; flex-wrap: wrap; padding: 20px 24px; background: var(--bg-alt); border-radius: var(--radius); margin-bottom: 22px; }
.standard-meta span { display: inline-flex; align-items: center; gap: 8px; color: var(--text-soft); }
.standard-meta .icon { color: var(--blue); }

/* ---------- Formulaires ---------- */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.form-card h2 { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card label, .form-row label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 14px; color: var(--text); }
.form-card input, .form-card select, .form-card textarea { width: 100%; margin-top: 6px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: .95rem; transition: var(--t); }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--ring); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; margin: 18px 0; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-ic { display: inline-flex; padding: 11px; border-radius: 9px; background: var(--bg-alt); color: var(--blue); }
.contact-list strong { display: block; font-size: .9rem; }
.contact-list p { color: var(--text-soft); }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a { display: inline-flex; padding: 10px; border-radius: 8px; background: var(--bg-alt); color: var(--text-soft); transition: var(--t); }
.social-row a:hover { background: var(--blue); color: #fff; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 20px 24px; font-family: var(--font-head); font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 14px; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { transition: transform var(--t); color: var(--blue); }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-answer { padding: 0 24px 20px; color: var(--text-soft); }

/* ---------- Événements ---------- */
.events-list { display: flex; flex-direction: column; gap: 18px; }
.event-card { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; transition: var(--t); }
.event-card:hover { box-shadow: var(--shadow-lg); }
.event-date { text-align: center; background: var(--blue); color: #fff; border-radius: 8px; padding: 14px 18px; min-width: 78px; }
.event-day { display: block; font-family: var(--font-head); font-size: 1.8rem; font-weight: 900; line-height: 1; }
.event-month { font-size: .8rem; text-transform: uppercase; }
.event-theme { display: inline-block; font-size: .74rem; font-weight: 700; color: #fff; background: var(--green); padding: 4px 10px; border-radius: 4px; margin-bottom: 6px; }
.event-body h3 { font-size: 1.14rem; margin-bottom: 6px; }
.event-body p { color: var(--text-soft); font-size: .92rem; margin-bottom: 8px; }
.event-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.event-meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-register { display: flex; flex-direction: column; gap: 8px; min-width: 200px; }
.event-register input { padding: 9px 12px; border: 1.5px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text); font-family: var(--font-body); }

/* ---------- Ressources ---------- */
.resources-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.resource-card { display: flex; align-items: center; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; transition: var(--t); }
.resource-card:hover { box-shadow: var(--shadow-lg); }
.resource-icon { display: inline-flex; padding: 14px; border-radius: 10px; background: var(--bg-alt); color: var(--red); }
.resource-info { flex-grow: 1; }
.resource-cat { font-size: .74rem; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.resource-info h3 { font-size: 1.04rem; margin: 2px 0 4px; }
.resource-info p { color: var(--text-soft); font-size: .88rem; }

.post-cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 28px; }
.empty-state { text-align: center; color: var(--muted); padding: 60px 0; }

/* Détail service (image + texte) */
.service-detail { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.service-detail-media { border-radius: var(--radius-lg); overflow: hidden; position: sticky; top: 90px; background: var(--bg-alt); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; }
.service-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.service-detail-icon { color: var(--blue); } .service-detail-icon .icon { width: 64px; height: 64px; }
.service-detail-body .detail-icon { display: inline-flex; padding: 14px; border-radius: 12px; background: var(--bg-alt); color: var(--blue); margin-bottom: 16px; }

/* Galerie photos */
.gallery-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.gallery-item { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; cursor: pointer; position: relative; border: none; padding: 0; background: var(--bg-alt); display: block; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: var(--blue-dark); opacity: 0; transition: var(--t); }
.gallery-item:hover::after { opacity: .3; }
.gallery-zoom { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; color: #fff; opacity: 0; transition: var(--t); }
.gallery-zoom .icon { width: 30px; height: 30px; }
.gallery-item:hover .gallery-zoom { opacity: 1; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(8,16,25,.92); z-index: 300; display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox-figure { max-width: 900px; max-height: 86vh; margin: 0; text-align: center; }
.lightbox-figure img { max-width: 100%; max-height: 78vh; border-radius: var(--radius); object-fit: contain; }
.lightbox-figure figcaption { color: #fff; margin-top: 14px; font-size: .95rem; }
.lightbox-close { position: absolute; top: 20px; inset-inline-end: 24px; background: rgba(255,255,255,.14); border: none; color: #fff; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox-close:hover { background: rgba(255,255,255,.28); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.14); border: none; color: #fff; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox-nav:hover { background: rgba(255,255,255,.28); }
.lightbox-nav.prev { inset-inline-start: 24px; } .lightbox-nav.next { inset-inline-end: 24px; }
[dir="rtl"] .lightbox-nav .icon { transform: scaleX(-1); }

/* Bandeau image + texte (sections illustrées) */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.feature-split.reverse .feature-media { order: 2; }
.feature-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/11; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-text h2 { font-size: clamp(1.5rem,2.6vw,2rem); margin-bottom: 14px; }
.feature-text p { color: var(--text-soft); margin-bottom: 14px; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list .icon { color: var(--green); flex-shrink: 0; margin-top: 3px; }
.feature-list strong { color: var(--blue-dark); }
[data-theme="dark"] .feature-list strong { color: var(--text); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--blue-dark); color: #cfe0ee; margin-top: 0; }
[data-theme="dark"] .site-footer { background: #081019; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding: 58px 24px 40px; }
.footer-logo { height: 50px; background: #fff; padding: 8px 12px; border-radius: 8px; margin-bottom: 16px; width: fit-content; }
.footer-about p { color: #9fb6cb; font-size: .9rem; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #9fb6cb; font-size: .9rem; transition: var(--t); }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; color: #9fb6cb; font-size: .9rem; margin-bottom: 10px; }
.footer-contact .icon { color: var(--green); margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom .container { display: flex; justify-content: space-between; padding: 18px 24px; font-size: .85rem; color: #88a0b6; }
.footer-drive { font-weight: 600; }

/* ---------- Scroll-top ---------- */
.scroll-top { position: fixed; bottom: 26px; inset-inline-start: 26px; width: 46px; height: 46px; border-radius: 50%; background: var(--blue); color: #fff; border: none; cursor: pointer; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(12px) rotate(-90deg); transition: var(--t); z-index: 90; display: flex; align-items: center; justify-content: center; }
.scroll-top.show { opacity: 1; pointer-events: auto; transform: translateY(0) rotate(-90deg); }

/* ---------- Flash ---------- */
.flash-stack { position: fixed; top: 90px; inset-inline-end: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.flash { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 8px; box-shadow: var(--shadow); font-size: .92rem; background: var(--surface); border: 1px solid var(--border); }
.flash-success { border-inline-start: 4px solid var(--green); } .flash-success .icon { color: var(--green); }
.flash-error { border-inline-start: 4px solid var(--red); } .flash-error .icon { color: var(--red); }

/* ---------- Chat widget ---------- */
.chat-widget { position: fixed; bottom: 26px; inset-inline-end: 26px; z-index: 120; }
.chat-launcher { display: inline-flex; align-items: center; gap: 10px; background: var(--blue); color: #fff; border: none; border-radius: 50px; padding: 14px 22px; cursor: pointer; box-shadow: var(--shadow-lg); font-family: var(--font-head); font-weight: 700; transition: var(--t); }
.chat-launcher:hover { background: var(--blue-dark); }
.chat-launcher .icon { width: 22px; height: 22px; }
.chat-widget.open .chat-launcher { display: none; }
.chat-panel { position: absolute; bottom: 0; inset-inline-end: 0; width: 370px; max-width: calc(100vw - 36px); height: 520px; max-height: calc(100vh - 100px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; }
.chat-panel[hidden] { display: none; }   /* corrige : sans ça, [hidden] est écrasé par display:flex et le panneau reste ouvert */
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; background: var(--blue-dark); color: #fff; }
.chat-head-info { display: flex; align-items: center; gap: 12px; }
.chat-head-logo { width: 38px; height: 38px; border-radius: 8px; background: #fff; padding: 4px; }
.chat-head strong { display: block; font-size: .98rem; }
.chat-head small { color: rgba(255,255,255,.8); font-size: .78rem; }
.chat-close { background: rgba(255,255,255,.15); border: none; color: #fff; width: 32px; height: 32px; border-radius: 7px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.chat-close:hover { background: rgba(255,255,255,.28); }
.chat-close .icon { pointer-events: none; }
.chat-body { flex-grow: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-alt); }
.chat-msg { max-width: 82%; padding: 11px 15px; border-radius: 12px; font-size: .92rem; line-height: 1.5; }
.chat-msg-visitor { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 3px; }
.chat-msg-bot, .chat-msg-admin { align-self: flex-start; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 3px; }
.chat-msg-admin { border-inline-start: 3px solid var(--green); }
.chat-typing { display: flex; gap: 4px; align-items: center; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; }
.chat-typing span:nth-child(2) { animation-delay: .2s; } .chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%,60%,100% { opacity: .3; } 30% { opacity: 1; } }
.chat-form { display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--border); background: var(--surface); }
.chat-form input { flex-grow: 1; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 50px; background: var(--bg); color: var(--text); font-family: var(--font-body); }
.chat-form input:focus { outline: none; border-color: var(--blue); }
.chat-form button { background: var(--blue); color: #fff; border: none; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-form button:hover { background: var(--blue-dark); }

/* ---------- Erreurs ---------- */
.error-page { padding: 110px 0; }
.error-code { font-size: 6rem; font-weight: 900; color: var(--blue); font-family: var(--font-head); }
.error-msg { font-size: 1.2rem; color: var(--text-soft); margin-bottom: 24px; }

/* ---------- Animations scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-card-float { animation: none; }
  * { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 300px; }
  .hero-logo-ring { width: 250px; height: 250px; }
  .stats-grid, .services-grid, .standards-grid, .metro-grid, .method-grid, .values-grid, .team-grid, .videos-grid { grid-template-columns: repeat(2,1fr); }
  .news-grid, .testimonials-grid { grid-template-columns: repeat(2,1fr); }
  .metro-inner, .cta-inner, .contact-grid, .footer-grid, .service-detail, .feature-split, .intro-grid, .faq-home-grid { grid-template-columns: 1fr; }
  .sectors-grid { grid-template-columns: repeat(2,1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 30px; }
  .stat-item:nth-child(2)::after { display: none; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .service-detail-media { position: static; }
  .feature-split.reverse .feature-media { order: 0; }
}
@media (max-width: 768px) {
  /* Barre utilitaire allégée : on masque tél/email/accueil (présents ailleurs),
     on ne garde que les drapeaux, bien centrés et lisibles. */
  .topbar-welcome, .topbar-link { display: none; }
  .topbar { font-size: .8rem; }
  .topbar-inner { justify-content: center; height: 34px; }
  .topbar-right { gap: 8px; width: 100%; justify-content: center; }
  .lang-flags { gap: 6px; }
  .lang-flags a { padding: 4px 12px; }

  /* En-tête : logo à gauche, actions (thème + menu) collées à droite */
  .header-inner { gap: 10px; height: 64px; }
  .brand-logo { height: 40px; }
  :root { --header-h: 64px; }
  .header-actions { margin-inline-start: auto; }   /* le drawer mobile sort du flux : on repousse les actions à droite */

  /* Drawer mobile à GAUCHE (FR) / à DROITE (AR).
     visibility:hidden quand fermé -> n'occupe aucune zone scrollable/cliquable,
     ce qui évite le débordement horizontal (surtout en RTL). */
  .main-nav {
    position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: 86%; max-width: 330px;
    background: var(--surface); flex-direction: column; align-items: stretch; gap: 0;
    padding: 0; box-shadow: var(--shadow-lg); transform: translateX(-105%);
    transition: transform .28s ease, visibility .28s; z-index: 110; overflow-y: auto;
    visibility: hidden;
  }
  [dir="rtl"] .main-nav { transform: translateX(105%); }
  .main-nav.open { transform: translateX(0); visibility: visible; }
  .nav-mobile-head { display: flex !important; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border); }
  .nav-mobile-logo { height: 40px; }
  .nav-close { background: var(--bg-alt); border: none; width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text); cursor: pointer; }
  .main-nav > a, .has-dropdown > a { padding: 15px 20px; border-radius: 0; border-bottom: 1px solid var(--border); justify-content: flex-start; font-size: 1rem; font-weight: 600; color: var(--blue-dark); }
  .main-nav > a:hover, .has-dropdown > a:hover { background: var(--bg-alt); }
  .main-nav > a.is-active, .has-dropdown > a.is-active { background: var(--bg-alt); border-inline-start: 3px solid var(--green); padding-inline-start: 17px; }
  .main-nav > a.is-active::after, .has-dropdown > a.is-active::after { display: none; }
  .has-dropdown { border-bottom: 1px solid var(--border); position: relative; }
  .has-dropdown > a { border-bottom: none; }
  .caret { display: none; }
  /* Flèche déroulante : pleine hauteur du lien, bien alignée à droite */
  .dd-toggle { display: flex; align-items: center; justify-content: center; position: absolute; top: 0; inset-inline-end: 0; width: 54px; height: 52px; background: transparent; border: none; border-inline-start: 1px solid var(--border); color: var(--muted); cursor: pointer; }
  .dd-toggle .icon { transition: transform var(--t); width: 1.1em; height: 1.1em; }
  .has-dropdown.open > a { color: var(--blue); }
  .has-dropdown.open .dd-toggle { color: var(--blue); }
  .has-dropdown.open .dd-toggle .icon { transform: rotate(180deg); }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; border-radius: 0; min-width: 0; max-height: 0; overflow: hidden; padding: 0; transition: max-height .3s ease; background: var(--bg-alt); }
  .has-dropdown.open .dropdown { max-height: 700px; }
  .dropdown a { padding: 12px 20px; padding-inline-start: 30px; font-size: .92rem; border-radius: 0; }
  .dropdown a small { display: none; }   /* descriptions masquées dans le tiroir : plus net */
  .dropdown-all { padding-inline-start: 30px !important; }
  .dropdown-wide { min-width: 0; }
  .nav-mobile-lang { display: flex !important; gap: 10px; padding: 18px; border-top: 1px solid var(--border); margin-top: auto; }
  .nav-mobile-lang a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-weight: 600; font-size: .88rem; }
  .nav-mobile-lang a.is-active { background: var(--blue); color: #fff; border-color: var(--blue); }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .section { padding: 52px 0; }
  .hero-slider .slides { height: 420px; }
  .slide-inner { text-align: center; }
  .slide-inner .hero-lead { display: none; }   /* descriptions masquées sur mobile : moins surchargé */
  .slide-inner .hero-title { font-size: 1.7rem; }
  /* Boutons du slider : sur une seule ligne, partagés à parts égales, sans chevauchement */
  .slide-inner .hero-actions { justify-content: center; flex-wrap: nowrap; gap: 10px; }
  .slide-inner .hero-actions .btn { flex: 1 1 0; min-width: 0; justify-content: center; padding: 12px 12px; font-size: .85rem; white-space: nowrap; }
  .slide-inner .hero-actions .btn .icon { display: none; }   /* on retire l'icône pour gagner de la place sur petit écran */
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .slider-arrow { display: none; }   /* flèches masquées sur mobile : navigation par points + swipe */
  /* Nouvelles sections : 1 colonne sur mobile */
  .intro-grid, .why-grid, .faq-home-grid, .sectors-grid { grid-template-columns: 1fr; }
  .intro-media { aspect-ratio: 16/10; }
  .drive-inner { flex-direction: column; align-items: flex-start; }
  .services-grid, .standards-grid, .metro-grid, .method-grid, .values-grid, .team-grid, .news-grid, .testimonials-grid, .audience-grid, .services-grid-lg, .resources-grid, .qa-grid, .form-row, .videos-grid { grid-template-columns: 1fr; }
  .section-head-row { flex-direction: column; gap: 14px; align-items: flex-start; }
  .cta-inner { padding: 30px; }
  .event-card { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); padding: 22px 10px; }
  .stat-item::after { display: none !important; }
  .stat-value { font-size: 1.8rem; }
  .chat-panel { width: calc(100vw - 24px); height: calc(100vh - 90px); }
  .chat-widget { bottom: 16px; inset-inline-end: 12px; }
  .footer-bottom .container { flex-direction: column; gap: 8px; text-align: center; }
}
