
/* ====== Fonts (self-host) ====== */
@font-face{
  font-family: "Oranienbaum";
  src: local("Oranienbaum"), url("/public/assets/fonts/oranienbaum/Oranienbaum-Regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face{
  font-family: "Caviar Dreams";
  src: local("Caviar Dreams"), url("/public/assets/fonts/caviar-dreams/CaviarDreams-Regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* Root */
/* Root */
:root{
  --bg:#0a0a0a;
  --ink:#e6e6e6;
  --muted:#a8a8a8;
  --line:#1a1a1a;
  --rule:#2a2a2a0; /* ← AJOUT pour les bordures utilisées plus bas */
  --font-title: "Oranienbaum", Georgia, "Times New Roman", serif;
  --font-ui: "Caviar Dreams", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}


/* ====== ======*/
*{box-sizing:border-box}html,body{height:100%; font-family: var(--font-ui);}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.6;}
img{max-width:100%;display:block}
.wrap{max-width:1120px;margin-inline:auto;padding:0 20px}
.small{font-size:.9rem}
.bg{background:radial-gradient(1200px 500px at 10% 5%,#111 0%,transparent 60%),var(--bg)}
/* Header */
.site-header{position:sticky;top:0;z-index:10;background:rgba(10,10,10,.7);
  backdrop-filter:blur(6px);border-bottom:1px solid var(--line)}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;height:64px}
.brand{font-weight:600;color:var(--ink);text-decoration:none}
.nav a{color:#cfcfcf;text-decoration:none;margin-left:16px}
.nav a:hover{color:white}
.tag{font-size:.8rem;color:#9a9a9a;margin:.25rem 0 1rem}
/* Hero */
.hero{position:relative;min-height:62vh;border-bottom:1px solid var(--line)}
.hero-media{position:absolute;inset:0;background:linear-gradient(160deg,#222,#444)}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(10,10,10,.7),transparent 40%)}
.hero-content{position:relative;padding:10vh 0 8vh}
.hero h1{font-size:clamp(2rem,4vw + 1rem,4rem);line-height:1.1;margin:0 0 .5rem}
/* Grids & cards */
.grid{display:grid;gap:16px;grid-template-columns:1fr}
@media (min-width:640px){.grid{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1024px){.grid{grid-template-columns:repeat(3,1fr)}}
.card{border:1px solid var(--line);border-radius:1px;overflow:hidden;background:rgba(255,255,255,.02)}
.card .thumb{ display:block; aspect-ratio: 1/1; background:#000; overflow:hidden; }
.card .thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.card-meta{display:flex;align-items:center;justify-content:space-between;padding:10px 12px}
.card-meta h3{margin:0;font-weight:600}
.card-meta p{margin:0;color:var(--muted);font-size:.9rem}
/* Buttons */
.btn{background:white;color:#0a0a0a;border:0;padding:10px 16px;border-radius:1px;text-decoration:none}
.btn:hover{filter:brightness(1.05)}
.btn.ghost{background:transparent;border:1px solid #3a3a3a;color:#e5e5e5}


/* Footer */
.site-footer{border-top:1px solid var(--line);margin-top:40px}
.site-footer .wrap{display:flex;align-items:center;justify-content:space-between;padding:18px 0;color:#bdbdbd}



/* ───────── Header unifié (pages internes) ───────── */
.site-header--centered{
  position: sticky; top: 0; z-index: 1000;
  border-bottom: 1px solid var(--rule);
  background: transparent;           /* le fond passe sur ::before */
  isolation: isolate;                /* crée un nouveau contexte pour ::before */
}
.site-header--centered::before{
  content:"";
  position:absolute; inset:0; z-index:-1;
  background: rgba(0,0,0,.68);       /* translucide */
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

/* bloc interne */
/* ↓↓↓ ÉCRASE la hauteur fixe héritée de .site-header .wrap */
.site-header--centered .wrap{
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px 20px 12px;
  gap: 6px;
  height: auto;         /* ← AJOUT */
  min-height: unset;    /* ← AJOUT par sécurité */
}


/* titre */
.site-header--centered .site-title{
  margin: 0;                         /* pas de marge qui “ressort” du header */
  text-align: center;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.6vw + .6rem, 2rem);
  letter-spacing: .01em;
  line-height: 1.12;
}
.site-header--centered .site-title a{
  color: var(--ink); text-decoration: none;
}

/* menu */
.site-header--centered .site-nav{
  display: flex; align-items: center; justify-content: center;
  gap: 28px;
  padding-top: 8px;                  /* séparateur interne via padding */
  border-top: 1px solid var(--rule);
}
.site-header--centered .site-nav a{
  color: #e6e6e6; text-decoration: none;
  font-family: var(--font-ui); font-weight: 700; letter-spacing: .12em;
}
.site-header--centered .site-nav a:visited{ color:#e6e6e6; }
.site-header--centered .site-nav a:hover{ color:#fff; text-decoration: underline; text-underline-offset: 3px; }

/* responsive */
@media (max-width: 720px){
  .site-header--centered .wrap{ padding: 10px 14px 8px; gap:4px; }
  .site-header--centered .site-nav{ gap: 18px; flex-wrap: wrap; }
}


/* ───────── footer unifié ─────────────────────────── */
.site-footer{ border-top:1px solid var(--rule); margin-top:40px; }
.site-footer .footer-grid{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  padding:18px 0;
  gap:12px;
}
.footer-left{ justify-self:start; color:#bdbdbd; }
.footer-legal{ justify-self:end; }
.footer-legal a{ color:#bdbdbd; text-decoration:none; }
.footer-legal a:hover{ color:#e6e6e6; text-decoration:underline; text-underline-offset:3px; }
.footer-legal .sep{ margin:0 .35rem; color:#6f6f6f; }

/* Icônes discrètes, teinte claire sur noir */
.footer-social{ justify-self:center; display:flex; gap:18px; }
.footer-social .ico{ display:inline-grid; place-items:center; width:18px; height:18px; }
.footer-social img{
  width:16px; height:16px; display:block;
  /* icônes noires -> on les éclaire pour fond noir */
  filter: invert(0) brightness(.7);
  opacity:.75; transition: opacity .2s ease, transform .2s ease, filter .2s ease;
}
.footer-social .ico:hover img{
  opacity:1; transform: translateY(-1px);
  filter: invert(0) brightness(1.2);
}

/* Responsive : pile et centre tout */
@media (max-width:720px){
  .site-footer .footer-grid{
    grid-template-columns: 1fr;
    text-align:center;
    gap:10px;
  }
  .footer-left, .footer-legal{ justify-self:center; }
}


/* ─────────────────────────────────────────────────────────────
   HOME — Module centré (Titre + Yohannes + Menu)
   - Top: centré, image de fond
   - Scroll: barre FIXE (titre réduit + menu), "Yohannes" masqué
   ───────────────────────────────────────────────────────────── */

/* === Fonts === */
/* Titre home */
.home-hero .hero-title{
  font-family: var(--font-title);
  font-weight: 400;
  letter-spacing: .01em;
}

/* Menu home (module centré + barre scrolled) */
.home-hero .hero-menu a{
  font-family: var(--font-ui);
  font-weight: 700;      /* passe en 400 si tu préfères léger */
  letter-spacing: .12em; /* accentue le rendu Caviar */
}

/* Header global (pages internes) — même police de menu */
.site-header .nav a{
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: .12em;
}


/* On masque l’en-tête standard UNIQUEMENT sur la home */
/* Header caché sur la home en desktop, visible en mobile pour le burger */
@media (min-width: 901px){
  .is-home .site-header{ display:none; }
}
@media (max-width: 900px){
  .is-home .site-header{
    display:block;
    position:fixed; top:0; left:0; right:0;
    background: transparent;           /* garde ton visuel de home */
    border: 0;
    z-index: 1200;
  }
}


/* TRÈS IMPORTANT : empêcher les calques de la home de capturer les taps */
.home-hero .hero-bg,
.home-hero .hero-overlay{ pointer-events:none; }  /* ← garde l’aspect, ne capte pas le clic */
.home-hero .hero-center{ z-index:1; }              /* sous le header (z-index:3500) */


/* Évite le scroll de fond quand le menu est ouvert */
body.menu-open{ overflow:hidden; }


.home-hero{
  position: relative;
  min-height: 100vh;
  border-bottom: 1px solid var(--rule);
  --bar-bg: rgba(0,0,0,.68);       /* translucide quand fixé */
  overflow: clip;                   /* évite les débordements lors du fix */
}

/* Fond : overlay + photo
   → FIXE sur desktop pour que la photo ne bouge pas */
.home-hero .hero-bg{
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,.12)),
    var(--photo) center/var(--hero-fit, cover) no-repeat;
  background-attachment: fixed;
  will-change: transform;
}
/* Fallback mobile (iOS n’aime pas background-attachment: fixed) */
@media (max-width:1024px){
  .home-hero .hero-bg { background-attachment: scroll; }
}

.home-hero .hero-center{
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; text-align: center;
  padding: 18vh 0 16vh;
  transition: padding .25s ease, background-color .25s ease, border-color .25s ease;
  /* pas de background ici → barre invisible tant qu’on est en haut */
}

/* Titre */
.home-hero .hero-title{
  font-size: clamp(2.6rem, 4vw + 1rem, 4.8rem);
  line-height: 1.06; margin: 0;
  transition: font-size .25s ease, transform .25s ease, letter-spacing .25s ease;
}

/* “Yohannes” entre le titre et le menu */
.home-hero .brandline{
  overflow: hidden; max-height: 48px;
  transition: max-height .25s ease, opacity .2s ease, margin .25s ease;
}
.home-hero .brandline .brand{
  display: inline-block; font-size: 1.1rem;
  color: #dcdcdc; letter-spacing: .02em;
}

/* Menu */
.home-hero .hero-menu{
  display: flex; gap: 36px;
  align-items: center; justify-content: center;
  padding-top: 10px; margin-top: 6px;
  border-top: 1px solid var(--rule);
}
.home-hero .hero-menu a{ color:#e6e6e6; text-decoration:none; }
.home-hero .hero-menu a:visited{ color:#e6e6e6; }

/* ── ÉTAT SCROLLÉ : barre FIXE translucide, pleine largeur ── */
.home-hero.is-scrolled .hero-center{
  position: fixed; top: 0; left: 0; right: 0;
  width: 100vw; max-width: none;      /* casse la contrainte .wrap */
  margin: 0; padding: 10px 20px;
  background: var(--bar-bg);          /* translucide */
  border-bottom: 1px solid var(--rule);
  z-index: 1000;
  min-height: auto;                   /* n’est plus un hero, c’est une barre */
}
.home-hero.is-scrolled .hero-title{
  font-size: clamp(1.25rem, 1.6vw + .6rem, 2rem);
  transform: translateY(2px); letter-spacing: .01em;
}
.home-hero.is-scrolled .brandline{ max-height: 0; opacity: 0; margin: 0; }
.home-hero.is-scrolled .hero-menu{ padding-top: 6px; margin-top: 4px; }

@media (max-width:720px){
  .home-hero.is-scrolled .hero-center{ padding: 8px 14px; }
  .home-hero.is-scrolled .hero-title{ font-size: clamp(1.1rem, 3.4vw + .4rem, 1.6rem); }
}



/* ───────────────── A PROPOS ───────────────── */
.about-hero { padding: 28px 0 0; }
.about-title{
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(2rem, 2.6vw + .6rem, 2.8rem);
  line-height: 1.1;
  margin: 0;
}
.about-kicker{
  margin: 6px 0 12px;
  color: #a8a8a8;
  letter-spacing: .06em;
  font-family: var(--font-ui);
}

/* grille méta gauche / texte droit avec règle verticale */
.about.layout{
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  position: relative;
  margin-top: 16px;
}
.about.layout::before{
  content:"";
  position:absolute; top:0; bottom:0; left:360px; width:1px;
  background: var(--rule);
}

/* aside gauche (portrait sticky) */
.about-aside{ align-self: start; position: sticky; top: 96px; }
.about-portrait{ margin:0; border:1px solid var(--rule); }
.about-portrait img{ display:block; width:100%; height:auto; }
.about-portrait figcaption{
  padding:8px 10px; color:#a8a8a8; border-top:1px solid var(--rule);
  font-size:.9rem; font-family: var(--font-ui);
}
.about-meta{
  list-style:none; padding:10px 0 0; margin:12px 0 0; border-top:1px solid var(--rule);
  display:grid; gap:8px;
  font-family: var(--font-ui);
}
.about-meta a{ color:#e6e6e6; text-decoration:underline; text-underline-offset:3px; }

/* texte long */
.prose{
  max-width: 72ch;
  font-size: 1.05rem;
  line-height: 1.7;
  letter-spacing: .01em;
}
.prose h2{
  font-family: var(--font-title);
  font-weight: 400;
  margin: 2rem 0 .5rem;
}
.prose h2.letter{
	font-style: italic;
}
.prose p{ 
	margin: .85rem 0;
	text-align: justify;
}
.prose p.letter{
	font-style: italic;
	text-align: justify;
}
.prose .divider{ height:1px; background: var(--rule); border:0; margin: 22px 0; }

/* Signature finale en fin d'article À propos */
.prose .signature{
  margin-top: 16px;
  margin-left: -16px;
}
.prose .signature img{
  width: min(130px, 25%);
  height: auto;
  display: block;
}
/* responsive */
@media (max-width: 1024px){
  .about.layout{
    grid-template-columns: 1fr;
  }
  .about.layout::before{ display:none; }
  .about-aside{ position: static; }
  .prose{ max-width: 100%; }
}


/* Légales : réutilise la grille “À propos” mais sans aside */
.legal-hero{ padding: 28px 0 0; }
.legal.layout{ margin-top: 16px; }
.legal-content{ max-width: 80ch; }

/* typographie du contenu importé */
.legal-content h2, .legal-content h3{
  font-family: var(--font-title);
  font-weight: 400;
  margin: 1.6rem 0 .6rem;
}
.legal-content p{ margin:.9rem 0; }
.legal-content ul, .legal-content ol{ margin:.9rem 0 .9rem 1.2rem; }
.legal-content a{ color:#e6e6e6; text-decoration: underline; text-underline-offset: 3px; }
.legal-content hr{ border:0; height:1px; background:var(--rule); margin: 22px 0; }



/* Lightbox minimal */
.lb-ov{
  position:fixed; inset:0; background:rgba(0,0,0,.9);
  display:none; align-items:center; justify-content:center;
  z-index:2000;
}
.lb-ov.on{ display:flex; }
.lb-img{ max-width:92vw; max-height:92vh; }
.lb-prev,.lb-next,.lb-x{
  position:absolute; top:50%; transform:translateY(-50%);
  background:transparent; color:#e6e6e6; border:0; font-size:40px;
  line-height:1; padding:6px 10px; cursor:pointer;
}
.lb-prev{ left:16px; } .lb-next{ right:16px; }
.lb-x{ top:14px; right:12px; transform:none; font-size:32px; }
.lb-count{
  position:absolute; bottom:14px; left:50%; transform:translateX(-50%);
  color:#bdbdbd; font-size:.9rem; letter-spacing:.06em;
}


/* ========== CAROUSEL (Yohannes – fix) ========== */

/* Grille */
.project-body{
  display:grid;
  gap:18px;
  grid-template-columns: 120px 1fr 320px;  /* rail / stage / texte */
  align-items:start;
  grid-template-areas: "rail stage meta";
}
.cr-rail--left{ grid-area: rail; }
.carousel      { grid-area: stage; }
.project-meta  { grid-area: meta; }

/* ── Rail vignettes (desktop = vertical) ── */
.cr-rail--left{
  position: sticky; top: var(--rail-top, 96px);
  align-self:start;
  height: calc(100svh - 120px);
  border:1px solid var(--rule);
  padding:8px; overflow:auto;
  display:flex; flex-direction:column; gap:8px;
  background:#000;                      /* noir absolu */
  -webkit-overflow-scrolling: touch;
}

.cr-thumb{
  background:transparent; border:1px solid var(--rule);
  padding:0; cursor:pointer; flex:0 0 auto; opacity:.9;
  transition:opacity .2s ease, transform .2s ease, border-color .2s ease;
  aspect-ratio: 1 / 1; display:block;
}
.cr-thumb img{
  width:100%; height:100%;
  object-fit:contain; object-position:center;
  display:block;
  pointer-events:auto;                  /* image cliquable dans le bouton */
  -webkit-user-drag:none; user-select:none;
}
.cr-thumb.is-active{ opacity:1; border-color:#e6e6e6; }
.cr-thumb:hover{ opacity:1; transform:translateY(-1px); }

/* ── Stage central ── */
.carousel{
  position:relative; border:1px solid var(--rule); background:#000;
}
.cr-stage{
  position:relative;
  height: calc(100svh - var(--stage-offset, 160px));  /* header + marges */
  max-height: 1000px;
  background:#000; overflow:hidden;
}
.cr-slide{
  position:absolute; inset:0;
  display:grid; place-items:center;
  opacity:0; transition:opacity .2s ease;
  pointer-events:none;
}
.cr-slide.is-active{ opacity:1; pointer-events:auto; }

/* Image principale : jamais de crop */
.cr-slide img{
  max-width:100%;
  max-height:100%;
  width:auto; height:auto;
  object-fit:contain !important; object-position:center center;
  display:block; background:#000;
  -webkit-user-drag:none; user-select:none;
}

/* Contrôles */
.cr-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  background:rgba(0,0,0,.45); border:1px solid var(--rule);
  color:#e6e6e6; font-size:34px; line-height:1;
  padding:6px 10px; cursor:pointer; z-index:2;
}
.cr-nav.prev{ left:0px; } .cr-nav.next{ right:0px; }
.cr-nav:hover{ background:rgba(0,0,0,.65); }

.cr-fs{
  position:absolute; top:10px; right:46px; z-index:2;
  background:rgba(0,0,0,.45); border:1px solid var(--rule);
  color:#e6e6e6; padding:6px 10px; cursor:pointer; font-size:1.4rem;
}
.cr-fs{
  display:inline-grid; place-items:center;
  width:38px; height:38px;              /* meilleure zone cliquable */
  padding:0;
  border-radius:10px;
}
.cr-fs .icon-expand{
  width:20px; height:20px; display:block;
}
.cr-fs:hover{ transform:scale3d(1.5); transition: 0.3 ease-in-out; }
.cr-fs:active{ transform:translateY(0); }

.cr-count{
  position:absolute; bottom:12px; left:50%; transform:translateX(-50%);
  color:#bdbdbd; font-size:.9rem; letter-spacing:.06em;
  padding:2px 6px; background:rgba(0,0,0,.35); border:1px solid var(--rule);
}

/* Mode single : centrer l’unique image */
.carousel.is-single .cr-stage{
  display:grid;
  place-items:center;
}

/* Texte droite */
.project-meta{
  border:1px solid var(--rule); padding:12px;
  max-height: calc(100svh - 120px);
  overflow:auto; background: rgba(255,255,255,.02);
}
.project-meta-title{ margin:0 0 .4rem; font-family:var(--font-title); font-weight:400; }
.project-meta-text{ color:#cfcfcf; line-height:1.6; }
.project-meta-info{ margin-top:12px; color:#a8a8a8; display:grid; gap:4px; }

/* ── Overlay plein écran (zoom/pan) ── */
/* Overlay */
.cr-overlay{
  position: fixed; inset: 0; z-index: 9999;
  display: none;               /* togglé par .is-open */
  place-items: center;
  background: rgba(0,0,0,.9);
  overflow: hidden;            /* évite les scrollbars pendant le pan */
}
.cr-overlay.is-open{ display: grid; }

/* Image dans l’overlay : d’abord en “contain” plein écran,
   puis on applique les transforms pour le zoom/pan */
.cr-ov-img{
  width: auto;
  height: auto;
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;         /* affichage initial nickel */
  display: block;

  transform-origin: center center;
  will-change: transform;
  transition: transform 120ms ease-out;

  /* confort gestuel */
  -webkit-user-drag: none;
  user-select: none;
  touch-action: none;
}


.cr-ov-close{
  position:absolute; top:12px; right:14px;
  z-index:3;                         /* au-dessus de tout */
  background:transparent; color:#fff;
  font-size:28px; line-height:1;
  border:1px solid rgba(0,0,0,.45);
  padding:6px 12px; border-radius:0px; cursor:pointer;
}

.cr-ov-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  z-index:2;
  width:46px; height:46px; border-radius:12px;
  background:rgba(0,0,0,.45); border:1px solid var(--rule);
  color:#e6e6e6; font-size:26px; cursor:pointer; display:grid; place-items:center;
}
.cr-ov-nav.prev{ left:14px; } .cr-ov-nav.next{ right:14px; }

.cr-ov-count{
  position:absolute; bottom:14px; left:50%; transform:translateX(-50%);
  z-index:2; color:#fff; opacity:.85;
  background:rgba(0,0,0,.35); border:1px solid var(--rule);
  padding:2px 8px; border-radius:8px; font-family:var(--font-ui); letter-spacing:.06em;
}

body.cr-no-scroll{ overflow:hidden; }

/* ── Responsive ── */
@media (max-width:1100px){
  .project-body{
    grid-template-columns: 96px 1fr;
    grid-template-areas:
      "rail stage"
      "meta meta";
  }
  .project-meta{ max-height:none; }
}

@media (max-width:780px){
  .project-body{
    grid-template-columns:1fr; gap:12px;
    grid-template-areas:
      "stage"
      "rail"
      "meta";
  }

  /* Rail devient horizontal */
  .cr-rail--left{
    position:static; height:auto;
    overflow-x:auto; overflow-y:hidden;
    display:flex; flex-direction:row; gap:8px; white-space:nowrap;
    scroll-snap-type: x proximity;
    padding:8px;
    border:1px solid var(--rule);
    background:#000;
  }
  .cr-thumb{
    flex:0 0 auto;
    min-width: clamp(56px, 18vw, 78px);
    scroll-snap-align:start;
  }

  .cr-stage{ height: calc(100svh - var(--stage-offset, 200px)); }
}

/* Accessibilité : moins d’animations si demandé */
@media (prefers-reduced-motion: reduce){
  .cr-slide{ transition:none; }
  .cr-thumb{ transition:none; }
  .cr-nav{ transition:none; }
}






/* ===== Journal — panneaux latéraux + zone centrée ===== */

/* Contexte */
.journal-shell{ position:relative; }

/* Panneaux latéraux */
.journal-nav{
  position:fixed; z-index:900;
  top:calc(var(--header-h,88px) + 8px); bottom:14px;
  width:190px; display:flex; flex-direction:column; gap:8px;
  padding:10px 12px;
  background:rgba(0,0,0,.35);
  border:1px solid var(--rule);
  backdrop-filter: blur(2px);
}
.journal-nav.left{ left:14px; visibility: hidden; /* caché pour le moment */}
.journal-nav.right{ right:14px; }

.jn-title{
  font-family: var(--font-ui); letter-spacing:.12em; font-weight:700;
  color:#bdbdbd; font-size:.78rem; text-transform:uppercase;
}
.jn-list{
  overflow:auto; border-top:1px solid var(--rule); padding-top:8px;
  display:grid; gap:4px;
}
.jn-list a{
  color:#cfcfcf; text-decoration:none; display:block;
  padding:2px 4px; border:1px solid transparent; line-height:1.25;
  font-size:.95rem;
}
.jn-list a:hover{ color:#fff; text-decoration:underline; text-underline-offset:3px; }
.jn-list a.is-active{ border-color:#e6e6e6; color:#e6e6e6; }

/* ===== Zone de lecture centrée + scroll-snap ===== */

body.is-journal{ scroll-snap-type:y mandatory; }

.journal{
  /* Laisse de la place aux deux menus latéraux sur desktop */
  width: min(1200px, calc(100% - 2 * 230px));
  margin: 0 auto;
}

/* Une section = un écran (le grid est géré PLUS BAS sur le conteneur interne) */
.journal > section{
  min-height:100vh;
  scroll-snap-align:start;
  scroll-margin-top:calc(var(--header-h,88px) + 8px);
  border-bottom:1px solid var(--rule);
  padding:24px 0;
  display:block;        /* important : pas de grid ici (évite le conflit) */
}

/* Métadonnées / titres */
.journal .date{ color:#a8a8a8; margin:0 0 .75rem; }
.journal h1{
  font-family:var(--font-title);
  font-weight:400;
  margin:0 0 .6rem;
}

/* ===== Layout 2 colonnes pour chaque entrée ===== */
/* Hypothèse : chaque <section> contient un <div id="..."> qui regroupe texte + image */

.journal > section > div[id]{
  display:grid;
  grid-template-columns: minmax(320px,1fr) minmax(320px,1fr);
  gap:28px;
  align-items:start;
  margin: 0;           /* géré par la section */
}

/* Colonne texte (tes wrappers existants) */
.journal > section > div[id] .twin-article,
.journal > section > div[id] .Duet{
  order:1;             /* texte à gauche par défaut */
  display:flex;
  flex-direction:column;
  gap:14px;
  max-width:64ch;
}

.journal > section:nth-of-type(even) > div[id] .twin-article,
.journal > section:nth-of-type(even) > div[id] .Duet{
  order: 2;  /* texte à droite pour les sections paires */
}
.journal > section:nth-of-type(even) > div[id] > img{
  order: 1;  /* image à gauche pour les sections paires */
}


/* Colonne image (img directe dans le conteneur) */
.journal > section > div[id] > img{
  order:2;             
  width:100%;
  height:auto;
  max-height:70vh;
  display:block;
  object-fit:contain;
  background:#000;
  border:1px solid var(--rule);
  border-radius:2px;

  /* --- Sticky --- */
  position: sticky;
  top: calc(var(--header-h, 88px) + 20px); /* reste sous le header */
  align-self: start;                       /* important en grid */
}


/* Inversion des colonnes si l'image porte .reverse */
.journal > section > div[id] > img.reverse{ order:1; }

/* (Option JS déjà en place) Si un <article> est .reverse, le script retire .reverse sur l'img.
   Donc pas de :has() ici pour compat étendue, on reste full-compatible. */

/* ===== Responsive ===== */
@media (max-width:1280px){
  .journal{
    width: min(92%, 1000px);
  }
}

@media (max-width:1024px){
  .journal-nav{ display:none; }           /* masque les panneaux */
  .journal{ width:min(92%, 900px); }      /* re-centre large */
}

@media (max-width:900px){
  .journal > section{ padding:18px 0; }
  .journal > section > div[id]{
    grid-template-columns:1fr;
    gap:18px;
  }
  .journal > section > div[id] .twin-article,
  .journal > section > div[id] .Duet,
  .journal > section > div[id] > img{
    order:initial;      /* pile verticale naturelle */
	position: static;   /* annule sticky */
    top: auto;          /* sécurité */
  }
  .journal > section > div[id] > img{
    max-height:52vh;
  }
}

/* ===== Toolbar mobile (Index) ===== */
.journal-toolbar{
  position:sticky; bottom:0; z-index:910;
  display:flex; justify-content:center; padding:8px 0; margin-top:-8px;
  background:linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,0));
}
.jt-btn{
  background:rgba(0,0,0,.5); border:1px solid var(--rule); color:#e6e6e6;
  padding:8px 14px; letter-spacing:.12em; font-family:var(--font-ui); font-weight:700; cursor:pointer;
}

.journal-index-panel[hidden]{ display:none; }
.journal-index-panel{
  position:fixed; inset:0; z-index:1200; background:rgba(0,0,0,.92);
  display:grid; grid-template-columns:1fr 1fr; gap:20px; padding:20px;
}
.jt-col{ min-width:0; }
.jt-title{ font-family:var(--font-ui); letter-spacing:.12em; font-weight:700; color:#bdbdbd; margin-bottom:6px; }
.journal-index-panel .jn-list{ max-height:calc(100vh - 110px); }

.jt-close{
  position:absolute; top:10px; right:12px; background:transparent; color:#e6e6e6;
  border:1px solid var(--rule); font-size:28px; line-height:1; padding:4px 10px; cursor:pointer;
}

@media (max-width:720px){
  .journal-index-panel{ grid-template-columns:1fr; }
}



/* === Black-out : suppression des linear/radial gradients === */

/* fond global qui avait un radial-gradient */
.bg{
  background: #000 !important;
}

/* ancien "hero" générique (si utilisé) */
.hero-media{
  background: #000 !important;      /* à la place du gradient 160deg */
}
/*.hero-overlay{background: none !important;      /* on retire le voile gradient */

/* vignettes par défaut (à la place du gradient 145deg) */
.card .thumb{
  background: #000 !important;
}

/* HOME hero : on enlève la couche gradient au-dessus de la photo */
.home-hero .hero-bg{
  background: var(--photo) center/var(--hero-fit, cover) no-repeat !important;
  background-attachment: fixed;     /* on garde l’effet “photo fixe” */
}
@media (max-width:1024px){
  .home-hero .hero-bg{ background-attachment: scroll; }
}



/* ── Contact page ───────────────────────────────────────────── */
.contact-page{ padding: 40px 5px 56px; }
.contact-head{ margin-bottom: 22px; border-bottom:1px solid var(--line); padding-bottom: 14px; }
.contact-title{ font-family: var(--font-title); font-size: clamp(1.8rem, 1.1rem + 2vw, 2.6rem); margin:0 0 4px; }
.contact-tag{ color: var(--muted); margin:0; }

.contact-grid{ display:grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px){
  .contact-grid{ grid-template-columns: 0.95fr 1.3fr; align-items: start; }
}

.contact-card{ border:1px solid var(--line); background: rgba(255,255,255,.02); padding: 14px 16px; border-radius: 8px; }
.contact-card + .contact-card{ margin-top: 14px; }
.contact-card .h3{ font-family: var(--font-title); }
.contact-card a{ color:#dcdcdc; text-decoration:none; }
.contact-card a:hover{ color:#f6f6f6; text-decoration: underline; }

.contact-form-wrap{ border:1px solid var(--line); background: rgba(255,255,255,.02); border-radius: 8px; padding: 16px; }
.contact-form .row{ display:grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px){ .contact-form .row{ grid-template-columns: 1fr 1fr; } }

.field{ display:grid; gap:6px; margin-bottom:12px; }
.field > span{ font-size: .95rem; color: #cfcfcf; }
.field input, .field textarea{
  width:100%; color:#eaeaea; background:#0e0e0e;
  border:1px solid #272727; border-radius:1px; padding:10px 12px;
}
.field input:focus, .field textarea:focus{ outline: none; border-color:#3a3a3a; }

.check{ display:flex; gap:10px; align-items:flex-start; margin: 4px 0 14px; }
.check input{ margin-top: 4px; }
.rgpd span{ color:#d6d6d6; }

.hp{ position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }

.form-status{ margin-top: 10px; min-height: 1.2em; font-size: .95rem; }
.form-status.is-ok{ color: #9FE870; }
.form-status.is-err{ color: #FF7A7A; }

.socials{ list-style: none; padding:0; margin: 8px 0 0; display:flex; gap: 14px; }
.socials a{ color:#dcdcdc; text-decoration:none; }
.socials a:hover{ text-decoration: underline; }

.tiny{ font-size: .8rem; }


/* ── Burger & Mobile Menu ───────────────────────────────────────── */
:root{
  --mm-bg: #0b0b0b;
  --mm-line: var(--line, #222);
}

.burger{
  display:none; /* affiché en mobile via media query */
  -webkit-tap-highlight-color: transparent;
  border:0; background:transparent; padding:8px; margin-left:8px;
  align-items:center; justify-content:center; border-radius:10px;
}
.burger:focus-visible{ outline:2px solid #6b6b6b; outline-offset:2px; }

.burger-box{ display:inline-flex; width:28px; height:22px; position:relative; }
.burger-bar,
.burger-bar::before,
.burger-bar::after{
  content:""; position:absolute; left:0; right:0; height:2px; background:#e6e6e6; border-radius:2px;
  transition:transform .22s ease, opacity .22s ease, top .22s ease, bottom .22s ease;
}
.burger-bar{ top:50%; transform:translateY(-50%); }
.burger-bar::before{ top:-8px; }
.burger-bar::after{ bottom:-8px; }

/* État ouvert (anim croix) */
.burger.is-open .burger-bar{ background:transparent; }
.burger.is-open .burger-bar::before{ top:0; transform:rotate(45deg); }
.burger.is-open .burger-bar::after{ bottom:0; transform:rotate(-45deg); }

/* Overlay pleine page */
.mm-ov{
  position:fixed; inset:0; z-index:2000;
  display:flex; justify-content:flex-end; align-items:stretch;
  background:rgba(0,0,0,.55); backdrop-filter: blur(2px);
}
.mm-ov[hidden]{ display:none; }

.mm-panel{
  width:100%; height:100%;
  background:var(--mm-bg); border-left:1px solid var(--mm-line);
  box-shadow: -8px 0 24px rgba(0,0,0,.35);
  padding:18px 16px; overflow:auto;
  transform:translateX(20px); opacity:0;
  transition: transform .22s ease, opacity .22s ease;
}
.mm-ov:not([hidden]) .mm-panel{ transform:none; opacity:1; }

.mm-close{
  border:1px solid var(--mm-line); background:#111; color:#e6e6e6;
  border-radius:10px; padding:8px 10px; margin-bottom:12px; cursor:pointer;
}
.mm-close:hover{ background:#151515; }
.mm-close:focus-visible{ outline:2px solid #4b4b4b; outline-offset:2px; }

.mm-nav{ list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.mm-nav a{
  display:block; text-decoration:none; color:#e8e8e8; text-align: center;
  padding:10px 12px; border:1px solid var(--mm-line); border-radius:0px;
  background:rgba(255,255,255,.02);
}
.mm-nav a:hover{ background:rgba(255,255,255,.05); text-decoration:underline; }

/* ⬇️ Responsive : en mobile on cache la nav classique et on montre le burger */
@media (max-width: 899.98px){
  .site-nav{ display:none !important; }     /* masque la nav desktop */
  #burger{ display:inline-flex; }           /* affiche le bouton */
}

/* ⬆️ Desktop : on rétablit la nav, on masque le burger */
@media (min-width: 900px){
  .site-nav{ display:flex !important; }
  #burger{ display:none !important; }
}

/* Respecte l’utilisateur qui réduit les animations */
@media (prefers-reduced-motion: reduce){
  .burger-bar, .mm-panel{ transition:none; }
}


/* ── Accueil : hero-menu caché en mobile, burger visible ───────── */
@media (max-width: 899.98px){
  .home-hero .hero-menu{ 
    display: none !important; 
  }
  /* Le burger n'apparaît qu'en mobile */
  #burger{ 
    display: inline-flex !important; 
  }
  /* (Optionnel) si ton header a une .site-nav, on la masque en mobile */
  .site-nav{
    display: none !important;
  }
}

@media (min-width: 900px){
  /* Desktop : on garde le rendu actuel de l'accueil */
  #burger{ 
    display: none !important; 
  }
  /* si besoin d'être explicite */
  .home-hero .hero-menu{ 
    display: flex !important; /* ou inline-flex selon ton style actuel */
  }
}

