/* ==========================================================
   Ranim Mokhtar · portfolio
   Palette : burgundy, rose poudré, ivoire, doré rosé
   ========================================================== */

:root {
  --burgundy: #7A2A3D;
  --burgundy-dark: #5E1F2F;
  --rose: #EED3D5;
  --rose-soft: #F8EBEC;
  --rose-line: #F1DFE0;
  --ivory: #FDF7F6;
  --gold: #B08A6E;
  --ink: #3A2328;
  --ink-soft: #6E565B;

  --script: 'Pinyon Script', cursive;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, sans-serif;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 72px;
  --gutter: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

.script { font-family: var(--script); font-weight: 400; color: var(--burgundy); }

.eyebrow {
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
  margin-bottom: 6px;
}

.title { font-size: clamp(44px, 6vw, 72px); line-height: 1.1; margin-bottom: 28px; }
.subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 26px;
  color: var(--burgundy);
  margin: 64px 0 22px;
}
.body { font-size: 16px; color: var(--ink-soft); max-width: 46ch; margin-bottom: 16px; }

.rule { display: block; width: 56px; height: 1px; background: var(--gold); margin: 22px 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: 40px;
  border: 1px solid var(--burgundy);
  color: var(--burgundy);
  background: transparent;
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { background: var(--burgundy); color: var(--ivory); transform: translateY(-2px); }
.btn--solid { background: var(--burgundy); color: var(--ivory); }
.btn--solid:hover { background: var(--burgundy-dark); }

/* ---------- En-tête ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter);
  transition: background .4s, box-shadow .4s, height .4s;
}
.header.is-scrolled {
  background: rgba(253, 247, 246, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--rose-line);
}
.logo { font-family: var(--script); font-size: 34px; color: var(--burgundy); line-height: 1; }

.nav { display: flex; gap: clamp(16px, 2.4vw, 34px); }
.nav a {
  position: relative;
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 400;
  padding: 6px 0;
  transition: color .3s;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--burgundy);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--burgundy); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.header__right { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid var(--rose); border-radius: 30px; padding: 3px; }
.lang button {
  border: 0;
  background: transparent;
  font: 400 10px/1 var(--sans);
  letter-spacing: .2em;
  color: var(--burgundy);
  padding: 7px 11px;
  border-radius: 30px;
  cursor: pointer;
  transition: background .3s, color .3s;
}
.lang button.is-on { background: var(--burgundy); color: var(--ivory); }

.burger { display: none; width: 36px; height: 36px; border: 0; background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 7px; right: 7px; height: 1px; background: var(--burgundy); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 14px; }
.burger span:last-child { top: 22px; }
.burger[aria-expanded="true"] span:first-child { top: 18px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 18px; transform: rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) var(--gutter); position: relative; }
.tint { background: var(--rose-soft); }
.stats, .univers, .collabs, .services { text-align: center; }
.stats .body, .univers .body { margin-inline: auto; }

/* ---------- Accueil ---------- */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 24px;
  padding: calc(var(--header-h) + 20px) var(--gutter) 0;
  position: relative;
}
.hero__name { font-size: clamp(76px, 10.5vw, 150px); line-height: .95; margin: 4px 0 8px; }
.hero__name .line--offset { padding-left: clamp(40px, 6vw, 110px); }
.hero__role { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(20px, 2vw, 26px); }
.hero__intro { max-width: 40ch; color: var(--ink-soft); margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__visual {
  position: relative;
  height: min(86svh, 780px);
  align-self: end;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.blob { position: absolute; background: var(--rose); }
.blob--circle { width: min(78%, 520px); aspect-ratio: 1; border-radius: 50%; bottom: 6%; left: 50%; translate: -50% 0; }
.blob--arch { width: min(80%, 380px); height: 82%; bottom: 0; left: 50%; translate: -50% 0; border-radius: 999px 999px 4px 4px; }

/* Effet sticker : contour blanc + ombre portée sur un PNG détouré */
.sticker {
  position: relative;
  width: auto;
  filter:
    drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff)
    drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff)
    drop-shadow(10px 16px 18px rgba(58, 35, 40, .22));
}
.sticker--hero { height: 96%; }

