/* ============================================================
   EnergyPainting — Épure & Slow Design Intérieur
   Préfixe : ep-  |  Palette : terracotta + vert forêt
   ============================================================ */

/* === VARIABLES === */
:root {
    --ep-primary:         #C96B3F;
    --ep-primary-light:   #DF8358;
    --ep-primary-dark:    #A34E27;
    --ep-secondary:       #2A3830;
    --ep-secondary-light: #3D5246;
    --ep-accent:          #E5BA82;
    --ep-accent-light:    #F2EBE1;
    --ep-text:            #242220;
    --ep-text-muted:      #7A746E;
    --ep-bg:              #FAF6F0;
    --ep-bg-rgb:          250, 246, 240;
    --ep-bg-alt:          #F0EAE1;
    --ep-border:          #E6DFD5;
    --ep-white:           #FFFFFF;

    --ep-font-body:    'Plus Jakarta Sans', system-ui, sans-serif;
    --ep-font-heading: 'DM Serif Display', serif;

    --ep-text-xs:      clamp(0.75rem,  0.8vw,  0.85rem);
    --ep-text-sm:      clamp(0.85rem,  0.9vw,  0.95rem);
    --ep-text-base:    clamp(1rem,     1.05vw, 1.1rem);
    --ep-text-md:      clamp(1.2rem,   1.3vw,  1.4rem);
    --ep-text-lg:      clamp(1.5rem,   1.8vw,  2rem);
    --ep-text-xl:      clamp(2.2rem,   3vw,    3.5rem);
    --ep-text-display: clamp(3rem,     5.5vw,  5.5rem);

    --ep-radius:       16px;
    --ep-radius-lg:    24px;
    --ep-radius-full:  9999px;
    --ep-radius-round: 40% 60% 70% 30% / 40% 50% 60% 50%;

    --ep-shadow-chill: 0 20px 40px rgba(42, 56, 48, 0.05);
    --ep-shadow-md:    0 8px 24px rgba(42, 56, 48, 0.08);

    --ep-transition:      all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --ep-transition-fast: 150ms ease;

    --ep-max-width: 1360px;
    --ep-header-h:  90px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --ep-bg:           #171615;
        --ep-bg-rgb:       23, 22, 21;
        --ep-bg-alt:       #1F1E1D;
        --ep-text:         #F0EAE1;
        --ep-text-muted:   #968E86;
        --ep-border:       #2E2C2A;
        --ep-white:        #1C1B1A;
        --ep-accent-light: #262422;
        --ep-shadow-chill: 0 20px 40px rgba(0, 0, 0, 0.3);
        --ep-shadow-md:    0 8px 24px rgba(0, 0, 0, 0.3);
    }
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--ep-header-h) + 1rem); -webkit-text-size-adjust: 100%; }
body { font-family: var(--ep-font-body); background: var(--ep-bg); color: var(--ep-text); line-height: 1.75; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--ep-font-heading); font-weight: 400; color: var(--ep-text); line-height: 1.15; }
a { color: inherit; text-decoration: none; transition: var(--ep-transition); }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
img, video, svg { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--ep-primary); outline-offset: 3px; border-radius: 4px; }

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

/* === UTILITAIRES === */
.ep-container { width: 100%; max-width: var(--ep-max-width); margin-inline: auto; padding-inline: 2rem; }
.ep-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; margin: -1px; }
.ep-skip-link {
    position: absolute; top: -100px; left: 2rem;
    background: var(--ep-secondary); color: var(--ep-bg);
    padding: 0.75rem 1.5rem; z-index: 1000; border-radius: 8px;
    transition: top var(--ep-transition-fast);
}
.ep-skip-link:focus { top: 1.5rem; }

/* === BRAND BADGE === */
.ep-brand-badge {
    display: inline-flex; align-items: center; gap: 0.75rem;
    font-size: var(--ep-text-xs); font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.15em;
    color: var(--ep-primary); margin-bottom: 1.25rem;
}
.ep-brand-badge::before { content: ''; width: 24px; height: 1px; background: currentColor; flex-shrink: 0; }
.ep-brand-badge--muted { color: var(--ep-text-muted); }

