/* ═══════════════════════════════════════════════
   « Riviera » · theme.css (moteur de faire-part CelebraPlume)
   Socle : themes/_shared/base.css. Ici : mer, volets, citrons, azulejos.
═══════════════════════════════════════════════ */
:root {
  --bg: var(--chaux); --bg-alt: var(--sable); --surface: var(--carte); --ink: var(--encre); --ink-soft: var(--encre-soft);
  --accent: var(--azur); --accent-2: var(--citron); --on-accent: #fff; --btn: var(--azur); --on-btn: #fff;
  --line: rgb(var(--azur-rgb) / .2);
  --f-title: var(--display); --f-script: var(--script); --f-body: var(--body); --f-ui: var(--sans);
  --radius: 16px; --shadow: 0 26px 60px -34px rgb(var(--azur-rgb) / .45);
  --tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cg fill='none' stroke='black' stroke-width='1.2'%3E%3Crect x='.6' y='.6' width='38.8' height='38.8'/%3E%3Ccircle cx='20' cy='20' r='6'/%3E%3Cpath d='M20 5c3 4 3 8 0 9-3-1-3-5 0-9zM20 35c3-4 3-8 0-9-3 1-3 5 0 9zM5 20c4-3 8-3 9 0-1 3-5 3-9 0zM35 20c-4-3-8-3-9 0 1 3 5 3 9 0z'/%3E%3Cpath d='M0 8a8 8 0 0 0 8-8M32 0a8 8 0 0 0 8 8M40 32a8 8 0 0 0-8 8M8 40a8 8 0 0 0-8-8'/%3E%3C/g%3E%3Ccircle cx='20' cy='20' r='2.2' fill='black'/%3E%3C/svg%3E");
}
body { font-size: 18px; }
.amp { font-family: var(--script); font-style: normal; color: var(--terre); font-size: .7em; padding: 0 .1em; }
.head__title { font-weight: 400; }
.head__title em { font-size: 1.3em; color: var(--azur); }
.head .lemon-orn { width: 120px; height: 50px; margin: 0 auto 6px; }
.btn { border-radius: 999px; }
.btn--line { border-color: var(--azur); }

/* La mer (ouverture, héros, pied de page) */
.sea { position: absolute; inset: 0; overflow: hidden; }
.sea__sky { position: absolute; inset: 0; background: linear-gradient(180deg, var(--azur-clair) 0%, color-mix(in srgb, var(--azur-clair) 35%, var(--chaux)) 46%, var(--citron-pale) 60%, var(--chaux) 64%); }
.sea__sun { position: absolute; left: 50%; top: 58%; width: 30vmin; height: 30vmin; margin: -15vmin 0 0 -15vmin; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 22%, var(--citron-pale) 46%, rgb(var(--citron-rgb) / 0) 70%); animation: sun 7s ease-in-out infinite alternate; }
@keyframes sun { from { transform: scale(.94); opacity: .85; } to { transform: scale(1.06); opacity: 1; } }
.sea__waves { position: absolute; left: 0; bottom: 0; width: 200%; max-width: none; height: 40%; animation: drift 22s linear infinite; }
.sea__w--1 { fill: var(--mer); opacity: .75; }
.sea__w--2 { fill: color-mix(in srgb, var(--mer) 50%, var(--azur)); opacity: .9; animation: bob 5s ease-in-out infinite alternate; }
.sea__w--3 { fill: var(--azur); }
@keyframes drift { to { transform: translateX(-50%); } }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(8px); } }
.sea__glints { position: absolute; left: 0; right: 0; bottom: 0; height: 36%;
  background: radial-gradient(1.6px 1.6px at 12% 30%, #fff, transparent), radial-gradient(1.4px 1.4px at 34% 52%, #fff, transparent), radial-gradient(1.8px 1.8px at 58% 22%, #fff, transparent),
              radial-gradient(1.4px 1.4px at 76% 60%, #fff, transparent), radial-gradient(1.6px 1.6px at 90% 36%, #fff, transparent), radial-gradient(1.4px 1.4px at 46% 78%, #fff, transparent);
  animation: glint 2.4s ease-in-out infinite alternate; }
@keyframes glint { from { opacity: .35; } to { opacity: 1; } }

/* ═══════ OUVERTURE : les volets ═══════ */
.intro { background: var(--chaux); color: var(--encre); }
.intro__wall { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, var(--carte), var(--sable)); }
.intro__branch { position: absolute; top: -30px; width: min(48vw, 320px); height: min(32vw, 214px); }
.intro__branch--l { left: -40px; transform: rotate(-6deg); } .intro__branch--r { right: -40px; transform: scaleX(-1) rotate(-6deg); }
.intro__content { padding-top: 24px; padding-bottom: 70px; transition: transform 1.8s cubic-bezier(.6, 0, .2, 1) .9s, opacity .9s ease 1.6s; }
.intro.is-open .intro__content { transform: scale(2.6); opacity: 0; }
.intro__tag { font: 600 11px var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--azur); }
.intro__names { margin: 4px 0 10px; font: 400 clamp(56px, 15vw, 86px)/1.05 var(--script); color: var(--azur); display: flex; flex-direction: column; align-items: center; }
.intro__names .amp { font-size: .5em; line-height: 1.1; }
.window { position: relative; width: min(74vw, 330px, 38svh); aspect-ratio: 3 / 4; margin: 0 auto; overflow: hidden; border-radius: 999px 999px 10px 10px;
  box-shadow: 0 0 0 9px var(--carte), 0 0 0 10px var(--line), 0 30px 60px -28px rgb(var(--azur-rgb) / .6); }
