/* ============================================================
   JGC — Jennie Charts
   Cinematic editorial redesign, inspired by jenn.ie
   Version complète, corrigée et unifiée
   ============================================================ */

:root{
  --bg:#0a0a0d;
  --bg-elevated:#131318;
  --surface:#1a1a20;
  --surface-hover:#222229;
  --border:rgba(255,255,255,0.08);
  --border-strong:rgba(255,255,255,0.16);

  --primary:#fa243c;
  --primary-deep:#b8172c;
  --primary-glow:rgba(250,36,60,0.35);

  --text:#f6f4f1;
  --text-muted:#9b9aa3;
  --text-faint:#5c5b64;

  --font-display:'Playfair Display', Georgia, serif;
  --font-script:'Alex Brush', cursive;
  --font-sans:'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm:8px;
  --radius-md:14px;
  --radius-lg:22px;
  --radius-xl:40px;

  --header-h:72px;
}



/* Light theme override */
body.theme-white{
  --bg:#faf9f7;
  --bg-elevated:#ffffff;
  --surface:#ffffff;
  --surface-hover:#f2f0ec;
  --border:rgba(10,10,13,0.08);
  --border-strong:rgba(10,10,13,0.16);
  --text:#141319;
  --text-muted:#5c5b64;
  --text-faint:#9b9aa3;
}

body.theme-ltal{
  --bg:#BFDAF7;
  --bg-elevated:#aac0d2;
  --surface:#b8ccdc;
  --surface-hover:#c5d7e5;
  --border:rgba(43,50,82,0.15);
  --border-strong:rgba(43,50,82,0.25);
  --primary:#2b3252;
  --primary-deep:#1e2340;
  --primary-glow:rgba(43,50,82,0.35);
  --text:#ffffff;
  --text-muted:#e2ebf2;
  --text-faint:#c5d7e5;
}
/* ============================================================
   CAROUSEL IMAGES - Thème LTAL (fond blanc pour less-than-a-lover)
   ============================================================ */
body.theme-ltal .hero-media img[src*="less-than-a-lover"] {
  background: #ffffff;
  object-fit: contain !important;
  padding: 20px;
}

body.theme-ltal .hero-carousel {
  background: var(--bg);
}
body.theme-ltal .hero-scrim {
  background:
    linear-gradient(0deg, rgba(191,218,247,0.95) 0%, rgba(191,218,247,0.5) 40%, rgba(191,218,247,0.15) 65%, rgba(191,218,247,0.05) 100%),
    linear-gradient(90deg, rgba(191,218,247,0.7) 0%, rgba(191,218,247,0.3) 45%, rgba(191,218,247,0.05) 75%);
}

body.theme-ltal .hero-copy {
  color: var(--text);
}

body.theme-ltal .hero-title {
  text-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

body.theme-ltal .hero-sub {
  color: rgba(255,255,255,0.9);
}

body.theme-ltal .btn-hero-ghost {
  color: var(--text);
  border-color: rgba(43,50,82,0.4);
}

body.theme-ltal .btn-hero-ghost:hover {
  border-color: rgba(43,50,82,0.7);
  color: var(--text);
}

body.theme-ltal .hero-arrow {
  background: rgba(191,218,247,0.6);
  border-color: rgba(43,50,82,0.3);
  color: var(--primary);
}

body.theme-ltal .hero-progress-seg {
  background: rgba(43,50,82,0.2);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-sans);
  -webkit-font-smoothing:antialiased;
  transition:background .4s ease, color .4s ease;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
button{ font-family:inherit; cursor:pointer; }

::selection{ background:var(--primary); color:#fff; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible{
  outline:2px solid var(--primary);
  outline-offset:3px;
}

@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;
  }
}
/* ============================================================
   HEADER - Style moderne
   ============================================================ */

   @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&display=swap');

.top-bar{
  position: fixed;
  top: 0; left: 0; width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(20px, 5vw, 60px);
  z-index: 1000;
background: var(--bg-content);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: background 0.4s ease;
}

