/* ============================================================
   ÉTUDES DE CAS — Venezance
   Layout partagé par /etudes et /etudes/*
   Dépend de /styles.css (tokens, boutons, footer, navbar).
   ============================================================ */

/* ============================================================
   Accent bleu (--accent) : halo de fond sur les hero + touches
   ponctuelles. Le site reste sombre, le bleu ne fait que respirer.
   ============================================================ */
.cs-hero,
.cs-index {
  position: relative;
  isolation: isolate;
}

.cs-hero::before,
.cs-index::before {
  content: '';
  position: absolute;
  inset: -140px 0 auto 0;
  height: 900px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(62% 52% at 22% 46%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 72%),
    radial-gradient(46% 42% at 82% 22%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
}

@media (prefers-reduced-motion: no-preference) {
  .cs-hero::before,
  .cs-index::before { animation: csGlow 14s ease-in-out infinite alternate; }
}

@keyframes csGlow {
  from { opacity: 0.75; }
  to   { opacity: 1; }
}

/* La pastille de l'eyebrow passe à l'accent sur ces pages */
.cs-hero .eyebrow .dot,
.cs-index .eyebrow .dot,
.cs-review .eyebrow .dot { background: var(--accent); }

/* ---------- Fil d'Ariane ---------- */
.cs-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-mute);
  margin: 0 0 22px;
}

.cs-breadcrumb a {
  color: var(--text-mute);
  transition: color 0.2s ease;
}

.cs-breadcrumb a:hover { color: var(--accent); }
.cs-breadcrumb [aria-current="page"] { color: var(--text); }

/* ---------- Hero ---------- */
.cs-hero {
  padding: clamp(52px, 8vw, 96px) 0 clamp(28px, 4vw, 48px);
}

/* Plaque logo client : même traitement que .logo-card (sources PNG sombres
   éclaircies pour le fond noir). display:flex et non inline-flex, sinon la
   plaque se retrouve sur la même ligne que .eyebrow (lui-même inline-flex). */
.cs-hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  margin-bottom: 26px;
}

.cs-hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.85;
  filter: grayscale(1) brightness(1.55);
}

.cs-hero .section-title { max-width: 820px; }

.cs-lede {
  max-width: 700px;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.65;
  color: var(--text-mute);
  margin: 22px 0 0;
}

.cs-lede strong { color: var(--text); font-weight: 600; }

/* ---------- Fiche projet ---------- */
.cs-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  margin-top: clamp(30px, 4vw, 46px);
  background: var(--border);
  border: 1px solid var(--border);
}

.cs-fact {
  background: var(--bg-card);
  padding: clamp(18px, 2.2vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cs-fact-label {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.cs-fact-value {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text);
}

/* ---------- « En bref » : l'essentiel pour qui ne lira pas tout ---------- */
.cs-summary {
  margin-top: clamp(26px, 3.4vw, 40px);
  padding: clamp(22px, 2.8vw, 32px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
}

.cs-summary-title {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}

.cs-summary ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.cs-summary li {
  position: relative;
  padding-left: 24px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-mute);
}

.cs-summary li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.cs-summary li strong { color: var(--text); font-weight: 600; }

/* Durée de lecture, annoncée d'entrée */
.cs-readtime {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 18px 0 0;
}

/* ---------- Photo de terrain ---------- */
.cs-figure {
  display: table;
  margin: clamp(24px, 3.4vw, 36px) 0 clamp(24px, 3vw, 32px);
  width: fit-content;
  max-width: 100%;
}

.cs-figure figcaption { display: table-caption; caption-side: bottom; }

/* Un peu plus haute que les autres visuels : c'est la preuve de diffusion. */
.cs-figure img {
  max-width: 100%;
  max-height: 520px;
  width: auto;
  height: auto;
  border: 1px solid var(--border);
}

.cs-figure figcaption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-dim);
}

.cs-figure figcaption strong { color: var(--accent); font-weight: 600; }

/* ============================================================
   VISUELS EN LIGNE : un média par section, au moment où on en
   parle. Plafonnés en hauteur pour qu'un portrait ne mange pas
   l'écran — la largeur suit, donc aucun recadrage.
   ============================================================ */
/* display:table + table-caption : la légende se cale exactement sur la
   largeur de l'image au lieu de l'élargir. Marge basse pour que le
   paragraphe suivant ne colle pas. */
.cs-shot {
  display: table;
  margin: clamp(20px, 2.6vw, 28px) 0 clamp(22px, 2.8vw, 30px);
  width: fit-content;
  max-width: 100%;
}

.cs-shot figcaption {
  display: table-caption;
  caption-side: bottom;
}

.cs-shot img {
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
  border: 1px solid var(--border);
  transition: border-color 0.25s ease;
}

.cs-shot:hover img {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.cs-shot figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-dim);
}

/* Paire de photos paysage : même hauteur, côte à côte */
.cs-shot-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
  margin-top: clamp(20px, 2.6vw, 28px);
}

.cs-shot-pair .cs-shot {
  display: block;
  margin: 0;
  width: auto;
}

.cs-shot-pair .cs-shot figcaption { display: block; }

.cs-shot-pair .cs-shot img {
  width: 100%;
  max-height: none;
}

@media (max-width: 600px) {
  .cs-shot-pair { grid-template-columns: minmax(0, 1fr); }
  .cs-shot img { max-height: 340px; }
  .cs-figure img { max-height: 420px; }
}

/* ---------- Corps : sommaire collant + contenu ---------- */
.cs-body { padding: clamp(40px, 6vw, 76px) 0 0; }

