/* Tout Samplement — Refonte blanche (v1)
   Fond principal: #FFFFFF
   Accents: #518895 (bleu-vert) + #F16D6E (corail) + noir
*/

:root{
  --bg: #ffffff;
  --ink: #0b0b0b;
  --ink2: rgba(11,11,11,.72);
  --line: rgba(11,11,11,.10);
  --shadow: 0 18px 40px rgba(11,11,11,.10);

  --brand: #518895;   /* bleu-vert */
  --brand2: #F16D6E;  /* corail */

  --card: rgba(255,255,255,.82);
  --card2: rgba(255,255,255,.92);

  --radius: 22px;
  --max: 1220px;
  --ease: cubic-bezier(.2,.85,.2,1);

  --focus: 0 0 0 4px rgba(81,136,149,.20);
}

/* Dark mode (optionnel, moderne) */
[data-theme="dark"]{
  --bg: #0b0b0b;
  --ink: #ffffff;
  --ink2: rgba(255,255,255,.72);
  --line: rgba(255,255,255,.12);
  --shadow: 0 18px 50px rgba(0,0,0,.55);
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.10);
  --focus: 0 0 0 4px rgba(241,109,110,.22);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--ink);
  background: var(--bg);
  overflow-x:hidden;
}

/* Subtle “music” texture: vinyl grooves + noise */
body::before{
  content:"";
  position:fixed; inset:-40%;
  background:
    radial-gradient(circle at 30% 10%, rgba(81,136,149,.14), transparent 45%),
    radial-gradient(circle at 82% 22%, rgba(241,109,110,.14), transparent 42%),
    repeating-radial-gradient(circle at 50% 55%,
      rgba(11,11,11,.035) 0 1px,
      transparent 1px 10px);
  opacity:.55;
  pointer-events:none;
  transform: rotate(8deg);
}
[data-theme="dark"] body::before{opacity:.28}

a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.container{max-width:var(--max);margin:0 auto;padding:0 20px}

.skip{
  position:absolute;left:-999px;top:auto;width:1px;height:1px;overflow:hidden;
}
.skip:focus{left:16px;top:16px;width:auto;height:auto;padding:10px 12px;border-radius:14px;background:var(--card2);box-shadow:var(--shadow);outline:none}

/* ===== Header ===== */
.header{
  position:sticky; top:0; z-index:50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-inner{
  height:78px;
  display:flex; align-items:center; justify-content:space-between;
  gap:14px;
}
.brand{
  display:flex; align-items:center; gap:12px;
  min-width: 240px;
}
.brand img{width:46px;height:auto}
.brand-title{font-weight:950;letter-spacing:.6px;font-size:13px}
.brand-sub{font-size:12px;color:var(--ink2);font-weight:700;margin-top:2px;max-width: 34ch}

.nav{
  display:flex; align-items:center; gap:10px;
  font-size:14px;
  color: var(--ink2);
}
.nav a{
  padding:10px 12px;
  border-radius: 14px;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  position:relative;
}
.nav a::after{
  content:"";
  position:absolute; left:12px; right:12px; bottom:7px;
  height:2px; border-radius:2px;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  transform: scaleX(0);
  transform-origin:left;
  transition: transform .25s var(--ease);
  opacity:.9;
}
.nav a:hover{color: var(--ink); background: color-mix(in srgb, var(--card2) 70%, transparent); transform: translateY(-1px)}
.nav a:hover::after{transform: scaleX(1)}
.nav a.active{color: var(--ink); background: color-mix(in srgb, var(--card2) 80%, transparent); border:1px solid var(--line)}
.nav a.active::after{transform: scaleX(1)}

.actions{display:flex; align-items:center; gap:10px}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:11px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card2) 72%, transparent);
  color: var(--ink);
  font-weight: 900;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(11,11,11,.08);
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  cursor:pointer;
  user-select:none;
  white-space:nowrap;
}
.btn:hover{transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); background: color-mix(in srgb, var(--card2) 85%, transparent)}
.btn:focus{outline:none; box-shadow: var(--focus)}
.btn.primary{
  border-color: color-mix(in srgb, var(--brand) 38%, var(--line));
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 18%, var(--bg)),
                                  color-mix(in srgb, var(--brand2) 16%, var(--bg)));
}
.btn.primary:hover{border-color: color-mix(in srgb, var(--brand2) 42%, var(--line))}
.icon-btn{
  width:44px;height:44px;padding:0;border-radius:14px;
}
.burger{display:none}