body.theme-white .top-bar{ 
  background: var(--surface);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body.theme-ltal .top-bar{ 
  background: var(--surface);
  box-shadow: 0 4px 20px rgba(43, 50, 82, 0.1);
}

.brand-logo{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-logo .brand-star{ color: var(--primary); }

.main-nav{
  display: flex;
  gap: 8px;
  flex: 1;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav::-webkit-scrollbar{ display: none; }

.nav-item{
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
}
.nav-item i{ font-size: 0.9em; }
.nav-item:hover{ 
  color: var(--text); 
  background: var(--surface-hover); 
}
.nav-item.active{ 
  background: var(--primary); 
  color: #fff; 
}
.nav-item.active::after{
  display: none;
}

.settings-group{ 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  flex-shrink: 0; 
}

.theme-select{
  appearance: none;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
}
.theme-select:hover{
  border-color: var(--border-strong);
}

.date-pill{
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.mobile-menu-btn{
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
}
.mobile-menu-btn:hover{
  background: var(--surface-hover);
}

/* ============================================================
   BREAKING NEWS TICKER
   ============================================================ */
.news-ticker{
  position:relative;
  display:flex; align-items:center;
  background:var(--primary);
  color:#fff;
  overflow:hidden;
  height:40px;
}

.ticker-label{
  display:flex; align-items:center; gap:8px;
  padding:0 18px;
  height:100%;
  background:rgba(0,0,0,0.22);
  font-size:0.72rem; font-weight:800;
  letter-spacing:0.12em;
  flex-shrink:0;
}

.ticker-pulse{
  width:7px; height:7px; border-radius:50%;
  background:#fff;
  animation:pulse-dot 1.4s ease-in-out infinite;
}

@keyframes pulse-dot{
  0%,100%{ opacity:1; transform:scale(1); }
  50%{ opacity:0.4; transform:scale(0.7); }
}

.ticker-track-wrap{ flex:1; overflow:hidden; height:100%; }

.ticker-track{
  display:flex; align-items:center;
  height:100%;
  width:max-content;
  animation:ticker-scroll 18s linear infinite;
}

.ticker-item{
  display:flex; align-items:center; gap:10px;
  padding:0 28px;
  font-size:0.78rem; font-weight:700;
  letter-spacing:0.03em;
  white-space:nowrap;
}

.ticker-logo{ width:20px; height:20px; border-radius:5px; object-fit:cover; }

@keyframes ticker-scroll{
  0%{ transform:translateX(0); }
  100%{ transform:translateX(-50%); }
}

.ticker-close{
  flex-shrink:0;
  width:36px; height:100%;
  display:flex; align-items:center; justify-content:center;
  background:transparent; border:none; border-left:1px solid rgba(255,255,255,0.25);
  color:#fff; cursor:pointer; opacity:0.85;
}
.ticker-close:hover{ opacity:1; }

/* ============================================================
   HERO CAROUSEL
   ============================================================ */
.hero-carousel{
  position:relative;
  height:min(82vh, 750px);
  min-height:480px;
  overflow:hidden;
  background:#000;
  border-radius:0 0 var(--radius-xl) var(--radius-xl);
  box-shadow:0 30px 60px rgba(0,0,0,0.5);
}

.hero-track{ position:relative; width:100%; height:100%; }

.hero-slide{
  position:absolute; inset:0;
  opacity:0; visibility:hidden;
  transition:opacity 1000ms cubic-bezier(0.4, 0, 0.2, 1), visibility 1000ms;
  display:flex; align-items:flex-end;
}
.hero-slide.is-active{ opacity:1; visibility:visible; z-index:1; }

.hero-media{ 
  position:absolute; inset:0; overflow:hidden;
}
.hero-media::after{
  content:'';
  position:absolute; inset:0;
  background:radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.3) 100%);
  z-index:1;
}
.hero-media img{
  width:100%; height:100%; object-fit:cover;
  object-position:center 25%;
  transform:scale(1.1);
  transition:transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter:brightness(0.85) saturate(1.1);
}
.hero-slide.is-active .hero-media img{ transform:scale(1); }

.hero-scrim{
  position:absolute; inset:0;
  z-index:2;
  background:
    linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.15) 65%, rgba(0,0,0,0.05) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 45%, rgba(0,0,0,0.05) 75%);
}

.hero-copy{
  position:relative; z-index:3;
  padding:0 clamp(28px, 7vw, 90px) clamp(55px, 9vw, 95px);
  max-width:780px;
  color:#fff;
  animation:heroFadeIn 0.8s ease-out;
}

