/*
Theme Name: Résister au monde
Theme URI: https://annesophiepau.com
Author: Anne-Sophie Pau
Description: Thème test d'annesophiepau.com. Colonne de navigation à gauche, menu horizontal en haut, hero, vignettes des rubriques, dernière vidéo, article à la une, Kit de Résistance Spirituelle. Palette marbre, bleu égée, or et cuivre, halos bleu électrique. Reprend les contenus du thème Portail (Transmissions, Instants, Outils, Vidéos).
Version: 0.6.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: lobby-mondes
*/

/* ==============================================
   1. PALETTE ET MATIÈRES
   Relevées sur la planche : Aegean Blue, Luminous Gold, Marble White, Circuitry Bronze
   ============================================== */
:root {
  /* Couleurs de base */
  --marbre:        #F3F1EE;
  --marbre-2:      #E7E4E0;
  --veine:         #A9A6A3;
  --papier:        #FBFAF8;
  --egee:          #0C4A75;   /* bleu égée */
  --egee-clair:    #1B6596;
  --egee-profond:  #0A2B47;   /* titres, panneaux sombres */
  --electrique:    #3AA6F0;   /* bleu électrique */
  --halo:          #8FD6FF;
  --or:            #CDA76A;
  --or-clair:      #EBD29C;
  --cuivre:        #A8693F;
  --cuivre-clair:  #D49A6A;
  --texte:         #1E2D3D;
  --texte-doux:    #5B6875;
  --texte-sur-bleu:#DCE7F0;

  /* Métaux (dégradés) */
  --metal-or:     linear-gradient(135deg, #9C7942 0%, #EBD29C 32%, #B88E52 55%, #F4E1B0 78%, #A57F46 100%);
  --metal-cuivre: linear-gradient(135deg, #7B4A2A 0%, #D49A6A 38%, #A0643B 62%, #E2B085 85%, #8A5532 100%);
  --metal-bleu:   linear-gradient(160deg, #1B6596 0%, #0C4A75 45%, #0A2B47 100%);

  /* Halos bleu électrique */
  --glow:      0 0 0 1px rgba(143, 214, 255, .35), 0 0 22px rgba(58, 166, 240, .28);
  --glow-fort: 0 0 0 1px rgba(143, 214, 255, .7), 0 0 34px rgba(58, 166, 240, .55);
  --ombre:     0 18px 40px -22px rgba(10, 43, 71, .45);

  /* Marbre : veines générées en SVG (aucune image à charger) */
  --texture-marbre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1000' height='1000'%3E%3Cfilter id='v' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0016 0.0042' numOctaves='4' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='table' tableValues='0 0 0 0 0 0 0 0 0 0 0 0 0 0 .2 0 0 0 0 0 0 0 0 0 0 0 0 0 0'/%3E%3C/feComponentTransfer%3E%3CfeGaussianBlur stdDeviation='.7'/%3E%3C/filter%3E%3Cfilter id='w' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.003 0.008' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='table' tableValues='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .14 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' fill='%238E8B88' filter='url(%23v)'/%3E%3Crect width='100%25' height='100%25' fill='%23B5925F' filter='url(%23w)'/%3E%3C/svg%3E");
  /* Grain léger pour les panneaux bleus (effet pierre/métal brossé) */
  --texture-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' seed='5'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");

  --titre-caps: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --titre:      'Cormorant Garamond', Georgia, serif;
  --corps:      'Lato', 'Helvetica Neue', Arial, sans-serif;

  --sidebar-w: 236px;
  --header-h:  96px;
  --radius:    6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--marbre);
  background-image:
    radial-gradient(ellipse at 80% 0%, rgba(255,255,255,.9), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(205,167,106,.10), transparent 50%),
    var(--texture-marbre);
  background-size: auto, auto, 1000px 1000px;
  background-attachment: fixed;
  color: var(--texte);
  font-family: var(--corps);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--egee); text-decoration: none; transition: color .2s; }
a:hover { color: var(--cuivre); }
h1, h2, h3, h4 { font-family: var(--titre); font-weight: 500; line-height: 1.2; color: var(--egee-profond); margin: 0 0 .5em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 999; top: 8px; left: 8px; padding: 8px 14px; background: var(--egee); color: #fff; }
:focus-visible { outline: 2px solid var(--electrique); outline-offset: 2px; }

.eyebrow { font-family: var(--corps); text-transform: uppercase; letter-spacing: .2em; font-size: 10.5px; font-weight: 700; }

/* Texte en or ou cuivre métallique */
.texte-or { background: var(--metal-or); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Étoile : remplie d'or métallique */
.star { display: inline-block; width: 22px; height: 22px; color: var(--or); filter: drop-shadow(0 0 6px rgba(143,214,255,.6)); }
.star svg { width: 100%; height: 100%; display: block; }
.star svg path { fill: url(#lobby-or); }

/* ==============================================
   2. STRUCTURE
   ============================================== */
.site {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  grid-template-areas: "header header" "side main" "footer footer";
  min-height: 100vh;
  max-width: 1440px;
  margin: 0 auto;
}
.site-header { grid-area: header; }
.site-sidebar { grid-area: side; }
.site-main { grid-area: main; padding: 0 28px 44px; min-width: 0; }
.site-footer { grid-area: footer; }

/* ==============================================
   3. HEADER
   ============================================== */
.site-header {
  background: linear-gradient(180deg, rgba(243,241,238,.85), rgba(243,241,238,.5));
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: var(--header-h); padding: 0 28px; position: relative;
}
.site-header::after { /* filet or métallique */
  content: ""; position: absolute; left: 28px; right: 28px; bottom: 0; height: 2px;
  background: var(--metal-or); opacity: .85;
}
.brand { display: flex; align-items: center; gap: 16px; color: var(--egee-profond); }
.brand:hover { color: var(--egee-profond); }
.brand .star { width: 32px; height: 32px; }
.brand-logo img { max-height: 58px; width: auto; }
.brand-name { font-family: var(--titre-caps); font-size: 20px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; line-height: 1; color: var(--egee-profond); }
.brand-tagline { display: block; margin-top: 7px; color: var(--cuivre); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; font-weight: 700; }

.header-right { display: flex; align-items: center; gap: 26px; }
.top-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.top-nav li { display: flex; align-items: center; }
.top-nav li + li::before { content: "◆"; font-size: 6px; color: var(--or); margin-right: 6px; }
.top-nav a { color: var(--egee-profond); padding: 6px 8px; text-transform: uppercase; letter-spacing: .18em; font-size: 11px; font-weight: 700; }
.top-nav a:hover, .top-nav .current-menu-item > a { color: var(--egee-clair); text-shadow: 0 0 12px rgba(58,166,240,.45); }

.header-icons { display: flex; gap: 12px; align-items: center; }
.icon-btn {
  background: none; border: 1px solid transparent; border-radius: 50%; padding: 4px; cursor: pointer; color: var(--egee-profond);
  display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; transition: box-shadow .2s, color .2s;
}
.icon-btn:hover { color: var(--egee); box-shadow: var(--glow); }
.icon-btn svg { width: 19px; height: 19px; }
.menu-toggle { display: none; }

.header-search { display: none; position: absolute; right: 28px; top: calc(100% + 8px); z-index: 30; }
.header-search.is-open { display: block; }
.search-form { display: flex; border: 1px solid rgba(12,74,117,.25); background: var(--papier); border-radius: 999px; overflow: hidden; box-shadow: var(--ombre); }
.search-form input[type="search"] { background: transparent; border: 0; color: var(--texte); padding: 10px 16px; min-width: 240px; font: inherit; }
.search-form input[type="search"]:focus { outline: none; }
.search-form button { background: var(--metal-bleu); color: #fff; border: 0; padding: 0 16px; cursor: pointer; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; }

/* ==============================================
   4. COLONNE GAUCHE
   ============================================== */
.site-sidebar { padding: 30px 0; position: relative; background: linear-gradient(90deg, rgba(243,241,238,.85), rgba(243,241,238,.55)); }
.site-sidebar::after { /* trait vertical cuivre */
  content: ""; position: absolute; right: 0; top: 30px; bottom: 30px; width: 1px;
  background: linear-gradient(180deg, transparent, var(--cuivre-clair) 15%, var(--cuivre-clair) 85%, transparent);
}
.sidebar-inner { position: sticky; top: 20px; }
.side-nav ul { list-style: none; margin: 0 0 0 28px; padding: 0 0 18px; border-left: 1px solid rgba(168,105,63,.45); }
.side-nav li { position: relative; }
.side-nav li::before { content: ""; position: absolute; left: -3px; top: 50%; width: 5px; height: 5px; margin-top: -2px; transform: rotate(45deg); background: var(--or); }
.side-nav a { display: block; padding: 10px 18px 10px 20px; color: var(--egee-profond); text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 700; line-height: 1.5; }
.side-nav a:hover { color: var(--egee-clair); }
.side-nav .current-menu-item > a,
.side-nav .current_page_item > a,
.side-nav .is-active > a {
  color: #fff; background: var(--metal-bleu);
  margin-left: -29px; padding-left: 49px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
  box-shadow: inset 0 0 18px rgba(143,214,255,.35);
}
.side-nav .sub-menu { border-left: 0; margin-left: 14px; padding-bottom: 0; }
.side-quote { margin: 10px 28px 0; padding-top: 22px; border-top: 1px solid rgba(168,105,63,.35); font-family: var(--titre); font-style: italic; font-size: 19px; line-height: 1.4; color: var(--cuivre); }
.side-star { margin: 22px 0 0 28px; }
.side-visual { margin: 28px 16px 0; border-radius: 120px 120px 6px 6px; overflow: hidden; box-shadow: var(--ombre); border: 2px solid var(--or-clair); }
.side-visual img { width: 100%; aspect-ratio: 3/5; object-fit: cover; }

/* ==============================================
   5. PANNEAUX BLEU ÉGÉE (vignettes, vidéo)
   ============================================== */
.panel {
  position: relative;
  background: var(--texture-grain), var(--metal-bleu);
  color: var(--texte-sur-bleu);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--ombre), 0 0 0 1px rgba(205,167,106,.65);
}
.panel::after { /* filet or intérieur */
  content: ""; position: absolute; inset: 6px; border: 1px solid rgba(235,210,156,.35); border-radius: 3px; pointer-events: none;
}

.section-title {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--titre-caps); text-transform: uppercase; letter-spacing: .14em; font-size: 15px; font-weight: 500; color: var(--egee-profond);
  margin: 38px 0 18px;
}
.section-title::before { content: "◆"; font-size: 9px; color: var(--or); }
.section-title::after { content: ""; flex: 0 0 140px; height: 2px; background: var(--metal-or); }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 26px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .18em; font-size: 11px; font-weight: 700;
  transition: box-shadow .25s, transform .25s;
}
.btn-or { background: var(--metal-or); color: var(--egee-profond); box-shadow: 0 6px 18px -8px rgba(156,121,66,.8); }
.btn-or:hover { color: var(--egee-profond); box-shadow: var(--glow-fort); transform: translateY(-1px); }
.arrow { display: inline-block; width: 22px; height: 10px; }
.arrow svg { width: 100%; height: 100%; display: block; }

/* ==============================================
   6. HERO
   ============================================== */
.hero {
  position: relative; min-height: 460px; margin-top: 26px;
  display: grid; grid-template-columns: minmax(0, 1fr) 118px;
  border-radius: var(--radius); overflow: hidden;
  background-color: var(--egee-profond); background-size: cover; background-position: center;
  box-shadow: var(--ombre), 0 0 0 1px rgba(205,167,106,.7);
}
.hero::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,43,71,.7) 0%, rgba(10,43,71,.45) 50%, rgba(10,43,71,.1) 100%),
              linear-gradient(0deg, rgba(10,43,71,.7), transparent 50%);
}
.hero.no-image {
  background-image:
    radial-gradient(circle at 70% 28%, rgba(143,214,255,.40), transparent 26%),
    radial-gradient(circle at 18% 85%, rgba(212,154,106,.30), transparent 40%),
    var(--texture-grain),
    var(--metal-bleu);
}
.hero::after { /* arcs lumineux discrets, rappel des orbites de la planche */
  content: ""; position: absolute; width: 560px; height: 560px; left: 68%; top: 50%; transform: translate(-50%, -50%) rotate(-18deg);
  border: 1px solid rgba(143,214,255,.28); border-radius: 50%; box-shadow: 0 0 30px rgba(58,166,240,.15); pointer-events: none;
  clip-path: ellipse(50% 22% at 50% 50%);
}
.hero-content { position: relative; z-index: 1; align-self: center; padding: 56px 40% 56px 48px; }
.hero-title { font-family: var(--titre-caps); font-weight: 500; font-size: clamp(28px, 3.3vw, 44px); text-transform: uppercase; letter-spacing: .04em; line-height: 1.15; color: #fff; margin-bottom: 18px; text-shadow: 0 0 24px rgba(143,214,255,.35); }
.hero-subtitle { font-family: var(--titre); font-style: italic; font-size: 23px; color: var(--or-clair); margin: 0 0 30px; }

.hero-rail {
  position: relative; z-index: 1; margin: 26px 16px 26px 0;
  border-radius: 999px; background: rgba(255,255,255,.08); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: var(--glow);
  display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 26px 8px;
}
.hero-rail-caption { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--or-clair); text-align: center; font-weight: 700; padding-bottom: 14px; border-bottom: 1px solid rgba(235,210,156,.35); }
.hero-rail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; align-items: center; }
.rail-dot { position: relative; display: block; width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,.25); box-shadow: 0 0 0 1px var(--halo), 0 0 12px rgba(58,166,240,.6); }
.rail-dot:hover, .rail-dot.is-main { background: #fff; box-shadow: 0 0 0 1px #fff, 0 0 18px 6px rgba(143,214,255,.75); }
.rail-dot.is-main { width: 26px; height: 26px; }
.rail-dot .rail-label { position: absolute; right: calc(100% + 14px); top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 10px; letter-spacing: .15em; text-transform: uppercase; background: var(--papier); color: var(--egee-profond); padding: 4px 12px; border-radius: 999px; box-shadow: var(--glow); opacity: 0; pointer-events: none; transition: opacity .2s; font-weight: 700; }
.rail-dot:hover .rail-label, .rail-dot:focus .rail-label { opacity: 1; }

/* ==============================================
   7. VIGNETTES DES RUBRIQUES + ENCART
   ============================================== */
.mondes-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 170px; gap: 18px; align-items: stretch; }
.monde-card { background: #0D3E63; display: flex; flex-direction: column; min-height: 300px; transition: transform .25s, box-shadow .25s; }
.monde-card:hover { transform: translateY(-4px); box-shadow: var(--ombre), var(--glow-fort); color: var(--texte-sur-bleu); }
.monde-media { position: relative; aspect-ratio: 4/3; overflow: hidden;
  background: radial-gradient(circle at 50% 45%, rgba(143,214,255,.32), transparent 45%), linear-gradient(180deg, #1B6596, #0D3E63); }
.monde-media { -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
.monde-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.monde-card:hover .monde-media img { transform: scale(1.05); }
.monde-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #0D3E63 0%, rgba(13,62,99,0) 60%); }
.monde-body { position: relative; z-index: 1; padding: 0 18px 18px; margin-top: -50px; display: flex; flex-direction: column; flex: 1; }
.monde-title { font-family: var(--titre-caps); font-size: 19px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: #fff; margin: 0 0 6px; }
.monde-sub { font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; margin: 0 0 12px; background: var(--metal-or); -webkit-background-clip: text; background-clip: text; color: transparent; }
.monde-text { font-size: 13.5px; line-height: 1.55; color: var(--texte-sur-bleu); opacity: .85; margin: 0; flex: 1; }
.monde-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; color: var(--or-clair); }
.badge { font-size: 9.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--halo); border: 1px solid rgba(143,214,255,.6); padding: 2px 8px; border-radius: 999px; }

/* Encart "Mon histoire" : bulle de verre lumineuse */
.encart {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  text-align: center; padding: 26px 16px; border-radius: 90px;
  background: rgba(255,255,255,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--glow), var(--ombre); color: var(--egee-profond); transition: box-shadow .25s;
}
.encart:hover { box-shadow: var(--glow-fort), var(--ombre); color: var(--egee-profond); }
.encart-photo { width: 104px; height: 104px; border-radius: 50%; padding: 3px; background: var(--metal-or); box-shadow: 0 0 20px rgba(143,214,255,.6); }
.encart-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.encart p { font-family: var(--titre); font-style: italic; font-size: 18px; line-height: 1.35; margin: 0; }
.encart-lien { display: inline-flex; align-items: center; gap: 8px; color: var(--cuivre); }

/* ==============================================
   8. RANGÉE BASSE : VIDÉO / À LA UNE / RÉSEAUX
   ============================================== */
.lobby-bottom { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.4fr) minmax(0, .62fr); gap: 18px; margin-top: 30px; }

.video-card { display: flex; flex-direction: column; }
.video-frame { position: relative; aspect-ratio: 16/9; background: var(--egee-profond); }
.video-frame img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 66px; height: 66px; border-radius: 50%; cursor: pointer; border: 0;
  background: rgba(255,255,255,.18); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); color: #fff;
  box-shadow: var(--glow-fort); display: flex; align-items: center; justify-content: center; transition: transform .2s, background .2s;
}
.video-play:hover { background: var(--metal-or); color: var(--egee-profond); transform: translate(-50%, -50%) scale(1.07); }
.video-play svg { width: 22px; height: 22px; margin-left: 4px; }
.video-meta { padding: 14px 18px 18px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.video-meta .eyebrow { display: block; color: var(--or-clair); font-size: 9.5px; margin-bottom: 4px; }
.video-meta a { color: #fff; font-size: 14px; }
.video-meta a:hover { color: var(--halo); }
.video-meta .duree { color: var(--texte-sur-bleu); opacity: .7; font-size: 12px; white-space: nowrap; }

/* Article à la une : papier à en-tête, bande cuivre en haut */
.journal-card {
  position: relative; background: var(--papier); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--ombre), 0 0 0 1px rgba(168,105,63,.35);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
}
.journal-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--metal-cuivre); z-index: 1; }
.journal-text { padding: 30px 30px 26px; display: flex; flex-direction: column; }
.journal-text .eyebrow { color: var(--cuivre); margin-bottom: 14px; }
.journal-titre { font-family: var(--titre); font-size: 25px; font-weight: 600; line-height: 1.2; margin: 0 0 14px; }
.journal-titre a { color: var(--egee-profond); }
.journal-titre a:hover { color: var(--egee-clair); }
.journal-quote { font-family: var(--titre); font-style: italic; font-size: 19px; line-height: 1.45; color: var(--texte-doux); margin: 0 0 18px; flex: 1; }
.link-line { display: inline-flex; align-items: center; gap: 10px; color: var(--egee); text-transform: uppercase; letter-spacing: .16em; font-size: 10.5px; font-weight: 700; padding-bottom: 4px; align-self: flex-start; border-bottom: 2px solid; border-image: var(--metal-or) 1; }
.link-line:hover { color: var(--cuivre); }
.journal-visual { background: radial-gradient(circle at 60% 40%, rgba(143,214,255,.35), transparent 45%), var(--marbre-2); }
.journal-visual img { width: 100%; height: 100%; object-fit: cover; }

