/*
Theme Name: YVA Blocksy Child
Theme URI: http://yannick-valentin-allegre.local
Description: Thème enfant Blocksy pour le site officiel de Yannick Valentin Allegre.
Author: Yannick Valentin Allegre
Author URI: http://yannick-valentin-allegre.local
Template: blocksy
Version: 1.3.0
Text Domain: yva-blocksy-child
*/

:root {
    --yva-bg: #050505;
    --yva-surface: #0d0d0d;
    --yva-surface-2: #121212;
    --yva-border: rgba(200, 169, 119, 0.22);

    --yva-text: #ddd0bd;
    --yva-text-soft: #aa9d8d;
    --yva-text-muted: #8f8476;

    --yva-accent: #c8a977;
    --yva-accent-strong: #d6b98b;
    --yva-accent-soft: rgba(200, 169, 119, 0.14);

    --yva-max-width: 780px;
    --yva-radius: 18px;
    --yva-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

/* =========================
   RESET DE BASE
========================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--yva-bg);
    color: var(--yva-text);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.75;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

figure {
    margin: 0;
}

/* =========================
   LIENS
========================= */

a {
    color: var(--yva-accent);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover,
a:focus {
    color: var(--yva-accent-strong);
}

a:focus-visible {
    outline: 2px solid var(--yva-accent);
    outline-offset: 3px;
}

/* =========================
   STRUCTURE GLOBALE
========================= */

.site,
#page {
    background: var(--yva-bg);
    color: var(--yva-text);
}

.site-main,
main {
    background: transparent;
}

/* =========================
   EN-TÊTE / NAVIGATION
========================= */

header.site-header,
.ct-header,
#header {
    background: #e7e1d8;
    color: #1b1b1b;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

header.site-header a,
.ct-header a,
#header a {
    color: #1b1b1b;
}

header.site-header a:hover,
.ct-header a:hover,
#header a:hover {
    color: #6e5633;
}

/* =========================
   CONTENEURS DE CONTENU
========================= */

.entry-content,
.wp-block-post-content,
.post-content,
.ct-entry-content {
    max-width: var(--yva-max-width);
    margin: 0 auto;
    color: var(--yva-text);
    font-size: 1.06rem;
    line-height: 1.9;
}

.entry-content > * + *,
.wp-block-post-content > * + *,
.post-content > * + *,
.ct-entry-content > * + * {
    margin-top: 1.35rem;
}

/* =========================
   TITRES
========================= */

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.wp-block-post-content h1,
.wp-block-post-content h2,
.wp-block-post-content h3,
.wp-block-post-content h4,
.wp-block-post-content h5,
.wp-block-post-content h6,
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6,
.ct-entry-content h1,
.ct-entry-content h2,
.ct-entry-content h3,
.ct-entry-content h4,
.ct-entry-content h5,
.ct-entry-content h6 {
    color: var(--yva-text);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-top: 2.4rem;
    margin-bottom: 1rem;
}

.entry-content h1,
.wp-block-post-content h1,
.post-content h1,
.ct-entry-content h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.entry-content h2,
.wp-block-post-content h2,
.post-content h2,
.ct-entry-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.entry-content h3,
.wp-block-post-content h3,
.post-content h3,
.ct-entry-content h3 {
    font-size: clamp(1.35rem, 2.3vw, 1.7rem);
}

.entry-content h4,
.wp-block-post-content h4,
.post-content h4,
.ct-entry-content h4 {
    font-size: 1.2rem;
}

.entry-content h2::after,
.wp-block-post-content h2::after,
.post-content h2::after,
.ct-entry-content h2::after {
    content: "";
    display: block;
    width: 72px;
    height: 1px;
    margin-top: 0.9rem;
    background: var(--yva-accent);
    opacity: 0.9;
}

/* =========================
   PARAGRAPHES
========================= */

.entry-content p,
.wp-block-post-content p,
.post-content p,
.ct-entry-content p {
    margin: 0 0 1.15rem;
    color: var(--yva-text);
}

