/* Juliette Digital — site styles */

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--jd-cream);
  color: var(--jd-ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--jd-plum); color: var(--jd-cream); }

/* ------- Layout ------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 720px) {
  .container { padding: 0 24px; }
}

/* Les grands espaces font partie de la direction artistique.
   Resserrés d'environ 15 % pour que le scroll ne paraisse pas
   étiré, sans compacter la maquette. */
.section {
  padding: 102px 0;
  position: relative;
}
.section--tight { padding: 68px 0; }
@media (max-width: 880px) {
  .section { padding: 72px 0; }
  .section--tight { padding: 52px 0; }
}
.section--plum {
  background: var(--jd-plum);
  color: var(--jd-cream);
}
.section--plum-deep {
  background: var(--jd-plum-deep);
  color: var(--jd-cream);
}
.section--paper { background: var(--jd-paper); }
.section--cream-warm { background: var(--jd-cream-warm); }

/* ------- Typography helpers ------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; font-weight: 500;
  color: var(--jd-wine);
  margin: 0 0 24px;
}
.section--plum .eyebrow, .section--plum-deep .eyebrow { color: var(--jd-rose-light); }

/* Titres en capitales condensées : registre affiche. */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 0.98;
  color: var(--jd-teal);
  text-wrap: balance;
  margin: 0;
}
.section--plum .display, .section--plum-deep .display { color: var(--jd-white); }

.display--xl { font-size: clamp(60px, 9.5vw, 150px); line-height: 0.94; }
.display--l  { font-size: clamp(48px, 7vw, 112px); line-height: 0.96; }
.display--m  { font-size: clamp(36px, 4.4vw, 68px); line-height: 1.0; }
.display--s  { font-size: clamp(26px, 2.2vw, 38px); line-height: 1.1; }

/* Le mot mis en avant dans un titre : même police, autre couleur.
   Le nom de classe reste pour ne pas toucher tous les composants. */
.italic-serif {
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  color: var(--jd-teal-mid);
}

.lead {
  font-size: 20px; line-height: 1.6;
  color: var(--jd-ink-soft); font-weight: 400;
  text-wrap: pretty; max-width: 640px;
}
@media (max-width: 600px) { .lead { font-size: 18px; } }
.section--plum .lead, .section--plum-deep .lead { color: var(--jd-rose-light); }

.body {
  font-size: 16px; line-height: 1.7;
  color: var(--jd-ink); text-wrap: pretty;
}
.section--plum .body, .section--plum-deep .body { color: var(--jd-cream); opacity: 0.88; }

/* italic-serif defined above */

/* ------- Buttons ------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 220ms var(--ease-out);
  cursor: pointer; border: 1px solid transparent;
  text-decoration: none;
  font-family: var(--font-body);
}
.btn__arrow { transition: transform 220ms var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--jd-plum); color: var(--jd-cream);
}
.btn--primary:hover { background: var(--jd-plum-soft); }

.btn--ghost {
  background: transparent; color: var(--jd-plum);
  border: 1px solid var(--jd-plum);
}
.btn--ghost:hover { background: var(--jd-plum); color: var(--jd-cream); }

.section--plum .btn--primary, .section--plum-deep .btn--primary {
  background: var(--jd-cream); color: var(--jd-plum);
}
.section--plum .btn--primary:hover, .section--plum-deep .btn--primary:hover {
  background: var(--jd-paper);
}
.section--plum .btn--ghost, .section--plum-deep .btn--ghost {
  color: var(--jd-cream); border-color: var(--jd-cream);
}
.section--plum .btn--ghost:hover, .section--plum-deep .btn--ghost:hover {
  background: var(--jd-cream); color: var(--jd-plum);
}

/* ------- Nav ------- */
/* Barre pleine en teal, comme l'en-tête du portfolio. */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 93, 88, 0.94);
  border-bottom: 1px solid transparent;
  transition: background 240ms, border-color 240ms;
}
.nav--scrolled {
  background: var(--jd-teal);
  border-bottom-color: rgba(167, 216, 210, 0.22);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
}
.nav__brand {
  display: flex; align-items: center; gap: 12px;
  cursor: pointer;
}
.nav__mark {
  height: 40px;
  display: flex; align-items: center;
}
.nav__mark img { height: 100%; width: auto; }
.nav__wordmark {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--jd-ivory);
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .nav__wordmark { font-size: 16px; }
}
.nav__wordmark em {
  font-family: var(--font-display);
  font-style: italic; font-weight: 500;
  margin-left: 2px;
  font-size: 1.08em;
}
.nav__links {
  display: flex; gap: 40px; align-items: center;
}
.nav__link {
  display: inline-block;
  font-size: 14px; font-weight: 500;
  color: var(--jd-ivory); cursor: pointer;
  position: relative; padding: 6px 0;
  letter-spacing: 0.01em;
  transition: color 180ms;
}
.nav__link--active { color: var(--jd-yellow); }
/* Sur la barre teal, le mot manuscrit s'écrit en jaune. */

/* ------- Le jaune du portfolio -------
   Il ne passe pas sur blanc (contraste trop faible), donc il ne
   sert que sur les aplats sombres, comme sur portfoliojuliettechivot.fr :
   intitulés, numéros, chiffres, et le trait des liens. */
.section--plum .eyebrow,
.section--plum-deep .eyebrow,
.section--plum-deep .step__num,
.cta-block .eyebrow {
  color: var(--jd-yellow);
}
.section--plum .italic-serif,
.section--plum-deep .italic-serif {
  color: var(--jd-yellow);
}

