/* ==========================================================================
   Hero à 2 diapositives + mise en avant de la sauvegarde quotidienne
   ========================================================================== */
:root { --teal: #14b8a6; --teal-600: #0d9488; --teal-050: #ccfbf1; }
[data-theme="dark"] { --teal-050: rgba(20, 184, 166, .14); }

.hx[data-carousel] { transition: background .8s ease; }
.hx[data-carousel].on-backup { background: radial-gradient(900px 500px at 85% -10%, #0f5e63 0%, transparent 60%), radial-gradient(700px 500px at -10% 110%, #2a1d74 0%, transparent 60%), var(--night); }
.hx .slides { display: grid; position: relative; z-index: 1; }
.hx .slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateX(24px); transition: opacity .6s var(--ease), transform .6s var(--ease), visibility 0s linear .6s; }
.hx .slide.active { opacity: 1; visibility: visible; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease), visibility 0s; }
.hx .slide-inner { padding-bottom: 104px !important; }
.hx .hx-title { color: #fff; font-size: clamp(38px, 5.2vw, 62px); line-height: 1.04; letter-spacing: -.04em; font-weight: 800; margin: 22px 0 0; }
.hx h1 { font-weight: 800; }
.hl-teal { background: linear-gradient(95deg, #5eead4, #a5f3fc 70%) !important; -webkit-background-clip: text !important; background-clip: text !important; }
.promo-teal { background: #5eead4 !important; }
.slide-backup .tick { background: rgba(94, 234, 212, .16); color: #5eead4; }
.hx-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.hx-badge { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #e6fffb; font-weight: 600; font-size: 14px; }
.hx-badge .icon { color: #5eead4; }
.btn-teal { background: var(--teal); border-color: var(--teal); color: #04231f; font-weight: 750; box-shadow: 0 14px 30px -12px rgba(20, 184, 166, .8); }
.btn-teal:hover { background: #2dd4bf; border-color: #2dd4bf; color: #04231f; }

/* Contrôles du carrousel */
.carousel-ui { position: absolute; z-index: 2; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; }
.car-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.car-arrow:hover { background: rgba(255,255,255,.16); }
.car-dots { display: flex; gap: 6px; padding: 5px; border-radius: 99px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.car-dot { position: relative; overflow: hidden; border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 650; color: #cfc8ff; background: transparent; padding: 8px 16px; border-radius: 99px; transition: background .25s, color .25s; }
.car-dot.active { background: #fff; color: var(--night); }
.car-dot span { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--violet); }
.car-dot.active span { animation: progression var(--car-delai, 7s) linear forwards; }
[data-carousel].paused .car-dot.active span { animation-play-state: paused; }
@keyframes progression { to { width: 100%; } }

/* Panneau « nuits » */
.nights { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.night { display: grid; justify-items: center; gap: 4px; font-size: 11.5px; font-weight: 650; color: var(--text-2); }
.moon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }

/* Section sauvegarde */
.backup-zone { background: linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--teal-050) 45%, var(--surface)) 100%); }
.kicker-teal { color: var(--teal-600) !important; }
.fi-teal { background: var(--teal-050) !important; color: var(--teal-600) !important; }
.backup-steps { position: relative; display: grid; gap: 14px; }
.backup-steps::before { content: ""; position: absolute; left: 39px; top: 30px; bottom: 30px; width: 2px; background: linear-gradient(var(--teal), var(--violet)); opacity: .35; }
.bstep { position: relative; display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.bstep .bnum { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--night); color: #5eead4; font-family: var(--mono); font-size: 12px; font-weight: 600; }
.bstep > div { flex: 1; min-width: 0; }
.bstep strong { display: block; font-size: 15px; }
.bstep span { color: var(--text-2); font-size: 13.5px; }
.bstep .badge { color: var(--ok); }

@media (max-width: 1020px) { .hx .slide-inner { padding-bottom: 96px !important; } }
@media (max-width: 640px) {
  .hx .hx-title { font-size: 34px; }
  .car-dot { padding: 7px 11px; font-size: 12px; }
  .car-arrow { display: none; }
  .carousel-ui { bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) { .hx .slide { transition: none; transform: none; } }

.hx .hx-title .hl { background: linear-gradient(95deg, #5eead4, #a5f3fc 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hx .hx-title { font-size: clamp(34px, 4.4vw, 54px); }
.hx h1 { font-size: clamp(36px, 4.8vw, 58px); }
.hx .wrap.slide-inner { padding-top: 56px; }

/* ---------- Diapositive 3 : sécurité + photos ---------- */
.hx[data-carousel].on-people { background: radial-gradient(900px 500px at 85% -10%, #6b3d0a 0%, transparent 60%), radial-gradient(700px 500px at -10% 110%, #2a1d74 0%, transparent 60%), var(--night); }
.promo-amber { background: #fbbf24 !important; }
.hx .hx-title .hl.hl-amber, .hl-amber { background: linear-gradient(95deg, #fcd34d, #fdba74 70%) !important; -webkit-background-clip: text !important; background-clip: text !important; color: transparent; }
.slide-people .tick { background: rgba(251, 191, 36, .16); color: #fcd34d; }
.btn-amber { background: #fbbf24; border-color: #fbbf24; color: #2b1700; font-weight: 750; box-shadow: 0 14px 30px -12px rgba(251, 191, 36, .8); }
.btn-amber:hover { background: #fcd34d; border-color: #fcd34d; color: #2b1700; }
.hx-people { min-height: 420px; }
.hx-people .photo { margin: 0; position: absolute; overflow: hidden; border-radius: 24px; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); background: linear-gradient(160deg, #3b2a12, #1c1640); }
.hx-people .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hx-people .photo-main { inset: 0 18% 6% 4%; }
.hx-people .photo-side { width: 38%; aspect-ratio: 3 / 4; right: 0; bottom: 0; border: 4px solid var(--night); }
.hx-people .photo-empty { display: grid; place-items: center; color: #fcd34d; }
.hx-people .photo-empty .icon { width: 96px; height: 96px; opacity: .55; }
.hx-people .float-1 { left: -4%; top: 12%; right: auto; bottom: auto; }
.hx-people .float-3 { right: 0; bottom: 8%; top: auto; }

/* ---------- Moyens de paiement par pays ---------- */
.pay-methods { display: inline-flex; flex-wrap: wrap; gap: 6px; vertical-align: middle; }
.pay-country { display: grid; gap: 6px; font-size: 13.5px; }
.pay-country span { opacity: .75; }
.pay-country select { font: inherit; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: inherit; max-width: 220px; }
.site-footer:not(.dark) .pay-country select { border-color: var(--border); background: var(--surface); }
.pay-country select option { color: #111; }
@media (max-width: 640px) { .hx-people { min-height: 300px; } .hx-people .float-1 { left: 0; } }

/* ---------- Photos derrière le tableau de bord (diapositives 1 et 2) ---------- */
.hx-visual.has-photo .photo-back { position: absolute; margin: 0; inset: 0 0 20% 20%; border-radius: 24px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); }
.hx-visual.has-photo .photo-back img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hx-visual.has-photo .photo-back::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 40%, rgba(15, 10, 40, .55)); }
.hx-visual.has-photo .panel-main { inset: 30% 26% 0 0; }
.hx-visual.has-photo .panel-main .inner { gap: 9px; padding: 14px; }
.hx-visual.has-photo .float-1 { right: 0; top: auto; bottom: 22%; }
.hx-visual.has-photo .float-3 { display: none; }
.hx-visual.has-photo .float-2 { left: auto; right: -8px; bottom: 2%; }
@media (max-width: 560px) { .hx-visual.has-photo .panel-main { inset: 26% 6% 0 0; } }