.entry-content strong,
.wp-block-post-content strong,
.post-content strong,
.ct-entry-content strong {
    color: #f0e1c8;
    font-weight: 700;
}

.entry-content em,
.wp-block-post-content em,
.post-content em,
.ct-entry-content em {
    color: #d8c8b0;
}

/* =========================
   LISTES
========================= */

.entry-content ul,
.entry-content ol,
.wp-block-post-content ul,
.wp-block-post-content ol,
.post-content ul,
.post-content ol,
.ct-entry-content ul,
.ct-entry-content ol {
    margin: 1rem 0 1.35rem;
    padding-left: 1.6rem;
    color: var(--yva-text);
}

.entry-content li,
.wp-block-post-content li,
.post-content li,
.ct-entry-content li {
    margin-bottom: 0.45rem;
    color: var(--yva-text);
    line-height: 1.85;
}

.entry-content ul li::marker,
.entry-content ol li::marker,
.wp-block-post-content ul li::marker,
.wp-block-post-content ol li::marker,
.post-content ul li::marker,
.post-content ol li::marker,
.ct-entry-content ul li::marker,
.ct-entry-content ol li::marker {
    color: var(--yva-accent) !important;
}

/* =========================
   CITATIONS
========================= */

.entry-content blockquote,
.wp-block-post-content blockquote,
.post-content blockquote,
.ct-entry-content blockquote {
    margin: 2rem 0;
    padding: 1.1rem 1.25rem 1.1rem 1.4rem;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--yva-accent);
    color: var(--yva-text);
    border-radius: 0 12px 12px 0;
}

.entry-content blockquote p:last-child,
.wp-block-post-content blockquote p:last-child,
.post-content blockquote p:last-child,
.ct-entry-content blockquote p:last-child {
    margin-bottom: 0;
}

/* =========================
   SÉPARATEURS
========================= */

.entry-content hr,
.wp-block-post-content hr,
.post-content hr,
.ct-entry-content hr {
    border: 0;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(200, 169, 119, 0.85),
        transparent
    );
    margin: 2.4rem 0;
}

/* =========================
   TABLEAUX
========================= */

.entry-content table,
.wp-block-post-content table,
.post-content table,
.ct-entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    color: var(--yva-text);
    background: var(--yva-surface);
    border: 1px solid var(--yva-border);
}

.entry-content th,
.entry-content td,
.wp-block-post-content th,
.wp-block-post-content td,
.post-content th,
.post-content td,
.ct-entry-content th,
.ct-entry-content td {
    padding: 0.85rem 1rem;
    border: 1px solid var(--yva-border);
    text-align: left;
}

.entry-content th,
.wp-block-post-content th,
.post-content th,
.ct-entry-content th {
    color: #f0e1c8;
    background: rgba(200, 169, 119, 0.06);
}

/* =========================
   IMAGES / FIGCAPTION
========================= */

.entry-content figure,
.wp-block-post-content figure,
.post-content figure,
.ct-entry-content figure {
    margin: 2rem 0;
}

.entry-content figcaption,
.wp-block-post-content figcaption,
.post-content figcaption,
.ct-entry-content figcaption {
    margin-top: 0.7rem;
    font-size: 0.94rem;
    color: var(--yva-text-muted);
    text-align: center;
}

/* =========================
   CODE
========================= */

.entry-content code,
.wp-block-post-content code,
.post-content code,
.ct-entry-content code {
    padding: 0.14rem 0.4rem;
    border-radius: 6px;
    background: #121212;
    color: #f0e1c8;
    font-size: 0.95em;
}

.entry-content pre,
.wp-block-post-content pre,
.post-content pre,
.ct-entry-content pre {
    padding: 1rem 1.1rem;
    overflow-x: auto;
    border-radius: 12px;
    background: #101010;
    color: #f0e1c8;
    border: 1px solid var(--yva-border);
}

/* =========================
   ARTICLE INDIVIDUEL
========================= */

.single-post .hero-section,
.single .hero-section,
.single-post .ct-page-title,
.single .ct-page-title {
    background: var(--yva-bg);
    color: var(--yva-text);
}

.single-post article,
.single article {
    background: transparent;
    color: var(--yva-text);
}

