:root {
  --hc-bg:#05020a;
  --hc-text:#eaeff5;
  --hc-sub:#aab2bf;
  --hc-accent:#e1c3a8;

  --rose:#ec4899;
  --rose-hover:#db2777;
  --rose-ring:rgba(236,72,153,.35);

  --violet:#8b5cf6;
  --violet-hover:#7c3aed;
  --violet-ring:rgba(139,92,246,.45);
}

*,
*::before,
*::after { box-sizing:border-box; }
/* ✅ empêche le fond global (main-header.css) de couvrir les slides */
body.dashboard-intro::before,
body.dashboard-intro::after{
  content:none !important;
  display:none !important;
}

html, body {
  margin:0;
  padding:0;
  height:100%;
}

body.dashboard-intro{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
/* ✅ Footer toujours en bas (comme index), même si peu de contenu */
body.dashboard-intro {
  min-height: 100svh; /* mieux que 100vh sur mobile */
}

.dashboard-intro .intro-main {
  flex: 1 0 auto;
}

/* ✅ Tes partials ajoutent des <br> direct enfants du body : on les neutralise ici */
body.dashboard-intro > br{ display:none; }

/* ================== BACKGROUND SLIDES ================== */

.bg-slides{
  position:fixed;
  inset:0;
  z-index:0;
  overflow:hidden;
}

.bg-slide{
  position:absolute;
  inset:0;
  background-size:contain;       /* desktop */
  background-position:center center;
  background-repeat:no-repeat;
  background-color:#020617;
  opacity:0;
  transition:opacity 1.2s ease;
}

.bg-slide.is-active{ opacity:1; }

.bg-overlay{
  position:fixed;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:
    radial-gradient(circle at 0% 0%, rgba(139,92,246,.30), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(236,72,153,.25), transparent 55%),
    linear-gradient(135deg, rgba(3,7,18,.25), rgba(15,23,42,.50));
}

/* ================== LAYOUT GLOBAL ================== */

.intro-main{
  position:relative;
  z-index:2;

  justify-content:stretch;
  padding: 18px clamp(14px, 4vw, 40px) 18px;
  min-height:0;
}

.intro-layout{
margin:1.5% 0% 0% 10%;
}

/* ================== HERO (colonne gauche) ================== */

.hero-poem.hero-poem--compact{
  max-width:600px;
  padding: 22px 20px;
  border-radius:24px;
  background: radial-gradient(circle at top left, rgba(255,192,203,0.55), rgba(137,72,179,0.25));
  color:#fff;
  backdrop-filter:blur(14px);
  box-shadow:0 22px 60px rgba(0,0,0,0.35);
  display:flex;
  flex-direction:column;
  gap: 10px;
}

/* ✅ Branding INTRO uniquement (ne touche pas le header) */
.dashboard-intro .intro-brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
}

.dashboard-intro .intro-brand-mark{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:10px;
  background:rgba(26,31,41,.92);
  border:1px solid rgba(255,255,255,.25);
  color:var(--hc-accent);
  box-shadow:
    0 4px 14px rgba(0,0,0,.35),
    0 0 0 1px rgba(255,255,255,.10) inset;
}

.dashboard-intro .intro-brand.tiny .intro-brand-mark{
  width:28px; height:28px; font-size:12px;
}

.dashboard-intro .intro-brand-name{
  color:#fff;
  text-shadow:0 2px 10px rgba(0,0,0,.45);
  letter-spacing:.3px;
}

/* Texte hero (recalibré) */
.hero-eyebrow{
  margin:0;
  font-size: clamp(13px, 3.4vw, 15px);
  line-height:1.25;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:#fff;
}

.hero-title{
  margin:0;
  font-size: clamp(18px, 4.4vw, 22px);
  line-height:1.15;
  font-weight:800;
  color:rgba(255,255,255,.92);
}

.hero-sub{
  margin:0;
  font-size: clamp(13px, 3.6vw, 15px);
  line-height:1.5;
  color: rgba(255,255,255,.92);
}

/* Tags */
.hero-tags{
  text-align:center;
  margin-top: 6px;
}

.hero-tag{
  display:inline-block;
  margin: 6px 6px 0 0;
  font-size: 12px;
  padding: 6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,0.12);
  backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,0.3);
  font-weight:800;
  white-space:nowrap;
}

