/* =========================================================================
   AGC — Design system 2027
   Palette institutionnelle (cahier des charges § 2) + teintes dérivées pour
   l'accessibilité. Propriétés logiques (inline/block) pour le support RTL.
   ========================================================================= */

:root {
  --green-900: #10372D;
  --green-800: #163F32;
  --green-700: #1F5143;
  --green-200: #B9CCC2;
  --green-100: #DCE6E0;
  --ink: #17211F;
  --ink-muted: #46524E;      /* 8.1:1 sur blanc */
  --stone: #E9E7E1;
  --stone-50: #F6F5F1;
  --white: #FFFFFF;
  --line: rgba(23, 33, 31, .14);
  --line-strong: rgba(23, 33, 31, .28);
  --on-dark: #FFFFFF;
  --on-dark-muted: #C9D6CF;  /* 8.9:1 sur #10372D */
  --focus: #C27C0E;

  --font-serif: "Source Serif 4 Variable", "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Inter Variable", Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: var(--font-serif);

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.375rem, 1.2rem + .7vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  --step-4: clamp(2.125rem, 1.5rem + 2.8vw, 3.75rem);

  --gutter: 16px;
  --wrap: 1200px;
  --narrow: 760px;
  --radius: 2px;
  --header-h: 72px;
  --section: clamp(4rem, 3rem + 4vw, 7rem);
  color-scheme: light;
}

@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }

:lang(ar) {
  --font-serif: "IBM Plex Sans Arabic", "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-sans: "IBM Plex Sans Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}
:lang(hi) {
  --font-serif: "Inter Variable", "Noto Sans Devanagari Variable", "Nirmala UI", "Kohinoor Devanagari", sans-serif;
  --font-sans: "Inter Variable", "Noto Sans Devanagari Variable", "Nirmala UI", "Kohinoor Devanagari", sans-serif;
}
:lang(zh-Hans) {
  --font-serif: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
:lang(ar) body, body:lang(ar) { line-height: 1.8; }
:lang(zh-Hans) body, body:lang(zh-Hans) { line-height: 1.8; letter-spacing: .01em; }
:lang(hi) body, body:lang(hi) { line-height: 1.75; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 1px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
:lang(ar) :is(h1, h2, h3), :lang(zh-Hans) :is(h1, h2, h3), :lang(hi) :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.35; }
:lang(ru) :is(h1, h2) { hyphens: auto; }
h1 { font-size: var(--step-4); font-weight: 500; }
h2 { font-size: var(--step-3); font-weight: 500; }
h3 { font-size: var(--step-1); font-family: var(--font-sans); font-weight: 600; letter-spacing: 0; line-height: 1.35; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }

.skip { position: absolute; inset-inline-start: 16px; top: -100px; z-index: 100; background: var(--white); color: var(--ink); padding: 12px 16px; font-weight: 600; }
.skip:focus { top: 12px; }

.preprod {
  background: #FFF4D6; color: #4A3A00; font-size: var(--step--1); text-align: center;
  padding: 6px var(--gutter); border-bottom: 1px solid #E8D48A;
}

/* ---------- Typo utilitaires ---------- */
.kicker {
  font-family: var(--font-sans); font-size: .78rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--green-700); margin: 0 0 1.25rem;
}
:lang(ar) .kicker, :lang(zh-Hans) .kicker, :lang(hi) .kicker { letter-spacing: .04em; font-size: .85rem; }
.lead { font-size: clamp(1.125rem, 1rem + .45vw, 1.3125rem); line-height: 1.6; color: var(--ink-muted); max-width: 46em; }
.muted { color: var(--ink-muted); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .75em 1.4em; border: 1px solid transparent; border-radius: var(--radius);
  font: 600 1rem/1.25 var(--font-sans); text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--green-900); color: var(--white); }
.btn-primary:hover { background: var(--green-700); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.on-dark .btn-primary, .btn-light { background: var(--white); color: var(--green-900); }
.on-dark .btn-primary:hover, .btn-light:hover { background: var(--stone); }
.on-dark .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.45); }
.on-dark .btn-ghost:hover { border-color: var(--white); }
.arrow { display: inline-block; transition: transform .2s ease; }
[dir="rtl"] .arrow { transform: scaleX(-1); }
.link-arrow { display: inline-flex; gap: .5em; align-items: baseline; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow:hover .arrow { transform: translateX(3px); }
[dir="rtl"] .link-arrow:hover .arrow { transform: scaleX(-1) translateX(3px); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255,255,255,.9); backdrop-filter: blur(8px); } }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo img { height: 46px; width: auto; }
@media (max-width: 1199px) { .logo img { height: 38px; } }
.site-footer .logo img { height: 50px; }
.gate-brand img { height: clamp(52px, 2rem + 4.5vw, 92px); width: auto; max-width: 100%; }
.logo-mark {
  display: grid; place-items: center; width: 44px; height: 44px; background: var(--green-900); color: var(--white);
  font: 600 1rem/1 "Source Serif 4 Variable", Georgia, serif; letter-spacing: .06em;
}
.logo-text { font: 600 .8125rem/1.2 "Inter Variable", Inter, system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.logo-text span { display: block; font-weight: 400; color: var(--ink-muted); letter-spacing: .1em; }

.site-nav { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-link, .nav-group > summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  font-size: .9375rem; font-weight: 500; text-decoration: none; color: var(--ink); cursor: pointer; list-style: none;
  border-radius: var(--radius);
}
.nav-group > summary::-webkit-details-marker, .lang > summary::-webkit-details-marker { display: none; }
.nav-link:hover, .nav-group > summary:hover { background: var(--stone-50); }
.nav-link[aria-current="page"], .nav-group.is-current > summary { box-shadow: inset 0 -2px 0 var(--green-900); }
.chev { width: 10px; height: 10px; transition: transform .2s ease; }
details[open] > summary .chev { transform: rotate(180deg); }
.nav-group { position: relative; }
.mega {
  position: absolute; top: calc(100% + 13px); inset-inline-start: -16px; z-index: 60;
  background: var(--white); border: 1px solid var(--line); box-shadow: 0 24px 48px -24px rgba(16,55,45,.25);
  padding: 28px; display: grid; gap: 32px; min-width: 300px;
}
.mega-2 { grid-template-columns: 1.15fr 1fr; width: min(680px, 90vw); }
.mega-col h2 { font: 600 .75rem/1.2 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--green-700); margin-bottom: 12px; }
.mega-col ul { list-style: none; display: grid; gap: 2px; }
.mega a { display: block; padding: 8px 10px; margin-inline: -10px; text-decoration: none; border-radius: var(--radius); }
.mega a:hover { background: var(--stone-50); }
.mega a strong { display: block; font-weight: 600; font-size: .9375rem; }
.mega a small { display: block; color: var(--ink-muted); font-size: .8125rem; line-height: 1.45; margin-top: 2px; }
.mega-feature { background: var(--green-900); color: var(--white); padding: 20px; margin: -8px; }
.mega-feature h2 { color: var(--on-dark-muted); }
.mega-feature a:hover { background: rgba(255,255,255,.08); }
.mega-feature a small { color: var(--on-dark-muted); }

