/* === ALMAVIVA PORTAIL — DESIGN SYSTEM 2026 === */

:root {
  /* V6.5-fix-48 : --alm-blue, --alm-orange, --alm-gray-{50,100,200,300,500,700,900}
     déplacés dans assets/css/variables.css (palette canonique). Reste ici
     uniquement les nuances dérivées spécifiques portail (dark/light, soft, rose,
     green) et les alias sémantiques.
     Note migration : --alm-gray-50 passe de #fafafa (cool) à #FBFAF7 (warm
     charte) — change subtil sur ~11 occurrences, voulu par alignement charte. */
  --alm-blue-dark: #003670;
  --alm-blue-light: #1a5fb0;
  --alm-orange-dark: var(--alm-orange);  /* CTA standard (blanc dessus = 6.12:1, AA texte normal) */
  --alm-orange-darker: var(--alm-orange);/* CTA hover state (7.01:1) — plus contrasté que le repos */
  --alm-orange-light: var(--alm-orange); /* INTERDIT sur fond bleu (2.95:1 FAIL) — réservé à fonds très clairs */

  /* Aliases sémantiques (V2.1-FIX-2 : --alm-bg-grey était utilisé sans déf,
     bug latent qui rendait .alm-stats sans fond) */
  --alm-bg-light: var(--alm-gray-50);   /* #fafafa — fond page courant */
  --alm-bg-grey: var(--alm-gray-100);   /* var(--alm-gray-100) — bandeaux gris (stats) */
  --alm-text: var(--alm-gray-900);      /* var(--alm-gray-900) — corps */
  --alm-text-soft: var(--alm-gray-700); /* var(--alm-gray-700) — secondaire/labels */
  --alm-border: var(--alm-gray-200);                /* bordures inputs/cards */

  --alm-blue-soft: #A1C0E5;
  --alm-rose: #D7786A;
  --alm-green: #B4C82D;
  --alm-yellow: #ECA224;

  /* Typographie */
  /* V6.5-fix-6 : Manrope full stack (titres + body) — typo institutionnelle
     santé, weight 400/500/600/700 chargés via Google Fonts. Fallback system
     conservé pour FOUT/dégradation gracieuse. */
  --font-title: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Containers */
  --container: 1400px;
  --container-narrow: 1100px;
  --container-prose: 720px;
  --gutter: clamp(16px, 4vw, 32px);

  /* Shadows charte (bleu, pas noir) */
  --shadow-sm: 0 1px 2px rgba(0, 72, 153, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 72, 153, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 72, 153, 0.12);
  --shadow-xl: 0 24px 64px rgba(0, 72, 153, 0.16);
  --shadow-orange: 0 8px 24px rgba(238, 114, 3, 0.25);

  /* Radius */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  --tr: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* === Tokens sémantiques (V2.1) — usage obligatoire dans les nouvelles règles
     pour garantir le contraste WCAG AA. Les noms originaux (--alm-blue,
     --alm-orange…) restent valides pour rétro-compat. === */
  --on-blue: #ffffff;             /* texte sur fond --alm-blue / --alm-blue-dark */
  --on-blue-soft: rgba(255,255,255,0.85);  /* texte secondaire sur fond bleu */
  --on-orange: #ffffff;           /* texte sur fond --alm-orange */
  --on-white-title: var(--alm-blue);
  --on-white-body: var(--alm-gray-900);
  --on-white-soft: var(--alm-gray-700); /* gris-500 sur blanc = 3.81:1 FAIL ; gris-700 = 9.07:1 OK */
  --on-grey-title: var(--alm-blue);
  --on-grey-body: var(--alm-gray-900);
  --cta-bg: var(--alm-orange-dark);       /* WCAG : blanc dessus = 6.1:1, AA texte normal (cf. ligne 12) */
  --cta-bg-hover: var(--alm-orange-darker);
  --cta-text: #ffffff;
}

/* === RESET PORTAIL === */
.almaviva-portail-body { font-family: var(--font-body); color: var(--alm-gray-700); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; font-weight: 400; }
.almaviva-portail-body *, .almaviva-portail-body *::before, .almaviva-portail-body *::after { box-sizing: border-box; }
.almaviva-portail-body img { max-width: 100%; height: auto; display: block; }
.almaviva-portail-body a { color: var(--alm-blue); text-decoration: none; transition: color var(--tr); }
.almaviva-portail-body a:hover { color: var(--alm-orange); }

/* === TYPO === */
.alm-portail-h1, .alm-portail-h2, .alm-portail-h3 { font-family: var(--font-title); color: var(--alm-blue); margin: 0 0 0.6em; letter-spacing: -0.01em; }
.alm-portail-h1 { font-size: clamp(2rem, 5vw, 4rem); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
.alm-portail-h2 { font-size: clamp(1.625rem, 3.5vw, 2.5rem); line-height: 1.15; font-weight: 600; }
.alm-portail-h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); line-height: 1.3; font-weight: 600; }
.alm-portail-eyebrow { display: inline-block; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em; color: var(--alm-orange); margin-bottom: 1rem; }
.alm-portail-lead { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--alm-gray-700); max-width: 60ch; }

