/* Paris coups de cœur — feuille de style publique (sans dépendance, sans build) */

@font-face {
    font-family: "Playfair Display";
    src: url("../fonts/playfair-display.woff2") format("woff2");
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Playfair Display";
    src: url("../fonts/playfair-display-italic.woff2") format("woff2");
    font-weight: 400 900;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "Source Sans 3";
    src: url("../fonts/source-sans-3.woff2") format("woff2");
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Source Sans 3";
    src: url("../fonts/source-sans-3-italic.woff2") format("woff2");
    font-weight: 200 900;
    font-style: italic;
    font-display: swap;
}

:root {
    --cream: #fbf7f0;
    --cream-2: #f3ece0;
    --paper: #ffffff;
    --ink: #17120f;
    --muted: #5a4f47;
    --burgundy: #8c1c2e;
    --burgundy-dark: #6b1222;
    --gold: #c9a15f;
    --gold-ink: #7d5c1f;
    --line: #e2d6c3;

    --serif: "Playfair Display", "Times New Roman", Georgia, serif;
    --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius: 14px;
    --shadow: 0 1px 2px rgba(23, 18, 15, .06), 0 8px 24px rgba(23, 18, 15, .08);
    --shadow-hover: 0 2px 4px rgba(23, 18, 15, .08), 0 14px 32px rgba(23, 18, 15, .14);
    --header-h: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.125rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--burgundy); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--burgundy-dark); }

:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
    border-radius: 4px;
    box-shadow: 0 0 0 6px var(--gold);
}

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 1rem; top: -4rem;
    background: var(--ink); color: #fff;
    padding: .75rem 1.25rem; border-radius: 0 0 10px 10px;
    z-index: 100; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 0; color: #fff; }

main:focus { outline: none; }

.container { width: min(100% - 2.5rem, 1180px); margin-inline: auto; }
.container-narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
.center { text-align: center; }

/* ---------- En-tête ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(251, 247, 240, .94);
    backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    min-height: var(--header-h); gap: 1rem;
}

.brand {
    display: inline-flex; align-items: center; gap: .6rem;
    text-decoration: none; color: var(--ink);
}
.brand-icon { width: 1.9rem; height: 2.6rem; color: var(--burgundy); flex: none; }
.brand-text {
    font-family: var(--serif); font-weight: 800; text-transform: uppercase;
    letter-spacing: .02em; line-height: 1; font-size: 1.15rem;
    display: flex; flex-direction: column;
}
.brand-text span { font-size: .72em; font-weight: 700; letter-spacing: .06em; }
.brand-text em { font-style: normal; color: var(--burgundy); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.main-nav a {
    display: block; padding: .55rem .8rem; border-radius: 999px;
    text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1rem;
    white-space: nowrap;
}
.main-nav a:hover { background: var(--cream-2); color: var(--ink); }
.main-nav a[aria-current="page"] { background: var(--burgundy); color: #fff; }

.nav-toggle {
    display: none; width: 3rem; height: 3rem; border: 1px solid var(--line);
    background: var(--paper); border-radius: 12px; cursor: pointer;
    align-items: center; justify-content: center;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 1.4rem; height: 2px; background: var(--ink);
    border-radius: 2px; transition: transform .2s, opacity .2s; content: "";
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -.45rem; }
.nav-toggle-bars::after { position: absolute; top: .45rem; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(.45rem) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-.45rem) rotate(-45deg); }

@media (max-width: 1040px) {
    .nav-toggle { display: inline-flex; }
    .main-nav {
        position: absolute; left: 0; right: 0; top: 100%;
        background: var(--cream); border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 24px rgba(23, 18, 15, .1);
        display: none; padding: .75rem 1.25rem 1.25rem;
    }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: .15rem; }
    .main-nav a { padding: .9rem 1rem; border-radius: 10px; font-size: 1.125rem; }
}

/* ---------- Bannière d'accueil ---------- */
.hero {
    background:
        radial-gradient(120% 80% at 50% 0%, #fffdf8 0%, var(--cream) 60%, var(--cream-2) 100%);
    padding-bottom: clamp(2rem, 5vw, 4rem);
    overflow: hidden;
}
.hero-scene { display: block; width: min(100%, 1100px); height: auto; margin: 0 auto; }
.hero-inner { text-align: center; margin-top: clamp(-.5rem, -1vw, 0rem); }

.hero-title {
    margin: 0; font-family: var(--serif); font-weight: 800; text-transform: uppercase;
    line-height: .95; letter-spacing: -.01em;
}
.hero-paris { display: block; font-size: clamp(3.6rem, 12vw, 8.2rem); }
.hero-coups { display: block; font-size: clamp(2rem, 6.4vw, 4.6rem); margin-top: .1em; }
.heart-word { color: var(--burgundy); }

.hero-tagline {
    margin: 1.4rem auto 0; max-width: 40rem;
    font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2.4vw, 1.6rem);
    color: var(--muted); display: flex; align-items: center; gap: 1.25rem;
}
.hero-tagline::before, .hero-tagline::after {
    content: ""; flex: 1; height: 1px; background: var(--gold);
}
.hero-kinds {
    margin: .9rem 0 0; font-size: .95rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--gold-ink); font-weight: 600;
}