/* === BOUTONS === */
.ep-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
    padding: 1rem 2.2rem; font-family: var(--ep-font-body); font-weight: 500;
    font-size: var(--ep-text-sm); border-radius: var(--ep-radius-full);
    transition: var(--ep-transition); white-space: nowrap; cursor: pointer;
    border: 1px solid transparent;
}
.ep-btn--studio { background: var(--ep-secondary); color: var(--ep-bg); border-color: var(--ep-secondary); }
.ep-btn--studio:hover { background: var(--ep-primary); border-color: var(--ep-primary); color: #fff; transform: translateY(-2px); }
.ep-btn--outline { border-color: var(--ep-border); color: var(--ep-text); background: transparent; }
.ep-btn--outline:hover { border-color: var(--ep-text); }
.ep-btn--light { background: var(--ep-bg); color: var(--ep-text); border-color: var(--ep-bg); }
.ep-btn--light:hover { background: var(--ep-accent-light); border-color: var(--ep-accent-light); }
.ep-btn--sm { padding: 0.55rem 1.4rem; font-size: var(--ep-text-xs); }
.ep-btn--full { width: 100%; justify-content: center; }

/* === HEADER === */
.ep-header {
    position: sticky; top: 0; z-index: 100;
    height: var(--ep-header-h);
    background: rgba(var(--ep-bg-rgb), 0.88);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(230, 223, 213, 0.5);
}
.ep-header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.ep-header__logo {
    display: flex; align-items: center;
}
.ep-logo__img {
    height: 40px; width: auto;
    object-fit: contain; display: block;
}
.ep-logo__img--footer {
    height: 34px; margin-bottom: 1.5rem;
    opacity: 0.75; transition: opacity var(--ep-transition-fast);
}
.ep-footer__logo-link:hover .ep-logo__img--footer { opacity: 1; }

.ep-nav { display: flex; align-items: center; }
.ep-nav__list { display: flex; align-items: center; gap: 0.15rem; }
.ep-nav__link {
    font-size: var(--ep-text-sm); font-weight: 400; color: var(--ep-text-muted);
    padding: 0.5rem 0.9rem; border-radius: var(--ep-radius);
    transition: var(--ep-transition); display: flex; align-items: center; gap: 0.3em;
    background: none; border: none; cursor: pointer;
}
.ep-nav__link:hover { color: var(--ep-text); background: rgba(36,34,32,0.04); }
.ep-nav__link--cta { color: var(--ep-primary); font-weight: 600; }
.ep-nav__link--cta:hover { color: var(--ep-primary-dark); background: var(--ep-accent-light); }

.ep-nav__item--has-sub { position: relative; }
.ep-nav__sub {
    position: absolute; top: calc(100% + 0.75rem); right: 0;
    background: var(--ep-white); border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius); padding: 0.5rem; min-width: 230px;
    box-shadow: var(--ep-shadow-chill);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: var(--ep-transition); z-index: 200;
}
.ep-nav__item--has-sub.is-open .ep-nav__sub,
.ep-nav__item--has-sub:focus-within .ep-nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.ep-nav__sub-link { display: block; padding: 0.65rem 0.9rem; border-radius: 8px; font-size: var(--ep-text-sm); color: var(--ep-text-muted); }
.ep-nav__sub-link:hover { background: var(--ep-bg-alt); color: var(--ep-secondary); }

.ep-nav__toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 7px; padding: 10px; }
.ep-nav__toggle-bar { width: 100%; height: 1px; background: var(--ep-text); border-radius: 1px; transition: var(--ep-transition); }
.ep-nav__toggle[aria-expanded="true"] .ep-nav__toggle-bar:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.ep-nav__toggle[aria-expanded="true"] .ep-nav__toggle-bar:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* === SECTIONS === */
.ep-section { padding-block: clamp(4rem, 8vw, 8rem); }
.ep-section--alt { background: var(--ep-bg-alt); }
.ep-section__intro { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: clamp(2.5rem, 4vw, 4.5rem); gap: 2rem; flex-wrap: wrap; }
.ep-section__title { font-size: var(--ep-text-xl); letter-spacing: -0.01em; }
.ep-section__lead { color: var(--ep-text-muted); font-weight: 300; margin-top: 0.5rem; }

