/* ═══════════════════════════════════════════════════════════════════
   VoyagePro — main.css
   Thème WordPress custom inspiré de visiter-barcelone.com
═══════════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────────────── */
:root {
    --color-primary:   #c0392b;
    --color-secondary: #e67e22;
    --color-dark:      #1a1a2e;
    --color-light:     #faf8f5;
    --color-accent:    #f39c12;
    --color-text:      #2c2c2c;
    --color-muted:     #6b7280;
    --color-border:    #e5e7eb;
    --color-white:     #ffffff;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'DM Sans', system-ui, sans-serif;

    --radius-sm:   6px;
    --radius-md:   12px;
    --radius-lg:   20px;
    --radius-full: 9999px;

    --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md:   0 4px 16px rgba(0,0,0,.12);
    --shadow-lg:   0 8px 32px rgba(0,0,0,.16);
    --shadow-card: 0 2px 8px rgba(0,0,0,.08);

    --transition: .25s cubic-bezier(.4,0,.2,1);
    --container:  1240px;
    --gutter:     clamp(1rem, 4vw, 2rem);
}

/* ── Reset & Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: clamp(0.9375rem, 1vw + .5rem, 1.0625rem);
    color: var(--color-text);
    background: var(--color-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-secondary); }

ul, ol { padding-left: 1.25rem; }

h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-display);
    line-height: 1.2;
    color: var(--color-dark);
    font-weight: 700;
}

/* ── Utilitaires ───────────────────────────────────────────────────── */
.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

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

/* ── Boutons ───────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1.4rem;
    font-family: var(--font-body);
    font-size: .9rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}
.btn-primary:hover { background: #a93226; border-color: #a93226; color: #fff; }

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }

.btn-white {
    background: #fff;
    color: var(--color-dark);
    border-color: #fff;
}
.btn-white:hover { background: var(--color-light); }


/* ══════════════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
}

/* Barre supérieure */
.header-top {
    border-bottom: 1px solid var(--color-border);
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 64px;
    padding-block: .75rem;
}

/* Logo */
.site-branding { display: flex; align-items: center; gap: 1rem; }

.site-logo { text-decoration: none; }
.logo-text {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 900;
    color: var(--color-primary);
    letter-spacing: -.02em;
    line-height: 1;
}
.site-logo img { max-height: 52px; width: auto; }
.site-tagline { display: none; }

/* Actions header */
.header-actions { display: flex; align-items: center; gap: .75rem; }

.btn-comment-icon {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .9rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: .82rem;
    font-weight: 600;
    color: var(--color-dark);
    transition: all var(--transition);
}
.btn-comment-icon:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(192,57,43,.06);
}

/* Burger menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: .45rem .6rem;
    cursor: pointer;
    transition: all var(--transition);
}
.menu-toggle:hover { border-color: var(--color-primary); }
.burger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-dark);
    border-radius: 2px;
    transition: all var(--transition);
}
.menu-toggle[aria-expanded="true"] .burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .burger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle[aria-expanded="true"] .burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Navigation principale ── */
.main-navigation { border-top: 1px solid var(--color-border); }
.main-navigation .container {
    display: flex;
    align-items: stretch;
}

.primary-menu {
    display: flex;
    align-items: stretch;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0;
    flex-wrap: wrap;
}

.primary-menu > li {
    position: relative;
}

.primary-menu > li > a {
    display: flex;
    align-items: center;
    gap: .3rem;
    padding: .85rem 1rem;
    font-size: .9rem;
    font-weight: 600;
    color: var(--color-dark);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}

.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.submenu-arrow { font-size: .65rem; opacity: .6; transition: transform var(--transition); }
.has-submenu:hover .submenu-arrow { transform: rotate(180deg); }

/* Sous-menu dropdown */
.primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    list-style: none;
    padding: .5rem 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all var(--transition);
    z-index: 200;
}
.has-submenu:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.primary-menu .sub-menu a {
    display: block;
    padding: .55rem 1.2rem;
    font-size: .875rem;
    color: var(--color-text);
    border-bottom: none;
    transition: background var(--transition);
}
.primary-menu .sub-menu a:hover { background: var(--color-light); color: var(--color-primary); }