.single-post .entry-header,
.single .entry-header {
    max-width: var(--yva-max-width);
    margin: 0 auto 2rem;
    padding-top: 2rem;
}

.single-post .entry-title,
.single .entry-title {
    color: var(--yva-text);
    font-size: clamp(2.3rem, 4.4vw, 3.4rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.single-post .entry-meta,
.single .entry-meta,
.single-post .entry-meta a,
.single .entry-meta a {
    color: var(--yva-text-soft);
    font-size: 0.95rem;
}

/* =========================
   PAGES
========================= */

.page .entry-content,
.page .wp-block-post-content {
    padding-bottom: 2rem;
}

/* =========================
   BOUTONS
========================= */

button,
input[type="submit"],
input[type="button"],
.wp-block-button__link,
.ct-button,
.ct-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--yva-accent);
    border-radius: 999px;
    background: transparent;
    color: var(--yva-accent);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.wp-block-button__link:hover,
.ct-button:hover,
.ct-submit:hover {
    background: var(--yva-accent);
    color: #111;
}

/* =========================
   FORMULAIRES
========================= */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--yva-border);
    border-radius: 12px;
    background: var(--yva-surface);
    color: var(--yva-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder,
textarea::placeholder {
    color: var(--yva-text-muted);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--yva-accent);
    box-shadow: 0 0 0 3px rgba(200, 169, 119, 0.12);
}

/* =========================
   WPFORMS
========================= */

.wpforms-container,
.wpforms-form {
    color: var(--yva-text);
}

.wpforms-container input,
.wpforms-container textarea,
.wpforms-container select {
    background: var(--yva-surface) !important;
    color: var(--yva-text) !important;
    border: 1px solid var(--yva-border) !important;
    border-radius: 12px !important;
}

.wpforms-container label {
    color: var(--yva-text) !important;
    font-weight: 600;
}

.wpforms-container .wpforms-field-description,
.wpforms-container .wpforms-description {
    color: var(--yva-text-soft) !important;
}

.wpforms-container button[type="submit"] {
    border: 1px solid var(--yva-accent) !important;
    background: transparent !important;
    color: var(--yva-accent) !important;
    border-radius: 999px !important;
    padding: 0.85rem 1.25rem !important;
}

.wpforms-container button[type="submit"]:hover {
    background: var(--yva-accent) !important;
    color: #111 !important;
}

/* =========================
   FOOTER
========================= */

footer.site-footer,
.ct-footer {
    background: #0a0a0a;
    color: var(--yva-text-soft);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

footer.site-footer a,
.ct-footer a {
    color: var(--yva-accent);
}

/* =========================
   UTILITAIRES GUTENBERG
========================= */

.has-text-color {
    color: inherit;
}

.has-background {
    background-color: inherit;
}

.wp-block-separator {
    opacity: 1;
}

.wp-block-image img {
    border-radius: 12px;
}

.wp-block-cover,
.wp-block-group,
.wp-block-columns {
    color: var(--yva-text);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {
    .entry-content,
    .wp-block-post-content,
    .post-content,
    .ct-entry-content,
    .single-post .entry-header,
    .single .entry-header {
        max-width: 88%;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .entry-content,
    .wp-block-post-content,
    .post-content,
    .ct-entry-content,
    .single-post .entry-header,
    .single .entry-header {
        max-width: calc(100% - 2rem);
    }

    .single-post .entry-title,
    .single .entry-title {
        font-size: 2rem;
    }

    .entry-content h2,
    .wp-block-post-content h2,
    .post-content h2,
    .ct-entry-content h2 {
        font-size: 1.6rem;
    }

    .entry-content h3,
    .wp-block-post-content h3,
    .post-content h3,
    .ct-entry-content h3 {
        font-size: 1.28rem;
    }

    .entry-content ul,
    .entry-content ol,
    .wp-block-post-content ul,
    .wp-block-post-content ol,
    .post-content ul,
    .post-content ol,
    .ct-entry-content ul,
    .ct-entry-content ol {
        padding-left: 1.3rem;
    }
}