/* === HERO === */
.ep-hero { padding-block: clamp(4rem, 10vw, 10rem); display: flex; align-items: center; min-height: 85vh; overflow: hidden; }
.ep-hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; }
.ep-hero__title { font-size: var(--ep-text-display); letter-spacing: -0.02em; margin-bottom: 2rem; }
.ep-hero__title em { font-style: italic; color: var(--ep-primary); }
.ep-hero__lead { font-size: var(--ep-text-md); color: var(--ep-text-muted); margin-bottom: 3rem; max-width: 520px; font-weight: 300; line-height: 1.6; }
.ep-hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.ep-hero__canvas { position: relative; width: 100%; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; }
.ep-organic-shape {
    position: absolute; width: 85%; height: 85%;
    border-radius: var(--ep-radius-round);
    background: linear-gradient(135deg, var(--ep-accent-light) 0%, var(--ep-bg-alt) 100%);
    animation: ep-morph 12s ease-in-out infinite alternate;
}
.ep-organic-shape--texture {
    width: 62%; height: 62%;
    background: var(--ep-primary); opacity: 0.85;
    animation: ep-morph 8s ease-in-out infinite alternate-reverse;
}
@keyframes ep-morph {
    0%   { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; transform: rotate(0deg); }
    100% { border-radius: 70% 30% 52% 48% / 30% 65% 35% 70%; transform: rotate(90deg); }
}

/* === PALETTE CARDS (catégories homepage) === */
.ep-palette-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.ep-palette-card {
    background: var(--ep-white); border-radius: var(--ep-radius-lg);
    border: 1px solid var(--ep-border); transition: var(--ep-transition); overflow: hidden;
}
.ep-palette-card:hover { transform: translateY(-6px); box-shadow: var(--ep-shadow-chill); border-color: rgba(36,34,32,0.18); }
.ep-palette-card__link { display: flex; flex-direction: column; padding: 2.5rem 2rem; min-height: 210px; justify-content: space-between; }
.ep-palette-card__color { width: 44px; height: 44px; border-radius: 50%; margin-bottom: 1rem; transition: var(--ep-transition); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06); }
.ep-palette-card:hover .ep-palette-card__color { transform: scale(1.12); }
.ep-palette-card__name { font-family: var(--ep-font-body); font-size: var(--ep-text-base); font-weight: 500; color: var(--ep-text); }
.ep-palette-card__desc { font-size: var(--ep-text-xs); color: var(--ep-text-muted); margin-top: 0.4rem; line-height: 1.5; }
.ep-palette-card__arrow { font-size: 1.1rem; color: var(--ep-text-muted); margin-top: auto; padding-top: 1.5rem; transition: var(--ep-transition); align-self: flex-start; }
.ep-palette-card:hover .ep-palette-card__arrow { color: var(--ep-primary); transform: translateX(4px); }

