/* ==========================================================================
   PRÉPA SUCCÈS — animations & finitions responsive (chargé après app.css)
   Tout est neutralisé si l'utilisateur demande « moins d'animations ».
   ========================================================================== */

/* ---------- barre de progression de lecture ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--gold), #ffd36b); z-index: 100; transition: width .1s linear; }

/* ---------- barre utilitaire (style Pigier) ---------- */
.utilbar { background: var(--navy-900); color: #dbe6f8; font-size: .8rem; }
.utilbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .4rem 0; flex-wrap: wrap; }
.utilbar a { color: #dbe6f8; text-decoration: none; font-weight: 600; }
.utilbar a:hover { color: var(--gold); }
.utilbar .u-left, .utilbar .u-right { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.utilbar .u-btn { background: var(--gold); color: var(--navy-950) !important; padding: .28rem .8rem; border-radius: 999px; font-weight: 800; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; transition: transform .15s, background .15s; }
.utilbar .u-btn:hover { background: #ffc24f; transform: translateY(-1px); }
.utilbar .u-btn.alt { background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff !important; }
.utilbar .u-btn.alt:hover { background: #fff; color: var(--navy-900) !important; }
@media (max-width: 860px) { .utilbar { display: none; } }

/* bandeau d'annonce défilant */
.topbar { overflow: hidden; white-space: nowrap; padding: .5rem 0; }
.topbar .ticker { display: inline-block; padding-left: 100%; animation: ticker 28s linear infinite; }
.topbar:hover .ticker { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-100%); } }
@media (max-width: 700px) { .topbar { font-size: .78rem; } }

/* ---------- en-tête qui se réduit ---------- */
.site-header { transition: box-shadow .25s, background .25s; }
.site-header .brand img { transition: width .25s, height .25s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(12,39,80,.14); }
.site-header.scrolled .brand img { width: 38px; height: 38px; }
.nav a.link { position: relative; background: none !important; }
.nav a.link::after { content: ''; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a.link:hover::after, .nav a.link.active::after { transform: scaleX(1); }
.nav a.link.active, .nav a.link:hover { color: var(--navy-900); }
.nav-backdrop { position: fixed; inset: 0; background: rgba(8,26,54,.55); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 55; }
.nav-backdrop.show { opacity: 1; pointer-events: auto; }
.burger span { transition: transform .25s, opacity .2s; }

/* ---------- hero animé ---------- */
.hero { isolation: isolate; }
.hero .shape { position: absolute; border-radius: 50%; z-index: 0; pointer-events: none; filter: blur(2px); }
.hero .s1 { width: 340px; height: 340px; right: -90px; top: -90px; background: radial-gradient(circle, rgba(240,168,26,.35), transparent 70%); animation: float 9s ease-in-out infinite; }
.hero .s2 { width: 260px; height: 260px; left: -70px; bottom: -80px; background: radial-gradient(circle, rgba(42,108,182,.55), transparent 70%); animation: float 11s ease-in-out infinite reverse; }
.hero .s3 { width: 14px; height: 14px; left: 52%; top: 18%; background: var(--gold); opacity: .6; animation: float 6s ease-in-out infinite; }
.hero .s4 { width: 10px; height: 10px; left: 8%; top: 30%; background: #fff; opacity: .35; animation: float 7s ease-in-out infinite .8s; }
@keyframes float { 0%, 100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-22px) translateX(10px); } }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; z-index: 1; }
.hero-wave svg { width: 100%; height: 46px; display: block; }

.hero-slides { position: relative; min-height: 22rem; }
.hero-slide { position: absolute; inset: 0 auto auto 0; width: 100%; opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity .7s, transform .7s, visibility .7s; }
.hero-slide.active { position: relative; opacity: 1; visibility: visible; transform: none; }
.hero-slide h1, .hero-slide h2.hero-h { font-size: clamp(1.9rem, 5vw, 3.1rem); color: #fff; }
.hero-slide.active .eyebrow { animation: rise .7s both; }
.hero-slide.active h1, .hero-slide.active h2.hero-h { animation: rise .7s .12s both; }
.hero-slide.active p.lead { animation: rise .7s .24s both; }
.hero-slide.active .cta { animation: rise .7s .36s both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-dots { display: flex; gap: .5rem; margin-top: 1.6rem; position: relative; z-index: 2; }
.hero-dots button { width: 12px; height: 12px; padding: 0; border-radius: 999px; border: 0; background: rgba(255,255,255,.35); cursor: pointer; transition: width .3s, background .3s; }
.hero-dots button.active { width: 34px; background: var(--gold); }
.hero-card { animation: floatSoft 7s ease-in-out infinite; }
@keyframes floatSoft { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-card .logo { animation: pop 1s .3s both; }
@keyframes pop { from { opacity: 0; transform: scale(.6) rotate(-8deg); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) { .hero-slides { min-height: 25rem; } .hero-card { animation: none; } }
@media (max-width: 480px) { .hero-slides { min-height: 29rem; } .hero .cta .btn { width: 100%; } }

/* ---------- apparition au défilement ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="zoom"] { transform: scale(.92); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- indicateurs clés ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.kpi { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 1.6rem 1rem; text-align: center; transition: transform .25s, background .25s; }
.kpi:hover { transform: translateY(-6px); background: rgba(255,255,255,.1); }
.kpi b { display: block; font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--gold); line-height: 1; font-weight: 800; }
.kpi span { display: block; margin-top: .6rem; color: #d6e2f5; font-weight: 600; font-size: .92rem; }
@media (max-width: 860px) { .kpis { grid-template-columns: repeat(2, 1fr); } }

/* ---------- cartes, boutons, icônes ---------- */
.card.hover { transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s; }
.card.hover:hover { transform: translateY(-8px); border-color: var(--gold); box-shadow: 0 18px 40px rgba(12,39,80,.16); }
.icon-chip { transition: transform .35s; }
.card:hover .icon-chip { transform: rotate(-8deg) scale(1.15); }
.btn { position: relative; overflow: hidden; }
.btn-gold::after { content: ''; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); }
.btn-gold:hover::after { animation: shine .8s; }
@keyframes shine { to { left: 130%; } }
.btn:active { transform: scale(.97); }
.btn-pulse { animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(240,168,26,.6); } 70% { box-shadow: 0 0 0 16px rgba(240,168,26,0); } 100% { box-shadow: 0 0 0 0 rgba(240,168,26,0); } }
.section-title .kicker { position: relative; }
.section-title h2::after { content: ''; display: block; width: 0; height: 4px; border-radius: 4px; background: var(--gold); margin: .7rem auto 0; transition: width .8s .2s; }
.section-title.in h2::after, .js .section-title:not([data-reveal]) h2::after { width: 70px; }
.step { transition: transform .3s, box-shadow .3s; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-card { transition: transform .3s, box-shadow .3s; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pack { background-size: 200% 200%; animation: gradMove 10s ease infinite; }
@keyframes gradMove { 0%, 100% { background-position: 0 50%; } 50% { background-position: 100% 50%; } }

/* WhatsApp flottant + retour en haut */
.wa-float { animation: pulseGreen 2.6s infinite; }
@keyframes pulseGreen { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.to-top { position: fixed; right: 1rem; bottom: 4.8rem; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--navy-900); color: #fff; font-size: 1.2rem; cursor: pointer; box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .25s, transform .25s; z-index: 70; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--gold); color: var(--navy-950); }

/* en-têtes de pages internes */
.page-head h1, .page-head p { animation: rise .7s both; }
.page-head p { animation-delay: .15s; }

/* ---------- accessibilité & appareils ---------- */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: .5rem; background: var(--gold); color: var(--navy-950); padding: .6rem 1rem; border-radius: 8px; z-index: 200; font-weight: 800; }
.skip-link:focus { left: .5rem; }
img, video, iframe { max-width: 100%; height: auto; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
input, select, textarea, button { font-size: 16px; } /* évite le zoom automatique sur iPhone */
@media (max-width: 640px) {
  section.block { padding: 2.8rem 0; }
  .btn { padding: .85rem 1.2rem; min-height: 46px; }
  .pack { padding: 1.4rem; }
  .footer-grid { gap: 1.6rem; }
  .wa-float span { display: none; }
  .wa-float { padding: .85rem; border-radius: 50%; }
}
@media (max-width: 380px) { .container { width: 94%; } h1 { font-size: 1.7rem; } .countdown b { font-size: 1.3rem; } }
@supports (padding: max(0px)) { .site-footer { padding-bottom: max(1rem, env(safe-area-inset-bottom)); } }
@media (min-width: 1500px) { .container { width: min(1280px, 92%); } }
@media print { .utilbar, .topbar, .site-header, .wa-float, .to-top, .scroll-progress { display: none !important; } }

/* ---------- respect de « réduire les animations » ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero-slide { transition: none; }
}

/* Fenêtre d'information à l'ouverture */
.popup-overlay{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(8,26,54,.72);backdrop-filter:blur(3px);animation:popFade .25s ease both}
.popup-overlay[hidden]{display:none}
.popup-box{position:relative;background:#fff;color:#1b2540;border-radius:18px;max-width:520px;width:100%;max-height:88vh;overflow:auto;padding:30px 26px 24px;border-top:6px solid var(--gold);box-shadow:0 24px 70px rgba(0,0,0,.45);animation:popUp .35s cubic-bezier(.2,.9,.3,1.2) both}
.popup-box h2{margin:0 36px 12px 0;font-size:1.4rem;line-height:1.25;color:var(--navy-900)}
.popup-box p{margin:0 0 12px;line-height:1.6}
.popup-close{position:absolute;top:8px;right:10px;width:40px;height:40px;border:0;background:transparent;font-size:2rem;line-height:1;cursor:pointer;color:var(--navy-900);border-radius:50%}
.popup-close:hover,.popup-close:focus-visible{background:#eef1f8}
.popup-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
html.popup-open{overflow:hidden}
@keyframes popFade{from{opacity:0}to{opacity:1}}
@keyframes popUp{from{opacity:0;transform:translateY(24px) scale(.96)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.popup-overlay,.popup-box{animation:none}}
@media (max-width:480px){.popup-box{padding:26px 18px 18px}.popup-actions .btn{flex:1 1 100%;text-align:center}}

/* ===== Refonte accueil + menu (v3) ===== */
button, input, select, textarea { font: inherit; }
.nav a.link, .brand, .btn, .utilbar a { font-family: var(--font); }

/* En-tête sur une seule ligne */
.site-header .container { width: min(1240px, 94%); }
.header-in { flex-wrap: nowrap; gap: .8rem; padding: .6rem 0; }
.brand { flex: 0 0 auto; }
.brand span { white-space: nowrap; }
.brand b { font-size: 1.05rem; font-weight: 800; color: var(--navy-900); }
.brand small { white-space: nowrap; display: block; margin-top: 2px; }
.nav { flex: 1 1 auto; justify-content: flex-end; flex-wrap: nowrap; }
.nav a.link { white-space: nowrap; padding: .55rem .62rem; font-size: .9rem; color: #1b2540; font-weight: 600; }
.nav .actions { flex: 0 0 auto; margin-left: .4rem; }
.nav .actions .btn { white-space: nowrap; }
@media (min-width: 861px) and (max-width: 1240px) { .brand small { display: none; } .nav a.link { padding: .5rem .5rem; font-size: .86rem; } }
@media (min-width: 861px) and (max-width: 1020px) { .nav .actions .btn-outline { display: none; } }

/* Bandeau principal */
.hero2 { background: linear-gradient(135deg, #081a36 0%, #0c2750 45%, #1b4a8a 100%); padding: 4.2rem 0 6.2rem; position: relative; overflow: hidden; color: #fff; }
.hero2-in { display: grid; grid-template-columns: 1.25fr .85fr; gap: 3rem; align-items: center; position: relative; z-index: 2; }
.hero2 h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.1; color: #fff; margin: .8rem 0 1.1rem; font-weight: 800; }
.hero2 h1 em { color: var(--gold); font-style: normal; }
.hero2 .lead { font-size: 1.12rem; line-height: 1.7; color: #dbe6f7; max-width: 38rem; margin: 0 0 1.6rem; }
.hero2 .eyebrow { display: inline-block; padding: .4rem .9rem; border-radius: 999px; background: rgba(240,168,26,.16); border: 1px solid rgba(240,168,26,.5); color: #ffd36b; font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.hero2 .cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.02rem; }
.hero2 .chips { list-style: none; display: flex; flex-wrap: wrap; gap: .55rem .7rem; padding: 0; margin: 1.8rem 0 0; }
.hero2 .chips li { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: .4rem .85rem; font-size: .86rem; font-weight: 600; color: #eaf1fc; }
.hero2-card { background: #fff; color: #1b2540; border-radius: 22px; padding: 1.6rem; box-shadow: 0 24px 60px rgba(0,0,0,.35); border-top: 6px solid var(--gold); }
.hc-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.hc-head img { border-radius: 12px; }
.hc-head b { display: block; color: var(--navy-900); font-size: 1.05rem; }
.hc-head span { color: var(--muted); font-size: .85rem; font-weight: 600; }
.hc-date { margin: 0 0 .9rem; font-weight: 800; color: var(--navy-900); font-size: 1.1rem; text-transform: capitalize; }
.hero2-card .countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: 0 0 .9rem; }
.hero2-card .countdown div { background: var(--navy-900); border-radius: 12px; padding: .7rem .3rem; text-align: center; }
.hero2-card .countdown b { display: block; color: var(--gold); font-size: 1.7rem; line-height: 1; font-weight: 800; }
.hero2-card .countdown span { color: #cfdcf2; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.hero2-card .note { color: var(--muted); font-size: .8rem; margin: 0 0 1rem; }
.hc-btn { display: flex; width: 100%; justify-content: center; }
@media (max-width: 960px) { .hero2 { padding: 2.6rem 0 5rem; } .hero2-in { grid-template-columns: 1fr; gap: 2rem; } }
@media (max-width: 480px) { .hero2 .cta .btn { width: 100%; } .hero2-card { padding: 1.2rem; } }

/* Chiffres : un seul bandeau clair qui chevauche le bandeau principal */
.statsband { margin-top: -3.4rem; position: relative; z-index: 5; padding-bottom: 1rem; }
.statsband .container { background: #fff; border-radius: 22px; box-shadow: 0 18px 50px rgba(12,39,80,.16); padding: 1.6rem; border: 1px solid #e6ebf4; }
.statsband .kpis { gap: .9rem; }
.statsband .kpi { background: #f4f7fc; border: 1px solid #e3e9f4; }
.statsband .kpi b { color: var(--navy-900); }
.statsband .kpi span { color: #4a5772; }
.resband { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px dashed #cdd6e6; }
.resband h2 { text-align: center; font-size: 1.2rem; margin: 0 0 1rem; }
.resgrid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.res { flex: 1 1 220px; max-width: 320px; text-align: center; background: linear-gradient(135deg, #0c2750, #1b4a8a); border-radius: 16px; padding: 1.1rem; color: #fff; }
.res b { display: block; font-size: 2.2rem; color: var(--gold); line-height: 1.1; font-weight: 800; }
.res span { display: block; font-weight: 700; margin-top: .3rem; }
.res small { color: #c8d7ee; }
@media (max-width: 860px) { .statsband { margin-top: -2.4rem; } .statsband .container { padding: 1rem; } }

/* Image de fond du grand bandeau */
.hero2::before { content: ''; position: absolute; inset: 0 0 0 34%; background: var(--hero-img) right 14% / cover no-repeat; z-index: 0; }
.hero2::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, #081a36 0%, rgba(8,26,54,.94) 30%, rgba(12,39,80,.55) 58%, rgba(12,39,80,.12) 100%); }
.hero2-card { align-self: end; }
.hero2 .shape { z-index: 1; }
.hero2-in { z-index: 3; }
.hero2-card { background: rgba(255,255,255,.97); }
@media (max-width: 960px) { .hero2-card { align-self: auto; } }
@media (max-width: 960px) {
  .hero2::before { inset: 0; opacity: .55; background-position: 70% center; }
  .hero2::after { background: linear-gradient(180deg, rgba(8,26,54,.86) 0%, rgba(8,26,54,.78) 55%, rgba(12,39,80,.9) 100%); }
}

/* Fenêtre d'accueil : image / vidéo */
.popup-box.wide { max-width: 680px; }
.popup-media { margin: 0 0 14px; border-radius: 12px; overflow: hidden; background: #0c2750; }
.popup-media img { display: block; width: 100%; height: auto; max-height: 56vh; object-fit: contain; background: #0c2750; }
.popup-video { position: relative; aspect-ratio: 16 / 9; }
.popup-video iframe, .popup-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.popup-sound { position: absolute; left: 10px; bottom: 54px; z-index: 3; border: 0; border-radius: 999px; padding: .45rem .9rem; font-weight: 700; font-size: .85rem; background: rgba(240,168,26,.95); color: #0c2750; cursor: pointer; }
.popup-sound:hover { background: #ffc43d; }
