/*
Theme Name: Echappees Genevoises
Theme URI: https://centre-cartigny.ch
Author: Pulsion Digitale
Author URI: https://centre-cartigny.ch
Description: Theme editorial pour le magazine Echappees Genevoises. Tourisme, patrimoine et art de vivre entre Geneve et le Leman.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: echappees-genevoises
Tags: editorial, magazine, tourism, one-column, custom-menu, featured-images
*/

/* ============================================================
   01 - VARIABLES GLOBALES
   Un seul fichier a modifier pour changer tout le skin
   ============================================================ */

:root {
    /* Couleurs principales */
    --primary: #fcdc00;
    --secondary: #2e2e2e;
    --accent: #6b8e23;
    --accent-dark: #4f6b1a;

    /* Neutres */
    --bg-color: #fcfcfc;
    --bg-card: #ffffff;
    --text-color: #4a4a4a;
    --text-light: #777;
    --text-muted: #999;
    --white: #ffffff;
    --light-gray: #eaeaea;
    --border: #e5e5e5;

    /* Feedback */
    --success: #27ae60;
    --success-bg: #e6f7ec;
    --error: #c0392b;
    --error-bg: #fcebea;

    /* Typo */
    --font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-serif: 'Georgia', 'Times New Roman', serif;

    /* Tailles */
    --text-xs: 0.8rem;
    --text-sm: 0.9rem;
    --text-base: 1rem;
    --text-lg: 1.15rem;
    --text-xl: 1.4rem;
    --text-2xl: 1.8rem;
    --text-3xl: 2.4rem;
    --text-4xl: 3rem;

    /* Espacements */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 40px;
    --space-2xl: 64px;
    --space-3xl: 96px;

    /* Layout */
    --container-max: 1200px;
    --container-narrow: 760px;
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --border-radius-lg: 16px;

    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;

    /* Ombres */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    /* Z-index */
    --z-header: 100;
    --z-overlay: 500;
    --z-modal: 1000;
}

/* ============================================================
   02 - RESET
   ============================================================ */

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

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
}

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

ul, ol {
    list-style: none;
}

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

a:hover {
    color: var(--accent);
}

button {
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

table {
    border-collapse: collapse;
    width: 100%;
}

/* === ACCESSIBILITE === */

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

.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;
}

/* ============================================================
   03 - TYPOGRAPHIE
   ============================================================ */

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

h1 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-lg);
}

h2 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-md);
}

h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
}

p {
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

strong {
    font-weight: 700;
}

em {
    font-style: italic;
}

blockquote {
    border-left: 4px solid var(--accent);
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-lg) 0;
    background: rgba(107, 142, 35, 0.05);
    font-style: italic;
    color: var(--text-color);
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

blockquote p:last-child {
    margin-bottom: 0;
}

/* === LISTES DANS LE CONTENU === */

.content-list {
    padding-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.content-list li {
    list-style: disc;
    margin-bottom: var(--space-sm);
    line-height: 1.7;
}

/* === SECTION HEADER === */

.section-header {
    text-align: center;
    margin: var(--space-2xl) 0 var(--space-xl);
}

.section-header h2 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-sm);
}

.section-header p {
    color: var(--text-light);
    font-size: var(--text-lg);
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    h1 {
        font-size: var(--text-3xl);
    }

    h2 {
        font-size: var(--text-2xl);
    }

    .section-header {
        margin: var(--space-xl) 0 var(--space-lg);
    }
}

/* ============================================================
   04 - LAYOUT
   ============================================================ */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container--narrow {
    max-width: var(--container-narrow);
}

