/**
 * legal.css — Pages légales Belle Époque
 * Mentions légales / CGV+CGA / Confidentialité / Cookies
 */

/* ─────────────────────────────────────────────────────────
   FOND DE PAGE
───────────────────────────────────────────────────────── */

body:has(.be-legal-wrap) {
    background-color: #0a0908 !important;
}

body:has(.be-legal-wrap) .site-main,
body:has(.be-legal-wrap) #primary,
body:has(.be-legal-wrap) .content-area,
body:has(.be-legal-wrap) #inner-wrap,
body:has(.be-legal-wrap) .site-footer,
body:has(.be-legal-wrap) #colophon {
    background-color: #0a0908 !important;
}

/* ─────────────────────────────────────────────────────────
   WRAPPER GLOBAL
───────────────────────────────────────────────────────── */

.be-legal-wrap {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: rgba(245, 240, 232, 0.75);
    min-height: 100vh;
}

/* ─────────────────────────────────────────────────────────
   EN-TÊTE
───────────────────────────────────────────────────────── */

.be-legal-header {
    background: #111009;
    border-bottom: 1px solid rgba(201, 169, 110, 0.15);
    padding: 80px 0 60px;
    text-align: center;
}

.be-legal-header__inner {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 24px;
}

.be-legal-header__label {
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(201, 169, 110, 0.5);
    margin: 0 0 20px;
    font-style: italic;
}

.be-legal-header__title {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 42px !important;
    font-weight: 400 !important;
    color: #e8d5b0 !important;
    letter-spacing: 0.05em;
    line-height: 1.2;
    margin: 0 0 16px !important;
}

/* ── Sous-titre (champ "Extrait" Gutenberg) ── */
.be-legal-header__subtitle {
    display: inline-block;
    font-size: 14px;
    font-style: italic;
    color: rgba(201, 169, 110, 0.75);
    border: 1px solid rgba(201, 169, 110, 0.25);
    border-radius: 2px;
    padding: 8px 20px;
    margin: 0 0 20px;
    letter-spacing: 0.03em;
}

.be-legal-header__meta {
    font-size: 13px;
    color: rgba(245, 240, 232, 0.35);
    font-style: italic;
    margin: 0;
}

/* ─────────────────────────────────────────────────────────
   CONTAINER
───────────────────────────────────────────────────────── */

.be-legal-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 60px 24px 100px;
}

/* ─────────────────────────────────────────────────────────
   SOMMAIRE
───────────────────────────────────────────────────────── */

.be-legal-toc {
    background: #111009;
    border: 1px solid rgba(201, 169, 110, 0.15);
    border-left: 3px solid rgba(201, 169, 110, 0.4);
    border-radius: 2px;
    padding: 24px 28px;
    margin-bottom: 60px;
}

.be-legal-toc__label {
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #c9a96e;
    margin: 0 0 16px;
}

.be-legal-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.be-legal-toc ul li {
    border-bottom: 1px solid rgba(201, 169, 110, 0.07);
    padding: 6px 0;
}

.be-legal-toc ul li:last-child {
    border-bottom: none;
}

/* H1 dans le sommaire — articles principaux */
.be-legal-toc__item--h1 a {
    font-size: 15px;
    color: rgba(245, 240, 232, 0.7);
    font-style: normal;
}

/* H2 dans le sommaire — sous-sections indentées */
.be-legal-toc__item--h2 {
    padding-left: 20px !important;
    border-bottom: 1px solid rgba(201, 169, 110, 0.04) !important;
}

.be-legal-toc__item--h2 a {
    font-size: 13px !important;
    color: rgba(245, 240, 232, 0.4) !important;
    font-style: italic;
}

