/*!
 * Espace Pléiades — main theme stylesheet.
 *
 * Architecture:
 *   1. Design tokens (custom properties)
 *   2. Reset / base
 *   3. Layout primitives (container, section heads)
 *   4. Components (button, eyebrow badge, h2/h3, card, slot, checklist)
 *   5. Page sections (header, hero, description, activities, planning, rental, portrait, contact, footer)
 *   6. Standard WP / single / archive pages
 *   7. Responsive (>= mobile-first)
 */

/* =================================================================
 * 1. Design tokens
 * =============================================================== */
:root {
    /* Colour primitives — primary & accent are also overridden inline by
       the Customizer, see ep_get_inline_css() in functions.php. */
    --ep-primary: #3d6262;
    --ep-primary-rgb: 61, 98, 98;
    --ep-accent: #754d97;
    --ep-accent-rgb: 117, 77, 151;

    --ep-bg-cream: #fbf9f9;
    --ep-bg-white: #ffffff;
    --ep-bg-footer: #f8fafc;

    --ep-text: #1b1c1c;
    --ep-text-muted: #414848;
    --ep-text-soft: #709696;
    --ep-text-nav: #475569;
    --ep-text-footer: #64748b;
    --ep-text-footer-strong: #0f172a;

    --ep-border: #c0c8c7;
    --ep-border-soft: rgba(192, 200, 199, 0.3);
    --ep-border-faint: rgba(192, 200, 199, 0.2);
    --ep-border-nav: #f1f5f9;

    /* Type */
    --ep-font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ep-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Geometry */
    --ep-container: 1200px;
    --ep-radius-sm: 8px;
    --ep-radius-md: 12px;
    --ep-radius-lg: 16px;
    --ep-radius-xl: 24px;
    --ep-radius-pill: 9999px;

    --ep-shadow-card: 0 1px 1px rgba(var(--ep-primary-rgb), 0.05);
    --ep-shadow-image: 0 10px 15px -3px rgba(var(--ep-primary-rgb), 0.05),
                       0 4px 6px -4px rgba(var(--ep-primary-rgb), 0.05);
    --ep-shadow-portrait: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
                          0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* =================================================================
 * 2. Reset / base
 * =============================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--ep-font-body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--ep-text);
    background: var(--ep-bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; height: auto; display: block; }
img { object-fit: cover; }

a { color: var(--ep-primary); text-decoration: none; transition: color 150ms ease, opacity 150ms ease; }
a:hover, a:focus { color: var(--ep-text); }

ul, ol { padding: 0; margin: 0; list-style: none; }
p { margin: 0 0 0.5em; }
p:last-child { margin-bottom: 0; }

button { font: inherit; cursor: pointer; }

/* Accessibility helpers */
.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute !important; width: 1px; word-wrap: normal !important;
}