/* === GRIDS === */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.articles-grid--2 {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

/* === FLEX HELPERS === */

.flex {
    display: flex;
}

.flex--center {
    align-items: center;
    justify-content: center;
}

.flex--between {
    justify-content: space-between;
    align-items: center;
}

.flex--wrap {
    flex-wrap: wrap;
}

.flex--gap-sm {
    gap: var(--space-sm);
}

.flex--gap-md {
    gap: var(--space-md);
}

.flex--gap-lg {
    gap: var(--space-lg);
}

/* === SECTIONS === */

.section {
    padding: var(--space-2xl) 0;
}

.section--gray {
    background-color: #f5f5f5;
}

/* === RESPONSIVE === */

@media (max-width: 767px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .articles-grid--2 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   05 - COMPONENTS
   ============================================================ */

/* === BOUTONS === */

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
    font-size: var(--text-base);
    line-height: 1.4;
}

.btn--primary {
    background-color: var(--primary);
    color: var(--secondary);
}

.btn--primary:hover {
    background-color: #e5c700;
    color: var(--secondary);
}

.btn--outline {
    background-color: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn--outline:hover {
    background-color: var(--secondary);
    color: var(--white);
}

.btn--sm {
    padding: 8px 16px;
    font-size: var(--text-sm);
}

.btn--lg {
    padding: 16px 32px;
    font-size: var(--text-lg);
}

.btn--text {
    background: none;
    padding: 0;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--accent);
}

.btn--text i {
    width: 18px;
    height: 18px;
    transition: transform 0.2s;
}

.btn--text:hover i {
    transform: translateX(5px);
}

/* === BADGES === */

.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.badge--category {
    background: rgba(255, 255, 255, 0.9);
    color: var(--secondary);
    backdrop-filter: blur(4px);
}

.badge--primary {
    background: var(--primary);
    color: var(--secondary);
}

.badge--accent {
    background: var(--accent);
    color: var(--white);
}

/* === AUTHOR BYLINE === */

.author-byline {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.author-byline__avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-byline__name {
    font-weight: 600;
    margin-bottom: 2px;
    font-size: var(--text-sm);
}

.author-byline__name a {
    color: var(--secondary);
}

.author-byline__name a:hover {
    color: var(--accent);
}

.author-byline__meta {
    color: var(--text-light);
    font-size: var(--text-sm);
    margin-bottom: 0;
}

/* === BREADCRUMBS === */

.breadcrumbs {
    padding: var(--space-md) 0;
}

.breadcrumbs__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--text-light);
}

.breadcrumbs__item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.breadcrumbs__item a {
    color: var(--text-light);
}

.breadcrumbs__item a:hover {
    color: var(--accent);
}

.breadcrumbs__sep {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
}

.breadcrumbs__item [aria-current="page"] {
    color: var(--text-color);
    font-weight: 500;
}

/* === CTA BOX === */

.cta-box {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    margin: var(--space-2xl) 0;
}

.cta-box__text {
    padding: var(--space-xl);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.cta-box__text h2 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-md);
}

.cta-box__text p {
    margin-bottom: var(--space-lg);
    font-size: var(--text-lg);
}

.cta-box__image {
    flex: 1;
}

.cta-box__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === SIDEBAR WIDGET === */

.sidebar-widget {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-lg);
}

.sidebar-widget h3 {
    margin-bottom: var(--space-md);
    font-size: var(--text-xl);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--primary);
}

.sidebar-widget__list {
    list-style: none;
}

.sidebar-widget__list li {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
}

.sidebar-widget__list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-widget__list a {
    display: block;
    color: var(--text-color);
}

.sidebar-widget__list a:hover {
    color: var(--accent);
}

.sidebar-widget__date {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-bottom: 4px;
}

.sidebar-widget__title {
    display: block;
    font-weight: 600;
    font-size: var(--text-sm);
    line-height: 1.4;
}

/* === PAGINATION === */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    margin: var(--space-xl) 0 var(--space-2xl);
}

.pagination__link,
.pagination__current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-sm);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: var(--text-sm);
    transition: var(--transition-fast);
}

.pagination__link {
    background: var(--white);
    color: var(--text-color);
    border: 1px solid var(--border);
}

