/* ------------------------------------------
   PALETTE REVINA TOURS
   Vert principal : #009540
   Jaune soleil   : #F9C028
   Orange accent  : #E68A00
   Blanc          : #ffffff
------------------------------------------- */
:root {
  --rb-green: #009540;
  --rb-yellow: #F9C028;
  --rb-orange: #E68A00;
  --rb-white: #ffffff;
  --rb-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

/* Navbar branding */
.brand-wrap {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.logo-navbar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--rb-green);
}


/* Buttons */
.rb-btn {
  border-radius: 12px;
}
.rb-btn-primary {
  background: var(--rb-green);
  border-color: var(--rb-green);
  color: var(--rb-white);
}
.rb-btn-primary:hover {
  background: var(--rb-orange);
  border-color: var(--rb-orange);
}

/* Badges soft */
.rb-badge-soft {
  background-color: rgba(0, 149, 64, 0.12);
  color: var(--rb-green);
  border-radius: 10px;
  padding: .35rem .6rem;
}
.rb-badge-ok {
  background-color: rgba(0, 149, 64, 0.15);
  color: var(--rb-green);
}
.rb-badge-warn {
  background-color: rgba(249, 192, 40, 0.15);
  color: var(--rb-orange);
}
.rb-badge-err {
  background-color: rgba(220, 53, 69, .12);
  color: #842029;
}

/* Cards */
.rb-card {
  border: 0;
  border-radius: 14px;
  box-shadow: var(--rb-shadow);
  background: var(--rb-white);
}

/* Tables */
.rb-table th {
  color: var(--rb-green);
  font-weight: 600;
}
.rb-table > :not(caption) > * > * {
  padding: .9rem .75rem;
}

/* Forms */
.rb-form .form-control,
.rb-form .form-select {
  border-radius: 12px;
  padding: .7rem .9rem;
  border: 1px solid #ccc;
}
.rb-form .form-control:focus,
.rb-form .form-select:focus {
  box-shadow: 0 0 0 .25rem rgba(0, 149, 64, .15);
  border-color: var(--rb-green);
}


/* ===========================
   HEADER STYLE - Revina Tours
=========================== */
:root{
  --rev-green: #009540;
  --rev-green-dark:#006b32;
  --rev-yellow:#F9C028;
  --rev-orange:#E68A00;
  --rev-white:#ffffff;
}





