/* ============================================================
   bateaux.css — Styles partagés pour le module location bateaux
   ============================================================ */

/* ── Couleurs ── */
:root {
  --bateau-primary:   #1E98C2;
  --bateau-dark:      #0d6e94;
  --bateau-light-bg:  #e8f6fb;
}

/* ── Hero gradient commun aux pages bateaux ── */
.resa-hero,
.bateau-hero,
.bateau-show-hero,
.packs-hero {
  background: linear-gradient(135deg, var(--bateau-primary) 0%, var(--bateau-dark) 100%);
  color: #fff;
}

/* ── Resa-hero padding unifié ── */
.resa-hero { padding: 40px 0 30px; }

/* ── Bouton retour ── */
.btn-retour {
  color: var(--bateau-primary);
  border-color: var(--bateau-primary);
  background-color: transparent;
}
.btn-retour:hover {
  color: #fff;
  background-color: var(--bateau-primary);
  border-color: var(--bateau-primary);
}

/* ── Hero info pill (résumé réservation) ── */
.resa-hero .hero-info {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 16px;
  background: rgba(255,255,255,.22);
  border: 1.5px solid rgba(255,255,255,.5);
  border-radius: 40px;
  padding: 12px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  letter-spacing: .01em;
}
.resa-hero .hero-info-sep { opacity: .5; }

/* ── Bateau-hero — hero vitrine ── */
.bateau-hero {
  padding: 60px 0 40px;
  text-align: center;
}
.bateau-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.bateau-hero p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 24px;
}

/* ── Packs-hero — page packs ── */
.packs-hero { padding: 50px 0; text-align: center; }

/* ── Barre de progression de réservation ── */
.step-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 16px 0 0;
  flex-wrap: wrap;
}
.step {
  padding: 8px 16px;
  font-size: .82rem;
  background: var(--bateau-dark);
  color: rgba(255, 255, 255, .9);
}
.step.active {
  background: #fff;
  color: var(--bateau-primary);
  font-weight: 700;
  border-radius: 4px;
}

/* ── Titres de section ── */
.bateau-section-title {
  color: var(--bateau-primary);
  font-weight: 700;
  border-left: 4px solid var(--bateau-primary);
  padding-left: 12px;
  margin-bottom: 24px;
}

/* ── Description tronquée avec tooltip ── */
.pack-description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: help;
}

/* ── Badge capacité ── */
.badge-capacite,
.badge-cap {
  background: var(--bateau-primary);
  color: #fff;
  border-radius: 20px;
  padding: 4px 14px;
  font-size: .85rem;
  display: inline-block;
}

/* ── Carte bateau ── */
.bateau-card {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.type-card {
  appearance: none;
  border: none;
  background: #fff;
  width: 100%;
  max-width: 360px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(16,24,40,.08);
  transition: transform .18s, box-shadow .18s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
}
.type-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(16,24,40,.12); }
.type-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.type-card-placeholder { height: 180px; background: linear-gradient(180deg, #e6f7fb, #dff3f9); display:flex; align-items:center; justify-content:center; font-size:48px; }
.type-card-body { padding: 14px 16px 18px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.type-card-header { display:flex; align-items:center; gap:12px; width:100%; }
.type-name { font-weight:800; color:var(--bateau-dark); font-size:1.1rem; }
.type-card .badge-capacite { background: transparent; color:var(--bateau-dark); padding:6px 12px; border-radius:999px; font-weight:700; display:inline-block; border:1px solid rgba(30,152,194,.12); }
/* icon is provided in markup via <i class="fa fa-users"> to avoid font-family CSS dependency */
.type-card.active { outline: 3px solid rgba(30,152,194,.14); }

/* Make boats hidden initially: boats-group stays display:none until user clicks a type */
.boats-group { display: none; }
.bateau-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 28px rgba(30, 152, 194, .3);
}
.bateau-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.bateau-card .card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.bateau-card .card-body h4,
.bateau-card .card-body h5 {
  color: var(--bateau-primary);
  font-weight: 700;
  margin-bottom: 10px;
}
.bateau-card .card-body .mt-auto {
  border-top: 1px solid #e8f3f8;
  padding-top: 14px;
  margin-top: 14px;
}
.bateau-card-placeholder {
  height: 220px;
  background: #cde9f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
}

/* ── Carte pack ── */
.pack-card {
  background: #fff;
  border-radius: 14px;
  border: none;
  padding: 24px 24px 24px;
  padding-top: 28px;
  height: 100%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .10);
  transition: box-shadow .2s, transform .2s;
  position: relative;
  overflow: hidden;
}
/* Barre d'accent colorée en haut */
.pack-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--bateau-primary), var(--bateau-dark));
  border-radius: 14px 14px 0 0;
}
.pack-card:hover {
  box-shadow: 0 10px 32px rgba(30, 152, 194, .22);
  transform: translateY(-5px);
}
.pack-card h3,
.pack-card h4,
.pack-card h5 {
  color: var(--bateau-primary);
  font-weight: 700;
  margin-bottom: 12px;
}
/* Séparateur avant la zone prix/bouton */
.pack-card .mt-auto {
  border-top: 1px solid #e8f3f8;
  padding-top: 16px;
  margin-top: 16px;
}

