/* =============================================================================
   OMAR BELMAMOUN — Identité de marque & système de design
   belmamoun-omar.com
   -----------------------------------------------------------------------------
   Concept       : « Dossier » éditorial — registre corporate, sobre, technique.
   Typographie   : Inter Tight (titres) · Inter (corps) · IBM Plex Mono
                   (libellés, données, numérotation des publications).
   Palette       : Ivoire · Vert pinède profond · Graphite · Bronze · Sauge.
   Signature      : Réseau de courbes de niveau (topographie) + numérotation
                   de dossier en caractères monospace.
   Structure CSS  :
     1.  Jetons de design (variables)
     2.  Réinitialisation & base
     3.  Typographie
     4.  Mise en page (conteneurs, grilles, sections)
     5.  En-tête & navigation (menu burger)
     6.  Boutons & liens
     7.  Section héros
     8.  Cartes (piliers, publications)
     9.  Bandeaux & éléments éditoriaux
     10. Pied de page
     11. Pages internes (À propos, Publications, Article)
     12. Animations & accessibilité (mouvement réduit, focus)
     13. Réactivité (responsive)
   ========================================================================== */


/* =============================================================================
   1. JETONS DE DESIGN
   ========================================================================== */
:root {
  /* — Couleurs — */
  --ivory:        #F6F3EC; /* fond papier chaud */
  --ivory-deep:   #EFEADE; /* fond alterné, cartes */
  --pinewood:     #122B22; /* vert profond — marque, sections sombres */
  --pinewood-700: #1B3A2E; /* vert intermédiaire */
  --graphite:     #1A1C19; /* texte principal */
  --bronze:       #A07A4A; /* accent — filets, liens, signatures */
  --bronze-soft:  #C2A074; /* accent clair sur fond sombre */
  --sage:         #6E7A6B; /* texte secondaire, légendes */
  --stone:        #DDD7C9; /* filets, séparateurs */
  --stone-soft:   #E7E1D4; /* filets discrets */
  --white:        #FCFAF5;

  /* — Typographie — */
  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; /* titres — sans tendu, sobre */
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-card:    "Inter Tight", "Inter", sans-serif; /* titres de cartes */

  /* — Échelle typographique (fluide) — */
  --step--1: clamp(0.78rem, 0.75rem + 0.15vw, 0.86rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.36rem + 0.7vw, 1.95rem);
  --step-3:  clamp(1.9rem, 1.64rem + 1.3vw, 2.85rem);
  --step-4:  clamp(2.4rem, 1.9rem + 2.5vw, 4rem);
  --step-5:  clamp(3rem, 2.2rem + 4vw, 5.5rem);

  /* — Rythme & mesure — */
  --measure: 68ch;
  --radius: 2px;        /* angles quasi nets — registre corporate */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);

  /* — Transitions — */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --speed: 0.5s;

  /* — Élévation — */
  --shadow-sm: 0 1px 2px rgba(18, 43, 34, 0.05);
  --shadow-md: 0 18px 50px -28px rgba(18, 43, 34, 0.45);
}


/* =============================================================================
   2. RÉINITIALISATION & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

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

body {
  background-color: var(--ivory);
  color: var(--graphite);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, picture { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; padding: 0; }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--pinewood); color: var(--ivory); }


/* =============================================================================
   3. TYPOGRAPHIE
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: var(--graphite);
  text-wrap: balance;
}

h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { text-wrap: pretty; }

/* Eyebrow — libellé monospace de « dossier » */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--bronze);
  flex: none;
}
.eyebrow--center { justify-content: center; }

/* Texte de premier paragraphe (chapeau) */
.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--graphite);
  font-weight: 400;
}

/* Mention en italique soutenu (sans italique, accent) */
.serif-em { font-family: var(--font-display); font-style: italic; }

.muted { color: var(--sage); }
.mono  { font-family: var(--font-mono); }


