/* =========================
   SARHA.CSS — PAGE SARAH
   Objectifs:
   - pas de chevauchement
   - repères en cartes
   - parallax panel hero
   ========================= */

/* =========================
   HERO SARAH — BASE
   ========================= */

.xs-heroSarah{
  position:relative;
  min-height:80vh;
  display:flex;
  align-items:center;
  color:#fff;
  overflow:hidden;
  background:#020617;
}

/* BG */
.xs-heroBg{
  position:absolute;
  inset:0;
  z-index:0;
  overflow:hidden;
  will-change:transform;
  transform:translateY(0);
}

.xs-heroBgFallback{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

.xs-heroBgVideo{
  position:absolute;
  left:50%;
  top:50%;
  width:110%;
  height:110%;
  transform:translate(-50%, -50%);
  object-fit:cover;
  will-change:transform;
}

/* Overlay lisibilité */
.xs-heroSarah::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:
    linear-gradient(115deg, rgba(0,0,0,.78), rgba(0,0,0,.42)),
    linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,0) 60%);
}

/* =========================
   HERO CONTENT
   ========================= */

.xs-heroSarahInner{
  position:relative;
  z-index:2;
  padding:104px 0 92px;
}

.xs-heroPanelSarah{
  max-width:960px;
  margin:0 auto;
  padding:26px 26px 22px;
  border-radius:30px;
  background:linear-gradient(135deg, rgba(15,23,42,.88), rgba(15,23,42,.62));
  border:1px solid rgba(255,255,255,.28);
  backdrop-filter:blur(10px) saturate(1.35);
  -webkit-backdrop-filter:blur(10px) saturate(1.35);
  box-shadow:0 26px 90px rgba(0,0,0,.55);
  will-change:transform;
  transform:translateY(0);
}

@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .xs-heroPanelSarah{ background:rgba(15,23,42,.88); }
}

.xs-heroSarahKicker{
  font-size:.9rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  opacity:.85;
  margin-bottom:10px;
}

.xs-heroPanelSarah h1{
  font-size:clamp(2.4rem, 4.2vw, 3.2rem);
  line-height:1.05;
  margin:0 0 6px;
  font-weight:900;
}

.xs-heroPanelSarah h2{
  font-size:1.12rem;
  font-weight:500;
  opacity:.95;
  margin:0 0 14px;
}

.xs-heroPanelSarah p{
  max-width:760px;
  font-size:.98rem;
  line-height:1.75;
  margin:0 0 12px;
}

.xs-heroSarahMeta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:12px 0 6px;
}

.xs-heroSarahMeta span{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(248,250,252,.35);
  background:rgba(15,23,42,.75);
  font-size:.78rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  opacity:.92;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .xs-heroBgVideo{ display:none; }
  .xs-heroBg,
  .xs-heroPanelSarah{ transform:none !important; }
}

/* Mobile hero */
@media (max-width:768px){
  .xs-heroSarahInner{ padding:92px 0 72px; }
  .xs-heroPanelSarah{
    max-width:640px;
    padding:22px 18px 18px;
    border-radius:24px;
  }
  .xs-heroPanelSarah h1{ font-size:clamp(2rem, 7vw, 2.4rem); }
  .xs-heroPanelSarah h2{ font-size:1rem; }
}

/* =========================
   SECTION "REPÈRES" (cartes)
   ========================= */

.xs-sec{
  padding:54px 0 10px;
}

.xs-sec--repere{
  background:
    radial-gradient(900px 420px at 10% 0%, rgba(255,90,60,.12), rgba(255,90,60,0) 60%),
    radial-gradient(900px 420px at 90% 0%, rgba(31,42,50,.10), rgba(31,42,50,0) 60%);
}

.xs-secTitle{
  margin:0 0 10px;
  font-size:1.6rem;
  letter-spacing:-.02em;
}

.xs-secLead{
  margin:0 0 18px;
  max-width:900px;
  color:rgba(31,42,50,.78);
  line-height:1.8;
}

.xs-factsGrid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:16px;
}

