/*
Theme Name: BDR Modern
Theme URI: https://www.bdr-dz.com/
Author: BDR
Description: Thème institutionnel de la Banque de Développement Régional (BDR) — identité « Abysse & Émeraude » : en-tête en deux niveaux avec tuile logo et bloc Espace client, héros en deux volets avec coin en arche, mosaïque d'univers, galerie panoramique, cours de change automatiques. Trilingue (arabe RTL, français, anglais).
Version: 17.4.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: bdr-modern
*/

/* ==========================================================================
   1. Identité : couleurs, typographie, formes
   --------------------------------------------------------------------------
   Abysse  #062f36  fond sombre (en-tête, héros, pied de page)
   Émeraude #0a7a5c  actions, liens, repères
   Azur    #2b8fae  second accent, survols, focus sur fond clair
   Or      #dba21b  un seul élément fort par écran (Espace client, appels)
   Chaux   #f6f9f8  fonds de sections
   Forme signature : un coin « arche » (quart de cercle) sur les cadres d'image et les pictos.
   ========================================================================== */
:root {
  --abyss: #062f36; --abyss-2: #0a3f48; --abyss-3: #0f5560;
  --emerald: #0a7a5c; --emerald-d: #075d46;
  --azure: #2b8fae; --azure-d: #1a6d88; --azure-tint: #e6f2f5;
  --gold: #dba21b; --gold-hover: #efb938; --gold-ink: #7a5806;
  --chaux: #f6f9f8; --ink: #0f2b31; --muted: #4f6569; --line: #d3e1e2; --white: #fff; --danger: #b42318;
  /* alias conservés pour les gabarits existants */
  --g: var(--emerald); --g-dark: var(--abyss-2); --g-deep: var(--abyss); --g-tint: var(--azure-tint); --g-soft: var(--chaux); --bg: var(--chaux);
  --arch: clamp(56px, 9vw, 150px);
  --container: 1240px; --gutter: 20px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Naskh Arabic", Tahoma, Arial, sans-serif;
  --font-head: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans", "Noto Naskh Arabic", Tahoma, Arial, sans-serif;
  --shadow: 0 10px 30px rgba(6, 47, 54, .10); --shadow-lg: 0 22px 50px rgba(6, 47, 54, .22);
  --focus: var(--azure-d);
  --header-h: 92px;
  --lattice: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2272%22 height=%2272%22 viewBox=%220 0 72 72%22 fill=%22none%22 stroke=%22%23ffffff%22 stroke-opacity=%220.085%22 stroke-width=%221%22%3E%3Cpath d=%22M36.0 6.0 L42.5 20.3 L57.2 14.8 L51.7 29.5 L66.0 36.0 L51.7 42.5 L57.2 57.2 L42.5 51.7 L36.0 66.0 L29.5 51.7 L14.8 57.2 L20.3 42.5 L6.0 36.0 L20.3 29.5 L14.8 14.8 L29.5 20.3Z%22/%3E%3Cpath d=%22M0.0 -18.0 L3.8 -9.2 L12.7 -12.7 L9.2 -3.8 L18.0 0.0 L9.2 3.8 L12.7 12.7 L3.8 9.2 L0.0 18.0 L-3.8 9.2 L-12.7 12.7 L-9.2 3.8 L-18.0 0.0 L-9.2 -3.8 L-12.7 -12.7 L-3.8 -9.2ZM72.0 -18.0 L75.8 -9.2 L84.7 -12.7 L81.2 -3.8 L90.0 0.0 L81.2 3.8 L84.7 12.7 L75.8 9.2 L72.0 18.0 L68.2 9.2 L59.3 12.7 L62.8 3.8 L54.0 0.0 L62.8 -3.8 L59.3 -12.7 L68.2 -9.2ZM0.0 54.0 L3.8 62.8 L12.7 59.3 L9.2 68.2 L18.0 72.0 L9.2 75.8 L12.7 84.7 L3.8 81.2 L0.0 90.0 L-3.8 81.2 L-12.7 84.7 L-9.2 75.8 L-18.0 72.0 L-9.2 68.2 L-12.7 59.3 L-3.8 62.8ZM72.0 54.0 L75.8 62.8 L84.7 59.3 L81.2 68.2 L90.0 72.0 L81.2 75.8 L84.7 84.7 L75.8 81.2 L72.0 90.0 L68.2 81.2 L59.3 84.7 L62.8 75.8 L54.0 72.0 L62.8 68.2 L59.3 59.3 L68.2 62.8Z%22/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 120px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.6; font-size: 16px; text-rendering: optimizeLegibility; }
html[lang="ar"] body { line-height: 1.85; }
img, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--emerald); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--abyss-2); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; color: var(--ink); font-weight: 800; letter-spacing: -.022em; }
h3, h4 { letter-spacing: -.012em; line-height: 1.25; }
html[lang="ar"] :is(h1, h2, h3, h4) { line-height: 1.5; letter-spacing: 0; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.25em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.site-header, .hero, .page-hero, .site-footer, .pano-section, .cta-strip, .login-side, .drawer-top, .quick-grid a:hover, .bento-dark { --focus: var(--gold); }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 1000; background: var(--gold); color: var(--abyss); padding: 10px 16px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 0; }
[hidden] { display: none !important; }
.site-main:focus { outline: none; }

/* icônes */
.ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.ic-lg { width: 26px; height: 26px; }
.ic-arrow { width: 1.1em; height: 1.1em; transition: transform .2s; }
html[dir="rtl"] .ic-arrow { transform: scaleX(-1); }
.ic-back { transform: scaleX(-1); }
html[dir="rtl"] .ic-back { transform: none; }
.ic-chev { width: 1em; height: 1em; transition: transform .2s; }

