/*
 * ALERTE-01 — Attaques subies mises en scène (décision du propriétaire du 02/12/2026).
 * 1. La scène du bilan (`.al01`) : deux blasons s'affrontent, un étendard de toile tombe d'une hampe d'or
 *    (« Défendu ! » en or, « Territoire perdu » en rouge). Ordinateur : survol 3D du Dominion derrière (`.al01--3d`) ;
 *    téléphone : décor peint, sans 3D (`.al01--leger`) ; mouvement réduit : scène posée d'un coup (`.al01--fixe`).
 * 2. Le fanion d'alerte en direct (`.al01-alerte`), suspendu sous la barre de ressources.
 * Jetons et boutons : ceux de l'interface commune (`.fi`, `.fi-btn`). Présentation seulement.
 */

/* ───────────── 1. La scène ───────────── */
.al01 {
  --b: clamp(72px, 24vh, 168px);            /* largeur d'un blason */
  --toile: min(52vw, 540px);                /* largeur de l'étendard */
  --ecart: clamp(10px, 2.4vw, 34px);
  --vers: calc(var(--toile) / 2 + var(--ecart) + var(--b) * .08); /* course d'un blason jusqu'au centre */
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #0a1030; color: var(--fi-texte); overflow: hidden;
  grid-template-rows: minmax(0, 1fr) auto;
}
.al01[open] { display: grid; }
.al01::backdrop { background: #0a1030; }
.al01-fond, .al01-voile { position: absolute; inset: 0; pointer-events: none; }
.al01-fond {
  background:
    radial-gradient(64% 50% at 50% 50%, rgba(251, 233, 168, .22), rgba(251, 233, 168, 0) 70%),
    linear-gradient(180deg, #0a1030 0%, #18224f 40%, #4a3a6c 70%, #b9694f 92%, #e09a5e 100%);
}
.al01[data-ton="rouge"] .al01-fond { background: radial-gradient(64% 50% at 50% 50%, rgba(240, 150, 110, .2), rgba(240, 150, 110, 0) 70%), linear-gradient(180deg, #0a1030 0%, #18224f 40%, #4a3a6c 70%, #a05a52 92%, #c98058 100%); }
/* Dalles du Dominion en filigrane : la scène se passe sur la carte, même sans 3D. */
.al01-fond::after {
  content: ""; position: absolute; inset: 42% 0 0 0; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='146' viewBox='0 0 84 146'%3E%3Cg fill='none' stroke='%23fbe9a8' stroke-opacity='.42' stroke-width='1.6'%3E%3Cpath d='M42 2l38 22v44L42 90 4 68V24z'/%3E%3Cpath d='M0 75l38 22v44M84 75L46 97v44'/%3E%3C/g%3E%3C/svg%3E") 50% 0 / 84px 146px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 60%); mask-image: linear-gradient(180deg, transparent, #000 60%);
  transform: perspective(520px) rotateX(48deg) scale(1.9); transform-origin: 50% 100%;
}
.al01--3d .al01-fond { background: #e9b98c; }
.al01--3d .al01-fond::after { display: none; }
.al01-toile3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.al01-voile { background: linear-gradient(180deg, rgba(10, 16, 48, .5) 0, rgba(10, 16, 48, 0) 30%, rgba(10, 16, 48, 0) 66%, rgba(10, 16, 48, .72) 100%); }
.al01--3d .al01-voile { background: linear-gradient(180deg, rgba(10, 16, 48, .62) 0, rgba(10, 16, 48, 0) 44%, rgba(10, 16, 48, 0) 70%, rgba(10, 16, 48, .78) 100%); }

/* La piste : blason du joueur, étendard, blason du rival. */
.al01-piste {
  position: relative; grid-row: 1; align-self: center; justify-self: center;
  display: grid; grid-template-columns: var(--b) minmax(0, var(--toile)) var(--b); align-items: center; gap: var(--ecart);
  padding: max(10px, env(safe-area-inset-top, 0px)) 12px 0;
}
.al01--3d .al01-piste { align-self: start; grid-template-columns: minmax(0, var(--toile)); padding-top: max(3.5vh, env(safe-area-inset-top, 0px)); }
.al01--3d .al01-blason--moi, .al01--3d .al01-blason--rival { display: none; }
.al01-centre { position: relative; display: grid; place-items: center; min-height: calc(var(--b) * 1.2); }
.al01--3d .al01-centre { min-height: 0; align-items: start; }
.al01-blason { display: block; width: var(--b); filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .55)); transition: rotate .45s var(--fi-courbe), scale .45s var(--fi-courbe), opacity .45s ease, filter .45s ease; }
.al01-blason svg { display: block; width: 100%; height: auto; overflow: visible; }

/* Plaque du lieu : quel territoire, attaqué par qui. */
.al01-lieu {
  grid-area: 1 / 1; display: grid; gap: 2px; justify-items: center; padding: 10px 22px 12px; text-align: center;
  background: linear-gradient(180deg, rgba(30, 42, 92, .94), rgba(19, 28, 70, .94)); border: 2px solid var(--fi-or-profond); border-radius: 10px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(251, 233, 168, .18);
  opacity: 0; translate: 0 -10px; transition: opacity .25s ease, translate .35s var(--fi-courbe);
}
.al01-lieu b { font: 700 clamp(1.3rem, 2.2vw + 2.4vh, 2.1rem)/1.1 var(--fi-titre); color: var(--fi-or-clair); text-shadow: 0 2px 0 #3d2c08; }
.al01-lieu span { font-size: 1.0625rem; color: var(--fi-texte); }
.al01[data-etat="approche"] .al01-lieu, .al01[data-etat="choc"] .al01-lieu { opacity: 1; translate: 0 0; }

/* L'étendard : toile à deux pointes suspendue à une hampe d'or. */
.al01-etendard { grid-area: 1 / 1; position: relative; width: 100%; padding-top: 9px; transform-origin: 50% 0; opacity: 0; scale: 1 0; transition: scale .5s cubic-bezier(.3, 1.45, .5, 1), opacity .18s ease; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .5)); }
.al01[data-etat="verdict"] .al01-etendard, .al01[data-etat="final"] .al01-etendard, .al01[data-etat="resume"] .al01-etendard { opacity: 1; scale: 1 1; }
.al01-hampe { position: absolute; z-index: 1; top: 0; left: -12px; right: -12px; height: 13px; border-radius: 7px; background: linear-gradient(180deg, #fff3c4, #e3b84f 42%, #7c5914); box-shadow: 0 3px 6px rgba(0, 0, 0, .5); }
.al01-hampe::before, .al01-hampe::after { content: ""; position: absolute; top: -4px; width: 21px; height: 21px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3c4, #e3b84f 48%, #7c5914); box-shadow: 0 2px 4px rgba(0, 0, 0, .5); }
.al01-hampe::before { left: -8px; } .al01-hampe::after { right: -8px; }
.al01-toile {
  position: relative; display: grid; gap: 3px; justify-items: center; margin: 0 4px; padding: 16px 24px 40px; text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 24px), 0 100%);
  background: linear-gradient(90deg, rgba(0, 0, 0, .12), rgba(255, 255, 255, .1) 22%, rgba(0, 0, 0, .06) 50%, rgba(255, 255, 255, .1) 78%, rgba(0, 0, 0, .14)), linear-gradient(180deg, #fff3c4 0%, #f3cf70 26%, #e3b84f 68%, #c79a34 100%);
  color: var(--fi-encre);
}
.al01-toile::before { content: ""; position: absolute; inset: 8px 8px 0; border: 1.5px dashed rgba(93, 68, 16, .5); border-bottom: 0; pointer-events: none; }
.al01[data-ton="rouge"] .al01-toile { background: linear-gradient(90deg, rgba(0, 0, 0, .14), rgba(255, 255, 255, .08) 22%, rgba(0, 0, 0, .06) 50%, rgba(255, 255, 255, .08) 78%, rgba(0, 0, 0, .16)), linear-gradient(180deg, #b82832 0%, #a3202a 45%, #8f1a22 100%); color: #fff6e0; }
.al01[data-ton="rouge"] .al01-toile::before { border-color: rgba(251, 233, 168, .5); }
.al01-nom { font: 600 1rem/1.2 var(--fi-corps); }
.al01-titre { font: 700 clamp(1.75rem, 2.6vw + 3.4vh, 3.3rem)/1.04 var(--fi-titre); letter-spacing: .01em; text-wrap: balance; }
.al01[data-ton="or"] .al01-titre { text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.al01[data-ton="rouge"] .al01-titre { text-shadow: 0 2px 0 rgba(61, 10, 14, .7); }
.al01-phrase { max-width: 36ch; font: 500 1.0625rem/1.35 var(--fi-corps); text-wrap: balance; }

/* Le choc : les blasons s'élancent, se heurtent au centre, reculent. */
.al01-eclat { grid-area: 1 / 1; width: calc(var(--b) * 1.7); aspect-ratio: 1; border-radius: 50%; pointer-events: none; opacity: 0; background: radial-gradient(closest-side, #fff 0, #fff3c4 22%, rgba(240, 191, 85, .65) 46%, rgba(240, 191, 85, 0) 72%); }
.al01[data-etat="attente"] .al01-blason--moi, .al01[data-etat="attente"] .al01-blason--rival { opacity: 0; }
.al01[data-etat="approche"] .al01-blason--moi { animation: al01-entre .7s var(--fi-courbe) both; --sens: -1; }
.al01[data-etat="approche"] .al01-blason--rival { animation: al01-entre .7s var(--fi-courbe) both; --sens: 1; }
.al01[data-etat="choc"] .al01-blason--moi { animation: al01-charge .8s linear both; --sens: 1; }
.al01[data-etat="choc"] .al01-blason--rival { animation: al01-charge .8s linear both; --sens: -1; }
.al01--leger[data-etat="choc"] .al01-eclat { animation: al01-eclat .8s ease-out both; }
.al01--leger[data-etat="choc"] .al01-lieu { transition-delay: .25s; opacity: 0; }
.al01[data-etat="verdict"] .al01-blason--moi { animation: al01-retour .5s var(--fi-courbe) both; --sens: 1; }
.al01[data-etat="verdict"] .al01-blason--rival { animation: al01-retour .5s var(--fi-courbe) both; --sens: -1; }
@keyframes al01-entre { from { translate: calc(var(--sens) * 46vw) 0; opacity: 0; } to { translate: 0 0; opacity: 1; } }
@keyframes al01-charge {
  0% { translate: 0 0; rotate: 0deg; animation-timing-function: ease-out; }
  14% { translate: calc(var(--sens) * -14px) 0; rotate: calc(var(--sens) * -4deg); animation-timing-function: cubic-bezier(.6, 0, .9, .4); }
  37% { translate: calc(var(--sens) * var(--vers)) 0; rotate: calc(var(--sens) * 7deg); animation-timing-function: ease-out; }
  56% { translate: calc(var(--sens) * (var(--vers) - 30px)) -6px; rotate: calc(var(--sens) * -9deg); }
  100% { translate: calc(var(--sens) * var(--vers) * .7) 0; rotate: 0deg; }
}
@keyframes al01-retour { from { translate: calc(var(--sens) * var(--vers) * .7) 0; } to { translate: 0 0; } }
@keyframes al01-eclat { 0%, 35% { opacity: 0; scale: .1; } 39% { opacity: 1; scale: .45; } 70% { opacity: .5; scale: 1.15; } 100% { opacity: 0; scale: 1.4; } }
/* Après le verdict : le vainqueur se redresse, le vaincu s'incline (sans casse : rien n'est détruit). */
.al01[data-issue="DEFENDED"] .al01-blason--moi { scale: 1.08; filter: drop-shadow(0 0 16px rgba(251, 233, 168, .75)) drop-shadow(0 10px 14px rgba(0, 0, 0, .55)); }
.al01[data-issue="DEFENDED"] .al01-blason--rival { rotate: 13deg; scale: .82; opacity: .55; filter: saturate(.45) drop-shadow(0 8px 10px rgba(0, 0, 0, .5)); }
.al01[data-issue="HELD"] .al01-blason--moi { scale: 1.04; }
.al01[data-issue="HELD"] .al01-blason--rival { scale: .92; opacity: .8; }
.al01[data-issue="LOST"] .al01-blason--moi { rotate: -12deg; scale: .86; opacity: .66; filter: saturate(.6) drop-shadow(0 8px 10px rgba(0, 0, 0, .5)); }
.al01[data-etat="resume"] { --b: 0px; --ecart: 0px; }
.al01[data-etat="resume"] .al01-piste > .al01-blason { display: none; }
.al01[data-etat="resume"] .al01-piste { grid-template-columns: minmax(0, var(--toile)); }
.al01[data-etat="resume"] { --toile: min(70vw, 700px); }
.al01[data-etat="resume"] .al01-titre { font-size: clamp(1.3rem, 1.3vw + 2vh, 2.2rem); }

/* Commandes. */
.al01-actions { position: relative; grid-row: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; min-height: 62px; padding: 6px 14px max(12px, env(safe-area-inset-bottom, 0px)); }
.al01-actions .fi-btn { min-width: 168px; }
.al01-suite { flex: 1 1 100%; margin: 0; text-align: center; font-size: .9375rem; color: var(--fi-texte); text-shadow: 0 1px 3px #0a1030; }
.al01-passer { position: absolute; top: max(10px, env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); background: rgba(10, 16, 48, .78); }
.al01-rang { position: absolute; top: max(14px, env(safe-area-inset-top, 0px)); left: max(16px, env(safe-area-inset-left, 0px)); margin: 0; padding: 4px 12px; border-radius: 14px; background: rgba(10, 16, 48, .7); font: 700 1rem/1.3 var(--fi-titre); color: var(--fi-or-clair); }
.al01-rang:empty { display: none; }
.al01-liste { flex: 1 1 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.al01-ligne { display: grid; grid-template-columns: 38px minmax(0, auto) auto; align-items: center; gap: 4px 10px; padding: 6px 8px 6px 8px; border: 1px solid var(--fi-or-profond); border-radius: 10px; background: rgba(19, 28, 70, .92); box-shadow: 0 6px 14px rgba(0, 0, 0, .4); }
.al01-ligne--rouge { border-color: #b9545c; }
.al01-blason--mini { width: 38px; filter: none; }
.al01-ligne-texte { display: grid; text-align: left; line-height: 1.25; }
.al01-ligne-texte b { font: 700 1.0625rem/1.2 var(--fi-titre); color: var(--fi-or-clair); }
.al01-ligne-texte span { font-size: .9375rem; color: var(--fi-texte); }
.al01-ligne .fi-btn { min-width: 0; }

/* Mouvement réduit : la scène est posée d'un coup, sans élan ni chute. */
.al01--fixe *, .al01--fixe *::before, .al01--fixe *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { .al01 *, .al01 *::before, .al01 *::after { animation: none !important; transition: none !important; } }

/* Petites hauteurs (téléphone à l'horizontale, jusqu'à 250 px de haut avec la barre du navigateur). */
@media (max-height: 540px) {
  .al01 { --b: clamp(58px, 30vh, 120px); --toile: min(50vw, 440px); }
  .al01-toile { padding: 10px 18px 30px; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 18px), 0 100%); }
  .al01-titre { font-size: clamp(1.45rem, 9.5vh, 2.3rem); }
  .al01-phrase { font-size: .9375rem; line-height: 1.25; }
  .al01-nom { font-size: .9375rem; }
  .al01-lieu { padding: 6px 16px 8px; }
  .al01-lieu b { font-size: clamp(1.2rem, 8vh, 1.7rem); }
  .al01-lieu span { font-size: .9375rem; }
  .al01-actions { min-height: 56px; padding-top: 2px; gap: 6px 12px; }
  .al01-actions .fi-btn { min-height: 44px; padding-top: 4px; padding-bottom: 4px; }
  .al01[data-etat="resume"] { --toile: min(72vw, 560px); }
  .al01[data-etat="resume"] .al01-toile { padding: 8px 16px 22px; }
  .al01[data-etat="resume"] .al01-titre { font-size: clamp(1.15rem, 7.4vh, 1.7rem); }
  .al01[data-etat="resume"] .al01-nom { display: none; }
  .al01-ligne { grid-template-columns: 30px minmax(0, auto) auto; padding: 3px 6px; gap: 2px 8px; }
  .al01-blason--mini { width: 30px; }
  .al01-ligne-texte b { font-size: .9375rem; } .al01-ligne-texte span { font-size: .8125rem; }
  .al01-ligne .fi-btn { font-size: .875rem; padding-left: 10px; padding-right: 10px; }
}
@media (max-height: 300px) {
  .al01 { --b: clamp(52px, 27vh, 84px); }
  .al01-etendard { padding-top: 7px; }
  .al01-hampe { height: 10px; } .al01-hampe::before, .al01-hampe::after { width: 16px; height: 16px; top: -3px; }
  .al01-toile { padding: 7px 14px 22px; gap: 1px; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 14px), 0 100%); }
  .al01-titre { font-size: 1.45rem; }
  .al01-phrase { font-size: .875rem; }
  .al01[data-etat="resume"] .al01-phrase { display: none; }
  .al01-actions { min-height: 50px; padding-bottom: max(6px, env(safe-area-inset-bottom, 0px)); }
  .al01-passer { top: 4px; }
}
/* Écran étroit tenu à la verticale : blasons plus petits, étendard large. */
@media (max-width: 560px) and (orientation: portrait) {
  .al01 { --b: 62px; --toile: calc(100vw - 2 * 62px - 44px); --ecart: 8px; }
  .al01-toile { padding: 12px 10px 32px; }
  .al01-titre { font-size: 1.5rem; }
  .al01-phrase { font-size: .9375rem; }
}

/* ───────────── 2. Le fanion d'alerte en direct ───────────── */
.al01-alerte {
  position: fixed; z-index: 1500; top: calc(var(--al01-haut, 0px) + 4px);
  left: calc(var(--rail, 0px) + (100vw - var(--rail, 0px)) / 2); translate: -50% 0;
  width: max-content; max-width: min(700px, calc(100vw - var(--rail, 0px) - 20px)); pointer-events: none;
  transform-origin: 50% 0; animation: al01-descend .55s cubic-bezier(.3, 1.45, .5, 1) both;
}
.al01-alerte--sort { animation: al01-remonte .24s ease-in both; }
.al01-fanion {
  pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 6px 6px 7px 12px;
  border: 2px solid var(--fi-or); border-top-width: 6px; border-radius: 3px 3px 16px 16px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .14), rgba(255, 255, 255, .07) 30%, rgba(0, 0, 0, .05) 60%, rgba(0, 0, 0, .16)), linear-gradient(180deg, #b82832, #8f1a22);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(251, 233, 168, .22); color: #fff6e0;
}
.al01-cor { flex: none; width: 34px; height: 34px; transform-origin: 30% 70%; animation: al01-sonne 1.3s ease-in-out .35s both; }
.al01-cor svg { display: block; width: 100%; height: 100%; }
.al01-alerte-texte { margin: 0; min-width: 0; font: 700 1.0625rem/1.2 var(--fi-titre); text-shadow: 0 1px 0 rgba(61, 10, 14, .7); text-wrap: balance; }
.al01-voir { flex: none; white-space: nowrap; }
.al01-tard { position: relative; flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(10, 16, 48, .35); color: #fff6e0; font: 700 1.375rem/1 var(--fi-corps); cursor: pointer; }
.al01-tard::before { content: ""; position: absolute; inset: -4px; }
.al01-tard:hover { background: rgba(10, 16, 48, .6); }
@keyframes al01-descend { from { opacity: 0; scale: 1 .2; } to { opacity: 1; scale: 1 1; } }
@keyframes al01-remonte { to { opacity: 0; scale: 1 .2; } }
@keyframes al01-sonne { 0%, 100% { rotate: 0deg; } 18% { rotate: -16deg; } 36% { rotate: 6deg; } 54% { rotate: -12deg; } 72% { rotate: 3deg; } }
@media (prefers-reduced-motion: reduce) { .al01-alerte, .al01-alerte--sort, .al01-cor { animation: none; } }
@media (max-height: 540px), (max-width: 560px) {
  .al01-fanion { gap: 8px; padding: 3px 4px 4px 8px; border-top-width: 4px; }
  .al01-cor { width: 28px; height: 28px; }
  .al01-alerte-texte { font-size: .9375rem; line-height: 1.15; }
  .al01-voir.fi-btn { min-height: 44px; padding: 4px 12px; font-size: .9375rem; }
}

/* ───────────── 3. DOM-EQUIL-AFFICHAGE : annonce des pillards, blason des pillards, prime de défense préparée ───────────── */
/* Fanion d'annonce : cuir et ambre, plus calme que le rouge d'une attaque subie. */
.al01-annonce .al01-fanion { border-color: #ff9a3c; background: linear-gradient(90deg, rgba(0, 0, 0, .16), rgba(255, 255, 255, .06) 30%, rgba(0, 0, 0, .05) 60%, rgba(0, 0, 0, .18)), linear-gradient(180deg, #54391f, #2b1c10); color: #ffe9c9; box-shadow: 0 12px 26px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 196, 106, .22); }
.al01-annonce .al01-alerte-texte { display: grid; gap: 1px; text-shadow: 0 1px 0 rgba(20, 10, 2, .7); }
.al01-annonce .al01-torche { animation: al01-flamme 1.6s ease-in-out infinite; transform-origin: 50% 90%; }
.al01-rebours { font: 500 .875rem/1.2 var(--fi-corps); color: #ffc46a; }
.al01-rebours b { font-weight: 800; font-variant-numeric: tabular-nums; }
@keyframes al01-flamme { 0%, 100% { scale: 1 1; } 40% { scale: .95 1.07; } 70% { scale: 1.04 .96; } }
@media (prefers-reduced-motion: reduce) { .al01-annonce .al01-torche { animation: none; } }

/* Prime de défense préparée, cousue sous le verdict de l'étendard. */
.al01-prime { display: grid; gap: 4px; justify-items: center; width: 100%; margin-top: 6px; padding-top: 7px; border-top: 1.5px dashed rgba(93, 68, 16, .5); }
.al01-prime[hidden] { display: none; }
.al01-prime strong { font: 700 clamp(1rem, .6vw + 1.3vh, 1.25rem)/1.2 var(--fi-titre); text-wrap: balance; }
.al01-prime[data-ton="prime"] strong { color: #1a4d2c; }
.al01-coches { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; margin: 0; padding: 0; list-style: none; }
.al01-coches li { padding: 2px 9px; border-radius: 11px; font: 700 .875rem/1.3 var(--fi-corps); border: 1.5px dashed rgba(36, 26, 6, .5); color: rgba(36, 26, 6, .82); }
.al01-coches li.ok { border: 1.5px solid #1a4d2c; background: #1a4d2c; color: #f1fff4; }
.al01-prime-phrase { max-width: 40ch; font: 500 .9375rem/1.3 var(--fi-corps); text-wrap: balance; }
.al01[data-ton="rouge"] .al01-prime { border-top-color: rgba(251, 233, 168, .5); }
.al01[data-ton="rouge"] .al01-coches li { border-color: rgba(255, 246, 224, .6); color: #fff6e0; }
.al01[data-ton="rouge"] .al01-coches li.ok { border-color: #fbe9a8; background: #fbe9a8; color: #5a0d12; }
.al01-ligne-prime { font-weight: 700; color: #a8e6b8; }
.al01-ligne-prime[data-ton="retenue"], .al01-ligne-prime[data-ton="prepare"] { color: var(--fi-or-clair); font-weight: 600; }
.al01[data-prime] .al01-phrase { font-size: 1rem; }
@media (max-height: 540px) {
  .al01-prime { gap: 3px; margin-top: 3px; padding-top: 4px; }
  .al01-prime strong { font-size: .9375rem; }
  .al01-coches li { font-size: .8125rem; padding: 1px 7px; }
  .al01-prime-phrase { font-size: .8125rem; line-height: 1.2; }
  .al01[data-prime] .al01-phrase { font-size: .875rem; line-height: 1.2; }
  .al01-annonce .al01-rebours { font-size: .8125rem; }
}
@media (max-height: 300px) {
  .al01[data-prime] .al01-nom, .al01-prime-phrase { display: none; }
  .al01[data-prime] .al01-phrase { font-size: .8125rem; }
  .al01-prime { margin-top: 1px; padding-top: 2px; gap: 2px; }
  .al01-prime strong { font-size: .875rem; }
  .al01-coches { gap: 2px 4px; } .al01-coches li { font-size: .75rem; padding: 0 6px; }
}
