/* ============================================================
   Études de cas — feuille dédiée
   ============================================================ */

.cs {
    --ink: #1E1C1A;
    --body: #3D3A36;
    --muted: #6B655C;
    --line: #E4E0D9;
    --tint: #F5F3EF;
    --accent: #D93838;
    max-width: 1180px;
    padding-bottom: 40px;
}

/* neutralise le gabarit d'origine sur ces pages */
.cs .post-div-1, .cs .post-desc, .cs .post-div-3 { all: unset; display: block; }

.cs p { color: var(--body); }

/* ---------- en-tête ---------- */
.cs-eyebrow {
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 22px;
}
.cs-title {
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -.035em;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 24px;
}
.cs-sub {
    font-size: clamp(19px, 2.1vw, 24px);
    line-height: 1.45;
    color: var(--body);
    max-width: 38ch;
    margin: 0 0 56px;
}

/* ---------- bandeau d'informations ---------- */
.cs-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    padding: 26px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 72px;
}
.cs-meta dt {
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 8px;
    font-weight: 400;
}
.cs-meta dd { margin: 0; font-size: 16px; line-height: 1.4; color: var(--ink); }

/* ---------- rythme des sections ---------- */
.cs-section { margin: 112px 0 0; }
.cs-section:first-of-type { margin-top: 0; }
.cs-h {
    font-size: clamp(28px, 3.4vw, 40px);
    line-height: 1.12;
    letter-spacing: -.025em;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 28px;
    max-width: 22ch;
}
.cs-text { max-width: 62ch; }
.cs-text p { font-size: 18px; line-height: 1.7; margin: 0 0 20px; }
.cs-text p:last-child { margin-bottom: 0; }
.cs-text strong { color: var(--ink); font-weight: 600; }

.cs-lead { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.5; color: var(--ink); max-width: 34ch; }
.cs-lead p { font-size: inherit; line-height: inherit; margin: 0 0 18px; }

/* ---------- images ---------- */
.cs-fig { margin: 48px 0 0; }
.cs-fig img { width: 100%; height: auto; display: block; border-radius: 14px; }
.cs-cap { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 14px 0 0; max-width: 60ch; }
.cs-fig--tint {
    background: var(--tint);
    border-radius: 14px;
    padding: 40px;
}
.cs-fig--tint img { border-radius: 6px; }

/* ---------- avant / après ---------- */
.cs-ba { display: grid; grid-template-columns: 1fr; gap: 64px; margin-top: 48px; }
.cs-ba-item { display: flex; flex-direction: column; }
.cs-ba-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 24px;
}
.cs-ba-header.is-after {
    border-bottom-color: rgba(235, 87, 87, 0.35);
}
.cs-ba-tag {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}
.cs-ba-tag.is-after {
    color: var(--accent);
}
.cs-ba-title {
    font-size: clamp(20px, 2.2vw, 24px);
    font-weight: 600;
    letter-spacing: -.02em;
    color: var(--ink);
    margin: 0;
    line-height: 1.2;
}
.cs-ba-meta {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
    white-space: nowrap;
}
.cs-ba-meta.is-after {
    color: var(--accent);
    font-weight: 600;
}
.cs-ba img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}
.cs-ba p.cs-ba-desc,
.cs-ba p:not(.cs-ba-tag):not(.cs-ba-meta) {
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
    margin: 16px 0 0;
    max-width: 65ch;
}
@media (max-width: 600px) {
    .cs-ba-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* ---------- chiffres ---------- */
.cs-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
}
.cs-stat b em {
    font-style: normal;
    color: var(--muted);
    letter-spacing: -.02em;
}
.cs-stat b {
    display: block;
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1;
    letter-spacing: -.03em;
    font-weight: 600;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.cs-stat > span {
    display: block;
    font-size: 13px;
    line-height: 1.45;
    color: var(--muted);
    margin-top: 14px;
    max-width: 22ch;
}

/* ---------- phrase forte ---------- */
.cs-quote {
    margin: 112px 0 0;
    padding: 0;
    font-size: clamp(26px, 3.6vw, 42px);
    line-height: 1.22;
    letter-spacing: -.025em;
    font-weight: 500;
    color: var(--ink);
    max-width: 24ch;
}

/* ---------- étapes ---------- */
.cs-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 48px;
}
.cs-step { padding-top: 18px; border-top: 1px solid var(--ink); }
.cs-step b { display: block; font-size: 12px; letter-spacing: .1em; color: var(--muted); font-weight: 400; margin-bottom: 12px; }
.cs-step h4 { font-size: 17px; font-weight: 600; color: var(--ink); margin: 0 0 8px; }
.cs-step p { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin: 0; }

