/* ============================================================================
   Le Lutin Farceur — Design system
   Typos : Mountains of Christmas (titres festifs), Quicksand (corps)
   Palette : rouge Noël, vert sapin, or, crème
   ============================================================================ */

:root {
    --rouge:      #c0392b;
    --rouge-soft: #d35445;
    --vert:       #2d6a4f;
    --vert-soft:  #40916c;
    --or:         #d4a017;
    --or-soft:    #e5bb3c;
    --bleu:       #2a1a4a;
    --creme:      #fbf6ec;
    --sable:      #f3ecdd;
    --border:     #e8dfc9;
    --border-strong: #d6c8a6;
    --texte:      #2a1a1a;
    --texte-soft: #6b5b4b;
    --radius:     10px;
    --radius-sm:  6px;
    --max:        1180px;
    --shadow-sm:  0 1px 2px rgba(42, 26, 26, .05);
    --shadow-md:  0 8px 24px rgba(42, 26, 26, .08);
    --shadow-lg:  0 16px 48px rgba(42, 26, 26, .12);
    --tr:         .18s ease;
}

* { box-sizing: border-box; }
html { font-size: 15px; }
body {
    margin: 0;
    font-family: 'Quicksand', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--texte);
    background: var(--creme);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Mountains of Christmas', 'Quicksand', Georgia, serif;
    font-weight: 700;
    color: var(--rouge);
    line-height: 1.15;
    letter-spacing: 0;
    margin: 0 0 .6em;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.25rem; font-family: 'Quicksand', sans-serif; font-weight: 600; color: var(--bleu); }
p  { margin: 0 0 .9em; }
a  { color: var(--rouge); text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--vert); }

/* Layout */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.site-main { padding: 30px 0 60px; min-height: 60vh; }

/* Header / Nav */
.site-header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(251, 246, 236, .94);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 2px solid var(--rouge);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 64px; }
.site-logo {
    font-family: 'Mountains of Christmas', serif;
    font-size: 1.6rem; font-weight: 700;
    color: var(--rouge); white-space: nowrap;
}
.site-logo span { color: var(--vert); font-style: normal; margin: 0 .2em; }
.site-logo:hover { color: var(--rouge); }

.site-nav { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.site-nav .nav-item { position: relative; }
.site-nav a {
    display: inline-block; padding: 8px 12px;
    font-size: 0.82rem; font-weight: 600;
    color: var(--texte-soft); border-radius: var(--radius-sm);
    transition: color var(--tr), background var(--tr);
    white-space: nowrap;
}
.site-nav a:hover { color: var(--rouge); background: var(--sable); }
.site-nav a.active { color: var(--rouge); background: var(--sable); }
.site-nav .nav-caret { font-size: .7rem; opacity: .65; margin-left: 2px; }

/* Dropdown desktop : visible au survol du nav-item parent */
.site-nav .nav-dropdown {
    position: absolute; top: 100%; left: 0;
    min-width: 230px;
    background: #fff;
    border: 1px solid var(--border);
    border-top: 3px solid var(--rouge);
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow-md);
    padding: 6px 0;
    display: none;
    flex-direction: column;
    z-index: 60;
    animation: navDropIn .18s ease;
}
@keyframes navDropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.site-nav .nav-item.has-dropdown:hover > .nav-dropdown,
.site-nav .nav-item.has-dropdown:focus-within > .nav-dropdown { display: flex; }
.site-nav .nav-item.has-dropdown::after {
    /* zone tampon invisible pour éviter la fermeture quand on descend vers le dropdown */
    content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 8px;
}
.site-nav .nav-dropdown a {
    display: block; padding: 9px 16px;
    border-radius: 0; background: transparent;
    font-size: .9rem; font-weight: 600;
    color: var(--texte); white-space: nowrap;
}
.site-nav .nav-dropdown a:hover { background: var(--sable); color: var(--rouge); }
.site-nav .nav-dropdown a.active { background: var(--sable); color: var(--rouge); }
.site-nav .nav-dropdown .nav-dropdown-parent {
    color: var(--rouge); font-weight: 700;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px; padding-bottom: 10px;
    font-size: .82rem; letter-spacing: .02em;
}
.site-nav .nav-dropdown .nav-dropdown-parent:hover { background: var(--rouge); color: #fff; }

.nav-toggle {
    display: none; width: 40px; height: 40px;
    background: none; border: 0; cursor: pointer;
    padding: 8px; flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--rouge); border-radius: 2px; }

@media (max-width: 860px) {
    .header-inner { height: 56px; }
    .nav-toggle { display: flex; }
    .site-nav {
        position: absolute; top: 56px; left: 0; right: 0;
        background: var(--creme); border-bottom: 1px solid var(--border);
        flex-direction: column; padding: 12px 24px 18px; gap: 0; display: none;
        align-items: stretch;
        max-height: calc(100vh - 56px); overflow-y: auto;
    }
    .site-nav.open { display: flex; }
    .site-nav .nav-item { width: 100%; }
    .site-nav a { padding: 10px 0; font-size: 0.95rem; }
    .site-nav .nav-caret { display: none; }
    /* Sur mobile, les dropdowns sont toujours visibles en cascade indentée */
    .site-nav .nav-dropdown {
        position: static; display: flex;
        border: none; border-radius: 0; box-shadow: none;
        background: transparent; padding: 0 0 6px 14px;
        animation: none; min-width: 0;
    }
    .site-nav .nav-dropdown a {
        padding: 7px 0; font-size: .88rem;
        color: var(--texte-soft);
        border-left: 2px solid var(--border);
        padding-left: 10px;
    }
    .site-nav .nav-dropdown .nav-dropdown-parent {
        color: var(--vert); border-bottom: none;
        margin-bottom: 0; padding-bottom: 7px;
    }
    .site-nav .nav-item.has-dropdown::after { display: none; }
}

