/* ==========================================================================
   STUDIO PARFAIT — pages projet (études de cas)
   S'appuie sur style.css (tokens, header, boutons, footer)
   ========================================================================== */
.case-page { background: var(--night); color: var(--cream); }

/* bouton retour (à la place du menu) */
.back-btn { justify-self: start; display: inline-flex; align-items: center; gap: 12px; height: 42px; font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hdr-fg, var(--cream)); }
.back-btn__arrow { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; box-shadow: inset 0 0 0 1px currentColor; transition: transform 0.4s var(--ease-out), background-color 0.3s, color 0.3s, box-shadow 0.3s; }
.back-btn:hover .back-btn__arrow { transform: translateX(-4px); background: var(--orange); color: var(--ink); box-shadow: none; }

/* hero */
.case-hero { position: relative; padding-top: calc(var(--hdr) + clamp(40px, 6vw, 90px)); overflow-x: clip; }
.case-hero::before { content: ""; position: absolute; inset: -10% -20% auto auto; width: 70%; height: 90%; pointer-events: none; background: radial-gradient(50% 50% at 60% 40%, rgba(239, 134, 17, 0.28), transparent 70%); }
.case-hero__num { display: flex; flex-wrap: wrap; gap: 8px 26px; color: var(--muted-d); }
.case-hero__num span:first-child { color: var(--orange); }
.case-hero__title { margin: 18px 0 clamp(30px, 4vw, 56px); font-family: var(--f-display); font-weight: 700; letter-spacing: -0.065em; line-height: 0.88; font-size: clamp(60px, 11.5vw, 210px); color: #fff; }
.case-hero__title em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.03em; color: var(--orange); }
.case-hero__foot { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(24px, 4vw, 70px); align-items: end; padding-bottom: clamp(34px, 4vw, 60px); border-bottom: 1px solid var(--line-d); }
.case-hero__sub { font-family: var(--f-serif); font-style: italic; font-size: clamp(26px, 2.6vw, 44px); line-height: 1.1; color: var(--cream); }
.case-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; }
.case-meta dt { font-size: 10.5px; color: var(--muted-d); margin-bottom: 6px; }
.case-meta dd { margin: 0; font-weight: 600; font-size: 15px; line-height: 1.4; color: var(--cream); }
.case-cover { position: relative; margin: clamp(26px, 3.4vw, 50px) var(--gutter) 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 8; background: #1a0905; }
.case-cover img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }

/* phrase d'accroche */
.case-lead { padding-block: clamp(90px, 11vw, 180px) clamp(50px, 6vw, 100px); }
.case-lead .serif-label { margin-bottom: 22px; }
.case-lead__txt { max-width: 24ch; font-family: var(--f-display); font-weight: 600; letter-spacing: -0.04em; line-height: 1.06; font-size: clamp(32px, 4vw, 70px); color: var(--cream); }

