/*
Theme Name: Sunupetrole
Theme URI: https://sunupetrole.com
Author: Sunupetrole
Description: Thème bloc sur mesure pour sunupetrole.com — actualités du pétrole, du gaz et de l'énergie au Sénégal et dans le monde.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sunupetrole
Tags: block-theme, full-site-editing, news, blog
*/

/* Sunupetrole — maquette accueil
   Registre relevé sur la référence : fond marine #172244, cartes en voile blanc 20 %,
   une seule famille sans-serif, boutons pilule blancs, angles de 4 px, alignement à gauche. */

:root {
  --marine: #172244;
  --marine-profond: #111a37;
  --voile: rgba(255, 255, 255, .2);
  --voile-leger: rgba(255, 255, 255, .1);
  --ligne: rgba(255, 255, 255, .14);
  --blanc: #ffffff;
  --texte: #e6e9ed;
  --texte-doux: rgba(230, 233, 237, .72);
  --orange: #d9824f; /* uniquement dans le globe décoratif, comme la référence */
  --police: "Inter Tight", system-ui, sans-serif;
  --gouttiere: clamp(16px, 3.8vw, 72px);
  --largeur: 1760px;
  --rayon: 4px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--marine);
  color: var(--blanc);
  font-family: var(--police);
  font-size: 18px;
  line-height: 1.45;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { hyphens: none; text-wrap: balance; }

.enveloppe { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); }

/* ---------- En-tête ---------- */
.entete { position: relative; z-index: 5; border-top: 1px solid var(--ligne); }
.entete .enveloppe { display: flex; align-items: center; gap: 48px; height: 108px; }
.logo { display: flex; align-items: center; gap: 12px; font-size: 32px; letter-spacing: -.01em; white-space: nowrap; }
/* Bannière du client, pleine largeur sous l'en-tête */
.banniere { position: relative; z-index: 2; }
.banniere img { width: 100%; height: auto; }
.banniere + main .hero { padding-top: 56px; }
@media (max-width: 760px) { .banniere + main .hero { padding-top: 32px; } }
.logo-nom { display: inline; }
.logo b { font-weight: 700; }
.logo span { font-weight: 400; }
.logo-icone { width: 63px; height: 42px; flex: none; object-fit: cover; border-radius: var(--rayon); }
.nav { display: flex; gap: 30px; margin: 0 auto; font-size: 18px; }
.nav a { white-space: nowrap; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav a:hover { border-color: var(--blanc); }
.actions { display: flex; align-items: center; gap: 24px; }
.recherche { display: flex; align-items: center; gap: 8px; font-size: 20px; background: none; border: 0; color: inherit; font-family: inherit; cursor: pointer; padding: 0; }
.recherche svg { width: 22px; height: 22px; }
.burger { display: none; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 38px; border-radius: 999px;
  font-size: 20px; font-family: inherit; white-space: nowrap;
  border: 2px solid var(--blanc); transition: background .2s, color .2s;
}
.btn-plein { background: var(--blanc); color: var(--marine); }
.btn-plein:hover { background: transparent; color: var(--blanc); }
.btn-contour { background: transparent; color: var(--blanc); }
.btn-contour:hover { background: var(--blanc); color: var(--marine); }
.entete .btn { height: 54px; padding: 0 24px; }

/* ---------- Globe décoratif ---------- */
.globe { position: absolute; pointer-events: none; z-index: 0; }
.globe svg { width: 100%; height: 100%; overflow: visible; filter: blur(1.2px); }
.hero .globe { width: 980px; height: 980px; left: 38%; top: -330px; opacity: .6; }

/* ---------- Héros ---------- */
.hero { position: relative; overflow: hidden; padding-bottom: 48px; }
.hero .enveloppe { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 600px; gap: 72px; }
.hero-texte { padding-top: 22px; display: flex; flex-direction: column; }
.hero h1 { font-size: clamp(44px, 4.6vw, 86px); line-height: 1.08; font-weight: 400; letter-spacing: -.012em; max-width: 13em; }
.hero-chapo { font-size: clamp(19px, 1.55vw, 29px); line-height: 1.32; margin-top: 66px; max-width: 34em; }
.hero-boutons { display: flex; gap: 24px; margin-top: 54px; flex-wrap: wrap; }
.dossiers { margin-top: auto; padding-top: 90px; }
.dossiers p { font-size: 20px; }
.dossiers ul { list-style: none; margin: 30px 0 0; padding: 0; display: flex; gap: 64px; align-items: center; flex-wrap: wrap; }
.dossiers li { opacity: .92; line-height: 1; white-space: nowrap; }
.marque-1 { font-size: 30px; font-weight: 700; letter-spacing: -.04em; }
.marque-2 { font-size: 22px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; border-top: 4px solid; border-bottom: 4px solid; padding: 5px 0; }
.marque-3 { font-size: 27px; font-weight: 400; letter-spacing: -.02em; }
.marque-4 { font-size: 15px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.marque-4::before { content: ""; width: 26px; height: 26px; border-radius: 50%; border: 5px solid; }
.marque-5 { font-size: 26px; font-weight: 600; letter-spacing: -.03em; }

.pile { display: flex; flex-direction: column; gap: 12px; padding-top: 94px; }

/* Carte horizontale : l'élément signature de la référence */
.carte {
  display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 36px;
  background: var(--voile); border-radius: var(--rayon); padding: 12px;
  transition: background .2s;
}
.carte:hover { background: rgba(255, 255, 255, .27); }
.carte img { width: 168px; height: 168px; object-fit: cover; border-radius: var(--rayon); }
.carte-corps { padding: 12px 8px 12px 0; }
.etiquette { font-size: 19px; color: var(--texte); display: block; }
.carte h3 { font-size: 24px; line-height: 1.3; font-weight: 700; letter-spacing: -.03em; margin-top: 18px; color: var(--texte); }

/* ---------- Titres de section ---------- */
.section { position: relative; padding: 120px 0; }
.section-tete { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 56px; }
.section-tete h2 { font-size: clamp(36px, 3.4vw, 60px); line-height: 1.08; font-weight: 400; letter-spacing: -.012em; }
.lien-fleche { font-size: 20px; display: inline-flex; gap: 10px; align-items: center; white-space: nowrap; border-bottom: 1px solid var(--ligne); padding-bottom: 4px; }
.lien-fleche:hover { border-color: var(--blanc); }

/* ---------- À la une ---------- */
.une { border-top: 1px solid var(--ligne); }
.une-grille { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.vedette { position: relative; }
.vedette-image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 30%; border-radius: var(--rayon); }
.vedette-carte {
  position: relative; margin: -96px 0 0 48px; width: min(720px, 88%);
  background: #3b4466; /* voile 20 % aplati, pour rester lisible au-dessus de la photo */
  border-radius: var(--rayon); padding: 36px 40px 40px;
  box-shadow: 0 30px 60px rgba(8, 12, 30, .35);
}
.vedette-carte h3 { font-size: clamp(28px, 2.3vw, 42px); line-height: 1.14; font-weight: 700; letter-spacing: -.03em; margin-top: 16px; }
.vedette-carte p { font-size: 20px; line-height: 1.45; color: var(--texte-doux); margin-top: 20px; }
.meta { display: flex; gap: 14px; font-size: 16px; color: var(--texte-doux); margin-top: 24px; }

.une-liste { display: flex; flex-direction: column; gap: 12px; }
.une-liste .carte { grid-template-columns: 132px minmax(0, 1fr); gap: 28px; }
.une-liste .carte img { width: 132px; height: 132px; }
.une-liste .carte h3 { font-size: 21px; margin-top: 12px; }
.une-liste .carte-corps { padding: 8px 8px 8px 0; }

/* ---------- Rubriques ---------- */
.rubriques { background: var(--marine-profond); }
.rubriques-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rubrique { background: var(--voile-leger); border-radius: var(--rayon); padding: 12px 12px 28px; display: flex; flex-direction: column; }
.rubrique img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--rayon); }
.rubrique-nom { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-doux); padding: 26px 16px 0; }
.rubrique-nom .lien-fleche { font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--blanc); }
.rubrique h3 { font-size: 26px; line-height: 1.22; font-weight: 700; letter-spacing: -.03em; padding: 14px 16px 0; color: var(--texte); }
.rubrique ul { list-style: none; margin: 26px 16px 0; padding: 0; }
.rubrique li { border-top: 1px solid var(--ligne); padding: 18px 0; font-size: 18px; line-height: 1.35; }
.rubrique li a:hover, .rubrique h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.rubrique li time { display: block; font-size: 14px; color: var(--texte-doux); margin-top: 6px; }
.rubriques-bas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.rubriques-bas .carte { grid-template-columns: 260px minmax(0, 1fr); }
.rubriques-bas .carte img { width: 260px; height: 190px; }