.lang { position: relative; }
.lang > summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; cursor: pointer; list-style: none;
  font-size: .8125rem; font-weight: 600; letter-spacing: .06em; border-radius: var(--radius);
}
.lang > summary:hover { background: var(--stone-50); }
.lang ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 13px); z-index: 60; list-style: none; min-width: 180px;
  background: var(--white); border: 1px solid var(--line); box-shadow: 0 24px 48px -24px rgba(16,55,45,.25); padding: 8px;
}
.lang a { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; text-decoration: none; border-radius: var(--radius); }
.lang a:hover { background: var(--stone-50); }
.lang a[aria-current="true"] { font-weight: 600; background: var(--stone-50); }
.lang a span { color: var(--ink-muted); font-size: .75rem; letter-spacing: .08em; }
.header-cta { margin-inline-start: 8px; min-height: 44px; padding: .6em 1.1em; font-size: .9375rem; }
.nav-toggle { display: none; }

@media (max-width: 1199px) {
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; margin-inline-start: auto; min-height: 44px; padding: 0 14px;
    background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius); font: 600 .9375rem var(--font-sans); color: var(--ink); cursor: pointer;
  }
  .nav-toggle-icon { width: 18px; height: 10px; position: relative; }
  .nav-toggle-icon::before, .nav-toggle-icon::after { content: ""; position: absolute; inset-inline: 0; height: 2px; background: currentColor; transition: transform .2s ease; }
  .nav-toggle-icon::before { top: 0; } .nav-toggle-icon::after { bottom: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { transform: translateY(-4px) rotate(-45deg); }
  .header-inner { flex-wrap: wrap; }
  .site-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 24px; margin: 0; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-link, .nav-group > summary { display: flex; width: 100%; justify-content: space-between; min-height: 52px; font-size: 1.0625rem; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 4px; }
  .nav-link[aria-current="page"], .nav-group.is-current > summary { box-shadow: inset 3px 0 0 var(--green-900); }
  [dir="rtl"] .nav-link[aria-current="page"], [dir="rtl"] .nav-group.is-current > summary { box-shadow: inset -3px 0 0 var(--green-900); }
  .mega, .mega-2 { position: static; width: auto; min-width: 0; box-shadow: none; border: 0; padding: 12px 4px 20px; grid-template-columns: 1fr; gap: 20px; }
  .mega-feature { margin: 0; }
  .lang ul { position: static; box-shadow: none; border: 0; padding: 0 0 12px; display: grid; grid-template-columns: 1fr 1fr; }
  .lang > summary { display: flex; width: 100%; justify-content: space-between; min-height: 52px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1rem; padding: 0 4px; }
  .header-cta { margin: 20px 0 0; width: 100%; }
  .logo-text { font-size: .75rem; }
}
@media (max-width: 380px) { .logo-text span { display: none; } }

/* ---------- Héros ---------- */
.hero { position: relative; background: var(--green-900); color: var(--on-dark); overflow: hidden; }
.hero .kicker { color: var(--on-dark-muted); }
.hero-inner { position: relative; z-index: 1; padding-block: clamp(4rem, 3rem + 6vw, 8.5rem) clamp(3.5rem, 2.5rem + 4vw, 6rem); display: grid; gap: 40px; }
.hero h1 { max-width: 15em; color: var(--white); }
.hero .lead { color: var(--on-dark-muted); margin-top: 1.75rem; max-width: 40em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.5rem; }
.hero-sign { border-top: 1px solid rgba(255,255,255,.18); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: var(--step--1); color: var(--on-dark-muted); }
.hero-sign em { font-family: var(--font-serif); font-style: italic; font-size: 1.0625rem; color: var(--white); }
:lang(ar) .hero-sign em, :lang(zh-Hans) .hero-sign em, :lang(hi) .hero-sign em { font-style: normal; }
.hero-art { position: absolute; inset-block: 0; inset-inline-end: -10%; width: 70%; max-width: 900px; opacity: .55; pointer-events: none; }
[dir="rtl"] .hero-art { transform: scaleX(-1); }
@media (max-width: 767px) { .hero-art { width: 140%; inset-inline-end: -60%; opacity: .28; } }

/* En-tête de page intérieure */
.page-head { background: var(--stone-50); border-bottom: 1px solid var(--line); }
.page-head-inner { padding-block: clamp(2.5rem, 2rem + 3vw, 5rem) clamp(2.5rem, 2rem + 2.5vw, 4.5rem); }
.page-head h1 { max-width: 18em; }
.page-head .lead { margin-top: 1.5rem; }
.page-head.is-dark { background: var(--green-900); color: var(--white); border: 0; position: relative; overflow: hidden; }
.page-head.is-dark .kicker, .page-head.is-dark .lead, .page-head.is-dark .crumbs, .page-head.is-dark .crumbs a { color: var(--on-dark-muted); }
.page-head.is-dark .hero-art { opacity: .35; }
.page-head.is-dark .page-head-inner { position: relative; z-index: 1; }
.head-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 12px; }