/* === BUTTONS === */
.alm-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 1.75rem; font-family: var(--font-body); font-size: 1rem; font-weight: 600; border-radius: var(--r-md); border: 2px solid transparent; cursor: pointer; transition: all var(--tr); text-decoration: none; line-height: 1.2; }
.alm-btn-primary { background: var(--cta-bg); color: var(--cta-text); border-color: var(--cta-bg); }
.alm-btn-primary:hover { background: var(--cta-bg-hover); color: var(--cta-text); border-color: var(--cta-bg-hover); transform: translateY(-2px); box-shadow: var(--shadow-orange); }
.alm-btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.alm-btn-secondary:hover { background: #fff; color: var(--alm-blue); border-color: #fff; }
.alm-btn-blue { background: var(--alm-blue); color: #fff; border-color: var(--alm-blue); }
.alm-btn-blue:hover { background: var(--alm-blue-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.alm-btn-outline { background: transparent; color: var(--alm-blue); border-color: var(--alm-blue); }
.alm-btn-outline:hover { background: var(--alm-blue); color: #fff; }
.alm-btn-ghost { background: transparent; color: var(--alm-blue); padding: 0.5rem 0.75rem; }
.alm-btn-ghost:hover { color: var(--alm-orange); }

/* === LAYOUT === */
.alm-container { max-width: var(--alm-container); margin-inline: auto; padding-inline: 0; }
.alm-container-narrow { max-width: var(--container-narrow); margin-inline: auto; padding-inline: var(--gutter); }
.alm-section { padding-block: clamp(56px, 8vw, 100px); }
.alm-section-tight { padding-block: clamp(40px, 6vw, 72px); }

/* === SKIP LINK === */
.alm-skip-link { position: absolute; left: 0; top: -40px; background: var(--alm-blue); color: #fff; padding: 8px 16px; z-index: 99999; transition: top var(--tr); }
.alm-skip-link:focus { top: 0; color: #fff; }

/* === TOP-BAR === */
.alm-topbar { background: var(--alm-gray-100); border-bottom: 1px solid var(--alm-gray-200); }
.alm-topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 36px; font-size: 0.8125rem; color: var(--alm-gray-700); }
.alm-topbar-social { display: flex; gap: 12px; align-items: center; }
.alm-topbar-social a { color: var(--alm-gray-700); display: inline-flex; align-items: center; }
/* WCAG : orange #EE7203 sur gris-100 var(--alm-gray-100) = 2.70:1 FAIL même AA-large.
   orange-dark var(--alm-orange) = 5.04:1 ✓. */
.alm-topbar-social a:hover { color: var(--alm-orange-dark); }
.alm-topbar-social svg { width: 16px; height: 16px; }
.alm-topbar-links { display: flex; gap: 20px; align-items: center; }
.alm-topbar-links a { color: var(--alm-gray-700); }
.alm-topbar-links a:hover { color: var(--alm-blue); }
@media (max-width: 767px) { .alm-topbar-links { display: none; } }

/* === HEADER MAIN === */
.alm-header { position: sticky; top: 0; z-index: 100; background: #fff; transition: box-shadow var(--tr); }
.alm-header.scrolled { box-shadow: var(--shadow-md); }
.alm-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 24px; }
.alm-header-logo img { height: 56px; width: auto; object-fit: contain; }
.alm-header-nav { display: flex; align-items: center; gap: 8px; }
.alm-header-nav a { color: var(--alm-gray-700); font-weight: 500; padding: 8px 14px; position: relative; }
.alm-header-nav a::after { content: ''; position: absolute; bottom: 4px; left: 14px; right: 14px; height: 2px; background: var(--alm-orange); transform: scaleX(0); transform-origin: left; transition: transform var(--tr); }
.alm-header-nav a:hover { color: var(--alm-blue); }
.alm-header-nav a:hover::after { transform: scaleX(1); }
.alm-header-nav .has-submenu { position: relative; }
.alm-header-nav .submenu { position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; box-shadow: var(--shadow-lg); border-radius: var(--r-md); padding: 12px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all var(--tr); list-style: none; margin: 0; }
.alm-header-nav .has-submenu:hover .submenu, .alm-header-nav .has-submenu:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.alm-header-nav .submenu a { display: block; padding: 10px 20px; font-weight: 400; }
.alm-header-nav .submenu a::after { display: none; }
.alm-header-nav .submenu a:hover { background: var(--alm-gray-100); color: var(--alm-blue); }
.alm-header-cta { display: flex; gap: 12px; align-items: center; }
.alm-burger { display: none; width: 44px; height: 44px; background: transparent; border: 0; cursor: pointer; position: relative; }
.alm-burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--alm-blue); border-radius: 2px; transition: all var(--tr); }
.alm-burger span:nth-child(1) { top: 14px; }
.alm-burger span:nth-child(2) { top: 21px; }
.alm-burger span:nth-child(3) { top: 28px; }
.alm-burger.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.alm-burger.open span:nth-child(2) { opacity: 0; }
.alm-burger.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Mobile panel : caché par défaut en desktop (toutes les autres règles
   sont dans @media max-width:1023px ; sans ça le <ul> du panel se déverse
   en flux sur desktop et fait apparaître tous les sous-menus à plat). */
.alm-mobile-panel { display: none; }

.alm-mobile-panel .alm-mobile-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 10px;
  border: 0;
  border-radius: var(--r-sm, 6px);
  background: transparent;
  color: var(--alm-blue, #004899);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.alm-mobile-panel.open .alm-mobile-close { display: inline-flex; }

.alm-mobile-panel.open { padding-top: 68px; }

.alm-mobile-panel .alm-mobile-close:hover {
  background-color: rgba(0, 72, 153, 0.08);
  color: var(--alm-blue, #004899);
}

.alm-mobile-panel .alm-mobile-close:focus,
.alm-mobile-panel .alm-mobile-close:focus-visible {
  background-color: transparent;
  color: var(--alm-blue, #004899);
  outline: 2px solid var(--alm-orange, #EE7203);
  outline-offset: 2px;
}

.alm-mobile-panel .alm-mobile-close svg { flex: 0 0 auto; }

@media (max-width: 1023px) {
  .alm-header-nav, .alm-header-cta .alm-btn-outline { display: none; }
  .alm-burger { display: block; }
  .alm-mobile-panel { display: block; position: fixed; inset: 80px 0 0 0; background: #fff; padding: 24px; transform: translateX(100%); transition: transform var(--tr), visibility var(--tr); visibility: hidden; overflow-y: auto; z-index: 99; }
  .alm-mobile-panel.open { transform: translateX(0); visibility: visible; }
  .alm-mobile-panel ul { list-style: none; padding: 0; margin: 0; }
  .alm-mobile-panel > ul > li { border-bottom: 1px solid var(--alm-gray-200); }
  .alm-mobile-panel a { display: block; padding: 16px 0; color: var(--alm-blue); font-weight: 600; }
  .alm-mobile-panel .submenu { display: none; padding-left: 16px; }
  .alm-mobile-panel .has-submenu.open .submenu { display: block; }
  .alm-mobile-panel .submenu a { font-weight: 400; padding: 12px 0; color: var(--alm-gray-700); }
}

/* === HERO HOME === */
.alm-hero { position: relative; min-height: 90vh; display: flex; align-items: center; overflow: hidden; background: var(--alm-blue); color: #fff; padding-block: clamp(80px, 12vw, 140px); }
.alm-hero::before { content: ''; position: absolute; inset: 0; background-image: url(/wp-content/uploads/portail/hero-home.jpg); background-size: cover; background-position: center; opacity: 0.35; z-index: 0; }
.alm-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,72,153,0.85), rgba(0,54,112,0.7)); z-index: 1; }
.alm-hero > * { position: relative; z-index: 2; }
.alm-hero-filigrane { position: absolute; right: -200px; bottom: -200px; width: 800px; height: 800px; opacity: 0.06; z-index: 1; transform: rotate(12deg); animation: alm-rotate 90s linear infinite; }
@keyframes alm-rotate { to { transform: rotate(372deg); } }
.alm-hero-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .alm-hero-grid { grid-template-columns: 1.3fr 1fr; gap: 80px; } }
/* WCAG: --alm-orange-light est un alias de --alm-orange depuis le 10/09/2026 ;
   Sur fond bleu, eyebrow doit être blanc ; le filet décoratif sous le H1
   peut rester orange (élément décoratif, pas de critère contraste). */
.alm-hero-eyebrow { color: var(--on-blue); opacity: 0.9; }
.alm-hero h1 { color: #fff; max-width: 14ch; }
.alm-hero-lead { color: rgba(255,255,255,0.95); font-size: clamp(1.0625rem, 1.6vw, 1.375rem); margin-bottom: 2rem; max-width: 48ch; }
.alm-hero-cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 2.5rem; }
.alm-hero-search { background: rgba(255,255,255,0.97); backdrop-filter: blur(20px); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-xl); max-width: 580px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
@media (max-width: 640px) { .alm-hero-search { grid-template-columns: 1fr; } }
.alm-hero-search label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--on-white-soft); font-weight: 600; margin-bottom: 6px; }
.alm-hero-search select { width: 100%; padding: 10px 12px; border: 1px solid var(--alm-gray-200); border-radius: var(--r-sm); background: #fff; color: var(--alm-gray-900); font-family: inherit; font-size: 0.95rem; cursor: pointer; }
.alm-hero-search select:focus { outline: 2px solid var(--alm-orange); outline-offset: 2px; }
.alm-hero-visual { position: relative; display: none; }
@media (min-width: 1024px) { .alm-hero-visual { display: block; } }
.alm-hero-card { background: rgba(255,255,255,0.97); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-xl); color: var(--alm-gray-700); }
.alm-hero-card-stat { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--alm-gray-200); }
.alm-hero-card-stat:last-child { border-bottom: 0; }
.alm-hero-card-num { font-family: var(--font-title); font-size: 2.5rem; font-weight: 700; color: var(--alm-blue); line-height: 1; }
.alm-hero-card-label { font-size: 0.875rem; color: var(--on-white-soft); }

/* === BANDEAU CHIFFRES === */
/* Option A (charte) : fond gris clair → chiffres orange autorisés (≥18pt =
   gros texte, ratio AA = 3:1, validé). Icône bleue, label gris foncé.
   Cf. ALTERNATIVE option B commentée plus bas si retour fond bleu. */
.alm-stats { background: var(--alm-bg-grey); color: var(--on-grey-body); padding-block: clamp(60px, 8vw, 96px); position: relative; overflow: hidden; }
/* V6.4-fix : auto-fit minmax + nowrap pour éviter que les grosses valeurs
   formatées en fr-FR ("850 000", "370 500") débordent leurs colonnes et
   collent visuellement les unes aux autres. min-width:0 sur les enfants
   permet au texte de rétrécir sans casser la grid. */
.alm-stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; justify-items: center; }
@media (min-width: 768px) { .alm-stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; } }
@media (min-width: 1024px) { .alm-stats-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 48px 40px; } }
.alm-stat { text-align: center; min-width: 0; max-width: 220px; }
.alm-stat-icon { width: 48px; height: 48px; margin: 0 auto 16px; color: var(--alm-blue); }
.alm-stat-icon svg { width: 100%; height: 100%; }
/* Chiffres : orange-dark sur gris-100 = 5.04:1 ✓ AA (orange clair échouait 2.70:1).
   V6.4-fix : font-size réduit (max 2.75rem) + nowrap, "850 000" tient en ~180px. */