/* Le bouton principal posé sur un aplat sombre passe en jaune,
   texte sombre : c'est le contraste le plus fort de la palette. */
.section--plum .btn--primary,
.section--plum-deep .btn--primary,
.cta-block .btn--primary {
  background: var(--jd-yellow);
  color: var(--jd-teal-night);
}
.section--plum .btn--primary:hover,
.section--plum-deep .btn--primary:hover,
.cta-block .btn--primary:hover {
  background: var(--jd-ivory);
  color: var(--jd-teal-night);
}

/* ------- Coup de surligneur au survol -------
   Un aplat jaune se trace derriere le mot, de gauche a droite.
   Il deborde legerement pour garder un geste un peu manuel. */
.written {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.written__mark {
  position: absolute;
  left: -7px; right: -7px;
  bottom: -2px;
  height: 0.72em;
  background: var(--jd-yellow);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 340ms cubic-bezier(0.5, 0.02, 0.28, 1);
  pointer-events: none;
}
.written__label {
  position: relative;
  transition: color 200ms var(--ease-out);
}
.nav__link:hover .written__mark,
.nav__link--active .written__mark,
.mobile-menu__link:hover .written__mark {
  transform: scaleX(1);
}
.nav__link:hover .written__label,
.nav__link--active .written__label,
.mobile-menu__link:hover .written__label {
  color: var(--jd-teal-night);
}

@media (prefers-reduced-motion: reduce) {
  .written__mark, .written__label { transition: none; }
}

.nav__cta {
  padding: 12px 22px; font-size: 13px;
  background: var(--jd-yellow); color: var(--jd-teal-night);
  font-weight: 600;
  border-radius: 999px;
  transition: background 200ms;
}
.nav__cta:hover { background: var(--jd-ivory); }

.nav__burger {
  display: none; background: none; border: 0;
  cursor: pointer; padding: 10px; color: var(--jd-ivory);
}
@media (max-width: 880px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
}

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--jd-plum);
  color: var(--jd-cream);
  padding: 32px;
  display: flex; flex-direction: column;
  transform: translateY(-100%);
  transition: transform 340ms var(--ease-out);
}
.mobile-menu--open { transform: translateY(0); }
.mobile-menu__top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 60px;
  flex: 0 0 auto;
}
.mobile-menu__mark {
  height: 44px; width: auto;
}
.mobile-menu__close {
  background: none; border: 0; color: var(--jd-cream);
  font-size: 28px; cursor: pointer;
}
.mobile-menu__links {
  display: flex; flex-direction: column; gap: 24px;
}
.mobile-menu__link {
  font-family: var(--font-body);
  font-size: 28px; font-weight: 500;
  color: var(--jd-cream);
  cursor: pointer;
  letter-spacing: -0.01em;
  position: relative;
  align-self: flex-start;
}

/* ------- Hero ------- */
.hero {
  position: relative; overflow: hidden;
  padding: 150px 0 170px;
  background: var(--jd-cream);
}
/* Le logo est un geste, on ne le rogne pas : il tient entier dans
   le bloc. Centrage par marge et non par transform, parce que le
   transform est réservé au léger décalage au scroll. */
.hero__deco {
  position: absolute;
  right: 3%; top: 50%;
  height: 440px; margin-top: -220px;
  opacity: 0.3;
  pointer-events: none;
  filter: drop-shadow(0 24px 50px rgba(0, 83, 111, 0.16));
}
@media (max-width: 1100px) {
  .hero__deco { height: 320px; margin-top: -160px; right: 2%; opacity: 0.22; }
}
@media (max-width: 880px) {
  .hero { padding: 120px 0 130px; }
  .hero__deco { height: 200px; margin-top: -100px; right: 2%; opacity: 0.16; }
}

.hero__inner { position: relative; z-index: 1; max-width: 880px; }
/* Sur grand écran le logo occupe la droite du bloc : le texte
   s'arrête avant lui au lieu de passer dessous. */
@media (min-width: 1101px) {
  .hero__inner { max-width: 600px; }
}
.hero__title { margin: 28px 0 32px; }
.hero__cta-row {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 40px;
}
.hero__trilogy {
  margin-top: 60px;
  font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--jd-plum);
  font-weight: 500;
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
}
.hero__trilogy span:not(.dot) { display: inline-block; }
.hero__trilogy .dot { opacity: 0.4; }

/* ------- Section intro (shared) ------- */
.section-intro {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: end;
  margin-bottom: 80px;
}
@media (max-width: 880px) {
  .section-intro { grid-template-columns: 1fr; gap: 32px; margin-bottom: 56px; }
}