.crumbs { font-size: var(--step--1); color: var(--ink-muted); margin-bottom: 2rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li:not(:last-child)::after { content: "/"; margin-inline: 10px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.badge-validation { display: inline-block; margin-bottom: 1.25rem; padding: 4px 10px; background: #FFF4D6; color: #4A3A00; font-size: .8125rem; font-weight: 600; border: 1px solid #E8D48A; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--line); }
.section.alt { background: var(--stone-50); border-top: 0; }
.section.alt + .section { border-top: 0; }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); max-width: 48em; }
.section-head h2 { max-width: 20em; }
.section-head .lead { margin: 0; }

.on-dark { background: var(--green-900); color: var(--on-dark); }
.on-dark .kicker, .on-dark .muted { color: var(--on-dark-muted); }

/* Grille de cartes */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid > * { background: var(--white); }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
/* Grilles incomplètes : la dernière carte occupe l'espace restant (aucune case vide) */
@media (min-width: 768px) and (max-width: 1099px) { .grid-3 > :last-child:nth-child(odd), .grid-4 > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 768px) { .grid-2 > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
/* Actualités : toutes les cartes gardent la même taille, quel que soit le nombre d'analyses affichées */
.insights-grid > .insight-card { grid-column: auto !important; }
/* Pas de case grise quand la dernière rangée est incomplète : chaque carte porte sa bordure (chevauchement de 1 px) */
.insights-grid { gap: 0; background: transparent; border: 0; padding: 1px 0 0 1px; }
.insights-grid > .insight-card { border: 1px solid var(--line); margin: -1px 0 0 -1px; }
@media (min-width: 1100px) { .grid-3 > :last-child:nth-child(3n+2) { grid-column: span 2; } .grid-3 > :last-child:nth-child(3n+1) { grid-column: 1 / -1; } }
.card { padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); display: flex; flex-direction: column; gap: 12px; position: relative; }
.card h3 { font-size: 1.1875rem; }
.card p { color: var(--ink-muted); font-size: 1rem; }
.card-link { text-decoration: none; transition: background-color .2s ease; }
.card-link:hover { background: var(--stone-50); }
.card-link .link-arrow { margin-top: auto; padding-top: 8px; border: 0; font-size: .9375rem; color: var(--green-900); }
.card-num { font: 500 .875rem/1 var(--font-sans); color: var(--green-700); letter-spacing: .08em; }
.card-link:hover .arrow { transform: translateX(3px); }
[dir="rtl"] .card-link:hover .arrow { transform: scaleX(-1) translateX(3px); }

.domain-card { min-height: 280px; }
.domain-card h3 { font-family: var(--font-head); font-size: var(--step-2); font-weight: 500; }
:lang(ar) .domain-card h3, :lang(zh-Hans) .domain-card h3 { font-weight: 600; }
.domain-card.is-feature { background: var(--green-900); color: var(--white); }
.domain-card.is-feature p, .domain-card.is-feature .card-num { color: var(--on-dark-muted); }
.domain-card.is-feature .link-arrow { color: var(--white); }
.domain-card.is-feature:hover { background: var(--green-800); }
.also { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .9375rem; color: var(--ink-muted); }
.also a { color: var(--ink); }

/* Questions */
.questions { display: grid; gap: 40px; }
@media (min-width: 1000px) { .questions { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; } }
.q-list { list-style: none; counter-reset: q; display: grid; }
.q-list li { counter-increment: q; display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding-block: 22px; border-top: 1px solid var(--line); font-family: var(--font-head); font-size: var(--step-1); line-height: 1.4; }
.q-list li::before { content: counter(q, decimal-leading-zero); font: 500 .875rem/2 var(--font-sans); color: var(--green-700); letter-spacing: .08em; }
.q-outro { margin-top: 24px; font-weight: 600; }

/* Bloc football */
.football-band { display: grid; gap: 48px; }
@media (min-width: 1000px) { .football-band { grid-template-columns: 6fr 5fr; gap: 80px; align-items: center; } }
.football-band h2 { color: var(--white); }
.football-band p { color: var(--on-dark-muted); margin-top: 1.25rem; }
.module-list { list-style: none; counter-reset: m; border-top: 1px solid rgba(255,255,255,.2); }
.module-list li { counter-increment: m; display: flex; gap: 20px; align-items: baseline; padding-block: 16px; border-bottom: 1px solid rgba(255,255,255,.2); font-size: 1.0625rem; }
.module-list li::before { content: counter(m, decimal-leading-zero); color: var(--on-dark-muted); font-size: .8125rem; letter-spacing: .08em; min-width: 24px; }

/* Approche */
.approach { display: grid; gap: 40px; }
@media (min-width: 1000px) { .approach { grid-template-columns: 1fr 1fr; gap: 80px; } }
.step-row { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); counter-reset: s; }
@media (min-width: 600px) { .step-row { grid-template-columns: repeat(4, 1fr); } }
.step-row li { counter-increment: s; background: var(--white); padding: 24px 20px; font-weight: 600; }
.step-row li::before { content: counter(s, decimal-leading-zero); display: block; color: var(--green-700); font-weight: 500; font-size: .8125rem; letter-spacing: .08em; margin-bottom: 28px; }

/* Principes */
.principles { display: grid; gap: 32px; }
@media (min-width: 768px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .principles { grid-template-columns: repeat(4, 1fr); } }
.principle { border-top: 2px solid var(--green-900); padding-top: 20px; }
.principle h3 { margin-bottom: 8px; }
.principle p { color: var(--ink-muted); font-size: 1rem; }

/* Secteurs */
.sector-links { list-style: none; display: grid; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .sector-links { grid-template-columns: repeat(3, 1fr); border-top: 0; gap: 0 32px; } }
.sector-links a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 22px; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--font-head); font-size: var(--step-1); }
@media (min-width: 900px) { .sector-links a { border-top: 1px solid var(--line); } }
.sector-links a:hover { color: var(--green-700); }