/* ==========================================================================
   2. Boutons (rectangulaires : le rond est réservé aux icônes)
   ========================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 24px; border-radius: 2px; font: inherit; font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .18s, color .18s, border-color .18s, box-shadow .18s; }
.btn-primary { background: var(--emerald); color: #fff; }
.btn-primary:hover { background: var(--abyss-2); color: #fff; }
.btn-gold { background: var(--gold); color: var(--abyss); }
.btn-gold:hover { background: var(--gold-hover); color: var(--abyss); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: #fff; color: var(--abyss); border-color: #fff; }
.btn-outline { background: #fff; color: var(--emerald-d); border-color: var(--emerald); }
.btn-outline:hover { background: var(--emerald); color: #fff; }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }
.btn-disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }
.btn:hover .ic-arrow { transform: translateX(4px); }
html[dir="rtl"] .btn:hover .ic-arrow { transform: scaleX(-1) translateX(4px); }
.link, .link-more { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.link:hover, .link-more:hover { text-decoration: underline; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--azure-d); text-decoration: underline; cursor: pointer; text-underline-offset: 3px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; transition: background .18s; }
.icon-btn:hover { background: rgba(255, 255, 255, .12); }

/* ==========================================================================
   3. En-tête : tuile logo · bandeau sombre (contact, accès, langues · navigation) · bloc Espace client
   ========================================================================== */