@keyframes heroFadeIn{
  from{ opacity:0; transform:translateY(30px); }
  to{ opacity:1; transform:translateY(0); }
}

.hero-eyebrow{
  display:inline-flex;
  align-items:center; gap:8px;
  font-size:0.7rem; font-weight:700;
  letter-spacing:0.25em; text-transform:uppercase;
  color:#fff;
  background:rgba(250,36,60,0.2);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border:1px solid rgba(250,36,60,0.3);
  padding:8px 20px;
  border-radius:50px;
  margin-bottom:20px;
}
.hero-eyebrow::before{
  content:'';
  width:8px; height:8px;
  background:var(--primary);
  border-radius:50%;
  box-shadow:0 0 12px var(--primary-glow);
  animation:pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot{
  0%,100%{ opacity:1; transform:scale(1); }
  50%{ opacity:0.5; transform:scale(0.8); }
}

.hero-title{
  font-family:var(--font-display);
  font-weight:800;
  font-size:clamp(2.6rem, 6.5vw, 5rem);
  line-height:0.95;
  margin:0 0 18px;
  letter-spacing:-0.02em;
  text-shadow:0 4px 30px rgba(0,0,0,0.6);
}

.hero-sub{
  font-size:1.05rem;
  color:rgba(255,255,255,0.85);
  max-width:48ch;
  margin:0 0 32px;
  line-height:1.6;
  font-weight:400;
  text-shadow:0 2px 8px rgba(0,0,0,0.5);
}

.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; }

.btn-hero{
  display:inline-flex; align-items:center; gap:10px;
  padding:15px 30px;
  border-radius:60px;
  font-size:0.88rem; font-weight:700;
  letter-spacing:0.03em;
  transition:all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor:pointer;
  text-decoration:none;
  position:relative;
  overflow:hidden;
}
.btn-hero::before{
  content:'';
  position:absolute;
  top:50%; left:50%;
  width:0; height:0;
  border-radius:50%;
  background:rgba(255,255,255,0.2);
  transform:translate(-50%, -50%);
  transition:width 0.6s, height 0.6s;
}
.btn-hero:hover::before{ width:300px; height:300px; }

.btn-hero-primary{ 
  background:var(--primary); 
  color:#fff; 
  border:2px solid var(--primary);
  box-shadow:0 8px 25px rgba(250,36,60,0.4);
}
.btn-hero-primary:hover{ 
  background:#e62038; 
  transform:translateY(-3px); 
  box-shadow:0 14px 35px rgba(250,36,60,0.55);
}

.btn-hero-ghost{ 
  background:rgba(255,255,255,0.06); 
  border:2px solid rgba(255,255,255,0.3); 
  color:#fff;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.btn-hero-ghost:hover{ 
  background:rgba(255,255,255,0.15); 
  border-color:rgba(255,255,255,0.6);
  transform:translateY(-3px); 
}

.hero-arrow{
  position:absolute; top:50%; z-index:4;
  transform:translateY(-50%);
  width:50px; height:50px;
  border-radius:50%;
  background:rgba(20,20,30,0.6);
  backdrop-filter:blur(15px);
  -webkit-backdrop-filter:blur(15px);
  border:2px solid rgba(255,255,255,0.25);
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  font-size:1.1rem;
  transition:all 0.3s ease;
  box-shadow:0 8px 25px rgba(0,0,0,0.4);
}
.hero-arrow:hover{ 
  background:var(--primary); 
  border-color:var(--primary); 
  transform:translateY(-50%) scale(1.08);
  box-shadow:0 12px 35px rgba(250,36,60,0.5);
}
.hero-arrow-prev{ left:24px; }
.hero-arrow-next{ right:24px; }

.hero-progress{
  position:absolute; left:0; right:0; bottom:0; z-index:4;
  display:flex; gap:8px;
  padding:0 clamp(28px, 7vw, 90px) 24px;
}
.hero-progress-seg{
  flex:1;
  height:4px;
  background:rgba(255,255,255,0.2);
  backdrop-filter:blur(5px);
  -webkit-backdrop-filter:blur(5px);
  border-radius:4px;
  overflow:hidden;
  cursor:pointer;
  border:none;
  transition:background 0.3s ease, height 0.3s ease;
}
.hero-progress-seg:hover{
  background:rgba(255,255,255,0.4);
  height:6px;
}
.hero-progress-fill{
  display:block;
  height:100%; width:0%;
  background:linear-gradient(90deg, var(--primary), #ff6b7a);
  border-radius:4px;
  box-shadow:0 0 15px rgba(250,36,60,0.6);
}
.hero-progress-seg.is-done .hero-progress-fill{ width:100%; transition:none; }
.hero-progress-seg.is-active .hero-progress-fill{ width:100%; transition:width linear; }

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.main-layout{
  display:grid;
  grid-template-columns:300px 1fr;
  gap:28px;
  max-width:1240px;
  margin:0 auto;
  padding:40px 24px 0;
}

.left-block{ grid-row:span 2; }

.info-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:24px;
  position:sticky; top:calc(var(--header-h) + 16px);
}