/* ---------- Analyses ---------- */
.analyses .enveloppe { display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 72px; }
.analyses-intro h2 { font-size: clamp(40px, 4.2vw, 78px); line-height: 1.04; font-weight: 400; letter-spacing: -.015em; }
.analyses-intro p { font-size: 22px; line-height: 1.4; color: var(--texte-doux); margin-top: 32px; }
.analyses-intro .btn { margin-top: 44px; }
.analyses ol { list-style: none; margin: 0; padding: 0; counter-reset: a; }
.analyses li { counter-increment: a; display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 24px; align-items: baseline; border-top: 1px solid var(--ligne); padding: 36px 0; }
.analyses li:last-child { border-bottom: 1px solid var(--ligne); }
.analyses li::before { content: "0" counter(a); font-size: 20px; color: var(--texte-doux); }
.analyses li h3 { font-size: clamp(24px, 2.1vw, 38px); line-height: 1.16; font-weight: 400; letter-spacing: -.02em; }
.analyses li h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.analyses li p { font-size: 18px; color: var(--texte-doux); margin-top: 12px; max-width: 46em; }
.analyses li time { font-size: 16px; color: var(--texte-doux); white-space: nowrap; }

/* ---------- Bandeau abonnement ---------- */
.abonnement { position: relative; overflow: hidden; padding: 0 0 120px; }
.abonnement .globe { width: 760px; height: 760px; right: -120px; top: -140px; opacity: .8; }
.abonnement-boite {
  position: relative; z-index: 1; background: var(--voile); border-radius: var(--rayon);
  padding: 80px 72px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: end;
}
.abonnement h2 { font-size: clamp(36px, 3.6vw, 66px); line-height: 1.06; font-weight: 400; letter-spacing: -.015em; max-width: 14em; }
.abonnement p { font-size: 22px; color: var(--texte); margin-top: 28px; max-width: 36em; }
.reseaux { display: flex; flex-direction: column; gap: 14px; }
.reseaux .btn { justify-content: space-between; gap: 40px; min-width: 300px; }
.reseaux svg { width: 22px; height: 22px; }

