/* ============================================================
   BRAVE PATRIE — Main Stylesheet
   Redesigned 2026
   ============================================================ */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: "Lora", Georgia, "Times New Roman", serif;
    font-size: 16px;
    color: #1a1a1a;
    background: #fff;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* === LAYOUT === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === TRICOLORE STRIPE === */
.tricolore {
    height: 4px;
    background: linear-gradient(to right, #002395 33.33%, #fff 33.33%, #fff 66.66%, #ED2939 66.66%);
}

/* === TOP BAR === */
.topbar {
    background: #f8f6f2;
    border-bottom: 1px solid #e0dcd4;
    padding: 6px 0;
    font-size: 0.8rem;
    color: #666;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar a { color: #666; }
.topbar a:hover { color: #c03; }

/* === HEADER === */
.header {
    background: linear-gradient(to bottom, #14264d 0%, #14264d 70%, #3a7ca5 100%);
    padding: 0;
    text-align: center;
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    gap: 1.5rem;
}
.header-logo {
    height: 65px;
    overflow: hidden;
}
.header-logo img {
    height: 95px;
    width: auto;
}
.header-logo a { display: block; }
.header-text { text-align: left; }
.header h1 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1;
}
.header h1 a { color: #fff; }
.header .tagline {
    font-family: "Lora", Georgia, serif;
    font-style: italic;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    margin-top: 0.3rem;
}

/* === NAV === */
.nav {
    background: #8b0d1a;
    padding: 0;
}
.nav .container {
    display: flex;
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.nav .container::-webkit-scrollbar { display: none; }
.nav ul {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0;
}
.nav li a {
    display: block;
    padding: 0.5rem 0.55rem;
    color: #fff;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background 0.2s;
}
.nav li a:hover,
.nav li a.active {
    background: rgba(255,255,255,0.15);
}
.nav .search-form {
    margin-left: auto;
    display: flex;
    align-items: center;
}
.nav .search-form input[type="text"],
.nav .search-form input[type="search"] {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.35rem 0.7rem;
    color: #fff;
    font-family: "Lora", Georgia, serif;
    font-size: 0.8rem;
    border-radius: 2px;
    width: 120px;
}
.nav .search-form input::placeholder { color: rgba(255,255,255,0.5); }
.nav .search-form input[type="submit"] {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.35rem 0.7rem;
    color: #fff;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border-radius: 2px;
    margin-left: 0.3rem;
}

/* === SECTION HEADER === */
.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0 1.2rem;
}
.section-header h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #8b0d1a;
    white-space: nowrap;
}
.section-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0dcd4;
}

/* === CATEGORY LABEL === */
.category {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #8b0d1a;
    margin-bottom: 0.3rem;
}

/* ============================================================
   LANDING PAGE (sommaire.html)
   ============================================================ */

/* === HERO SECTION === */
.hero {
    padding: 2rem 0;
    border-bottom: 1px solid #e0dcd4;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 2rem;
}
.hero-main .category { margin-bottom: 0.5rem; }
.hero-main h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 0.8rem;
    color: #1a1a1a;
}
.hero-main h2 a:hover { color: #8b0d1a; }
.hero-image {
    width: 100%;
    height: 320px;
    background: #ddd;
    margin-bottom: 1rem;
    overflow: hidden;
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-main .excerpt {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #333;
}
.hero-main .meta {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.8rem;
}

/* Hero sidebar */
.hero-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-left: 1px solid #e0dcd4;
    padding-left: 2rem;
}
.hero-side-item h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.4rem;
}
.hero-side-item h3 a:hover { color: #8b0d1a; }
.hero-side-item .category {
    font-size: 0.7rem;
    margin-bottom: 0.3rem;
}
.hero-side-item .excerpt {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
}
.hero-side-item + .hero-side-item {
    padding-top: 1.5rem;
    border-top: 1px solid #e0dcd4;
}

/* === EDITHROAT (Bravepedie + Recherche) === */
.edithroat {
    padding: 1.2rem 0;
    border-bottom: 1px solid #e0dcd4;
}
.edithroat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}
.edithroat-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.edithroat-card .card-img {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
}
.edithroat-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.edithroat-card .card-info h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8b0d1a;
    margin-bottom: 0.2rem;
}
.edithroat-card .card-caption {
    font-size: 0.82rem;
    color: #444;
}
.edithroat-card .card-caption a { color: #8b0d1a; }

/* === L'ACTU EN IMAGES === */
.actu-images {
    padding: 2rem 0;
    border-bottom: 1px solid #e0dcd4;
}
.actu-images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
}
.actu-images-card {
    position: relative;
    overflow: hidden;
    background: #111;
}
.actu-images-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    opacity: 0.9;
    transition: opacity 0.3s;
}
.actu-images-card:hover img { opacity: 1; }
.actu-images-card .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 1rem 0.8rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    color: #fff;
}
.actu-images-card .caption p {
    font-size: 0.88rem;
    line-height: 1.4;
    margin-bottom: 0.3rem;
}
.actu-images-card .caption .propose {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    font-style: italic;
}
.actu-images-card .caption .propose:hover { color: #fff; }

/* === ARTICLE GRID (La vie des idees) === */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0dcd4;
}
.article-card .card-image {
    width: 100%;
    height: 140px;
    background: #e8e4dc;
    margin-bottom: 0.8rem;
    overflow: hidden;
}
.article-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-card h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}
.article-card h3 a:hover { color: #8b0d1a; }
.article-card .excerpt {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #555;
}
.article-card .meta {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.5rem;
}

/* === SENAT BANNER === */
.senat-banner {
    padding: 2rem 0;
    border-bottom: 1px solid #e0dcd4;
}
.senat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}
.senat-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.senat-text h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.8rem;
}
.senat-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
}

