/* Aurélie · Portfolio — feuille de style
   Palette : blanc cassé, sable, terracotta, sauge */

:root {
  --cream: #F7F3EC;
  --sand: #EDE3D4;
  --sand-deep: #E2D3BE;
  --terracotta: #B5603C;
  --terracotta-deep: #96492A;
  --terracotta-soft: #D98A65;
  --sage: #7F8F74;
  --sage-deep: #56634F;
  --sage-dark: #3A4536;
  --ink: #2A2622;
  --ink-deep: #1C1916;
  --ink-soft: #5E554C;
  --line: rgba(42, 38, 34, 0.14);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 56px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul, dl { margin: 0; padding: 0; list-style: none; }
figure, dd { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--terracotta); }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--cream); padding: 8px 14px; }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--terracotta);
  margin-bottom: 18px;
}
.eyebrow a { text-decoration: none; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px;
  background: var(--terracotta); color: #fff;
  border: 1px solid var(--terracotta); border-radius: 999px;
  font-size: 0.95rem; font-weight: 500; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer;
  transition: background .25s, border-color .25s, color .25s, transform .25s;
}
.btn:hover { background: var(--terracotta-deep); border-color: var(--terracotta-deep); transform: translateY(-1px); }
.btn-light { background: transparent; color: var(--cream); border-color: rgba(247, 243, 236, 0.75); }
.btn-light:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-small { min-height: 42px; padding: 0 22px; font-size: 0.85rem; }

/* En-tête : transparent sur l'ouverture, crème au défilement */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: var(--cream);
  transition: background .3s, color .3s, box-shadow .3s;
}
.site-header.is-scrolled { background: rgba(247, 243, 236, 0.96); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand-name { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; line-height: 1; margin: 0; }
.brand-handle { font-size: 0.8rem; opacity: 0.8; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { font-size: 0.9rem; text-decoration: none; opacity: 0.9; transition: color .2s; }
.nav a:not(.btn):hover { color: var(--terracotta-soft); }
.site-header.is-scrolled .nav a:not(.btn):hover { color: var(--terracotta); }
@media (max-width: 960px) { .nav a:not(.btn) { display: none; } }
@media (max-width: 420px) { .brand-handle { display: none; } .btn-small { padding: 0 16px; } }

/* Ouverture plein écran */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--cream);
  background: var(--ink-deep);
  overflow: hidden;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(28, 25, 22, 0.92) 0%, rgba(28, 25, 22, 0.55) 38%, rgba(28, 25, 22, 0.05) 70%),
    linear-gradient(to bottom, rgba(28, 25, 22, 0.45) 0%, rgba(28, 25, 22, 0) 22%);
}
.hero-content { position: relative; padding-top: 140px; padding-bottom: clamp(48px, 9vh, 110px); }
.hero .eyebrow { color: var(--terracotta-soft); }
.hero h1 { font-size: clamp(3rem, 9vw, 7.4rem); max-width: 12ch; font-weight: 500; }
.hero h1 em { color: var(--terracotta-soft); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 40ch; margin: 26px 0 34px; color: rgba(247, 243, 236, 0.9); font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 1000px) {
  .hero { align-items: center; }
  .hero-img { left: auto; width: 54%; object-position: center 45%; }
  .hero-shade {
    left: auto; width: 54%;
    background:
      linear-gradient(to right, var(--ink-deep) 0%, rgba(28, 25, 22, 0) 28%),
      linear-gradient(to bottom, rgba(28, 25, 22, 0.5) 0%, rgba(28, 25, 22, 0) 22%);
  }
  .hero-content { padding-bottom: 80px; }
  .hero h1, .lead { max-width: min(46vw, 640px); }
  .hero h1 { font-size: clamp(4rem, 6.4vw, 6.6rem); }
}
@media (max-width: 999px) {
  .hero { display: block; min-height: 0; }
  .hero-img { position: relative; height: 68vh; height: 68svh; min-height: 380px; max-height: 720px; object-position: center 55%; }
  .hero-shade { bottom: auto; height: 68vh; height: 68svh; min-height: 380px; max-height: 720px;
    background: linear-gradient(to top, var(--ink-deep) 0%, rgba(28, 25, 22, 0) 35%), linear-gradient(to bottom, rgba(28, 25, 22, 0.5) 0%, rgba(28, 25, 22, 0) 20%); }
  .hero-content { margin-top: -70px; padding-top: 0; padding-bottom: 48px; }
}
@media (max-width: 560px) { .hero-actions .btn { flex: 1 1 100%; } }