/* ------- Services grid ------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--jd-line);
  border: 1px solid var(--jd-line);
  border-radius: 14px;
  overflow: hidden;
}
.section--plum .services, .section--plum-deep .services {
  background: var(--jd-line-dark);
  border-color: var(--jd-line-dark);
}
@media (max-width: 960px) {
  .services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .services { grid-template-columns: 1fr; }
}

.service {
  background: var(--jd-cream-warm);
  padding: 44px 36px 40px;
  min-height: 280px;
  display: flex; flex-direction: column;
  transition: background 240ms var(--ease-out);
  cursor: default;
}
.section--plum .service, .section--plum-deep .service {
  background: var(--jd-plum);
}
.section--plum .service:hover, .section--plum-deep .service:hover {
  background: var(--jd-plum-soft);
}
.service:hover { background: var(--jd-paper); }

.service__num {
  font-family: var(--font-display);
  font-size: 14px; color: var(--jd-wine);
  letter-spacing: 0.02em; margin-bottom: 24px;
}
.section--plum .service__num { color: var(--jd-yellow); }
.service__title {
  font-family: var(--font-body);
  font-size: 22px; line-height: 1.25;
  font-weight: 600;
  color: var(--jd-plum);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.section--plum .service__title { color: var(--jd-cream); }
.service__desc {
  font-size: 15px; line-height: 1.65;
  color: var(--jd-ink-soft);
  margin: 0 0 24px;
  flex: 1;
}
.section--plum .service__desc { color: var(--jd-rose-light); }
.service__tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  font-size: 12px; color: var(--jd-wine);
  letter-spacing: 0.04em;
}
.section--plum .service__tags { color: var(--jd-rose-pale); }
.service__tag::after { content: "·"; margin: 0 0 0 6px; opacity: 0.5; }
.service__tag:last-child::after { display: none; }

/* ------- Services : lignes dépliables + tarifs -------
   Même langage que le reste : gros numéro, titre à gauche,
   information à droite, filets fins, beaucoup d'air. */
.svc-rows { border-top: 1px solid var(--jd-line); }

.svc-row { border-bottom: 1px solid var(--jd-line); }
.svc-row__head {
  width: 100%;
  display: grid;
  grid-template-columns: 72px 1fr auto 32px;
  align-items: center;
  gap: 24px;
  padding: 30px 0;
  background: none; border: 0; text-align: left;
  cursor: pointer;
  font: inherit; color: inherit;
  transition: opacity 200ms var(--ease-out);
}
.svc-row__head:hover { opacity: 0.72; }
.svc-row__head:focus-visible {
  outline: 2px solid var(--jd-teal-mid);
  outline-offset: 4px;
}
.svc-row__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1;
  color: var(--jd-teal-mid);
}
.svc-row__main { display: block; }
.svc-row__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(22px, 2.1vw, 32px);
  line-height: 1.05;
  color: var(--jd-teal);
  margin-bottom: 6px;
}
.svc-row__lead {
  display: block;
  font-size: 16px; line-height: 1.55;
  color: var(--jd-ink-soft);
  max-width: 48ch;
}
.svc-row__price { text-align: right; white-space: nowrap; }
.svc-row__from {
  display: block;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--jd-ink-soft);
  margin-bottom: 4px;
}
.svc-row__amount {
  display: block;
  font-family: var(--font-display);
  font-weight: 600; font-size: clamp(20px, 1.8vw, 26px);
  color: var(--jd-teal);
}
.svc-row__toggle {
  font-size: 26px; line-height: 1;
  color: var(--jd-teal-mid);
  text-align: right;
}
@media (max-width: 780px) {
  .svc-row__head {
    grid-template-columns: 48px 1fr 28px;
    gap: 16px; padding: 24px 0;
  }
  .svc-row__price {
    grid-column: 2 / 4;
    text-align: left;
    margin-top: 10px;
    white-space: normal;
  }
  .svc-row__from { margin-bottom: 2px; }
}
/* Très petites largeurs : le libellé du prix doit pouvoir passer
   à la ligne, sinon il élargit la grille et crée un scroll latéral. */
@media (max-width: 380px) {
  .svc-row__from { letter-spacing: 0.12em; }
  .svc-row__head { grid-template-columns: 38px 1fr 24px; gap: 12px; }
  .svc-row__num { font-size: 26px; }
}

.svc-row__panel { padding: 0 0 36px; }
.svc-row__panel-inner {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 56px;
  padding-left: 96px;
}
@media (max-width: 900px) {
  .svc-row__panel-inner { grid-template-columns: 1fr; gap: 32px; padding-left: 0; }
}
.svc-row__sub {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--jd-teal-mid);
  margin: 0 0 16px; font-weight: 600;
}

.price-list { list-style: none; margin: 0; padding: 0; }
.price-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--jd-line);
}
.price-item:last-child { border-bottom: 0; }
.price-item__label {
  font-size: 17px; font-weight: 600;
  color: var(--jd-teal);
}
.price-item__amount {
  font-family: var(--font-display);
  font-weight: 600; font-size: 18px;
  color: var(--jd-teal-mid);
  white-space: nowrap;
}
.price-item__detail {
  grid-column: 1 / -1;
  font-size: 16px; line-height: 1.6;
  color: var(--jd-ink-soft);
}

.price-note {
  margin-top: 56px;
  padding: 28px 32px;
  background: var(--jd-cream-warm);
  border-radius: 12px;
  max-width: 760px;
}
.price-note p {
  margin: 0 0 12px;
  font-size: 16px; line-height: 1.6;
  color: var(--jd-ink-soft);
}
.price-note p:last-child { margin-bottom: 0; }

/* ------- Services page: compact list ------- */
.svc-list { border-top: 1px solid var(--jd-line); }
.svc-item {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  padding: 36px 0;
  border-bottom: 1px solid var(--jd-line);
}
@media (max-width: 860px) {
  .svc-item { grid-template-columns: 1fr; gap: 16px; }
}
.svc-item__head { display: flex; align-items: baseline; gap: 16px; }
.svc-item__num {
  font-family: var(--font-display);
  font-size: 14px; color: var(--jd-wine);
}
.svc-item__title {
  font-family: var(--font-body);
  font-size: 24px; font-weight: 600;
  color: var(--jd-plum);
  letter-spacing: -0.01em;
  margin: 0;
}
.svc-item__lead {
  font-size: 17px; line-height: 1.6;
  color: var(--jd-ink-soft);
  margin: 0 0 20px;
}