/* === BOTTOM GRID (editorial + reactions) === */
.bottom-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid #e0dcd4;
}

/* Editorial list */
.editorial-list .item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid #e0dcd4;
}
.editorial-list .item:first-child { padding-top: 0; }
.editorial-list .item-image {
    width: 120px;
    height: 80px;
    background: #e8e4dc;
    overflow: hidden;
}
.editorial-list .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.editorial-list .item h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}
.editorial-list .item h3 a:hover { color: #8b0d1a; }
.editorial-list .item .meta {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.3rem;
}

/* === SIDEBAR BLOCK (shared) === */
.sidebar-block {
    margin-bottom: 2rem;
}
.sidebar-block h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #8b0d1a;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #8b0d1a;
}

/* Reactions */
.reaction {
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0ece4;
    font-size: 0.88rem;
    line-height: 1.5;
}
.reaction:last-child { border-bottom: none; }
.reaction .author {
    font-weight: 700;
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.3rem;
}
.reaction .author a { color: #8b0d1a; }
.reaction blockquote {
    font-style: italic;
    color: #444;
}

/* === BOTTOM TRIPTYCH === */
.bottom-triptych {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    padding: 2rem 0;
}
.triptych-block h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #8b0d1a;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #8b0d1a;
}
.triptych-block {
    text-align: center;
    background: #f8f6f2;
    padding: 1rem 1.2rem;
}
.triptych-block img {
    max-width: 130px;
    height: auto;
    margin-bottom: 0.5rem;
}
.triptych-block p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #555;
}

/* ============================================================
   ARTICLE PAGE (article.html)
   ============================================================ */

