/*
  TYPOGRAPHIES
  -----------------------------
  Le site cherche d'abord "Just Breathe" installée sur la machine,
  puis assets/JustBreathe.woff2 si vous y placez votre propre fichier licencié.
*/
@font-face {
  font-family: "Just Breathe";
  src: local("Just Breathe"),
       local("JustBreathe"),
       url("assets/JustBreathe.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  --bg: #ffffff;
  --fg: #101010;
  --muted: #6f6c66;
  --line: rgba(16, 16, 16, 0.18);
  --line-strong: rgba(16, 16, 16, 0.55);
  --pad: clamp(18px, 2.4vw, 34px);
  --display: clamp(3.8rem, 8.7vw, 9.6rem);
  --title-font: "Just Breathe", Georgia, serif;
  --text-font: Consolas, "Courier New", monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--text-font);
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
img, video { display: block; width: 100%; }

/* Titres / display : Just Breathe */
.hero h1,
.format-title,
.offer-lead,
.custom-big,
.studio-statement,
.contact-big {
  font-family: var(--title-font);
  font-weight: 400;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 14px var(--pad);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .04em;
}

.nav { display: flex; gap: 22px; }
.nav a, .brand { transition: opacity .2s ease; }
.nav a:hover, .brand:hover { opacity: .45; }
.section-pad { padding-left: var(--pad); padding-right: var(--pad); }

.hero {
  min-height: calc(100vh - 47px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-top: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.hero-kicker { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.hero h1 {
  align-self: center;
  margin: 0;
  font-size: var(--display);
  line-height: .9;
  letter-spacing: -.02em;
  max-width: 96vw;
}

.hero-bottom,
.custom-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: end;
}
.hero-bottom p, .custom-bottom p { max-width: 640px; margin: 0; font-size: clamp(16px, 1.8vw, 26px); }
.arrow-link { font-size: 12px; text-transform: uppercase; letter-spacing: .02em; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

.formats, .custom, .studio, .contact {
  padding-top: 28px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 38px; }
.section-head h2 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; font-weight: 400; }
.section-head span { font-size: 11px; color: var(--muted); text-transform: uppercase; }

/* ACCORDÉON */
.accordion { border-top: 1px solid var(--line); }
.format-item { border-bottom: 1px solid var(--line); scroll-margin-top: 54px; }

.accordion-trigger {
  appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 36px;
  gap: 18px;
  align-items: start;
  padding: 22px 0 24px;
  text-align: left;
  transition: background-color .28s ease, opacity .2s ease;
}

.accordion-trigger:hover .format-title { transform: translateX(7px); }
.accordion-trigger:hover .format-summary { color: var(--fg); }
.accordion-trigger:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }
.format-num { font-size: 11px; padding-top: 9px; color: var(--muted); }
.format-heading { display: block; }
.format-title {
  display: block;
  margin: 0;
  font-size: clamp(38px, 6.2vw, 90px);
  line-height: .96;
  letter-spacing: -.015em;
  transition: transform .45s var(--ease), letter-spacing .35s var(--ease);
}
.format-summary {
  display: block;
  max-width: 720px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  transition: color .3s ease, transform .45s var(--ease);
}

.accordion-icon {
  position: relative;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  transform: rotate(0deg);
  transition: transform .6s var(--ease);
}
.accordion-icon span {
  position: absolute;
  left: 4px;
  top: 13px;
  width: 20px;
  height: 1px;
  background: currentColor;
  transition: transform .5s var(--ease), opacity .3s ease;
}
.accordion-icon span:last-child { transform: rotate(90deg); }
.format-item.is-open .accordion-icon { transform: rotate(180deg); }
.format-item.is-open .accordion-icon span:last-child { transform: rotate(0deg); opacity: 0; }
.format-item.is-open .accordion-trigger { padding-bottom: 16px; }

/* Animation fluide sans hauteur JS */
.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows .75s var(--ease),
    opacity .38s ease;
}
.accordion-panel-inner {
  min-height: 0;
  overflow: hidden;
  padding-left: 74px;
  padding-right: 74px;
}
.format-item.is-open .accordion-panel {
  grid-template-rows: 1fr;
  opacity: 1;
}
.format-item.is-open .accordion-panel-inner { padding-bottom: 42px; }

.offer-lead-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: end;
  padding: 8px 0 24px;
}
.offer-lead {
  max-width: 980px;
  margin: 0;
  font-size: clamp(20px, 2.5vw, 38px);
  line-height: 1.12;
  letter-spacing: -.01em;
}
.offer-tag { color: var(--muted); font-size: 10px; letter-spacing: .04em; white-space: nowrap; }


