/* MAF Productions — vidéographie de mariage, ambiance champêtre */
:root {
  --cream: #f5efe4;
  --paper: #fbf8f2;
  --linen: #ece3d3;
  --kraft: #d9c8ad;
  --brown: #3d3026;
  --brown-2: #5b4a3d;
  --muted: #7d6e60;
  --sage: #7f8c6c;
  --sage-2: #a7b296;
  --rose: #a2453b;
  --rose-2: #b9594d;
  --line: rgba(61, 48, 38, .14);
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Pinyon Script", "Brush Script MT", cursive;
  --sans: "Jost", system-ui, sans-serif;
  --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 300 17px/1.75 var(--sans); color: var(--brown-2); background: var(--cream); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0 0 .5em; color: var(--brown); letter-spacing: -.005em; }
em { font-style: italic; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; position: relative; z-index: 1; }
.center { text-align: center; }
.small { font-size: 15px; color: var(--muted); }

/* Petit titre manuscrit au-dessus des sections */
.eyebrow { font: 400 clamp(30px, 3vw, 40px)/1 var(--script); color: var(--rose); margin: 0 0 10px; display: block; letter-spacing: 0; text-transform: none; }

/* Texture papier légère */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .55  0 0 0 0 .45  0 0 0 0 .33  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>"); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 500 13.5px/1.25 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding: 17px 32px; border-radius: 999px; transition: transform .25s, background .25s, color .25s, border-color .25s, box-shadow .25s; text-align: center; }
.btn svg { width: 15px; height: 15px; fill: currentColor; }
.btn-red { background: var(--rose); color: var(--paper); box-shadow: 0 12px 28px -14px rgba(162, 69, 59, .8); }
.btn-red:hover { background: var(--rose-2); transform: translateY(-2px); }
.btn-ghost { color: var(--paper); border: 1px solid rgba(251,248,242,.6); background: rgba(61,48,38,.12); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(251,248,242,.14); border-color: var(--paper); }
.btn-line { border: 1px solid var(--brown-2); color: var(--brown); }
.btn-line:hover { background: var(--brown); color: var(--paper); }
.btn-lg { padding: 20px 42px; font-size: 14.5px; }

/* En-tête */
.site-header { position: fixed; inset: 0 0 auto; z-index: 40; transition: background .35s, box-shadow .35s; }
.site-header.scrolled { background: rgba(251, 248, 242, .94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { text-decoration: none; display: flex; align-items: center; }
.brand .logo { height: 58px; width: auto; }
.logo-dark { display: none; }
.site-header.scrolled .logo-light { display: none; }
.site-header.scrolled .logo-dark { display: block; }
.brand-text { font-family: var(--serif); font-size: 30px; line-height: 1; letter-spacing: .12em; color: var(--paper); transition: color .35s; }
.brand-text::after { content: "PRODUCTIONS"; display: block; font: 500 8px/1 var(--sans); letter-spacing: .5em; color: var(--paper); opacity: .85; margin-top: 4px; }
.site-header.scrolled .brand-text, .site-header.scrolled .brand-text::after { color: var(--brown); }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: rgba(251,248,242,.92); position: relative; transition: color .3s; }
.site-header.scrolled .nav a { color: var(--brown-2); }
.nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px; background: currentColor; transition: right .3s; }
.nav a:not(.nav-cta):hover::after { right: 0; }
.nav-cta { border: 1px solid rgba(251,248,242,.6); padding: 11px 20px; border-radius: 999px; transition: background .25s, border-color .25s, color .25s; }
.nav-cta:hover { background: var(--rose); border-color: var(--rose); color: var(--paper) !important; }
.site-header.scrolled .nav-cta { border-color: var(--rose); color: var(--rose) !important; }
.site-header.scrolled .nav-cta:hover { color: var(--paper) !important; }
.menu-btn { display: none; }

