/* Socle de la démo Navimed : couleurs et police du site navimed.fr, barre, étapes, composants communs. */
:root {
  --marine: #001f41;
  --marine-2: #0b3462;
  --cyan: #0f9ec1;
  --cyan-vif: #0fb6ef;
  --cyan-voile: #e2f4fa;
  --papier: #f2f5f8;
  --feuille: #ffffff;
  --encre: #16222f;
  --encre-2: #5b6b7b;
  --filet: #e1e7ed;
  --filet-fort: #c5cdd6;
  --ok: #0f7650;
  --ok-voile: #e4f4ec;
  --alerte: #c2410c;
  --alerte-voile: #fff0e6;
  --question: #8a6100;
  --question-voile: #fdf3d6;
  --cnan: #0f9ec1;
  --nouris: #d1782a;
  --tas: #2e8b7a;
  --glen: #7a5ba6;
  --police: 'Roboto', system-ui, sans-serif;
  --mono: 'Roboto Mono', ui-monospace, monospace;
  --rayon: 10px;
  --rayon-petit: 6px;
  --ombre: 0 1px 2px rgba(0, 31, 65, 0.06), 0 8px 24px rgba(0, 31, 65, 0.07);
  --largeur: 1280px;
  --marge: clamp(16px, 3vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 400 15px/1.5 var(--police);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-weight: 500; line-height: 1.2; margin: 0; letter-spacing: -0.005em; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.mono { font-family: var(--mono); font-size: 0.92em; letter-spacing: 0; }

.evitement { position: absolute; left: -9999px; top: 8px; background: var(--feuille); padding: 8px 12px; z-index: 10; }
.evitement:focus { left: 8px; }
.invisible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.noscript { padding: 40px var(--marge); }

/* Barre du haut, marine comme le bandeau du site */
.barre {
  display: flex; align-items: center; gap: 20px;
  padding: 10px var(--marge);
  background: var(--marine); color: #fff;
  position: sticky; top: 0; z-index: 5;
}
.barre__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.barre__marque { display: grid; font-weight: 700; font-size: 22px; line-height: 1; letter-spacing: -0.02em; }
.barre__marque small {
  font-size: 9.5px; font-weight: 500; font-style: italic; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan-vif); margin-top: 3px;
}
.barre__titre { display: grid; padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, 0.18); min-width: 0; }
.barre__titre strong { font-weight: 500; font-size: 16px; }
.barre__titre span { color: rgba(255, 255, 255, 0.7); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barre__date { margin-left: auto; font-size: 13px; color: rgba(255, 255, 255, 0.75); white-space: nowrap; }

/* Étapes : une vraie séquence, donc numérotée */
.etapes { background: var(--feuille); border-bottom: 1px solid var(--filet); overflow-x: auto; scrollbar-width: none; }
.etapes ol { list-style: none; margin: 0 auto; padding: 0 var(--marge); display: flex; gap: 4px; max-width: var(--largeur); }
.etapes button {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px 11px;
  background: none; border: 0; border-bottom: 3px solid transparent; cursor: pointer;
  color: var(--encre-2); font-weight: 500; font-size: 14px; white-space: nowrap;
}
.etapes button span {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid currentColor; font-size: 12px;
}
.etapes button:hover { color: var(--encre); }
.etapes button[aria-current] { color: var(--marine); border-bottom-color: var(--cyan); }
.etapes button[aria-current] span { background: var(--marine); border-color: var(--marine); color: #fff; }
.etapes button.faite span { background: var(--cyan); border-color: var(--cyan); color: #fff; }

/* Page */
main { outline: none; }
.page { max-width: var(--largeur); margin: 0 auto; padding: 26px var(--marge) 72px; }
.page.entree { animation: entree 0.32s ease-out both; }
@keyframes entree { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.entete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 20px; }
.entete h1 { font-size: clamp(23px, 2.8vw, 30px); max-width: 34ch; color: var(--marine); }
.entete p { color: var(--encre-2); max-width: 66ch; margin-top: 8px; }
.section-titre { font-size: 17px; margin: 28px 0 12px; color: var(--marine); }

.panneau { background: var(--feuille); border: 1px solid var(--filet); border-radius: var(--rayon); }
.panneau__titre { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 18px 10px; border-bottom: 1px solid var(--filet); }
.panneau__titre h2 { font-size: 16px; color: var(--marine); }
.panneau__titre span { color: var(--encre-2); font-size: 13px; }
.carte-info { padding: 16px 18px; display: grid; gap: 10px; }
.carte-info h2 { font-size: 15px; color: var(--marine); }

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px;
  background: var(--marine); color: #fff; border: 1px solid var(--marine);
  font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background 0.15s;
}
.bouton:hover { background: var(--marine-2); }
.bouton[aria-disabled='true'] { opacity: 0.4; cursor: default; pointer-events: none; }
.bouton--large { width: 100%; }
.bouton--petit { min-height: 32px; padding: 4px 14px; font-size: 13px; background: var(--cyan); border-color: var(--cyan); }
.bouton--petit:hover { background: #0b88a7; }
.lien { background: none; border: 0; padding: 0; text-align: left; color: var(--cyan); font-weight: 500; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; justify-self: start; }
.lien:disabled { color: var(--ok); text-decoration: none; cursor: default; }

/* Pastilles */
.ligne { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.ligne::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--couleur, var(--cyan)); }
.ligne--cnan { --couleur: var(--cnan); }
.ligne--nouris { --couleur: var(--nouris); }
.ligne--tas { --couleur: var(--tas); }
.ligne--glen { --couleur: var(--glen); }
.type { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--marine); background: var(--cyan-voile); padding: 2px 7px; border-radius: 4px; }
.langue { display: inline-grid; place-items: center; width: 28px; height: 20px; border-radius: 4px; font-size: 11px; font-weight: 700; color: var(--encre-2); box-shadow: inset 0 0 0 1px var(--filet-fort); }
.etat { display: inline-flex; align-items: center; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.etat--pret { background: var(--ok-voile); color: var(--ok); }
.etat--completer { background: var(--question-voile); color: var(--question); }
.etat--verifier { background: var(--alerte-voile); color: var(--alerte); }

.coches { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.coches li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.coches li::before { content: '✓'; color: var(--cyan); font-weight: 700; }

.chiffre { font-weight: 300; font-size: 28px; letter-spacing: -0.02em; color: var(--marine); line-height: 1.1; }
.muet { color: var(--encre-2); }

/* Message de confirmation */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%);
  background: var(--marine); color: #fff; padding: 12px 18px; border-radius: var(--rayon);
  box-shadow: var(--ombre); font-size: 14px; max-width: min(560px, calc(100vw - 32px)); z-index: 20;
  animation: toast 0.25s ease-out both;
}
@keyframes toast { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (max-width: 720px) {
  body { font-size: 14px; }
  .barre { gap: 12px; }
  .barre__marque { font-size: 19px; }
  .barre__marque small, .barre__date { display: none; }
  .barre__titre { padding-left: 12px; }
  .barre__titre strong { font-size: 15px; }
  .page { padding-top: 20px; }
}

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