/* === BREADCRUMB === */
.breadcrumb {
    padding: 0.8rem 0;
    border-bottom: 1px solid #e0dcd4;
    font-size: 0.8rem;
    color: #888;
}
.breadcrumb a { color: #8b0d1a; }
.breadcrumb a:hover { color: #c03; }
.breadcrumb .sep { margin: 0 0.4rem; color: #ccc; }
.breadcrumb .tags {
    display: inline;
    margin-left: 0.5rem;
    padding-left: 0.5rem;
    border-left: 1px solid #ddd;
}
.breadcrumb .tags a {
    background: #f0ece4;
    padding: 0.15rem 0.5rem;
    border-radius: 2px;
    font-size: 0.75rem;
    color: #666;
    margin-right: 0.3rem;
}

/* === ARTICLE LAYOUT === */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    padding: 2rem 0;
}

/* === ARTICLE CONTENT === */
.article-content .category { margin-bottom: 0.5rem; }
.article-content h1 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0dcd4;
    margin-bottom: 1.5rem;
}
.article-meta .author-date {
    font-size: 0.88rem;
    color: #666;
}
.article-meta .author-date .author,
.article-meta .author-date a {
    font-weight: 700;
    color: #1a1a1a;
}
.article-meta .share-icons {
    display: flex;
    gap: 0.5rem;
}
.article-meta .share-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f0ece4;
    border-radius: 50%;
    transition: background 0.2s;
    overflow: hidden;
}
.article-meta .share-icons a:hover { background: #8b0d1a; }
.article-meta .share-icons a img {
    width: 20px;
    height: 20px;
}

.article-chapo {
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid #8b0d1a;
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #333;
}
.article-body p { margin-bottom: 1.2rem; }
.article-body blockquote,
.article-body .spip_poesie {
    font-style: italic;
    color: #555;
    margin: 1.5rem 0;
    padding: 0.8rem 1.2rem;
    border-left: 3px solid #e0dcd4;
    background: #faf8f5;
}
.article-body .spip_documents,
.article-body .article-figure {
    margin: 1.5rem 0;
}
.article-body .spip_documents img,
.article-body .article-figure img {
    max-width: 100%;
    height: auto;
    display: block;
}
.article-body .spip_doc_inner {
    display: table;
}
.article-body .spip_doc_legende {
    display: table-caption;
    caption-side: bottom;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    font-style: italic;
    padding-top: 0.6rem;
}
.article-body .spip_doc_titre {
    font-size: 0.95rem;
    font-style: normal;
    color: #333;
}
.article-body .spip_doc_descriptif {
    font-size: 0.92rem;
    color: #555;
    font-style: italic;
    line-height: 1.5;
}
.article-body a { color: #8b0d1a; }
.article-body a:hover { color: #c03; }

/* SPIP image classes — high specificity to override SPIP defaults */
.article-body .spip_documents.spip_documents_center,
.article-body .spip_document.spip_documents_center { text-align: center; margin: 2.5rem auto; display: table; }
.article-body .spip_documents.spip_documents_left,
.article-body .spip_document.spip_document_left { float: left; margin: 1rem 2.5rem 2rem 0; }
.article-body .spip_documents.spip_documents_right,
.article-body .spip_document.spip_document_right { float: right; margin: 1rem 0 2rem 2.5rem; }

/* Notes */
.article-notes,
.notes {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0dcd4;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
}
.article-notes h3,
.notes h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

/* PS */
.ps {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e0dcd4;
}
.ps h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

/* Share CTA */
.share-cta {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f6f2;
    text-align: center;
    border: 1px solid #e0dcd4;
}
.share-cta p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.8rem;
}
.share-cta .share-buttons {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
}
.share-cta .share-buttons a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: #f0ece4;
    border-radius: 3px;
    transition: background 0.2s;
}
.share-cta .share-buttons a:hover { background: #e0dcd4; }
.share-cta .share-buttons a img {
    width: 28px;
    height: 28px;
}

/* === COMMENTS === */
.comments {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #8b0d1a;
}
.comments h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}
.comments .comments-subtitle {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1.5rem;
}
.comments .comments-subtitle a {
    color: #8b0d1a;
    font-weight: 600;
}
.comment-item {
    padding: 1rem 0;
    border-bottom: 1px solid #f0ece4;
}
.comment-item:last-child { border-bottom: none; }
.comment-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}
.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0dcd4;
    overflow: hidden;
}
.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.comment-author {
    font-weight: 700;
    font-size: 0.88rem;
}
.comment-date {
    font-size: 0.75rem;
    color: #999;
}
.comment-text {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #444;
    padding-left: 2.7rem;
}

/* === ARTICLE SIDEBAR === */
.article-sidebar .sidebar-article-img img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

/* Related articles */
.related-item {
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0ece4;
}
.related-item:last-child { border-bottom: none; }
.related-item h4 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0.15rem;
}
.related-item h4 a:hover { color: #8b0d1a; }
.related-item .meta {
    font-size: 0.72rem;
    color: #999;
    margin-top: 0.2rem;
}

/* Sidebar reaction */
.sidebar-reaction {
    padding: 0.8rem 0;
    font-size: 0.88rem;
}
.sidebar-reaction blockquote {
    font-style: italic;
    color: #444;
    line-height: 1.5;
    margin-bottom: 0.3rem;
}
.sidebar-reaction .author {
    font-size: 0.78rem;
    font-weight: 700;
    color: #666;
}

/* Tag cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.tag-cloud a {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: #f0ece4;
    font-size: 0.75rem;
    color: #555;
    border-radius: 2px;
    transition: background 0.2s;
}
.tag-cloud a:hover {
    background: #8b0d1a;
    color: #fff;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 2.5rem 0;
    margin-top: 2rem;
    font-size: 0.85rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}
.footer h4 {
    font-family: "Playfair Display", Georgia, serif;
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}
.footer ul { list-style: none; }
.footer li { padding: 0.2rem 0; }
.footer a { color: #aaa; }
.footer a:hover { color: #fff; }
.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
    text-align: center;
    color: #666;
    font-size: 0.8rem;
}

/* ============================================================
   UTILITIES & LEGACY COMPAT
   ============================================================ */
.ghost { clear: both; }
.invisible { position: absolute; overflow: hidden; clip: rect(0,0,0,0); height: 1px; width: 1px; margin: -1px; padding: 0; border: 0; }

/* ICJ (L'actu en images) inside articles */
#icj {
    margin: 1.5rem auto;
    max-width: 500px;
    text-align: center;
}
#icj img { max-width: 100%; height: auto; }
.legende {
    font-size: 0.95rem;
    color: #555;
    font-style: italic;
    margin-top: 0.8rem;
    line-height: 1.5;
}

