/* Partenaires : pages publiques, formulaire du partenaire et fiche dans l'administration.
 * Polices héritées du thème ; couleurs reprises du planificateur (--ep-*). */

.epp-page [hidden] { display: none !important; }
/* Titres en Playfair Display. */
.epp-page .epp-title, .epp-page .epp-tagline, .epp-page .epp-lead, .epp-page .epp-h2, .epp-page .epp-band-title, .epp-page .epp-article-title, .epp-page .epp-cal-name, .epp-page .ep-guide-name, .epp-page .epp-fact-value {
	font-family: 'Playfair Display', Georgia, 'Times New Roman', serif !important; letter-spacing: 0 !important; text-transform: none !important;
}
.epp-page .epp-title { font-weight: 600 !important; letter-spacing: -.01em !important; }
.epp-page .epp-h2, .epp-page .epp-band-title, .epp-page .epp-article-title, .epp-page .ep-guide-name { font-weight: 600 !important; }
.epp-page .epp-lead { font-weight: 400; font-size: clamp(22px, 2.3vw, 27px); line-height: 1.45; }
.epp-page .epp-h2 { font-size: 30px !important; }
.epp-page .epp-h2-big { font-size: clamp(30px, 3.4vw, 40px) !important; }
.epp-page .epp-article-title { font-size: 24px; }
.epp-page .epp-fact-value { font-size: 22px; }
.epp-page { max-width: 1240px; margin: 0 auto; padding: 0 20px 80px; }
.epp-page p { margin: 0; }
.epp-page img { max-width: 100%; }

.epp-crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 26px 0 0; font-size: 13px; color: var(--ep-muted); }
.epp-crumbs a { color: var(--ep-muted); text-decoration: none; }
.epp-crumbs a:hover { color: var(--ep-ink); text-decoration: underline; }
.epp-crumbs [aria-current] { color: var(--ep-ink); }

.epp-kicker { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ep-accent); }
.epp-title { margin: 0; font-size: clamp(38px, 5.6vw, 68px) !important; line-height: 1.05 !important; font-weight: 600; }
.epp-tagline { font-style: italic; font-size: clamp(19px, 2.1vw, 24px); line-height: 1.4; }
.epp-h2 { margin: 0 !important; font-size: 28px !important; line-height: 1.2 !important; }
.epp-h2-big { font-size: clamp(28px, 3.2vw, 36px) !important; }

/* ---------- En-tête : grande photo (restaurant, activité) ---------- */
.epp-hero { position: relative; margin-top: 18px; min-height: clamp(380px, 52vw, 580px); display: flex; flex-direction: column; justify-content: space-between; padding: 26px; background: #a89a84; overflow: hidden; color: #fff; }
.ep-planner .epp-hero-img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; margin: 0; z-index: 0; }
.epp-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,38,34,0) 40%, rgba(43,38,34,.75) 100%); z-index: 1; }
.epp-hero-badges, .epp-hero-text { position: relative; z-index: 2; }
.epp-hero-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.epp-hero-badges .ep-guide-badge { position: static; }
.epp-hero-text { display: flex; flex-direction: column; gap: 10px; max-width: 780px; }
.epp-hero .epp-kicker { color: #f1e6d8; }
.epp-hero .epp-title { color: #fff !important; }
.epp-hero .epp-tagline { color: #f6f0e8; }

.epp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); background: var(--ep-card); border: 1px solid var(--ep-line); border-top: 0; }
.epp-facts > div { padding: 18px 22px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid #efe8dd; }
.epp-fact-label { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ep-muted); }
.epp-fact-value { font-size: 19px; line-height: 1.3; }

.epp-strip { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 10px; }
.epp-strip a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ep-line); }
.ep-planner .epp-strip img { width: 100% !important; height: 100% !important; object-fit: cover; margin: 0; transition: transform .5s ease; }
.epp-strip a:hover img { transform: scale(1.04); }
.epp-more-photos { margin: 12px 0 0 !important; text-align: right; }
.ep-planner .epp-link-btn { background: none; border: 0; padding: 6px 0; font: inherit; font-size: 14px; color: var(--ep-ink); text-decoration: underline; text-decoration-color: var(--ep-accent); text-underline-offset: 4px; cursor: pointer; }
.ep-planner .epp-link-btn:hover { color: var(--ep-accent); }

