/* L'Architecte Numérique — feuille de style de la section Articles.
   Reprend les variables et le chrome des pages existantes ; extraite dans un
   fichier partagé parce que quatre pages qui dupliquent 340 lignes de CSS
   divergent au premier correctif. Les pages historiques gardent leur style
   en ligne : rien à casser ici. */

:root {
    --navy-dark: #0a1628;
    --navy: #1B3A5F;
    --navy-light: #2a4a6f;
    --gold: #D4A84B;
    --gold-light: #e8c778;
    --gold-dark: #b8923f;
    --white: #FFFFFF;
    --gray-100: #f7f8fa;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 100%);
    color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 600; }
a { color: inherit; text-decoration: none; }

.container { max-width: 900px; margin: 0 auto; padding: 0 24px; }

/* Header */
header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 168, 75, 0.1);
}
.header-inner {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 24px; max-width: 1200px; margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 40px; width: auto; }
.nav-desktop { display: none; }
@media (min-width: 768px) { .nav-desktop { display: flex; gap: 32px; align-items: center; } }
.nav-desktop a { font-size: 14px; font-weight: 500; color: var(--gray-300); transition: color 0.3s; }
.nav-desktop a:hover, .nav-desktop a:focus { color: var(--gold); }
.nav-cta {
    background: var(--gold); color: var(--navy-dark) !important;
    padding: 10px 20px; border-radius: 6px; font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }

.nav-mobile-toggle {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
@media (min-width: 768px) { .nav-mobile-toggle { display: none; } }
.nav-mobile-toggle span { width: 24px; height: 2px; background: var(--white); transition: all 0.3s; }
.nav-mobile {
    display: none; position: fixed; top: 73px; left: 0; right: 0;
    background: var(--navy-dark); padding: 24px;
    border-bottom: 1px solid rgba(212, 168, 75, 0.1);
}
.nav-mobile.active { display: block; }
.nav-mobile a {
    display: block; padding: 12px 0; font-size: 16px; color: var(--gray-300);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-mobile a:last-child { border-bottom: none; }

/* Main */
main { padding: 140px 0 80px; }

.page-header { text-align: center; margin-bottom: 56px; }
.page-header h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.page-header .gold { color: var(--gold); }
.page-header p { color: var(--gray-400); font-size: 1.125rem; }

/* Fil d'Ariane */
.crumb { font-size: 0.875rem; color: var(--gray-500); margin-bottom: 24px; }
.crumb a { color: var(--gray-400); }
.crumb a:hover { color: var(--gold); }

/* En-tête d'article */
.article-head { margin-bottom: 40px; }
.article-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.2; margin-bottom: 20px; }
.article-standfirst { font-size: 1.25rem; color: var(--gray-300); line-height: 1.7; }
.article-meta {
    display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center;
    margin-top: 28px; padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.875rem; color: var(--gray-400);
}
.article-meta .author { color: var(--white); font-weight: 600; }

/* Corps d'article */
.prose { font-size: 1.0625rem; line-height: 1.85; color: var(--gray-300); }
.prose > p { margin: 22px 0; }
.prose h2 {
    font-size: 1.6rem; color: var(--white); margin: 56px 0 18px;
    scroll-margin-top: 100px;
}
.prose h3 {
    font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1.15rem;
    color: var(--gold); margin: 36px 0 12px; scroll-margin-top: 100px;
}
.prose strong { color: var(--white); }
.prose em { color: var(--gold-light); font-style: italic; }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--gold-light); }
.prose ul, .prose ol { margin: 22px 0; padding-left: 24px; }
.prose li { margin-bottom: 12px; }
.prose li::marker { color: var(--gold); }