/* ------- Titre de famille de projets ------- */
.group-title {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--jd-teal-mid);
  margin: 0 0 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--jd-line);
}

/* ------- Photo réelle dans une carte projet ------- */
.project__photo {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ------- Comparateur avant / après ------- */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
@media (max-width: 820px) { .ba-grid { grid-template-columns: 1fr; } }

.ba-figure { margin: 0; }
.ba-figure figcaption {
  margin-top: 14px;
  font-size: 16px; line-height: 1.6;
  color: var(--jd-ink-soft);
}

.ba {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--jd-cream-deep);
  cursor: ew-resize;
  user-select: none;
  aspect-ratio: 3 / 4;
}
.ba__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.ba__clip {
  position: absolute; inset: 0;
  will-change: clip-path;
}
.ba__handle {
  position: absolute; top: 0; bottom: 0;
  width: 2px;
  background: var(--jd-white);
  transform: translateX(-1px);
  box-shadow: 0 0 0 1px rgba(0, 48, 63, 0.25);
}
.ba__handle:focus-visible { outline: 2px solid var(--jd-blue); outline-offset: 3px; }
.ba__grip {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--jd-white);
  color: var(--jd-teal-night);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px; letter-spacing: 0.08em;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(2, 66, 62, 0.28);
}
.ba__tag {
  position: absolute; bottom: 12px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  background: rgba(0, 48, 63, 0.65);
  color: var(--jd-white);
  padding: 5px 10px;
  border-radius: 999px;
  pointer-events: none;
}
.ba__tag--left { left: 12px; }
.ba__tag--right { right: 12px; }

/* ------- Project card links ------- */
.project__links {
  display: flex; flex-wrap: wrap; gap: 18px;
  margin-top: 14px;
}
.project__link {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--jd-wine);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 200ms var(--ease-out);
}
.project__link:hover { opacity: 0.65; }

/* ------- Home: services as compact rows ------- */
.home-services-list {
  border-top: 1px solid var(--jd-line);
}
.home-service-row {
  display: grid;
  grid-template-columns: 48px 1fr 1.4fr;
  align-items: baseline;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--jd-line);
}
@media (max-width: 720px) {
  .home-service-row { grid-template-columns: 36px 1fr; row-gap: 6px; }
  .home-service-row__line { grid-column: 2; }
}
.home-service-row__num {
  font-family: var(--font-display);
  font-size: 14px; color: var(--jd-wine);
}
.home-service-row__title {
  font-family: var(--font-body);
  font-size: 20px; font-weight: 600;
  color: var(--jd-plum);
  letter-spacing: -0.01em;
}
.home-service-row__line {
  font-size: 16px; line-height: 1.6;
  color: var(--jd-ink-soft);
}

/* ------- Approach / steps ------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}
.step { position: relative; padding-top: 32px; }
.step__num {
  font-family: var(--font-display);
  font-size: 42px; color: var(--jd-plum);
  font-weight: 500;
  line-height: 1; margin-bottom: 16px;
  font-style: italic;
}
.section--plum .step__num { color: var(--jd-yellow); }
.section--plum .step::before { background: var(--jd-rose-light); }
.step__title {
  font-family: var(--font-body);
  font-size: 20px; font-weight: 600;
  color: var(--jd-plum);
  margin: 0 0 12px;
}
.section--plum .step__title { color: var(--jd-cream); }
.step__desc {
  font-size: 16px; line-height: 1.6;
  color: var(--jd-ink-soft);
  margin: 0;
}
.section--plum .step__desc { color: var(--jd-rose-light); }

/* ------- Projects ------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px 24px;
}
.project { grid-column: span 3; cursor: pointer; }
.project--wide { grid-column: span 6; }
.project--tall { grid-column: span 2; }
.project--small { grid-column: span 2; }

@media (max-width: 880px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project, .project--wide, .project--tall, .project--small { grid-column: span 1; }
}

.project__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--jd-cream-deep);
  transition: transform 360ms var(--ease-out);
}
.project--wide .project__media { aspect-ratio: 16 / 7; }
.project--tall .project__media { aspect-ratio: 3 / 4; }

.project:hover .project__media { transform: translateY(-4px); }

.project__visual {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.project__tag-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 6px;
}
.project__cat {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--jd-wine); font-weight: 500;
}
.project__year {
  font-size: 12px; color: var(--jd-ink-soft);
  font-family: var(--font-display); font-style: italic;
}
.project__title {
  font-family: var(--font-body);
  font-size: 20px; font-weight: 600;
  color: var(--jd-plum);
  margin: 4px 0 8px; line-height: 1.3;
  letter-spacing: -0.01em;
}
.project__desc {
  font-size: 16px; line-height: 1.6;
  color: var(--jd-ink-soft); margin: 0;
}

.section--plum .project__cat { color: var(--jd-rose-light); }
.section--plum .project__year,
.section--plum .project__desc { color: var(--jd-rose-light); }
.section--plum .project__title { color: var(--jd-cream); }

/* ------- Contact ------- */
.contact-grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 80px; align-items: start;
}
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

