/* =======================================================================
   PETIT COEUR PAYS DE SAVOIE — DESIGN SYSTEM V2
   Refonte institutionnelle, épurée et professionnelle.
   ======================================================================= */


/* ============================================
   1. DESIGN TOKENS (variables)
   ============================================ */
:root {
    /* --- Couleurs --- */
    --color-brand: #B74232;            /* rouge identitaire */
    --color-brand-dark: #8B2E22;       /* hover / emphasis */
    --color-brand-soft: #FCEEEB;       /* fond léger / surbrillance */

    --color-ink: #1B2A3D;              /* bleu nuit institutionnel */
    --color-ink-soft: #2B3A4D;

    --color-cream: #FAF7F2;            /* fond global, chaud */
    --color-surface: #FFFFFF;          /* cartes, formulaires */
    --color-border: #E4E0D7;           /* bordures neutres chaudes */
    --color-border-strong: #C9C3B5;

    --color-text: #1F2937;
    --color-text-muted: #525B66;
    --color-text-light: #8B8F95;
    --color-text-on-dark: rgba(255, 255, 255, 0.85);
    --color-text-on-dark-muted: rgba(255, 255, 255, 0.6);

    /* --- Typographie --- */
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    /* --- Espacements --- */
    --space-1: 0.25rem;   /* 4px  */
    --space-2: 0.5rem;    /* 8px  */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    --space-24: 6rem;     /* 96px */

    /* --- Bordures arrondies --- */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;

    /* --- Ombres --- */
    --shadow-sm: 0 1px 2px rgba(27, 42, 61, 0.05);
    --shadow-md: 0 4px 12px rgba(27, 42, 61, 0.07), 0 1px 3px rgba(27, 42, 61, 0.04);
    --shadow-lg: 0 12px 32px rgba(27, 42, 61, 0.12), 0 4px 8px rgba(27, 42, 61, 0.04);

    /* --- Layout --- */
    --container: 1200px;
    --container-narrow: 760px;

    /* --- Transitions --- */
    --t-fast: 0.15s ease;
    --t-base: 0.25s ease;
}


/* ============================================
   2. BASE & RESET (en complément du reset.css)
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

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

/* main.css n'est chargé qu'en mode preview, on peut donc utiliser
   des sélecteurs non-préfixés sans risque de fuite sur l'ancien design.
   Garder ces sélecteurs « faibles » permet aux classes (.btn, .nav, etc.)
   de gagner naturellement la cascade. */

body.v2 {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text);
    background-color: var(--color-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--color-ink);
    font-feature-settings: "ss01", "ss02"; /* stylistic alternates de Fraunces */
    margin: 0;
}

p {
    margin: 0 0 var(--space-4);
}
p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--color-brand);
    text-decoration: none;
    transition: color var(--t-fast);
}
a:hover {
    color: var(--color-brand-dark);
}

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

::selection {
    background: var(--color-brand);
    color: #fff;
}


/* ============================================
   3. LAYOUT
   ============================================ */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

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

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


/* ============================================
   4. PREVIEW BANNER
   ============================================ */
.preview-banner {
    background: var(--color-brand);
    color: white;
    text-align: center;
    font-size: 13px;
    padding: 8px var(--space-4);
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}
.preview-banner-exit {
    color: white;
    text-decoration: underline;
    font-weight: 400;
}
.preview-banner-exit:hover {
    color: white;
    opacity: 0.85;
}


/* ============================================
   5. UTILITY BAR (top stripe)
   ============================================ */
.utility-bar {
    background: var(--color-ink);
    color: var(--color-text-on-dark);
    font-size: 13px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.utility-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}
.utility-tagline {
    letter-spacing: 0.02em;
}
.utility-links {
    display: flex;
    gap: var(--space-6);
    flex-wrap: wrap;
}
.utility-links a {
    color: var(--color-text-on-dark);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}
.utility-links a:hover {
    color: white;
}
.utility-links i {
    font-size: 11px;
    opacity: 0.7;
}


/* ============================================
   6. HEADER & NAVIGATION
   ============================================ */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 50;
}
.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
    gap: var(--space-6);
}