/* ---------- En-tête : titre + mosaïque (location) ---------- */
.epp-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; padding-top: 22px; }
.epp-head-text { display: flex; flex-direction: column; gap: 10px; max-width: 780px; }
.epp-head .epp-tagline { color: #4a4540; }
.epp-keys { margin: 0 !important; padding: 0 !important; list-style: none !important; display: flex; flex-wrap: wrap; gap: 20px; font-size: 15px; }
.epp-keys li { display: flex; align-items: center; gap: 9px; margin: 0 !important; }
.epp-ico { flex: 0 0 auto; color: var(--ep-accent); }

.epp-mosaic { position: relative; margin-top: 24px; display: grid; gap: 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, clamp(150px, 19vw, 250px)); border-radius: 6px; overflow: hidden; }
.epp-mosaic-item { display: block; overflow: hidden; background: var(--ep-line); }
.ep-planner .epp-mosaic-item img { width: 100% !important; height: 100% !important; object-fit: cover; margin: 0; transition: transform .6s ease; }
.epp-mosaic-item:hover img { transform: scale(1.03); }
.epp-mosaic .epp-mosaic-item:first-child { grid-column: 1 / 3; grid-row: 1 / 3; }
.epp-mosaic-1 .epp-mosaic-item:first-child { grid-column: 1 / 5; }
.epp-mosaic-2 .epp-mosaic-item:nth-child(2) { grid-column: 3 / 5; grid-row: 1 / 3; }
.epp-mosaic-3 .epp-mosaic-item:nth-child(2), .epp-mosaic-3 .epp-mosaic-item:nth-child(3) { grid-column: 3 / 5; }
.epp-mosaic-4 .epp-mosaic-item:nth-child(4) { grid-column: 3 / 5; }
.epp-mosaic-btns { position: absolute; right: 14px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.ep-planner .epp-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; background: #fff; color: var(--ep-ink) !important; border: 1px solid var(--ep-ink); border-radius: 4px; font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }
.ep-planner .epp-chip:hover { background: var(--ep-ink); color: #fff !important; }
@media (max-width: 700px) {
	.epp-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 220px 120px; }
	.epp-mosaic .epp-mosaic-item:first-child { grid-column: 1 / 3; grid-row: 1 / 2; }
	.epp-mosaic .epp-mosaic-item:nth-child(n+4) { display: none; }
	.epp-mosaic-2 .epp-mosaic-item:nth-child(2), .epp-mosaic-3 .epp-mosaic-item:nth-child(2), .epp-mosaic-3 .epp-mosaic-item:nth-child(3), .epp-mosaic-4 .epp-mosaic-item:nth-child(4) { grid-column: auto; grid-row: auto; }
}

/* ---------- Corps : texte et encadré pratique ---------- */
.epp-body { display: flex; flex-wrap: wrap; gap: 48px 56px; align-items: flex-start; padding-top: 56px; }
.epp-main { flex: 999 1 540px; min-width: 0; max-width: 740px; display: flex; flex-direction: column; gap: 22px; }
.epp-lead { font-size: clamp(22px, 2.4vw, 27px); line-height: 1.45; }
.epp-text p { font-size: 17px; line-height: 1.8; color: #4a4540; margin: 0 0 1em !important; }
.epp-block { border-top: 1px solid #e2dbd1; padding-top: 28px; margin-top: 14px; display: flex; flex-direction: column; gap: 18px; }
.epp-dash { margin: 0 !important; padding: 0 !important; list-style: none !important; display: flex; flex-direction: column; gap: 12px; }
.epp-dash li { position: relative; padding-left: 30px; margin: 0 !important; font-size: 16px; line-height: 1.6; }
.epp-dash li::before { content: "—"; position: absolute; left: 0; color: var(--ep-accent); }
.epp-note { background: #efe8dd; padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.epp-note p { font-size: 15px; line-height: 1.65; }
.epp-note .epp-kicker { font-size: 12px !important; }
.epp-amen { margin: 0 !important; padding: 0 !important; list-style: none !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.epp-amen li { display: flex; align-items: center; gap: 14px; margin: 0 !important; padding: 15px 16px; background: var(--ep-card); border: 1px solid #eae3d9; font-size: 15px; }
.epp-amen .epp-ico { width: 26px; height: 26px; }

.epp-aside { flex: 1 1 320px; min-width: 0; max-width: 400px; background: var(--ep-card); border: 1px solid var(--ep-line); padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.epp-infos { margin: 0; display: flex; flex-direction: column; gap: 14px; font-size: 15px; line-height: 1.55; }
.epp-infos dt { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ep-muted); }
.epp-infos dd { margin: 4px 0 0; }
.epp-actions { display: flex; flex-direction: column; gap: 10px; }
.ep-planner .epp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; background: var(--ep-ink); color: #fff !important; border: 1.5px solid var(--ep-ink); text-decoration: none !important; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2; text-align: center; transition: background .2s, color .2s; }
.ep-planner .epp-btn:hover { background: var(--ep-accent); border-color: var(--ep-accent); }
.ep-planner .epp-btn-line { background: transparent; color: var(--ep-ink) !important; }
.ep-planner .epp-btn-line:hover { background: var(--ep-ink); border-color: var(--ep-ink); color: #fff !important; }
.ep-planner .epp-map { height: 260px; aspect-ratio: auto; background: #e9e1d2; }
.epp-sponsor { font-size: 12.5px; line-height: 1.5; color: var(--ep-muted); }

/* ---------- Calendrier ---------- */
.epp-cal-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.epp-cal-head p { font-size: 13px; color: var(--ep-muted); }
.epp-cal { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.epp-cal-month { background: var(--ep-card); border: 1px solid #eae3d9; padding: 18px; }
.epp-cal-name { text-align: center; font-size: 19px; margin: 0 0 12px !important; }
.epp-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.epp-cal-grid span { height: 34px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.epp-cal-dow { font-size: 11px !important; font-weight: 600; color: #8f867d; height: 24px !important; }
.epp-cal-grid .is-free { border: 1px solid #efe8dd; }
.epp-cal-grid .is-booked { background: #e4dcd0; color: #a0978e; text-decoration: line-through; }
.epp-cal-grid .is-past { color: #c9c1b6; }
.epp-cal-legend { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; color: #4a4540; }
.epp-cal-legend span { display: inline-flex; align-items: center; gap: 8px; }
.epp-cal-legend i { width: 16px; height: 16px; display: inline-block; }
.epp-cal-legend .is-free { border: 1px solid #cfc6ba; background: #fff; }
.epp-cal-legend .is-booked { background: #e4dcd0; }

/* ---------- Vidéo ---------- */
.epp-video-wide { max-width: 960px; margin: 72px auto 0; display: flex; flex-direction: column; gap: 16px; text-align: center; }
.epp-video { position: relative; aspect-ratio: 16 / 9; background: #2b2622; overflow: hidden; }
.epp-video iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.ep-planner .epp-video-poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #2b2622; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ep-planner .epp-video-poster img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; opacity: .72; margin: 0; }
.epp-play { position: relative; width: 84px; height: 84px; border-radius: 50%; border: 1.5px solid #fff; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.epp-video-poster:hover .epp-play { transform: scale(1.06); }

/* ---------- Autour ---------- */
.epp-near { margin-top: 80px; border-top: 1px solid #d6d0c4; padding-top: 30px; display: flex; flex-direction: column; gap: 24px; }
.epp-articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.epp-article { display: flex; flex-direction: column; gap: 10px; text-decoration: none !important; color: var(--ep-ink) !important; }
.epp-article-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ep-line); }
.ep-planner .epp-article-img img { width: 100% !important; height: 100% !important; object-fit: cover; margin: 0; transition: transform .5s; }
.epp-article:hover img { transform: scale(1.04); }
.epp-article-title { font-size: 21px; line-height: 1.25; font-weight: 600; }
.epp-article-km { font-size: 13px; color: var(--ep-muted); }
.epp-band { margin-top: 72px; background: #efe8dd; padding: 34px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.epp-band > div { display: flex; flex-direction: column; gap: 6px; max-width: 640px; }
.epp-band-title { font-size: clamp(22px, 2.5vw, 28px); line-height: 1.25; font-weight: 600; }

/* ---------- Galerie plein écran ---------- */
.epp-lightbox { position: fixed; inset: 0; z-index: 100000; background: rgba(20,17,15,.94); display: flex; align-items: center; justify-content: center; }
.epp-lightbox[hidden] { display: none; }
.epp-lightbox img { max-width: 88vw; max-height: 84vh; object-fit: contain; }
.epp-lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 44px; line-height: 1; width: 56px; height: 56px; cursor: pointer; }
.epp-lb-close { top: 14px; right: 14px; }
.epp-lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.epp-lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.epp-lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #d9cbb8; font-size: 13px; }

/* ---------- Liste des partenaires ---------- */
.epp-archive-head { padding: 40px 0 0; display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.epp-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 28px; }
.ep-planner .epp-filter { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid #d6d0c4; border-radius: 999px; background: #fff; color: var(--ep-ink) !important; text-decoration: none !important; font-size: 14px; }
.ep-planner .epp-filter.is-on { background: var(--ep-ink); border-color: var(--ep-ink); color: #fff !important; }

/* ---------- Formulaire (partenaire et administration) ---------- */
.epp-fields { display: flex; flex-direction: column; gap: 22px; }
.epp-box { background: #fff; border: 1px solid #e6dfd6; padding: clamp(20px, 3.5vw, 32px); display: flex; flex-direction: column; gap: 18px; }
.epp-box-title { margin: 0 !important; font-size: 24px !important; line-height: 1.2 !important; }
.epp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 18px; }
.epp-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.epp-field { display: flex; flex-direction: column; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.epp-label { font-size: 14px; font-weight: 600; color: #2b2622; padding: 0; }
.epp-help { font-size: 13px; color: #6b635c; line-height: 1.5; }
.epp-fields input[type="text"], .epp-fields input[type="url"], .epp-fields input[type="tel"], .epp-fields input[type="email"], .epp-fields input[type="number"], .epp-fields input[type="date"], .epp-fields select, .epp-fields textarea {
	width: 100%; max-width: 100%; min-height: 46px; padding: 8px 12px; border: 1px solid #d6cec3; border-radius: 2px; background: #fff; font: inherit; font-size: 15px; color: #2b2622; box-shadow: none;
}
.epp-fields textarea { line-height: 1.6; resize: vertical; }
.epp-fields .epp-field > input[type="text"] + input[type="text"] { margin-top: 6px; }
.epp-fields fieldset.epp-types { border: 0; margin: 0; padding: 0; min-width: 0; }
.epp-fields div.epp-only-loc { display: flex; flex-direction: column; gap: 18px; }
.epp-type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.epp-type-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1.5px solid #d6cec3; background: #fff; cursor: pointer; }
.epp-type-card input { position: absolute; opacity: 0; pointer-events: none; }
.epp-type-name { font-size: 18px; font-weight: 600; }
.epp-type-hint { font-size: 13px; color: #6b635c; }
.epp-type-card:has(input:checked) { background: #2b2622; border-color: #2b2622; color: #fff; }
.epp-type-card:has(input:checked) .epp-type-hint { color: #e9e1d6; }
.epp-type-card:has(input:focus-visible) { outline: 2px solid #8a6a4f; outline-offset: 2px; }
.epp-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 14px; }
.epp-checks label { display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: 15px; }
.epp-fields[data-type="resto"] .epp-only-loc, .epp-fields[data-type="resto"] .epp-only-act,
.epp-fields[data-type="loc"] .epp-only-resto, .epp-fields[data-type="loc"] .epp-only-act,
.epp-fields[data-type="act"] .epp-only-resto, .epp-fields[data-type="act"] .epp-only-loc { display: none !important; }
.epp-fields[data-type="resto"] .epp-only-resto.epp-only-loc, .epp-fields[data-type="loc"] .epp-only-resto.epp-only-loc { display: inline !important; }
.epp-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 170px; padding: 22px; border: 1.5px dashed #bfb4a6; background: #faf7f2; text-align: center; cursor: pointer; color: #8a6a4f; }
.epp-drop strong { color: #2b2622; font-size: 16px; }
.epp-drop span { font-size: 13px; color: #6b635c; }
.epp-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.epp-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.epp-thumbs li { position: relative; width: 120px; margin: 0 !important; }
.epp-thumbs img { display: block; width: 120px !important; height: 90px !important; object-fit: cover; }
.epp-thumbs li.is-too-big { outline: 2px solid #b32d2e; }
#epp-thumbs li { cursor: move; }
.epp-thumb-del { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); cursor: pointer; font-size: 15px; line-height: 1; }
.epp-thumb-rm { display: flex; align-items: center; gap: 4px; font-size: 12px; margin-top: 4px; }

.epp-thumbs .epp-thumb-main { position: absolute; left: 4px; top: 4px; background: #2b2622; color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 3px 6px; }

/* Page du formulaire public */
.epp-public { max-width: 880px; margin: 0 auto; padding: 40px 20px 90px; display: flex; flex-direction: column; gap: 30px; }
.epp-public-head { display: flex; flex-direction: column; gap: 10px; }
.epp-public-head h1 { margin: 0 !important; font-size: clamp(32px, 4.6vw, 46px) !important; line-height: 1.1 !important; }
.epp-public-head p { margin: 0; font-size: 16px; line-height: 1.7; color: #4a4540; }
.epp-public .epp-small { font-size: 13px; color: #6b635c; }
.epp-consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.6; }
.epp-consent input { margin-top: 4px; flex: 0 0 auto; width: 18px; height: 18px; }
.epp-submit { display: flex; flex-wrap: wrap; gap: 12px; }
.epp-submit button { min-height: 54px; padding: 0 28px; font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; border: 1.5px solid #2b2622; }
.epp-submit .epp-send { background: #2b2622; color: #fff; }
.epp-submit .epp-save { background: transparent; color: #2b2622; }
.epp-msg { padding: 16px 18px; border-left: 3px solid #2e7d32; background: #eef6ee; font-size: 15px; line-height: 1.6; }
.epp-msg.is-error { border-color: #b32d2e; background: #fbeeee; }

/* Administration : la fiche dans WordPress */
#epp_main .inside { margin: 0; padding: 12px; background: #f6f3ee; }
#epp_main .epp-box { border-color: #e2dbd1; }
.epp-archive { transition: opacity .2s ease; }
