/*
Theme Name: ITN Minimal
Theme URI: https://itn.dev
Author: ITN Mines Paris – PSL
Description: Thème minimaliste reproduisant le style de itn.dev
Version: 1.0.28
License: GNU General Public License v2 or later
Text Domain: itn-minimal
*/

/* ─── Fonts ─────────────────────────────────────────────────────────────── */

/* Police chargée via wp_enqueue_style() dans functions.php */

/* ─── Reset & Base ──────────────────────────────────────────────────────── */

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

html {
    -webkit-hyphens: auto;
    hyphens: auto;
    font-size: 16px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    color: #1e293b;
    background: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ─── Layout container ──────────────────────────────────────────────────── */

.site-wrapper {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* ─── Header ────────────────────────────────────────────────────────────── */

.header-outer {
    border-bottom: 1px solid #e2e8f0;
}

.site-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 1024px) {
    .site-header {
        flex-direction: row;
        align-items: center;
    }
}

/* Logo row */
.header-brand {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 1024px) {
    .header-brand {
        width: auto;
    }
}

/* ─── Logos group (Mines Paris + ITN) ───────────────────────────────────── */

.header-logos {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-mines img {
    height: 40px;
    width: auto;
    display: block;
    max-width: none;
}

.header-logos-sep {
    display: block;
    width: 1px;
    height: 2rem;
    background-color: #cbd5e1;
    flex-shrink: 0;
}

.site-logo {
    font-size: 1.75rem;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    white-space: nowrap;
    hyphens: none;
}

.site-logo .logo-icon {
    display: inline-flex;
    align-items: center;
}

.site-logo .logo-text {
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ─── Mobile toggle ─────────────────────────────────────────────────────── */

.nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: #1f2937;
    line-height: 0;
}

@media (min-width: 1024px) {
    .nav-toggle {
        display: none;
    }
}

.nav-toggle svg {
    width: 2.1rem;
    height: 2.1rem;
    display: block;
}

.nav-toggle .icon-close {
    display: none;
}

.nav-toggle.is-open .icon-open {
    display: none;
}

.nav-toggle.is-open .icon-close {
    display: block;
}

/* ─── Navigation ────────────────────────────────────────────────────────── */

.site-nav {
    display: none;
    width: 100%;
    margin-top: 0.5rem;
}

.site-nav.is-open {
    display: block;
}

@media (min-width: 1024px) {
    .site-nav {
        display: flex !important;
        align-items: center;
        width: auto;
        margin-top: -0.1rem;
    }
}

.nav-list {
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .nav-list {
        flex-direction: row;
        gap: 0.75rem;
        align-items: center;
    }
}

.nav-list a {
    display: inline-flex;
    align-items: center;
    padding-top: 0.8rem;
    padding-bottom: 0.4rem;
    font-size: 1.06rem;
    line-height: 1;
    color: #4b5563;
    transition: color 0.15s ease;
    white-space: nowrap;
    hyphens: none;
}

@media (min-width: 1024px) {
    .nav-list a {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

.nav-list a:hover {
    color: #111827;
}

/* current page */
.nav-list .current-menu-item a,
.nav-list .current_page_item a {
    color: #111827;
    font-weight: 500;
}

/* ─── Sous-menus (dropdown) ─────────────────────────────────────────────── */

.nav-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Mobile : sous-menu déplié sous le parent, légèrement indenté */
@media (max-width: 1023px) {
    .nav-list .sub-menu {
        padding-left: 1rem;
        margin-bottom: 0.25rem;
    }
    .nav-list .sub-menu a {
        font-size: 0.95rem;
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
        color: #6b7280;
    }
}

/* Desktop : dropdown au survol */
@media (min-width: 1024px) {
    .nav-list > li {
        position: relative;
    }
    .nav-list .sub-menu {
        display: none;
        position: absolute;
        top: 100%;
        margin: 0.6em 0.2em 0.1em 0em;
        min-width: 220px;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
        padding: 0.4rem 0;
        z-index: 100;
    }
    .nav-list > li:hover > .sub-menu,
    .nav-list > li:focus-within > .sub-menu {
        display: block;
    }
    /* Pont invisible qui maintient le hover entre le parent et le dropdown */
    .nav-list > li.menu-item-has-children::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: 0.9em;
    }
    .nav-list .sub-menu li {
        white-space: nowrap;
    }
    .nav-list .sub-menu a {
        display: block;
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
        color: #4b5563;
    }
    .nav-list .sub-menu a:hover {
        color: #111827;
        background: #f8fafc;
    }
}

/* ─── Social icons in nav (mobile) ─────────────────────────────────────── */

.nav-social-mobile {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 2.5rem;
    padding-top: 0.25rem;
}

@media (min-width: 1024px) {
    .nav-social-mobile {
        display: none;
    }
}

/* ─── Social icons (desktop) ────────────────────────────────────────────── */

.header-social {
    display: none;
}

@media (min-width: 1024px) {
    .header-social {
        display: flex;
        align-items: center;
        gap: 1rem;
        height: 2.5rem;
    }
}

.header-social a,
.nav-social-mobile a {
    display: inline-flex;
    align-items: center;
    color: #000000;
    line-height: 0;
    transition: opacity 0.15s ease;
}

.header-social a:hover,
.nav-social-mobile a:hover {
    opacity: 0.65;
}

.header-social svg,
.nav-social-mobile svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* ─── Main content ──────────────────────────────────────────────────────── */

.site-main {
    padding-top: 3rem;
    padding-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .site-main {
        padding-top: 2rem;
        padding-bottom: 2.1rem;
        margin: 0 1em;
    }
}

/* ─── Hero section ──────────────────────────────────────────────────────── */

.hero {
    display: grid;
    place-items: center;
}

@media (min-width: 1024px) {
    .hero {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

.hero-image {
    display: none;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    order: 1;
}

@media (min-width: 640px) {
    .hero-image {
        display: block;
    }
}

.hero-image img {
    border-radius: 0.375rem;
    width: 100%;
}

.hero-content h1 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
    hyphens: none;
    letter-spacing: -0.02em;
    color: #0f172a;
}

@media (min-width: 640px) {
    .hero-content h1 { font-size: 2.5rem; }
}

@media (min-width: 1024px) {
    .hero-content h1 { font-size: 2.75rem; }
}

@media (min-width: 1280px) {
    .hero-content h1 { font-size: 3.25rem; letter-spacing: -0.02em; }
}

.hero-content p {
    font-size: 1.125rem;
    margin-top: 1rem;
    color: #475569;
    max-width: 36rem;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
}

.btn svg {
    display: block;
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

.btn-primary {
    background-color: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.btn-primary:hover {
    background-color: #1e293b;
    border-color: #1e293b;
    color: #ffffff;
}

.btn-secondary {
    background-color: #ffffff;
    color: #0f172a;
    border-color: #cbd5e1;
}

.btn-secondary:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

/* ─── En-tête de section (réutilisable) ─────────────────────────────────── */
/*
 * `.section-header` : bloc d'en-tête (titre H2 + sous-titre P) à utiliser pour
 * chaque section majeure du site (accueil, pages Recherche/Enseignement/etc.).
 * Style cohérent garanti partout.
 *
 * Usage :
 *   <div class="section-header">
 *     <h2>Titre de la section</h2>
 *     <p>Sous-titre / description (optionnel)</p>
 *   </div>
 *
 * Pour les H2 dans le contenu d'un article : voir `.entry-content h2` plus bas.
 */

.section-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #0f172a;
}

@media (min-width: 640px) {
    .section-header h2 { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
    .section-header h2 { font-size: 3rem; letter-spacing: -0.02em; }
}

.section-header p {
    font-size: 1.125rem;
    margin-top: 1rem;
    color: #475569;
}

/* ─── Missions section ──────────────────────────────────────────────────── */

.missions {
    margin-top: 4rem;
}

@media (min-width: 768px) {
    .missions {
        margin-top: 5rem;
    }
}

/*
 * `.section-grid` : grille responsive 1/2/3 colonnes, à utiliser partout où
 * une section présente une grille d'éléments (Missions, Organisation, futurs
 * blocs de cards…). Cohérence visuelle garantie.
 */

.section-grid {
    display: grid;
    gap: 3rem;
    margin-top: 3rem;
}

@media (min-width: 640px) {
    .section-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 768px) {
    .section-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.mission-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.mission-icon {
    margin-top: 0.25rem;
    background-color: #000000;
    border-radius: 9999px;
    padding: 0.5rem;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mission-icon svg {
    color: #ffffff;
    width: 1rem;
    height: 1rem;
}

.mission-body h3 {
    font-weight: 600;
    font-size: 1.125rem;
    color: #0f172a;
}

.mission-body p {
    color: #64748b;
    margin-top: 0.5rem;
    line-height: 1.75;
    font-size: 0.9375rem;
}

/* ─── Partners band ─────────────────────────────────────────────────────── */

.partners {
    margin-top: 6rem;
}

.partners p {
    text-align: center;
    color: #64748b;
    font-size: 0.9375rem;
}

.partners-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
}

.partners-logo svg {
    height: 4rem;
}

@media (min-width: 768px) {
    .partners-logo svg {
        height: 6rem;
    }
}

/* ─── Generic page content ──────────────────────────────────────────────── */

.entry-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #334155;
}

/* Constrain article reading width (single posts) — readability + look itn.dev-ish */
.single .entry-header,
.single .entry-content,
.single .single-post-footer {
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
}

/* Sous-pages MOVIE : titre + contenu alignés et resserrés, image pleine colonne */
.movie-child .entry-header,
.movie-child .entry-content {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.movie-child .article-figure {
    width: 100%;
    margin: 1.5rem 0;
}

.movie-child .article-figure img {
    width: 100%;
    height: auto;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: #0f172a;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 1.5em;
    margin-bottom: 1.1em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 1.2em;
}

.entry-content h1 { font-size: 2.1rem; }
.entry-content h2 { font-size: 1.55rem; }
.entry-content h3 { font-size: 1.2rem; }
.entry-content h4 { font-size: 1.05rem; }

.entry-content p { margin-bottom: 1.25em; }

.entry-content a {
    text-decoration: underline;
    text-underline-offset: 2px;
    color: #000000;
}

.entry-content a:hover {
    opacity: 0.7;
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25em;
    list-style: revert;
}

.entry-content li { margin-bottom: 0.4em; }

/* ─── Images dans articles (figures, responsive) ────────────────────────── */

.entry-content figure,
.article-figure {
    margin: auto;
    max-width: 100%;
}

.entry-content figure img,
.article-figure img {
    display: block;
    width: 100%;
    border-radius: 5px;
    margin-bottom: 1.7rem;
}

.entry-content figcaption,
.article-figure figcaption {
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Classes optionnelles d'alignement (pour text-wrap sur grand écran) */
@media (min-width: 768px) {
    .entry-content figure.alignright,
    .article-figure.alignright {
        float: right;
        max-width: 45%;
        margin: 0.25rem 0 2.4rem 1.75rem;
        clear: right;
    }
    .entry-content figure.alignleft,
    .article-figure.alignleft {
        float: left;
        max-width: 45%;
        margin: 0.25rem 1.75rem 2.4rem 0;
        clear: left;
    }
}

/* Garde-fou : reset le float au passage d'un H2 (pour ne pas chevaucher la section suivante) */
.entry-content h2 { clear: both; }

/* ─── Tableau calendrier (procédure / dates) ────────────────────────────── */

.entry-content table.calendar-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0 2rem;
    font-size: 1rem;
}

.entry-content table.calendar-table th,
.entry-content table.calendar-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.entry-content table.calendar-table th {
    font-weight: 600;
    color: #475569;
    font-size: 0.9rem;
    border-bottom-width: 2px;
}

.entry-content table.calendar-table td:first-child {
    white-space: nowrap;
    font-weight: 500;
    color: #1e293b;
}

/* ─── Listes thématiques avec markers colorés ───────────────────────────── */

.entry-content ul.theme-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0 1.5rem;
}

.entry-content ul.theme-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0;
    margin-bottom: 0;
}

.theme-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 6px;
    font-size: 1rem;
    flex-shrink: 0;
}

.theme-marker.theme-tech       { background: #dbeafe; }
.theme-marker.theme-arts       { background: #f3e8ff; }
.theme-marker.theme-sante      { background: #fee2e2; }
.theme-marker.theme-innovation { background: #e0f2fe; }
.theme-marker.theme-energie    { background: #dcfce7; }

/* ─── Footer single (bouton retour aux actualités) ──────────────────────── */

.single-post-footer {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    clear: both;
}

.back-to-archive {
    display: inline-block;
    padding: 0.65rem 1.4rem;
    background: #f1f5f9;
    color: #1e293b;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
}

.back-to-archive:hover,
.back-to-archive:focus-visible {
    background: #e2e8f0;
    transform: translateX(-2px);
}

/* ─── Project cards (articles type "showcase de projets") ───────────────── */

.project-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    margin: 1.25rem 0;
    background: #ffffff;
    clear: both;
}

@media (min-width: 640px) {
    .project-card {
        flex-direction: row;
        gap: 1.25rem;
        padding: 1rem 1.25rem;
    }
}

.project-card-image {
    flex-shrink: 0;
    margin: 0;
    width: 100%;
}

@media (min-width: 640px) {
    .project-card-image {
        width: 200px;
    }
}

.project-card-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin-bottom:0 !important;
}

.project-card-body {
    flex: 1;
    min-width: 0;
}

.project-card-body h4 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
    color: #0f172a;
}

.entry-content .project-card-body p.project-card-org {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0 0 0.75rem;
    font-style: italic;
}

.entry-content .project-card-body p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-card-link {
    display: inline-block;
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.95rem;
}

.project-card-link:hover {
    text-decoration: underline;
}

/* ─── Article TOC (table des matières / série) ──────────────────────────── */

.article-toc {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
    margin: 0 0 2.5rem;
}

.article-toc-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0f172a;
    margin: 0 0 0.5rem;
}

.article-toc-intro {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0 0 1.25rem;
}

.article-toc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .article-toc-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.article-toc-card {
    display: block;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 3px solid transparent;
    border-radius: 6px;
    padding: 0.85rem 1rem;
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.4;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.article-toc-card:hover,
.article-toc-card:focus-visible {
    border-left-color: #2563eb;
    background: #f0f9ff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-toc-num {
    font-weight: 700;
    color: #2563eb;
    margin-right: 0.25rem;
}

/* ─── Titres de page (unifiés) ──────────────────────────────────────────── */

.page-title,
.archive-header h1,
.team-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin-bottom: 1.4rem;
}

/* ─── Page Équipe ───────────────────────────────────────────────────────── */

.team-header {
    margin-bottom: 3rem;
}

.team-header p {
    color: #64748b;
    font-size: 1.0625rem;
}

.team-group-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 3.5rem 2.5rem;
    margin-bottom: 4rem;
    max-width: 1100px;
}

.team-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.team-card-photo {
    flex-shrink: 0;
    width: 144px;
    height: 144px;
    border-radius: 0.375rem;
    overflow: hidden;
    background: #f1f5f9;
}

.team-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-card-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.team-card-photo-placeholder svg {
    width: 2rem;
    height: 2rem;
}

.team-card-info {
    flex: 1;
    min-width: 0;
}

.team-card-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.team-card-name-row h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.team-card-links {
    display: flex;
    gap: 0.375rem;
}

.team-card-link {
    color: #475569;
    line-height: 0;
    transition: color 0.15s ease;
}

.team-card-link:hover {
    color: #0f172a;
}

.team-card-link svg {
    width: 0.875rem;
    height: 0.875rem;
    display: block;
}

.team-card-role {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.625rem;
}

.team-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.team-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    padding: 0.2em 0.6em;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #475569;
    white-space: nowrap;
    text-decoration: none;
    transition: filter 0.15s ease;
}

.team-tag:hover {
    filter: brightness(0.95);
}

.team-tag svg {
    width: 0.875em;
    height: 0.875em;
    flex-shrink: 0;
}

.team-tag--tech       { background: #dbeafe; color: #1d4ed8; }
.team-tag--arts       { background: #f3e8ff; color: #7e22ce; }
.team-tag--innovation { background: #e0f2fe; color: #0369a1; }
.team-tag--sante      { background: #fee2e2; color: #b91c1c; }
.team-tag--energie    { background: #dcfce7; color: #15803d; }

/* ─── Page Actualités ───────────────────────────────────────────────────── */

.archive-header {

}

.archive-header p {
    color: #64748b;
    font-size: 1.0625rem;
}

/* Filtres catégories */
.archive-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.filter-btn {
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    text-decoration: none;
}

.filter-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.filter-btn.is-active {
    background: #000;
    color: #fff;
}

/* Liste des articles */
.archive-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 3rem;
}

.archive-card {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.archive-card:first-child {
    border-top: 1px solid #e2e8f0;
}

.archive-card-image {
    flex-shrink: 0;
    width: 240px;
    height: 148px;
    border-radius: 0.375rem;
    overflow: hidden;
    display: block;
    background: #f1f5f9;
}

@media (max-width: 640px) {
    .archive-card {
        flex-direction: column;
        gap: 1rem;
    }
    .archive-card-image {
        width: 100%;
        height: 200px;
    }
}

.archive-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.archive-card-image:hover img {
    transform: scale(1.03);
}

.archive-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.25rem;
}

.archive-card-cat {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #3b82f6;
    text-decoration: none;
}

.archive-card-cat:hover {
    color: #1d4ed8;
}

.archive-card-title {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
    margin: 0;
}

.archive-card-title a {
    text-decoration: none;
    color: inherit;
}

.archive-card-title a:hover {
    color: #3b82f6;
}

.archive-card-excerpt {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.archive-card-meta {
    font-size: 0.875rem;
    color: #94a3b8;
    margin: 0;
    margin-top: auto;
    padding-top: 0.2rem;
}

/* Pagination */
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.9375rem;
    color: #475569;
    text-decoration: none;
    transition: all 0.15s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background: #000;
    color: #fff;
}

.archive-empty {
    color: #64748b;
    font-size: 1rem;
    padding: 2rem 0;
}

/* ─── Single post (extras sur page.php) ─────────────────────────────────── */

.single .entry-header {
    margin-bottom: 2.5rem;
}

.single .page-title {
    text-align: left;
    margin-bottom: 0.6rem;
}

.single-post-label {
  font-size: 0.9rem;
font-weight: 600;
letter-spacing: 0.08em;
color: #3b82f6;
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    color: #7f92ac;
    font-size: 0.9375rem;
}

.single-post-sep {
    color: #738398;
}

.single-post-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.single-post-tag {
    color: #6b7f9d;
    text-decoration: none;
    transition: color 0.15s ease;
}

.single-post-tag:hover {
    color: #0f172a;
}

/* ─── Footer ────────────────────────────────────────────────────────────── */

.site-footer {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.site-footer p {
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
}

.site-footer p + p {
    margin-top: 0.25rem;
    font-size: 0.75rem;
}

.site-footer a {
    color: #64748b;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-footer a:hover {
    color: #1e293b;
}

.footer-icon {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-left: 0.125rem;
}

.footer-icon svg {
    width: 0.875rem;
    height: 0.875rem;
    color: #64748b;
    display: inline-block;
}