/* ---------- Sections ---------- */
.section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.section-alt { background: var(--cream-2); }
.section-head {
    display: flex; align-items: baseline; justify-content: space-between;
    flex-wrap: wrap; gap: .75rem 1.5rem; margin-bottom: 2rem;
}
.section-title {
    font-family: var(--serif); font-weight: 700; font-size: clamp(1.7rem, 3.6vw, 2.5rem);
    line-height: 1.15; margin: 0 0 1rem;
}
.section-head .section-title { margin: 0; }
.eyebrow {
    margin: 0 0 .4rem; text-transform: uppercase; letter-spacing: .14em;
    font-size: .82rem; font-weight: 700; color: var(--gold-ink);
}
.eyebrow.center { text-align: center; }
.link-more { font-weight: 700; text-decoration: none; }
.link-more:hover { text-decoration: underline; }
.intro .prose { font-size: 1.2rem; }
.empty { text-align: center; color: var(--muted); font-size: 1.2rem; padding: 3rem 0; }

.page-head { text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.page-title {
    font-family: var(--serif); font-weight: 800; font-size: clamp(2.3rem, 6vw, 4rem);
    line-height: 1.05; margin: 0;
}
.page-title::after {
    content: ""; display: block; width: 4.5rem; height: 3px; margin: 1.1rem auto 0;
    background: var(--burgundy); border-radius: 2px;
}
.page-intro { margin: 1.2rem auto 0; color: var(--muted); font-size: 1.2rem; max-width: 36rem; }

/* ---------- Texte ---------- */
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 1.1em; }
.prose > :last-child, .prose div > :last-child { margin-bottom: 0; }
.prose h2, .prose h3 { font-family: var(--serif); line-height: 1.2; margin-bottom: 0; }
.prose h2 { font-size: 1.7rem; margin-top: 2em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.6em; }
.prose blockquote {
    margin-inline: 0; padding: .25rem 0 .25rem 1.25rem;
    border-left: 3px solid var(--gold); color: var(--muted); font-style: italic;
}
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: .35em; }
.prose img { border-radius: var(--radius); }

/* ---------- Grilles et cartes ---------- */
.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid, .grid-2 { grid-template-columns: 1fr; } }

