:root {
    --bg: #050816;
    --bg-soft: #0a1030;
    --panel: #ffffff;
    --panel-soft: #f8f6fb;
    --text: #161326;
    --muted: #6d6882;
    --line: rgba(116, 96, 164, .18);
    --primary: #a474ff;
    --primary-strong: #8a5af5;
    --primary-soft: rgba(164, 116, 255, .14);
    --danger: #dc4f66;
    --success: #0f8b6d;
    --shadow: 0 24px 64px rgba(6, 10, 27, .22);
    --shadow-soft: 0 14px 34px rgba(6, 10, 27, .14);
    --radius: 20px;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top, rgba(63, 46, 130, .38), transparent 32%),
        linear-gradient(180deg, #060914 0%, #0b1129 26%, #101533 100%);
    color: var(--text);
}
a { color: inherit; }

.topbar {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 28px;
    background: rgba(6, 10, 27, .78);
    border-bottom: 1px solid rgba(180, 146, 255, .18);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 10;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    text-decoration: none;
    min-width: 0;
}
.brand-logo {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    object-fit: contain;
    flex: 0 0 auto;
    filter: drop-shadow(0 8px 22px rgba(0, 0, 0, .28));
}
.brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.brand-title {
    display: block;
    font-family: "Pinyon Script", cursive;
    font-size: clamp(1.8rem, 3.8vw, 3rem);
    line-height: .95;
    letter-spacing: .02em;
    color: #ffffff;
    text-shadow: 0 2px 18px rgba(164, 116, 255, .18);
    white-space: nowrap;
}
.brand-tagline {
    display: block;
    margin-top: 4px;
    color: rgba(230, 224, 255, .72);
    font-size: .83rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}
nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    text-decoration: none;
    color: rgba(255,255,255,.86);
    font-weight: 700;
    border-radius: 999px;
    border: 1px solid rgba(196, 178, 255, .16);
    background: rgba(255,255,255,.05);
}
nav a:hover {
    color: #fff;
    background: rgba(164, 116, 255, .16);
    border-color: rgba(196, 178, 255, .28);
}
.container {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    padding: 30px 0 64px;
}
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 30px 32px;
    margin-bottom: 28px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(12, 18, 43, .9), rgba(14, 21, 52, .82));
    border: 1px solid rgba(195, 175, 255, .14);
    box-shadow: var(--shadow);
}
.hero h1,
.hero p,
.hero .button { color: #fff; }
.hero p { max-width: 720px; color: rgba(244, 240, 255, .78); }
h1 {
    font-size: clamp(2rem, 4vw, 3.3rem);
    margin: 0 0 10px;
    line-height: .96;
}
h2, h3 { margin-top: 0; }
p { color: var(--muted); line-height: 1.64; }

.card,
.publication-card {
    background: var(--panel);
    border: 1px solid rgba(188, 176, 216, .35);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}
.narrow { max-width: 520px; margin: 64px auto; }
.empty { text-align: center; }

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 22px;
    padding: 16px 18px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(188, 176, 216, .35);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}
.catalog-count {
    margin: 0;
    min-height: 0;
    font-weight: 800;
    color: var(--text);
}
.catalog-sort-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: auto;
}
.catalog-sort-form label {
    color: var(--muted);
    font-size: .92rem;
}
.catalog-sort-form select {
    width: auto;
    min-width: 250px;
    padding-right: 38px;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}
.publication-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.publication-card h2 { margin: 0; }
.publication-card p { margin: 0; min-height: 50px; }
.cover-placeholder {
    height: 180px;
    border-radius: 16px;
    background: linear-gradient(145deg, #151c41, #090e23);
    color: #f2efff;
    display: grid;
    place-items: center;
    font-size: 2.8rem;
    letter-spacing: .08em;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(196, 178, 255, .14);
}
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-strong) 100%);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(138, 90, 245, .2);
}
.button:hover,
button:hover { filter: brightness(1.04); }
.ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: #6740bf;
    border: 1px solid rgba(164, 116, 255, .18);
    box-shadow: none;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}
.ghost:hover { background: rgba(164, 116, 255, .22); }
.danger {
    background: linear-gradient(180deg, #ef6178 0%, #d44b62 100%);
    min-height: 36px;
}
.success,
.error {
    padding: 14px 18px;
    border-radius: 14px;
    font-weight: 700;
}
.success { background: #ecfdf5; color: var(--success); }
.error { background: #fef2f2; color: var(--danger); }
.hint { font-size: .92rem; color: var(--muted); }
form.stack,
form:not(.inline) { display: flex; flex-direction: column; gap: 10px; }
label { font-weight: 700; }
input,
textarea,
select {
    width: 100%;
    border: 1px solid rgba(188, 176, 216, .5);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    background: #fff;
    color: var(--text);
}
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid rgba(164, 116, 255, .2);
    border-color: rgba(164, 116, 255, .5);
}
textarea { resize: vertical; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(188, 176, 216, .3);
    vertical-align: middle;
}
th {
    color: var(--muted);
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
code { background: #f2eefb; padding: 2px 6px; border-radius: 6px; }

.catalog-preview {
    min-height: 250px;
    border-radius: 16px;
    background: linear-gradient(145deg, #151c41, #090e23 72%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    overflow: hidden;
    text-decoration: none;
}
.catalog-preview:hover { filter: brightness(1.04); }
.preview-pages {
    min-height: 198px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.preview-cover {
    width: 148px;
    max-width: 82%;
    height: auto !important;
    background: white;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(0,0,0,.42);
}
.preview-loading {
    text-align: center;
    font-weight: 800;
    letter-spacing: .04em;
    opacity: .9;
}
.cover-placeholder.small {
    width: 148px;
    max-width: 82%;
    height: 190px;
    border-radius: 12px;
    box-shadow: none;
}
.catalog-preview-epub {
    background: linear-gradient(145deg, #2b225b, #090e23 74%);
}
.epub-cover {
    width: 148px;
    max-width: 82%;
    height: 190px;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(0,0,0,.42);
    background: linear-gradient(160deg, #f8fafc, #ece7ff);
    color: #281d59;
    text-align: center;
    padding: 18px;
}
.epub-cover strong,
.epub-cover span { display: block; }
.epub-cover strong {
    font-size: 2rem;
    letter-spacing: .08em;
}
.epub-cover span {
    margin-top: 8px;
    color: #5f5a73;
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: 0;
}

.required { color: var(--danger); }
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.form-grid > div { min-width: 0; }
.admin-form { gap: 14px; }

.admin-settings-card {
    background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(246,242,234,.96));
}
.admin-setting-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 12px;
    align-items: center;
}
.admin-setting-row .button { white-space: nowrap; }
.admin-list { display: grid; gap: 16px; }
.admin-book {
    border: 1px solid rgba(188, 176, 216, .32);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}
.admin-book summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    cursor: pointer;
    list-style: none;
}
.admin-book summary::-webkit-details-marker { display: none; }
.admin-book summary strong { display: block; }
.admin-book summary em {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-style: normal;
}
.admin-stat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.admin-stat-pills span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(103, 64, 191, .08);
    border: 1px solid rgba(103, 64, 191, .18);
    color: #4d3192;
    font-size: .82rem;
    font-weight: 800;
}
.admin-stats-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 4px 0 2px;
}
.admin-stats-card {
    display: grid;
    gap: 3px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(103, 64, 191, .18);
    background: linear-gradient(135deg, rgba(103, 64, 191, .08), rgba(245, 206, 117, .12));
}
.admin-stats-card strong {
    color: #33215f;
    font-size: 1.8rem;
    line-height: 1;
}
.admin-stats-card span {
    color: #4d3192;
    font-weight: 900;
}
.admin-stats-card small {
    color: var(--muted);
    font-weight: 700;
}
.summary-actions a {
    color: #6740bf;
    font-weight: 800;
    text-decoration: none;
}
.edit-form {
    padding: 0 18px 18px;
    border-top: 1px solid rgba(188, 176, 216, .3);
}
.inline-delete {
    padding: 0 18px 18px;
    margin-top: -4px;
}
.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: var(--muted);
    font-size: .9rem;
}
.admin-actions { margin-top: 4px; }
.book-author {
    min-height: 0 !important;
    color: var(--text);
    font-weight: 700;
}
.book-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.book-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f5f1fd;
    color: #5b5375;
    font-size: .88rem;
    font-weight: 700;
}
.publication-card p:empty { display: none; }

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

@media (max-width: 860px) {
    .topbar {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 16px;
    }
    nav { justify-content: flex-start; }
    .brand-title { font-size: 2.2rem; }
    .hero { flex-direction: column; align-items: flex-start; padding: 24px; }
    .catalog-toolbar { flex-direction: column; align-items: stretch; }
    .catalog-sort-form { justify-content: flex-start; margin-left: 0; }
    .catalog-sort-form select { width: 100%; min-width: 0; }
}
@media (max-width: 720px) {
    .container { width: min(100%, calc(100% - 20px)); }
    .brand-logo { width: 50px; height: 50px; }
    .brand-tagline { display: none; }
    nav a { min-height: 38px; }
    .admin-book summary { align-items: flex-start; }
    .summary-actions { white-space: nowrap; }
}
@media (max-width: 520px) {
    .catalog-preview { min-height: 220px; padding: 14px; }
    .preview-pages { min-height: 170px; }
    .preview-cover,
    .cover-placeholder.small { width: 126px; }
    .brand-title { font-size: 2rem; }
}

/* ===== Catalogue sobre : couvertures seules + fiche au survol ===== */
.catalog-intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin: 10px 0 20px;
    color: #fff;
}
.catalog-intro h1 {
    font-family: "Pinyon Script", cursive;
    font-size: clamp(3rem, 7vw, 5.8rem);
    font-weight: 400;
    margin: 0;
    color: #fff;
    text-shadow: 0 4px 24px rgba(164, 116, 255, .18);
}
.catalog-intro p {
    margin: 4px 0 0;
    color: rgba(244, 240, 255, .72);
}
.catalog-toolbar-sober {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 22px;
    margin-bottom: 10px;
    color: #fff;
}
.catalog-toolbar-sober .catalog-count {
    color: rgba(255,255,255,.82);
}
.catalog-toolbar-sober .catalog-sort-form label {
    color: rgba(244,240,255,.66);
}
.catalog-toolbar-sober select {
    background: rgba(255,255,255,.07);
    color: #fff;
    border-color: rgba(196,178,255,.18);
}
.catalog-toolbar-sober select option { color: #161326; }

.catalog-grid {
    --catalog-cover-width: clamp(154px, 17vw, 220px);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--catalog-cover-width), 1fr));
    gap: clamp(28px, 4.2vw, 52px) clamp(18px, 3vw, 34px);
    align-items: start;
}
.catalog-book {
    position: relative;
    min-width: 0;
    text-align: center;
    color: #fff;
}
.catalog-book-cover-wrap {
    position: relative;
    width: var(--catalog-cover-width);
    margin: 0 auto;
    isolation: isolate;
}
.catalog-preview {
    position: relative;
    width: var(--catalog-cover-width);
    min-height: 0;
    aspect-ratio: 2 / 3;
    border-radius: 8px;
    padding: 0;
    display: block;
    overflow: hidden;
    background: transparent;
    color: white;
    text-decoration: none;
    box-shadow: 0 18px 42px rgba(0,0,0,.38);
    transform: translateY(0);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}