/* Accueil */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + 60px) 0 140px; color: var(--paper); }
.hero-bg {
  position: absolute; inset: -4%; z-index: -3;
  background:
    linear-gradient(180deg, rgba(61,48,38,.5) 0%, rgba(61,48,38,.28) 45%, rgba(61,48,38,.62) 100%),
    linear-gradient(90deg, rgba(61,48,38,.5) 0%, rgba(61,48,38,0) 65%),
    url("/assets/img/hero.jpg") center / cover,
    url("https://i.ytimg.com/vi/aMvlXuW5b1g/maxresdefault.jpg") center / cover,
    #8c7a66;
  filter: sepia(.18) saturate(.9);
  animation: kenburns 26s ease-in-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.09) translate(-1.2%, -.8%); } }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; z-index: 0;
  background: var(--cream);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'><path d='M0 40 C 240 10 420 64 720 38 S 1200 8 1440 36 V70 H0Z'/></svg>") center / 100% 100%;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'><path d='M0 40 C 240 10 420 64 720 38 S 1200 8 1440 36 V70 H0Z'/></svg>") center / 100% 100%; }
.grain { display: none; }
.viewfinder { position: absolute; inset: calc(var(--header-h) + 18px) 28px 92px; pointer-events: none; z-index: 0; font: 500 11.5px/1 var(--sans); letter-spacing: .2em; color: rgba(251,248,242,.8); }
.viewfinder .c { position: absolute; width: 24px; height: 24px; border: 1.3px solid rgba(251,248,242,.6); }
.c.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.c.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.c.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.c.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.rec { position: absolute; top: 6px; left: 40px; display: flex; align-items: center; gap: 8px; }
.rec b { width: 8px; height: 8px; border-radius: 50%; background: #e4675a; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.tc { position: absolute; top: 6px; right: 40px; font-variant-numeric: tabular-nums; }
.meta { position: absolute; bottom: 6px; right: 40px; opacity: .75; }
.hero-content { z-index: 1; }
.hero .eyebrow { color: var(--paper); font-size: clamp(34px, 3.4vw, 46px); margin-bottom: 14px; }
.hero h1 { font-size: clamp(42px, 5vw, 76px); max-width: 19ch; margin-bottom: 26px; color: var(--paper); text-shadow: 0 2px 30px rgba(40,30,22,.25); }
.hero h1 em { position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 1%; right: 1%; bottom: .04em; height: .3em; z-index: -1;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'><path d='M3 14 C 60 4 120 6 170 10 S 260 16 297 6' fill='none' stroke='%23e9b8a8' stroke-width='3' stroke-linecap='round'/></svg>") center / 100% 100% no-repeat;
  clip-path: inset(0 100% 0 0); animation: draw 1.2s .8s cubic-bezier(.6,0,.2,1) forwards; }
@keyframes draw { to { clip-path: inset(0 0 0 0); } }
.lead { font-size: clamp(17px, 1.6vw, 21px); max-width: 520px; color: rgba(251,248,242,.92); margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-cue { position: absolute; bottom: 92px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 1.3px solid rgba(251,248,242,.7); border-radius: 14px; z-index: 1; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--paper); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Bandeau défilant */
.marquee { overflow: hidden; padding: 26px 0 30px; background: var(--cream); }
.marquee-track { display: flex; align-items: center; gap: 40px; width: max-content; animation: marquee 42s linear infinite; }
.marquee span { font: italic 400 clamp(26px, 3vw, 40px)/1 var(--serif); color: var(--brown-2); white-space: nowrap; }
.marquee i { width: 16px; height: 16px; flex-shrink: 0; background: var(--sage); opacity: .8;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M10 1C13 6 13 14 10 19 7 14 7 6 10 1Z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M10 1C13 6 13 14 10 19 7 14 7 6 10 1Z'/></svg>") center / contain no-repeat;
  transform: rotate(35deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(80px, 10vw, 140px) 0; position: relative; overflow: hidden; }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 70px); }
.section-head h2, .why h2, .contact h2 { font-size: clamp(38px, 5.2vw, 68px); }
.section-head h2 em, .why h2 em { color: var(--rose); }
.sprig { position: absolute; width: clamp(160px, 20vw, 280px); height: clamp(170px, 21vw, 290px); color: var(--sage); opacity: .55; pointer-events: none; z-index: 0; }
.sprig-r { right: -30px; top: 40px; transform: scaleX(-1) rotate(-8deg); }
.sprig-r2 { right: 2%; top: 70px; transform: scaleX(-1) rotate(12deg); opacity: .4; }
.sprig-l { left: -40px; bottom: 30px; transform: rotate(6deg); opacity: .45; }

/* Films */
.films { background: var(--cream); padding-top: clamp(40px, 6vw, 80px); }
.film-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 34px; align-items: end; }
.film .yt, .film .video { box-shadow: 0 0 0 10px var(--paper), 0 0 0 11px var(--line), 0 30px 60px -30px rgba(61,48,38,.5); border-radius: 2px; }
.film h3 { font-size: 36px; margin: 34px 0 2px; }
.film p { color: var(--muted); font-size: 15px; letter-spacing: .06em; margin: 0; }
.yt { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--linen); }
.film:last-child .yt { aspect-ratio: 4 / 3; }
.yt img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .6s; filter: sepia(.15) saturate(.92); }
.yt:hover img { transform: scale(1.07); filter: none; }
.play { position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; display: grid; place-items: center; background: rgba(251,248,242,.88); transition: transform .35s, background .35s; z-index: 1; box-shadow: 0 10px 30px rgba(61,48,38,.25); }
.play svg { width: 28px; height: 28px; fill: var(--rose); margin-left: 4px; transition: fill .35s; }
.yt:hover .play { transform: scale(1.1); background: var(--rose); }
.yt:hover .play svg { fill: var(--paper); }
.film-tc { position: absolute; left: 16px; top: 14px; z-index: 1; font: 500 11px/1 var(--sans); letter-spacing: .3em; color: var(--paper); background: rgba(61,48,38,.45); padding: 7px 10px; border-radius: 999px; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.film:last-child .video { aspect-ratio: 4 / 3; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.more { margin: 54px 0 0; }
.more a { text-decoration: none; font-size: 13.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--brown); border-bottom: 1px solid var(--rose); padding-bottom: 6px; }
.more a:hover { color: var(--rose); }

/* Services */
.services { background: var(--linen); }
.scenes { list-style: none; margin: 0 0 60px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.scene { background: var(--paper); border-radius: 220px 220px 10px 10px; padding: 64px 34px 40px; text-align: center; border: 1px solid var(--line); box-shadow: 0 24px 50px -36px rgba(61,48,38,.45); transition: transform .4s; }
.scene:hover { transform: translateY(-6px); }
.scene-no { display: block; font: 400 30px/1 var(--script); color: var(--rose); margin-bottom: 20px; text-transform: none; letter-spacing: 0; }
.scene-ico { width: 76px; height: 76px; padding: 18px; border-radius: 50%; background: rgba(127,140,108,.16); fill: none; stroke: var(--sage); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin: 0 auto 24px; display: block; }
.scene h3 { font-size: 30px; }
.scene p { color: var(--muted); font-size: 16px; margin: 0; }

/* Forfaits */
.forfaits { background: var(--cream); }
.forfaits .section-head { margin-inline: auto; text-align: center; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 440px)); justify-content: center; gap: 30px; margin-bottom: 36px; }
.plan { position: relative; padding: 52px 42px 42px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; display: flex; flex-direction: column; box-shadow: 0 30px 60px -44px rgba(61,48,38,.55); }
.plan::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--line); border-radius: 3px; pointer-events: none; }
.plan-featured { background: #fffdf9; border-color: rgba(162,69,59,.35); }
.plan-featured::before { border-color: rgba(162,69,59,.25); }
.badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--rose); color: var(--paper); font: 500 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; padding: 9px 16px; border-radius: 999px; margin: 0; white-space: nowrap; }
.plan h3 { font-size: 48px; text-align: center; margin-bottom: 4px; }
.price { font-family: var(--serif); font-size: 26px; color: var(--muted); margin-bottom: 30px; text-align: center; }
.price span { font-size: 62px; color: var(--brown); line-height: 1; }
.plan ul { list-style: none; padding: 0; margin: 0 0 36px; flex: 1; }
.plan li { padding: 13px 0 13px 32px; border-bottom: 1px dashed var(--line); position: relative; font-size: 16px; color: var(--brown-2); }
.plan li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 15px; height: 15px; background: var(--sage);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M10 1C13 6 13 14 10 19 7 14 7 6 10 1Z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M10 1C13 6 13 14 10 19 7 14 7 6 10 1Z'/></svg>") center / contain no-repeat;
  transform: rotate(40deg); }