/* ---------- Contenu éditorial ---------- */
.content-layout { display: grid; gap: 48px; }
.content-layout > * { min-width: 0; }
@media (min-width: 1100px) { .content-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 96px; } }
.prose { max-width: 46em; }
.block { padding-block: clamp(2.25rem, 1.8rem + 2vw, 3.5rem); border-top: 1px solid var(--line); }
.block:first-child { border-top: 0; padding-top: 0; }
.block > h2 { margin-bottom: 1.25rem; font-size: var(--step-3); }
/* Langues disponibles sous l'auteur et la date d'une analyse */
.article-langs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 14px; font-size: .9375rem; color: var(--ink-muted); }
.article-langs-label { margin-inline-end: 2px; }
.article-langs a { color: var(--green-900); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; padding: 6px 0; }
.article-langs a:hover { text-decoration-thickness: 2px; }
.article-langs strong { color: var(--ink); font-weight: 600; }
/* Lexique de fin d'analyse (« Ce que vous avez appris ») */
.glossary { background: var(--stone-50); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) !important; margin-top: 1.5rem; }
.gloss-grid { display: grid; gap: 12px; align-items: start; }
@media (min-width: 700px) { .gloss-grid { grid-template-columns: 1fr 1fr; } }
.gloss { background: #fff; border: 1px solid var(--line); transition: border-color .2s; }
.gloss[open], .gloss:hover { border-color: var(--green-900); }
.gloss summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; min-height: calc(2.7em + 28px); line-height: 1.35; font-weight: 600; } /* même hauteur pour toutes les cartes, termes sur 1 ou 2 lignes */
.gloss summary::-webkit-details-marker { display: none; }
.gloss summary:focus-visible { outline: 2px solid var(--green-900); outline-offset: 2px; }
.gloss-icon { flex: none; position: relative; width: 14px; height: 14px; }
.gloss-icon::before, .gloss-icon::after { content: ""; position: absolute; inset: 6px 0 auto; height: 2px; background: var(--green-900); transition: transform .2s; }
.gloss-icon::after { transform: rotate(90deg); }
.gloss[open] .gloss-icon::after { transform: rotate(0); }
.gloss p { padding: 0 18px 16px; margin: 0; color: var(--ink-muted); }
/* Articles : pas de traits entre les parties ni entre les puces, l'espacement suffit */
.article-body .block { border-top: 0; padding-block: clamp(1.25rem, 1rem + 1vw, 2rem); }
.article-body .bullets li, .article-body .bullets li:first-child { border: 0; padding-block: 6px; }
.article-body .bullets li::before { top: calc(6px + .8em); }
.article-body .block:not(:has(> h2)) { padding-top: 0; }
.block-intro { color: var(--ink-muted); margin-bottom: 2rem; max-width: 46em; }
.bullets { list-style: none; display: grid; gap: 0; }
.bullets li { position: relative; padding-block: 12px; padding-inline-start: 28px; border-bottom: 1px solid var(--line); }
.bullets li:first-child { border-top: 1px solid var(--line); }
.bullets li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 1.45em; width: 12px; height: 1px; background: var(--green-900); }
@media (min-width: 900px) { .bullets.two-col { grid-template-columns: 1fr 1fr; column-gap: 40px; } .bullets.two-col li:nth-child(2) { border-top: 1px solid var(--line); } }
.outro { margin-top: 1.25rem; color: var(--ink-muted); font-size: 1rem; }
.note { background: var(--stone-50); border-inline-start: 3px solid var(--green-900); padding: 24px 28px; }
.note h2 { font-size: var(--step-2) !important; margin-bottom: .75rem !important; }
.note p { color: var(--ink-muted); }

.modules { list-style: none; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 768px) { .modules { grid-template-columns: repeat(2, 1fr); } .modules > li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.modules li { background: var(--white); padding: 28px; }
.modules .num { display: block; font-size: .8125rem; letter-spacing: .1em; color: var(--green-700); margin-bottom: 16px; font-weight: 500; }
.modules h3 { margin-bottom: 8px; }
.modules p { color: var(--ink-muted); font-size: 1rem; }

.steps { list-style: none; display: grid; counter-reset: st; }
.steps > li { counter-increment: st; display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding-block: 28px; border-top: 1px solid var(--line); }
.steps > li:last-child { border-bottom: 1px solid var(--line); }
.steps > li::before { content: counter(st, decimal-leading-zero); font: 500 1.75rem/1 var(--font-serif); color: var(--green-700); }
.steps h2, .steps h3 { font-size: var(--step-2); margin-bottom: .5rem; }
.steps h3 { font-family: var(--font-head); font-weight: 500; }
.steps p { color: var(--ink-muted); }

.feature { background: var(--green-900); color: var(--white); padding: clamp(1.75rem, 1.4rem + 1.5vw, 3rem); margin-block: clamp(2.25rem, 1.8rem + 2vw, 3.5rem); }
.feature h2 { color: var(--white); font-size: var(--step-3); margin-bottom: 1rem; }
.feature p { color: var(--on-dark-muted); }
.feature .link-arrow { margin-top: 1.5rem; color: var(--white); }
.block-more { margin-top: 1.25rem; }

.figure-table { margin: 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); }
.figure-table table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 460px; }
.figure-table caption { text-align: start; font-weight: 600; padding: 0 0 12px; caption-side: top; }
.figure-table th, .figure-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: start; }
.figure-table td:not(:first-child), .figure-table th:not(:first-child) { text-align: end; white-space: nowrap; }
.figure-table--text td:not(:first-child), .figure-table--text th:not(:first-child) { text-align: start; white-space: normal; }
.figure-table--text th[scope="row"] { min-width: 150px; }
.figure-table thead th { background: var(--stone-50); font-size: .875rem; letter-spacing: .02em; }
.figure-table tbody tr:last-child > * { border-bottom: 0; }
.figure-table figcaption { font-size: .875rem; color: var(--ink-muted); margin-top: 12px; }
.figure-table bdi { unicode-bidi: isolate; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 24px; padding-block: 22px; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--font-sans); color: var(--green-700); flex-shrink: 0; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding-bottom: 24px; color: var(--ink-muted); max-width: 46em; }

/* Colonne latérale */
.aside-box { position: sticky; top: calc(var(--header-h) + 32px); border-top: 2px solid var(--green-900); padding-top: 24px; display: grid; gap: 16px; }
.aside-box h2 { font: 600 .75rem/1.2 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--green-700); }
.aside-box ul { list-style: none; display: grid; }
.aside-box li a { display: block; padding-block: 10px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: .9375rem; }
.aside-box li a:hover { color: var(--green-700); }
.aside-box li a[aria-current="page"] { font-weight: 600; color: var(--green-900); }
.aside-cta { background: var(--stone-50); padding: 20px; margin-top: 8px; }
.aside-cta p { font-family: var(--font-head); font-size: 1.125rem; line-height: 1.35; margin-bottom: 16px; }
.aside-cta .btn { width: 100%; font-size: .9375rem; }