/* ══════════════════════════════════════════════════════════════════
   HERO HOMEPAGE — SLIDER
══════════════════════════════════════════════════════════════════ */
.hero-section {
    position: relative;
    min-height: clamp(420px, 60vh, 700px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--color-dark);
}

/* ── Slider ── */
.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Chaque slide = image de fond */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity .9s cubic-bezier(.4,0,.2,1);
    will-change: opacity;
}
.hero-slide.active { opacity: 1; }

/* Overlay dégradé sur chaque slide */
.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26,26,46,.88) 0%,
        rgba(192,57,43,.55) 55%,
        rgba(230,126,34,.3) 100%
    );
}

/* ── Contrôles prev / next ── */
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,.15);
    border: 1.5px solid rgba(255,255,255,.3);
    border-radius: var(--radius-full);
    color: #fff;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    transition: all var(--transition);
    backdrop-filter: blur(6px);
}
.slider-prev { left: 1.5rem; }
.slider-next { right: 1.5rem; }
.slider-prev:hover,
.slider-next:hover {
    background: rgba(255,255,255,.3);
    border-color: rgba(255,255,255,.6);
    transform: translateY(-50%) scale(1.08);
}

/* ── Dots ── */
.slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: .5rem;
}
.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,.4);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}
.slider-dot.active {
    width: 24px;
    background: #fff;
}

/* ── Contenu texte hero (par-dessus le slider) ── */
.hero-content {
    position: relative;
    z-index: 1;
    padding-block: 4rem;
    color: #fff;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    max-width: 700px;
    margin-bottom: .75rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    color: rgba(255,255,255,.8);
    margin-bottom: 2.5rem;
    letter-spacing: .02em;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero sans slider (image unique via featured image) */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26,26,46,.88) 0%,
        rgba(192,57,43,.55) 55%,
        rgba(230,126,34,.3) 100%
    );
}


/* ══════════════════════════════════════════════════════════════════
   SECTIONS HOMEPAGE
══════════════════════════════════════════════════════════════════ */
.home-section {
    padding-block: clamp(3rem, 6vw, 5rem);
}

.section-label {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: .5rem;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: .75rem;
    line-height: 1.15;
}

.section-desc {
    color: var(--color-muted);
    max-width: 600px;
    font-size: .95rem;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}
.section-header--light .section-title,
.section-header--light .section-label { color: #fff; }
.section-header--light .section-label { color: rgba(255,255,255,.7); }

/* Section foncée */
.section-dark {
    background: var(--color-dark);
}
.section-dark .section-title { color: #fff; }
.section-dark .section-desc  { color: rgba(255,255,255,.65); }

/* Alternance fond clair */
.section-incontournables { background: var(--color-light); }
.section-cat2            { background: var(--color-white); }


/* ── GRILLE DE CARDS ── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 1.5rem;
}
.cards-grid--3 {
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
}


/* ══════════════════════════════════════════════════════════════════
   CARD ARTICLE
══════════════════════════════════════════════════════════════════ */
.card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card--dark {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.1);
}
.card--dark .card-title a { color: #fff; }
.card--dark .card-date,
.card--dark .card-reading-time,
.card--dark .card-cat { color: rgba(255,255,255,.6); }
.card--dark:hover { background: rgba(255,255,255,.1); }

/* Thumbnail */
.card-thumb-link { display: block; overflow: hidden; }
.card-thumb {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--color-border);
}
.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.card:hover .card-img { transform: scale(1.05); }

/* Badge nombre de commentaires */
.card-comment-badge {
    position: absolute;
    top: .6rem;
    left: .6rem;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: var(--color-primary);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: .25rem .55rem;
    border-radius: var(--radius-full);
    line-height: 1;
}

/* Body de la card */
.card-body {
    padding: 1rem 1.1rem 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.card-cat {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--color-primary);
    text-decoration: none;
}
.card-cat:hover { color: var(--color-secondary); }

.card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}
.card-title a {
    color: var(--color-dark);
    text-decoration: none;
}
.card-title a:hover { color: var(--color-primary); }