.site-header { background: var(--abyss); color: #fff; position: sticky; top: 0; z-index: 500; }
.hdr-grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: 40px 52px; column-gap: 0; padding: 0; max-width: none; }
.hdr-grid > * { min-width: 0; }
.brand { grid-column: 1; grid-row: 1 / 3; display: flex; align-items: center; justify-content: center; background: #fff; padding: 8px 26px; margin-inline-end: 30px; border-end-end-radius: 34px; position: relative; }
.brand img { width: 98px; height: auto; }
.hdr-util { white-space: nowrap; grid-column: 2; grid-row: 1; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid rgba(255, 255, 255, .13); font-size: 13px; }
.hdr-util a { color: #dcebed; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.hdr-util a:hover { color: var(--gold); }
.hdr-util .ic { width: 15px; height: 15px; }
.util-contact, .util-links, .util-tools { display: flex; align-items: center; gap: 20px; }
.util-links { margin-inline-start: auto; }
.util-open { color: var(--gold) !important; font-weight: 700; }
.util-tools .icon-btn { width: 34px; height: 34px; }
.util-tools .icon-btn .ic { width: 18px; height: 18px; }
.lang-switch { display: inline-flex; }
.lang-switch a { padding: 2px 10px; font-weight: 700; font-size: 12px; letter-spacing: .03em; border-inline-start: 1px solid rgba(255, 255, 255, .22); }
.lang-switch a:first-child { border-inline-start: 0; }
.lang-switch a.is-active { color: var(--gold); }
.espace-client { grid-column: 3; grid-row: 1 / 3; display: flex; align-items: center; gap: 14px; margin-inline-start: 30px; padding: 0 34px; background: var(--gold); color: var(--abyss); text-decoration: none; transition: background .18s; }
.espace-client:hover, .espace-client[aria-current] { background: var(--gold-hover); color: var(--abyss); }
.ec-text { display: flex; flex-direction: column; line-height: 1.2; }
.ec-text strong { font-size: 16px; font-family: var(--font-head); font-weight: 800; }
.ec-text small { font-size: 12.5px; font-weight: 600; opacity: .8; }
.hdr-tools { display: none; }

.main-nav { grid-column: 2; grid-row: 2; }
.main-nav .nav-list.container { display: flex; align-items: stretch; list-style: none; margin: 0; padding: 0; max-width: none; height: 100%; }
.nav-item { display: flex; align-items: stretch; position: static; }
.nav-item:has(.mega-small) { position: relative; }
.nav-link { white-space: nowrap; display: flex; align-items: center; padding-block: 0; padding-inline: 16px 2px; color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 3px solid transparent; transition: border-color .18s; }
.nav-item:not(.has-mega) .nav-link { padding-inline: 16px; }
.nav-item:first-child .nav-link { padding-inline-start: 0; }
.nav-link:hover, .nav-link:focus-visible { color: #fff; }
.nav-toggle { display: flex; align-items: center; padding: 0; padding-inline: 4px 12px; background: transparent; border: 0; border-bottom: 3px solid transparent; color: #fff; cursor: pointer; }
.nav-item:hover .nav-link, .nav-item:focus-within .nav-link, .nav-item.is-current .nav-link, .nav-item.is-open .nav-link,
.nav-item:hover .nav-toggle, .nav-item:focus-within .nav-toggle, .nav-item.is-current .nav-toggle, .nav-item.is-open .nav-toggle { border-bottom-color: var(--gold); }
.nav-toggle[aria-expanded="true"] .ic-chev { transform: rotate(180deg); }

.mega { position: absolute; inset-inline: 0; top: 100%; background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); border-top: 3px solid var(--gold); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s, transform .16s, visibility .16s; z-index: 600; max-height: calc(100vh - 140px); overflow-y: auto; }
.mega-small { inset-inline-end: auto; min-width: 640px; }
.nav-item:hover > .mega, .nav-item:focus-within > .mega, .nav-item.is-open > .mega { opacity: 1; visibility: visible; transform: none; }
.mega-in { padding-block: 28px 10px; }
.mega-cols { display: grid; gap: 30px; }
.mega-cols.cols-1 { grid-template-columns: 1fr; }
.mega-cols.cols-2 { grid-template-columns: repeat(2, 1fr); }
.mega-cols.cols-3 { grid-template-columns: repeat(3, 1fr); }
.mega-cols.cols-4 { grid-template-columns: repeat(4, 1fr); }
.mega-cols.cols-5 { grid-template-columns: repeat(5, 1fr); gap: 22px; }
.mega-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 2px solid var(--abyss); color: var(--abyss); font-family: var(--font-head); font-weight: 800; font-size: 15px; text-decoration: none; line-height: 1.3; }
.mega-head .ic { width: 22px; height: 22px; color: var(--emerald); }
.mega-head:hover { color: var(--emerald-d); }
.mega-list { list-style: none; margin: 0; padding: 0; }
.mega-list .mega-list { padding-inline-start: 14px; margin: 2px 0 6px; border-inline-start: 2px solid var(--azure-tint); }
.mega-list a { display: block; padding: 5px 0; color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.4; }
.mega-list a:hover { color: var(--emerald); text-decoration: underline; }
.mega-list.depth-2 a, .mega-list.depth-3 a { font-size: 13px; color: var(--muted); }
.mega-foot { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 14px; padding: 14px 0 18px; border-top: 1px solid var(--line); }
.mega-foot a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; text-decoration: none; }
.mega-foot a:hover { text-decoration: underline; }

/* tiroir mobile */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(4, 30, 35, .6); z-index: 900; }
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(92vw, 400px); background: #fff; z-index: 910; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: drawer-in .22s ease-out; }
html[dir="rtl"] .drawer { animation-name: drawer-in-rtl; }
@keyframes drawer-in { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes drawer-in-rtl { from { transform: translateX(100%); } to { transform: none; } }
.drawer-top { display: flex; align-items: center; justify-content: space-between; padding: 10px; padding-inline: 20px 14px; background: var(--abyss); color: #fff; }
.drawer-top .icon-btn { color: #fff; }
.drawer-body { overflow-y: auto; padding: 8px 16px 28px; flex: 1; }
.drawer-link, .drawer-group summary { display: flex; align-items: center; gap: 12px; padding: 14px 6px; font-weight: 700; color: var(--abyss); text-decoration: none; border-bottom: 1px solid var(--line); cursor: pointer; list-style: none; }
.drawer-group summary::-webkit-details-marker { display: none; }
.drawer-group summary .ic:first-child, .drawer-link .ic { color: var(--emerald); width: 22px; height: 22px; }
.drawer-group summary .ic-chev { margin-inline-start: auto; }
.drawer-group[open] summary .ic-chev { transform: rotate(180deg); }
.drawer-sub { padding: 6px 4px 14px; background: var(--chaux); }
.drawer-all { display: block; padding: 10px 12px; font-weight: 700; font-size: 14px; color: var(--emerald-d); text-decoration: none; }
.drawer-col { padding: 4px 12px 8px; }
.drawer-head { display: block; padding: 8px 0 4px; font-weight: 700; font-size: 14px; color: var(--abyss); text-decoration: none; }
.drawer .mega-list a { font-size: 14px; padding: 6px 0; }
.drawer-quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 18px 0; background: var(--line); border: 1px solid var(--line); }
.drawer-quick a { display: flex; align-items: center; gap: 8px; padding: 13px 12px; background: #fff; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--abyss); }
.drawer-quick .ic { color: var(--emerald); }
body.drawer-open { overflow: hidden; }

/* recherche */
.search-overlay { position: fixed; inset: 0; z-index: 950; background: rgba(4, 30, 35, .78); display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; }
.search-dialog { width: min(720px, 100%); background: #fff; box-shadow: var(--shadow-lg); overflow: hidden; max-height: 82vh; display: flex; flex-direction: column; border-start-start-radius: 48px; }
.search-top { display: flex; align-items: center; gap: 10px; padding: 8px; padding-inline: 26px 10px; border-bottom: 1px solid var(--line); color: var(--emerald); }
.search-top input { flex: 1; border: 0; font: inherit; font-size: 18px; padding: 14px 0; background: transparent; color: var(--ink); min-width: 0; }
.search-top input:focus { outline: none; box-shadow: none; }
.search-top .icon-btn { color: var(--abyss); }
.search-top .icon-btn:hover { background: var(--azure-tint); }
#bdr-search-results { overflow-y: auto; }
.search-empty { padding: 22px; color: var(--muted); }
.search-result { display: block; padding: 14px 26px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.search-result:hover, .search-result:focus { background: var(--azure-tint); }
.search-result small { display: block; color: var(--gold-ink); font-weight: 700; font-size: 12px; }
.search-result strong { display: block; color: var(--abyss); }
.search-result span { display: block; color: var(--muted); font-size: 14px; }

/* ==========================================================================
   4. Accueil : héros en deux volets, accès rapides, mosaïque, panoramas, repères, actualités
   ========================================================================== */
.hero { position: relative; background: var(--abyss); color: #fff; }
.hero-track { position: relative; height: clamp(460px, 42vw, 580px); overflow: hidden; }
.hero-slide { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; background: var(--abyss) var(--lattice); background-size: 72px; }
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.hero-panel { display: flex; align-items: center; padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))) 48px; padding-block: 40px 96px; }
.hero-copy { max-width: 520px; }
.hero-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; color: var(--gold); font-weight: 700; font-size: 15px; }
.hero-kicker::before { content: ""; width: 34px; height: 3px; background: var(--gold); flex: none; }
.hero-copy h1, .hero-copy .hero-title { color: #fff; font-size: clamp(32px, 4.3vw, 56px); line-height: 1.04; margin: 0 0 18px; letter-spacing: -.03em; }
html[lang="ar"] .hero-copy h1, html[lang="ar"] .hero-copy .hero-title { line-height: 1.4; letter-spacing: 0; }
.hero-text { font-size: clamp(16px, 1.45vw, 18px); color: #cfe3e5; margin: 0 0 28px; max-width: 470px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-frame { position: relative; overflow: hidden; border-start-start-radius: var(--arch); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-controls { position: absolute; z-index: 5; bottom: 28px; inset-inline: 0; margin-inline: auto; max-width: var(--container); padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; }
.hero-controls > * { pointer-events: auto; }
.hero-dots { display: flex; gap: 6px; }
.hero-dot { width: 30px; height: 4px; border: 0; background: rgba(255, 255, 255, .35); cursor: pointer; padding: 0; transition: background .2s, width .2s; position: relative; }
.hero-dot::after { content: ""; position: absolute; inset: -12px 0; }
.hero-dot.is-active { background: var(--gold); width: 52px; }
.hero-btns { display: flex; gap: 8px; }
.hero-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .5); background: rgba(6, 47, 54, .55); color: #fff; cursor: pointer; transition: background .18s, color .18s; }
.hero-btn:hover { background: var(--gold); color: var(--abyss); border-color: var(--gold); }
.hero-prev .ic-chev { transform: rotate(90deg); }
.hero-next .ic-chev { transform: rotate(-90deg); }
html[dir="rtl"] .hero-prev .ic-chev { transform: rotate(-90deg); }
html[dir="rtl"] .hero-next .ic-chev { transform: rotate(90deg); }

.quick-band { background: var(--line); border-bottom: 1px solid var(--line); }
.quick-grid { list-style: none; margin: 0 auto; padding: 0; max-width: 1600px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 1px; }
.quick-grid li { background: #fff; }
.quick-grid a { display: flex; align-items: center; gap: 12px; padding: 20px 18px; height: 100%; text-decoration: none; color: var(--abyss); font-weight: 700; font-size: 14px; line-height: 1.3; transition: background .18s, color .18s; }
.quick-grid a .ic { color: var(--emerald); transition: color .18s; }
.quick-grid a:hover { background: var(--abyss); color: #fff; }
.quick-grid a:hover .ic { color: var(--gold); }

.section { padding-block: 56px; }
.alt-section { background: var(--chaux); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; padding-top: 18px; border-top: 2px solid var(--abyss); }
.section-head > div:first-child { display: grid; gap: 8px 48px; grid-template-columns: minmax(0, 1fr); flex: 1 1 480px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); margin: 0; }
.section-intro { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0; }
.eyebrow { color: var(--gold); font-weight: 700; font-size: 15px; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; flex: none; }
.section .eyebrow { color: var(--gold-ink); }

/* mosaïque d'univers : une grande image, deux moyennes, trois petites */
.universe-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 240px; gap: 14px; }
.universe-card { position: relative; display: block; overflow: hidden; background: var(--abyss); color: #fff; text-decoration: none; isolation: isolate; grid-column: span 4; }
.universe-card:nth-child(1) { grid-column: span 7; grid-row: span 2; border-end-end-radius: var(--arch); }
.universe-card:nth-child(2), .universe-card:nth-child(3) { grid-column: span 5; }
.universe-img { position: absolute; inset: 0; z-index: -2; display: block; }
.universe-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.universe-card:hover .universe-img img { transform: scale(1.04); }
.universe-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6, 47, 54, .92) 0%, rgba(6, 47, 54, .55) 38%, rgba(6, 47, 54, 0) 70%); }
.universe-body { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; gap: 14px; }
.universe-card .pc-icon { position: absolute; top: 20px; inset-inline-start: 20px; background: rgba(6, 47, 54, .72); color: #fff; backdrop-filter: blur(3px); }
.universe-text { display: block; padding-inline-end: 52px; }
.universe-text h3 { color: #fff; font-size: 24px; margin: 0 0 6px; }
.universe-card:nth-child(1) .universe-text h3 { font-size: clamp(28px, 3vw, 38px); }
.universe-desc { display: block; color: #d6e8ea; font-size: 15px; max-width: 46ch; }
.universe-go { position: absolute; bottom: 24px; inset-inline-end: 24px; display: grid; place-items: center; width: 40px; height: 40px; background: var(--gold); color: var(--abyss); transition: transform .2s; }
.universe-card:hover .universe-go { transform: translateX(4px); }
html[dir="rtl"] .universe-card:hover .universe-go { transform: translateX(-4px); }

.pc-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; background: var(--azure-tint); color: var(--abyss-2); border-start-start-radius: 100%; flex: none; }
.pc-icon .ic { width: 24px; height: 24px; }
.card-link { display: inline-flex; align-items: center; gap: 8px; color: var(--emerald-d); font-weight: 700; font-size: 14.5px; }
a:hover .card-link .ic-arrow { transform: translateX(4px); }
html[dir="rtl"] a:hover .card-link .ic-arrow { transform: scaleX(-1) translateX(4px); }

/* galerie panoramique */
.pano-section { background: var(--abyss) var(--lattice); background-size: 72px; color: #fff; padding-block: 64px 70px; overflow: hidden; }
.pano-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; flex-wrap: wrap; }
.pano-head h2 { color: #fff; font-size: clamp(26px, 3.2vw, 38px); margin: 0 0 8px; max-width: 18ch; }
.pano-head p { color: #c4dadd; margin: 0; max-width: 54ch; }
.pano-nav { display: flex; align-items: center; gap: 8px; }
.pano-count { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; margin-inline-end: 10px; }
.pano-btn { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .45); background: transparent; color: #fff; cursor: pointer; transition: background .18s, color .18s; }
.pano-btn:hover { background: var(--gold); color: var(--abyss); border-color: var(--gold); }
.pano-prev .ic-chev { transform: rotate(90deg); }
.pano-next .ic-chev { transform: rotate(-90deg); }
html[dir="rtl"] .pano-prev .ic-chev { transform: rotate(-90deg); }
html[dir="rtl"] .pano-next .ic-chev { transform: rotate(90deg); }
.pano-rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); overscroll-behavior-x: contain; }
.pano-rail::-webkit-scrollbar { display: none; }
.pano-rail:focus-visible { outline-offset: -3px; }
.pano { position: relative; flex: 0 0 min(88vw, 1120px); margin: 0; scroll-snap-align: start; aspect-ratio: 3.2 / 1; overflow: hidden; border-start-start-radius: 90px; background: var(--abyss-2); }
.pano img { width: 100%; height: 100%; object-fit: cover; }
.pano figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 60px 28px 22px; background: linear-gradient(0deg, rgba(6, 47, 54, .9), rgba(6, 47, 54, 0)); display: flex; flex-direction: column; gap: 2px; }
.pano figcaption strong { font-family: var(--font-head); font-size: 22px; font-weight: 800; }
.pano figcaption span { color: #d6e8ea; font-size: 15px; max-width: 60ch; }

/* repères + cours */
.figures { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.figures h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 22px; }
.facts { margin: 0 0 28px; border-top: 1px solid var(--line); }
.facts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 16px; }
.facts dd { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: 30px; color: var(--abyss); font-variant-numeric: tabular-nums; }
.fx-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.fx-head h2 { margin-bottom: 12px; }
.fx-date { color: var(--muted); margin: 0 0 12px; }
.fx-board { width: 100%; border-collapse: collapse; border-top: 2px solid var(--abyss); }
.fx-board th, .fx-board td { padding: 13px 4px; text-align: start; border-bottom: 1px solid var(--line); }
.fx-board thead th { font-size: 13px; color: var(--muted); font-weight: 600; padding-block: 9px; }
.fx-board tbody th { font-weight: 400; }
.fx-board tbody th b { display: inline-block; min-width: 3.2em; font-family: var(--font-head); color: var(--emerald-d); }
.fx-board tbody th span { color: var(--muted); font-size: 14.5px; }
.fx-board .num { text-align: end; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--abyss); white-space: nowrap; }
.fx-board thead .num { font-weight: 600; color: var(--muted); }
.fx-source { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin: 14px 0 0; color: var(--muted); font-size: 14px; }

/* actualités */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.news-card { background: #fff; transition: background .18s; }
.news-card:hover { background: var(--chaux); }
.news-card a { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; }
.news-card-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--azure-tint); }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card-body time { color: var(--gold-ink); font-weight: 700; font-size: 13.5px; }
.news-card-body h3 { font-size: 19px; margin: 0; color: var(--abyss); }
.news-card-body p { color: var(--muted); font-size: 15px; margin: 0 0 6px; }
.news-card-body .card-link { margin-top: auto; }
.news-lang-note { color: var(--muted); font-size: 14px; margin-bottom: 14px; }