.pack-tarif {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--bateau-dark);
  letter-spacing: -.5px;
}
.pack-crenau {
  background: var(--bateau-light-bg);
  border: 1px solid var(--bateau-primary);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: .82rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--bateau-dark);
  font-weight: 600;
  margin: 2px;
}
.option-tag {
  background: #f0f8ff;
  border: 1px solid #b8ddef;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: .82rem;
  display: inline-block;
  margin: 2px;
}

/* ── Tableau tarifs ── */
.tarif-table th { background: var(--bateau-primary); color: #fff; }

/* ── Boîte d'infos pratiques ── */
.info-box {
  background: var(--bateau-light-bg);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}
.info-box i { color: var(--bateau-primary); }

/* ── Créneau – grille de slots ── */
.slot-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 500;
  border: 2px solid var(--bateau-dark);
  color: var(--bateau-dark);
  background: #fff;
  text-decoration: none;
  transition: .15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.slot-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0;
  transition: opacity .15s;
}
.slot-btn:hover {
  background: var(--bateau-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 110, 148, .2);
}
.slot-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(13, 110, 148, .15);
}
.slot-indispo {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 500;
  border: 2px dashed #adb5bd;
  color: #6c757d;
  background: linear-gradient(135deg, #e9ecef 25%, #f0f3f6 25%, #f0f3f6 50%, #e9ecef 50%, #e9ecef 75%, #f0f3f6 75%, #f0f3f6);
  background-size: 20px 20px;
  cursor: not-allowed;
  opacity: 0.70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

/* ── Créneau — sections à la carte ── */
.crenau-section {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}
.crenau-section h4 {
  font-weight: 700;
  margin-bottom: 12px;
}

/* ── Légende de disponibilité ── */
.availability-legend {
  background: var(--bateau-light-bg);
  border: 1px solid #c6e5f0;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: .92rem;
}
.availability-legend small {
  font-size: .82rem;
}

/* ── Pack price/slots blocks — alignement vertical ── */
.pack-price-block {
  border-top: 1px solid #e8f3f8;
  padding-top: 12px;
  margin-top: 12px;
}
.pack-slots-block {
  min-height: 80px;
  border-top: 1px solid #e8f3f8;
  padding-top: 12px;
  margin-top: 8px;
}

/* ── Ticket de réservation ── */
.ticket {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .12);
  max-width: 520px;
  margin: 0 auto;
  overflow: hidden;
}
.ticket-header {
  background: var(--bateau-primary);
  color: #fff;
  padding: 20px;
  text-align: center;
}
.ticket-body { padding: 24px; }
.ticket-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed #dee2e6;
  font-size: .95rem;
}
.ticket-row:last-child { border-bottom: none; }
.ticket-montant {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--bateau-primary);
  text-align: center;
  padding: 20px 0;
}