.ep-skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 1000;
    background: var(--ep-primary); color: #fff;
    padding: 12px 16px; border-radius: 0 0 8px 0;
}
.ep-skip-link:focus { left: 0; color: #fff; }

/* =================================================================
 * 3. Layout primitives
 * =============================================================== */
.ep-container {
    max-width: var(--ep-container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    width: 100%;
}

.ep-section-head { text-align: center; margin: 0 auto 48px; max-width: 720px; }
.ep-section-head .ep-h2 { margin-bottom: 16px; }
.ep-section-head .ep-lead { margin: 0 auto; }
.ep-section-head--row {
    text-align: left;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.ep-section-head--row > div { max-width: 672px; }
.ep-section-head--row .ep-h2 { margin-bottom: 8px; }

/* =================================================================
 * 4. Components
 * =============================================================== */

/* Type */
.ep-h2 {
    font-family: var(--ep-font-heading);
    font-weight: 600;
    font-size: clamp(26px, 3.5vw, 32px);
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--ep-text);
    margin: 0 0 16px;
}
.ep-h2--center { text-align: center; }

.ep-h3 {
    font-family: var(--ep-font-heading);
    font-weight: 600;
    font-size: 24px;
    line-height: 1.3;
    color: var(--ep-text);
    margin: 0 0 8px;
}

.ep-lead {
    font-size: 16px;
    line-height: 1.5;
    color: var(--ep-text-muted);
    margin: 0 0 12px;
}
.ep-lead--lg {
    font-size: 18px;
    line-height: 1.6;
}

/* Eyebrow / badge */
.ep-eyebrow {
    display: inline-block;
    background: rgba(var(--ep-primary-rgb), 0.10);
    color: var(--ep-primary);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 5px 16px 7px;
    border-radius: var(--ep-radius-pill);
    line-height: 1.2;
}
.ep-eyebrow--accent {
    background: rgba(var(--ep-accent-rgb), 0.10);
    color: var(--ep-accent);
}

/* Buttons */
.ep-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--ep-font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.2;
    padding: 14px 32px;
    border-radius: var(--ep-radius-pill);
    border: 1px solid transparent;
    text-decoration: none;
    transition: transform 150ms ease, box-shadow 200ms ease, background-color 200ms ease, color 200ms ease;
    cursor: pointer;
}
.ep-btn--primary {
    background: var(--ep-primary);
    color: #fff;
    box-shadow: 0 1px 1px rgba(var(--ep-primary-rgb), 0.2);
}
.ep-btn--primary:hover,
.ep-btn--primary:focus {
    background: color-mix(in srgb, var(--ep-primary) 88%, black);
    color: #fff;
    transform: translateY(-1px);
}
.ep-btn--ghost {
    background: var(--ep-bg-cream);
    color: var(--ep-primary);
    border-color: var(--ep-border);
    padding: 13px 24px;
}
.ep-btn--ghost:hover,
.ep-btn--ghost:focus {
    background: #fff;
    color: var(--ep-primary);
    border-color: var(--ep-primary);
}
.ep-btn--block { width: 100%; padding-left: 24px; padding-right: 24px; }

/* =================================================================
 * 5. Page sections
 * =============================================================== */

/* --- Top nav --- */
.ep-topnav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(180%) blur(6px);
    -webkit-backdrop-filter: saturate(180%) blur(6px);
    border-bottom: 1px solid var(--ep-border-nav);
}
.ep-topnav__inner {
    max-width: var(--ep-container);
    margin: 0 auto;
    height: 80px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.ep-topnav__brand {
    font-family: var(--ep-font-body);
    font-weight: 600;
    font-size: 20px;
    color: var(--ep-text-soft);
    letter-spacing: -0.025em;
    text-decoration: none;
    flex-shrink: 0;
}
.ep-topnav__brand:hover { color: var(--ep-primary); }
.ep-topnav .custom-logo { max-height: 48px; width: auto; }

.ep-topnav__nav { display: block; }
.ep-topnav__menu {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}
.ep-topnav__menu li { margin: 0; padding: 0; }
.ep-topnav__menu a {
    display: inline-block;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ep-text-nav);
    border-radius: 6px;
    letter-spacing: 0.025em;
    text-decoration: none;
    transition: color 150ms ease, background-color 150ms ease;
}
.ep-topnav__menu a:hover,
.ep-topnav__menu a:focus,
.ep-topnav__menu .current-menu-item a {
    color: var(--ep-primary);
    background: rgba(var(--ep-primary-rgb), 0.06);
}
.ep-topnav__cta { white-space: nowrap; padding: 10px 24px; }

.ep-topnav__toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 8px;
    border-radius: 6px;
}
.ep-topnav__toggle:hover { background: rgba(0, 0, 0, 0.04); }
.ep-topnav__toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ep-text-nav);
    margin: 5px 0;
    transition: transform 200ms ease, opacity 200ms ease;
    border-radius: 2px;
}

/* --- Hero --- */
.ep-hero {
    position: relative;
    min-height: 740px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    overflow: hidden;
    background-color: var(--ep-bg-cream);
}
.ep-hero__bg {
    position: absolute;
    inset: 0;
    background-image: var(--ep-hero-image);
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.ep-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(251, 249, 249, 0.78) 0%, rgba(251, 249, 249, 0.85) 100%);
    z-index: 1;
}
.ep-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 768px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.ep-hero__title {
    font-family: var(--ep-font-heading);
    font-weight: 700;
    font-size: clamp(34px, 5vw, 48px);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--ep-text);
    margin: 0;
}
.ep-hero__subtitle {
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.6;
    color: var(--ep-text-muted);
    margin: 0;
    max-width: 672px;
}
.ep-hero__ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

/* --- Description section --- */
.ep-description {
    background: var(--ep-bg-white);
    padding: 80px 0;
}
.ep-description__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.ep-description__text { display: flex; flex-direction: column; gap: 24px; }
.ep-description__media {
    margin: 0;
    border-radius: var(--ep-radius-lg);
    overflow: hidden;
    box-shadow: var(--ep-shadow-image);
    aspect-ratio: 4 / 3;
}
.ep-description__media img { width: 100%; height: 100%; }