/* Frise dorée */
.zk-greek-bar {
  height: 16px;
  background: linear-gradient(90deg,#b8860b, #f9d86d, #b8860b, #f9d86d, #b8860b);
  filter: saturate(1.1);
}


/* ===== CATALOG LOOK (inspiré de la capture) ===== */

/* fond motif subtil (SVG inline) */
.zk-bg-pattern {
  --tile: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23e7ecef' stroke-width='1'%3E%3Cpath d='M40,2 60,22 40,42 20,22z'/%3E%3Cpath d='M0,40 20,60 0,80 -20,60z' transform='translate(40 -18)'/%3E%3C/g%3E%3C/svg%3E");
  background-image: var(--tile);
  background-size: 160px 160px;
}

/* carte package */
.pkg-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  overflow: hidden;
  border: 1px solid #eef1f4;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pkg-card:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0,0,0,.10); }

.pkg-cover {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.pkg-body { padding: 22px 20px 26px; text-align: center; }
.pkg-title {
  color: #0b8c45; /* vert logo */
  font-weight: 800;
  letter-spacing: .2px;
  text-transform: uppercase;
  font-size: 1.02rem;
  margin: 8px 0 4px;
}
.pkg-dates, .pkg-board { color: #5c6666; }

/* prix */
.pkg-price-now {
  font-weight: 800;
}
.pkg-price-old {
  color: #c40000;
  text-decoration: line-through;
  margin-right: 6px;
  font-weight: 700;
}

/* dispo / indispo */
.pkg-unavailable { color: #e10000; font-weight: 700; }

/* bouton réserver : noir pilule */
.btn-book {
  border-radius: 999px;
  background: #0b0b0b;
  color: #fff;
  padding: 14px 26px;
  font-weight: 700;
  border: none;
}
.btn-book:hover { background: #1c1c1c; color:#fff; }

/* sticker promo optionnel */
.promo-sticker {
  position: absolute;
  top: -8px; right: -8px;
  background: linear-gradient(45deg, #ffd54d, #ff9800);
  color: #222;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0,0,0,.15);
  transform: rotate(6deg);
  font-size: .85rem;
}

/* colonnes confortables */
.pkg-col { padding: 18px; }

/* titre de section */
.section-title {
  color: #0b8c45;
  font-weight: 800;
}

/* container large */
.container-narrow { max-width: 1160px; }


/* === Catalog detail: sticky aside + gallery === */
.sticky-aside { position: sticky; top: 90px; }

.thumb-img{
  width: 88px; height: 66px; object-fit: cover;
  border-radius: 10px; border: 1px solid #eef1f4;
}
.thumb-link:hover .thumb-img{ outline: 2px solid #0b8c45; }

/* ajustements mobiles */
@media (max-width: 991.98px){
  .sticky-aside { position: static; }
}

/* sticky encart */
.sticky-aside { position: sticky; top: 90px; }
@media (max-width: 991.98px){ .sticky-aside { position: static; } }

@media (max-width: 576px){
  .container-narrow { padding-left: .5rem; padding-right: .5rem; }
}

/* dans static/css/rb-safe.css */
.form-control { border-radius: 12px; }


/* ===== Auth page ===== */
.auth-hero{
  background: linear-gradient(180deg,#f6faf8 0%,#ffffff 100%);
  padding: 32px 0 48px;
}
.auth-card{
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}
.auth-aside{
  background: radial-gradient(88% 88% at 30% 20%, #19a760 0%, #0b8c45 70%, #08733a 100%);
  min-height: 100%;
  align-items: center;
  justify-content: center;
}
.auth-logo{
  width: 88px; height: 88px;
  border-radius: 50%;
  background:#fff; padding:8px;
  box-shadow: 0 6px 24px rgba(0,0,0,.15);
}
.auth-submit{
  border-radius: 12px;
}

/* Inputs du form même sans .form-control */
.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="number"]{
  width: 100%;
  border: 1px solid #e6eaee;
  background: #ecf3ff;               /* léger bleu comme ta capture */
  padding: .75rem .9rem;
  border-radius: 10px;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .2s;
  font-size: 1rem;
}
.auth-card input:focus{
  border-color: #0b8c45;
  box-shadow: 0 0 0 .2rem rgba(11,140,69,.15);
  background: #fff;
}
.auth-card .form-label{ font-weight: 600; color:#2b3a3a; }

/* Petits gadgets */
@media (max-width: 991.98px){
  .auth-hero{ padding-top: 16px; }
}

/* ===== Auth pages ===== */
.auth-hero { background: linear-gradient(180deg,#f6faf8 0%,#ffffff 100%); padding: 32px 0 48px; }
.auth-card { border-radius: 18px; overflow: hidden; background: #fff; }
.auth-aside {
  background: radial-gradient(88% 88% at 30% 20%, #19a760 0%, #0b8c45 70%, #08733a 100%);
  min-height: 100%; align-items: center; justify-content: center; display:flex;
}
.admin-hero { background: linear-gradient(180deg,#1a1a1a 0%,#000 100%); }
.admin-aside { background: radial-gradient(88% 88% at 30% 20%, #a30000 0%, #800000 70%, #4a0000 100%); }
.auth-logo { width: 88px; height: 88px; border-radius: 50%; background:#fff; padding:8px; box-shadow: 0 6px 24px rgba(0,0,0,.15); }
.auth-submit { border-radius: 12px; }
@media (max-width: 991.98px){ .auth-hero{ padding-top:16px; } }

/* Inputs jolis même sans form-control */
.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="number"]{
  width: 100%; border: 1px solid #e6eaee; background: #ecf3ff;
  padding: .75rem .9rem; border-radius: 10px; outline: none;
  transition: border-color .15s, box-shadow .15s, background .2s; font-size: 1rem;
}
.auth-card input:focus{ border-color:#0b8c45; box-shadow:0 0 0 .2rem rgba(11,140,69,.15); background:#fff; }

.btn-danger{ background-color:#c62828; border-color:#c62828; }
.btn-danger:hover{ background-color:#a61c1c; border-color:#a61c1c; }


.references-section {
  background: #f9f9f9;
}

.reference-logo {
  max-height: 60px;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.reference-logo:hover {
  opacity: 1;
}


.rb-hero {
  background: linear-gradient(0deg, #ffffff 0%, #f8faf9 100%);
}

.reference-logo {
  max-height: 60px;
  opacity: 0.9;
  object-fit: contain;
  transition: opacity .2s ease;
}
.reference-logo:hover {
  opacity: 1;
}

.rb-card-cover {
  height: 220px;
  object-fit: cover;
  border-top-left-radius: .5rem;
  border-top-right-radius: .5rem;
}

.rb-product-card .badge {
  font-weight: 500;
}

.rb-month .border {
  background: #fff;
}

.bg-success-subtle { background-color: #eaf7ef; }
.bg-danger-subtle  { background-color: #fdeced; }


.rb-filters .form-label {
  font-weight: 600;
}
/* =========================
   Footer – style premium
   ========================= */

/* On cible l'élément site-footer ET des fallbacks si la classe n'est pas encore appliquée */
.site-footer,
footer.site-footer,
footer[role="contentinfo"] {
  position: relative;
  background: #f7fbf9;                 /* fond clair légèrement verdâtre */
  overflow: hidden;
  border-top: 1px solid #dfe9e6;
}

/* Liseré dégradé en haut */
.site-footer::before,
footer.site-footer::before,
footer[role="contentinfo"]::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #0f5f3f, #2fbf71, #0f5f3f);
  opacity: .25;
}

/* Motif discret */
.site-footer::after,
footer.site-footer::after,
footer[role="contentinfo"]::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient( rgba(15,95,63,0.06) 1px, transparent 1px );
  background-size: 16px 16px;
  opacity: .6;
}

/* Contenu au-dessus du motif */
.site-footer .container,
footer.site-footer .container,
footer[role="contentinfo"] .container {
  position: relative;
  z-index: 1;
}

/* Titres */
.site-footer h5,
.site-footer .footer-title,
footer.site-footer h5,
footer.site-footer .footer-title,
footer[role="contentinfo"] h5,
footer[role="contentinfo"] .footer-title {
  font-weight: 800;
  letter-spacing: .3px;
  color: #137a50;
  margin-bottom: 1rem;
}

/* Texte */
.site-footer p,
footer.site-footer p,
footer[role="contentinfo"] p {
  color: #516365;
  line-height: 1.65;
}

/* Liens + soulignement animé */
.site-footer a,
footer.site-footer a,
footer[role="contentinfo"] a {
  color: #1f2b2d;
  text-decoration: none;
  position: relative;
  display: inline-block;
  transition: color .2s ease;
}

.site-footer a:not(.btn, .social-link)::after,
footer.site-footer a:not(.btn, .social-link)::after,
footer[role="contentinfo"] a:not(.btn, .social-link)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, #0f5f3f, #2fbf71);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.site-footer a:hover,
footer.site-footer a:hover,
footer[role="contentinfo"] a:hover {
  color: #0f5f3f;
}

.site-footer a:hover::after,
footer.site-footer a:hover::after,
footer[role="contentinfo"] a:hover::after {
  transform: scaleX(1);
}

/* Séparateur */
.site-footer hr,
footer.site-footer hr,
footer[role="contentinfo"] hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, #a8cfc1, transparent);
  margin-top: 2rem;
  margin-bottom: 1rem;
  opacity: 1;
}

/* Icônes sociales */
.site-footer .social-link,
footer.site-footer .social-link,
footer[role="contentinfo"] .social-link {
  --size: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  margin-right: .6rem;
  color: #0f5f3f;
  background: #e7f5ef;
  box-shadow: 0 1px 0 rgba(16, 112, 79, .06),
              inset 0 0 0 1px rgba(16, 112, 79, .08);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  text-decoration: none;
}

.site-footer .social-link:hover,
footer.site-footer .social-link:hover,
footer[role="contentinfo"] .social-link:hover {
  transform: translateY(-2px);
  background: #dff3ea;
  box-shadow: 0 8px 16px rgba(16, 112, 79, .12),
              inset 0 0 0 1px rgba(16, 112, 79, .14);
  color: #0d5e38;
}

/* Copyright */
.site-footer .copyright,
footer.site-footer .copyright,
footer[role="contentinfo"] .copyright,
.site-footer .small,
footer.site-footer .small,
footer[role="contentinfo"] .small {
  color: #6a7a7b !important;
}

/* Responsive */
@media (max-width: 767.98px) {
  .site-footer .col-md-4:not(:last-child),
  footer.site-footer .col-md-4:not(:last-child),
  footer[role="contentinfo"] .col-md-4:not(:last-child) {
    margin-bottom: 1.25rem;
  }
}

.nav-link {
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: #198754; /* vert bootstrap */
}

.nav-link.active {
  background-color: #198754;
  color: #fff !important;
  border-radius: 5px;
  padding: 5px 10px;
}

/* -- Navbar -- */
.rb-navbar { backdrop-filter: saturate(180%) blur(8px); }

.rb-logo {
  width: 36px; height: 36px; object-fit: cover; border-radius: 50%;
}



/* Bouton panier */
.rb-cart-btn {
  padding: .45rem .8rem;
  border-radius: .6rem;
}

/* Ajuste le badge du panier sur petits écrans */
@media (max-width: 991.98px) {
  .rb-cart-total { display:none; }
}

/* Panier */
.cart-thumb {
  width: 56px;
  height: 56px;
}

.qty-input {
  width: 80px;
}

/* Carte récap collée sous la navbar */
.summary-card {
  top: 88px; /* adapter si ta navbar est plus haute */
}

.table td, .table th {
  vertical-align: middle;
}



.builder-cover {
  background: url("/static/img/builder-cover.jpg") center/cover no-repeat;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  min-height: 180px; /* fallback si ratio non appliqué */
}
body {
  padding-top: 65px; /* adapte la valeur à la hauteur exacte de ta navbar */
}

.rb-navbar {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* petite ombre élégante */
  z-index: 1030; /* pour être au-dessus des dropdowns et modals */
}


/* === Navbar RevinaPro (Bootstrap 5) === */
.rb-navbar {
  backdrop-filter: saturate(180%) blur(6px);
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.06);
}

.rb-logo {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #009540; /* vert Revina */
}

/* Liens */
.navbar .nav-link {
  font-weight: 600;
  color: #344054 !important;
  padding: 0.75rem 0.8rem;
  border-radius: 8px;
  transition: background-color .15s ease, color .15s ease;
}
.navbar .nav-link:hover {
  color: #009540 !important;
  background-color: rgba(0, 149, 64, 0.06);
}
.navbar .nav-link.active {
  color: #009540 !important;
  background-color: rgba(0, 149, 64, 0.12);
}

/* Bouton panier */
.rb-cart-btn {
  --bs-btn-padding-y: .45rem;
  --bs-btn-padding-x: .8rem;
  border-radius: .6rem;
}

/* Dropdown */
.navbar .dropdown-menu {
  border-radius: 12px;
  padding: .5rem;
  border: 1px solid #eef2f6;
}
.navbar .dropdown-item {
  border-radius: .5rem;
  padding: .55rem .75rem;
}
.navbar .dropdown-item:hover {
  background-color: #f5f8f6;
}

/* Body offset si navbar sticky */
body { padding-top: 12px; }
@media (max-width: 991.98px) {
  body { padding-top: 72px; }
}

/* Supprime les anciennes règles conflictuelles */
.navbar.navbar-old,
.navbar.navbar-legacy { all: unset; }

/* --- Ajuste la hauteur de la navbar --- */
.rb-navbar .nav-link {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.navbar-brand {
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}

.navbar {
  min-height: 58px; /* ~hauteur standard Bootstrap */
}

.rb-logo {
  width: 50px;
  height: 50px;
  border: 1px solid #009540;
}


.rb-cart-btn {
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.rb-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 149, 64, 0.25);
}

.navbar {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}


/* === FILTRE PACKAGES === */
.rb-filters {
  background: linear-gradient(180deg, #ffffff 0%, #f8fdf9 100%) !important;
  border: 1px solid #dcefe2;
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease-in-out;
}

/* Effet au survol : légère mise en avant */
.rb-filters:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* Labels et champs */
.rb-filters .form-label {
  font-weight: 600;
  color: #1e4032;
}

.rb-filters .form-control {
  border-radius: 10px;
  border: 1px solid #cfe5d7;
  padding: 10px 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.rb-filters .form-control:focus {
  border-color: #009540;
  box-shadow: 0 0 0 0.2rem rgba(0, 149, 64, 0.15);
}

/* === BOUTONS === */
.btn-book {
  background: linear-gradient(90deg, #009540, #00b85b);
  border: none;
  border-radius: 50px;
  color: #fff;
  font-weight: 600;
  padding: 10px 28px;
  transition: 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 149, 64, 0.25);
}

.btn-book:hover {
  background: linear-gradient(90deg, #00b85b, #009540);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 149, 64, 0.35);
}

/* Réinitialiser */
.btn-outline-secondary {
  border-radius: 50px;
  font-weight: 500;
  padding: 10px 26px;
  color: #444;
  border-color: #ccc;
  transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
  color: #fff;
  background-color: #6c757d;
  border-color: #6c757d;
}

/* Responsive ajusté */
@media (max-width: 768px) {
  .rb-filters {
    padding: 16px;
  }
  .btn-book,
  .btn-outline-secondary {
    width: 100%;
  }
}


/* === FILTRE COMPACT (liste services, etc.) === */
form.row.g-2 {
  background: #ffffff;
  border: 1px solid #e0ede4;
  border-radius: 14px;
  padding: 18px 40px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease-in-out;
}

/* Effet hover (discret) */
form.row.g-2:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Labels */
form.row.g-2 .form-label {
  font-weight: 600;
  color: #1e4032;
  font-size: 0.9rem;
}

/* Champs de saisie */
form.row.g-2 .form-control,
form.row.g-2 .form-select {
  border-radius: 10px;
  border: 1px solid #cfe5d7;
  padding: 8px 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

form.row.g-2 .form-control:focus,
form.row.g-2 .form-select:focus {
  border-color: #009540;
  box-shadow: 0 0 0 0.2rem rgba(0, 149, 64, 0.15);
}

/* === Bouton "Filtrer" === */
form.row.g-2 .btn-outline-secondary {
  background: linear-gradient(90deg, #009540, #00b85b);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

form.row.g-2 .btn-outline-secondary:hover {
  background: linear-gradient(90deg, #00b85b, #009540);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 149, 64, 0.25);
}

/* Responsive : le filtre reste propre sur mobile */
@media (max-width: 768px) {
  form.row.g-2 {
    padding: 14px;
  }
  form.row.g-2 .btn-outline-secondary {
    width: 100%;
  }
}