/* Chiffres clés */
.keyfigs { background: var(--ink-deep); color: var(--cream); padding: clamp(36px, 6vw, 60px) 0; border-top: 1px solid rgba(247, 243, 236, 0.08); }
.keyfigs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
@media (min-width: 800px) { .keyfigs-grid { grid-template-columns: repeat(4, 1fr); } }
.kf { text-align: center; }
.kf-value { font-family: var(--serif); font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1; margin: 0 0 8px; color: var(--terracotta-soft); font-weight: 500; }
.kf-label { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 0; opacity: 0.8; }

/* Sections */
.section { padding: clamp(72px, 11vw, 140px) 0; }
.section-head { max-width: 780px; margin-bottom: clamp(36px, 6vw, 64px); }
.section-head h2 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
.section-intro { margin-top: 22px; color: var(--ink-soft); font-size: 1.1rem; max-width: 60ch; }
.section-intro a { color: var(--terracotta); }

/* Réalisations */
.realisations { padding-top: clamp(72px, 11vw, 130px); }
.univers-nav {
  position: sticky; top: var(--header-h); z-index: 20;
  background: rgba(247, 243, 236, 0.96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.univers-nav-inner { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-top: 10px; padding-bottom: 10px; }
.univers-nav-inner::-webkit-scrollbar { display: none; }
.univers-nav a {
  flex: 0 0 auto; text-decoration: none; white-space: nowrap;
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 0.88rem; font-weight: 500; transition: background .2s, color .2s, border-color .2s;
}
.univers-nav a:hover { border-color: var(--terracotta); color: var(--terracotta); }
.univers-nav a.is-active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.univers { padding: clamp(56px, 8vw, 100px) 0; }
.univers-dark { background: var(--ink-deep); color: var(--cream); }
.univers-dark .univers-head p { color: rgba(247, 243, 236, 0.72); }
.univers-dark .univers-head h3 { color: var(--cream); }
.univers-dark .tile button { background: #2c2824; }
.univers-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; margin-bottom: clamp(24px, 4vw, 40px); }
.univers-head h3 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
.univers-head p { margin: 0; color: var(--ink-soft); max-width: 42ch; }

.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tile { aspect-ratio: 3 / 4; }
.tile button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--sand-deep); cursor: zoom-in; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.tile button:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; }
.tile.is-feature { grid-column: span 2; aspect-ratio: 4 / 5; }
.tile.is-wide, .tile.is-pano { grid-column: span 2; aspect-ratio: 3 / 2; }
@media (min-width: 760px) {
  .mosaic { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .tile.is-feature { grid-row: span 2; aspect-ratio: auto; }
  .tile.is-pano { grid-column: span 4; aspect-ratio: 3 / 1; }
}

/* Vidéos */
.videos { background: var(--sand); padding: clamp(64px, 9vw, 110px) 0; }
.reels {
  display: grid; grid-auto-flow: column; grid-auto-columns: 68%;
  gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter);
}
.reels::-webkit-scrollbar { display: none; }
.reels li { scroll-snap-align: start; }
@media (min-width: 640px) { .reels { grid-auto-columns: 38%; } }
@media (min-width: 1000px) {
  .reels { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; margin: 0; padding: 0; }
}
.reel video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000; border-radius: 6px; }
.reel figcaption { margin-top: 10px; font-size: 0.82rem; color: var(--ink-soft); letter-spacing: 0.04em; }