/* ---------- Pied de page ---------- */
.pied { border-top: 1px solid var(--ligne); padding: 80px 0 40px; background: var(--marine-profond); }
.pied-grille { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px; }
.pied p { color: var(--texte-doux); font-size: 17px; margin-top: 22px; max-width: 26em; }
.pied h4 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-doux); font-weight: 400; margin-bottom: 20px; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 18px; }
.pied a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pied-bas { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--ligne); margin-top: 72px; padding-top: 28px; font-size: 15px; color: var(--texte-doux); flex-wrap: wrap; }

/* ---------- Navigation : rubrique courante ---------- */
.nav a[aria-current="page"] { border-color: var(--blanc); }

/* ---------- Tête de page interne ---------- */
.page-tete { position: relative; overflow: hidden; padding: 64px 0 72px; }
.page-tete .globe { width: 760px; height: 760px; right: -160px; top: -260px; opacity: .6; }
.page-tete .enveloppe { position: relative; z-index: 1; }
.fil { display: flex; gap: 12px; font-size: 16px; color: var(--texte-doux); }
.fil a:hover { color: var(--blanc); }
.page-tete h1 { font-size: clamp(48px, 6vw, 112px); line-height: 1.02; font-weight: 400; letter-spacing: -.02em; margin-top: 28px; }
.page-tete-bas { display: flex; justify-content: space-between; align-items: end; gap: 48px; margin-top: 36px; }
.page-chapo { font-size: clamp(19px, 1.55vw, 27px); line-height: 1.34; max-width: 34em; }
.compte { font-size: 18px; color: var(--texte-doux); white-space: nowrap; }
.puces { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 48px; }
.puce { display: inline-flex; align-items: center; height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .45); font-size: 17px; transition: background .2s, color .2s; }
.puce:hover { border-color: var(--blanc); }
.puce[aria-current="page"] { background: var(--blanc); color: var(--marine); border-color: var(--blanc); }
.page-tete + .section { border-top: 1px solid var(--ligne); }

/* ---------- Grille d'articles ---------- */
.grille-articles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grille-articles .carte { grid-template-columns: 132px minmax(0, 1fr); gap: 28px; }
.grille-articles .carte img { width: 132px; height: 132px; }
.grille-articles .carte h3 { font-size: 21px; margin-top: 12px; }
.grille-articles .carte-corps { padding: 8px 8px 8px 0; }
.carte.cache { display: none; }
.plus { display: flex; justify-content: center; margin-top: 56px; }

/* ---------- Page Analyses ---------- */
.analyses-page .enveloppe { display: block; }
.analyses-page ol { max-width: 1240px; }
.analyses-page li { grid-template-columns: 90px minmax(0, 1fr) auto; }
.analyses-page li::before { content: attr(data-n); }
.analyses-page .etiquette { font-size: 16px; color: var(--texte-doux); margin-bottom: 10px; }