/* Réseaux : plaque de cuivre */
.join-card { border-radius: var(--radius); background: var(--texture-grain), var(--metal-cuivre); box-shadow: var(--ombre); display: flex; color: #fff; }
.join-body { padding: 24px 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; justify-content: space-between; }
.join-body .eyebrow { color: rgba(255,255,255,.8); }
.join-body p { font-family: var(--titre); font-style: italic; font-size: 24px; line-height: 1.2; color: #fff; margin: 0; flex: 1; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.socials a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.6); color: #fff; display: flex; align-items: center; justify-content: center; transition: box-shadow .2s, background .2s; }
.socials a:hover { background: var(--egee); color: #fff; box-shadow: var(--glow-fort); }
.socials svg { width: 15px; height: 15px; }

/* 3 derniers articles */
.derniers { margin-top: 10px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-head .link-line { margin-top: 20px; }
.derniers-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.article-card { display: flex; flex-direction: column; background: var(--papier); border-radius: var(--radius); overflow: hidden; color: var(--texte); box-shadow: var(--ombre), 0 0 0 1px rgba(168,105,63,.25); transition: transform .25s, box-shadow .25s; position: relative; }
.article-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--metal-cuivre); z-index: 1; }
.article-card:hover { transform: translateY(-4px); color: var(--texte); box-shadow: var(--ombre), var(--glow); }
.article-media { aspect-ratio: 16/9; background: radial-gradient(circle at 50% 45%, rgba(143,214,255,.3), transparent 50%), var(--marbre-2); overflow: hidden; }
.article-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.article-card:hover .article-media img { transform: scale(1.04); }
.article-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.article-meta { margin: 0 0 8px; color: var(--cuivre); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.article-body h3 { font-size: 22px; font-weight: 600; margin: 0 0 10px; color: var(--egee-profond); }
.article-excerpt { margin: 0 0 14px; color: var(--texte-doux); font-size: 14px; line-height: 1.55; flex: 1; }
.article-lire { display: inline-flex; align-items: center; gap: 8px; color: var(--egee); font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

/* Grand encart Lectio */
.lectio {
  margin-top: 34px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center;
  border-radius: var(--radius); overflow: hidden; position: relative;
  background: radial-gradient(circle at 78% 50%, rgba(143,214,255,.28), transparent 45%), var(--texture-grain), var(--metal-bleu);
  box-shadow: var(--ombre), 0 0 0 1px rgba(205,167,106,.7); color: var(--texte-sur-bleu);
}
.lectio::after { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(235,210,156,.3); border-radius: 3px; pointer-events: none; }
.lectio-text { padding: 44px 40px; position: relative; z-index: 1; }
.lectio-text .eyebrow { color: var(--or-clair); }
.lectio h2 { font-family: var(--titre-caps); font-weight: 500; font-size: 40px; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin: 8px 0 4px; text-shadow: 0 0 24px rgba(143,214,255,.4); }
.lectio-sous { font-family: var(--titre); font-style: italic; font-size: 21px; color: var(--or-clair); margin: 0 0 16px; }
.lectio-points { list-style: none; margin: 18px 0 26px; padding: 0; }
.lectio-points li { position: relative; padding-left: 22px; margin-bottom: 8px; font-size: 14.5px; }
.lectio-points li::before { content: "◆"; position: absolute; left: 0; top: 1px; font-size: 9px; color: var(--or); }
.lectio-note { font-size: 12px; opacity: .7; margin: 12px 0 0; }
.lectio-visual { display: block; padding: 34px 34px 34px 0; position: relative; z-index: 1; }
.lectio-ecran { display: block; border-radius: 10px; overflow: hidden; padding: 6px; background: var(--metal-or); box-shadow: 0 0 0 1px rgba(143,214,255,.5), 0 0 40px rgba(58,166,240,.45), 0 24px 50px -20px rgba(0,0,0,.6); transform: perspective(1400px) rotateY(-6deg); transition: transform .4s; }
.lectio-visual:hover .lectio-ecran { transform: perspective(1400px) rotateY(0deg); }
.lectio-ecran img { border-radius: 6px; width: 100%; }

/* Bandeau Kit de Résistance Spirituelle */
.kit-band { margin-top: 30px; }
.kit-band .widget-leadmagnet { margin: 0 !important; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 34px; align-items: center; }
.kit-band .widget-leadmagnet > .eyebrow, .kit-band .widget-leadmagnet > h3, .kit-band .widget-leadmagnet > p:not(.no-spam) { grid-column: 1; }
.kit-band .widget-leadmagnet form { grid-column: 2; grid-row: 1 / span 4; }
.kit-band .widget-leadmagnet .no-spam { grid-column: 2; }

/* La lettre du dimanche (bandeau bas de page) */
.lettre {
  margin-top: 34px; padding: 30px 34px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 30px; align-items: center;
  background: var(--papier); border-radius: var(--radius); box-shadow: var(--ombre), 0 0 0 1px rgba(168,105,63,.3);
}
.lettre::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--metal-cuivre); }
.lettre .eyebrow { color: var(--cuivre); }
.lettre h2 { font-family: var(--titre-caps); font-weight: 500; font-size: 24px; letter-spacing: .05em; text-transform: uppercase; margin: 6px 0 6px; }
.lettre-text p { margin: 0; font-family: var(--titre); font-style: italic; font-size: 19px; color: var(--texte-doux); }
.lettre-champs { display: flex; gap: 10px; flex-wrap: wrap; }
.lettre-champs input { flex: 1 1 160px; min-width: 0; padding: 12px 16px; border-radius: 999px; border: 1px solid rgba(12,74,117,.25); background: #fff; font: inherit; color: var(--texte); }
.lettre-champs input:focus { outline: none; box-shadow: var(--glow-fort); }
.lettre-champs button { flex: 0 0 auto; padding: 12px 24px; border: 0; border-radius: 999px; background: var(--metal-bleu); color: #fff; cursor: pointer; font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.lettre-champs button:hover { box-shadow: var(--glow-fort); }
/* reCAPTCHA : caché tant qu'on ne remplit pas le formulaire (voir assets/lobby.js) */
.brevo-form .g-recaptcha { max-height: 0; overflow: hidden; opacity: 0; margin: 0; transition: max-height .35s, opacity .35s, margin .35s; }
.brevo-form.captcha-visible .g-recaptcha { max-height: 160px; opacity: 1; margin-top: 12px; }
.lettre .no-spam { margin: 8px 0 0; font-size: 12px; color: var(--texte-doux); }

/* ==============================================
   9. FOOTER
   ============================================== */
.site-footer { margin-top: 20px; padding: 28px 28px 32px; text-align: center; background: var(--texture-grain), var(--metal-bleu); color: var(--texte-sur-bleu); position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--metal-or); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; align-items: center; }
.footer-nav li + li::before { content: "◆"; font-size: 6px; color: var(--or); margin-right: 6px; }
.footer-nav a { color: var(--texte-sur-bleu); text-transform: uppercase; letter-spacing: .18em; font-size: 10.5px; padding: 4px 6px; }
.footer-nav a:hover { color: var(--halo); }
.footer-star { margin: 0 auto 12px; }
.footer-copy { color: var(--texte-sur-bleu); font-size: 11px; margin-top: 12px; opacity: .65; }

/* ==============================================
   10. PAGES INTÉRIEURES
   ============================================== */
.page-head { margin: 36px 0 22px; }
.page-head h1 { font-family: var(--titre-caps); font-weight: 500; font-size: clamp(26px, 3vw, 38px); text-transform: uppercase; letter-spacing: .04em; }
.page-head .eyebrow { color: var(--cuivre); display: block; margin-bottom: 8px; }
.page-head p, .page-head div { color: var(--texte-doux); max-width: 640px; }

.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.post-card .monde-media { aspect-ratio: 16/10; }
.post-card .monde-body { margin-top: -30px; }
.post-card .monde-title { font-family: var(--titre); font-size: 22px; text-transform: none; letter-spacing: 0; font-weight: 600; }

/* Lecture : feuille de papier sur le marbre */
.reading {
  background: var(--papier); color: var(--texte);
  border-radius: var(--radius); box-shadow: var(--ombre), 0 0 0 1px rgba(168,105,63,.25);
  padding: clamp(24px, 4vw, 58px); max-width: 820px; margin: 36px auto 30px; position: relative; overflow: hidden;
}
.reading::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--metal-cuivre); }
.reading h1 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 600; }
.reading h2 { font-size: 30px; margin-top: 1.6em; }
.reading h3 { font-size: 24px; margin-top: 1.4em; }
.reading .entry-meta { color: var(--cuivre); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 26px; }
.reading .entry-meta a { color: var(--egee); }
.reading .journal-quote { font-size: 20px; }
.entry-content { font-size: 17px; line-height: 1.8; }
.entry-content a { color: var(--egee); border-bottom: 1px solid var(--cuivre-clair); }
.entry-content a:hover { color: var(--cuivre); }
.entry-content blockquote { margin: 1.6em 0; padding: 1em 1.4em; border-radius: 4px; background: rgba(12,74,117,.05); border-left: 3px solid; border-image: var(--metal-or) 1; font-family: var(--titre); font-style: italic; font-size: 22px; color: var(--egee-profond); }
.entry-content img { border-radius: 4px; margin: 1.4em auto; }
.entry-thumb { margin: 0 0 30px; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px rgba(168,105,63,.25), 0 14px 30px -18px rgba(10,43,71,.5); }
.entry-thumb img { width: 100%; height: auto; }
.lire-aussi { max-width: 1000px; margin: 10px auto 30px; }
.media-embed { position: relative; aspect-ratio: 16/9; margin: 0 0 26px; background: var(--egee-profond); border-radius: 4px; overflow: hidden; box-shadow: var(--glow); }
.media-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reading audio { width: 100%; margin: 0 0 26px; }
.transcription { margin-top: 30px; border-top: 1px solid rgba(168,105,63,.3); padding-top: 18px; }
.transcription summary { cursor: pointer; color: var(--egee); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(168,105,63,.3); font-size: 14px; }