.photo-box{
  width:100%; aspect-ratio:1/1;
  border-radius:var(--radius-md);
  overflow:hidden;
  border:1px solid var(--border);
  margin-bottom:16px;
}
.photo-box img{ width:100%; height:100%; object-fit:cover; }

.p-name{
 
  font-size:2rem;
  font-weight:700;
  color:var(--primary);
  text-align:center;
  margin:0 0 20px;
}

.stream-section h3{
  font-size:0.72rem; font-weight:700;
  letter-spacing:0.1em; text-transform:uppercase;
  color:var(--text-muted);
  margin:0 0 10px;
}

.stream-link{
  display:flex; align-items:center; gap:12px;
  padding:12px;
  background:var(--bg-elevated);
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  transition:border-color .2s ease, transform .2s ease;
}
.stream-link:hover{ border-color:var(--border-strong); transform:translateX(3px); }

.stream-icon{
  width:38px; height:38px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:0.9rem; flex-shrink:0;
}
.sh-bg{ background:linear-gradient(135deg,#7c3aed,#c026d3); }

.stream-text{ display:flex; flex-direction:column; }
.stream-title{ font-size:0.85rem; font-weight:700; }
.stream-sub{ font-size:0.72rem; color:var(--text-muted); }

#spotify-playlists-container, #youtube-playlists-container{
  display:flex; flex-direction:column; gap:8px;
}
#spotify-playlists-container > *, #youtube-playlists-container > *{
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  background:var(--bg-elevated);
  padding:10px 12px;
}
#spotify-playlists-container a:hover, #youtube-playlists-container a:hover{
  border-color:var(--border-strong);
}
/* ============================================================
   GOALS SECTION - Style parfaitement adapté à home.js
   ============================================================ */

/* En-tête de section */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding: 20px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.m-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
  color: var(--primary) !important;
}

.m-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent);
  border-radius: 3px;
}

/* Grille des goals */
#goals-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

/* ============================================================
   CARTE GOAL PREMIUM
   ============================================================ */
.goal-card-premium {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  margin-bottom: 0 !important;
  animation: goalFadeIn 0.5s ease forwards;
  opacity: 0;
}

.goal-card-premium:nth-child(1) { animation-delay: 0.05s; }
.goal-card-premium:nth-child(2) { animation-delay: 0.1s; }
.goal-card-premium:nth-child(3) { animation-delay: 0.15s; }
.goal-card-premium:nth-child(4) { animation-delay: 0.2s; }
.goal-card-premium:nth-child(5) { animation-delay: 0.25s; }
.goal-card-premium:nth-child(6) { animation-delay: 0.3s; }

@keyframes goalFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.goal-card-premium:hover {
  border-color: rgba(250, 36, 60, 0.5) !important;
  transform: translateY(-8px) !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(250, 36, 60, 0.15) !important;
}

/* Conteneur interne */
.goal-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ============================================================
   IMAGE DU GOAL
   ============================================================ */
.goal-image-container {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.goal-image-container img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: block !important;
}

.goal-card-premium:hover .goal-image-container img {
  transform: scale(1.08) !important;
}

/* Badge sur l'image */
.goal-image-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================================
   DÉTAILS DU GOAL
   ============================================================ */
.goal-details {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

/* Label GOAL */
.goal-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(250, 36, 60, 0.12);
  color: var(--primary);
  border: 1px solid rgba(250, 36, 60, 0.25);
  width: fit-content;
}

/* Titre du goal */
.goal-title {
  font-family: var(--font-display) !important;
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  margin: 0 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.2 !important;
}

/* Nombres (current / target) */
.goal-numbers {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.9rem;
}

