/* Le fait et le fond — feuille de style du site
   Couleurs de la charte : modifier ici pour changer la palette. */
:root {
  --petrole: #2D4A53;
  --petrole-fonce: #1E343B;
  --ivoire: #F7F5EF;
  --papier: #FDFCF9;
  --anthracite: #292D30;
  --gris: #4A5054;
  --gris-clair: #5B6164;
  --dore: #B59A76;
  --filet: #DED8CB;
  --terre: #A66F5B;
  --terre-texte: #8A5644;
  --serif: 'Lora', Georgia, serif;
  --sans: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivoire); color: var(--anthracite); font-family: var(--sans); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; }
a { color: var(--petrole); text-decoration: none; }
a:hover { color: var(--petrole-fonce); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--ivoire); box-shadow: 0 0 0 4px var(--petrole); }
[hidden] { display: none !important; }
.wrap { max-width: 1480px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ivoire); padding: 8px 12px; z-index: 50; }

/* Boutons et champs */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 26px; border: 1px solid var(--petrole); background: transparent; color: var(--petrole); font: inherit; font-size: 16px; font-weight: 500; cursor: pointer; }
.btn-plein { background: var(--petrole); color: #FFFFFF; }
.btn-plein:hover { background: var(--petrole-fonce); color: #FFFFFF; }
.champ { height: 48px; width: 100%; padding: 0 14px; background: var(--papier); border: 1px solid #8C9498; color: var(--anthracite); font: inherit; font-size: 16px; }
.champ-discret { height: 44px; padding: 0 12px; background: transparent; border: 0; border-bottom: 1px solid var(--gris-clair); color: var(--anthracite); font: inherit; font-size: 16px; max-width: 100%; }
.err { font-size: 14px; color: #8A2E1F; }
.err:empty { display: none; }
.clamp3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }

/* En-tête */
.site-header { background: var(--ivoire); position: relative; z-index: 5; }
.site-header .top { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 30px 0 24px; }
.site-header .spacer, .site-header .tools { flex: 1 1 240px; }
.logo { flex: 0 1 auto; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--petrole); }
.logo-name { font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.01em; font-weight: 500; }
.logo-name em { font-weight: 400; }
.logo-sig { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--gris); }
.tools { display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.lang { display: flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 44px; padding: 0 6px; color: var(--gris-clair); border-bottom: 2px solid transparent; }
.lang a[aria-current="true"] { color: var(--petrole); border-bottom-color: var(--petrole); }
.lang span { color: var(--dore); }
.btn-soutenir { display: inline-flex; align-items: center; height: 42px; padding: 0 20px; background: var(--petrole); color: #FFFFFF; font-size: 15px; font-weight: 600; letter-spacing: 0.02em; }
.btn-soutenir:hover { background: var(--petrole-fonce); color: #FFFFFF; }
.nav-desktop { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 44px; padding: 8px 0; border-top: 1px solid var(--petrole); border-bottom: 1px solid var(--dore); font-size: 15px; font-weight: 500; letter-spacing: 0.02em; }
.nav-desktop > a, .dd > summary { padding: 11px 0 9px; color: var(--petrole); border-bottom: 2px solid transparent; cursor: pointer; }
.nav-desktop .is-active { border-bottom-color: var(--petrole); }
.nav-desktop .is-active.chroniques { border-bottom-color: var(--terre); }
.dd { position: relative; }
.dd > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.dd > summary::-webkit-details-marker { display: none; }
.dd-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 9px; min-width: 200px; background: var(--ivoire); border: 1px solid var(--petrole); display: flex; flex-direction: column; padding: 6px 0; z-index: 10; }
.dd-menu a { padding: 12px 20px; }
.nav-mobile { display: none; border-top: 1px solid var(--petrole); border-bottom: 1px solid var(--dore); font-size: 16px; font-weight: 500; }
.nav-mobile > summary { list-style: none; height: 52px; display: flex; align-items: center; justify-content: space-between; color: var(--petrole); cursor: pointer; }
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-mobile .liste { display: flex; flex-direction: column; padding-bottom: 10px; }
.nav-mobile .liste a { padding: 12px 0; border-top: 1px solid var(--filet); }
.nav-mobile .liste a.sous { padding: 10px 0 12px 20px; border-top: 0; font-weight: 400; }
@media (max-width: 760px) {
  .site-header .top { flex-direction: column; padding: 22px 0 16px; }
  .site-header .spacer { display: none; }
  .site-header .tools { flex: 0 0 auto; justify-content: center; }
  .nav-desktop { display: none; }
  .nav-mobile { display: block; }
}

/* Newsletter */
.nl { background: var(--petrole); color: var(--ivoire); }
.nl .in { max-width: 720px; margin: 0 auto; padding: clamp(44px, 5vw, 64px) clamp(20px, 5vw, 48px); display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.nl h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; }
.nl p { margin: 0; font-size: 18px; color: #DCE3E5; max-width: 32em; }
.nl .bientot { margin-top: 8px; padding: 8px 18px; border: 1px solid #8FA4AA; font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }

/* Pied de page */
.site-footer { border-top: 1px solid var(--petrole); font-size: 16px; line-height: 1.5; }
.site-footer .in { max-width: 1480px; margin: 0 auto; padding: 52px clamp(20px, 5vw, 48px) 26px; }
.site-footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 36px 56px; }
.site-footer .marque { flex: 1 1 280px; display: flex; flex-direction: column; gap: 10px; }
.site-footer nav { flex: 0 1 200px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 15px; }
.site-footer nav a { display: block; padding: 5px 0; }
.site-footer .t { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gris-clair); margin-bottom: 6px; }
.site-footer .bas { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--filet); font-size: 14px; color: var(--gris-clair); }

/* Page Soutenir */
.modes { display: flex; gap: 28px; border-bottom: 1px solid var(--filet); }
.mode { height: 46px; padding: 0 2px; margin-bottom: -1px; background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--gris-clair); font: inherit; font-size: 17px; font-weight: 500; cursor: pointer; }
.mode[aria-pressed="true"] { color: var(--petrole); border-bottom-color: var(--petrole); }
.niveau { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 20px; background: var(--papier); border: 1px solid var(--filet); color: var(--anthracite); font: inherit; text-align: left; cursor: pointer; }
.niveau[aria-pressed="true"] { border-color: var(--petrole); box-shadow: 0 0 0 1px var(--petrole); }
.niveau-nom { font-size: 15px; color: var(--gris); }
.niveau-montant { font-family: var(--serif); font-size: 24px; color: var(--petrole); }
.js-libre:not([hidden]) { display: flex; }

/* Lecture des articles */
.lecture { max-width: 1480px; margin: 0 auto; padding: 12px clamp(20px, 13vw, 220px) 0 clamp(20px, 3.2vw, 56px); font-size: 18.5px; line-height: 1.67; text-align: left; }
.lecture > * { margin: 0 0 19px; }
.lecture h2 { margin-top: 30px; font-family: var(--serif); font-weight: 500; font-size: 27px; line-height: 1.25; color: var(--petrole); }
.lecture blockquote { margin: 32px 0; padding: 4px 0 4px 24px; border-left: 1px solid var(--dore); font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.45; color: var(--petrole); }
.lecture.chronique blockquote { padding: 22px 0; border-left: 0; border-top: 1px solid var(--terre); border-bottom: 1px solid var(--terre); text-align: center; font-size: 25px; }
.lecture .sep { text-align: center; color: var(--terre); letter-spacing: 0.6em; font-size: 18px; }
.lecture img { display: block; width: 100%; height: auto; }
.lecture a { border-bottom: 1px solid var(--petrole); }
.partage { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 22px; border-top: 1px solid var(--filet); font-size: 15px; line-height: 1.4; }
.partage a, .partage button { display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border: 1px solid var(--petrole); background: transparent; color: var(--petrole); font: inherit; font-weight: 500; cursor: pointer; }

@media (max-width: 1100px) { .lecture { padding-right: clamp(20px, 5vw, 56px); } }
/* Accueil : tribunes en carrousel horizontal compact (zéro empilement vertical). */
.home-tribunes { border-top: 1px solid var(--filet); background: var(--ivoire); }
.home-tribunes-wrap { max-width: 1480px; margin: 0 auto; padding: clamp(30px, 4vw, 48px) clamp(20px, 5vw, 48px); }
.home-tribunes-header { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; margin-bottom: 22px; }
.home-tribunes-header h2 { margin: 0; font-family: var(--serif); font-size: clamp(25px, 2.6vw, 33px); font-weight: 500; color: var(--petrole); }
.home-tribunes-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.home-tribunes-all { display: inline-block; color: var(--petrole); font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--petrole); padding: 7px 0 3px; }
.home-tribunes-controls { display: inline-flex; gap: 6px; }
.home-tribunes-arrow { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--petrole); color: var(--petrole); background: transparent; font-family: var(--sans); font-size: 22px; line-height: 1; cursor: pointer; }
.home-tribunes-arrow:hover:not(:disabled) { background: var(--petrole); color: #fff; }
.home-tribunes-arrow:disabled { opacity: .28; cursor: not-allowed; }
.home-tribunes-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, calc((100% - 48px) / 3)); gap: 24px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; overscroll-behavior-inline: contain; padding: 3px 2px 16px; scrollbar-width: thin; scrollbar-color: var(--dore) transparent; }
.home-tribune-card { scroll-snap-align: start; min-width: 0; display: flex; flex-direction: column; color: var(--anthracite); background: var(--papier); border: 1px solid var(--filet); transition: border-color .15s ease; }
.home-tribune-card:hover { border-color: var(--dore); color: var(--anthracite); }
.home-tribune-image, .home-tribune-noimage { aspect-ratio: 16/10; width: 100%; overflow: hidden; background: #E8E4DC; }
.home-tribune-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; display: block; }
.home-tribune-noimage { background: linear-gradient(135deg, #DFE6E3, #F0ECE3); }
.home-tribune-inner { display: flex; flex-direction: column; gap: 10px; padding: 18px 19px 21px; flex: 1; }
.home-tribune-meta { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; font-size: 11px; letter-spacing: .055em; font-weight: 600; text-transform: uppercase; color: var(--petrole); }
.home-tribune-featured { display: inline-block; padding: 4px 7px; background: var(--petrole); color: #fff; letter-spacing: .04em; }
.home-tribune-meta .home-tribune-featured + * { margin-left: 1px; }
.home-tribune-inner h3 { margin: 0; font-family: var(--serif); font-size: clamp(18px, 1.65vw, 22px); line-height: 1.25; font-weight: 500; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.home-tribune-summary { margin: 0; color: var(--gris); font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.home-tribune-byline { margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--gris-clair); }
@media (max-width: 940px) { .home-tribunes-track { grid-auto-columns: minmax(0, calc((100% - 24px) / 2)); } }
@media (max-width: 640px) {
  .home-tribunes-track { grid-auto-columns: minmax(0, 86%); gap: 14px; }
  .home-tribunes-header { align-items: flex-start; }
  .home-tribune-inner { padding: 15px 16px 17px; }
}
@media (prefers-reduced-motion: reduce) { .home-tribune-card { transition: none; } }

@media (min-width: 941px) { .home-tribunes-track[data-count="2"] { grid-auto-columns: minmax(0, calc((100% - 24px) / 2)); } }

/* En-tête de lecture d'écran, sans ajouter de hauteur à l'accueil. */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Mise en page paysage — pages éditoriales, dossiers, tribunes, chroniques */
.editorial-list-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px clamp(28px, 3vw, 64px); }
.editorial-list-grid > * { min-width: 0; }
@media (max-width: 880px) { .editorial-list-grid { grid-template-columns: minmax(0, 1fr); gap: 0; } }
/* Une grande image verticale doit apparaître entièrement sur sa page de lecture. */
.article-hero-image img { max-width: 100%; object-fit: contain; object-position: left top; }
@media (max-width: 640px) {
  .lecture { font-size: 17.5px; line-height: 1.68; }
  .article-hero-image img { max-height: 70vh !important; }
}

/* Les affiches verticales d'événements prennent une colonne latérale pour raccourcir la page. */
@media (min-width: 1000px) {
  .article-hero-image.article-poster {
    float: right;
    width: clamp(330px, 29vw, 430px);
    max-width: none;
    margin: 0 max(3.2vw, calc((100vw - 1480px) / 2 + 56px)) 24px 28px;
    padding: 0;
  }
  .article-hero-image.article-poster img { display: block; width: 100%; height: auto; max-height: none; }
}

/* Séparateur « * * * » inséré depuis l'éditeur. */
.lecture hr { border: 0; margin: 0 0 19px; height: auto; text-align: center; color: var(--terre); letter-spacing: 0.6em; font-size: 18px; }
.lecture hr::after { content: '* * *'; }
.lecture figure { margin: 0 0 19px; }
.lecture figcaption { font-size: 14px; color: var(--gris-clair); padding-top: 6px; }