@media (max-width:1000px){
  .xs-factsGrid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width:560px){
  .xs-factsGrid{ grid-template-columns:1fr; }
}

.xs-factCard{
  display:flex;
  flex-direction:column;
  gap:10px;
  text-decoration:none;
  border-radius:22px;
  padding:16px 16px 14px;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(31,42,50,.10);
  box-shadow:0 14px 34px rgba(9,15,22,.08);
  min-height:150px;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.xs-factCard b{
  font-size:1.02rem;
  letter-spacing:-.01em;
}

.xs-factCard p{
  margin:0;
  color:rgba(31,42,50,.78);
  line-height:1.7;
  font-size:.95rem;
}

.xs-factGo{
  margin-top:auto;
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:900;
  font-size:.82rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(31,42,50,.78);
}

.xs-factCard--accent{
  background:linear-gradient(135deg, rgba(255,90,60,.14), rgba(255,90,60,.06));
  border-color:rgba(255,90,60,.28);
  box-shadow:0 18px 46px rgba(255,90,60,.16);
}

@media (hover:hover) and (pointer:fine){
  .xs-factCard:hover{
    transform:translateY(-2px);
    box-shadow:0 22px 60px rgba(9,15,22,.12);
    border-color:rgba(31,42,50,.16);
  }
  .xs-factCard--accent:hover{
    box-shadow:0 26px 70px rgba(255,90,60,.18);
    border-color:rgba(255,90,60,.40);
  }
}

/* =========================
   STRUCTURE ARTICLES
   ========================= */

.xs-articleShell{ padding:56px 0 86px; }

.xs-articleNarrow{
  max-width:1040px;
  margin:0 auto;
}

.xs-articleNarrow + .xs-articleNarrow{ margin-top:60px; }

.xs-articleNarrow h2{
  font-size:1.5rem;
  margin:0 0 10px;
  letter-spacing:-.01em;
}

.xs-articleNarrow p{ margin:0 0 12px; }

.xs-articleNarrow ul{
  margin:0 0 14px 1.2em;
  padding:0;
}

.xs-articleNarrow li{ margin-bottom:4px; }

.xs-muted{
  opacity:.74;
  font-size:.92rem;
  line-height:1.6;
}

/* =========================
   GRILLE 2 COLONNES (anti-chevauchement)
   ========================= */

.xs-twoCol{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);
  gap:40px;
  align-items:start;
  margin-top:16px;
}

/* Pare-feu anti "sticky" venant d'ailleurs */
.xs-twoCol > aside,
.xs-twoCol aside{
  position:static !important;
  top:auto !important;
}

@media (max-width:960px){
  .xs-twoCol{
    grid-template-columns:1fr;
    gap:24px;
  }
}

/* Stack aside */
.xs-asideStack{
  display:flex;
  flex-direction:column;
  gap:16px;
}

/* =========================
   PARCOURS — VIDEO DROITE
   ========================= */

.xs-parcoursMedia{ align-self:stretch; }

.xs-sideVideo{
  width:100%;
  height:100%;
  min-height:520px;
  border-radius:18px;
  overflow:hidden;
  background:#020617;
  border:1px solid rgba(255,90,60,.22);
  box-shadow:0 18px 45px rgba(0,0,0,.35);
}

.xs-sideVideoEl{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  background:#000;
}

@media (max-width:960px){
  .xs-sideVideo{ min-height:320px; }
}

/* =========================
   CARTES ASIDE
   ========================= */

.xs-parcoursRepereFull{ margin-top:18px; }

.xs-sideCard{
  position:relative;
  z-index:0;
  border-radius:22px;
  padding:18px 20px 20px;
  font-size:.95rem;
  background:linear-gradient(135deg, rgba(255,90,60,.12), rgba(255,90,60,.04));
  border:1px solid rgba(255,90,60,.25);
  box-shadow:0 20px 60px rgba(255,90,60,.14);
}

.xs-sideCard h3{
  margin:0 0 10px;
  font-size:1.05rem;
}

.xs-sideCard ul{ margin:0 0 10px 1.2em; }