/* Encadrés */
.callout {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-left: 3px solid var(--gold);
    border-radius: 12px; padding: 24px 28px; margin: 32px 0;
}
.callout.warn { border-left-color: #e0a458; }
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
.callout .callout-title { color: var(--white); font-weight: 600; display: block; margin-bottom: 8px; }

blockquote {
    border-left: 3px solid var(--gold);
    padding-left: 24px; margin: 36px 0;
    font-family: 'Playfair Display', serif; font-size: 1.35rem;
    color: var(--white); line-height: 1.5;
}
blockquote cite { display: block; margin-top: 10px; font-family: 'Inter', sans-serif; font-size: 0.875rem; color: var(--gray-500); font-style: normal; }

/* Tableaux : ils défilent dans leur propre boîte, jamais la page */
/* Une URL nue ne se coupe pas toute seule.
   La citation académique de modele-3-zones.html affiche son lien en toutes
   lettres — « https://larchitectenumerique.com/modele-3-zones.html », 409 px
   d'un seul tenant. Sans point de coupure, le mot poussait la page à 367 px
   de large sur un téléphone de 320 : le texte débordait, littéralement.

   `anywhere` plutôt que `break-word` : break-word ne casse un mot que s'il
   est seul sur sa ligne, ce qui ne suffit pas ici — le lien suit du texte.
   La règle vise les liens seuls ; la prose normale garde ses césures
   habituelles. */
a {
    overflow-wrap: anywhere;
}

.table-wrap {
    overflow-x: auto; margin: 32px 0;
    border: 1px solid rgba(255,255,255,0.08); border-radius: 12px;
}
table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.95rem; }
th {
    text-align: left; padding: 14px 18px; color: var(--gold);
    font-weight: 600; background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
td { padding: 14px 18px; color: var(--gray-300); border-bottom: 1px solid rgba(255,255,255,0.05); vertical-align: top; }
tr:last-child td { border-bottom: none; }

/* FAQ */
.faq-block { margin: 40px 0; }
.faq-block details {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px; padding: 20px 24px; margin-bottom: 12px;
}
.faq-block summary {
    cursor: pointer; list-style: none; font-weight: 600; color: var(--white);
}
.faq-block summary::-webkit-details-marker { display: none; }
.faq-block summary::before { content: "+ "; color: var(--gold); }
.faq-block details[open] summary::before { content: "− "; }
.faq-block details p { margin-top: 14px; color: var(--gray-300); }

/* Renvoi vers l'article technique */
.deep-dive {
    background: rgba(212, 168, 75, 0.07);
    border: 1px solid rgba(212, 168, 75, 0.25);
    border-radius: 16px; padding: 28px; margin: 48px 0 0;
}
.deep-dive h3 { margin-top: 0; }

/* Bandeau livre / diagnostic */
.cta-band {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; padding: 32px; margin-top: 48px; text-align: center;
}
.cta-band h2 { font-size: 1.5rem; margin: 0 0 12px; color: var(--white); }
.cta-band p { color: var(--gray-300); margin-bottom: 24px; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn {
    display: inline-block; padding: 12px 24px; border-radius: 6px;
    font-weight: 600; font-size: 0.95rem; transition: all 0.3s;
}
.btn-primary { background: var(--gold); color: var(--navy-dark); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-secondary { border: 1px solid rgba(255,255,255,0.2); color: var(--white); }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

/* Liste des articles */
.article-list { display: flex; flex-direction: column; gap: 24px; }
.article-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; padding: 32px; transition: all 0.3s;
}
.article-card:hover { border-color: rgba(212, 168, 75, 0.3); }
.article-card .kicker { font-size: 0.8125rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.05em; }
.article-card h2 { font-size: 1.4rem; margin: 12px 0; }
.article-card h2 a:hover { color: var(--gold); }
.article-card p { color: var(--gray-300); }
.article-card .read { display: inline-block; margin-top: 16px; color: var(--gold); font-weight: 500; }
.article-card .read:hover { color: var(--gold-light); }

.back-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--gold); font-weight: 500; margin-top: 48px; transition: color 0.3s;
}
.back-link:hover { color: var(--gold-light); }

/* Footer */
footer { background: var(--navy-dark); border-top: 1px solid rgba(255,255,255,0.08); padding: 32px 0; }
.footer-inner { display: flex; flex-direction: column; gap: 24px; align-items: center; text-align: center; }
@media (min-width: 1024px) {
    .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; gap: 32px; }
}
.footer-logo img { height: 32px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.footer-nav a { color: var(--gray-400); font-size: 0.875rem; transition: color 0.3s; }
.footer-nav a:hover { color: var(--gold); }
.footer-right { display: flex; align-items: center; gap: 24px; }
.footer-social a { color: var(--gray-400); transition: color 0.3s; }
.footer-social a:hover { color: var(--gold); }
.footer-legal { color: var(--gray-500); font-size: 0.8125rem; }