/* =============================================================================
   4. MISE EN PAGE
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 880px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--dark {
  background: var(--pinewood);
  color: var(--ivory);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--ivory); }
.section--alt { background: var(--ivory-deep); }

/* En-tête de section : eyebrow + titre + intro */
.section-head { max-width: 56ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .eyebrow { margin-bottom: 1.25rem; }
.section-head h2 { margin-bottom: 1.25rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* Filet de séparation fin */
.rule { height: 1px; background: var(--stone); border: 0; }
.rule--bronze { background: linear-gradient(90deg, var(--bronze), transparent); }


/* =============================================================================
   5. EN-TÊTE & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--stone); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
}

/* Logo texte minimaliste */
.brand {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--graphite);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  white-space: nowrap;
}
.brand .mark {
  width: 7px; height: 7px;
  transform: rotate(45deg);
  background: var(--bronze);
  flex: none;
}

/* Liens de navigation */
.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.6vw, 2.5rem);
}
.nav-menu a {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--graphite);
  position: relative;
  padding-block: 0.5rem;
  transition: color 0.3s var(--ease);
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-menu a:hover { color: var(--bronze); }
.nav-menu a:hover::after,
.nav-menu a[aria-current="page"]::after { transform: scaleX(1); }
.nav-menu a[aria-current="page"] { color: var(--bronze); }

/* Bouton burger (mobile) */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-right: -8px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--graphite);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* =============================================================================
   6. BOUTONS & LIENS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--pinewood); color: var(--ivory); }
.btn--primary:hover { background: var(--graphite); }

.btn--ghost { border-color: var(--stone); color: var(--graphite); }
.btn--ghost:hover { border-color: var(--bronze); color: var(--bronze); }

.btn--light { background: var(--ivory); color: var(--pinewood); }
.btn--light:hover { background: var(--white); }

/* Lien-texte avec flèche */
.link-arrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--graphite);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.link-arrow .arrow { transition: transform 0.35s var(--ease); color: var(--bronze); }
.link-arrow:hover { color: var(--bronze); }
.link-arrow:hover .arrow { transform: translateX(5px); }

/* Liens dans le corps de texte */
.prose a, .text-link {
  color: var(--pinewood);
  border-bottom: 1px solid var(--bronze);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.prose a:hover, .text-link:hover { color: var(--bronze); }


/* =============================================================================
   7. SECTION HÉROS
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 6rem) 0; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
  gap: clamp(2rem, 5vw, 5rem);
}

.hero-copy { padding-block: clamp(1rem, 4vw, 4rem) clamp(3rem, 6vw, 5rem); align-self: center; }
.hero-copy .eyebrow { margin-bottom: 1.75rem; }
.hero-title {
  font-size: var(--step-5);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}
.hero-title .serif-em { color: var(--bronze); }
.hero-lede { max-width: 46ch; margin-bottom: 2.5rem; color: var(--sage); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Panneau portrait (placeholder photographie) */
.hero-portrait {
  position: relative;
  background: var(--pinewood);
  border-radius: var(--radius);
  min-height: 460px;
  align-self: stretch;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero-portrait::after { /* filet bronze signature */
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(194, 160, 116, 0.35);
  pointer-events: none;
}

/* Bloc d'identité bas de portrait */
.hero-id {
  position: relative;
  z-index: 2;
  padding: 1.75rem;
  width: 100%;
  background: linear-gradient(to top, rgba(10, 24, 19, 0.92), transparent);
  color: var(--ivory);
}
.hero-id .role { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze-soft); }
.hero-id .name { font-family: var(--font-display); font-size: var(--step-2); margin-top: 0.4rem; color: var(--ivory); }

/* Bandeau de statistiques sous le héros */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--stone);
  margin-top: clamp(1rem, 3vw, 2rem);
}
.hero-stats .stat { padding: clamp(1.5rem, 3vw, 2.5rem) 0; padding-right: 1.5rem; border-left: 1px solid var(--stone); }
.hero-stats .stat:first-child { border-left: 0; padding-left: 0; }
.hero-stats .stat:not(:first-child) { padding-left: clamp(1rem, 2.5vw, 2rem); }
.stat .figure { font-family: var(--font-display); font-size: var(--step-3); color: var(--pinewood); line-height: 1; }
.stat .label { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); margin-top: 0.75rem; display: block; }

/* — Motif signature : courbes de niveau — */
.contours {
  position: absolute;
  inset: -10% -5% auto auto;
  width: min(60%, 720px);
  height: auto;
  color: var(--bronze);
  opacity: 0.16;
  z-index: -1;
  pointer-events: none;
}
.contours path { fill: none; stroke: currentColor; stroke-width: 1; }
.section--dark .contours { color: var(--bronze-soft); opacity: 0.18; }