.pagination { display: flex; justify-content: center; gap: 8px; margin: 34px 0; }
.pagination .page-numbers { padding: 6px 13px; border-radius: 999px; background: var(--papier); color: var(--egee-profond); box-shadow: 0 0 0 1px rgba(12,74,117,.2); }
.pagination .current, .pagination a:hover { background: var(--metal-bleu); color: #fff; box-shadow: var(--glow); }

/* Commentaires */
.comments { max-width: 820px; margin: 0 auto; }
.comments ol { list-style: none; padding: 0; }
.comment-item { background: var(--papier); padding: 14px 18px; margin-bottom: 12px; border-radius: var(--radius); box-shadow: 0 0 0 1px rgba(12,74,117,.12); }
.comment-author-name { color: var(--egee-profond); font-weight: 700; margin-right: 10px; }
.comment-date { color: var(--texte-doux); font-size: 12px; }
.comment-respond { background: var(--papier); padding: 24px; border-radius: var(--radius); box-shadow: var(--ombre); }
.comment-respond input, .comment-respond textarea { width: 100%; background: #fff; border: 1px solid rgba(12,74,117,.25); border-radius: 4px; color: var(--texte); padding: 10px; font: inherit; }
.comment-respond textarea { height: 150px; }
.comment-respond input:focus, .comment-respond textarea:focus { outline: none; box-shadow: var(--glow); }
.comment-respond .submit { width: auto; background: var(--metal-bleu); color: #fff; border: 0; border-radius: 999px; padding: 11px 24px; cursor: pointer; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 700; }

/* Shortcode [kit_spirituel_cta] (formulaire Brevo de l'ancien thème) */
.widget-leadmagnet { background: var(--texture-grain), var(--metal-bleu); color: var(--texte-sur-bleu); padding: 30px; border-radius: var(--radius); box-shadow: var(--ombre), 0 0 0 1px rgba(205,167,106,.7); position: relative; }
.widget-leadmagnet .eyebrow { color: var(--or-clair); }
.widget-leadmagnet h3 { font-family: var(--titre-caps); font-weight: 500; font-size: 22px; text-transform: uppercase; letter-spacing: .05em; color: #fff !important; }
.widget-leadmagnet input[type="text"], .widget-leadmagnet input[type="email"] { width: 100%; margin: 6px 0; padding: 11px 14px; border: 1px solid rgba(143,214,255,.45); border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; font: inherit; }
.widget-leadmagnet input::placeholder { color: rgba(220,231,240,.7); }
.widget-leadmagnet input:focus { outline: none; box-shadow: var(--glow-fort); }
.widget-leadmagnet .brevo-btn { margin-top: 10px; width: 100%; background: var(--metal-or); color: var(--egee-profond); border: 0; border-radius: 999px; padding: 13px 20px; cursor: pointer; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; }
.widget-leadmagnet .brevo-btn:hover { box-shadow: var(--glow-fort); }
.widget-leadmagnet .no-spam { font-size: 12px; opacity: .75; margin-bottom: 0; }

/* ==============================================
   11. RESPONSIVE
   ============================================== */
@media (max-width: 1180px) {
  .mondes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .encart { grid-column: 1 / -1; flex-direction: row; border-radius: 90px; padding: 16px 32px; justify-content: flex-start; text-align: left; }
  .encart p { flex: 1; }
  .lobby-bottom { grid-template-columns: 1fr 1fr; align-items: start; }
  .journal-card { grid-template-columns: 1fr; }
  .journal-visual { display: none; }
  .join-card { grid-column: 1 / -1; }
  .hero-content { padding-right: 28%; }
  .top-nav { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  body { background-attachment: scroll; }
  .site { grid-template-columns: 1fr; grid-template-areas: "header" "main" "footer"; }
  .site-header { padding: 0 16px; }
  .site-header::after { left: 16px; right: 16px; }
  .brand-name { font-size: 16px; }
  .brand .star { width: 30px; height: 30px; }
  .menu-toggle { display: inline-flex; }
  .site-sidebar {
    position: fixed; z-index: 50; top: 0; bottom: 0; left: 0; width: 280px; max-width: 85vw;
    background: var(--marbre) var(--texture-marbre); box-shadow: var(--ombre);
    transform: translateX(-100%); transition: transform .3s; overflow-y: auto;
  }
  .site-sidebar.is-open { transform: none; }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(10,43,71,.45); display: none; }
  .sidebar-backdrop.is-open { display: block; }
  .site-main { padding: 0 16px 30px; }
  .hero { grid-template-columns: 1fr; min-height: 400px; }
  .hero-content { padding: 40px 24px; }
  .hero-rail, .hero::after { display: none; }
  .lobby-bottom, .journal-card { grid-template-columns: 1fr; }
  .derniers-grid { grid-template-columns: 1fr; }
  .lectio { grid-template-columns: 1fr; }
  .lectio-visual { order: -1; padding: 22px 22px 0; }
  .journal-visual { display: none; }
  .kit-band .widget-leadmagnet { grid-template-columns: 1fr; }
  .lettre { grid-template-columns: 1fr; padding: 26px 22px; }
  .kit-band .widget-leadmagnet form, .kit-band .widget-leadmagnet .no-spam { grid-column: 1; grid-row: auto; }
  .header-search { left: 16px; right: 16px; }
  .search-form input[type="search"] { min-width: 0; flex: 1; }
}

@media (max-width: 560px) {
  .section-title { white-space: nowrap; font-size: 14px; }
  .section-title::after { flex: 1 1 30px; }
  .section-head .link-line { margin-top: 0; margin-bottom: 14px; }
  .mondes-grid { grid-template-columns: 1fr; }
  .monde-card { min-height: 0; }
  .monde-media { aspect-ratio: 16/9; }
  .encart { flex-direction: column; text-align: center; border-radius: 40px; }
  .brand-tagline { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