/* ---------- Article ---------- */
.article { padding: 64px 0 120px; }
.article-tete { max-width: 1100px; }
.article-tete h1 { font-size: clamp(38px, 4.2vw, 76px); line-height: 1.06; font-weight: 400; letter-spacing: -.018em; margin-top: 28px; }
.article-chapo { font-size: clamp(19px, 1.55vw, 27px); line-height: 1.38; margin-top: 32px; max-width: 40em; }
.article .meta { margin-top: 28px; }
.article-une { margin: 56px 0 0; }
.article-une img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--rayon); }
.article-grille { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 96px; margin-top: 72px; align-items: start; }
.contenu-article { max-width: 760px; font-size: 20px; line-height: 1.65; color: var(--texte); }
.contenu-article > * + * { margin-top: 1.1em; }
.contenu-article h2 { font-size: 34px; line-height: 1.15; font-weight: 400; letter-spacing: -.012em; color: var(--blanc); margin-top: 1.8em; }
.contenu-article h3, .contenu-article h4 { font-size: 24px; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; color: var(--blanc); margin-top: 1.6em; }
.contenu-article a { text-decoration: underline; text-underline-offset: 3px; }
.contenu-article strong, .contenu-article b { color: var(--blanc); }
.contenu-article ul, .contenu-article ol { padding-left: 1.2em; }
.contenu-article li + li { margin-top: .4em; }
.contenu-article blockquote { margin-left: 0; padding: 4px 0 4px 28px; border-left: 2px solid var(--blanc); font-size: 24px; line-height: 1.4; color: var(--blanc); }
.contenu-article figure { margin-left: 0; margin-right: 0; }
.contenu-article img { border-radius: var(--rayon); background: var(--blanc); }
.contenu-article table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.contenu-article td, .contenu-article th { border: 1px solid var(--ligne); padding: 10px 12px; text-align: left; vertical-align: top; }
.article-aside { position: sticky; top: 32px; }
.article-aside h2 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-doux); font-weight: 400; margin-bottom: 20px; }
.article-aside .pile { padding-top: 0; }
.article-aside .carte { grid-template-columns: 120px minmax(0, 1fr); gap: 22px; }
.article-aside .carte img { width: 120px; height: 120px; }
.article-aside .carte h3 { font-size: 19px; margin-top: 10px; }
.article-aside .carte-corps { padding: 6px 6px 6px 0; }
.article-aside .etiquette { font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 1500px) {
  .nav { gap: 22px; font-size: 17px; }
  .entete .enveloppe { gap: 28px; }
  .hero .enveloppe { grid-template-columns: minmax(0, 1fr) 520px; gap: 48px; }
  .carte { gap: 24px; grid-template-columns: 140px minmax(0, 1fr); }
  .carte img { width: 140px; height: 140px; }
  .carte h3 { font-size: 21px; margin-top: 12px; }
  .etiquette { font-size: 17px; }
}
@media (max-width: 1240px) {
  .nav, .recherche span { display: none; }
  .burger { display: flex; flex-direction: column; gap: 6px; background: none; border: 0; padding: 8px; cursor: pointer; }
  .burger i { display: block; width: 26px; height: 2px; background: var(--blanc); }
  .actions { margin-left: auto; }
  .menu-ouvert .nav { display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: var(--marine-profond); padding: 8px var(--gouttiere) 24px; font-size: 20px; border-bottom: 1px solid var(--ligne); }
  .menu-ouvert .nav a { padding: 14px 0; border-bottom: 1px solid var(--ligne); }
  .hero .enveloppe { grid-template-columns: 1fr; }
  .pile { padding-top: 0; }
  .dossiers { padding-top: 64px; }
  .une-grille, .analyses .enveloppe { grid-template-columns: 1fr; gap: 56px; }
  .rubriques-grille { grid-template-columns: 1fr 1fr; }
  .abonnement-boite { grid-template-columns: 1fr; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
  .grille-articles { grid-template-columns: 1fr; }
  .article-grille { grid-template-columns: 1fr; gap: 64px; }
  .article-aside { position: static; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .entete .enveloppe { height: 76px; }
  .logo { font-size: 24px; } .logo-icone { width: 48px; height: 32px; }  .entete .btn { display: none; }
  .hero h1 { font-size: 42px; }
  .hero-chapo { margin-top: 32px; font-size: 19px; }
  .hero-boutons { margin-top: 32px; gap: 12px; }
  .btn { height: 50px; padding: 0 26px; font-size: 18px; }
  .dossiers ul { gap: 28px 36px; }
  .carte, .une-liste .carte { grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding: 10px; }
  .carte img, .une-liste .carte img { width: 104px; height: 104px; }
  .carte-corps { padding: 4px 4px 4px 0; }
  .carte h3, .une-liste .carte h3 { font-size: 18px; margin-top: 8px; }
  .etiquette { font-size: 15px; }
  .section { padding: 80px 0; }
  .section-tete { flex-direction: column; align-items: start; margin-bottom: 36px; }
  .vedette-carte { margin: -60px 12px 0; width: auto; padding: 26px 22px 28px; }
  .vedette-carte p { font-size: 17px; }
  .rubriques-grille, .rubriques-bas { grid-template-columns: 1fr; }
  .rubriques-bas .carte { grid-template-columns: 104px minmax(0, 1fr); }
  .rubriques-bas .carte img { width: 104px; height: 104px; }
  .analyses li { grid-template-columns: 1fr; gap: 8px; padding: 28px 0; }
  .abonnement-boite { padding: 44px 22px; }
  .reseaux .btn { min-width: 0; width: 100%; }
  .pied-grille { grid-template-columns: 1fr; }
  .hero .globe { width: 620px; height: 620px; left: 10%; top: -160px; }
  .page-tete { padding: 40px 0 48px; }
  .page-tete-bas { flex-direction: column; align-items: start; gap: 16px; margin-top: 24px; }
  .puces { margin-top: 32px; flex-wrap: nowrap; overflow-x: auto; margin-right: calc(-1 * var(--gouttiere)); padding-right: var(--gouttiere); scrollbar-width: none; }
  .puce { flex: none; }
  .grille-articles .carte { grid-template-columns: 104px minmax(0, 1fr); gap: 16px; }
  .grille-articles .carte img { width: 104px; height: 104px; }
  .grille-articles .carte h3 { font-size: 18px; margin-top: 8px; }
  .analyses-page li { grid-template-columns: 1fr; }
  .article { padding: 40px 0 80px; }
  .article-une { margin-top: 36px; }
  .article-une img { aspect-ratio: 4 / 3; }
  .article-grille { margin-top: 44px; }
  .contenu-article { font-size: 18px; }
  .contenu-article h2 { font-size: 27px; }
  .contenu-article h3, .contenu-article h4 { font-size: 21px; }
  .article-aside .carte { grid-template-columns: 104px minmax(0, 1fr); gap: 16px; }
  .article-aside .carte img { width: 104px; height: 104px; }
}

/* ==========================================================================
   ADAPTATIONS WORDPRESS
   Tout ce qui précède est la feuille de la maquette validée, copiée telle quelle.
   Ce qui suit l'adapte au DOM des blocs natifs. Le CSS des blocs étant imprimé
   APRÈS cette feuille, chaque surcharge d'un style de bloc est plus spécifique.
   ========================================================================== */

img { height: auto; } /* sinon l'attribut height des blocs image l'emporte sur aspect-ratio */
:where(.wp-block-group) > :where(*), :where(.wp-block-buttons) { margin-block: 0; }
figure.wp-block-image, figure.wp-block-post-featured-image { margin: 0; }
.wp-site-blocks { overflow-x: hidden; }
:where(a, button, input, [tabindex]):focus-visible { outline: 2px solid var(--blanc); outline-offset: 3px; }

/* ---------- Logo : vignette du navire en pseudo-élément ---------- */
.logo { margin: 0; color: var(--blanc); }
.logo a { display: inline-flex; align-items: center; }
.logo a::before { content: ""; width: 63px; height: 42px; margin-right: 12px; flex: none; border-radius: var(--rayon); background: url("assets/img/logo-navire.jpg") center / cover no-repeat; }
.logo strong { font-weight: 700; }
.logo a { font-weight: 400; }

/* ---------- Menu principal (core/navigation) ---------- */
.entete .wp-block-navigation.menu-principal { margin: 0 auto; font-size: 18px; }
.wp-block-navigation.menu-principal .wp-block-navigation__container { gap: 30px; }
.wp-block-navigation.menu-principal .wp-block-navigation-item__content { padding: 6px 0; border-bottom: 1px solid transparent; white-space: nowrap; transition: border-color .2s; }
.wp-block-navigation.menu-principal .wp-block-navigation-item__content:hover { border-color: var(--blanc); }
body.category-actualite .lien-actualite > a, body.category-petrole-et-gaz .lien-petrole-et-gaz > a,
body.category-energies .lien-energies > a, body.category-economie .lien-economie > a,
body.category-technologies .lien-technologies > a, body.category-environnement .lien-environnement > a,
body.category-analyses .lien-analyses > a { border-color: var(--blanc) !important; }

/* Burger : paragraphe éditable, le script lui donne role="button" */
p.burger { display: none; font-size: 0; width: 42px; height: 42px; margin: 0; cursor: pointer;
  background: linear-gradient(var(--blanc), var(--blanc)) center 13px / 26px 2px no-repeat,
              linear-gradient(var(--blanc), var(--blanc)) center 20px / 26px 2px no-repeat,
              linear-gradient(var(--blanc), var(--blanc)) center 27px / 26px 2px no-repeat; }

/* ---------- Recherche (core/search) ---------- */
.wp-block-search.recherche { margin: 0; }
.wp-block-search.recherche .wp-block-search__inside-wrapper { border: 0; padding: 0; background: none; align-items: center; }
.wp-block-search.recherche .wp-block-search__button { background: none; border: 0; color: var(--blanc); padding: 6px; margin: 0 0 0 6px; }
.wp-block-search.recherche .wp-block-search__button svg { width: 26px; height: 26px; min-width: 26px; fill: currentColor; }
.wp-block-search .wp-block-search__input { background: transparent; color: var(--blanc); border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; padding: 10px 18px; font: inherit; font-size: 16px; }
.wp-block-search .wp-block-search__input::placeholder { color: var(--texte-doux); }
.wp-block-search.recherche-page { margin-top: 36px; max-width: 720px; }
.wp-block-search.recherche-page .wp-block-search__inside-wrapper { border: 0; padding: 0; gap: 12px; }
.wp-block-search.recherche-page .wp-block-search__button { border-radius: 999px; padding: 0 28px; margin: 0; font-size: 18px; background: var(--blanc); color: var(--marine); }

/* ---------- Boutons (core/button) : la classe est sur le conteneur ---------- */
.wp-block-button.btn-plein, .wp-block-button.btn-contour { display: inline-block; height: auto; padding: 0; border: 0; border-radius: 0; background: none; }
.wp-block-button.btn-plein .wp-block-button__link, .wp-block-button.btn-contour .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 38px; border-radius: 999px;
  font-size: 20px; font-family: inherit; white-space: nowrap; border: 2px solid var(--blanc); transition: background .2s, color .2s; }
.wp-block-button.btn-plein .wp-block-button__link { background: var(--blanc); color: var(--marine); }
.wp-block-button.btn-plein .wp-block-button__link:hover { background: transparent; color: var(--blanc); }
.wp-block-button.btn-contour .wp-block-button__link { background: transparent; color: var(--blanc); }
.wp-block-button.btn-contour .wp-block-button__link:hover { background: var(--blanc); color: var(--marine); }
.wp-block-buttons.hero-boutons { gap: 24px; }
.entete .wp-block-button .wp-block-button__link { height: 54px; padding: 0 24px; }

/* ---------- Globes décoratifs : pseudo-éléments (couches sans contenu) ---------- */
.hero::before, .abonnement::before, .page-tete::before {
  content: ""; position: absolute; pointer-events: none; z-index: 0;
  background: url("assets/img/globe.svg") center / contain no-repeat; }
.hero::before { width: 980px; height: 980px; left: 38%; top: -330px; opacity: .6; }
.abonnement::before { width: 760px; height: 760px; right: -120px; top: -140px; opacity: .8; }
.page-tete::before { width: 760px; height: 760px; right: -160px; top: -260px; opacity: .6; }
.abonnement .enveloppe { position: relative; z-index: 1; }

/* ---------- Bandeau des dossiers ---------- */
.dossiers-liste { display: flex; gap: 64px; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.dossiers-liste p { opacity: .92; line-height: 1; white-space: nowrap; }
.dossiers .marque-1 { font-size: 30px; } .dossiers .marque-2 { font-size: 22px; }
.dossiers .marque-3 { font-size: 27px; } .dossiers .marque-4 { font-size: 15px; } .dossiers .marque-5 { font-size: 26px; }

/* ---------- Cartes (post-template) ---------- */
.wp-block-post-template { list-style: none; margin: 0; padding: 0; }
.carte { position: relative; }
.carte .wp-block-post-featured-image { margin: 0; }
.carte .wp-block-post-featured-image img { width: 168px; height: 168px; object-fit: cover; border-radius: var(--rayon); }
.carte:not(:has(.wp-block-post-featured-image)) { grid-template-columns: minmax(0, 1fr); }
.carte .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; } /* toute la carte est cliquable */
.carte .wp-block-post-excerpt { display: none; }
.etiquette { display: flex; flex-wrap: wrap; gap: 0 10px; }
.etiquette a { position: relative; z-index: 1; }
.etiquette .wp-block-post-terms a ~ a, .etiquette .wp-block-post-terms__separator { display: none; }
.etiquette .wp-block-post-date::before { content: "·"; margin-right: 10px; }
.hero .etiquette .wp-block-post-date { display: none; }

/* ---------- À la une (accueil) et liste de rubrique ---------- */
.grille-une { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); column-gap: 72px; row-gap: 12px; align-items: start; }
.grille-une > li:first-child { grid-row: 1 / span 4; }

