/*
Theme Name: Ardent Désir
Theme URI: https://www.ardentdesir.fr
Author: Nelson
Description: Thème sur-mesure pour Ardent Désir, plateforme d'autorité dédiée à la discrétion intime.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ardentdesir
*/

/* ===================================================================
   RESET DE BASE
   =================================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #2D2D2D;
    background-color: #F9F7F4;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0 0 0.6em;
    color: #2D2D2D;
}

p {
    margin: 0 0 1.2em;
}

a {
    color: #8B0000;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.75;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    padding-left: 1.2em;
}

/* ===================================================================
   LAYOUT GÉNÉRAL (MOBILE FIRST)
   =================================================================== */

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 20px;
}

/* ===================================================================
   HEADER
   =================================================================== */

.site-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.site-branding {
    display: flex;
    align-items: center;
}

.custom-logo-link img {
    max-height: 90px;
    width: auto;
    display: block;
}

.site-branding .site-title {
    font-size: 1.7rem;
    margin: 0;
}

.site-branding .site-title a {
    color: #2b2b2b;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.main-navigation a {
    color: #2b2b2b;
    font-size: 0.95rem;
}

/* ===================================================================
   ARTICLES / SINGLE
   =================================================================== */

.single-article {
    max-width: 720px;
    margin: 0 auto;
}

.entry-header {
    text-align: center;
    margin-bottom: 32px;
}

.entry-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8B0000;
    margin-bottom: 14px;
    font-weight: 600;
}

.entry-title {
    font-size: 2rem;
    max-width: 680px;
    margin: 0 auto 0.4em;
}

.entry-meta {
    font-size: 0.85rem;
    color: #999;
}

.entry-meta__dot {
    margin: 0 4px;
}

.post-thumbnail {
    margin: 32px -20px 40px;
    border-radius: 2px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
}

.entry-content {
    font-size: 1.08rem;
    color: #2D2D2D;
}

.entry-content > p:first-of-type {
    font-size: 1.2rem;
    color: #3a2e2e;
    padding-left: 20px;
    border-left: 3px solid #8B0000;
}

.entry-content h2 {
    font-size: 1.6rem;
    margin-top: 2.2em;
    margin-bottom: 0.7em;
    position: relative;
    padding-top: 0.7em;
}

.entry-content h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 44px;
    height: 3px;
    background-color: #8B0000;
    border-radius: 2px;
}

.entry-content h3 {
    font-size: 1.25rem;
    margin-top: 1.6em;
    color: #5a1f1f;
}

.entry-content p {
    margin-bottom: 1.3em;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 1.5em;
    padding-left: 0;
    list-style: none;
}

.entry-content ul li,
.entry-content ol li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 0.7em;
}

.entry-content ul li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0.6em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #8B0000;
}

.entry-content strong {
    color: #2D2D2D;
    font-weight: 700;
}

.entry-content a {
    border-bottom: 1px solid rgba(139,0,0,0.3);
}

.entry-content a:hover {
    border-bottom-color: #8B0000;
    text-decoration: none;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    font-size: 0.92rem;
}

.entry-content table th,
.entry-content table td {
    border: 1px solid #eee;
    padding: 12px 14px;
    text-align: left;
}

.entry-content table th {
    background-color: #F9F7F4;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
}

.entry-content table tr:nth-child(even) td {
    background-color: #fbfaf8;
}

.entry-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.entry-footer__back {
    font-size: 0.9rem;
    color: #555;
}

/* ===================================================================
   FORMULAIRE DE COMMENTAIRE
   =================================================================== */

#comments,
#respond {
    max-width: 720px;
    margin: 0 auto;
    padding-top: 32px;
}

.comment-reply-title,
.comments-title {
    font-size: 1.4rem;
    margin-bottom: 0.4em;
}

.comment-notes,
.logged-in-as {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    font-size: 0.85rem;
    color: #2D2D2D;
    margin-bottom: 6px;
}

.comment-form-comment {
    display: flex;
    flex-direction: column-reverse;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    background-color: #fff;
    margin-bottom: 16px;
}

.comment-form textarea:focus,
.comment-form input:focus {
    outline: none;
    border-color: #8B0000;
}