.be-legal-toc ul li a {
    font-size: 15px;
    color: rgba(245, 240, 232, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
    font-style: italic;
}

.be-legal-toc ul li a:hover {
    color: #c9a96e;
}

/* ─────────────────────────────────────────────────────────
   CONTENU — Styles Gutenberg overridés
───────────────────────────────────────────────────────── */

.be-legal-content {
    color: rgba(245, 240, 232, 0.72);
    font-size: 17px;
    line-height: 1.85;
}

/* Titres H1 dans le contenu */
.be-legal-content h1 {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 32px !important;
    font-weight: 400 !important;
    color: #e8d5b0 !important;
    letter-spacing: 0.05em;
    margin: 56px 0 24px !important;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(201, 169, 110, 0.15);
}

.be-legal-content h1:first-child {
    margin-top: 0 !important;
}

/* Titres H2 — sous-sections */
.be-legal-content h2 {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    color: #c9a96e !important;
    letter-spacing: 0.04em;
    margin: 44px 0 16px !important;
    padding-top: 20px;
    border-top: 1px solid rgba(201, 169, 110, 0.1);
}

/* Titres H3 — sous-sections */
.be-legal-content h3 {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: rgba(245, 240, 232, 0.85) !important;
    letter-spacing: 0.03em;
    margin: 32px 0 12px !important;
}

/* Paragraphes */
.be-legal-content p {
    font-size: 16px;
    line-height: 1.85;
    color: rgba(245, 240, 232, 0.68);
    margin-bottom: 16px;
}

/* Listes */
.be-legal-content ul,
.be-legal-content ol {
    margin: 16px 0 20px 0;
    padding-left: 24px;
}

.be-legal-content ul li,
.be-legal-content ol li {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(245, 240, 232, 0.65);
    margin-bottom: 8px;
    padding-left: 8px;
}

.be-legal-content ul {
    list-style: none;
    padding-left: 0;
}

.be-legal-content ul li::before {
    content: "—";
    color: rgba(201, 169, 110, 0.5);
    margin-right: 10px;
    font-size: 14px;
}

/* Liens */
.be-legal-content a {
    color: #c9a96e;
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 169, 110, 0.3);
    transition: border-color 0.2s ease;
}

.be-legal-content a:hover {
    border-color: #c9a96e;
}

/* Texte en gras */
.be-legal-content strong,
.be-legal-content b {
    color: rgba(245, 240, 232, 0.9);
    font-weight: 600;
}

/* Texte en italique */
.be-legal-content em {
    font-style: italic;
    color: rgba(245, 240, 232, 0.55);
}

/* Séparateurs */
.be-legal-content hr {
    border: none;
    border-top: 1px solid rgba(201, 169, 110, 0.12);
    margin: 48px 0;
}

/* Blocs de mise en avant Gutenberg */
.be-legal-content .wp-block-quote,
.be-legal-content blockquote {
    background: rgba(201, 169, 110, 0.04);
    border-left: 3px solid rgba(201, 169, 110, 0.35);
    padding: 20px 24px;
    margin: 28px 0;
    border-radius: 0 2px 2px 0;
}

.be-legal-content .wp-block-quote p,
.be-legal-content blockquote p {
    font-style: italic;
    color: rgba(245, 240, 232, 0.6);
    margin: 0;
}

/* Mise en avant importante */
.be-legal-content .wp-block-group {
    background: rgba(201, 169, 110, 0.04);
    border: 1px solid rgba(201, 169, 110, 0.12);
    border-radius: 2px;
    padding: 24px;
    margin: 32px 0;
}

/* ─────────────────────────────────────────────────────────
   BLOC CONTACT EN BAS
───────────────────────────────────────────────────────── */

.be-legal-contact {
    margin-top: 80px;
    padding-top: 32px;
    border-top: 1px solid rgba(201, 169, 110, 0.12);
    text-align: center;
}

.be-legal-contact p {
    font-size: 14px;
    color: rgba(245, 240, 232, 0.35);
    font-style: italic;
}

.be-legal-contact a {
    color: rgba(201, 169, 110, 0.6);
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 169, 110, 0.2);
}

.be-legal-contact a:hover {
    color: #c9a96e;
    border-color: #c9a96e;
}

/* ─────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .be-legal-header {
        padding: 60px 0 40px;
    }

    .be-legal-header__title {
        font-size: 30px !important;
    }

    .be-legal-container {
        padding: 40px 20px 80px;
    }

    .be-legal-content h1 {
        font-size: 26px !important;
    }

    .be-legal-content h2 {
        font-size: 19px !important;
    }
}

/* ─────────────────────────────────────────────────────────
   COOKIEYES — Override Belle Époque
───────────────────────────────────────────────────────── */

/* Bannière principale */
.cky-consent-bar {
    background: #1a1814 !important;
    border: 1px solid rgba(201, 169, 110, 0.2) !important;
    border-radius: 2px !important;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6) !important;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
}

/* Titre */
.cky-title {
    color: #e8d5b0 !important;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
}

/* Texte */
.cky-notice-des,
.cky-notice-group {
    color: rgba(245, 240, 232, 0.65) !important;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 15px !important;
}

/* Bouton Tout accepter */
.cky-btn-accept {
    background: #c9a96e !important;
    border-color: #c9a96e !important;
    color: #0a0908 !important;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    border-radius: 2px !important;
}

/* Bouton Refuser */
.cky-btn-reject {
    background: transparent !important;
    border: 1px solid rgba(201, 169, 110, 0.4) !important;
    color: #c9a96e !important;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    border-radius: 2px !important;
}