/* =============================================================================
   8. CARTES
   ========================================================================== */

/* — Piliers d'expertise — */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--stone);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  overflow: hidden;
}
.pillar {
  background: var(--ivory);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.4s var(--ease);
}
.pillar:hover { background: var(--white); }
.pillar .pillar-mark {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  color: var(--bronze);
}
.pillar h3 { font-size: var(--step-1); }
.pillar p { color: var(--sage); font-size: 0.96rem; }

/* — Grille de publications / insights — */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--ivory);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
  height: 100%;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--stone-soft); }

.article-card .thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--pinewood);
  overflow: hidden;
}
.article-card .thumb .tag {
  position: absolute;
  top: 1rem; left: 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory);
  background: rgba(10, 24, 19, 0.55);
  border: 1px solid rgba(194, 160, 116, 0.4);
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius);
}
.article-card .card-body {
  padding: clamp(1.4rem, 2.5vw, 1.85rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}
.article-card .card-meta {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  color: var(--bronze);
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.article-card h3 {
  font-family: var(--font-card);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: var(--step-1);
  line-height: 1.22;
}
.article-card h3 a { transition: color 0.3s var(--ease); }
.article-card:hover h3 a { color: var(--pinewood); }
.article-card .excerpt { color: var(--sage); font-size: 0.95rem; flex: 1; }
.article-card .card-foot { margin-top: 0.5rem; }

/* État « à paraître » (stubs) */
.article-card.is-upcoming { background: var(--ivory-deep); }
.article-card.is-upcoming .thumb { background: var(--pinewood-700); opacity: 0.85; }
.badge-soon {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
}

/* Illustration de remplacement (placeholder) — dégradé + grain léger */
.media-placeholder {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 120% at 80% 0%, rgba(194, 160, 116, 0.35), transparent 55%),
    linear-gradient(160deg, #1B3A2E 0%, #102A22 55%, #0C1F19 100%);
}
.media-placeholder[data-variant="solar"] {
  background:
    radial-gradient(100% 100% at 75% 15%, rgba(194, 160, 116, 0.55), transparent 50%),
    linear-gradient(160deg, #1B3A2E, #0C1F19);
}
.media-placeholder[data-variant="water"] {
  background:
    radial-gradient(120% 120% at 20% 90%, rgba(110, 122, 107, 0.5), transparent 55%),
    linear-gradient(160deg, #16332A, #0C1F19);
}
.media-placeholder .ph-label {
  position: absolute;
  bottom: 1rem; left: 1rem; right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(246, 243, 236, 0.65);
}


/* =============================================================================
   9. BANDEAUX & ÉLÉMENTS ÉDITORIAUX
   ========================================================================== */

/* Citation de mise en avant */
.pullquote {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 22ch;
}
.pullquote .serif-em { color: var(--bronze); }

/* Bloc « manifeste » à deux colonnes */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

/* Liste de signature / valeurs */
.cred-list { display: grid; gap: 0; }
.cred-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--stone);
}
.cred-list li:last-child { border-bottom: 1px solid var(--stone); }
.cred-list .idx { font-family: var(--font-mono); font-size: var(--step--1); color: var(--bronze); padding-top: 0.35rem; }
.cred-list h4 { margin-bottom: 0.35rem; }
.cred-list p { color: var(--sage); font-size: 0.96rem; }

/* Appel à l'action (CTA) final */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 18ch; margin-inline: auto; margin-bottom: 1.5rem; }
.cta-band p { max-width: 52ch; margin-inline: auto; margin-bottom: 2.5rem; color: rgba(246, 243, 236, 0.78); }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }


/* =============================================================================
   10. PIED DE PAGE
   ========================================================================== */
.site-footer {
  background: var(--graphite);
  color: var(--ivory);
  padding-block: clamp(3.5rem, 6vw, 5.5rem) 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(246, 243, 236, 0.12);
}
.footer-brand .brand { color: var(--ivory); }
.footer-brand .brand .mark { background: var(--bronze-soft); }
.footer-brand p { color: rgba(246, 243, 236, 0.6); max-width: 34ch; margin-top: 1.25rem; font-size: 0.95rem; }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze-soft);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.footer-col ul { display: grid; gap: 0.8rem; }
.footer-col a { color: rgba(246, 243, 236, 0.78); font-size: 0.95rem; transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--bronze-soft); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: rgba(246, 243, 236, 0.5);
}