.comment-form .form-submit input[type="submit"] {
    background-color: #8B0000;
    color: #F9F7F4;
    border: 1px solid #8B0000;
    padding: 12px 28px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 2px;
    cursor: pointer;
}

.comment-form .form-submit input[type="submit"]:hover {
    opacity: 0.85;
}

@media (min-width: 768px) {
    .entry-title {
        font-size: 2.6rem;
    }

    .post-thumbnail {
        margin: 40px 0 48px;
        border-radius: 4px;
    }
}

/* ===================================================================
   FOOTER
   =================================================================== */

.site-footer {
    border-top: 1px solid #eee;
    padding: 48px 20px 24px;
    font-size: 0.9rem;
    color: #555;
    background-color: #fff;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto 32px;
}

.footer-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #2D2D2D;
    margin-bottom: 14px;
}

.footer-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 8px;
}

.footer-menu a {
    color: #555;
}

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 0.85rem;
    color: #777;
}

.footer-disclosure {
    font-size: 0.75rem;
    color: #999;
    max-width: 640px;
    margin: 12px auto 0;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ===================================================================
   RESPONSIVE : TABLETTE ET AU-DESSUS
   =================================================================== */

@media (min-width: 768px) {
    .site-content {
        padding: 40px 20px;
    }

    .entry-title {
        font-size: 2.4rem;
    }
}

/* ===================================================================
   PAGE BLOG (LE JOURNAL)
   =================================================================== */

.blog-archive__header {
    text-align: center;
    padding: 56px 20px 24px;
    max-width: 700px;
    margin: 0 auto;
}

.blog-archive__title {
    font-size: 2rem;
}

.blog-archive__subtitle {
    color: #555;
}

.blog-alt-item__meta {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.6em;
}

.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

.blog-pagination .page-numbers {
    padding: 8px 14px;
    border: 1px solid #eee;
    border-radius: 2px;
    color: #2D2D2D;
    font-size: 0.9rem;
}

.blog-pagination .page-numbers.current {
    background-color: #8B0000;
    color: #F9F7F4;
    border-color: #8B0000;
}

@media (min-width: 768px) {
    .blog-archive__title {
        font-size: 2.6rem;
    }
}

/* ===================================================================
   PAGES LÉGALES
   =================================================================== */

.legal-hero {
    text-align: center;
    padding: 56px 20px 24px;
}

.legal-title {
    font-size: 2rem;
}

.legal-content {
    padding: 0 20px 40px;
}

.legal-content__inner {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.7;
}

.legal-content__inner h2 {
    font-size: 1.4rem;
    margin-top: 2em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid #eee;
}

.legal-content__inner h2:first-child {
    margin-top: 0;
}

.legal-content__inner h3 {
    font-size: 1.1rem;
    margin-top: 1.4em;
    color: #5a1f1f;
}

.legal-content__inner ul {
    list-style: disc;
    padding-left: 20px;
}

.legal-content__inner ul li {
    margin-bottom: 0.4em;
}

.legal-info-box {
    background-color: #F9F7F4;
    border-left: 3px solid #8B0000;
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 0.95rem;
}

.legal-info-box p {
    margin: 0 0 0.4em;
}

.legal-info-box p:last-child {
    margin-bottom: 0;
}

.legal-footer {
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #777;
}

.legal-back {
    text-align: center;
    padding: 0 20px 56px;
}

.legal-back__link {
    font-size: 0.9rem;
    color: #555;
}

@media (min-width: 768px) {
    .legal-title {
        font-size: 2.6rem;
    }
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -200px;
    z-index: 9998;
    background-color: #2D2D2D;
    color: #F9F7F4;
    padding: 20px;
    transition: bottom 0.4s ease;
}

.cookie-banner--visible {
    bottom: 0;
}

.cookie-banner__content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
}

.cookie-banner__text {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.9;
}