/* ==========================================================================
   5. Pages intérieures
   ========================================================================== */
.bdr-breadcrumbs { background: var(--chaux); border-bottom: 1px solid var(--line); font-size: 14px; }
.bdr-breadcrumbs .container { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-block: 12px; }
.bdr-breadcrumbs a { color: var(--emerald-d); text-decoration: none; }
.bdr-breadcrumbs a:hover { text-decoration: underline; }
.bdr-breadcrumbs span { color: var(--muted); }
html[dir="rtl"] .bdr-breadcrumbs span { display: inline-block; transform: scaleX(-1); }
.bdr-breadcrumbs strong { color: var(--ink); font-weight: 600; }

/* bannière de page : volet sombre + cadre image à coin en arche */
.page-hero { position: relative; color: #fff; background: var(--abyss) var(--lattice); background-size: 72px; overflow: hidden; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); min-height: 380px; }
.page-hero-panel { display: flex; align-items: center; padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))) 56px; padding-block: 52px; }
.page-hero-frame { position: relative; overflow: hidden; border-start-start-radius: var(--arch); min-height: 240px; }
.page-hero-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-copy { max-width: 640px; }
.page-hero-inner { padding-block: 52px 56px; min-height: 0; display: block; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 4.2vw, 52px); line-height: 1.06; margin-bottom: 16px; letter-spacing: -.028em; }
html[lang="ar"] .page-hero h1 { line-height: 1.4; letter-spacing: 0; }
.page-hero p { color: #cfe3e5; font-size: 18px; max-width: 58ch; margin-bottom: 24px; }
.page-hero .eyebrow { color: var(--gold); margin-bottom: 14px; }
.page-hero .hero-actions { margin-top: 6px; }
.page-hero-plain .page-hero-copy { max-width: 760px; }

.section-head + .product-grid, .section-head + .info-grid { margin-top: 0; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.product-card { display: flex; flex-direction: column; gap: 8px; padding: 28px 26px 26px; background: #fff; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); position: relative; transition: background .18s, box-shadow .18s; }
a.product-card:hover { background: var(--azure-tint); box-shadow: inset 0 -4px 0 var(--gold); color: var(--ink); }
.product-card .pc-icon { margin-bottom: 10px; }
a.product-card:hover .pc-icon { background: var(--abyss); color: #fff; }
.product-card .card-kicker { color: var(--gold-ink); font-weight: 700; font-size: 13.5px; }
.product-card h3 { font-size: 19px; color: var(--abyss); margin: 0; }
.product-card p { color: var(--muted); font-size: 15px; margin: 0 0 10px; }
.product-card .card-link { margin-top: auto; }
.nonlink-card { background: var(--chaux); }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.info-box { padding: 24px 26px; background: #fff; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.info-box strong { display: block; color: var(--abyss); font-family: var(--font-head); font-size: 17px; margin-bottom: 6px; }
.info-box p { margin: 0; color: var(--muted); font-size: 15px; }
.info-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; background: var(--emerald); color: #fff; margin-bottom: 12px; border-start-start-radius: 100%; }
.info-mark .ic { width: 18px; height: 18px; }

.numbered-steps { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--abyss); }
.step { display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.step-n { font-family: var(--font-head); font-weight: 800; font-size: 40px; line-height: 1; color: var(--azure); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 18px; margin: 0 0 4px; color: var(--abyss); }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; max-width: 70ch; }

.faq-list { max-width: 900px; border-top: 2px solid var(--abyss); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 4px; font-weight: 700; color: var(--abyss); cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--emerald-d); }
.faq-list summary .ic-chev { flex: none; color: var(--emerald); }
.faq-list details[open] summary .ic-chev { transform: rotate(180deg); }
.faq-list details > div { padding: 0 4px 20px; color: var(--muted); max-width: 70ch; }
.faq-list details p { margin: 0; }

.related-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.related-links a { display: flex; align-items: center; gap: 14px; padding: 20px 22px; background: #fff; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background .18s; }
.related-links a:hover { background: var(--azure-tint); }
.rl-icon { display: grid; place-items: center; width: 44px; height: 44px; background: var(--azure-tint); color: var(--abyss-2); border-start-start-radius: 100%; flex: none; }
.related-links a:hover .rl-icon { background: var(--abyss); color: #fff; }
.rl-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.rl-text strong { color: var(--abyss); }
.rl-text span { color: var(--muted); font-size: 14px; }
.related-links .ic-arrow { color: var(--emerald); }

.bdr-page-navigation { background: var(--chaux); border-top: 1px solid var(--line); }
.bdr-page-nav-inner { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-block: 18px; }
.bdr-page-nav-inner > * { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border: 1px solid var(--abyss-2); border-radius: 2px; background: #fff; color: var(--abyss); font: inherit; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; transition: background .18s, color .18s; }
.bdr-page-nav-inner > *:hover { background: var(--abyss); color: #fff; }
.bdr-nav-home { margin-inline-start: auto; }

.panel { background: #fff; border: 1px solid var(--line); border-inline-start: 0; border-top: 3px solid var(--abyss); padding: 30px; }
.panel h2, .panel h3 { color: var(--abyss); }
.panel > :last-child { margin-bottom: 0; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-inline-start: 32px; }
.check-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .3em; width: 20px; height: 20px; border-start-start-radius: 100%; background: var(--emerald) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center/12px no-repeat; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.feature { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: #fff; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background .18s; }
.feature:hover { background: var(--azure-tint); }
.feature strong { color: var(--abyss); }
.feature span { color: var(--emerald-d); font-size: 14px; }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 34px 38px; background: var(--abyss) var(--lattice); background-size: 72px; color: #fff; border-end-end-radius: 70px; }
.cta-band h2 { color: #fff; font-size: 26px; margin-bottom: 6px; }
.cta-band p { margin: 0; color: #cfe3e5; }
.cta-band .btn { margin-block: 4px; color: #fff; border-color: rgba(255, 255, 255, .55); background: transparent; }
.cta-band .btn:hover { background: #fff; color: var(--abyss); }
.cta-band .btn-primary { background: var(--gold); color: var(--abyss); border-color: var(--gold); }
.cta-band .btn-primary:hover { background: var(--gold-hover); color: var(--abyss); }
.lead { font-size: 19px; color: var(--abyss-2); }

/* tableau des taux (page dédiée) */
.fx-table-wrap { overflow-x: auto; border-top: 2px solid var(--abyss); background: #fff; }
.fx-table { width: 100%; border-collapse: collapse; min-width: 440px; }
.fx-table caption { caption-side: top; text-align: start; padding: 16px 4px; font-weight: 700; color: var(--abyss); }
.fx-table th, .fx-table td { padding: 14px 10px; text-align: start; border-bottom: 1px solid var(--line); }
.fx-table thead th { background: var(--chaux); color: var(--muted); font-size: 13.5px; font-weight: 600; }
.fx-table tbody th { font-weight: 600; }
.fx-table tbody tr:hover { background: var(--azure-tint); }
.fx-table .num { text-align: end; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--abyss); white-space: nowrap; }
.fx-note { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 14px; color: var(--muted); font-size: 14px; }

/* connexion client */
.login-section { background: var(--chaux); padding-block: 56px 64px; }
.login-shell { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); max-width: 1040px; margin-inline: auto; box-shadow: var(--shadow-lg); }
.login-side { background: var(--abyss) var(--lattice); background-size: 72px; color: #fff; padding: 44px 40px; display: flex; flex-direction: column; gap: 4px; border-start-start-radius: 90px; }
.login-side-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; background: var(--gold); color: var(--abyss); margin-bottom: 18px; border-start-start-radius: 100%; }
.login-side h2 { color: #fff; font-size: 26px; margin-bottom: 18px; }
.login-tips { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 16px; }
.login-tips li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: #cfe3e5; font-size: 15px; }
.login-tips .ic { color: var(--gold); margin-top: 3px; }
.login-tips strong { display: block; color: #fff; }
.login-side-links { margin-top: auto; display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .18); }
.login-side-links a { color: #fff; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.login-side-links a:hover { color: var(--gold); }
.login-card { background: #fff; padding: 44px 44px 34px; }
.login-card h2 { font-size: 28px; margin-bottom: 22px; }
.login-lead { color: var(--muted); margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field > label { font-weight: 700; font-size: 14.5px; color: var(--abyss); }
.field-in { display: flex; align-items: center; gap: 10px; border: 1px solid #a9bfc1; background: #fff; padding-inline: 14px 4px; transition: border-color .18s, box-shadow .18s; }
.field-in:focus-within { border-color: var(--azure-d); box-shadow: 0 0 0 3px rgba(43, 143, 174, .22); }
.field-in > .ic { color: var(--emerald); width: 20px; height: 20px; }
.field-in input[type] { flex: 1; min-width: 0; border: 0; padding: 14px 4px; background: transparent; box-shadow: none; }
.field-in input[type]:focus { outline: none; box-shadow: none; border: 0; }
.field-toggle { display: grid; place-items: center; width: 42px; height: 42px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.field-toggle:hover { color: var(--abyss); }
.captcha-box { display: flex; align-items: stretch; gap: 8px; }
.captcha-view { flex: 1; min-height: 76px; display: flex; align-items: center; justify-content: center; border: 1px solid #a9bfc1; background: var(--azure-tint); padding: 4px; }
.captcha-view img { width: 100%; max-width: 240px; height: auto; }
.captcha-question { margin: 0; padding: 8px 14px; font-weight: 700; color: var(--abyss); }
.captcha-wait { color: var(--muted); font-size: 14px; }
.captcha-refresh { width: 48px; height: auto; border: 1px solid #a9bfc1; border-radius: 0; color: var(--abyss); }
.captcha-refresh:hover { background: var(--azure-tint); }
.captcha-input { font-size: 20px; letter-spacing: .18em; font-weight: 700; text-transform: uppercase; }
html[lang="ar"] .captcha-input { letter-spacing: .1em; }
.captcha-input[inputmode="numeric"] { letter-spacing: .1em; }
.field-help { margin: 0; font-size: 13.5px; color: var(--muted); }
.login-msg { margin: 0 0 16px; padding: 12px 16px; font-weight: 600; background: #fdecea; color: var(--danger); border-inline-start: 4px solid var(--danger); }
.login-msg.is-warn { background: #fff6dc; color: #6b4e05; border-color: var(--gold); }
.login-msg.is-ok { background: #e5f4ec; color: #0b5a3a; border-color: var(--emerald); }
.login-foot { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.login-foot .ic { color: var(--emerald); margin-top: 2px; }
.admin-hint { color: var(--danger); font-size: 13px; }

/* formulaires */
.contact-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.contact-layout > div:last-child { display: grid; gap: 16px; }
.contact-layout .info-box { border: 1px solid var(--line); border-top: 3px solid var(--azure); }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row label, .sim-grid label { font-weight: 700; font-size: 14.5px; color: var(--abyss); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], input[type="password"], input[type="url"], select, textarea { width: 100%; padding: 12px 14px; border: 1px solid #a9bfc1; border-radius: 0; font: inherit; background: #fff; color: var(--ink); transition: border-color .18s, box-shadow .18s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--azure-d); box-shadow: 0 0 0 3px rgba(43, 143, 174, .22); }
textarea { resize: vertical; min-height: 130px; }
.contact-consent { margin-bottom: 18px; font-size: 14px; }
.contact-consent label { display: flex; gap: 10px; align-items: flex-start; }
.contact-consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--emerald); flex: none; }
.bdr-hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { color: var(--muted); font-size: 13.5px; margin-top: 14px; }
.success, .form-error, .notice { padding: 14px 18px; margin-bottom: 18px; font-weight: 600; }
.success { background: #e5f4ec; color: #0b5a3a; border-inline-start: 4px solid var(--emerald); }
.form-error { background: #fdecea; color: var(--danger); border-inline-start: 4px solid var(--danger); }
.email-contact { font-weight: 700; word-break: break-word; }

/* simulateur */
.simulator .sim-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sim-grid label { display: flex; flex-direction: column; gap: 6px; }
.sim-result { margin-top: 22px; padding: 20px 24px; background: var(--azure-tint); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; border-end-end-radius: 40px; }
.sim-result span { color: var(--abyss); font-weight: 600; }
.sim-result strong { font-family: var(--font-head); font-size: 30px; color: var(--abyss); font-variant-numeric: tabular-nums; }

/* agences */
.agency-map-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 22px; align-items: start; }
.agency-map-panel { padding: 18px; }
.agency-filters { display: grid; grid-template-columns: 1.5fr 1fr auto; gap: 14px; align-items: end; margin-bottom: 14px; }
.agency-filters label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; color: var(--abyss); }
.agency-count { font-weight: 700; color: var(--emerald-d); padding-bottom: 12px; white-space: nowrap; }
.bdr-agency-map { height: 560px; overflow: hidden; background: var(--azure-tint); position: relative; z-index: 1; }
.map-placeholder, .map-error { display: grid; place-content: center; text-align: center; height: 100%; color: var(--muted); padding: 20px; }
.bdr-agency-list { max-height: 640px; overflow-y: auto; display: grid; gap: 0; border-top: 1px solid var(--line); }
.bdr-agency-list-item { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; line-height: 1.4; }
.bdr-agency-list-item:hover, .bdr-agency-list-item:focus { background: var(--azure-tint); }
.bdr-agency-list-item strong { color: var(--abyss); }
.bdr-agency-list-item small { color: var(--muted); }
.bdr-map-info { line-height: 1.5; min-width: 180px; }
.agency-dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; margin: 0 0 20px; }
.agency-dl dt { font-weight: 700; color: var(--abyss); }
.agency-dl dd { margin: 0; }

/* articles */
.article-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; align-items: start; }
.prose { font-size: 17px; line-height: 1.75; }
.prose h2 { margin-top: 1.6em; font-size: 26px; }
.prose h3 { margin-top: 1.4em; font-size: 21px; }
.news-article-cover { margin: -30px -30px 24px; overflow: hidden; }
.news-article-cover img { width: 100%; height: auto; }
.article-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.side-panel { position: sticky; top: calc(var(--header-h) + 24px); }
.pagination, .nav-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.page-numbers { padding: 8px 14px; border: 1px solid var(--line); text-decoration: none; }
.page-numbers.current { background: var(--abyss); color: #fff; border-color: var(--abyss); }
.article-highlight { padding: 18px 22px; background: var(--azure-tint); border-inline-start: 4px solid var(--azure); margin: 1.4em 0; }

/* ==========================================================================
   6. Bandeau d'appel à l'action et pied de page
   ========================================================================== */
.cta-strip { background: var(--emerald); color: #fff; }
.cta-strip-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding-block: 38px; }
.cta-strip h2 { color: #fff; font-size: clamp(24px, 2.8vw, 32px); margin-bottom: 6px; }
.cta-strip p { margin: 0; color: #d9efe8; }
.cta-strip-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-strip .btn-ghost:hover { color: var(--emerald-d); }

.site-footer { background: #041f25; color: #b9d0d3; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 36px; padding-block: 58px 36px; }
.footer-logo { display: inline-block; background: #fff; padding: 10px 14px; border-end-end-radius: 26px; }
.footer-logo img { width: 110px; height: auto; }
.footer-intro { margin: 18px 0 14px; font-weight: 700; color: #fff; font-family: var(--font-head); }
.footer-contact, .social { list-style: none; margin: 0; padding: 0; }
.footer-contact li { margin-bottom: 8px; }
.footer-contact a, .footer-col a, .footer-docs a, .legal-links a { color: #b9d0d3; text-decoration: none; }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact a:hover, .footer-col a:hover, .footer-docs a:hover, .legal-links a:hover { color: var(--gold); text-decoration: underline; }
.social { display: flex; gap: 8px; margin-top: 16px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .28); color: #fff; transition: background .18s, color .18s; }
.social a:hover { background: var(--gold); border-color: var(--gold); color: var(--abyss); text-decoration: none; }
.footer-col h2 { font-size: 16px; color: #fff; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--gold); display: inline-block; letter-spacing: -.005em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-docs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-docs strong { color: #fff; }
.footer-docs a { display: inline-flex; align-items: center; gap: 8px; }
.footer-docs small { background: rgba(255, 255, 255, .14); padding: 0 6px; }
.copyright { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 20px 26px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* ==========================================================================
   7. Adaptation écrans
   ========================================================================== */
@media (max-width: 1500px) {
  .util-contact a:nth-child(2) { display: none; }
}
@media (max-width: 1340px) {
  .nav-link { font-size: 14px; padding-inline-start: 12px; }
  .nav-item:not(.has-mega) .nav-link { padding-inline: 12px; }
  .nav-toggle { padding-inline: 2px 8px; }
  .espace-client { padding: 0 24px; }
  .ec-text small { display: none; }
  .brand { padding-inline: 20px; }
}
@media (max-width: 1240px) {
  .util-links a:not(.util-open) .ic { display: none; }
  .util-links, .util-contact, .util-tools { gap: 14px; }
  .util-links a:nth-child(3) { display: none; }
  .hero-slide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 1180px) {
  .nav-link { font-size: 13.5px; padding-inline-start: 9px; }
  .nav-item:not(.has-mega) .nav-link { padding-inline: 9px; }
  .util-links a:nth-child(2) { display: none; }
  .espace-client { padding: 0 18px; margin-inline-start: 18px; }
  .brand { margin-inline-end: 18px; }
  .mega-cols.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .nav-link { font-size: 14px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
  .figures { gap: 40px; }
}
@media (max-width: 1023px) {
  :root { --header-h: 64px; --arch: 64px; }
  .hdr-grid { grid-template-columns: auto 1fr auto auto; grid-template-rows: 64px; }
  .main-nav, .hdr-util { display: none; }
  .brand { grid-row: 1; grid-column: 1; padding: 6px 14px; margin-inline-end: 0; border-end-end-radius: 22px; }
  .brand img { width: 62px; }
  .hdr-tools { display: flex; grid-column: 3; grid-row: 1; align-items: center; gap: 2px; padding-inline: 4px; }
  .hdr-tools .icon-btn { color: #fff; }
  .espace-client { grid-column: 4; grid-row: 1; margin-inline-start: 0; padding: 0 16px; gap: 10px; }
  .ec-text small { display: none; }
  .ec-text strong { font-size: 14px; }
  .hero-track { height: auto; }
  .hero-slide { position: absolute; grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .hero-slide { inset: 0; }
  .hero-frame { order: -1; height: 210px; border-start-start-radius: 64px; }
  .hero-panel { padding: 26px var(--gutter) 84px; }
  .hero-track { min-height: 640px; }
  .universe-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .universe-card, .universe-card:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .universe-card:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .figures, .contact-layout, .agency-map-layout, .article-layout, .login-shell { grid-template-columns: 1fr; }
  .side-panel { position: static; }
  .page-hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .page-hero-frame { order: -1; height: 200px; min-height: 0; border-start-start-radius: 64px; }
  .page-hero-panel { padding: 30px var(--gutter) 38px; }
  .login-side { border-start-start-radius: 64px; padding: 34px 28px; }
}
@media (max-width: 680px) {
  :root { --gutter: 16px; }
  .section { padding-block: 46px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid a { padding: 16px 14px; }
  .espace-client .ec-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .espace-client { padding: 0 18px; }
  .hero-track { min-height: 700px; }
  .hero-btn:not(.hero-play) { display: none; }
  .universe-grid { grid-template-columns: 1fr; grid-auto-rows: 210px; }
  .universe-card:nth-child(1) { grid-column: span 1; }
  .news-grid, .contact-grid, .simulator .sim-grid, .footer-grid { grid-template-columns: 1fr; }
  .pano { flex-basis: 88vw; aspect-ratio: 4 / 3; border-start-start-radius: 56px; }
  .pano figcaption { padding: 50px 18px 16px; }
  .pano figcaption span { font-size: 14px; }
  .pano-head { align-items: flex-start; }
  .agency-filters { grid-template-columns: 1fr; }
  .bdr-agency-map { height: 400px; }
  .step { grid-template-columns: 54px 1fr; }
  .step-n { font-size: 32px; }
  .panel { padding: 22px; }
  .login-card { padding: 30px 22px 26px; }
  .news-article-cover { margin: -22px -22px 20px; }
  .bdr-nav-home { margin-inline-start: 0; }
  .cta-strip-actions .btn { flex: 1 1 100%; }
  .agency-dl { grid-template-columns: 1fr; gap: 2px; }
  .agency-dl dd { margin-bottom: 10px; }
  .mega-small { min-width: 0; }
  .cta-band { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .cta-strip, .bdr-page-navigation, .search-overlay, .hero-controls, .drawer, .pano-section { display: none !important; }
  body { color: #000; }
  .page-hero { background: none; color: #000; }
  .page-hero h1, .page-hero p { color: #000; }
  .page-hero-frame { display: none; }
}