.cs-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 5vw, 56px);
}

@media (min-width: 1024px) {
  .cs-layout {
    grid-template-columns: 232px minmax(0, 1fr);
    gap: clamp(48px, 6vw, 88px);
    align-items: start;
  }
  .cs-toc {
    position: sticky;
    top: 104px;
  }
}

.cs-toc-title {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 16px;
}

.cs-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cs-toc-list a {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-mute);
  border-top: 1px solid var(--border);
  transition: color 0.2s ease;
}

.cs-toc-list li:first-child a { border-top: 0; }
.cs-toc-list a:hover { color: var(--accent); }

.cs-toc-list a span {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding-top: 2px;
}

.cs-toc-list a:hover span { color: var(--text); }

/* ---------- Sections numérotées ---------- */
.cs-content {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 76px);
}

.cs-block { scroll-margin-top: 100px; }

.cs-block-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.cs-block h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 18px;
  max-width: 26ch;
  text-wrap: balance;
}

.cs-block h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 8px;
}

.cs-text {
  max-width: 66ch;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-mute);
  margin: 0 0 16px;
}

.cs-text:last-child { margin-bottom: 0; }
.cs-text strong { color: var(--text); font-weight: 600; }

.cs-text a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Listes de livrables ---------- */
/* 2 colonnes : les livrables se lisent par paires. */
.cs-deliverables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
  margin: clamp(22px, 3vw, 32px) 0 0;
}

/* Nombre impair de livrables : le dernier prend toute la largeur
   plutôt que de rester orphelin dans sa colonne. */
.cs-deliverable:last-child:nth-child(odd) { grid-column: 1 / -1; }

@media (max-width: 560px) {
  .cs-deliverables { grid-template-columns: minmax(0, 1fr); }
}

.cs-deliverable {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: clamp(18px, 2.2vw, 26px);
}

.cs-deliverable p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-mute);
}

.cs-checks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: clamp(20px, 2.6vw, 28px) 0 0;
  max-width: 66ch;
}

.cs-checks li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-mute);
}

.cs-checks li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.cs-checks li strong { color: var(--text); font-weight: 600; }

/* ---------- Citation mise en avant ---------- */
.cs-pullquote {
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: clamp(26px, 3.4vw, 40px);
  background:
    linear-gradient(100deg, color-mix(in srgb, var(--accent) 12%, transparent), color-mix(in srgb, var(--accent) 0%, transparent) 62%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
}

.cs-pullquote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
}

.cs-pullquote footer {
  margin-top: 16px;
  font-family: var(--font);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-mute);
}

.cs-pullquote footer strong { color: var(--text); font-weight: 600; }

/* ---------- Encadré nuance / honnêteté ---------- */
.cs-note {
  margin: clamp(22px, 3vw, 32px) 0 0;
  padding: 6px 0 6px 18px;
  border-left: 2px solid var(--border-strong);
  max-width: 66ch;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-dim);
}

.cs-note strong { color: var(--text-mute); font-weight: 600; }

/* ---------- Vidéo ---------- */
.cs-video {
  margin: clamp(24px, 3.4vw, 40px) 0 0;
}

.cs-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  overflow: hidden;
}

.cs-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cs-video figcaption {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  font-size: 13.5px;
  color: var(--text-mute);
}

.cs-video figcaption strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

/* ---------- Actions ---------- */
.cs-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: clamp(26px, 3.4vw, 36px);
}

/* ---------- Bloc avis client ---------- */
.cs-review {
  padding: clamp(44px, 6vw, 80px) 0 0;
  text-align: center;
}

.cs-review .eyebrow { justify-content: center; }

.cs-review-card {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 3.6vw, 44px);
  background:
    radial-gradient(120% 100% at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
}

.cs-review-card blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 23px);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
}

.cs-review-card figcaption {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--text-mute);
}

.cs-review-card figcaption strong { color: var(--text); font-weight: 600; }

.cs-review .cs-actions { justify-content: center; }

/* ============================================================
   INDEX /etudes
   ============================================================ */

.cs-index { padding: clamp(52px, 8vw, 96px) 0 clamp(20px, 3vw, 36px); }
.cs-index .section-title { max-width: 780px; }

.cs-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(16px, 2vw, 24px);
  padding-bottom: clamp(48px, 6vw, 88px);
}

.cs-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

a.cs-card:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  transform: translateY(-3px);
}

.cs-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-elev);
  overflow: hidden;
}

.cs-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-card-body {
  padding: clamp(20px, 2.4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.cs-card-kicker {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.cs-card-body h2,
.cs-card-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.28;
  color: var(--text);
}

.cs-card-body p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-mute);
}

.cs-card-link {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
}

/* Carte « bientôt » : sans visuel, on centre le bloc pour qu'elle tienne
   visuellement à côté d'une carte avec image. */
.cs-card.is-soon {
  border-style: dashed;
  background: transparent;
}

.cs-card.is-soon .cs-card-body {
  justify-content: center;
  gap: 12px;
}

.cs-card.is-soon .cs-card-link { margin-top: 6px; }

.cs-card.is-soon .cs-card-kicker { color: var(--text-dim); }
.cs-card.is-soon .cs-card-body h3 { color: var(--text-mute); }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .cs-breadcrumb { font-size: 11px; gap: 6px; }
  .cs-hero-logo { width: 68px; height: 68px; padding: 11px; }
  .cs-block h2 { max-width: none; }
  .cs-toc-list a { font-size: 13.5px; }
}