/* Bandeau CTA */
.cta-band { background: var(--green-900); color: var(--white); }
.cta-inner { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1fr auto; gap: 64px; } }
.cta-band h2 { color: var(--white); max-width: 18em; }
.cta-mail { margin-top: 12px; color: var(--on-dark-muted); font-size: .9375rem; }
.cta-mail a { color: var(--white); }

/* Analyses */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button { min-height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); background: var(--white); border-radius: 999px; font: 500 .9375rem var(--font-sans); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--green-900); border-color: var(--green-900); color: var(--white); }
.insight-card .meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .8125rem; color: var(--ink-muted); letter-spacing: .02em; }
.chip { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--green-700); }
:lang(ar) .chip, :lang(zh-Hans) .chip { letter-spacing: .02em; }
.insight-card h3 { font-family: var(--font-head); font-size: var(--step-2); font-weight: 500; line-height: 1.25; }
:lang(ar) .insight-card h3, :lang(zh-Hans) .insight-card h3 { font-weight: 600; }
.insight-card .card-note { font-size: .8125rem; font-style: italic; }
:lang(ar) .insight-card .card-note, :lang(zh-Hans) .insight-card .card-note, :lang(hi) .insight-card .card-note { font-style: normal; }
.insight-card[hidden] { display: none; }

.article-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 2rem; font-size: .9375rem; color: var(--ink-muted); }
.article-meta strong { color: var(--ink); font-weight: 600; }
.disclaimer { margin-top: 2.5rem; padding: 20px 24px; border: 1px solid var(--line); font-size: .9375rem; color: var(--ink-muted); }
.sources { margin-top: 2rem; font-size: .9375rem; }
.sources h2 { font: 600 .75rem/1.2 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--green-700); margin-bottom: 12px; }
.sources ol { padding-inline-start: 1.2em; }
.sources a { word-break: break-word; }

