/* ==========================================================================
   JM Date — jmdate.org
   Monopage "magazine" : papier crème, serif Libre Baskerville, mise en page
   éditoriale (une + colonnes). Structure et style distincts des autres JM Date.
   ========================================================================== */

:root {
    --paper: #faf6ef;
    --paper-2: #fffdf9;
    --ink: #201b17;
    --ink-soft: #5b544d;
    --accent: #c3123f;
    --accent-dark: #96092f;
    --line: #e3d9cb;
    --serif: "Libre Baskerville", Georgia, serif;
    --sans: "Inter", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }

/* === Bandeau titre === */
.masthead {
    border-bottom: 3px double var(--ink);
    background: var(--paper);
}
.masthead-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 1.1rem 1.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.mast-logo { height: 40px; width: auto; }
.mast-edition {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

/* === Corps === */
.issue { max-width: 1080px; margin: 0 auto; padding: 2.6rem 1.6rem 3rem; }

/* === Une === */
.cover {
    display: grid;
    grid-template-columns: 1.5fr 0.9fr;
    gap: 2.6rem;
    align-items: start;
    padding-bottom: 2.6rem;
    border-bottom: 1px solid var(--line);
}
.rubric {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.8rem;
}
.cover-story h1 {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(2rem, 4.6vw, 3.2rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
}
.standfirst {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--ink-soft);
    margin: 1.1rem 0 1.6rem;
}
.cover-media {
    display: flex;
    gap: 1.8rem;
    align-items: center;
    margin-top: 1.8rem;
}
.cover-highlights {
    list-style: none;
    flex: 1;
}
.cover-highlights li {
    position: relative;
    padding: 0 0 0 1.4rem;
    margin-bottom: 1.1rem;
    font-size: 0.98rem;
    color: var(--ink-soft);
    line-height: 1.5;
}
.cover-highlights li:last-child { margin-bottom: 0; }
.cover-highlights li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.5em;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
}
.cover-highlights strong { color: var(--ink); font-weight: 700; }

.cover-figure { margin: 0; flex: none; }
.cover-figure img {
    width: 100%;
    max-width: 260px;
    border-radius: 14px;
    border: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(32, 27, 23, 0.18);
    display: block;
}
.cover-figure figcaption {
    font-size: 0.8rem;
    color: var(--ink-soft);
    font-style: italic;
    margin-top: 0.6rem;
    max-width: 260px;
    padding-left: 0.6rem;
    border-left: 2px solid var(--accent);
}

/* === Encart abonnement / formulaire === */
.subscribe { position: sticky; top: 1.5rem; }
.subscribe-card {
    background: var(--ink);
    color: #fff;
    border-radius: 10px;
    padding: 1.8rem 1.5rem 1.5rem;
    box-shadow: 0 18px 44px rgba(32, 27, 23, 0.28);
}
.sub-kicker {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #f4a9bd;
    font-weight: 600;
}
.subscribe-card h2 {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.7rem;
    margin-top: 0.35rem;
}
.sub-lede { color: #cfc7be; font-size: 0.9rem; margin: 0.25rem 0 1.3rem; }
.sub-note { text-align: center; margin-top: 1rem; font-size: 0.74rem; color: #a49c93; }

/* Formulaire injecté */
.form-embed { min-height: 300px; }
.form-embed iframe { width: 100% !important; border: 0; border-radius: 6px; }
.form-embed input:not([type="checkbox"]):not([type="radio"]),
.form-embed select,
.form-embed textarea {
    width: 100%;
    padding: 0.8rem 0.9rem;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    color: #fff;
    font-family: var(--sans);
    font-size: 0.95rem;
}
.form-embed input::placeholder, .form-embed textarea::placeholder { color: #b6aea6; }
.form-embed input:focus, .form-embed select:focus, .form-embed textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(195, 18, 63, 0.3);
}
.form-embed select option { color: #111; }
.form-embed input[type="checkbox"], .form-embed input[type="radio"] {
    width: 16px; height: 16px; margin: 0.15rem 0.55rem 0 0; accent-color: var(--accent); flex: none;
}
.form-embed label { display: flex; align-items: flex-start; font-size: 0.8rem; line-height: 1.45; color: #cfc7be; margin-bottom: 0.7rem; }
.form-embed label a { color: #f4a9bd; text-decoration: underline; }
.form-embed button,
.form-embed input[type="submit"],
.form-embed input[type="button"],
.form-embed [type="submit"],
.form-embed .btn,
.form-embed a.button {
    display: block;
    width: 100%;
    padding: 1rem 1.4rem;
    margin-top: 0.3rem;
    background: linear-gradient(135deg, #e0345f, var(--accent)) !important;
    color: #fff !important;
    font-family: var(--serif);
    font-size: 0.98rem;
    font-weight: 700;
    text-align: center;
    border: 0 !important;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.form-embed button:hover, .form-embed input[type="submit"]:hover, .form-embed .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(195, 18, 63, 0.4);
}

/* === Colonnes === */
.columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2.6rem 0;
    border-bottom: 1px solid var(--line);
}
.col h3 {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
    padding-top: 0.8rem;
    border-top: 2px solid var(--ink);
}
.col p { color: var(--ink-soft); font-size: 0.96rem; }

/* === Chiffres === */
.numbers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 2.4rem 0 0.5rem;
    text-align: center;
}
.numbers div { display: flex; flex-direction: column; }
.numbers strong {
    font-family: var(--serif);
    font-size: 2rem;
    color: var(--accent);
}
.numbers span { font-size: 0.8rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }

/* === Courrier des lecteurs (details / summary) === */
.readers {
    padding: 2.6rem 0 0.5rem;
    border-top: 1px solid var(--line);
    margin-top: 2.4rem;
}
.readers h2 {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.3rem;
    padding-top: 0.8rem;
    border-top: 2px solid var(--ink);
    display: inline-block;
}
.faq-item {
    background: var(--paper-2);
    border: 1px solid #e7ded0;
    border-radius: 8px;
    margin-bottom: 0.7rem;
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item:hover { border-color: rgba(195, 18, 63, 0.4); }
.faq-item[open] { border-color: var(--accent); }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 0.95rem 3rem 0.95rem 1.2rem;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1rem;
    color: var(--ink);
    position: relative;
    user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--sans);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--accent);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-body { padding: 0 1.2rem 1rem; }
.faq-body p { font-size: 0.93rem; line-height: 1.7; color: var(--ink-soft); }

/* === Colophon === */
.colophon {
    border-top: 3px double var(--ink);
    margin-top: 2.5rem;
    padding: 1.8rem 1.6rem;
    text-align: center;
}
.colophon p { font-size: 0.8rem; color: var(--ink-soft); max-width: 900px; margin: 0 auto; }
.colophon a { color: var(--accent); }

/* === Responsive === */
@media (max-width: 820px) {
    .cover { grid-template-columns: 1fr; gap: 1.8rem; }
    .cover-media { flex-direction: column; align-items: flex-start; gap: 1.4rem; }
    .subscribe { position: static; order: -1; }
    .columns { grid-template-columns: 1fr; gap: 1.4rem; }
    .numbers { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
}
