/* ============================================================================
   home-dialyse-alma.css — accueil du Centre de dialyse de l'Alma (blog 29)
   ----------------------------------------------------------------------------
   PORTÉE. Cette feuille n'est enqueuée que sous
       is_front_page() && get_current_blog_id() === 29
   (cf. inc/portail/init.php). Elle ne part sur AUCUN autre blog et sur aucune
   autre page. Les feuilles servies au réseau — portail.css, portail-blocks.css,
   custom.css, les style-index.css des blocs — ne sont pas touchées.

   RÔLE. Le contenu (textes, libellés de photo, liens) vit en base dans les
   attributs des blocs alm/*. Cette feuille ne fait que la forme, d'après
   tools/home-dialyse-alma-v2.html.

   COULEURS. Aucun littéral hexadécimal, à deux exceptions près : le blanc pur
   et le noir pur des mélanges. Tout le reste sort des jetons de la DA relevés
   sur la page servie ; les tons de la maquette qui n'ont pas de jeton propre
   sont dérivés par color-mix DANS CE FICHIER, et nulle part ailleurs.

   ⚠️ ANCRES DE CLASSE, PAS DE POSITION. Les blocs alm/* n'émettent aucune
   classe personnalisée : leurs render.php n'appellent pas
   get_block_wrapper_attributes() et ne lisent ni `className` ni `anchor`.
   Chaque section est donc désignée par sa classe de bloc et ce qu'elle
   contient (:has), jamais par son rang. Les premières versions ciblaient
   section:nth-of-type(N) : l'accueil a perdu ses deux alm/duo (venir au
   centre, patient vacancier), tout s'est décalé, et des sections recevaient
   le style d'une autre sans une erreur (2026-09-28).

       « SECTION N » ci-dessous = numéro de la maquette. Ancres :
       2  repères        .alm-block-cards--minimal:has(.alm-card__tagline)
       3  routeur        .alm-block-cards:has(.alm-card__link--cue)
       5  transport      .alm-block-split--no-media.alm-block--bg-grey:has(.alm-b29-h3)
       6  modalités      .alm-block-cards:has(.alm-b29-mode__body)
       7  consultation   .alm-block-split--no-media.alm-block--bg-white:has(.alm-b29-h3)
       8  étapes         .alm-block-cards--numbered
       10 équipe         .alm-block-cards:has(.alm-b29-duo__body)  (fin de feuille)
       11 engagements    .alm-block-cards--minimal:not(:has(.alm-card__text))
       12 clôture        .alm-block-cta
       4 venir au centre et 9 patient vacancier : absents de la page, règles retirées.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1. JETONS LOCAUX — tous dérivés de la DA
   ------------------------------------------------------------------------ */