/* ===== Hero ===== */
.hero{
  padding: 42px 0 14px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  align-items: center;
}
.kicker{
  display:inline-flex; align-items:center; gap:10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card2) 78%, transparent);
  color: var(--ink2);
  font-size: 13px;
}
.kicker b{color:var(--ink)}
.kicker .dot{
  width:10px;height:10px;border-radius:999px;
  background: var(--brand2);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand2) 18%, transparent);
}
h1{
  margin: 14px 0 10px;
  font-size: clamp(32px, 3.4vw, 54px);
  line-height: 1.03;
  letter-spacing: -0.8px;
}
.hero h1{color: var(--brand2);}
.lead{
  margin: 0;
  color: var(--ink2);
  font-size: 16px;
  line-height: 1.75;
  max-width: 65ch;
}
.hero-actions{
  display:flex; gap:12px; flex-wrap:wrap;
  margin-top: 16px;
}
.now-playing{
  margin-top: 14px;
  display:flex; align-items:center; gap:12px;
  color: var(--ink2);
  font-size: 13px;
}
.eq{display:flex;gap:4px;align-items:end;height:18px}
.eq span{
  width:4px;border-radius:999px;
  background: linear-gradient(180deg, var(--brand), var(--brand2));
  opacity:.85;
  transform-origin: bottom;
  animation: eq 1.5s var(--ease) infinite;
}
.eq span:nth-child(2){animation-delay:.1s}
.eq span:nth-child(3){animation-delay:.2s}
.eq span:nth-child(4){animation-delay:.3s}
.eq span:nth-child(5){animation-delay:.4s}
@keyframes eq{ 0%,100%{height:6px} 50%{height:18px} }

.hero-art{
  border: none;
  background: none;
  box-shadow: none;
  overflow: visible;
  position: relative;
}

.hero-art .inner{position:relative;padding:16px}
.hero-art img{width:100%;height:auto;border-radius: 18px; border: 1px solid var(--line); background:#fff}
.badges{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.badge{
  display:inline-flex;align-items:center;gap:10px;
  padding:10px 12px;border-radius:999px;
  border:1px solid var(--line);
  background: color-mix(in srgb, var(--card2) 78%, transparent);
  color: var(--ink2);
  font-size: 13px;
}
.badge svg{opacity:.9}
.badge b{color:var(--ink)}

/* ===== Section shared ===== */
section{padding: 38px 0}
.section-head{
  display:flex; align-items:end; justify-content:space-between; gap:16px;
  margin-bottom: 14px;
}
.section-head h2{margin:0;font-size: 22px;letter-spacing:-.2px}
.section-head p{margin:0;color:var(--ink2);font-size:14px;line-height:1.7;max-width: 78ch}

/* ===== Book grid ===== */
.grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.card{
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 84%, transparent);
  box-shadow: 0 14px 28px rgba(11,11,11,.08);
  overflow:hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.card:hover{transform: translateY(-5px); border-color: color-mix(in srgb, var(--brand) 32%, var(--line)); box-shadow: 0 22px 44px rgba(11,11,11,.12)}
.cover{
  padding: 14px;
  display:grid; place-items:center;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--brand) 10%, var(--bg)),
    color-mix(in srgb, var(--brand2) 8%, var(--bg)));
  border-bottom: 1px solid var(--line);
}
.cover img{
  width: 100%;
  max-width: 240px;
  height:auto;
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(11,11,11,.16);
}
.content{padding: 14px 14px 16px}
.meta{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  margin-bottom: 8px;
}
.chip{
  display:inline-flex; align-items:center; gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card2) 78%, transparent);
  color: var(--ink2);
  font-size: 12px;
  font-weight: 800;
}
.chip .c{width:8px;height:8px;border-radius:999px;background: var(--brand)}
.card h3{margin: 8px 0 6px; font-size: 15px; letter-spacing:-.2px}
.card p{margin:0; color:var(--ink2); font-size: 13px; line-height: 1.65}
.card .actions{
  margin-top: 12px;
  display:flex; gap:10px; align-items:center; justify-content:space-between;
}
.buy{
  display:inline-flex; align-items:center; gap:10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card2) 82%, transparent);
  font-weight: 950;
  font-size: 13px;
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.buy:hover{transform: translateX(2px); border-color: color-mix(in srgb, var(--brand2) 38%, var(--line)); background: color-mix(in srgb, var(--brand2) 10%, var(--bg))}
.amazon{
  height: 18px; width:auto;
  opacity: .9;
  filter: grayscale(100%);
}
[data-theme="dark"] .amazon{filter: grayscale(100%) invert(1); opacity:.85}