.grille-rubrique { display: grid; grid-template-columns: minmax(0, 1.275fr) minmax(0, .275fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.grille-rubrique > li:nth-child(even) { grid-column: 1; }
.grille-rubrique > li:nth-child(odd) { grid-column: 2 / 4; }
body:not(.paged) .liste-rubrique:not(.sans-vedette) .grille-rubrique > li:first-child { grid-column: 1 / 3; grid-row: 1 / span 4; margin-right: 60px; }
body:not(.paged) .liste-rubrique:not(.sans-vedette) .grille-rubrique > li:nth-child(-n+5):not(:first-child) { grid-column: 3; }
body:not(.paged) .liste-rubrique:not(.sans-vedette) .grille-rubrique > li:nth-child(n+6):nth-child(even) { grid-column: 1; }
body:not(.paged) .liste-rubrique:not(.sans-vedette) .grille-rubrique > li:nth-child(n+6):nth-child(odd) { grid-column: 2 / 4; }
body:not(.paged) .liste-rubrique:not(.sans-vedette) .grille-rubrique > li:nth-child(6),
body:not(.paged) .liste-rubrique:not(.sans-vedette) .grille-rubrique > li:nth-child(7) { margin-top: 60px; }

/* cartes compactes */
.grille-une > li .carte, .grille-rubrique > li .carte { grid-template-columns: 132px minmax(0, 1fr); gap: 28px; }
.grille-une > li .carte .wp-block-post-featured-image img, .grille-rubrique > li .carte .wp-block-post-featured-image img { width: 132px; height: 132px; }
.grille-une > li .carte h3, .grille-rubrique > li .carte h3 { font-size: 21px; margin-top: 12px; }
.grille-une > li .carte-corps, .grille-rubrique > li .carte-corps { padding: 8px 8px 8px 0; }

/* la vedette : grande photo, carte qui la chevauche */
.grille-une > li:first-child .carte,
body:not(.paged) .liste-rubrique:not(.sans-vedette) .grille-rubrique > li:first-child .carte { display: block; background: none; padding: 0; }
.grille-une > li:first-child .carte .wp-block-post-featured-image img,
body:not(.paged) .liste-rubrique:not(.sans-vedette) .grille-rubrique > li:first-child .carte .wp-block-post-featured-image img {
  width: 100%; height: auto; aspect-ratio: 16 / 10; object-position: 50% 30%; }
.grille-une > li:first-child .carte-corps,
body:not(.paged) .liste-rubrique:not(.sans-vedette) .grille-rubrique > li:first-child .carte-corps {
  position: relative; margin: -96px 0 0 48px; width: min(720px, 88%); background: #3b4466;
  border-radius: var(--rayon); padding: 36px 40px 40px; box-shadow: 0 30px 60px rgba(8, 12, 30, .35); }
.grille-une > li:first-child .carte:not(:has(.wp-block-post-featured-image)) .carte-corps,
body:not(.paged) .liste-rubrique:not(.sans-vedette) .grille-rubrique > li:first-child .carte:not(:has(.wp-block-post-featured-image)) .carte-corps { margin: 0; width: auto; }
.grille-une > li:first-child .carte h3,
body:not(.paged) .liste-rubrique:not(.sans-vedette) .grille-rubrique > li:first-child .carte h3 {
  font-size: clamp(28px, 2.3vw, 42px); line-height: 1.14; margin-top: 16px; color: var(--blanc); }
.grille-une > li:first-child .carte .wp-block-post-excerpt,
body:not(.paged) .liste-rubrique:not(.sans-vedette) .grille-rubrique > li:first-child .carte .wp-block-post-excerpt {
  display: block; font-size: 20px; line-height: 1.45; color: var(--texte-doux); margin-top: 20px; }
.grille-une > li:first-child .carte:hover,
body:not(.paged) .liste-rubrique:not(.sans-vedette) .grille-rubrique > li:first-child .carte:hover { background: none; }
.wp-block-post-excerpt__excerpt { margin: 0; }
.wp-block-post-excerpt__more-text { display: none; }

/* ---------- Rubriques de l'accueil ---------- */
.rubrique .rubrique-une, .rubrique .rubrique-liste { margin: 0; padding: 0; }
.rubrique .rubrique-une > li { border: 0; padding: 0; }
.rubrique .wp-block-post-featured-image img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--rayon); }
.rubrique-nom p { margin: 0; }
.rubrique .rubrique-liste { margin: 26px 16px 0; }
.rubrique-liste .wp-block-post-title { font-size: 18px; line-height: 1.35; font-weight: 400; letter-spacing: 0; }
.rubrique-liste .wp-block-post-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.rubrique-liste .wp-block-post-date { font-size: 14px; color: var(--texte-doux); margin-top: 6px; }
.rubriques-bas .pile, .article-aside .pile { padding-top: 0; }
.rubriques-bas .carte .wp-block-post-featured-image img { width: 260px; height: 190px; }