.ep-feature-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}
.ep-feature-badge__icon {
    width: 48px; height: 48px;
    border-radius: var(--ep-radius-pill);
    background: rgba(var(--ep-primary-rgb), 0.10);
    color: var(--ep-primary);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ep-feature-badge__text { display: flex; flex-direction: column; gap: 2px; }
.ep-feature-badge__text strong {
    color: var(--ep-primary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
}
.ep-feature-badge__text em {
    font-style: normal;
    color: var(--ep-text-muted);
    font-size: 12px;
    font-weight: 500;
}

/* --- Activities (bento) --- */
.ep-activities {
    background: var(--ep-bg-cream);
    padding: 80px 0;
}
.ep-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.ep-card {
    background: #fff;
    border: 1px solid var(--ep-border-soft);
    border-radius: var(--ep-radius-md);
    padding: 32px;
    box-shadow: var(--ep-shadow-card);
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: transform 250ms ease, box-shadow 250ms ease;
}
.ep-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px rgba(var(--ep-primary-rgb), 0.12);
}
.ep-card__icon {
    width: 56px; height: 56px;
    border-radius: var(--ep-radius-pill);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ep-card__icon--primary {
    background: rgba(var(--ep-primary-rgb), 0.10);
    color: var(--ep-primary);
}
.ep-card__icon--accent {
    background: rgba(var(--ep-accent-rgb), 0.10);
    color: var(--ep-accent);
}
.ep-card .ep-h3 { margin: 0; }
.ep-card__body {
    color: var(--ep-text-muted);
    margin: 0;
    flex-grow: 1;
}
.ep-card__tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.ep-tag {
    background: rgba(var(--ep-primary-rgb), 0.05);
    color: var(--ep-primary);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: var(--ep-radius-pill);
    line-height: 1.3;
}
.ep-card__price {
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid var(--ep-border-faint);
    color: var(--ep-primary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* --- Planning --- */
.ep-planning {
    background: var(--ep-bg-white);
    padding: 80px 0;
}
.ep-planning__scroll {
    overflow-x: auto;
    margin: 0 -24px;
    padding: 0 24px 16px;
    -webkit-overflow-scrolling: touch;
}
.ep-planning__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    gap: 16px;
    min-width: 800px;
}
.ep-planning__day { display: flex; flex-direction: column; gap: 16px; }
.ep-planning__day-title {
    font-family: var(--ep-font-body);
    font-weight: 600;
    font-size: 14px;
    color: var(--ep-text-muted);
    text-align: center;
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ep-border-soft);
    letter-spacing: 0.05em;
}
.ep-slot {
    border-radius: var(--ep-radius-sm);
    padding: 16px 17px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.ep-slot--primary {
    background: rgba(var(--ep-primary-rgb), 0.05);
    border: 1px solid rgba(var(--ep-primary-rgb), 0.10);
}
.ep-slot--primary .ep-slot__time { color: var(--ep-primary); }
.ep-slot--accent {
    background: rgba(var(--ep-accent-rgb), 0.05);
    border: 1px solid rgba(var(--ep-accent-rgb), 0.10);
}
.ep-slot--accent .ep-slot__time { color: var(--ep-accent); }
.ep-slot__time {
    font-size: 12px;
    font-weight: 500;
    margin: 0;
}
.ep-slot__class {
    font-size: 14px;
    font-weight: 600;
    color: var(--ep-text);
    margin: 0;
    letter-spacing: 0.025em;
}
.ep-slot__who {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--ep-text-muted);
    margin: 4px 0 0;
    font-weight: 500;
}

/* --- Rental --- */
.ep-rental {
    background: var(--ep-bg-cream);
    padding: 80px 0;
}
.ep-rental__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.ep-rental__images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.ep-rental__images figure {
    margin: 0;
    border-radius: var(--ep-radius-md);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    aspect-ratio: 260 / 192;
}
.ep-rental__images img { width: 100%; height: 100%; }
.ep-rental__text { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.ep-rental__text .ep-h2 { margin: 0; }
.ep-rental__text .ep-lead { margin: 0; }

.ep-checklist {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}
.ep-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.ep-checklist__icon {
    color: var(--ep-primary);
    flex-shrink: 0;
    padding-top: 2px;
}
.ep-checklist__body { display: flex; flex-direction: column; gap: 4px; }
.ep-checklist__body strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--ep-text);
    letter-spacing: 0.05em;
}
.ep-checklist__body span { color: var(--ep-text-muted); font-size: 16px; line-height: 1.5; }

/* --- Portrait --- */
.ep-portrait {
    background: var(--ep-bg-white);
    padding: 80px 0;
}
.ep-portrait__card {
    background: rgba(var(--ep-primary-rgb), 0.05);
    border: 1px solid rgba(var(--ep-primary-rgb), 0.10);
    border-radius: var(--ep-radius-xl);
    padding: 49px;
    display: grid;
    grid-template-columns: 314px 1fr;
    gap: 48px;
    align-items: center;
}
.ep-portrait__photo {
    margin: 0;
    position: relative;
    width: 314px; height: 314px;
}
.ep-portrait__glow {
    position: absolute;
    bottom: -16px; right: -16px;
    width: 96px; height: 96px;
    border-radius: var(--ep-radius-pill);
    background: rgba(var(--ep-accent-rgb), 0.20);
    filter: blur(20px);
    z-index: 0;
}
.ep-portrait__ring {
    display: block;
    position: relative;
    width: 100%; height: 100%;
    background: #fff;
    border: 4px solid #fff;
    border-radius: var(--ep-radius-pill);
    overflow: hidden;
    box-shadow: var(--ep-shadow-portrait);
    z-index: 1;
}
.ep-portrait__ring img { width: 100%; height: 100%; border-radius: var(--ep-radius-pill); }
.ep-portrait__text { display: flex; flex-direction: column; gap: 24px; }
.ep-portrait__text .ep-h2 { margin: 0; }
.ep-portrait__text .ep-lead--lg { margin: 0; }
.ep-portrait__text .ep-lead--lg strong { color: var(--ep-primary); font-weight: 600; }
.ep-portrait__body { color: var(--ep-text-muted); margin: 0; line-height: 1.5; }
.ep-portrait__quote {
    color: var(--ep-accent);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin: 8px 0 0;
}

/* --- Contact --- */
.ep-contact {
    background: var(--ep-bg-cream);
    padding: 80px 0;
}
.ep-contact .ep-h2 { margin-bottom: 64px; }

.ep-contact__card {
    background: #fff;
    border: 1px solid var(--ep-border-soft);
    border-radius: var(--ep-radius-lg);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 543px;
}
.ep-contact__info {
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.ep-contact__intro { display: flex; flex-direction: column; gap: 8px; }
.ep-contact__intro .ep-h3 { margin: 0; }
.ep-contact__intro-body { margin: 0; color: var(--ep-text-muted); }
.ep-contact__items { display: flex; flex-direction: column; gap: 24px; }
.ep-contact__item { display: flex; gap: 16px; align-items: flex-start; }
.ep-contact__icon {
    width: 40px; height: 40px;
    border-radius: var(--ep-radius-pill);
    background: rgba(var(--ep-primary-rgb), 0.10);
    color: var(--ep-primary);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ep-contact__detail { display: flex; flex-direction: column; gap: 2px; }
.ep-contact__detail strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--ep-text);
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}
.ep-contact__detail span,
.ep-contact__detail a { color: var(--ep-text-muted); }
.ep-contact__detail em {
    font-size: 12px;
    color: var(--ep-text-muted);
    font-style: italic;
}
.ep-contact__detail a:hover { color: var(--ep-primary); }
.ep-contact .ep-btn--block { margin-top: auto; }

.ep-contact__map {
    background: #e2e8f0;
    min-height: 400px;
    overflow: hidden;
    position: relative;
}
.ep-contact__map img,
.ep-contact__map iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.4);
}

