/* ==========================================================================
   Extensions : animations, page de bienvenue, accueil dynamique, formulaires
   (chargé après style.css — n'écrase que ce qui est nécessaire)
   ========================================================================== */
:root { --ease: cubic-bezier(.22, .8, .24, 1); --gold-glow: 0 10px 30px rgba(184, 137, 59, .35); }
html { scroll-behavior: smooth; }
::selection { background: var(--gold-2); color: var(--navy); }
svg.fill { fill: currentColor; stroke: none; width: 16px; height: 16px; }

h1, h2, .wl-title { text-wrap: balance; }

/* ---------- Apparition au défilement ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal][data-delay="1"] { transition-delay: .1s; }
.js [data-reveal][data-delay="2"] { transition-delay: .2s; }
.js [data-reveal][data-delay="3"] { transition-delay: .3s; }
.js [data-reveal="left"] { transform: translateX(-34px); }
.js [data-reveal="right"] { transform: translateX(34px); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal].in { transform: none; }

/* ---------- En-tête, progression, retour en haut ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 80; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); box-shadow: 0 0 10px rgba(216, 176, 106, .7); }
.topbar { transition: box-shadow .3s, min-height .3s; }
.topbar.scrolled { box-shadow: 0 8px 28px rgba(29, 42, 68, .12); }
.topbar.scrolled .topbar-in { min-height: 58px; }
.topbar-in { transition: min-height .3s var(--ease); }
.brand-logo { background: #fff !important; padding: 0; overflow: hidden; border: 2px solid var(--gold-2); width: 44px !important; height: 44px !important; border-radius: 50% !important; transition: transform .5s var(--ease); }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand:hover .brand-logo { transform: rotate(8deg) scale(1.06); }
.mainnav a { position: relative; transition: color .2s, background .2s; }
.mainnav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); border-radius: 2px; }
.mainnav a:hover::after, .mainnav a.on::after { transform: scaleX(1); }
.to-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; z-index: 70;
  background: var(--navy); color: var(--gold-2); box-shadow: 0 10px 26px rgba(29, 42, 68, .35); display: grid; place-items: center;
  opacity: 0; transform: translateY(14px); transition: .3s var(--ease); }
.to-top.show { opacity: 1; transform: none; }
.to-top svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.to-top:hover { background: var(--gold); color: #fff; }

/* ---------- Boutons : reflet + élévation ---------- */
.btn { position: relative; overflow: hidden; transition: transform .2s var(--ease), box-shadow .25s, background .2s, border-color .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-gold:hover { box-shadow: var(--gold-glow); }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(29, 42, 68, .25); }
.btn::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); transition: left .6s var(--ease); pointer-events: none; }
.btn:hover::after { left: 130%; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn svg:not(.fill) { width: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-glass { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .45); color: #fff; backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255, 255, 255, .26); color: #fff; }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading::before { content: ""; width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Cartes interactives ---------- */
.card, .ev, .prog, .stat, .panel { transition: transform .35s var(--ease), box-shadow .35s, border-color .3s; }
.card:hover, .ev:hover, .prog:hover, .stat:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(29, 42, 68, .12); border-color: var(--gold-2); }
.card-media { transition: transform .8s var(--ease); }
.card { position: relative; }
.card:hover .card-media { transform: scale(1.06); }
.card > a:first-child, .card > .ph { overflow: hidden; display: block; }
.ev-date { transition: background .3s, transform .3s var(--ease); }
.ev:hover .ev-date { background: var(--gold); transform: rotate(-3deg) scale(1.05); }
.ev:hover .ev-date small { color: #fff; }
.filters a { transition: .2s var(--ease); }
.filters a:hover { transform: translateY(-2px); border-color: var(--navy); color: var(--navy); }
.tag { position: relative; padding-left: 16px; }
.tag::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--gold); }
.places { display: inline-flex; align-items: center; gap: 6px; }
.places::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 2s infinite; }
.places.low::before { background: var(--bad); }
.section-head h2 { position: relative; padding-bottom: 12px; }
.section-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 3px; background: var(--gold); border-radius: 3px; transition: width .6s var(--ease); }
.section-head.in h2::after, .js .section-head:not([data-reveal]) h2::after { width: 46px; }

