/* ==========================================================================
   Pages de cas clients (/cas/<slug>/)
   S'ajoute à styles.css + product.css. Réutilise .proj-hero et .proj-content
   de project.css — repris ici pour ne pas dépendre du gabarit Framer, qui
   sert les anciennes pages /projects/.
   ========================================================================== */

/* ---------- Hero ---------- */
.proj-hero{
  position:relative; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  background:#0b0b0e;
  padding:150px 24px 90px;
}
.proj-hero__content{
  position:relative; z-index:2;
  display:flex; flex-direction:column; align-items:center; gap:16px;
  width:100%; max-width:860px; text-align:center;
}
.proj-hero__badge{
  display:flex; align-items:center; gap:8px;
  background:rgba(242,242,242,.08); border-radius:40px; padding:8px 16px;
}
.proj-hero__badge p{
  font-family:var(--font-title); font-weight:500; font-size:14px;
  letter-spacing:-.005em; color:rgba(242,242,242,.9);
}
.proj-hero__title{
  font-family:var(--font-title); font-weight:700; font-size:64px; line-height:110%;
  letter-spacing:-1.5px; color:var(--light);
}
.proj-hero__sub{
  max-width:640px;
  font-family:var(--font-body); font-size:17px; line-height:155%;
  color:rgba(242,242,242,.8); text-wrap:pretty;
}
.case-role{
  font-family:var(--font-title); font-weight:500; font-size:14px; line-height:150%;
  letter-spacing:.02em; color:rgba(242,242,242,.5);
}

/* ---------- Corps ---------- */
.proj-content{position:relative; background:var(--grey-bg); padding:90px 24px 110px;}
.proj-content__inner{position:relative; z-index:2; max-width:900px; margin:0 auto;}

/* ---------- Pitch flash ---------- */
.case-pitch{
  max-width:760px; margin:0 0 48px;
  font-family:var(--font-title); font-weight:500; font-size:24px; line-height:140%;
  letter-spacing:-.4px; color:var(--ink); text-wrap:pretty;
  padding-left:22px; border-left:3px solid var(--purple);
}

/* ---------- Les 3 blocs de récit ---------- */
.case-block{
  padding:44px 0;
  border-top:1px solid rgba(0,0,0,.10);
}
.case-block:first-of-type{border-top:0; padding-top:0;}

.case-block__head{display:flex; align-items:center; gap:18px; margin-bottom:22px;}
.case-block__n{
  flex:none; width:44px; height:44px; border-radius:14px;
  background:#fff; box-shadow:0 10px 24px -14px rgba(0,0,0,.45);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-title); font-weight:700; font-size:15px;
  letter-spacing:-.3px; color:var(--purple);
}
.case-block__title{
  font-family:var(--font-title); font-weight:600; font-size:28px; line-height:118%;
  letter-spacing:-.7px; color:#000; text-wrap:balance;
}
.case-block__body{max-width:760px;}
.case-block__text{
  font-family:var(--font-body); font-size:17px; line-height:170%;
  color:rgba(0,0,0,.74); text-wrap:pretty;
}

/* Les axes d'intervention : intitulé en gras, puis la description */
.case-block__items{display:flex; flex-direction:column; gap:16px;}
.case-block__items li{
  position:relative; padding-left:22px;
  font-family:var(--font-body); font-size:17px; line-height:165%;
  color:rgba(0,0,0,.7); text-wrap:pretty;
}
.case-block__items li::before{
  content:""; position:absolute; left:2px; top:11px;
  width:6px; height:6px; border-radius:999px; background:var(--purple);
}
.case-block__items strong{
  font-family:var(--font-title); font-weight:600; color:#000;
  margin-right:6px;
}

