/* ==========================================================
   Faux Office de Tourisme — thème wireframe
   CSS autonome : niveaux de gris, blocs en pointillés, une couleur d'accent.
   ========================================================== */

:root {
	--wf-bg: #ffffff;
	--wf-bg-alt: #f3f3f1;
	--wf-ink: #1f1f1f;
	--wf-muted: #6b6b6b;
	--wf-line: #c9c9c4;
	--wf-ph: #e4e4df;
	--wf-accent: #2f5d50;
	--wf-accent-ink: #ffffff;
	--wf-radius: 6px;
	--wf-max: 1200px;
	--wf-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--wf-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--wf-bg); color: var(--wf-ink); font: 16px/1.55 var(--wf-font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wf-accent); }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
code { font-family: var(--wf-mono); font-size: .85em; background: var(--wf-bg-alt); padding: .1em .35em; border-radius: 3px; }
:focus-visible { outline: 3px solid var(--wf-accent); outline-offset: 2px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 100; background: #fff; padding: 8px 12px; }

.wf-container { width: 100%; max-width: var(--wf-max); margin: 0 auto; padding: 0 16px; }
.wf-page { padding-top: 24px; padding-bottom: 56px; }
.wf-muted { color: var(--wf-muted); font-size: .92em; }
.wf-lead { font-size: 1.15rem; }

/* ---------- En-tête ---------- */
.wf-header { border-bottom: 2px solid var(--wf-ink); background: var(--wf-bg); }
.wf-header__inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; min-height: 72px; }
.wf-logo { display: flex; align-items: center; gap: 10px; color: var(--wf-ink); text-decoration: none; font-weight: 700; margin-right: auto; }
.wf-logo small { display: block; font-weight: 400; color: var(--wf-muted); font-size: .75rem; }
.wf-logo__mark { width: 40px; height: 40px; display: grid; place-items: center; border: 2px solid var(--wf-ink); border-radius: 50%; font-size: .85rem; }
.wf-nav ul, .wf-langs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.wf-nav a { color: var(--wf-ink); text-decoration: none; font-size: .95rem; }
.wf-nav a:hover, .wf-nav .current-menu-item > a { text-decoration: underline; }
.wf-langs { gap: 6px; font-size: .8rem; text-transform: uppercase; }
.wf-langs a { display: inline-block; padding: 2px 6px; border: 1px solid var(--wf-line); border-radius: 3px; color: var(--wf-ink); text-decoration: none; }
.wf-langs .current-lang a { background: var(--wf-ink); color: #fff; border-color: var(--wf-ink); }
.wf-search input { width: 160px; padding: 6px 10px; border: 1px solid var(--wf-line); border-radius: var(--wf-radius); font: inherit; }
.wf-burger { display: none; background: none; border: 2px solid var(--wf-ink); border-radius: var(--wf-radius); padding: 6px 12px; font: inherit; cursor: pointer; }
.wf-banner { background: repeating-linear-gradient(45deg, #fff6d6, #fff6d6 12px, #fdeeb5 12px, #fdeeb5 24px); text-align: center; font-size: .85rem; padding: 6px 16px; border-bottom: 1px solid #e5d58f; }

@media (max-width: 900px) {
	.wf-burger { display: block; }
	.wf-nav { display: none; width: 100%; order: 10; padding-bottom: 12px; }
	.wf-nav.is-open { display: block; }
	.wf-nav ul { flex-direction: column; gap: 10px; }
	.wf-search { width: 100%; order: 11; padding-bottom: 12px; }
	.wf-search input { width: 100%; }
}

/* ---------- Placeholders ---------- */
.wf-ph { display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 2; background:
	linear-gradient(to top right, transparent calc(50% - 1px), var(--wf-line) calc(50% - 1px), var(--wf-line) calc(50% + 1px), transparent calc(50% + 1px)),
	linear-gradient(to bottom right, transparent calc(50% - 1px), var(--wf-line) calc(50% - 1px), var(--wf-line) calc(50% + 1px), transparent calc(50% + 1px)),
	var(--wf-ph); color: var(--wf-muted); font: .8rem var(--wf-mono); text-transform: uppercase; }
.wf-ph--small { aspect-ratio: 4 / 3; }

/* ---------- Accueil ---------- */
.wf-hero { padding: 56px 0; background: var(--wf-bg-alt); border-bottom: 1px dashed var(--wf-line); }
.wf-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--wf-muted); margin: 0 0 8px; }
.wf-hero .wf-lead { max-width: 640px; }
.wf-hero__search { display: flex; gap: 8px; max-width: 560px; margin-top: 24px; }
.wf-hero__search input { flex: 1; min-width: 0; padding: 12px 14px; border: 2px solid var(--wf-ink); border-radius: var(--wf-radius); font: inherit; }
.wf-hero__search button, .wf-btn { display: inline-block; padding: 12px 18px; background: var(--wf-accent); color: var(--wf-accent-ink); border: 0; border-radius: var(--wf-radius); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.wf-section { padding: 48px 0; }
.wf-section--alt { background: var(--wf-bg-alt); }
.wf-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.wf-section__head h1, .wf-section__head h2 { margin: 0; }

/* ---------- Grilles & cartes ---------- */
.wf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.wf-grid--types { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.wf-tile { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px dashed var(--wf-line); border-radius: var(--wf-radius); color: var(--wf-ink); text-decoration: none; background: var(--wf-bg); }
.wf-tile:hover { border-style: solid; border-color: var(--wf-ink); }
.wf-card { display: flex; flex-direction: column; border: 1px solid var(--wf-line); border-radius: var(--wf-radius); overflow: hidden; background: var(--wf-bg); }
.wf-card__media img, .wf-card__media .wf-ph { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.wf-card__body { padding: 12px 14px 16px; }
.wf-card__type { margin: 0 0 4px; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--wf-muted); }
.wf-card__title { margin: 0 0 6px; }
.wf-card__title a { color: var(--wf-ink); text-decoration: none; }
.wf-card__title a:hover { text-decoration: underline; }
.wf-card__date { margin: 0 0 4px; font-weight: 600; }
.wf-card__place { margin: 0; font-size: .9rem; color: var(--wf-muted); }
.wf-stars { margin: 0 0 4px; color: #a77a00; letter-spacing: 2px; }
.wf-empty { padding: 32px; border: 1px dashed var(--wf-line); text-align: center; color: var(--wf-muted); }

.wf-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 24px; }
.wf-chips a, .wf-chip { display: inline-block; padding: 4px 10px; border: 1px solid var(--wf-line); border-radius: 999px; color: var(--wf-ink); text-decoration: none; font-size: .88rem; }
.wf-chips a.is-active { background: var(--wf-ink); color: #fff; border-color: var(--wf-ink); }

.wf-pagination { margin-top: 32px; }
.wf-pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.wf-pagination .page-numbers { padding: 6px 12px; border: 1px solid var(--wf-line); border-radius: var(--wf-radius); text-decoration: none; color: var(--wf-ink); }
.wf-pagination .current { background: var(--wf-ink); color: #fff; }

.wf-breadcrumb { font-size: .85rem; color: var(--wf-muted); margin-bottom: 16px; }

/* ---------- Fiche offre ---------- */
.wf-offer__head { margin-bottom: 16px; }
.wf-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 160px; gap: 8px; margin-bottom: 32px; }
.wf-gallery--n1 { grid-template-columns: 1fr; grid-auto-rows: 200px; }
.wf-gallery--n2 { grid-template-columns: 2fr 1fr; }
.wf-gallery figure { margin: 0; overflow: hidden; border-radius: var(--wf-radius); background: var(--wf-ph); }
.wf-gallery figure.is-main { grid-row: span 2; }
.wf-gallery img, .wf-gallery .wf-ph { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.wf-offer { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; }
.wf-offer__main h2 { margin-top: 1.6em; }
.wf-box { border: 1px solid var(--wf-line); border-radius: var(--wf-radius); padding: 16px; margin-bottom: 16px; }
.wf-box h2 { font-size: 1.05rem; }
.wf-box--sync { border-style: dashed; background: var(--wf-bg-alt); }
.wf-map iframe { width: 100%; height: 240px; border: 0; display: block; }
.wf-map { padding: 0; overflow: hidden; }
.wf-list { padding-left: 18px; margin: 0 0 1em; }
.wf-list li { margin-bottom: 4px; }
.wf-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.wf-table th, .wf-table td { text-align: left; padding: 6px 4px; border-bottom: 1px dotted var(--wf-line); vertical-align: top; }
.wf-table th { font-weight: 600; width: 45%; }
.wf-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.wf-dl dt { font-weight: 600; }
.wf-dl dd { margin: 0; }
.wf-dl--small { font-size: .88rem; grid-template-columns: 1fr; gap: 0; }
.wf-dl--small dd { margin-bottom: 8px; word-break: break-all; }
.wf-prose { max-width: 760px; }
.wf-offer .wf-prose { max-width: none; }

@media (max-width: 900px) {
	.wf-offer { grid-template-columns: 1fr; }
	.wf-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 120px; }
	.wf-gallery figure.is-main { grid-column: span 2; grid-row: span 2; }
	.wf-dl { grid-template-columns: 1fr; gap: 0; }
	.wf-dl dd { margin-bottom: 8px; }
}

/* ---------- Moteur Com Tourisme ---------- */
.wf-moteur { min-height: 400px; }

/* ---------- Pied de page ---------- */
.wf-footer { border-top: 2px solid var(--wf-ink); padding: 32px 0; margin-top: 0; font-size: .9rem; }
.wf-footer__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.wf-footer ul { list-style: none; padding: 0; margin: 0; }