/* chapitres Contexte / Challenge / Réponse */
.chap { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 5vw, 90px); padding-block: clamp(46px, 6vw, 100px); border-top: 1px solid var(--line-d); }
.chap__label { position: sticky; top: calc(var(--hdr) + 30px); align-self: start; }
.chap__label .mono { display: block; color: var(--orange); margin-bottom: 10px; }
.chap__label h2 { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.055em; line-height: 0.95; font-size: clamp(42px, 4.6vw, 80px); color: #fff; }
.chap__body p { max-width: 60ch; margin-bottom: 18px; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.6; color: var(--muted-d); }
.chap__body p:first-child { color: var(--cream); }
.chap__list { list-style: none; counter-reset: c; max-width: 60ch; padding: 0; margin: 6px 0 26px; border-top: 1px solid var(--line-d); }
.chap__list li { position: relative; padding: 15px 0 15px 44px; border-bottom: 1px solid var(--line-d); font-weight: 500; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.45; color: var(--cream); }
.chap__list li::before { counter-increment: c; content: counter(c, decimal-leading-zero); position: absolute; left: 0; top: 18px; font-family: var(--f-mono); font-size: 11px; color: var(--orange); }

/* visuels */
.shots { display: grid; gap: clamp(10px, 1.4vw, 20px); margin-bottom: clamp(10px, 1.4vw, 20px); align-items: start; }
.shots--pair { grid-template-columns: 1fr 1fr; }
.shots--solo { max-width: 720px; margin-inline: auto; }
.shot { margin: 0; border-radius: clamp(14px, 1.6vw, 24px); overflow: hidden; background: #1a0905; }
.shot img { display: block; width: 100%; height: auto; }
.case-gallery { padding-top: clamp(10px, 1.4vw, 20px); }

/* lien vers le site du produit */
.case-site { display: flex; justify-content: center; padding-top: clamp(50px, 6vw, 90px); }

/* appel à l'action */
.case-cta { padding-block: clamp(100px, 12vw, 200px); text-align: center; }
.case-cta .serif-label { justify-content: center; margin-bottom: 12px; }
.case-cta__link { display: inline-flex; align-items: center; gap: 0.18em; font-family: var(--f-display); font-weight: 700; letter-spacing: -0.065em; line-height: 0.95; font-size: clamp(58px, 10vw, 180px); color: #fff; transition: color 0.3s; }
.case-cta__link i { font-style: normal; color: var(--orange); transition: transform 0.5s var(--ease-out); }
.case-cta__link:hover { color: var(--orange); }
.case-cta__link:hover i { transform: translateX(0.12em); color: #fff; }

/* projet suivant */
.case-next { position: relative; display: block; height: clamp(380px, 64vh, 680px); margin: 0 var(--gutter) clamp(50px, 6vw, 100px); border-radius: var(--radius); overflow: hidden; isolation: isolate; }
.case-next__media { position: absolute; inset: 0; z-index: -2; }
.case-next__media img { width: 100%; height: 120%; object-fit: cover; filter: brightness(0.55) saturate(0.9); transition: filter 0.6s, scale 1.2s var(--ease-out); }
.case-next::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(11, 2, 1, 0.9), rgba(11, 2, 1, 0) 60%); }
.case-next:hover .case-next__media img { filter: brightness(0.7); scale: 1.04; }
.case-next__txt { position: absolute; left: 0; right: 0; bottom: clamp(26px, 3.4vw, 50px); display: flex; flex-direction: column; gap: 10px; }
.case-next__txt .mono { color: var(--orange); }
.case-next__txt { text-shadow: 0 1px 18px rgba(0, 0, 0, 0.6); }
.case-next__title { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.065em; line-height: 0.9; font-size: clamp(54px, 9vw, 170px); color: #fff; transition: transform 0.6s var(--ease-out); }
.case-next:hover .case-next__title { transform: translateX(14px); }
.case-next__sub { font-family: var(--f-serif); font-style: italic; font-size: clamp(20px, 1.8vw, 30px); color: var(--cream); }

/* page « Autres projets » */
.others-intro { max-width: 46ch; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.55; color: var(--muted-d); }
.olist { display: grid; gap: clamp(14px, 1.6vw, 24px); padding-block: clamp(50px, 6vw, 100px) 0; }
.oitem { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(20px, 3.6vw, 64px); align-items: center; padding: clamp(14px, 1.4vw, 20px); border-radius: var(--radius); background: rgba(246, 241, 234, 0.04); box-shadow: inset 0 0 0 1px var(--line-d); transition: background-color 0.4s, box-shadow 0.4s; }
a.oitem:hover { background: rgba(246, 241, 234, 0.07); box-shadow: inset 0 0 0 1px rgba(239, 134, 17, 0.45); }
.oitem__media { display: block; aspect-ratio: 16 / 10; border-radius: calc(var(--radius) - 8px); overflow: hidden; }
.oitem__media img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease-out); }
a.oitem:hover .oitem__media img { scale: 1.05; }
.oitem__body { display: flex; flex-direction: column; gap: 14px; padding-right: clamp(4px, 1vw, 20px); }
.oitem__tag { color: var(--orange); }
.oitem__name { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.055em; line-height: 0.95; font-size: clamp(40px, 4.4vw, 76px); color: #fff; }
.oitem__name em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: var(--orange); }
.oitem__txt { max-width: 46ch; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.55; color: var(--muted-d); }
.oitem__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.oitem__chips span { padding: 5px 11px; border-radius: 999px; font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--cream); box-shadow: inset 0 0 0 1px var(--line-d); }
.oitem__link { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; font-weight: 700; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--cream); }
.oitem__link i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-style: normal; background: var(--orange); color: var(--ink); transition: transform 0.5s var(--ease-out); }
a.oitem:hover .oitem__link i { transform: translateX(6px); }
.oitem--soon { grid-template-columns: 1fr; justify-items: start; gap: 14px; padding: clamp(28px, 3.4vw, 50px); background: transparent; box-shadow: none; border: 1.5px dashed rgba(246, 241, 234, 0.2); }

@media (max-width: 900px) {
  .oitem { grid-template-columns: 1fr; }
  .case-hero__foot { grid-template-columns: 1fr; }
  .chap { grid-template-columns: 1fr; }
  .chap__label { position: static; }
  .case-cover { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  .case-meta { grid-template-columns: 1fr; gap: 14px; }
  .shots--pair { grid-template-columns: 1fr; }
  .back-btn__label { display: none; }
}

/* ==========================================================================
   PAGES SERVICES (référencement local)
   ========================================================================== */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; color: var(--muted-d); }