.pagination__link:hover {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--primary);
}

.pagination__current {
    background: var(--secondary);
    color: var(--white);
}

.pagination__dots {
    color: var(--text-muted);
}

/* === CATEGORIES GRID (HOME) === */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--secondary);
}

.category-card i {
    width: 32px;
    height: 32px;
    color: var(--accent);
}

.category-card span {
    font-weight: 600;
    font-size: var(--text-sm);
}

@media (max-width: 767px) {
    .cta-box {
        flex-direction: column-reverse;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   06 - HEADER
   ============================================================ */

.site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    border-bottom: 1px solid var(--light-gray);
    padding: 15px 0;
}

.site-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* === LOGO === */

.site-header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--secondary);
}

.site-header__logo:hover {
    color: var(--secondary);
}

.site-header__logo i {
    color: var(--primary);
    width: 32px;
    height: 32px;
}

.site-header__logo-text {
    line-height: 1.2;
    font-size: var(--text-sm);
}

.site-header__logo-text strong {
    font-weight: 800;
    font-size: var(--text-base);
}

/* === NAV === */

.site-nav__list {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.site-nav__list a:not(.btn) {
    font-weight: 600;
    font-size: var(--text-sm);
    padding: var(--space-sm) 0;
    position: relative;
}

.site-nav__list a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-fast);
}

.site-nav__list a:not(.btn):hover::after {
    width: 100%;
}

/* === MOBILE TOGGLE === */

.site-nav__toggle {
    display: none;
    padding: var(--space-sm);
    color: var(--secondary);
}

.site-nav__toggle i {
    width: 24px;
    height: 24px;
}

/* === MOBILE NAV === */

@media (max-width: 767px) {
    .site-nav__toggle {
        display: block;
    }

    .site-nav__list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: var(--space-md);
        gap: var(--space-sm);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }

    .site-nav__list.is-open {
        display: flex;
    }

    .site-nav__list a:not(.btn) {
        padding: var(--space-sm) var(--space-md);
        width: 100%;
    }

    .site-nav__list .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .site-nav__list {
        gap: var(--space-sm);
    }

    .site-nav__list a:not(.btn) {
        font-size: var(--text-xs);
    }
}

/* ============================================================
   07 - FOOTER
   ============================================================ */

.site-footer {
    background-color: var(--secondary);
    color: var(--white);
    padding: var(--space-2xl) 0 var(--space-md);
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xl);
    justify-content: space-between;
    margin-bottom: var(--space-xl);
}

.site-footer__col {
    flex: 1;
    min-width: 220px;
}

.site-footer__col h3,
.site-footer__col h4 {
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.site-footer__col h3 {
    font-size: var(--text-xl);
}

.site-footer__col h4 {
    font-size: var(--text-lg);
}

.site-footer__col p {
    color: var(--light-gray);
    font-size: var(--text-sm);
    line-height: 1.7;
}

.site-footer__col ul li {
    margin-bottom: var(--space-sm);
}

.site-footer__col a {
    color: var(--light-gray);
    font-size: var(--text-sm);
}

.site-footer__col a:hover {
    color: var(--primary);
}

.site-footer__redaction {
    margin-top: var(--space-md);
    font-size: var(--text-sm);
}

.site-footer__redaction a {
    color: var(--primary);
    font-weight: 600;
}

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

.site-footer__bottom {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: var(--text-sm);
    color: #bbb;
}

.site-footer__disclaimer {
    font-size: var(--text-xs);
    color: #999;
    max-width: 800px;
    margin: 0 auto var(--space-sm);
    line-height: 1.6;
}

@media (max-width: 767px) {
    .site-footer__inner {
        flex-direction: column;
        gap: var(--space-lg);
    }
}

/* ============================================================
   08 - HERO SECTIONS
   ============================================================ */

.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(46, 46, 46, 0.55);
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: var(--space-xl) var(--space-md);
}

