/* ════════════════════════════════════════════════════════════
   Articles rédigés dans l'administration (article.php)
   Même univers que les guides Prestaprod : bleu nuit, or, Cormorant + Outfit
   ════════════════════════════════════════════════════════════ */
.adb-page {
    --adb-nuit: #1f283e;
    --adb-or: #B58A1A;
    --adb-or-pale: #F5EDD6;
    --adb-papier: #F4F2EC;
    --adb-encre: #1D1D1B;
    --adb-gris: #5A5A54;
    --adb-filet: #D8D4C8;
    --adb-titre: 'Cormorant Garamond', Georgia, serif;
    --adb-texte: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--adb-papier);
    color: var(--adb-encre);
    font-family: var(--adb-texte);
}

/* ─── En-tête ─────────────────────────────────────────────── */
.adb-hero {
    margin-top: 70px;
    background: var(--adb-nuit);
    color: #fff;
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 860px);
    justify-content: center;
}
.adb-hero--seul { grid-template-columns: minmax(0, 860px); }

.adb-sommaire {
    padding: 56px 32px;
    background: rgba(0, 0, 0, .18);
    border-right: 1px solid rgba(255, 255, 255, .07);
}
.adb-sommaire-titre {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--adb-or);
    margin: 0 0 18px;
}
.adb-sommaire ol { list-style: none; margin: 0; padding: 0; }
.adb-sommaire li {
    display: flex;
    gap: 12px;
    align-items: baseline;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.adb-sommaire li:last-child { border-bottom: 0; }
.adb-sommaire li span { font-size: 11px; font-weight: 600; color: var(--adb-or); min-width: 18px; }
.adb-sommaire li a {
    display: block;
    padding: 9px 0;
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    font-size: .92rem;
    line-height: 1.35;
    transition: color .2s, padding-left .2s;
}
.adb-sommaire li a:hover { color: #fff; padding-left: 4px; }

.adb-hero-texte { padding: 48px 48px 52px; }
.adb-ariane { font-size: 12px; color: rgba(255, 255, 255, .45); margin-bottom: 26px; }
.adb-ariane a { color: rgba(255, 255, 255, .65); text-decoration: none; }
.adb-ariane a:hover { color: #fff; }
.adb-ariane span { margin: 0 8px; }

.adb-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--adb-or);
    margin-bottom: 22px;
}
.adb-label::before { content: ''; width: 28px; height: 1px; background: var(--adb-or); }

.adb-hero h1 {
    font-family: var(--adb-titre);
    font-size: clamp(2rem, 3.4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.01em;
    color: #fff;
    margin: 0 0 22px;
}
.adb-intro {
    font-size: 1.08rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, .72);
    max-width: 680px;
    margin: 0;
}
.adb-meta {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    flex-wrap: wrap;
    gap: 34px;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
}
.adb-meta strong {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .85);
}
.adb-meta a { color: inherit; text-decoration: none; }
.adb-meta a:hover { color: var(--adb-or); }

/* ─── Corps ───────────────────────────────────────────────── */
.adb-corps { max-width: 820px; margin: 0 auto; padding: 56px 24px 80px; }

.adb-proprio {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 32px;
    background: #fff8e8;
    border: 1px solid #f0d9a8;
    border-radius: 6px;
    font-size: .9rem;
}

.adb-une { margin: 0 0 48px; }
.adb-une img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 18px 40px rgba(31, 40, 62, .16);
}