/* --- Footer --- */
.ep-footer {
    background: var(--ep-bg-footer);
    border-top: 1px solid rgba(var(--ep-primary-rgb), 0.10);
    padding: 65px 0 64px;
}
.ep-footer__inner {
    max-width: var(--ep-container);
    margin: 0 auto;
    padding: 0 64px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}
.ep-footer__brand {
    font-size: 18px;
    font-weight: 600;
    color: var(--ep-text-footer-strong);
    margin: 0 0 16px;
}
.ep-footer__tagline {
    font-size: 12px;
    color: var(--ep-text-soft);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.4;
}
.ep-footer__menu { display: flex; flex-direction: column; gap: 12px; }
.ep-footer__menu a {
    color: var(--ep-text-footer);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 150ms ease, color 150ms ease;
}
.ep-footer__menu a:hover { opacity: 1; color: var(--ep-primary); }

/* =================================================================
 * 6. Standard WP pages (single, archive, search, 404)
 * =============================================================== */
.ep-archive,
.ep-singular,
.ep-404 { padding: 80px 0; background: var(--ep-bg-white); }
.ep-archive__inner,
.ep-singular__inner,
.ep-404__inner { max-width: 800px; }

.ep-archive__list { display: flex; flex-direction: column; gap: 48px; }
.ep-post-card { display: flex; flex-direction: column; gap: 12px; }
.ep-post-card__thumb { display: block; border-radius: var(--ep-radius-md); overflow: hidden; }
.ep-post-card__thumb img { width: 100%; height: auto; }
.ep-post-card__meta { color: var(--ep-text-soft); font-size: 14px; }
.ep-post-card__excerpt { color: var(--ep-text-muted); }