.hero__content h1 {
    font-size: var(--text-4xl);
    color: var(--white);
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero__content p {
    font-size: var(--text-lg);
    margin-bottom: var(--space-lg);
    color: rgba(255, 255, 255, 0.9);
}

.hero__actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

.hero__actions .btn--outline {
    border-color: var(--white);
    color: var(--white);
}

.hero__actions .btn--outline:hover {
    background-color: var(--white);
    color: var(--secondary);
}

/* === ARTICLE HERO === */

.article-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 120px 0 80px;
    text-align: center;
    color: var(--white);
}

.article-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(46, 46, 46, 0.5);
}

.article-hero__content {
    position: relative;
    z-index: 1;
}

.article-hero__content .badge {
    position: relative;
    display: inline-block;
    margin-bottom: var(--space-md);
}

.article-hero__title {
    font-size: var(--text-4xl);
    color: var(--white);
    margin-bottom: var(--space-md);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.article-hero__subtitle {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto;
}

/* === CATEGORY HERO === */

.category-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 100px 0 60px;
    text-align: center;
    color: var(--white);
}

.category-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(46, 46, 46, 0.5);
}

.category-hero__content {
    position: relative;
    z-index: 1;
}

.category-hero__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-md);
    color: var(--primary);
}

.category-hero__title {
    font-size: var(--text-4xl);
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.category-hero__description {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto;
}

/* === RESPONSIVE === */

@media (max-width: 767px) {
    .hero {
        min-height: 50vh;
    }

    .hero__content h1,
    .article-hero__title,
    .category-hero__title {
        font-size: var(--text-3xl);
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .article-hero {
        padding: 80px 0 50px;
    }

    .category-hero {
        padding: 80px 0 40px;
    }
}

/* ============================================================
   09 - ARTICLE CARD
   ============================================================ */

.article-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.article-card__link {
    display: block;
    color: inherit;
}

.article-card__link:hover {
    color: inherit;
}

.article-card__image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.article-card__image .badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
}

.article-card__content {
    padding: var(--space-lg);
}

.article-card__title {
    margin-bottom: var(--space-sm);
    font-size: var(--text-xl);
    line-height: 1.3;
}

.article-card__meta {
    font-size: var(--text-sm);
    color: var(--text-light);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.article-card__meta i {
    width: 14px;
    height: 14px;
    vertical-align: middle;
}

.article-card__excerpt {
    font-size: var(--text-sm);
    color: var(--text-color);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.article-card__cta {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--accent);
    font-size: var(--text-sm);
}

.article-card__cta i {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.article-card:hover .article-card__cta i {
    transform: translateX(5px);
}

/* === FEATURED CARD === */

.article-card--featured {
    grid-column: span 2;
}

.article-card--featured .article-card__link {
    display: flex;
    min-height: 320px;
}

.article-card--featured .article-card__image {
    flex: 1;
    height: auto;
    min-height: 320px;
}

.article-card--featured .article-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-xl);
}

.article-card--featured .article-card__title {
    font-size: var(--text-2xl);
}

.article-card--featured .article-card__excerpt {
    font-size: var(--text-base);
}

/* === RESPONSIVE === */

@media (max-width: 767px) {
    .article-card--featured {
        grid-column: span 1;
    }

    .article-card--featured .article-card__link {
        flex-direction: column;
        min-height: auto;
    }

    .article-card--featured .article-card__image {
        min-height: 200px;
    }

    .article-card--featured .article-card__title {
        font-size: var(--text-xl);
    }
}

/* ============================================================
   10 - ARTICLE SINGLE
   ============================================================ */

.article-single__layout {
    display: flex;
    gap: var(--space-xl);
    padding: var(--space-xl) var(--space-md);
}

.article-single__main {
    flex: 2;
    min-width: 0;
}

.article-single__sidebar {
    flex: 0 0 300px;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

/* === CHAPEAU === */

.article-single__chapeau {
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border);
    font-family: var(--font-serif);
    font-style: italic;
}

/* === ARTICLE BODY (CONTENU RICHE) === */

.article-body {
    max-width: var(--container-narrow);
    line-height: 1.8;
    font-size: 1.1rem;
}

.article-body h2 {
    font-size: var(--text-2xl);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.article-body h3 {
    font-size: var(--text-xl);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-md);
}

.article-body p {
    margin-bottom: var(--space-lg);
    line-height: 1.8;
}

.article-body img {
    max-width: 100%;
    border-radius: var(--border-radius);
    margin: var(--space-lg) 0;
    box-shadow: var(--shadow-sm);
}

.article-body blockquote {
    border-left: 4px solid var(--accent);
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-lg) 0;
    background: rgba(107, 142, 35, 0.05);
    font-style: italic;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.article-body blockquote p:last-child {
    margin-bottom: 0;
}

.article-body ul,
.article-body ol {
    padding-left: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.article-body ul li {
    list-style: disc;
    margin-bottom: var(--space-sm);
    line-height: 1.8;
}

.article-body ol li {
    list-style: decimal;
    margin-bottom: var(--space-sm);
    line-height: 1.8;
}

.article-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-body a:hover {
    color: var(--accent-dark);
}

/* === CREDIT PHOTO === */

.article-single__credit {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-md);
    font-style: italic;
}

/* === AUTEUR BOX === */

.article-single__author-box {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-lg);
    margin-top: var(--space-xl);
    background: #f9f9f9;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
}

