/* Frise chronologique horizontale — html/layouts/demat/frise.php, js/frise.js (desktop + mobile: same file) */
.frise { margin-block: 3rem 4rem; }
.frise-entete { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.frise-titre { display: flex; align-items: center; margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); text-wrap: balance; } /* as .accueil-entete-section h2 */
.frise-nav { display: flex; gap: 0.5rem; }
.frise-nav[hidden] { display: none; }
.frise-bouton { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--ligne); background: var(--blanc-ecume); color: var(--noir-goemon); cursor: pointer; transition: background-color 200ms ease, color 200ms ease, opacity 200ms ease; }
.frise-bouton:hover:not(:disabled), .frise-bouton:focus-visible { background: var(--noir-goemon); color: var(--blanc-ecume); }
.frise-bouton:disabled { opacity: 0.35; cursor: default; }

/* Progression : a thin rule that fills as the track scrolls (JS sets --frise-progression, 0..1) */
.frise-progression { height: 2px; margin-bottom: 0.25rem; background: var(--ligne); border-radius: 2px; overflow: hidden; }
.frise-progression-barre { display: block; height: 100%; background: var(--bleu-glaz); transform-origin: left; transform: scaleX(var(--frise-progression, 0)); transition: transform 150ms linear; }

.frise-piste { --frise-carte: min(19rem, 78vw); display: grid; grid-auto-flow: column; grid-auto-columns: var(--frise-carte); gap: 0; margin: 0 calc(-1 * var(--gouttiere)); padding: 1.75rem var(--gouttiere) 1.5rem; list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gouttiere); scroll-behavior: smooth; scrollbar-width: thin; cursor: grab; }
.frise-piste:focus-visible { outline: 2px solid var(--bleu-glaz); outline-offset: 2px; border-radius: var(--rayon); }
.frise-piste.est-glisse { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
@media (prefers-reduced-motion: reduce) { .frise-piste { scroll-behavior: auto; } .frise-progression-barre, .frise-carte { transition: none !important; } }

.frise-jalon { position: relative; display: flex; flex-direction: column; padding-right: 1.25rem; scroll-snap-align: start; }
/* The line through the dots: each milestone draws its own segment, so « Bientôt » can be dashed */
.frise-jalon::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: var(--noir-goemon); opacity: 0.85; }
.frise-jalon:first-child::before { left: 11px; }
.frise-jalon--bientot::before, .frise-jalon--aujourdhui::before { background: repeating-linear-gradient(90deg, var(--granit) 0 6px, transparent 6px 12px); opacity: 1; }
.frise-jalon--aujourdhui:last-child::before { right: auto; width: 2.5rem; }
.frise-point { position: relative; z-index: 1; display: block; width: 16px; height: 16px; margin: 0 0 1rem 4px; border-radius: 50%; background: var(--noir-goemon); border: 3px solid var(--blanc-ecume); box-shadow: 0 0 0 2px var(--noir-goemon); transition: transform 200ms ease, background-color 200ms ease, box-shadow 200ms ease; }
.frise-jalon--bientot .frise-point { background: var(--blanc-ecume); box-shadow: 0 0 0 2px var(--granit); }
.frise-jalon--aujourdhui .frise-point { background: var(--bleu-glaz); box-shadow: 0 0 0 2px var(--bleu-glaz); }

.frise-carte { flex: 1; padding: 1.25rem 1.25rem 1.4rem; border: 1px solid var(--ligne); border-radius: 16px; background: #fff; transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease; }
.frise-image { display: block; width: calc(100% + 2.5rem); max-width: none; aspect-ratio: 16 / 9; object-fit: cover; margin: -1.25rem -1.25rem 1rem; border-radius: 15px 15px 0 0; filter: grayscale(1); pointer-events: none; }
.frise-icone { display: block; width: 28px; height: 28px; margin-bottom: 0.75rem; color: var(--bleu-glaz); }
.frise-jalon--aujourdhui .frise-icone { color: #9fdde4; }
.frise-jalon--bientot .frise-icone { color: var(--granit); }
.frise-date { margin: 0 0 0.35rem; font-family: var(--police-donnees); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bleu-glaz-fonce); }
.frise-jalon-titre { margin: 0 0 0.5rem; font-family: var(--police-titre); font-size: 1.15rem; font-weight: 700; line-height: 1.25; }
.frise-texte { margin: 0; font-size: 0.95rem; line-height: 1.5; color: var(--granit); }
.frise-jalon--bientot .frise-carte { background: transparent; border-style: dashed; }
.frise-jalon--bientot .frise-date { color: var(--granit); }
.frise-jalon--aujourdhui .frise-carte { background: var(--noir-goemon); border-color: var(--noir-goemon); color: var(--blanc-ecume); }
.frise-jalon--aujourdhui .frise-date { color: #9fdde4; }
.frise-jalon--aujourdhui .frise-jalon-titre { color: var(--blanc-ecume); }
/* Text the editors still have to supply */
.frise-jalon--a-completer .frise-carte { border: 2px dashed #c47f00; background: #fff8e8; }

/* Current milestone (JS) */
.frise-jalon.est-courant .frise-point { transform: scale(1.3); background: var(--bleu-glaz); box-shadow: 0 0 0 2px var(--bleu-glaz); }
.frise-jalon--bientot.est-courant .frise-point { background: var(--blanc-ecume); }
.frise-jalon.est-courant .frise-carte { border-color: var(--bleu-glaz); box-shadow: 0 10px 30px -14px rgba(0, 30, 38, 0.35); }
.frise-jalon--aujourdhui.est-courant .frise-carte { border-color: var(--bleu-glaz); }

@media (max-width: 40em) {
	.frise-entete { align-items: center; }
	.frise-piste { cursor: auto; }
}
