/* ==========================================================================
   Taha Pharma — feuille de style principale
   Direction artistique inspirée du template « Hospil » (typo Montserrat / Open Sans,
   surtitres « // », cartes pastel, bandeau défilant, compteurs), adaptée à
   l'identité Taha Pharma (cyan #00ADDF, bleu-gris #85B2C4) et à un registre
   pharmaceutique institutionnel (bleu nuit, papier des certificats).
   ========================================================================== */

@font-face { font-family: "Montserrat"; src: url(../fonts/montserrat-var.woff2) format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Cairo"; src: url(../fonts/cairo-arabic-var.woff2) format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Open Sans"; src: url(../fonts/opensans-var.woff2) format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }

:root {
  --navy: #0B2A4A;
  --navy-2: #0E3560;
  --navy-3: #12406F;
  --ink: #1F2937;
  --body: #4B5563;
  --muted: #6B7A8C;
  --line: #E3E8EF;
  --line-2: #D2DAE4;
  --brand: #0089B8;          /* cyan TP assombri (contraste AA sur blanc) */
  --brand-bright: #00ADDF;   /* cyan logo — accents, grands aplats */
  --brand-soft: #E3F5FB;
  --steel: #85B2C4;          /* bleu-gris logo */
  --ok: #0F9D6B;
  --paper: #FBFAF7;
  --bg: #FFFFFF;
  --bg-2: #F4F6F8;
  --tint-sand: #EFE7D8;
  --tint-sage: #D8E8E0;
  --tint-mist: #DDE9F1;
  --tint-lilac: #E5E1F4;

  --ff-head: "Montserrat", "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-body: "Open Sans", "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 6px;
  --r: 12px;
  --r-lg: 20px;
  --shadow-1: 0 1px 2px rgba(11, 42, 74, .06), 0 2px 8px rgba(11, 42, 74, .05);
  --shadow-2: 0 10px 30px -10px rgba(11, 42, 74, .22), 0 4px 10px -4px rgba(11, 42, 74, .08);
  --shadow-3: 0 30px 60px -20px rgba(11, 42, 74, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { font-family: var(--ff-body); font-size: 16px; line-height: 1.65; color: var(--body); background: var(--bg); overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--navy); }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--ff-head); color: var(--ink); font-weight: 600; line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.6vw + .5rem, 4.1rem); }
