Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/fare-asso/fare-website. fare-asso.fr
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455:root { /* header height: 22px x2 padding + 56px logo + 1px border */ --v1f-h: 101px; --hdr-ink: #0a0a0a; --hdr-paper: #faf9f5; --hdr-paper-2: #f1efe7; --hdr-muted: #6b6963; --hdr-radius: 14px; --hdr-shadow: 0 24px 50px -20px rgba(15, 14, 12, 0.25), 0 8px 18px -10px rgba(15, 14, 12, 0.18); --hdr-easing: cubic-bezier(0.2, 0.7, 0.3, 1);}
/* ========================================================= DESKTOP ========================================================= */
.v1f { display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px; width: 100%; padding: 22px 56px; border-bottom: 1px solid rgba(10, 10, 10, 0.1); background: var(--hdr-paper); position: relative; z-index: 50;}/* logo stays left; pushes the nav (or the burger) to the right */.v1f-logo { display: flex; margin-right: auto;}.v1f-logo img { height: 56px; width: auto; display: block;}
/* "Défense des droits" CTA — always visible. Compact pill next to the nav on desktop; its own centred row on very narrow screens. */.v1f-cta { display: inline-flex; align-items: center; margin-right: 20px; text-decoration: none;}.v1f-cta-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1.5px dashed var(--color-fare-accent); border-radius: 999px; color: var(--color-fare-accent); font-size: 14px; font-weight: 600; line-height: 1.15; white-space: nowrap; transition: background 0.15s var(--hdr-easing);}.v1f-cta:hover .v1f-cta-pill { background: rgba(0, 74, 173, 0.08);}.v1f-cta-icon { width: 20px; height: 20px; flex-shrink: 0;}
.v1f-nav { position: relative; display: none; isolation: isolate;}.v1f-list { display: flex;}.v1f-item { position: relative;}.v1f-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; font-size: 15px; font-weight: 500; color: var(--hdr-ink); text-decoration: none; border-radius: 999px; letter-spacing: -0.005em; white-space: nowrap; position: relative; /* also rendered as a <button> for dropdown triggers */ background: none; border: 0; font-family: inherit; cursor: pointer;}.v1f-caret { opacity: 0.55; transition: transform 0.2s;}.v1f-item:hover .v1f-caret,.v1f-item:focus-within .v1f-caret,.v1f-item:has(.v1f-pane:popover-open) .v1f-caret { transform: rotate(180deg);}
/* ---- Underline (fallback): a per-item bar that grows on hover ---- */.v1f-link::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px; height: 2px; background: var(--hdr-ink); transform: scaleX(0); transform-origin: left center; transition: transform 0.25s var(--hdr-easing);}.v1f-item[data-active="true"] .v1f-link::after,.v1f-item:hover .v1f-link::after,.v1f-item:focus-within .v1f-link::after,.v1f-item:has(.v1f-pane:popover-open) .v1f-link::after { transform: scaleX(1);}/* rail exists only in the anchor-positioning path */.v1f-rail { display: none;}
/* ---- Underline (enhanced): one rail that slides between items ---- Index-free: at most one link owns the `--tab` anchor at a time, so the rail's anchor query always has a single, unambiguous target. It rests under the active link and follows whatever is hovered/focused or has its dropdown open. */@supports (anchor-name: --x) { .v1f-link::after { display: none; }
.v1f-item[data-active="true"] .v1f-link, .v1f-item:is(:hover, :focus-within) .v1f-link, .v1f-item:has(.v1f-pane:popover-open) .v1f-link { anchor-name: --tab; } /* while something is hovered/focused/open, release the active link so the engaged one stays the sole anchor */ .v1f-nav:has(.v1f-item:is(:hover, :focus-within), .v1f-pane:popover-open) .v1f-item[data-active="true"]:not( :hover, :focus-within, :has(.v1f-pane:popover-open) ) .v1f-link { anchor-name: none; }
.v1f-rail { display: block; position: absolute; bottom: 4px; height: 2px; left: anchor(--tab left); width: anchor-size(--tab width); background: var(--hdr-ink); opacity: 0; pointer-events: none; transition: left 0.3s var(--hdr-easing), width 0.3s var(--hdr-easing), opacity 0.15s; } .v1f-nav:has(.v1f-item[data-active="true"]) .v1f-rail, .v1f-nav:has(.v1f-item:is(:hover, :focus-within)) .v1f-rail, .v1f-nav:has(.v1f-pane:popover-open) .v1f-rail { opacity: 1; }}
/* ---- Dropdown: one native popover pane per item ---- Zero-JS baseline: click/Enter opens, Escape + light dismiss are native. The inline script only adds hover-open, aria-expanded and focus management. Without anchor positioning the pane falls back to a fixed panel under the header bar. */.v1f-pane { position: fixed; inset: auto; top: calc(var(--v1f-h) + 8px); right: 24px; margin: 0; padding: 8px; min-width: 280px; max-width: 360px; background: white; border: 1px solid rgba(10, 10, 10, 0.08); border-radius: var(--hdr-radius); box-shadow: var(--hdr-shadow); opacity: 0; transform: translateY(-4px); /* entry-only animation: closing is instant (display flips to none) so a dismissed pane never lingers as a ghost while another opens */ transition: opacity 0.18s, transform 0.18s;}.v1f-pane:popover-open { opacity: 1; transform: translateY(0);}@starting-style { .v1f-pane:popover-open { opacity: 0; transform: translateY(-4px); }}.v1f-pane ul { display: grid; gap: 2px;}@supports (anchor-name: --x) { /* Per-item anchors, set inline (anchor-name on the li, position-anchor on the pane): every pane is tied to its own trigger, so it can never render at another item's position. (The implicit popovertarget anchor is not reliably supported.) */ .v1f-pane { top: calc(anchor(bottom, var(--v1f-h)) + 6px); right: anchor(right, 24px); }}
.v1f-suba { display: grid; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--hdr-ink);}.v1f-suba:hover,.v1f-suba[data-active] { background: var(--hdr-paper-2);}.v1f-suba .t { font-weight: 600; font-size: 14.5px;}.v1f-suba .d { font-size: 12.5px; color: var(--hdr-muted); margin-top: 2px;}
/* ========================================================= MOBILE — burger + M1 slide-in drawer ========================================================= */
.m-burger { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(10, 10, 10, 0.12); background: var(--hdr-paper); color: var(--hdr-ink); cursor: pointer;}.m-burger svg { width: 18px; height: 18px;}
/* shared sub-link rendering inside the drawer */.m-sub a { display: block; padding: 10px 14px; border-radius: 10px; color: inherit; text-decoration: none; font-size: 14.5px; opacity: 0.82;}.m-sub a:hover { opacity: 1; background: rgba(10, 10, 10, 0.04);}.m-sub a[data-active="true"] { font-weight: 600; opacity: 1; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;}.m-link { display: block; padding: 14px 6px; color: inherit; text-decoration: none; font-size: 19px; font-weight: 500; border-bottom: 1px solid rgba(10, 10, 10, 0.07);}.m-link[data-active="true"] { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;}
/* ---- shared details summary chrome ---- */.m-acc { border-bottom: 1px solid rgba(10, 10, 10, 0.07);}.m-acc summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 6px; font-size: 19px; font-weight: 500; cursor: pointer; list-style: none;}.m-acc summary::-webkit-details-marker { display: none;}.m-acc summary .chev { width: 16px; height: 16px; opacity: 0.55; transition: transform 0.2s;}.m-acc[open] summary .chev { transform: rotate(180deg);}.m-acc .m-sub { padding: 2px 10px 12px 16px; display: grid; gap: 2px;}
/* ---- M1 — slide-in drawer (right) — HTML popover + details ---- */
.m1-drawer { position: fixed; inset: 0 0 0 auto; width: 84%; max-width: 340px; height: 100dvh; max-height: 100dvh; box-sizing: border-box; margin: 0; padding: 0; border: 0; background: var(--hdr-paper); color: var(--hdr-ink); box-shadow: -24px 0 50px -10px rgba(0, 0, 0, 0.25); display: none; flex-direction: column; opacity: 0; transform: translateX(20px); transition: opacity 0.25s var(--hdr-easing), transform 0.3s var(--hdr-easing), display 0.3s allow-discrete, overlay 0.3s allow-discrete;}.m1-drawer:popover-open { display: flex; opacity: 1; transform: translateX(0);}@starting-style { .m1-drawer:popover-open { opacity: 0; transform: translateX(20px); }}.m1-drawer::backdrop { background: rgba(10, 10, 10, 0.25);}
.m1-head { display: flex; flex-shrink: 0; align-items: center; justify-content: right; padding: 14px 18px; border-bottom: 1px solid rgba(10, 10, 10, 0.08);}.m1-close { width: 36px; height: 36px; border: 1px solid rgba(10, 10, 10, 0.12); background: transparent; color: var(--hdr-ink); border-radius: 10px; cursor: pointer; display: grid; place-items: center;}.m1-close svg { width: 16px; height: 16px;}.m1-nav { flex: 1; min-height: 0; padding: 8px 18px 24px; overflow-y: auto;}
/* ========================================================= Responsive — desktop nav vs. mobile burger. header.css owns this so it never fights Tailwind specificity. ========================================================= */
@media (max-width: 1179px) { :root { --v1f-h: 67px; } .v1f { padding: 14px 20px; } .v1f-logo img { height: 38px; }}
/* Only when logo + CTA + burger can't share a line does the CTA drop to its own full-width, centred row under the bar. */@media (max-width: 440px) { .v1f-cta { order: 10; flex-basis: 100%; justify-content: center; margin: 14px 0 0; }}
@media (min-width: 900px) { .v1f-nav { display: flex; } .m-burger { display: none; }}