/* Brand (logo + nom) */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--color-ink);
}
.brand:hover { color: var(--color-ink); }
.brand img {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}
.brand-name {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 19px;
    color: var(--color-ink);
}
.brand-tagline {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-muted);
    margin-top: 2px;
}
.brand-on-dark .brand-name { color: white; }
.brand-on-dark .brand-tagline { color: var(--color-text-on-dark-muted); }

/* Navigation */
.site-nav {
    display: flex;
    gap: 4px;
    margin: 0 auto;
}
.site-nav a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 15px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    transition: background var(--t-fast), color var(--t-fast);
    position: relative;
}
.site-nav a:hover {
    background: var(--color-cream);
    color: var(--color-ink);
}
.site-nav a.is-active {
    color: var(--color-brand);
}
.site-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 4px;
    height: 2px;
    background: var(--color-brand);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* Hamburger (mobile) */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-ink);
    transition: transform var(--t-base), opacity var(--t-base);
}


/* ============================================
   7. BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 15px;
    line-height: 1.2;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--t-fast);
    text-decoration: none;
    white-space: nowrap;
}
.btn-sm {
    padding: 8px 14px;
    font-size: 14px;
}
.btn i { font-size: 13px; }

.btn-primary {
    background: var(--color-brand);
    color: white;
}
.btn-primary:hover {
    background: var(--color-brand-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-ink);
    border-color: var(--color-border);
}
.btn-secondary:hover {
    border-color: var(--color-ink);
    background: var(--color-cream);
    color: var(--color-ink);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text);
    border-color: transparent;
}
.btn-ghost:hover {
    background: var(--color-cream);
    color: var(--color-ink);
}

.btn-outline-light {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.35);
}
.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: white;
    color: white;
}


/* ============================================
   8. HERO
   ============================================ */
.hero {
    padding: var(--space-24) 0 var(--space-20);
    background:
        radial-gradient(ellipse at top right, rgba(183, 66, 50, 0.06), transparent 60%),
        var(--color-cream);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: -200px;
    width: 600px;
    height: 600px;
    background-image: url('/logo.png');
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.03;
    pointer-events: none;
}

.hero-eyebrow {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-brand);
    margin-bottom: var(--space-5);
    position: relative;
}
.hero-eyebrow::before {
    content: "";
    display: inline-block;
    width: 32px;
    height: 1px;
    background: var(--color-brand);
    vertical-align: middle;
    margin-right: 12px;
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    line-height: 1.05;
    max-width: 900px;
    margin-bottom: var(--space-6);
    color: var(--color-ink);
    font-weight: 400;
}
.hero-title-accent {
    color: var(--color-brand);
    font-style: italic;
    font-weight: 400;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    max-width: 640px;
    color: var(--color-text-muted);
    margin-bottom: var(--space-10);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}


/* ============================================
   9. SECTIONS génériques
   ============================================ */
.section-header {
    margin-bottom: var(--space-12);
    max-width: 760px;
}
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    max-width: 100%;
    gap: var(--space-6);
    flex-wrap: wrap;
}

.section-eyebrow {
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-brand);
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.15;
    margin-bottom: var(--space-4);
    color: var(--color-ink);
    font-weight: 400;
}

.section-lead {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 640px;
    line-height: 1.6;
}

.section-link {
    font-weight: 500;
    font-size: 15px;
    color: var(--color-brand);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--t-fast);
}
.section-link:hover {
    gap: 10px;
    color: var(--color-brand-dark);
}


/* ============================================
   10. MISSION CARDS
   ============================================ */
.section-mission {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

.mission-card {
    padding: var(--space-8);
    background: var(--color-cream);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
    display: flex;
    flex-direction: column;
}
.mission-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-border-strong);
}

.mission-card-icon {
    width: 52px;
    height: 52px;
    background: var(--color-brand-soft);
    color: var(--color-brand);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-5);
    font-size: 22px;
}

.mission-card-title {
    font-size: 1.35rem;
    margin-bottom: var(--space-3);
    color: var(--color-ink);
}

.mission-card-text {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    flex: 1;
    margin-bottom: var(--space-4);
}

.mission-card-meta {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-light);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
}