/* Statistiques */
.stats-section { background: var(--sage-dark); color: var(--cream); }
.stats-section .eyebrow { color: var(--terracotta-soft); }
.stats-section h2 em { color: var(--terracotta-soft); }
.stats-layout { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 960px) { .stats-layout { grid-template-columns: 1.15fr 0.85fr; } }
.engage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.engage-item { background: var(--terracotta); border-radius: 12px; padding: clamp(22px, 4vw, 36px) clamp(18px, 3vw, 30px); }
.engage-value { font-family: var(--serif); font-size: clamp(3.4rem, 9vw, 5.6rem); line-height: 0.9; margin: 0 0 12px; font-weight: 500; }
.engage-label { margin: 0; font-size: 0.9rem; line-height: 1.4; opacity: 0.95; }
.audience { margin-top: 18px; background: rgba(247, 243, 236, 0.07); border: 1px solid rgba(247, 243, 236, 0.14); border-radius: 12px; padding: clamp(22px, 4vw, 34px); }
.audience h3 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 18px; }
.gender-legend { display: flex; justify-content: space-between; margin: 0 0 8px; font-size: 0.95rem; }
.gender-legend strong { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; margin-right: 4px; }
.gender-bar { height: 12px; border-radius: 999px; background: var(--sage); overflow: hidden; }
.gender-bar span { display: block; height: 100%; background: var(--terracotta-soft); border-radius: 999px; }
.audience-age { margin: 20px 0 18px; font-size: 0.95rem; }
.audience-age strong { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; margin-right: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(247, 243, 236, 0.3); font-size: 0.85rem; }
.stats-note { margin: 20px 0 0; font-size: 0.8rem; opacity: 0.7; line-height: 1.6; }
.proof { margin: 0; max-width: 260px; }
@media (min-width: 960px) { .proof { max-width: 380px; justify-self: end; } }
.proof-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3); }
.proof-btn img { width: 100%; }
.proof-btn:focus-visible { outline: 3px solid var(--terracotta-soft); outline-offset: 3px; }
.proof-hint { display: block; margin-top: 4px; color: var(--terracotta-soft); opacity: 1; }
.proof figcaption { font-size: 0.8rem; opacity: 0.75; margin-top: 12px; line-height: 1.5; }
.lightbox.is-single .lb-nav { display: none; }
.lightbox.is-single img { background: #fff; border-radius: 8px; }

/* À propos */
.about-grid { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 0.9fr 1.1fr; } }
.about-media { overflow: hidden; border-radius: 6px; }
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-text h2 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); margin-bottom: 26px; }
.about-text p { color: var(--ink-soft); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tags li { padding: 8px 16px; border-radius: 999px; background: var(--sand); font-size: 0.86rem; font-weight: 500; }

/* Matériel */
.gear-section { background: var(--ink-deep); color: var(--cream); }
.gear-section .eyebrow, .gear-section h2 em { color: var(--terracotta-soft); }
.gear-card { color: var(--ink); }
.gear-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .gear-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.gear-card { background: #fff; border-radius: 10px; padding: 16px 16px 22px; }
.gear-img { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; overflow: hidden; }
.gear-img img { max-height: 100%; width: auto; object-fit: contain; }
.gear-card h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; line-height: 1.3; letter-spacing: 0; }
.gear-card p { font-size: 0.86rem; color: var(--ink-soft); margin: 6px 0 0; line-height: 1.5; }

/* Collaborer */
.benefits { display: grid; gap: 14px; }
@media (min-width: 720px) { .benefits { grid-template-columns: 1fr 1fr; gap: 18px; } }
.benefit { background: #fff; border-radius: 12px; padding: clamp(24px, 4vw, 38px); border-top: 4px solid var(--terracotta); }
.benefit h3 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); margin-bottom: 12px; }
.benefit p { margin: 0; color: var(--ink-soft); }