/* Accueil : Ranim détourée dans une arche, décor tropical au trait */
.hero__visual--detoure { align-items: flex-end; }
.hero__arche { width: min(74%, 400px); height: 74%; bottom: 0; background: linear-gradient(180deg, var(--rose) 0%, #F6E3E1 100%); }
.hero__arche-or {
  position: absolute; bottom: 4%; left: 50%; translate: calc(-50% + 22px) 0;
  width: min(74%, 400px); height: 74%;
  border: 1px solid var(--gold); border-bottom: 0; border-radius: 999px 999px 0 0; pointer-events: none;
}
.hero__halo {
  position: absolute; top: 4%; left: 50%; translate: -50% 0;
  width: min(86%, 470px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 201, 160, .55) 0%, rgba(233, 201, 160, 0) 68%);
  pointer-events: none;
}
.hero__eclat { position: absolute; color: var(--gold); pointer-events: none; animation: scintille 3.2s ease-in-out infinite; }
.hero__eclat--1 { width: 30px; top: 12%; left: 10%; }
.hero__eclat--2 { width: 16px; top: 24%; left: 20%; animation-delay: .8s; }
.hero__eclat--3 { width: 22px; top: 40%; right: 6%; animation-delay: 1.6s; }
.hero__eclat--4 { width: 14px; top: 56%; left: 6%; animation-delay: 2.2s; }
.hero__eclat--5 { width: 18px; top: 30%; right: 16%; color: var(--rose); animation-delay: 1.1s; }
@keyframes scintille { 0%, 100% { opacity: .9; transform: scale(1) rotate(0); } 50% { opacity: .35; transform: scale(.7) rotate(20deg); } }
.sticker--brodee {
  position: relative; z-index: 1; height: 94%;
  /* portrait en buste : le bas (et le bord coupé de la photo) se fond dans l arche */
  -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent 99%), linear-gradient(90deg, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(180deg, #000 74%, transparent 99%), linear-gradient(90deg, #000 86%, transparent 100%);
          mask-composite: intersect;
}
.hero__visual--brodee .hero__arche, .hero__visual--brodee .hero__arche-or { width: min(90%, 500px); }
.sticker--piscine { position: relative; z-index: 1; height: 97%; }
.hero__visual--detoure .bow--hero { top: 10%; right: 14%; z-index: 2; }
/* Selfie miroir : photo presque carrée, on la cale sur la largeur de la colonne */
.sticker--selfie { height: auto; width: min(100%, 680px); max-height: 92%; object-fit: contain; object-position: bottom; }
.sticker--about { height: 100%; }
.sticker--contact { height: auto; width: 100%; max-height: 100%; object-fit: contain; object-position: bottom; }

.bow { color: var(--burgundy); }
.bow--hero { position: absolute; width: 74px; height: 60px; top: 14%; right: 12%; rotate: 14deg; }
.bow--footer { width: 46px; height: 38px; color: var(--rose); margin: 0 auto 6px; display: block; }

.scroll-hint { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; width: 22px; height: 36px; border: 1px solid var(--gold); border-radius: 20px; }
.scroll-hint span { position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; background: var(--gold); border-radius: 2px; animation: wheel 2s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- À propos ---------- */
.about { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about__visual { position: relative; height: clamp(420px, 48vw, 620px); display: flex; justify-content: center; align-items: flex-end; }
.values { list-style: none; padding: 0; margin: 30px 0 0; display: flex; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap; }
.values li { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--burgundy); display: flex; align-items: baseline; gap: 10px; }
.values__n, .format__n, .card__n { font-family: var(--sans); font-style: normal; font-size: 10px; letter-spacing: .2em; color: var(--gold); }

/* ---------- Audience ---------- */
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 980px; margin: 0 auto 56px; }
.stat__n { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 5vw, 64px); color: var(--burgundy); line-height: 1.1; }
.stat__l { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.bars { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; max-width: 560px; margin: 0 auto; text-align: left; }
.bar p { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.bar__track { height: 3px; background: var(--rose); border-radius: 3px; overflow: hidden; }
.bar__track i { display: block; height: 100%; width: 0; background: var(--burgundy); border-radius: 3px; transition: width 1.6s var(--ease) .5s; }

/* ---------- Univers ---------- */
.polaroids { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(18px, 3vw, 36px); max-width: 1200px; margin: 0 auto; }
.polaroid {
  margin: 0;
  width: clamp(150px, 14vw, 205px);
  background: #fff;
  padding: 10px 10px 4px;
  box-shadow: 8px 14px 28px rgba(58, 35, 40, .14);
  transform: rotate(var(--r)) translateY(30px);
  opacity: 0;
  transition: transform .7s var(--ease), opacity .7s var(--ease), box-shadow .4s;
}
.polaroid img { aspect-ratio: 3 / 4; width: 100%; height: auto; object-fit: cover; }
.polaroid figcaption { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.6; text-align: center; white-space: nowrap; }
.polaroid { cursor: zoom-in; }
.swipe-hint { display: none; margin: -6px 0 4px; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); text-align: center; }
.swipe-hint::after { content: ' →'; letter-spacing: 0; }
.is-visible .polaroid { opacity: 1; transform: rotate(var(--r)); }
.is-visible .polaroid:hover { transform: rotate(0) scale(1.05); box-shadow: 12px 20px 36px rgba(58, 35, 40, .2); z-index: 2; }
.polaroid:nth-child(2) { transition-delay: .05s; }
.polaroid:nth-child(3) { transition-delay: .1s; }
.polaroid:nth-child(4) { transition-delay: .15s; }
.polaroid:nth-child(5) { transition-delay: .2s; }

/* Vidéos TikTok dans des cadres de téléphone */
.phones { display: flex; justify-content: center; align-items: flex-start; gap: clamp(24px, 4vw, 56px); padding: 30px 0 10px; }
.phone {
  position: relative;
  flex: 0 0 auto;
  width: clamp(230px, 20vw, 290px);
  aspect-ratio: 9 / 19;
  padding: 10px;
  border-radius: 46px;
  background: #2B1A1E;
  box-shadow:
    0 0 0 1.5px #C9A98F,
    0 0 0 6px #FDF7F6,
    0 0 0 7px var(--rose),
    18px 30px 50px rgba(58, 35, 40, .22);
}
.phone::before { /* encoche */
  content: '';
  position: absolute;
  top: 20px; left: 50%;
  width: 34%; height: 22px;
  translate: -50% 0;
  background: #2B1A1E;
  border-radius: 20px;
  z-index: 2;
  pointer-events: none;
}
.phone::after { /* boutons latéraux */
  content: '';
  position: absolute;
  right: -4px; top: 22%;
  width: 4px; height: 56px;
  background: #C9A98F;
  border-radius: 0 3px 3px 0;
}
.phone__screen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #000; position: relative; }
.phone__screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.phone__screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.phone__screen .phone__fallback {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--rose); font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
}
.phone__screen img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.video:hover .phone__screen img { transform: scale(1.04); }

.play {
  position: absolute; left: 50%; top: 50%;
  width: 68px; height: 68px;
  translate: -50% -50%;
  border-radius: 50%;
  border: 1px solid rgba(253, 247, 246, .9);
  background: rgba(122, 42, 61, .78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
  transition: transform .4s var(--ease), background .4s;
}
.play span { position: absolute; left: 52%; top: 50%; translate: -40% -50%; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--ivory); }
.play::after { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(253, 247, 246, .6); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { opacity: 1; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.35); } }
.play:hover { transform: scale(1.08); background: var(--burgundy); }

