Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/fare-asso/fare-website. fare-asso.fr
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587:root { --ink: #0a0a0a; --paper: #faf9f5; --paper-2: #f1efe7; --muted: #6b6963; --red: #e1322d; --blue: #004aad; --radius: 14px; --shadow: 0 24px 50px -20px rgba(15, 14, 12, 0.25), 0 8px 18px -10px rgba(15, 14, 12, 0.18); --easing: cubic-bezier(0.2, 0.7, 0.3, 1);}
/* ========================================================= DESKTOP — V1 Final ========================================================= */
.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(--paper); position: relative;}/* logo stays left; pushes the CTA + nav (or the burger) to the right */.v1f-logo { 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 mobile. Same visual language as the bar (pill radius, accent colour, dashed border). */.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(--blue); border-radius: 999px; color: var(--blue); font-size: 14px; font-weight: 600; line-height: 1.15; white-space: nowrap; transition: background 0.15s var(--easing);}.v1f-cta:hover .v1f-cta-pill,.v1f-cta:focus-visible .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-item { position: relative;}.v1f-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; border-radius: 999px; letter-spacing: -0.005em; white-space: nowrap; position: relative;}.v1f-caret { opacity: 0.55; transition: transform 0.2s;}.v1f-item:hover .v1f-caret,.v1f-item:focus-within .v1f-caret { transform: rotate(180deg);}
/* ---- Fallback (works everywhere, no slide) ---- */.v1f-link::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left center; transition: transform 0.25s var(--easing);}.v1f-item[data-active="true"] .v1f-link::after { transform: scaleX(1);}.v1f-item:hover .v1f-link::after,.v1f-item:focus-within .v1f-link::after { transform: scaleX(1);}
.v1f-pop-fallback { position: absolute; top: 100%; left: 0; margin: 0; padding: 8px; min-width: 280px; background: white; border: 1px solid rgba(10, 10, 10, 0.08); border-radius: var(--radius); box-shadow: var(--shadow); opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity 0.18s, transform 0.18s; z-index: 50; display: grid; gap: 2px;}.v1f-item:hover .v1f-pop-fallback,.v1f-item:focus-within .v1f-pop-fallback { opacity: 1; transform: translateY(0); pointer-events: auto;}.v1f-suba { display: grid; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink);}.v1f-suba:hover,.v1f-suba[data-active] { background: var(--paper-2);}.v1f-suba .t { font-weight: 600; font-size: 14.5px;}.v1f-suba .d { font-size: 12.5px; color: var(--muted); margin-top: 2px;}
/* Modern-only elements hidden in fallback */.v1f-rail,.v1f-pop-shared { display: none;}
/* ---- Modern: anchor positioning ---- */@supports (anchor-name: --x) { .v1f-link::after { display: none; } .v1f-pop-fallback { display: none; } .v1f-rail, .v1f-pop-shared { display: block; }
.v1f-link { anchor-name: var(--anchor); }
/* hover-bridge (link side) — keeps the dropdown open across the gap */ .v1f-item::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 22px; }
/* sliding rail */ .v1f-rail { position: absolute; height: 2px; background: var(--ink); pointer-events: none; opacity: 0; bottom: 4px; transition: left 0.32s var(--easing), width 0.32s var(--easing), opacity 0.15s; }
/* default rest position: under active link */ .v1f-nav:has(.v1f-item[data-active="true"]) .v1f-rail { left: anchor(--n-active left); width: anchor-size(--n-active width); opacity: 1; }
/* persistent underline on the active page link — mirrors the hover rail so the current section stays marked even while another item is hovered (the rail has slid away) */ .v1f-item[data-active="true"] .v1f-link::after { content: ""; display: block; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--ink); transform: none; opacity: 1; }
/* hovered/focused overrides — and stay-open while pane is hovered */ .v1f-nav:has(.v1f-item:nth-child(1):is(:hover, :focus-within)) .v1f-rail, .v1f-nav:has(.v1f-pane[data-i="0"]:hover) .v1f-rail { left: anchor(--n0 left); width: anchor-size(--n0 width); opacity: 1; } .v1f-nav:has(.v1f-item:nth-child(2):is(:hover, :focus-within)) .v1f-rail { left: anchor(--n1 left); width: anchor-size(--n1 width); opacity: 1; } .v1f-nav:has(.v1f-item:nth-child(3):is(:hover, :focus-within)) .v1f-rail, .v1f-nav:has(.v1f-pane[data-i="2"]:hover) .v1f-rail { left: anchor(--n2 left); width: anchor-size(--n2 width); opacity: 1; } .v1f-nav:has(.v1f-item:nth-child(4):is(:hover, :focus-within)) .v1f-rail, .v1f-nav:has(.v1f-pane[data-i="3"]:hover) .v1f-rail { left: anchor(--n3 left); width: anchor-size(--n3 width); opacity: 1; } .v1f-nav:has(.v1f-item:nth-child(5):is(:hover, :focus-within)) .v1f-rail, .v1f-nav:has(.v1f-pane[data-i="4"]:hover) .v1f-rail { left: anchor(--n4 left); width: anchor-size(--n4 width); opacity: 1; } .v1f-nav:has(.v1f-item:nth-child(6):is(:hover, :focus-within)) .v1f-rail { left: anchor(--n5 left); width: anchor-size(--n5 width); opacity: 1; }
/* sliding dropdown */ .v1f-pop-shared { position: absolute; top: calc(100% + 6px); margin: 0; padding: 8px; width: max-content; min-width: 220px; max-width: 360px; background: white; border: 1px solid rgba(10, 10, 10, 0.08); border-radius: var(--radius); box-shadow: var(--shadow); opacity: 0; transform: translateY(-4px); pointer-events: none; z-index: 60; display: grid; grid-template-columns: 1fr; /* Closed: don't slide back — snap left/width only AFTER the fade-out has finished, so the box fades out in place. */ transition: left 0s linear 0.2s, width 0s linear 0.2s, opacity 0.18s, transform 0.18s; }
.v1f-nav:has(.v1f-item:nth-child(1):is(:hover, :focus-within)) .v1f-pop-shared, .v1f-nav:has(.v1f-pane[data-i="0"]:hover) .v1f-pop-shared { left: anchor(--n0 left); transition: left 0.32s var(--easing), width 0.2s var(--easing), opacity 0.18s, transform 0.18s; opacity: 1; transform: translateY(0); pointer-events: auto; } .v1f-nav:has(.v1f-item:nth-child(3):is(:hover, :focus-within)) .v1f-pop-shared, .v1f-nav:has(.v1f-pane[data-i="2"]:hover) .v1f-pop-shared { left: anchor(--n2 left); transition: left 0.32s var(--easing), width 0.2s var(--easing), opacity 0.18s, transform 0.18s; opacity: 1; transform: translateY(0); pointer-events: auto; } .v1f-nav:has(.v1f-item:nth-child(4):is(:hover, :focus-within)) .v1f-pop-shared, .v1f-nav:has(.v1f-pane[data-i="3"]:hover) .v1f-pop-shared { right: anchor(--n3 right); transition: left 0.32s var(--easing), width 0.2s var(--easing), opacity 0.18s, transform 0.18s; opacity: 1; transform: translateY(0); pointer-events: auto; } .v1f-nav:has(.v1f-item:nth-child(5):is(:hover, :focus-within)) .v1f-pop-shared, .v1f-nav:has(.v1f-pane[data-i="4"]:hover) .v1f-pop-shared { right: anchor(--n4 right); opacity: 1; transform: translateY(0); pointer-events: auto; }
.v1f-pane { grid-area: 1 / 1; position: relative; display: none; gap: 2px; } /* hover-bridge (box side) — spans the full dropdown width so the cursor never crosses a dead zone between the link and the box */ .v1f-pane::before { content: ""; position: absolute; left: -8px; right: -8px; bottom: 100%; height: 14px; }
.v1f-nav:has(.v1f-item:nth-child(1):is(:hover, :focus-within)) .v1f-pane[data-i="0"], .v1f-nav:has(.v1f-pane[data-i="0"]:hover) .v1f-pane[data-i="0"], .v1f-nav:has(.v1f-item:nth-child(3):is(:hover, :focus-within)) .v1f-pane[data-i="2"], .v1f-nav:has(.v1f-pane[data-i="2"]:hover) .v1f-pane[data-i="2"], .v1f-nav:has(.v1f-item:nth-child(4):is(:hover, :focus-within)) .v1f-pane[data-i="3"], .v1f-nav:has(.v1f-pane[data-i="3"]:hover) .v1f-pane[data-i="3"], .v1f-nav:has(.v1f-item:nth-child(5):is(:hover, :focus-within)) .v1f-pane[data-i="4"], .v1f-nav:has(.v1f-pane[data-i="4"]:hover) .v1f-pane[data-i="4"] { display: grid; }}
/* ========================================================= 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(--paper); color: var(--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(--paper); color: var(--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(--easing), transform 0.3s var(--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-head img { height: 36px; width: auto; display: block;}.m1-close { width: 36px; height: 36px; border: 1px solid rgba(10, 10, 10, 0.12); background: transparent; color: var(--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 (lg = 1024px). header.css owns this so it never fights Tailwind specificity. ========================================================= */
@media (max-width: 1179px) { .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: 1180px) { .v1f-nav { display: flex; } .m-burger { display: none; }}