.window__sea .sea__waves { height: 46%; }
.shutters { position: absolute; inset: 0; display: flex; perspective: 900px; }
.shutter { flex: 1; backface-visibility: hidden; transition: transform 1.7s cubic-bezier(.5, 0, .2, 1);
  background: repeating-linear-gradient(180deg, var(--azur) 0 11px, color-mix(in srgb, var(--azur) 72%, #000) 11px 13px);
  border: 7px solid color-mix(in srgb, var(--azur) 82%, #000); }
.shutter--l { transform-origin: left center; border-right-width: 3px; border-radius: 999px 0 0 0; }
.shutter--r { transform-origin: right center; border-left-width: 3px; border-radius: 0 999px 0 0; }
.intro.is-open .shutter--l { transform: rotateY(-118deg); }
.intro.is-open .shutter--r { transform: rotateY(118deg); }
.medallion { position: absolute; left: 50%; top: 52%; z-index: 2; width: 92px; height: 92px; margin: -46px 0 0 -46px; padding: 0; border: 0; border-radius: 50%;
  background: var(--carte); box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .45), 0 0 0 4px var(--citron); transition: transform .5s var(--ease), opacity .5s; }
.medallion::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--citron); opacity: 0; animation: ripple 2.4s ease-out infinite; }
.medallion__tile { position: absolute; inset: 6px; border-radius: 50%; background: var(--azur); opacity: .9; -webkit-mask: var(--tile) center / 22px 22px; mask: var(--tile) center / 22px 22px; }
.medallion__ini { position: relative; display: grid; place-items: center; width: 52px; height: 52px; margin: 20px; border-radius: 50%; background: var(--carte);
  font: 400 30px/1 var(--script); color: var(--azur); }
.medallion:hover { transform: scale(1.06) rotate(8deg); }
.intro.is-open .medallion { opacity: 0; transform: scale(.6) rotate(-30deg); }
@keyframes ripple { 0% { opacity: .8; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.45); } }
.intro__date { margin-top: 18px; font: italic 400 20px var(--display); color: var(--encre); }
.intro__hint { margin-top: 10px; color: var(--encre-soft); }
.intro__skip { color: var(--azur); }
.intro.is-flash { background: #fff; }

.sparkles { position: fixed; inset: 0; z-index: 70; width: 100%; height: 100%; pointer-events: none; }

/* ═══════ NAVIGATION ═══════ */
.nav { color: var(--azur); }
.nav__brand { font: 400 28px var(--script); letter-spacing: 0; }
.drawer__brand { font-family: var(--script); }

/* ═══════ HÉROS ═══════ */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; justify-content: center; overflow: hidden; text-align: center; }
.hero__branch { position: absolute; top: calc(var(--nav-h) - 30px); z-index: 1; width: min(44vw, 380px); height: min(29vw, 254px); }
.hero__branch--l { left: -50px; } .hero__branch--r { right: -50px; transform: scaleX(-1); }
.hero__inner { position: relative; z-index: 2; padding: calc(var(--nav-h) + min(12vh, 90px)) var(--gutter) 60px; }
.hero__photo { width: min(46vw, 210px); aspect-ratio: 1; margin: 0 auto 18px; padding: 6px; border-radius: 50%; background: var(--carte); box-shadow: 0 0 0 3px var(--citron), var(--shadow); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.hero__eyebrow { font: 600 12px var(--sans); letter-spacing: .38em; text-transform: uppercase; color: var(--azur); }
.hero__names { margin: 6px 0 2px; display: flex; flex-direction: column; align-items: center; font: 400 clamp(76px, min(20vw, 15svh), 150px)/1 var(--script); color: var(--azur);
  text-shadow: 0 2px 30px rgba(255, 255, 255, .8); }
.hero__names .amp { font-size: .5em; line-height: 1.1; }
@media (min-width: 900px) { .hero__names { flex-direction: row; align-items: baseline; gap: .14em; } }
.hero__date { font: italic 400 clamp(21px, 4.4vw, 28px) var(--display); color: var(--encre); text-shadow: 0 1px 14px rgb(255 255 255 / .9), 0 1px 2px rgb(255 255 255 / .9); }
.hero__place { margin-top: 4px; font: 600 12px var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--encre-soft); text-shadow: 0 1px 10px rgb(255 255 255 / .85); }
.hero__cta { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 26px; }
.hero__cta .btn { width: min(100%, 300px); }
.hero__cta .btn--line { background: rgb(255 255 255 / .75); }
@media (min-width: 640px) { .hero__cta { flex-direction: row; justify-content: center; } .hero__cta .btn { width: auto; } }
.js .hero__inner > * { opacity: 0; animation: rise 1.3s var(--ease) forwards; animation-play-state: paused; }
.is-open-site .hero__inner > * { animation-play-state: running; }
.hero__inner > :nth-child(2) { animation-delay: .15s; } .hero__inner > :nth-child(3) { animation-delay: .35s; } .hero__inner > :nth-child(4) { animation-delay: .5s; }
.hero__inner > :nth-child(5) { animation-delay: .65s; } .hero__inner > :nth-child(6) { animation-delay: .8s; }
.cp-preview .hero__inner > * { opacity: 1; animation: none; }