/* MICRO-INTERACTIONS -------------------------------------------------- */
.format-summary {
  transform: translateY(0);
}

.format-item.is-open .format-title {
  letter-spacing: 0;
}

/* Les contenus apparaissent en léger décalage quand l'accordéon s'ouvre. */
.offer-lead-row,
.media-carousel,
.offer-grid,
.cta-line {
  opacity: 0;
  transform: translateY(12px);
}

.format-item.is-open .offer-lead-row,
.format-item.is-open .media-carousel,
.format-item.is-open .offer-grid,
.format-item.is-open .cta-line {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .6s ease, transform .72s var(--ease);
}

.format-item.is-open .media-carousel { transition-delay: .06s; }
.format-item.is-open .offer-grid { transition-delay: .11s; }
.format-item.is-open .cta-line { transition-delay: .16s; }

.offer-principle h4 {
  transition: letter-spacing .35s var(--ease);
}
.offer-principle:hover h4 {
  letter-spacing: .11em;
}
.offer-principle p {
  transition: transform .4s var(--ease);
}
.offer-principle:hover p {
  transform: translateX(4px);
}

.arrow-link,
.contact-links a,
.cta-line span {
  transition: opacity .25s ease, letter-spacing .35s var(--ease);
}
.arrow-link:hover,
.contact-links a:hover,
.cta-line:hover span {
  letter-spacing: .07em;
}