.article-single__author-box img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.article-single__author-box h3 {
    margin-bottom: var(--space-sm);
    font-size: var(--text-base);
}

.article-single__author-box p {
    font-size: var(--text-sm);
    color: var(--text-light);
    margin-bottom: var(--space-md);
}

/* === RELATED SECTION === */

.related-section {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--border);
    margin-top: var(--space-xl);
}

.related-section h2 {
    text-align: center;
    margin-bottom: var(--space-xl);
}

/* === RESPONSIVE === */

@media (max-width: 767px) {
    .article-single__layout {
        flex-direction: column;
        padding: var(--space-md);
    }

    .article-single__sidebar {
        position: static;
        flex: auto;
    }

    .article-single__author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .article-body {
        font-size: var(--text-base);
    }
}

/* ============================================================
   11 - CATEGORY PAGE
   ============================================================ */

.category-page {
    padding: var(--space-xl) 0 var(--space-2xl);
}

.category-page__count {
    text-align: center;
    color: var(--text-light);
    font-size: var(--text-sm);
    margin-bottom: var(--space-xl);
}

/* === AUTHOR PAGE === */

.author-page {
    padding: var(--space-xl) 0 var(--space-2xl);
}

.author-page__header {
    display: flex;
    gap: var(--space-xl);
    align-items: flex-start;
    margin-bottom: var(--space-2xl);
    padding: var(--space-xl);
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.author-page__avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.author-page__info h1 {
    margin-bottom: var(--space-sm);
}

.author-page__bio {
    font-size: var(--text-base);
    color: var(--text-color);
    line-height: 1.8;
}

.author-page__links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.author-page__links a {
    color: var(--accent);
    font-weight: 600;
    font-size: var(--text-sm);
}

.author-page__articles-title {
    margin-bottom: var(--space-lg);
    font-size: var(--text-2xl);
}

/* === SEARCH PAGE === */

.search-page {
    padding: var(--space-xl) 0 var(--space-2xl);
}

.search-page__form {
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    display: flex;
    gap: var(--space-sm);
}

.search-page__input {
    flex: 1;
    padding: 12px var(--space-md);
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
    font-size: var(--text-base);
    transition: var(--transition-fast);
}

.search-page__input:focus {
    border-color: var(--accent);
    outline: none;
}

.search-page__results-count {
    text-align: center;
    color: var(--text-light);
    margin-bottom: var(--space-lg);
}

/* === ABOUT PAGE === */

.about-page {
    padding: var(--space-xl) 0 var(--space-2xl);
}

.about-page__content {
    max-width: var(--container-narrow);
    margin: 0 auto;
    font-size: var(--text-lg);
    line-height: 1.8;
}

.about-page__content h2 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

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

.legal-page {
    padding: var(--space-xl) 0 var(--space-2xl);
}

.legal-page__content {
    max-width: var(--container-narrow);
    margin: 0 auto;
    line-height: 1.8;
}

.legal-page__content h2 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    font-size: var(--text-2xl);
}