/* ---------- Analyses ---------- */
.analyses-liste { counter-reset: a; }
/* align-items:start + rattrapage optique : l'alignement sur ligne de base suit ici la dernière ligne du titre */
.analyses-liste > li::before { padding-top: .3em; }
.analyses-liste > li .wp-block-post-date { padding-top: .5em; }
.analyses-liste > li { counter-increment: a; display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 24px; align-items: start; border-top: 1px solid var(--ligne); padding: 36px 0; }
.analyses-liste > li:last-child { border-bottom: 1px solid var(--ligne); }
.analyses-liste > li::before { content: counter(a, decimal-leading-zero); font-size: 20px; color: var(--texte-doux); }
.analyses-liste .wp-block-post-title { font-size: clamp(24px, 2.1vw, 38px); line-height: 1.16; font-weight: 400; letter-spacing: -.02em; }
.analyses-liste .wp-block-post-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.analyses-liste .wp-block-post-excerpt { font-size: 18px; color: var(--texte-doux); margin-top: 12px; max-width: 46em; }
.analyses-liste .wp-block-post-date { font-size: 16px; color: var(--texte-doux); white-space: nowrap; }
.analyses-intro .wp-block-buttons { margin-top: 44px; }

/* ---------- Abonnement et pied ---------- */
.wp-block-buttons.reseaux { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 14px; }
.reseaux .wp-block-button { display: block; }
.wp-block-button.btn-plein.reseau-x .wp-block-button__link, .reseaux .wp-block-button .wp-block-button__link { display: flex; justify-content: space-between; gap: 40px; min-width: 300px; }
.reseaux .wp-block-button__link::after { content: ""; width: 22px; height: 22px; background: currentColor; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.reseau-x .wp-block-button__link::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.2 2.5h3.4l-7.4 8.4L23 21.5h-6.8l-5.3-6.9-6.1 6.9H1.4l7.9-9L1 2.5h7l4.8 6.3 5.4-6.3Zm-1.2 17h1.9L7.1 4.4H5.1l11.9 15.1Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.2 2.5h3.4l-7.4 8.4L23 21.5h-6.8l-5.3-6.9-6.1 6.9H1.4l7.9-9L1 2.5h7l4.8 6.3 5.4-6.3Zm-1.2 17h1.9L7.1 4.4H5.1l11.9 15.1Z'/%3E%3C/svg%3E"); }
.reseau-linkedin .wp-block-button__link::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.98 3.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5ZM3 9.5h4v11H3v-11Zm7 0h3.8v1.6h.1c.5-1 1.8-2 3.7-2 4 0 4.4 2.6 4.4 6v5.4h-4v-4.8c0-1.2 0-2.6-1.6-2.6s-1.9 1.2-1.9 2.5v4.9h-4v-11Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.98 3.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5ZM3 9.5h4v11H3v-11Zm7 0h3.8v1.6h.1c.5-1 1.8-2 3.7-2 4 0 4.4 2.6 4.4 6v5.4h-4v-4.8c0-1.2 0-2.6-1.6-2.6s-1.9 1.2-1.9 2.5v4.9h-4v-11Z'/%3E%3C/svg%3E"); }
.reseau-youtube .wp-block-button__link::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M23 7.2a3 3 0 0 0-2.1-2.1C19 4.6 12 4.6 12 4.6s-7 0-8.9.5A3 3 0 0 0 1 7.2 31 31 0 0 0 .5 12 31 31 0 0 0 1 16.8a3 3 0 0 0 2.1 2.1c1.9.5 8.9.5 8.9.5s7 0 8.9-.5a3 3 0 0 0 2.1-2.1 31 31 0 0 0 .5-4.8 31 31 0 0 0-.5-4.8ZM9.7 15.1V8.9l5.8 3.1-5.8 3.1Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M23 7.2a3 3 0 0 0-2.1-2.1C19 4.6 12 4.6 12 4.6s-7 0-8.9.5A3 3 0 0 0 1 7.2 31 31 0 0 0 .5 12 31 31 0 0 0 1 16.8a3 3 0 0 0 2.1 2.1c1.9.5 8.9.5 8.9.5s7 0 8.9-.5a3 3 0 0 0 2.1-2.1 31 31 0 0 0 .5-4.8 31 31 0 0 0-.5-4.8ZM9.7 15.1V8.9l5.8 3.1-5.8 3.1Z'/%3E%3C/svg%3E"); }
.abonnement p a { text-decoration: underline; }
.pied .pied-titre { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-doux); margin: 0 0 20px; }
.pied .logo { margin-top: 0; color: var(--blanc); font-size: 32px; }
.pied .pied-bas p { margin: 0; font-size: 15px; }
.pied-grille .pied-col-double { grid-column: span 2; }
.pied-col-double ul { grid-template-columns: 1fr 1fr; column-gap: 48px; }

