/* Pages Activités (/activites/, service « activites ») : complète style.css (mêmes couleurs, police, coins de 3 px). */
:root { --n5: #2e8b57; --n4: #7cbf6a; --n3: #e9c84b; --n2: #ee9a4d; --n1: #d9534f; --n-vide: #e3e9f2; --nuit: rgba(1, 81, 129, .10); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --n5: #3a9d66; --n4: #79b866; --n3: #d6b745; --n2: #d98a45; --n1: #c9504c; --n-vide: #1b3347; --nuit: rgba(0, 0, 0, .28); } }
:root[data-theme="dark"] { --n5: #3a9d66; --n4: #79b866; --n3: #d6b745; --n2: #d98a45; --n1: #c9504c; --n-vide: #1b3347; --nuit: rgba(0, 0, 0, .28); }
.n5 { --n: var(--n5); } .n4 { --n: var(--n4); } .n3 { --n: var(--n3); } .n2 { --n: var(--n2); } .n1 { --n: var(--n1); }

.act h1 { font-size: 32px; line-height: 1.15; margin: 0; letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.act h1 .act-icone { width: 38px; height: 38px; }
.act h2 { font-size: 19px; margin: 0; }
.act-fil { font-size: 14px; color: var(--discret); }
.act-fil a { color: inherit; }
.act-icone { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: var(--marine); }
:root[data-theme="dark"] .act-icone { color: #7fd0ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .act-icone { color: #7fd0ff; } }
.act-etiquette { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--discret); margin: 0; }
.act-meteo { color: var(--discret); font-size: 13px; }

/* En-tête de page */
.act-tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.act-tete > div { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.act-chapo { margin: 0; color: var(--discret); font-size: 16px; }
.act-surtitre { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--marine); }
:root[data-theme="dark"] .act-surtitre { color: #7fd0ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .act-surtitre { color: #7fd0ff; } }
.act-surtitre img { border-radius: 50%; box-shadow: 0 0 0 2px var(--vif); }


/* Accueil */
.act-intro { display: flex; flex-direction: column; gap: 12px; }
.act-intro > p { margin: 0; max-width: 70ch; color: var(--discret); }
.act-cherche { display: flex; gap: 8px; flex-wrap: wrap; max-width: 560px; }
.act-cherche input { flex: 1; min-width: 200px; font: inherit; padding: 12px 14px; border: 1px solid var(--bord); border-radius: var(--rayon); background: var(--carte); color: var(--texte); }
.act-cherche button { font-weight: 600; padding: 12px 18px; border: 0; border-radius: var(--rayon); background: var(--marine); color: #fff; }
.act-villes { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.act-villes a { display: block; padding: 6px 10px; border: 1px solid var(--bord); border-radius: var(--rayon); background: var(--carte); color: var(--texte); text-decoration: none; }
.act-villes a:hover { border-color: var(--vif); }
.act-villes span { color: var(--discret); }
.act-rien { color: var(--discret); font-style: italic; margin: 0; }
.act-liste { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px 24px; }
.act-liste li { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.act-liste .act-icone { grid-row: span 2; width: 30px; height: 30px; }
.act-liste span { color: var(--discret); font-size: 13px; }

/* Page d'une ville : cartes */
.act-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; }
.act-carte { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px 18px; background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon);
  color: var(--texte); text-decoration: none; transition: border-color .15s, transform .15s; }
.act-carte:hover { border-color: var(--vif); transform: translateY(-2px); }
.act-carte-tete { display: flex; align-items: center; gap: 10px; }
.act-carte-tete h2 { flex: 1; }
.act-fleche { font-size: 24px; color: var(--discret); line-height: 1; }
.act-repere { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--rayon);
  background: color-mix(in srgb, var(--n, var(--n-vide)) 14%, var(--carte)); border-left: 5px solid var(--n, var(--bord)); }
.act-repere > div { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.act-repere b { font-size: 16px; }
.act-repere em, .act-autre em { font-style: normal; font-weight: 800; color: var(--n); font-size: 15px; white-space: nowrap; }
.act-repere .picto-45 { flex: none; }
.act-repere.vide b { font-weight: 500; font-size: 14px; color: var(--discret); }
.act-mini { display: flex; flex-direction: column; gap: 4px; }
.act-mini-frise { display: flex; gap: 1px; height: 18px; overflow: hidden; }
.act-mini-frise i { display: block; flex: 1 1 0; min-width: 0; height: 18px; background: var(--n, var(--n-vide)); border-radius: 1px; }
.act-mini-frise i.vide { background: var(--n-vide); }
.act-mini-frise i.hors { opacity: .35; }
.act-mini-frise i.nuit { filter: brightness(.7) saturate(.7); }
.act-mini-frise i.cren { box-shadow: inset 0 -3px 0 var(--marine), inset 0 3px 0 var(--marine); opacity: 1; }
.act-mini-heures { display: grid; grid-template-columns: repeat(4, 1fr); font-size: 10px; color: var(--discret); }
.act-semaine { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; }
.act-semaine li { height: 24px; border-radius: var(--rayon); background: var(--n, var(--n-vide)); display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff; text-transform: uppercase; }
.act-semaine li:not(.n5):not(.n1):not(.n2) { color: var(--texte); }

/* Page d'une activité : créneau repéré */
.act-heros { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; }
.act-heros:has(> :only-child) { grid-template-columns: 1fr; }
.act-heros-principal { position: relative; padding: 22px 24px; border-radius: var(--rayon); color: #fff;
  background: linear-gradient(135deg, var(--marine) 0%, #0170b0 100%); overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.act-heros-principal::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: url(/suricate-disque.svg) center / cover; opacity: .14; }
.act-heros-principal .act-etiquette { color: var(--bandeau-texte); }
.act-heros-principal small { font-size: 11px; border: 1px solid rgba(255,255,255,.4); border-radius: var(--rayon); padding: 1px 6px; margin-left: 6px; text-transform: none; letter-spacing: 0; }
.act-heros-quand { margin: 0; font-size: 30px; line-height: 1.15; font-weight: 500; letter-spacing: -.01em; }
.act-heros-quand b { font-weight: 800; }
.act-heros-meteo { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--bandeau-texte); }
.act-heros-temp { font-size: 34px; font-weight: 700; color: #fff; }
.act-mot { align-self: flex-start; font-style: normal; font-weight: 800; font-size: 18px; padding: 6px 14px; border-radius: var(--rayon); background: var(--n); color: #fff; }
.act-heros-principal.n3 .act-mot, .act-heros-principal.n4 .act-mot { color: var(--texte); }
.act-heros-principal.vide { background: var(--carte); color: var(--texte); border: 1px solid var(--bord); }
.act-heros-principal.vide .act-etiquette { color: var(--discret); }
.act-heros-principal.vide .act-heros-quand { font-size: 20px; }
.act-heros-autres { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); }
.act-autre { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-left: 4px solid var(--n); background: var(--fond); border-radius: var(--rayon); }
.act-autre > div { flex: 1; }
.act-autre small { display: block; font-size: 10px; font-weight: 500; color: var(--discret); text-align: right; }

/* Frises des 24 heures */
.act-jours { display: flex; flex-direction: column; gap: 12px; }
.act-jour { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 14px 16px 10px; }
.act-jour.hors-saison { opacity: .55; }
.act-jour-tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 8px; }
.act-jour h3 { margin: 0; font-size: 17px; }
.act-jour h3 small { font-weight: 500; color: var(--discret); font-size: 13px; margin-left: 4px; }
.act-badges { display: flex; gap: 4px; }
.act-badges span { font-size: 11px; color: var(--discret); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 0 6px; }
.act-jour-verdict { margin: 0 0 0 auto; font-size: 15px; color: var(--discret); }
.act-jour-verdict b { color: var(--texte); }
.act-jour-verdict em { font-style: normal; font-weight: 800; color: var(--n); margin-left: 4px; }
.act-frise-defile { overflow-x: auto; scrollbar-width: thin; }
.act-frise { display: grid; grid-template-columns: repeat(24, minmax(28px, 1fr)); min-width: 680px; }
.act-frise .h { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 1px; position: relative; }
.act-frise .h.nuit { background: var(--nuit); }
.act-frise .h.nuit:first-child, .act-frise .h:not(.nuit) + .h.nuit { border-top-left-radius: var(--rayon); border-bottom-left-radius: var(--rayon); }
.act-frise .pic { height: 30px; display: flex; align-items: center; }
.act-frise .pic .picto-45 { zoom: .66; }
.act-frise .t { font-size: 11px; font-weight: 600; color: var(--discret); height: 15px; }
.act-frise i { display: block; width: 100%; height: 24px; background: var(--n, var(--n-vide)); }
.act-frise .h:first-child i { border-radius: var(--rayon) 0 0 var(--rayon); }
.act-frise .h:last-child i { border-radius: 0 var(--rayon) var(--rayon) 0; }
.act-frise .h.vide i { background: var(--n-vide); }
.act-frise .h.hors i { opacity: .3; }
.act-frise .h.cren i { box-shadow: inset 0 3px 0 var(--marine), inset 0 -3px 0 var(--marine); opacity: 1; background-image: none; }
.act-frise .h.cren.deb i { box-shadow: inset 3px 3px 0 var(--marine), inset 0 -3px 0 var(--marine); border-radius: var(--rayon) 0 0 var(--rayon); }
.act-frise .h.cren.fin i { box-shadow: inset -3px 3px 0 var(--marine), inset 0 -3px 0 var(--marine); border-radius: 0 var(--rayon) var(--rayon) 0; }
.act-frise .h.cren.deb.fin i { box-shadow: inset 0 0 0 3px var(--marine); border-radius: var(--rayon); }
:root[data-theme="dark"] .act-frise .h.cren i { --marine: #7fd0ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .act-frise .h.cren i, :root:not([data-theme="light"]) .act-mini-frise i.cren { --marine: #7fd0ff; } }
.act-frise .hh { font-size: 11px; color: var(--discret); height: 16px; }
.act-frise .h.cren .t { color: var(--texte); }

.act-legende { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--discret); margin: 0; }
.act-legende span::before { content: ""; display: inline-block; width: 14px; height: 12px; border-radius: 2px; background: var(--n); margin-right: 6px; vertical-align: -1px; }
.act-legende .l-cren::before { background: transparent; box-shadow: inset 0 0 0 2px var(--marine); }
.act-legende .l-nuit::before { background: var(--nuit); box-shadow: inset 0 0 0 1px var(--bord); }
.act-legende .l-hors::before { background: var(--n4); opacity: .3; }
.act-autres { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.act-autres a { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--bord); border-radius: var(--rayon); color: var(--bouton-texte); text-decoration: none; font-weight: 600; }
.act-autres a:hover { border-color: var(--vif); }
.act-autres .act-icone { width: 20px; height: 20px; }

@media (max-width: 760px) {
  .act h1 { font-size: 25px; }
  .act-heros { grid-template-columns: 1fr; }
  .act-heros-quand { font-size: 24px; }
  .act-jour-verdict { margin-left: 0; width: 100%; }
}

/* Vélotaf */
.act-vt-heros { gap: 12px; }
.act-vt-phrase { margin: 0; font-size: 17px; color: #fff; max-width: 60ch; }
.act-vt-heros .act-heros-quand b { display: inline-block; padding: 4px 14px; border-radius: var(--rayon); background: var(--n); color: #fff; }
.act-vt-heros.n3 .act-heros-quand b { color: var(--texte); }
.act-vt-trajets { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; position: relative; z-index: 1; }
.act-vt-trajet { background: rgba(255,255,255,.1); border-left: 5px solid var(--n); border-radius: var(--rayon); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.act-vt-temp { font-size: 26px; font-weight: 700; color: #fff; }
.act-vt-temp small { font-size: 12px; font-weight: 500; color: var(--bandeau-texte); }
.act-tenue { margin: 0; padding-left: 18px; font-size: 14px; color: #fff; }
.act-vt-pastille { display: inline-block; padding: 2px 10px; border-radius: var(--rayon); background: var(--n); color: #fff !important; font-style: normal; font-weight: 700; }
.act-jour-verdict.n3 .act-vt-pastille { color: var(--texte) !important; }
.act-vt-phrase-jour { margin: 0 0 8px; color: var(--texte); }
.act-vt-ligne { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; margin-bottom: 8px; }
.act-vt-mini { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-left: 4px solid var(--n); background: var(--fond); border-radius: var(--rayon); font-size: 14px; }
.act-vt-temp small { border: 0 !important; padding: 0 !important; margin-left: 2px !important; }

/* Personnalisation et installation */
.act-bouton { font: inherit; font-weight: 600; padding: 10px 16px; border: 1px solid var(--marine); border-radius: var(--rayon); background: var(--marine); color: #fff; cursor: pointer; }
.act-bouton.secondaire { background: var(--carte); color: var(--bouton-texte); border-color: var(--bord); }
.act-bouton:hover { border-color: var(--vif); }

/* Recherche de ville (propositions comme dans la barre de navigation) */
.act-cherche-champ { position: relative; flex: 1; min-width: 200px; display: flex; }
.act-cherche-champ input { width: 100%; }
.act-cherche-champ .recherche-liste { left: 0; right: auto; top: calc(100% + 4px); width: 100%; }

/* Mentions légales (brouillon) */
.mentions { max-width: 900px; }
.mentions h1 { font-size: 28px; margin: 0; }
.mentions h2 { font-size: 18px; margin: 12px 0 0; }
.mentions p, .mentions li { line-height: 1.6; }
.mentions .note { font-size: 14px; color: var(--discret); }
.mentions mark { background: #fff1a8; color: #14213d; padding: 0 3px; border-radius: 2px; }
.mentions .brouillon { background: #fff6c7; color: #14213d; padding: 10px 14px; border-radius: var(--rayon); border-left: 4px solid var(--soleil); }
.mentions.panneau, .mentions .panneau { gap: 6px; }