.current-streams {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}

.separator {
  color: var(--text-muted);
  margin: 0 2px;
}

.target-streams {
  font-weight: 600;
  color: var(--text);
}

/* ============================================================
   BARRE DE PROGRESSION
   ============================================================ */
.progress-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-bar-bg {
  flex: 1;
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #fa243c, #ff6b7a, #fa243c);
  background-size: 200% 100%;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(250, 36, 60, 0.5), 0 0 5px rgba(250, 36, 60, 0.3);
  transition: width 0.6s ease;
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.progress-percent {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--primary);
  min-width: 55px;
  text-align: right;
  text-shadow: 0 0 10px rgba(250, 36, 60, 0.3);
}

/* Texte "remaining" */
.goal-remaining {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.goal-remaining i {
  color: var(--primary);
  font-size: 0.75rem;
}

.goal-remaining strong {
  color: var(--text);
  font-weight: 700;
}

/* ============================================================
   BOUTONS D'ADMIN (edit/delete)
   ============================================================ */
.goal-card-premium > div:first-child button {
  transition: all 0.2s ease !important;
}

.goal-card-premium > div:first-child button:hover {
  transform: scale(1.1) !important;
}

/* ============================================================
   BOUTONS D'ÉDITION
   ============================================================ */
.edit-goal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.edit-goal-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

#add-goal-btn {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(250, 36, 60, 0.4);
}

#add-goal-btn:hover {
  background: var(--primary-deep);
  border-color: var(--primary-deep);
  box-shadow: 0 8px 30px rgba(250, 36, 60, 0.5);
  transform: translateY(-2px);
}

/* ============================================================
   RESPONSIVE GOALS
   ============================================================ */
@media (max-width: 768px) {
  .section-header {
    padding: 16px 20px;
    gap: 12px;
  }

  #goals-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .goal-image-container {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .m-title {
    font-size: 1.4rem;
  }

  .goal-card-premium {
    border-radius: 16px !important;
  }

  .goal-image-container {
    height: 160px;
  }
}

/* ============================================================
   BOUTONS D'ÉDITION
   ============================================================ */
.edit-goal-btn{
  display:inline-flex;
  align-items:center; gap:8px;
  padding:10px 20px;
  font-size:0.8rem; font-weight:700;
  background:var(--surface);
  border:1px solid var(--border);
  color:var(--text);
  border-radius:50px;
  cursor:pointer;
  transition:all 0.3s ease;
  letter-spacing:0.02em;
  backdrop-filter:blur(5px);
  -webkit-backdrop-filter:blur(5px);
}
.edit-goal-btn:hover{
  background:var(--surface-hover);
  border-color:var(--border-strong);
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(0,0,0,0.2);
}

#add-goal-btn{
  background:var(--primary);
  color:white;
  border-color:var(--primary);
  box-shadow:0 4px 20px rgba(250,36,60,0.4);
}
#add-goal-btn:hover{
  background:var(--primary-deep);
  border-color:var(--primary-deep);
  box-shadow:0 8px 30px rgba(250,36,60,0.5);
  transform:translateY(-2px);
}

/* ============================================================
   FORMULAIRES (Add / Edit goal)
   ============================================================ */
.edit-form-container{
  position:fixed; inset:0; z-index:200;
  display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,0.75);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  padding:20px;
  animation:overlayFadeIn 0.3s ease;
}

@keyframes overlayFadeIn{
  from{ opacity:0; }
  to{ opacity:1; }
}

.edit-form-card{
  width:100%; max-width:460px;
  background:var(--bg-elevated);
  border:1px solid var(--border-strong);
  border-radius:24px;
  padding:32px;
  box-shadow:0 30px 70px rgba(0,0,0,0.6);
  animation:formSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes formSlideUp{
  from{ opacity:0; transform:translateY(40px) scale(0.95); }
  to{ opacity:1; transform:translateY(0) scale(1); }
}

.edit-form-card h3{
  font-family:var(--font-display);
  font-size:1.4rem;
  margin:0 0 24px;
  display:flex; align-items:center; gap:12px;
  color:var(--text);
}
.edit-form-card h3 i{ color:var(--primary); }

.form-group{ margin-bottom:20px; }

.form-group label{
  display:block;
  font-size:0.72rem; font-weight:700;
  letter-spacing:0.08em; text-transform:uppercase;
  color:var(--text-muted);
  margin-bottom:8px;
}

.form-group input{
  width:100%;
  padding:14px 16px;
  background:var(--bg);
  border:1.5px solid var(--border);
  color:var(--text);
  border-radius:12px;
  font-size:0.95rem;
  transition:all 0.3s ease;
  outline:none;
}
.form-group input:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 4px rgba(250,36,60,0.12);
}
.form-group input::placeholder{ color:var(--text-faint); }