.card {
    position: relative; display: flex; flex-direction: column;
    background: var(--paper); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover, .card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-media { position: relative; aspect-ratio: 4 / 5; background: var(--cream-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-placeholder {
    width: 100%; height: 100%; display: grid; place-items: center;
    background: linear-gradient(160deg, var(--burgundy) 0%, var(--burgundy-dark) 100%); color: rgba(255, 255, 255, .88);
}
.card-placeholder svg { width: 22%; height: auto; max-height: 70%; }
.card-placeholder.big { aspect-ratio: 1; border-radius: var(--radius); }
.card-body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-title { font-family: var(--serif); font-size: 1.4rem; line-height: 1.2; margin: 0 0 .6rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-title a:hover { color: var(--burgundy); }
.card-meta { margin: 0 0 .75rem; color: var(--muted); font-size: 1rem; display: flex; flex-direction: column; gap: .15rem; }
.card-text { margin: 0 0 .75rem; color: var(--muted); }
.card-cta { margin-top: auto; font-weight: 700; color: var(--burgundy); }

.badge {
    display: inline-block; padding: .3rem .8rem; border-radius: 999px;
    font-size: .85rem; font-weight: 700; letter-spacing: .02em;
}
.badge-heart { background: var(--burgundy); color: #fff; }
.card-media .badge { position: absolute; top: .9rem; left: .9rem; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.badge.inline { margin: 0 0 1rem; }

/* ---------- Page de détail ---------- */
.detail, .article { padding-bottom: clamp(3rem, 6vw, 5rem); }
.breadcrumb { padding: 1.5rem 0 1rem; font-size: .95rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--burgundy); }

.detail-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.detail-media { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.detail-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.detail-title {
    font-family: var(--serif); font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.2rem);
    line-height: 1.1; margin: 0 0 1.2rem;
}
.notice {
    background: var(--cream-2); border-left: 4px solid var(--gold); padding: .8rem 1rem;
    border-radius: 0 10px 10px 0; margin: 0 0 1.2rem; font-weight: 600;
}
.facts { margin: 0 0 1.8rem; display: grid; gap: .9rem; padding: 1.1rem 1.3rem; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.facts div { display: grid; grid-template-columns: 6.5rem 1fr; gap: .75rem; }
.facts dt { font-weight: 700; color: var(--gold-ink); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; padding-top: .2rem; }
.facts dd { margin: 0; }
.button {
    display: inline-block; margin-top: 1.5rem; padding: .9rem 1.6rem; border-radius: 999px;
    background: var(--burgundy); color: #fff; text-decoration: none; font-weight: 700;
    transition: background .2s, transform .2s;
}
.button:hover { background: var(--burgundy-dark); color: #fff; transform: translateY(-1px); }
.article-figure { margin: 1.5rem 0 2rem; }
.article-figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

@media (max-width: 820px) {
    .detail-grid { grid-template-columns: 1fr; }
    .detail-media { position: static; max-width: 30rem; }
    .facts div { grid-template-columns: 1fr; gap: .1rem; }
}

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #e9e0d3; margin-top: 2rem; padding: 3rem 0 1.5rem; }
.site-footer a { color: #f0d9a8; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-brand { font-family: var(--serif); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; margin: 0; line-height: 1.1; }
.footer-brand span { color: #e2889a; }
.footer-tag { font-family: var(--serif); font-style: italic; margin: .5rem 0 0; color: #cbbfae; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.footer-legal { margin: 2.5rem auto 0; padding-top: 1.25rem; border-top: 1px solid #3a312b; font-size: .95rem; color: #b9ac9a; }

/* ---------- Filtre par année et pagination ---------- */
.year-nav { margin: 0 0 2rem; }
.year-nav ul, .pagination ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.year-nav a, .pagination a, .pagination span.page {
    display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem;
    padding: .4rem 1rem; border-radius: 999px; font-weight: 700; text-decoration: none;
    color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
}
.year-nav a:hover, .pagination a:hover { background: var(--cream-2); color: var(--ink); }
.year-nav a[aria-current="page"], .pagination [aria-current="page"] { background: var(--burgundy); color: #fff; box-shadow: none; }
.pagination { margin-top: 2.5rem; }
.pagination .disabled { opacity: .45; }
.pagination-info { text-align: center; color: var(--muted); font-size: .95rem; margin: 1rem 0 0; }

/* ---------- Pages d'erreur ---------- */
.error-page { padding: clamp(3rem, 8vw, 6rem) 0; }
.error-icon { width: 3.2rem; height: 4.4rem; color: var(--burgundy); margin: 0 auto .5rem; display: block; }
.error-code {
    font-family: var(--serif); font-weight: 800; font-size: clamp(5rem, 18vw, 9rem);
    line-height: 1; margin: 0 0 .5rem; color: var(--burgundy); letter-spacing: -.02em;
}
.error-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }
.error-actions .button { margin-top: 0; }
.button-light { background: transparent; color: var(--burgundy); box-shadow: inset 0 0 0 2px var(--burgundy); }
.button-light:hover { background: var(--burgundy); color: #fff; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .card:hover, .card:focus-within { transform: none; }
}