.catalog-preview:hover,
.catalog-book:focus-within .catalog-preview {
    transform: translateY(-4px);
    box-shadow: 0 26px 60px rgba(0,0,0,.45);
    filter: none;
}
.preview-pages {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #151c41, #090e23 72%);
}
.preview-cover,
.preview-pages canvas.preview-cover,
.preview-cover.uploaded-cover {
    width: 100% !important;
    max-width: 100%;
    height: 100% !important;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    box-shadow: none;
    background: linear-gradient(145deg, #171c3d 0%, #070b1a 72%);
}
.preview-loading {
    color: rgba(255,255,255,.78);
    font-weight: 800;
    letter-spacing: .04em;
}
.cover-placeholder.small,
.epub-cover {
    width: 100%;
    max-width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: none;
}

.catalog-thumbnail {
    opacity: 1;
}
.catalog-thumbnail.is-broken {
    display: none !important;
}
.catalog-thumbnail-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .35rem;
}
.catalog-thumbnail.is-broken + .catalog-thumbnail-fallback {
    display: flex;
}
.catalog-open-label {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(8, 12, 30, .68);
    color: #fff;
    border: 1px solid rgba(255,255,255,.28);
    font-weight: 800;
    backdrop-filter: blur(10px);
    transition: opacity 160ms ease, transform 160ms ease;
}
.catalog-preview:hover .catalog-open-label,
.catalog-book:focus-within .catalog-open-label {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.catalog-book-title {
    width: var(--catalog-cover-width);
    margin: 13px auto 3px;
    font-size: 1rem;
    line-height: 1.22;
    color: #fff;
    font-weight: 800;
}
.catalog-book-author {
    width: var(--catalog-cover-width);
    margin: 0 auto;
    color: rgba(244,240,255,.68);
    min-height: 0 !important;
    font-size: .92rem;
    line-height: 1.28;
    font-weight: 600;
}
.catalog-hover-card {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(8, 11, 25, .95) 0%, rgba(12, 10, 26, .92) 100%);
    color: #fff;
    text-align: left;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px) scale(.985);
    transition: opacity 170ms ease, transform 170ms ease;
    box-shadow: 0 24px 70px rgba(0,0,0,.45);
    overflow: auto;
    scrollbar-width: none;
}
.catalog-hover-card::-webkit-scrollbar { width: 0; height: 0; }
.catalog-book:hover .catalog-hover-card,
.catalog-book:focus-within .catalog-hover-card {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.catalog-hover-card h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.12;
    color: #fff;
}
.catalog-hover-author {
    margin: -4px 0 0;
    color: rgba(244,240,255,.72);
    line-height: 1.3;
    font-weight: 700;
    min-height: 0 !important;
}
.catalog-hover-meta {
    gap: 5px;
}
.catalog-hover-meta span {
    min-height: 23px;
    padding: 0 8px;
    background: rgba(164, 116, 255, .16);
    color: rgba(255,255,255,.86);
    border: 1px solid rgba(196, 178, 255, .12);
    font-size: .74rem;
}
.catalog-hover-description {
    margin: 0;
    color: rgba(244,240,255,.72);
    font-size: .86rem;
    line-height: 1.45;
    min-height: 0 !important;
}
.catalog-hover-actions {
    margin-top: auto;
    gap: 7px;
}
.catalog-hover-actions .button,
.catalog-hover-actions button,
.catalog-hover-actions .ghost {
    min-height: 32px;
    padding: 0 10px;
    border-radius: 9px;
    font-size: .82rem;
    box-shadow: none;
}
.catalog-hover-actions .button {
    background: linear-gradient(180deg, var(--primary), var(--primary-strong));
}
.format-quick-links {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.format-quick-links a {
    min-height: 32px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(196,178,255,.16);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    font-size: .8rem;
}
.download-format-form.inline {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 6px;
    margin: 0;
}
.download-format-form.inline select {
    width: auto;
    max-width: 82px;
    min-height: 32px;
    padding: 0 22px 0 8px;
    border-radius: 9px;
    color: #fff;
    background: rgba(255,255,255,.08);
    border-color: rgba(196,178,255,.16);
    font-size: .82rem;
}
.download-format-form.inline select option { color: #161326; }

@media (hover: none) {
    .catalog-hover-card {
        position: static;
        width: var(--catalog-cover-width);
        margin: 10px auto 0;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        max-height: none;
        border-radius: 12px;
        background: rgba(8, 12, 30, .78);
    }
    .catalog-open-label {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}
@media (max-width: 860px) {
    .catalog-intro {
        align-items: flex-start;
        flex-direction: column;
    }
    .catalog-grid {
        --catalog-cover-width: clamp(142px, 42vw, 190px);
        grid-template-columns: repeat(auto-fill, minmax(var(--catalog-cover-width), 1fr));
    }
}
@media (max-width: 520px) {
    .catalog-toolbar-sober {
        align-items: stretch;
    }
    .catalog-grid {
        gap: 30px 14px;
    }
    .catalog-hover-card {
        padding: 12px;
    }
}


/* Catalogue : les couvertures non proportionnées reposent sur un fond sombre, pas sur un blanc visible. */
.catalog-preview .preview-pages,
.catalog-preview .preview-cover,
.catalog-preview canvas.preview-cover,
.catalog-preview .uploaded-cover {
    background:
        radial-gradient(circle at 50% 35%, rgba(164, 116, 255, .16), transparent 42%),
        linear-gradient(145deg, #151b3b 0%, #070b19 76%) !important;
}

/* Pages éditoriales sobres : accueil, manifeste, statuts, contact */
nav a[aria-current="page"] {
    color: #fff;
    background: rgba(164, 116, 255, .18);
    border-color: rgba(196, 178, 255, .34);
}

.page-hero,
.static-page {
    color: #fff;
}
.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(180px, .45fr);
    gap: clamp(28px, 6vw, 72px);
    align-items: center;
    min-height: min(640px, calc(100dvh - 170px));
    padding: clamp(34px, 7vw, 90px) 0 clamp(24px, 5vw, 64px);
}
.eyebrow {
    margin: 0 0 12px;
    color: rgba(209, 194, 255, .76);
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    font-size: .78rem;
}
.home-hero h1,
.static-header h1 {
    margin: 0;
    max-width: 900px;
    color: #fff;
    font-family: "Pinyon Script", cursive;
    font-weight: 400;
    font-size: clamp(4rem, 9vw, 8.4rem);
    line-height: .82;
    letter-spacing: .01em;
    text-shadow: 0 10px 36px rgba(164, 116, 255, .18);
}
.home-hero h1 {
    font-family: inherit;
    font-size: clamp(2.7rem, 6vw, 5.8rem);
    line-height: .94;
    font-weight: 760;
    letter-spacing: -.055em;
}
.lead {
    margin: 22px 0 0;
    color: rgba(255,255,255,.88);
    font-size: clamp(1.15rem, 2.2vw, 1.55rem);
    line-height: 1.45;
}
.home-hero p:not(.eyebrow):not(.lead),
.home-text-panel p,
.home-note p {
    max-width: 760px;
    color: rgba(244,240,255,.72);
    font-size: 1.08rem;
}
.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}
.ghost-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    text-decoration: none;
    color: #fff;
    font-weight: 800;
    border: 1px solid rgba(196,178,255,.2);
    background: rgba(255,255,255,.05);
}
.ghost-link:hover {
    background: rgba(164,116,255,.16);
}
.home-mark {
    display: grid;
    place-items: center;
    opacity: .92;
}
.home-mark img {
    width: min(270px, 48vw);
    height: auto;
    filter: drop-shadow(0 28px 58px rgba(0,0,0,.34));
}
.home-text-panel,
.home-note {
    max-width: 920px;
    margin: 0 0 34px;
    padding: 0;
    border-left: 1px solid rgba(196,178,255,.24);
    padding-left: clamp(18px, 3vw, 28px);
}
.home-text-panel strong {
    color: #fff;
}
.home-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin: 42px 0 30px;
    border: 1px solid rgba(196,178,255,.16);
    background: rgba(196,178,255,.16);
    border-radius: 18px;
    overflow: hidden;
}
.home-links a {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 150px;
    padding: 22px;
    text-decoration: none;
    background: rgba(7, 11, 28, .74);
    color: #fff;
}
.home-links a:hover {
    background: rgba(164,116,255,.14);
}
.home-links span {
    font-size: 1.15rem;
    font-weight: 900;
}
.home-links small {
    color: rgba(244,240,255,.66);
    line-height: 1.45;
}

.static-page {
    width: min(920px, 100%);
    margin: 0 auto;
    padding: clamp(28px, 5vw, 70px) 0 70px;
}
.static-header {
    margin-bottom: clamp(28px, 5vw, 56px);
}
.static-header h1 {
    font-size: clamp(4.5rem, 11vw, 9rem);
}
.static-header .lead {
    max-width: 760px;
}
.prose {
    color: rgba(255,255,255,.86);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.05rem, 1.4vw, 1.22rem);
    line-height: 1.84;
}
.prose p,
.prose li {
    color: rgba(245,242,255,.78);
}
.prose p {
    margin: 0 0 1.15em;
}
.prose strong,
.prose em {
    color: #fff;
}
.prose h2 {
    margin: 2.6em 0 1em;
    padding-top: 1.5em;
    border-top: 1px solid rgba(196,178,255,.16);
    color: #fff;
    font-family: Inter, system-ui, sans-serif;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    line-height: 1.25;
}
.prose h3 {
    margin: 1.7em 0 .55em;
    color: rgba(225,214,255,.92);
    font-family: Inter, system-ui, sans-serif;
    font-size: 1rem;
    letter-spacing: .02em;
}
.prose ul {
    margin: 0 0 1.3em;
    padding-left: 1.25em;
    color: rgba(245,242,255,.78);
}
.statutes-prose {
    font-size: clamp(1rem, 1.2vw, 1.12rem);
    line-height: 1.76;
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 34px;
    border: 1px solid rgba(196,178,255,.16);
    background: rgba(196,178,255,.16);
    border-radius: 18px;
    overflow: hidden;
}
.contact-card {
    padding: 24px;
    background: rgba(7, 11, 28, .74);
}
.contact-card span {
    display: block;
    margin-bottom: 12px;
    color: rgba(209,194,255,.72);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.contact-card p {
    margin: 0;
    color: rgba(255,255,255,.88);
    min-height: 0;
}
.contact-card a {
    color: #fff;
    text-decoration-color: rgba(164,116,255,.7);
    text-underline-offset: 4px;
}

@media (max-width: 920px) {
    .home-hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .home-mark {
        justify-content: start;
        opacity: .7;
    }
    .home-links,
    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 620px) {
    .home-links,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .home-links a {
        min-height: 120px;
    }
    .static-page {
        padding-top: 34px;
    }
    .home-hero h1 {
        font-size: clamp(2.4rem, 13vw, 4rem);
    }
    .static-header h1 {
        font-size: clamp(4rem, 20vw, 6.5rem);
    }
}

/* Accueil — version sobre avec logo rond officiel */
.home-hero-refined {
    grid-template-columns: minmax(0, 1.08fr) minmax(180px, .42fr);
    min-height: min(560px, calc(100dvh - 170px));
    padding: clamp(38px, 7vw, 92px) 0 clamp(30px, 5vw, 62px);
}
.home-hero-refined .eyebrow {
    color: rgba(215, 202, 255, .72);
    letter-spacing: .16em;
}
.home-hero-refined h1 {
    max-width: 780px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-size: clamp(2.35rem, 4.9vw, 5rem);
    line-height: 1.02;
    letter-spacing: -.035em;
    text-shadow: 0 10px 34px rgba(0,0,0,.18);
}
.home-hero-refined .lead {
    max-width: 740px;
    margin-top: 24px;
    color: rgba(250, 247, 255, .86);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.16rem, 1.9vw, 1.5rem);
    line-height: 1.55;
}
.home-hero-refined p:not(.eyebrow):not(.lead) {
    max-width: 760px;
    color: rgba(244, 240, 255, .74);
    font-size: 1.04rem;
}
.home-hero-refined p strong {
    color: #fff;
    font-weight: 800;
}
.official-seal {
    position: relative;
    justify-content: center;
    opacity: .96;
}
.official-seal::before {
    content: "";
    position: absolute;
    width: min(340px, 48vw);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(164,116,255,.16), transparent 66%);
    filter: blur(4px);
}
.official-seal img {
    position: relative;
    width: min(260px, 36vw);
    max-width: 100%;
    filter: drop-shadow(0 22px 56px rgba(0,0,0,.42));
}
.home-statement {
    max-width: 880px;
    margin: 0 0 40px;
    padding: 0 0 0 clamp(18px, 3vw, 30px);
    border-left: 1px solid rgba(196,178,255,.24);
}
.home-statement p {
    margin: 0;
    color: rgba(246, 242, 255, .8);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.12rem, 1.7vw, 1.35rem);
    line-height: 1.72;
}
.home-links-refined {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 42px 0 26px;
    border: 0;
    border-top: 1px solid rgba(196,178,255,.18);
    border-bottom: 1px solid rgba(196,178,255,.14);
    border-radius: 0;
    overflow: visible;
    background: transparent;
}
.home-links-refined a {
    min-height: 0;
    padding: 22px 24px 24px 0;
    background: transparent;
    border-right: 1px solid rgba(196,178,255,.12);
}
.home-links-refined a:last-child {
    border-right: 0;
}
.home-links-refined a:hover {
    background: transparent;
}
.home-links-refined span {
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.22rem;
    font-weight: 400;
}
.home-links-refined small {
    max-width: 190px;
    color: rgba(244,240,255,.6);
}
.home-note-refined {
    border: 0;
    padding: 0;
    margin-top: 18px;
}
.home-note-refined p {
    color: rgba(244,240,255,.56);
    font-size: .98rem;
}

/* Les titres de pages restent élégants mais moins démonstratifs que la première version. */
.static-header h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-size: clamp(2.6rem, 6.2vw, 5.8rem);
    line-height: 1.02;
    letter-spacing: -.035em;
}