/* Étoiles */
.stars {
    position: relative;
    display: inline-block;
    font-size: .9rem;
    line-height: 1;
}
.stars-bg { color: var(--color-border); }
.stars-fill {
    position: absolute;
    top: 0; left: 0;
    overflow: hidden;
    color: var(--color-accent);
    white-space: nowrap;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-top: .2rem;
}
.rating-score {
    font-size: .78rem;
    font-weight: 600;
    color: var(--color-muted);
}

/* Meta date + lecture */
.card-meta {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: auto;
    padding-top: .5rem;
    border-top: 1px solid var(--color-border);
}
.card-date,
.card-reading-time {
    display: flex;
    align-items: center;
    gap: .3rem;
    font-size: .75rem;
    color: var(--color-muted);
}


/* ══════════════════════════════════════════════════════════════════
   SECTION À PROPOS
══════════════════════════════════════════════════════════════════ */
.section-about { background: var(--color-light); }

.about-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    align-items: center;
}

.about-photo-wrap {
    display: flex;
    justify-content: center;
}

.about-photo {
    width: 180px;
    height: 180px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 4px solid var(--color-white);
    box-shadow: var(--shadow-md);
}

.about-photo-placeholder {
    width: 180px;
    height: 180px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.7);
    box-shadow: var(--shadow-md);
}

.about-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

.about-text {
    color: var(--color-muted);
    margin-bottom: 1.5rem;
    max-width: 600px;
    font-size: .975rem;
}
.about-text strong { color: var(--color-dark); }
.about-text a { font-weight: 600; }


/* ══════════════════════════════════════════════════════════════════
   FAQ ACCORDÉON
══════════════════════════════════════════════════════════════════ */
.section-faq { background: var(--color-white); }

.faq-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
}

.faq-header {
    position: sticky;
    top: calc(64px + 1rem);
}
.faq-header .section-title { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }

.faq-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

/* Accordéon natif <details> */
.faq-item {
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item[open] {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(192,57,43,.08);
}

.faq-question {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    user-select: none;
    transition: background var(--transition);
    color: var(--color-dark);
    line-height: 1.4;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; }
.faq-question:hover { background: var(--color-light); }
.faq-item[open] .faq-question { background: rgba(192,57,43,.05); color: var(--color-primary); }

.faq-icon {
    flex-shrink: 0;
    color: var(--color-primary);
    transition: transform var(--transition);
}
.faq-item[open] .faq-icon { transform: rotate(180deg); }

.faq-answer {
    padding: 0 1.25rem 1.25rem;
    font-size: .925rem;
    color: var(--color-muted);
    line-height: 1.75;
    border-top: 1px solid var(--color-border);
    animation: fadeDown .2s ease;
}
.faq-answer p { margin-bottom: .75rem; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer img {
    border-radius: var(--radius-sm);
    margin-block: .75rem;
    max-height: 220px;
    object-fit: cover;
}

.faq-read-more {
    font-weight: 600;
    font-size: .85rem;
    display: inline-block;
    margin-top: .5rem;
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ══════════════════════════════════════════════════════════════════
   SINGLE ARTICLE
══════════════════════════════════════════════════════════════════ */
.breadcrumb-bar {
    background: var(--color-light);
    border-bottom: 1px solid var(--color-border);
    padding-block: .6rem;
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    gap: .5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: .8rem;
    color: var(--color-muted);
    flex-wrap: wrap;
}
.breadcrumb li:not(:last-child)::after { content: '›'; margin-left: .5rem; }
.breadcrumb a { color: var(--color-primary); }

/* Hero single */
.single-hero {
    position: relative;
    background: var(--color-dark);
    min-height: clamp(280px, 40vh, 480px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.single-hero-img {
    position: absolute;
    inset: 0;
}
.single-hero-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.single-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 100%);
}
.single-hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding-block: 2rem;
}
.single-cat {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: .5rem;
}
.single-title {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    color: #fff;
    max-width: 800px;
    margin-bottom: 1rem;
}
.single-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: .82rem;
    color: rgba(255,255,255,.75);
}
.single-author { display: flex; align-items: center; gap: .4rem; }
.single-author-avatar { border-radius: 50%; border: 2px solid rgba(255,255,255,.3); }
.single-date,
.single-reading-time,
.single-comments { display: flex; align-items: center; gap: .3rem; }

/* Layout article */
.single-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    align-items: start;
    padding-block: 3rem;
}