/* ---------- décision : texte + écran ---------- */
.cs-dec { margin-top: 88px; }
.cs-dec:first-of-type { margin-top: 48px; }
.cs-dec-h {
    font-size: clamp(21px, 2.4vw, 27px);
    line-height: 1.25;
    letter-spacing: -.02em;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 16px;
    max-width: 26ch;
}
.cs-dec .cs-text { margin-bottom: 0; }

/* ---------- galerie ---------- */
.cs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 48px; }
.cs-grid img { width: 100%; height: auto; display: block; border-radius: 12px; }

/* ---------- pied de page ---------- */
.cs-foot {
    margin-top: 120px;
    padding-top: 36px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    flex-wrap: wrap;
}
.cs-foot a { font-size: 16px; color: var(--ink); text-decoration: none; }
.cs-foot a:hover { text-decoration: underline; }
.cs-foot .cs-next { color: var(--muted); }
.cs-foot .cs-next a { color: var(--accent); }

.cs-note { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin-top: 28px; max-width: 62ch; }

/* ---------- adaptatif ---------- */
@media (max-width: 1023px) {
    .cs-section, .cs-quote { margin-top: 80px; }
    .cs-meta { grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 56px; }
    .cs-steps { grid-template-columns: repeat(2, 1fr); }
    .cs-fig--tint { padding: 24px; }
}
@media (max-width: 700px) {
    .cs-section, .cs-quote { margin-top: 64px; }
    .cs-ba, .cs-grid { grid-template-columns: 1fr; gap: 32px; }
    .cs-stats { grid-template-columns: 1fr; gap: 28px; }
    .cs-steps { grid-template-columns: 1fr; gap: 24px; }
    .cs-sub { margin-bottom: 40px; }
    .cs-fig { margin-top: 32px; }
    .cs-text p { font-size: 17px; }
}

/* ---------- galerie 3 colonnes (pages de site) ---------- */
.cs-grid--3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cs-grid--3 img { border-radius: 10px; border: 1px solid var(--line); }
.cs-grid-cap { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 12px 0 0; }

/* ============================================================
   Récapitulatif de la charte graphique — carrousel
   ============================================================ */
.cs-charte {
    --geo-ink: #002E3A;
    --geo-lime: #E1FF04;
    --geo-orange: #FD6B00;
}
.cs-car {
    position: relative;
    margin-top: 48px;
}
.cs-car-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 0 0 18px;
    margin: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.cs-car-track::-webkit-scrollbar { display: none; }

.cs-card {
    flex: 0 0 320px;
    width: 320px;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 26px;
    background: #fff;
    border: 1px solid var(--line);
}
.cs-card-k {
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0;
}
.cs-card-t {
    font-size: 19px;
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -.015em;
    color: var(--ink);
    margin: 0 0 6px;
}
.cs-card-p {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--muted);
    margin: 0;
}
.cs-card-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 18px 0; }
.cs-card-foot { margin-top: auto; }