@media (max-width: 920px) {
    .home-hero-refined {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .official-seal {
        justify-content: start;
    }
    .official-seal img {
        width: min(210px, 46vw);
    }
    .home-links-refined {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .home-links-refined a:nth-child(2) {
        border-right: 0;
    }
}
@media (max-width: 620px) {
    .home-hero-refined h1 {
        font-size: clamp(2.15rem, 10vw, 3.45rem);
    }
    .home-links-refined {
        grid-template-columns: 1fr;
    }
    .home-links-refined a {
        border-right: 0;
        border-bottom: 1px solid rgba(196,178,255,.12);
        padding-right: 0;
    }
    .home-links-refined a:last-child {
        border-bottom: 0;
    }
}

/* Accueil Skandalon — texte initial mis en scène, sans sur-écriture */
.home-landing {
    min-height: min(720px, calc(100dvh - 140px));
    display: grid;
    grid-template-columns: minmax(170px, 300px) minmax(0, 720px);
    align-items: center;
    justify-content: center;
    gap: clamp(28px, 5vw, 72px);
    padding: clamp(54px, 10vh, 110px) 0 clamp(34px, 8vh, 76px);
    color: #f7f3ff;
}
.home-seal {
    justify-self: end;
    width: clamp(150px, 24vw, 292px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: translateY(12px) scale(.97);
    animation: skFadeIn 760ms ease-out 80ms forwards;
}
.home-seal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 22px 50px rgba(0,0,0,.34));
}
.home-copy {
    max-width: 760px;
}
.home-kicker {
    margin: 0 0 14px;
    color: rgba(220, 204, 255, .84);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(10px);
    animation: skFadeUp 700ms ease-out 220ms forwards;
}
.home-landing h1 {
    margin: 0 0 26px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2.45rem, 6vw, 5.4rem);
    font-weight: 500;
    line-height: .94;
    letter-spacing: -.035em;
    color: #fff;
    text-wrap: balance;
    opacity: 0;
    transform: translateY(10px);
    animation: skFadeUp 720ms ease-out 340ms forwards;
}
.home-prose {
    max-width: 680px;
    color: rgba(246, 241, 255, .84);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.28rem, 2vw, 1.62rem);
    line-height: 1.42;
}
.home-prose p {
    margin: 0 0 1.05em;
    color: inherit;
    opacity: 0;
    transform: translateY(10px);
    animation: skFadeUp 720ms ease-out forwards;
}
.home-prose p:nth-child(1) { animation-delay: 470ms; }
.home-prose p:nth-child(2) { animation-delay: 580ms; }
.home-prose p:nth-child(3) { animation-delay: 690ms; }
.home-prose abbr {
    text-decoration: none;
    font-variant-caps: all-small-caps;
    letter-spacing: .05em;
}
.home-primary-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
    opacity: 0;
    transform: translateY(10px);
    animation: skFadeUp 720ms ease-out 820ms forwards;
}
.home-primary-links a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(205, 184, 255, .22);
    background: rgba(255,255,255,.045);
    color: rgba(255,255,255,.9);
    text-decoration: none;
    font-weight: 700;
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.home-primary-links a:hover {
    background: rgba(171, 122, 255, .15);
    border-color: rgba(205, 184, 255, .36);
    transform: translateY(-1px);
}
.home-membership {
    width: min(760px, 100%);
    margin: 0 auto 48px;
    padding: 0 0 0 18px;
    border-left: 1px solid rgba(205, 184, 255, .26);
    opacity: 0;
    transform: translateY(10px);
    animation: skFadeUp 720ms ease-out 930ms forwards;
}
.home-membership p {
    margin: 0;
    color: rgba(233, 226, 255, .72);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.1rem, 1.8vw, 1.36rem);
}

@keyframes skFadeUp {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes skFadeIn {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .home-seal,
    .home-kicker,
    .home-landing h1,
    .home-prose p,
    .home-primary-links,
    .home-membership {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
@media (max-width: 840px) {
    .home-landing {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 42px;
        text-align: left;
    }
    .home-seal {
        justify-self: start;
        width: clamp(112px, 36vw, 168px);
    }
    .home-prose {
        font-size: clamp(1.18rem, 4vw, 1.38rem);
    }
}
@media (max-width: 560px) {
    .home-primary-links {
        flex-direction: column;
        align-items: stretch;
    }
    .home-primary-links a {
        justify-content: center;
    }
}

/* Accueil — version plus éditoriale, effets plus lisibles, catalogue valorisé */
.home-landing.home-landing-v3 {
    position: relative;
    min-height: min(760px, calc(100dvh - 120px));
    grid-template-columns: minmax(150px, 250px) minmax(0, 760px);
    gap: clamp(32px, 6vw, 86px);
    padding-top: clamp(64px, 10vh, 118px);
    overflow: hidden;
}
.home-landing.home-landing-v3::before {
    content: "";
    position: absolute;
    inset: 5% auto auto 50%;
    width: min(760px, 76vw);
    height: min(760px, 76vw);
    transform: translateX(-18%);
    border-radius: 999px;
    background:
        radial-gradient(circle, rgba(171,122,255,.18), transparent 56%),
        radial-gradient(circle, rgba(255,255,255,.055), transparent 36%);
    opacity: 0;
    filter: blur(2px);
    animation: skHaloReveal 1500ms ease-out 180ms forwards;
    pointer-events: none;
}
.home-landing.home-landing-v3::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 8%;
    width: min(760px, 70vw);
    height: 1px;
    transform: translateX(-50%) scaleX(.3);
    transform-origin: center;
    background: linear-gradient(90deg, transparent, rgba(205,184,255,.38), transparent);
    opacity: 0;
    animation: skLineReveal 1200ms ease-out 1100ms forwards;
    pointer-events: none;
}
.home-landing-v3 .home-seal {
    position: relative;
    z-index: 1;
    width: clamp(142px, 20vw, 240px);
    animation: skSealReveal 1150ms cubic-bezier(.18,.86,.28,1) 120ms forwards;
    transform: translateY(26px) scale(.92) rotate(-2deg);
    filter: drop-shadow(0 20px 54px rgba(0,0,0,.36));
}
.home-landing-v3 .home-seal img {
    filter: drop-shadow(0 18px 44px rgba(0,0,0,.34));
}
.home-landing-v3 .home-copy {
    position: relative;
    z-index: 1;
}
.home-landing-v3 .home-kicker {
    color: rgba(221, 205, 255, .78);
    letter-spacing: .26em;
    animation: skTextReveal 900ms cubic-bezier(.18,.86,.28,1) 300ms forwards;
    filter: blur(10px);
    transform: translateY(22px);
}
.home-landing-v3 h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.35rem, 5vw, 4.25rem);
    font-weight: 400;
    letter-spacing: -.018em;
    line-height: 1.04;
    margin-bottom: 24px;
    animation: skTextReveal 980ms cubic-bezier(.18,.86,.28,1) 430ms forwards;
    filter: blur(12px);
    transform: translateY(24px);
}
.home-landing-v3 .home-prose {
    max-width: 720px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.18rem, 1.55vw, 1.44rem);
    line-height: 1.56;
    color: rgba(246,241,255,.86);
}
.home-landing-v3 .home-prose p {
    transform: translateY(20px);
    filter: blur(8px);
    animation: skTextReveal 920ms cubic-bezier(.18,.86,.28,1) forwards;
}
.home-landing-v3 .home-prose p:nth-child(1) { animation-delay: 570ms; }
.home-landing-v3 .home-prose p:nth-child(2) { animation-delay: 700ms; }
.home-landing-v3 .home-prose p:nth-child(3) { animation-delay: 830ms; }
.home-actions-v3 {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
    margin-top: 34px;
    opacity: 0;
    transform: translateY(22px);
    filter: blur(8px);
    animation: skTextReveal 900ms cubic-bezier(.18,.86,.28,1) 1030ms forwards;
}
.home-actions-v3 a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(205,184,255,.18);
    background: rgba(255,255,255,.045);
    color: rgba(255,255,255,.86);
    text-decoration: none;
    font-weight: 700;
    transition: transform 190ms ease, background 190ms ease, border-color 190ms ease, box-shadow 190ms ease;
}
.home-actions-v3 a:hover {
    transform: translateY(-2px);
    border-color: rgba(205,184,255,.36);
    background: rgba(171,122,255,.14);
}
.home-actions-v3 .home-catalogue-callout {
    min-width: min(100%, 330px);
    flex-direction: column;
    align-items: flex-start;
    min-height: 76px;
    padding: 13px 22px 14px;
    color: #fff;
    border-color: rgba(205,184,255,.36);
    background:
        linear-gradient(135deg, rgba(171,122,255,.24), rgba(255,255,255,.045)),
        rgba(255,255,255,.04);
    box-shadow: 0 18px 48px rgba(41,25,82,.34);
}
.home-actions-v3 .home-catalogue-callout span {
    font-size: 1.05rem;
}
.home-actions-v3 .home-catalogue-callout small {
    margin-top: 3px;
    color: rgba(236,229,255,.74);
    font-weight: 600;
    letter-spacing: .02em;
}
.home-actions-v3 .home-catalogue-callout:hover {
    box-shadow: 0 20px 58px rgba(82,48,154,.42);
    background:
        linear-gradient(135deg, rgba(171,122,255,.34), rgba(255,255,255,.07)),
        rgba(255,255,255,.04);
}
.home-membership.home-membership-v3 {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(8px);
    animation: skTextReveal 900ms cubic-bezier(.18,.86,.28,1) 1220ms forwards;
}

@keyframes skTextReveal {
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes skSealReveal {
    0% { opacity: 0; transform: translateY(26px) scale(.92) rotate(-2deg); filter: blur(8px) drop-shadow(0 20px 54px rgba(0,0,0,.22)); }
    70% { opacity: 1; transform: translateY(-2px) scale(1.015) rotate(0deg); filter: blur(0) drop-shadow(0 24px 64px rgba(0,0,0,.38)); }
    100% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); filter: blur(0) drop-shadow(0 20px 54px rgba(0,0,0,.36)); }
}
@keyframes skHaloReveal {
    to { opacity: 1; transform: translateX(-18%) scale(1.02); }
}
@keyframes skLineReveal {
    to { opacity: 1; transform: translateX(-50%) scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
    .home-landing.home-landing-v3::before,
    .home-landing.home-landing-v3::after,
    .home-landing-v3 .home-seal,
    .home-landing-v3 .home-kicker,
    .home-landing-v3 h1,
    .home-landing-v3 .home-prose p,
    .home-actions-v3,
    .home-membership.home-membership-v3 {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}
@media (max-width: 840px) {
    .home-landing.home-landing-v3 {
        grid-template-columns: 1fr;
        gap: 26px;
        padding-top: 42px;
    }
    .home-landing-v3 .home-seal {
        justify-self: start;
        width: clamp(118px, 34vw, 164px);
    }
    .home-landing-v3 h1 {
        font-size: clamp(2.2rem, 10vw, 3.2rem);
    }
    .home-actions-v3 {
        align-items: stretch;
    }
}
@media (max-width: 560px) {
    .home-actions-v3 {
        flex-direction: column;
    }
    .home-actions-v3 a,
    .home-actions-v3 .home-catalogue-callout {
        width: 100%;
        align-items: center;
        text-align: center;
    }
}

/* ======================================================================
   Accueil responsive Skandalon — intégration du kit graphique fourni
   ====================================================================== */
:root {
    --sk-nuit: #050816;
    --sk-nuit-2: #0e0e2a;
    --sk-violet: #5c2681;
    --sk-violet-clair: #8b46b2;
    --sk-ivoire: #f3e8d6;
    --sk-or: #cfb285;
    --sk-texte-doux: rgba(243, 232, 214, .88);
    --sk-filet: rgba(207, 178, 133, .48);
}

body {
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

.topbar {
    width: min(1708px, calc(100% - 56px));
    min-height: clamp(104px, 13vh, 150px);
    margin: 0 auto;
    padding: clamp(16px, 2.3vh, 26px) 0 clamp(8px, 1.2vh, 14px);
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
    backdrop-filter: none;
    position: relative;
    top: auto;
    z-index: 20;
}

.brand--responsive {
    flex: 0 0 auto;
    min-width: 0;
}

.brand--responsive .brand-logo {
    width: clamp(92px, 8vw, 126px);
    height: auto;
    border-radius: 50%;
    object-fit: contain;
    filter: drop-shadow(0 10px 26px rgba(0, 0, 0, .36));
}

.nav-toggle,
.nav-toggle-label {
    display: none;
}

.site-nav {
    gap: clamp(22px, 3.1vw, 58px);
    flex-wrap: nowrap;
}

.site-nav a,
nav.site-nav a {
    min-height: 0;
    padding: 7px 0 11px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: rgba(243, 232, 214, .86);
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: clamp(1.08rem, 1.32vw, 1.38rem);
    font-weight: 500;
    line-height: 1;
    text-shadow: 0 8px 18px rgba(0, 0, 0, .32);
}

.site-nav a:hover,
nav.site-nav a:hover {
    color: var(--sk-ivoire);
    background: transparent;
    border-color: transparent;
    transform: translateY(-1px);
}

.site-nav a[aria-current="page"],
nav.site-nav a[aria-current="page"] {
    color: var(--sk-ivoire);
    background: transparent;
    border-bottom: 2px solid var(--sk-violet-clair);
}

body.page-index {
    min-height: 100svh;
    background-color: var(--sk-nuit);
    background-image: url("skandalon-responsive/bg-desktop.png");
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--sk-ivoire);
}

body.page-index::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 76% 48%, rgba(92, 38, 129, .18), transparent 32%),
        linear-gradient(90deg, rgba(5, 8, 22, .2), rgba(5, 8, 22, .02) 45%, rgba(5, 8, 22, .22));
}

body.page-index .topbar,
body.page-index .container {
    position: relative;
    z-index: 1;
}

.page-index .container {
    width: min(1708px, calc(100% - 56px));
    padding: 0 0 clamp(28px, 5vh, 54px);
}

.sk-home {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: calc(100svh - clamp(132px, 15vh, 166px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, .86fr);
    grid-template-areas:
        "heading visual"
        "prose visual"
        "actions visual"
        "membership visual";
    align-content: center;
    align-items: center;
    column-gap: clamp(44px, 6.8vw, 136px);
    row-gap: clamp(18px, 2.6vh, 28px);
    padding: clamp(44px, 6.7vh, 78px) clamp(54px, 5vw, 92px) clamp(30px, 5.5vh, 64px);
    color: var(--sk-ivoire);
}

.sk-home::before,
.sk-home::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.sk-home::before {
    z-index: -2;
    background: url("skandalon-responsive/frame-desktop.png") center / 100% 100% no-repeat;
    opacity: .9;
}

.sk-home::after {
    z-index: -1;
    background:
        radial-gradient(circle at 72% 45%, rgba(92, 38, 129, .15), transparent 37%),
        radial-gradient(circle at 28% 42%, rgba(207, 178, 133, .055), transparent 28%);
}

.sk-home-heading {
    grid-area: heading;
    max-width: 840px;
}

.sk-home-kicker {
    margin: 0 0 clamp(14px, 2.2vh, 24px);
    color: rgba(207, 178, 133, .9);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(.83rem, 1.2vw, 1.1rem);
    font-weight: 500;
    letter-spacing: .34em;
    line-height: 1.2;
    text-transform: uppercase;
}

.sk-home h1 {
    margin: 0;
    color: var(--sk-ivoire);
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: clamp(4rem, 6.05vw, 6.55rem);
    font-weight: 500;
    line-height: .91;
    letter-spacing: -.025em;
    text-wrap: balance;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, .2),
        0 14px 42px rgba(0, 0, 0, .38),
        0 0 24px rgba(207, 178, 133, .14);
}