/* CARROUSEL */
.media-carousel {
  margin: 10px 0 30px;
  overflow: hidden;
  background: #000;
  color: #fff;
}
.carousel-viewport {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.carousel-track {
  display: flex;
  height: 100%;
  will-change: transform;
  transition: transform .65s var(--ease);
}
.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  background: #000;
}
.media-frame {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.media-frame img,
.media-frame video {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.media-caption {
  padding: 7px 10px 8px;
  color: rgba(255,255,255,.62);
  font-size: 8px;
  line-height: 1.35;
  letter-spacing: .01em;
}
.carousel-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 8px;
  border-top: 1px solid rgba(255,255,255,.18);
  background: #000;
  color: #fff;
}
.carousel-arrow {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  min-width: 48px;
  padding: 10px 4px;
  font-size: 17px;
  transition: opacity .2s ease, transform .25s var(--ease);
}
.carousel-arrow:hover { opacity: .5; }
.carousel-prev:hover { transform: translateX(-3px); }
.carousel-next:hover { transform: translateX(3px); }
.carousel-status { text-align: center; font-size: 9px; letter-spacing: .05em; color: rgba(255,255,255,.62); }

.offer-grid {
  display: grid;
  grid-template-columns: 1fr .75fr;
  gap: 28px 34px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.offer-grid > div:first-child {
  grid-column: 1 / -1;
  max-width: 980px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.offer-grid h4 {
  margin: 0 0 13px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 400;
}
.offer-grid p { margin: 0; font-size: 12px; line-height: 1.5; }
.offer-grid > div:first-child h4 {
  font-weight: 700;
  color: var(--fg);
}
.offer-grid > div:first-child p {
  font-size: clamp(13px, 1.2vw, 16px);
  line-height: 1.55;
  font-weight: 600;
  letter-spacing: -.01em;
}
.cta-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding: 15px 0 2px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  transition: opacity .2s ease;
}
.cta-line:hover { opacity: .55; }
.cta-line span { text-transform: uppercase; letter-spacing: .03em; }

.custom-big, .studio-statement, .contact-big {
  margin: 0;
  font-size: clamp(52px, 7.5vw, 120px);
  line-height: .92;
  letter-spacing: -.015em;
  max-width: 1320px;
}
.custom-bottom { margin-top: 80px; }
.studio-statement { max-width: 1220px; }
.studio-grid {
  margin-top: 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  padding-left: 25%;
}
.studio-grid p { margin: 0; font-size: clamp(16px, 1.8vw, 24px); }
.contact { min-height: 72vh; display: grid; grid-template-rows: 1fr auto; }
.contact-big { align-self: center; }
.contact-links {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  align-items: end;
  margin-top: 70px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.contact-links a { border-bottom: 1px solid currentColor; width: fit-content; padding-bottom: 2px; }
.footer { display: flex; justify-content: space-between; gap: 20px; padding-top: 16px; padding-bottom: 16px; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }

@media (max-width: 780px) {
  .topbar { align-items: flex-start; }
  .nav { gap: 12px; }
  .nav a:nth-child(2) { display: none; }
  .hero { min-height: 92vh; }
  .hero h1 { font-size: clamp(58px, 17vw, 96px); line-height: .94; }
  .hero-bottom, .custom-bottom, .offer-lead-row { grid-template-columns: 1fr; align-items: start; }
  .offer-tag { white-space: normal; }
  .accordion-trigger { grid-template-columns: 31px minmax(0, 1fr) 28px; gap: 8px; padding: 18px 0 20px; }
  .format-title { font-size: clamp(40px, 12.5vw, 68px); line-height: 1; }
  .format-summary { font-size: 12px; }
  .accordion-panel-inner { padding-left: 18px; padding-right: 18px; }
  .format-item.is-open .accordion-panel-inner { padding-bottom: 32px; }
  .offer-lead { font-size: clamp(23px, 6.5vw, 36px); line-height: 1.12; }
  .media-carousel { margin: 8px 0 26px; }
  .media-caption { font-size: 7px; padding: 6px 8px 7px; }
  .offer-grid { grid-template-columns: 1fr; gap: 26px; }
  .offer-grid > div:first-child { grid-column: 1; padding-bottom: 22px; }
  .studio-grid { grid-template-columns: 1fr; padding-left: 0; }
  .contact-links { grid-template-columns: 1fr; gap: 14px; }
  .cta-line { flex-direction: column; }
}

@media (max-width: 520px) {
  .topbar { gap: 12px; }
  .brand { white-space: nowrap; }
  .nav a:first-child { display: none; }
  .format-summary { font-size: 11px; }
}


@media (pointer: fine) {
  html, body, a, button { cursor: crosshair; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Apparition très légère des grands blocs de texte à l'entrée dans l'écran. */
.reveal-text {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .7s ease, transform .8s var(--ease);
}
.reveal-text.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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


/* MICRO-INTERACTIONS SUPPLÉMENTAIRES */
/* Petites animations typographiques supplémentaires. */
.format-num {
  transition: transform .45s var(--ease), color .3s ease;
}
.accordion-trigger:hover .format-num,
.format-item.is-open .format-num {
  transform: translateY(-3px);
  color: var(--fg);
}
.accordion-trigger:hover .format-summary {
  transform: translateX(5px);
}

.offer-tag {
  transition: letter-spacing .45s var(--ease), opacity .3s ease;
}
.format-item.is-open .offer-tag {
  letter-spacing: .075em;
}

.offer-grid h4 {
  position: relative;
  display: inline-block;
  overflow: hidden;
}
.offer-grid h4::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: translateX(-104%);
  transition: transform .55s var(--ease);
}
.offer-grid > div:hover h4::after {
  transform: translateX(0);
}

.format-item.is-open .offer-grid > div {
  animation: offerDetailIn .72s var(--ease) both;
}
.format-item.is-open .offer-grid > div:nth-child(2) { animation-delay: .08s; }
.format-item.is-open .offer-grid > div:nth-child(3) { animation-delay: .13s; }

@keyframes offerDetailIn {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Ligne de CTA qui se tend légèrement au survol. */
.cta-line {
  position: relative;
}
.cta-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width .65s var(--ease);
}
.cta-line:hover::after { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .format-item.is-open .offer-grid > div { animation: none; }
}