h2 { font-size: clamp(1.75rem, 2.2vw + .9rem, 2.75rem); }
h3 { font-size: 1.25rem; }
p { text-wrap: pretty; }
ul[class], ol[class] { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand-bright); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; color: #fff; }
main:focus { outline: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 8vw, 120px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.tint-bg { background: var(--bg-2); }
.tint-sand { background: var(--tint-sand); } .tint-sage { background: var(--tint-sage); } .tint-mist { background: var(--tint-mist); } .tint-lilac { background: var(--tint-lilac); }

.ico { width: 20px; height: 20px; flex: none; }
.ico--sm { width: 16px; height: 16px; }
.ico--xs { width: 13px; height: 13px; }

/* Surtitre façon template : « // TEXTE » */
.eyebrow { font-family: var(--ff-head); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; display: flex; align-items: center; gap: .5em; }
.eyebrow::before { content: "//"; letter-spacing: 0; opacity: .7; }
.eyebrow--light { color: var(--brand-bright); }
.lead { font-size: clamp(1.05rem, .5vw + .95rem, 1.2rem); color: var(--body); max-width: 62ch; }

.section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { max-width: 22ch; }
.section-head--center { text-align: center; }
.section-head--center h2, .section-head--center p { margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center p:not(.eyebrow) { max-width: 60ch; margin-top: 14px; }
.section-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; }
.section-head__aside { max-width: 44ch; color: var(--muted); }

/* ---------- Boutons ---------- */
.btn { --b: var(--navy); display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .8em 1.35em; border-radius: var(--r-sm); background: var(--b); color: #fff; font-family: var(--ff-head); font-weight: 600; font-size: .92rem; line-height: 1.2; border: 1.5px solid var(--b); transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s; white-space: nowrap; }
.btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn .ico { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .ico:last-child { transform: translateX(calc(2px * var(--dir, 1))); }
.btn--sm { padding: .6em 1em; font-size: .84rem; }
.btn--lg { padding: 1em 1.6em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--outline { background: transparent; color: var(--navy); }
.btn--outline:hover { background: var(--navy); border-color: var(--navy); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--bg-2); color: var(--navy); border-color: var(--navy); box-shadow: none; }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light:hover { background: var(--brand-bright); border-color: var(--brand-bright); color: var(--navy); }
.btn--glass { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.35); color: #fff; backdrop-filter: blur(6px); }
.btn--glass:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--glass .pulse { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-bright); color: #fff; position: relative; }
.btn--glass .pulse .ico { width: 12px; height: 12px; margin-left: 2px; }
.btn--glass .pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--brand-bright); opacity: 0; animation: ring 2.2s var(--ease) infinite; }
@keyframes ring { 0% { transform: scale(.8); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--navy); transition: background .2s; }
.icon-btn:hover { background: var(--bg-2); color: var(--navy); }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-family: var(--ff-head); font-weight: 600; font-size: .92rem; color: var(--navy); border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.link-arrow:hover { color: var(--brand); }
.link-arrow .ico { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover .ico { transform: translateX(calc(3px * var(--dir, 1))); }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy); color: rgba(255,255,255,.82); font-size: .8rem; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar ul { display: flex; gap: 22px; align-items: center; }
.topbar li { display: flex; align-items: center; gap: 7px; }
.topbar .ico { width: 14px; height: 14px; color: var(--brand-bright); }
.topbar a { color: inherit; }
.topbar a:hover { color: #fff; }
.topbar__badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; background: rgba(0,173,223,.14); color: #fff !important; font-weight: 600; }

/* ---------- Header / navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
.site-header.is-stuck { border-color: var(--line); box-shadow: 0 6px 24px -14px rgba(11,42,74,.25); }
.site-header__in { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); flex: none; }
.brand img { width: 46px; height: auto; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand__txt strong { font-family: var(--ff-head); font-weight: 600; letter-spacing: .06em; font-size: 1.02rem; color: var(--brand); }
.brand__txt small { font-size: .74rem; color: var(--muted); letter-spacing: .02em; }
.nav { margin-inline-start: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__link { position: relative; display: inline-flex; white-space: nowrap; align-items: center; gap: 4px; padding: 10px 13px; font-family: var(--ff-head); font-size: .9rem; font-weight: 500; color: var(--ink); border-radius: var(--r-sm); }
.nav__link::after { content: ""; position: absolute; inset-inline: 13px; bottom: 4px; height: 2px; background: var(--brand-bright); transform: scaleX(0); transform-origin: var(--start, left); transition: transform .3s var(--ease); }
.nav__link:hover, .nav__item.is-open > .nav__link { color: var(--brand); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--navy); }
.nav__link .ico { transition: transform .25s; }
.nav__item.is-open > .nav__link .ico { transform: rotate(180deg); }
.nav__item { position: relative; }
.nav__cta-m { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 6px; }
.burger { display: none; }

.drop { position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0; min-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-3); padding: 10px; display: grid; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .22s, transform .22s var(--ease), visibility 0s .22s; }
.drop::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav__item.is-open > .drop { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.drop > a { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); color: var(--ink); }
.drop > a .ico { color: var(--brand); margin-top: 2px; }
.drop > a span { display: flex; flex-direction: column; }
.drop > a strong { font-family: var(--ff-head); font-weight: 600; font-size: .92rem; }
.drop > a small { color: var(--muted); font-size: .8rem; }
.drop > a:hover { background: var(--bg-2); }

.mega { position: fixed; left: 50%; top: calc(var(--header-h) - 6px); width: min(1120px, calc(100vw - 32px)); grid-template-columns: 1.75fr 1fr .95fr; gap: 0; padding: 0; overflow: hidden; }
.mega__col { padding: 28px; }
.mega__col--wide { border-inline-end: 1px solid var(--line); }
.mega__title { font-family: var(--ff-head); font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
.mega__grid a, .mega__list a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; font-size: .88rem !important; line-height: 1.35; margin-inline: -10px; border-radius: var(--r-sm); color: var(--ink); font-size: .9rem; }
.mega__grid a:hover, .mega__list a:hover { background: var(--bg-2); color: var(--brand); }
.mega__list .ico { color: var(--brand); }
.count { margin-inline-start: auto; font-size: .72rem; font-weight: 600; color: var(--muted); background: var(--bg-2); border-radius: 99px; padding: 1px 8px; }
.mega__search { margin-top: 18px; display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); padding: 0 12px; }
.mega__search:focus-within { border-color: var(--brand); }
.mega__search .ico { color: var(--muted); width: 18px; }
.mega__search input { border: 0; outline: 0; padding: 10px 0; width: 100%; background: transparent; font-size: .9rem; }
.mega__feature { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-3) 100%); color: rgba(255,255,255,.8); padding: 28px; display: flex; flex-direction: column; gap: 10px; font-size: .9rem; position: relative; overflow: hidden; }
.mega__feature::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; background: url(../img/brand/tp-mark-white.png) center/contain no-repeat; opacity: .06; }
.mega__feature .eyebrow { color: var(--brand-bright); margin: 0; }
.mega__feature-title { font-family: var(--ff-head); color: #fff; font-size: 1.3rem; font-weight: 600; line-height: 1.25; }
.mega__feature .btn { margin-top: auto; align-self: flex-start; background: var(--brand-bright); border-color: var(--brand-bright); color: var(--navy); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 820px); display: grid; align-items: center; color: #fff; isolation: isolate; overflow: hidden; background: var(--navy); }
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
/* Photo de l'usine — équivalent de background-size: cover; background-position: center left */
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: left center;
  /* Harmonisation « froide » pharmaceutique : moins de saturation, léger contraste */
  filter: saturate(.78) contrast(1.08) brightness(.96) hue-rotate(-6deg);
  transform: scale(1.02);
}
@media (prefers-reduced-motion: no-preference) {
  .hero__img { animation: heroZoom 18s var(--ease) both; }
  @keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1.02); } }
}
/* Voile de couleur : marine opaque à gauche (texte) → translucide à droite (équipements + carte) */
.hero__media::before { content: ""; position: absolute; inset: 0; background: #0A2540; mix-blend-mode: color; opacity: .35; }
.hero__media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(11,27,43,.95) 0%, rgba(11,27,43,.93) 40%, rgba(11,27,43,.88) 54%, rgba(10,37,64,.66) 66%, rgba(10,37,64,.38) 80%, rgba(10,37,64,.46) 100%),
  linear-gradient(0deg, rgba(11,27,43,.75) 0%, rgba(11,27,43,0) 32%),
  radial-gradient(60% 80% at 100% 0%, rgba(0,163,196,.18), transparent 60%); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 48px; align-items: end; padding-block: clamp(80px, 12vh, 140px) clamp(72px, 10vh, 120px); }