body.home main.alm-home,
body.home .alm-vhero-a {
  /* Bleus : quatre existent déjà en jeton. */
  --b29-blue:        var(--alm-blue);        /* #004899 */
  --b29-blue-mid:    var(--alm-blue-light);  /* #1a5fb0 — la « --blue-mid » de la maquette */
  --b29-blue-dark:   var(--alm-blue-dark);   /* #003670 — exactement le ton de la maquette */
  --b29-blue-pale:   var(--alm-blue-soft);   /* #A1C0E5 */
  /* Les trois blocs bleus prennent chacun un JETON tel quel, sans dérivation :
     hero → --alm-blue-3, vacancier → --alm-blue-2, clôture → --alm-blue. */

/* Oranges : --alm-orange-dark est un ALIAS de --alm-orange (#EE7203) depuis
     contraste du réseau (tools/fix-oranges-contraste). C'est lui qu'on emploie
     partout où l'orange porte du texte. */
  --b29-orange:      var(--alm-orange);
  --b29-orange-dark: var(--alm-orange-dark);

  /* Encres. --alm-gray-500 (#8A8A82) ne passe pas AA en petit texte sur blanc :
     les libellés discrets prennent gray-700, pas gray-500. */
  --b29-ink:         var(--on-white-body);   /* #1A1A1A */
  --b29-ink-soft:    var(--on-white-soft);   /* #4A4A45 */
  --b29-ink-faint:   var(--alm-gray-700);    /* #4A4A45 */

  --b29-paper:       #fff;
  --b29-paper-alt:   var(--alm-bg-grey);     /* #F4F4F0 */
  --b29-line:        var(--alm-border);      /* #DDDDD5 */
  --b29-tint-blue:   var(--alm-bg-soft);     /* #F4F7FB */
  --b29-tint-orange: color-mix(in srgb, var(--alm-orange) 12%, #fff);

  /* Ambre des emplacements à fournir : dérivé de --alm-yellow (#ECA224), le
     seul jaune de la DA. Les deux bandes de la hachure sont deux mélanges du
     même jeton, l'encre un mélange jaune/noir identitaire. */
  --b29-amber-1:     color-mix(in srgb, var(--alm-yellow) 14%, #fff);
  --b29-amber-2:     color-mix(in srgb, var(--alm-yellow) 26%, #fff);
  --b29-amber-line:  color-mix(in srgb, var(--alm-yellow) 78%, var(--alm-gray-900));
  --b29-amber-ink:   color-mix(in srgb, var(--alm-yellow) 30%, var(--alm-gray-900));
  /* Variante sombre, pour l'ambre posé sur le bleu profond. */
  --b29-amber-dark-bg:   color-mix(in srgb, var(--alm-yellow) 14%, var(--alm-blue-3));
  --b29-amber-dark-line: color-mix(in srgb, var(--alm-yellow) 55%, var(--alm-blue-3));
  --b29-amber-dark-ink:  color-mix(in srgb, var(--alm-yellow) 62%, #fff);

  /* Trois niveaux d'ombre, pris tels quels dans l'échelle de la DA. */
  --b29-sh-1: var(--shadow-sm);
  --b29-sh-2: var(--shadow-lg);
  --b29-sh-3: var(--shadow-xl);

  --b29-r:    var(--r-md);   /* 8px  */
  --b29-r-lg: var(--r-lg);   /* 16px */
}

/* ---------------------------------------------------------------------------
   2. PICTOGRAMMES — masques SVG en data:, colorés par background-color
   wp_kses_post interdit <svg> dans un champ de bloc : les pictogrammes ne
   peuvent pas être du balisage. Le masque laisse la couleur venir d'un jeton,
   ce qu'une image de fond ne permettrait pas.
   ------------------------------------------------------------------------ */
body.home main.alm-home {
  --b29-i-pouls:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h4l2 6 4-14 2 8h6'/%3E%3C/svg%3E");
  --b29-i-postes:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M7 9h4M7 13h7'/%3E%3C/svg%3E");
  --b29-i-horloge:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
  --b29-i-batiment: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V8l8-5 8 5v13'/%3E%3Cpath d='M9 21v-6h6v6'/%3E%3C/svg%3E");
  --b29-i-user:     url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M5 20c0-3.6 3.1-6 7-6s7 2.4 7 6'/%3E%3C/svg%3E");
  --b29-i-doc:      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3v4h4'/%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7z'/%3E%3Cpath d='M9 13h6M9 17h4'/%3E%3C/svg%3E");
  --b29-i-valise:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M9 7V5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2'/%3E%3C/svg%3E");
  --b29-i-stetho:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v6M9 6h6'/%3E%3Cpath d='M5 21v-7a7 7 0 0 1 14 0v7'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E");
  --b29-i-adresse:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a8 8 0 0 0-8 8c0 6 8 12 8 12s8-6 8-12a8 8 0 0 0-8-8z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
  --b29-i-tel:      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a12 12 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E");
  --b29-i-acces:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 17h16M6 17V9l6-4 6 4v8'/%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='15' cy='20' r='1.5'/%3E%3C/svg%3E");
  --b29-i-camion:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17h1l1-6h11l3 3h2v3h-2'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3Cpath d='M10 8V5m-1.5 1.5h3'/%3E%3C/svg%3E");
  --b29-i-agenda:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3v4M16 3v4'/%3E%3Crect x='3' y='6' width='18' height='15' rx='2'/%3E%3Cpath d='M3 11h18'/%3E%3C/svg%3E");
  --b29-i-coeur:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-4.6-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 11c0 5.4-7 10-7 10z'/%3E%3C/svg%3E");
  --b29-i-bouclier: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 4v6c0 4.4-3.4 7.6-8 8-4.6-.4-8-3.6-8-8V7z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
  --b29-i-globe:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a15 15 0 0 1 0 18a15 15 0 0 1 0-18z'/%3E%3C/svg%3E");
}
/* Gabarit commun d'un pictogramme masqué. */
body.home main.alm-home .alm-b29-row dt::before,
body.home main.alm-home > section.alm-block-cards:has(.alm-card__link--cue) .alm-card::before,
body.home main.alm-home > section.alm-block-cards--minimal:has(.alm-card__tagline) .alm-card::before,
body.home main.alm-home > section.alm-block-split--no-media.alm-block--bg-grey:has(.alm-b29-h3) .alm-block-split__body::before,
body.home main.alm-home > section.alm-block-split--no-media.alm-block--bg-white:has(.alm-b29-h3) .alm-block-split__body::before,
body.home main.alm-home > section.alm-block-cards--minimal:not(:has(.alm-card__text)) .alm-card__link::before {
  content: "";
  display: block;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center;  mask-position: center;
  -webkit-mask-size: contain;     mask-size: contain;
  flex: 0 0 auto;
}

/* ---------------------------------------------------------------------------
   3. EMPLACEMENTS PHOTO ET ZONES À FOURNIR
   Le libellé est du vrai texte, porté par le contenu — seul le hero fait
   exception (son balisage vient du template, pas de la page).
   ------------------------------------------------------------------------ */
body.home main.alm-home .alm-b29-ph {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: repeating-linear-gradient(135deg,
              var(--b29-amber-1) 0 12px, var(--b29-amber-2) 12px 24px);
  border: 1px dashed var(--b29-amber-line);
  color: var(--b29-amber-ink);
  font-size: .8125rem; font-weight: 700; line-height: 1.45; padding: 18px;
}
body.home main.alm-home .alm-b29-ph > span { max-width: 26ch; }
body.home main.alm-home .alm-b29-ph-43   { aspect-ratio: 4 / 3;  border-radius: var(--b29-r-lg); box-shadow: var(--b29-sh-2); }
body.home main.alm-home .alm-b29-ph-1610 { aspect-ratio: 16 / 10; border-radius: 0; border-width: 0 0 1px 0; }
body.home main.alm-home .alm-b29-ph-219  { aspect-ratio: 21 / 9;  border-radius: 0; border-width: 0 0 1px 0; }

/* IMAGE POSÉE — exactement le cadrage du placeholder qu'elle remplace.
   Le filtre de rendu (inc/etablissement/home-b29-visuels.php) échange le div
   hachuré contre une <figure> portant les mêmes suffixes de ratio, `-ph`
   devenant `-img`. La géométrie de la page ne bouge donc pas quand un visuel
   arrive ou repart. */
body.home main.alm-home .alm-b29-img { margin: 0; overflow: hidden; background: var(--b29-paper-alt); }
body.home main.alm-home .alm-b29-img > img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.home main.alm-home .alm-b29-img-43   { aspect-ratio: 4 / 3;   border-radius: var(--b29-r-lg); box-shadow: var(--b29-sh-2); }
body.home main.alm-home .alm-b29-img-1610 { aspect-ratio: 16 / 10; }
body.home main.alm-home .alm-b29-img-219  { aspect-ratio: 21 / 9; }

body.home main.alm-home .alm-b29-todo {
  background: var(--b29-amber-1);
  border: 1px dashed var(--b29-amber-line);
  color: var(--b29-amber-ink);
  border-radius: var(--b29-r);
  padding: 14px 16px; margin: 16px 0 0;
  font-size: .8125rem; font-weight: 600; line-height: 1.5;
  max-width: none;
}
body.home main.alm-home .alm-b29-todo-dark {
  background: var(--b29-amber-dark-bg);
  border-color: var(--b29-amber-dark-line);
  color: var(--b29-amber-dark-ink);
}

/* ---------------------------------------------------------------------------
   4. HERO — photo à fournir, voile bleu, cercles concentriques
   Le hero est rendu par template-parts/sections/hero/a.php depuis les options
   du blog : on n'agit que par la feuille.
   ------------------------------------------------------------------------ */
/* APLAT — jeton de la charte, aucun dégradé, aucun motif. */
body.home .alm-vhero-a { background: var(--alm-blue-3); }
/* SANS IMAGE : le fond du hero est l'aplat de la section, et l'emplacement
   photo n'est signalé que par le libellé ci-dessous.
   AVEC IMAGE : la classe de corps `alm-b29-hero-photo` — posée par
   inc/etablissement/home-b29-visuels.php quand `almaviva_home_hero_image`
   désigne une pièce jointe valide — rend la main au template, qui peint
   `--bg` dans cette couche. On ne neutralise donc le fond que quand il n'y a
   rien à montrer, jamais quand une photo a été posée. */
body.home:not(.alm-b29-hero-photo) .alm-vhero-a__bg {
  inset: 0;
  animation: none;
  background: none;
}
body.home.alm-b29-hero-photo .alm-vhero-a__bg { inset: 0; animation: none; }
/* Le libellé est porté par __inner, et non par la section.
   Sur la section il ne marchait ni en haut ni en bas : en haut il passait sous
   l'en-tête fixe du site, dont la hauteur réelle (barre de contact + navigation,
   ≈ 140 px) dépasse le jeton --header-h (90 px) ; en bas il passait sous les
   cartes de repères, qui remontent de 62 px — mesuré, 1 149 pixels blancs sur la
   bande à 12 px du bas. Et un pseudo en flux sur la SECTION devient un enfant
   flex du hero, donc une colonne à côté du texte.
   Sur __inner, qui est un bloc normal en position:relative, il est en flux par
   défaut (mobile) et flotte au-dessus de 900 px. */
body.home.alm-b29-hero-photo .alm-vhero-a__inner::before { content: none; }
body.home:not(.alm-b29-hero-photo) .alm-vhero-a__inner::before {
  content: "PHOTO — façade ou entrée du centre, cadrage large, 1920 × 900 minimum";
  display: block; width: fit-content; max-width: 26ch;
  margin: 0 0 22px; padding: 10px 14px; border-radius: var(--b29-r);
  font-size: .75rem; font-weight: 700; line-height: 1.4; letter-spacing: .02em;
  color: var(--b29-amber-dark-ink);
  background: color-mix(in srgb, var(--alm-blue-3) 86%, #000);
  border: 1px dashed var(--b29-amber-dark-line);
}
@media (min-width: 901px) {
  body.home:not(.alm-b29-hero-photo) .alm-vhero-a__inner::before {
    position: absolute; z-index: 3; margin: 0;
    /* 84 px et non la gouttière : le rail flottant du site (.almv-widgets)
       occupe les 62 derniers pixels de la fenêtre entre y=251 et y=550 —
       mesuré — et recouvrait le libellé. */
    right: 84px; bottom: 88px; max-width: 24ch;
  }
}
/* VOILE — un aplat semi-opaque, pas un dégradé.
   Il reste parce qu'il sera nécessaire à la lisibilité du jour où une photo sera
   posée dans __bg ; sans photo il ne fait que renforcer l'aplat de la section.
   Le thème pose deux pseudos décoratifs sur ce voile (sections.css:29-30, un
   dégradé vertical et un dégradé horizontal) : ils sont neutralisés, ce sont
   eux aussi du décor sur un bloc bleu. */
body.home .alm-vhero-a__ov {
  background: color-mix(in srgb, var(--alm-blue-3) 82%, transparent);
}
body.home .alm-vhero-a__ov::before,
body.home .alm-vhero-a__ov::after { content: none; background: none; }
body.home .alm-vhero-a__inner { padding-bottom: clamp(120px, 12vw, 190px); }
body.home .alm-vhero-a__title { font-size: clamp(2rem, 4.6vw, 3.125rem); max-width: 19ch; letter-spacing: -.015em; }
body.home .alm-vhero-a__sub   { font-size: 1.125rem; max-width: 52ch; }

/* ---------------------------------------------------------------------------
   5. RYTHME DES SECTIONS
   Deux bandes de la maquette réunissent chacune deux blocs (venir + transport,
   modalités + consultation) : on supprime la respiration entre eux pour qu'ils
   se lisent comme une seule section, comme dans la maquette.
   ------------------------------------------------------------------------ */
/* Rythme ramené à l'échelle du thème (--alm-block-pad-block : 80 / 54,7 / 48 px) — CONTENUS-V1, audit 1.4. */
body.home main.alm-home > section.alm-block { padding-block: var(--alm-block-pad-block); }
body.home main.alm-home > section.alm-block-split--no-media.alm-block--bg-grey:has(.alm-b29-h3).alm-block-split { padding-top: clamp(28px, 3vw, 40px); }
body.home main.alm-home > section.alm-block-cards:has(.alm-b29-mode__body).alm-block-cards { padding-bottom: 0; }
body.home main.alm-home > section.alm-block-split--no-media.alm-block--bg-white:has(.alm-b29-h3).alm-block-split { padding-top: clamp(28px, 3vw, 40px); }
body.home main.alm-home > section.alm-block-cards--minimal:not(:has(.alm-card__text)).alm-block-cards { padding-top: 0; }

/* En-tête de bloc : la maquette aligne à gauche et n'excède pas la mesure. */
body.home main.alm-home .alm-block__header { margin-bottom: 34px; }
body.home main.alm-home .alm-block__header h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.125rem); letter-spacing: -.015em;
  font-weight: 800; margin: 0 0 10px;
}
body.home main.alm-home .alm-block__header .alm-lead {
  font-size: 1.0625rem; color: var(--b29-ink-soft); opacity: 1; max-width: 62ch;
}
body.home main.alm-home .alm-eyebrow { color: var(--b29-orange-dark); letter-spacing: .11em; }

/* Les blocs de cette page pilotent eux-mêmes leurs cartes : on neutralise la
   grille mutualisée là où la maquette impose la sienne. */
body.home main.alm-home .alm-block-cards--minimal .alm-card { background: none; }

/* ---------------------------------------------------------------------------
   6. SECTION 2 — REPÈRES CHEVAUCHANTS
   ------------------------------------------------------------------------ */
body.home main.alm-home > section.alm-block-cards--minimal:has(.alm-card__tagline).alm-block-cards {
  padding-block: 0; position: relative; z-index: 3;
}
body.home main.alm-home > section.alm-block-cards--minimal:has(.alm-card__tagline) .alm-cards-grid {
  margin-top: -62px; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(214px, 1fr));
}
body.home main.alm-home > section.alm-block-cards--minimal:has(.alm-card__tagline) .alm-card {
  background: var(--b29-paper); border-radius: var(--r-lg); padding: 22px 20px 20px;
  box-shadow: var(--b29-sh-3); border-top: 3px solid var(--b29-orange);
  display: block;
}
body.home main.alm-home > section.alm-block-cards--minimal:has(.alm-card__tagline) .alm-card:hover { transform: none; box-shadow: var(--b29-sh-3); }
body.home main.alm-home > section.alm-block-cards--minimal:has(.alm-card__tagline) .alm-card:nth-child(2) { border-top-color: var(--b29-blue); }
body.home main.alm-home > section.alm-block-cards--minimal:has(.alm-card__tagline) .alm-card:nth-child(3) { border-top-color: var(--b29-blue-mid); }
body.home main.alm-home > section.alm-block-cards--minimal:has(.alm-card__tagline) .alm-card:nth-child(4) { border-top-color: var(--b29-blue-pale); }
body.home main.alm-home > section.alm-block-cards--minimal:has(.alm-card__tagline) .alm-card::before {
  width: 26px; height: 26px; margin-bottom: 12px; color: var(--b29-blue); opacity: .9;
}
body.home main.alm-home > section.alm-block-cards--minimal:has(.alm-card__tagline) .alm-card:nth-child(1)::before { -webkit-mask-image: var(--b29-i-pouls);    mask-image: var(--b29-i-pouls); }
body.home main.alm-home > section.alm-block-cards--minimal:has(.alm-card__tagline) .alm-card:nth-child(2)::before { -webkit-mask-image: var(--b29-i-postes);   mask-image: var(--b29-i-postes); }
body.home main.alm-home > section.alm-block-cards--minimal:has(.alm-card__tagline) .alm-card:nth-child(3)::before { -webkit-mask-image: var(--b29-i-horloge);  mask-image: var(--b29-i-horloge); }
body.home main.alm-home > section.alm-block-cards--minimal:has(.alm-card__tagline) .alm-card:nth-child(4)::before { -webkit-mask-image: var(--b29-i-batiment); mask-image: var(--b29-i-batiment); }
/* tagline = le libellé (dt de la maquette), text = la valeur (dd). */
body.home main.alm-home > section.alm-block-cards--minimal:has(.alm-card__tagline) .alm-card__tagline {
  font-size: .6875rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--b29-ink-faint); font-style: normal; margin: 0;
}
body.home main.alm-home > section.alm-block-cards--minimal:has(.alm-card__tagline) .alm-card__text {
  margin: 7px 0 0; font-weight: 700; font-size: .9375rem; color: var(--b29-ink);
}

/* ---------------------------------------------------------------------------
   7. SECTION 3 — ROUTEUR « VOUS ÊTES »
   ------------------------------------------------------------------------ */
body.home main.alm-home > section.alm-block-cards:has(.alm-card__link--cue) .alm-cards-grid {
  gap: 18px; margin-top: 34px;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
}
body.home main.alm-home > section.alm-block-cards:has(.alm-card__link--cue) .alm-card {
  background: var(--b29-paper); border: 1px solid var(--b29-line); border-radius: var(--r-lg);
  padding: 26px 24px 22px; box-shadow: var(--b29-sh-1);
  transition: box-shadow var(--tr), transform var(--tr);
}
body.home main.alm-home > section.alm-block-cards:has(.alm-card__link--cue) .alm-card:hover { box-shadow: var(--b29-sh-2); transform: translateY(-3px); }
body.home main.alm-home > section.alm-block-cards:has(.alm-card__link--cue) .alm-card::before {
  width: 44px; height: 44px; border-radius: var(--r-md); margin-bottom: 16px;
  background-color: var(--b29-tint-blue);
  -webkit-mask: none; mask: none;                 /* la pastille est un fond, l'icône est en ::after */
}
body.home main.alm-home > section.alm-block-cards:has(.alm-card__link--cue) .alm-card { position: relative; }
body.home main.alm-home > section.alm-block-cards:has(.alm-card__link--cue) .alm-card::after {
  content: ""; position: absolute; top: 26px; left: 24px; width: 44px; height: 44px;
  background-color: var(--b29-blue);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center;  mask-position: center;
  -webkit-mask-size: 22px 22px;   mask-size: 22px 22px;
  pointer-events: none;
}
body.home main.alm-home > section.alm-block-cards:has(.alm-card__link--cue) .alm-card:nth-child(1)::after { -webkit-mask-image: var(--b29-i-user);   mask-image: var(--b29-i-user); }
body.home main.alm-home > section.alm-block-cards:has(.alm-card__link--cue) .alm-card:nth-child(2)::after { -webkit-mask-image: var(--b29-i-doc);    mask-image: var(--b29-i-doc); }
body.home main.alm-home > section.alm-block-cards:has(.alm-card__link--cue) .alm-card:nth-child(3)::after { -webkit-mask-image: var(--b29-i-valise); mask-image: var(--b29-i-valise); }
body.home main.alm-home > section.alm-block-cards:has(.alm-card__link--cue) .alm-card:nth-child(4)::after { -webkit-mask-image: var(--b29-i-stetho); mask-image: var(--b29-i-stetho); }
/* La 3e entrée — patient vacancier — est la seule en orange dans la maquette. */
body.home main.alm-home > section.alm-block-cards:has(.alm-card__link--cue) .alm-card:nth-child(3)::before { background-color: var(--b29-tint-orange); }
body.home main.alm-home > section.alm-block-cards:has(.alm-card__link--cue) .alm-card:nth-child(3)::after  { background-color: var(--b29-orange-dark); }
body.home main.alm-home > section.alm-block-cards:has(.alm-card__link--cue) .alm-card__title {
  font-size: 1.0625rem; font-weight: 700; color: var(--b29-blue); margin: 0 0 4px;
}
body.home main.alm-home > section.alm-block-cards:has(.alm-card__link--cue) .alm-card__text {
  color: var(--b29-ink-soft); font-size: .9375rem; margin: 6px 0 0;
}
body.home main.alm-home > section.alm-block-cards:has(.alm-card__link--cue) .alm-card__link--cue {
  color: var(--b29-orange-dark); font-weight: 800; font-size: .8125rem; margin-top: 16px;
}

/* ---------------------------------------------------------------------------
   8. SECTION 4 — VENIR AU CENTRE (photo + badge en débord | infos)
   ------------------------------------------------------------------------ */
body.home main.alm-home .alm-b29-visite-media { position: relative; }
body.home main.alm-home .alm-b29-badge {
  position: absolute; right: -26px; bottom: -26px; max-width: 230px;
  background: var(--b29-blue); color: var(--on-blue);
  border-radius: var(--r-lg); padding: 20px 24px; box-shadow: var(--b29-sh-3);
}
body.home main.alm-home .alm-b29-badge__k {
  display: block; font-size: .6875rem; letter-spacing: .09em; text-transform: uppercase;
  font-weight: 700; color: var(--b29-blue-pale);
}
body.home main.alm-home .alm-b29-badge__v { display: block; font-weight: 700; font-size: .9375rem; margin-top: 5px; }

body.home main.alm-home .alm-b29-rows { margin: 22px 0 0; }
body.home main.alm-home .alm-b29-row {
  display: grid; grid-template-columns: 34px 1fr; gap: 16px;
  padding: 15px 0; border-bottom: 1px solid var(--b29-line);
}
body.home main.alm-home .alm-b29-row:first-child { border-top: 1px solid var(--b29-line); }
body.home main.alm-home .alm-b29-row dt {
  grid-column: 2; font-weight: 800; font-size: .8125rem; letter-spacing: .05em;
  text-transform: uppercase; color: var(--b29-ink-faint); position: relative;
}
body.home main.alm-home .alm-b29-row dd {
  grid-column: 2; margin: 3px 0 0; font-size: .9375rem; color: var(--b29-ink);
}
body.home main.alm-home .alm-b29-row dt::before {
  position: absolute; left: -34px; top: -1px; width: 20px; height: 20px;
  color: var(--b29-blue);
}
body.home main.alm-home .alm-b29-row-adresse dt::before { -webkit-mask-image: var(--b29-i-adresse); mask-image: var(--b29-i-adresse); }
body.home main.alm-home .alm-b29-row-tel     dt::before { -webkit-mask-image: var(--b29-i-tel);     mask-image: var(--b29-i-tel); }
body.home main.alm-home .alm-b29-row-horloge dt::before { -webkit-mask-image: var(--b29-i-horloge); mask-image: var(--b29-i-horloge); }
body.home main.alm-home .alm-b29-row-acces   dt::before { -webkit-mask-image: var(--b29-i-acces);   mask-image: var(--b29-i-acces); }

/* ---------------------------------------------------------------------------
   9. SECTIONS 5 et 7 — ENCARTS APPUYÉS (transport, consultation)
   Le corps du split devient la grille 3 colonnes de la maquette :
   pictogramme (::before), texte (richtext), bouton (__ctas).
   ------------------------------------------------------------------------ */
body.home main.alm-home > section.alm-block-split--no-media.alm-block--bg-grey:has(.alm-b29-h3) .alm-block-split__body,
body.home main.alm-home > section.alm-block-split--no-media.alm-block--bg-white:has(.alm-b29-h3) .alm-block-split__body {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 24px; align-items: center;
  max-width: none;
  background: var(--b29-paper); border-radius: var(--b29-r-lg);
  box-shadow: var(--b29-sh-2); padding: 28px 30px;
  border-left: 5px solid var(--b29-orange);
}
body.home main.alm-home > section.alm-block-split--no-media.alm-block--bg-white:has(.alm-b29-h3) .alm-block-split__body { border-left-color: var(--b29-blue); }
body.home main.alm-home > section.alm-block-split--no-media.alm-block--bg-grey:has(.alm-b29-h3) .alm-block-split__body::before,
body.home main.alm-home > section.alm-block-split--no-media.alm-block--bg-white:has(.alm-b29-h3) .alm-block-split__body::before {
  width: 56px; height: 56px; border-radius: var(--r-md);
  background-color: var(--b29-tint-orange);
  -webkit-mask: none; mask: none;
  position: relative;
}
body.home main.alm-home > section.alm-block-split--no-media.alm-block--bg-white:has(.alm-b29-h3) .alm-block-split__body::before { background-color: var(--b29-tint-blue); }
/* Le pictogramme lui-même, superposé à la pastille. */
body.home main.alm-home > section.alm-block-split--no-media.alm-block--bg-grey:has(.alm-b29-h3) .alm-block-split__body,
body.home main.alm-home > section.alm-block-split--no-media.alm-block--bg-white:has(.alm-b29-h3) .alm-block-split__body { position: relative; }
body.home main.alm-home > section.alm-block-split--no-media.alm-block--bg-grey:has(.alm-b29-h3) .alm-block-split__body::after,
body.home main.alm-home > section.alm-block-split--no-media.alm-block--bg-white:has(.alm-b29-h3) .alm-block-split__body::after {
  content: ""; position: absolute; left: 30px; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; pointer-events: none;
  background-color: var(--b29-orange-dark);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center;  mask-position: center;
  -webkit-mask-size: 28px 28px;   mask-size: 28px 28px;
  -webkit-mask-image: var(--b29-i-camion); mask-image: var(--b29-i-camion);
}
body.home main.alm-home > section.alm-block-split--no-media.alm-block--bg-white:has(.alm-b29-h3) .alm-block-split__body::after {
  background-color: var(--b29-blue);
  -webkit-mask-image: var(--b29-i-agenda); mask-image: var(--b29-i-agenda);
}
body.home main.alm-home > section.alm-block-split--no-media.alm-block--bg-grey:has(.alm-b29-h3) .alm-block-split__richtext,
body.home main.alm-home > section.alm-block-split--no-media.alm-block--bg-white:has(.alm-b29-h3) .alm-block-split__richtext { min-width: 0; }
body.home main.alm-home > section.alm-block-split--no-media.alm-block--bg-grey:has(.alm-b29-h3) .alm-block-split__ctas,
body.home main.alm-home > section.alm-block-split--no-media.alm-block--bg-white:has(.alm-b29-h3) .alm-block-split__ctas { margin: 0; }

/* ---------------------------------------------------------------------------
   10. SECTION 6 — TROIS MODALITÉS
   ------------------------------------------------------------------------ */
body.home main.alm-home > section.alm-block-cards:has(.alm-b29-mode__body) .alm-cards-grid {
  gap: 22px; margin-top: 34px;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
}
body.home main.alm-home > section.alm-block-cards:has(.alm-b29-mode__body) .alm-card {
  background: var(--b29-paper); border-radius: var(--b29-r-lg); overflow: hidden;
  box-shadow: var(--b29-sh-2); padding: 0;
}
body.home main.alm-home > section.alm-block-cards:has(.alm-b29-mode__body) .alm-card__text { margin: 0; }
body.home main.alm-home .alm-b29-mode__body { padding: 24px; }
body.home main.alm-home .alm-b29-tag {
  display: inline-block; font-size: .6875rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--on-blue); background: var(--b29-blue);
  padding: 4px 10px; border-radius: var(--r-full); margin-bottom: 12px;
}
/* Dégradé de bleus sur les trois pastilles. Chacun garde ≥ 4,5:1 avec le blanc :
   un mélange plus clair ferait tomber le texte de la pastille sous AA. */