.process { display: grid; gap: 28px; margin-top: clamp(48px, 7vw, 80px); padding-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); }
@media (min-width: 800px) { .process { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.step h3 { font-size: 1.9rem; margin-bottom: 10px; color: var(--terracotta); }
.step p { color: var(--ink-soft); margin: 0; }

/* Contact */
.contact { position: relative; color: var(--cream); background: var(--ink-deep); padding: clamp(96px, 14vw, 180px) 0; overflow: hidden; text-align: center; }
.contact-bg { position: absolute; inset: 0; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.38; }
.contact-inner { position: relative; max-width: 820px; }
.contact .eyebrow { color: var(--terracotta-soft); }
.contact h2 { font-size: clamp(3rem, 8vw, 6rem); margin-bottom: 22px; }
.contact h2 em { color: var(--terracotta-soft); }
.contact p { color: rgba(247, 243, 236, 0.88); }
.contact-mail {
  display: inline-block; margin: 14px 0 30px;
  font-family: var(--serif); font-size: clamp(1.45rem, 4.4vw, 2.6rem);
  text-decoration: none; border-bottom: 1px solid rgba(247, 243, 236, 0.5);
  overflow-wrap: anywhere;
}
.contact-mail:hover { color: var(--terracotta-soft); border-color: var(--terracotta-soft); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.contact-insta { margin-top: 28px; }
.contact-insta a { color: var(--terracotta-soft); }
@media (max-width: 560px) { .contact-actions .btn { flex: 1 1 100%; } }

/* Pied de page */
.site-footer { background: var(--ink-deep); color: rgba(247, 243, 236, 0.75); padding: 36px 0; border-top: 1px solid rgba(247, 243, 236, 0.08); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.footer-inner p { margin: 0; font-size: 0.9rem; }
.footer-inner .brand-name { color: var(--cream); }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--terracotta-soft); }
.small { font-size: 0.8rem; }

/* Animations */
:root { --dur: .55s; --dist: 18px; --ease: cubic-bezier(.2, .7, .2, 1); }
@media (min-width: 900px) { :root { --dur: .85s; --dist: 28px; } }

/* Blocs */
.js .reveal { opacity: 0; transform: translateY(var(--dist)); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* En-têtes : surtitre, titre puis texte, en cascade */
.js .section-head.reveal, .js .univers-head.reveal { opacity: 1; transform: none; }
.js .section-head.reveal > *, .js .univers-head.reveal > * { opacity: 0; transform: translateY(var(--dist)); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.js .section-head.reveal > :nth-child(2), .js .univers-head.reveal > :nth-child(2) { transition-delay: .08s; }
.js .section-head.reveal > :nth-child(3) { transition-delay: .16s; }
.js .section-head.reveal.is-in > *, .js .univers-head.reveal.is-in > * { opacity: 1; transform: none; }

/* Photos : fondu + léger dézoom, décalé dans une même galerie */
.js .reveal-img { overflow: hidden; }
.js .reveal-img img { opacity: 0; transform: scale(1.08); transition: opacity var(--dur) var(--ease), transform calc(var(--dur) * 1.6) var(--ease); transition-delay: var(--d, 0s); }
.js .reveal-img.is-in img { opacity: 1; transform: none; }

/* Ouverture */
.js .hero-img { animation: hero-zoom 1.6s var(--ease) both; }
.js .hero-content > * { animation: rise var(--dur) var(--ease) both; }
.js .hero-content > :nth-child(1) { animation-delay: .15s; }
.js .hero-content > :nth-child(2) { animation-delay: .25s; }
.js .hero-content > :nth-child(3) { animation-delay: .38s; }
.js .hero-content > :nth-child(4) { animation-delay: .5s; }
@keyframes hero-zoom { from { transform: scale(1.08); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(var(--dist)); } to { opacity: 1; transform: none; } }

/* Zoom discret au survol, uniquement avec une souris */
@media (hover: hover) and (pointer: fine) {
  .js .tile.is-in button:hover img, .no-js .tile button:hover img { transform: scale(1.05); transition: transform .9s var(--ease); transition-delay: 0s; }
  .proof-btn img { transition: transform .6s var(--ease); }
  .proof-btn:hover img { transform: scale(1.03); }
}

/* Réduction des animations : tout visible, sans mouvement */
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal > *, .js .reveal-img img, .js .hero-img, .js .hero-content > * {
    opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important;
  }
}

/* Visionneuse */
.lightbox {
  border: 0; padding: 0; margin: 0; max-width: none; max-height: none;
  width: 100vw; height: 100vh; background: rgba(28, 25, 22, 0.95);
  display: none; align-items: center; justify-content: center;
}
.lightbox[open] { display: flex; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: 92vw; max-height: 86vh; width: auto; object-fit: contain; }
.lb-close, .lb-nav {
  position: absolute; background: none; border: 0; color: var(--cream); cursor: pointer;
  width: 52px; height: 52px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.lb-close { top: 10px; right: 10px; font-size: 2.4rem; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 3rem; }
.lb-prev { left: 4px; }
.lb-next { right: 4px; }
.gear-img img[src*="iphone"], .gear-img img[src*="stabilisateur"] { transform: scale(1.45); }