/* === JOURNAL CARDS (featured homepage) === */
.ep-journal-layout { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 2rem; }
.ep-journal-card {
    background: var(--ep-white); border-radius: var(--ep-radius-lg); overflow: hidden;
    border: 1px solid var(--ep-border); display: flex; flex-direction: column;
    transition: var(--ep-transition);
}
.ep-journal-card:hover { box-shadow: var(--ep-shadow-chill); }
.ep-journal-card__cover { display: block; overflow: hidden; aspect-ratio: 16/10; background: var(--ep-bg-alt); }
.ep-journal-card__cover-img { width: 100%; height: 100%; object-fit: cover; transition: var(--ep-transition); }
.ep-journal-card__cover-placeholder { width: 100%; height: 100%; }
.ep-journal-card:hover .ep-journal-card__cover-img { transform: scale(1.03); opacity: 0.95; }
.ep-journal-card__body { padding: 2.5rem; display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.ep-journal-card__body--compact { padding: 1.75rem; }
.ep-journal-card__title { font-size: var(--ep-text-lg); line-height: 1.2; }
.ep-journal-card__title-sm { font-size: var(--ep-text-md); line-height: 1.25; }
.ep-journal-card__title a, .ep-journal-card__title-sm a { color: var(--ep-text); }
.ep-journal-card__title a:hover, .ep-journal-card__title-sm a:hover { color: var(--ep-primary); }
.ep-journal-card__text { color: var(--ep-text-muted); font-size: var(--ep-text-base); font-weight: 300; line-height: 1.6; flex: 1; }
.ep-journal-card__meta { font-size: var(--ep-text-xs); color: var(--ep-text-muted); display: flex; gap: 0.5em; align-items: center; padding-top: 1rem; border-top: 1px solid var(--ep-border); margin-top: auto; }

/* === CARDS LISTING === */
.ep-posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
.ep-posts-grid > li { display: flex; }
.ep-posts-grid > li > * { width: 100%; }
.ep-card {
    background: var(--ep-white); border-radius: var(--ep-radius-lg); overflow: hidden;
    border: 1px solid var(--ep-border); display: flex; flex-direction: column;
    transition: var(--ep-transition);
}
.ep-card:hover { transform: translateY(-4px); box-shadow: var(--ep-shadow-chill); }
.ep-card__cover { display: block; overflow: hidden; aspect-ratio: 16/10; background: var(--ep-bg-alt); }
.ep-card__cover-img { width: 100%; height: 100%; object-fit: cover; transition: var(--ep-transition); }
.ep-card__cover-placeholder { width: 100%; height: 100%; }
.ep-card:hover .ep-card__cover-img { transform: scale(1.04); }
.ep-card__body { padding: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.ep-card__title { font-size: var(--ep-text-md); line-height: 1.25; }
.ep-card__title a { color: var(--ep-text); }
.ep-card__title a:hover { color: var(--ep-primary); }
.ep-card__excerpt { font-size: var(--ep-text-sm); color: var(--ep-text-muted); font-weight: 300; flex: 1; line-height: 1.6; }
.ep-card__meta { font-size: var(--ep-text-xs); color: var(--ep-text-muted); display: flex; gap: 0.5em; align-items: center; margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--ep-border); }

/* Tags */
.ep-tag { display: inline-block; padding: 0.2em 0.85em; background: var(--ep-accent-light); color: var(--ep-primary-dark); border-radius: var(--ep-radius-full); font-size: var(--ep-text-xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; transition: background var(--ep-transition-fast); }
.ep-tag:hover { background: var(--ep-accent); }

/* === BREADCRUMB === */
.ep-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.35em; font-size: var(--ep-text-xs); color: var(--ep-text-muted); margin-bottom: 1.5rem; }
.ep-breadcrumb li { display: flex; align-items: center; gap: 0.35em; }
.ep-breadcrumb li + li::before { content: '/'; color: var(--ep-border); }
.ep-breadcrumb a:hover { color: var(--ep-primary); }

/* === PAGE HEADER === */
.ep-page-header { padding-block: clamp(3rem, 6vw, 6rem); border-bottom: 1px solid var(--ep-border); }
.ep-page-header__title { font-size: var(--ep-text-xl); letter-spacing: -0.01em; margin-top: 0.5rem; }
.ep-page-header__lead { font-size: var(--ep-text-base); color: var(--ep-text-muted); font-weight: 300; margin-top: 0.75rem; }

/* === FILTRE BAR === */
.ep-filter-bar { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: clamp(2.5rem, 4vw, 4rem); padding-bottom: 2rem; border-bottom: 1px solid var(--ep-border); }
.ep-filter-bar__item { padding: 0.4em 1.1em; border: 1px solid var(--ep-border); border-radius: var(--ep-radius-full); font-size: var(--ep-text-xs); font-weight: 500; color: var(--ep-text-muted); transition: var(--ep-transition); }
.ep-filter-bar__item:hover { border-color: var(--ep-text-muted); color: var(--ep-text); }
.ep-filter-bar__item--active { background: var(--ep-secondary); border-color: var(--ep-secondary); color: var(--ep-bg); }

/* === ARTICLE HERO (header pleine largeur) === */
.ep-article-hero-wrap {
    background: var(--ep-bg-alt);
    border-bottom: 1px solid var(--ep-border);
    padding-block: clamp(3rem, 6vw, 5rem);
}
.ep-article-hero-inner {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 4rem;
    align-items: center;
    margin-top: 1.5rem;
}
.ep-article-hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-block: 1rem 1.25rem;
}
.ep-article-hero-excerpt {
    font-size: var(--ep-text-md);
    color: var(--ep-text-muted);
    font-weight: 300;
    line-height: 1.55;
    margin-bottom: 1.5rem;
}
.ep-article-hero-meta {
    display: flex; flex-wrap: wrap; gap: 0.6em;
    font-size: var(--ep-text-xs); color: var(--ep-text-muted);
    align-items: center;
}
.ep-article-hero-meta__author { font-weight: 600; color: var(--ep-text); }
.ep-article-hero-visual { border-radius: var(--ep-radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.ep-article-hero-img { width: 100%; height: 100%; object-fit: cover; }
.ep-article-hero-placeholder { width: 100%; height: 100%; }

/* === ARTICLE SINGLE LAYOUT === */
.ep-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 4rem;
    padding-block: clamp(3rem, 5vw, 5rem);
    align-items: start;
}
.ep-article__body { /* contenu principal */ }
.ep-article__footer {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
    margin-top: 4rem; padding-top: 2rem;
    border-top: 1px solid var(--ep-border);
}
.ep-article__share { display: flex; align-items: center; gap: 0.75rem; font-size: var(--ep-text-xs); color: var(--ep-text-muted); }
.ep-share-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--ep-bg-alt); border: 1px solid var(--ep-border);
    font-size: var(--ep-text-sm); font-weight: 700; transition: var(--ep-transition);
}
.ep-share-btn:hover { background: var(--ep-accent-light); }