/* Les points d'impact : en exergue, marqueur plein */
.case-block__impact{display:flex; flex-direction:column; gap:12px;}
.case-block__impact li{
  display:flex; align-items:flex-start; gap:14px;
  background:#fff; border-radius:14px;
  box-shadow:5px 18px 22px rgba(0,0,0,.05);
  padding:18px 22px;
  font-family:var(--font-title); font-weight:500; font-size:18px; line-height:145%;
  letter-spacing:-.2px; color:#000; text-wrap:pretty;
}
.case-block__impact li::before{
  content:""; flex:none; width:10px; height:10px; margin-top:9px;
  border-radius:999px; background:var(--purple);
  box-shadow:0 0 0 4px rgba(100,63,241,.14);
}

/* ---------- Galerie ---------- */
.case-gallery{
  padding-top:56px; margin-top:44px;
  border-top:1px solid rgba(0,0,0,.10);
  display:flex; flex-direction:column; gap:40px;
}
.case-gallery .hand-label{text-align:left; margin-bottom:-16px;}
.case-shot{margin:0; display:flex; flex-direction:column; gap:12px;}
/* Toutes les figures font la même largeur : c'est le cadre qui occupe la
   colonne, pas le média. Un paysage le remplit, un portrait est centré dedans. */
.case-shot__frame{
  width:100%; overflow:hidden;
  border-radius:18px; background:#e4e4e4;
  box-shadow:0 30px 60px -32px rgba(0,0,0,.45);
  display:flex; align-items:center; justify-content:center;
}
.case-shot__frame video{display:block; width:100%; height:auto;}