.alm-stat-num { display: block; font-family: var(--font-title); font-size: clamp(1.75rem, 3.2vw, 2.75rem); font-weight: 700; color: var(--alm-orange-dark); line-height: 1; margin-bottom: 12px; white-space: nowrap; }
.alm-stat-num .suffix { color: var(--alm-orange-dark); }
.alm-stat-label { display: block; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--on-grey-body); opacity: 0.85; line-height: 1.35; }
/* ALTERNATIVE (option B) si .alm-stats reprend fond bleu : remplacer le bloc
   ci-dessus par :
   .alm-stats { background: var(--alm-blue); color: var(--on-blue); }
   .alm-stat-icon { color: var(--on-blue-soft); }
   .alm-stat-num, .alm-stat-num .suffix { color: var(--on-blue); }
   .alm-stat-label { color: var(--on-blue-soft); }
   — JAMAIS orange-light sur bleu (FAIL 2.95:1). */

/* === SECTION TITLE === */
.alm-section-header { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); }
.alm-section-header .alm-portail-h2 { margin-bottom: 1rem; }

/* === FOOTER === */
.alm-footer { background: var(--alm-blue); color: #fff; padding-block: clamp(56px, 7vw, 80px) 32px; position: relative; }
.alm-footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 768px) { .alm-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .alm-footer-grid { grid-template-columns: 1.05fr 0.95fr 1.55fr 1.05fr; gap: 44px; } }
.alm-footer h4 { color: #fff; font-family: var(--font-title); font-size: 1.0625rem; font-weight: 600; text-transform: none; letter-spacing: 0; line-height: 1.3; margin: 0 0 20px; padding-bottom: 10px; border-bottom: 2px solid #fff; display: inline-block; }
.alm-footer-logo img { height: 56px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.alm-footer p, .alm-footer address { color: rgba(255,255,255,0.85); font-style: normal; line-height: 1.7; margin: 0 0 16px; font-size: 0.95rem; }
.alm-footer a { color: var(--on-blue-soft); text-decoration: none; transition: color var(--tr), text-decoration-color var(--tr); }
.alm-footer a:hover { color: var(--on-blue); text-decoration: underline; text-decoration-color: var(--on-blue); }
.alm-footer a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: var(--r-sm); }
.alm-footer-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.alm-footer-nav a { display: inline-flex; align-items: center; min-height: 32px; }
.alm-footer-nav.alm-footer-nav--grouped { display: block; columns: 2; column-gap: 24px; gap: 0; }
.alm-footer-nav.alm-footer-nav--grouped li { break-inside: avoid; margin-bottom: 9px; }
@media (max-width: 768px) { .alm-footer-nav.alm-footer-nav--grouped { columns: 1; } }
.alm-footer-region-acc { border-bottom: 1px solid rgba(255,255,255,0.18); }
.alm-footer-region-acc:first-of-type { border-top: 1px solid rgba(255,255,255,0.18); }
.alm-footer-region { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; width: 100%; min-height: 48px; box-sizing: border-box; font-weight: 600; color: #fff; padding: 12px 2px; font-size: 0.9375rem; text-transform: none; letter-spacing: 0; -webkit-tap-highlight-color: transparent; }
.alm-footer-region::-webkit-details-marker { display: none; }
.alm-footer-region::marker { content: ''; }
.alm-footer-region-name { display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; }
.alm-footer-region:hover .alm-footer-region-name { color: #fff; }
.alm-footer-region:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: var(--r-sm); }
.alm-footer-region-count { font-weight: 400; opacity: 1; letter-spacing: 0; color: #A1C0E5; font-variant-numeric: tabular-nums; }
.alm-footer-region-chevron { flex: 0 0 auto; opacity: 0.85; color: #fff; transition: transform var(--tr); }
.alm-footer-region-acc[open] > .alm-footer-region .alm-footer-region-chevron { transform: rotate(180deg); }
.alm-footer-region-body { padding: 4px 0 14px; }
.alm-footer-region-acc[open] > .alm-footer-region-body { animation: alm-footer-region-reveal 0.28s ease; }
@keyframes alm-footer-region-reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .alm-footer-region-chevron { transition: none; }
  .alm-footer-region-acc[open] > .alm-footer-region-body { animation: none; }
}
.alm-footer-etabs-tous { margin-top: 18px; }
.alm-footer .alm-footer-tous { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.alm-footer .alm-footer-tous:hover { color: #fff; text-decoration: underline; text-decoration-color: #fff; }
.alm-footer-newsletter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.alm-footer-newsletter input { flex: 1 1 12ch; min-width: 0; padding: 12px 14px; min-height: 48px; box-sizing: border-box; border: 1px solid #A1C0E5; background: rgba(255,255,255,0.08); border-radius: var(--r-sm); color: #fff; font-family: inherit; }
.alm-footer-newsletter input::placeholder { color: #C9DBEE; }
.alm-footer-newsletter input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; background: rgba(255,255,255,0.12); }
.alm-footer-newsletter button { background: var(--alm-blue); color: #fff; border: 2px solid #fff; padding: 12px 20px; min-height: 48px; border-radius: var(--r-sm); font-weight: 600; cursor: pointer; transition: background var(--tr), color var(--tr); }
.alm-footer-newsletter button:hover { background: #fff; color: var(--alm-blue); }
.alm-footer-newsletter button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.alm-footer-social { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.alm-footer-social a { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.12); display: inline-flex; align-items: center; justify-content: center; transition: background var(--tr), transform var(--tr); }
.alm-footer-social a:hover { background: #fff; transform: translateY(-2px); }
.alm-footer-social a:hover svg { fill: var(--alm-blue); }
.alm-footer-social svg { width: 18px; height: 18px; fill: #fff; }
.alm-footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.2); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 0.8125rem; color: rgba(255,255,255,0.75); }
.alm-footer-bottom-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.alm-footer-bottom-links a { display: inline-flex; align-items: center; min-height: 44px; }
.alm-footer-bottom-links .alm-btn-ghost { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 768px) {
  .alm-footer-nav a { min-height: 44px; }
  .alm-footer a[href^="mailto:"] { display: inline-flex; align-items: center; min-height: 44px; }
  .alm-footer-region { min-height: 52px; }
  .alm-footer-newsletter input, .alm-footer-newsletter button { flex: 1 1 100%; }
}

/* === COOKIE BANNER === V6.0 : déplacé dans assets/css/portail-cookies.css */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* === UTILITIES === */
.alm-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.alm-no-scroll { overflow: hidden; }

/* === FIX RESPONSIVE HEADER PORTAIL — OVERRIDE PARENT === */

/* Logo : taille stricte */
.alm-header .alm-header-logo { flex: 0 0 auto; display: flex; align-items: center; margin-right: auto; }
.alm-header .alm-header-logo img { height: 56px !important; width: auto !important; max-width: 220px !important; max-height: 56px !important; object-fit: contain !important; display: block; }

/* Header layout : forcer flex horizontal */
.alm-header .alm-header-inner {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 24px;
  min-height: 80px;
}

/* Nav desktop : horizontal */
.alm-header .alm-header-nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}

.alm-header .alm-header-nav > a,
.alm-header .alm-header-nav > .has-submenu > a {
  display: inline-flex !important;
  align-items: center;
  padding: 10px 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--alm-gray-700);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
  position: relative;
}

/* Sous-menus : cachés par défaut, visibles au hover SEULEMENT desktop */
.alm-header .alm-header-nav .submenu {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  border-radius: var(--r-md);
  padding: 8px 0;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 1000;
}

.alm-header .alm-header-nav .has-submenu {
  position: relative;
}

.alm-header .alm-header-nav .has-submenu:hover .submenu,
.alm-header .alm-header-nav .has-submenu:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.alm-header .alm-header-nav .submenu li {
  list-style: none;
  margin: 0;
}

.alm-header .alm-header-nav .submenu a {
  display: block;
  padding: 10px 18px;
  color: var(--alm-gray-700);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 400;
  white-space: nowrap;
}

.alm-header .alm-header-nav .submenu a:hover {
  background: var(--alm-gray-100);
  color: var(--alm-blue);
}

/* Indicateur sous-menu — chevron en bordure (pas un fond plein).
   IMPORTANT : la règle `.alm-header-nav a::after` ligne 125 définit un filet
   underline orange avec `position:absolute; bottom:4px; height:2px;
   background:var(--alm-orange);`. Ces propriétés persistent sur ce ::after
   par cascade et donnent un rectangle orange 6×2 rotaté 45° (effet
   « losange orange »). On RESET explicitement chaque prop héritée. */
.alm-header .alm-header-nav .has-submenu > a::after {
  content: '';
  display: inline-block;
  position: static;             /* reset position:absolute ligne 125 */
  background: transparent;      /* reset background:orange ligne 125 */
  bottom: auto; left: auto; right: auto;  /* reset positionnement ligne 125 */
  height: 8px;                  /* override height:2px ligne 125 */
  width: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  margin-left: 6px;
  margin-top: -2px;
  opacity: 0.6;
  transform: rotate(45deg);
  transform-origin: center;     /* reset origin:left ligne 125 */
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.alm-header .alm-header-nav .has-submenu:hover > a::after {
  transform: rotate(225deg);
  margin-top: 2px;
  opacity: 1;
}

/* CTA droite */
.alm-header .alm-header-cta {
  display: flex !important;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Burger caché par défaut desktop */
.alm-header .alm-burger {
  display: none;
}

/* === BREAKPOINTS RESPONSIVE === */

/* Tablette : nav un peu compactée */
@media (max-width: 1199px) {
  .alm-header .alm-header-nav > a,
  .alm-header .alm-header-nav > .has-submenu > a {
    padding: 10px 10px;
    font-size: 0.875rem;
  }
}

/* Mobile : nav cachée, burger visible */
@media (max-width: 1023px) {
  .alm-header .alm-header-nav { display: none !important; }
  .alm-header .alm-header-cta .alm-btn-outline { display: none !important; }
  .alm-header .alm-burger { display: block !important; }
  .alm-header .alm-header-logo img { height: 44px !important; max-height: 44px !important; }
  .alm-header .alm-header-inner { min-height: 64px; }
}

/* Mobile panel ouvert : scroll body bloqué + panel slide */
@media (max-width: 1023px) {
  .alm-mobile-panel {
    position: fixed;
    inset: 64px 0 0 0;
    background: #fff;
    padding: 24px var(--gutter);
    overflow-y: auto;
    z-index: 99;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
  }
  .alm-mobile-panel.open {
    transform: translateX(0);
    visibility: visible;
  }
  .alm-mobile-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .alm-mobile-panel > ul > li {
    border-bottom: 1px solid var(--alm-gray-200);
  }
  .alm-mobile-panel > ul > li > a {
    display: block;
    padding: 16px 0;
    color: var(--alm-blue);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.0625rem;
  }
  .alm-mobile-panel .submenu {
    display: none;
    padding: 0 0 12px 16px;
    list-style: none;
    margin: 0;
  }
  .alm-mobile-panel .has-submenu.open .submenu {
    display: block;
  }
  .alm-mobile-panel .submenu a {
    display: block;
    padding: 10px 0;
    color: var(--alm-gray-700);
    font-weight: 400;
    text-decoration: none;
    font-size: 0.9375rem;
  }
  .alm-mobile-panel .has-submenu > a::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    float: right;
    margin-top: 8px;
    transition: transform 0.2s;
  }
  .alm-mobile-panel .has-submenu.open > a::after {
    transform: rotate(-135deg);
    margin-top: 14px;
  }
}

/* === OVERRIDE PARENT THEME ELEMENTOR / HELLO === */
.alm-header .alm-header-nav a:hover {
  color: var(--alm-blue) !important;
  background: transparent !important;
}

/* BUGFIX bloquant : assets/custom.css:642 applique `display:none !important`
   à `header[role="banner"]:not(.almaviva-header)` — notre header portail
   (.alm-header) tombe dedans et collapse à 0×0. On surclasse ici. */
body.almaviva-portail-body header.alm-header,
body.almaviva-portail-body header.alm-header[role="banner"] {
  display: block !important;
  visibility: visible !important;
}
body.almaviva-portail-body header.alm-header > .alm-container {
  display: block !important;
}
body.almaviva-portail-body header.alm-header > .alm-container > .alm-header-inner {
  display: flex !important;
}

body.almaviva-portail-body .alm-header { background: #fff !important; }
body.almaviva-portail-body header.alm-header * { box-sizing: border-box; }

/* Annuler styles wp-block-* éventuels qui s'invitent */
.alm-header ul, .alm-header li {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* === FORCE FIX LOGO + MENU === */

body.almaviva-portail-body .alm-header .alm-header-logo,
body.almaviva-portail-body .alm-header .alm-header-logo a {
  flex: 0 0 auto;
  max-width: 220px;
  display: inline-flex;
  align-items: center;
  margin-right: auto;
}

body.almaviva-portail-body .alm-header .alm-header-logo img,
body.almaviva-portail-body .alm-header .alm-header-logo a img {
  height: 56px !important;
  width: auto !important;
  max-width: 220px !important;
  max-height: 56px !important;
  object-fit: contain !important;
  display: block;
}

body.almaviva-portail-body .alm-header .alm-header-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 80px;
  flex-wrap: nowrap;
}

body.almaviva-portail-body .alm-header .alm-header-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

body.almaviva-portail-body .alm-header .alm-header-nav > a,
body.almaviva-portail-body .alm-header .alm-header-nav > .has-submenu > a {
  display: inline-flex;
  align-items: center;
  padding: 8px 9px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--alm-gray-700);
  white-space: nowrap;
  line-height: 1.3;
  text-decoration: none;
}

body.almaviva-portail-body .alm-header .alm-header-cta {
  flex: 0 0 auto;
}

body.almaviva-portail-body .alm-header .alm-header-cta .alm-btn {
  padding: 10px 14px;
  font-size: 0.9375rem;
  white-space: nowrap;
}

@media (max-width: 1199px) {
  body.almaviva-portail-body .alm-header .alm-header-nav > a,
  body.almaviva-portail-body .alm-header .alm-header-nav > .has-submenu > a {
    padding: 8px 6px;
    font-size: 0.875rem;
  }
}

@media (max-width: 1023px) {
  body.almaviva-portail-body .alm-header .alm-header-nav { display: none; }
  body.almaviva-portail-body .alm-header .alm-burger { display: block; }
  body.almaviva-portail-body .alm-header .alm-header-logo img { height: 44px !important; max-height: 44px !important; }
  body.almaviva-portail-body .alm-header .alm-header-inner { min-height: 64px; gap: 16px; }
}

/* === GUARD CASCADE V2.1 ===
   .almaviva-portail-body a:hover { color: var(--alm-orange); } (ligne 55)
   est dangereux sur les sections à fond bleu (hero, footer) : orange sur
   bleu = 2.51:1 FAIL AA. On surcharge ici pour chaque section bleue.
   Le footer a déjà son override propre plus haut ; on couvre hero + stats. */
body.almaviva-portail-body .alm-hero a:not(.alm-btn):hover,
body.almaviva-portail-body .alm-stats a:not(.alm-btn):hover {
  color: var(--on-blue);
  text-decoration: underline;
  text-decoration-color: var(--on-blue);
}
/* Pour .alm-stats en mode option A (fond gris-clair actuel), la cascade
   orange:hover est OK (orange sur gris = 4.05:1, validé pour liens).
   La règle ci-dessus prend effet seulement si on rebascule en option B. */

/* === V2.1-FIX BOUTONS ===
   La cascade `.almaviva-portail-body a { color: var(--alm-blue); }` (ligne 69,
   spec 0,2,0) écrase `.alm-btn-primary { color: var(--cta-text) }` (spec 0,1,0).
   Résultat : texte bleu sur fond orange (Espace Pro header) et texte bleu sur
   overlay bleu (CTA hero "Nos spécialités"). Spec 0,3,0 + !important pour
   couper la cascade définitivement. */
body.almaviva-portail-body a.alm-btn-primary,
body.almaviva-portail-body .alm-header-cta a.alm-btn-primary,
body.almaviva-portail-body .alm-hero a.alm-btn-primary {
  color: var(--cta-text) !important;
  background: var(--cta-bg);
  border-color: var(--cta-bg);
}
body.almaviva-portail-body a.alm-btn-primary:hover,
body.almaviva-portail-body .alm-header-cta a.alm-btn-primary:hover,
body.almaviva-portail-body .alm-hero a.alm-btn-primary:hover {
  color: var(--cta-text) !important;
  background: var(--cta-bg-hover);
  border-color: var(--cta-bg-hover);
  opacity: .85;
}

/* CTA secondaire (outline blanc sur fond bleu, ex : "Nos spécialités") :
   reste blanc/transparent même hover. Cascade `.almaviva-portail-body a` bleue
   à neutraliser. */
body.almaviva-portail-body .alm-hero a.alm-btn-secondary,
body.almaviva-portail-body a.alm-btn-secondary {
  color: #fff !important;
  background: transparent;
  border: 2px solid #fff;
}
body.almaviva-portail-body .alm-hero a.alm-btn-secondary:hover,
body.almaviva-portail-body a.alm-btn-secondary:hover {
  color: var(--alm-blue) !important;
  background: #fff;
  border-color: #fff;
}

/* === ALM_SPLIT_ANCHOR_v1 — arrivée sur une ancre de section ===
   Le header du portail est `position: sticky` et RECOUVRE le haut de la fenêtre
   dès que la page a défilé — or on arrive toujours sur une ancre en position
   défilée. Sans marge, le titre de la section visée passe DERRIÈRE le bandeau.
   Hauteurs MESURÉES au navigateur (tools/lot-portail-offres/03-header-hauteur.mjs),
   jamais estimées : 80 px à 1440, 64 px à 782 et à 375. La mesure est prise en
   haut de page ET après défilement, et c'est le maximum des deux qui gouverne —
   le bandeau se compacte au scroll, retenir l'autre état masquerait l'ancre.
   `[id]` n'est pas décoratif : le sélecteur ne matche QUE les sections qui
   portent réellement une ancre, donc uniquement celles que ce lot crée. Les
   1723 autres alm/split du réseau ne sont pas concernés.
   Et la règle vit ici, dans la feuille du PORTAIL, plutôt que dans la feuille du
   bloc : elle ne doit pas voyager vers les 57 sites d'établissement. */
.almaviva-portail-body .alm-block-split[id] { scroll-margin-top: 64px; }
@media (min-width: 1024px) {
  .almaviva-portail-body .alm-block-split[id] { scroll-margin-top: 80px; }
}

/* ===================================================================
   PAGE NOS ÉTABLISSEMENTS — en-tête, barre de filtres et état vide
   Template : portail/page-templates/page-nos-etablissements.php
   La grille et les lignes vivent dans assets/css/portail-etablissements.css.
   =================================================================== */

.alm-etabs-page { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); background: var(--alm-bg-light); }

.alm-etabs-page__header { text-align: center; max-width: 760px; margin: 0 auto clamp(32px, 4vw, 48px); }
.alm-etabs-page__eyebrow { display: inline-block; font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: var(--alm-orange-dark); margin-bottom: 12px; }
.alm-etabs-page__header h1 { color: var(--alm-blue); font-family: var(--font-title); font-size: clamp(1.75rem, 4vw, 2.75rem); margin: 0 0 12px; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
.alm-etabs-page__lead { color: var(--alm-text-soft); font-size: clamp(1rem, 1.4vw, 1.125rem); line-height: 1.55; margin: 0 auto; max-width: 60ch; }

/* Filtres : card blanche en sticky soft sur scroll */
.alm-etabs-filters { background: #fff; border-radius: var(--r-lg); padding: clamp(16px, 2vw, 24px); box-shadow: 0 2px 12px rgba(0,72,153,0.06); margin-bottom: 32px; border: 1px solid var(--alm-border); }
.alm-filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.alm-filter-row:last-of-type { margin-bottom: 0; }
.alm-filter-row--selects { gap: 12px; align-items: end; flex-wrap: wrap; }
.alm-filter-row--selects .alm-field { flex: 1 1 180px; min-width: 0; }
.alm-filter-row--selects .alm-field--search { flex: 2 1 280px; }

/* Chips régions */
.alm-chip { padding: 8px 16px; border: 1.5px solid var(--alm-border); background: #fff; border-radius: var(--r-full); color: var(--alm-blue); font-size: 0.875rem; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease; font-weight: 600; font-family: inherit; line-height: 1.2; }
.alm-chip:hover { background: #eef3fa; border-color: var(--alm-blue); color: var(--alm-blue); }
.alm-chip:focus-visible { outline: 2px solid var(--alm-blue); outline-offset: 2px; }
.alm-chip.is-active { background: var(--alm-blue); border-color: var(--alm-blue); color: #fff; }

/* Champs formulaire */
.alm-field { display: flex; flex-direction: column; gap: 6px; }
.alm-field__label { font-size: 0.75rem; font-weight: 600; color: var(--alm-text-soft); text-transform: uppercase; letter-spacing: 0.08em; }
.alm-field select,
.alm-field input { padding: 10px 12px; border: 1.5px solid var(--alm-border); border-radius: var(--r-sm); font-size: 0.9375rem; color: var(--alm-text); background: #fff; font-family: inherit; transition: border-color var(--tr); width: 100%; }
.alm-field select:focus,
.alm-field input:focus { outline: none; border-color: var(--alm-blue); }
.alm-field select:focus-visible,
.alm-field input:focus-visible { outline: 2px solid var(--alm-blue); outline-offset: 2px; border-color: var(--alm-blue); box-shadow: none; }

/* Bouton géoloc — secondaire mais bleu rempli (contrast OK), pas blanc/outline */
body.almaviva-portail-body .alm-etabs-filters .alm-btn--geo {
  background: var(--alm-blue);
  color: #fff !important;
  border: 1.5px solid var(--alm-blue);
  padding: 10px 16px;
  font-size: 0.9375rem;
  white-space: nowrap;
  align-self: end;
  flex: 0 0 auto;
}
body.almaviva-portail-body .alm-etabs-filters .alm-btn--geo:hover {
  background: var(--alm-blue-dark);
  border-color: var(--alm-blue-dark);
}
.alm-btn--geo svg { vertical-align: middle; }

/* Meta + reset */
.alm-filter-meta { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--alm-border); font-size: 0.875rem; color: var(--alm-text-soft); margin-top: 16px; gap: 12px; flex-wrap: wrap; }
.alm-filter-meta #resultCount { color: var(--alm-blue); font-weight: 700; font-size: 1rem; }
.alm-link-reset { background: none; border: none; color: var(--alm-blue); cursor: pointer; font-size: 0.875rem; text-decoration: underline; padding: 0; font-family: inherit; }
.alm-link-reset:hover { color: var(--alm-blue-dark); }

/* Grille et lignes de la page /nos-etablissements/ : déplacées dans
   assets/css/portail-etablissements.css, chargé sur cette seule page.
   Ce fichier-ci part sur les 58 blogs. */

/* Empty state */
.alm-etabs-empty { text-align: center; padding: clamp(40px, 6vw, 80px) 20px; }
.alm-etabs-empty p { color: var(--alm-text-soft); margin: 0 0 16px; font-size: 1rem; }

@media (max-width: 768px) {
  .alm-filter-row--selects { flex-direction: column; align-items: stretch; }
  .alm-filter-row--selects .alm-field { width: 100%; }
  .alm-filter-row--selects .alm-btn--geo { align-self: stretch; justify-content: center; width: 100%; }
}

/* ============================================================
   Établissements — états DA / a11y / géoloc (V6.5-fix-72)
   ============================================================ */
/* Pills région : focus-visible net + micro-transition (l'actif rempli est géré
   par .is-active ; aria-pressed synchronisé côté JS). */
.alm-chip:focus-visible { outline: 2px solid var(--alm-blue); outline-offset: 2px; }
.alm-chip[aria-pressed="true"] { background: var(--alm-blue); border-color: var(--alm-blue); color: #fff; }
/* Pill active au survol : reste pleine (bleu foncé), pas de délavage (V6.5-fix-73) */
.alm-chip.is-active:hover,
.alm-chip[aria-pressed="true"]:hover { background: var(--alm-blue-dark); border-color: var(--alm-blue-dark); color: #fff; }

/* V6.5-fix-74 : hello-elementor reset.css style [type=button]:hover/:focus en
   (0,2,0) — spécificité ÉGALE à nos règles chip -> duel fragile qui laisse le
   reset délaver le fond plein de la pill active (fond transparent + bordure
   #c36 = "contour, pas de fond"). On remonte au pattern body-scopé éprouvé
   (identique au bouton géoloc) = spécificité 0,4,1, sans !important. Le focus
   reste un outline séparé -> pill active ET focus = fond plein + ring. */
body.almaviva-portail-body .alm-etabs-filters .alm-chip {
  background: #fff; border-color: var(--alm-border); color: var(--alm-blue);
}
body.almaviva-portail-body .alm-etabs-filters .alm-chip:hover {
  background: #eef3fa; border-color: var(--alm-blue); color: var(--alm-blue);
}
body.almaviva-portail-body .alm-etabs-filters .alm-chip.is-active,
body.almaviva-portail-body .alm-etabs-filters .alm-chip[aria-pressed="true"] {
  background: var(--alm-blue); border-color: var(--alm-blue); color: #fff;
}
body.almaviva-portail-body .alm-etabs-filters .alm-chip.is-active:hover,
body.almaviva-portail-body .alm-etabs-filters .alm-chip[aria-pressed="true"]:hover {
  background: var(--alm-blue-dark); border-color: var(--alm-blue-dark); color: #fff;
}

/* Bouton "Me localiser" : focus-visible net + état actif + loading (spinner) */
body.almaviva-portail-body .alm-etabs-filters .alm-btn--geo:focus-visible {
  outline: 2px solid var(--alm-blue); outline-offset: 2px;
}
body.almaviva-portail-body .alm-etabs-filters .alm-btn--geo:active {
  background: var(--alm-blue-dark); border-color: var(--alm-blue-dark);
}
body.almaviva-portail-body .alm-etabs-filters .alm-btn--geo.is-loading {
  opacity: 0.85; cursor: progress;
}
.alm-btn--geo.is-loading svg { animation: alm-geo-spin 0.8s linear infinite; transform-origin: 12px 12px; }
@keyframes alm-geo-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .alm-btn--geo.is-loading svg { animation: none; }
}

/* Statut géoloc (aria-live) : message clair, neutre/erreur/succès */
.alm-geo-status { font-size: 0.8125rem; font-weight: 500; color: var(--alm-text-soft); }
.alm-geo-status.is-error { color: var(--alm-orange-darker); }
.alm-geo-status.is-ok    { color: var(--alm-blue); }
.alm-geo-status:empty    { display: none; }

/* Distance, lien de titre et paliers responsive de la ligne : dans
   assets/css/portail-etablissements.css. */

/* Pills : scroll horizontal propre en très petit écran (pas de débordement) */
@media (max-width: 480px) {
  .alm-filter-row--regions {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding-bottom: 4px; scrollbar-width: thin;
  }
  .alm-filter-row--regions .alm-chip { flex: 0 0 auto; }
}

@media (max-width: 1199px) {
    .alm-footer { padding-bottom: 80px; }
}