/* ============================================
   11. NEWS CARDS
   ============================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.news-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--t-base), box-shadow var(--t-base);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.news-card-image {
    aspect-ratio: 16 / 10;
    background: var(--color-cream);
    overflow: hidden;
}
.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.news-card:hover .news-card-image img {
    transform: scale(1.04);
}

.news-card-body {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-meta {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: var(--space-3);
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.news-card-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-3);
    color: var(--color-ink);
    line-height: 1.25;
}

.news-card-summary {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--space-4);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-brand);
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--t-fast);
}
.news-card:hover .news-card-link {
    gap: 10px;
}

.empty-state {
    text-align: center;
    color: var(--color-text-muted);
    padding: var(--space-12);
}


/* ============================================
   12. CTA BAND (avant footer)
   ============================================ */
.cta-band {
    background: var(--color-ink);
    color: white;
    padding: var(--space-20) 0;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at bottom right, rgba(183, 66, 50, 0.18), transparent 50%);
    pointer-events: none;
}
.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-12);
    flex-wrap: wrap;
    position: relative;
}
.cta-text {
    max-width: 600px;
}
.cta-band .section-eyebrow { color: rgba(255, 255, 255, 0.7); }
.cta-band .section-title { color: white; }
.cta-lead {
    color: var(--color-text-on-dark);
    font-size: 1.05rem;
    margin: 0;
}
.cta-actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}


/* ============================================
   13. FOOTER
   ============================================ */
.site-footer {
    background: var(--color-ink);
    color: var(--color-text-on-dark);
    padding: var(--space-16) 0 var(--space-6);
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
    gap: var(--space-10);
    margin-bottom: var(--space-12);
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: white;
    margin-bottom: var(--space-4);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col li {
    margin-bottom: var(--space-3);
    color: var(--color-text-on-dark);
    line-height: 1.5;
}
.footer-col a {
    color: var(--color-text-on-dark);
    transition: color var(--t-fast);
}
.footer-col a:hover {
    color: white;
}

.footer-brand p {
    color: var(--color-text-on-dark-muted);
    font-size: 14px;
    margin-top: var(--space-4);
    max-width: 320px;
    line-height: 1.65;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-3);
    font-size: 13px;
    color: var(--color-text-on-dark-muted);
}
.footer-legal-links {
    display: inline-flex;
    gap: var(--space-3);
    align-items: center;
}


/* ============================================
   14. RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }
}

@media (max-width: 768px) {
    .section { padding: var(--space-16) 0; }
    .hero { padding: var(--space-16) 0 var(--space-12); }

    .utility-bar {
        font-size: 12px;
    }
    .utility-tagline { display: none; }
    .utility-links {
        margin: 0 auto;
        gap: var(--space-3);
    }

    .site-header-inner {
        gap: var(--space-3);
    }
    .site-nav {
        display: none;
    }
    .nav-toggle {
        display: inline-flex;
    }
    .header-actions .btn-ghost {
        display: none;
    }
    .brand-tagline { display: none; }

    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-4);
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-actions { width: 100%; }
    .hero-actions .btn { flex: 1; }
}


/* ============================================
   15. ANIMATIONS d'entrée (au chargement)
   ============================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow,
.hero-title,
.hero-subtitle,
.hero-actions {
    animation: fadeUp 0.7s ease both;
}
.hero-title { animation-delay: 0.05s; }
.hero-subtitle { animation-delay: 0.15s; }
.hero-actions { animation-delay: 0.25s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* =======================================================================
   16. PAGE HERO (variante plus compacte que le hero d'accueil)
   ======================================================================= */
.page-hero {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-16) 0 var(--space-12);
    position: relative;
}
.page-hero-eyebrow {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-brand);
    font-weight: 600;
    margin-bottom: var(--space-3);
}
.page-hero-eyebrow::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--color-brand);
    vertical-align: middle;
    margin-right: 10px;
}
.page-hero-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.1;
    margin-bottom: var(--space-4);
    color: var(--color-ink);
    font-weight: 400;
}
.page-hero-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 640px;
    line-height: 1.65;
    margin: 0;
}


/* =======================================================================
   17. EDITORIAL (charte, mentions légales, pages textuelles)
   ======================================================================= */
.editorial {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: var(--space-16) 0;
}
.editorial-intro {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    padding-bottom: var(--space-8);
    margin-bottom: var(--space-8);
    border-bottom: 1px solid var(--color-border);
}
.editorial > h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin-top: var(--space-12);
    margin-bottom: var(--space-4);
    line-height: 1.2;
    color: var(--color-ink);
}
.editorial > h2:first-child { margin-top: 0; }