/* ---------- En-têtes de page animés ---------- */
.page-head { isolation: isolate; }
.page-head::after { content: ""; position: absolute; inset: -40% -10% auto auto; width: 520px; height: 520px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(216, 176, 106, .28), transparent 65%); animation: floaty 9s ease-in-out infinite; }
.page-head h1, .page-head p, .page-head .crumbs { animation: rise .8s var(--ease) both; }
.page-head p { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 50% { transform: translate(-30px, 30px) scale(1.08); } }

/* ---------- Accueil : héros diaporama ---------- */
.hero-slides { min-height: min(86vh, 760px); display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg .slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.02); transition: opacity 1.6s ease; }
.hero-bg .slide.on { opacity: 1; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14); } }
.hero-slides::before { z-index: 1; }
.hero-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(20, 32, 58, .92) 0%, rgba(20, 32, 58, .72) 45%, rgba(20, 32, 58, .25) 100%); }
.hero-slides .wrap { position: relative; z-index: 2; width: min(1180px, 100% - 32px); }
.hero-slides .hero-glyph { z-index: 1; }
.hero-in { padding: 100px 0 110px; }
.hero-in h1 { text-shadow: 0 4px 30px rgba(0, 0, 0, .35); }
.hero-dots { position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .4); cursor: pointer; padding: 0; transition: .4s var(--ease); }
.hero-dots button.on { width: 30px; background: var(--gold-2); }