.hero h1 { color: #fff; max-width: 15ch; font-weight: 600; }
.hero .eyebrow { color: #8FE3F5; } /* petit texte : ≥ 7:1 */
.hero h1 span { color: #5ED3EE; } /* cyan éclairci : contraste AAA (≥ 4,5:1, grand texte) sur le voile */
.hero__lead { font-size: clamp(1.02rem, .4vw + .95rem, 1.18rem); color: rgba(255,255,255,.9); text-shadow: 0 1px 2px rgba(11,27,43,.4); max-width: 54ch; margin-top: 22px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__ctas .btn--lg:first-child { background: #00A3C4; border-color: #00A3C4; color: #0B1B2B; }
.hero__ctas .btn--lg:first-child:hover { background: #fff; border-color: #fff; }
.hero__card { background: rgba(255,255,255,.97); color: var(--ink); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-3); max-width: 360px; justify-self: end; }
.hero__card-title { font-family: var(--ff-head); font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(15,157,107,.18); }
.hero__card ul { display: grid; gap: 8px; margin-bottom: 16px; }
.hero__card li { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-sm); background: var(--bg-2); }
.hero__card li > span:nth-child(2) { display: flex; flex-direction: column; line-height: 1.3; }
.hero__card li strong { font-size: .88rem; font-family: var(--ff-head); font-weight: 600; }
.hero__card li small { font-size: .76rem; color: var(--muted); }
.hero__card li > .ico { margin-inline-start: auto; color: var(--ok); }
.hero__card-code { display: grid; place-items: center; min-width: 46px; height: 34px; border-radius: 6px; background: var(--navy); color: #fff; font-family: var(--ff-head); font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.hero__card .btn { background: var(--brand); border-color: var(--brand); }
.hero__scroll { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 99px; translate: -50% 0; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; border-radius: 3px; background: #fff; translate: -50% 0; animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Page hero (pages internes) ---------- */
.page-hero { position: relative; background: radial-gradient(1200px 400px at 85% -10%, rgba(0,173,223,.18), transparent 60%), linear-gradient(180deg, #F2F8FB 0%, #fff 100%); padding-block: clamp(48px, 7vw, 96px) clamp(36px, 5vw, 64px); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: max(-60px, calc(50% - 720px)); top: 30px; width: 300px; height: 240px; background: url(../img/brand/tp-mark.png) center/contain no-repeat; opacity: .06; pointer-events: none; }
.page-hero h1 { font-size: clamp(2rem, 3.4vw + .6rem, 3.4rem); max-width: 20ch; }
.page-hero .lead { margin-top: 18px; }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; margin-bottom: 26px; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; opacity: .6; }
.crumbs a { color: var(--brand); }

/* ---------- Quick cards ---------- */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: clamp(-110px, -8vw, -60px); position: relative; z-index: 2; }
.is-home .quick { margin-top: 0; }
.quick__card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--r); color: var(--body); font-size: .9rem; transition: transform .3s var(--ease), box-shadow .3s; }
.quick__card strong { font-family: var(--ff-head); font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.quick__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: #fff; color: var(--brand); margin-bottom: 6px; }
.quick__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); color: var(--body); }

/* ---------- About ---------- */
.about__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about__media { position: relative; padding: 0 0 70px 0; }
.about__media img { border-radius: var(--r-lg); width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }
.about__media-2 { position: absolute; width: 52% !important; inset-inline-end: -6%; bottom: 0; aspect-ratio: 4 / 3 !important; border: 6px solid #fff; box-shadow: var(--shadow-2); }
.about__badge { position: absolute; inset-inline-start: 22px; bottom: 26px; background: var(--brand); color: #fff; padding: 20px 22px; border-radius: var(--r); max-width: 210px; box-shadow: var(--shadow-2); }
.about__badge strong { display: block; font-family: var(--ff-head); font-size: 2.1rem; line-height: 1; margin-bottom: 6px; }
.about__badge span { font-size: .82rem; line-height: 1.4; display: block; }
.about__copy > p:not(.eyebrow) { margin-top: 18px; }
.pull { margin-top: 22px; padding: 14px 18px; border-radius: var(--r-sm); background: var(--brand-soft); color: var(--navy); font-family: var(--ff-head); font-weight: 500; font-size: 1.04rem; border-inline-start: 3px solid var(--brand-bright); }
.about__actions { display: flex; align-items: center; gap: 24px; margin-top: 28px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 36px; border-top: 1px solid var(--line); }
.stats div { padding-block: 22px 0; padding-inline: 0 16px; }
.stats div + div { padding-inline-start: 20px; border-inline-start: 1px solid var(--line); }
.stats dt { font-family: var(--ff-head); font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 600; color: var(--brand); line-height: 1; }
.stats dd { margin: 6px 0 0; font-size: .86rem; color: var(--muted); }

/* ---------- Marquee ---------- */
.marquee { background: var(--brand); color: #fff; overflow: hidden; padding-block: 18px; }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee span { font-family: var(--ff-head); font-weight: 600; font-size: clamp(1.1rem, 1.6vw, 1.6rem); white-space: nowrap; display: flex; align-items: center; }
.marquee span::after { content: ""; width: 22px; height: 22px; margin-inline: 34px; background: currentColor; opacity: .6; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Accréditations ---------- */
.accred { background: linear-gradient(180deg, #fff 0%, #F5F8FA 100%); }
.accred__grid { display: grid; gap: 24px; }
.accred__grid--primary { grid-template-columns: repeat(3, 1fr); }
.accred__grid--secondary { grid-template-columns: repeat(2, 1fr); margin-top: 24px; }
.cert { --tint: var(--tint-mist); position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.cert--sage { --tint: var(--tint-sage); } .cert--sand { --tint: var(--tint-sand); } .cert--lilac { --tint: var(--tint-lilac); }
.cert:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }
.cert__preview { position: relative; display: grid; place-items: center; background: var(--tint); padding: 32px 28px 0; height: 270px; overflow: hidden; }
.cert__preview::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 120%, rgba(255,255,255,.7), transparent 60%); }
.cert__paper { position: relative; display: block; width: 74%; height: 100%; background: var(--paper); border-radius: 4px 4px 0 0; box-shadow: 0 -2px 0 rgba(0,0,0,.02), 0 18px 40px -12px rgba(11,42,74,.35); overflow: hidden; transform: rotate(-2deg) translateY(10px); transition: transform .5s var(--ease); }
.cert:nth-child(2) .cert__paper { transform: rotate(1.5deg) translateY(10px); }
.cert__paper img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.cert__preview:hover .cert__paper, .cert__preview:focus-visible .cert__paper { transform: rotate(0) translateY(-6px) scale(1.03); }
.cert__zoom { position: absolute; inset-inline-end: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: rgba(11,42,74,.88); color: #fff; font-size: .78rem; font-weight: 600; opacity: 0; transform: translateY(-6px); transition: .3s var(--ease); }
.cert__zoom .ico { width: 15px; height: 15px; }
.cert__preview:hover .cert__zoom, .cert__preview:focus-visible .cert__zoom { opacity: 1; transform: none; }
.cert__body { display: flex; flex-direction: column; gap: 10px; padding: 24px; flex: 1; }
.cert__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cert__code { font-family: var(--ff-head); font-weight: 700; font-size: .74rem; letter-spacing: .08em; color: #fff; background: var(--navy); padding: 4px 10px; border-radius: 5px; }
.cert__region { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--muted); }
.cert__title { font-size: 1.22rem; margin-top: 4px; }
.cert__auth { font-size: .86rem; color: var(--brand); font-weight: 600; line-height: 1.45; }
.cert__summary { font-size: .92rem; }
.cert__more { border-top: 1px dashed var(--line-2); padding-top: 10px; margin-top: 4px; }
.cert__more summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-family: var(--ff-head); font-size: .86rem; font-weight: 600; color: var(--navy); padding-block: 4px; }
.cert__more summary::-webkit-details-marker { display: none; }
.cert__more[open] summary .ico { transform: rotate(180deg); }
.cert__more summary .ico { transition: transform .25s; }
.ticks { display: grid; gap: 7px; margin: 10px 0 14px; font-size: .88rem; }
.ticks li { display: flex; gap: 8px; align-items: flex-start; }
.ticks .ico { color: var(--ok); margin-top: 4px; }
.cert__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cert__facts div { background: var(--bg-2); border-radius: var(--r-sm); padding: 8px 10px; }
.cert__facts dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cert__facts dd { margin: 0; font-family: var(--ff-head); font-weight: 600; font-size: .86rem; color: var(--ink); font-variant-numeric: tabular-nums; word-break: break-word; }
.cert__note { display: flex; gap: 8px; margin-top: 12px; font-size: .8rem; color: var(--muted); line-height: 1.5; }
.cert__note .ico { margin-top: 2px; color: var(--brand); }
.cert__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; }
.verify { flex-basis: 100%; display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--ok); margin-top: 4px; }
.verify:hover { color: var(--navy); }
.verify--doc { color: var(--muted); }
.verify .ico { color: var(--ok); }
.accred__grid--secondary .cert { flex-direction: row; }
.accred__grid--secondary .cert__preview { width: 38%; height: auto; min-height: 240px; padding: 22px 18px 0; flex: none; }
.accred__more { margin-top: -40px; padding-bottom: 72px; text-align: center; }

/* ---------- Découverte industrielle ---------- */
.discovery { background: var(--navy); color: rgba(255,255,255,.8); position: relative; overflow: hidden; }
.discovery::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 400px at 10% 0%, rgba(0,173,223,.18), transparent 60%), radial-gradient(600px 400px at 100% 100%, rgba(133,178,196,.16), transparent 60%); }
.discovery .container { position: relative; }
.discovery h2 { color: #fff; }
.discovery .section-head__aside { color: rgba(255,255,255,.7); }
.disc { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.disc__player { position: sticky; top: calc(var(--header-h) + 24px); }
.disc__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #000; box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }
.disc__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.disc__poster { width: 100%; height: 100%; object-fit: cover; transition: opacity .4s, transform 1.2s var(--ease); }
.disc__poster.is-swapping { opacity: .2; transform: scale(1.03); }
.disc__play { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start; gap: 16px; padding: 24px; background: linear-gradient(0deg, rgba(8,30,54,.85) 0%, rgba(8,30,54,.1) 55%); color: #fff; text-align: left; }
.disc__play-btn { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--brand-bright); color: var(--navy); box-shadow: 0 0 0 10px rgba(0,173,223,.22); transition: transform .3s var(--ease), box-shadow .3s; flex: none; }
.disc__play-btn .ico { width: 24px; height: 24px; margin-left: 3px; }
.disc__play:hover .disc__play-btn { transform: scale(1.08); box-shadow: 0 0 0 16px rgba(0,173,223,.18); }
.disc__play-txt { display: flex; flex-direction: column; }
.disc__play-txt strong { font-family: var(--ff-head); font-size: 1.25rem; font-weight: 600; }
.disc__play-txt small { color: rgba(255,255,255,.75); }
.disc__progress { position: relative; height: 4px; margin-top: 18px; background: rgba(255,255,255,.14); border-radius: 4px; }
.disc__progress span { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; translate: -50% -50%; background: var(--navy); border: 2px solid rgba(255,255,255,.5); transition: .3s; }
.disc__progress span.is-current { background: var(--brand-bright); border-color: var(--brand-bright); box-shadow: 0 0 0 5px rgba(0,173,223,.25); }
.disc__under { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 22px; flex-wrap: wrap; font-size: .86rem; color: rgba(255,255,255,.65); }
.disc__under .btn--glass { font-size: .86rem; }
.disc__chapters { display: grid; gap: 8px; counter-reset: c; }
.chap { width: 100%; display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); color: #fff; text-align: left; transition: background .25s, border-color .25s, transform .25s var(--ease); }
.chap:hover { background: rgba(255,255,255,.08); transform: translateX(calc(4px * var(--dir, 1))); }
.chap.is-current { background: rgba(0,173,223,.14); border-color: rgba(0,173,223,.55); }
.chap__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,.08); color: var(--brand-bright); }
.chap.is-current .chap__ico { background: var(--brand-bright); color: var(--navy); }
.chap__txt { display: flex; flex-direction: column; min-width: 0; }
.chap__txt strong { font-family: var(--ff-head); font-weight: 600; font-size: .96rem; }
.chap__txt small { color: rgba(255,255,255,.62); font-size: .8rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chap__time { font-family: var(--ff-head); font-variant-numeric: tabular-nums; font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: rgba(255,255,255,.1); }

/* ---------- Produits : cartes ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { padding: 8px 15px; border-radius: 99px; border: 1.5px solid var(--line-2); font-size: .86rem; font-weight: 600; color: var(--ink); background: #fff; transition: .2s; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, calc((100% - 3 * 20px) / 4)); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
.rail .pcard[hidden] { display: none; }
.pcard { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: transparent; }
.pcard__link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.pcard__link:hover { color: inherit; }
.pcard__media { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 26px; background: linear-gradient(160deg, #F6F9FB, #EAF1F5); border-radius: var(--r) var(--r) 0 0; }
.pcard__media img { position: absolute; inset: 22px; width: calc(100% - 44px); height: calc(100% - 44px); object-fit: contain; filter: drop-shadow(0 10px 14px rgba(11,42,74,.16)); transition: transform .45s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.05) rotate(-1deg); }
.pcard__area { position: absolute; inset-inline-start: 12px; top: 12px; font-size: .7rem; font-weight: 600; color: var(--navy); background: rgba(255,255,255,.9); padding: 3px 9px; border-radius: 99px; max-width: calc(100% - 24px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__body { display: flex; flex-direction: column; gap: 3px; padding-block: 16px 18px; padding-inline: 18px 56px; }
.pcard__name { font-family: var(--ff-head); font-weight: 600; font-size: 1.08rem; color: var(--ink); letter-spacing: .01em; }
.pcard__dci { font-size: .88rem; color: var(--brand); font-weight: 600; }
.pcard__meta { font-size: .8rem; color: var(--muted); }
.pcard__go { position: absolute; inset-inline-end: 14px; bottom: 16px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--bg-2); color: var(--navy); transition: .25s; }
.pcard:hover .pcard__go { background: var(--brand); color: #fff; }

/* ---------- R&D steps ---------- */
.rd__in { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.rd__intro { position: sticky; top: calc(var(--header-h) + 40px); }
.rd__intro p:not(.eyebrow) { margin: 18px 0 28px; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.steps li { background: #fff; border-radius: var(--r); padding: 20px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; transition: border-color .3s, transform .3s var(--ease); }
.steps li:hover { border-color: var(--brand-bright); transform: translateY(-3px); }
.steps__n { font-family: var(--ff-head); font-weight: 700; font-size: .82rem; color: var(--brand); letter-spacing: .06em; }
.steps strong { font-family: var(--ff-head); font-weight: 600; color: var(--ink); }
.steps small { font-size: .86rem; color: var(--muted); line-height: 1.5; }

/* ---------- Presse ---------- */
.press-strip { border-top: 1px solid var(--line); }
.press-strip .container { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; justify-content: space-between; }
.press-strip__label { font-family: var(--ff-head); font-weight: 600; color: var(--muted); font-size: .86rem; text-transform: uppercase; letter-spacing: .1em; }
.press-strip__logos { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; }
.press-strip__logos img { height: 40px; width: auto; filter: grayscale(1); opacity: .6; transition: .3s; mix-blend-mode: multiply; }
.press-strip__logos a:hover img { filter: none; opacity: 1; }
.press-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.press-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); transition: .3s var(--ease); background: #fff; }
.press-card:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); color: var(--ink); }
.press-card img { height: 44px; width: auto; align-self: flex-start; mix-blend-mode: multiply; }
.press-card strong { font-family: var(--ff-head); font-weight: 600; line-height: 1.4; }
.press-card span { margin-top: auto; display: inline-flex; gap: 6px; align-items: center; font-size: .84rem; color: var(--brand); font-weight: 600; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: .3s; }
.yt button { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.yt button span { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: rgba(0,173,223,.95); transition: transform .25s; }
.yt button span .ico { margin-left: 3px; }
.yt:hover img { opacity: 1; transform: scale(1.03); }
.yt:hover button span { transform: scale(1.08); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-meta { margin-top: 10px; }
.video-meta small { color: var(--brand); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.video-meta strong { display: block; font-family: var(--ff-head); color: var(--ink); font-weight: 600; }

/* ---------- Catalogue ---------- */
.catalog { display: grid; grid-template-columns: 270px 1fr; gap: 40px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 26px; }
.filters h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 10px; font-weight: 600; }
.search-box { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); padding: 0 14px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.search-box .ico { color: var(--muted); }
.search-box input { border: 0; outline: 0; padding: 12px 0; width: 100%; background: transparent; }
.facet { display: grid; gap: 2px; }
.facet label { display: flex; align-items: center; gap: 10px; padding: 7px 10px; margin-inline: -10px; border-radius: var(--r-sm); cursor: pointer; font-size: .9rem; color: var(--ink); }
.facet label:hover { background: var(--bg-2); }
.facet input { accent-color: var(--brand); width: 16px; height: 16px; }
.facet .count { margin-inline-start: auto; }
.catalog__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.catalog__count { font-family: var(--ff-head); font-weight: 600; color: var(--ink); }
.catalog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.catalog__grid .pcard[hidden] { display: none; }
.empty { padding: 48px; text-align: center; border: 1.5px dashed var(--line-2); border-radius: var(--r); color: var(--muted); }
.notice-pro { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--r-sm); background: #FFF8EC; border: 1px solid #F3DDB5; color: #6B4E16; font-size: .88rem; margin-bottom: 28px; }
.notice-pro .ico { color: #C98A13; margin-top: 2px; }
.alpha { display: flex; flex-wrap: wrap; gap: 4px; }
.alpha button { width: 30px; height: 30px; border-radius: 6px; font-size: .8rem; font-weight: 600; color: var(--ink); border: 1px solid var(--line); }
.alpha button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.alpha button.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.alpha button:disabled { opacity: .3; cursor: default; }
.filters__toggle { display: none; }
.filters__panel { display: grid; gap: 26px; }

/* ---------- Fiche produit ---------- */
.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 24px); }
.gallery__main { position: relative; display: grid; place-items: center; aspect-ratio: 5 / 4; padding: 40px; background: linear-gradient(160deg, #F6F9FB, #E4EEF4); border-radius: var(--r-lg); }
.gallery__main img { position: absolute; inset: 40px; width: calc(100% - 80px); height: calc(100% - 80px); object-fit: contain; filter: drop-shadow(0 20px 26px rgba(11,42,74,.2)); }
.gallery__thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.gallery__thumbs button { width: 86px; height: 70px; padding: 8px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; }
.gallery__thumbs button.is-on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product__info h1 { font-size: clamp(2.2rem, 3vw + 1rem, 3.4rem); letter-spacing: .01em; }
.product__dci { font-size: 1.15rem; color: var(--brand); font-weight: 600; margin-top: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 28px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; background: var(--bg-2); font-size: .82rem; font-weight: 600; color: var(--navy); }
.tag .ico { width: 15px; height: 15px; color: var(--brand); }
.spec { border-top: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-family: var(--ff-head); font-weight: 600; color: var(--ink); font-size: .9rem; }
.spec dd { margin: 0; white-space: pre-line; }
.pres-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.pres-table th, .pres-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.pres-table th { font-family: var(--ff-head); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.product__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- Contenus génériques ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--top { align-items: start; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.4em; }
.prose ul { padding-inline-start: 1.2em; }
.prose li + li { margin-top: .4em; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 28px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; }
.card h3 { margin: 14px 0 8px; font-size: 1.12rem; }
.card .quick__ico { background: var(--brand-soft); }
.img-frame { border-radius: var(--r-lg); overflow: hidden; }
.img-frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 92px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--brand-bright), var(--steel)); }
.timeline li { display: grid; grid-template-columns: 92px 1fr; gap: 32px; padding-bottom: 28px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 86px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.timeline strong { font-family: var(--ff-head); color: var(--navy); font-weight: 700; font-size: .95rem; }

.patents { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.patent { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-align: left; transition: .3s var(--ease); }
.patent:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.patent__img { height: 170px; background: var(--tint-mist); padding: 18px 26px 0; overflow: hidden; }
.patent__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 3px 3px 0 0; box-shadow: var(--shadow-2); }
.patent__body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.patent__num { font-family: var(--ff-head); font-weight: 700; font-size: .8rem; color: var(--brand); }
.patent__body strong { font-size: .88rem; color: var(--ink); line-height: 1.45; font-weight: 600; }
.patent__body small { color: var(--muted); margin-top: auto; }

.capab { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.capab li { padding: 22px; border-radius: var(--r); display: flex; flex-direction: column; gap: 8px; }
.capab strong { font-family: var(--ff-head); font-weight: 600; color: var(--ink); }
.capab small { font-size: .86rem; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.kpis div { background: #fff; padding: 26px; }
.kpis dt { font-family: var(--ff-head); font-weight: 600; font-size: 2.1rem; color: var(--brand); line-height: 1; }
.kpis dd { margin: 8px 0 0; font-size: .86rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact__info { display: grid; gap: 16px; }
.info-card { display: flex; gap: 16px; padding: 20px; border-radius: var(--r); background: var(--bg-2); }
.info-card .quick__ico { margin: 0; flex: none; }
.info-card strong { display: block; font-family: var(--ff-head); color: var(--ink); margin-bottom: 4px; }
.info-card table { font-size: .9rem; border-collapse: collapse; }
.info-card td { padding: 2px 16px 2px 0; }
.form { display: grid; gap: 16px; padding: clamp(24px, 4vw, 40px); border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-1); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--ff-head); font-size: .84rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2); background: #fff; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.field--err input, .field--err select, .field--err textarea { border-color: #D64545; }
.field__err { color: #B42318; font-size: .8rem; }
.consent { display: flex; gap: 10px; font-size: .84rem; align-items: flex-start; }
.consent input { margin-top: 4px; accent-color: var(--brand); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.alert { padding: 14px 18px; border-radius: var(--r-sm); font-size: .92rem; }
.alert--ok { background: #E7F7EF; color: #0B6B47; border: 1px solid #B6E5CD; }
.alert--err { background: #FDECEC; color: #9B1C1C; border: 1px solid #F5C2C2; }
.map { margin-top: 16px; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-2) center/cover; position: relative; display: grid; place-items: center; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.72); font-size: .9rem; padding-top: 64px; }
.footer a { color: rgba(255,255,255,.8); }
.footer a:hover { color: var(--brand-bright); }
.footer .btn--light { color: var(--navy); }
.footer .btn--light:hover { color: var(--navy); }
.footer__cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 36px 40px; border-radius: var(--r-lg); background: linear-gradient(120deg, var(--brand) 0%, #0A6E99 100%); margin-bottom: 64px; position: relative; overflow: hidden; }
.footer__cta::after { content: ""; position: absolute; right: 20%; top: -30px; width: 220px; height: 180px; background: url(../img/brand/tp-mark-white.png) center/contain no-repeat; opacity: .08; }
.footer__cta h2 { color: #fff; font-size: clamp(1.4rem, 1.6vw + .8rem, 2rem); max-width: 26ch; }
.footer__cta .eyebrow { color: #CFF3FF; margin-bottom: 8px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.6fr; gap: 40px; padding-bottom: 48px; }
.footer__brand img { width: 96px; margin-bottom: 18px; }
.footer h3 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.footer__contact li { display: flex; gap: 12px; }
.footer__contact .ico { color: var(--brand-bright); margin-top: 3px; width: 18px; height: 18px; }
.footer__contact strong { display: block; color: #fff; font-weight: 600; font-size: .82rem; }
.footer__bottom { display: flex; gap: 12px 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; }
.footer__bottom ul { display: flex; gap: 18px; align-items: center; }
.footer__legal { flex: 1 1 360px; color: rgba(255,255,255,.5); }

/* ---------- Modales ---------- */
.modal { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; color: inherit; }
.modal::backdrop { background: rgba(5,18,33,.82); backdrop-filter: blur(4px); }
.modal[open] { display: grid; place-items: center; animation: modalIn .35s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: scale(.98); } }
.modal__close { position: fixed; inset-inline-end: 18px; top: 18px; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; z-index: 2; }
.modal__video { width: min(1100px, 92vw); aspect-ratio: 16 / 9; background: #000; border-radius: var(--r); overflow: hidden; }
.modal__video iframe { width: 100%; height: 100%; border: 0; }
.docv { width: min(1080px, 96vw); height: min(92vh, 1100px); background: #fff; border-radius: var(--r-lg); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); overflow: hidden; box-shadow: var(--shadow-3); }
.docv__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.docv__meta { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.docv__meta h2 { min-width: 0; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.docv__code { font-family: var(--ff-head); font-weight: 700; font-size: .72rem; color: #fff; background: var(--navy); padding: 4px 9px; border-radius: 5px; white-space: nowrap; }
.docv__tools { display: flex; align-items: center; gap: 4px; flex: none; }
.docv__pager { font-size: .84rem; color: var(--muted); margin-inline-end: 8px; font-variant-numeric: tabular-nums; }
.docv__stage { position: relative; overflow: auto; background: #E9EDF1; display: grid; place-items: center; padding: 24px 64px; overscroll-behavior: contain; }
.docv__page { margin: 0; max-height: 100%; }
.docv__page img { max-height: calc(min(92vh, 1100px) - 170px); width: auto; box-shadow: var(--shadow-2); background: #fff; cursor: zoom-in; transition: opacity .2s; }
.docv.is-zoomed .docv__stage { place-items: start center; }
.docv.is-zoomed .docv__page img { max-height: none; width: min(1600px, 180%); max-width: none; cursor: zoom-out; }
.docv__nav { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-2); display: grid; place-items: center; color: var(--navy); z-index: 1; }
.docv__nav:disabled { opacity: .3; cursor: default; }
.docv__nav--prev { inset-inline-start: 12px; } .docv__nav--next { inset-inline-end: 12px; }
.docv.is-zoomed .docv__nav { position: fixed; }
.docv__foot { padding: 10px 18px; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); }
.docv__foot:empty { display: none; }
body:has(.modal[open]) { overflow: hidden; }

/* ---------- Animations d'apparition ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
/* Transitions de page (navigateurs compatibles View Transitions) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .22s ease both; }
::view-transition-new(root) { animation: vtIn .32s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Responsive ---------- */
/* Écrans portables (≤ 1440 px) : le bloc texte occupe une part plus large → voile prolongé */
@media (min-width: 1025px) and (max-width: 1440px) {
  .hero__media::after { background:
    linear-gradient(90deg, rgba(11,27,43,.95) 0%, rgba(11,27,43,.93) 50%, rgba(11,27,43,.88) 62%, rgba(10,37,64,.6) 74%, rgba(10,37,64,.4) 88%, rgba(10,37,64,.46) 100%),
    linear-gradient(0deg, rgba(11,27,43,.75) 0%, rgba(11,27,43,0) 32%); }
}
/* Écrans intermédiaires : on libère de la place pour le menu (le contact reste dans la barre supérieure) */
@media (min-width: 1025px) and (max-width: 1360px) { .site-header__actions > .btn { display: none; } .nav__link { padding-inline: 10px; } }
@media (max-width: 1180px) {
  .nav__link { padding-inline: 9px; font-size: .86rem; }
  .hide-md { display: none !important; }
  .catalog__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  .burger { display: inline-grid; }
  .site-header { backdrop-filter: none; background: #fff; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; opacity: 0; transform: translateY(-10px); visibility: hidden; transition: opacity .3s, transform .35s var(--ease), visibility 0s .35s; overflow-y: auto; padding: 16px var(--gutter) 40px; margin: 0; z-index: 60; }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--line); }
  .nav__link { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 1.05rem; }
  .nav__link::after { display: none; }
  .drop, .mega { position: static; translate: none; transform: none; width: auto; min-width: 0; box-shadow: none; border: 0; padding: 0 0 12px; display: none; opacity: 1; visibility: visible; grid-template-columns: 1fr; }
  .nav__item.is-open > .drop { display: grid; }
  .mega__col, .mega__feature { padding: 8px 0 16px; }
  .mega__col--wide { border: 0; }
  .mega__grid { grid-template-columns: 1fr; }
  .mega__feature { display: none; }
  .nav__cta-m { display: block; border: 0 !important; padding-top: 24px; }
  .nav__cta-m .btn { width: 100%; }
  .hero__in { grid-template-columns: 1fr; align-items: start; }
  /* Tablette : la carte passe sous le texte → voile plus homogène, opératrice gardée dans le cadre */
  .hero__img { object-position: 70% center; }
  .hero__media::after { background:
    linear-gradient(180deg, rgba(11,27,43,.89) 0%, rgba(11,27,43,.84) 55%, rgba(11,27,43,.72) 100%),
    linear-gradient(90deg, rgba(11,27,43,.35) 0%, transparent 70%); }
  .hero__card { justify-self: start; max-width: 520px; width: 100%; }
  .quick { grid-template-columns: repeat(2, 1fr); }
  .accred__grid--primary { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .accred__grid--primary .cert { flex-direction: row; }
  .accred__grid--primary .cert__preview { width: 40%; height: auto; min-height: 300px; flex: none; }
  .disc { grid-template-columns: 1fr; }
  .disc__player { position: relative; top: 0; }
  .rd__in, .about__in, .split, .contact, .product { grid-template-columns: 1fr; }
  .rd__intro, .gallery { position: static; }
  .rail { grid-auto-columns: minmax(240px, 42%); }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filters__toggle { display: inline-flex; }
  .filters__panel { display: none; gap: 22px; }
  .filters.is-open .filters__panel { display: grid; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .card-grid, .press-grid, .video-grid { grid-template-columns: 1fr 1fr; }
  .capab, .kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .topbar__info { display: none !important; }
  .topbar__in { justify-content: center; }
  .topbar__badge { font-size: .72rem; }
  .hide-sm { display: none !important; }
  .brand__txt small { display: none; }
  .hero { min-height: 0; }
  /* Smartphone : cadrage sur l'opératrice et l'écran de la machine */
  .hero__img { object-position: 78% 30%; }
  .hero__media::after { background: linear-gradient(180deg, rgba(11,27,43,.80) 0%, rgba(11,27,43,.88) 45%, rgba(11,27,43,.94) 100%); }
  .hero__ctas .btn { width: 100%; }
  .quick, .accred__grid--secondary, .steps, .card-grid, .press-grid, .video-grid, .capab, .form__row { grid-template-columns: 1fr; }
  .accred__grid--primary .cert, .accred__grid--secondary .cert { flex-direction: column; }
  .accred__grid--primary .cert__preview, .accred__grid--secondary .cert__preview { width: auto; min-height: 0; height: 240px; }
  .catalog__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pcard__media img { inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); }
  .pcard__body { padding: 12px 12px 48px; }
  .pcard__name { font-size: .98rem; }
  .rail { grid-auto-columns: 72%; }
  .stats div { padding-right: 8px; } .stats div + div { padding-left: 12px; }
  .about__media-2 { display: none; }
  .about__media { padding-bottom: 0; }
  .spec > div { grid-template-columns: 1fr; gap: 4px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__cta { padding: 28px 24px; }
  .docv { width: 100vw; height: 100dvh; border-radius: 0; }
  .docv__stage { padding: 12px; }
  .docv__nav { top: auto; bottom: 14px; translate: none; }
  .docv__meta h2 { display: none; }
  .timeline::before { left: 8px; } .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 36px; } .timeline li::before { left: 2px; }
  .kpis dt { font-size: 1.6rem; }
  .chap { grid-template-columns: 40px 1fr auto; padding: 12px; }
  .chap__ico { width: 40px; height: 40px; }
  .disc__play-btn { width: 54px; height: 54px; }
  .disc__play-txt strong { font-size: 1.02rem; }
}
@media (max-width: 380px) { .catalog__grid { grid-template-columns: 1fr; } }
@media print { .topbar, .site-header, .footer, .modal { display: none !important; } }

/* ==========================================================================
   Sélecteur de langue
   ========================================================================== */
.lang { position: relative; }
.lang__btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding-inline: 10px 9px; border-radius: 99px; border: 1.5px solid var(--line-2); background: #fff; color: var(--navy); font-family: var(--ff-head); font-weight: 600; font-size: .8rem; letter-spacing: .04em; transition: border-color .2s, box-shadow .2s, background .2s; }
.lang__btn:hover { border-color: var(--brand); }
.lang__btn[aria-expanded="true"] { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.lang__chev { transition: transform .25s var(--ease); color: var(--muted); }
.lang__btn[aria-expanded="true"] .lang__chev { transform: rotate(180deg); }
.lang__flag { display: inline-block; flex: none; width: 22px; height: 15px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(11,42,74,.12); }
.lang__flag svg { width: 100%; height: 100%; display: block; }
.lang__menu { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 70; min-width: 220px; margin: 0; padding: 8px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-3);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top var(--end, right); transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s; }
.lang__menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.lang__head { padding: 6px 10px 8px; font-family: var(--ff-head); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lang__opt { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 10px; border-radius: var(--r-sm); color: var(--ink); font-size: .92rem; transition: background .15s; }
.lang__opt:hover, .lang__opt:focus-visible { background: var(--bg-2); color: var(--navy); }
.lang__opt.is-on { background: var(--brand-soft); color: var(--navy); font-weight: 600; }
.lang__opt[lang="ar"] .lang__name { font-family: "Cairo", var(--ff-body); font-size: 1rem; }
.lang__short { margin-inline-start: auto; font-family: var(--ff-head); font-size: .72rem; font-weight: 600; color: var(--muted); letter-spacing: .06em; }
.lang__check { color: var(--brand); margin-inline-start: 2px; }
.lang__opt:not(.is-on) .lang__short { margin-inline-end: 18px; }
@media (max-width: 1024px) { .lang__btn { height: 38px; } }
@media (max-width: 700px) {
  .lang__btn { padding-inline: 8px 7px; gap: 5px; }
  .lang__code { display: none; }
  .lang__menu { position: fixed; top: auto; bottom: 12px; inset-inline: 12px; min-width: 0; transform: translateY(12px); padding: 10px; box-shadow: 0 -10px 40px rgba(11,42,74,.25); }
}

/* ==========================================================================
   Arabe / RTL
   ========================================================================== */
[dir="rtl"] { --dir: -1; --start: right; --end: left; }
:lang(ar) body, [dir="rtl"] body { font-family: "Cairo", var(--ff-body); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4,
[dir="rtl"] .btn, [dir="rtl"] .nav__link, [dir="rtl"] .eyebrow, [dir="rtl"] .hero__card-title { font-family: "Cairo", var(--ff-head); letter-spacing: 0; }
[dir="rtl"] h1 { line-height: 1.3; font-weight: 700; }
[dir="rtl"] h2 { line-height: 1.35; }
[dir="rtl"] .eyebrow { text-transform: none; font-size: .9rem; }
[dir="rtl"] .eyebrow::before { content: "//"; }
/* Icônes directionnelles en miroir */
[dir="rtl"] svg[data-i="arrow-right"], [dir="rtl"] svg[data-i="arrow-up-right"],
[dir="rtl"] svg[data-i="chevron-left"], [dir="rtl"] svg[data-i="chevron-right"] { transform: scaleX(-1); }
[dir="rtl"] .btn:hover svg[data-i="arrow-right"]:last-child { transform: scaleX(-1) translateX(2px); }
[dir="rtl"] .link-arrow:hover svg[data-i="arrow-right"] { transform: scaleX(-1) translateX(3px); }
/* Hero : voile inversé (texte à droite, carte à gauche) */
[dir="rtl"] .hero__media::after { background:
  linear-gradient(270deg, rgba(11,27,43,.95) 0%, rgba(11,27,43,.93) 40%, rgba(11,27,43,.88) 54%, rgba(10,37,64,.66) 66%, rgba(10,37,64,.38) 80%, rgba(10,37,64,.46) 100%),
  linear-gradient(0deg, rgba(11,27,43,.75) 0%, rgba(11,27,43,0) 32%); }
/* Photo en miroir : l'opératrice passe du côté de la carte, le logo machine sous le voile sombre */
[dir="rtl"] .hero__img { scale: -1 1; }
[dir="rtl"] .hero__card { justify-self: start; }
[dir="rtl"] .hero h1 span { display: inline-block; }
/* Éléments dont le sens doit rester gauche→droite */
[dir="rtl"] .marquee, [dir="rtl"] .disc__progress, [dir="rtl"] [dir="ltr"] .marquee { direction: ltr; }
[dir="rtl"] .timeline::before { left: auto; right: 92px; }
[dir="rtl"] .timeline li::before { left: auto; right: 86px; }
[dir="rtl"] .rail:not([dir="ltr"]) { direction: rtl; }
[dir="rtl"] a[dir="ltr"] { unicode-bidi: isolate; }
[dir="rtl"] .hero__card-code, [dir="rtl"] .cert__code { unicode-bidi: plaintext; }
/* Les contenus non traduits gardent la typographie et le sens latins */
[data-untranslated] { --dir: 1; --start: left; --end: right; font-family: var(--ff-body); }
[data-untranslated] h1, [data-untranslated] h2, [data-untranslated] h3, [data-untranslated] .btn, [data-untranslated] .eyebrow { font-family: var(--ff-head); }
[data-untranslated] .eyebrow { text-transform: uppercase; font-size: .78rem; letter-spacing: .12em; }
[data-untranslated] svg[data-i] { transform: none; }
@media (max-width: 1024px) {
  [dir="rtl"] .hero__card { justify-self: stretch; }
}
@media (max-width: 700px) {
  [dir="rtl"] .timeline::before { right: 8px; } [dir="rtl"] .timeline li { padding-left: 0; padding-right: 36px; } [dir="rtl"] .timeline li::before { right: 2px; }
}

/* Locaux & stockage (page usine) */
.facilities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.facility { background: #fff; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; }
.facility:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.facility img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.facility__body { display: flex; flex-direction: column; gap: 6px; padding: 18px; }
.facility__body .quick__ico { background: var(--brand-soft); margin-top: -40px; border: 3px solid #fff; }
.facility__body strong { font-family: var(--ff-head); font-weight: 600; color: var(--ink); }
.facility__body small { font-size: .86rem; line-height: 1.5; }
@media (max-width: 1024px) { .facilities { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .facilities { grid-template-columns: 1fr; } }
/* Chiffres et références : toujours lus de gauche à droite */
[dir="rtl"] .cert__facts dd, [dir="rtl"] .kpis dt { unicode-bidi: plaintext; }
[dir="rtl"] .cert__facts dd[dir="ltr"] { text-align: right; }