/* === LIRE AUSSI (internal linking) === */
.ep-article__lire-aussi {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--ep-border);
}
.ep-lire-aussi__title { margin-bottom: 1.5rem; }
.ep-lire-aussi__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.ep-lire-aussi__card {
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius-lg);
    overflow: hidden;
    background: var(--ep-white);
    transition: var(--ep-transition);
}
.ep-lire-aussi__card:hover { transform: translateY(-3px); box-shadow: var(--ep-shadow-chill); }
.ep-lire-aussi__link { display: flex; flex-direction: column; height: 100%; color: var(--ep-text); }
.ep-lire-aussi__thumb {
    aspect-ratio: 16/10; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.ep-lire-aussi__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-lire-aussi__body { padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.ep-lire-aussi__card-title { font-size: var(--ep-text-sm); font-weight: 600; line-height: 1.35; flex: 1; }
.ep-lire-aussi__card:hover .ep-lire-aussi__card-title { color: var(--ep-primary); }
.ep-lire-aussi__meta { font-size: var(--ep-text-xs); color: var(--ep-text-muted); margin-top: auto; }

/* === SIDEBAR CARDS === */
.ep-sidebar { position: sticky; top: calc(var(--ep-header-h) + 1.5rem); display: flex; flex-direction: column; gap: 1.5rem; }
.ep-sidebar__card {
    background: var(--ep-white);
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius-lg);
    overflow: hidden;
    box-shadow: var(--ep-shadow-chill);
}
.ep-sidebar__card-accent { height: 4px; background: linear-gradient(90deg, var(--ep-primary), var(--ep-accent)); }
.ep-sidebar__card-body { padding: 1.5rem; }
.ep-sidebar__heading { font-family: var(--ep-font-heading); font-size: var(--ep-text-md); font-weight: 400; margin-bottom: 1rem; }
.ep-sidebar__text { font-size: var(--ep-text-sm); color: var(--ep-text-muted); font-weight: 300; margin-bottom: 1.25rem; line-height: 1.6; }
.ep-sidebar__posts { display: flex; flex-direction: column; gap: 1rem; }
.ep-sidebar__post-link { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--ep-text); }
.ep-sidebar__post-link:hover .ep-sidebar__post-title { color: var(--ep-primary); }
.ep-sidebar__post-thumb { width: 64px; height: 50px; border-radius: var(--ep-radius); flex-shrink: 0; }
.ep-sidebar__post-title { font-size: var(--ep-text-xs); font-weight: 600; line-height: 1.4; }
.ep-sidebar__cats { display: flex; flex-direction: column; }
.ep-sidebar__cat-link {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.6rem 0; font-size: var(--ep-text-sm); color: var(--ep-text-muted);
    border-bottom: 1px solid var(--ep-border); font-weight: 400;
    transition: color var(--ep-transition-fast);
}
.ep-sidebar__cat-link:last-child { border-bottom: none; }
.ep-sidebar__cat-link:hover { color: var(--ep-primary); }

