/* =====================================================================================================
   VTT-Lorraine.fr : feuille de style (octobre 2026) - nature, vert, espaces ; mobile d'abord
   ===================================================================================================== */
:root {
	--foret: #1f4d2b;
	--sapin: #2f6b3a;
	--mousse: #5f8f3e;
	--feuille: #8fbf5a;
	--brume: #eef4e8;
	--sable: #f6f4ec;
	--ecorce: #7a5c3e;
	--encre: #23301f;
	--discret: #5b6b56;
	--trait: #d8e2cc;
	--alerte: #b3452f;
	--blanc: #fff;
	--rayon: 14px;
	--ombre: 0 1px 3px rgba(31, 77, 43, .10), 0 6px 18px rgba(31, 77, 43, .06);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--sable); color: var(--encre); font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.5; }
img, svg { max-width: 100%; }
a { color: var(--sapin); }
a:hover { color: var(--foret); }
:focus-visible { outline: 3px solid var(--feuille); outline-offset: 2px; border-radius: 4px; }
.conteneur { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.lien-evitement { position: absolute; left: -999px; top: 0; background: var(--blanc); color: var(--foret); padding: 8px 14px; z-index: 100; border-radius: 0 0 8px 0; }
.lien-evitement:focus { left: 0; }

/* ---------- En-tete ---------- */
.entete { position: relative; background: linear-gradient(135deg, var(--foret) 0%, var(--sapin) 55%, var(--mousse) 100%); color: var(--blanc); overflow: hidden; }
.entete-relief { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 70px; display: block; }
.relief-1 { fill: rgba(143, 191, 90, .35); }
.relief-2 { fill: var(--sable); }
.entete-contenu { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 54px; }
.marque { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.marque img { display: block; width: 74px; height: auto; background: var(--blanc); border-radius: 16px; padding: 6px 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.marque-texte { display: flex; flex-direction: column; }
.marque-nom { font-family: "DM Serif Display", Georgia, serif; font-size: clamp(1.7rem, 5vw, 2.4rem); line-height: 1.05; color: var(--blanc); }
.marque-slogan { font-size: .9rem; color: #d9ecc9; }
.marque:hover .marque-nom { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- Menu ---------- */
.menu-bouton { display: none; align-items: center; gap: 8px; background: rgba(255, 255, 255, .14); color: var(--blanc); border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 10px; padding: 9px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.menu-bouton-barres, .menu-bouton-barres::before, .menu-bouton-barres::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; content: ""; position: relative; }
.menu-bouton-barres::before { position: absolute; top: -6px; }
.menu-bouton-barres::after { position: absolute; top: 6px; }
.menu { background: var(--blanc); border-bottom: 1px solid var(--trait); box-shadow: 0 2px 8px rgba(31, 77, 43, .07); position: sticky; top: 0; z-index: 50; }
.menu-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.menu-item { position: relative; }
.menu-lien { display: block; padding: 14px 16px; color: var(--foret); font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; }
.menu-lien::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.menu-item:hover > .menu-lien, .menu-item:focus-within > .menu-lien, .menu-item.is-open > .menu-lien { background: var(--brume); border-bottom-color: var(--mousse); }
.menu-sous { display: none; list-style: none; margin: 0; padding: 6px 0; position: absolute; left: 0; top: 100%; min-width: 300px; background: var(--blanc); border: 1px solid var(--trait); border-radius: 0 0 12px 12px; box-shadow: var(--ombre); }
.menu-item:hover > .menu-sous, .menu-item:focus-within > .menu-sous, .menu-item.is-open > .menu-sous { display: block; }
.menu-sous a { display: block; padding: 10px 18px; color: var(--encre); text-decoration: none; }
.menu-sous a:hover, .menu-sous a:focus { background: var(--brume); color: var(--foret); }

/* ---------- Contenu ---------- */
.principal { padding-top: 22px; padding-bottom: 40px; }
.presentation h1 { margin: 0 0 8px; font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.15; color: var(--foret); }
.presentation-texte { margin: 0 0 20px; max-width: 75ch; color: var(--discret); }

.filtres { background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 16px 18px 18px; margin-bottom: 22px; }
.filtre-groupe { margin-bottom: 14px; }
.filtre-titre { display: block; margin-bottom: 7px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--discret); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1.5px solid var(--trait); border-radius: 999px; background: var(--blanc); color: var(--foret); font-size: .92rem; font-weight: 600; text-decoration: none; line-height: 1.2; }
.chip:hover { border-color: var(--mousse); background: var(--brume); }
.chip.is-active { background: var(--foret); border-color: var(--foret); color: var(--blanc); }
.chip-n { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--brume); color: var(--foret); font-size: .75rem; font-weight: 700; text-align: center; }
.chip.is-active .chip-n { background: rgba(255, 255, 255, .22); color: var(--blanc); }

.recherche { display: grid; grid-template-columns: minmax(0, 1fr) 150px 150px auto; gap: 12px; align-items: end; padding-top: 14px; border-top: 1px solid var(--trait); }
.recherche-champ label { display: block; margin-bottom: 4px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--discret); }
.recherche input, .recherche select { width: 100%; padding: 11px 12px; border: 1.5px solid var(--trait); border-radius: 10px; background: var(--blanc); color: var(--encre); font: inherit; }
.recherche input:focus, .recherche select:focus { border-color: var(--mousse); outline: none; box-shadow: 0 0 0 3px rgba(143, 191, 90, .35); }
.bouton { display: inline-block; padding: 11px 22px; border: 0; border-radius: 10px; background: var(--sapin); color: var(--blanc); font: inherit; font-weight: 700; text-decoration: none; text-align: center; cursor: pointer; }
.bouton:hover { background: var(--foret); color: var(--blanc); }
.bouton-clair { background: var(--blanc); color: var(--foret); border: 1.5px solid var(--trait); }
.bouton-clair:hover { background: var(--brume); color: var(--foret); }

/* ---------- Liste des sorties ---------- */
.resultats-titre { margin: 0 0 6px; color: var(--discret); }
.resultats-titre strong { color: var(--foret); }
.mois-titre { margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--trait); font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: 1.5rem; color: var(--foret); text-transform: capitalize; }
.evenements { list-style: none; margin: 0; padding: 0; }
.evt { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-bottom: 10px; padding: 12px 14px; background: var(--blanc); border: 1px solid var(--trait); border-radius: 12px; transition: box-shadow .15s, border-color .15s; }
.evt:hover { border-color: var(--feuille); box-shadow: var(--ombre); }
.evt-date { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 4px; background: var(--brume); border-left: 4px solid var(--mousse); border-radius: 8px; text-align: center; line-height: 1.15; }
.evt-jsem { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--discret); }
.evt-jour { font-size: 1.7rem; font-weight: 700; color: var(--foret); }
.evt-mois { font-size: .78rem; font-weight: 600; color: var(--discret); }
.evt-titre { margin: 0 0 2px; font-size: 1.08rem; line-height: 1.3; }
.evt-titre a { color: var(--encre); text-decoration: none; }
.evt-titre a:hover { color: var(--sapin); text-decoration: underline; }
.evt-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0 0 6px; font-size: .9rem; color: var(--discret); }
.evt-lieu { font-weight: 600; color: var(--ecorce); }
.evt-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; color: var(--blanc); background: var(--sapin); line-height: 1.5; }
.tag-vtt { background: #2f6b3a; }
.tag-gravel { background: #a2692a; }
.tag-cyclo { background: #2b7a8c; }
.tag-marche { background: #6f8a1f; }
.tag-trail { background: #8a4f7d; }
.tag-competition { background: var(--blanc); color: var(--foret); box-shadow: inset 0 0 0 1.5px var(--mousse); }
.tag-etat { background: var(--alerte); }
.tag-annule { text-decoration: line-through; opacity: .7; }
.evt-voir { padding: 9px 16px; border: 1.5px solid var(--mousse); border-radius: 10px; color: var(--foret); font-weight: 700; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.evt-voir:hover { background: var(--foret); border-color: var(--foret); color: var(--blanc); }
.evt-annule { background: #fbf6f4; }
.evt-annule .evt-titre a { text-decoration: line-through; color: var(--discret); }
.evt-annule .evt-date { border-left-color: var(--alerte); }

.message { padding: 18px 20px; background: var(--blanc); border: 1px dashed var(--feuille); border-radius: var(--rayon); }
.message p { margin: 0 0 6px; }
.message-erreur { border-style: solid; border-color: #e3b5a9; background: #fbf1ee; color: var(--alerte); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 22px 0 6px; flex-wrap: wrap; }
.pagination-info { color: var(--discret); }

/* ---------- Appel aux organisateurs, exploration, pied de page ---------- */
.appel { margin-top: 34px; padding: 26px 24px; border-radius: 18px; background: linear-gradient(135deg, var(--sapin), var(--mousse)); color: var(--blanc); text-align: center; }
.appel h2 { margin: 0 0 6px; font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: 1.6rem; }
.appel p { margin: 0 0 14px; color: #eaf6dd; }
.appel .bouton { background: var(--blanc); color: var(--foret); }
.appel .bouton:hover { background: var(--brume); }
.explorer { margin-top: 34px; }
.explorer h2 { margin: 0 0 10px; font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: 1.4rem; color: var(--foret); }
.explorer-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .92rem; color: var(--discret); }
.explorer-liste a { color: var(--sapin); text-decoration: none; }
.explorer-liste a:hover { text-decoration: underline; }
.pied { background: var(--foret); color: #d9ecc9; padding: 22px 0; }
.pied a { color: var(--blanc); }
.pied-contenu { display: flex; align-items: center; gap: 14px; }
.pied-contenu img { background: var(--blanc); border-radius: 10px; padding: 3px 5px; flex: none; }
.pied-contenu p { margin: 0; font-size: .9rem; }

/* ---------- Tablettes et telephones ---------- */
@media (max-width: 900px) {
	.menu-bouton { display: inline-flex; }
	.entete-contenu { padding-bottom: 46px; }
	.menu { position: static; display: none; box-shadow: none; }
	.menu.is-open { display: block; }
	.menu-liste { flex-direction: column; gap: 0; }
	.menu-lien { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--trait); }
	.menu-item:hover > .menu-lien, .menu-item:focus-within > .menu-lien { background: transparent; border-bottom-color: var(--trait); }
	.menu-item.is-open > .menu-lien { background: var(--brume); }
	.menu-item:hover > .menu-sous, .menu-item:focus-within > .menu-sous { display: none; }
	.menu-item.is-open > .menu-sous { display: block; }
	.menu-sous { position: static; border: 0; border-radius: 0; box-shadow: none; background: var(--sable); padding: 4px 0; }
	.menu-sous a { padding: 12px 28px; }
	.recherche { grid-template-columns: 1fr 1fr; }
	.recherche-champ:first-child { grid-column: 1 / -1; }
	.recherche .bouton { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	.marque img { width: 58px; }
	.marque-slogan { display: none; }
	.evt { grid-template-columns: 64px minmax(0, 1fr); gap: 4px 12px; padding: 12px; align-items: start; }
	.evt-jour { font-size: 1.45rem; }
	.evt-voir { grid-column: 2; justify-self: start; margin-top: 4px; padding: 8px 14px; }
	.filtres { padding: 14px; }
	.mois-titre { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .evt { transition: none; } }
@media print {
	.menu, .menu-bouton, .filtres, .appel, .explorer, .entete-relief, .evt-voir { display: none !important; }
	.entete { background: none; color: #000; } .marque-nom, .marque-slogan { color: #000; }
}

/* ---------- Ajustements : filtres compacts, recherche repliable, texte de presentation sous la liste ---------- */
.chips-mois { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.chips-mois .chip { flex: none; }
.recherche-bloc { margin-top: 4px; border-top: 1px solid var(--trait); padding-top: 10px; }
.recherche-bloc summary { cursor: pointer; font-weight: 600; color: var(--sapin); padding: 4px 0; }
.recherche-bloc .recherche { border-top: 0; padding-top: 10px; }
.a-propos { margin-top: 34px; max-width: 80ch; }
.a-propos h2 { margin: 0 0 8px; font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: 1.4rem; color: var(--foret); }
.a-propos p { margin: 0; color: var(--discret); }
.filtre-groupe:last-of-type { margin-bottom: 8px; }

/* ---------- Telephone : filtres sur une seule ligne defilante, titre du site sans retour a la ligne ---------- */
@media (max-width: 640px) {
	.chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
	.chip { flex: none; }
	.marque-nom { white-space: nowrap; font-size: 1.55rem; }
	.marque { gap: 10px; }
	.filtre-groupe { margin-bottom: 10px; }
	.presentation-texte { font-size: .95rem; }
}
@media (max-width: 640px) {
	.chips { scrollbar-width: none; }
	.chips::-webkit-scrollbar { display: none; }
}