/* Portrait (mockups mobile) : fond blanc, média centré à son ratio réel. */
.case-shot--portrait .case-shot__frame{background:#fff; padding:40px 24px;}
.case-shot--portrait .case-shot__frame video{
  width:auto; max-width:100%; max-height:560px; border-radius:10px;
}
.case-shot figcaption{
  font-family:var(--font-body); font-size:15px; line-height:150%;
  color:var(--muted);
}

/* ---------- Avant / après ------------------------------------------------
   Deux rangées de trois captures. La comparaison ne tient que si les deux
   lignes partagent exactement la même grille : c'est l'écart entre les deux
   qui porte l'information, pas chaque image prise isolément. */
.case-ba{
  padding-top:56px; margin-top:44px;
  border-top:1px solid rgba(0,0,0,.10);
  display:flex; flex-direction:column; gap:34px;
}
.case-ba .hand-label{text-align:left; margin-bottom:-22px;}
.case-ba__intro{
  font-family:var(--font-body); font-size:15px; line-height:155%;
  color:rgba(0,0,0,.45); text-wrap:pretty;
}
.case-ba__row{display:flex; flex-direction:column; gap:16px;}
.case-ba__label{
  display:inline-flex; align-self:flex-start; align-items:center; gap:8px;
  border-radius:40px; padding:6px 14px;
  font-family:var(--font-title); font-weight:600; font-size:12px;
  line-height:140%; letter-spacing:.09em; text-transform:uppercase;
}
.case-ba__label::before{content:""; width:7px; height:7px; border-radius:999px;}
.case-ba__label--before{background:rgba(0,0,0,.06); color:rgba(0,0,0,.5);}
.case-ba__label--before::before{background:rgba(0,0,0,.3);}
.case-ba__label--after{background:rgba(100,63,241,.10); color:var(--purple);}
.case-ba__label--after::before{background:var(--purple);}
/* artefacts de travail : ni avant ni après, on les distingue des deux */
.case-ba__label--work{background:rgba(0,0,0,.05); color:rgba(0,0,0,.55);}
.case-ba__label--work::before{background:rgba(0,0,0,.55);}
.case-ba__grid{
  display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:16px;
  align-items:start;
}
/* une seule capture « avant » : elle occupe la largeur des trois « après »,
   la comparaison se fait alors entre un écran unique et un parcours en 3 temps */
.case-ba__grid--single{grid-template-columns:1fr;}
.case-ba__grid--pair{grid-template-columns:repeat(2, minmax(0,1fr));}
/* captures d'interface trop denses pour tenir à trois de front : le texte des
   écrans devient illisible. On les empile alors pleine largeur, sans recadrage,
   la comparaison se fait capture par capture plutôt que colonne par colonne. */
.case-ba__grid--stack{grid-template-columns:1fr; gap:30px;}
.case-ba__grid--stack .case-ba__shot figcaption{font-size:14px;}
.case-ba__shot{margin:0; display:flex; flex-direction:column; gap:10px;}
.case-ba__shot img{
  width:100%; height:auto; display:block;
  border-radius:12px; background:#fff;
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 18px 30px -20px rgba(0,0,0,.35);
}
/* même cadre pour toutes les captures d'une grille en colonnes : sinon les
   hauteurs varient d'une capture à l'autre et les deux rangées ne se comparent
   plus colonne par colonne. Les grilles empilées gardent le ratio d'origine
   (celui des attributs width/height), donc rien n'est recadré ni décalé. */
.case-ba__grid:not(.case-ba__grid--stack) .case-ba__shot img{
  aspect-ratio:16/10; object-fit:cover; object-position:top center;
}
.case-ba__grid.case-ba__grid--single .case-ba__shot img{aspect-ratio:16/9;}
.case-ba__shot figcaption{
  font-family:var(--font-body); font-size:13px; line-height:150%;
  color:var(--muted); text-wrap:pretty;
}

@media (max-width:809px){
  .case-ba{padding-top:40px; margin-top:32px; gap:26px;}
  .case-ba__grid, .case-ba__grid--pair{grid-template-columns:1fr; gap:20px;}
  .case-ba__shot figcaption{font-size:14px;}
}

/* ---------- Les autres cas ---------- */
.case-next{
  position:relative; background:var(--grey-bg);
  padding:72px 24px 100px;
}
/* même grain que .proj-content, sinon la limite entre les deux sections
   se voit comme un trait horizontal (le grain s'arrêtait net). */
.case-next::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  background-image:url('../assets/img/rR6HYXBrMmX4cRpXfXUOvpvpB0.png');
  background-size:250px; background-repeat:repeat; opacity:.04;
}
.case-next > *{position:relative; z-index:2;}
.case-next .hand-label{margin-bottom:24px;}
.case-next__grid{
  display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:24px;
  max-width:900px; margin:0 auto;
}
.case-next__link{
  display:flex; flex-direction:column;
  background:#fff; border-radius:16px; overflow:hidden;
  box-shadow:5px 25px 25px rgba(0,0,0,.05);
  transition:transform .35s cubic-bezier(.3,.9,.3,1), box-shadow .35s ease;
}
@media (hover:hover){
  .case-next__link:hover{transform:translateY(-4px); box-shadow:0 30px 45px -22px rgba(0,0,0,.28);}
}
.case-next__link img{width:100%; aspect-ratio:16/10; object-fit:cover; display:block;}
.case-next__name{
  padding:20px 24px 0;
  font-family:var(--font-title); font-weight:600; font-size:22px; line-height:120%;
  letter-spacing:-.4px; color:#000;
}
.case-next__sub{
  padding:4px 24px 24px;
  font-family:var(--font-body); font-size:15px; line-height:140%; color:var(--muted);
}

/* ---------- Récit long : accroche de bloc, chiffres, chute, note ---------- */
/* Première phrase d'un bloc « La priorité » : c'est la décision, pas du corps
   de texte — elle porte donc la typo de titre. */
.case-block__lead{
  font-family:var(--font-title); font-weight:600; font-size:22px; line-height:135%;
  letter-spacing:-.4px; color:#000; margin-bottom:14px; text-wrap:balance;
}
.case-block__body > .case-block__text + .case-block__text{margin-top:14px;}