/* Blocs éditoriaux spéciaux */
.ep-tldr {
    background: var(--ep-accent-light);
    border-left: 3px solid var(--ep-primary);
    padding: 1.5rem 1.75rem;
    border-radius: 0 var(--ep-radius) var(--ep-radius) 0;
    margin-block: 2rem;
    font-size: var(--ep-text-base);
    line-height: 1.7;
}
.ep-info-box {
    background: var(--ep-bg-alt);
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius);
    padding: 1.25rem 1.5rem;
    margin-block: 1.25rem;
    font-size: var(--ep-text-sm);
    line-height: 1.7;
}

/* Prose éditoriale */
.ep-prose { font-size: var(--ep-text-base); line-height: 1.9; font-weight: 300; }
.ep-prose p { margin-bottom: 1.5rem; }
.ep-prose h2 {
    font-family: var(--ep-font-heading); font-size: var(--ep-text-xl);
    font-weight: 700; color: var(--ep-text);
    margin-block: 3.5rem 1.25rem; line-height: 1.15;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--ep-border);
    position: relative;
}
.ep-prose h2::before {
    content: '';
    position: absolute; bottom: -1px; left: 0;
    width: 48px; height: 2px;
    background: var(--ep-primary);
}
.ep-prose h3 {
    font-family: var(--ep-font-heading); font-size: var(--ep-text-lg);
    font-weight: 700; color: var(--ep-text);
    margin-block: 2.5rem 0.75rem; line-height: 1.2;
}
.ep-prose ul, .ep-prose ol { margin-block: 1.5rem; padding-left: 1.5rem; }
.ep-prose ul { list-style: none; }
.ep-prose ul li { position: relative; padding-left: 1.25rem; margin-bottom: 0.65rem; font-weight: 400; }
.ep-prose ul li::before { content: '—'; position: absolute; left: 0; color: var(--ep-primary); font-weight: 600; }
.ep-prose ol { list-style: decimal; }
.ep-prose ol li { margin-bottom: 0.65rem; font-weight: 400; }
.ep-prose li::marker { color: var(--ep-primary); }
.ep-prose strong { font-weight: 600; color: var(--ep-text); }
.ep-prose a { color: var(--ep-primary); text-decoration: underline; text-underline-offset: 3px; font-weight: 400; }
.ep-prose a:hover { color: var(--ep-primary-dark); }
.ep-prose--centered { max-width: 760px; margin-inline: auto; }

.ep-lead { font-size: var(--ep-text-md); color: var(--ep-text-muted); font-weight: 300; margin-bottom: 3rem; line-height: 1.6; }
.ep-about-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; }

