/* Feuille commune à toutes les fiches. La couleur --tc vient du type (tirage, date fixe, quota, refuges) */
/* Polices hébergées sur le site (Fraunces et Inter, licence SIL OFL), aucune requête vers Google */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 500 900; font-display: swap; src: url(polices/fraunces-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 500 900; font-display: swap; src: url(polices/fraunces-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(polices/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(polices/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: italic; font-weight: 800; font-display: swap; src: url(polices/inter-italique-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: italic; font-weight: 800; font-display: swap; src: url(polices/inter-italique-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --paper: #f4efe4; --ink: #22302a; --muted: #6b7a70; --card: #fffdf8; --line: #e2dccd; --soft: #ece6d8;
  --open: #2f7d55; --soon: #d0622f; --sun: #ff5a1f; --sun2: #ffb020;
}
:root.dark {
  color-scheme: dark;
  --paper: #0f1a1b; --ink: #e9efe9; --muted: #93a39d; --card: #182627; --line: #2a3b3b; --soft: #1f3031;
  --open: #2fd27f; --soon: #ff7a3d;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 Inter, system-ui, sans-serif; transition: background-color .35s, color .35s; }
a { color: inherit; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { font-family: Fraunces, serif; line-height: 1.15; }
h2 { font-size: 26px; margin: 44px 0 14px; }
h2 small { font-family: Inter, sans-serif; font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 6px; }

/* Bandeau du haut */
.top { position: relative; color: #fff; overflow: hidden; background: radial-gradient(circle at 85% -20%, rgba(255, 255, 255, .3), transparent 50%), linear-gradient(135deg, var(--tc), color-mix(in srgb, var(--tc) 45%, #14302e)); }
.top svg.mt { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 600 23px/1 Inter, sans-serif; letter-spacing: -.01em; text-decoration: none; }
.logo svg { width: 40px; height: 40px; flex: none; }
.logo em { font-style: normal; font-weight: 700; color: #ff7a1a; }
.prefs { display: flex; gap: 8px; }
.theme { position: relative; display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; background: rgba(8, 20, 21, .35); cursor: pointer; font: inherit; color: #fff; }
.theme span { position: relative; z-index: 1; padding: 4px 10px; font-size: 13px; font-weight: 700; border-radius: 999px; transition: color .3s; }
.theme i { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 4px); border-radius: 999px; background: #fffaf2; transition: transform .35s cubic-bezier(.5, 1.6, .5, 1), background .35s; }
.theme span:first-of-type { color: #14302e; }
.theme.on i { transform: translateX(calc(100% + 2px)); background: #355a5b; box-shadow: 0 0 0 1px rgba(255, 233, 160, .45), 0 0 12px rgba(255, 210, 74, .35); }
.theme.on span:first-of-type { color: #fff; } .theme.on span:last-of-type { color: #ffe9a0; }
.crumbs { font-size: 13.5px; color: rgba(255, 255, 255, .85); margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; }
.crumbs li + li::before { content: "›"; margin: 0 7px; opacity: .7; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; align-items: center; padding: 18px 0 110px; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); margin: 10px 0 8px; }
.hero .pl { margin: 0; color: rgba(255, 255, 255, .9); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chips > span { background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: 4px 11px; font-weight: 700; font-size: 14px; }
.chips > span b { margin-right: 7px; padding-right: 7px; border-right: 1px solid rgba(255, 255, 255, .4); }
/* Le dossard : compte à rebours vers la prochaine étape */
.bib { background: #fffaf2; color: #22302a; width: 230px; border-radius: 14px; padding: 22px 18px 14px; text-align: center; transform: rotate(3deg); box-shadow: 0 20px 44px rgba(0, 0, 0, .35); position: relative; border-top: 8px solid var(--sun); }
.bib::before, .bib::after { content: ""; position: absolute; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: #1d4b4a; }
.bib::before { left: 11px; } .bib::after { right: 11px; }
.bib small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sun); }
.bib b { display: block; font: italic 800 60px/1.05 Inter, sans-serif; padding-right: .06em; margin: 4px 0 2px; background: linear-gradient(90deg, var(--sun2), var(--sun)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(2px 3px 0 rgba(150, 50, 10, .22)) drop-shadow(0 6px 6px rgba(120, 40, 0, .14)); }
.bib span { display: block; font-size: 13px; color: #6b7a70; line-height: 1.35; }

/* La réponse directe, en premier : c'est elle que Google et les IA reprennent */
.answer { position: relative; margin: -76px 0 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; box-shadow: 0 14px 40px -18px rgba(0, 0, 0, .35); }
.answer h2 { margin: 0 0 8px; font-size: 20px; }
.answer p { margin: 0; font-size: 17px; }
.warn { display: inline-flex; gap: 6px; align-items: center; margin-top: 12px; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; background: color-mix(in srgb, var(--sun2) 22%, transparent); color: color-mix(in srgb, var(--sun) 70%, var(--ink)); }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.act { flex: 1 1 160px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-weight: 600; text-decoration: none; cursor: pointer; font-family: inherit; font-size: 15px; color: var(--ink); transition: transform .15s; }
.act:hover { transform: translateY(-2px); }
.act.main { background: var(--tc); border-color: transparent; color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--tc) 35%, transparent); }

/* Frise des étapes */
.tl { list-style: none; display: flex; margin: 0; padding: 18px 8px 14px; background: color-mix(in srgb, var(--tc) 8%, var(--card)); border-radius: 16px; }
.tl li { flex: 1; position: relative; padding-top: 26px; text-align: center; font-size: 13px; color: var(--muted); }
.tl li b { display: block; color: var(--ink); font-size: 15px; }
.tl li::before { content: ""; position: absolute; top: 4px; left: 50%; width: 14px; height: 14px; margin-left: -9px; border-radius: 50%; background: var(--card); border: 2px solid color-mix(in srgb, var(--tc) 45%, transparent); z-index: 1; }
.tl li::after { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 3px; background: color-mix(in srgb, var(--tc) 25%, transparent); }
.tl li:first-child::after { display: none; }
.tl li.next::before { border-color: var(--tc); animation: tlpulse 1.8s infinite; }
@keyframes tlpulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tc) 50%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } }

/* Tableaux */
table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--soft); }
td.k { width: 34%; color: var(--muted); font-weight: 500; }
td .fine, .fine { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tw { overflow-x: auto; max-width: 100%; border-radius: 14px; }
@media (max-width: 480px) { .tw th, .tw td { padding: 9px 8px; } .tw th { letter-spacing: .02em; } }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 58px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--tc); color: #fff; font-weight: 800; display: grid; place-items: center; }
.steps b { display: block; }
.know { background: color-mix(in srgb, var(--sun2) 14%, var(--card)); border: 1px solid color-mix(in srgb, var(--sun2) 40%, var(--line)); border-radius: 14px; padding: 14px 16px; margin-top: 12px; }

/* Rappel */
.remind { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; margin-top: 44px; padding: 22px 24px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #1d4b4a, #14302e); }
.remind h2 { margin: 0 0 4px; font-size: 22px; }
.remind p { margin: 0; color: rgba(255, 255, 255, .8); }
.remind .act { background: var(--sun2); color: #22302a; border: 0; }

details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; margin-bottom: 8px; }
summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--tc); }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 14px; }

.rel { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.rel a { display: block; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; font-weight: 600; transition: transform .15s; }
.rel a:hover { transform: translateY(-2px); }
.rel a small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }

.src { margin-top: 44px; padding: 18px 20px; border: 1px dashed var(--line); border-radius: 14px; font-size: 14px; color: var(--muted); }
.src b { color: var(--ink); }
footer { margin-top: 40px; padding: 26px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
footer nav a { margin-right: 14px; }
.lang a { margin-left: 10px; } .lang a[aria-current] { font-weight: 700; color: var(--ink); }

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; padding-bottom: 100px; }
  .bib { margin: 0 auto; transform: rotate(2deg); }
  .tl { flex-direction: column; gap: 14px; padding: 16px 18px; }
  .tl li { text-align: left; padding: 0 0 0 30px; }
  .tl li::before { top: 4px; left: 0; margin: 0; }
  .tl li::after { top: 18px; bottom: -18px; left: 6px; width: 3px; height: auto; }
  .tl li:first-child::after { display: block; }
  .tl li:last-child::after { display: none; }
  .remind { grid-template-columns: 1fr; }
  td.k { width: 40%; }
}
@media (prefers-reduced-motion: reduce) { .tl li.next::before { animation: none; } }

/* Étapes déjà passées : point plein et trait coloré jusqu'à l'étape en cours */
.tl li.done::before { background: var(--tc); border-color: var(--tc); }
.tl li.done::after, .tl li.next::after { background: var(--tc); }
@media (max-width: 720px) { .tl li.next::after { background: color-mix(in srgb, var(--tc) 25%, transparent); } }
.bib.open b { font-size: 46px; }
.maj { margin-top: 10px; font-size: 12.5px; color: rgba(255, 255, 255, .78); }
.calc { margin-top: 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.calc h2 { margin-top: 0; }
.calc label { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-weight: 600; }
.calc input { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); }
.calc #calc-out { margin-top: 10px; font-size: 15px; }
.bib.long b { font-size: 36px; margin: 10px 0 6px; }

/* Pages de liste (« Ce qui ouvre en novembre ») */
.mois { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin-top: 16px; }
.mois a { display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border-radius: 10px; font-size: 12.5px; text-decoration: none; color: var(--muted); background: var(--soft); }
.mois a b { font-size: 15px; color: var(--ink); }
.mois a[aria-current] { background: var(--tc); color: #fff; } .mois a[aria-current] b { color: #fff; }
.filtres { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.filtres button { font: 600 14px Inter, sans-serif; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.filtres button b { color: var(--muted); font-weight: 600; margin-left: 3px; }
.filtres button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); } .filtres button.on b { color: var(--paper); opacity: .7; }
h3.an { font-size: 15px; color: var(--muted); margin: 18px 0 8px; }
.liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ol { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 16px 12px 12px; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--tc); border-radius: 14px; }
.ol[hidden] { display: none; }
.ol .d { text-align: center; line-height: 1.1; background: color-mix(in srgb, var(--tc) 10%, var(--card)); border-radius: 10px; padding: 7px 0; }
.ol .d b { display: block; font: 800 24px/1 Inter, sans-serif; color: var(--tc); }
.ol .d span { display: block; font-size: 12.5px; font-weight: 700; }
.ol .d small { display: block; font-size: 11.5px; color: var(--muted); }
.ol .m a { font-weight: 700; font-size: 16.5px; text-decoration: none; color: var(--ink); }
.ol .m a:hover { text-decoration: underline; }
.ol .m span { display: block; font-size: 14.5px; }
.ol .m small { display: block; font-size: 13px; color: var(--muted); }
.ol .s { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.st { font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; background: var(--soft); color: var(--muted); }
.st.soon { background: var(--soft); color: var(--ink); }
.leg-t { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 14px; font-size: 13px; color: var(--muted); }
.leg-t span { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.leg-t i { width: 12px; height: 12px; border-radius: 3px; }
.st.open { background: #2f7d55; color: #fff; }
.est { font-size: 11.5px; font-weight: 600; color: var(--muted); border: 1px dashed var(--line); padding: 1px 8px; border-radius: 999px; }
.dark .ol .d b { color: color-mix(in srgb, var(--tc) 55%, #fff); }
@media (max-width: 720px) {
  .mois { grid-template-columns: repeat(6, 1fr); }
  .ol { grid-template-columns: 54px 1fr; gap: 12px; }
  .ol .s { grid-column: 2; flex-direction: row; justify-content: flex-start; }
}
.freres { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.freres a { padding: 5px 11px; border-radius: 999px; font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--ink); background: var(--soft); }
.freres a b { color: var(--muted); font-weight: 600; margin-left: 2px; }
.freres a[aria-current] { background: var(--tc); color: #fff; } .freres a[aria-current] b { color: #fff; opacity: .8; }
.filtres-haut { margin-top: 26px; }
.tab-x { overflow-x: auto; }
.cmp td:first-child { min-width: 130px; }
.ty { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; }
.ty i { width: 12px; height: 12px; border-radius: 3px; background: var(--tc); }
.facon { border-left: 5px solid var(--tc); padding: 2px 0 2px 20px; margin-top: 36px; }
.facon h2 { margin-top: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.facon .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--tc); color: #fff; font: 800 17px/1 Inter, sans-serif; align-self: center; }
.facon h3 { font-size: 15px; margin: 16px 0 6px; }
.ex { margin: 0; padding-left: 20px; }
.ex li { margin-bottom: 6px; }
.nx { font-size: 15px; color: var(--muted); }
.dark .ty, .dark .ex a { color: var(--ink); }
.kv th { text-align: left; font-weight: 600; color: var(--muted); width: 38%; vertical-align: top; }
main h3 { font-size: 16px; margin: 22px 0 8px; } main h3 small { font-weight: 500; color: var(--muted); font-size: 13px; }
h3.cq { scroll-margin-top: 16px; margin-top: 18px; }
h3.cq + p { margin-top: 0; }
.et { margin: 0; padding-left: 22px; } .et li { margin-bottom: 8px; } .et li b { margin-right: 4px; }
.bon { background: var(--soft); border-radius: 12px; padding: 12px 16px; margin-top: 16px; }
.averif { border: 2px dashed var(--line); border-radius: 14px; padding: 14px 18px; margin-top: 32px; }
.averif ul { margin: 8px 0 0; padding-left: 20px; } .averif li { margin-bottom: 6px; } .averif a { white-space: nowrap; }
td .fine { display: block; font-size: 12.5px; color: var(--muted); }

/* Formulaire de contact */
.form { display: grid; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; margin-top: 12px; }
.form label, .form legend { font-weight: 600; font-size: 15px; }
.form .opt { font-weight: 500; color: var(--muted); font-size: 13px; }
.form input[type=text], .form input[type=email], .form textarea { display: block; width: 100%; box-sizing: border-box; margin-top: 6px; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--tc); outline-offset: 1px; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form button:disabled { opacity: .6; cursor: wait; }
.sujets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sujets label { font-weight: 500; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); cursor: pointer; }
.sujets input { accent-color: var(--tc); margin: 0; }
.sujets label:has(input:checked) { border-color: var(--tc); background: color-mix(in srgb, var(--tc) 12%, var(--card)); }
.pot { position: absolute; left: -9999px; }
.form .fine { margin: 0; }
.merci { display: none; }
.form.envoye > *:not(.merci) { display: none; } .form.envoye .merci { display: block; }

/* Menu du haut, le même que sur l'accueil */
.liens { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.liens a { color: #fff; text-decoration: none; font-size: 15px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.12); }
.liens a:hover { background: rgba(255,255,255,.24); }
.liens a { display: inline-flex; align-items: center; gap: 7px; } .liens svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } .liens a[aria-current] { background: rgba(255,255,255,.26); }
.liens a { background: linear-gradient(180deg, rgba(255,255,255,.26) 0%, rgba(255,255,255,.12) 100%); color: #fff; border-radius: 14px; border: 1px solid rgba(255,255,255,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -2px 4px rgba(0,0,0,.12), 0 3px 0 rgba(0,0,0,.22), 0 6px 12px -6px rgba(0,0,0,.4); transition: transform .12s, box-shadow .12s, background .12s; }
.liens a:hover { background: linear-gradient(180deg, rgba(255,255,255,.36) 0%, rgba(255,255,255,.18) 100%); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 4px rgba(0,0,0,.12), 0 4px 0 rgba(0,0,0,.22), 0 8px 14px -6px rgba(0,0,0,.45); }
.liens a:active { transform: translateY(2px); box-shadow: inset 0 2px 4px rgba(0,0,0,.2), 0 1px 0 rgba(0,0,0,.22); }
.liens a[aria-current] { background: linear-gradient(180deg, rgba(255,255,255,.42) 0%, rgba(255,255,255,.26) 100%); }
/* Page « Tous les guides » */
.gg h2 { margin: 34px 0 12px; }
.gl { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.gd { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--tc); color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.gd:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -16px rgba(0,0,0,.35); }
.gd b { font: 700 19px/1.25 Fraunces, serif; }
.gd span { font-size: 15px; color: var(--muted); line-height: 1.45; }
.gd i { font-style: normal; font-weight: 600; font-size: 14px; color: var(--tc); margin-top: auto; padding-top: 4px; }
.exs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.xp { padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.xp h3 { font: 700 12px/1.2 Inter, sans-serif; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin: 0 0 10px; }
.xp p, .xp .mg { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.xp p.ml { font-size: 13px; color: var(--muted); margin: 8px 0 6px; display: block; }
.xp a { font-size: 14px; color: var(--ink); text-decoration: none; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); }
.xp a:hover { border-color: var(--tc); color: var(--tc); }
.tout { display: inline-block; margin: 26px 0 8px; font-weight: 600; color: var(--ink); }
@media (max-width: 760px) { .top .nav { flex-wrap: wrap; } .top .prefs { margin-left: auto; } .liens { order: 3; width: 100%; margin: 0; } .liens a { font-size: 14px; padding: 6px 12px; } }

/* Rappel par l'agenda : petit menu Google Agenda ou fichier .ics */
.cal { position: relative; }
.calm { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; display: flex; flex-direction: column; min-width: 220px; padding: 6px; border-radius: 14px; background: var(--card, #fffaf2); box-shadow: 0 14px 34px rgba(0,0,0,.3); }
.calm[hidden] { display: none; }
.calm a { padding: 10px 12px; border-radius: 9px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.calm a:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
@media (max-width: 720px) { .calm { position: static; margin-top: 8px; } }

/* Logo sur fond orange (loteries, pages de liste) : encadré et « and » dans le vert foncé de l'accueil */
[style*="#c2410c"] .top .logo stop:first-child { stop-color: #1d4b4a; }
[style*="#c2410c"] .top .logo stop:last-child { stop-color: #0e2a2c; }
[style*="#c2410c"] .top .logo rect[fill="#ff8f1f"] { fill: #fff; }
[style*="#c2410c"] .top .logo path { fill: #1d4b4a; }
[style*="#c2410c"] .top .logo em { color: #14302e; }
[style*="#c2410c"] .top .logo .fd { fill: #fff; }

/* Icônes plates au trait (remplacent les emoji) */
.ic { width: 1.05em; height: 1.05em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.17em; margin-right: .38em; }
.chips .ico { display: inline-flex; align-items: center; }
.act .ic { margin-right: 0; width: 1.1em; height: 1.1em; }
.lang .ic { margin-right: .1em; }
.pl .ic { width: 1.15em; height: 1.15em; }
.pl .fl { width: 1.4em; height: .95em; object-fit: cover; border-radius: 2px; margin-left: .45em; vertical-align: -.1em; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.pl .fl + .fl { margin-left: .25em; }
.gdl a { border-left: 4px solid var(--tc); }
.gdl .ic { width: 1.1em; height: 1.1em; }

/* Le parcours : variantes du tracé et profil d'altitude (OpenStreetMap) */
.pc { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pv { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 10px; min-width: 0; }
.pv h3 { margin: 0 0 6px; font-size: 16px; }
.pv .pi { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 8px; font-size: 14px; }
.pv .pn { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.pv .pn svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pv .pt { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 4px; font-size: 12.5px; color: var(--muted); }
.pv .pt .pval b { color: var(--ink, inherit); }
.pv .pt > span { white-space: nowrap; } .pv .pt > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; } .pv .pt { height: 24px; align-items: center; } .pv .pt b { line-height: 1; }
.pv .pgr { display: grid; grid-template-columns: auto 1fr; gap: 5px; }
.pv .py { display: flex; flex-direction: column; justify-content: space-between; height: 80px; font-size: 11px; color: var(--muted); text-align: right; white-space: nowrap; }
.pv .py span { line-height: 1; }
.pv .pf { display: block; width: 100%; height: 80px; touch-action: pan-y; cursor: crosshair; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pv .pf g line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pv .pf .pcur { stroke: var(--muted); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pv .px { position: relative; height: 17px; font-size: 11px; color: var(--muted); }
.pv .px span { position: absolute; top: 3px; transform: translateX(-50%); white-space: nowrap; }
.pv .pf polygon { fill: var(--soon); opacity: .26; }
.pv .pf polyline { fill: none; stroke: var(--soon); stroke-width: 2; stroke-linejoin: round; }
.pv .fine { margin: 6px 0 0; }
/* Encadré « Nouveau » : dates mises à jour par le robot des actualités, affiché 30 jours */
.neuf { display: flex; gap: 12px; margin: 4px 0 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--open) 45%, transparent); background: color-mix(in srgb, var(--open) 10%, var(--card)); }
.neuf .pt { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--open); color: #fff; }
.neuf .pt svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.answer .neuf p { margin: 0; font-size: 15px; }
.neuf .t { font-weight: 700; color: var(--open); }
.neuf ul { margin: 6px 0 0; padding: 0; list-style: none; font-size: 15px; }
.neuf li { margin: 2px 0; }
.neuf li b, .neuf s { white-space: nowrap; }
.neuf s { color: var(--muted); }
.answer .neuf .f { margin-top: 6px; font-size: 13px; color: var(--muted); }
.neuf .f a { color: inherit; }
/* Bas de fiche : prochaines ouvertures de la même famille (.prochains) et globe en vignette (.glc) */
.prochains { margin-top: 28px; }
.prochains h2 { margin-bottom: 4px; }
.prochains .sous { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.pc { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.pc a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); transition: transform .15s; }
.pc a:hover { transform: translateY(-2px); }
/* Tracés (.pv) : la règle .pc ci-dessus laisse des colonnes vides (auto-fill), ici un tracé seul prend toute la largeur */
.pc:has(> .pv) { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.pc b { font-size: 16px; }
.pc .q { color: var(--muted); font-size: 13px; }
.pc .d { margin-top: 6px; font-weight: 600; font-size: 15px; }
.pc .j { display: inline-block; margin-left: 4px; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; background: color-mix(in srgb, var(--soon) 14%, transparent); color: var(--soon); }
.pc .j[hidden] { display: none; }
.pc .f { font-size: 12px; color: var(--muted); }
.prochains .tout { display: inline-block; margin-top: 10px; font-weight: 600; }
.glc { display: flex; align-items: center; gap: 18px; margin-top: 28px; padding: 16px 20px; background: #0f1d22; color: #e9efe9; border: 1px solid #2a3b3b; border-radius: 18px; text-decoration: none; transition: transform .15s; }
.glc:hover { transform: translateY(-2px); }
.gl-svg { flex: 0 0 120px; width: 120px; height: 120px; }
.glc b { display: block; font-family: Fraunces, Georgia, serif; font-size: 20px; line-height: 1.2; }
.glc .gp { display: block; margin: 6px 0 10px; font-size: 14px; color: #b9c8c4; }
.glc .go { display: inline-block; padding: 7px 14px; border-radius: 99px; background: #ff5a1f; color: #fff; font-weight: 600; font-size: 14px; }
.gl-pulse { transform-box: fill-box; transform-origin: center; animation: glp 2s ease-out infinite; }
@keyframes glp { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .gl-pulse { animation: none; } }
@media (max-width: 480px) {
  .pc { gap: 8px; } .pc a { padding: 11px 14px; } .pc .d { margin-top: 2px; }
  .glc { gap: 14px; padding: 14px; } .gl-svg { flex-basis: 92px; width: 92px; height: 92px; } .glc b { font-size: 17px; }
}

/* ===== Fiches sur portable : haut compact, frise en couleurs, icônes du tableau, prix par paliers ===== */
@media (max-width: 760px) {
  body:has(#bib) .top .nav { flex-wrap: nowrap; padding: 12px 0 6px; }
  body:has(#bib) .logo { font-size: 21px; } body:has(#bib) .logo svg { width: 34px; height: 34px; }
  body:has(#bib) .logo { white-space: nowrap; }
  body:has(#bib) .prefs .theme span { padding: 3px 7px; font-size: 12px; }
  body:has(#unit) .logo { font-size: 18px; gap: 7px; } body:has(#unit) .logo svg { width: 30px; height: 30px; }
  body:has(#bib) .liens { display: none; }   /* les 3 boutons restent sur ordinateur */
  body:has(#bib) .hero h1 { margin-top: 6px; }
}
/* Frise : un rond plein par étape, aujourd'hui, compte à rebours à droite */
.tl2 { flex-direction: column; gap: 0; padding: 14px 16px; }
.tl2 li { --c1: var(--sun2); --c2: var(--sun); display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; text-align: left; padding: 0 0 18px; font-size: 13.5px; }
.tl2 li[hidden], .tl2 .jm[hidden] { display: none; }
.tl2 .jm .jcourt { display: none; }
@media (max-width: 720px) { .tl2 .jm .jlong { display: none; } .tl2 .jm .jcourt { display: inline; } }
.tl2 li:last-child { padding-bottom: 0; }
.tl2 li::before { display: none; }
.tl2 li::after { display: block !important; content: ""; position: absolute; left: 17px; top: 38px; bottom: 0; width: 3px; height: auto; background: linear-gradient(var(--c2), color-mix(in srgb, var(--c2) 30%, transparent)) !important; opacity: .7; }
.tl2 li:last-child::after { display: none !important; }
.tl2 li.auj::after { background: none !important; border-left: 3px dotted #f0a91a; width: 0; opacity: 1; }
.tl2 li.auj { --c1: #ffd34d; --c2: #f0a91a; }
.tl2 li.c2 { --c1: #d17bff; --c2: #6247e6; }
/* plusieurs étapes orange qui se suivent (phases d'inscription) : ambre, orange, puis orange rouge pour les distinguer */
.tl2 li.c1:has(+ li.c1) { --c1: #ffd04a; --c2: #ff9a1f; }
.tl2 li.c1 + li.c1 { --c1: #ffb020; --c2: #ff5a1f; }
.tl2 li.c1 + li.c1 + li.c1 { --c1: #ff8a3d; --c2: #e0361b; }
.tl2 li.c3 { --c1: #a6e05a; --c2: #1f9a5e; }
.tl2 .pi { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 1; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 3px 10px -3px var(--c2); }
.tl2 li.auj .pi { color: #5a3a00; }
.tl2 li.next .pi { animation: tlpulse2 1.8s infinite; }
.tl2 li.done .pi { opacity: .55; }
@keyframes tlpulse2 { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c2) 55%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } }
.tl2 .pi svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tl2 .tx b { display: block; font-size: 15.5px; color: var(--ink); }
.tl2 .tx span { color: var(--muted); }
/* sous une étape : heure d'ouverture, heure de départ (en gras), puis source et heure chez le lecteur (en gris) */
.tl2 .tx small.pr { display: block; margin-top: 3px; font-size: 13px; color: var(--ink); font-weight: 600; }
.tl2 .tx small.pr + small.pr { font-weight: 400; color: var(--muted); }
.tl2 .tx small.pr:empty { display: none; }
.tl2 .tx small.pr.n { font-weight: 400; color: var(--muted); }
.etapes > p.fine { margin: 10px 4px 0; }
.tl2 .jm { font: italic 800 18px/1 Inter, sans-serif; padding: 7px 11px; min-width: 62px; text-align: center; border-radius: 999px; color: #fff; white-space: nowrap; }
.tl2 .j1 { background: linear-gradient(90deg, var(--c1), var(--c2)); box-shadow: 0 3px 10px -3px color-mix(in srgb, var(--c2) 60%, transparent); }
.tl2 .j2 { background: linear-gradient(90deg, #d17bff, #6247e6); box-shadow: 0 3px 10px -3px rgba(109, 79, 224, .55); }
.tl2 .j3 { background: linear-gradient(90deg, #a6e05a, #1f9a5e); box-shadow: 0 3px 10px -3px rgba(35, 144, 90, .55); }
@media (prefers-reduced-motion: reduce) { .tl2 li.next .pi { animation: none; } }
/* Sur portable, la frise passe au-dessus de « En bref » à l'écran seulement : l'ordre du code reste le même pour Google */
@media (max-width: 720px) {
  main.wrap:has(> .etapes) { display: flex; flex-direction: column; }
  main.wrap:has(> .etapes) > * { width: 100%; }
  main.wrap > .etapes { order: -1; margin-top: -76px; position: relative; z-index: 2; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 6px 8px; box-shadow: 0 14px 40px -18px rgba(0, 0, 0, .35); }
  main.wrap > .etapes h2 { margin: 0 0 4px; padding: 0 14px; font-size: 24px; }
  main.wrap > .etapes .tl2 { background: none; padding: 10px 12px; }
  main.wrap:has(> .etapes) > .answer { margin-top: 28px; }
}
/* Icônes du tableau, mêmes ronds pleins que la frise ; lignes empilées sur portable */
td.k { position: relative; padding-left: 52px !important; }
.ki { --c1: #5f8f8a; --c2: #2f5d58; position: absolute; left: 12px; top: 10px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 3px 8px -3px var(--c2); }
.ki.c1 { --c1: var(--sun2); --c2: var(--sun); }
.ki.c2 { --c1: #d17bff; --c2: #6247e6; }
.ki.c3 { --c1: #a6e05a; --c2: #1f9a5e; }
.ki.c4 { --c1: #5ec8f2; --c2: #1f6fb8; }
td b.pc { font: italic 800 20px/1 Inter, sans-serif; }
.av { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: color-mix(in srgb, var(--sun) 16%, transparent); color: var(--sun); margin-left: 4px; }
/* date de course confirmée par l'organisateur : même forme que .av, en vert */
.ok { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: color-mix(in srgb, var(--open) 16%, transparent); color: var(--open); margin-left: 4px; white-space: nowrap; }
.ki svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 720px) {
  table:has(td.k), table:has(td.k) tbody, table:has(td.k) tr { display: block; }
  table:has(td.k) tr { position: relative; padding: 13px 16px 13px 60px; border-bottom: 1px solid var(--line); }
  table:has(td.k) tr:last-child { border-bottom: 0; }
  table:has(td.k) td { display: block; width: auto; border: 0; padding: 0 !important; }
  table:has(td.k) td.k { position: static; font-size: 13px; line-height: 1.3; margin-bottom: 3px; }
  table:has(td.k) .ki { left: 16px; top: 14px; }
}
.paliers { list-style: none; margin: 8px 0 4px; padding: 0; }
.paliers li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-top: 1px dashed var(--line); }
.paliers li span { color: var(--muted); font-size: 14px; }
.paliers li b { white-space: nowrap; }
/* Avertissement sur deux lignes */
.warn { align-items: flex-start; border-radius: 14px; padding: 8px 12px; line-height: 1.4; }
.warn .ic { margin-top: 2px; flex: none; }

/* Tableau des dates des guides (.tc) : drapeau, J-X dans la couleur de la prochaine étape, cartes sur téléphone */
.tc .jx { --c1: var(--sun2); --c2: var(--sun); display: inline-flex; flex-direction: column; align-items: center; padding: 7px 13px; border-radius: 14px; color: #fff; line-height: 1.15; white-space: nowrap; background: linear-gradient(90deg, var(--c1), var(--c2)); box-shadow: 0 3px 10px -3px var(--c2); }
.tc .jx.j2 { --c1: #d17bff; --c2: #6247e6; }
.tc .jx.j3 { --c1: #a6e05a; --c2: #1f9a5e; }
.tc .jx.nd { --c1: #9fb3ae; --c2: #5f7772; }
.tc .jx b { font: italic 800 19px/1.1 Inter, sans-serif; padding-right: .06em; }
.tc .jx.nd b { font-size: 14px; font-style: normal; }
.tc .jx small { font-size: 11px; font-weight: 600; opacity: .95; }
.tc td.n a { font-weight: 700; }
.tc .fl { width: 24px; height: 16px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.tc .th { display: inline-flex; align-items: center; gap: 8px; }
.tc .ki { position: static; width: 26px; height: 26px; flex: none; }
.tc .ki svg { width: 15px; height: 15px; }
.tc td.d .ki, .tc td.d .lb { display: none; }
@media (max-width: 720px) {
  .tab-x:has(.tc) { overflow: visible; }
  .tc, .tc tbody { display: block; background: none; border: 0; }
  .tc thead { display: none; }
  .tc tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; }
  .tc td { display: block; padding: 0; border: 0; }
  .tc td.n { font-size: 17px; line-height: 1.3; }
  .tc td.j { grid-row: 1; grid-column: 2; }
  .tc td.d { grid-column: 1 / -1; position: relative; padding: 10px 0 0 42px; margin-top: 6px; border-top: 1px solid var(--line); font-size: 15px; min-height: 40px; }
  .tc td.d .ki { display: grid; position: absolute; left: 0; top: 12px; width: 30px; height: 30px; }
  .tc td.d .ki svg { width: 17px; height: 17px; }
  .tc td.d .lb { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
}
/* Guide des chances au tirage : une carte par course */
.cp { display: grid; gap: 12px; margin: 14px 0; }
.cp article { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.cp header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cp header a { font-weight: 700; color: var(--ink); text-decoration: none; flex: 1; }
.cp .fl { border-radius: 3px; }
.cp .tx { font: italic 800 20px/1 Inter, sans-serif; color: #fff; padding: 7px 12px; border-radius: 12px; background: linear-gradient(90deg, #5ec8f2, #1f6fb8); box-shadow: 0 3px 10px -3px #1f6fb8; white-space: nowrap; }
.cp .tx.nd { background: linear-gradient(90deg, #9fb3ae, #5f7772); box-shadow: none; font-size: 15px; font-style: normal; }
.cp .bar { height: 10px; border-radius: 99px; background: var(--soft); margin: 12px 0 10px; overflow: hidden; }
.cp .bar i { display: block; height: 100%; min-width: 6px; border-radius: 99px; background: linear-gradient(90deg, #5ec8f2, #1f6fb8); }
.cp dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 0; font-size: 13.5px; }
.cp dt { color: var(--muted); font-size: 12px; }
.cp dd { margin: 0; font-weight: 600; }
.cp .so { grid-column: 1 / -1; font-size: 12px; color: var(--muted); font-weight: 400; }
@media (min-width: 721px) { .cp dl { grid-template-columns: repeat(3, 1fr); } }
.cp .tx.es { background: linear-gradient(90deg, #8fd3ee, #4f8fc4); box-shadow: none; }
.cp .tx small { font: 600 11px/1 Inter, sans-serif; margin-left: 6px; opacity: .9; }
.cp .bar.es i { background: repeating-linear-gradient(135deg, #5ec8f2 0 6px, #9fdcf5 6px 12px); }

/* Accès sans tirage : temps qualificatifs, calculateur, autres voies */
.acces .rep { background: var(--card); border-left: 4px solid var(--sun); border-radius: 10px; padding: 12px 16px; margin: 8px 0 12px; }
.acces .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.acces .tag { font-size: 12.5px; font-weight: 600; border-radius: 20px; padding: 3px 11px; }
.acces .tag.g { background: #dff2e7; color: #1d6b43; } .acces .tag.r { background: #fde7d9; color: #9a3d10; } .acces .tag.o { background: #e3e8fb; color: #2b3d8f; }
:root.dark .acces .tag.g { background: #1d3b2b; color: #9fdcb8; } :root.dark .acces .tag.r { background: #45281a; color: #f6b48e; } :root.dark .acces .tag.o { background: #262d4d; color: #b4c1f5; }
.qcalc { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-end; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin: 0 0 14px; }
.qcalc label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.qcalc select, .qcalc input { font: inherit; font-size: 15px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); }
.qcalc .qv { flex-basis: 100%; margin: 4px 0 0; font-weight: 600; }
.qcalc .qv.ok { color: var(--open); } .qcalc .qv.no { color: var(--soon); }
/* Temps qualificatifs : titres sur plusieurs lignes, colonnes de temps de même largeur et centrées sous leur titre, âge sur une ligne */
.qt th { white-space: normal; vertical-align: bottom; line-height: 1.35; }
.qt td:first-child { white-space: nowrap; width: 1%; }
.qt th.num, .qt td.num { text-align: center; width: 22%; font-variant-numeric: tabular-nums; }
/* Sur téléphone : tout tient dans la largeur, sans défilement de côté */
@media (max-width: 480px) {
  .qt th, .qt td { padding: 9px 4px; } .qt th { font-size: 10px; letter-spacing: 0; } .qt td { font-size: 13.5px; }
  .qt th.num, .qt td.num { width: auto; }
  .qt td:first-child { white-space: normal; padding-left: 10px; } .qt th:first-child { padding-left: 10px; }
}
.qt tr.moi td { background: color-mix(in srgb, var(--sun2) 22%, transparent); font-weight: 600; }
.qv2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.qv2 > div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; font-size: 14.5px; }
.qv2 b { display: block; margin-bottom: 2px; }

/* Guide des temps qualificatifs : tient sans défilement sur grand écran (temps sur 2 lignes si besoin), colonne « Temps couru » lisible sur portable */
.qg td.num, .qg th { white-space: normal; }
.qg td.per { min-width: 7em; }
/* Une ligne sur 2 un peu plus claire (marche en clair et en sombre) */
.qg tbody tr:nth-child(even) td, .qt tr:nth-child(odd):not(:first-child):not(.moi) td { background: color-mix(in srgb, currentColor 6%, transparent); }
/* Phases d'inscription et grille des prix à icônes (tableau_phases, prix.grille) : cartes sur téléphone */
.rep { font-size: 17px; line-height: 1.5; margin: 0 0 14px; }
.ph, .pz { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ph th, .pz th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); background: none; }
.ph td, .pz td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 15px; background: none; }
.ph tr:last-child td, .pz tr:last-child td { border-bottom: 0; }
.ph .th, .pz .th { display: flex; align-items: center; gap: 10px; }
.ph .ki, .pz .ki { position: static; width: 32px; height: 32px; flex: none; }
.ph .th small { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ph .th b { font-size: 16px; }
.ph td.d1 { font-weight: 700; } .ph td.d2 { color: var(--muted); }
.ph .lb { display: none; }
.gq { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.gq.ok { background: color-mix(in srgb, var(--open) 18%, transparent); color: var(--open); }
.gq.no { background: var(--soft); color: var(--muted); }
.gq.mid { background: color-mix(in srgb, var(--soon) 18%, transparent); color: var(--soon); }
/* Pastille longue (EN, ES) : passe à la ligne sur téléphone au lieu de déborder */
@media (max-width: 480px) { .gq { white-space: normal; border-radius: 12px; line-height: 1.3; } }
.pz .tq { display: flex; flex-direction: column; }
.pz .tq small { color: var(--muted); font-size: 13.5px; }
.pz td.m { text-align: right; white-space: nowrap; font: italic 800 19px/1 Inter, sans-serif; color: var(--sun); }
.pz tr.sep td { background: var(--soft); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 14px; }
@media (max-width: 720px) {
  .ph, .ph tbody { display: block; background: none; border: 0; border-radius: 0; overflow: visible; }
  .ph thead { display: none; }
  /* carte de phase : tout sur le même bord gauche ; en-tête, pour qui, les 2 dates côte à côte, dossard garanti en pied */
  .ph tr { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "n n" "q q" "d1 d2" "g g";
           background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 12px; }
  .ph td { display: block; padding: 0; border: 0; min-width: 0; }
  .ph td.n { grid-area: n; padding-bottom: 10px; }
  .ph td:nth-child(2) { grid-area: q; padding-bottom: 12px; line-height: 1.45; }
  .ph td:nth-child(2) .lb { display: none; }
  .ph td.d1, .ph td.d2 { background: var(--soft); padding: 10px 12px; font-size: 15px; line-height: 1.3; }
  .ph td.d1 { grid-area: d1; border-radius: 12px 0 0 12px; }
  .ph td.d2 { grid-area: d2; border-radius: 0 12px 12px 0; border-left: 1px solid var(--line); }
  .ph td:nth-child(5) { grid-area: g; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; }
  .ph .lb { display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 3px; }
  .ph td:nth-child(5) .lb { margin: 0; }
  .pz thead { display: none; }
  .pz td { padding: 12px; }
}

/* Étapes d'un trek (GR20) : profil découpé, numéros d'étape dessous, tableau distance, D+, D-, point haut ; une carte par étape sur portable */
.ep { margin-top: 4px; }
.ep .pf { cursor: default; }
.ep .pf g line { stroke: var(--muted); stroke-dasharray: 2 2; }
.ep .epn span { font-size: 10.5px; }
/* profils : jaune orangé en bas, rouge orangé sur les sommets (dégradé degr() de construire.py) */
.pf .eh { stop-color: #d9381e; }
.pf .em { stop-color: var(--soon); }
.pf .eb { stop-color: #f2c14e; }
.et-wrap { margin: 12px 0 4px; }
.etab { font-size: 14px; }
.etab caption { caption-side: top; text-align: left; font-size: 12.5px; color: var(--muted); padding: 10px 12px 6px; }
.etab th { font-size: 12px; text-align: right; color: var(--muted); font-weight: 600; padding: 7px 8px; border-bottom: 1px solid var(--line); }
.etab th:nth-child(2) { text-align: left; }
.etab td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; vertical-align: top; }
.etab tr:last-child td { border-bottom: 0; }
.etab td.n { color: var(--muted); text-align: center; }
.etab td.de { text-align: left; white-space: normal; }
@media (max-width: 600px) {
  .etab caption { display: block; padding: 10px 10px 6px; }
  .etab thead { display: none; }
  .etab, .etab tbody { display: block; }
  .etab tr { display: grid; grid-template-columns: 26px 1fr 1fr 1fr 1fr; border-bottom: 1px solid var(--line); padding: 7px 4px; }
  .etab tr:last-child { border-bottom: 0; }
  .etab td { border: 0; padding: 2px 4px; font-size: 13px; text-align: left; }
  .etab td.n { grid-row: span 2; }
  .etab td.de { grid-column: 2 / 6; }
  .etab td:nth-child(4)::before { content: "↗ "; color: var(--muted); }
  .etab td:nth-child(5)::before { content: "↘ "; color: var(--muted); }
  .etab td:nth-child(6)::before { content: "▲ "; color: var(--muted); }
}

/* deux éditions côte à côte : la course complète et le prochain tirage */
.eds { display: grid; gap: 8px; margin-top: 14px; }
.eds p { margin: 0; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); font-size: 15px; line-height: 1.45; }
.eds b { display: block; }
.eds .ouv { border-color: color-mix(in srgb, var(--sun) 45%, var(--line)); background: color-mix(in srgb, var(--sun2) 14%, var(--card)); }