.legal-page__content h3 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.legal-page__content p,
.legal-page__content ul {
    margin-bottom: var(--space-md);
}

.legal-page__content ul li {
    list-style: disc;
    margin-left: var(--space-lg);
    margin-bottom: var(--space-xs);
}

/* === RESPONSIVE === */

@media (max-width: 767px) {
    .author-page__header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ============================================================
   12 - FORMULAIRES
   ============================================================ */

.form {
    max-width: 600px;
    margin: 0 auto;
}

.form__group {
    margin-bottom: var(--space-lg);
}

.form__label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--secondary);
    font-size: var(--text-sm);
}

.form__input,
.form__textarea,
.form__select {
    width: 100%;
    padding: 12px var(--space-md);
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
    font-size: var(--text-base);
    color: var(--text-color);
    background: var(--white);
    transition: var(--transition-fast);
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 142, 35, 0.15);
}

.form__textarea {
    min-height: 150px;
    resize: vertical;
}

.form__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a4a4a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* === HONEYPOT === */

.form__hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* === MESSAGES === */

.form__message {
    padding: var(--space-md);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-lg);
    font-size: var(--text-sm);
}

.form__message--success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success);
}

.form__message--error {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid var(--error);
}

/* === CONTACT PAGE LAYOUT === */

.contact-page {
    padding: var(--space-xl) 0 var(--space-2xl);
}

.contact-page__intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.contact-page__intro h1 {
    margin-bottom: var(--space-md);
}

.contact-page__intro p {
    color: var(--text-light);
}

/* === CONFIRMATION PAGE === */

.confirmation-page {
    padding: var(--space-3xl) 0;
    text-align: center;
}

.confirmation-page__icon {
    width: 64px;
    height: 64px;
    color: var(--success);
    margin: 0 auto var(--space-lg);
}

.confirmation-page h1 {
    margin-bottom: var(--space-md);
}

.confirmation-page p {
    color: var(--text-light);
    margin-bottom: var(--space-lg);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* === FORM ERRORS === */

.form__input--error,
.form__textarea--error,
.form__select--error {
    border-color: var(--error);
}

.form__error-text {
    color: var(--error);
    font-size: var(--text-xs);
    margin-top: var(--space-xs);
}

/* ============================================================
   14 - UTILITIES
   ============================================================ */

/* === ANIMATIONS === */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* === TEXT === */

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--text-muted);
}

.text-light {
    color: var(--text-light);
}

.text-sm {
    font-size: var(--text-sm);
}

.text-xs {
    font-size: var(--text-xs);
}

/* === SPACING === */

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.pt-xl { padding-top: var(--space-xl); }
.pb-xl { padding-bottom: var(--space-xl); }

/* === DISPLAY === */

.hidden {
    display: none;
}

.block {
    display: block;
}

/* === TRUNCATE === */

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* === NO RESULTS === */

.no-results {
    text-align: center;
    padding: var(--space-3xl) var(--space-md);
    color: var(--text-light);
}

.no-results i {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.no-results h2 {
    color: var(--text-light);
    margin-bottom: var(--space-sm);
}

/* === 404 === */

.error-page {
    text-align: center;
    padding: var(--space-3xl) var(--space-md);
}

.error-page h1 {
    font-size: 6rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}
