/*
Theme Name: For Marseille Lovers
Description: Thème annuaire de formarseillelovers.com : listes d'adresses, vue liste + carte, filtres par arrondissement.
Version: 2.0.1
Requires PHP: 8.1
Text Domain: formarseille
*/

/* ---------- Polices (auto-hébergées, sous-ensemble latin) ---------- */
@font-face { font-family: "Bricolage Grotesque"; src: url("assets/fonts/bricolage.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

/* ---------- Jetons ----------
   Bleu ciel (--sky) : accents décoratifs, bordures, repères ; jamais en texte sur blanc (contraste 2,9:1).
   --sky-700 : texte de lien et blanc sur bleu (5,5:1). Orange (--cta) : boutons seulement, texte marine (6,5:1).
   Or (--gold) : badge Partenaire uniquement, jamais pour une note. */
:root {
	--sky: #00a3e0;
	--sky-600: #0083b8;
	--sky-700: #00709e;
	--sky-50: #e8f6fc;
	--sky-100: #cdebf8;
	--navy: #0b2545;
	--navy-800: #13345c;
	--bg: #f3f8fc;
	--gold: #e5b53a;
	--cta: #f39200;
	--cta-600: #db8200;
	--ink: #16273d;
	--muted: #4f6178;
	--line: #d8e3ed;
	--line-2: #e8eff5;
	--white: #fff;
	--ok: #1e7a46;
	--ok-l: #e4f3ea;
	--ko: #b42318;
	--ko-l: #fdeceb;
	--r: 8px;
	--r-s: 6px;
	--h: 60px;
	--shadow: 0 1px 2px rgba(11, 37, 69, .06), 0 6px 18px rgba(11, 37, 69, .07);
	--shadow-h: 0 2px 4px rgba(11, 37, 69, .08), 0 12px 28px rgba(11, 37, 69, .12);
	--titre: "Bricolage Grotesque", system-ui, sans-serif;
	--texte: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--max: 1240px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--texte); }
img { max-width: 100%; height: auto; }
a { color: var(--sky-700); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--titre); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--navy); }
h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sky-600); outline-offset: 2px; }
.hero :focus-visible, .band-photo :focus-visible, .box-cta :focus-visible, .foot :focus-visible, .sv-toggle:focus-visible { outline-color: var(--cta); }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: var(--r); z-index: 99; }
.skip:focus { top: 8px; color: #fff; }
.ico { width: 1em; height: 1em; flex: none; vertical-align: -.125em; }
.small { font-size: .88rem; color: var(--muted); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--r); padding: 11px 18px; font: 700 .95rem/1.2 var(--texte); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, transform .15s, box-shadow .15s; }
.btn-cta { background: var(--cta); color: var(--navy); box-shadow: 0 1px 0 rgba(11, 37, 69, .12); }
.btn-cta:hover { background: var(--cta-600); color: var(--navy); }
.btn-line { background: var(--white); color: var(--sky-700); border-color: var(--line); }
.btn-line:hover { border-color: var(--sky); color: var(--navy); background: var(--sky-50); }
.btn-s { padding: 8px 14px; font-size: .88rem; }