.form { display: flex; flex-direction: column; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 8px; }
.field__label {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--jd-ink-soft); font-weight: 500;
}
.field__input, .field__textarea, .field__select {
  font-family: var(--font-body);
  font-size: 16px; color: var(--jd-ink);
  background: var(--jd-paper);
  border: 1px solid var(--jd-line);
  border-radius: 8px;
  padding: 14px 16px;
  transition: border-color 180ms, background 180ms;
  width: 100%;
}
.field__textarea { resize: vertical; min-height: 140px; font-family: var(--font-body); }
.field__input:focus, .field__textarea:focus, .field__select:focus {
  outline: none;
  border-color: var(--jd-plum);
  background: var(--jd-white);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--jd-line);
  background: transparent;
  font-size: 13px; color: var(--jd-ink);
  cursor: pointer;
  transition: all 200ms;
  font-family: var(--font-body);
}
.chip:hover { border-color: var(--jd-plum); }
.chip--active {
  background: var(--jd-plum); color: var(--jd-cream);
  border-color: var(--jd-plum);
}

.form__submit {
  align-self: flex-start;
  margin-top: 12px;
}

.contact-side {
  background: var(--jd-paper);
  border: 1px solid var(--jd-line);
  border-radius: 16px;
  padding: 40px 36px;
}
.contact-side__row {
  padding: 20px 0;
  border-bottom: 1px solid var(--jd-line);
}
.contact-side__row:last-child { border-bottom: 0; }
.contact-side__row:first-child { padding-top: 0; }
.contact-side__label {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--jd-ink-soft); font-weight: 500;
  margin-bottom: 8px;
}
.contact-side__value {
  font-size: 16px; color: var(--jd-plum);
  font-weight: 500;
}
.contact-side__value--display {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 400;
}

/* ------- Testimonial / pull quote ------- */
.pullquote {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.pullquote__mark {
  font-family: var(--font-display);
  font-size: 120px; line-height: 0.5;
  color: var(--jd-wine);
  height: 48px; opacity: 0.8;
}
.pullquote__text {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.3;
  color: var(--jd-plum);
  font-style: italic;
  font-weight: 500;
  margin: 24px 0 32px;
  text-wrap: balance;
}
.pullquote__author {
  font-size: 13px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--jd-wine);
  font-weight: 500;
}

/* ------- Footer ------- */
.footer {
  background: var(--jd-plum-deep);
  color: var(--jd-cream);
  padding: 100px 0 40px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 80px;
}
@media (max-width: 880px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 48px; }
  .footer__brand { grid-column: span 2; }
}
@media (max-width: 560px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__brand { grid-column: span 1; }
}
.footer__wordmark {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 26px; color: var(--jd-cream);
  line-height: 1; margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.footer__wordmark em {
  font-family: var(--font-display);
  font-style: italic; font-weight: 500;
  font-size: 1.15em; margin-left: 3px;
}
.footer__tagline {
  font-size: 15px; line-height: 1.65;
  color: var(--jd-rose-light); max-width: 280px;
}
.footer__col-title {
  font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--jd-rose-pale);
  font-weight: 500; margin: 0 0 20px;
}
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__link {
  font-size: 14px; color: var(--jd-cream);
  cursor: pointer; opacity: 0.88;
  transition: opacity 180ms;
}
.footer__link:hover { opacity: 1; }

.footer__bottom {
  display: flex; justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--jd-line-dark);
  font-size: 12px; color: var(--jd-rose-light);
  flex-wrap: wrap; gap: 16px;
}
.footer__trilogy {
  letter-spacing: 0.18em; text-transform: uppercase;
}

/* ------- Benefits ------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--jd-line);
  border: 1px solid var(--jd-line);
  border-radius: 14px;
  overflow: hidden;
}
@media (max-width: 720px) { .benefits { grid-template-columns: 1fr; } }
.benefit {
  background: var(--jd-cream-warm);
  padding: 40px 36px;
}
.benefit__mark {
  font-family: var(--font-display);
  font-size: 20px; color: var(--jd-wine);
  margin-bottom: 14px; font-style: italic;
  font-weight: 500;
}
.benefit__title {
  font-family: var(--font-body);
  font-size: 22px; font-weight: 600;
  color: var(--jd-plum);
  margin: 0 0 12px; line-height: 1.25;
  letter-spacing: -0.01em;
}
.benefit__desc {
  font-size: 15px; line-height: 1.65;
  color: var(--jd-ink-soft); margin: 0;
}

/* ------- About: split ------- */
.about-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px; align-items: center;
}
@media (max-width: 880px) {
  .about-hero { grid-template-columns: 1fr; gap: 40px; }
}
.about-portrait {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  background:
    linear-gradient(160deg, var(--jd-wine) 0%, var(--jd-plum) 50%, var(--jd-plum-deep) 100%);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-m);
}
.about-portrait__mono {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(180px, 28vw, 360px);
  color: var(--jd-cream);
  opacity: 0.12;
  top: 40%; left: 50%;
  transform: translate(-50%, -50%);
  font-style: italic;
  line-height: 0.8;
}
.about-portrait__tag {
  position: absolute; bottom: 32px; left: 32px;
  color: var(--jd-cream);
  font-family: var(--font-display);
  font-size: 22px; font-style: italic;
  max-width: 70%; line-height: 1.25;
}
.about-portrait__meta {
  position: absolute; top: 32px; right: 32px;
  color: var(--jd-rose-light);
  font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ------- Manifesto / principles ------- */
.principles {
  display: grid; grid-template-columns: 1fr;
  gap: 0;
}
.principle {
  display: grid; grid-template-columns: 80px 1fr 1.4fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--jd-line);
  align-items: start;
}
.principle:last-child { border-bottom: 0; }
@media (max-width: 720px) {
  .principle { grid-template-columns: 1fr; gap: 12px; }
}
.principle__num {
  font-family: var(--font-display);
  font-size: 22px; color: var(--jd-wine);
  font-style: italic; font-weight: 500;
}
.principle__title {
  font-family: var(--font-body);
  font-size: clamp(19px, 1.5vw, 24px);
  font-weight: 600;
  color: var(--jd-plum);
  margin: 0; line-height: 1.3;
  letter-spacing: -0.01em;
}
.principle__desc {
  font-size: 16px; line-height: 1.65;
  color: var(--jd-ink-soft); margin: 0;
}