/* =============================================================================
   11. PAGES INTERNES
   ========================================================================== */

/* — En-tête de page (À propos, Publications) — */
.page-hero { padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem); }
.page-hero .eyebrow { margin-bottom: 1.5rem; }
.page-hero h1 { font-size: var(--step-4); margin-bottom: 1.5rem; max-width: 18ch; }
.page-hero .lede { max-width: 60ch; color: var(--sage); }

/* — À propos : portrait + biographie — */
.bio-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.bio-portrait {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--pinewood);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 110px;
}
.bio-portrait::after {
  content: "";
  position: absolute; inset: 12px;
  border: 1px solid rgba(194, 160, 116, 0.3);
}
.bio-caption {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  color: var(--sage);
  margin-top: 1rem;
}

/* — Corps de texte long (prose) — */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.5rem; }
.prose h2 { font-size: var(--step-2); margin-top: 3rem; margin-bottom: 0.5rem; }
.prose h3 { font-size: var(--step-1); margin-top: 2.5rem; margin-bottom: 0.25rem; }
.prose p { color: var(--graphite); }
.prose p.lede { color: var(--graphite); }
.prose blockquote {
  border-left: 2px solid var(--bronze);
  padding-left: 1.75rem;
  margin-block: 2.5rem;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-style: italic;
  line-height: 1.3;
  color: var(--pinewood);
}
.prose ul.bullets { margin-left: 0; display: grid; gap: 0.85rem; }
.prose ul.bullets li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--graphite);
}
.prose ul.bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65em;
  width: 7px; height: 7px;
  transform: rotate(45deg);
  background: var(--bronze);
}
.prose figure { margin-block: 2.5rem; }
.prose figure .fig-media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--pinewood);
}
.prose figcaption {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--sage);
  margin-top: 0.85rem;
  letter-spacing: 0.04em;
}

/* — Article : en-tête + corps + barre latérale — */
.article-header { padding-block: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); }
.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  color: var(--bronze);
  margin-bottom: 1.75rem;
}
.article-meta-row .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--stone); }
.article-title { font-size: var(--step-4); max-width: 20ch; margin-bottom: 1.5rem; }
.article-standfirst { font-size: var(--step-1); line-height: 1.5; color: var(--sage); max-width: 56ch; }

.article-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--pinewood);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

/* Barre latérale collante */
.article-aside { position: sticky; top: 110px; display: grid; gap: 2.5rem; }
.aside-block h5 {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
  padding-bottom: 0.85rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--stone);
}
.toc-list { display: grid; gap: 0.85rem; }
.toc-list a { font-size: 0.92rem; color: var(--sage); transition: color 0.3s var(--ease); display: block; }
.toc-list a:hover { color: var(--bronze); }
.aside-author { display: flex; gap: 1rem; align-items: center; }
.aside-author .avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--pinewood); flex: none; }
.aside-author .a-name { font-family: var(--font-display); font-size: 1.05rem; }
.aside-author .a-role { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage); }
.share-list { display: flex; gap: 0.6rem; }
.share-list a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--sage);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.share-list a:hover { border-color: var(--bronze); color: var(--bronze); }

/* Bloc « publications associées » */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2rem); }

/* — Contact — */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.contact-list { display: grid; gap: 0; margin-top: 2rem; }
.contact-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding-block: 1.25rem;
  border-top: 1px solid rgba(246, 243, 236, 0.14);
  align-items: baseline;
}
.contact-list li:last-child { border-bottom: 1px solid rgba(246, 243, 236, 0.14); }
.contact-list .k { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--bronze-soft); }
.contact-list .v { font-size: 1.05rem; }
.contact-list .v a { border-bottom: 1px solid rgba(194,160,116,0.4); }


/* =============================================================================
   12. ANIMATIONS & ACCESSIBILITÉ
   ========================================================================== */

/* Focus visible — accessibilité clavier */
:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
  border-radius: 1px;
}