.crumbs a { transition: color 0.2s; }
.crumbs a:hover { color: var(--orange); }
.crumbs [aria-current] { color: var(--orange); }
.case-hero__title--svc { font-size: clamp(50px, 8vw, 140px); }
.svc-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.4vw, 20px); }
.svc-item { padding: clamp(20px, 2vw, 30px); border-radius: 20px; background: rgba(246, 241, 234, 0.04); box-shadow: inset 0 0 0 1px var(--line-d); }
.svc-item h3 { margin-bottom: 10px; font-family: var(--f-display); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; font-size: clamp(22px, 1.8vw, 30px); color: #fff; }
.chap__body .svc-item p { margin: 0; font-size: 15.5px; color: var(--muted-d); }
.svc-cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.svc-case { display: flex; flex-direction: column; gap: 6px; }
.svc-case__media { display: block; aspect-ratio: 4 / 3; margin-bottom: 8px; border-radius: 18px; overflow: hidden; background: #1a0905; }
.svc-case__media img { width: 100%; height: 100%; object-fit: cover; transition: scale 1s var(--ease-out); }
.svc-case:hover .svc-case__media img { scale: 1.05; }
.svc-case__name { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.04em; font-size: 22px; color: #fff; }
.svc-case__txt { font-size: 14px; color: var(--muted-d); }
.svc-zone { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-zone li { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--cream); box-shadow: inset 0 0 0 1px var(--line-d); }
.svc-zone li:first-child { background: var(--orange); color: var(--ink); box-shadow: none; }
.svc-faq { border-top: 1px solid var(--line-d); max-width: 70ch; }
.svc-qa { border-bottom: 1px solid var(--line-d); }
.svc-qa summary { position: relative; display: block; padding: 20px 44px 20px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: clamp(16px, 1.3vw, 19px); color: var(--cream); }
.svc-qa summary::-webkit-details-marker { display: none; }
.svc-qa summary i { position: absolute; right: 4px; top: 50%; width: 18px; height: 18px; translate: 0 -50%; }
.svc-qa summary i::before, .svc-qa summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; translate: 0 -50%; background: var(--orange); transition: transform 0.4s var(--ease-out); }
.svc-qa summary i::after { transform: rotate(90deg); }
.svc-qa[open] summary i::after { transform: rotate(0deg); }
.chap__body .svc-qa p { margin: 0 0 20px; font-size: 16px; color: var(--muted-d); }
.svc-more { padding-bottom: clamp(60px, 8vw, 120px); }
.svc-more .serif-label { margin-bottom: 16px; }
.svc-more__list { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.4vw, 20px); }
.svc-more__link { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 20px; padding: clamp(20px, 2.4vw, 34px); border-radius: var(--radius); background: rgba(246, 241, 234, 0.04); box-shadow: inset 0 0 0 1px var(--line-d); transition: background-color 0.3s, box-shadow 0.3s; }
.svc-more__link .mono { grid-column: 1; color: var(--orange); }
.svc-more__name { grid-column: 1; font-family: var(--f-display); font-weight: 700; letter-spacing: -0.045em; line-height: 1; font-size: clamp(26px, 2.6vw, 44px); color: #fff; }
.svc-more__link i { grid-column: 2; grid-row: 1 / 3; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; font-style: normal; background: var(--orange); color: var(--ink); transition: transform 0.5s var(--ease-out); }
.svc-more__link:hover { background: rgba(246, 241, 234, 0.07); box-shadow: inset 0 0 0 1px rgba(239, 134, 17, 0.45); }
.svc-more__link:hover i { transform: translateX(6px); }
@media (max-width: 760px) { .svc-list, .svc-more__list { grid-template-columns: 1fr; } }

/* mentions légales */
.legal__list { margin: 0; border-top: 1px solid var(--line-d); max-width: 70ch; }
.legal__list > div { display: grid; grid-template-columns: 220px 1fr; gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--line-d); }
.legal__list dt { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted-d); padding-top: 3px; }
.legal__list dd { margin: 0; font-size: 16px; color: var(--cream); }
.legal__list small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted-d); }
.legal a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.todo { padding: 2px 8px; border-radius: 6px; background: var(--orange); color: var(--ink); font-family: var(--f-mono); font-size: 12px; }
@media (max-width: 640px) { .legal__list > div { grid-template-columns: 1fr; } }