/* Hero */
.hero { text-align: center; padding: 48px 0 36px; max-width: 780px; margin: 0 auto; }
.hero .eyebrow {
    display: inline-block; font-size: 0.75rem; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--vert); margin-bottom: 14px;
}
.hero h1 { font-size: 3rem; margin-bottom: 14px; }
.hero h1 em { font-style: italic; color: var(--vert); }
.hero p { font-size: 1.05rem; color: var(--texte-soft); max-width: 620px; margin: 0 auto 22px; }
.hero-actions { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Section titles */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 48px 0 20px; gap: 20px; }
.section-head h2 { margin: 0; font-size: 1.8rem; }
.section-head .eyebrow {
    font-size: 0.72rem; font-weight: 600; letter-spacing: .1em;
    text-transform: uppercase; color: var(--vert);
    display: block; margin-bottom: 4px;
}
.section-head .link-more { font-size: 0.85rem; color: var(--texte-soft); white-space: nowrap; }
.section-head .link-more:hover { color: var(--rouge); }

/* Categories grid */
.cats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.cat-card {
    display: block; background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px 22px 20px;
    transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
    color: var(--texte);
}
.cat-card:hover {
    transform: translateY(-2px); border-color: var(--rouge);
    box-shadow: var(--shadow-md); color: var(--texte);
}
.cat-card h3 { font-size: 1.1rem; margin: 0 0 6px; color: var(--rouge); font-family: 'Mountains of Christmas', serif; font-weight: 700; font-size: 1.5rem; }
.cat-card p { margin: 0; font-size: 0.85rem; color: var(--texte-soft); line-height: 1.55; }
.cat-card .arrow { display: inline-block; margin-top: 12px; font-size: 0.82rem; color: var(--vert); font-weight: 700; }

/* Modèles grid */
.modeles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.modele-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}
.modele-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--rouge); }
.modele-card a { display: block; text-decoration: none; color: inherit; }
.modele-card img {
    width: 100%; aspect-ratio: 297 / 210; object-fit: cover;
    display: block; background: var(--sable);
}
.modele-card h3 { margin: 14px 16px 4px; font-size: 1rem; font-weight: 600; color: var(--bleu); font-family: 'Quicksand', sans-serif; }
.modele-card p { margin: 0 16px 10px; color: var(--texte-soft); font-size: 0.82rem; line-height: 1.5; }
.modele-card .link-cta { display: inline-block; margin: 0 16px 16px; font-size: 0.82rem; color: var(--rouge); font-weight: 700; }
.modele-card .link-cta::after { content: ' →'; transition: margin var(--tr); }
.modele-card:hover .link-cta::after { margin-left: 4px; }

/* Breadcrumb */
.breadcrumb { font-size: 0.82rem; color: var(--texte-soft); margin: 4px 0 24px; }
.breadcrumb a { color: var(--texte-soft); }
.breadcrumb a:hover { color: var(--rouge); }
.breadcrumb .sep { margin: 0 8px; color: var(--border-strong); }

/* Page intro */
.page-intro { margin-bottom: 32px; }
.page-title { font-size: 2.4rem; margin: 0 0 12px; }
.page-intro-content { color: var(--texte-soft); font-size: 1rem; line-height: 1.65; }
.page-intro-content p:last-child { margin-bottom: 0; }

/* Fiche modèle : preview + form */
.modele-page {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px;
    background: #fff; padding: 32px; border-radius: var(--radius);
    border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
@media (max-width: 860px) { .modele-page { grid-template-columns: 1fr; padding: 20px; gap: 24px; } }

.apercu { position: relative; align-self: start; }
/* Seul le fond du modèle (image principale, #apercu-img) prend 100% et l'ombre.
   Les portraits, overlays et icônes superposables doivent rester sans ni border-radius
   ni box-shadow, sinon les coins arrondis + l'ombre dessinent une "carte blanche"
   parasite autour des PNG transparents. */
#apercu-img {
    width: 100%; display: block; border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}
.apercu-masque { position: absolute; background: #fff; pointer-events: none; }
.apercu-texte {
    position: absolute; line-height: 1.2; white-space: pre-wrap; word-wrap: break-word;
    pointer-events: none; font-family: Helvetica, Arial, sans-serif;
}

.modele-form h2 { font-size: 1.4rem; margin: 0 0 6px; color: var(--rouge); }
.modele-form .intro { color: var(--texte-soft); margin: 0 0 20px; font-size: 0.92rem; }

.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.85rem; color: var(--bleu); }
.form-field .required { color: var(--rouge); margin-left: 2px; }
.form-field input, .form-field textarea {
    width: 100%; padding: 10px 12px;
    border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    font: inherit; font-size: 0.92rem; background: #fff;
    transition: border-color var(--tr), box-shadow var(--tr);
}
.form-field input:focus, .form-field textarea:focus {
    outline: none; border-color: var(--rouge);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, .15);
}
.form-field textarea { resize: vertical; min-height: 86px; }
.field-hint { margin: 0 0 6px; font-size: 0.78rem; color: var(--texte-soft); font-style: italic; }