/* Lien d'évitement */
.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  background: var(--pinewood);
  color: var(--ivory);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  z-index: 100;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* Révélation au défilement */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }

/* Apparition du héros au chargement */
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
.animate-rise { animation: rise 1s var(--ease) both; }
.animate-rise[data-delay="1"] { animation-delay: 0.12s; }
.animate-rise[data-delay="2"] { animation-delay: 0.24s; }
.animate-rise[data-delay="3"] { animation-delay: 0.36s; }
.animate-rise[data-delay="4"] { animation-delay: 0.48s; }

/* Respect du réglage « mouvement réduit » */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}


/* =============================================================================
   13. RÉACTIVITÉ
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { min-height: 380px; order: -1; }
  .insights-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .bio-portrait { position: static; }
}

@media (max-width: 768px) {
  /* Navigation mobile — menu déroulant */
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    inset: 84px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--stone);
    padding: 0.5rem var(--gutter) 1.5rem;
    transform: translateY(-130%);
    transition: transform 0.5s var(--ease);
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - 84px);
    overflow-y: auto;
  }
  .nav-menu.is-open { transform: translateY(0); }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; width: 100%; padding-block: 1rem; border-bottom: 1px solid var(--stone-soft); font-size: 1.05rem; }
  .nav-menu a::after { display: none; }

  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero-stats .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .hero-stats .stat { border-top: 1px solid var(--stone); }

  .pillars { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .bio-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .article-aside { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .insights-grid, .related-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 0.35rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}


/* =============================================================================
   14. INTÉGRATION WORDPRESS  (blocs Gutenberg, médias, menus, a11y)
   ========================================================================== */

/* Décalage de l'en-tête collé sous la barre d'administration */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .nav-menu { inset: 130px 0 auto 0; }
}

/* Texte réservé aux lecteurs d'écran */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; word-wrap: normal !important;
}

/* Logo personnalisé */
.brand .custom-logo { height: 26px; width: auto; }

/* État actif des éléments de menu WordPress */
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a,
.nav-menu .current-menu-parent > a { color: var(--bronze); }
.nav-menu .current-menu-item > a::after,
.nav-menu .current_page_item > a::after { transform: scaleX(1); }

/* Images de mise en avant remplissant les emplacements média */
.article-card .thumb img,
.hero-portrait img,
.bio-portrait img,
.article-cover img,
.prose .fig-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-card .thumb { display: block; }

/* Contenu d'article (the_content enveloppé dans .prose) */
.prose > .alignwide { width: min(100%, 1040px); margin-inline: auto; }
.prose > .alignfull { width: 100%; }
.prose .wp-block-image { margin-block: 2.5rem; }
.prose .wp-block-image img { border-radius: var(--radius); width: 100%; }
.prose .wp-block-image figcaption {
  font-family: var(--font-mono); font-size: var(--step--1); color: var(--sage);
  margin-top: 0.85rem; letter-spacing: 0.04em; text-align: left;
}
.prose .wp-block-quote { border: 0; padding: 0; margin-block: 2.5rem; }
.prose .wp-block-list { margin-left: 1.1rem; display: grid; gap: 0.6rem; }
.prose .wp-block-list.bullets { margin-left: 0; }
.prose ol { margin-left: 1.1rem; display: grid; gap: 0.6rem; }
.prose .wp-block-separator {
  border: 0; height: 1px; background: var(--stone); margin-block: 3rem; max-width: none;
}

/* Pagination des archives */
.pagination { margin-top: clamp(2.5rem, 5vw, 4rem); }
.pagination .nav-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
}
.pagination .page-numbers {
  font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.04em;
  min-width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--stone); border-radius: var(--radius); color: var(--graphite);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
  padding-inline: 0.75rem;
}
.pagination .page-numbers:hover { border-color: var(--bronze); color: var(--bronze); }
.pagination .page-numbers.current { background: var(--pinewood); color: var(--ivory); border-color: var(--pinewood); }

/* Page d'importation (admin) */
.belmamoun-admin { max-width: 760px; }
.belmamoun-admin .card { padding: 1.5rem 1.75rem; }
.belmamoun-admin .belmamoun-steps li { margin-bottom: 0.4rem; }