.sk-home-divider {
    display: block;
    width: min(580px, 78%);
    height: auto;
    margin: clamp(14px, 2.2vh, 22px) 0 0 clamp(36px, 5vw, 86px);
    opacity: .95;
}

.sk-home-visual {
    grid-area: visual;
    position: relative;
    justify-self: center;
    width: clamp(420px, 42vw, 690px);
    max-width: 100%;
}

.sk-home-visual::before {
    content: "";
    position: absolute;
    inset: -5%;
    z-index: -1;
    border-radius: 999px;
    background:
        radial-gradient(circle, rgba(139, 70, 178, .28), transparent 66%),
        radial-gradient(circle, rgba(207, 178, 133, .08), transparent 48%);
    filter: blur(2px);
}

.sk-home-visual img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 28px 70px rgba(0, 0, 0, .52));
}

.sk-home-prose {
    grid-area: prose;
    max-width: 770px;
    color: var(--sk-texte-doux);
    font-size: clamp(1.16rem, 1.48vw, 1.5rem);
    font-weight: 500;
    line-height: 1.28;
    text-shadow: 0 9px 20px rgba(0, 0, 0, .32);
}

.sk-home-prose p {
    margin: 0 0 .96em;
    color: inherit;
}

.sk-home-prose p:last-child {
    margin-bottom: 0;
}

.sk-home-prose abbr {
    text-decoration: none;
    font-variant-caps: all-small-caps;
    letter-spacing: .05em;
}

.sk-home-actions {
    grid-area: actions;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: clamp(12px, 1.6vw, 16px);
}

.sk-home-button,
nav.sk-home-actions .sk-home-button {
    min-height: clamp(68px, 8vh, 88px);
    padding: 14px 26px;
    border: 1px solid rgba(207, 178, 133, .62);
    border-radius: 10px;
    background: rgba(5, 8, 22, .36);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03), 0 18px 44px rgba(0, 0, 0, .24);
    color: var(--sk-ivoire);
    text-decoration: none;
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: clamp(1.22rem, 1.35vw, 1.48rem);
    font-weight: 600;
    line-height: 1;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.sk-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-width: min(100%, 278px);
}

.sk-home-button:hover,
nav.sk-home-actions .sk-home-button:hover {
    transform: translateY(-2px);
    border-color: rgba(243, 232, 214, .78);
    background: rgba(92, 38, 129, .24);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 22px 54px rgba(0, 0, 0, .3);
}

.sk-home-button-primary,
nav.sk-home-actions .sk-home-button-primary {
    min-width: min(100%, 430px);
    justify-content: flex-start;
    border-color: rgba(187, 119, 219, .9);
    background:
        linear-gradient(135deg, rgba(92, 38, 129, .95), rgba(139, 70, 178, .86)),
        rgba(92, 38, 129, .75);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .14),
        0 0 22px rgba(139, 70, 178, .34),
        0 22px 54px rgba(0, 0, 0, .32);
}

.sk-home-button-primary:hover,
nav.sk-home-actions .sk-home-button-primary:hover {
    background:
        linear-gradient(135deg, rgba(109, 46, 150, .98), rgba(155, 78, 190, .92)),
        rgba(92, 38, 129, .8);
}

.sk-home-button strong,
.sk-home-button small {
    display: block;
}

.sk-home-button small {
    margin-top: 6px;
    color: rgba(243, 232, 214, .76);
    font-family: Georgia, "Times New Roman", serif;
    font-size: .78rem;
    font-weight: 400;
    letter-spacing: .02em;
}

.sk-home-button-icon {
    display: inline-grid;
    width: 1.7em;
    min-width: 1.7em;
    height: 1.7em;
    place-items: center;
    color: rgba(243, 232, 214, .88);
}

.sk-home-button-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.sk-home-membership {
    grid-area: membership;
    align-self: end;
    margin: clamp(8px, 1.8vh, 14px) 0 0;
    color: rgba(243, 232, 214, .75);
    font-size: clamp(1.08rem, 1.35vw, 1.38rem);
    line-height: 1.3;
    text-shadow: 0 8px 18px rgba(0, 0, 0, .28);
}

.sk-home-membership::before {
    content: "✧";
    display: inline-block;
    margin-right: .8rem;
    color: rgba(207, 178, 133, .8);
}

@media (max-width: 1100px) {
    .topbar {
        width: min(100% - 40px, 1708px);
        min-height: 108px;
    }

    .brand--responsive .brand-logo {
        width: clamp(88px, 10vw, 120px);
    }

    .site-nav {
        gap: 22px;
    }

    .sk-home {
        grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
        column-gap: 36px;
        padding-inline: clamp(34px, 5vw, 58px);
    }

    .sk-home-visual {
        width: clamp(330px, 38vw, 470px);
    }
}

@media (max-width: 900px) {
    body.page-index {
        background-image: url("skandalon-responsive/bg-mobile.png");
        background-attachment: scroll;
        background-position: center top;
    }

    .topbar {
        align-items: center;
        min-height: 102px;
        padding-top: 18px;
    }

    .brand--responsive .brand-logo {
        width: clamp(82px, 15vw, 112px);
    }

    .nav-toggle {
        position: absolute;
        right: 0;
        top: 34px;
        display: block;
        width: 48px;
        height: 44px;
        margin: 0;
        opacity: 0;
    }

    .nav-toggle-label {
        display: inline-grid;
        width: 48px;
        height: 44px;
        place-items: center;
        gap: 0;
        padding: 8px 6px;
        border-radius: 10px;
        cursor: pointer;
        filter: drop-shadow(0 8px 18px rgba(0,0,0,.26));
    }

    .nav-toggle-label span {
        display: block;
        width: 34px;
        height: 4px;
        border-radius: 999px;
        background: var(--sk-ivoire);
        box-shadow: 0 0 12px rgba(207, 178, 133, .18);
    }

    .nav-toggle:focus-visible + .nav-toggle-label {
        outline: 2px solid rgba(207, 178, 133, .65);
        outline-offset: 4px;
    }

    .site-nav,
    nav.site-nav {
        display: none;
        position: absolute;
        right: 0;
        top: calc(100% - 2px);
        z-index: 30;
        width: min(330px, calc(100vw - 40px));
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 14px;
        border: 1px solid rgba(207, 178, 133, .28);
        border-radius: 18px;
        background: rgba(5, 8, 22, .94);
        box-shadow: 0 24px 70px rgba(0, 0, 0, .46);
        backdrop-filter: blur(16px);
    }

    .nav-toggle:checked ~ .site-nav {
        display: flex;
    }

    .site-nav a,
    nav.site-nav a {
        justify-content: flex-start;
        min-height: 46px;
        padding: 0 12px;
        border-bottom: 1px solid rgba(207, 178, 133, .12);
        font-size: 1.15rem;
    }

    .site-nav a:last-child,
    nav.site-nav a:last-child {
        border-bottom: 0;
    }

    .site-nav a[aria-current="page"],
    nav.site-nav a[aria-current="page"] {
        border-bottom-color: rgba(139, 70, 178, .66);
        color: #fff;
    }

    .page-index .container {
        width: min(100% - 32px, 840px);
        padding-bottom: 24px;
    }

    .sk-home {
        min-height: 0;
        grid-template-columns: 1fr;
        grid-template-areas:
            "heading"
            "visual"
            "prose"
            "membership"
            "actions";
        row-gap: clamp(20px, 4vh, 34px);
        padding: clamp(58px, 8vh, 86px) clamp(28px, 6.2vw, 68px) clamp(34px, 6vh, 58px);
        text-align: center;
    }

    .sk-home::before {
        background-image: url("skandalon-responsive/frame-mobile.png");
        opacity: .9;
    }

    .sk-home-kicker {
        margin-bottom: 14px;
        font-size: clamp(.82rem, 2.9vw, 1.02rem);
        letter-spacing: .32em;
    }

    .sk-home h1 {
        font-size: clamp(3.65rem, 14.2vw, 6.3rem);
        line-height: .92;
    }

    .sk-home-divider {
        width: min(540px, 78%);
        margin: 20px auto 0;
    }

    .sk-home-visual {
        width: min(70vw, 440px);
        margin: -4px auto -8px;
    }

    .sk-home-visual::before {
        inset: -12% -22%;
        background: radial-gradient(circle, rgba(139, 70, 178, .34), transparent 62%);
    }

    .sk-home-prose {
        max-width: 680px;
        margin: 0 auto;
        text-align: left;
        font-size: clamp(1.32rem, 4.5vw, 1.82rem);
        line-height: 1.24;
    }

    .sk-home-membership {
        margin: 0;
        font-size: clamp(1.08rem, 4vw, 1.42rem);
    }

    .sk-home-membership::before {
        content: "—";
        margin-right: .42rem;
    }

    .sk-home-membership::after {
        content: "—";
        display: inline-block;
        margin-left: .42rem;
        color: rgba(207, 178, 133, .8);
    }

    .sk-home-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        width: min(100%, 670px);
        margin: 0 auto;
    }

    .sk-home-button,
    nav.sk-home-actions .sk-home-button {
        min-width: 0;
        min-height: 78px;
        justify-content: center;
        padding: 14px 18px;
        font-size: clamp(1.12rem, 4vw, 1.34rem);
    }

    .sk-home-button-primary,
    nav.sk-home-actions .sk-home-button-primary {
        grid-column: 1 / -1;
        min-width: 0;
        justify-content: flex-start;
        padding-left: clamp(22px, 6vw, 42px);
    }
}

@media (max-width: 520px) {
    .topbar {
        width: calc(100% - 24px);
        min-height: 88px;
        padding-top: 14px;
    }

    .brand--responsive .brand-logo {
        width: min(92px, 24vw);
    }

    .nav-toggle {
        top: 24px;
    }

    .nav-toggle-label {
        width: 44px;
        height: 42px;
        padding: 8px 5px;
    }

    .nav-toggle-label span {
        width: 31px;
        height: 3px;
    }

    .page-index .container {
        width: calc(100% - 18px);
    }

    .sk-home {
        padding: 44px 24px 28px;
        row-gap: 20px;
    }

    .sk-home-kicker {
        letter-spacing: .22em;
    }

    .sk-home h1 {
        font-size: clamp(3.25rem, 17vw, 4.85rem);
    }

    .sk-home-visual {
        width: min(76vw, 330px);
    }

    .sk-home-prose {
        font-size: clamp(1.2rem, 5.7vw, 1.48rem);
    }

    .sk-home-actions {
        gap: 12px;
    }

    .sk-home-button,
    nav.sk-home-actions .sk-home-button {
        min-height: 66px;
        padding-inline: 12px;
    }

    .sk-home-button-icon {
        display: none;
    }

    .sk-home-button small {
        font-size: .72rem;
    }
}