body.home main.alm-home > section.alm-block-cards:has(.alm-b29-mode__body) .alm-card:nth-child(2) .alm-b29-tag { background: var(--b29-blue-mid); }
/* 92 % et non 84 % : à 84 % la pastille tombait à 4,49:1 avec son texte blanc,
   soit 0,01 sous le seuil AA. Mesuré au pixel. */
body.home main.alm-home > section.alm-block-cards:has(.alm-b29-mode__body) .alm-card:nth-child(3) .alm-b29-tag { background: color-mix(in srgb, var(--alm-blue-light) 92%, #fff); }
body.home main.alm-home > section.alm-block-cards:has(.alm-b29-mode__body) .alm-b29-mode__body p {
  color: var(--b29-ink-soft); font-size: .9375rem; margin: 8px 0 0; max-width: none;
}

/* ---------------------------------------------------------------------------
   11. SECTION 8 — ÉTAPES, TIMELINE À FILET
   `numbered` fournit la pastille numérotée en VRAI TEXTE (.alm-card__num) :
   la séquence reste lisible sans styles.
   ------------------------------------------------------------------------ */
body.home main.alm-home > section.alm-block-cards--numbered .alm-cards-grid {
  grid-template-columns: 1fr; gap: 34px;
  margin-top: 38px; padding-left: 56px; position: relative;
}
body.home main.alm-home > section.alm-block-cards--numbered .alm-cards-grid::before {
  content: ""; position: absolute; left: 19px; top: 12px; bottom: 12px; width: 2px;
  background: linear-gradient(180deg, var(--b29-orange), var(--b29-blue) 55%,
              color-mix(in srgb, var(--b29-blue) 15%, transparent));
}
body.home main.alm-home > section.alm-block-cards--numbered .alm-card {
  position: relative; background: var(--b29-paper); border-radius: var(--r-lg);
  padding: 24px 26px; box-shadow: var(--b29-sh-1); border: 1px solid var(--b29-line);
}
body.home main.alm-home > section.alm-block-cards--numbered .alm-card__num {
  position: absolute; left: -56px; top: 0; width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: var(--r-full);
  background: var(--b29-paper); box-shadow: var(--b29-sh-2);
  border: 2px solid var(--b29-blue); color: var(--b29-blue);
  font-size: .9375rem; font-weight: 800; font-family: inherit; line-height: 1; margin: 0;
}
body.home main.alm-home > section.alm-block-cards--numbered .alm-card:first-child .alm-card__num {
  border-color: var(--b29-orange); color: var(--b29-orange-dark);
}
body.home main.alm-home > section.alm-block-cards--numbered .alm-card__title { font-size: 1.0625rem; font-weight: 700; margin: 0; }
body.home main.alm-home > section.alm-block-cards--numbered .alm-card__text { margin: 0; }
body.home main.alm-home > section.alm-block-cards--numbered .alm-card__text p {
  color: var(--b29-ink-soft); font-size: .9375rem; margin: 8px 0 0; max-width: none;
}
body.home main.alm-home .alm-b29-puces { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
body.home main.alm-home .alm-b29-puces li {
  position: relative; padding-left: 22px; font-size: .9375rem; color: var(--b29-ink-soft);
}
body.home main.alm-home .alm-b29-puces li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px;
  border-radius: var(--r-sm); background: var(--b29-orange);
}
body.home main.alm-home > section.alm-block-cards--numbered .alm-card__link { margin-top: 16px; font-weight: 800; font-size: .875rem; }

/* ---------------------------------------------------------------------------
   12. SECTION 9 — PATIENT VACANCIER (bleu profond)
   alm/duo n'admet que white|grey : le bleu profond vient d'ici.
   ------------------------------------------------------------------------ */
/* APLAT — jeton de la charte, un cran plus clair que le hero pour distinguer les
   deux zones sombres sans introduire de dégradé. Aucun motif. */
body.home main.alm-home .alm-b29-lede { font-size: 1.0625rem; color: var(--on-blue-soft); max-width: 62ch; margin: 14px 0 0; }
body.home main.alm-home .alm-b29-cases { display: grid; gap: 14px; }
body.home main.alm-home .alm-b29-case {
  background: color-mix(in srgb, #fff 6%, transparent);
  border: 1px solid color-mix(in srgb, #fff 16%, transparent);
  border-left: 4px solid var(--b29-orange);
  border-radius: var(--r-lg); padding: 18px 20px;
}
body.home main.alm-home .alm-b29-case h3 { font-size: .9375rem; margin: 0 0 5px; color: var(--on-blue); }
body.home main.alm-home .alm-b29-case p  { font-size: .875rem; color: var(--on-blue-soft); margin: 0; max-width: none; }

/* ---------------------------------------------------------------------------
   13. SECTION 10 — ÉQUIPE + CLINIQUE
   ------------------------------------------------------------------------ */
body.home main.alm-home .alm-b29-duo__body { padding: 28px 28px 0; }
body.home main.alm-home .alm-b29-h3-lg { font-size: 1.25rem; font-weight: 700; color: var(--b29-blue); margin: 0; }
body.home main.alm-home .alm-b29-small { color: var(--b29-ink-soft); font-size: .9375rem; margin: 8px 0 0; max-width: none; }
body.home main.alm-home .alm-b29-faces { display: flex; margin: 16px 0 0; }
/* Vignettes alimentées depuis l'annuaire : mêmes dimensions que le placeholder
   qu'elles remplacent, mais ce sont des liens vers la fiche du praticien. */
body.home main.alm-home .alm-b29-face--prat {
  padding: 0; overflow: hidden; background: var(--b29-paper-alt);
  transition: transform var(--tr), box-shadow var(--tr);
}
body.home main.alm-home .alm-b29-face--prat > img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
body.home main.alm-home .alm-b29-face--prat:hover { transform: translateY(-2px); box-shadow: var(--b29-sh-2); }
body.home main.alm-home .alm-b29-face--prat:focus-visible { outline: 2px solid var(--b29-blue); outline-offset: 2px; }
body.home main.alm-home .alm-b29-face {
  width: 64px; height: 64px; border-radius: var(--r-full); margin-right: -12px;
  border: 3px solid var(--b29-paper);
  display: grid; place-items: center;
  background: repeating-linear-gradient(135deg,
              var(--b29-amber-1) 0 8px, var(--b29-amber-2) 8px 16px);
  color: var(--b29-amber-ink); font-size: .625rem; font-weight: 700;
}

/* ---------------------------------------------------------------------------
   14. SECTION 11 — ENGAGEMENTS
   Chaque carte ne porte que son lien : c'est le lien qui EST la boîte.
   ------------------------------------------------------------------------ */
body.home main.alm-home > section.alm-block-cards--minimal:not(:has(.alm-card__text)) .alm-cards-grid {
  gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
body.home main.alm-home > section.alm-block-cards--minimal:not(:has(.alm-card__text)) .alm-card { padding: 0; }
body.home main.alm-home > section.alm-block-cards--minimal:not(:has(.alm-card__text)) .alm-card__link {
  display: flex; align-items: center; gap: 14px; margin: 0;
  background: var(--b29-paper); border: 1px solid var(--b29-line); border-radius: var(--r-lg);
  padding: 18px 20px; font-weight: 700; font-size: .9375rem;
  box-shadow: var(--b29-sh-1); transition: box-shadow var(--tr);
}
body.home main.alm-home > section.alm-block-cards--minimal:not(:has(.alm-card__text)) .alm-card__link:hover { box-shadow: var(--b29-sh-2); text-decoration: none; }
body.home main.alm-home > section.alm-block-cards--minimal:not(:has(.alm-card__text)) .alm-card__link::before {
  width: 22px; height: 22px; color: var(--b29-orange-dark);
}
body.home main.alm-home > section.alm-block-cards--minimal:not(:has(.alm-card__text)) .alm-card:nth-child(1) .alm-card__link::before { -webkit-mask-image: var(--b29-i-coeur);    mask-image: var(--b29-i-coeur); }
body.home main.alm-home > section.alm-block-cards--minimal:not(:has(.alm-card__text)) .alm-card:nth-child(2) .alm-card__link::before { -webkit-mask-image: var(--b29-i-bouclier); mask-image: var(--b29-i-bouclier); }
body.home main.alm-home > section.alm-block-cards--minimal:not(:has(.alm-card__text)) .alm-card:nth-child(3) .alm-card__link::before { -webkit-mask-image: var(--b29-i-globe);    mask-image: var(--b29-i-globe); }

/* ---------------------------------------------------------------------------
   15. SECTION 12 — CLÔTURE
   ------------------------------------------------------------------------ */
/* APLAT — le bleu identitaire, celui que le réseau peint déjà sur un
   alm/cta--blue. Ni dégradé, ni ondes. */
body.home main.alm-home > section.alm-block-cta.alm-block-cta {
  background: var(--alm-blue);
}
body.home main.alm-home > section.alm-block-cta .alm-block-cta__text { color: var(--on-blue-soft); max-width: 50ch; margin-inline: auto; }

/* ---------------------------------------------------------------------------
   16. BOUTONS ET APPELS À L'ACTION
   Les jetons employés sont ceux de la charte : --alm-orange-dark (var(--alm-orange), le
   ton issu de la remédiation de contraste du réseau) et --alm-orange-darker
   (var(--alm-orange)) au survol. --cta-bg / --cta-bg-hover pointent sur ces deux-là.
   ------------------------------------------------------------------------ */
body.home main.alm-home .alm-btn { border-radius: var(--r-md); min-height: 46px; font-weight: 700; }
/* LISERÉ DES BOUTONS ORANGE SUR FOND BLEU — WCAG 1.4.11.
   L'orange var(--alm-orange) et les bleus de la charte sont deux couleurs sombres : le
   bouton ne se détachait de son fond qu'à 1,44:1 (clôture) et 1,93:1
   (vacancier), sous les 3:1 attendus pour la limite d'un contrôle. Le texte,
   lui, passait déjà largement. Un liseré en --alm-blue-soft (#A1C0E5) rétablit
   la limite sans toucher au remplissage : c'est le liseré, et non le fond, que
   la règle demande de distinguer. */
body.home main.alm-home > section.alm-block-cta .alm-btn-primary {
  border: 2px solid var(--alm-blue-soft);
}
/* Clôture : orange plein, texte blanc. */
body.home main.alm-home > section.alm-block-cta .alm-btn-primary {
  background: var(--alm-orange-dark); color: var(--cta-text);
  box-shadow: var(--b29-sh-1);
}
body.home main.alm-home > section.alm-block-cta .alm-btn-primary:hover {
  background: var(--alm-orange-darker); color: var(--cta-text);
}
/* Les deux liens de fin de carte du bloc « Une équipe et un plateau technique »
   passent en orange. Ils restent des liens de carte, pas des boutons. */

/* ---------------------------------------------------------------------------
   17. RESPONSIVE
   La maquette bascule en une colonne à 900 px et réduit alors le chevauchement
   des repères : on reprend ce comportement, puis on resserre plus bas.
   ------------------------------------------------------------------------ */
@media (max-width: 1100px) {
  body.home main.alm-home .alm-b29-badge { right: -12px; bottom: -18px; max-width: 210px; }
}
@media (max-width: 900px) {
  body.home main.alm-home > section.alm-block-cards--minimal:has(.alm-card__tagline) .alm-cards-grid { margin-top: -34px; }
  /* Le badge sort du débord : il passerait sous la photo suivante. */
  body.home main.alm-home .alm-b29-badge {
    position: static; margin-top: 16px; max-width: none; box-shadow: var(--b29-sh-2);
  }
  body.home main.alm-home > section.alm-block-split--no-media.alm-block--bg-grey:has(.alm-b29-h3) .alm-block-split__body,
  body.home main.alm-home > section.alm-block-split--no-media.alm-block--bg-white:has(.alm-b29-h3) .alm-block-split__body {
    grid-template-columns: 1fr; gap: 16px; padding: 24px 22px;
  }
  body.home main.alm-home > section.alm-block-split--no-media.alm-block--bg-grey:has(.alm-b29-h3) .alm-block-split__body::before,
  body.home main.alm-home > section.alm-block-split--no-media.alm-block--bg-white:has(.alm-b29-h3) .alm-block-split__body::before { display: none; }
  body.home main.alm-home > section.alm-block-split--no-media.alm-block--bg-grey:has(.alm-b29-h3) .alm-block-split__body::after,
  body.home main.alm-home > section.alm-block-split--no-media.alm-block--bg-white:has(.alm-b29-h3) .alm-block-split__body::after { display: none; }
  body.home .alm-vhero-a__inner { padding-bottom: clamp(96px, 16vw, 140px); }
}
@media (max-width: 782px) {
  /* alm/duo empile à 782 px : les deux colonnes ne se chevauchent plus. */
}
@media (max-width: 700px) {
  body.home main.alm-home > section.alm-block-cards--minimal:has(.alm-card__tagline) .alm-cards-grid { grid-template-columns: 1fr; margin-top: -28px; }
  body.home main.alm-home > section.alm-block-cards:has(.alm-card__link--cue) .alm-cards-grid,
  body.home main.alm-home > section.alm-block-cards:has(.alm-b29-mode__body) .alm-cards-grid,
  body.home main.alm-home > section.alm-block-cards--minimal:not(:has(.alm-card__text)) .alm-cards-grid { grid-template-columns: 1fr; }
  body.home main.alm-home > section.alm-block-cards--numbered .alm-cards-grid { padding-left: 44px; }
  body.home main.alm-home > section.alm-block-cards--numbered .alm-card__num { left: -44px; width: 32px; height: 32px; font-size: .875rem; }
  body.home main.alm-home > section.alm-block-cards--numbered .alm-cards-grid::before { left: 15px; }
  body.home main.alm-home .alm-b29-ph-219 { aspect-ratio: 16 / 9; }
  body.home main.alm-home .alm-b29-duo__body { padding: 22px 22px 0; }
}
@media (max-width: 440px) {
  body.home main.alm-home > section.alm-block-cards--minimal:has(.alm-card__tagline) .alm-card { padding: 18px 16px 16px; }
  body.home main.alm-home > section.alm-block-cards:has(.alm-card__link--cue) .alm-card { padding: 22px 18px 18px; }
  body.home main.alm-home > section.alm-block-cards:has(.alm-card__link--cue) .alm-card::after { top: 22px; left: 18px; }
  body.home main.alm-home .alm-b29-ph { font-size: .75rem; padding: 12px; }
  body.home main.alm-home .alm-b29-face { width: 52px; height: 52px; }
  body.home:not(.alm-b29-hero-photo) .alm-vhero-a__inner::before { padding: 8px 12px; font-size: .6875rem; }
}
/* Viewport bas et large (667 × 375 en paysage) : le hero ne doit pas manger
   l'écran entier, et le chevauchement des repères doit rester lisible. */
@media (max-height: 480px) and (orientation: landscape) {
  body.home .alm-home .alm-vhero-a { min-height: 420px; }
  body.home .alm-vhero-a__inner { padding-top: 48px; padding-bottom: 96px; }
  body.home main.alm-home > section.alm-block-cards--minimal:has(.alm-card__tagline) .alm-cards-grid { margin-top: -30px; }
}

@media (prefers-reduced-motion: reduce) {
  body.home main.alm-home *,
  body.home .alm-vhero-a * { transition: none !important; animation: none !important; }
}

body.home main.alm-home > section.alm-block-cards:has(.alm-b29-duo__body) .alm-cards-grid {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: stretch;
  max-width: 812px; margin: 34px 0 0; padding-left: 0;
}
body.home main.alm-home > section.alm-block-cards:has(.alm-b29-duo__body) .alm-cards-grid::before { content: none; }
body.home main.alm-home > section.alm-block-cards:has(.alm-b29-duo__body) .alm-card {
  display: flex; flex-direction: column; padding: 0; overflow: hidden;
  background: #fff; border: 1px solid var(--alm-border); border-radius: var(--r-lg);
  box-shadow: 0 2px 12px rgba(0,72,153,0.06);
}
body.home main.alm-home > section.alm-block-cards:has(.alm-b29-duo__body) .alm-card__text { margin: 0; }
body.home main.alm-home > section.alm-block-cards:has(.alm-b29-duo__body) .alm-b29-img {
  aspect-ratio: 16 / 9; margin: 0; border-radius: 0; box-shadow: none;
  box-sizing: border-box; padding: 16px; background: #F5F7FA;
}
body.home main.alm-home > section.alm-block-cards:has(.alm-b29-duo__body) .alm-b29-img > img {
  width: 100%; height: 100%; object-fit: contain;
}
body.home main.alm-home > section.alm-block-cards:has(.alm-b29-duo__body) .alm-b29-duo__body { padding: 28px 28px 16px; }
body.home main.alm-home > section.alm-block-cards:has(.alm-b29-duo__body) .alm-b29-h3-lg {
  font-family: var(--font-title); font-size: 1.25rem; font-weight: 600; line-height: 1.3;
  color: var(--alm-blue); margin: 0 0 8px;
}
body.home main.alm-home > section.alm-block-cards:has(.alm-b29-duo__body) .alm-b29-small {
  font-size: .9375rem; line-height: 1.55; color: var(--on-white-body); margin: 0; max-width: none;
}
body.home main.alm-home > section.alm-block-cards:has(.alm-b29-duo__body) .alm-b29-faces {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0;
}
body.home main.alm-home > section.alm-block-cards:has(.alm-b29-duo__body) .alm-b29-face {
  width: 40px; height: 40px; margin: 0; border-width: 2px;
}
body.home main.alm-home > section.alm-block-cards:has(.alm-b29-duo__body) .alm-card__link {
  margin: auto 28px 28px; color: var(--alm-blue); font-weight: 600; font-size: .875rem;
}
@media (min-width: 782px) {
  body.home main.alm-home > section.alm-block-cards:has(.alm-b29-duo__body) .alm-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