/* ═══════ SECTIONS ═══════ */
.countdown, .venues, .rsvp { background: var(--sable); }
.countdown::before, .venues::before, .rsvp::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 26px; background: var(--azur);
  -webkit-mask: var(--tile) repeat-x left center / 26px 26px; mask: var(--tile) repeat-x left center / 26px 26px; opacity: .85; }
.cd__num { font: 400 clamp(36px, 8vw, 58px)/1 var(--display); font-style: italic; color: var(--azur); }
.step__dot { border-color: var(--terre); }
.step.is-lit .step__dot { background: var(--citron); box-shadow: 0 0 0 6px rgb(var(--citron-rgb) / .35); }
.timeline::after { background: var(--terre); }
.step__title, .venue__title, .info__title { font-weight: 400; }
.info__ico, .step__icon { color: var(--terre); }
.thanks__title { color: var(--azur); }

/* Le faire-part : carte bordée d'azulejos */
.announce { overflow: hidden; }
.tiles { position: relative; max-width: 760px; margin: 0 auto; padding: 22px; border-radius: 20px; background: var(--carte); box-shadow: var(--shadow); }
.tiles::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--azur); -webkit-mask: var(--tile) 0 0 / 26px 26px; mask: var(--tile) 0 0 / 26px 26px; }
.tiles__inner { position: relative; padding: clamp(44px, 9vw, 80px) clamp(22px, 6vw, 64px); text-align: center; border-radius: 12px; background: var(--carte); }
.tiles__branch { position: absolute; right: -24px; top: -60px; z-index: 2; width: min(46vw, 230px); height: min(31vw, 154px); transform: scaleX(-1) rotate(-8deg); }
.tiles__kicker { font: 600 11px var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--azur); }
.tiles__names { margin: 10px 0 18px; font: 400 clamp(56px, 13vw, 90px)/1.05 var(--script); color: var(--azur); }
@media (max-width: 599px) { .tiles__names { display: flex; flex-direction: column; align-items: center; } }
.tiles__text { margin-top: 12px; font-size: clamp(18px, 3.4vw, 21px); line-height: 1.65; }
.tiles__text em { font-family: var(--display); font-style: italic; color: var(--azur); }
.tiles__orn { width: 120px; height: 50px; margin: 16px auto 4px; }
.tiles__closing { margin-top: 24px; font: 400 clamp(34px, 7vw, 46px)/1.2 var(--script); color: var(--terre); }

/* Pied de page */
.footer { position: relative; padding: 0; background: var(--sable); overflow: hidden; }
.footer__sea { position: relative; height: 220px; }
.footer__inner { padding: 50px var(--gutter) 60px; }
.footer__names { font: 400 clamp(56px, 12vw, 84px)/1.1 var(--script); color: var(--azur); }
.footer__date { margin-top: 6px; font: italic 400 19px var(--display); color: var(--encre-soft); }
.footer__thanks { margin-top: 16px; font: 400 clamp(30px, 6vw, 38px) var(--script); color: var(--terre); }