@media (max-width: 430px) {
    .sk-home-actions {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .sk-home-heading,
    .sk-home-prose,
    .sk-home-actions,
    .sk-home-membership {
        animation: skResponsiveReveal 760ms cubic-bezier(.18, .82, .26, 1) both;
    }

    .sk-home-prose { animation-delay: 120ms; }
    .sk-home-actions { animation-delay: 220ms; }
    .sk-home-membership { animation-delay: 300ms; }

    .sk-home-visual img {
        animation: skResponsiveSeal 980ms cubic-bezier(.18, .82, .26, 1) 120ms both;
    }
}

@keyframes skResponsiveReveal {
    from { opacity: 0; transform: translateY(16px); filter: blur(6px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes skResponsiveSeal {
    from { opacity: 0; transform: translateY(20px) scale(.94); filter: blur(8px) drop-shadow(0 20px 54px rgba(0,0,0,.2)); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0) drop-shadow(0 28px 70px rgba(0,0,0,.52)); }
}

/* Ajustements finaux : proportions plus proches des maquettes desktop/mobile */
.topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 1101px) {
    .sk-home {
        margin-top: clamp(-54px, -5vh, -32px);
        min-height: calc(100svh - 96px);
        grid-template-columns: minmax(0, 900px) minmax(440px, 600px);
        justify-content: space-between;
        column-gap: clamp(36px, 4vw, 68px);
        padding: clamp(36px, 5.1vh, 58px) clamp(48px, 4vw, 72px) clamp(24px, 4vh, 42px);
    }

    .sk-home h1 {
        white-space: nowrap;
        font-size: clamp(4.35rem, 5.35vw, 6rem);
    }

    .sk-home-visual {
        width: min(100%, 610px);
    }

    .sk-home-prose {
        max-width: 840px;
        font-size: clamp(1.1rem, 1.34vw, 1.42rem);
        line-height: 1.31;
    }

    .sk-home-actions {
        flex-wrap: nowrap;
        gap: 14px;
    }

    .sk-home-button,
    nav.sk-home-actions .sk-home-button {
        min-width: 235px;
        min-height: clamp(62px, 7vh, 78px);
        padding: 12px 22px;
    }

    .sk-home-button-primary,
    nav.sk-home-actions .sk-home-button-primary {
        min-width: 392px;
    }
}

@media (max-width: 900px) {
    .topbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .nav-toggle-label {
        flex: 0 0 auto;
    }
}

@media (max-width: 430px) {
    .sk-home-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sk-home-button-primary,
    nav.sk-home-actions .sk-home-button-primary {
        grid-column: 1 / -1;
    }
}

@media (max-width: 340px) {
    .sk-home-actions {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1101px) {
    .sk-home {
        margin-top: -64px;
        min-height: min(820px, calc(100svh - 110px));
        grid-template-columns: minmax(0, 930px) minmax(420px, 570px);
    }

    .sk-home-visual {
        width: min(100%, 590px);
    }

    .sk-home-button,
    nav.sk-home-actions .sk-home-button {
        min-width: 260px;
        font-size: clamp(1.14rem, 1.22vw, 1.34rem);
    }

    .sk-home-button-primary,
    nav.sk-home-actions .sk-home-button-primary {
        min-width: 380px;
    }
}


/* ======================================================================
   Accueil — refonte esthétique d'après la maquette fournie
   ====================================================================== */
:root {
    --sk-bg-deep: #020104;
    --sk-cream: #f8f1e8;
    --sk-muted: #d6c8ba;
    --sk-gold: #d4a700;
    --sk-gold-soft: rgba(212, 167, 0, .55);
    --sk-purple-hot: #c15cff;
    --sk-purple: #7d34b0;
    --sk-purple-dark: #291135;
}

body.page-index {
    min-height: 100svh;
    overflow-x: hidden;
    color: var(--sk-cream);
    background-color: var(--sk-bg-deep);
    background-image:
        linear-gradient(90deg, rgba(0, 0, 0, .1) 0%, rgba(0, 0, 0, .42) 52%, rgba(0, 0, 0, .82) 100%),
        radial-gradient(circle at 25% 23%, rgba(193, 92, 255, .22), transparent 26rem),
        radial-gradient(circle at 82% 28%, rgba(212, 167, 0, .08), transparent 24rem),
        url("skandalon-responsive/bg-desktop.png");
    background-position: center top, center top, center top, center top;
    background-size: cover, auto, auto, cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

body.page-index::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 42% 10%, rgba(255, 255, 255, .15) 0 1px, transparent 2px),
        radial-gradient(circle at 38% 16%, rgba(193, 92, 255, .55) 0 1px, transparent 2px),
        radial-gradient(circle at 5% 84%, rgba(193, 92, 255, .15), transparent 16rem),
        linear-gradient(90deg, rgba(0, 0, 0, .04), rgba(0, 0, 0, .55) 50%, rgba(0, 0, 0, .94));
    opacity: 1;
}

body.page-index .topbar,
body.page-index .container {
    position: relative;
    z-index: 1;
}

body.page-index .topbar {
    width: min(1672px, calc(100% - 64px));
    min-height: clamp(88px, 12vh, 126px);
    margin: 0 auto;
    padding: clamp(16px, 2.2vh, 24px) 0 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(24px, 4vw, 70px);
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    position: relative;
    top: auto;
}

body.page-index .brand--responsive {
    width: clamp(76px, 7.9vw, 126px);
    height: clamp(76px, 7.9vw, 126px);
    align-items: center;
    justify-content: center;
}

body.page-index .brand--responsive .brand-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
    filter:
        drop-shadow(0 0 8px rgba(193, 92, 255, .52))
        drop-shadow(0 12px 28px rgba(0, 0, 0, .52));
}

body.page-index .site-nav,
body.page-index nav.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: clamp(28px, 4.4vw, 70px);
    padding-top: clamp(12px, 2.2vh, 26px);
    margin-left: auto;
}

body.page-index .site-nav a,
body.page-index nav.site-nav a {
    position: relative;
    min-height: 0;
    padding: 0 0 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(248, 241, 232, .88);
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: clamp(1.18rem, 1.35vw, 1.46rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: .005em;
    text-decoration: none;
    text-shadow: 0 8px 20px rgba(0, 0, 0, .5);
    box-shadow: none;
}

body.page-index .site-nav a::after,
body.page-index nav.site-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 0;
    height: 2px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--sk-gold), transparent);
    box-shadow: 0 0 14px rgba(212, 167, 0, .78);
    transition: width 180ms ease;
}

body.page-index .site-nav a:hover,
body.page-index .site-nav a:focus-visible,
body.page-index nav.site-nav a:hover,
body.page-index nav.site-nav a:focus-visible,
body.page-index .site-nav a[aria-current="page"],
body.page-index nav.site-nav a[aria-current="page"] {
    color: #fff;
    background: transparent;
    border: 0;
}

body.page-index .site-nav a:hover::after,
body.page-index .site-nav a:focus-visible::after,
body.page-index .site-nav a[aria-current="page"]::after,
body.page-index nav.site-nav a:hover::after,
body.page-index nav.site-nav a:focus-visible::after,
body.page-index nav.site-nav a[aria-current="page"]::after {
    width: 64px;
}

body.page-index .site-nav a[aria-current="page"]::before,
body.page-index nav.site-nav a[aria-current="page"]::before {
    content: "✦";
    position: absolute;
    left: 50%;
    bottom: -1px;
    z-index: 1;
    transform: translateX(-50%);
    color: var(--sk-gold);
    font-size: .78rem;
    text-shadow: 0 0 16px rgba(212, 167, 0, .92);
}

body.page-index .container {
    width: min(1672px, calc(100% - 64px));
    margin: 0 auto;
    padding: 0 0 clamp(26px, 4vh, 42px);
}

body.page-index .sk-home {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(520px, .98fr) minmax(520px, .92fr);
    grid-template-areas:
        "visual heading"
        "visual prose"
        "visual actions"
        "visual membership";
    align-content: center;
    align-items: center;
    justify-content: space-between;
    column-gap: clamp(28px, 4.7vw, 84px);
    row-gap: clamp(16px, 2.2vh, 24px);
    min-height: calc(100svh - clamp(98px, 12vh, 126px));
    padding: 0;
    overflow: visible;
    color: var(--sk-cream);
}

body.page-index .sk-home::before,
body.page-index .sk-home::after {
    content: none;
}

body.page-index .sk-home-visual {
    grid-area: visual;
    align-self: center;
    justify-self: start;
    width: min(53vw, 820px);
    max-width: none;
    margin-left: clamp(-54px, -2.9vw, -18px);
    margin-top: clamp(-26px, -2vh, -4px);
}

body.page-index .sk-home-visual::before {
    content: "";
    position: absolute;
    inset: 7%;
    z-index: -1;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(193, 92, 255, .28), transparent 64%),
        radial-gradient(circle, rgba(255, 255, 255, .06), transparent 48%);
    filter: blur(10px);
}

body.page-index .sk-home-visual img {
    width: 100%;
    height: auto;
    filter:
        brightness(.93)
        saturate(.96)
        drop-shadow(0 0 12px rgba(193, 92, 255, .36))
        drop-shadow(0 30px 74px rgba(0, 0, 0, .62));
}

body.page-index .sk-home-heading {
    grid-area: heading;
    align-self: end;
    max-width: 780px;
    padding-top: clamp(10px, 1.7vh, 18px);
}

body.page-index .sk-home-kicker {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin: 0 0 clamp(16px, 2.1vh, 24px);
    color: var(--sk-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(.82rem, 1.06vw, 1.08rem);
    font-weight: 700;
    letter-spacing: .34em;
    line-height: 1.2;
    text-transform: uppercase;
    text-shadow: 0 0 16px rgba(212, 167, 0, .26);
}

body.page-index .sk-home-kicker::before,
body.page-index .sk-home-kicker::after {
    content: "";
    flex: 0 0 1.25rem;
    height: 1px;
    background: currentColor;
    opacity: .95;
}

body.page-index .sk-home h1 {
    margin: 0;
    color: #fffaf2;
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: clamp(4.2rem, 6.25vw, 6.7rem);
    font-weight: 700;
    line-height: .9;
    letter-spacing: -.045em;
    white-space: nowrap;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, .22),
        0 0 32px rgba(255, 255, 255, .14),
        0 18px 44px rgba(0, 0, 0, .52);
}

body.page-index .sk-home-divider {
    display: block;
    width: min(560px, 74%);
    height: auto;
    margin: clamp(16px, 2.1vh, 22px) 0 0;
    opacity: .96;
    filter: drop-shadow(0 0 14px rgba(212, 167, 0, .4));
}

body.page-index .sk-home-prose {
    grid-area: prose;
    max-width: 790px;
    color: rgba(248, 241, 232, .88);
    font-size: clamp(1.38rem, 1.74vw, 1.9rem);
    font-weight: 500;
    line-height: 1.25;
    text-shadow: 0 10px 24px rgba(0, 0, 0, .42);
}

body.page-index .sk-home-prose p {
    margin: 0 0 .78em;
    color: inherit;
}

body.page-index .sk-home-prose p:last-child {
    margin-bottom: 0;
}

body.page-index .sk-home-prose abbr {
    color: var(--sk-purple-hot);
    font-variant: normal;
    font-variant-caps: normal;
    font-weight: 700;
    letter-spacing: .035em;
    text-decoration: none;
    text-shadow: 0 0 14px rgba(193, 92, 255, .55);
}

body.page-index .sk-home-actions,
body.page-index nav.sk-home-actions {
    grid-area: actions;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: clamp(14px, 1.4vw, 20px);
    margin-top: clamp(6px, 1.6vh, 18px);
}

body.page-index .sk-home-button,
body.page-index nav.sk-home-actions .sk-home-button {
    min-height: clamp(62px, 7.4vh, 82px);
    min-width: clamp(188px, 14vw, 236px);
    padding: 12px clamp(22px, 1.75vw, 32px);
    border: 1px solid rgba(212, 167, 0, .76);
    border-radius: 999px;
    background: rgba(0, 0, 0, .18);
    color: #fffaf2;
    box-shadow: inset 0 0 20px rgba(212, 167, 0, .035);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: clamp(1.16rem, 1.35vw, 1.42rem);
    font-weight: 700;
    line-height: 1.05;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

body.page-index .sk-home-button:hover,
body.page-index .sk-home-button:focus-visible,
body.page-index nav.sk-home-actions .sk-home-button:hover,
body.page-index nav.sk-home-actions .sk-home-button:focus-visible {
    transform: translateY(-2px);
    border-color: var(--sk-gold);
    background: rgba(212, 167, 0, .055);
    box-shadow: 0 0 24px rgba(212, 167, 0, .17), inset 0 0 22px rgba(212, 167, 0, .04);
}

body.page-index .sk-home-button-primary,
body.page-index nav.sk-home-actions .sk-home-button-primary {
    min-width: clamp(330px, 27vw, 430px);
    justify-content: space-between;
    border-color: rgba(193, 92, 255, .84);
    background:
        radial-gradient(circle at 16% 18%, rgba(255, 255, 255, .23), transparent 33%),
        linear-gradient(135deg, rgba(112, 50, 154, .96), rgba(43, 17, 62, .94));
    box-shadow:
        inset 0 0 24px rgba(255, 255, 255, .11),
        0 0 25px rgba(193, 92, 255, .42),
        0 22px 54px rgba(0, 0, 0, .34);
}

body.page-index .sk-home-button-primary:hover,
body.page-index nav.sk-home-actions .sk-home-button-primary:hover {
    background:
        radial-gradient(circle at 16% 18%, rgba(255, 255, 255, .26), transparent 34%),
        linear-gradient(135deg, rgba(128, 58, 174, .98), rgba(55, 22, 76, .95));
    box-shadow:
        inset 0 0 26px rgba(255, 255, 255, .13),
        0 0 30px rgba(193, 92, 255, .52),
        0 26px 62px rgba(0, 0, 0, .38);
}

body.page-index .sk-home-button strong,
body.page-index .sk-home-button small {
    display: block;
}

body.page-index .sk-home-button small {
    margin-top: .32rem;
    color: rgba(248, 241, 232, .78);
    font-family: Georgia, "Times New Roman", serif;
    font-size: .74rem;
    font-weight: 400;
    letter-spacing: .015em;
}

body.page-index .sk-home-button-arrow {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35em;
    line-height: 1;
}

body.page-index .sk-home-membership {
    grid-area: membership;
    display: flex;
    align-items: center;
    gap: .8rem;
    width: 100%;
    margin: clamp(8px, 2.1vh, 22px) 0 0;
    color: rgba(212, 167, 0, .84);
    font-size: clamp(1.1rem, 1.42vw, 1.5rem);
    line-height: 1.25;
    text-shadow: 0 0 14px rgba(212, 167, 0, .16), 0 8px 20px rgba(0, 0, 0, .42);
}

body.page-index .sk-home-membership::before {
    content: "";
    flex: 0 1 clamp(190px, 21vw, 360px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 167, 0, .66), transparent);
}

body.page-index .sk-home-membership::after {
    content: "—";
    color: rgba(212, 167, 0, .9);
}

@media (min-width: 1500px) {
    body.page-index .sk-home {
        grid-template-columns: minmax(700px, .99fr) minmax(640px, .94fr);
        column-gap: clamp(34px, 3.8vw, 72px);
    }

    body.page-index .sk-home-visual {
        width: min(51.5vw, 860px);
        margin-left: -58px;
    }
}