/* ---------- En-tête : blanc translucide, collant ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .top { background: rgba(255, 255, 255, .8); backdrop-filter: saturate(160%) blur(12px); } }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: var(--h); }
.logo { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font: 800 1.12rem/1 var(--titre); white-space: nowrap; }
.logo:hover { color: var(--navy); }
.logo-mark { width: 34px; height: 34px; border-radius: var(--r); background: var(--navy); color: #fff; display: grid; place-items: center; font-size: .95rem; box-shadow: inset 0 -4px 0 var(--sky); }
.logo small { display: block; font: 500 .7rem/1.3 var(--texte); color: var(--muted); letter-spacing: .01em; }
.top-search { flex: 1; max-width: 400px; display: flex; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); }
.top-search:focus-within { border-color: var(--sky); background: #fff; }
.top-search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--ink); padding: 8px 12px; font: inherit; font-size: .93rem; }
.top-search input:focus { outline: none; }
.top-search input::placeholder { color: var(--muted); }
.top-search button { background: none; border: 0; color: var(--navy); padding: 0 12px; cursor: pointer; }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a { color: var(--navy); text-decoration: none; padding: 8px 11px; border-radius: var(--r-s); font-size: .93rem; font-weight: 500; }
.nav a:hover { background: var(--sky-50); color: var(--navy); }
.nav .btn-pro { background: var(--cta); color: var(--navy); font-weight: 700; margin-left: 6px; }
.nav .btn-pro:hover { background: var(--cta-600); color: var(--navy); }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--navy); border-radius: var(--r-s); padding: 7px 10px; cursor: pointer; }

/* ---------- Méga-menu « Explorer » ---------- */
.nav-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--navy); padding: 8px 11px; border-radius: var(--r-s); font: 500 .93rem/1.6 var(--texte); cursor: pointer; }
.nav-btn:hover, .nav-btn[aria-expanded="true"] { background: var(--sky-50); }
.nav-btn .ico, .mm-acc .ico { transition: transform .15s; }
.nav-btn[aria-expanded="true"] .ico, .mm-acc[aria-expanded="true"] .ico { transform: rotate(180deg); }
.dot { display: inline-block; width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--c, var(--sky-700)); }
.mm-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); color: var(--ink); border-top: 1px solid var(--line); box-shadow: 0 18px 36px rgba(11, 37, 69, .16); border-radius: 0 0 var(--r) var(--r); max-height: calc(100vh - var(--h)); overflow-y: auto; }
.mm-panel[hidden] { display: none; }
.mm-in { width: min(var(--max), 100% - 32px); margin-inline: auto; padding: 22px 0 16px; }
.mm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 28px; }
.mm-u { min-width: 0; }
.mm-h { margin: 0 0 6px; font: 700 .98rem/1.3 var(--titre); color: var(--navy); }
.mm-ht { display: flex; align-items: center; gap: 8px; }
.mm-acc { display: none; }
.mm-l ul { list-style: none; margin: 0; padding: 0; }
.nav .mm-panel a { display: block; color: var(--ink); padding: 3px 0 3px 18px; border-radius: var(--r-s); font-size: .9rem; font-weight: 400; }
.nav .mm-panel a:hover { background: none; color: var(--sky-700); text-decoration: underline; }
.nav .mm-panel .mm-all { color: var(--sky-700); font-weight: 600; margin-top: 2px; }
.mm-foot { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line-2); }
.nav .mm-panel .mm-foot a { display: inline-block; padding-left: 0; color: var(--sky-700); font-weight: 600; }

/* ---------- Recherche instantanée ---------- */
.top-search, .hero-search { position: relative; }
.sugg { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; list-style: none; margin: 0; padding: 6px; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-h); text-align: left; }
.sugg[hidden] { display: none; }
.sugg li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 10px; border-radius: var(--r-s); cursor: pointer; font-size: .93rem; }
.sugg li[aria-selected="true"], .sugg li:hover { background: var(--sky-50); }
.sugg mark { background: none; color: var(--sky-700); font-weight: 700; }
.sugg small { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.sugg .k-c small { color: var(--sky-700); font-weight: 600; }

/* ---------- Fil d'Ariane ---------- */
.crumbs { font-size: .85rem; color: var(--muted); padding: 14px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.crumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; opacity: .6; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--sky-700); text-decoration: underline; }