/* ------- Marquee / pills ------- */
.pills-row {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.pill {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--jd-line);
  font-size: 13px; color: var(--jd-ink);
  background: transparent;
}
.section--plum .pill, .section--plum-deep .pill {
  border-color: var(--jd-line-dark);
  color: var(--jd-cream);
}

/* ------- CTA block ------- */
.cta-block {
  background: var(--jd-plum);
  color: var(--jd-cream);
  border-radius: 24px;
  overflow: hidden;
  padding: 80px 72px;
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: end;
  position: relative;
  overflow: hidden;
}
@media (max-width: 720px) {
  .cta-block { grid-template-columns: 1fr; padding: 56px 32px; gap: 40px; }
}
.cta-block__bg {
  position: absolute;
  right: -80px; bottom: -120px;
  height: 420px; opacity: 0.18;
  pointer-events: none;
}
.cta-block__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 500;
  line-height: 1.12; color: var(--jd-cream);
  margin: 0; text-wrap: balance;
  letter-spacing: -0.01em;
}
.cta-block__side { position: relative; z-index: 1; }
.cta-block__desc {
  font-size: 16px; line-height: 1.65; color: var(--jd-rose-light);
  margin: 0 0 24px;
}

/* ------- Numbers row ------- */
.nums {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
@media (max-width: 720px) { .nums { grid-template-columns: repeat(2, 1fr); } }
.num__value {
  font-family: var(--font-display);
  font-size: clamp(44px, 4.4vw, 64px);
  font-weight: 500;
  color: var(--jd-plum);
  line-height: 1; margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.section--plum .num__value { color: var(--jd-cream); }
.num__label {
  font-size: 13px; color: var(--jd-ink-soft);
  line-height: 1.5;
}
.section--plum .num__label { color: var(--jd-rose-light); }

/* ------- Page transitions ------- */
.page {
  animation: pageIn 360ms var(--ease-out);
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ------- Tweaks panel ------- */
.tweaks {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 320px;
  max-height: 80vh;
  overflow-y: auto;
  background: var(--jd-paper);
  border: 1px solid var(--jd-line);
  border-radius: 14px;
  box-shadow: var(--shadow-l);
  z-index: 400;
  font-family: var(--font-body);
}
.tweaks__header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--jd-line);
  display: flex; justify-content: space-between; align-items: center;
}
.tweaks__title {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--jd-plum);
}
.tweaks__body { padding: 20px; display: flex; flex-direction: column; gap: 20px; }
.tweaks__group {}
.tweaks__label {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--jd-ink-soft); margin-bottom: 10px; font-weight: 500;
}
.tweaks__options { display: flex; gap: 6px; flex-wrap: wrap; }
.tweaks__btn {
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--jd-line);
  background: transparent; cursor: pointer;
  font-size: 12px; color: var(--jd-ink);
  font-family: var(--font-body);
}
.tweaks__btn--active {
  background: var(--jd-plum); color: var(--jd-cream);
  border-color: var(--jd-plum);
}
.tweaks__swatch {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer; padding: 0;
}
.tweaks__swatch--active { border-color: var(--jd-ink); }

/* Hero variants */
.hero--editorial .hero__deco { display: none; }
.hero--editorial {
  padding: 60px 0 120px;
}
.hero--split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 100px 0 120px;
}
.hero--split .hero__deco { display: none; }
.hero--split .hero__inner { max-width: none; }
.hero--split .hero__card {
  aspect-ratio: 4/5;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 20%, var(--jd-wine), var(--jd-plum) 60%, var(--jd-plum-deep));
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-l);
}
.hero--split .hero__card-mark {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.hero--split .hero__card-mark img {
  height: 70%; opacity: 0.9;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.25));
}
.hero--split .hero__card-tag {
  position: absolute; bottom: 28px; left: 28px;
  color: var(--jd-cream);
  font-family: var(--font-display); font-style: italic;
  font-size: 22px;
}
@media (max-width: 880px) {
  .hero--split { grid-template-columns: 1fr; }
  .hero--split .hero__card { aspect-ratio: 16/10; }
}

/* ------- Scroll reveal ------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 720ms var(--ease-out), transform 720ms var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Les visuels de projet arrivent un peu plus amplement que le texte. */
.project.reveal { transform: translateY(30px) scale(0.985); }
.project.reveal.is-visible { transform: translateY(0) scale(1); }

.hero__deco { transition: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .project.reveal {
    opacity: 1; transform: none; transition: none;
  }
}