.form-actions{
  display:flex; gap:12px;
  margin-top:28px;
}

.btn-save, .btn-cancel{
  flex:1;
  display:inline-flex;
  align-items:center; justify-content:center; gap:8px;
  padding:14px;
  border-radius:12px;
  font-size:0.9rem; font-weight:700;
  cursor:pointer;
  transition:all 0.3s ease;
  border:none;
}

.btn-save{
  background:var(--primary);
  color:white;
  box-shadow:0 4px 15px rgba(250,36,60,0.4);
}
.btn-save:hover{
  background:var(--primary-deep);
  transform:translateY(-2px);
  box-shadow:0 8px 25px rgba(250,36,60,0.5);
}

.btn-cancel{
  background:var(--surface);
  color:var(--text-muted);
  border:1px solid var(--border);
}
.btn-cancel:hover{
  color:var(--text);
  border-color:var(--border-strong);
  background:var(--surface-hover);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{
  grid-column:2;
  text-align:center;
  padding:40px 24px 60px;
  border-top:1px solid var(--border);
  margin-top:12px;
}
.site-footer h3{ font-family:var(--font-display); font-size:1.2rem; margin:0; }

.contact-links{
  display:flex; justify-content:center; gap:14px;
  margin-top:18px;
}
.contact-links a{
  width:40px; height:40px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid var(--border);
  border-radius:50%;
  transition:border-color .2s ease, color .2s ease, transform .2s ease;
}
.contact-links a:hover{
  border-color:var(--primary);
  color:var(--primary);
  transform:translateY(-2px);
}

.login-btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 20px;
  background:transparent;
  border:1px solid var(--border);
  color:var(--text-muted);
  border-radius:999px;
  font-size:0.8rem; font-weight:600;
  cursor:pointer;
}
.login-btn:hover{ border-color:var(--border-strong); color:var(--text); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px){
  .main-layout{ grid-template-columns:1fr; }
  .left-block{ grid-row:auto; }
  .info-card{ position:static; }
  .site-footer{ grid-column:1; }
}

@media (max-width: 768px){
  .hero-carousel{ 
    height:min(90vh, 650px); 
    border-radius:0 0 25px 25px;
  }
  .hero-arrow{ width:40px; height:40px; }
  .hero-arrow-prev{ left:12px; }
  .hero-arrow-next{ right:12px; }
  .hero-sub{ font-size:0.9rem; margin-bottom:24px; }
  .hero-copy{ padding-bottom:45px; }
  .hero-eyebrow{ font-size:0.65rem; padding:6px 16px; }
  .btn-hero{ padding:12px 24px; font-size:0.8rem; }
  
  .section-header{ padding:16px 20px; gap:12px; }
  #goals-container{ grid-template-columns:1fr; gap:16px; }
  #goals-container img{ height:180px; }
  .edit-form-card{ padding:24px; }
}

@media (max-width: 640px){
  .top-bar{ padding:0 16px; gap:16px; }
  .main-nav span{ display:none; }
  .mobile-menu-btn{ display:flex; }
  .date-pill span{ display:none; }
}

@media (max-width: 480px){
  .section-header{ flex-direction:column; align-items:flex-start; }
  .m-title{ font-size:1.4rem; }
  #goals-container > *{ border-radius:16px; }
  #goals-container img{ height:160px; }
}




/* --- 1. Variables manquantes pour le hero --- */
:root{
    --font-display: 'Playfair Display', serif;
    --radius-lg: 22px;
}

/* --- 2. Compenser le header fixe (évite que le ticker/hero soient masqués) --- */
#announcement-sticker{
    margin-top: 80px;
}

/* réduire le double espacement en haut du main-layout, devenu inutile
   puisque le ticker + hero poussent déjà le contenu vers le bas */
.main-layout{
    padding-top: clamp(20px, 5vw, 60px);
}