/* ---------- Bandeau de page (clair, ou photo sous dégradé marine) ---------- */
.band { position: relative; padding: 16px 0 32px; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.band h1 { margin: 12px 0 10px; max-width: 24ch; }
.band .lead { color: var(--muted); max-width: 62ch; font-size: 1.05rem; }
.band-photo { isolation: isolate; z-index: 0; display: flex; align-items: flex-end; min-height: clamp(260px, 34vw, 380px); padding: 16px 0 36px; background: var(--navy); border-bottom: 0; color: #fff; }
.band-photo .wrap { position: relative; }
.band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 37, 69, .55) 0%, rgba(11, 37, 69, .45) 35%, rgba(11, 37, 69, .9) 100%); }
.band-photo h1 { color: #fff; }
.band-photo .lead { color: rgba(255, 255, 255, .9); }
.band-photo .crumbs, .band-photo .crumbs a { color: rgba(255, 255, 255, .88); }
.band-photo .crumbs a:hover { color: #fff; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.facts li { background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); padding: 7px 12px; font-size: .88rem; display: flex; align-items: center; gap: 6px; box-shadow: 0 1px 2px rgba(11, 37, 69, .06); }
.facts b { font: 800 1.1rem/1 var(--titre); color: var(--navy); }
.facts .fresh { background: var(--ok-l); border-color: #bfe0cc; color: var(--ok); }

/* ---------- Mise en page à deux colonnes ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; padding: 28px 0 56px; align-items: start; }
.side { display: grid; gap: 18px; position: sticky; top: calc(var(--h) + 16px); }
.side-static { position: static; }
.after { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; padding: 8px 0 56px; align-items: start; }
.after .side { position: static; }
.after-side { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: 32px; }
.box { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: 0 1px 2px rgba(11, 37, 69, .04); }
.box > h2, .box > h3 { display: flex; align-items: center; gap: 8px; font: 700 .82rem/1.3 var(--texte); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 12px; }
.box ul { list-style: none; margin: 0; padding: 0; }
.links li + li { border-top: 1px solid var(--line-2); }
.links a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; text-decoration: none; color: var(--ink); font-size: .94rem; }
.links a:hover { color: var(--sky-700); }
.links li > span { display: block; padding: 8px 0; font-size: .94rem; }
.links a span { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.box-cta { position: relative; overflow: hidden; background: var(--navy); color: #fff; border: 0; box-shadow: var(--shadow); }
.box-cta::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--sky); }
.box-cta h3 { color: #fff; text-transform: none; letter-spacing: 0; font: 700 1.18rem/1.2 var(--titre); }
.box-cta p { color: rgba(255, 255, 255, .86); font-size: .93rem; }
.box-cta .btn { width: 100%; }
.box-method h3 .ico { width: 18px; height: 18px; color: var(--sky-700); }
.checks li { position: relative; padding: 5px 0 5px 26px; font-size: .92rem; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 7px; border-left: 2.5px solid var(--sky-700); border-bottom: 2.5px solid var(--sky-700); transform: rotate(-45deg); }

/* ---------- Filtres ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); margin: 0 0 14px; }
.filters .lbl { font-size: .8rem; color: var(--muted); font-weight: 600; margin-right: 2px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: var(--r-s); padding: 6px 11px; font: 500 .86rem/1.2 var(--texte); cursor: pointer; }
.chip:hover { border-color: var(--sky); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip .n { opacity: .7; }
.chip-open[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); }
.filters-empty { display: none; padding: 26px; text-align: center; color: var(--muted); background: var(--white); border: 1px dashed var(--line); border-radius: var(--r); }
.filters-empty.is-shown { display: block; }

/* ---------- Vue scindée : liste + carte (façon carte en ligne) ---------- */
.sv { margin-top: 22px; }
.sv-map { position: relative; background: var(--sky-50); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.sv-map .map { width: 100%; height: 100%; }
.sv-toggle, .sv-close { display: none; }
@media (min-width: 1024px) {
	.sv { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px; align-items: start; }
	.sv-nomap { grid-template-columns: minmax(0, 820px); }
	.sv-map { position: sticky; top: calc(var(--h) + 12px); height: calc(100vh - var(--h) - 24px); min-height: 420px; }
}
@media (max-width: 1023.98px) {
	.sv-map { display: none; }
	.sv.show-map .sv-map { display: block; position: fixed; inset: var(--h) 0 0 0; z-index: 45; border: 0; border-radius: 0; }
	.sv-toggle { position: fixed; left: 50%; bottom: calc(18px + var(--notice-h, 0px)); transform: translateX(-50%); z-index: 44; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border: 0; border-radius: var(--r); background: var(--navy); color: #fff; font: 700 .93rem/1 var(--texte); box-shadow: 0 8px 24px rgba(11, 37, 69, .35); cursor: pointer; }
	.sv.show-map .sv-toggle, .sv-toggle[hidden] { display: none; }
	.sv-close { position: absolute; top: 12px; right: 12px; z-index: 1000; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 0; border-radius: var(--r); background: var(--navy); color: #fff; font: 700 .9rem/1 var(--texte); box-shadow: 0 6px 18px rgba(11, 37, 69, .3); cursor: pointer; }
	.sv-close:focus-visible { outline-color: var(--cta); }
}

/* ---------- Cartes d'adresses ---------- */
.places { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.place { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 16px 12px; box-shadow: 0 1px 2px rgba(11, 37, 69, .04); transition: border-color .15s, box-shadow .15s, transform .15s; scroll-margin-top: calc(var(--h) + 16px); }
.places .place:hover { transform: translateY(-2px); box-shadow: var(--shadow-h); }
.place.hl { border-color: var(--sky); box-shadow: 0 0 0 2px var(--sky), var(--shadow); }
.place[hidden] { display: none; }
.pc-top { display: flex; gap: 12px; align-items: flex-start; }
.pc-n { flex: none; width: 28px; height: 28px; border-radius: var(--r-s); background: var(--navy); color: #fff; display: grid; place-items: center; font: 700 .82rem/1 var(--texte); margin-top: 1px; }
.place.hl .pc-n { background: var(--cta); color: var(--navy); }
.pc-h { min-width: 0; flex: 1; }
.pc-h h2 { font: 700 1.1rem/1.25 var(--titre); margin: 0 0 2px; color: var(--navy); }
.pc-h h2 a { color: inherit; text-decoration: none; }
.pc-h h2 a:hover { color: var(--sky-700); text-decoration: underline; }
.pc-sub, .pc-addr { margin: 0; font-size: .88rem; color: var(--muted); }
.pc-open { margin: 1px 0; font-size: .88rem; }
.pc-desc { margin: 10px 0 0; font-size: .9rem; line-height: 1.55; max-width: 68ch; }
.open { font-weight: 600; color: var(--muted); }
.open.is-open { color: var(--ok); }
.open.is-closed { color: var(--ko); }
.pc-f { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .8rem; color: var(--muted); }
.pc-f .ok { color: var(--ok); font-weight: 600; display: inline-flex; gap: 5px; align-items: center; margin-right: auto; }
.pc-f a { color: var(--muted); }
.pc-f a:hover { color: var(--sky-700); }
.hours { margin: 8px 0 0; }
.hours summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--sky-700); }
.hours table { border-collapse: collapse; font-size: .86rem; margin-top: 6px; }
.hours td { padding: 3px 18px 3px 0; }
.hours tr.today td { font-weight: 700; color: var(--navy); }

/* Boutons ronds : cercle de 40 px, libellé dessous ; le principal (Itinéraire) en orange. */
.rbs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 2px; }
.rb { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; min-width: 52px; padding: 0; background: none; border: 0; color: var(--navy); text-decoration: none; font: 600 .74rem/1.2 var(--texte); cursor: pointer; }
.rb[hidden] { display: none; }
.rb-i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 1.5px solid var(--sky); color: var(--navy); transition: background-color .15s, transform .15s; }
.rb-i .ico { width: 18px; height: 18px; }
.rb:hover { color: var(--navy); }
.rb:hover .rb-i { background: var(--sky-50); transform: translateY(-1px); }
.rb-p .rb-i { background: var(--cta); border-color: var(--cta); }
.rb-p:hover .rb-i { background: var(--cta-600); border-color: var(--cta-600); }
.rb[aria-pressed="true"] .rb-i { background: var(--navy); border-color: var(--navy); color: #fff; }
.rb.is-done .rb-l { color: var(--ok); }

/* Note des visiteurs (plugin fml-avis) : étoiles masquées, remplies au pourcentage --r. */
.rating { display: flex; align-items: center; gap: 6px; margin: 2px 0; font-size: .86rem; }
.rating b { color: var(--navy); }
.rating span:last-child { color: var(--muted); }
.stars { display: inline-block; width: 5.4em; height: 1em; background: linear-gradient(90deg, var(--sky-600) var(--r, 0%), #c5d3e0 var(--r, 0%)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") 0 0 / 1.08em 1em repeat-x; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") 0 0 / 1.08em 1em repeat-x; }

/* ---------- Carte Leaflet ---------- */
.leaflet-container { font: inherit; }
.pin { width: 28px; height: 28px; border-radius: var(--r-s); background: var(--navy); color: #fff; font: 700 .78rem/24px var(--texte); text-align: center; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(11, 37, 69, .35); transition: transform .12s; }
.pin.on { background: var(--cta); color: var(--navy); transform: scale(1.2); }
.leaflet-marker-icon:has(.pin.on) { z-index: 1000 !important; }
.leaflet-popup-content-wrapper { border-radius: var(--r); }
.pop { display: grid; gap: 8px; min-width: 160px; font: 500 .9rem/1.35 var(--texte); }
.pop b { color: var(--navy); }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background: rgba(0, 163, 224, .3); }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background: var(--navy); color: #fff; font-weight: 700; }

/* ---------- Fiche entreprise ---------- */
.fiche-map { height: clamp(220px, 36vh, 380px); background: var(--sky-50); border-bottom: 1px solid var(--line); }
.fiche-map .map, .fiche-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.fiche-wrap .layout { padding-top: 16px; }
.place.fiche { padding: 22px 22px 18px; box-shadow: var(--shadow); }
.fiche-head h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); margin: 0 0 6px; }
.fiche-head .pc-sub { font-size: .95rem; }
.fiche-head .pc-open { font-size: .95rem; margin-top: 2px; }
.badge-ok { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: var(--r-s); background: var(--ok-l); color: var(--ok); border: 1px solid #bfe0cc; }
.badge-partner { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: var(--r-s); background: var(--gold); color: var(--navy); }
.rbs-fiche { gap: 8px 18px; margin: 16px 0 0; padding: 14px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.fiche-info { list-style: none; margin: 6px 0 0; padding: 0; }
.fiche-info li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; align-items: start; padding: 11px 0; border-bottom: 1px dashed var(--line); overflow-wrap: anywhere; }
.fiche-info li:last-child { border-bottom: 0; }
.fiche-info li > .ico { width: 20px; height: 20px; color: var(--sky-700); margin-top: 2px; }
.fiche-info a { color: var(--ink); }
.fiche-info a:hover { color: var(--sky-700); }
.fiche-hours { margin: 0; }
.fiche-hours summary { color: var(--ink); font-size: .95rem; font-weight: 500; }
.fiche-hours table { font-size: .9rem; }
.btn-gmaps { margin-top: 14px; }
.fiche-desc { max-width: 68ch; line-height: 1.65; }

/* ---------- Blocs de contenu ---------- */
.intro { font-size: 1.02rem; margin-top: 24px; max-width: 80ch; }
.intro > :last-child { margin-bottom: 0; }
.section { margin-top: 40px; }
.section > h2 { display: flex; align-items: center; gap: 10px; }
.section > h2::before { content: ""; width: 5px; height: 1.1em; border-radius: 2px; background: var(--sky); }
.closed-box { background: var(--ko-l); border: 1px solid #f3c7c2; border-radius: var(--r); padding: 18px; }
.closed-box ul { margin: 8px 0 0; padding-left: 18px; font-size: .92rem; }
.closed-box li { margin: 3px 0; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 1.2rem/1 var(--titre); color: var(--sky-700); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 18px 14px; color: var(--muted); }
.method { display: grid; grid-template-columns: auto 1fr; gap: 14px; background: var(--sky-50); border: 1px solid var(--sky-100); border-radius: var(--r); padding: 18px; font-size: .9rem; }
.method .ico { width: 28px; height: 28px; color: var(--sky-700); }
.method p:last-child { margin: 0; }

/* ---------- Données ouvertes (badges, photo Commons, détails, fermeture) ---------- */
.od-badges { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 10px 0 0; padding: 0; }
.od-b { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 600; line-height: 1.35; padding: 3px 9px; border-radius: var(--r-s); background: var(--sky-50); color: var(--sky-700); border: 1px solid var(--sky-100); }
.od-b.od-hyg { background: var(--white); border-color: var(--sky); }
.od-b.od-year { background: var(--white); color: var(--muted); border-color: var(--line); font-weight: 500; }
.od-stars { color: var(--sky-700); letter-spacing: 1px; }
.od-badges.is-compact { margin-top: 6px; }
.od-badges.is-compact .od-b { font-size: .74rem; padding: 2px 7px; }
.od-photo { margin: 14px 0 0; }
.od-photo img { display: block; width: 100%; max-height: 360px; object-fit: cover; border-radius: var(--r); background: var(--line-2); }
.od-photo figcaption { margin-top: 6px; font-size: .76rem; line-height: 1.45; color: var(--muted); }
.od-photo.is-card { margin: 12px 0 0; }
.od-photo.is-card img { max-height: 200px; }
.od-dl { margin: 0; display: grid; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.od-dl > div { display: grid; grid-template-columns: minmax(130px, 200px) 1fr; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.od-dl > div:last-child { padding-bottom: 0; border-bottom: 0; }
.od-dl dt { font-weight: 600; color: var(--navy); font-size: .9rem; }
.od-dl dd { margin: 0; font-size: .92rem; }
.od-src { margin: 10px 0 0; }
.closed-banner { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 10px 14px; border-radius: var(--r); background: var(--ko-l); border: 1px solid #f3c7c2; color: var(--ink); font-weight: 600; font-size: .92rem; }
.closed-banner .ico { flex: none; width: 18px; height: 18px; }
.od-sources { max-width: 90ch; }
@media (max-width: 560px) {
	.od-dl > div { grid-template-columns: 1fr; gap: 2px; }
	.od-photo img { max-height: 240px; }
}

/* ---------- Tuiles (listes, articles) ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.tile { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.tile:hover { border-color: var(--sky); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-h); }
.tile b { font: 700 1.02rem/1.25 var(--titre); color: var(--navy); }
.tile span { font-size: .84rem; color: var(--muted); }
.tile .more { margin-top: auto; color: var(--sky-700); font-weight: 600; }

/* ---------- Accueil : héros photo ---------- */
.hero { position: relative; isolation: isolate; z-index: 1; color: #fff; background: radial-gradient(1000px 500px at 85% 10%, rgba(0, 163, 224, .35), transparent 60%), var(--navy); padding: clamp(48px, 9vh, 104px) 0 0; min-height: min(86vh, 760px); display: flex; flex-direction: column; justify-content: center; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 37, 69, .7) 0%, rgba(11, 37, 69, .5) 42%, rgba(11, 37, 69, .9) 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 44px; z-index: -1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 44' preserveAspectRatio='none'%3E%3Cpath fill='%23f3f8fc' d='M0 44V20c120-12 240-18 360-10s240 26 360 24 240-22 360-26 240 6 360 14v22z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; }
.hero-in { text-align: center; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 1.3rem + 3.6vw, 4rem); max-width: 18ch; margin: 0 auto 16px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--sky); }
.hero-lead { color: rgba(255, 255, 255, .9); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); max-width: 60ch; margin: 0 auto; }
.hero-search { display: flex; align-items: center; gap: 8px; background: #fff; padding: 8px 8px 8px 18px; border-radius: var(--r); margin: 28px auto 0; max-width: 720px; box-shadow: 0 18px 44px rgba(0, 0, 0, .28); }
.hero-search > .ico { width: 22px; height: 22px; color: var(--sky-700); }
.hero-search input { flex: 1; min-width: 0; border: 0; padding: 14px 6px; font: 500 1.1rem/1.2 var(--texte); color: var(--ink); background: none; }
.hero-search input:focus { outline: none; }
.hero-search .btn { padding: 15px 24px; font-size: 1rem; }
.hero-search:focus-within { box-shadow: 0 0 0 3px var(--sky), 0 18px 44px rgba(0, 0, 0, .28); }
.hero-search-line { border: 1px solid var(--line); box-shadow: var(--shadow); margin: 20px 0 0; max-width: 620px; padding-left: 12px; }
.quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.quick a { color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28); border-radius: var(--r-s); padding: 6px 11px; font-size: .86rem; text-decoration: none; backdrop-filter: blur(4px); }
.quick a:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.hero-stats { position: relative; margin-top: clamp(32px, 6vh, 64px); margin-bottom: -52px; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.stat-cards li { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; background: var(--white); color: var(--ink); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow-h); transition: transform .15s; }
.stat-cards li:hover { transform: translateY(-2px); }
.stat-cards .ico { grid-row: 1 / 3; width: 44px; height: 44px; padding: 11px; border-radius: var(--r); background: var(--sky-50); color: var(--sky-700); }
.stat-cards b { font: 800 1.6rem/1.05 var(--titre); color: var(--navy); }
.stat-cards span { font-size: .86rem; color: var(--muted); line-height: 1.3; }
.hero-upd { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; font-size: .82rem; color: var(--muted); }
.hero-upd .ico { color: var(--ok); }
.hero:has(.hero-stats) + .home-sec { padding-top: 104px; }
.home-sec { padding: 52px 0 0; }
.home-sec:last-of-type { padding-bottom: 60px; }
.home-alt { background: var(--white); margin-top: 52px; padding: 48px 0 52px; border-block: 1px solid var(--line); }
.home-alt + .home-sec { padding-top: 48px; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 6px 16px; margin-bottom: 20px; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 0; color: var(--muted); }

/* Univers : cartes photo 4:3, titre sur dégradé, catégories phares. */
.unis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.uni { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.uni:hover { transform: translateY(-2px); box-shadow: var(--shadow-h); }
.uni:target, .uni:focus { outline: none; box-shadow: 0 0 0 3px var(--sky), var(--shadow-h); }
.uni-media { position: relative; aspect-ratio: 4 / 3; background: var(--c, var(--navy)); overflow: hidden; }
.uni-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.uni:hover .uni-media img { transform: scale(1.04); }
.uni-media.no-img { aspect-ratio: 16 / 7; background: radial-gradient(420px 180px at 90% 0%, rgba(0, 163, 224, .45), transparent 70%), var(--c, var(--navy)); }
.uni-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(180deg, transparent 0%, rgba(11, 37, 69, .88) 75%); }
.uni-cap h3 { color: #fff; font-size: 1.3rem; margin: 0 0 2px; }
.uni-cap p { color: rgba(255, 255, 255, .88); margin: 0; font-size: .84rem; }
.uni-top { list-style: none; margin: 0; padding: 8px 8px 4px; }
.uni-top a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--r-s); text-decoration: none; color: var(--ink); font-size: .93rem; }
.uni-top a:hover { background: var(--sky-50); color: var(--navy); }
.uni-top small { flex: none; min-width: 28px; text-align: center; padding: 1px 6px; border-radius: var(--r-s); background: var(--bg); color: var(--muted); font-size: .76rem; font-weight: 600; }
.uni-all { margin: 0 8px 10px; border-top: 1px solid var(--line-2); }
.uni-all summary { cursor: pointer; padding: 9px 8px 2px; color: var(--sky-700); font-weight: 600; font-size: .88rem; }
.uni-all ul { list-style: none; margin: 4px 0 0; padding: 0 8px; columns: 2; column-gap: 12px; font-size: .86rem; }
.uni-all li { break-inside: avoid; padding: 2px 0; }
.uni-all a { color: var(--ink); text-decoration: none; }
.uni-all a:hover { color: var(--sky-700); text-decoration: underline; }

/* Marseille quartier par quartier (photos décoratives) */
.districts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.districts figure { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--navy); }
.districts img { width: 100%; height: 100%; object-fit: cover; }
.districts figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; background: linear-gradient(180deg, transparent, rgba(11, 37, 69, .85)); color: #fff; font: 700 .98rem/1.2 var(--titre); }
.districts small { display: block; font: 500 .74rem var(--texte); opacity: .85; }

.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.rank { list-style: none; margin: 0; padding: 0; counter-reset: r; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.rank li { counter-increment: r; border-top: 1px solid var(--line-2); }
.rank li:first-child { border-top: 0; }
.rank a { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 13px 16px; text-decoration: none; color: var(--ink); }
.rank a::before { content: counter(r); font: 800 1.1rem var(--titre); color: var(--sky-700); }
.rank a:hover { background: var(--sky-50); }
.rank small { color: var(--muted); white-space: nowrap; }
.rank .ico { color: var(--sky-700); }

/* ---------- Pages simples, blog, crédits ---------- */
.prose { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 4vw, 40px); overflow-wrap: anywhere; }
.prose h2 { margin-top: 1.6em; }
.prose > :first-child { margin-top: 0; }
.posts { display: grid; gap: 16px; }
.post-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.post-card img { width: 100%; height: 100%; object-fit: cover; }
.post-card div { padding: 16px 16px 16px 0; }
.sitemap-wrap { padding: 30px 0 56px; }
.sitemap-cols { columns: 3 260px; column-gap: 28px; }
.sitemap-cols section { break-inside: avoid; margin-bottom: 20px; }
.sitemap-cols h2 { font-size: 1.05rem; }
.sitemap-cols ul { margin: 0; padding-left: 18px; font-size: .9rem; }
.credits-wrap { padding: 28px 0 56px; display: grid; gap: 20px; }
.table-scroll { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.credits { width: 100%; border-collapse: collapse; font-size: .9rem; }
.credits th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--bg); }
.credits td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.credits tr:last-child td { border-bottom: 0; }
.credits img { display: block; width: 120px; max-width: none; border-radius: var(--r-s); }
.credits small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }

/* ---------- Pied de page marine, vague ---------- */
.foot { position: relative; margin-top: 56px; background: var(--navy); color: rgba(255, 255, 255, .8); padding: 40px 0 24px; font-size: .9rem; }
.foot-wave { position: absolute; left: 0; bottom: 100%; width: 100%; height: 40px; fill: var(--navy); margin-bottom: -1px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.foot h2 { color: #fff; font: 700 .82rem/1.3 var(--texte); text-transform: uppercase; letter-spacing: .08em; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { padding: 3px 0; }
.foot a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.foot a:hover { color: var(--sky); text-decoration: underline; }
.foot-stat { color: var(--sky); font-weight: 600; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 30px; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .8rem; }

/* ---------- Bandeau d'information (fermé une fois, mémorisé dans le stockage local) ---------- */
.notice { position: fixed; left: 16px; bottom: 16px; z-index: 70; display: flex; align-items: center; gap: 14px; max-width: min(560px, 100% - 32px); padding: 14px 16px; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-top: 3px solid var(--sky); border-radius: var(--r); box-shadow: var(--shadow-h); font-size: .88rem; }
.notice[hidden] { display: none; }
/* Tant que le bandeau est affiché, le bas de page (formulaires, boutons) reste atteignable au-dessus de lui. */
body { padding-bottom: var(--notice-h, 0px); }
html { scroll-padding-bottom: var(--notice-h, 0px); }
.notice p { display: flex; gap: 10px; margin: 0; }
.notice p > .ico { width: 20px; height: 20px; color: var(--sky-700); margin-top: 1px; }
.notice .btn { flex: none; }

/* ---------- Formulaire de contact (linkfarm-toolkit) ---------- */
.lft-contact input, .lft-contact textarea, .lft-contact select { width: 100%; border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 12px; font: inherit; background: var(--white); }
.lft-contact input:focus, .lft-contact textarea:focus, .lft-contact select:focus { border-color: var(--sky); outline: 2px solid var(--sky-100); }
.lft-contact__consent { display: flex; align-items: flex-start; gap: 10px; }
.lft-contact__consent input[type="checkbox"] { flex: 0 0 auto; width: 18px; height: 18px; padding: 0; margin: 3px 0 0; accent-color: var(--sky-700); }
.lft-contact__consent label { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.lft-contact button { background: var(--cta); color: var(--navy); border: 0; border-radius: var(--r); padding: 12px 20px; font: 700 .95rem var(--texte); cursor: pointer; }
.lft-contact button:hover { background: var(--cta-600); }

/* ---------- Adaptation ---------- */
@media (max-width: 1100px) {
	.mm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023.98px) {
	.layout, .after, .split { grid-template-columns: 1fr; }
	.side { position: static; }
	.foot-grid { grid-template-columns: 1fr 1fr; }
	.top-search { display: none; }
}
@media (max-width: 760px) {
	.burger { display: block; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(11, 37, 69, .14); flex-direction: column; align-items: stretch; padding: 10px 16px 16px; }
	.nav.open { display: flex; max-height: calc(100vh - var(--h)); overflow-y: auto; }
	.nav .btn-pro { margin: 6px 0 0; text-align: center; }
	.nav-btn { width: 100%; justify-content: space-between; }
	.mm-panel { position: static; background: none; border: 0; box-shadow: none; border-radius: 0; max-height: none; overflow: visible; }
	.mm-in { width: auto; padding: 4px 0 8px 8px; }
	.mm-grid { grid-template-columns: 1fr; gap: 0; }
	.mm-h { margin: 0; }
	.mm-ht { display: none; }
	.mm-acc { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; color: var(--navy); padding: 9px 4px; font: 600 .93rem/1.3 var(--texte); text-align: left; cursor: pointer; border-radius: var(--r-s); }
	.mm-acc span { flex: 1; }
	.mm-l { display: none; padding: 0 0 8px 18px; }
	.mm-u.open .mm-l { display: block; }
	.nav .mm-panel a { padding: 5px 0; }
	.logo small { display: none; }
	.hero { min-height: 0; padding-top: 40px; }
	.hero-search { padding: 6px 6px 6px 12px; }
	.hero-search > .ico { display: none; }
	.hero-search input { padding: 12px 4px; font-size: 1rem; }
	.hero-search .btn { padding: 13px 14px; }
	.stat-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
	.stat-cards li { grid-template-columns: 1fr; padding: 12px; }
	.stat-cards .ico { grid-row: auto; width: 34px; height: 34px; padding: 8px; margin-bottom: 6px; }
	.stat-cards b { font-size: 1.35rem; }
	.place { padding: 14px 14px 10px; }
	.rbs { gap: 6px 10px; }
	.rb { min-width: 48px; }
	.place.fiche { padding: 18px 16px 14px; }
	.post-card { grid-template-columns: 1fr; }
	.post-card div { padding: 0 16px 16px; }
	.uni-all ul { columns: 1; }
	.foot-grid { grid-template-columns: 1fr; }
	.notice { left: 8px; right: 8px; bottom: 8px; max-width: none; gap: 10px; padding: 10px 12px; font-size: .82rem; }
	.notice p > .ico { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