@media (max-width: 1180px) {
    body.page-index .topbar,
    body.page-index .container {
        width: min(100% - 44px, 1180px);
    }

    body.page-index .topbar {
        align-items: center;
    }

    body.page-index .site-nav,
    body.page-index nav.site-nav {
        gap: clamp(18px, 2.8vw, 34px);
        padding-top: 0;
    }

    body.page-index .sk-home {
        grid-template-columns: minmax(420px, .9fr) minmax(440px, 1fr);
        column-gap: 34px;
    }

    body.page-index .sk-home-visual {
        width: min(48vw, 560px);
        margin-left: -20px;
    }

    body.page-index .sk-home h1 {
        white-space: normal;
        font-size: clamp(3.9rem, 6.7vw, 5.4rem);
    }

    body.page-index .sk-home-prose {
        font-size: clamp(1.25rem, 2vw, 1.58rem);
    }
}

@media (max-width: 900px) {
    body.page-index {
        background-image:
            linear-gradient(180deg, rgba(0, 0, 0, .06) 0%, rgba(0, 0, 0, .38) 42%, rgba(0, 0, 0, .86) 100%),
            radial-gradient(circle at 50% 22%, rgba(193, 92, 255, .22), transparent 20rem),
            url("skandalon-responsive/bg-mobile.png");
        background-size: cover, auto, cover;
        background-attachment: scroll;
    }

    body.page-index::before {
        background:
            radial-gradient(circle at 50% 14%, rgba(255, 255, 255, .12) 0 1px, transparent 2px),
            linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .45) 44%, rgba(0, 0, 0, .9));
    }

    body.page-index .topbar {
        width: min(100% - 28px, 760px);
        min-height: 86px;
        padding-top: 12px;
        align-items: center;
    }

    body.page-index .brand--responsive {
        width: clamp(64px, 17vw, 92px);
        height: clamp(64px, 17vw, 92px);
    }

    body.page-index .nav-toggle {
        position: absolute;
        right: 0;
        top: 22px;
        z-index: 36;
        display: block;
        width: 48px;
        height: 44px;
        margin: 0;
        opacity: 0;
        cursor: pointer;
    }

    body.page-index .nav-toggle-label {
        display: inline-grid;
        width: 48px;
        height: 44px;
        place-items: center;
        padding: 8px 6px;
        border: 1px solid rgba(212, 167, 0, .34);
        border-radius: 999px;
        background: rgba(0, 0, 0, .24);
        cursor: pointer;
        box-shadow: 0 10px 22px rgba(0, 0, 0, .28);
    }

    body.page-index .nav-toggle-label span {
        display: block;
        width: 27px;
        height: 2px;
        border-radius: 999px;
        background: var(--sk-cream);
    }

    body.page-index .site-nav,
    body.page-index nav.site-nav {
        display: none;
        position: absolute;
        right: 0;
        top: calc(100% + 8px);
        z-index: 35;
        width: min(330px, calc(100vw - 32px));
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border: 1px solid rgba(212, 167, 0, .3);
        border-radius: 20px;
        background: rgba(5, 2, 8, .96);
        box-shadow: 0 26px 76px rgba(0, 0, 0, .55);
        backdrop-filter: blur(14px);
    }

    body.page-index .nav-toggle:checked ~ .site-nav {
        display: flex;
    }

    body.page-index .site-nav a,
    body.page-index nav.site-nav a {
        min-height: 48px;
        padding: 0 12px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        border-bottom: 1px solid rgba(212, 167, 0, .12);
        font-size: 1.18rem;
    }

    body.page-index .site-nav a:last-child,
    body.page-index nav.site-nav a:last-child {
        border-bottom: 0;
    }

    body.page-index .site-nav a::after,
    body.page-index nav.site-nav a::after,
    body.page-index .site-nav a[aria-current="page"]::before,
    body.page-index nav.site-nav a[aria-current="page"]::before {
        content: none;
    }

    body.page-index .container {
        width: min(100% - 28px, 760px);
        padding-bottom: 28px;
    }

    body.page-index .sk-home {
        min-height: 0;
        grid-template-columns: 1fr;
        grid-template-areas:
            "heading"
            "visual"
            "prose"
            "actions"
            "membership";
        row-gap: clamp(22px, 4vh, 34px);
        padding: clamp(18px, 2vh, 26px) 0 0;
        text-align: center;
    }

    body.page-index .sk-home-heading {
        max-width: 100%;
        justify-self: center;
        padding-top: 0;
    }

    body.page-index .sk-home-kicker {
        justify-content: center;
        font-size: clamp(.78rem, 2.7vw, .98rem);
        letter-spacing: .28em;
    }

    body.page-index .sk-home h1 {
        white-space: normal;
        font-size: clamp(3.45rem, 12.8vw, 5.9rem);
    }

    body.page-index .sk-home-divider {
        width: min(520px, 82%);
        margin-inline: auto;
    }

    body.page-index .sk-home-visual {
        justify-self: center;
        width: min(78vw, 500px);
        margin: -8px auto -4px;
    }

    body.page-index .sk-home-prose {
        justify-self: center;
        max-width: 640px;
        text-align: left;
        font-size: clamp(1.25rem, 4.3vw, 1.62rem);
        line-height: 1.27;
    }

    body.page-index .sk-home-actions,
    body.page-index nav.sk-home-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        width: min(100%, 620px);
        margin: 0 auto;
    }

    body.page-index .sk-home-button,
    body.page-index nav.sk-home-actions .sk-home-button {
        min-width: 0;
        min-height: 62px;
        padding-inline: 18px;
        font-size: clamp(1.08rem, 3.7vw, 1.28rem);
    }

    body.page-index .sk-home-button-primary,
    body.page-index nav.sk-home-actions .sk-home-button-primary {
        grid-column: 1 / -1;
        min-width: 0;
    }

    body.page-index .sk-home-membership {
        justify-content: center;
        text-align: center;
        font-size: clamp(1.08rem, 3.8vw, 1.32rem);
    }

    body.page-index .sk-home-membership::before {
        content: "—";
        flex: 0 0 auto;
        width: auto;
        height: auto;
        background: none;
    }
}

@media (max-width: 520px) {
    body.page-index .topbar,
    body.page-index .container {
        width: calc(100% - 22px);
    }

    body.page-index .brand--responsive {
        width: 66px;
        height: 66px;
    }

    body.page-index .nav-toggle {
        top: 18px;
    }

    body.page-index .sk-home {
        row-gap: 20px;
        padding-top: 14px;
    }

    body.page-index .sk-home-kicker {
        gap: .55rem;
        letter-spacing: .19em;
    }

    body.page-index .sk-home-kicker::before,
    body.page-index .sk-home-kicker::after {
        flex-basis: .8rem;
    }

    body.page-index .sk-home h1 {
        font-size: clamp(3.2rem, 15.8vw, 4.9rem);
    }

    body.page-index .sk-home-visual {
        width: min(83vw, 360px);
    }

    body.page-index .sk-home-prose {
        font-size: clamp(1.18rem, 5.4vw, 1.43rem);
    }

    body.page-index .sk-home-actions,
    body.page-index nav.sk-home-actions {
        gap: 12px;
    }

    body.page-index .sk-home-button,
    body.page-index nav.sk-home-actions .sk-home-button {
        min-height: 58px;
        padding-inline: 12px;
    }

    body.page-index .sk-home-button small {
        font-size: .68rem;
    }
}

@media (max-width: 430px) {
    body.page-index .sk-home-actions,
    body.page-index nav.sk-home-actions {
        grid-template-columns: 1fr;
    }
}

/* Logo comme entrée séparée dans la navigation, avant Accueil */
.site-nav .nav-logo-link,
nav.site-nav .nav-logo-link {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.site-nav .nav-logo-link::before,
.site-nav .nav-logo-link::after,
nav.site-nav .nav-logo-link::before,
nav.site-nav .nav-logo-link::after {
    content: none !important;
}

.site-nav .nav-logo-link:hover,
.site-nav .nav-logo-link:focus-visible,
nav.site-nav .nav-logo-link:hover,
nav.site-nav .nav-logo-link:focus-visible {
    background: transparent;
    border-color: transparent;
}

.nav-home-logo {
    width: clamp(92px, 8vw, 126px);
    height: clamp(92px, 8vw, 126px);
    object-fit: contain;
    border-radius: 50%;
    filter:
        drop-shadow(0 0 8px rgba(193, 92, 255, .46))
        drop-shadow(0 10px 24px rgba(0, 0, 0, .50));
}

body.page-index .nav-home-logo {
    width: clamp(76px, 7.9vw, 126px);
    height: clamp(76px, 7.9vw, 126px);
}

@media (max-width: 900px) {
    .nav-home-logo,
    body.page-index .nav-home-logo {
        width: clamp(70px, 16vw, 96px);
        height: clamp(70px, 16vw, 96px);
    }
}

@media (max-width: 520px) {
    .nav-home-logo,
    body.page-index .nav-home-logo {
        width: min(76px, 20vw);
        height: min(76px, 20vw);
    }
}

/* Pages livre : contenu indexable et confortable */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    margin: 0 0 22px;
    color: rgba(43, 32, 24, .72);
    font-size: .96rem;
}
.breadcrumbs a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(43, 32, 24, .24);
}
.breadcrumbs a:hover { color: #2b2018; border-bottom-color: currentColor; }
.book-detail { padding: 18px 0 40px; }
.book-detail-grid {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}
.book-detail-cover {
    position: sticky;
    top: 24px;
}
.book-detail-cover img,
.detail-placeholder {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 22px 60px rgba(54, 35, 18, .18);
    background: #efe3d0;
}
.detail-placeholder {
    min-height: 420px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 24px;
}
.detail-placeholder strong { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.detail-placeholder span { display: block; margin-top: 10px; }
.book-detail-content h1 {
    margin: 0 0 .2em;
    font-size: clamp(2.6rem, 7vw, 5.5rem);
    line-height: .9;
}
.book-detail-author {
    margin: 0 0 1.4rem;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    color: rgba(43, 32, 24, .72);
}
.book-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0 18px;
}
.book-download-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.download-format-title {
    color: #2b2037;
    font-weight: 800;
}
.download-format-link {
    min-height: 42px;
    border-radius: 999px;
    padding: 0 18px;
}
.book-download-form label { font-weight: 700; }
.book-download-form select { min-height: 42px; }
.book-detail-meta { margin-top: clamp(28px, 5vw, 56px); }
.book-meta-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px 28px;
    margin: 0;
}
.book-meta-list div {
    padding: 12px 0;
    border-bottom: 1px solid rgba(43, 32, 24, .12);
}
.book-meta-list dt {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(43, 32, 24, .56);
}
.book-meta-list dd {
    margin: .25rem 0 0;
    font-size: 1.06rem;
}
.catalog-book-title a {
    color: inherit;
    text-decoration: none;
}
.catalog-book-title a:hover { text-decoration: underline; }
@media (max-width: 760px) {
    .book-detail-grid { grid-template-columns: 1fr; }
    .book-detail-cover { position: static; max-width: 260px; margin: 0 auto; }
    .book-detail-content { text-align: center; }
    .book-detail-actions,
    .book-download-form { justify-content: center; }
}

.book-type-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin: 0 0 1rem;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: rgba(116, 82, 43, .11);
    color: #4a3323;
    font-weight: 700;
    font-size: .92rem;
}
.book-indexable-formats,
.book-text-section {
    margin-top: clamp(24px, 4vw, 42px);
}
.book-format-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}
.book-format-links a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: .7rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(43, 32, 24, .2);
    background: rgba(255,255,255,.45);
    color: #2b2018;
    text-decoration: none;
    font-weight: 700;
}
.book-format-links a:hover {
    border-color: currentColor;
    background: rgba(255,255,255,.75);
}
.book-long-text {
    max-width: 74ch;
    font-size: clamp(1.05rem, 1.4vw, 1.22rem);
    line-height: 1.72;
    white-space: normal;
}
.paper-note,
.seo-keywords {
    color: rgba(43, 32, 24, .72);
}
.paper-buy-link {
    border-color: rgba(69, 45, 20, .38);
}
@media (max-width: 760px) {
    .book-format-links { justify-content: center; }
    .book-long-text { text-align: left; }
}