/* ------- Accent theme (tweaks) ------- */
body.accent-wine {
  --accent: var(--jd-wine);
}
body.accent-wine .btn--primary {
  background: var(--jd-wine);
}
body.accent-wine .btn--primary:hover { background: var(--jd-wine-light); }
body.accent-wine .nav__cta { background: var(--jd-wine); }
body.accent-wine .nav__cta:hover { background: var(--jd-wine-light); }
body.accent-wine .eyebrow { color: var(--jd-plum); }
body.accent-wine .project__cat { color: var(--jd-plum); }
body.accent-wine .service__num { color: var(--jd-plum); }

body.accent-ink {
  --accent: var(--jd-plum-deep);
}
body.accent-ink .btn--primary { background: var(--jd-plum-deep); }
body.accent-ink .btn--primary:hover { background: var(--jd-plum); }
body.accent-ink .nav__cta { background: var(--jd-plum-deep); }

/* ------- FAQ ------- */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
}
@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ------- Navigation au clavier -------
   Tout ce qui est actionnable doit se voir quand on tabule.
   Le contour jaune passe sur clair comme sur les aplats teal. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
details:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--jd-yellow);
  outline-offset: 3px;
  border-radius: 4px;
}
.section--plum a:focus-visible,
.section--plum button:focus-visible,
.cta-block a:focus-visible,
.nav a:focus-visible,
.nav button:focus-visible,
.mobile-menu a:focus-visible,
.mobile-menu button:focus-visible {
  outline-color: var(--jd-yellow);
}
.field__input:focus-visible,
.field__textarea:focus-visible {
  outline: 3px solid var(--jd-teal-mid);
  outline-offset: 2px;
}

/* Lien d'évitement, premier élément focusable de la page. */
.skip-link {
  position: absolute; left: 12px; top: -60px;
  z-index: 300;
  background: var(--jd-yellow); color: var(--jd-teal-night);
  padding: 12px 20px; border-radius: 0 0 8px 8px;
  font-weight: 600; font-size: 15px;
  transition: top 160ms var(--ease-out);
}
.skip-link:focus { top: 0; }

/* Zones cliquables : au moins 44 px de haut au doigt.
   On ne touche pas à `display` ici : la barre de nav masque
   certains de ces éléments en mobile, et une règle plus bas
   dans la feuille écraserait ce masquage. */
.chip, .btn, .project__link {
  min-height: 44px;
  align-items: center;
}
.chip, .project__link { display: inline-flex; }
.nav__cta { padding-top: 14px; padding-bottom: 14px; }

.fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fieldset > .field__label { padding: 0; }
.form__error {
  color: var(--jd-teal);
  background: var(--jd-cream-warm);
  border-left: 3px solid var(--jd-yellow);
  padding: 12px 16px;
  font-size: 15px; line-height: 1.5;
  border-radius: 0 6px 6px 0;
}

/* ------- Pas d'italique synthétique -------
   Oswald n'a pas de vraie italique : le navigateur en fabrique une
   en penchant les lettres, et ça se voit. Ces règles datent de la
   version en serif, on neutralise l'italique là où elles servent. */
.step__num,
.project__year,
.pullquote__text,
.footer__wordmark em,
.benefit__mark,
.about-portrait__mono,
.about-portrait__tag,
.principle__num,
.hero--split .hero__card-tag,
.jd-italic {
  font-style: normal;
}

/* =========================================================================
   Blocs propres au thème WordPress
   ========================================================================= */

/* Carte projet cliquable ------------------------------------------------ */
.project--link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.project--link .project__media { display: block; }
.project--link .project__tag-row { display: flex; justify-content: space-between; align-items: baseline; }
.project__more {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px; font-weight: 600;
  color: var(--jd-teal-mid);
  letter-spacing: 0.02em;
  transition: transform 200ms var(--ease-out);
}
.project--link:hover .project__more { transform: translateX(4px); }
.project--link:hover .project__photo { transform: scale(1.03); }
.project__photo { transition: transform 500ms var(--ease-out); }
.project--link:focus-visible { outline: 3px solid var(--jd-yellow); outline-offset: 4px; }

/* Vignette de repli quand aucun visuel n'est fourni ---------------------- */
.project__visual--empty {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  background: linear-gradient(160deg, var(--jd-teal), var(--jd-teal-night) 70%);
  padding: 24px;
}
.project__visual-name {
  font-family: var(--font-display);
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(22px, 3vw, 40px);
  line-height: 1;
  color: var(--jd-yellow);
  text-align: center;
}

/* Retour arrière -------------------------------------------------------- */
.backlink {
  display: inline-block;
  font-size: 15px; font-weight: 600;
  color: var(--jd-teal-mid);
  text-decoration: none;
}
.backlink:hover { color: var(--jd-teal); }

/* Fiche du projet ------------------------------------------------------- */
.factsheet {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px 40px;
  margin: 44px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--jd-line);
}
.factsheet dt {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--jd-teal-mid); font-weight: 600;
  margin-bottom: 6px;
}
.factsheet dd {
  margin: 0;
  font-size: 16px; line-height: 1.5;
  color: var(--jd-ink);
}

/* Grand visuel d'étude de cas ------------------------------------------- */
.project-hero {
  border-radius: 16px;
  overflow: hidden;
  background: var(--jd-cream-deep);
}
.project-hero img { display: block; width: 100%; height: auto; }

/* Bloc de texte d'étude de cas ------------------------------------------ */
.casebloc {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 56px;
}
@media (max-width: 900px) { .casebloc { grid-template-columns: 1fr; gap: 20px; } }
.casebloc__title {
  font-family: var(--font-display);
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.05;
  color: var(--jd-teal);
  margin: 0;
}
.casebloc__body > p { margin: 0 0 18px; }
.casebloc__body > p:last-child { margin-bottom: 0; }