.editorial-article {
    margin-top: var(--space-10);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
}
.editorial-article:first-of-type {
    border-top: none;
    padding-top: 0;
}
.editorial-article-num {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-brand);
    font-weight: 600;
    margin-bottom: var(--space-2);
    display: block;
}
.editorial-article-title {
    font-size: 1.4rem;
    margin-bottom: var(--space-4);
    color: var(--color-ink);
    line-height: 1.25;
    font-family: var(--font-display);
    font-weight: 500;
}

.editorial p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--color-text);
    margin-bottom: var(--space-4);
}
.editorial ul {
    list-style: none;
    padding: 0;
    margin: var(--space-4) 0 var(--space-6);
}
.editorial ul li {
    position: relative;
    padding-left: var(--space-6);
    margin-bottom: var(--space-3);
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--color-text);
}
.editorial ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 12px;
    height: 1px;
    background: var(--color-brand);
}
.editorial .bold,
.editorial strong {
    font-weight: 600;
    color: var(--color-ink);
}
.editorial .italic,
.editorial em {
    font-style: italic;
}

.editorial-footer {
    margin-top: var(--space-12);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
    font-style: italic;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    text-align: center;
}


/* =======================================================================
   18. CONTACT
   ======================================================================= */
.contact-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-10);
    align-items: start;
}

.bureau-grid {
    display: grid;
    gap: var(--space-4);
}
.bureau-member {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    display: flex;
    gap: var(--space-5);
    transition: box-shadow var(--t-base), border-color var(--t-base);
    align-items: flex-start;
}
.bureau-member:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-border-strong);
}
.bureau-avatar {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background: var(--color-brand-soft);
    color: var(--color-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 20px;
}
.bureau-info {
    flex: 1;
    min-width: 0;
}
.bureau-info h3 {
    font-size: 1.15rem;
    margin: 0 0 var(--space-1);
    font-family: var(--font-display);
}
.bureau-role {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-brand);
    font-weight: 600;
    margin-bottom: var(--space-3);
    display: block;
}
.bureau-contact {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
}
.bureau-contact div {
    margin-bottom: var(--space-1);
    display: flex;
    align-items: center;
    gap: 8px;
}
.bureau-contact i {
    color: var(--color-text-light);
    font-size: 12px;
    width: 14px;
    text-align: center;
}
.bureau-contact a {
    color: var(--color-text);
}
.bureau-contact a:hover {
    color: var(--color-brand);
}

.contact-side {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}
.contact-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
}
.contact-card-title {
    font-size: 1.15rem;
    margin-bottom: var(--space-4);
    color: var(--color-ink);
}
.contact-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.contact-card-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: var(--space-3) 0;
    border-top: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 0.95rem;
}
.contact-card-list li:first-child {
    border-top: none;
    padding-top: 0;
}
.contact-card-list li:last-child {
    padding-bottom: 0;
}
.contact-card-list i {
    color: var(--color-brand);
    width: 18px;
    text-align: center;
}

#map {
    width: 100%;
    height: 280px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-cream);
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}


/* =======================================================================
   19. PRINT-ONLY HEADER (utilisé sur charte, masqué à l'écran)
   ======================================================================= */
.print-header {
    display: none;
}


/* =======================================================================
   20. FORMS (login, register, profile, comments)
   ======================================================================= */