/* === SIDEBAR === */
.ep-sidebar { position: sticky; top: calc(var(--ep-header-h) + 1.5rem); display: flex; flex-direction: column; gap: 3rem; }
.ep-sidebar__widget { border-top: 1px solid var(--ep-border); padding-top: 2rem; }
.ep-sidebar__heading { font-family: var(--ep-font-heading); font-size: var(--ep-text-md); font-weight: 400; margin-bottom: 1.5rem; }
.ep-sidebar__text { font-size: var(--ep-text-sm); color: var(--ep-text-muted); font-weight: 300; margin-bottom: 1.5rem; line-height: 1.6; }
.ep-sidebar__posts { display: flex; flex-direction: column; gap: 1.25rem; }
.ep-sidebar__post-link { display: flex; gap: 1rem; align-items: flex-start; color: var(--ep-text); }
.ep-sidebar__post-link:hover .ep-sidebar__post-title { color: var(--ep-primary); }
.ep-sidebar__post-thumb { width: 72px; height: 56px; object-fit: cover; border-radius: var(--ep-radius); flex-shrink: 0; background: var(--ep-bg-alt); }
.ep-sidebar__post-title { font-size: var(--ep-text-sm); font-weight: 500; line-height: 1.4; }
.ep-sidebar__cats { display: flex; flex-direction: column; }
.ep-sidebar__cat-link { display: flex; justify-content: space-between; padding: 0.65rem 0; font-size: var(--ep-text-sm); color: var(--ep-text-muted); border-bottom: 1px solid var(--ep-border); font-weight: 300; }
.ep-sidebar__cat-link:last-child { border-bottom: none; }
.ep-sidebar__cat-link:hover { color: var(--ep-primary); }

