/* ==========================================================================
   sw-2026.css — couche de finition « 2026 » de sharkywedding.fr (accueil + /budget).
   Chargée APRÈS les styles inline : même charte (blanc, bleu #0071E3, Syne + Manrope),
   on raffine la matière, la profondeur et le mouvement. Tout est neutralisé par
   prefers-reduced-motion. Classes préfixées sw- / hs- / tr- / bx- (aucune collision).
   ========================================================================== */

/* ── Transitions entre pages (Chrome, Edge, Safari 18+ ; ignoré ailleurs) ── */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .38s; animation-timing-function: cubic-bezier(.2,.8,.2,1); }
.topbar { view-transition-name: sw-topbar; }

/* ── Détails globaux ── */
::selection { background: rgba(0,113,227,.16); color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
[id] { scroll-margin-top: 84px; }
html { text-rendering: optimizeLegibility; }

/* Chiffres : Syne a des chiffres très larges et peu lisibles en gras → Manrope tabulaire. */
.pcard-price, .bgt-stat-v, .sc-val, .bp-price, .bgt-row-reste, .step-num, .bx-cd-v, .bx-rsvp-count {
  font-family: 'Manrope', system-ui, sans-serif !important;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1, "ss01" 1;
}
.pcard-price, .bp-price { font-weight: 800 !important; letter-spacing: -.05em !important; }
.bgt-stat-v { white-space: nowrap; font-weight: 800; letter-spacing: -.03em; }

/* ── Barre de progression de lecture + en-tête qui se densifie au défilement ── */
.sw-progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none;
  background: linear-gradient(90deg, #0071E3, #5E5CE6 60%, #2997FF); transform-origin: 0 50%; transform: scaleX(0); }
.topbar { transition: background .35s ease, box-shadow .35s ease, border-color .35s ease; }
.topbar-inner { transition: padding .35s cubic-bezier(.2,.8,.2,1); }
.topbar.is-scrolled { background: rgba(255,255,255,.72); border-bottom-color: transparent;
  box-shadow: 0 1px 0 rgba(29,29,31,.06), 0 10px 30px -18px rgba(29,29,31,.25); }
.topbar.is-scrolled .topbar-inner { padding-top: 11px; padding-bottom: 11px; }

/* ── Titres : révélation ligne par ligne (masque) ── */
.sw-line { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .08em .14em; margin: 0 -.08em -.14em; }
.sw-line > .sw-line-in { display: inline-block; will-change: transform; }

/* ── Boutons : relief doux + « magnétisme » (translate posé par sw-2026.js) ── */
.btn, .nav-cta, .tpl-mega, .crea-cta, .pcard-btn, .bp-btn { will-change: transform; }
.btn-primary { background: linear-gradient(180deg, #1A84F0 0%, #0071E3 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 1px 2px rgba(0,60,140,.25), 0 10px 26px -10px rgba(0,113,227,.55); }
.btn-primary:hover { background: linear-gradient(180deg, #2B90F5 0%, #0A7AEA 100%); }
.btn-ghost { background: rgba(255,255,255,.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn svg, .tpl-mega svg { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.btn:hover svg { transform: translateX(3px); }

/* ── HERO : grain discret + scène produit (ordinateur + téléphone) ── */
/* La scène déborde volontairement sur la section suivante (overflow-y visible, x coupé). */
.hero { overflow-x: clip; overflow-y: visible; }
.hero:has(.hero-stage) { padding-bottom: 0; z-index: 2; }
.hero-inner { z-index: 2; }
.hero .sw-aurora { position: absolute; inset: 0 -10% auto; height: 100%; pointer-events: none; z-index: 0; opacity: .9;
  background:
    radial-gradient(40% 35% at 22% 18%, rgba(0,113,227,.16), transparent 70%),
    radial-gradient(30% 30% at 82% 12%, rgba(255,55,95,.10), transparent 70%),
    radial-gradient(35% 30% at 60% 70%, rgba(94,92,230,.10), transparent 70%);
  filter: blur(10px); animation: swAurora 18s ease-in-out infinite alternate; }
@keyframes swAurora { to { transform: translate3d(2%, 3%, 0) scale(1.06); } }

.hero-stage { position: relative; z-index: 3; max-width: 1080px; margin: 64px auto -170px; padding: 0 32px;
  perspective: 1600px; }
.hs-rig { position: relative; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.hs-laptop { position: relative; margin: 0 auto; width: 86%; border-radius: 16px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgba(29,29,31,.08), 0 2px 4px rgba(0,0,0,.04), 0 30px 60px -20px rgba(15,30,70,.35), 0 80px 120px -60px rgba(0,113,227,.35); }
.hs-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: linear-gradient(#F7F7F9, #EFEFF3);
  border-bottom: 1px solid rgba(29,29,31,.06); }
.hs-bar i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.hs-bar i:nth-child(2) { background: #FEBC2E; } .hs-bar i:nth-child(3) { background: #28C840; }
.hs-url { margin: 0 auto; transform: translateX(-24px); display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 8px;
  background: #fff; border: 1px solid rgba(29,29,31,.07); font: 500 12px/1 'Manrope', sans-serif; color: var(--ivory2); }
.hs-url b { color: var(--ivory); font-weight: 600; }
.hs-screen { position: relative; aspect-ratio: 16 / 10; background: #F5F5F7; overflow: hidden; }
/* Changement de modèle : balayage net de haut en bas (pas de fondu qui superpose deux sites). */
.hs-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center;
  z-index: 0; clip-path: inset(0 0 100% 0); transform: scale(1.04);
  transition: clip-path 1.15s cubic-bezier(.77,0,.18,1), transform 2.4s cubic-bezier(.2,.8,.2,1); }
.hs-screen img.was { z-index: 1; clip-path: inset(0); transform: scale(1); }
.hs-screen img.on { z-index: 2; clip-path: inset(0); transform: scale(1); }
.hs-phone .hs-screen img { transition-delay: .14s; }
.hs-phone { position: absolute; right: 2%; bottom: -8%; width: 21%; aspect-ratio: 9 / 19.2; border-radius: 34px; padding: 9px;
  background: linear-gradient(145deg, #2a2a2e, #0d0d10); transform: translateZ(60px);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.12), 0 30px 60px -18px rgba(0,0,0,.55), 0 10px 20px -10px rgba(0,0,0,.4); }
.hs-phone .hs-screen { aspect-ratio: auto; height: 100%; border-radius: 26px; }
.hs-phone::before { content: ""; position: absolute; top: 15px; left: 50%; width: 28%; height: 13px; border-radius: 99px; background: #0d0d10;
  transform: translateX(-50%); z-index: 2; }
.hs-toast { position: absolute; left: 0; top: 22%; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px;
  border-radius: 16px; background: rgba(255,255,255,.86); backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 0 0 1px rgba(29,29,31,.06), 0 18px 40px -16px rgba(15,30,70,.35); transform: translateZ(90px);
  font-family: 'Manrope', sans-serif; text-align: start; min-width: 250px; }
.hs-toast-ic { width: 36px; height: 36px; border-radius: 11px; flex: none; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #30D158, #22A658); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.hs-toast-t { font-size: 13px; font-weight: 700; color: var(--ivory); line-height: 1.25; }
.hs-toast-s { font-size: 12px; color: var(--ivory2); }
.hs-toast.swap { animation: hsToast .9s cubic-bezier(.2,.8,.2,1); }
@keyframes hsToast { 0% { opacity: 0; transform: translateZ(90px) translateY(10px) scale(.96); } 100% { opacity: 1; transform: translateZ(90px); } }
.hs-name { position: absolute; left: 7%; bottom: 6%; z-index: 3; padding: 7px 13px; border-radius: 999px; font: 600 12px/1 'Manrope', sans-serif;
  color: #fff; background: rgba(15,15,20,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transform: translateZ(40px); }

@media (max-width: 768px) {
  .hero-stage { margin: 40px auto -70px; padding: 0 16px; }
  .hs-laptop { width: 100%; border-radius: 12px; }
  .hs-bar { height: 28px; padding: 0 10px; gap: 5px; } .hs-bar i { width: 8px; height: 8px; }
  .hs-url { font-size: 10px; padding: 4px 9px; transform: none; }
  .hs-phone { width: 28%; right: -2%; bottom: -14%; border-radius: 22px; padding: 6px; }
  .hs-phone .hs-screen { border-radius: 17px; } .hs-phone::before { top: 10px; height: 8px; }
  .hs-toast { left: -2%; top: auto; bottom: -10%; min-width: 0; padding: 9px 12px 9px 9px; gap: 9px; border-radius: 13px; }
  .hs-toast-ic { width: 28px; height: 28px; border-radius: 9px; }
  .hs-toast-t { font-size: 11px; } .hs-toast-s { font-size: 10px; }
  .hs-name { display: none; }
}

/* ── TEMPLATES : rail horizontal de vraies captures ── */
.tr-wrap { position: relative; margin: 8px 0 44px; }
.tr-rail { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(32px, calc((100vw - 1176px) / 2));
  padding: 12px max(32px, calc((100vw - 1176px) / 2)) 28px; scrollbar-width: none; cursor: grab; text-align: start;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.tr-rail::-webkit-scrollbar { display: none; }
.tr-rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.tr-rail.is-dragging a { pointer-events: none; }
.tr-card { position: relative; flex: 0 0 auto; width: min(400px, 78vw); scroll-snap-align: start; text-decoration: none; color: inherit;
  -webkit-tap-highlight-color: transparent; }
.tr-shot { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: var(--s1);
  box-shadow: 0 0 0 1px rgba(29,29,31,.07), 0 18px 40px -24px rgba(15,30,70,.35);
  transition: transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .6s cubic-bezier(.2,.8,.2,1); }
.tr-shot > img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.tr-mini { position: absolute; right: 12px; bottom: -14px; width: 23%; aspect-ratio: 9 / 19.2; border-radius: 14px; padding: 4px;
  background: #111; box-shadow: 0 14px 28px -10px rgba(0,0,0,.5); transform: translateY(14px); opacity: 0;
  transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .4s; }
.tr-mini img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 10px; }
.tr-live { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px;
  font: 600 11px/1 'Manrope', sans-serif; color: #fff; background: rgba(15,15,20,.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(-4px); transition: opacity .35s, transform .35s; }
.tr-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #30D158; box-shadow: 0 0 0 3px rgba(48,209,88,.25); }
.tr-card:hover .tr-shot, .tr-card:focus-visible .tr-shot { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(29,29,31,.08), 0 30px 60px -26px rgba(15,30,70,.45); }
.tr-card:hover .tr-shot > img { transform: scale(1.035); }
.tr-card:hover .tr-mini, .tr-card:focus-visible .tr-mini { transform: translateY(0); opacity: 1; }
.tr-card:hover .tr-live, .tr-card:focus-visible .tr-live { opacity: 1; transform: none; }
.tr-cap { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 4px 0; }
.tr-name { font: 700 18px/1.2 'Syne', sans-serif; letter-spacing: -.01em; color: var(--ivory); }
.tr-desc { font: 400 13.5px/1.5 'Manrope', sans-serif; color: var(--ivory2); margin-top: 5px; }
.tr-dots { display: flex; gap: 5px; padding-top: 6px; flex: none; }
.tr-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.tr-nav { display: flex; justify-content: center; gap: 10px; margin-top: 6px; }
.tr-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-mid); background: #fff; color: var(--ivory); cursor: pointer;
  display: grid; place-items: center; transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s, opacity .25s; }
.tr-btn:hover { border-color: rgba(29,29,31,.4); transform: translateY(-1px); }
.tr-btn:disabled { opacity: .35; cursor: default; transform: none; }
/* Les pastilles et le gros bouton restent, plus discrets, sous le rail. */
.templates .tpl-dots { display: none; }
.templates .tpl-mega { animation: none; padding: 17px 30px; font-size: 15px; }
@media (max-width: 600px) {
  .tr-rail { gap: 14px; padding-inline: 20px; scroll-padding-inline: 20px; -webkit-mask-image: none; mask-image: none; }
  .tr-mini { opacity: 1; transform: none; width: 22%; bottom: -10px; }
  .tr-live { opacity: 1; transform: none; }
  .tr-nav { display: none; }
}

/* ── FONCTIONNALITÉS : bento clair (les couleurs passent des fonds aux icônes) ── */
.features-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(190px, auto); gap: 16px; }
.features-grid .fcard { background: #fff !important; color: var(--ivory); border-radius: 26px; padding: 26px 24px;
  box-shadow: 0 0 0 1px rgba(29,29,31,.07), 0 1px 2px rgba(0,0,0,.03); isolation: isolate; cursor: default; }
.features-grid .fcard::before { inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), color-mix(in srgb, var(--fc) 13%, transparent), transparent 60%);
  opacity: 0; transition: opacity .4s; z-index: -1; }
.features-grid .fcard:hover::before { opacity: 1; }
.features-grid .fcard:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--fc) 30%, transparent), 0 24px 50px -28px color-mix(in srgb, var(--fc) 70%, transparent); }
.features-grid .fcard-icon { background: linear-gradient(145deg, color-mix(in srgb, var(--fc) 82%, #fff), var(--fc)); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 18px -8px var(--fc); }
.features-grid .fcard h3 { color: var(--ivory); font-size: 19px; }
.features-grid .fcard p { color: var(--ivory2); }
.features-grid .fcard:nth-child(1) { --fc: #0071E3; grid-column: span 2; grid-row: span 2; }
.features-grid .fcard:nth-child(2) { --fc: #5E5CE6; grid-column: span 2; }
.features-grid .fcard:nth-child(3) { --fc: #FF375F; }
.features-grid .fcard:nth-child(4) { --fc: #22A658; }
.features-grid .fcard:nth-child(5) { --fc: #FF9F0A; }
.features-grid .fcard:nth-child(6) { --fc: #AF52DE; }
.features-grid .fcard:nth-child(7) { --fc: #5856D6; }
.features-grid .fcard:nth-child(8) { --fc: #00A8A0; }

/* Mini-interfaces vivantes dans les grandes tuiles */
.bx-rsvp { margin-top: auto; padding-top: 22px; display: grid; gap: 8px; }
.bx-row { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 14px; background: var(--s1);
  font: 500 14px/1.2 'Manrope', sans-serif; color: var(--ivory); }
.bx-av { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 700 12px/1 'Manrope', sans-serif; color: #fff; }
.bx-row small { display: block; font-size: 12px; color: var(--ivory2); font-weight: 400; margin-top: 2px; }
.bx-pill { margin-left: auto; padding: 5px 10px; border-radius: 999px; font: 700 11px/1 'Manrope', sans-serif; white-space: nowrap;
  color: #1C8C4A; background: rgba(48,209,88,.14); }
.bx-pill.wait { color: #B26B00; background: rgba(255,159,10,.14); }
.bx-row { opacity: 0; transform: translateY(8px); }
.bx-row.in { opacity: 1; transform: none; transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.bx-rsvp-foot { display: flex; align-items: center; gap: 12px; margin-top: 6px; font: 500 13px/1 'Manrope', sans-serif; color: var(--ivory2); }
.bx-rsvp-bar { flex: 1; height: 6px; border-radius: 99px; background: var(--s2); overflow: hidden; }
.bx-rsvp-bar span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #0071E3, #2997FF); transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.bx-rsvp-count { font-weight: 800; color: var(--ivory); }
.bx-cd { display: flex; gap: 10px; margin-top: auto; padding-top: 18px; }
.bx-cd-c { flex: 1; text-align: center; padding: 12px 6px 10px; border-radius: 14px; background: var(--s1); }
.bx-cd-v { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.04em; color: var(--ivory); line-height: 1; }
.bx-cd-k { display: block; margin-top: 6px; font: 600 10px/1 'Manrope', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--ivory2); }
.bx-langs { display: flex; gap: 8px; margin-top: auto; padding-top: 18px; }
.bx-lang { padding: 8px 12px; border-radius: 12px; background: var(--s1); font: 600 13px/1 'Manrope', sans-serif; color: var(--ivory); }
.bx-lang.on { background: color-mix(in srgb, var(--fc) 14%, #fff); color: color-mix(in srgb, var(--fc) 80%, #000); }
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid .fcard:nth-child(1), .features-grid .fcard:nth-child(2) { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 600px) {
  .features-grid { gap: 10px; grid-auto-rows: auto; }
  .features-grid .fcard { border-radius: 20px; padding: 20px 18px; }
  .bx-cd-v { font-size: 24px; } .bx-cd { gap: 6px; }
}

/* ── ÉTAPES : cartes claires, la couleur passe dans l'icône et le numéro ── */
.how .step { background: #fff !important; color: var(--ivory); z-index: 1; box-shadow: 0 0 0 1px rgba(29,29,31,.07), 0 18px 40px -30px rgba(15,30,70,.4); }
.how .step::before { display: none; }
.how .step h3 { color: var(--ivory); }
.how .step p { color: var(--ivory2); }
.how .step-1 { --fc: #22A658; } .how .step-2 { --fc: #AF52DE; } .how .step-3 { --fc: #0071E3; }
.how .step-icon { background: linear-gradient(145deg, color-mix(in srgb, var(--fc) 80%, #fff), var(--fc)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 22px -10px var(--fc); }
.how .step-num { color: color-mix(in srgb, var(--fc) 16%, #fff); font-weight: 800; -webkit-text-stroke: 0; }
.how .step:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--fc) 30%, transparent), 0 26px 50px -30px color-mix(in srgb, var(--fc) 80%, transparent); }

/* ── TARIFS : bordure animée sur l'offre recommandée ── */
@property --sw-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.pcard-featured { position: relative; border-color: transparent !important; box-shadow: 0 24px 56px -20px rgba(0,113,227,.35) !important; }
.pcard-featured::before { content: ""; position: absolute; inset: -2px; border-radius: 22px; padding: 2px; z-index: 0; pointer-events: none;
  background: conic-gradient(from var(--sw-angle), #0071E3, #5E5CE6, #2997FF, #0071E3);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: swSpin 6s linear infinite; }
@keyframes swSpin { to { --sw-angle: 360deg; } }
.pcard { overflow: visible; }
.pcard-head { border-radius: 20px 20px 0 0; }

/* ── Divers ── */
.drawer { visibility: hidden; transition: transform .55s cubic-bezier(.85,.05,.2,1), visibility 0s linear .55s; }
.drawer.is-open { visibility: visible; transition: transform .55s cubic-bezier(.85,.05,.2,1), visibility 0s; }
.templates { padding-top: 290px; padding-bottom: 72px; }
.templates + .features { padding-top: 72px; }
@media (max-width: 768px) { .templates { padding-top: 150px; } }

@media (prefers-reduced-motion: reduce) {
  .hero .sw-aurora, .pcard-featured::before { animation: none; }
  .hs-screen img { transition: opacity .01s; transform: none !important; }
  .bx-row { opacity: 1; transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ── /budget : cartes de prix alignées (titres sur 2 lignes réservées) ── */
.bp-card h3 { min-height: 2.5em; line-height: 1.25; text-wrap: balance; }
.bp-price { font-size: 56px !important; }