.ep-singular__thumb { margin: 0 0 32px; border-radius: var(--ep-radius-md); overflow: hidden; }
.ep-singular__meta { color: var(--ep-text-soft); font-size: 14px; margin: 8px 0 24px; text-align: center; }

.ep-prose { color: var(--ep-text-muted); font-size: 16px; line-height: 1.7; }
.ep-prose h1, .ep-prose h2, .ep-prose h3, .ep-prose h4 {
    font-family: var(--ep-font-heading);
    color: var(--ep-text);
    margin: 1.5em 0 0.5em;
}
.ep-prose h2 { font-size: 28px; }
.ep-prose h3 { font-size: 22px; }
.ep-prose p { margin: 0 0 1.2em; }
.ep-prose a { color: var(--ep-primary); text-decoration: underline; text-underline-offset: 2px; }
.ep-prose img { border-radius: var(--ep-radius-md); margin: 1.5em auto; }
.ep-prose ul, .ep-prose ol { padding-left: 1.5em; margin: 0 0 1.2em; }
.ep-prose ul { list-style: disc; }
.ep-prose ol { list-style: decimal; }
.ep-prose blockquote {
    border-left: 4px solid var(--ep-primary);
    padding: 8px 0 8px 24px;
    margin: 24px 0;
    font-style: italic;
    color: var(--ep-text);
}
.ep-prose code {
    background: rgba(var(--ep-primary-rgb), 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.ep-search-form {
    display: flex;
    gap: 8px;
    margin: 24px 0;
}
.ep-search-form__input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius-pill);
    font: inherit;
    background: #fff;
    color: var(--ep-text);
}
.ep-search-form__input:focus { outline: 2px solid var(--ep-primary); outline-offset: 1px; }