/* Contact */
.contact-layout { display: grid; gap: 56px; }
@media (min-width: 1000px) { .contact-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 96px; } }
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; gap: 22px; }
@media (min-width: 700px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 600; font-size: .9375rem; }
.field .opt { font-weight: 400; color: var(--ink-muted); }
.req { color: #8A2B12; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  font: 400 1rem/1.5 var(--font-sans); color: var(--ink); background: var(--white);
}
.field textarea { min-height: 170px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 40px; }
[dir="rtl"] .field select { background-position: 20px 55%, 15px 55%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.field .help { font-size: .875rem; color: var(--ink-muted); }
.field [aria-invalid="true"] { border-color: #A3341A; border-width: 2px; }
.error-msg { color: #8A2B12; font-size: .875rem; font-weight: 600; }
.error-msg:empty { display: none; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: .9375rem; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--green-900); }
.hp { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-summary { padding: 16px 20px; background: #FBEDEA; border-inline-start: 3px solid #A3341A; color: #5C1D0E; font-weight: 600; }
.form-summary[hidden] { display: none; }
.form-summary.is-info { background: var(--green-100); border-color: var(--green-900); color: var(--green-900); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-actions .btn[disabled] { opacity: .7; cursor: progress; }
.form-alt { font-size: .9375rem; color: var(--ink-muted); }
.contact-card { background: var(--stone-50); padding: 32px; display: grid; gap: 24px; align-self: start; }
.contact-card h2 { font-size: var(--step-2); }
.contact-card dl { margin: 0; display: grid; gap: 16px; }
.contact-card dt { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green-700); }
.contact-card dd { margin: 4px 0 0; }
.contact-card ol { padding-inline-start: 1.2em; display: grid; gap: 8px; color: var(--ink-muted); font-size: .9375rem; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* Légal */
.legal-section { padding-block: 28px; border-top: 1px solid var(--line); }
.legal-section h2 { font-size: var(--step-2); margin-bottom: 12px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #D3DAD7; font-size: .9375rem; }
.footer-top { padding-block: 64px 48px; display: grid; gap: 40px; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px; } }
.site-footer .logo { color: var(--white); }
.site-footer .logo-mark { background: var(--white); color: var(--ink); }
.site-footer .logo-text span { color: #AAB5B1; }
.footer-tag { font-family: var(--font-serif); font-size: 1.25rem; color: var(--white); margin-top: 24px; line-height: 1.35; }
:lang(ar) .footer-tag, :lang(zh-Hans) .footer-tag { font-weight: 600; }
.footer-about { margin-top: 12px; color: #AAB5B1; max-width: 30em; }
.site-footer h2 { font: 600 .75rem/1.2 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: #AAB5B1; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: #E9EEEC; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.footer-langs { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-block: 24px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-langs a[aria-current="true"] { color: var(--white); font-weight: 600; text-decoration: underline; }
.footer-bottom { padding-block: 24px 40px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; color: #AAB5B1; font-size: .8125rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- Écran de langue ---------- */
.gate { min-height: 100vh; min-height: 100dvh; display: grid; background: var(--green-900); color: var(--white); position: relative; overflow: hidden; }
.gate .hero-art { opacity: .4; }
.gate-inner { position: relative; z-index: 1; display: grid; align-content: center; gap: 40px; padding-block: 64px; }
.gate .logo { color: var(--white); }
.gate .logo-mark { background: var(--white); color: var(--green-900); width: 56px; height: 56px; font-size: 1.25rem; }
.gate-brand { font: 500 clamp(2rem, 1.3rem + 3.2vw, 4rem)/1.1 "Source Serif 4 Variable", Georgia, serif; letter-spacing: .02em; margin: 0; color: var(--white); }
.gate-kicker { font-size: .8125rem; font-weight: 600; letter-spacing: .18em; color: var(--on-dark-muted); margin: 0 0 16px; }
.gate-line { font-size: 1.0625rem; color: var(--on-dark-muted); margin-top: 28px; letter-spacing: .04em; }
.gate-instruction { font-size: 1rem; color: var(--white); margin-bottom: 16px; font-weight: 500; }
.gate-langs { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.18); }
@media (min-width: 700px) { .gate-langs { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .gate-langs { grid-template-columns: repeat(8, 1fr); } }
.gate-langs a { display: flex; flex-direction: column; gap: 6px; padding: 22px 20px; background: var(--green-900); text-decoration: none; font-size: 1.25rem; font-weight: 500; transition: background-color .2s ease; }
.gate-langs a:hover { background: var(--green-700); }
.gate-langs a span { font-size: .75rem; letter-spacing: .14em; color: var(--on-dark-muted); font-family: "Inter Variable", Inter, sans-serif; }
.gate-small { color: var(--on-dark-muted); font-size: .9375rem; }

/* 404 */
.notfound { padding-block: var(--section); }
.notfound ul { list-style: none; display: grid; gap: 20px; margin-top: 2rem; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Impression ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .preprod, .hero-art, .aside-box { display: none !important; }
  .hero, .page-head.is-dark, .on-dark, .feature { background: none !important; color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* ---------- Cas clients ---------- */
.grid-1 { grid-template-columns: 1fr; }
.case-card { display: grid; gap: 28px; }
@media (min-width: 900px) { .case-card.is-wide { grid-template-columns: minmax(0, 1fr) 300px; align-items: center; gap: 56px; } }
.case-card-main { display: flex; flex-direction: column; gap: 12px; }
.case-card .meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .8125rem; color: var(--ink-muted); }
.case-card h3 { font-family: var(--font-head); font-size: var(--step-2); font-weight: 500; line-height: 1.25; }
:lang(ar) .case-card h3, :lang(zh-Hans) .case-card h3 { font-weight: 600; }
.case-card-kpi { display: grid; gap: 4px; padding: 24px; background: var(--green-900); color: var(--white); }
.case-card-kpi .kpi-value { font: 500 2.75rem/1 var(--font-serif); font-variant-numeric: tabular-nums; }
.case-card-kpi .kpi-label { font-weight: 600; margin-top: 8px; }
.case-card-kpi .kpi-sub { font-size: .875rem; color: var(--on-dark-muted); }
.card-link.case-card:hover .case-card-kpi { background: var(--green-800); }
.kpi-band { background: var(--green-800); color: var(--white); border-top: 1px solid rgba(255,255,255,.12); }
.kpis { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1000px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { padding: 28px 24px 28px 0; border-bottom: 1px solid rgba(255,255,255,.14); display: grid; gap: 10px; align-content: start; }
[dir="rtl"] .kpi { padding: 28px 0 28px 24px; }
@media (min-width: 1000px) { .kpi { border-bottom: 0; border-inline-end: 1px solid rgba(255,255,255,.14); padding-inline: 24px; } .kpi:first-child { padding-inline-start: 0; } .kpi:last-child { border-inline-end: 0; } }
.kpi dt { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
:lang(ar) .kpi dt, :lang(zh-Hans) .kpi dt { letter-spacing: .02em; font-size: .875rem; }
.kpi dd { margin: 0; display: grid; gap: 6px; }
.kpi .kpi-value { font: 500 clamp(2rem, 1.5rem + 1.6vw, 2.875rem)/1 var(--font-serif); font-variant-numeric: tabular-nums; color: var(--white); }
.kpi .kpi-sub { font-size: .875rem; color: var(--on-dark-muted); }
.facts { margin: 0; display: grid; gap: 14px; }
.facts dt { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
:lang(ar) .facts dt, :lang(zh-Hans) .facts dt { letter-spacing: 0; }
.facts dd { margin: 2px 0 0; font-size: .9375rem; }
.principles-3 { grid-template-columns: 1fr; }
@media (min-width: 900px) { .principles-3 { grid-template-columns: repeat(3, 1fr); } }

/* Liens vers documents et pages liées (mentions légales, certification) */
.doc-links { list-style: none; display: grid; gap: 10px; margin-top: 16px; }
.doc-links .link-arrow { font-size: .9375rem; }
.note .doc-links { margin-top: 14px; }

/* ---------- Présence (globe, en-tête de la page Contact) ---------- */
.contact-head { --globe-dot: rgba(201, 214, 207, .6); --globe-rim: rgba(255, 255, 255, .16); --globe-pin: #FFFFFF; }
.contact-head-inner { display: grid; gap: 28px; grid-template-areas: "text" "globe" "presence"; }
.contact-head-text { grid-area: text; } .presence-globe { grid-area: globe; } .presence-box { grid-area: presence; }
@media (min-width: 1000px) { .contact-head-inner { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-areas: "text globe" "presence globe"; column-gap: 48px; row-gap: 0; align-items: center; } }
.presence-box { padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.18); }
@media (min-width: 1000px) { .presence-box { margin-top: 2rem; align-self: start; } }
.presence-box h2 { font: 600 .75rem/1.2 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: .75rem; }
:lang(ar) .presence-box h2, :lang(zh-Hans) .presence-box h2 { letter-spacing: .02em; font-size: .875rem; }
.presence-box p { color: var(--on-dark-muted); font-size: .9375rem; max-width: 40em; }

/* Téléphone : indicatif pays + numéro */
.phone-group { display: flex; gap: 8px; direction: ltr; }
.phone-group input { flex: 1; min-width: 0; }
.phone-country { position: relative; flex: 0 0 auto; min-width: 104px; }
.phone-flag { display: none; }
.js .phone-flag { display: flex; align-items: center; gap: 8px; height: 100%; min-height: 50px; padding: 0 30px 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white); font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.phone-flag .emoji { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 1.15rem; line-height: 1; }
.phone-country select { width: 100%; min-height: 50px; border: 1px solid var(--line-strong); border-radius: var(--radius); font: inherit; background: var(--white); color: var(--ink); max-width: 9rem; }
.js .phone-country select { position: absolute; inset: 0; opacity: 0; cursor: pointer; max-width: none; }
.js .phone-country:focus-within .phone-flag { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }

/* ---------- Globe interactif (repris du site personnel de Lakhdar Allioua) ---------- */
.contact-head .presence-globe, .contact-head .presence-box {
  --ink: #fff; --ink-3: #fff; --line: rgba(255, 255, 255, 0.16); --line-2: rgba(255, 255, 255, 0.32);
  --accent: #fff; --soft: #fff; --radius: 3px; --green: #003b2a; --green-deep: #001f17;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 14px -8px rgba(0, 0, 0, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1); --ease-cam: cubic-bezier(0.16, 1, 0.3, 1); --band: 180px; --sans: var(--font-sans);
}
.presence-globe { position: relative; }
:where(.globe, .cities) button { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; }
.globe-reset[hidden] { display: none !important; }
.cities { list-style: none; padding: 0; }
@keyframes gmPulse { 0% { transform: scale(0.5); opacity: 0.9; } 100% { transform: scale(2.4); opacity: 0; } }
/* Globe : cartographie réelle, points lumineux */
.globe { position: relative; }
.globe-stage {
  position: relative; width: min(100%, 700px, max(360px, calc(100vh - var(--band) - 120px))); aspect-ratio: 1; margin-inline: auto;
  opacity: 0; transform: translate3d(0, 14px, 0) scale(0.95); touch-action: pan-y;
  transition: opacity 1s var(--ease), transform 1.2s var(--ease-cam);
}
.globe.is-ready .globe-stage, .globe.is-fallback .globe-stage, html:not(.js) .globe-stage { opacity: 1; transform: none; }
.globe-canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; touch-action: pan-y; cursor: grab; }
.globe-stage.is-dragging .globe-canvas { cursor: grabbing; }
.globe-shadow {
  position: absolute; left: 20%; right: 20%; bottom: -1%; height: 6%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(10, 22, 48, 0.22), rgba(10, 22, 48, 0.06) 60%, transparent); filter: blur(5px);
}
.globe.is-fallback .globe-canvas, html:not(.js) .globe-canvas, .globe.is-fallback .globe-markers, html:not(.js) .globe-markers { display: none; }
.globe.is-fallback .globe-stage::before, html:not(.js) .globe-stage::before {
  content: ""; position: absolute; inset: 5%; border-radius: 50%; background: radial-gradient(circle at 32% 30%, #2a4a7c 0%, #152b4f 50%, #0a1630 100%);
}
.globe-markers { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
/* Zone tactile large (44 px) autour d'un point lumineux */
.gm {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  display: grid; place-items: center; pointer-events: auto; cursor: pointer; touch-action: pan-y; transition: opacity 0.3s;
}
.gm.is-hidden { opacity: 0; pointer-events: none; }
.gm:focus-visible { outline: 2px solid #fff; outline-offset: -8px; }
.gm-dot {
  position: relative; width: 8px; height: 8px; border-radius: 50%; background: #ffffff;
  box-shadow: 0 0 0 1.5px rgba(205, 225, 255, 0.85), 0 0 10px 3px rgba(175, 210, 255, 0.75), 0 0 22px 6px rgba(140, 185, 255, 0.28);
  transition: width 0.35s var(--ease), height 0.35s var(--ease), box-shadow 0.35s;
}
.gm-dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(200, 222, 255, 0.7); animation: gmPulse 3.2s ease-out infinite; }
.gm:hover .gm-dot, .gm:focus-visible .gm-dot { width: 10px; height: 10px; }
.gm.is-selected .gm-dot {
  width: 12px; height: 12px;
  box-shadow: 0 0 0 2px #fff, 0 0 14px 5px rgba(190, 220, 255, 0.95), 0 0 34px 12px rgba(140, 185, 255, 0.45);
}
.gm.is-selected .gm-dot::after { border-color: rgba(255, 255, 255, 0.9); animation-duration: 2.2s; }
/* Noms sur le globe */
.gm-tag {
  position: absolute; left: 50%; top: 50%; display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; pointer-events: none;
  padding: 4px 9px; border-radius: 8px; background: rgba(8, 18, 38, 0.72); color: #fff; font-size: 12.5px; line-height: 1.25;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.5);
  opacity: 0; transition: opacity 0.25s var(--ease);
}
.gm-tag b { font-weight: 600; }
.gm-country { display: none; color: rgba(255, 255, 255, 0.72); font-size: 12px; }
.gm[data-side="r"] .gm-tag { opacity: 1; transform: translate(13px, -50%); }
.gm[data-side="l"] .gm-tag { opacity: 1; transform: translate(calc(-100% - 13px), -50%); }
.gm[data-side="t"] .gm-tag { opacity: 1; transform: translate(-50%, calc(-100% - 14px)); }
.gm[data-side="b"] .gm-tag { opacity: 1; transform: translate(-50%, 14px); }
.gm:hover .gm-country, .gm:focus-visible .gm-country, .gm.is-selected .gm-country { display: inline; }
.gm:hover, .gm:focus-visible, .gm.is-selected { z-index: 3; }
/* Étiquette de la ville sélectionnée : petite carte claire */
.gm.is-selected .gm-tag { flex-direction: column; gap: 1px; padding: 8px 13px; border-radius: 11px; background: #fff; color: var(--ink); font-size: 15px; box-shadow: 0 8px 26px -10px rgba(0, 0, 0, 0.45); }
.gm.is-selected .gm-country { color: var(--ink-3); font-size: 12.5px; }
.globe-reset {
  position: absolute; top: 6px; inset-inline-end: 6px; z-index: 6; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 15px 0 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow-1); font-size: 13.5px; font-weight: 600; color: var(--ink);
}
.globe-reset svg { width: 17px; height: 17px; }
.globe-reset:hover { border-color: var(--ink); }
/* Présence internationale : liste compacte, même action que les points */
.presence { margin-top: clamp(14px, 2vw, 22px); }
.cities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cities li { display: contents; }
.city {
  display: inline-flex; align-items: baseline; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; text-align: start;
  background: var(--soft); border: 1px solid transparent; transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.city-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.city-country { font-size: 12.5px; color: var(--ink-3); }
.city:hover { border-color: var(--line-2); background: #fff; }
.city[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); }
.city[aria-pressed="true"] .city-name { color: #fff; }
.city[aria-pressed="true"] .city-country { color: rgba(255, 255, 255, 0.66); }
@media (max-width: 760px) {
  .globe-stage { width: 100%; }
  .city { min-height: 44px; }
  .gm-tag { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .gm-dot::after { animation: none; opacity: 0; }
  .globe-stage { transition: opacity 0.3s linear; transform: none; }
}
/* Globe : commandes de zoom */
.globe-zoom { position: absolute; top: 6px; inset-inline-start: 6px; z-index: 6; display: flex; flex-direction: column; border-radius: 14px; background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow-1); overflow: hidden; }
.gz { display: grid; place-items: center; width: 40px; height: 40px; color: var(--ink); transition: background-color 0.2s; }
.gz + .gz { border-top: 1px solid var(--line); }
.gz svg { width: 18px; height: 18px; }
.gz:hover { background: var(--soft); }
.globe.is-fallback .globe-zoom, html:not(.js) .globe-zoom { display: none; }

 
 .globe-reset { font-weight: 600; letter-spacing: 0.005em; }
/* Globe et villes */
.gm-tag { font-family: var(--sans); font-size: 13px; letter-spacing: 0; }
.gm-tag b { font-weight: 600; }
.gm.is-selected .gm-tag { font-size: 15.5px; }
.city-name { font-weight: 600; font-size: 15px; }
.city-country { font-size: 13.5px; }
.city[aria-pressed="true"] .city-country { color: #fff; }
.gm-country { color: #fff; }
.globe-reset { border-radius: var(--radius); box-shadow: none; }
.globe-reset:hover { border-color: var(--accent); color: var(--accent); }
.globe-zoom { border-radius: var(--radius); box-shadow: none; }
.gz:hover { background: #fff; color: var(--accent); }
.city { border-radius: var(--radius); background: #fff; border-color: var(--line-2); }
.city:hover { background: #fff; border-color: var(--accent); }
.city:hover .city-name { color: var(--accent); }
.city[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
/* Globe : cœur blanc lumineux, halo vert discret */
/* Cœur blanc lumineux, halo discret tiré du vert profond */
.gm-dot { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.95), 0 0 8px 3px rgba(255, 255, 255, 0.55), 0 0 18px 7px rgba(40, 130, 95, 0.55); }
.gm-dot::after { border-color: rgba(170, 225, 200, 0.7); }
.gm.is-selected .gm-dot { box-shadow: 0 0 0 2px #fff, 0 0 12px 4px rgba(255, 255, 255, 0.7), 0 0 30px 11px rgba(40, 130, 95, 0.6); }
.gm.is-selected .gm-dot::after { border-color: rgba(200, 240, 220, 0.9); }
.gm-tag { border-radius: var(--radius); }
.gm.is-selected .gm-tag { border-radius: var(--radius); }
.gm.is-selected .gm-country { color: #000; }
.contact-head .city { background: transparent; border-color: rgba(255, 255, 255, 0.32); }
.contact-head .city:hover { background: transparent; border-color: #fff; }
.contact-head .city:hover .city-name { color: #fff; }
.contact-head .city[aria-pressed="true"] { background: #fff; border-color: #fff; }
.contact-head .city[aria-pressed="true"] .city-name, .contact-head .city[aria-pressed="true"] .city-country { color: var(--green-deep); }
.globe-zoom, .globe-reset { background: #fff; border-color: transparent; color: var(--green-deep); }
.gz { color: var(--green-deep); }
.gz + .gz { border-top-color: rgba(0, 31, 23, 0.12); }
.globe-reset:hover, .gz:hover { color: var(--green); border-color: transparent; }
.globe-shadow { background: radial-gradient(closest-side, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.1) 60%, transparent); }
.gm-tag { background: rgba(0, 24, 17, 0.84); }
.gm.is-selected .gm-tag { background: #fff; color: var(--green-deep); }
.gm.is-selected .gm-country { color: var(--green-deep); }
.gm-dot { box-shadow: 0 0 0 1.5px #fff, 0 0 10px 3px rgba(255, 255, 255, 0.6), 0 0 24px 8px rgba(255, 255, 255, 0.16); }
.gm-dot::after { border-color: rgba(255, 255, 255, 0.6); }
.gm.is-selected .gm-dot { box-shadow: 0 0 0 2px #fff, 0 0 14px 5px rgba(255, 255, 255, 0.75), 0 0 34px 12px rgba(255, 255, 255, 0.22); }
.gm.is-selected .gm-dot::after { border-color: rgba(255, 255, 255, 0.9); }
.city { align-items: center; }
.contact-head .city { padding: 0 14px; }
.contact-head .city-name { color: #fff; }
.contact-head .city-country { color: rgba(255, 255, 255, 0.72); }
.contact-head .city[aria-pressed="true"] .city-name, .contact-head .city[aria-pressed="true"] .city-country { color: var(--green-deep); }
.globe-reset, .gz { cursor: pointer; }
.globe-reset { padding: 0 15px 0 12px; }
/* Le nom de la ville est cliquable comme le point (il fait partie du même bouton) */
.gm[data-side] .gm-tag { pointer-events: auto; cursor: pointer; }
.gm.is-hidden .gm-tag { pointer-events: none; }
/* Image d'illustration des articles */
.article-figure { margin: 0 0 clamp(28px, 4vw, 40px); }
.article-figure img { display: block; width: 100%; height: auto; max-height: 340px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--stone-50); }
.article-figure figcaption { margin-top: 10px; font-size: .875rem; color: var(--ink-muted); }
.insight-card.has-img { padding-top: 0; overflow: hidden; }
.insight-card .card-img { display: block; margin: 0 calc(-1 * clamp(1.5rem, 1.2rem + 1vw, 2.25rem)) 6px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--stone-50); }
.insight-card .card-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.insight-card:hover .card-img img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .insight-card .card-img img { transition: none; } }
/* Implantation : villes et drapeaux */
.city-group + .city-group { margin-top: 28px; }
.city-group-h { font-family: var(--font-body, inherit); font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 12px; }
.city-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 700px) { .city-grid { grid-template-columns: repeat(2, 1fr); } }
.city-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; background: var(--white, #fff); }
.city-card .flag { flex: none; width: 40px; height: 30px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); margin-top: 3px; }
.city-card-name { margin: 0 0 4px; font-size: 1.0625rem; color: var(--ink); }
.city-card-name span { color: var(--ink-muted); font-size: .875rem; margin-inline-start: 6px; }
.city-card p:last-child { margin: 0; color: var(--ink-muted); font-size: .9375rem; line-height: 1.55; }
/* Menu Expertises compact : toutes les expertises visibles d'un coup d'œil (2 colonnes + football) */
@media (min-width: 1200px) {
  .mega-2 { width: min(900px, calc(100vw - 2 * var(--gutter) - 240px)); grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; padding: 24px; }
  .mega-2 > .mega-col:first-child ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; row-gap: 4px; }
  .mega-2 .mega-feature ul { gap: 4px; }
}
/* Menu Secteurs : 2 colonnes */
@media (min-width: 1200px) {
  .mega-sectors { width: min(640px, calc(100vw - 2 * var(--gutter) - 360px)); padding: 24px; }
  .mega-sectors ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; row-gap: 4px; }
}