/* ===== Feature blocks ===== */
.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}
.panel{
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 84%, transparent);
  box-shadow: 0 14px 30px rgba(11,11,11,.08);
  padding: 16px;
  position:relative;
  overflow:hidden;
}
.panel::before{
  content:"";
  position:absolute; inset:-1px;
  background: radial-gradient(820px 320px at 18% 10%, rgba(81,136,149,.20), transparent 62%),
              radial-gradient(820px 320px at 78% 30%, rgba(241,109,110,.16), transparent 62%);
  pointer-events:none;
}
.panel > *{position:relative}
.list{margin:12px 0 0; padding:0; list-style:none; display:grid; gap:10px}
.item{
  display:flex; gap:12px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card2) 72%, transparent);
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.item:hover{transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 35%, var(--line))}
.ico{
  width:38px; height:38px; border-radius: 14px;
  display:grid; place-items:center;
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line));
  font-weight: 950;
}
.item b{display:block; font-size:14px}
.item span{display:block; margin-top:4px; font-size:13px; line-height:1.55; color:var(--ink2)}

/* ===== Links page filter ===== */
.filters{display:flex;gap:10px;flex-wrap:wrap;margin: 10px 0 0}
.filter{
  padding:10px 12px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: color-mix(in srgb, var(--card2) 76%, transparent);
  font-weight: 900;
  color: var(--ink2);
  cursor:pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.filter:hover{transform: translateY(-2px); background: color-mix(in srgb, var(--brand) 10%, var(--bg)); color: var(--ink)}
.filter.active{background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 16%, var(--bg)), color-mix(in srgb, var(--brand2) 14%, var(--bg))); color: var(--ink); border-color: color-mix(in srgb, var(--brand2) 35%, var(--line))}

/* ===== Footer ===== */
footer{
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--ink2);
}
.foot{
  display:flex; align-items:flex-start; justify-content:space-between; gap:16px;
  flex-wrap:wrap;
}
.social{
  display:flex; gap:10px; flex-wrap:wrap;
}
.social a{
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card2) 76%, transparent);
  color: var(--brand);
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.social a:hover{
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--brand) 8%, var(--bg));
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
}
.social svg{width:22px;height:22px}

/* ===== Reveal ===== */
.reveal{opacity:0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease)}
.reveal.in{opacity:1; transform: translateY(0)}

/* ===== Drawer ===== */
.drawer{
  position:fixed; inset:0;
  display:none;
  background: rgba(11,11,11,.42);
  backdrop-filter: blur(10px);
  z-index: 80;
}
.drawer.open{display:block}
.drawer-panel{
  position:absolute; left:14px; right:14px; top:14px;
  max-width: 760px; margin: 0 auto;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.drawer-head{
  padding: 14px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  border-bottom: 1px solid var(--line);
}
.drawer-links{padding: 10px; display:grid; gap:8px}
.drawer-links a{
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card2) 76%, transparent);
  font-weight: 950;
}
.drawer-links a:hover{background: color-mix(in srgb, var(--brand) 10%, var(--bg))}

/* ===== Responsive ===== */
@media (max-width: 1060px){
  .grid{grid-template-columns: repeat(2, 1fr)}
  .hero-grid{grid-template-columns: 1fr}
}
@media (max-width: 860px){
  .nav{display:none}
  .burger{display:inline-flex}
  .split{grid-template-columns: 1fr}
}
@media (max-width: 560px){
  .grid{grid-template-columns: 1fr}
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  *{animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior:auto !important;}
}

.hero-image{
  width: 100%;
  height: auto;
  border-radius: 0;
  border: none;
  background: transparent;
  filter: drop-shadow(0 22px 30px rgba(11,11,11,.18));
}