.single-content {}

/* Contenu édito */
.entry-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text);
}
.entry-content h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; }
.entry-content h3 { font-size: 1.3rem; margin: 2rem 0 .75rem; }
.entry-content p  { margin-bottom: 1.25rem; }
.entry-content a  { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul,
.entry-content ol { margin-bottom: 1.25rem; }
.entry-content li { margin-bottom: .4rem; }
.entry-content img {
    border-radius: var(--radius-md);
    margin-block: 1.5rem;
    width: 100%;
}
.entry-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding: 1rem 1.5rem;
    background: var(--color-light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-block: 1.5rem;
    font-style: italic;
    color: var(--color-dark);
}
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin-block: 1.5rem;
    font-size: .9rem;
}
.entry-content th,
.entry-content td {
    padding: .65rem 1rem;
    border: 1px solid var(--color-border);
    text-align: left;
}
.entry-content th { background: var(--color-light); font-weight: 700; }

/* Tags */
.entry-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}
.tag-pill {
    padding: .3rem .8rem;
    background: var(--color-light);
    border-radius: var(--radius-full);
    font-size: .78rem;
    font-weight: 600;
    color: var(--color-dark);
    text-decoration: none;
    transition: all var(--transition);
}
.tag-pill:hover { background: var(--color-primary); color: #fff; }

/* Navigation article précédent/suivant */
.post-navigation { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }
.post-nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-nav-prev, .post-nav-next {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    padding: 1rem;
    background: var(--color-light);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition);
}
.post-nav-next { text-align: right; }
.post-nav-prev:hover, .post-nav-next:hover { background: var(--color-primary); }
.post-nav-prev:hover *, .post-nav-next:hover * { color: #fff !important; }
.post-nav-label { font-size: .75rem; color: var(--color-muted); font-weight: 600; }
.post-nav-title { font-size: .9rem; font-weight: 700; color: var(--color-dark); }

/* Sidebar */
.single-sidebar {
    position: sticky;
    top: calc(64px + 1.5rem);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-widget {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid var(--color-primary);
    color: var(--color-dark);
}

/* Articles similaires */
.related-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.related-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
    color: var(--color-dark);
    font-size: .875rem;
    font-weight: 600;
    transition: color var(--transition);
}
.related-link:hover { color: var(--color-primary); }
.related-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }


/* ══════════════════════════════════════════════════════════════════
   COMMENTAIRES
══════════════════════════════════════════════════════════════════ */
.comments-wrapper { padding-block: 3rem; }
.section-comments .container { max-width: 860px; }

.comments-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}
.comments-header .section-title { margin-bottom: .75rem; }

/* Liste commentaires */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.comment-body {
    background: var(--color-light);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    border: 1px solid var(--color-border);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .75rem;
}

.comment-author img {
    border-radius: 50%;
    width: 42px;
    height: 42px;
    border: 2px solid var(--color-border);
}

.comment-author .fn {
    font-weight: 700;
    font-size: .925rem;
    color: var(--color-dark);
    font-style: normal;
}

.comment-metadata a { font-size: .78rem; color: var(--color-muted); }
.comment-metadata a:hover { color: var(--color-primary); }

.comment-content { font-size: .925rem; line-height: 1.75; }
.comment-content p { margin-bottom: .5rem; }