/* WP pagination */
.pagination, .nav-links { display: flex; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px;
    padding: 0 12px;
    border-radius: var(--ep-radius-pill);
    background: var(--ep-bg-cream); color: var(--ep-primary);
    border: 1px solid var(--ep-border);
    text-decoration: none;
}
.page-numbers.current,
.page-numbers:hover { background: var(--ep-primary); color: #fff; border-color: var(--ep-primary); }

/* =================================================================
 * 7. Responsive
 * =============================================================== */
@media (max-width: 1024px) {
    .ep-topnav__inner { padding: 0 24px; }
    .ep-portrait__card { grid-template-columns: 240px 1fr; padding: 40px; gap: 32px; }
    .ep-portrait__photo { width: 240px; height: 240px; }
    .ep-footer__inner { padding: 0 24px; }
}

@media (max-width: 860px) {
    .ep-topnav__inner { padding: 0 20px; }
    .ep-topnav__toggle { display: block; }
    .ep-topnav__nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(8px);
        border-bottom: 1px solid var(--ep-border-nav);
        padding: 16px;
    }
    .ep-topnav__nav.is-open { display: block; }
    .ep-topnav__menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .ep-topnav__menu a { padding: 14px 16px; }
    .ep-topnav__cta { padding: 8px 18px; font-size: 13px; }

    .ep-hero { min-height: 600px; padding: 60px 24px; }
    .ep-description,
    .ep-activities,
    .ep-planning,
    .ep-rental,
    .ep-portrait,
    .ep-contact { padding: 64px 0; }

    .ep-description__grid { grid-template-columns: 1fr; gap: 32px; }
    .ep-description__media { aspect-ratio: 16 / 10; }

    .ep-bento { grid-template-columns: 1fr; gap: 16px; }

    .ep-rental__grid { grid-template-columns: 1fr; gap: 40px; }

    .ep-portrait__card {
        grid-template-columns: 1fr;
        padding: 32px 24px;
        text-align: center;
    }
    .ep-portrait__photo { margin: 0 auto; width: 220px; height: 220px; }
    .ep-portrait__text { text-align: left; }

    .ep-contact__card { grid-template-columns: 1fr; min-height: 0; }
    .ep-contact__info { padding: 32px 24px; }
    .ep-contact__map { min-height: 320px; aspect-ratio: 4 / 3; }

    .ep-footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    .ep-footer__menu { align-items: center; }

    .ep-section-head--row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .ep-container { padding-left: 20px; padding-right: 20px; }
    .ep-hero { min-height: 540px; padding: 48px 20px; }
    .ep-hero__ctas .ep-btn { width: 100%; }
    .ep-rental__images { grid-template-columns: 1fr; }
    .ep-card { padding: 24px; }
    .ep-portrait__card { padding: 24px 20px; }
    .ep-contact__info { padding: 24px 20px; }
    .ep-topnav__brand { font-size: 17px; }
    .ep-topnav__cta { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* WP admin bar fix */
.admin-bar .ep-topnav { top: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar .ep-topnav { top: 46px; }
}

/* =================================================================
 * 8. Professionnels page (page template "Professionnels — équipe")
 * =============================================================== */
.ep-pros {
    background: var(--ep-bg-cream);
    padding: 80px 0 96px;
    min-height: calc(100vh - 80px - 200px); /* fill viewport between sticky header and footer */
}
.ep-pros__inner {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.ep-pros__header {
    text-align: center;
    max-width: 768px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ep-pros__title {
    font-family: var(--ep-font-heading);
    font-weight: 700;
    font-size: clamp(34px, 5vw, 48px);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--ep-primary);
    margin: 0;
}
.ep-pros__subtitle {
    margin: 0;
    color: var(--ep-text-muted);
    font-size: 18px;
    line-height: 1.6;
}

.ep-pros__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.ep-pro-card {
    background: #fff;
    border: 1px solid #f5f3f3;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(112, 150, 150, 0.05);
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: transform 200ms ease, box-shadow 200ms ease;
}
.ep-pro-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(112, 150, 150, 0.10);
}

.ep-pro-card__head {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin: 0;
}
.ep-pro-card__avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(86, 123, 123, 0.20);
    overflow: hidden;
    background: var(--ep-bg-cream);
}
.ep-pro-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ep-pro-card__id {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0; /* allow text truncation if needed */
}
.ep-pro-card__name {
    font-family: var(--ep-font-heading);
    font-weight: 600;
    font-size: 24px;
    line-height: 1.3;
    color: var(--ep-text);
    margin: 0;
}
.ep-pro-card__role {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    background: var(--pro-role-bg, rgba(61, 98, 98, 0.10));
    color: var(--pro-role-color, var(--ep-primary));
    align-self: flex-start;
    white-space: nowrap;
}
.ep-pro-card__role-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ep-pro-card__bio {
    margin: 0;
    color: var(--ep-text-muted);
    font-size: 16px;
    line-height: 1.5;
    flex-grow: 1; /* push action footer to bottom so cards align */
}

.ep-pro-card__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}
.ep-pro-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--ep-text-soft);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.5;
    transition: background-color 150ms ease;
}
.ep-pro-card__cta:hover,
.ep-pro-card__cta:focus-visible {
    background: var(--ep-primary);
    color: #fff;
}
.ep-pro-card__cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ep-pro-card__links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.ep-pro-card__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 4px;
    border: 1px solid rgba(112, 150, 150, 0.30);
    color: var(--ep-text-soft);
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.5;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.ep-pro-card__link:hover,
.ep-pro-card__link:focus-visible {
    background: rgba(112, 150, 150, 0.08);
    border-color: var(--ep-text-soft);
    color: var(--ep-primary);
}

/* Tablet: 2 cards / row */
@media (max-width: 960px) {
    .ep-pros__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile: 1 card / row */
@media (max-width: 600px) {
    .ep-pros { padding: 56px 0 72px; }
    .ep-pros__grid { grid-template-columns: 1fr; gap: 16px; }
    .ep-pro-card { padding: 22px; }
    .ep-pro-card__avatar { width: 64px; height: 64px; }
    .ep-pro-card__name { font-size: 20px; }
}

/* Active nav state — when WP marks the current menu item, give it the
   underline accent shown in the design. */
.ep-topnav__menu .current-menu-item > a,
.ep-topnav__menu .current_page_item > a {
    color: var(--ep-text-soft);
    border-bottom: 2px solid var(--ep-text-soft);
    border-radius: 0;
    padding-bottom: 6px;
}