/* ===== Page: histoire-en-boucles (scopée) ===== */
body.page-heb{
  /* CSS est dans /css, donc chemins relatifs depuis /css */
  background-image: url("../assets/Heb.jpg"), url("../Heb.jpg");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
@media (max-width: 980px){
  body.page-heb{
    background-attachment: scroll;
    background-position: 25% center;
  }
}
/* laisse la photo être la star */
body.page-heb::before{ content: none !important; }

body.page-heb .heb-surface{
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(255,255,255,.66), rgba(255,255,255,.54));
  backdrop-filter: blur(14px) saturate(1.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
  overflow: hidden;
}
[data-theme="dark"] body.page-heb .heb-surface{
  background: linear-gradient(180deg, rgba(11,11,11,.58), rgba(11,11,11,.46));
}

body.page-heb .heb-grid{
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 16px;
  align-items: start;
  padding: 16px;
}
@media (max-width: 980px){
  body.page-heb .heb-grid{ grid-template-columns: 1fr; }
}

body.page-heb .heb-kicker{
  display:inline-flex; align-items:center; gap:10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.74);
  color: var(--ink2);
  font-size: 13px;
  margin-bottom: 10px;
}
[data-theme="dark"] body.page-heb .heb-kicker{ background: rgba(255,255,255,.06); }
body.page-heb .heb-kicker .dot{
  width:10px;height:10px;border-radius:999px;
  background: var(--brand2);
  box-shadow: 0 0 0 4px rgba(241,109,110,.18);
}

body.page-heb .heb-title{
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.6px;
  color: var(--brand2);
}
body.page-heb .heb-text{
  margin: 10px 0 0;
  color: var(--ink2);
  line-height: 1.8;
  font-size: 15px;
  max-width: 75ch;
}

body.page-heb .heb-points{
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
body.page-heb .heb-points li{
  display:flex; gap:12px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.72);
}
[data-theme="dark"] body.page-heb .heb-points li{ background: rgba(255,255,255,.06); }

body.page-heb .heb-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 14px;
}

body.page-heb .heb-video-card{
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(255,255,255,.82);
  box-shadow: 0 16px 34px rgba(11,11,11,.10);
}
[data-theme="dark"] body.page-heb .heb-video-card{
  background: rgba(255,255,255,.06);
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
}
body.page-heb .heb-video-wrap{
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: rgba(0,0,0,.06);
}
body.page-heb .heb-video{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
body.page-heb .heb-audio{
  position:absolute;
  left: 12px;
  bottom: 12px;
  padding: 10px 12px;
  border-radius: 999px;
}
body.page-heb .heb-video-meta{
  padding: 12px 12px 14px;
  color: var(--ink2);
  font-size: 13px;
  line-height: 1.6;
}
body.page-heb .heb-video-meta b{ color: var(--ink); }



body.page-heb .heb-section .section-head a[download]:hover{
  background: color-mix(in srgb, var(--brand) 14%, var(--bg));
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
}


/* Titres / sous-titres (haut de page) */
body.page-heb .heb-section .section-head h2{
  color: var(--brand2); /* #F16D6E */
}
body.page-heb .heb-section .section-head p{
  color: color-mix(in srgb, var(--brand2) 92%, var(--ink2));
}

/* Bouton "Télécharger le dossier de presse" (style brand2) */
body.page-heb .heb-section .section-head a[download]{
  color: var(--brand2);
  border-color: color-mix(in srgb, var(--brand2) 44%, var(--line));
  background: color-mix(in srgb, var(--brand2) 10%, var(--bg));
}
body.page-heb .heb-section .section-head a[download]:hover{
  background: color-mix(in srgb, var(--brand2) 14%, var(--bg));
  border-color: color-mix(in srgb, var(--brand2) 62%, var(--line));
}


/* Lisibilité renforcée sur photo (très subtil) */
body.page-heb .heb-surface .heb-text,
body.page-heb .heb-surface .heb-points span,
body.page-heb .heb-surface .heb-video-meta,
body.page-heb .heb-surface .panel p{
  text-shadow: 0 1px 0 rgba(255,255,255,.18);
}
[data-theme="dark"] body.page-heb .heb-surface .heb-text,
[data-theme="dark"] body.page-heb .heb-surface .heb-points span,
[data-theme="dark"] body.page-heb .heb-surface .heb-video-meta,
[data-theme="dark"] body.page-heb .heb-surface .panel p{
  text-shadow: 0 1px 0 rgba(0,0,0,.28);
}