.stats-band { background: var(--navy); color: #fff; position: relative; z-index: 3; margin-top: -1px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.count { padding: 30px 18px; text-align: center; border-right: 1px solid rgba(255, 255, 255, .1); }
.count:last-child { border-right: 0; }
.count b { display: block; font-family: var(--serif); font-size: clamp(34px, 4.5vw, 52px); line-height: 1; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.count span { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }

.mass-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.mass-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.mass-list li { display: flex; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); transition: background .25s, padding .25s var(--ease); }
.mass-list li:last-child { border-bottom: 0; }
.mass-list li:hover { background: var(--gold-soft); padding-left: 34px; }
.mass-list b { font-family: var(--serif); color: var(--navy); font-size: 18px; }
.mass-list span { color: var(--ink-2); font-weight: 500; text-align: right; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.g-item { position: relative; overflow: hidden; border-radius: 16px; display: block; background: var(--navy); }
.g-item.wide { grid-column: span 2; }
.g-item.tall { grid-row: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .5s; }
.g-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 32, 58, .85), transparent 55%); opacity: .75; transition: opacity .4s; }
.g-item span { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 12px; color: #fff; font-weight: 600; font-size: 14.5px; transform: translateY(8px); opacity: 0; transition: .4s var(--ease); }
.g-item:hover img { transform: scale(1.1); }
.g-item:hover span, .g-item:focus-visible span { transform: none; opacity: 1; }
.g-item:hover::after { opacity: 1; }

.cta-band { background: linear-gradient(120deg, var(--gold-soft), #fff 70%); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 28px solid rgba(184, 137, 59, .12); }

/* ---------- Lightbox & modale vidéo ---------- */
.lightbox, .vmodal { position: fixed; inset: 0; z-index: 120; background: rgba(10, 16, 30, .92); display: grid; place-items: center; padding: 20px; animation: fadein .25s ease; }
.lightbox figure { margin: 0; max-width: min(1100px, 92vw); text-align: center; }
.lightbox img { max-height: 78vh; max-width: 100%; border-radius: 12px; margin: 0 auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); animation: pop .35s var(--ease); }
.lightbox figcaption { color: #fff; margin-top: 14px; font-weight: 500; }
.lb-close, .vm-close { position: absolute; top: 16px; right: 20px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; transition: .2s; z-index: 2; }
.lb-close:hover, .vm-close:hover { background: var(--gold); }
.lb-nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 34px; cursor: pointer; transition: .2s; }
.lb-nav:hover { background: var(--gold); }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.vm-box { position: relative; width: min(1000px, 94vw); background: #000; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: pop .35s var(--ease); }
.vm-box video { width: 100%; max-height: 82vh; display: block; background: #000; }
.vm-close { top: 8px; right: 8px; width: 40px; height: 40px; font-size: 26px; }
@keyframes fadein { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.92); } }

/* ==========================================================================
   Page de bienvenue
   ========================================================================== */
body.welcome { background: #0f1830; color: #fff; min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }
.wl-bg { position: fixed; inset: 0; z-index: 0; background: #0f1830; }
.wl-bg .wl-video, .wl-bg .wl-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wl-bg .wl-video { opacity: 0; transition: opacity 1.2s; }
.wl-bg .wl-video.ready { opacity: 1; }
.wl-shade { position: absolute; inset: 0; background:
  radial-gradient(900px 500px at 50% 45%, rgba(15, 24, 48, .25), rgba(15, 24, 48, .78) 75%),
  linear-gradient(to bottom, rgba(15, 24, 48, .7), rgba(15, 24, 48, .35) 40%, rgba(15, 24, 48, .85)); }
.wl-particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.wl-main { position: relative; z-index: 2; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: 22px clamp(16px, 4vw, 48px) 20px; }
.wl-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; animation: rise .9s var(--ease) both; }
.wl-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(8px); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #fff; text-decoration: none; }
.wl-live { background: rgba(178, 58, 58, .85); border-color: transparent; }
.wl-live:hover { color: #fff; background: var(--bad); }
.wl-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px 0; max-width: 860px; margin: 0 auto; }
.wl-logo { position: relative; width: 150px; height: 150px; border-radius: 50%; margin-bottom: 20px; animation: logoin 1.2s var(--ease) both, bob 6s ease-in-out 1.2s infinite; }
.wl-logo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid var(--gold-2); background: #fff; box-shadow: 0 18px 50px rgba(0, 0, 0, .5); }
.wl-logo::before, .wl-logo::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(216, 176, 106, .6); animation: ring 3.2s ease-out infinite; }
.wl-logo::after { animation-delay: 1.6s; }
@keyframes logoin { from { opacity: 0; transform: scale(.4) rotate(-25deg); } }
@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
.wl-kicker { font-size: 14px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-2); margin: 0 0 6px; font-weight: 600; animation: rise .9s var(--ease) .35s both; }
.wl-title { font-size: clamp(34px, 6.4vw, 72px); color: #fff; line-height: 1.08; margin: 0 0 14px; text-shadow: 0 6px 40px rgba(0, 0, 0, .55); }
.wl-title .ch { display: inline-block; opacity: 0; transform: translateY(40px) rotate(4deg); animation: chin .8s var(--ease) forwards; }
.wl-title .sp { display: inline-block; width: .28em; }
@keyframes chin { to { opacity: 1; transform: none; } }
.wl-rotator { font-family: var(--serif); font-size: clamp(19px, 2.6vw, 28px); color: rgba(255, 255, 255, .92); margin: 0 0 12px; animation: rise .9s var(--ease) 1.1s both; }
.wl-rotator [data-rotate] { color: var(--gold-2); font-style: italic; display: inline-block; min-width: 4.5ch; transition: opacity .4s, transform .4s var(--ease); }
.wl-rotator [data-rotate].out { opacity: 0; transform: translateY(10px); }
.wl-lead { max-width: 600px; color: rgba(255, 255, 255, .78); font-size: 16.5px; animation: rise .9s var(--ease) 1.3s both; }
.wl-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 12px; animation: rise .9s var(--ease) 1.5s both; }
.wl-enter { box-shadow: 0 0 0 0 rgba(216, 176, 106, .6); animation: glow 2.4s infinite; }
@keyframes glow { 70% { box-shadow: 0 0 0 16px rgba(216, 176, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(216, 176, 106, 0); } }
.wl-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; margin-top: 22px; animation: rise .9s var(--ease) 1.7s both; }
.wl-links a { color: rgba(255, 255, 255, .8); font-size: 14px; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); padding-bottom: 2px; transition: .2s; }
.wl-links a:hover { color: var(--gold-2); border-color: var(--gold-2); }
.wl-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; animation: rise .9s var(--ease) 1.9s both; }
.wl-info { display: flex; gap: 12px; flex-wrap: wrap; }
.wl-info div { background: rgba(15, 24, 48, .55); border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; padding: 10px 16px; backdrop-filter: blur(8px); max-width: 320px; }
.wl-info small { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: 10.5px; color: var(--gold-2); font-weight: 600; }
.wl-info b { font-size: 13.5px; font-weight: 500; line-height: 1.35; display: block; }
.wl-pause { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; backdrop-filter: blur(8px); }
.wl-pause:hover { background: var(--gold); }
.wl-pause svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.wl-pause .i-play { display: none; fill: currentColor; stroke: none; }
.wl-pause.paused .i-pause { display: none; }
.wl-pause.paused .i-play { display: block; }

/* ==========================================================================
   Formulaires
   ========================================================================== */