.form-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    margin-bottom: var(--space-6);
}
.form-card-title {
    font-size: 1.35rem;
    margin-bottom: var(--space-6);
    color: var(--color-ink);
}
.form-card-danger {
    border-color: rgba(183, 66, 50, 0.25);
    background: #FFF8F6;
}
.form-card-footer {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
}
.form-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}
.form-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.form-field label {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: 0.01em;
}
.form-field input,
.form-field textarea {
    font-family: var(--font-body);
    font-size: 15px;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: var(--color-text);
    width: 100%;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    line-height: 1.4;
}
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--color-brand);
    box-shadow: 0 0 0 3px rgba(183, 66, 50, 0.12);
}
.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--color-text-light);
}
.form-field textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
    font-family: var(--font-body);
}
.form-help {
    font-size: 13px;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.55;
}
.form-divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: var(--space-6) 0;
}
.btn-block {
    width: 100%;
    padding: 14px;
}
.btn-danger {
    background: #C53030;
    color: white;
    border-color: #C53030;
}
.btn-danger:hover {
    background: #9B2424;
    color: white;
    border-color: #9B2424;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}


/* =======================================================================
   21. ARTICLE (vue d'un article)
   ======================================================================= */
.article-page {
    padding: var(--space-16) 0 var(--space-12);
}
.article-header {
    margin-bottom: var(--space-8);
}
.article-meta {
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-brand);
    font-weight: 600;
    margin-bottom: var(--space-4);
}
.article-meta::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--color-brand);
    vertical-align: middle;
    margin-right: 10px;
}
.article-title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    margin-bottom: var(--space-5);
    color: var(--color-ink);
    font-weight: 400;
}
.article-lead {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    line-height: 1.55;
    font-family: var(--font-display);
    font-style: italic;
}
.article-image {
    margin: var(--space-8) calc(-1 * var(--space-8)) var(--space-10);
}
.article-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.article-content {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--color-text);
}
.article-content > p,
.article-content > ul,
.article-content > ol,
.article-content > blockquote {
    margin-bottom: var(--space-4);
}
.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: var(--space-8);
    margin-bottom: var(--space-3);
    line-height: 1.2;
}
.article-content h2 { font-size: 1.6rem; }
.article-content h3 { font-size: 1.3rem; }
.article-content ul,
.article-content ol {
    padding-left: var(--space-6);
}
.article-content li {
    margin-bottom: var(--space-2);
}
.article-content a {
    color: var(--color-brand);
    text-decoration: underline;
    text-decoration-color: rgba(183, 66, 50, 0.4);
    text-underline-offset: 3px;
}
.article-content a:hover {
    text-decoration-color: var(--color-brand);
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: var(--space-5) 0;
}
.article-content blockquote {
    border-left: 3px solid var(--color-brand);
    padding-left: var(--space-5);
    margin: var(--space-6) 0;
    font-style: italic;
    color: var(--color-text-muted);
}


/* =======================================================================
   22. COMMENTS
   ======================================================================= */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}
.comment {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5) var(--space-6);
}
.comment-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}
.comment-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: var(--color-brand-soft);
    color: var(--color-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 16px;
}
.comment-author {
    font-weight: 600;
    color: var(--color-ink);
    margin: 0;
    font-size: 0.95rem;
}
.comment-date {
    font-size: 12px;
    color: var(--color-text-light);
    margin: 0;
}
.comment-meta {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: var(--space-2);
    line-height: 1.5;
}
.comment-body {
    color: var(--color-text);
    line-height: 1.65;
    margin: 0;
    white-space: pre-wrap;
}
.login-prompt {
    text-align: center;
    color: var(--color-text-muted);
    padding: var(--space-8);
    background: var(--color-surface);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-lg);
    margin-top: var(--space-8);
}


/* =======================================================================
   23. PRINT — optimisations pour Ctrl+P
   ======================================================================= */