/* ── QR code — validation ── */
.qrcode-wrapper {
  text-align: center;
  padding: 16px 0;
}
.qrcode-wrapper img {
  width: 160px;
  height: 160px;
  border: 4px solid #1E98C2;
  border-radius: 8px;
}

/* ── Statuts réservation ── */
.status-badge {
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: .9rem;
  display: inline-block;
}
.status-1 { background: #fff3cd; color: #856404; }
.status-2 { background: #d1e7dd; color: #0f5132; }
.status-3 { background: #cff4fc; color: #055160; }
.status-4 { background: #f8d7da; color: #842029; }

/* ── Calendrier de disponibilités ── */
.cal-table { width: 100%; border-collapse: separate; border-spacing: 4px; }
.cal-table th { text-align: center; padding: 8px; color: #6c757d; font-size: .82rem; font-weight: 600; }
.cal-table td { text-align: center; padding: 0; }
.day-cell {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  margin: 2px auto;
}
.day-dispo { background: var(--bateau-dark); color: #fff; cursor: pointer; font-weight: 600; transition: background .15s; }
.day-dispo:hover { background: #0a5670; text-decoration: none; }
.day-indispo { background: #e9ecef; color: #6c757d; }
.day-futur { background: #fff3cd; color: #856404; }
.day-empty { background: transparent; }

/* ── Galerie lightbox ── */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 4px 32px rgba(0,0,0,.6);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: .8;
}
.lightbox-close:hover { opacity: 1; }
.gallery-thumb-img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s;
}
.gallery-thumb-img:hover,
.gallery-thumb-img.active { border-color: var(--bateau-primary); }

/* ── Lien social ── */
.social-link {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   padding: 10px 20px;
   border-radius: 20px;
   border: 2px solid var(--bateau-primary);
   font-size: .9rem;
   text-decoration: none;
   color: #fff;
   background: var(--bateau-primary);
   font-weight: 600;
   transition: all .25s ease;
   box-shadow: 0 2px 8px rgba(30, 152, 194, 0.2);
}
.social-link:hover {
   background: #C9D204;
   border-color: #C9D204;
   color: #0d6e94;
   text-decoration: none;
   box-shadow: 0 4px 12px rgba(201, 210, 4, 0.35);
   transform: translateY(-2px);
}
.social-link:active {
   transform: translateY(0);
   box-shadow: 0 2px 6px rgba(201, 210, 4, 0.25);
}
.social-link:focus-visible {
   outline: 3px solid #0d6e94;
   outline-offset: 2px;
   border-radius: 6px;
}

/* ── Bouton payer ── */
.btn-pay {
  display: block;
  background: var(--bateau-primary);
  color: #fff;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s;
}
.btn-pay:hover { background: var(--bateau-dark); color: #fff; }

/* ── Onglets créneau ── */
.nav-tabs .nav-link {
  color: var(--bateau-dark);
  font-weight: 600;
  background: var(--bateau-light-bg);
  border-color: #dee2e6;
}
.nav-tabs .nav-link:hover { background: #d0edf7; }
.nav-tabs .nav-link.active {
  color: var(--bateau-dark);
  background: #fff;
  border-color: #dee2e6 #dee2e6 #fff;
}

/* ── Ajustements sur fond blanc (contentPEMB) ── */
.nav-mois {
   background: #f8f9fa;
   border-radius: 10px;
   padding: 12px 20px;
   display: flex;
   align-items: center;
   justify-content: space-between;
}
.recap-box {
   background: linear-gradient(135deg, #fff 0%, #f8fbfd 100%);
   border: 1.5px solid var(--bateau-primary);
   border-radius: 14px;
   padding: 28px;
   box-shadow: 0 4px 20px rgba(30, 152, 194, 0.12);
   position: relative;
   overflow: hidden;
}

.recap-box::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   height: 5px;
   background: linear-gradient(90deg, var(--bateau-primary), var(--bateau-dark));
}

.recap-box h5 {
   font-size: 1.15rem;
   color: var(--bateau-primary);
   font-weight: 700;
   margin-bottom: 18px;
   padding-top: 8px;
}

.recap-box table {
   font-size: 0.93rem;
   margin-bottom: 0;
}

.recap-box table td:first-child {
   font-weight: 600;
   width: 140px;
   color: #555;
   padding-top: 10px;
   padding-bottom: 10px;
}

.recap-box table td:last-child {
   text-align: right;
   color: #1f2937;
   padding-top: 10px;
   padding-bottom: 10px;
}

.recap-box table tr:nth-child(even) {
   background-color: rgba(30, 152, 194, 0.03);
}

.recap-box table tr.border-top {
   background-color: transparent;
}

.recap-box .badge {
   font-weight: 600;
   font-size: 0.85rem;
   padding: 4px 12px;
}

.recap-box hr {
   border-color: #e5e7eb;
   margin: 16px 0;
}

.recap-box .small {
   background: var(--bateau-light-bg);
   border-left: 3px solid var(--bateau-primary);
   padding: 14px 16px;
   border-radius: 6px;
   display: block;
   color: #1e5a7a;
   line-height: 1.6;
}

.recap-box .small i {
   color: var(--bateau-primary);
   margin-right: 8px;
   font-weight: 600;
}

@media (max-width: 768px) {
   .recap-box {
      padding: 20px;
      margin-bottom: 24px;
   }

   .recap-box h5 {
      font-size: 1.05rem;
      margin-bottom: 14px;
   }

   .recap-box table td:first-child {
      width: 110px;
      font-size: 0.87rem;
   }

   .recap-box table td:last-child {
      font-size: 0.87rem;
   }
}

/* ── Blocs d'information du récapitulatif ── */
.recap-info-blocks {
   display: grid;
   grid-template-columns: 1fr;
   gap: 12px;
   margin-top: 16px;
}

.recap-info-block {
   display: flex;
   align-items: center;
   gap: 14px;
   padding: 16px 18px;
   border-radius: 10px;
   border-left: 4px solid var(--bateau-primary);
   background: #f0f8fc;
   transition: all .2s ease;
}

.recap-info-block:hover {
   background: #e8f5f9;
   box-shadow: 0 2px 8px rgba(30, 152, 194, 0.15);
}

.recap-info-block i {
   font-size: 1.4rem;
   width: 40px;
   text-align: center;
   flex-shrink: 0;
   padding-top: 2px;
}

.recap-info-block strong {
   display: block;
   color: var(--bateau-dark);
   font-weight: 700;
   font-size: 0.95rem;
   margin-bottom: 4px;
}

.recap-info-block p {
   margin: 0;
   color: #1f2937;
   font-size: 0.9rem;
   line-height: 1.4;
   font-weight: 500;
}

/* Variantes de couleurs pour chaque bloc */
.info-capacite {
   border-left-color: #1e98c2;
   background: rgba(30, 152, 194, 0.08);
}

.info-capacite i {
   color: #1e98c2;
}

.info-capacite:hover {
   background: rgba(30, 152, 194, 0.12);
}

.info-adulte {
   border-left-color: #059669;
   background: rgba(5, 150, 105, 0.08);
}

.info-adulte i {
   color: #059669;
}

.info-adulte:hover {
   background: rgba(5, 150, 105, 0.12);
}

.info-caution {
   border-left-color: #d97706;
   background: rgba(217, 119, 6, 0.08);
}

.info-caution i {
   color: #d97706;
}

.info-caution:hover {
   background: rgba(217, 119, 6, 0.12);
}

@media (max-width: 768px) {
   .recap-info-block {
      padding: 14px 14px;
      gap: 12px;
   }

   .recap-info-block i {
      font-size: 1.2rem;
      width: 36px;
   }

   .recap-info-block strong {
      font-size: 0.9rem;
   }

   .recap-info-block p {
      font-size: 0.85rem;
   }
}
.form-section {
   background: #f8f9fa;
   border-radius: 12px;
   padding: 28px;
   border: 1px solid #dee2e6;
}

/* ── Amélioration du contraste pour l'accessibilité ── */
.text-muted {
   color: #555 !important;
}
.slot-indispo {
   color: #333 !important;
}