.xs-sideCard--mini{ margin-top:0; }

/* =========================
   MÉTHODE
   ========================= */

.xs-methodGrid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:26px;
  margin-top:20px;
}

@media (max-width:960px){
  .xs-methodGrid{ grid-template-columns:1fr; }
}

.xs-methodCard{
  border-radius:22px;
  padding:18px 20px;
  background:#fff;
  border:1px solid rgba(15,23,42,.06);
  box-shadow:0 16px 40px rgba(15,23,42,.08);
}

.xs-methodCard h3{
  margin:0 0 8px;
  font-size:1.05rem;
}

.xs-methodCard ul{ margin:0 0 0 1.1em; }

.xs-methodBand{
  margin-top:22px;
  padding:18px 22px;
  border-radius:24px;
  background:#0f172a;
  color:#e5e7eb;
  box-shadow:0 22px 60px rgba(0,0,0,.35);
}

.xs-methodBand h3{ margin:0 0 8px; }

/* =========================
   FIGURES
   ========================= */

.xs-figureCard{
  border-radius:22px;
  overflow:hidden;
  background:#020617;
  box-shadow:0 18px 45px rgba(0,0,0,.22);
}

.xs-figureMedia img{
  width:100%;
  height:auto;
  display:block;
  object-fit:cover;
}

.xs-figureCard figcaption{
  padding:10px 14px 12px;
  background:#0f172a;
  color:#e5e7eb;
  font-size:.9rem;
  line-height:1.5;
}

.xs-figureExtra{
  padding:10px 10px 12px;
}

.xs-figureExtraInner{
  border-radius:16px;
  overflow:hidden;
  background:#000;
}

/* =========================
   CITATION
   ========================= */

.xs-quoteBand{
  border-radius:26px;
  background:#0f172a;
  color:#e5e7eb;
  box-shadow:0 26px 80px rgba(0,0,0,.4);
  padding:22px 26px;
  margin-top:24px;
}

.xs-quoteBand strong{ color:#ff5a3c; }

/* =========================
   SLIDER VIDEO
   ========================= */

.xs-mediaRail{ margin-top:22px; }

.xs-mediaRailHead{ margin-bottom:10px; }

.xs-mediaRailTitle{
  font-size:1.05rem;
  margin-bottom:4px;
}

.xs-mediaRailLead{
  opacity:.78;
  font-size:.95rem;
}

.xs-slider{
  width:100%;
  border-radius:26px;
  overflow:hidden;
  background:#020617;
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 26px 80px rgba(0,0,0,.45);
}

.xs-sliderViewport{
  overflow:auto;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
}

.xs-sliderTrack{
  display:flex;
  width:100%;
}

.xs-slide{
  flex:0 0 100%;
  scroll-snap-align:start;
}

.xs-slideMedia{
  position:relative;
  width:100%;
  aspect-ratio:21/9;
  background:#000;
}

.xs-slideVideo{
  width:100%;
  height:100%;
  object-fit:cover;
}

@media (max-width:960px){
  .xs-slideMedia{ aspect-ratio:16/9; }
}
@media (max-width:640px){
  .xs-slideMedia{ aspect-ratio:4/3; }
}

.xs-slideControls{
  position:absolute;
  left:14px;
  bottom:14px;
  display:flex;
  gap:10px;
}

.xs-vbtn{
  appearance:none;
  border:1px solid rgba(255,255,255,.28);
  background:rgba(15,23,42,.62);
  color:#fff;
  padding:10px 12px;
  border-radius:999px;
  font-size:.9rem;
  cursor:pointer;
  backdrop-filter:blur(8px) saturate(1.2);
}

.xs-vbtn:hover{
  background:rgba(15,23,42,.74);
}

/* =========================
   CTA FINAL
   ========================= */

.xs-articleCTA{
  border-radius:26px;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(31,42,50,.10);
  box-shadow:0 18px 50px rgba(9,15,22,.08);
  padding:22px 24px;
}

.xs-articleCTA h2{ margin:0 0 10px; }