@media print {
    @page {
        size: A4;
        margin: 2cm 1.8cm;
    }

    body.v2 {
        background: white;
        color: black;
        font-family: 'IBM Plex Sans', Georgia, serif;
        font-size: 11pt;
        line-height: 1.55;
        -webkit-print-color-adjust: economy;
        print-color-adjust: economy;
    }

    /* On masque tout le chrome du site */
    .preview-banner,
    .utility-bar,
    .site-header,
    .site-footer,
    .cta-band,
    .nav-toggle,
    .header-actions {
        display: none !important;
    }

    /* Les liens ne doivent pas être colorés ni soulignés à l'impression */
    a {
        color: inherit;
        text-decoration: none;
    }
    /* Sauf dans le contenu d'un article : on garde l'info */
    .article-content a::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #777;
    }

    h1, h2, h3, h4 {
        page-break-after: avoid;
        break-after: avoid;
        color: black;
    }

    img {
        page-break-inside: avoid;
        break-inside: avoid;
        max-width: 100%;
    }

    .container,
    .container-narrow {
        max-width: 100%;
        padding: 0;
    }

    /* Le hero coloré est inutile imprimé : on cache et on remplace par le print-header */
    .page-hero,
    .hero {
        display: none;
    }

    /* En-tête d'impression : visible UNIQUEMENT à l'impression */
    .print-header {
        display: flex !important;
        align-items: center;
        gap: 14px;
        margin-bottom: 0.8cm;
        padding-bottom: 0.4cm;
        border-bottom: 1pt solid #B74232;
    }
    .print-header img {
        width: 1.6cm;
        height: 1.6cm;
        flex-shrink: 0;
    }
    .print-header-text {
        line-height: 1.2;
    }
    .print-header-title {
        font-family: 'Fraunces', Georgia, serif;
        font-size: 15pt;
        font-weight: 500;
        color: black;
    }
    .print-header-subtitle {
        font-size: 9pt;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: #666;
        margin-top: 3pt;
    }

    /* === Éditorial (charte) === */
    .editorial {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    .editorial-intro {
        font-size: 10.5pt;
        padding-bottom: 0.4cm;
        margin-bottom: 0.5cm;
        border-bottom: 0.5pt solid #999;
        color: #333;
        font-style: italic;
    }
    .editorial-article {
        margin-top: 0.4cm;
        padding-top: 0.3cm;
        border-top: 0.25pt solid #BBB;
        page-break-inside: avoid;
        break-inside: avoid;
    }
    .editorial-article:first-of-type {
        border-top: none;
        padding-top: 0;
        margin-top: 0;
    }
    .editorial-article-num {
        font-size: 8pt;
        color: #B74232;
        font-weight: 600;
        letter-spacing: 0.14em;
        margin-bottom: 0.1cm;
        display: block;
    }
    .editorial-article-title {
        font-size: 12.5pt;
        font-family: 'Fraunces', Georgia, serif;
        color: black;
        margin-bottom: 0.2cm;
        font-weight: 500;
    }
    .editorial p {
        font-size: 10.5pt;
        line-height: 1.55;
        margin-bottom: 0.25cm;
        color: black;
    }
    .editorial ul {
        margin: 0.2cm 0 0.3cm;
    }
    .editorial ul li {
        font-size: 10pt;
        margin-bottom: 0.18cm;
        padding-left: 0.5cm;
        color: black;
    }
    .editorial ul li::before {
        background: #B74232;
        top: 0.55em;
        width: 10px;
    }
    .editorial .bold,
    .editorial strong {
        color: black;
        font-weight: 600;
    }
    .editorial-footer {
        margin-top: 0.8cm;
        padding-top: 0.3cm;
        font-size: 8.5pt;
        color: #555;
        border-top: 0.5pt solid #999;
        text-align: center;
        font-style: italic;
    }

    /* === Pour un article imprimé === */
    .article-page {
        padding: 0;
    }
    .article-title {
        font-size: 18pt;
        margin-bottom: 0.3cm;
    }
    .article-lead {
        font-size: 11pt;
        margin-bottom: 0.5cm;
    }
    .article-image {
        margin: 0.5cm 0;
    }
    .article-image img {
        max-height: 8cm;
        object-fit: cover;
        page-break-inside: avoid;
    }
    .article-content {
        font-size: 10.5pt;
        color: black;
    }

    /* Les sections de commentaires ne s'impriment pas (rarement utile en papier) */
    #comments,
    .section + .section,
    .login-prompt {
        display: none;
    }
}


/* =======================================================================
   24. MOBILE NAV (état ouvert) + animation hamburger
   ======================================================================= */
@media (max-width: 768px) {
    .site-nav.is-open {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-surface);
        padding: var(--space-3);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        gap: 2px;
        margin: 0;
        z-index: 49;
    }
    .site-nav.is-open a {
        padding: 14px var(--space-4);
        border-radius: var(--radius-md);
        font-size: 16px;
        text-align: left;
        width: 100%;
    }
    .site-nav.is-open a.is-active::after {
        display: none; /* le soulignement n'est pas pertinent en menu vertical */
    }
    .site-nav.is-open a.is-active {
        background: var(--color-brand-soft);
        color: var(--color-brand);
    }
    body.nav-open {
        overflow: hidden; /* éviter le scroll quand menu mobile ouvert */
    }
}

/* === Hamburger animation === */
.nav-toggle.is-active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}