/* Texte rédigé dans l'éditeur ------------------------------------------- */
.jd-prose { max-width: 68ch; }
.jd-prose h2 {
  font-family: var(--font-display);
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.05;
  color: var(--jd-teal);
  margin: 44px 0 16px;
}
.jd-prose h2:first-child { margin-top: 0; }
.jd-prose h3 {
  font-size: 20px; font-weight: 600;
  color: var(--jd-teal); margin: 32px 0 10px;
}
.jd-prose p {
  font-size: 17px; line-height: 1.7;
  color: var(--jd-ink);
  margin: 0 0 18px;
}
.jd-prose a { color: var(--jd-teal-mid); }
.jd-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.jd-prose ul, .jd-prose ol { font-size: 17px; line-height: 1.7; padding-left: 1.2em; }

/* FAQ ------------------------------------------------------------------- */
.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--jd-line);
}
.faq-item summary {
  font-size: 18px; font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--jd-teal);
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { font-size: 28px; color: var(--jd-teal-mid); }
.faq-item[open] summary span { transform: rotate(45deg); }
.faq-item p { margin-top: 16px; font-size: 16px; color: var(--jd-ink-soft); }

/* Lecteur d'extrait sonore ---------------------------------------------- */
.audio {
  display: flex; align-items: center; gap: 20px;
  max-width: 640px;
  padding: 20px 24px;
  border: 1px solid var(--jd-line-dark);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}
.audio__btn {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  border-radius: 999px;
  border: 0;
  background: var(--jd-yellow);
  color: var(--jd-teal-night);
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 180ms var(--ease-out);
}
.audio__btn:hover { transform: scale(1.06); }
.audio__body { flex: 1 1 auto; min-width: 0; }
.audio__title {
  font-family: var(--font-display);
  font-weight: 600; text-transform: uppercase;
  font-size: 18px; color: var(--jd-white);
  letter-spacing: 0.02em;
}
.audio__note {
  font-size: 14px; line-height: 1.5;
  color: var(--jd-teal-pale);
  margin: 4px 0 10px;
}
.audio__bar {
  height: 4px; border-radius: 999px;
  background: rgba(167, 216, 210, 0.3);
  cursor: pointer;
  overflow: hidden;
}
.audio__fill {
  display: block; height: 100%; width: 0;
  background: var(--jd-yellow);
  transition: width 120ms linear;
}
.audio__time {
  flex: 0 0 auto;
  font-size: 14px; color: var(--jd-teal-pale);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 560px) {
  .audio { flex-wrap: wrap; gap: 14px; }
  .audio__time { order: 3; }
}

/* Pastille « page avec son » -------------------------------------------- */
.soundtag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--jd-yellow);
  border-radius: 999px;
  color: var(--jd-yellow);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  white-space: nowrap;
}
.soundtag__icon { font-size: 14px; }
@media (max-width: 1080px) { .soundtag__label { display: none; } }
@media (max-width: 880px) { .soundtag { display: none; } }

/* Chips utilisées comme cases à cocher ---------------------------------- */
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) {
  background: var(--jd-teal);
  color: var(--jd-ivory);
  border-color: var(--jd-teal);
}
.chip:focus-within { outline: 3px solid var(--jd-yellow); outline-offset: 3px; }

/* Les visuels d'affiche et de couverture ne sont jamais gonflés au-delà
   de leur taille réelle : au-dessus, le grain du fichier d'impression
   devient visible alors qu'il ne l'est pas sur le tirage papier. */
.project-hero {
  display: flex;
  justify-content: center;
  background: var(--jd-cream-warm);
  padding: 0;
}
.project-hero img {
  max-height: 78vh;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

/* ------- Interrupteur du son -------
   Trois barres qui s'animent quand le son est actif. Coupé, elles
   sont plates : l'état se lit sans avoir à survoler. */
.soundtoggle {
  display: inline-flex; align-items: center; gap: 10px;
  background: none;
  border: 1px solid rgba(167, 216, 210, 0.4);
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--jd-ivory);
  font-family: var(--font-body);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 200ms, color 200ms;
}
.soundtoggle:hover { border-color: var(--jd-yellow); }
.soundtoggle--on { border-color: var(--jd-yellow); color: var(--jd-yellow); }

.soundtoggle__icon {
  display: inline-flex; align-items: center; gap: 3px;
  height: 14px;
}
.soundtoggle__wave {
  display: block;
  width: 2px; height: 4px;
  background: currentColor;
  border-radius: 1px;
  transition: height 200ms var(--ease-out);
}
.soundtoggle--on .soundtoggle__wave {
  animation: jd-wave 900ms ease-in-out infinite;
}
.soundtoggle--on .soundtoggle__wave:nth-child(2) { animation-delay: 150ms; }
.soundtoggle--on .soundtoggle__wave:nth-child(3) { animation-delay: 300ms; }

@keyframes jd-wave {
  0%, 100% { height: 4px; }
  50%      { height: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .soundtoggle--on .soundtoggle__wave { animation: none; height: 10px; }
}

@media (max-width: 1180px) { .soundtoggle__label { display: none; } }
@media (max-width: 1180px) { .soundtoggle { padding: 8px 12px; } }
@media (max-width: 880px)  { .soundtoggle { display: none; } }