/* === STUDIO FORM === */
.ep-studio-contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 5rem; align-items: start; }
.ep-contact-info__meta { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; font-size: var(--ep-text-sm); color: var(--ep-text-muted); font-weight: 300; }
.ep-studio-form { background: var(--ep-white); padding: 3.5rem; border-radius: var(--ep-radius-lg); border: 1px solid var(--ep-border); box-shadow: var(--ep-shadow-chill); }
.ep-form-row { display: flex; flex-direction: column; margin-bottom: 2.25rem; }
.ep-form-row__label { font-size: var(--ep-text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ep-text-muted); margin-bottom: 0.75rem; }
.ep-form-row__input { width: 100%; padding: 0.9rem 0; background: transparent; border: none; border-bottom: 1px solid var(--ep-border); font-family: var(--ep-font-body); font-size: var(--ep-text-base); color: var(--ep-text); transition: border-color var(--ep-transition-fast); border-radius: 0; }
.ep-form-row__input:focus { outline: none; border-bottom-color: var(--ep-primary); }
.ep-form-row__input::placeholder { color: var(--ep-border); }
.ep-form-row__input--error { border-bottom-color: #C2410C !important; }
.ep-form-row__error { font-size: var(--ep-text-xs); color: #C2410C; min-height: 18px; margin-top: 0.4rem; font-weight: 500; }
textarea.ep-form-row__input { resize: vertical; min-height: 120px; }

/* Alertes */
.ep-alert { padding: 1rem 1.5rem; border-radius: var(--ep-radius); font-size: var(--ep-text-sm); font-weight: 400; margin-bottom: 2rem; }
.ep-alert--success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.ep-alert--error   { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }

/* === CTA BANDE === */
.ep-relax-cta { background: var(--ep-secondary); border-radius: var(--ep-radius-lg); margin-inline: 2rem; padding: clamp(3.5rem, 6vw, 6rem) 3rem; text-align: center; position: relative; overflow: hidden; }
.ep-relax-cta__inner { max-width: 680px; margin-inline: auto; position: relative; z-index: 1; }
.ep-relax-cta__title { font-size: var(--ep-text-xl); color: var(--ep-accent-light); margin-bottom: 1.25rem; }
.ep-relax-cta__lead { font-size: var(--ep-text-base); opacity: 0.7; font-weight: 300; margin-bottom: 2.5rem; color: var(--ep-bg); }

/* === FOOTER === */
.ep-footer { background: var(--ep-bg-alt); padding-top: clamp(4rem, 8vw, 7rem); border-top: 1px solid var(--ep-border); }
.ep-footer__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; margin-bottom: 4rem; }
.ep-footer__quote { font-family: var(--ep-font-heading); font-size: var(--ep-text-md); color: var(--ep-secondary); max-width: 400px; line-height: 1.5; font-style: italic; }
.ep-footer__navs { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.ep-footer__heading { font-size: var(--ep-text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.5rem; color: var(--ep-text); }
.ep-footer__col ul { display: flex; flex-direction: column; gap: 0.25rem; }
.ep-footer__link { display: block; padding: 0.35rem 0; font-size: var(--ep-text-sm); color: var(--ep-text-muted); font-weight: 300; }
.ep-footer__link:hover { color: var(--ep-primary); }
.ep-footer__bottom { border-top: 1px solid var(--ep-border); padding-block: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: var(--ep-text-xs); color: var(--ep-text-muted); }

/* === ERREURS === */
.ep-error-page { padding-block: clamp(4rem, 10vw, 10rem); min-height: 60vh; display: flex; align-items: center; }
.ep-error-page__inner { text-align: center; }
.ep-error-page__code { display: block; font-family: var(--ep-font-heading); font-size: clamp(6rem, 20vw, 14rem); color: var(--ep-accent); line-height: 1; margin-bottom: -0.1em; }
.ep-error-page__title { font-size: var(--ep-text-xl); margin-bottom: 1rem; }
.ep-error-page__text { color: var(--ep-text-muted); font-weight: 300; margin-bottom: 2.5rem; max-width: 480px; margin-inline: auto; }
.ep-error-page__actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.ep-error-page__suggestions p { font-size: var(--ep-text-xs); color: var(--ep-text-muted); margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.ep-error-page__suggestions ul { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.ep-error-page__suggestions a { font-size: var(--ep-text-sm); color: var(--ep-primary); font-weight: 500; }

.ep-empty { text-align: center; color: var(--ep-text-muted); padding-block: clamp(4rem, 8vw, 8rem); font-family: var(--ep-font-heading); font-size: var(--ep-text-lg); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1080px) {
    .ep-journal-layout { grid-template-columns: 1fr; }
    .ep-article-hero-inner { grid-template-columns: 1fr; gap: 2rem; }
    .ep-article-hero-visual { max-width: 540px; }
    .ep-article-layout { grid-template-columns: 1fr; gap: 3rem; }
    .ep-sidebar { position: static; }
    .ep-lire-aussi__grid { grid-template-columns: repeat(2, 1fr); }
    .ep-studio-contact { grid-template-columns: 1fr; gap: 3rem; }
    .ep-palette-grid { grid-template-columns: repeat(2, 1fr); }
    .ep-footer__grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
    :root { --ep-header-h: 80px; }
    .ep-nav__toggle { display: flex; }
    .ep-nav {
        position: fixed; inset: var(--ep-header-h) 0 0 0;
        background: var(--ep-bg); padding: 2.5rem 2rem;
        display: none; flex-direction: column; z-index: 99; overflow-y: auto;
    }
    .ep-nav.is-open { display: flex; }
    .ep-nav__list { flex-direction: column; align-items: flex-start; width: 100%; gap: 0; }
    .ep-nav__link { font-size: var(--ep-text-md); width: 100%; padding: 1rem 0; border-radius: 0; border-bottom: 1px solid var(--ep-border); color: var(--ep-text); background: none; }
    .ep-nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: transparent; display: none; padding: 0.5rem 0 0 1rem; }
    .ep-nav__item--has-sub.is-open .ep-nav__sub { display: block; }

    .ep-hero__inner { grid-template-columns: 1fr; gap: 3rem; }
    .ep-hero__canvas { display: none; }
    .ep-hero__actions { flex-direction: column; align-items: flex-start; }

    .ep-palette-grid { grid-template-columns: 1fr; }
    .ep-posts-grid { grid-template-columns: 1fr; }
    .ep-lire-aussi__grid { grid-template-columns: 1fr; }
    .ep-section__intro { flex-direction: column; align-items: flex-start; }
    .ep-relax-cta { margin-inline: 0; border-radius: 0; padding: 4rem 1.5rem; }
    .ep-studio-form { padding: 2rem 1.25rem; }
    .ep-footer__navs { grid-template-columns: 1fr 1fr; }
    .ep-footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .ep-container { padding-inline: 1.25rem; }
    .ep-palette-grid { grid-template-columns: 1fr; }
    .ep-footer__navs { grid-template-columns: 1fr; }
}