/* ---------- Têtes de pages internes ---------- */
.page-tete .wp-block-query-title { font-size: clamp(48px, 6vw, 112px); line-height: 1.02; font-weight: 400; letter-spacing: -.02em; margin-top: 28px; }
.page-tete .page-chapo { margin-top: 36px; }
.page-tete .page-chapo p { margin: 0; }
.wp-block-navigation.puces { margin-top: 48px; }
.wp-block-navigation.puces .wp-block-navigation__container { gap: 10px; flex-wrap: wrap; }
.wp-block-navigation.puces .wp-block-navigation-item__content { display: inline-flex; align-items: center; height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .45); font-size: 17px; transition: background .2s, color .2s; }
.wp-block-navigation.puces .wp-block-navigation-item__content:hover { border-color: var(--blanc); }
body.category-actualite .puces .lien-actualite > a, body.category-petrole-et-gaz .puces .lien-petrole-et-gaz > a,
body.category-energies .puces .lien-energies > a, body.category-economie .puces .lien-economie > a,
body.category-technologies .puces .lien-technologies > a, body.category-environnement .puces .lien-environnement > a,
body.category-analyses .puces .lien-analyses > a { background: var(--blanc); color: var(--marine); border-color: var(--blanc); }

/* ---------- Pagination ---------- */
.wp-block-query-pagination.pagination { margin-top: 56px; gap: 10px; font-size: 17px; }
.pagination a, .pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .45); }
.pagination .wp-block-query-pagination-numbers { display: inline-flex; gap: 8px; }
.pagination .page-numbers.current { background: var(--blanc); color: var(--marine); border-color: var(--blanc); }
.pagination .page-numbers.dots { border: 0; }