/* Buttons */
.btn {
    display: inline-block; padding: 11px 20px;
    background: var(--bleu); color: #fff;
    text-decoration: none; border-radius: var(--radius-sm);
    font-size: 0.9rem; font-weight: 700;
    border: 1px solid var(--bleu); cursor: pointer;
    font-family: inherit;
    transition: background var(--tr), transform var(--tr), box-shadow var(--tr);
}
.btn:hover { background: #3c2a5f; color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--bleu); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: var(--sable); border-color: var(--bleu); color: var(--bleu); }
.btn-primary {
    background: var(--rouge); color: #fff; border-color: var(--rouge);
    font-size: 1rem; padding: 13px 26px;
}
.btn-primary:hover { background: var(--rouge-soft); border-color: var(--rouge-soft); color: #fff; }

.rgpd-hint { margin-top: 14px; color: var(--texte-soft); font-size: 0.78rem; }

/* SEO block */
.page-seo {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px 36px; margin: 40px 0; box-shadow: var(--shadow-sm);
}
.page-seo h2 { margin-top: 0; font-size: 1.6rem; }
.page-seo h3 { font-size: 1.15rem; margin-top: 24px; font-family: 'Quicksand', sans-serif; color: var(--vert); }
.page-seo p, .page-seo li { color: var(--texte); font-size: 0.95rem; line-height: 1.7; }
.page-seo ul, .page-seo ol { padding-left: 20px; }
.page-seo li { margin-bottom: 6px; }
.page-seo a { color: var(--rouge); font-weight: 600; }
.page-seo a:hover { text-decoration: underline; }

.modeles-proches { margin-top: 48px; }

/* Footer */
.site-footer {
    background: var(--bleu); color: #d4c8ea;
    padding: 40px 0 28px; margin-top: 60px;
    font-size: 0.85rem;
    border-top: 4px solid var(--rouge);
}
.footer-cats { margin-bottom: 24px; }
.footer-cats strong {
    display: block; color: #fff;
    font-family: 'Mountains of Christmas', serif; font-weight: 700;
    font-size: 1.3rem; margin-bottom: 10px;
}
.footer-cats ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 18px; }
.footer-cats a { color: #d4c8ea; font-size: 0.85rem; transition: color var(--tr); }
.footer-cats a:hover { color: var(--or-soft); }
.footer-credits {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 18px; margin: 0; text-align: center; color: #a896c7;
}
.footer-credits a { color: #d4c8ea; }
.footer-credits a:hover { color: var(--or-soft); }

/* ============================================================================
   ADMIN
   ============================================================================ */
.admin-header { background: var(--bleu); color: #fff; padding: 12px 0; }
.admin-header .container { display: flex; align-items: center; justify-content: space-between; }
.admin-header h1 { margin: 0; font-size: 1.2rem; color: #fff; font-family: 'Mountains of Christmas', serif; }
.admin-header nav a { color: #fff; margin-left: 18px; text-decoration: none; font-size: 0.88rem; opacity: .85; }
.admin-header nav a:hover { opacity: 1; color: #fff; }

.admin-login {
    max-width: 380px; margin: 60px auto; background: #fff;
    padding: 30px; border-radius: var(--radius);
    border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.admin-login input {
    width: 100%; padding: 10px 12px;
    border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    margin-bottom: 14px; font: inherit; font-size: 0.92rem;
}
.admin-login .error { color: var(--rouge); margin-bottom: 12px; font-size: 0.88rem; }

.admin { padding: 24px; max-width: var(--max); margin: 0 auto; }
.admin section { margin-bottom: 34px; }
.admin h2 { font-size: 1.4rem; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 720px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi {
    background: #fff; padding: 18px; border-radius: var(--radius);
    border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.kpi-label { font-size: 0.72rem; color: var(--texte-soft); text-transform: uppercase; letter-spacing: .08em; }
.kpi-value { font-size: 1.7rem; font-weight: 700; color: var(--rouge); display: block; margin-top: 4px; font-family: 'Quicksand', sans-serif; }

.admin-table {
    width: 100%; border-collapse: collapse; background: #fff;
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border); font-size: 0.88rem;
}
.admin-table th, .admin-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.admin-table th { background: var(--sable); font-size: 0.78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--texte-soft); }
.admin-table tr:last-child td { border-bottom: 0; }

.chart-bars {
    display: flex; gap: 4px; align-items: flex-end; height: 160px;
    background: #fff; padding: 16px;
    border: 1px solid var(--border); border-radius: var(--radius);
}
.chart-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.chart-bar .bar { width: 100%; background: var(--rouge); border-radius: 3px 3px 0 0; min-height: 2px; }
.chart-bar .bar-label { font-size: 0.65rem; color: var(--texte-soft); margin-top: 4px; }

.pagination { margin-top: 20px; display: flex; gap: 16px; align-items: center; justify-content: center; }

/* ============================================================
   Portraits du lutin — grille de sélection et aperçu PDF
   ============================================================ */
.form-field-portrait { margin-bottom: 24px; }
.portrait-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
    margin-top: 8px;
}
.portrait-card {
    padding: 4px;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .15s, transform .12s, box-shadow .15s;
}
.portrait-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 6px;
}
.portrait-card:hover {
    border-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.15);
}
.portrait-card.is-active {
    border-color: #2d6a4f;
    background: rgba(45, 106, 79, 0.08);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.2);
}
.portrait-card.is-active::after { content: "✓"; }

.apercu-portrait {
    position: absolute;
    display: block;
    pointer-events: none;
    user-select: none;
    box-shadow: none;
    border-radius: 0;
    /* La largeur est définie dynamiquement par JS/PHP via style inline (largeur_mm). */
}

/* ---------- Téléchargement vierge ---------- */
.telecharger-vierge {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 36px;
    margin: 40px 0;
    box-shadow: var(--shadow-sm);
    text-align: center;
}
.telecharger-vierge h2 { margin-top: 0; font-size: 1.3rem; }
.telecharger-vierge p { color: var(--texte); font-size: 0.92rem; line-height: 1.7; max-width: 640px; margin: 0 auto 20px; }
.telecharger-vierge-media {
    margin: 20px auto 0;
    max-width: 750px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
}
.telecharger-vierge-media img { display: block; width: 100%; height: auto; }
.telecharger-vierge-media figcaption {
    font-size: 0.78rem;
    color: #888;
    padding: 8px 12px;
    text-align: center;
    font-style: italic;
    background: #fafafa;
    border-top: 1px solid var(--border);
}
.telecharger-vierge-texte {
    max-width: 640px;
    margin: 20px auto 0;
    color: var(--texte);
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: left;
}
.telecharger-vierge-texte p { margin: 0 0 10px; }
.telecharger-vierge-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 4px;
}

/* ============================================================================
   BLOG
   ============================================================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
    margin-top: 20px;
}
.blog-card {
    background: #fff;
    border: 1px solid var(--border);
    border-top: 4px solid var(--rouge);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
    display: flex;
    flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card-body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.blog-card-cat {
    display: inline-block;
    font-size: 0.72rem; font-weight: 700;
    color: var(--vert);
    text-transform: uppercase; letter-spacing: .08em;
    margin-bottom: 8px;
}
.blog-card h2 {
    font-family: 'Mountains of Christmas', serif;
    font-size: 1.4rem; font-weight: 700;
    color: var(--rouge);
    margin: 0 0 10px; line-height: 1.2;
}
.blog-card h2 a { color: inherit; }
.blog-card h2 a:hover { color: var(--vert); }
.blog-card-excerpt {
    color: var(--texte-soft);
    font-size: 0.92rem; line-height: 1.6;
    margin-bottom: 14px; flex: 1;
}
.blog-card-meta {
    font-size: 0.78rem; color: var(--texte-soft);
    display: flex; flex-wrap: wrap; gap: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-bottom: 12px;
}
.blog-card-more {
    color: var(--rouge); font-weight: 700; font-size: 0.88rem;
    align-self: flex-start;
}
.blog-card-more:hover { color: var(--vert); }

/* Article */
.blog-article-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 28px;
}
.blog-article-cat {
    display: inline-block;
    background: var(--rouge); color: #fff;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700; font-size: 0.72rem;
    text-transform: uppercase; letter-spacing: .08em;
    padding: 5px 14px; border-radius: 999px;
    margin-bottom: 14px;
}
.blog-article-title {
    font-size: clamp(1.8rem, 4.6vw, 2.8rem);
    margin: 0 0 16px;
}
.blog-article-meta {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 18px; font-size: 0.88rem; color: var(--texte-soft);
}

.blog-article-cover {
    max-width: 960px; margin: 0 auto 32px;
}
.blog-article-cover img {
    width: 100%; height: auto;
    max-height: 480px; object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    display: block;
}

.blog-article-body {
    max-width: 760px; margin: 0 auto;
    background: #fff;
    padding: 36px 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
@media (max-width: 720px) { .blog-article-body { padding: 24px 22px; } }
.blog-article-body p,
.blog-article-body ul,
.blog-article-body ol {
    font-size: 1.02rem; line-height: 1.75;
    color: var(--texte);
    margin: 0 0 1.2em;
}
.blog-article-body h2 {
    font-family: 'Mountains of Christmas', serif;
    font-size: 1.8rem; color: var(--rouge);
    margin: 2em 0 0.6em; line-height: 1.2;
}
.blog-article-body h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.2rem; color: var(--bleu);
    font-weight: 700;
    margin: 1.6em 0 0.5em;
}
.blog-article-body ul, .blog-article-body ol { padding-left: 1.4em; }
.blog-article-body li { margin-bottom: .5em; }
.blog-article-body a {
    color: var(--rouge); font-weight: 600;
    border-bottom: 1px dotted rgba(192, 57, 43, .4);
}
.blog-article-body a:hover { color: var(--vert); border-bottom-color: var(--vert); }
.blog-article-body blockquote {
    border-left: 4px solid var(--or);
    background: var(--creme);
    padding: 16px 22px;
    margin: 1.6em 0;
    font-style: italic;
    color: var(--texte-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.blog-article-body strong { color: var(--bleu); }
.blog-article-cta {
    background: var(--bleu);
    color: #fff;
    padding: 28px 32px;
    border-radius: var(--radius);
    margin: 2.2em 0 1.2em;
    text-align: center;
}
.blog-article-cta h3 { color: #fff; margin: 0 0 8px; font-family: 'Mountains of Christmas', serif; font-size: 1.6rem; }
.blog-article-cta p { color: rgba(255,255,255,.82); margin: 0 0 16px; font-size: 0.95rem; }
.blog-article-cta .btn-primary { background: var(--or); border-color: var(--or); color: var(--bleu); }
.blog-article-cta .btn-primary:hover { background: var(--or-soft); border-color: var(--or-soft); color: var(--bleu); }
.blog-article-footer-meta {
    margin: 24px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--texte-soft);
    text-align: center;
}

.blog-related {
    max-width: 960px; margin: 48px auto 0;
}
.blog-related h2 {
    text-align: center;
    font-size: 1.7rem;
    margin-bottom: 24px;
}
.blog-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.blog-related-card {
    background: #fff;
    border: 1px solid var(--border);
    border-top: 3px solid var(--or);
    border-radius: var(--radius);
    padding: 20px 22px;
    transition: transform var(--tr), box-shadow var(--tr);
}
.blog-related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.blog-related-card .cat {
    font-size: 0.7rem; font-weight: 700;
    color: var(--vert);
    text-transform: uppercase; letter-spacing: .08em;
}
.blog-related-card h3 {
    font-family: 'Mountains of Christmas', serif;
    font-size: 1.25rem; color: var(--rouge);
    margin: 6px 0 8px;
}
.blog-related-card h3 a { color: inherit; }
.blog-related-card h3 a:hover { color: var(--vert); }
.blog-related-card p {
    font-size: 0.88rem; color: var(--texte-soft);
    margin: 0 0 10px; line-height: 1.55;
}
.blog-related-card .read-more {
    color: var(--rouge); font-weight: 700; font-size: 0.85rem;
}
.blog-related-card .read-more:hover { color: var(--vert); }

.blog-card-img { display: block; overflow: hidden; }
.blog-card-img img {
    width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
    display: block; background: var(--sable);
}

.admin-preview-banner {
    background: var(--or);
    color: var(--bleu);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    margin: 12px 0 18px;
    text-align: center;
}

/* ============================================================ */
/*  Fiches produits affiliées Amazon                            */
/* ============================================================ */

.produit-head .eyebrow {
    display: inline-block;
    font-size: .75rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--vert); margin-bottom: 10px;
}

.produit-cta-box {
    background: linear-gradient(135deg, #fff8e7 0%, #fff 100%);
    border: 2px solid var(--or);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin: 20px 0 32px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.produit-cta-box.produit-cta-bottom { margin: 32px 0 20px; }
.produit-cta-intro {
    margin: 0 0 14px; color: var(--texte-soft); font-size: .95rem;
}
.produit-cta-link {
    font-size: 1rem; padding: 14px 24px; font-weight: 700;
}
.produit-cta-mention {
    margin: 12px 0 0; color: var(--texte-soft);
    font-size: .78rem; font-style: italic;
}

.produit-body h2 {
    color: var(--rouge);
    font-family: 'Mountains of Christmas', serif;
    font-weight: 700;
    margin-top: 28px;
}
.produit-body ul, .produit-body ol { padding-left: 22px; }
.produit-body li { margin-bottom: 6px; }

/* ============================================================ */
/*  Page transverse / hub de contenu                            */
/* ============================================================ */

.page-related-links {
    margin: 40px 0 20px;
    background: var(--sable);
    border-radius: var(--radius);
    padding: 20px 24px;
    border: 1px solid var(--border);
}
.page-related-links h2 {
    margin: 0 0 12px;
    font-size: 1.2rem;
    color: var(--bleu);
}
.page-related-list {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
}
.page-related-list a {
    display: block; padding: 8px 12px; border-radius: var(--radius-sm);
    background: #fff; border: 1px solid var(--border);
    color: var(--rouge); font-weight: 600; font-size: .9rem;
    transition: var(--tr);
}
.page-related-list a:hover {
    background: var(--rouge); color: #fff; border-color: var(--rouge);
    transform: translateY(-1px);
}


/* ============================================================ */
/*  Page « Prénoms de lutin farceur » · version festive          */
/* ============================================================ */

.prenoms-page { position: relative; padding-bottom: 80px; }

/* ---------- Section heads ---------- */
.prenoms-section-head { text-align: center; margin: 56px auto 28px; max-width: 720px; }
.prenoms-section-head h2 {
    margin: 6px 0 8px;
    font-family: 'Mountains of Christmas', serif;
    color: var(--rouge);
    font-size: 2.1rem;
}
.prenoms-section-head p { color: var(--texte-soft); margin: 0; font-size: .98rem; line-height: 1.55; }
.prenoms-section-eyebrow {
    display: inline-block;
    background: var(--sable);
    color: var(--vert);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
}

/* ---------- HERO ---------- */
.prenoms-hero {
    position: relative;
    margin: 24px 0 0;
    padding: 50px 28px 44px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--bleu) 0%, #4a2e7d 60%, var(--rouge) 100%);
    color: #fff;
    text-align: center;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.prenoms-hero-deco { position: absolute; inset: 0; pointer-events: none; }
.prenoms-hero-deco .snow,
.prenoms-hero-deco .star {
    position: absolute; color: rgba(255,255,255,.75);
    font-size: 1.4rem; animation: floatSnow 9s ease-in-out infinite;
}
.prenoms-hero-deco .s1 { top: 10%;  left: 8%;  animation-delay: 0s;   }
.prenoms-hero-deco .s2 { top: 70%;  left: 92%; animation-delay: 1.4s; font-size: 1.1rem; }
.prenoms-hero-deco .s3 { top: 30%;  left: 80%; animation-delay: 2.6s; }
.prenoms-hero-deco .s4 { top: 80%;  left: 15%; animation-delay: 3.5s; font-size: 1.6rem; }
.prenoms-hero-deco .s5 { top: 18%;  left: 50%; animation-delay: 4.2s; font-size: 1rem; }
.prenoms-hero-deco .s6 { top: 55%;  left: 5%;  animation-delay: 5s; }
.prenoms-hero-deco .star { color: rgba(255, 217, 102, .9); }
.prenoms-hero-deco .st1 { top: 22%; left: 22%; font-size: 1.2rem; animation-delay: .6s; }
.prenoms-hero-deco .st2 { top: 60%; left: 75%; font-size: 1rem;   animation-delay: 2s; }
.prenoms-hero-deco .st3 { top: 40%; left: 65%; font-size: 1.4rem; animation-delay: 3.8s; }
@keyframes floatSnow {
    0%,100% { transform: translateY(0) rotate(0deg); opacity: .65; }
    50%     { transform: translateY(-14px) rotate(20deg); opacity: 1; }
}
.prenoms-hero-eyebrow {
    display: inline-block; background: rgba(255,255,255,.18); backdrop-filter: blur(8px);
    color: #fff; padding: 6px 16px; border-radius: 999px;
    font-size: .85rem; font-weight: 700; letter-spacing: .05em;
    border: 1px solid rgba(255,255,255,.25);
}
.prenoms-hero-title {
    font-family: 'Mountains of Christmas', serif;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    margin: 18px 0 12px;
    color: #fff;
    line-height: 1.1;
}
.prenoms-hero-title em { color: var(--or-soft); font-style: italic; }
.prenoms-hero-sub { max-width: 580px; margin: 0 auto 26px; font-size: 1.02rem; opacity: .92; line-height: 1.55; }
.prenoms-picker-box {
    background: rgba(255,255,255,.95);
    color: var(--texte);
    border-radius: 16px;
    padding: 24px 22px;
    max-width: 560px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
    border: 3px solid var(--or);
}
.prenoms-picker-display {
    display: flex; align-items: center; justify-content: center;
    gap: 14px;
    min-height: 70px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--creme);
    border: 2px dashed var(--border-strong);
    margin-bottom: 16px;
    transition: transform .25s ease;
}
.prenoms-picker-display.rolling { transform: scale(.97); background: var(--sable); }
.prenoms-picker-display.reveal  { animation: revealPop .55s cubic-bezier(.34,1.56,.64,1); }
@keyframes revealPop {
    0%   { transform: scale(.6); opacity: 0; }
    60%  { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
.prenoms-picker-emoji { font-size: 2rem; }
.prenoms-picker-name {
    font-family: 'Mountains of Christmas', serif;
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    color: var(--rouge);
    font-weight: 700;
}
.prenoms-picker-controls { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.prenoms-picker-btn { font-size: .92rem; padding: 11px 18px; }

/* ---------- QUIZ ---------- */
.prenoms-quiz-box {
    max-width: 720px; margin: 0 auto;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 18px;
    padding: 28px 28px 32px;
    box-shadow: var(--shadow-md);
    position: relative;
}
.prenoms-quiz-progress {
    height: 8px; background: var(--sable);
    border-radius: 999px; overflow: hidden; margin-bottom: 22px;
}
.prenoms-quiz-progress-bar {
    height: 100%; background: linear-gradient(90deg, var(--vert), var(--or));
    transition: width .4s ease;
}
.prenoms-quiz-num {
    text-transform: uppercase; letter-spacing: .1em;
    font-size: .75rem; font-weight: 700; color: var(--vert);
    margin-bottom: 8px;
}
.prenoms-quiz-q {
    font-family: 'Mountains of Christmas', serif;
    color: var(--bleu); font-size: 1.6rem;
    margin: 0 0 18px;
}
.prenoms-quiz-options {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.prenoms-quiz-opt {
    text-align: left;
    background: var(--creme);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: .95rem; font-family: inherit; color: var(--texte);
    cursor: pointer; transition: var(--tr);
    line-height: 1.4;
}
.prenoms-quiz-opt:hover {
    background: var(--rouge); color: #fff; border-color: var(--rouge);
    transform: translateY(-2px); box-shadow: var(--shadow-sm);
}
.prenoms-quiz-result { text-align: center; padding: 8px 0; }
.prenoms-quiz-result-emoji { font-size: 3rem; display: block; margin-bottom: 6px; }
.prenoms-quiz-result-label { color: var(--texte-soft); margin: 0 0 14px; }
.prenoms-quiz-result-name {
    font-family: 'Mountains of Christmas', serif;
    font-size: 3rem; color: var(--rouge); font-weight: 700;
    margin: 14px 0 22px;
    animation: revealPop .6s cubic-bezier(.34,1.56,.64,1);
}
.prenoms-quiz-result-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 540px) {
    .prenoms-quiz-options { grid-template-columns: 1fr; }
    .prenoms-quiz-result-name { font-size: 2.2rem; }
}

/* ---------- GÉNÉRATEUR THÉMA ---------- */
.prenoms-themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}
.prenoms-theme-card {
    background: var(--theme-gradient, linear-gradient(135deg, var(--sable), #fff));
    border: none;
    border-radius: 18px;
    padding: 20px 20px 16px;
    box-shadow: var(--shadow-md);
    display: flex; flex-direction: column;
    transition: transform .22s ease;
    color: var(--texte);
}
.prenoms-theme-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.prenoms-theme-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.prenoms-theme-emoji {
    font-size: 1.8rem;
    background: rgba(255,255,255,.7);
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.prenoms-theme-card h3 {
    margin: 0;
    font-family: 'Mountains of Christmas', serif;
    font-size: 1.5rem;
    color: var(--theme-accent, var(--rouge));
}
.prenoms-theme-desc {
    margin: 0 0 14px; font-size: .85rem;
    color: rgba(0,0,0,.65); font-style: italic;
}
.prenoms-theme-list {
    list-style: none; counter-reset: nm; padding: 0; margin: 0 0 14px;
    flex: 1;
    display: flex; flex-direction: column; gap: 4px;
    transition: opacity .18s ease;
}
.prenoms-theme-list.fading { opacity: 0; }
.prenoms-theme-list li { counter-increment: nm; display: block; }
.prenoms-theme-list li::before {
    content: counter(nm); display: inline-block; width: 22px;
    color: rgba(0,0,0,.45); font-weight: 700; font-size: .8rem;
}
.prenoms-shuffle {
    align-self: flex-start;
    font-size: .85rem; padding: 8px 14px;
    background: rgba(255,255,255,.85);
    color: var(--theme-accent, var(--bleu));
    border-color: rgba(0,0,0,.1);
}
.prenoms-shuffle:hover { background: #fff; border-color: var(--theme-accent, var(--rouge)); color: var(--theme-accent, var(--rouge)); }

/* Pills de prénom (réutilisé partout) */
.prenoms-name-pill {
    display: inline-block;
    background: rgba(255,255,255,.85);
    border: 1px solid rgba(0,0,0,.1);
    color: var(--texte);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: .92rem;
    font-family: inherit;
    cursor: pointer;
    transition: var(--tr);
    font-weight: 600;
}
.prenoms-name-pill:hover {
    background: var(--rouge); color: #fff; border-color: var(--rouge);
    transform: scale(1.05);
}
.prenoms-name-pill.pop { animation: popName .35s ease; }
@keyframes popName {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.18); background: var(--or); color: var(--bleu); }
    100% { transform: scale(1); }
}

/* ---------- TOP 2026 médailles ---------- */
.prenoms-top2026-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}
.prenoms-top2026-col {
    background: #fff; border-radius: 18px; padding: 22px 24px;
    box-shadow: var(--shadow-md);
    border-top: 6px solid var(--rouge);
}
.prenoms-top2026-col[data-gender="girl"] { border-top-color: #d63384; }
.prenoms-top2026-col h3 {
    margin: 0 0 14px;
    font-family: 'Mountains of Christmas', serif;
    color: var(--bleu); font-size: 1.5rem;
}
.prenoms-medals {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 8px;
    counter-reset: rk;
}
.prenoms-medals li {
    display: flex; align-items: center; gap: 12px;
    padding: 8px 10px; border-radius: 10px;
    background: var(--creme);
    transition: var(--tr);
}
.prenoms-medals li:hover { background: var(--sable); transform: translateX(4px); }
.prenoms-medals .medal-rank {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--border); color: var(--texte-soft);
    font-weight: 800; font-size: .85rem;
    flex-shrink: 0;
}
.prenoms-medals li.medal-1 .medal-rank { background: #ffd700; color: #7a5a00; box-shadow: 0 2px 8px rgba(255,215,0,.5); }
.prenoms-medals li.medal-2 .medal-rank { background: #c0c0c0; color: #404040; }
.prenoms-medals li.medal-3 .medal-rank { background: #cd7f32; color: #fff; }
.prenoms-medals li.medal-1 .medal-rank::before { content: '🥇'; }
.prenoms-medals li.medal-2 .medal-rank::before { content: '🥈'; }
.prenoms-medals li.medal-3 .medal-rank::before { content: '🥉'; }
.prenoms-medals li.medal-1 .medal-rank,
.prenoms-medals li.medal-2 .medal-rank,
.prenoms-medals li.medal-3 .medal-rank { font-size: 0; }
.prenoms-medals li.medal-1 .medal-rank::before,
.prenoms-medals li.medal-2 .medal-rank::before,
.prenoms-medals li.medal-3 .medal-rank::before { font-size: 1.4rem; }

/* ---------- TIMELINE ---------- */
.prenoms-timeline-track {
    display: flex; gap: 16px; overflow-x: auto;
    padding: 8px 4px 18px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.prenoms-timeline-card {
    flex: 0 0 220px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    scroll-snap-align: start;
    position: relative;
}
.prenoms-timeline-card::before {
    content: ''; position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
    width: 16px; height: 16px; background: var(--or); border-radius: 50%;
    border: 3px solid #fff; box-shadow: var(--shadow-sm);
}
.prenoms-timeline-year {
    font-family: 'Mountains of Christmas', serif;
    color: var(--rouge); font-size: 1.8rem; font-weight: 700;
    text-align: center; margin-bottom: 10px;
}
.prenoms-timeline-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 4px;
}
.prenoms-timeline-list li { font-size: .92rem; }

/* ---------- EXPLORE 300 ---------- */
.prenoms-explore-controls {
    display: flex; justify-content: space-between; gap: 14px;
    flex-wrap: wrap;
    margin: 8px 0 16px;
}
.prenoms-tabs { display: flex; gap: 6px; }
.prenoms-tab {
    background: #fff; border: 2px solid var(--border);
    color: var(--texte-soft);
    border-radius: 999px; padding: 8px 18px;
    font-size: .9rem; font-weight: 700;
    cursor: pointer; font-family: inherit;
    transition: var(--tr);
}
.prenoms-tab:hover { border-color: var(--rouge); color: var(--rouge); }
.prenoms-tab.active { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.prenoms-search-wrap {
    position: relative; flex: 1; min-width: 200px; max-width: 320px;
}
.prenoms-search-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    pointer-events: none; opacity: .55;
}
.prenoms-search {
    width: 100%;
    border: 2px solid var(--border);
    border-radius: 999px;
    padding: 9px 14px 9px 38px;
    font-size: .95rem; font-family: inherit;
    background: #fff;
    transition: var(--tr);
}
.prenoms-search:focus { outline: none; border-color: var(--rouge); box-shadow: 0 0 0 3px rgba(192,57,43,.15); }

.prenoms-alpha {
    display: flex; flex-wrap: wrap; gap: 4px;
    margin: 4px 0 18px;
    padding: 12px 14px;
    background: var(--sable);
    border-radius: 14px;
}
.prenoms-alpha-btn {
    flex: 1; min-width: 32px;
    background: #fff; border: 1px solid var(--border);
    color: var(--texte-soft);
    border-radius: 8px; padding: 6px 4px;
    font-size: .82rem; font-weight: 700; font-family: inherit;
    cursor: pointer; transition: var(--tr);
}
.prenoms-alpha-btn:hover { background: var(--or-soft); color: var(--bleu); border-color: var(--or); }
.prenoms-alpha-btn.active { background: var(--bleu); color: #fff; border-color: var(--bleu); }

.prenoms-cloud {
    display: flex; flex-wrap: wrap; gap: 6px 8px;
    padding: 18px 16px;
    background: var(--creme);
    border-radius: 14px;
    border: 1px solid var(--border);
    min-height: 80px;
}
.prenoms-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fff; border: 1px solid var(--border);
    color: var(--texte);
    border-radius: 999px;
    padding: 6px 14px 6px 8px;
    font-size: .9rem; font-weight: 600;
    font-family: inherit;
    cursor: pointer; transition: var(--tr);
}
.prenoms-pill:hover {
    background: var(--rouge); color: #fff; border-color: var(--rouge);
    transform: translateY(-2px); box-shadow: var(--shadow-sm);
}
.prenoms-pill[data-gender="girl"]:hover { background: #d63384; border-color: #d63384; }
.prenoms-pill-icon { font-size: .9rem; opacity: .85; }
.prenoms-pill.pop { animation: popName .35s ease; }
.prenoms-empty {
    text-align: center; color: var(--texte-soft);
    padding: 24px 0; font-style: italic;
}

/* ---------- TIPS ---------- */
.prenoms-tips-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.prenoms-tip-card {
    background: #fff; border: 1px solid var(--border);
    border-left: 5px solid var(--or);
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--tr);
}
.prenoms-tip-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-left-color: var(--rouge); }
.prenoms-tip-num {
    position: absolute; top: -12px; right: 16px;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--rouge); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; box-shadow: var(--shadow-sm);
}
.prenoms-tip-card h3 {
    margin: 0 0 6px; font-family: 'Mountains of Christmas', serif;
    color: var(--vert); font-size: 1.25rem;
}
.prenoms-tip-card p { margin: 0; color: var(--texte-soft); font-size: .92rem; line-height: 1.55; }

/* ---------- Panier favoris flottant ---------- */
.prenoms-favoris {
    position: fixed; bottom: 22px; right: 22px;
    z-index: 100;
}
.prenoms-favoris-toggle {
    background: var(--rouge); color: #fff;
    border: 3px solid #fff;
    border-radius: 999px;
    padding: 12px 18px;
    font-size: 1rem; font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 8px;
    transition: var(--tr);
}
.prenoms-favoris-toggle:hover { transform: scale(1.05); background: var(--rouge-soft); }
.prenoms-favoris-panel {
    position: absolute; bottom: 62px; right: 0;
    width: 280px;
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--or);
}
.prenoms-favoris-panel h3 { margin: 0 0 12px; font-family: 'Mountains of Christmas', serif; color: var(--rouge); font-size: 1.3rem; }
.prenoms-favoris-list { list-style: none; padding: 0; margin: 0 0 12px; max-height: 220px; overflow-y: auto; }
.prenoms-favoris-list li {
    display: flex; justify-content: space-between; align-items: center;
    padding: 6px 4px; border-bottom: 1px dotted var(--border);
    font-size: .92rem;
}
.prenoms-favoris-list li:last-child { border-bottom: none; }
.prenoms-favoris-remove {
    background: none; border: none; color: var(--texte-soft);
    cursor: pointer; font-size: 1rem; padding: 2px 6px; border-radius: 4px;
    transition: var(--tr);
}
.prenoms-favoris-remove:hover { background: var(--rouge); color: #fff; }
.prenoms-favoris-actions { display: flex; gap: 6px; }
.prenoms-favoris-actions .btn { flex: 1; font-size: .82rem; padding: 8px 10px; }

/* ---------- Toast ---------- */
.prenoms-toast {
    position: fixed; bottom: 24px; left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bleu); color: #fff;
    padding: 12px 22px; border-radius: 999px;
    font-size: .92rem; font-weight: 600;
    box-shadow: var(--shadow-lg);
    opacity: 0; transition: transform .25s ease, opacity .25s ease;
    z-index: 99;
}
.prenoms-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
    .prenoms-hero { padding: 36px 18px 32px; border-radius: 14px; }
    .prenoms-section-head h2 { font-size: 1.75rem; }
    .prenoms-favoris { bottom: 12px; right: 12px; }
    .prenoms-favoris-panel { width: calc(100vw - 32px); max-width: 320px; right: 0; }
    .prenoms-explore-controls { flex-direction: column; align-items: stretch; }
    .prenoms-search-wrap { max-width: none; }
}

/* ============================================================================
   Coloriages de Noël · galerie + lightbox
   ============================================================================ */
.coloriage-back { margin: 6px 0 18px; font-weight: 600; }
.coloriage-empty { padding: 30px; text-align: center; color: var(--texte-soft); background: var(--creme); border-radius: var(--radius); }

.coloriage-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 22px;
    margin: 6px 0 36px;
}
.coloriage-card {
    margin: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--tr), transform var(--tr);
}
.coloriage-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.coloriage-thumb {
    position: relative;
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    background: #fff;
    cursor: zoom-in;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
/* Blanchit les fonds gris clairs / le bruit JPEG, sans toucher au blanc ni aux traits. */
.coloriage-thumb img { width: 100%; height: 100%; object-fit: contain; display: block;
    filter: brightness(1.05) contrast(1.4); -webkit-filter: brightness(1.05) contrast(1.4); }
.coloriage-zoom {
    position: absolute;
    inset: auto 0 0 0;
    padding: 7px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(transparent, rgba(42, 26, 26, .55));
    opacity: 0;
    transition: opacity var(--tr);
}
.coloriage-thumb:hover .coloriage-zoom, .coloriage-thumb:focus-visible .coloriage-zoom { opacity: 1; }
.coloriage-cap {
    padding: 8px 12px 0;
    font-weight: 600;
    color: var(--bleu);
    font-size: 0.92rem;
}
.coloriage-actions {
    display: flex;
    gap: 8px;
    padding: 10px 12px 12px;
    margin-top: auto;
}
.coloriage-actions .btn { flex: 1; text-align: center; }
.btn-sm { padding: 7px 10px; font-size: 0.82rem; }

.coloriage-themes { margin: 10px 0 40px; }
.coloriage-themes h2 { margin-bottom: 16px; }
.coloriage-themes-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
}
.coloriage-themes-grid a {
    display: block;
    padding: 12px 14px;
    background: var(--creme);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--bleu);
    transition: background var(--tr), border-color var(--tr), color var(--tr);
}
.coloriage-themes-grid a:hover { background: #fff; border-color: var(--rouge); color: var(--rouge); }
.coloriage-texte { margin-bottom: 40px; }

/* Lightbox */
.coloriage-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(20, 12, 12, .85);
}
.coloriage-lightbox[hidden] { display: none; }
.cl-figure {
    margin: 0;
    max-width: min(900px, 94vw);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cl-figure img {
    max-width: 100%;
    max-height: 72vh;
    background: #fff;
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
    object-fit: contain;
    filter: brightness(1.05) contrast(1.4);
    -webkit-filter: brightness(1.05) contrast(1.4);
}
.cl-cap { color: #fff; font-weight: 600; margin: 14px 0 12px; text-align: center; }
.cl-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.cl-close, .cl-nav {
    position: absolute;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    transition: background var(--tr);
}
.cl-close:hover, .cl-nav:hover { background: rgba(255, 255, 255, .3); }
.cl-close { top: 18px; right: 20px; width: 44px; height: 44px; font-size: 1.3rem; line-height: 44px; }
.cl-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2rem; line-height: 1; }
.cl-prev { left: 16px; }
.cl-next { right: 16px; }
@media (max-width: 640px) {
    .cl-nav { width: 42px; height: 42px; font-size: 1.5rem; }
    .cl-prev { left: 6px; } .cl-next { right: 6px; }
    .cl-figure img { max-height: 64vh; }
}