.video { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 22px; opacity: 0; transform: translateY(36px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.video figcaption { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.video__tag { font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--burgundy); }
.video__likes { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.is-visible .video { opacity: 1; transform: none; }
.is-visible .video--up { transform: translateY(-28px); }
.video:nth-child(2) { transition-delay: .08s; }
.video:nth-child(3) { transition-delay: .16s; }
.phone { transition: transform .5s var(--ease); }
.video:hover .phone { transform: translateY(-8px); }

.formats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 980px; margin: 0 auto 40px; }
.format { border-top: 1px solid var(--gold); padding-top: 14px; text-align: left; }
.format p { font-family: var(--serif); font-size: 21px; color: var(--burgundy); }

/* ---------- Cartes ---------- */
.cards { display: grid; gap: 20px; max-width: 1100px; margin: 0 auto; text-align: left; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); max-width: 860px; }

/* ---------- Collaboration à la une ---------- */
.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
  max-width: 1040px;
  margin: 20px auto 56px;
  text-align: left;
}
.feature__media { padding: 10px; }
.feature__title { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 4vw, 52px); color: var(--burgundy); line-height: 1.1; margin-top: 6px; }
.feature__sub { font-family: var(--script); font-size: 30px; color: var(--gold); margin: 2px 0 18px; }
.facts { list-style: none; padding: 0; margin: 8px 0 30px; border-top: 1px solid var(--rose); }
.facts li { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--rose); font-size: 14px; }
.facts li span:first-child { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); padding-top: 3px; }
.facts li span:last-child { text-align: right; color: var(--ink); }