.form { gap: 18px; }
.field label, .field .label { display: flex; align-items: center; gap: 6px; letter-spacing: .01em; }
.field label .req, .label .req { color: var(--bad); }
input:not([type]), input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time],
input[type=datetime-local], input[type=url], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--ink); padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fdfcfa;
  transition: border-color .2s, box-shadow .2s, background .2s, transform .2s var(--ease); }
input:not([type]):hover, input:hover, select:hover, textarea:hover { border-color: #bdb5a4; }
input:not([type]):focus, input:focus, select:focus, textarea:focus { background: #fff; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(184, 137, 59, .16); }
select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d2a44' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.field:has(.err) input:not([type=checkbox]):not([type=radio]), .field:has(.err) select, .field:has(.err) textarea { border-color: var(--bad); background: #fffafa; }
.field:has(.err) input:focus, .field:has(.err) textarea:focus { box-shadow: 0 0 0 4px rgba(178, 58, 58, .14); }
.field .err { display: flex; align-items: center; gap: 6px; animation: shake .4s; }
.field .err::before { content: "!"; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; flex-shrink: 0; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.field input.is-ok, .field input:valid:not(:placeholder-shown):focus { border-color: var(--ok); }
.field .hint.ok { color: var(--ok); } .field .hint.ko { color: var(--bad); }
.counter { align-self: flex-end; font-size: 12px; color: var(--ink-3); margin-top: -2px; }

/* Cases à cocher, interrupteurs, pastilles */
.check { padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .2s, background .2s; align-items: center; }
.check:hover { border-color: var(--gold-2); background: #fffdf8; }
.check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; border: 2px solid var(--line-2); border-radius: 7px; background: #fff; display: grid; place-items: center; margin: 0; transition: .2s var(--ease); cursor: pointer; }
.check input::after { content: ""; width: 11px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform .2s var(--ease); }
.check input:checked { background: var(--navy); border-color: var(--navy); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.check:has(input:checked) { border-color: var(--navy-3); background: #f6f8fc; }
.wa-note .check { border: 0; background: none; padding: 0; }
.wa-note .check:hover, .wa-note .check:has(input:checked) { background: none; border: 0; }
.wa-note .check input:checked { background: var(--wa); border-color: var(--wa); }
.wa-note { border-radius: 14px; padding: 14px 16px; }
.chip span { transition: .2s var(--ease); }
.chip:hover span { border-color: var(--navy-3); transform: translateY(-2px); }
.chip input:checked + span { box-shadow: 0 8px 18px rgba(29, 42, 68, .25); transform: translateY(-1px); }
.chip input:checked + span::before { content: "✓ "; }
input[type=radio] { accent-color: var(--navy); }

/* Champ mot de passe */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; cursor: pointer; color: var(--ink-3); border-radius: 10px; display: grid; place-items: center; }
.pw-toggle:hover { color: var(--navy); background: var(--ivory); }
.pw-toggle svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pw-toggle .i-off { display: none; }
.pw-toggle.on .i-on { display: none; } .pw-toggle.on .i-off { display: block; }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 2px; }
.pw-meter i { height: 5px; border-radius: 5px; background: var(--line); transition: background .3s; }
.pw-meter[data-s="1"] i:nth-child(-n+1) { background: var(--bad); }
.pw-meter[data-s="2"] i:nth-child(-n+2) { background: #d98a1f; }
.pw-meter[data-s="3"] i:nth-child(-n+3) { background: #b5b02c; }
.pw-meter[data-s="4"] i { background: var(--ok); }
.pw-label { font-size: 12.5px; color: var(--ink-3); min-height: 18px; }

/* Zone de dépôt de fichier */
.dropzone { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 2px dashed var(--line-2); border-radius: 14px; background: #fdfcfa; transition: .25s var(--ease); cursor: pointer; }
.dropzone:hover, .dropzone.drag { border-color: var(--gold); background: var(--gold-soft); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.dropzone svg { width: 34px; flex-shrink: 0; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dropzone strong { display: block; font-size: 14px; color: var(--navy); }
.dropzone small { color: var(--ink-3); font-size: 12.5px; }
.dropzone.has-file { border-style: solid; border-color: var(--ok); background: var(--ok-bg); }
.dropzone.has-file svg { stroke: var(--ok); }

/* Panneaux de formulaire */
.panel { border-radius: 18px; box-shadow: var(--shadow); }
.panel form { margin-top: 6px; }
aside .panel > h3:first-child, .layout-side > div > .panel > h2:first-child { position: relative; padding-bottom: 10px; margin-bottom: 18px; }
aside .panel > h3:first-child::after, .layout-side > div > .panel > h2:first-child::after { content: ""; position: absolute; left: 0; bottom: 0; width: 38px; height: 3px; border-radius: 3px; background: var(--gold); }
.amounts .chip span { padding: 15px 10px; font-family: var(--serif); font-size: 17px; }
[data-custom-amount] { font-size: 16px; }

/* ---------- Inscription / connexion : mise en page à deux colonnes ---------- */
.auth-split { display: grid; grid-template-columns: 5fr 7fr; max-width: 1080px; margin: 40px auto 20px; border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(29, 42, 68, .14); }
.auth-split.narrow { max-width: 920px; grid-template-columns: 1fr 1fr; }
.auth-aside { position: relative; color: #fff; padding: 40px 34px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 420px; isolation: isolate;
  background: var(--navy) center/cover no-repeat; }
.auth-aside::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(20, 32, 58, .95) 12%, rgba(20, 32, 58, .55) 60%, rgba(20, 32, 58, .35)); }
.auth-aside img.logo { position: absolute; top: 28px; left: 34px; width: 74px; height: 74px; border-radius: 50%; border: 3px solid var(--gold-2); background: #fff; object-fit: cover; }
.auth-aside h2 { color: #fff; font-size: 26px; margin: 0 0 8px; }
.auth-aside p { color: rgba(255, 255, 255, .82); margin: 0 0 18px; }
.auth-aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.auth-aside li { display: flex; gap: 10px; align-items: flex-start; }
.auth-aside li::before { content: "✓"; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.auth-main { padding: 38px 40px; }
.auth-main .eyebrow { margin-bottom: 6px; }
.auth-main h1 { font-size: 30px; margin-bottom: 18px; }
.auth-split .panel { border: 0; box-shadow: none; padding: 0 !important; background: none; }

/* Assistant d'inscription : étapes reliées + barre de progression */
.steps { position: relative; gap: 0; margin-bottom: 30px; }
.steps::before { content: ""; position: absolute; top: 14px; left: 12.5%; right: 12.5%; height: 3px; background: var(--line); border-radius: 3px; }
.steps::after { content: ""; position: absolute; top: 14px; left: 12.5%; height: 3px; width: calc(var(--p, 0) * 75%); background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 3px; transition: width .6s var(--ease); }
.steps li { z-index: 1; transition: color .3s; }
.steps li::before { transition: .35s var(--ease); }
.steps li.on::before { box-shadow: 0 0 0 6px rgba(29, 42, 68, .12); transform: translateX(-50%) scale(1.1); }
.steps li.done::before { transform: translateX(-50%); }
.steps li { cursor: default; }
[data-step] { animation: stepin .5s var(--ease); }
@keyframes stepin { from { opacity: 0; transform: translateX(24px); } }
.step-actions { margin-top: 12px; }
.step-actions .btn { min-width: 130px; }
.wiz-recap { display: grid; gap: 6px; padding: 14px 16px; border-radius: 12px; background: var(--gold-soft); border: 1px solid #ead9b6; font-size: 14px; }
.wiz-recap b { color: var(--navy); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .mass-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 860px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .count:nth-child(2) { border-right: 0; }
  .count:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .auth-split, .auth-split.narrow { grid-template-columns: 1fr; margin: 16px auto; }
  .auth-aside { min-height: 0; padding: 120px 26px 26px; }
  .auth-main { padding: 28px 22px; }
  .hero-shade { background: linear-gradient(to top, rgba(20, 32, 58, .92), rgba(20, 32, 58, .6)); }
  .hero-in { padding: 70px 0 80px; }
  .wl-bottom { flex-direction: column-reverse; align-items: stretch; }
  .wl-pause { align-self: flex-end; }
}
@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 10px; }
  .g-item span { opacity: 1; transform: none; font-size: 12.5px; left: 10px; bottom: 8px; }
  .g-item.wide { grid-column: span 2; }
  .wl-logo { width: 112px; height: 112px; }
  .wl-info div { flex: 1 1 140px; }
  .wl-actions .btn { width: 100%; }
  .lb-nav { width: 42px; height: 42px; font-size: 28px; }
  .steps li { font-size: 0; }
  .mass-list li { padding: 14px 16px; flex-direction: column; gap: 2px; }
  .mass-list span { text-align: left; }
}

/* ---------- Accessibilité : réduction des animations ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .wl-title .ch { opacity: 1; transform: none; }
}
