/* =====================================================================
   LA PAGE DESIGN — Portfolio
   Direction : noir & blanc, éditorial, très typographique.
   Grotesque ultra-bold (Archivo) + accent manuscrit (Shantell Sans).
   ===================================================================== */

@font-face {
  font-family: "Breathing";
  src: url("fonts/Breathing.ttf") format("truetype");
  font-display: swap;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --grey: #767676;
  --line: #e6e6e6;
  --max: 1240px;
  --pad: clamp(1.25rem, 5vw, 4.5rem);
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --font-hand: "Shantell Sans", "Comic Sans MS", cursive;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  font-size: 1rem;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(4rem, 10vw, 9rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.eyebrow {
  font-family: var(--font-hand);
  font-size: clamp(1.25rem, 2.4vw, 1.9rem);
  font-weight: 600;
  letter-spacing: .02em;
  display: inline-block;
  margin-bottom: 1rem;
  transform: rotate(-2deg);
}

.section-index {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: .9;
  letter-spacing: -.03em;
  display: block;
  margin-bottom: .5rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -.02em;
  line-height: 1.02;
  margin-bottom: 1.5rem;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  max-width: 60ch;
  color: #2a2a2a;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: 1rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.brand span { font-family: var(--font-hand); text-transform: none; font-weight: 600; }
.brand { flex: none; }
.brand img { display: block; width: clamp(120px, 20vw, 180px); height: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 2vw, 2rem);
  flex-wrap: wrap;
}
.nav__links a {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}
.nav__links a:hover { border-color: var(--ink); }
.nav__links a.active { border-color: var(--ink); }
.nav__cta {
  border: 2px solid var(--ink);
  padding: .5rem .9rem !important;
  border-radius: 999px;
}
.nav__cta:hover { background: var(--ink); color: var(--paper); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3.5rem, 9vw, 8rem) clamp(2.5rem, 6vw, 5rem); }
.hero__kicker {
  font-family: var(--font-hand);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 600;
  display: inline-block;
  transform: rotate(-3deg);
  margin-bottom: .5rem;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.2rem, 15vw, 11rem);
  line-height: .82;
  letter-spacing: -.04em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}
