/* Portail clients Fluidpilot — charte commune (version 1.3.0), chargée par toutes les pages.
   Charte officielle : Montserrat ; blanc #FFFFFF, marine #00345E, bleu #00A7FF, vert #00D274 (dominante Management QSE),
   saumon #FF6A6E (dominante Réfrigération & Combustion). Marine et bleu sont communs à tout.
   Règle ferme : le bleu, le vert et le saumon ne sont JAMAIS une couleur de texte sur fond clair ; ils servent en aplats,
   filets, pictogrammes et fonds, avec du texte marine posé dessus, comme dans les logos.
   Tout est préfixé « fp- » : cette feuille ne touche à aucun élément nu (body, h1…) ; une page qui veut la base commune
   met la classe « fp-page » sur son <body>. */

/* —— Police embarquée (Montserrat, licence SIL OFL 1.1, fichiers dans polices/) —— */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url(polices/montserrat-400.woff) format('woff'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap; src: url(polices/montserrat-500.woff) format('woff'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url(polices/montserrat-600.woff) format('woff'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url(polices/montserrat-700.woff) format('woff'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: swap; src: url(polices/montserrat-800.woff) format('woff'); }

:root {
  /* Couleurs de la charte */
  --fp-blanc: #FFFFFF; --fp-marine: #00345E; --fp-bleu: #00A7FF; --fp-vert: #00D274; --fp-saumon: #FF6A6E;
  /* Nuances de travail (dérivées du marine ; contrastes mesurés dans le rapport de livraison) */
  --fp-marine-2: #0A4A80;   /* survol du marine */
  --fp-marine-3: #002544;   /* marine profond (dégradés) */
  --fp-encre: #102A43;      /* texte courant : 14,6:1 sur blanc */
  --fp-doux: #4A6076;       /* texte secondaire : 6,5:1 sur blanc, 6,0:1 sur --fp-fond */
  --fp-bord: #7D8FA3;       /* contour des champs : 3,3:1 sur blanc (seuil 3:1) */
  --fp-trait: #DCE4EC;      /* filets et séparations */
  --fp-trait-2: #C6D3DF;
  --fp-fond: #F4F7FA;       /* fond de page */
  --fp-fond-2: #EAF0F5;
  --fp-ciel: #E5F6FF;       /* teinte du bleu */
  --fp-menthe: #E2FAEE;     /* teinte du vert */
  --fp-rose: #FFECEC;       /* teinte du saumon */
  --fp-marine-pale: #E8EEF4;
  /* Domaine courant : vert (QSE) ou saumon (Réfrigération & Combustion) ; bleu par défaut */
  --fp-accent: var(--fp-bleu); --fp-teinte: var(--fp-ciel);
  /* Typographie */
  --fp-police: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  /* Formes, ombres, mouvement */
  --fp-r-s: 8px; --fp-r-m: 12px; --fp-r-l: 18px; --fp-r-xl: 24px;
  --fp-ombre-1: 0 1px 2px rgba(0, 52, 94, .06), 0 2px 8px rgba(0, 52, 94, .05);
  --fp-ombre-2: 0 2px 4px rgba(0, 52, 94, .06), 0 12px 32px rgba(0, 52, 94, .10);
  --fp-ombre-3: 0 4px 10px rgba(0, 52, 94, .08), 0 24px 56px rgba(0, 52, 94, .16);
  --fp-sortie: cubic-bezier(.22, 1, .36, 1);      /* décélération douce */
  --fp-ressort: cubic-bezier(.34, 1.56, .64, 1);  /* léger rebond */
  --fp-t1: 160ms; --fp-t2: 280ms; --fp-t3: 560ms;
}
.fp-qse { --fp-accent: var(--fp-vert); --fp-teinte: var(--fp-menthe); }
.fp-refri { --fp-accent: var(--fp-saumon); --fp-teinte: var(--fp-rose); }

/* —— Base, sur demande (body.fp-page) —— */
.fp-page { margin: 0; background: var(--fp-fond); color: var(--fp-encre); font: 400 16px/1.55 var(--fp-police); -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.fp-page *, .fp-page *::before, .fp-page *::after { box-sizing: border-box; }
.fp-page h1, .fp-page h2, .fp-page h3 { margin: 0; color: var(--fp-marine); font-weight: 800; line-height: 1.12; letter-spacing: -.015em; }
.fp-page p { margin: 0; }
.fp-page [hidden] { display: none !important; }
.fp-cadre { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .fp-cadre { padding-left: 32px; padding-right: 32px; } }
.fp-sur { font-size: 11.5px; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--fp-doux); }
.fp-masque { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Focus clavier : un anneau marine (12:1 sur blanc), blanc sur fond sombre. */
.fp-page :focus-visible, .fp-focus:focus-visible { outline: 3px solid var(--fp-marine); outline-offset: 3px; }
.fp-sombre :focus-visible { outline-color: #fff; }

/* —— Barre de marque : le logo officiel sur blanc, avec sa zone de respiration —— */
.fp-barre { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .96); padding-top: env(safe-area-inset-top, 0px); box-shadow: 0 1px 0 var(--fp-trait); transition: box-shadow var(--fp-t2) ease; }
@supports (backdrop-filter: blur(8px)) { .fp-barre { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); } }
.fp-barre--ombre { box-shadow: 0 1px 0 var(--fp-trait), 0 8px 24px rgba(0, 52, 94, .08); }
.fp-barre__dedans { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.fp-barre__marque { display: inline-flex; align-items: center; gap: 14px; min-width: 0; padding: 10px 0; color: var(--fp-marine); text-decoration: none; border-radius: 4px; }
/* Le logo garde ses proportions (237 × 72) ; sa hauteur suffit à le dimensionner. */
.fp-logo { display: block; height: 38px; width: auto; aspect-ratio: 237.171 / 72.127; flex: none; }
.fp-barre__lieu { display: none; padding-left: 14px; border-left: 1px solid var(--fp-trait-2); font-size: 11.5px; line-height: 1.25; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--fp-marine); white-space: nowrap; }
@media (min-width: 640px) { .fp-barre__lieu { display: block; } .fp-logo { height: 42px; } .fp-barre__dedans { min-height: 72px; } }
.fp-barre__actions { display: flex; align-items: center; gap: 8px; flex: none; }

/* Puce de domaine : le symbole officiel du domaine et son nom. */
.fp-domaine-puce { display: inline-flex; align-items: center; gap: 9px; min-width: 0; font-size: 12px; line-height: 1.2; font-weight: 700; color: var(--fp-marine); }
.fp-domaine-puce img { width: 28px; height: 28px; flex: none; display: block; box-shadow: 0 2px 6px rgba(0, 52, 94, .18); }
.fp-domaine-puce span { max-width: 13ch; }
@media (min-width: 640px) { .fp-domaine-puce { font-size: 13px; } .fp-domaine-puce span { max-width: none; } .fp-domaine-puce img { width: 32px; height: 32px; } }

/* —— Boutons : principal (marine), secondaire (contour), discret (texte) ; 48 px de haut, 44 px au moins —— */
.fp-btn { --fp-btn-fond: transparent; --fp-btn-texte: var(--fp-marine); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; min-width: 44px; padding: 0 22px; border: 0; border-radius: var(--fp-r-m); background: var(--fp-btn-fond); color: var(--fp-btn-texte); font: 700 15px/1.1 var(--fp-police); letter-spacing: .005em; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none;
  transition: background-color var(--fp-t1) ease, box-shadow var(--fp-t2) var(--fp-sortie), transform var(--fp-t1) var(--fp-sortie), color var(--fp-t1) ease; }
.fp-btn:focus-visible { outline: 3px solid var(--fp-marine); outline-offset: 3px; }
.fp-btn__ic { width: 20px; height: 20px; flex: none; transition: transform var(--fp-t2) var(--fp-sortie); }
.fp-btn:active:not(:disabled) { transform: translateY(1px) scale(.985); }
.fp-btn:disabled, .fp-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.fp-btn--principal { --fp-btn-fond: var(--fp-marine); --fp-btn-texte: #fff; box-shadow: 0 1px 2px rgba(0, 37, 68, .2), 0 6px 16px rgba(0, 52, 94, .18); }
.fp-btn--principal:hover:not(:disabled) { --fp-btn-fond: var(--fp-marine-2); box-shadow: 0 2px 4px rgba(0, 37, 68, .2), 0 12px 26px rgba(0, 52, 94, .26); transform: translateY(-1px); }
.fp-btn--secondaire { --fp-btn-fond: #fff; box-shadow: inset 0 0 0 1.5px var(--fp-marine); }
.fp-btn--secondaire:hover:not(:disabled) { --fp-btn-fond: var(--fp-marine-pale); }
.fp-btn--discret { padding: 0 10px; min-height: 44px; background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-size: 0 2px; background-position: 10px calc(100% - 9px); }
.fp-btn--discret:hover:not(:disabled) { background-size: calc(100% - 20px) 2px; }
.fp-btn--bloc { width: 100%; }
.fp-btn:hover .fp-btn__ic--suite, .fp-btn:focus-visible .fp-btn__ic--suite { transform: translateX(4px); }
/* « Entrer » : le bouton marine porte un carré à la couleur du domaine, comme le carré du logo. */
.fp-btn--entrer { padding: 0 0 0 22px; gap: 16px; overflow: hidden; }
.fp-btn--entrer .fp-btn__carre { align-self: stretch; width: 48px; display: grid; place-items: center; background: var(--fp-accent); color: var(--fp-marine); }
.fp-btn--entrer .fp-btn__carre .fp-btn__ic { width: 22px; height: 22px; }
/* Sur fond sombre */
.fp-sombre .fp-btn--secondaire { --fp-btn-fond: rgba(255, 255, 255, .06); --fp-btn-texte: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.fp-sombre .fp-btn--secondaire:hover:not(:disabled) { --fp-btn-fond: rgba(255, 255, 255, .14); }
/* Attente : le libellé reste lu, un anneau tourne à sa place */
.fp-btn[aria-busy="true"] { color: transparent !important; pointer-events: none; }
.fp-btn[aria-busy="true"]::after { content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 2.5px solid var(--fp-btn-texte); border-right-color: transparent; animation: fp-tourne .8s linear infinite; }
.fp-btn[aria-busy="true"] > * { visibility: hidden; }

/* —— Cartes —— */
.fp-carte { position: relative; background: #fff; border: 1px solid var(--fp-trait); border-radius: var(--fp-r-l); box-shadow: var(--fp-ombre-1); padding: 20px; }
@media (min-width: 720px) { .fp-carte { padding: 28px; } }
.fp-carte__titre { font-size: 21px; font-weight: 800; color: var(--fp-marine); letter-spacing: -.01em; line-height: 1.2; margin: 0; }
.fp-carte__texte { margin-top: 8px; color: var(--fp-doux); font-size: 15px; }
/* Filet de domaine en haut de carte ; il s'anime à l'entrée et au survol. */
.fp-carte--domaine { overflow: hidden; }
.fp-carte--domaine::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--fp-accent); transform-origin: left center; transition: transform var(--fp-t3) var(--fp-sortie); }
/* Relief : soulèvement, ombre et lumière qui suit le pointeur (JavaScript facultatif : FP.relief). */
.fp-relief { isolation: isolate; transition: transform var(--fp-t3) var(--fp-sortie), box-shadow var(--fp-t3) var(--fp-sortie), border-color var(--fp-t2) ease; }
/* La lumière passe sous le contenu (z-index négatif dans la carte isolée) : le texte n'est jamais teinté. */
.fp-relief::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity var(--fp-t3) ease; background: radial-gradient(460px circle at var(--fp-mx, 50%) var(--fp-my, 0%), var(--fp-teinte), rgba(255, 255, 255, 0) 70%); }
.fp-relief:hover { transform: translateY(-4px); box-shadow: var(--fp-ombre-3); border-color: var(--fp-trait-2); }
.fp-relief:hover::after { opacity: 1; }
.fp-relief:hover::before { transform: scaleY(1.5); }
.fp-relief:active { transform: translateY(-1px) scale(.995); }
@media (hover: none) { .fp-relief:hover { transform: none; box-shadow: var(--fp-ombre-1); } .fp-relief:active { transform: scale(.99); } }

/* —— Champ de saisie —— */
.fp-champ { display: flex; flex-direction: column; gap: 7px; }
.fp-champ__etiquette { font-size: 14px; font-weight: 700; color: var(--fp-marine); }
.fp-champ__saisie { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--fp-bord); border-radius: var(--fp-r-m); background: #fff; color: var(--fp-encre); font: 500 16px/1.3 var(--fp-police); transition: border-color var(--fp-t1) ease, box-shadow var(--fp-t2) var(--fp-sortie); -webkit-appearance: none; appearance: none; }
.fp-champ__saisie::placeholder { color: #6B7F93; opacity: 1; }
.fp-champ__saisie:hover { border-color: var(--fp-marine-2); }
.fp-champ__saisie:focus { outline: none; border-color: var(--fp-marine); box-shadow: 0 0 0 4px rgba(0, 167, 255, .28); }
.fp-champ__saisie:focus-visible { outline: none; }
.fp-champ__aide { font-size: 13.5px; color: var(--fp-doux); }
.fp-champ__erreur { display: none; align-items: flex-start; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--fp-encre); }
.fp-champ__erreur::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--fp-saumon); box-shadow: inset 0 0 0 5.5px var(--fp-saumon), inset 0 0 0 9px var(--fp-marine); }
.fp-champ--erreur .fp-champ__saisie, .fp-champ__saisie[aria-invalid="true"] { border-color: var(--fp-marine); border-width: 2px; box-shadow: inset 4px 0 0 var(--fp-saumon); }
.fp-champ--erreur .fp-champ__erreur { display: flex; }

/* —— Code à six chiffres : un seul vrai champ (remplissage automatique, collage, lecteur d'écran), dessiné en six cases —— */
.fp-code { display: flex; flex-direction: column; gap: 9px; }
.fp-code__cases { position: relative; display: flex; gap: 8px; max-width: 376px; }
.fp-code__saisie { width: 100%; min-height: 58px; padding: 0 14px; border: 1.5px solid var(--fp-bord); border-radius: var(--fp-r-m); background: #fff; color: var(--fp-encre); font: 700 26px/1 var(--fp-police); letter-spacing: .5em; font-variant-numeric: tabular-nums; }
.fp-code__case { display: none; }
/* Dès que FP.code() a pris la main : le champ devient transparent au-dessus de six cases. */
.fp-code--pret .fp-code__saisie { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; background: transparent; color: transparent; caret-color: transparent; letter-spacing: 0; padding: 0; outline: none; -webkit-text-fill-color: transparent; font-size: 16px; }
.fp-code--pret .fp-code__saisie::selection { background: transparent; }
.fp-code--pret .fp-code__case { position: relative; display: grid; place-items: center; flex: 1 1 0; max-width: 56px; height: 62px; border: 1.5px solid var(--fp-bord); border-radius: var(--fp-r-m); background: #fff; font: 800 27px/1 var(--fp-police); color: var(--fp-marine); font-variant-numeric: tabular-nums; transition: border-color var(--fp-t1) ease, box-shadow var(--fp-t2) var(--fp-sortie), transform var(--fp-t2) var(--fp-ressort); }
.fp-code--pret .fp-code__case:nth-of-type(3) { margin-right: 10px; }
.fp-code--pret .fp-code__case.est-rempli { border-color: var(--fp-marine); background: var(--fp-marine-pale); }
.fp-code--pret.a-le-focus .fp-code__case.est-actif { border-color: var(--fp-marine); border-width: 2px; box-shadow: 0 0 0 4px rgba(0, 167, 255, .28); }
.fp-code--pret.a-le-focus .fp-code__case.est-actif::after { content: ""; width: 2px; height: 28px; background: var(--fp-marine); animation: fp-clignote 1.1s steps(1) infinite; }
.fp-code--pret.a-le-focus .fp-code__case.est-actif.est-rempli::after { display: none; }
.fp-code--erreur .fp-code__case { border-color: var(--fp-marine) !important; box-shadow: inset 0 -4px 0 var(--fp-saumon) !important; }
.fp-code--juste .fp-code__case { border-color: var(--fp-marine) !important; background: var(--fp-menthe) !important; box-shadow: inset 0 -4px 0 var(--fp-vert) !important; }

/* —— Bandeau d'information —— */
.fp-bandeau { --fp-b-couleur: var(--fp-bleu); --fp-b-teinte: var(--fp-ciel); display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--fp-r-m); background: var(--fp-b-teinte); color: var(--fp-encre); box-shadow: inset 4px 0 0 var(--fp-b-couleur); font-size: 14.5px; line-height: 1.5; }
.fp-bandeau__ic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--fp-b-couleur); color: var(--fp-marine); }
.fp-bandeau__ic svg { width: 18px; height: 18px; }
.fp-bandeau__titre { font-weight: 700; color: var(--fp-marine); margin-bottom: 2px; }
.fp-bandeau--succes { --fp-b-couleur: var(--fp-vert); --fp-b-teinte: var(--fp-menthe); }
.fp-bandeau--alerte { --fp-b-couleur: var(--fp-saumon); --fp-b-teinte: var(--fp-rose); }
.fp-bandeau--neutre { --fp-b-couleur: var(--fp-marine); --fp-b-teinte: var(--fp-marine-pale); }
.fp-bandeau--neutre .fp-bandeau__ic { color: #fff; }

/* —— Pastilles d'état : une icône et un mot, jamais la couleur seule —— */
.fp-etat { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 4px 12px 4px 8px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.1; color: var(--fp-marine); background: var(--fp-marine-pale); white-space: nowrap; }
.fp-etat svg { width: 16px; height: 16px; flex: none; }
.fp-etat--ouvert { background: var(--fp-ciel); box-shadow: inset 0 0 0 1px rgba(0, 167, 255, .45); }
.fp-etat--ouvert svg { color: var(--fp-marine); background: var(--fp-bleu); border-radius: 50%; padding: 2px; width: 18px; height: 18px; }
.fp-etat--ferme { background: #fff; box-shadow: inset 0 0 0 1px var(--fp-trait-2); color: var(--fp-doux); }
.fp-etat--prochaine { background: #fff; box-shadow: inset 0 0 0 1.5px var(--fp-marine); border: 0; }
.fp-etat--indisponible { background: var(--fp-marine); color: #fff; }

/* —— Fenêtre (modale) : plein écran sur téléphone, carte centrée au-delà de 640 px —— */
.fp-modale { padding: 0; border: 0; margin: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; background: transparent; color: var(--fp-encre); font-family: var(--fp-police); overflow: visible; }
.fp-modale::backdrop { background: rgba(0, 26, 48, .58); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.fp-modale__boite { display: flex; flex-direction: column; height: 100%; background: #fff; overflow: hidden; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.fp-modale__tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 16px 14px; border-bottom: 1px solid var(--fp-trait); position: relative; }
.fp-modale__tete::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: var(--fp-accent); }
.fp-modale__titre { margin: 4px 0 0; font-size: 21px; font-weight: 800; color: var(--fp-marine); letter-spacing: -.01em; line-height: 1.2; }
.fp-modale__fermer { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: var(--fp-r-m); background: var(--fp-fond); color: var(--fp-marine); cursor: pointer; transition: background-color var(--fp-t1) ease, transform var(--fp-t2) var(--fp-ressort); }
.fp-modale__fermer:hover { background: var(--fp-fond-2); transform: rotate(90deg); }
.fp-modale__fermer svg { width: 20px; height: 20px; }
.fp-modale__corps { flex: 1 1 auto; overflow-y: auto; padding: 18px 16px 22px; overscroll-behavior: contain; }
.fp-modale__pied { display: flex; flex-direction: column-reverse; gap: 10px; padding: 14px 16px 16px; border-top: 1px solid var(--fp-trait); background: var(--fp-fond); }
.fp-modale__pied .fp-btn { width: 100%; }
@media (min-width: 640px) {
  .fp-modale { width: min(560px, calc(100% - 48px)); height: fit-content; max-height: calc(100% - 48px); margin: auto; }
  .fp-modale__boite { height: auto; max-height: calc(100vh - 48px); border-radius: var(--fp-r-xl); box-shadow: 0 30px 80px rgba(0, 26, 48, .35); padding: 0; }
  .fp-modale__tete { padding: 24px 24px 16px; } .fp-modale__corps { padding: 20px 24px 24px; }
  .fp-modale__pied { flex-direction: row; justify-content: flex-end; padding: 16px 24px; } .fp-modale__pied .fp-btn { width: auto; }
}

/* —— Attente, notification —— */
.fp-points { display: inline-flex; gap: 6px; align-items: center; }
.fp-points i { width: 9px; height: 9px; border-radius: 2px; display: block; background: var(--fp-bleu); }
.fp-points i:nth-child(2) { background: var(--fp-vert); } .fp-points i:nth-child(3) { background: var(--fp-saumon); }
.fp-squelette { position: relative; overflow: hidden; background: var(--fp-fond-2); border-radius: var(--fp-r-s); }
.fp-squelette::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .65), rgba(255, 255, 255, 0)); }
.fp-toast { position: fixed; left: 16px; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 80; margin: 0 auto; max-width: 480px; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: var(--fp-r-m); background: var(--fp-marine); color: #fff; font: 600 14px/1.45 var(--fp-police); box-shadow: 0 16px 40px rgba(0, 26, 48, .35); }
.fp-toast::before { content: ""; flex: none; width: 10px; align-self: stretch; border-radius: 3px; background: var(--fp-accent); }

/* —— Mouvement ——
   Uniquement transform et opacity ; tout s'éteint avec « prefers-reduced-motion ».
   Entrée : ajouter .fp-entre à un élément (délai réglable par --fp-i, posé en JavaScript). */
@keyframes fp-tourne { to { transform: rotate(360deg); } }
@keyframes fp-clignote { 50% { opacity: 0; } }
@keyframes fp-monte { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
@keyframes fp-apparait { from { opacity: 0; } to { opacity: 1; } }
@keyframes fp-pop { 0% { opacity: 0; transform: scale(.6) rotate(-6deg); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes fp-filet { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fp-luit { to { transform: translateX(100%); } }
@keyframes fp-saute { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-7px); } }
@keyframes fp-glisse-haut { from { transform: translate3d(0, 100%, 0); } to { transform: none; } }
@keyframes fp-glisse-bas { from { transform: none; } to { transform: translate3d(0, 100%, 0); } }
@keyframes fp-zoom-entre { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fp-zoom-sort { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes fp-fond-entre { from { opacity: 0; } }
@keyframes fp-secoue { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes fp-case { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: no-preference) {
  .fp-entre { animation: fp-monte .7s var(--fp-sortie) backwards; animation-delay: calc(var(--fp-i, 0) * 70ms); }
  .fp-carte--domaine.fp-entre::before { animation: fp-filet .9s var(--fp-sortie) backwards; animation-delay: calc(var(--fp-i, 0) * 70ms + .25s); }
  .fp-points i { animation: fp-saute .9s ease-in-out infinite; } .fp-points i:nth-child(2) { animation-delay: .15s; } .fp-points i:nth-child(3) { animation-delay: .3s; }
  .fp-squelette::after { animation: fp-luit 1.5s ease-in-out infinite; }
  .fp-toast { animation: fp-zoom-entre .45s var(--fp-ressort) backwards; }
  .fp-code--pret .fp-code__case.vient-d-entrer { animation: fp-case .26s var(--fp-ressort); }
  .fp-code--erreur .fp-code__cases { animation: fp-secoue .42s ease; }
  .fp-modale[open] .fp-modale__boite { animation: fp-glisse-haut .42s var(--fp-sortie); }
  .fp-modale[open]::backdrop { animation: fp-fond-entre .3s ease; }
  .fp-modale.se-ferme .fp-modale__boite { animation: fp-glisse-bas .26s ease-in forwards; }
  .fp-modale.se-ferme::backdrop { animation: fp-fond-entre .26s ease reverse forwards; }
  @media (min-width: 640px) {
    .fp-modale[open] .fp-modale__boite { animation: fp-zoom-entre .38s var(--fp-ressort); }
    .fp-modale.se-ferme .fp-modale__boite { animation: fp-zoom-sort .2s ease-in forwards; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .fp-btn, .fp-relief, .fp-relief::after, .fp-carte--domaine::before, .fp-btn__ic, .fp-modale__fermer, .fp-code--pret .fp-code__case { transition: none !important; }
  .fp-relief:hover { transform: none; }
  .fp-btn[aria-busy="true"]::after { animation-duration: 2.4s; } /* l'attente reste signalée, plus lentement */
  .fp-code--pret.a-le-focus .fp-code__case.est-actif::after { animation: none; } /* curseur fixe */
}
@media print { .fp-barre { position: static; box-shadow: none; } .fp-toast { display: none; } }