.cookie-banner__text a {
    color: #F9F7F4;
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-banner__btn {
    padding: 10px 24px;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    border-radius: 2px;
    cursor: pointer;
    border: 1px solid #F9F7F4;
}

.cookie-banner__btn--primary {
    background-color: #8B0000;
    color: #F9F7F4;
    border-color: #8B0000;
}

.cookie-banner__btn--secondary {
    background: none;
    color: #F9F7F4;
}

@media (min-width: 768px) {
    .cookie-banner__content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ===================================================================
   AGE GATE
   =================================================================== */

body.age-gate-active {
    overflow: hidden;
}

.age-gate {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #2D2D2D;
    background-size: cover;
    background-position: center;
    transition: opacity 0.4s ease;
}

.age-gate::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(45,20,15,0.55) 0%, rgba(20,10,8,0.75) 100%);
}

.age-gate--hidden {
    opacity: 0;
    pointer-events: none;
}

.age-gate__card {
    position: relative;
    z-index: 1;
    max-width: 440px;
    width: 100%;
    text-align: center;
    color: #F9F7F4;
}

.age-gate__brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 32px;
    letter-spacing: 0.02em;
}

.age-gate__title {
    color: #F9F7F4;
    font-size: 1.5rem;
    margin-bottom: 0.5em;
}

.age-gate__text {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 28px;
}

.age-gate__actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

.age-gate__deny {
    background: none;
    border: none;
    color: #F9F7F4;
    opacity: 0.6;
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
}

.age-gate__deny:hover {
    opacity: 1;
}

.hero-section {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #2D2D2D 0%, #5a1f1f 55%, #8B0000 100%);
}

.hero-section__background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-section__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-section__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(45,45,45,0.25) 0%, rgba(45,45,45,0.6) 100%);
}

.hero-section__content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #F9F7F4;
    padding: 40px 24px;
    max-width: 700px;
}

.hero-section__title {
    color: #F9F7F4;
    font-size: 2.2rem;
    margin-bottom: 0.4em;
}

.hero-section__subtitle {
    font-size: 1.05rem;
    margin-bottom: 1.6em;
    opacity: 0.92;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 2px;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: all 0.25s ease;
}

.btn--primary {
    background-color: #8B0000;
    color: #F9F7F4;
    border: 1px solid #8B0000;
}

.btn--primary:hover {
    background-color: transparent;
    color: #F9F7F4;
    text-decoration: none;
    opacity: 1;
}

@media (min-width: 768px) {
    .hero-section__title {
        font-size: 3.2rem;
    }
}

/* ===================================================================
   BANDEAU DE RÉASSURANCE
   =================================================================== */

.reassurance-bar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 32px 20px;
    max-width: 1100px;
    margin: 0 auto;
    border-bottom: 1px solid #eee;
}

.reassurance-bar__item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: #2D2D2D;
}

.reassurance-bar__item svg {
    flex-shrink: 0;
    color: #8B0000;
}

@media (min-width: 768px) {
    .reassurance-bar {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 40px;
    }
}

/* ===================================================================
   SECTION 3 PILIERS
   =================================================================== */

.pillars-section {
    padding: 64px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
}

.pillar-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: rgba(139,0,0,0.08);
    color: #8B0000;
    margin-bottom: 16px;
}

.pillar-card__title {
    font-size: 1.3rem;
    margin-bottom: 0.4em;
}

.pillar-card__text {
    font-size: 0.95rem;
    color: #555;
}

@media (min-width: 768px) {
    .pillars-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===================================================================
   SECTION BLOG EN ALTERNANCE
   =================================================================== */

.blog-alt-section {
    padding: 40px 20px 80px;
    max-width: 1000px;
    margin: 0 auto;
}

.blog-alt-section__header {
    text-align: center;
    margin-bottom: 48px;
}

.blog-alt-item {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 56px;
    align-items: center;
}

.blog-alt-item__image img {
    border-radius: 2px;
}

.blog-alt-item__category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8B0000;
}

.blog-alt-item__title {
    font-size: 1.5rem;
    margin: 0.3em 0 0.5em;
}

.blog-alt-item__excerpt {
    color: #555;
    font-size: 0.98rem;
}

.blog-alt-item__cta {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .blog-alt-item {
        flex-direction: row;
        align-items: center;
    }

    .blog-alt-item--reverse {
        flex-direction: row-reverse;
    }

    .blog-alt-item__image,
    .blog-alt-item__content {
        flex: 1;
    }
}