/* Catalogue : actions au survol + fenêtre de présentation complète */
.catalog-book-cover-wrap {
    overflow: hidden;
    border-radius: 8px;
}
.catalog-book-options {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 22%, rgba(164, 116, 255, .38), transparent 44%),
        linear-gradient(180deg, rgba(6, 8, 18, .18), rgba(6, 8, 18, .88));
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 170ms ease, transform 170ms ease;
}
.catalog-book:hover .catalog-book-options,
.catalog-book:focus-within .catalog-book-options {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.catalog-book:hover .catalog-open-label,
.catalog-book:focus-within .catalog-open-label {
    opacity: 0;
}
.catalog-option-button,
.catalog-option-link {
    width: min(100%, 148px);
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.34);
    color: #fff;
    font-size: .9rem;
    font-weight: 900;
    text-decoration: none;
    backdrop-filter: blur(10px);
}
.catalog-option-button {
    background: linear-gradient(180deg, var(--primary), var(--primary-strong));
    box-shadow: 0 14px 30px rgba(0,0,0,.24);
}
.catalog-option-link {
    background: rgba(255,255,255,.12);
    box-shadow: 0 12px 26px rgba(0,0,0,.18);
}
.catalog-option-button:hover,
.catalog-option-link:hover,
.catalog-option-button:focus-visible,
.catalog-option-link:focus-visible {
    filter: brightness(1.07);
    outline: 2px solid rgba(255,255,255,.72);
    outline-offset: 3px;
}
.catalog-modal-open {
    overflow: hidden;
}
.catalog-presentation-modal[hidden] {
    display: none !important;
}
.catalog-presentation-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 16px;
    text-align: left;
    color: #201821;
}
.catalog-presentation-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 5, 14, .74);
    backdrop-filter: blur(8px);
}
.catalog-presentation-panel {
    position: relative;
    z-index: 1;
    width: min(1060px, calc(100vw - 32px));
    max-height: min(860px, calc(100dvh - 32px));
    overflow: auto;
    border-radius: 26px;
    background:
        radial-gradient(circle at 12% 0%, rgba(164, 116, 255, .13), transparent 34%),
        linear-gradient(180deg, #fff 0%, #fbf8ff 100%);
    border: 1px solid rgba(210, 197, 236, .78);
    box-shadow: 0 30px 90px rgba(0,0,0,.42);
    padding: clamp(20px, 4vw, 38px);
}
.catalog-presentation-panel:focus {
    outline: none;
}
.catalog-presentation-close {
    position: sticky;
    top: 0;
    float: right;
    z-index: 2;
    width: 42px;
    min-height: 42px;
    margin: -8px -8px 8px 12px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(43, 32, 24, .16);
    background: rgba(255,255,255,.92);
    color: #21182c;
    font-size: 1.8rem;
    line-height: 1;
    box-shadow: 0 10px 26px rgba(0,0,0,.12);
}
.catalog-presentation-close:hover,
.catalog-presentation-close:focus-visible {
    filter: none;
    background: #fff;
    outline: 2px solid rgba(164, 116, 255, .28);
    outline-offset: 2px;
}
.catalog-presentation-layout {
    display: grid;
    grid-template-columns: minmax(190px, 300px) minmax(0, 1fr);
    gap: clamp(22px, 4vw, 44px);
    align-items: start;
}
.catalog-presentation-cover img,
.catalog-presentation-cover .detail-placeholder {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 20px 54px rgba(34, 22, 48, .18);
    background: #efe8fb;
}
.catalog-presentation-cover .detail-placeholder {
    min-height: 390px;
}
.catalog-presentation-content h3 {
    margin: 0;
    color: #171024;
    font-size: clamp(2.2rem, 5.6vw, 4.8rem);
    line-height: .92;
    letter-spacing: -.04em;
}
.catalog-presentation-eyebrow {
    margin: 0 0 10px;
    color: #7452d6;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.catalog-presentation-author {
    margin: .45rem 0 1rem;
    color: rgba(23, 16, 36, .64);
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    font-weight: 700;
    min-height: 0 !important;
}
.catalog-presentation-lead {
    margin: 0 0 18px;
    max-width: 78ch;
    color: rgba(23, 16, 36, .78);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.6;
}
.catalog-presentation-chips {
    margin: 0 0 18px;
}
.catalog-presentation-chips span {
    background: rgba(164, 116, 255, .12);
    color: #51406f;
}
.catalog-presentation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 14px;
}
.catalog-presentation-actions .button,
.catalog-presentation-actions .ghost,
.catalog-presentation-download button {
    min-height: 42px;
    border-radius: 999px;
}
.catalog-presentation-actions .button,
.catalog-presentation-actions .ghost,
.catalog-presentation-download .download-format-link {
    min-height: 44px;
    border-radius: 999px;
    padding: 0 20px;
    text-decoration: none;
}
.catalog-presentation-actions .button {
    font-weight: 900;
}
.catalog-presentation-download {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 24px;
}
.catalog-presentation-download .download-format-title {
    margin-right: 2px;
    color: #2b2037;
}
.catalog-presentation-download select {
    width: auto;
    min-width: 140px;
}
.catalog-presentation-sections {
    display: grid;
    gap: 16px;
}
.catalog-presentation-sections section {
    padding: clamp(16px, 2.2vw, 22px);
    border-radius: 18px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(188, 176, 216, .42);
}
.catalog-presentation-sections h4 {
    margin: 0 0 .72rem;
    color: #171024;
    font-size: 1.08rem;
}
.catalog-presentation-text,
.catalog-presentation-empty,
.catalog-presentation-keywords {
    color: rgba(23, 16, 36, .76);
    line-height: 1.72;
}
.catalog-presentation-text {
    max-width: 76ch;
    font-size: 1.02rem;
}
.catalog-presentation-empty {
    margin: 0;
    font-style: italic;
}
.catalog-presentation-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px 18px;
    margin: 0;
}
.catalog-presentation-meta div {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(43, 32, 24, .12);
}
.catalog-presentation-meta dt {
    color: rgba(23, 16, 36, .56);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.catalog-presentation-meta dd {
    margin: .22rem 0 0;
    color: #171024;
}
.catalog-presentation-keywords {
    margin: 16px 0 0;
}

@media (hover: none), (max-width: 760px) {
    .catalog-book-cover-wrap {
        overflow: visible;
    }
    .catalog-book-options {
        position: static;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        width: var(--catalog-cover-width);
        margin: 10px auto 0;
        padding: 0;
        background: transparent;
        flex-direction: row;
        gap: 8px;
    }
    .catalog-option-button,
    .catalog-option-link {
        width: auto;
        flex: 1 1 0;
        min-height: 38px;
        padding: 0 10px;
        font-size: .78rem;
        border-color: rgba(196,178,255,.24);
        box-shadow: none;
    }
    .catalog-option-link {
        background: rgba(255,255,255,.08);
    }
}
@media (max-width: 760px) {
    .catalog-presentation-layout {
        grid-template-columns: 1fr;
    }
    .catalog-presentation-cover {
        max-width: 240px;
        margin: 0 auto;
    }
    .catalog-presentation-content h3,
    .catalog-presentation-author,
    .catalog-presentation-eyebrow,
    .catalog-presentation-lead {
        text-align: center;
    }
    .catalog-presentation-actions,
    .catalog-presentation-download {
        justify-content: center;
    }
}
@media (max-width: 520px) {
    .catalog-presentation-modal {
        padding: 0;
        align-items: end;
    }
    .catalog-presentation-panel {
        width: 100vw;
        max-height: 92dvh;
        border-radius: 22px 22px 0 0;
        padding: 18px 14px 24px;
    }
    .catalog-presentation-close {
        margin: -4px -2px 6px 10px;
    }
    .catalog-presentation-actions .button,
    .catalog-presentation-actions .ghost,
    .catalog-presentation-download select,
    .catalog-presentation-download button,
    .catalog-presentation-download .download-format-link {
        width: 100%;
    }
    .catalog-presentation-download .download-format-title {
        width: 100%;
        text-align: center;
    }
    .catalog-option-button,
    .catalog-option-link {
        font-size: .74rem;
        padding: 0 8px;
    }
}

/* Admin : l'image manuelle n'est qu'un remplacement facultatif des couvertures PDF automatiques */
.optional-cover-upload {
    border: 1px dashed rgba(164, 116, 255, .32);
    border-radius: 16px;
    padding: 14px 16px;
    background: rgba(164, 116, 255, .06);
}
.optional-cover-upload summary {
    cursor: pointer;
    color: var(--primary-strong);
    font-weight: 900;
}
.optional-cover-upload > .hint {
    margin: 10px 0 14px;
}

/* Catalogue presentation: première + quatrième de couverture */
.catalog-presentation-covers {
    display: grid;
    gap: 18px;
    align-content: start;
}
.catalog-presentation-cover {
    margin: 0;
}
.catalog-presentation-cover figcaption {
    margin-top: 10px;
    color: rgba(23, 16, 36, .58);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-align: center;
    text-transform: uppercase;
}
.catalog-pdf-cover-holder,
.catalog-pdf-cover-canvas,
.catalog-back-cover-holder,
.catalog-back-cover-canvas {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 20px 54px rgba(34, 22, 48, .18);
    background: #efe8fb;
}
.catalog-pdf-cover-holder,
.catalog-back-cover-holder {
    min-height: 390px;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 18px;
    color: rgba(23, 16, 36, .58);
    font-weight: 800;
    line-height: 1.45;
    text-align: center;
}
.catalog-pdf-cover-canvas,
.catalog-back-cover-canvas {
    display: block;
    height: auto;
}
.catalog-presentation-pdf-cover.is-rendered .catalog-pdf-cover-holder,
.catalog-presentation-back-cover.is-rendered .catalog-back-cover-holder {
    padding: 0;
    background: transparent;
}
.catalog-presentation-pdf-cover.is-error .catalog-pdf-cover-holder,
.catalog-presentation-pdf-cover.is-unavailable .catalog-pdf-cover-holder,
.catalog-presentation-back-cover.is-error .catalog-back-cover-holder,
.catalog-presentation-back-cover.is-unavailable .catalog-back-cover-holder {
    border: 1px dashed rgba(116, 82, 214, .28);
    box-shadow: none;
}

@media (max-width: 760px) {
    .catalog-presentation-covers {
        width: min(100%, 520px);
        margin: 0 auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .catalog-presentation-cover {
        max-width: none;
        margin: 0;
    }
    .catalog-pdf-cover-holder,
    .catalog-back-cover-holder,
    .catalog-presentation-cover .detail-placeholder {
        min-height: 0;
        aspect-ratio: 2 / 3;
    }
    .catalog-presentation-cover figcaption {
        font-size: .68rem;
    }
}

@media (max-width: 420px) {
    .catalog-presentation-covers {
        grid-template-columns: 1fr;
        max-width: 230px;
    }
}

/* Admin : extraction automatique du texte des couvertures PDF */
.pdf-text-extractor {
    border: 1px solid rgba(116, 82, 214, .22);
    border-radius: 18px;
    padding: 16px;
    background: rgba(255, 255, 255, .62);
    box-shadow: 0 12px 34px rgba(23, 16, 36, .05);
}
.pdf-text-extractor strong {
    display: block;
    margin-bottom: 4px;
    color: var(--primary-strong);
    font-size: .98rem;
}
.pdf-text-extractor .hint {
    margin: 0;
}
.pdf-text-extractor-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-top: 12px;
}
.pdf-text-extractor-actions .button {
    min-height: 38px;
    padding: 0 16px;
}
.pdf-text-extractor-actions .button:disabled {
    cursor: not-allowed;
    opacity: .55;
    filter: none;
}
.pdf-text-status {
    min-height: 1.35em;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 700;
}
.pdf-text-status[data-status="success"] {
    color: var(--success);
}
.pdf-text-status[data-status="warning"] {
    color: var(--danger);
}
.pdf-text-status[data-status="info"] {
    color: var(--muted);
}

/* Catalogue presentation: zoom des couvertures */
.catalog-presentation-cover[data-cover-zoom] {
    cursor: zoom-in;
}
.catalog-presentation-cover[data-cover-zoom]:focus-visible {
    outline: 3px solid rgba(116, 82, 214, .35);
    outline-offset: 6px;
    border-radius: 20px;
}
.catalog-presentation-cover[data-cover-zoom] .catalog-pdf-cover-holder,
.catalog-presentation-cover[data-cover-zoom] img,
.catalog-presentation-cover[data-cover-zoom] .detail-placeholder {
    transition: transform .18s ease, box-shadow .18s ease;
}
@media (hover: hover) {
    .catalog-presentation-cover[data-cover-zoom]:hover .catalog-pdf-cover-holder,
    .catalog-presentation-cover[data-cover-zoom]:hover img,
    .catalog-presentation-cover[data-cover-zoom]:hover .detail-placeholder {
        transform: translateY(-2px);
        box-shadow: 0 24px 64px rgba(34, 22, 48, .26);
    }
}
.catalog-cover-zoom {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: grid;
    place-items: center;
    padding: clamp(18px, 4vw, 38px);
    background: rgba(3, 5, 14, .48);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .16s ease, visibility .16s ease;
}
.catalog-cover-zoom.is-active {
    opacity: 1;
    visibility: visible;
}
.catalog-cover-zoom.is-sticky {
    pointer-events: auto;
    cursor: zoom-out;
}
.catalog-cover-zoom-frame {
    display: grid;
    gap: 10px;
    justify-items: center;
    max-width: min(620px, 92vw);
    max-height: calc(100dvh - 48px);
}
.catalog-cover-zoom img {
    display: block;
    max-width: min(620px, 92vw);
    max-height: calc(100dvh - 96px);
    width: auto;
    height: auto;
    border-radius: 20px;
    background: #efe8fb;
    box-shadow: 0 34px 96px rgba(0, 0, 0, .48);
}
.catalog-cover-zoom-caption {
    margin: 0;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.9);
    color: #21182c;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
@media (hover: none), (pointer: coarse) {
    .catalog-presentation-cover[data-cover-zoom] {
        cursor: pointer;
    }
    .catalog-presentation-cover[data-cover-zoom] figcaption::after {
        content: ' · toucher pour agrandir';
        text-transform: none;
        letter-spacing: 0;
        font-weight: 800;
        opacity: .72;
    }
    .catalog-cover-zoom {
        background: rgba(3, 5, 14, .72);
    }
}
@media (max-width: 520px) {
    .catalog-cover-zoom {
        padding: 14px;
    }
    .catalog-cover-zoom img {
        max-width: 94vw;
        max-height: calc(100dvh - 82px);
        border-radius: 16px;
    }
}

@media (max-width: 700px) {
    .admin-setting-row { grid-template-columns: 1fr; }
    .admin-setting-row .button { width: 100%; }
}



/* ===== Correctif navigation mobile/tablette : suppression du hamburger ===== */
.nav-toggle,
.nav-toggle-label,
body.page-index .nav-toggle,
body.page-index .nav-toggle-label {
    display: none !important;
}

@media (max-width: 900px), (orientation: portrait) and (max-width: 1180px) {
    .topbar,
    body.page-index .topbar {
        min-height: 0 !important;
        height: auto !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px 12px !important;
        overflow: visible !important;
        z-index: 120 !important;
    }

    .site-nav,
    nav.site-nav,
    body.page-index .site-nav,
    body.page-index nav.site-nav {
        display: flex !important;
        position: static !important;
        inset: auto !important;
        width: 100% !important;
        max-width: none !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }

    .site-nav a,
    nav.site-nav a,
    body.page-index .site-nav a,
    body.page-index nav.site-nav a {
        flex: 0 0 auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 40px !important;
        padding: 0 14px !important;
        border: 1px solid rgba(212, 167, 0, .34) !important;
        border-radius: 999px !important;
        background: rgba(0, 0, 0, .22) !important;
        color: #fffaf2 !important;
        font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif !important;
        font-size: 1.04rem !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        text-decoration: none !important;
        text-shadow: 0 8px 20px rgba(0, 0, 0, .38) !important;
        box-shadow: inset 0 0 18px rgba(212, 167, 0, .035) !important;
    }

    .site-nav a:hover,
    .site-nav a:focus-visible,
    nav.site-nav a:hover,
    nav.site-nav a:focus-visible,
    body.page-index .site-nav a:hover,
    body.page-index .site-nav a:focus-visible,
    body.page-index nav.site-nav a:hover,
    body.page-index nav.site-nav a:focus-visible {
        transform: translateY(-1px) !important;
        border-color: rgba(212, 167, 0, .72) !important;
        background: rgba(212, 167, 0, .08) !important;
    }

    .site-nav a[aria-current="page"],
    nav.site-nav a[aria-current="page"],
    body.page-index .site-nav a[aria-current="page"],
    body.page-index nav.site-nav a[aria-current="page"] {
        border-color: rgba(193, 92, 255, .82) !important;
        background: linear-gradient(135deg, rgba(112, 50, 154, .9), rgba(43, 17, 62, .88)) !important;
        color: #fff !important;
    }

    .site-nav a::before,
    .site-nav a::after,
    nav.site-nav a::before,
    nav.site-nav a::after,
    body.page-index .site-nav a::before,
    body.page-index .site-nav a::after,
    body.page-index nav.site-nav a::before,
    body.page-index nav.site-nav a::after {
        content: none !important;
    }

    .site-nav .nav-logo-link,
    nav.site-nav .nav-logo-link,
    body.page-index .site-nav .nav-logo-link,
    body.page-index nav.site-nav .nav-logo-link {
        width: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        padding: 0 !important;
        border-radius: 999px !important;
        order: -1 !important;
    }

    .nav-home-logo,
    body.page-index .nav-home-logo {
        width: 42px !important;
        height: 42px !important;
        object-fit: contain !important;
    }
}

@media (max-width: 520px) {
    .topbar,
    body.page-index .topbar {
        padding: 8px 8px !important;
    }

    .site-nav,
    nav.site-nav,
    body.page-index .site-nav,
    body.page-index nav.site-nav {
        gap: 6px !important;
    }

    .site-nav a,
    nav.site-nav a,
    body.page-index .site-nav a,
    body.page-index nav.site-nav a {
        min-height: 36px !important;
        padding: 0 10px !important;
        font-size: .94rem !important;
    }

    .site-nav .nav-logo-link,
    nav.site-nav .nav-logo-link,
    body.page-index .site-nav .nav-logo-link,
    body.page-index nav.site-nav .nav-logo-link {
        width: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
    }

    .nav-home-logo,
    body.page-index .nav-home-logo {
        width: 36px !important;
        height: 36px !important;
    }
}

/* Page 404 personnalisée */
body.page-404 {
    min-height: 100svh;
    overflow-x: hidden;
    color: var(--sk-cream, #f8f1e8);
    background-color: var(--sk-bg-deep, #020104);
    background-image:
        linear-gradient(90deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .62)),
        radial-gradient(circle at 22% 18%, rgba(193, 92, 255, .24), transparent 25rem),
        radial-gradient(circle at 78% 22%, rgba(212, 167, 0, .12), transparent 23rem),
        url("skandalon-responsive/bg-desktop.png");
    background-position: center top;
    background-size: cover, auto, auto, cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body.page-404::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 8%, rgba(255, 255, 255, .16) 0 1px, transparent 2px),
        radial-gradient(circle at 40% 18%, rgba(193, 92, 255, .52) 0 1px, transparent 2px),
        linear-gradient(180deg, transparent, rgba(0, 0, 0, .5));
}

body.page-404 .topbar,
body.page-404 .container {
    position: relative;
    z-index: 1;
}

body.page-404 .container {
    width: min(1280px, calc(100% - 40px));
    padding-top: clamp(28px, 6vh, 70px);
}

.not-found-page {
    position: relative;
    isolation: isolate;
    min-height: min(760px, calc(100svh - 180px));
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(310px, .72fr);
    align-items: center;
    gap: clamp(34px, 7vw, 112px);
    padding: clamp(38px, 6vw, 84px);
    border: 1px solid rgba(212, 167, 0, .24);
    border-radius: clamp(24px, 4vw, 46px);
    background:
        linear-gradient(135deg, rgba(5, 8, 22, .66), rgba(41, 17, 53, .36)),
        rgba(5, 8, 22, .42);
    box-shadow: 0 34px 100px rgba(0, 0, 0, .42);
    overflow: hidden;
}

.not-found-page::before,
.not-found-page::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.not-found-page::before {
    inset: 18px;
    z-index: -1;
    border: 1px solid rgba(212, 167, 0, .18);
    border-radius: clamp(18px, 3.2vw, 34px);
}

.not-found-page::after {
    width: 460px;
    height: 460px;
    right: -130px;
    bottom: -170px;
    z-index: -2;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(193, 92, 255, .32), transparent 68%);
    filter: blur(2px);
}