.hero-tag-her{ background:#f9a8d4; color:#020617; }
.hero-tag-him{ background:#93c5fd; color:#020617; }
.hero-tag-both{ background:#a5b4fc; color:#020617; }

.hero-poem hr{
  border:0;
  height:2px;
  width:100%;
  background:rgba(255,255,255,.85);
  border-radius:999px;
  margin: 12px 0 10px;
}

/* ✅ CTA : on ne restyle PAS .btn global, on ajuste juste le CTA dans l’intro */
.dashboard-intro .hero-actions{
  display:flex;
  justify-content:center;
  margin-top: 2px;
}

.dashboard-intro .hero-actions .intro-cta{
  width: min(420px, 100%);
  min-height: 48px;
  padding: 12px 18px;
}

/* ================== BLOC EXPLICATIF (style identique à celui de index.php) ================== */

.dashboard-blocks{
  width:100%;
  max-width:520px; /* proche de la colonne droite de la home */
  border-radius:20px;
  border:1px solid rgba(165,180,252,0.70);
  padding:14px 18px 16px;
  box-shadow:
    0 22px 56px rgba(15,23,42,0.95),
    0 0 0 1px rgba(15,23,42,0.95) inset;
  display:flex;
}

.blocks-inner{ width:100%; max-height:none; overflow:visible; }

.blocks-header{ text-align:left; margin-bottom:14px; }
.blocks-header h2{ margin:0 0 4px; font-size:20px; color:#f9fafb; }
.blocks-header p{ margin:0; font-size:13.5px; color:var(--hc-sub); }

.blocks-grid{ display:flex; flex-direction:column; gap:10px; }

.block-card{
  backdrop-filter:saturate(130%) blur(10px);
  background:
    radial-gradient(circle at 0% 0%, rgba(147,197,253,0.45), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(165,180,252,0.55), transparent 25%),
    linear-gradient(145deg, rgba(15,23,42,0.96), rgba(15,23,42,0.90));
  border-radius:16px;
  border:1px solid rgba(165,180,252,0.55);
  padding:12px 12px 10px;
  box-shadow:
    0 16px 40px rgba(15,23,42,0.75),
    0 0 0 1px rgba(15,23,42,0.70) inset;
}

.block-card h3{ margin:0 0 6px; font-size:1.05rem; color:#e5e7eb; font-family:calibri; }
.block-card ul{ margin:0; padding-left:18px; }
.block-card li{ font-size:0.95rem; line-height:1.5; color:white; margin-bottom:3px; }
.block-card li:last-child{ margin-bottom:0; }

.blocks-grid .block-card:nth-child(1) h3{ color:#f9a8d4; }
.blocks-grid .block-card:nth-child(2) h3{ color:#93c5fd; }
.blocks-grid .block-card:nth-child(3) h3{ color:#a5b4fc; }

/* ================== RESPONSIVE ================== */

@media (max-width:980px){
  .intro-main{
    align-items:flex-start;
    padding-top: 18px;
    padding-bottom: 24px;
  }
  .intro-layout{
    grid-template-columns:1fr;
    justify-content:center;
  }
  .hero-poem, .dashboard-blocks{ max-width:100%; }
  .dashboard-blocks{ margin-top:12px; }
}

@media (max-width:768px){
  /* Sur mobile : cover + position pour éviter le texte “dans l’image” derrière les blocs */
  .bg-slide{
    background-size:cover;              /* rempli l’écran */
    background-position:center 35%;     /* remonte un peu le cadrage */
    background-repeat:no-repeat;
    background-color:#020617;
    transform:none;                    /* enlève le scale si ça te bouffe le cadrage */
  }

  /* overlay moins agressif pour laisser voir l’image */
  .bg-overlay{
    background: linear-gradient(
      180deg,
      rgba(2,6,23,.62) 0%,
      rgba(2,6,23,.52) 45%,
      rgba(2,6,23,.62) 100%
    );
  }

  .bg-overlay::after{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background: radial-gradient(
      ellipse at 50% 30%,
      rgba(2,6,23,.90) 0%,
      rgba(2,6,23,.70) 32%,
      rgba(2,6,23,.00) 68%
    );
	opacity:.55; 
  }

  .hero-poem.hero-poem--compact{
    padding: 18px 16px;
    gap: 8px;
    border-radius: 20px;
  }

  .dashboard-intro .hero-actions .intro-cta{
    width: 100%;
  }
}

@media (max-width:420px){
  .hero-title{ font-size: 18px; }
  .hero-sub{ font-size: 13px; }
  .block-card li{ font-size: 12px; }
}
/* Flash toast (intro) */
.hc-toast{
  position: fixed;
  left: 12px;
  right: 12px;
  top: calc(12px + env(safe-area-inset-top));
  z-index: 9999;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.hc-toast__inner{
  width: min(760px, 100%);
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(15,23,42,.85);
  backdrop-filter: blur(10px) saturate(140%);
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
}

.hc-toast__msg{
  flex: 1;
  color: rgba(226,232,240,.95);
  font-size: 14px;
  line-height: 1.35;
}

.hc-toast__close{
  appearance: none;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: rgba(226,232,240,.95);
  width: 34px;
  height: 34px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.hc-toast__close:hover{
  background: rgba(255,255,255,.10);
}