/* --- 3. HERO CAROUSEL (absent de s.css, on l'ajoute) --- */
.hero-carousel{
    position:relative;
    height:min(78vh, 720px);
    min-height:440px;
    overflow:hidden;
    background:#000;
}
.hero-track{ position:relative; width:100%; height:100%; }

.hero-slide{
    position:absolute; inset:0;
    opacity:0; visibility:hidden;
    transition:opacity 900ms ease;
    display:flex; align-items:flex-end;
}
.hero-slide.is-active{ opacity:1; visibility:visible; z-index:1; }

.hero-media{ position:absolute; inset:0; overflow:hidden; }
.hero-media img{
    width:100%; height:100%; object-fit:cover;
    transform:scale(1.06);
    transition:transform 7s ease-out;
}
.hero-slide.is-active .hero-media img{ transform:scale(1); }

.hero-scrim{
    position:absolute; inset:0;
    background:
        linear-gradient(0deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.35) 46%, rgba(0,0,0,0.05) 70%),
        linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 55%);
}

.hero-copy{
    position:relative; z-index:2;
    padding:0 clamp(24px, 6vw, 80px) clamp(48px, 8vw, 88px);
    max-width:760px;
    color:#fff;
}
.hero-eyebrow{
    display:inline-block;
    font-size:0.75rem; font-weight:700;
    letter-spacing:0.2em; text-transform:uppercase;
    color:var(--primary);
    margin-bottom:14px;
}
.hero-title{
    font-family:var(--font-display);
    font-weight:800;
    font-size:clamp(2.4rem, 6vw, 4.6rem);
    line-height:0.98;
    margin:0 0 16px;
    letter-spacing:-0.01em;
}
.hero-sub{
    font-size:1rem;
    color:rgba(255,255,255,0.78);
    max-width:46ch;
    margin:0 0 28px;
    line-height:1.5;
}
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }

.btn-hero{
    display:inline-flex; align-items:center; gap:10px;
    padding:13px 26px;
    border-radius:999px;
    font-size:0.85rem; font-weight:700;
    letter-spacing:0.02em;
    transition:transform .2s ease, background .2s ease, border-color .2s ease;
    text-decoration:none;
}
.btn-hero-primary{ background:var(--primary); color:#fff; }
.btn-hero-primary:hover{ background:var(--primary-hover); transform:translateY(-2px); }
.btn-hero-ghost{ background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.35); color:#fff; }
.btn-hero-ghost:hover{ background:rgba(255,255,255,0.16); transform:translateY(-2px); }

.hero-arrow{
    position:absolute; top:50%; z-index:3;
    transform:translateY(-50%);
    width:44px; height:44px;
    border-radius:50%;
    background:rgba(0,0,0,0.35);
    border:1px solid rgba(255,255,255,0.25);
    color:#fff;
    display:flex; align-items:center; justify-content:center;
    cursor:pointer;
    backdrop-filter:blur(6px);
    transition:background .2s ease, transform .2s ease;
}
.hero-arrow:hover{ background:var(--primary); border-color:var(--primary); }
.hero-arrow-prev{ left:20px; }
.hero-arrow-next{ right:20px; }

.hero-progress{
    position:absolute; left:0; right:0; bottom:0; z-index:3;
    display:flex; gap:6px;
    padding:0 clamp(24px, 6vw, 80px) 18px;
}
.hero-progress-seg{
    flex:1; height:3px;
    background:rgba(255,255,255,0.28);
    border-radius:3px; overflow:hidden; cursor:pointer; border:none;
}
.hero-progress-fill{
    display:block; height:100%; width:0%;
    background:var(--primary); border-radius:3px;
}
.hero-progress-seg.is-done .hero-progress-fill{ width:100%; transition:none; }
.hero-progress-seg.is-active .hero-progress-fill{ width:100%; transition:width linear; }

@media (max-width: 720px){
    .hero-carousel{ height:min(88vh, 620px); }
    .hero-arrow{ width:36px; height:36px; }
    .hero-sub{ display:none; }
}




/* ============================================================
   MENU MOBILE
   ============================================================ */
@media (max-width: 640px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--surface);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 999;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav .nav-item {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 16px;
    border-radius: 12px;
  }

  .main-nav span {
    display: inline !important;
  }

  .mobile-menu-btn {
    display: flex;
  }
}