/* === SPIP SEARCH FORM IN NAV === */
.nav .search-form .formulaire_spip { margin: 0; padding: 0; }
.nav .search-form .formulaire_recherche form > div { display: flex; align-items: center; gap: 0.3rem; }
.nav .search-form .formulaire_recherche > a { display: none; }
.nav .search-form label { display: none; }

/* === SURTITRE & SOUSTITRE === */
.surtitre {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #8b0d1a;
    margin-bottom: 0.3rem;
}
.soustitre {
    font-family: "Lora", Georgia, serif;
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    margin-bottom: 1rem;
}

/* === FORUM STYLING === */
ul.forum { list-style: none; padding: 0; margin: 0; }
.forum-fil { padding: 1rem 0; border-bottom: 1px solid #f0ece4; }
.forum-fil:last-child { border-bottom: none; }
.forum-message { position: relative; padding-left: 2.8rem; min-height: 2.5rem; }
.forum-message .logo_article {
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
}
.forum-message .logo_article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.forum-chapo .forum-auteur {
    font-size: 0.75rem;
    color: #999;
}
.forum-chapo .forum-titre {
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 0.3rem;
}
.forum-chapo .forum-titre a { color: #1a1a1a; }
.forum-chapo .forum-titre a:hover { color: #8b0d1a; }
.forum-texte {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #444;
}
.forum-texte .forum-lien { font-size: 0.82rem; margin-top: 0.5rem; }
.forum-texte .forum-repondre-message { font-size: 0.82rem; margin-top: 0.3rem; }
.forum-texte .forum-repondre-message a { color: #8b0d1a; }
.forum-decompte {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 0.85rem;
    color: #666;
    margin: 1rem 0;
}
.forum-repondre { margin-bottom: 1rem; }
.forum-repondre h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.3rem;
}

/* Forum nested replies */
.forum-fil ul { list-style: none; padding-left: 2rem; margin-top: 0.5rem; }
.forum-fil ul li { padding: 0.8rem 0; border-top: 1px solid #f0ece4; }

/* === NUAGE (tag cloud from SPIP model) === */
.nuage {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.nuage li {
    display: inline;
}
.nuage .frequence {
    display: none;
}
.nuage a {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: #f0ece4;
    color: #555 !important;
    border-radius: 2px;
    transition: background 0.2s;
    font-size: 0.75rem !important;
}
.nuage a:hover {
    background: #8b0d1a;
    color: #fff !important;
}

/* ============================================================
   PAGE LIST / PAGINATION (rubrique, mot, recherche, auteur)
   ============================================================ */

/* Generic article list for section/tag/search pages */
.page-list {
    list-style: none;
    padding: 0;
}
.page-list > li {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1.2rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid #e0dcd4;
}
.page-list > li:first-child { padding-top: 0; }
.page-list > li:last-child { border-bottom: none; }
.page-list > li > div:only-child { grid-column: 1 / -1; }
.page-list .list-image {
    width: 160px;
    height: 105px;
    background: #e8e4dc;
    overflow: hidden;
}
.page-list .list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.page-list h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.3rem;
}
.page-list h3 a:hover { color: #8b0d1a; }
.page-list .meta {
    font-size: 0.78rem;
    color: #999;
    margin-bottom: 0.3rem;
}
.page-list .excerpt {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #555;
}
.page-list .read-more {
    display: inline-block;
    margin-top: 0.3rem;
    font-size: 0.82rem;
    color: #8b0d1a;
    font-weight: 600;
}

/* Compact list (no images) for search, plan, etc. */
.page-list--compact > li {
    display: block;
    padding: 0.8rem 0;
}

/* Featured article at top of rubrique page */
.featured-article {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e0dcd4;
    margin-bottom: 1rem;
}
.featured-article h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}
.featured-article h2 a:hover { color: #8b0d1a; }
.featured-article .featured-image {
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    margin-bottom: 1rem;
}
.featured-article .featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.featured-article .excerpt {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
}
.featured-article .meta {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.5rem;
}
.featured-article .read-more {
    display: inline-block;
    margin-top: 0.5rem;
    color: #8b0d1a;
    font-weight: 600;
    font-size: 0.88rem;
}

/* SPIP Pagination */
.pagination {
    margin: 1.5rem 0;
    font-size: 0.85rem;
    color: #888;
}
.pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}
.pagination li {
    display: inline-block;
}
.pagination a,
.pagination strong,
.pagination li > span {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    margin: 0;
    border-radius: 2px;
}
.pagination a {
    color: #8b0d1a;
    background: #f0ece4;
    transition: background 0.2s;
    text-decoration: none;
}
.pagination a:hover {
    background: #8b0d1a;
    color: #fff;
}
.pagination strong,
.pagination .pagination-item.on .pagination-item-label {
    background: #8b0d1a;
    color: #fff;
    font-weight: 700;
}

/* Page title (shared across rubrique, mot, auteur, etc.) */
.page-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

/* Page description text */
.page-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 1.5rem;
}
.page-description a { color: #8b0d1a; }

/* ICJ gallery grid */
.icj-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}
.icj-gallery a {
    display: block;
    overflow: hidden;
    background: #e8e4dc;
}
.icj-gallery img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    transition: opacity 0.2s;
}
.icj-gallery a:hover img { opacity: 0.8; }

/* ============================================================
   SITE PLAN (plan.html)
   ============================================================ */
.site-plan h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #8b0d1a;
    margin: 1.5rem 0 0.5rem;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid #8b0d1a;
}
.site-plan ul {
    list-style: none;
    padding-left: 1rem;
}
.site-plan li {
    padding: 0.2rem 0;
    font-size: 0.92rem;
}
.site-plan li a:hover { color: #8b0d1a; }
.site-plan li strong a {
    font-size: 0.95rem;
    color: #1a1a1a;
}
.site-plan li strong a:hover { color: #8b0d1a; }
.site-plan li ul {
    margin-top: 0.2rem;
    padding-left: 1.2rem;
}
.site-plan li ul li {
    font-size: 0.85rem;
    color: #555;
}

/* ============================================================
   ERROR PAGE (404.html)
   ============================================================ */
.error-page {
    text-align: center;
    padding: 3rem 0;
    max-width: 600px;
    margin: 0 auto;
}
.error-page h1 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2rem;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}
.error-page .error-image {
    margin: 1.5rem 0;
}
.error-page .error-image img {
    max-width: 200px;
    height: auto;
}
.error-page p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 1rem;
}
.error-page a { color: #8b0d1a; }

/* ============================================================
   FORUM PAGE (forum.html)
   ============================================================ */
.forum-context {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0dcd4;
}
.forum-context h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.forum-context h2 a { color: #8b0d1a; }
.forum-context .context-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.8rem;
}
.forum-context .context-text {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #555;
}

/* Sidebar info blocks */
.sidebar-info {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #555;
}
.sidebar-info strong { color: #1a1a1a; }

/* External links list in sidebar */
.sidebar-links {
    list-style: none;
    padding: 0;
}
.sidebar-links li {
    padding: 0.3rem 0;
    font-size: 0.88rem;
}
.sidebar-links li a { color: #8b0d1a; }
.sidebar-links li a:hover { color: #c03; }

/* Author list in sidebar */
.author-list {
    list-style: none;
    padding: 0;
}
.author-list li {
    padding: 0.3rem 0;
    border-bottom: 1px solid #f0ece4;
    font-size: 0.88rem;
}
.author-list li:last-child { border-bottom: none; }
.author-list li a:hover { color: #8b0d1a; }

/* ============================================================
   FORUM FORM STYLING
   ============================================================ */

/* Container */
.formulaire_forum {
    margin-top: 1rem;
}
.formulaire_forum form {
    margin: 0;
}

/* Replace fieldset/legend with clean div */
.forum-fields {
    border: none;
    padding: 0;
    margin: 0;
}

/* Moderation info */
.formulaire_forum .moderation_info {
    background: #fdf8f0;
    border: 1px solid #e0dcd4;
    border-left: 3px solid #d4a017;
    padding: 0.8rem 1rem;
    margin-bottom: 1.2rem;
    border-radius: 2px;
}
.formulaire_forum .moderation_info legend {
    font-weight: 700;
    font-size: 0.88rem;
    color: #1a1a1a;
}
.formulaire_forum .moderation_info .explication {
    font-size: 0.82rem;
    color: #666;
    margin: 0;
}

/* Field wrapper */
.spip_form_champ {
    margin-bottom: 1rem;
}

/* Labels */
.spip_form_label {
    font-weight: 700;
    font-size: 0.88rem;
    display: block;
    margin-bottom: 0.3rem;
    color: #1a1a1a;
    font-family: "Lora", Georgia, serif;
}
.spip_form_label.obligatoire::after {
    content: " *";
    color: #8b0d1a;
}

/* Input fields */
.formulaire_forum .forml,
.formulaire_forum input[type="text"],
.formulaire_forum input[type="email"],
.formulaire_forum textarea,
.formulaire_forum input.text {
    width: 100%;
    border: 1px solid #e0dcd4;
    padding: 0.6rem 0.8rem;
    font-family: "Lora", Georgia, serif;
    font-size: 0.92rem;
    border-radius: 2px;
    background: #fff;
    color: #1a1a1a;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.formulaire_forum .forml:focus,
.formulaire_forum input[type="text"]:focus,
.formulaire_forum input[type="email"]:focus,
.formulaire_forum textarea:focus {
    border-color: #8b0d1a;
    outline: none;
    box-shadow: 0 0 0 2px rgba(139, 13, 26, 0.08);
}
.formulaire_forum textarea {
    min-height: 10rem;
    resize: vertical;
}
.formulaire_forum .connect_auteur {
    background: #f8f6f2;
    color: #555;
}

/* Helper text */
.formulaire_forum .petit {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.3rem;
    line-height: 1.4;
}

/* Captcha block (replaces inline yellow bg) */
.captcha-block {
    background: #f8f6f2;
    border: 1px solid #e0dcd4;
    padding: 1rem;
    text-align: center;
    border-radius: 2px;
    margin-bottom: 1rem;
    font-size: 0.88rem;
    color: #1a1a1a;
}
.captcha-block label {
    font-weight: 700;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.5rem;
}
.captcha-block .captcha-input {
    width: auto;
    max-width: 12rem;
    margin-top: 0.5rem;
    text-align: center;
    display: inline-block;
}

/* Submit button */
.spip_bouton {
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
}
.spip_bouton .bouton,
.spip_bouton .submit,
.spip_bouton input[type="submit"] {
    background: #8b0d1a;
    color: #fff;
    padding: 0.7rem 2rem;
    font-family: "Lora", Georgia, serif;
    font-weight: 700;
    font-size: 0.92rem;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s;
}
.spip_bouton .bouton:hover,
.spip_bouton .submit:hover,
.spip_bouton input[type="submit"]:hover {
    background: #a11020;
}

/* markItUp toolbar */
.formulaire_forum .markItUp {
    border: 1px solid #e0dcd4;
    border-radius: 2px;
    background: #f8f6f2;
}
.formulaire_forum .markItUpHeader ul {
    padding: 0.3rem;
}
.formulaire_forum .markItUpHeader li {
    margin-right: 2px;
}
.formulaire_forum .markItUpHeader a {
    opacity: 0.7;
}
.formulaire_forum .markItUpHeader a:hover {
    opacity: 1;
}
.formulaire_forum .markItUp .markItUpEditor {
    border: none;
    border-top: 1px solid #e0dcd4;
}

/* Keyword checkbox list */
.choix_mots {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}
.choix_mots li {
    display: inline-block;
    margin-right: 1rem;
    font-size: 0.85rem;
}
.choix_mots li label {
    font-weight: 400;
    cursor: pointer;
}
.choix_mots li input[type="checkbox"],
.choix_mots li input[type="radio"] {
    margin-right: 0.3rem;
    vertical-align: middle;
}

/* Error states */
.formulaire_forum .erreur_message {
    display: block;
    color: #8b0d1a;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}
.reponse_formulaire_erreur {
    background: #fff5f5;
    border: 1px solid #e8c4c4;
    border-left: 3px solid #8b0d1a;
    color: #8b0d1a;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    border-radius: 2px;
    font-size: 0.88rem;
}
.reponse_formulaire_ok {
    background: #f0f8f0;
    border: 1px solid #c4ddc4;
    border-left: 3px solid #2d7a2d;
    color: #2d7a2d;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    border-radius: 2px;
    font-size: 0.88rem;
}

/* RSS icon next to name field */
.flux_forum {
    float: right;
    margin-top: 0.3rem;
}
.flux_forum img {
    vertical-align: middle;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.flux_forum img:hover {
    opacity: 1;
}

/* Preview block */
.formulaire_forum .previsu {
    border: 1px solid #e0dcd4;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 2px;
    background: #fdf8f0;
}
.formulaire_forum .previsu legend {
    font-weight: 700;
    font-size: 0.92rem;
    color: #1a1a1a;
}
.formulaire_forum .txt_previsu {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-top: 0.5rem;
}

/* File input */
.formulaire_forum input.file {
    font-size: 0.85rem;
    padding: 0.3rem 0;
}

/* Details / connect link */
.formulaire_forum .details {
    font-size: 0.82rem;
}
.formulaire_forum .details a {
    color: #8b0d1a;
}

/* Ghost clearing divs (legacy) */
.formulaire_forum .ghost {
    clear: both;
    height: 0;
    overflow: hidden;
}

/* ============================================================
   SATIRICAL ENHANCEMENTS
   ============================================================ */

/* === TRICOLORE PROGRESS BAR === */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    z-index: 9999;
    background: linear-gradient(90deg, #002395 0%, #002395 33%, #fff 33%, #fff 66%, #ED2939 66%, #ED2939 100%);
    transition: width 0.1s linear;
    pointer-events: none;
}

/* === BREAKING NEWS TICKER === */
.ticker {
    background: #c0392b;
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    padding: 0.5rem 0;
    font-size: 0.82rem;
    position: relative;
}
.ticker-label {
    background: #1a1a1a;
    color: #fff;
    font-weight: 700;
    padding: 0.5rem 1rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    z-index: 1;
}
.ticker-content {
    display: inline-block;
    padding-left: 140px;
    animation: ticker-scroll 35s linear infinite;
}
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ticker-sep { color: rgba(255,255,255,0.4); margin: 0 2rem; }

/* === EN DIRECT BADGE === */
.badge-en-direct {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #c0392b;
    color: #fff;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}
.badge-en-direct::before {
    content: "";
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* === VERIFIE PAR LA REDACTION BADGE === */
.badge-verifie {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    color: #2d7d46;
    font-weight: 600;
    margin: 0.5rem 0;
    border: 1px solid #2d7d46;
    padding: 0.15rem 0.5rem;
    border-radius: 2px;
}
.badge-verifie::before { content: "\2713"; font-weight: 900; }

/* === FAKE TIMESTAMP === */
.fake-timestamp {
    font-size: 0.78rem;
    color: #c0392b;
    font-weight: 600;
    margin: 0.3rem 0;
}

/* === FAKE READING TIME === */
.reading-time {
    font-size: 0.82rem;
    color: #666;
    margin: 0.2rem 0;
}
.reading-time .indignation {
    color: #c0392b;
    font-style: italic;
}

/* === VIGIPATRIOTE WIDGET === */
.vigipatriote {
    background: #1a1a1a;
    color: #fff;
    padding: 1rem;
    margin-top: 1.5rem;
    border-left: 4px solid #c0392b;
}
.vigipatriote h4 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #c0392b;
    margin-bottom: 0.5rem;
}
.vigipatriote .vigi-level {
    font-size: 1rem;
    font-weight: 700;
    margin: 0.3rem 0;
}
.vigipatriote .vigi-bar {
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
    margin: 0.4rem 0;
}
.vigipatriote .vigi-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f39c12, #c0392b);
    border-radius: 4px;
}
.vigipatriote .vigi-reason {
    font-size: 0.78rem;
    color: #ccc;
    font-style: italic;
    margin-top: 0.3rem;
}

/* === SONDAGE EXCLUSIF === */
.sondage { text-align: left; }
.sondage .sondage-question {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    color: #1a1a1a;
}
.sondage .sondage-option { margin-bottom: 0.5rem; }
.sondage .sondage-option-label { font-size: 0.82rem; margin-bottom: 0.2rem; }
.sondage .sondage-option-bar {
    height: 18px;
    background: #e0dcd4;
    border-radius: 2px;
    overflow: hidden;
}
.sondage .sondage-option-bar-fill {
    height: 100%;
    border-radius: 2px;
}
.sondage .sondage-option-bar-fill.yes { background: #8b0d1a; }
.sondage .sondage-option-bar-fill.no { background: #bbb; }
.sondage .sondage-vote-count {
    font-size: 0.72rem;
    color: #888;
    margin-top: 0.5rem;
    font-style: italic;
}

/* === COOKIE BANNER === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    color: #fff;
    padding: 1.2rem 2rem;
    z-index: 9998;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 2rem;
}
.cookie-banner .cookie-icon { font-size: 2rem; flex-shrink: 0; }
.cookie-banner .cookie-text { flex: 1; }
.cookie-banner .cookie-title {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.cookie-banner .cookie-desc {
    font-size: 0.82rem;
    color: #ccc;
    line-height: 1.5;
}
.cookie-banner .cookie-buttons {
    display: flex;
    gap: 0.8rem;
    flex-shrink: 0;
}
.cookie-banner .btn-accept {
    background: #8b0d1a;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    font-family: "Lora", Georgia, serif;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 2px;
    white-space: nowrap;
}
.cookie-banner .btn-accept:hover { background: #a11020; }
.cookie-banner .btn-customize {
    background: none;
    color: #999;
    border: 1px solid #555;
    padding: 0.6rem 1.2rem;
    font-family: "Lora", Georgia, serif;
    font-size: 0.78rem;
    cursor: pointer;
    border-radius: 2px;
    white-space: nowrap;
}

/* === RESPONSIVE: enhancements === */
@media (max-width: 768px) {
    .ticker-label { font-size: 0.65rem; padding: 0.4rem 0.6rem; }
    .ticker-content { padding-left: 100px; }
    .cookie-banner { flex-direction: column; gap: 1rem; padding: 1rem; }
    .cookie-banner .cookie-buttons { width: 100%; justify-content: center; }
    .vigipatriote { margin-top: 1rem; }
}
@media (max-width: 480px) {
    .ticker { font-size: 0.75rem; }
    .cookie-banner .cookie-title { font-size: 0.8rem; }
    .cookie-banner .cookie-desc { font-size: 0.75rem; }
}

/* Print: hide enhancements */
@media print {
    .progress-bar, .ticker, .cookie-banner, .badge-en-direct, .vigipatriote, .sondage, .fake-timestamp, .badge-verifie, .reading-time { display: none; }
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* --- Tablet (max 1024px) --- */
@media (max-width: 1024px) {
    .nav ul { flex-wrap: wrap; justify-content: flex-start; }
    .nav li a { padding: 0.4rem 0.5rem; font-size: 0.65rem; }
    .nav .search-form { margin-left: 0; width: 100%; padding: 0.3rem 0; }
    .nav .search-form input[type="text"],
    .nav .search-form input[type="search"] { width: 100%; }
    .nav .container { flex-wrap: wrap; }

    .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .hero-side { border-left: none; padding-left: 0; border-top: 1px solid #e0dcd4; padding-top: 1.5rem; }

    .article-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .actu-images-grid { grid-template-columns: repeat(2, 1fr); }
    .senat-grid { grid-template-columns: 1fr; }
    .senat-image img { height: 200px; }
    .bottom-grid { grid-template-columns: 1fr; }
    .bottom-triptych { grid-template-columns: 1fr 1fr 1fr; }

    .article-layout { grid-template-columns: 1fr 250px; gap: 2rem; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* --- Small tablet / large phone (max 768px) --- */
@media (max-width: 768px) {
    .container { padding: 0 1rem; }

    .header .container { flex-direction: column; gap: 0.8rem; padding: 1rem; }
    .header h1 { font-size: 2.5rem; }
    .header .tagline { font-size: 0.85rem; }
    .header-text { text-align: center; }

    .nav .container { flex-direction: column; align-items: stretch; }
    .nav ul { flex-wrap: wrap; justify-content: center; }
    .nav li a { padding: 0.4rem 0.5rem; font-size: 0.65rem; }

    .hero-main h2 { font-size: 1.6rem; }
    .hero-image { height: 220px; }
    .hero-main .excerpt { font-size: 0.95rem; }

    .article-grid { grid-template-columns: 1fr; }
    .actu-images-grid { grid-template-columns: 1fr 1fr; }
    .bottom-triptych { grid-template-columns: 1fr; gap: 1rem; }

    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { border-top: 1px solid #e0dcd4; padding-top: 1.5rem; }
    .article-content h1 { font-size: 1.8rem; }

    .article-meta { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

    .share-cta .share-buttons { flex-wrap: wrap; }

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

    .edithroat-grid { grid-template-columns: 1fr; }

    .editorial-list .item { grid-template-columns: 100px 1fr; gap: 0.8rem; }
    .editorial-list .item-image { width: 100px; height: 65px; }

    .page-list > li { grid-template-columns: 120px 1fr; gap: 1rem; }
    .page-list .list-image { width: 120px; height: 80px; }

    .breadcrumb .tags { display: block; margin-left: 0; padding-left: 0; border-left: none; margin-top: 0.3rem; }
}

/* --- Phone (max 480px) --- */
@media (max-width: 480px) {
    body { font-size: 15px; }
    .container { padding: 0 0.8rem; }

    .header-logo { height: 45px; }
    .header-logo img { height: 65px; }
    .header h1 { font-size: 1.8rem; letter-spacing: 0.04em; }

    .nav ul { gap: 0; }
    .nav li a { padding: 0.35rem 0.4rem; font-size: 0.6rem; letter-spacing: 0.04em; }

    .hero-main h2 { font-size: 1.3rem; }
    .hero-image { height: 180px; }
    .hero-side-item h3 { font-size: 1rem; }

    .actu-images-grid { grid-template-columns: 1fr; }
    .actu-images-card img { height: 180px; }

    .senat-text h2 { font-size: 1.2rem; }

    .article-content h1 { font-size: 1.5rem; }
    .article-body { font-size: 1rem; line-height: 1.75; max-width: 100%; }
    .article-chapo { font-size: 1rem; }

    .share-cta { padding: 1rem; }
    .share-cta .share-buttons a { padding: 0.4rem 0.6rem; }

    .editorial-list .item { grid-template-columns: 80px 1fr; }
    .editorial-list .item-image { width: 80px; height: 55px; }

    .page-list > li { grid-template-columns: 1fr; }
    .page-list .list-image { width: 100%; height: 150px; }

    .error-page { padding: 2rem 0; }
    .error-page h1 { font-size: 1.5rem; }
}

/* Print */
@media print {
    .tricolore, .topbar, .nav, .share-cta, .share-icons, .footer { display: none; }
    .header { background: none; }
    .header h1 { color: #000; }
    body { font-size: 12pt; }
}