.hero__title .dot { display: inline-block; }
.hero__desc { font-size: clamp(1.1rem, 1.8vw, 1.5rem); max-width: 54ch; color: #2a2a2a; }
.hero__text { max-width: 64ch; margin-top: 1.2rem; font-size: 1.05rem; color: #2a2a2a; }
.hero__text p + p { margin-top: 1rem; }
.hero__prestations { margin-top: 1.1rem; color: #b9b9b9; font-size: clamp(.95rem, 1.5vw, 1.2rem); letter-spacing: .01em; }
.hero__meta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.hero__meta div { min-width: 120px; }
.hero__meta dt { font-family: var(--font-hand); font-size: 1.1rem; color: var(--grey); }
.hero__meta dd { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }

/* ---------- Work gallery (portrait uniforme) ---------- */
.work {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(.9rem, 2.2vw, 1.6rem);
}
.work__item { position: relative; }
.work__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #f2f2f2;
  border: 1px solid var(--line);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.work__frame img,
.work__frame video { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }

/* ---------- Lightbox (zoom photo) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, .93);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 4rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease;
  z-index: 1000;
  cursor: zoom-out;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img,
.lightbox video {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
  cursor: default;
}
.lightbox__close {
  position: absolute;
  top: 18px;
  right: 24px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  opacity: .8;
  transition: opacity .2s;
}
.lightbox__close:hover { opacity: 1; }
.work__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent 50%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
  z-index: 1;
}
.work__frame:hover::after { opacity: 1; }
.work__cap {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  text-align: right;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
  z-index: 2;
  pointer-events: none;
}
.work__frame:hover .work__cap { opacity: 1; transform: none; }
.work__cap strong { display: block; font-weight: 800; font-size: clamp(.85rem, 1.4vw, 1rem); letter-spacing: -.01em; line-height: 1.15; }
.work__cap span { display: block; margin-top: .3rem; font-family: var(--font-body); font-weight: 400; font-size: clamp(.78rem, 1.2vw, .92rem); letter-spacing: .02em; line-height: 1.35; }
.work__placeholder {
  text-align: center;
  color: var(--grey);
  font-family: var(--font-hand);
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  padding: 1rem;
}

@media (min-width: 700px)  { .work { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .work { grid-template-columns: repeat(5, 1fr); } }

/* Variante « duo » : 2 grands cadres par ligne (page Illustration) */
.work--duo { grid-template-columns: 1fr; gap: clamp(1.2rem, 3vw, 2.4rem); }
.work--duo .work__frame { aspect-ratio: 4 / 5; }
@media (min-width: 700px) {
  .work--duo { grid-template-columns: repeat(2, 1fr); }
}

/* Variante « trio » : 3 grands cadres portrait par ligne (Branding, IA) */
.work--trio { grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2.5vw, 1.8rem); }
.work--trio .work__frame { aspect-ratio: 3 / 4; }
@media (min-width: 760px) {
  .work--trio { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Références (défilement vertical) ---------- */
.refs2 {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 3.5rem);
}
.refs2__brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.4rem, 3.4vw, 3rem);
  line-height: .95;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.refs2__brand .hand { font-family: var(--font-hand); font-weight: 600; text-transform: none; letter-spacing: 0; }
.refs2__x { font-family: var(--font-hand); font-weight: 600; font-size: clamp(2rem, 4.5vw, 3.6rem); color: var(--ink); }
.marquee {
  position: relative;
  height: clamp(16rem, 34vw, 22rem);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}
.marquee__col { position: absolute; inset: 0; }
.marquee__track { display: flex; flex-direction: column; will-change: transform; }
.marquee:hover { cursor: ns-resize; }
.marquee__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 3.6vw, 2.8rem);
  line-height: 1.75;
  letter-spacing: -.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__col--base .marquee__name { color: #d2d2d2; }
.marquee__col--hi {
  -webkit-mask-image: linear-gradient(to bottom, transparent 41%, #000 41%, #000 59%, transparent 59%);
  mask-image: linear-gradient(to bottom, transparent 41%, #000 41%, #000 59%, transparent 59%);
}
.marquee__col--hi .marquee__name { color: var(--ink); }
@keyframes refsScroll { from { transform: translateY(-50%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }
@media (max-width: 620px) {
  .refs2 { grid-template-columns: 1fr; text-align: center; gap: .8rem; }
  .refs2__x { display: none; }
}

/* ---------- Cases / prestations ---------- */
.cases { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.case-card {
  border: 2px solid var(--ink);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  transition: background .2s, color .2s;
}
.case-card:hover { background: var(--ink); color: var(--paper); }
.case-card__n { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; letter-spacing: -.02em; }
.case-card__t { font-family: var(--font-hand); font-size: clamp(1.2rem, 2vw, 1.65rem); }
@media (min-width: 600px) { .cases { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Services (prestations détaillées) ---------- */
.services { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.svc-card {
  border: 2px solid var(--ink);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: .9rem;
  transition: background .2s, color .2s;
}
.svc-card:hover { background: var(--ink); color: var(--paper); }
.svc-card:hover .svc-card__price small,
.svc-card:hover .svc-card__desc { color: inherit; }
.svc-card__name { font-family: var(--font-hand); font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.svc-card__price { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1; letter-spacing: -.02em; }
.svc-card__price small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--grey); margin-bottom: .3rem; }
.svc-card__desc { color: #2a2a2a; font-size: .98rem; }
@media (min-width: 600px) { .services { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Timeline / process ---------- */
.timeline { display: grid; grid-template-columns: 1fr; gap: 0 clamp(1rem, 2.5vw, 2rem); }
.timeline__step { padding: 1.3rem 0; border-top: 2px solid var(--ink); }
.timeline__n {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -.03em;
}
.timeline__t { font-family: var(--font-hand); font-size: clamp(1.1rem, 1.8vw, 1.4rem); margin-top: .3rem; }
@media (min-width: 760px) {
  .timeline { grid-template-columns: repeat(5, 1fr); }
}

/* ---------- FAQ ---------- */
.faq { max-width: 840px; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.3rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  font-weight: 800;
  font-size: clamp(1.02rem, 1.8vw, 1.35rem);
  letter-spacing: -.01em;
  line-height: 1.25;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1;
  flex: none;
  transition: transform .25s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin: -.2rem 0 1.4rem; max-width: 70ch; color: #2a2a2a; font-size: 1rem; }
.faq__answer { padding-bottom: 1.6rem; max-width: 72ch; }
.faq__answer > p { margin: -.2rem 0 1.2rem; color: #2a2a2a; }
.faq__block { margin-bottom: 1.2rem; }
.faq__block h4 { font-family: var(--font-hand); font-weight: 600; font-size: 1.15rem; margin-bottom: .45rem; text-transform: none; letter-spacing: 0; }
.faq__block ul { list-style: none; display: flex; flex-direction: column; gap: .32rem; }
.faq__block li { position: relative; padding-left: 1.1rem; color: #2a2a2a; font-size: .97rem; line-height: 1.4; }
.faq__block li::before { content: "—"; position: absolute; left: 0; color: var(--grey); }

/* ---------- About (présentation) ---------- */
.about { display: grid; grid-template-columns: 1fr; row-gap: 1rem; column-gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about__side { position: relative; }
.about__intro { grid-column: 1 / -1; font-family: var(--font-hand); display: flex; flex-direction: column; gap: .05rem; align-items: flex-start; }
.about__intro span { line-height: 1.05; }
.about__intro-l1 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 700; }
.about__intro-l2 { font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: 600; transform: rotate(-5deg); transform-origin: left center; margin: .2rem 0 .2rem .5rem; }
.about__intro-l3 { font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: 600; }
.about__portrait {
  width: 100%;
  max-width: 480px;
}
.about__portrait img {
  width: 100%;
  height: auto;
  display: block;
}
.about__body p + p { margin-top: 1.1rem; }
.signature {
  font-family: "Breathing", "Sacramento", cursive;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1;
  color: var(--ink);
  text-align: right;
  transform: rotate(-5deg);
  transform-origin: right center;
  margin-top: 1.8rem;
}
@media (min-width: 860px) {
  .about { grid-template-columns: 5fr 7fr; row-gap: .6rem; }
}

/* ---------- Pricing (tarifs) ---------- */
.pricing { display: grid; gap: 1.25rem; }
.price-card {
  border: 2px solid var(--ink);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--paper);
  transition: background .2s, color .2s;
}
.price-card:hover { background: var(--ink); color: var(--paper); }
.price-card:hover .price-card__price small,
.price-card:hover .price-card__list li { color: inherit; }
.price-card__name { font-family: var(--font-hand); font-size: 1.5rem; font-weight: 600; }
.price-card__price { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; letter-spacing: -.03em; }
.price-card__price small { font-family: var(--font-body); font-weight: 600; font-size: .95rem; color: var(--grey); display: block; margin-top: .3rem; letter-spacing: 0; }
.price-card__list { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.price-card__list li { padding-left: 1.2rem; position: relative; font-size: .98rem; color: #2a2a2a; }
.price-card__list li::before { content: "—"; position: absolute; left: 0; }
@media (min-width: 780px) { .pricing { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Booking (Calendly / RDV) ---------- */
.booking { border: 1px solid var(--line); padding: clamp(1.25rem, 3vw, 2rem); background: #fafafa; }
.calendly-inline-widget { min-width: 320px; height: 660px; }
.booking__placeholder {
  min-height: 320px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: .5rem;
  border: 2px dashed #cfcfcf;
  padding: 2rem;
  color: var(--grey);
}
.booking__placeholder strong { font-family: var(--font-hand); font-size: 1.6rem; color: var(--ink); font-weight: 600; }
.booking__placeholder code { background: var(--ink); color: var(--paper); padding: .15rem .45rem; border-radius: 4px; font-size: .85rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .9rem;
  padding: .95rem 1.8rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  transition: background .2s, color .2s, transform .1s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--paper); color: var(--ink); }
.btn--lg { font-size: 1rem; padding: 1.1rem 2.2rem; }

/* ---------- Footer / contact ---------- */
.footer { background: var(--ink); color: var(--paper); padding-block: clamp(3.5rem, 8vw, 6rem); }
.footer .wrap { display: grid; gap: 2.5rem; }
.footer__cta { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.4rem, 8vw, 6rem); line-height: .9; letter-spacing: -.03em; text-transform: uppercase; }
.footer__cta a { border-bottom: 4px solid var(--paper); }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: end; border-top: 1px solid rgba(255,255,255,.2); padding-top: 1.5rem; }
.footer__row a:hover { text-decoration: underline; }
.footer small { color: #b9b9b9; }
.footer .btn { border-color: var(--paper); color: var(--paper); }
.footer .btn:hover { background: var(--paper); color: var(--ink); }
.footer__hand { font-family: var(--font-hand); font-size: 1.3rem; }
.socials { display: flex; gap: .8rem; }
.socials a {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--paper);
  border-radius: 50%;
  color: var(--paper);
  transition: background .2s, color .2s;
}
.socials a:hover { background: var(--paper); color: var(--ink); }
.socials svg { width: 20px; height: 20px; fill: currentColor; display: block; }

/* ---------- Section header block ---------- */
.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); max-width: 70ch; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