.reply a {
    font-size: .8rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

/* Formulaire commentaire */
#commentform { margin-top: 2rem; }

.comment-form h3,
#reply-title {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.comment-form p { margin-bottom: 1.25rem; }

.comment-form label {
    display: block;
    font-size: .875rem;
    font-weight: 600;
    margin-bottom: .4rem;
    color: var(--color-dark);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .75rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: .925rem;
    color: var(--color-text);
    background: var(--color-white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(192,57,43,.12);
}
.comment-form textarea { min-height: 160px; resize: vertical; }

.comment-form .form-submit input[type="submit"] {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: .75rem 2rem;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
}
.comment-form .form-submit input[type="submit"]:hover {
    background: #a93226;
    transform: translateY(-1px);
}


/* ══════════════════════════════════════════════════════════════════
   ARCHIVES
══════════════════════════════════════════════════════════════════ */
.archive-header {
    background: linear-gradient(135deg, var(--color-dark) 0%, #2c1654 100%);
    color: #fff;
    padding-block: 3rem;
}
.archive-header .breadcrumb a { color: rgba(255,255,255,.7); }
.archive-header .breadcrumb li { color: rgba(255,255,255,.5); }

.archive-header-inner { margin-top: 1rem; }
.archive-title { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: .5rem; }
.archive-desc  { color: rgba(255,255,255,.75); max-width: 600px; }
.archive-count { color: rgba(255,255,255,.5); font-size: .85rem; margin-top: .5rem; }

.archive-content { padding-block: 3rem; }

/* Pagination */
.pagination-wrapper { margin-top: 3rem; text-align: center; }
.page-numbers {
    display: inline-flex;
    gap: .4rem;
    list-style: none;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}
.page-numbers a,
.page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    font-size: .875rem;
    font-weight: 600;
    color: var(--color-dark);
    text-decoration: none;
    border: 1.5px solid var(--color-border);
    transition: all var(--transition);
}
.page-numbers a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.page-numbers .current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* No results */
.no-results {
    text-align: center;
    padding: 5rem 1rem;
    color: var(--color-muted);
}
.no-results h2 { font-size: 1.5rem; margin: 1rem 0 .5rem; color: var(--color-dark); }
.no-results a  { margin-top: 1.5rem; }


/* ══════════════════════════════════════════════════════════════════
   404
══════════════════════════════════════════════════════════════════ */
.error-404 {
    text-align: center;
    padding: 6rem 1rem;
}
.error-code {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 900;
    color: var(--color-border);
    line-height: 1;
    margin-bottom: -1rem;
}
.error-404 h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: .75rem; }
.error-404 p  { color: var(--color-muted); margin-bottom: 2rem; }
.error-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.error-search  { display: flex; gap: .5rem; }


/* ══════════════════════════════════════════════════════════════════
   SEARCH FORM
══════════════════════════════════════════════════════════════════ */
.search-form-inline,
.error-search {
    display: flex;
    gap: .5rem;
}
.search-input {
    flex: 1;
    min-width: 200px;
    padding: .65rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: .9rem;
    outline: none;
    transition: border-color var(--transition);
}
.search-input:focus { border-color: var(--color-primary); }


/* ══════════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--color-dark);
    color: rgba(255,255,255,.75);
    margin-top: auto;
}

.footer-top { padding-block: 3rem; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: .75rem;
}
.footer-desc { font-size: .875rem; line-height: 1.7; margin-bottom: 1.25rem; }

.footer-social { display: flex; gap: .6rem; }
.social-link {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    transition: all var(--transition);
}
.social-link:hover { background: var(--color-primary); color: #fff; }

.footer-col-title {
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

/* Menu footer */
.footer-menu { list-style: none; padding: 0; }
.footer-menu li { margin-bottom: .5rem; }
.footer-menu a {
    font-size: .875rem;
    color: rgba(255,255,255,.65);
    text-decoration: none;
    transition: color var(--transition);
}
.footer-menu a:hover { color: var(--color-accent); }

/* Articles récents footer */
.footer-recent-posts { list-style: none; padding: 0; }
.footer-recent-posts li { margin-bottom: .85rem; }
.footer-recent-posts a {
    display: block;
    font-size: .875rem;
    font-weight: 600;
    color: rgba(255,255,255,.8);
    text-decoration: none;
    margin-bottom: .15rem;
    transition: color var(--transition);
}
.footer-recent-posts a:hover { color: var(--color-accent); }
.footer-recent-posts time { font-size: .75rem; color: rgba(255,255,255,.4); }

/* Footer bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-block: 1.25rem;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
}
.footer-copyright,
.footer-credits { font-size: .8rem; color: rgba(255,255,255,.45); }
.footer-credits a { color: rgba(255,255,255,.6); text-decoration: none; }
.footer-credits a:hover { color: var(--color-accent); }


/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .faq-grid    { grid-template-columns: 1fr; }
    .faq-header  { position: static; }
    .about-grid  { grid-template-columns: 160px 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    /* Menu mobile */
    .menu-toggle { display: flex; }
    .main-navigation { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
    .main-navigation.is-open { max-height: 600px; }
    .primary-menu { flex-direction: column; padding-block: .5rem; }
    .primary-menu > li > a { border-bottom-color: transparent !important; padding: .75rem 0; border-bottom: 1px solid var(--color-border); }
    .primary-menu .sub-menu { position: static; box-shadow: none; border: none; opacity: 1; visibility: visible; transform: none; background: var(--color-light); padding-left: 1rem; }
    .has-submenu:hover .sub-menu { /* already visible on mobile, no hover */ }
    .btn-comment-icon span { display: none; }

    /* Layout */
    .single-layout { grid-template-columns: 1fr; }
    .single-sidebar { position: static; }
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .about-photo-wrap { justify-content: center; }
    .post-nav-links { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-megamenu .megamenu-list { grid-template-columns: repeat(2, 1fr); }
    .megamenu-list { grid-template-columns: repeat(2, 1fr); }
    .section-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .cards-grid { grid-template-columns: 1fr; }
    .hero-megamenu .megamenu-list { grid-template-columns: 1fr 1fr; }
    .megamenu-list { grid-template-columns: 1fr 1fr; }
    .post-navigation { display: none; }
}

/* ── Accessibilité & focus ── */
:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 3px;
}

/* ── Print ── */
@media print {
    .site-header,
    .site-footer,
    .single-sidebar { display: none; }
    .single-layout  { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════════════════════════════
   TEMPLATE PLEINE LARGEUR — Elementor
══════════════════════════════════════════════════════════════════ */

/* Retire le padding du main sur les pages Elementor pleine largeur */
.page-template-page-elementor .site-main,
.elementor-page .site-main {
    padding: 0;
    margin: 0;
}

/* Elementor gère ses propres sections, pas besoin de container thème */
.page-template-page-elementor .elementor-page-content {
    width: 100%;
}

/* Assure que les sections Elementor touchent les bords */
.page-template-page-elementor .elementor-section.elementor-section-full_width {
    max-width: 100%;
}

/* ── Widgets Elementor stylisés avec le thème ── */

/* Posts grid Elementor → même look que les cards du thème */
.elementor-posts-grid .elementor-post {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
    transition: transform var(--transition), box-shadow var(--transition);
}
.elementor-posts-grid .elementor-post:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.elementor-posts-grid .elementor-post__thumbnail img {
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.elementor-posts-grid .elementor-post:hover .elementor-post__thumbnail img {
    transform: scale(1.05);
}
.elementor-posts-grid .elementor-post__title a {
    font-family: var(--font-display);
    color: var(--color-dark);
}
.elementor-posts-grid .elementor-post__title a:hover {
    color: var(--color-primary);
}
.elementor-posts-grid .elementor-post__meta-data {
    font-size: .78rem;
    color: var(--color-muted);
}
.elementor-posts-grid .elementor-post__read-more {
    color: var(--color-primary);
    font-weight: 700;
    font-size: .875rem;
}

/* Heading Elementor */
.elementor-widget-heading h1,
.elementor-widget-heading h2,
.elementor-widget-heading h3 {
    font-family: var(--font-display);
    color: var(--color-dark);
}

/* Divider Elementor */
.elementor-widget-divider .elementor-divider-separator {
    border-color: var(--color-border);
}

/* Image Elementor */
.elementor-widget-image img {
    border-radius: var(--radius-md);
}


/* ══════════════════════════════════════════════════════════════════
   FAQ — Notice admin (aucune FAQ publiée)
══════════════════════════════════════════════════════════════════ */
.faq-empty-notice {
    padding: 1.5rem;
    background: var(--color-light);
    border-radius: var(--radius-md);
    border: 2px dashed var(--color-border);
    text-align: center;
    color: var(--color-muted);
    font-size: .9rem;
}
.faq-empty-notice a {
    font-weight: 700;
    color: var(--color-primary);
    display: block;
    margin-top: .5rem;
}

/* ══════════════════════════════════════════════════════════════════
   MENU — Centrage via Customizer (complément au CSS inline)
   Les règles de justify-content sont injectées par customizer.php.
   Ce bloc gère le layout flex du conteneur nav.
══════════════════════════════════════════════════════════════════ */
.main-navigation .container {
    display: flex;
    align-items: stretch;
    width: 100%;
}
.primary-menu {
    /* flex: 1 est appliqué via customizer.php */
    width: 100%;
}


/* ══════════════════════════════════════════════════════════════════
   SOMMAIRE (Table of Contents) — sidebar article
══════════════════════════════════════════════════════════════════ */

.widget-toc {
    position: sticky;
    top: calc(64px + 1.5rem); /* sous le header sticky */
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
}
.widget-toc::-webkit-scrollbar       { width: 4px; }
.widget-toc::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 2px; }

/* Titre du widget avec icône */
.widget-toc .widget-title {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.widget-toc .widget-title svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

/* Liste du sommaire */
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Chaque entrée */
.toc-item {
    border-left: 2px solid var(--color-border);
    transition: border-color var(--transition);
}
.toc-item.is-active {
    border-left-color: var(--color-primary);
}

/* H2 — niveau principal */
.toc-level-2 {
    margin-top: .2rem;
}

/* H3 — sous-niveau, indenté */
.toc-level-3 {
    padding-left: .75rem;
    border-left-color: transparent; /* la bordure parente suffit */
}
.toc-level-3.is-active {
    border-left-color: var(--color-secondary);
}

/* Lien */
.toc-link {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    padding: .4rem .6rem;
    text-decoration: none;
    color: var(--color-muted);
    font-size: .82rem;
    line-height: 1.4;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: all var(--transition);
}
.toc-link:hover {
    color: var(--color-primary);
    background: rgba(192, 57, 43, .05);
}
.toc-item.is-active > .toc-link {
    color: var(--color-primary);
    font-weight: 600;
    background: rgba(192, 57, 43, .07);
}

/* Repère numéroté */
.toc-marker {
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    font-size: .72rem;
    font-weight: 700;
    color: var(--color-primary);
    opacity: .7;
    min-width: 1.8rem;
    line-height: 1;
    transition: opacity var(--transition);
}
.toc-item.is-active .toc-marker {
    opacity: 1;
}
.toc-level-3 .toc-marker {
    color: var(--color-secondary);
    min-width: 2.4rem;
}

/* Texte du lien */
.toc-text {
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Barre de progression de lecture (haut du widget) */
.toc-progress {
    height: 3px;
    background: var(--color-border);
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
    overflow: hidden;
}
.toc-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--radius-full);
    width: 0%;
    transition: width .1s linear;
}

/* Responsive : sur mobile le sommaire est inline (avant le contenu) */
@media (max-width: 768px) {
    .widget-toc {
        position: static;
        max-height: none;
        order: -1; /* Avant les articles similaires en mobile */
    }
    /* Afficher le TOC en haut de l'article sur mobile */
    .toc-list { gap: 0; }
}