/* Les chiffres d'un funnel : lus en diagonale, jamais en phrase. */
.case-stats{
  display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:14px;
}
.case-stats li{
  display:flex; flex-direction:column; gap:4px;
  background:#fff; border-radius:14px; padding:20px 22px;
  box-shadow:5px 18px 22px rgba(0,0,0,.05);
}
.case-stat__n{
  font-family:var(--font-title); font-weight:700; font-size:32px; line-height:110%;
  letter-spacing:-1px; color:var(--purple);
}
.case-stat__t{
  font-family:var(--font-body); font-size:15px; line-height:150%;
  color:var(--muted); text-wrap:pretty;
}

/* La leçon du cas, isolée entre le récit et l'épilogue. */
.case-punch{
  margin:44px 0 0; padding:34px 0 34px;
  border-top:1px solid rgba(0,0,0,.10);
  font-family:var(--font-title); font-weight:500; font-size:26px; line-height:135%;
  letter-spacing:-.6px; color:var(--ink); text-wrap:balance;
}
.case-block--still .case-block__n{font-size:20px; padding-bottom:2px;}
.case-note{
  margin-top:18px;
  font-family:var(--font-body); font-style:italic; font-size:15px; line-height:155%;
  color:rgba(0,0,0,.45);
}

/* Cartes « autres cas » sans visuel : la dimension C.L.E.A.R. remplace l'image. */
.case-next__grid--3{grid-template-columns:repeat(3, minmax(0,1fr));}
.case-next__link--text{padding:24px;}
.case-next__dim{
  font-family:var(--font-title); font-weight:600; font-size:12px;
  line-height:140%; letter-spacing:.09em; text-transform:uppercase;
  color:var(--purple); margin-bottom:10px;
}
.case-next__link--text .case-next__name{padding:0;}
.case-next__link--text .case-next__sub{padding:4px 0 0;}

@media (max-width:1099px){
  .case-next__grid--3{grid-template-columns:repeat(2, minmax(0,1fr));}
}
@media (max-width:809px){
  .case-block__lead{font-size:19px;}
  .case-stats{grid-template-columns:1fr;}
  .case-stat__n{font-size:27px;}
  .case-punch{font-size:21px; margin-top:32px; padding:26px 0 26px;}
  .case-next__grid--3{grid-template-columns:1fr;}
}

/* Dernière phrase d'un épilogue : elle referme le cas, pas un paragraphe. */
.case-block__lead--end{margin-top:18px; margin-bottom:0;}

/* Rappel de l'offre sous le pitch du CTA final. */
.final__offer{
  font-family:var(--font-title); font-weight:500; font-size:14px;
  line-height:150%; letter-spacing:-.005em;
  color:rgba(242,242,242,.55); text-align:center;
}

@media (max-width:809px){
}

/* ---------- Responsive ---------- */
@media (max-width:1439px){
  .proj-hero__title{font-size:54px;}
  .case-block__title{font-size:26px;}
  .case-pitch{font-size:22px;}
  .case-block__text,
  .case-block__items li{font-size:16px;}
}
@media (max-width:809px){
  .proj-hero{padding:120px 20px 64px;}
  .proj-hero__title{font-size:36px; letter-spacing:-1px;}
  .proj-hero__sub{font-size:15px;}
  .proj-content{padding:64px 20px 80px;}

  .case-pitch{font-size:19px; margin-bottom:34px; padding-left:16px;}
  .case-block{padding:32px 0;}
  .case-block__head{gap:12px; margin-bottom:18px;}
  .case-block__n{width:36px; height:36px; border-radius:12px; font-size:13px;}
  .case-block__title{font-size:22px; letter-spacing:-.5px;}
  .case-block__text,
  .case-block__items li{font-size:15px; line-height:165%;}
  .case-block__impact li{font-size:16px; padding:16px 18px;}
  .case-gallery{padding-top:40px; margin-top:32px; gap:30px;}
  .case-shot__frame{border-radius:14px;}
  .case-shot--portrait .case-shot__frame{padding:24px 16px;}
  .case-shot--portrait .case-shot__frame video{max-height:420px;}

  .case-next{padding:52px 20px 70px;}
  .case-next__grid{grid-template-columns:1fr;}
}