/* ---------- Article ---------- */
.fil { align-items: baseline; }
.fil p { margin: 0; }
.fil .wp-block-post-terms a + .wp-block-post-terms__separator, .fil .wp-block-post-terms a ~ a { display: none; }
.meta .wp-block-post-terms::before { content: "·"; margin-right: 14px; }
.article .article-une img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--rayon); }
.contenu-article.wp-block-post-content > * { max-width: 760px; }
.contenu-article img { height: auto; }
.contenu-article .wp-caption { max-width: 100%; }
.contenu-article .wp-caption-text, .contenu-article figcaption { font-size: 15px; color: var(--texte-doux); margin-top: 8px; }
.contenu-page.wp-block-post-content { margin-top: 56px; }

/* ---------- Responsive ---------- */
@media (max-width: 1500px) {
  .wp-block-navigation.menu-principal .wp-block-navigation__container { gap: 22px; }
  .entete .wp-block-navigation.menu-principal { font-size: 17px; }
  .carte .wp-block-post-featured-image img { width: 140px; height: 140px; }
}
@media (max-width: 1240px) {
  .entete .wp-block-navigation.menu-principal { display: none; }
  p.burger { display: block; }
  .menu-ouvert .entete .wp-block-navigation.menu-principal { display: block; position: absolute; top: 100%; left: 0; right: 0; margin: 0; z-index: 20; background: var(--marine-profond); padding: 8px var(--gouttiere) 24px; font-size: 20px; border-bottom: 1px solid var(--ligne); }
  .menu-ouvert .wp-block-navigation.menu-principal .wp-block-navigation__container { flex-direction: column; align-items: stretch; gap: 0; }
  .menu-ouvert .wp-block-navigation.menu-principal .wp-block-navigation-item__content { display: block; padding: 14px 0; border-bottom: 1px solid var(--ligne); }
  .entete { position: relative; }
  .grille-une, .grille-rubrique { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
  .grille-une > li, .grille-une > li:first-child, .grille-rubrique > li,
  body:not(.paged) .liste-rubrique:not(.sans-vedette) .grille-rubrique > li { grid-column: 1 !important; grid-row: auto !important; margin-right: 0 !important; }
  body:not(.paged) .liste-rubrique:not(.sans-vedette) .grille-rubrique > li:nth-child(7) { margin-top: 0 !important; }
  .grille-une > li:first-child, body:not(.paged) .liste-rubrique:not(.sans-vedette) .grille-rubrique > li:first-child { margin-bottom: 44px; }
  .pied-grille .pied-col-double { grid-column: auto; }
}
@media (max-width: 760px) {
  .entete .entete-bouton { display: none; }
  .hero::before { width: 620px; height: 620px; left: 10%; top: -160px; }
  .wp-block-button.btn-plein .wp-block-button__link, .wp-block-button.btn-contour .wp-block-button__link { height: 50px; padding: 0 26px; font-size: 18px; }
  .wp-block-buttons.hero-boutons { gap: 12px; }
  .logo a::before { width: 48px; height: 32px; }
  .dossiers-liste { gap: 28px 36px; }
  .carte .wp-block-post-featured-image img,
  .grille-une > li .carte .wp-block-post-featured-image img, .grille-rubrique > li .carte .wp-block-post-featured-image img,
  .rubriques-bas .carte .wp-block-post-featured-image img { width: 104px; height: 104px; }
  .grille-une > li .carte, .grille-rubrique > li .carte, .rubriques-bas .carte { grid-template-columns: 104px minmax(0, 1fr); gap: 16px; }
  .grille-une > li .carte h3, .grille-rubrique > li .carte h3 { font-size: 18px; margin-top: 8px; }
  .grille-une > li:first-child .carte-corps,
  body:not(.paged) .liste-rubrique:not(.sans-vedette) .grille-rubrique > li:first-child .carte-corps { margin: -60px 12px 0; width: auto; padding: 26px 22px 28px; }
  .grille-une > li:first-child .carte .wp-block-post-excerpt,
  body:not(.paged) .liste-rubrique:not(.sans-vedette) .grille-rubrique > li:first-child .carte .wp-block-post-excerpt { font-size: 17px; }
  .analyses-liste > li { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 28px 0; }
  .reseaux .wp-block-button .wp-block-button__link, .wp-block-button.btn-plein.reseau-x .wp-block-button__link { min-width: 0; width: 100%; }
  .wp-block-navigation.puces { margin-top: 32px; }
  .wp-block-navigation.puces .wp-block-navigation__container { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .wp-block-navigation.puces .wp-block-navigation-item { flex: none; }
  .article .article-une img { aspect-ratio: 4 / 3; }
}