/* Texte de l'article */
.adb-texte {
    counter-reset: adb-section;
    font-size: 1.07rem;
    line-height: 1.85;
    color: var(--adb-encre);
}
.adb-texte p { margin: 0 0 1.25em; }
.adb-texte h2 {
    counter-increment: adb-section;
    font-family: var(--adb-titre);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.015em;
    color: var(--adb-nuit);
    margin: 1.9em 0 .6em;
    padding-top: 1.3em;
    border-top: 1px solid var(--adb-filet);
    scroll-margin-top: 90px;
}
.adb-texte h2::before {
    content: counter(adb-section, decimal-leading-zero);
    display: block;
    font-size: 3.6rem;
    line-height: 1;
    color: var(--adb-filet);
    margin-bottom: .05em;
    letter-spacing: -.04em;
}
.adb-texte > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.adb-texte h3 {
    font-family: var(--adb-texte);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--adb-nuit);
    margin: 1.8em 0 .6em;
}
.adb-texte h4 { font-size: 1.05rem; font-weight: 600; margin: 1.5em 0 .5em; }
.adb-texte strong, .adb-texte b { font-weight: 600; color: #111; }
.adb-texte a {
    color: var(--adb-nuit);
    text-decoration: underline;
    text-decoration-color: var(--adb-or);
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
}
.adb-texte a:hover { color: var(--adb-or); }

.adb-texte ul, .adb-texte ol { margin: 0 0 1.4em; padding-left: 0; list-style: none; }
.adb-texte ul > li { position: relative; padding-left: 1.6em; margin-bottom: .55em; }
.adb-texte ul > li::before {
    content: '';
    position: absolute;
    left: .2em;
    top: .72em;
    width: 7px;
    height: 7px;
    background: var(--adb-or);
    transform: rotate(45deg);
}
.adb-texte ol { counter-reset: adb-liste; }
.adb-texte ol > li { counter-increment: adb-liste; position: relative; padding-left: 2.4em; margin-bottom: .7em; }
.adb-texte ol > li::before {
    content: counter(adb-liste);
    position: absolute;
    left: 0;
    top: .15em;
    width: 1.65em;
    height: 1.65em;
    border-radius: 50%;
    background: var(--adb-nuit);
    color: #fff;
    font-size: .8em;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adb-texte blockquote {
    margin: 2em 0;
    padding: 18px 24px;
    background: var(--adb-or-pale);
    border-left: 4px solid var(--adb-or);
    border-radius: 0 6px 6px 0;
    font-family: var(--adb-titre);
    font-size: 1.35rem;
    font-style: italic;
    line-height: 1.5;
    color: var(--adb-nuit);
}

.adb-texte img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 2em auto;
    border-radius: 6px;
    box-shadow: 0 10px 28px rgba(31, 40, 62, .12);
}
.adb-texte p > img:only-child { margin: 2em auto; }

.adb-texte table { width: 100%; border-collapse: collapse; margin: 2em 0; font-size: .95rem; background: #fff; }
.adb-texte th { background: var(--adb-nuit); color: #fff; font-weight: 600; text-align: left; padding: 12px 16px; }
.adb-texte td { padding: 12px 16px; border-bottom: 1px solid #ece8de; vertical-align: top; }

/* Alignements de l'éditeur */
.adb-texte .ql-align-center { text-align: center; }
.adb-texte .ql-align-right { text-align: right; }
.adb-texte .ql-align-justify { text-align: justify; }
.adb-texte .ql-indent-1 { padding-left: 2em; }
.adb-texte .ql-indent-2 { padding-left: 4em; }

/* ─── Appel à l'action ────────────────────────────────────── */
.adb-cta {
    margin: 56px 0 40px;
    padding: 36px 40px;
    background: var(--adb-nuit);
    color: rgba(255, 255, 255, .75);
    border-radius: 6px;
}
.adb-cta-titre {
    font-family: var(--adb-titre);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    margin: 0 0 10px;
}
.adb-cta p { margin: 0 0 22px; line-height: 1.7; }
.adb-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.adb-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 3px;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
}
.adb-btn--or { background: var(--adb-or); color: #fff; border: 1px solid var(--adb-or); }
.adb-btn--or:hover { background: #9a7414; color: #fff; }
.adb-btn--ligne { border: 1px solid rgba(255, 255, 255, .35); color: #fff; }
.adb-btn--ligne:hover { border-color: #fff; color: #fff; }

/* ─── Auteur contributeur ─────────────────────────────────── */
.adb-auteur {
    margin: 40px 0;
    padding: 28px 32px;
    background: #fff;
    border: 1px solid var(--adb-filet);
    border-top: 3px solid var(--adb-or);
    border-radius: 4px;
    font-size: .95rem;
    line-height: 1.7;
}
.adb-auteur .adb-label { margin-bottom: 12px; }
.adb-auteur-nom { font-family: var(--adb-titre); font-size: 1.6rem; font-weight: 700; color: var(--adb-nuit); margin: 0; }
.adb-auteur-accroche { color: var(--adb-gris); margin: 0 0 10px; }
.adb-auteur a { color: var(--adb-nuit); font-weight: 600; }

/* ─── Partage ─────────────────────────────────────────────── */
.adb-partage {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 22px 0;
    border-top: 1px solid var(--adb-filet);
    border-bottom: 1px solid var(--adb-filet);
    margin: 40px 0 56px;
}
.adb-partage span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--adb-gris);
    margin-right: 8px;
}
.adb-partage a, .adb-partage button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--adb-filet);
    background: #fff;
    color: var(--adb-nuit);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}
.adb-partage a:hover, .adb-partage button:hover { background: var(--adb-nuit); color: #fff; border-color: var(--adb-nuit); }

/* ─── À lire aussi ────────────────────────────────────────── */
.adb-lies h2 {
    font-family: var(--adb-titre);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--adb-nuit);
    margin: 0 0 22px;
}
.adb-lies-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.adb-carte {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e6e1d4;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    color: var(--adb-nuit);
    transition: transform .2s, box-shadow .2s;
}
.adb-carte:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(31, 40, 62, .12); color: var(--adb-nuit); }
.adb-carte img, .adb-carte-ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.adb-carte-ph { background: linear-gradient(135deg, var(--adb-nuit), #34415f); }
.adb-carte-titre {
    padding: 14px 16px 18px;
    font-family: var(--adb-titre);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.adb-retour { margin: 48px 0 0; }
.adb-retour a {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--adb-gris);
    text-decoration: none;
}
.adb-retour a:hover { color: var(--adb-or); }

/* ─── Mobile ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    .adb-hero, .adb-hero--seul { grid-template-columns: 1fr; }
    .adb-sommaire { order: 2; padding: 28px 24px; border-right: 0; border-top: 1px solid rgba(255, 255, 255, .07); }
    .adb-hero-texte { padding: 36px 24px 40px; }
    .adb-meta { gap: 22px; }
    .adb-corps { padding: 40px 20px 64px; }
    .adb-lies-grille { grid-template-columns: 1fr; }
    .adb-cta { padding: 28px 24px; }
    .adb-texte h2::before { font-size: 2.8rem; }
}

/* ─── Menu du haut : fond blanc + bordure au défilement (comme les autres pages) ─── */
.adb-page #header { transition: background .3s, box-shadow .3s, border-color .3s; border-bottom: 2px solid transparent; }
.adb-page #header.header-scrolled {
    background: #fefdfe;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    border-bottom: 2px solid #c9a96e;
}
.adb-page #header.header-scrolled .navbar li a { color: #2e2e2e; }