/* Selfie avec Lobna, posé sur le téléphone */
.feature__media--duo { position: relative; padding: 10px 150px 40px 10px; }
.selfie {
  position: absolute;
  right: 0; bottom: 0;
  z-index: 3;
  width: 210px;
  padding: 10px 10px 0;
  border: 0;
  background: #fff;
  cursor: zoom-in;
  rotate: 5deg;
  box-shadow: 14px 22px 40px rgba(58, 35, 40, .22);
  transition: rotate .5s var(--ease), transform .5s var(--ease);
}
.selfie img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.selfie__caption { display: block; font-size: 30px; line-height: 1.5; text-align: center; }
.selfie:hover { rotate: 0deg; transform: scale(1.04); }
.selfie::before { /* ruban adhésif */
  content: '';
  position: absolute;
  top: -12px; left: 50%;
  width: 84px; height: 24px;
  translate: -50% 0;
  rotate: -4deg;
  background: rgba(238, 211, 213, .85);
  box-shadow: 0 1px 3px rgba(58, 35, 40, .08);
}

/* Contenus mode : en-tête centré au-dessus des téléphones */
.fashion-head { max-width: 640px; margin: 0 auto 10px; text-align: center; }
.fashion-head .body { margin-inline: auto; }
.phones--fashion { padding-top: 40px; }

.cards--1 { grid-template-columns: 1fr; max-width: 440px; }

.feature--reverse { grid-template-columns: 1fr auto; }
.feature--reverse .feature__media { order: 2; }
.arch {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  width: clamp(260px, 26vw, 360px);
  aspect-ratio: 2 / 3;
  border-radius: 999px 999px 6px 6px;
  overflow: hidden;
  box-shadow: 0 0 0 8px var(--ivory), 0 0 0 9px #C9A98F, 18px 30px 50px rgba(58, 35, 40, .2);
}
.arch img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.arch:hover img { transform: scale(1.05); }

.divider { display: flex; align-items: center; gap: 18px; max-width: 520px; margin: 20px auto 60px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--rose); }
.divider .bow { width: 40px; height: 32px; }