/* Bouton Gérer préférences */
.cky-btn-customize {
    background: transparent !important;
    border: 1px solid rgba(245, 240, 232, 0.15) !important;
    color: rgba(245, 240, 232, 0.5) !important;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    border-radius: 2px !important;
}

/* Modal préférences */
.cky-preference-center {
    background: #1a1814 !important;
    border: 1px solid rgba(201, 169, 110, 0.2) !important;
    color: rgba(245, 240, 232, 0.75) !important;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
}

.cky-preference-header,
.cky-preference-body-wrapper {
    border-color: rgba(201, 169, 110, 0.1) !important;
}

/* Titre modal */
.cky-preference-center .cky-title {
    color: #e8d5b0 !important;
}

/* Catégories */
.cky-accordion-header {
    color: #c9a96e !important;
    font-size: 16px !important;
    border-bottom: 1px solid rgba(201, 169, 110, 0.1) !important;
}

.cky-accordion-body {
    color: rgba(245, 240, 232, 0.55) !important;
    font-size: 14px !important;
}

/* Toggle "Toujours actif" */
.cky-always-active {
    color: #c9a96e !important;
}

/* Bouton revisit (petit bouton flottant) */
.cky-btn-revisit-wrapper {
    background: #1a1814 !important;
    border: 1px solid rgba(201, 169, 110, 0.25) !important;
}
/* Modal préférences — fond et texte */
[data-cky-tag="detail"] {
    background-color: #1a1814 !important;
    border-color: rgba(201, 169, 110, 0.2) !important;
    color: rgba(245, 240, 232, 0.75) !important;
}

/* Titre modal */
[data-cky-tag="detail"] .cky-title {
    color: #e8d5b0 !important;
}

/* Catégories accordion */
.cky-accordion-header-des,
.cky-accordion-chevron svg {
    color: rgba(245, 240, 232, 0.75) !important;
    stroke: rgba(245, 240, 232, 0.75) !important;
}

/* Bouton "Enregistrer mes préférences" */
[data-cky-tag="detail-save-button"] {
    background-color: transparent !important;
    border: 1px solid rgba(201, 169, 110, 0.4) !important;
    color: #c9a96e !important;
}

/* Bouton "Tout accepter" dans la modal */
[data-cky-tag="detail-accept-button"] {
    background-color: #c9a96e !important;
    border-color: #c9a96e !important;
    color: #0a0908 !important;
}

/* Bouton "Refuser" dans la modal */
[data-cky-tag="detail-reject-button"] {
    background-color: transparent !important;
    border: 1px solid rgba(201, 169, 110, 0.4) !important;
    color: #c9a96e !important;
}

/* Footer shadow de la modal */
.cky-footer-shadow {
    background: linear-gradient(
        rgba(26, 24, 20, 0) 0%,
        #1a1814 100%
    ) !important;
}

/* Séparateurs accordion */
.cky-accordion {
    border-color: rgba(201, 169, 110, 0.1) !important;
}

/* Modal container global */
.cky-modal,
.cky-modal * {
    color: rgba(245, 240, 232, 0.75) !important;
}

/* Override inline sur .cky-modal */
.cky-modal {
    background: #1a1814 !important;
}

/* Titre "Gérer mes préférences" */
.cky-preference-header .cky-title {
    color: #e8d5b0 !important;
    font-size: 20px !important;
    font-weight: 400 !important;
}

/* Titres catégories (Nécessaires, Fonctionnels...) */
.cky-accordion-header-des {
    color: #c9a96e !important;
    font-size: 15px !important;
    font-weight: 500 !important;
}

/* Textes descriptions catégories */
.cky-accordion-body p {
    color: rgba(245, 240, 232, 0.55) !important;
    font-size: 14px !important;
}

/* Bloc "Aucun cookie à afficher" */
.cky-empty-cookies-text {
    background: rgba(201, 169, 110, 0.05) !important;
    border-color: rgba(201, 169, 110, 0.1) !important;
    color: rgba(245, 240, 232, 0.4) !important;
}

/* Tableau cookies dans accordion */
[data-cky-tag="audit-table"],
.cky-audit-table {
    background: rgba(201, 169, 110, 0.03) !important;
    border-color: rgba(201, 169, 110, 0.08) !important;
    color: rgba(245, 240, 232, 0.55) !important;
}

/* Texte description dans accordion — inline color:#212121 */
[data-cky-tag="detail-description"],
[data-cky-tag="detail-categories"] {
    color: rgba(245, 240, 232, 0.75) !important;
}