/* variantes de fond */
.cs-card--ink { background: var(--geo-ink); border-color: var(--geo-ink); }
.cs-card--ink .cs-card-k { color: rgba(255,255,255,.55); }
.cs-card--ink .cs-card-t { color: #fff; }
.cs-card--ink .cs-card-p { color: rgba(255,255,255,.62); }

.cs-card--lime { background: var(--geo-lime); border-color: var(--geo-lime); }
.cs-card--lime .cs-card-k { color: rgba(0,46,58,.55); }
.cs-card--lime .cs-card-t { color: var(--geo-ink); }
.cs-card--lime .cs-card-p { color: rgba(0,46,58,.7); }

.cs-card--orange { background: var(--geo-orange); border-color: var(--geo-orange); }
.cs-card--orange .cs-card-k { color: rgba(255,255,255,.7); }
.cs-card--orange .cs-card-t { color: #fff; }
.cs-card--orange .cs-card-p { color: rgba(255,255,255,.85); }

.cs-card--tint { background: var(--tint); border-color: transparent; }

/* carte image : sans titre, ratio naturel */
.cs-card--img {
    padding: 0;
    flex: 0 0 auto;
    width: auto;
    max-width: 620px;
    background: var(--tint);
    border-color: transparent;
}
.cs-card--img img {
    width: auto;
    height: 100%;
    max-width: 620px;
    object-fit: contain;
    display: block;
    border-radius: 0;
}

/* contenus spécifiques */
.cs-card-logo { max-width: 190px; width: 100%; height: auto; }
.cs-card-mark { width: 104px; height: 104px; }

.cs-sw { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.cs-sw-row { display: flex; align-items: center; gap: 12px; }
.cs-sw-dot { width: 30px; height: 30px; border-radius: 8px; flex: 0 0 30px; }
.cs-sw-row b { display: block; font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.cs-sw-row span { display: block; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .02em; }

.cs-aa { font-size: 76px; line-height: .9; font-weight: 600; letter-spacing: -.04em; color: var(--ink); }
.cs-weights { display: flex; flex-direction: column; gap: 3px; margin-top: 14px; }
.cs-weights span { font-size: 13px; color: var(--muted); }
.cs-weights span i { font-style: normal; color: var(--ink); }

.cs-perso { width: 100%; display: flex; flex-direction: column; gap: 13px; }
.cs-perso-row { font-size: 11px; letter-spacing: .04em; color: var(--muted); }
.cs-perso-lab { display: flex; justify-content: space-between; margin-bottom: 7px; }
.cs-perso-lab i { font-style: normal; }
.cs-perso-bar { display: block; width: 100%; height: 3px; border-radius: 2px; background: #DFDBD3; position: relative; }
.cs-perso-bar b { position: absolute; top: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--geo-ink); }

/* flèches */
.cs-car-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(6px);
    color: var(--ink);
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 22px rgba(30,28,26,.13);
    transition: opacity .2s ease, transform .2s ease;
    z-index: 3;
    padding: 0;
}
.cs-car-btn:hover { transform: translateY(-50%) scale(1.06); }
.cs-car-btn[disabled] { opacity: 0; pointer-events: none; }
.cs-car-prev { left: -16px; }
.cs-car-next { right: -16px; }

.cs-car-hint { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }

@media (max-width: 1023px) {
    .cs-grid--3 { grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .cs-car-prev { left: 6px; }
    .cs-car-next { right: 6px; }
}
@media (max-width: 700px) {
    .cs-grid--3 { grid-template-columns: 1fr; gap: 28px; }
    .cs-card { flex: 0 0 78vw; width: 78vw; height: 380px; padding: 22px; }
    .cs-card--img { flex: 0 0 auto; width: auto; max-width: 86vw; padding: 0; }
    .cs-card--img img { max-width: 86vw; }
    .cs-car-btn { width: 40px; height: 40px; }
    .cs-aa { font-size: 62px; }
}

.cs-perso-bar { overflow: visible; }
.cs-perso-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--geo-lime); }