.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 17vw, 240px);
  grid-auto-flow: dense;
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto 56px;
}
.mosaic.mosaic--3 { grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(240px, 32vw, 440px); max-width: 900px; }
.tile--big { grid-column: span 2; grid-row: span 2; }
.tile--tall { grid-row: span 2; }
.tile {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
  break-inside: avoid;
  cursor: zoom-in;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 26px rgba(58, 35, 40, .10);
}
.tile img, .tile video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; }
.tile:hover img, .tile:hover video { transform: scale(1.05); }
.tile--video::after {
  content: '';
  position: absolute; top: 12px; right: 12px;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(122, 42, 61, .8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M3 2l5 3-5 3z' fill='%23FDF7F6'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Agrandissement ---------- */
.lightbox {
  border: 0; padding: 0; margin: 0;
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  background: transparent; overflow: hidden;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; animation: zoomIn .45s var(--ease); }
.lightbox::backdrop { background: rgba(43, 26, 30, .9); backdrop-filter: blur(6px); }
.lightbox__media { display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.lightbox__media img, .lightbox__media video {
  display: block; width: auto; height: auto;
  max-width: calc(100vw - 180px); max-height: calc(100dvh - 120px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
  user-select: none; -webkit-user-drag: none;
}
.lightbox__media.is-next > * { animation: slideFromRight .4s var(--ease); }
.lightbox__media.is-prev > * { animation: slideFromLeft .4s var(--ease); }
@keyframes slideFromRight { from { opacity: 0; transform: translateX(40px); } }
@keyframes slideFromLeft { from { opacity: 0; transform: translateX(-40px); } }
.lightbox__close, .lightbox__nav {
  position: absolute; z-index: 2;
  border-radius: 50%;
  border: 1px solid rgba(253, 247, 246, .55); background: rgba(43, 26, 30, .35);
  color: var(--ivory); cursor: pointer;
  transition: background .3s, border-color .3s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--burgundy); border-color: var(--burgundy); }
.lightbox__close { top: 20px; right: 20px; width: 44px; height: 44px; font-size: 24px; line-height: 1; }
.lightbox__nav { top: 50%; translate: 0 -50%; width: 54px; height: 54px; }
.lightbox__nav--prev { left: 28px; }
.lightbox__nav--next { right: 28px; }
.lightbox__nav span { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; }
.lightbox__nav--next span { translate: -70% -50%; rotate: 45deg; }
.lightbox__nav--prev span { translate: -30% -50%; rotate: -135deg; }
.lightbox__nav[hidden] { display: none; }
.lightbox__count { position: absolute; bottom: 22px; left: 50%; translate: -50% 0; margin: 0; color: var(--rose); font-size: 11px; letter-spacing: .3em; }
@keyframes zoomIn { from { opacity: 0; transform: scale(.94); } }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #FFFDFC;
  border: 1px solid var(--rose);
  padding: 32px 28px;
  transition: transform .45s var(--ease), border-color .45s, box-shadow .45s;
}
.card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 18px 40px rgba(58, 35, 40, .08); }
.card--center { text-align: center; }
.card__tag { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.card__title { font-family: var(--serif); font-weight: 400; font-size: 25px; color: var(--burgundy); line-height: 1.2; margin: 8px 0 10px; }
.card__text { font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.note { font-size: 34px; margin-top: 40px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.1fr 1fr .7fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.links { list-style: none; padding: 0; margin: 8px 0 0; }
.links li { margin-bottom: 8px; }
.links a { color: var(--burgundy); border-bottom: 1px solid var(--rose); transition: border-color .3s; }
.links a:hover { border-color: var(--burgundy); }
.form { display: flex; flex-direction: column; gap: 18px; }
.form label span { display: block; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.form input, .form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #D9B8BB;
  background: transparent;
  font: 300 16px/1.6 var(--sans);
  color: var(--ink);
  padding: 6px 0;
  resize: vertical;
  transition: border-color .3s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--burgundy); }
.form__error { color: #A32D2D; font-size: 13px; min-height: 1em; }
.form__error a { color: inherit; text-decoration: underline; }
.form[hidden], .form-done[hidden] { display: none; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.form-done { align-self: center; text-align: center; animation: zoomIn .6s var(--ease); }
.form-done .bow { width: 54px; height: 44px; margin: 0 auto 4px; display: block; }
.form-done__title { font-size: 48px; line-height: 1.1; margin-bottom: 8px; }
.form-done .body { margin-inline: auto; }
.form .btn { align-self: flex-start; }

/* Type de collaboration (pastilles à cocher) et dates souhaitées */
.form__group { border: 0; margin: 0; padding: 0; min-width: 0; }
.form__group legend { padding: 0; margin-bottom: 10px; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.form .chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.form .chip span {
  display: inline-block;
  font: 400 13px/1 var(--sans);
  letter-spacing: .04em;
  text-transform: none;
  color: var(--burgundy);
  border: 1px solid #D9B8BB;
  border-radius: 999px;
  padding: 9px 15px;
  transition: background .25s, color .25s, border-color .25s;
}
.chip:hover span { border-color: var(--burgundy); }
.chip input:checked + span { background: var(--burgundy); border-color: var(--burgundy); color: #FDF7F6; }
.chip input:focus-visible + span { outline: 2px solid var(--burgundy); outline-offset: 2px; }
.dates { display: flex; flex-direction: column; gap: 8px; }
.date-row { display: flex; align-items: center; gap: 10px; }
.form .date-row input { min-height: 38px; color: var(--ink); }
.date-row__remove {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid #D9B8BB; background: transparent; color: var(--burgundy);
  font-size: 18px; line-height: 1; cursor: pointer; transition: border-color .25s;
}
.date-row__remove:hover { border-color: var(--burgundy); }
.form__add {
  margin-top: 10px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 400 13px/1.4 var(--sans); letter-spacing: .04em; color: var(--burgundy);
  border-bottom: 1px solid var(--rose);
}
.form__add:hover { border-color: var(--burgundy); }
.form__add[hidden] { display: none; }
.contact__visual { height: clamp(300px, 30vw, 420px); display: flex; justify-content: center; align-items: flex-end; }

/* ---------- Pied de page ---------- */
.footer { background: var(--burgundy); color: var(--ivory); text-align: center; padding: 48px 20px 40px; }
.footer__name { color: var(--ivory); font-size: 46px; line-height: 1.2; }
.footer__meta { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--rose); }

/* ==========================================================
   Animations au défilement
   ========================================================== */
.line { display: block; overflow: hidden; padding: 0 .08em .12em; margin: 0 -.08em; }
.line > span { display: inline-block; transform: translateY(105%); transition: transform .8s var(--ease); }
.line + .line > span { transition-delay: .1s; }
.is-visible .line > span { transform: none; }

.fade { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease) .12s, transform .6s var(--ease) .12s; }
.is-visible .fade { opacity: 1; transform: none; }

.reveal .sticker { opacity: 0; transform: translateY(40px) rotate(-5deg) scale(.94); transition: opacity .9s var(--ease) .1s, transform .9s var(--ease) .1s; }
.is-visible .sticker { opacity: 1; transform: none; }
.is-floating .sticker { animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -8px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .line > span, .fade, .reveal .sticker, .polaroid, .video { transition: none !important; transform: none !important; opacity: 1 !important; }
  .polaroid { transform: rotate(var(--r)) !important; }
  .is-floating .sticker, .scroll-hint span, .play::after, .hero__eclat { animation: none; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1080px) {
  .cards--4, .formats { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr 1fr; }
  .contact__visual { display: none; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .burger { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding: 36px 20px 44px;
    background: var(--ivory);
    box-shadow: 0 20px 40px rgba(58, 35, 40, .08);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s var(--ease), transform .35s var(--ease);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .header:has(.nav.is-open) { background: var(--ivory); }
  .nav a { font-size: 13px; }

  .hero { grid-template-columns: 1fr; text-align: center; padding-top: calc(var(--header-h) + 28px); gap: 0; }
  .hero__name .line--offset { padding-left: 0; }
  .rule { margin-inline: auto; }
  .hero__intro { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__visual { height: auto; margin-top: 26px; padding-top: 56px; }
  /* Tant qu il n y a pas de photo d accueil, on masque la zone sur téléphone */
  .hero__visual:not(:has(img)) { display: none; }
  .bow--hero { top: 0; }
  .hero__visual--detoure { height: min(78svh, 600px); padding-top: 0; }
  .hero__visual--brodee { height: min(70svh, 520px); }
  .hero__eclat--1 { width: 22px; top: 8%; left: 6%; }
  .hero__eclat--3 { right: 4%; }
  .hero__visual--detoure .bow--hero { top: 8%; right: 8%; }
  .scroll-hint { display: none; }

  .about { grid-template-columns: 1fr; }
  .about__visual { height: 420px; }
  .about__text { text-align: center; }
  .about .body { margin-inline: auto; }
  .values { justify-content: center; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .phones {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--gutter));
    padding: 30px var(--gutter) 40px;
    scrollbar-width: none;
  }
  .phones::-webkit-scrollbar { display: none; }
  .phone { width: 240px; }
  .video { scroll-snap-align: center; }
  .is-visible .video--up { transform: none; }
  .cards--3, .cards--2 { grid-template-columns: 1fr; }
  .feature, .feature--reverse { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .feature--reverse .feature__media { order: 0; }
  .feature__media--duo { padding: 10px 0 0; display: flex; flex-direction: column; align-items: center; gap: 34px; }
  .selfie { position: relative; right: auto; bottom: auto; order: 2; width: 220px; }
  /* Sur téléphone : les séries de photos et vidéos deviennent des carrousels à faire glisser */
  .mosaic, .mosaic.mosaic--3, .polaroids {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    max-width: none;
    margin: 0 calc(-1 * var(--gutter)) 34px;
    padding: 10px var(--gutter) 24px;
  }
  .mosaic::-webkit-scrollbar, .polaroids::-webkit-scrollbar { display: none; }
  .mosaic .tile { flex: 0 0 70vw; height: 92vw; scroll-snap-align: center; }
  .polaroids .polaroid { flex: 0 0 58vw; width: auto; scroll-snap-align: center; }
  .swipe-hint { display: block; }

  .lightbox__media img, .lightbox__media video { max-width: calc(100vw - 24px); max-height: calc(100dvh - 150px); }
  .lightbox__nav { top: auto; bottom: 18px; translate: none; width: 48px; height: 48px; }
  .lightbox__nav--prev { left: 24px; }
  .lightbox__nav--next { right: 24px; }
  .lightbox__count { bottom: 34px; }
  .lightbox__close { top: 14px; right: 14px; }
  .feature .body { margin-inline: auto; }
  .facts li { flex-direction: column; gap: 2px; text-align: center; }
  .facts li span:last-child { text-align: center; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 15px; }
  .cards--4, .formats { grid-template-columns: 1fr; }
  .bars { grid-template-columns: 1fr; gap: 20px; }
  .polaroid { padding: 6px 6px 2px; }
  .polaroid figcaption { font-size: 20px; }
  .lang button { padding: 6px 8px; }
}
