/* =============================================================
   2SE - Feuille de style personnalisée
   (complète Tailwind pour les éléments difficiles à exprimer
   en utilitaires : slider, lightbox, carte, etc.)
   ============================================================= */

/* ---------- Hero Slider (accueil) ---------- */
.hero-slider { position: relative; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .8s ease, transform .9s ease;
  transform: scale(1.04);
}
.hero-slide.active { opacity: 1; visibility: visible; transform: scale(1); position: relative; }
.hero-dots { display: flex; gap: 8px; }
.hero-dot { width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.35); cursor: pointer; transition: all .3s; }
.hero-dot.active { background: #d92626; width: 28px; border-radius: 999px; }

/* ---------- Lightbox réalisations ---------- */
#lightbox-overlay {
  position: fixed; inset: 0; background: rgba(6,15,28,.92); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
#lightbox-overlay.open { display: flex; }
#lightbox-overlay img { max-height: 82vh; max-width: 92vw; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }

/* ---------- Carte de géolocalisation ---------- */
#map-container { height: 420px; width: 100%; border-radius: 16px; z-index: 1; }
.leaflet-popup-content-wrapper { border-radius: 10px; }
.marker-pulse {
  width: 20px; height: 20px; border-radius: 50%; background: #d92626;
  box-shadow: 0 0 0 rgba(217,38,38,.6); animation: mapPulse 2s infinite;
}
@keyframes mapPulse {
  0% { box-shadow: 0 0 0 0 rgba(217,38,38,.6); }
  70% { box-shadow: 0 0 0 18px rgba(217,38,38,0); }
  100% { box-shadow: 0 0 0 0 rgba(217,38,38,0); }
}

/* ---------- Stars (témoignages) ---------- */
.stars i { color: #f5a3a3; }
.stars i.filled { color: #d92626; }

/* ---------- Loader boutique (AJAX) ---------- */
.skeleton {
  background: linear-gradient(90deg, #eef2f9 25%, #e5e7eb 37%, #eef2f9 63%);
  background-size: 400% 100%;
  animation: skeletonLoad 1.4s ease infinite;
}
@keyframes skeletonLoad { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- Print (fiche produit / devis) ---------- */
@media print {
  header, footer, #whatsapp-widget, #btn-scroll-top { display: none !important; }
}

/* =============================================================
   PANIER DYNAMIQUE (assets/js/cart.js)  — ajout v2
   ============================================================= */

/* ---------- Compteur sur l'icône panier ---------- */
.cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: #d92626; color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; line-height: 1;
  box-shadow: 0 0 0 2px #0a1c33; transition: transform .25s ease, opacity .25s ease;
}
.cart-count.is-empty { transform: scale(0); opacity: 0; }
.cart-bump { animation: cartBump .55s cubic-bezier(.36,.07,.19,.97); }
@keyframes cartBump { 0%,100% { transform: scale(1); } 30% { transform: scale(1.25) rotate(-8deg); } 60% { transform: scale(.92) rotate(5deg); } }

/* Image qui « vole » vers le panier */
.cart-fly {
  position: fixed; z-index: 9999; pointer-events: none; object-fit: contain; border-radius: 16px;
  background: #fff; box-shadow: 0 10px 30px rgba(10,28,51,.35);
  transition: transform .7s cubic-bezier(.55,-0.05,.35,1), opacity .7s ease;
}

/* ---------- Tiroir latéral ---------- */
html.cart-lock, html.cart-lock body { overflow: hidden; }
.cart-drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; pointer-events: none; }
.cart-drawer.is-open { visibility: visible; pointer-events: auto; }
.cart-drawer__overlay { position: absolute; inset: 0; background: rgba(6,15,28,.6); backdrop-filter: blur(2px); opacity: 0; transition: opacity .3s ease; }
.cart-drawer.is-open .cart-drawer__overlay { opacity: 1; }
.cart-drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%; height: 100dvh; width: 440px; max-width: 100%;
  background: #fff; display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(6,15,28,.35);
  transform: translateX(100%); transition: transform .38s cubic-bezier(.22,1,.36,1);
}
.cart-drawer.is-open .cart-drawer__panel { transform: translateX(0); }
.cart-drawer__head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid #e5e7eb; }
.cart-drawer__icon { height: 42px; width: 42px; border-radius: 12px; background: #fdecec; color: #b81717; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.cart-drawer__close { height: 40px; width: 40px; border-radius: 10px; color: #4b5563; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.cart-drawer__close:hover { background: #f4f5f7; color: #b81717; }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 8px 20px; overscroll-behavior: contain; }
.cart-drawer__foot { border-top: 1px solid #e5e7eb; padding: 16px 20px 20px; background: #fafbfc; }

/* ---------- Lignes d'articles ---------- */
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line {
  display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid #eef0f3;
  transition: opacity .22s ease, transform .22s ease; animation: cartLineIn .3s ease both;
}
.cart-line:last-child { border-bottom: 0; }
.cart-line.is-leaving { opacity: 0; transform: translateX(30px); }
.cart-line.is-unavailable .cart-line__img, .cart-line.is-unavailable .cart-line__name { opacity: .45; }
@keyframes cartLineIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cart-line__img { flex-shrink: 0; height: 76px; width: 76px; border-radius: 12px; background: #eef2f9; overflow: hidden; display: block; }
.cart-line__img--lg { height: 104px; width: 104px; }
.cart-line__img img { height: 100%; width: 100%; object-fit: contain; padding: 8px; }
.cart-line__body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.cart-line__top { display: flex; justify-content: space-between; gap: 8px; }
.cart-line__brand { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #6b7684; }
.cart-line__name { display: block; font-weight: 600; font-size: 14px; color: #0a1c33; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cart-line__name:hover { color: #b81717; }
.cart-line__unit { font-size: 12px; color: #6b7684; margin-top: 2px; }
.cart-line__unit span { color: #9aa4b2; }
.cart-line__unit s { color: #9aa4b2; margin-left: 4px; }
.cart-line__remove { flex-shrink: 0; height: 34px; width: 34px; border-radius: 10px; color: #9aa4b2; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.cart-line__remove:hover { background: #fdecec; color: #b81717; }
.cart-line__bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cart-line__total { font-family: 'Orbitron', sans-serif; font-weight: 700; color: #b81717; font-size: 14px; }
.cart-line__warn { font-size: 12px; font-weight: 600; color: #8f1212; background: #fdecec; border-radius: 8px; padding: 6px 10px; }

/* ---------- Sélecteur de quantité ---------- */
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid #cbd1db; border-radius: 10px; overflow: hidden; background: #fff; }
.qty-stepper button { height: 34px; width: 34px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #153968; transition: background .15s; }
.qty-stepper button:hover:not(:disabled) { background: #eef2f9; }
.qty-stepper button:disabled { color: #cbd1db; cursor: not-allowed; }
.qty-stepper input { width: 42px; height: 34px; text-align: center; font-weight: 600; color: #0a1c33; border: 0; border-left: 1px solid #e5e7eb; border-right: 1px solid #e5e7eb; outline: none; -moz-appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper input:focus { background: #eef2f9; }
.qty-stepper--lg button { height: 44px; width: 44px; font-size: 13px; }
.qty-stepper--lg input { height: 44px; width: 56px; font-size: 16px; }

/* ---------- Panier vide ---------- */
.cart-empty { text-align: center; padding: 48px 12px; display: flex; flex-direction: column; align-items: center; }
.cart-empty__icon { height: 88px; width: 88px; border-radius: 50%; background: #eef2f9; color: #33629f; display: flex; align-items: center; justify-content: center; font-size: 34px; position: relative; }
.cart-empty__icon::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px dashed #b0c3e1; animation: cartSpin 18s linear infinite; }
@keyframes cartSpin { to { transform: rotate(360deg); } }
.cart-empty__title { font-family: 'Orbitron', sans-serif; font-weight: 700; color: #0a1c33; margin-top: 20px; }
.cart-empty__text { font-size: 14px; color: #6b7684; margin-top: 6px; max-width: 300px; }

.cart-note-warn { font-size: 13px; color: #8f1212; background: #fdecec; border: 1px solid #fbd0d0; border-radius: 10px; padding: 10px 12px; margin: 8px 0; }

/* Bouton WhatsApp du panier */
.cart-btn-wa { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 11px 16px; border-radius: 8px; background: #16a34a; color: #fff; font-weight: 600; font-size: 14px; transition: background .2s; }
.cart-btn-wa:hover { background: #15803d; }

/* Bouton « Ajouter » : état « ajouté » */
.cart-add-btn.is-added { background: #16a34a !important; box-shadow: none; }

/* ---------- Notifications (toasts) ---------- */
#cart-toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 120; display: flex; flex-direction: column; gap: 10px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.cart-toast { position: relative; pointer-events: auto; display: flex; align-items: center; gap: 12px; background: #0a1c33; color: #fff; border-radius: 14px; padding: 12px 12px 14px; box-shadow: 0 20px 40px rgba(6,15,28,.35); overflow: hidden; }
.cart-toast__img { height: 46px; width: 46px; border-radius: 10px; object-fit: contain; background: #fff; padding: 4px; flex-shrink: 0; }
.cart-toast__icon { height: 40px; width: 40px; border-radius: 50%; background: rgba(22,163,74,.2); color: #4ade80; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cart-toast__text { flex: 1; min-width: 0; font-size: 13px; line-height: 1.35; }
.cart-toast__text strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cart-toast__text span { color: rgba(255,255,255,.65); }
.cart-toast__action { flex-shrink: 0; font-size: 12px; font-weight: 700; color: #fff; background: #d92626; border-radius: 8px; padding: 8px 10px; transition: background .2s; }
.cart-toast__action:hover { background: #b81717; }
.cart-toast__close { flex-shrink: 0; color: rgba(255,255,255,.5); height: 28px; width: 28px; }
.cart-toast__close:hover { color: #fff; }
.cart-toast__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #d92626; transform-origin: left; animation: toastBar linear forwards; }
@keyframes toastBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ---------- Page panier : étapes ---------- */
.checkout-steps { display: flex; align-items: center; gap: 0; list-style: none; padding: 0; max-width: 560px; }
.checkout-steps li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.45); font-size: 14px; flex: 1; }
.checkout-steps li:not(:last-child)::after { content: ''; flex: 1; height: 2px; background: rgba(255,255,255,.15); margin: 0 12px; border-radius: 2px; transition: background .4s; }
.checkout-steps li span { height: 34px; width: 34px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; transition: all .3s; }
.checkout-steps li em { font-style: normal; white-space: nowrap; }
.checkout-steps li.is-active { color: #fff; }
.checkout-steps li.is-active span { background: #d92626; border-color: #d92626; box-shadow: 0 0 0 5px rgba(217,38,38,.25); }
.checkout-steps li.is-done { color: rgba(255,255,255,.8); }
.checkout-steps li.is-done span { background: #16a34a; border-color: #16a34a; font-size: 0; }
.checkout-steps li.is-done span::before { content: '\f00c'; font-family: 'Font Awesome 7 Free', 'Font Awesome 5 Free'; font-weight: 900; font-size: 13px; }
.checkout-steps li.is-done::after { background: #16a34a; }
@media (max-width: 520px) { .checkout-steps li em { display: none; } .checkout-steps li.is-active em { display: inline; } }

.form-label { display: block; font-size: 14px; font-weight: 600; color: #0a1c33; margin-bottom: 6px; }

/* Cartes de choix (livraison / retrait) */
.choice-card { position: relative; cursor: pointer; display: block; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card__box { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 2px solid #e5e7eb; border-radius: 14px; transition: all .2s; height: 100%; }
.choice-card__box > i { height: 42px; width: 42px; border-radius: 10px; background: #eef2f9; color: #153968; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; transition: all .2s; }
.choice-card__box strong { display: block; color: #0a1c33; font-size: 14px; }
.choice-card__box small { display: block; color: #6b7684; font-size: 12px; line-height: 1.35; }
.choice-card:hover .choice-card__box { border-color: #b0c3e1; }
.choice-card input:checked + .choice-card__box { border-color: #d92626; background: #fff7f7; box-shadow: 0 6px 18px -8px rgba(217,38,38,.45); }
.choice-card input:checked + .choice-card__box > i { background: #d92626; color: #fff; }
.choice-card input:focus-visible + .choice-card__box { outline: 2px solid #33629f; outline-offset: 2px; }

/* Coche de succès animée */
.success-check { height: 88px; width: 88px; margin: 0 auto; border-radius: 50%; background: #16a34a; color: #fff; font-size: 38px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 0 rgba(22,163,74,.5); animation: successPulse 1.8s ease-out 2; }
@keyframes successPulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.5); } 100% { box-shadow: 0 0 0 26px rgba(22,163,74,0); } }

@media (max-height: 760px) {
  .cart-drawer__foot { padding-top: 12px; padding-bottom: 14px; }
  .cart-drawer__foot .btn-primary { margin-top: 10px; padding-top: 10px; padding-bottom: 10px; }
  .cart-drawer__foot > p.text-xs { display: none; }
}
@media (max-width: 480px) {
  .cart-line__img--lg { height: 80px; width: 80px; }
  .cart-drawer__body, .cart-drawer__head, .cart-drawer__foot { padding-left: 16px; padding-right: 16px; }
}
@media print {
  #cart-drawer, #cart-toasts, .checkout-steps, .bg-tech-grid { display: none !important; }
  #checkout-success a, #checkout-success button { display: none !important; }
}

/* =============================================================
   RÉALISATIONS : portfolio interactif (assets/js/realisations.js) — ajout v2
   ============================================================= */
.rz-stat { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 14px 8px; }
.rz-stat strong { display: block; font-family: 'Orbitron', sans-serif; color: #fff; font-size: clamp(18px, 3vw, 26px); }
.rz-stat span { display: block; color: rgba(255,255,255,.55); font-size: 12px; margin-top: 2px; }

/* Filtres */
.rz-filters { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.rz-filter { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid #e5e7eb; background: #fff; color: #0f2a4d; font-size: 14px; font-weight: 600; transition: all .2s; white-space: nowrap; }
.rz-filter i { color: #b81717; font-size: 13px; }
.rz-filter span { background: #eef2f9; color: #153968; border-radius: 999px; font-size: 11px; padding: 1px 8px; }
.rz-filter:hover { border-color: #b0c3e1; background: #f7f9fc; }
.rz-filter.is-active { background: #b81717; border-color: #b81717; color: #fff; box-shadow: 0 8px 20px -10px rgba(184,23,23,.8); }
.rz-filter.is-active i { color: #fff; }
.rz-filter.is-active span { background: rgba(255,255,255,.2); color: #fff; }

/* Cartes */
.rz-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid #e5e7eb; border-radius: 20px; overflow: hidden; cursor: pointer; transition: transform .3s ease, box-shadow .3s ease, opacity .3s ease; outline: none; }
.rz-card:hover, .rz-card:focus-visible { transform: translateY(-6px); box-shadow: 0 22px 40px -18px rgba(10,28,51,.35); }
.rz-card:focus-visible { box-shadow: 0 0 0 3px #83a1cf, 0 22px 40px -18px rgba(10,28,51,.35); }
.rz-card.is-hidden { display: none; }
.rz-card.is-entering { animation: rzIn .4s ease both; }
@keyframes rzIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.rz-card__media { position: relative; height: 220px; overflow: hidden; background: #0f2a4d; }
.rz-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.rz-card__media.is-illustration { background: linear-gradient(135deg, #eef2f9, #d7e1f0); }
.rz-card__media.is-illustration img { object-fit: contain; padding: 26px; }
.rz-card:hover .rz-card__media img { transform: scale(1.08); }
.rz-card__cat, .rz-card__year, .rz-card__photos, .rz-card__star { position: absolute; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 5px 10px; display: inline-flex; align-items: center; gap: 6px; }
.rz-card__cat { top: 12px; left: 12px; background: #b81717; color: #fff; }
.rz-card__year { top: 12px; right: 12px; background: rgba(10,28,51,.8); color: #fff; backdrop-filter: blur(4px); }
.rz-card__photos { bottom: 12px; right: 12px; background: rgba(255,255,255,.92); color: #0f2a4d; }
.rz-card__star { bottom: 12px; left: 12px; background: #fbbf24; color: #78350f; padding: 5px 7px; }
.rz-card__hover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; font-weight: 700; font-size: 14px; background: rgba(10,28,51,.55); opacity: 0; transition: opacity .3s; }
.rz-card:hover .rz-card__hover { opacity: 1; }
.rz-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.rz-card__title { font-family: 'Orbitron', sans-serif; font-weight: 700; color: #0a1c33; font-size: 15px; line-height: 1.4; }
.rz-card__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 12.5px; color: #6b7684; }
.rz-card__meta i { color: #b81717; margin-right: 3px; }
.rz-card__text { margin-top: 10px; font-size: 14px; color: #4b5563; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rz-card__foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; }
.rz-card__cta { font-size: 14px; font-weight: 700; color: #b81717; display: inline-flex; align-items: center; gap: 6px; }
.rz-card__cta i { transition: transform .25s; }
.rz-card:hover .rz-card__cta i { transform: translateX(4px); }
.rz-card__link { height: 36px; width: 36px; border-radius: 10px; background: #eef2f9; color: #153968; display: flex; align-items: center; justify-content: center; font-size: 13px; transition: all .2s; }
.rz-card__link:hover { background: #153968; color: #fff; }

/* Fenêtre d'aperçu */
.rz-modal { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; padding: 20px; visibility: hidden; pointer-events: none; }
.rz-modal.is-open { visibility: visible; pointer-events: auto; }
.rz-modal__overlay { position: absolute; inset: 0; background: rgba(6,15,28,.82); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.rz-modal.is-open .rz-modal__overlay { opacity: 1; }
.rz-modal__panel { position: relative; width: 100%; max-width: 1120px; height: min(720px, calc(100vh - 40px)); background: #fff; border-radius: 24px; overflow: hidden; display: grid; grid-template-columns: 1.25fr 1fr; box-shadow: 0 40px 100px rgba(0,0,0,.5); opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .3s ease, transform .35s cubic-bezier(.22,1,.36,1); }
.rz-modal.is-open .rz-modal__panel { opacity: 1; transform: none; }
.rz-modal__panel.rz-slide-left { animation: rzSlideL .35s ease; }
.rz-modal__panel.rz-slide-right { animation: rzSlideR .35s ease; }
@keyframes rzSlideL { from { opacity: .4; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes rzSlideR { from { opacity: .4; transform: translateX(-30px); } to { opacity: 1; transform: none; } }
.rz-modal__close { position: absolute; top: 14px; right: 14px; z-index: 5; height: 42px; width: 42px; border-radius: 12px; background: #fff; color: #0a1c33; box-shadow: 0 6px 18px rgba(10,28,51,.2); display: flex; align-items: center; justify-content: center; font-size: 18px; transition: all .2s; }
.rz-modal__close:hover { background: #b81717; color: #fff; transform: rotate(90deg); }
.rz-modal__gallery { background: #0a1c33; min-height: 0; display: flex; }
.rz-modal__info { display: flex; flex-direction: column; min-height: 0; }
.rz-modal__scroll { flex: 1; overflow-y: auto; padding: 28px 28px 20px; overscroll-behavior: contain; }
.rz-modal__actions { border-top: 1px solid #e5e7eb; padding: 14px 20px 16px; background: #fafbfc; }
.rz-modal__h { font-family: 'Orbitron', sans-serif; font-size: 13px; font-weight: 700; color: #0a1c33; text-transform: uppercase; letter-spacing: .05em; margin: 24px 0 10px; display: flex; align-items: center; gap: 8px; }
.rz-modal__h i { color: #b81717; }
.rz-step { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; color: #153968; font-weight: 600; transition: background .2s; }
.rz-step:hover:not(:disabled) { background: #eef2f9; }
.rz-step:disabled { opacity: .35; cursor: not-allowed; }
.rz-icon-btn { height: 38px; width: 38px; border-radius: 10px; color: #153968; display: inline-flex; align-items: center; justify-content: center; transition: background .2s; }
.rz-icon-btn:hover { background: #eef2f9; }

.rz-facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 18px; }
.rz-facts > div { background: #f4f6fa; border-radius: 12px; padding: 10px 12px; }
.rz-facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #6b7684; }
.rz-facts dt i { color: #b81717; margin-right: 4px; }
.rz-facts dd { font-weight: 600; color: #0a1c33; font-size: 14px; margin-top: 2px; }
.rz-prose p { color: #4b5563; line-height: 1.75; font-size: 15px; }
.rz-prose p + p { margin-top: 12px; }
.rz-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rz-chips li { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; background: #eef2f9; color: #0f2a4d; border-radius: 999px; padding: 6px 12px; }
.rz-chips li i { color: #16a34a; font-size: 11px; }
.rz-quote { position: relative; margin-top: 24px; background: linear-gradient(135deg, #0a1c33, #153968); color: #fff; border-radius: 16px; padding: 20px 20px 18px 56px; }
.rz-quote > i { position: absolute; left: 18px; top: 18px; font-size: 22px; color: #e34747; }
.rz-quote p { font-style: italic; line-height: 1.6; }
.rz-quote footer { margin-top: 8px; font-size: 13px; color: rgba(255,255,255,.65); }

/* Galerie */
.rz-gallery { position: relative; display: flex; flex-direction: column; width: 100%; min-height: 0; }
.rz-gallery__stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #0a1c33; }
.rz-gallery__img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: opacity .16s ease; }
.rz-gallery__img.is-fading { opacity: 0; }
.rz-gallery.is-illustration .rz-gallery__stage { background: radial-gradient(circle at 50% 40%, #1f4a80, #0a1c33 70%); }
.rz-gallery.is-illustration .rz-gallery__img { object-fit: contain; padding: 8%; }
.rz-gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); height: 46px; width: 46px; border-radius: 50%; background: rgba(255,255,255,.92); color: #0a1c33; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(0,0,0,.25); transition: all .2s; }
.rz-gallery__nav:hover { background: #b81717; color: #fff; }
.rz-gallery__nav--prev { left: 14px; }
.rz-gallery__nav--next { right: 14px; }
.rz-gallery__counter { position: absolute; left: 14px; bottom: 14px; background: rgba(10,28,51,.75); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.rz-gallery__zoom { position: absolute; right: 14px; bottom: 14px; height: 36px; width: 36px; border-radius: 10px; background: rgba(10,28,51,.75); color: #fff; display: flex; align-items: center; justify-content: center; }
.rz-gallery__zoom:hover { background: #b81717; }
.rz-gallery__caption { position: absolute; left: 50%; transform: translateX(-50%); bottom: 14px; max-width: 60%; background: rgba(10,28,51,.75); color: #fff; font-size: 12px; padding: 5px 12px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rz-gallery.is-single .rz-gallery__nav, .rz-gallery.is-single .rz-gallery__counter { display: none; }
.rz-gallery__thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; background: #060f1c; scrollbar-width: thin; }
.rz-gallery__thumbs:empty { display: none; }
.rz-gallery__thumbs button { flex-shrink: 0; height: 58px; width: 80px; border-radius: 8px; overflow: hidden; opacity: .5; border: 2px solid transparent; transition: all .2s; background: #153968; }
.rz-gallery__thumbs button.is-illustration img { object-fit: contain; padding: 6px; }
.rz-gallery__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.rz-gallery__thumbs button:hover { opacity: .85; }
.rz-gallery__thumbs button.is-active { opacity: 1; border-color: #e34747; }
/* Plein écran */
.rz-gallery.is-zoomed { position: fixed; inset: 0; z-index: 130; background: #060f1c; }
.rz-gallery.is-zoomed .rz-gallery__img { object-fit: contain; cursor: zoom-out; }
.rz-gallery.is-zoomed .rz-gallery__zoom i::before { content: '\f78c'; }

/* Galerie de la page détail */
.rz-detail-gallery { border-radius: 24px; overflow: hidden; box-shadow: 0 20px 50px -20px rgba(10,28,51,.4); }
.rz-detail-gallery .rz-gallery__stage { aspect-ratio: 16 / 10; flex: none; }

/* Responsive : la fenêtre passe en une colonne */
@media (max-width: 860px) {
  .rz-modal { padding: 0; align-items: flex-end; }
  .rz-modal__panel { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: 94vh; height: 94dvh; border-radius: 22px 22px 0 0; }
  .rz-modal__gallery .rz-gallery__stage { height: 34vh; flex: none; }
  .rz-modal__scroll { padding: 20px; }
  .rz-modal__close { top: 10px; right: 10px; }
  .rz-step span { display: none; }
}
@media (max-width: 420px) { .rz-facts { grid-template-columns: 1fr 1fr; gap: 8px; } .rz-gallery__nav { height: 38px; width: 38px; } }
@media print { .rz-modal { display: none !important; } }

/* ---------- Admin : zone de dépôt de photos (galerie réalisations) ---------- */
.admin-dropzone { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 28px 16px; border: 2px dashed #b0c3e1; border-radius: 16px; background: #f7f9fc; cursor: pointer; transition: all .2s; }
.admin-dropzone i { font-size: 30px; color: #33629f; margin-bottom: 6px; }
.admin-dropzone strong { color: #0a1c33; font-size: 14px; }
.admin-dropzone span { color: #6b7684; font-size: 12px; }
.admin-dropzone:hover, .admin-dropzone.is-drag { border-color: #d92626; background: #fff7f7; }