.plan .btn { align-self: center; }

/* Pourquoi */
.why { background: var(--paper); border-block: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.why h2 { position: sticky; top: calc(var(--header-h) + 40px); }
.why-text p { color: var(--muted); font-size: 18px; }
.why-text .big { font: italic 400 clamp(26px, 2.6vw, 34px)/1.3 var(--serif); color: var(--brown); margin-bottom: 1.2em; }

/* Contact */
.contact { position: relative; overflow: hidden; isolation: isolate; padding: clamp(110px, 13vw, 180px) 0; text-align: center; color: var(--paper); }
.contact-bg { position: absolute; inset: 0; z-index: -1; filter: sepia(.2);
  background: linear-gradient(rgba(61,48,38,.66), rgba(61,48,38,.74)), url("/assets/img/contact.jpg") center / cover, url("https://i.ytimg.com/vi/mCwTdnSfQOY/hqdefault.jpg") center / cover, var(--brown-2); }
.contact-inner { max-width: 760px; }
.contact .eyebrow { color: #f0cfc4; }
.contact h2 { color: var(--paper); }
.contact h2 em { color: #f0cfc4; }
.contact p { color: rgba(251,248,242,.9); font-size: 19px; margin-bottom: 38px; }
.socials { list-style: none; padding: 0; margin: 54px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 34px; }
.socials a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: rgba(251,248,242,.85); }
.socials a:hover { color: #fff; }
.socials svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.socials svg .fill { fill: currentColor; stroke: none; }

/* Pied de page */
.site-footer { background: var(--brown); padding: 30px 0; font-size: 13px; color: rgba(245,239,228,.7); letter-spacing: .06em; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 22px; color: var(--cream); letter-spacing: .1em; }
.foot-brand em { color: #e9b8a8; }
.foot-sprig { width: 34px; height: 34px; color: var(--sage-2); }
.foot-brand img { height: 46px; width: auto; }
.mobile-cta { display: none; }

/* Apparitions au défilement */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .scene.reveal.in:hover { transform: translateY(-6px); }

/* Mobile */
@media (max-width: 900px) {
  .menu-btn { display: grid; gap: 7px; width: 44px; height: 44px; place-content: center; background: none; border: 0; cursor: pointer; z-index: 2; }
  .menu-btn span { width: 26px; height: 1.5px; background: var(--paper); transition: transform .3s, background .3s; }
  .site-header.scrolled .menu-btn span, .menu-btn[aria-expanded="true"] span { background: var(--brown); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .nav { position: fixed; inset: 0; background: var(--cream); flex-direction: column; justify-content: center; gap: 28px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .nav.open { opacity: 1; visibility: visible; }
  .nav a, .site-header.scrolled .nav a { font-size: 16px; color: var(--brown); }
  .nav-cta { border-color: var(--rose) !important; color: var(--rose) !important; }
  .film-grid, .why-grid { grid-template-columns: 1fr; gap: 56px; }
  .film:last-child .yt, .film:last-child .video { aspect-ratio: 16 / 9; }
  .why h2 { position: static; }
  .scenes { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plans { grid-template-columns: minmax(0, 480px); gap: 44px; }
  .viewfinder { inset: calc(var(--header-h) + 8px) 14px 84px; }
  .meta { display: none; }
  .sprig { opacity: .3; }
  .mobile-cta { display: block; position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 35; background: var(--rose); color: var(--paper); text-align: center; text-decoration: none; font: 500 14px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 17px; border-radius: 999px; box-shadow: 0 10px 30px rgba(61,48,38,.35); transform: translateY(140%); transition: transform .35s; }
  .mobile-cta.show { transform: none; }
  .site-footer { padding-bottom: 96px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .brand .logo { height: 44px; }
  .hero { padding-top: calc(var(--header-h) + 50px); }
  .hero h1 { font-size: clamp(38px, 11vw, 52px); }
  .hero h1 em { white-space: normal; }
  .hero-actions .btn { width: 100%; }
  .plan { padding: 46px 24px 30px; }
  .scene { padding: 56px 26px 34px; }
  .rec { left: 34px; } .tc { right: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero h1 em::after { clip-path: none; }
}