.not-found-copy {
    max-width: 780px;
}

.not-found-kicker {
    margin: 0 0 14px;
    color: rgba(212, 167, 0, .9);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(.86rem, 1vw, 1rem);
    font-weight: 700;
    letter-spacing: .34em;
    line-height: 1.2;
    text-transform: uppercase;
}

.not-found-page h1 {
    margin: 0;
    color: var(--sk-cream, #f8f1e8);
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: clamp(4rem, 9.5vw, 9.6rem);
    font-weight: 500;
    line-height: .86;
    letter-spacing: -.035em;
    text-wrap: balance;
    text-shadow:
        0 14px 48px rgba(0, 0, 0, .48),
        0 0 30px rgba(193, 92, 255, .16);
}

.not-found-lead {
    max-width: 650px;
    margin: clamp(18px, 3vh, 30px) 0 0;
    color: rgba(248, 241, 232, .9);
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: clamp(1.55rem, 2.6vw, 2.35rem);
    line-height: 1.1;
}

.not-found-text {
    max-width: 680px;
    margin: 18px 0 0;
    color: rgba(248, 241, 232, .74);
    font-size: clamp(1rem, 1.2vw, 1.12rem);
    line-height: 1.7;
}

.not-found-text strong {
    color: #fff;
    overflow-wrap: anywhere;
}

.not-found-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    margin-top: clamp(24px, 4vh, 38px);
}

.not-found-button,
nav.not-found-actions .not-found-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 56px;
    padding: 0 22px;
    border: 1px solid rgba(212, 167, 0, .42);
    border-radius: 999px;
    background: rgba(0, 0, 0, .2);
    color: var(--sk-cream, #f8f1e8);
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: clamp(1.12rem, 1.4vw, 1.32rem);
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: inset 0 0 22px rgba(212, 167, 0, .04);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.not-found-button:hover,
.not-found-button:focus-visible,
nav.not-found-actions .not-found-button:hover,
nav.not-found-actions .not-found-button:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(212, 167, 0, .82);
    background: rgba(212, 167, 0, .08);
    box-shadow: inset 0 0 22px rgba(212, 167, 0, .08), 0 16px 42px rgba(0, 0, 0, .22);
}

.not-found-button-primary,
nav.not-found-actions .not-found-button-primary {
    border-color: rgba(193, 92, 255, .9);
    background:
        linear-gradient(135deg, rgba(125, 52, 176, .92), rgba(41, 17, 53, .92)),
        rgba(125, 52, 176, .72);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .12),
        0 0 22px rgba(193, 92, 255, .28),
        0 18px 48px rgba(0, 0, 0, .28);
}

.not-found-visual {
    position: relative;
    justify-self: center;
    display: grid;
    place-items: center;
    width: min(100%, 410px);
    aspect-ratio: 1;
    border-radius: 999px;
    border: 1px solid rgba(212, 167, 0, .28);
    background:
        radial-gradient(circle at 48% 42%, rgba(212, 167, 0, .16), transparent 32%),
        radial-gradient(circle at 50% 50%, rgba(193, 92, 255, .2), transparent 60%),
        rgba(5, 8, 22, .28);
    box-shadow:
        inset 0 0 70px rgba(0, 0, 0, .32),
        0 24px 80px rgba(0, 0, 0, .28);
}

.not-found-orbit {
    position: absolute;
    inset: 8%;
    border-radius: 999px;
    border: 1px dashed rgba(212, 167, 0, .34);
    animation: notFoundOrbit 22s linear infinite;
}

.not-found-orbit::before,
.not-found-orbit::after {
    content: "✦";
    position: absolute;
    color: var(--sk-gold, #d4a700);
    text-shadow: 0 0 18px rgba(212, 167, 0, .82);
}

.not-found-orbit::before {
    top: 8%;
    left: 16%;
}

.not-found-orbit::after {
    right: 14%;
    bottom: 11%;
}

.not-found-code {
    position: absolute;
    inset: auto auto 18% 50%;
    transform: translateX(-50%);
    color: rgba(248, 241, 232, .12);
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: clamp(6.5rem, 15vw, 10.5rem);
    font-weight: 700;
    letter-spacing: -.06em;
    line-height: .8;
}

.not-found-visual img {
    position: relative;
    z-index: 1;
    display: block;
    width: min(58%, 238px);
    height: auto;
    filter:
        drop-shadow(0 0 20px rgba(193, 92, 255, .35))
        drop-shadow(0 22px 46px rgba(0, 0, 0, .48));
}

.not-found-visual p {
    position: absolute;
    left: 50%;
    bottom: 13%;
    z-index: 2;
    width: min(78%, 280px);
    margin: 0;
    transform: translateX(-50%);
    color: rgba(248, 241, 232, .78);
    font-family: Georgia, "Times New Roman", serif;
    font-size: .98rem;
    line-height: 1.45;
    text-align: center;
}

@keyframes notFoundOrbit {
    to { transform: rotate(1turn); }
}

@media (prefers-reduced-motion: reduce) {
    .not-found-orbit { animation: none; }
}

@media (max-width: 860px) {
    body.page-404 .container {
        width: min(100% - 24px, 720px);
        padding-top: 18px;
    }

    .not-found-page {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: clamp(30px, 8vw, 54px) clamp(20px, 6vw, 34px);
        text-align: center;
    }

    .not-found-copy,
    .not-found-text,
    .not-found-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .not-found-actions {
        justify-content: center;
    }

    .not-found-visual {
        order: -1;
        width: min(74vw, 320px);
    }
}

@media (max-width: 520px) {
    body.page-404 .container {
        width: min(100% - 16px, 520px);
        padding-bottom: 28px;
    }

    .not-found-page {
        border-radius: 24px;
    }

    .not-found-page::before {
        inset: 10px;
        border-radius: 18px;
    }

    .not-found-kicker {
        letter-spacing: .22em;
    }

    .not-found-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .not-found-button,
    nav.not-found-actions .not-found-button {
        width: 100%;
        min-height: 52px;
        padding-inline: 18px;
    }
}

/* Admin : sauvegarde et couvertures personnalisées */
.admin-export-card p {
    max-width: 68ch;
}
.cover-uploader {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(140px, 220px);
    gap: 14px;
    align-items: stretch;
    min-height: 168px;
    padding: 14px;
    border: 1px solid rgba(103, 64, 191, .18);
    border-radius: 16px;
    background: rgba(255,255,255,.72);
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.cover-uploader:focus-within,
.cover-uploader:focus-visible,
.cover-uploader.is-dragover {
    outline: none;
    border-color: rgba(103, 64, 191, .55);
    box-shadow: 0 0 0 4px rgba(103, 64, 191, .12);
    background: rgba(255,255,255,.96);
}
.cover-uploader-preview {
    display: grid;
    place-items: center;
    min-height: 150px;
    padding: 10px;
    border: 1px dashed rgba(103, 64, 191, .25);
    border-radius: 14px;
    background: rgba(103, 64, 191, .06);
    color: var(--muted);
    text-align: center;
    font-weight: 800;
}
.cover-uploader-preview img {
    display: block;
    max-width: 100%;
    max-height: 220px;
    border-radius: 10px;
    box-shadow: 0 12px 34px rgba(34, 22, 48, .16);
}
.cover-preview-link,
.cover-uploader-preview small {
    display: block;
    margin-top: 8px;
    color: var(--primary-strong);
    font-size: .82rem;
    font-weight: 800;
    text-decoration: none;
}
.cover-uploader-preview small {
    color: var(--muted);
}
@media (max-width: 760px) {
    .cover-uploader {
        grid-template-columns: 1fr;
    }
}
