/* ============================================================
   STRAYDE.PHOTO — Styles application (parcours acheteur)
   ============================================================
   Grille photos, lightbox, panier, checkout, confirmation
   ============================================================ */

/* Compenser la navbar fixe (64px) */
body {
  padding-top: 80px;
}

/* ============================================================
   NAV APP (breadcrumb + panier proéminent)
   ============================================================ */
.nav-app {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-app .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.nav-app .nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-app .nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  transition: color var(--transition);
}

.nav-app .nav-back svg {
  width: 16px;
  height: 16px;
}

.nav-app .nav-back:hover {
  color: var(--heading);
}

.nav-app .nav-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.nav-app .nav-breadcrumb a {
  color: var(--text);
  font-weight: 600;
  transition: color var(--transition);
}

.nav-app .nav-breadcrumb a:hover {
  color: var(--accent2);
}

.nav-app .nav-breadcrumb .sep {
  font-size: 10px;
  opacity: 0.4;
}

.nav-app .nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Panier proéminent dans nav app */
.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: var(--heading);
  transition: all var(--transition);
  position: relative;
}

.cart-button:hover {
  border-color: var(--accent2);
  background: rgba(92, 196, 131, 0.04);
}

.cart-button svg {
  width: 18px;
  height: 18px;
}

.cart-button .cart-total {
  color: var(--accent2);
  font-weight: 900;
}

.cart-button .cart-count-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--accent2);
  color: #ffffff;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}


/* ============================================================
   BLOC RECHERCHE DOSSARD
   ============================================================ */
.bib-search-block {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  margin: 32px 0;
  border: 1px solid var(--border);
}

.bib-search-block .bib-search-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.bib-search-block h3 {
  margin-bottom: 4px;
}

.bib-search-block .bib-search-subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.bib-search-form {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
}

.bib-search-form input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 20px;
  text-align: center;
  color: var(--heading);
  outline: none;
  letter-spacing: 0.05em;
  transition: border-color var(--transition);
}

.bib-search-form input::placeholder {
  font-weight: 400;
  font-size: 16px;
  color: var(--muted);
  letter-spacing: 0;
}

.bib-search-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(92, 196, 131, 0.12);
}

.bib-search-link {
  display: block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  transition: color var(--transition);
}

.bib-search-link:hover {
  color: var(--accent2);
}

/* Résultats recherche dossard */
.bib-results {
  max-width: 600px;
  margin: 20px auto 0;
  display: none;
}

.bib-results.visible {
  display: block;
  animation: slideDown 0.3s var(--ease);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bib-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.bib-results-header h4 {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bib-results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.bib-results-grid .bib-result-photo {
  aspect-ratio: 3/2;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.bib-results-grid .bib-result-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--ease);
}

.bib-results-grid .bib-result-photo:hover img {
  transform: scale(1.05);
}

.bib-no-results {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: var(--muted);
}

.bib-no-results .link-arrow {
  display: inline-flex;
  margin-top: 8px;
}

/* Inline (compact, dans barre d'actions album) */
.bib-search-inline {
  display: flex;
  gap: 6px;
  align-items: center;
}

.bib-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.bib-input-wrap input {
  padding: 8px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 14px;
  width: 140px;
  text-align: center;
  outline: none;
  transition: border-color var(--transition);
}

.bib-input-wrap input:focus {
  border-color: var(--accent);
}

/* Bouton croix pour effacer la recherche dossard */
.bib-input-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--muted);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition);
}

.bib-input-clear:hover {
  background: var(--heading);
}

/* Décaler le texte quand la croix est visible */
.bib-input-wrap:has(.bib-input-clear) input {
  padding-right: 30px;
}

.bib-search-inline .btn {
  padding: 8px 12px;
  font-size: 13px;
}


/* ============================================================
   BARRE D'ACTIONS ALBUM (sticky)
   ============================================================ */
.album-actions {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: sticky;
  top: 80px;
  z-index: 99;
}

.album-actions .actions-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.album-actions .actions-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.album-actions .photo-count {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--heading);
}

.album-filters {
  display: flex;
  gap: 4px;
}

.album-filter {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--muted);
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.album-filter:hover {
  color: var(--heading);
  background: var(--bg-soft);
}

.album-filter.active {
  background: rgba(92, 196, 131, 0.1);
  color: var(--accent2);
  border-color: rgba(92, 196, 131, 0.2);
}

.album-actions .actions-right {
  display: flex;
  align-items: center;
  gap: 12px;
}


/* ============================================================
   BANDEAUX PACKS (dossard + personnalisés)
   ============================================================ */
.pack-banner {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 16px 0;
  transition: border-color var(--transition);
}

.pack-banner:hover {
  border-color: var(--accent);
}

.pack-banner-bib {
  border-left: 4px solid var(--accent);
}

.pack-banner-custom {
  border-left: 4px solid var(--accent2);
}

.pack-banner-header {
  display: flex;
  align-items: center;
 /* gap: 16px;*/
}

.pack-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(92, 196, 131, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent2);
  flex-shrink: 0;
}

.pack-banner-info {
  flex: 1;
  min-width: 0;
}

.pack-banner-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--heading);
  margin: 0;
}

.pack-banner-meta {
  font-size: 13px;
  color: var(--muted);
  margin: 2px 0 0;
}

.pack-banner-price {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  color: var(--heading);
}

.pack-banner-saving {
  display: inline-block;
  background: #e8f5e9;
  color: var(--accent2);
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
  margin-left: 4px;
}

.pack-cart-btn.added {
  background: var(--accent2);
  border-color: var(--accent2);
  color: #ffffff;
}

/* Aperçus photo dans le bandeau pack */
.pack-previews {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.pack-thumb {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pack-thumb:hover {
  transform: scale(1.06);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.pack-thumb-more {
  width: 72px;
  height: 54px;
  border-radius: 8px;
  background: var(--bg-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: var(--muted);
  flex-shrink: 0;
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 3000;
  background: var(--dark);
  color: #ffffff;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  opacity: 0;
  transition: all 0.3s var(--ease);
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}

.toast-notification.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.toast-notification.toast-warning {
  background: #ffa726;
  color: var(--dark);
}

.toast-notification.toast-success {
  background: var(--accent2);
  color: #ffffff;
}


/* ============================================================
   GRILLE PHOTOS
   ============================================================ */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 24px 0;
}

.card-photo {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-mid);
  aspect-ratio: 3/2;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.card-photo:hover img {
  transform: scale(1.04);
}

/* Overlay au hover */
.card-photo .photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.65) 0%,
    transparent 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
}

.card-photo:hover .photo-overlay {
  opacity: 1;
}

.photo-overlay .overlay-top {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.photo-overlay .overlay-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.photo-overlay .photo-price {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 16px;
  color: #ffffff;
}

.photo-overlay .overlay-actions {
  display: flex;
  gap: 6px;
}

/* Boutons overlay photo */
.photo-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.photo-action-btn:hover {
  background: var(--accent2);
  transform: scale(1.1);
}

.photo-action-btn.added {
  background: var(--accent2);
}

.photo-action-btn svg {
  width: 16px;
  height: 16px;
}

/* Badge dossard sur photo */
.photo-bib-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent);
  color: var(--dark);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 11px;
  z-index: 2;
}

/* Badge multi-dossards : icône seule + tooltip au survol */
.photo-bib-multi {
  cursor: pointer;
  padding: 5px 7px;
  line-height: 1;
}
.bib-tooltip {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--dark);
  color: #fff;
  padding: 6px 10px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 10;
}
.bib-tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 10px;
  border: 5px solid transparent;
  border-bottom-color: var(--dark);
}
.bib-tooltip-item {
  display: block;
  padding: 2px 0;
  color: var(--accent);
}
.photo-bib-multi:hover .bib-tooltip,
.photo-bib-multi:focus .bib-tooltip {
  display: block;
}

/* Photo sélectionnée (dans panier) */
.card-photo.in-cart {
  box-shadow: inset 0 0 0 3px var(--accent2);
}

/* Animation ajout panier */
@keyframes cartBounce {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}

.cart-bounce {
  animation: cartBounce 0.3s ease;
}


/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 4px;
}

/* Navigation lightbox */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 10;
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-prev svg,
.lightbox-next svg {
  width: 24px;
  height: 24px;
}

/* Fermeture lightbox */
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 24px;
  transition: background 0.2s ease;
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

/* Infos lightbox (dossard, photographe, panier) */
.lightbox-info {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

.lightbox-info .lightbox-badges {
  display: flex;
  gap: 6px;
}

.lightbox-info .lightbox-photographer {
  font-weight: 600;
}

.lightbox-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--accent);
  color: var(--dark);
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
  margin-left: auto;
}

.lightbox-cart-btn:hover {
  background: #d4f08e;
  transform: translateY(-1px);
}

.lightbox-cart-btn svg {
  width: 16px;
  height: 16px;
}

.lightbox-cart-btn.added {
  background: var(--accent2);
  color: #ffffff;
}


/* ============================================================
   RESUME PANIER FLOTTANT
   ============================================================ */
.cart-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  background: var(--dark);
  color: #ffffff;
  padding: 16px 24px;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  display: none;
  align-items: center;
  gap: 16px;
  animation: slideUp 0.3s var(--ease);
}

.cart-float.visible {
  display: flex;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cart-float .cart-float-text {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
}

.cart-float .cart-float-text strong {
  color: var(--accent);
}

.cart-float .btn {
  padding: 8px 20px;
  font-size: 13px;
}

.cart-float-mobile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-float-mobile svg {
  width: 22px;
  height: 22px;
  color: #ffffff;
}

.cart-float-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--accent2);
  color: #ffffff;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}


/* ============================================================
   PAGE PANIER
   ============================================================ */
.cart-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
  padding: 40px 0;
}

.cart-items h2 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.cart-count-text {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

/* Item panier */
.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.cart-item-thumb {
  width: 72px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info .item-name {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--heading);
  margin-bottom: 2px;
}

.cart-item-info .item-source {
  font-size: 12px;
  color: var(--muted);
}

.cart-item-price {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 16px;
  color: var(--heading);
  white-space: nowrap;
}

.cart-item-remove {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
  background: none;
  border: none;
  font-size: 18px;
}

.cart-item-remove:hover {
  background: #fde8e8;
  color: #e74c3c;
}

/* Groupe événement dans le panier */
.cart-group {
  margin-bottom: 16px;
}

.cart-group-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-bottom: 8px;
}

/* Options d'achat (packs) */
.purchase-options {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
}

.purchase-options h3 {
  font-size: 1rem;
  margin-bottom: 16px;
}

.purchase-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg);
}

.purchase-option:hover {
  border-color: var(--accent);
}

.purchase-option.selected {
  border-color: var(--accent2);
  background: rgba(92, 196, 131, 0.04);
}

.purchase-option input[type="radio"] {
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: var(--accent2);
}

.purchase-option .option-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.purchase-option .option-content {
  flex: 1;
}

.purchase-option .option-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--heading);
  margin-bottom: 2px;
}

.purchase-option .option-desc {
  font-size: 12px;
  color: var(--muted);
}

.purchase-option .option-price {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 16px;
  color: var(--heading);
  white-space: nowrap;
}

.purchase-option .option-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 800;
}

.option-badge-save {
  background: #e8f5e9;
  color: var(--accent2);
}

.option-badge-best {
  background: var(--accent);
  color: var(--dark);
}

/* Résumé commande (sidebar panier + checkout) */
.order-summary {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 112px;
}

.order-summary h3 {
  font-size: 1rem;
  margin-bottom: 20px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
}

.summary-line .label {
  color: var(--text);
}

.summary-line .value {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--heading);
}

.summary-line.discount .value {
  color: var(--accent2);
}

.summary-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.summary-total .label {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--heading);
}

.summary-total .value {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 24px;
  color: var(--heading);
}

/* Champ code promo */
.promo-field {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.promo-field input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.promo-field input:focus {
  border-color: var(--accent);
}

.promo-field .btn {
  padding: 10px 16px;
  font-size: 13px;
}

/* Icônes garanties */
.security-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.security-badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.security-badge-item svg {
  width: 14px;
  height: 14px;
  color: var(--accent2);
}

/* Panier vide */
.cart-empty {
  text-align: center;
  padding: 64px 32px;
}

.cart-empty .empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.cart-empty h3 {
  margin-bottom: 8px;
}

.cart-empty p {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 14px;
}


/* ============================================================
   PAGE CHECKOUT (PAIEMENT)
   ============================================================ */

/* Nav minimaliste checkout */
.nav-checkout {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.nav-checkout .nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.nav-checkout .checkout-back {
  position: absolute;
  left: var(--container-px);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-checkout .checkout-back:hover {
  color: var(--heading);
}

.nav-checkout .checkout-secure {
  position: absolute;
  right: var(--container-px);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--accent2);
  font-weight: 700;
}

/* Barre de progression checkout */
.checkout-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 480px;
  margin: 32px auto;
}

.checkout-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}

.checkout-step .step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  transition: all var(--transition);
}

.checkout-step.completed .step-circle {
  background: var(--accent2);
  border-color: var(--accent2);
  color: #ffffff;
}

.checkout-step.active .step-circle {
  border-color: var(--accent2);
  color: var(--accent2);
}

.checkout-step.active {
  color: var(--heading);
}

.checkout-step.completed {
  color: var(--accent2);
}

.checkout-step-line {
  width: 48px;
  height: 2px;
  background: var(--border);
  margin: 0 12px;
  transition: background var(--transition);
}

.checkout-step-line.completed {
  background: var(--accent2);
}

/* Layout checkout */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
  padding: 0 0 64px;
}

/* Formulaire checkout */
.checkout-section {
  margin-bottom: 32px;
}

.checkout-section h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.checkout-section .section-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

/* Champs carte bancaire */
.card-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.card-fields .full-width {
  grid-column: 1 / -1;
}

/* Labels flottants */
.float-label {
  position: relative;
}

.float-label .form-input {
  padding-top: 20px;
  padding-bottom: 8px;
}

.float-label label {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--muted);
  pointer-events: none;
  transition: all 0.2s ease;
}

.float-label .form-input:focus + label,
.float-label .form-input:not(:placeholder-shown) + label {
  top: 12px;
  font-size: 10px;
  color: var(--accent2);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Tabs moyens de paiement */
.payment-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.payment-tab {
  flex: 1;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
  background: none;
}

.payment-tab.active {
  border-color: var(--accent2);
  color: var(--heading);
  background: rgba(92, 196, 131, 0.04);
}

.payment-tab:hover {
  border-color: var(--accent);
}

/* Bouton payer */
.btn-pay {
  width: 100%;
  padding: 18px 32px;
  font-size: 17px;
  background: var(--accent2);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-pay:hover {
  background: #4db575;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(92, 196, 131, 0.3);
}

.btn-pay svg {
  width: 20px;
  height: 20px;
}

/* Logos sécurité paiement */
.payment-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}

.payment-security svg {
  width: 16px;
  height: 16px;
}

/* Miniatures résumé checkout */
.summary-thumbs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.summary-thumb {
  width: 56px;
  height: 42px;
  border-radius: 6px;
  overflow: hidden;
}

.summary-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.summary-thumb.more {
  background: var(--bg-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 11px;
  color: var(--muted);
}


/* ============================================================
   PAGE CONFIRMATION
   ============================================================ */
.confirmation-page {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  padding: 40px 20px;
}

.confirmation-card {
  text-align: center;
  max-width: 560px;
  width: 100%;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
  padding: 48px 40px;
}

.confirmation-card .order-number {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-top: 8px;
}

.confirmation-card .confirmation-email {
  font-weight: 700;
  color: var(--heading);
}

.confirmation-card .confirmation-recap {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 20px 0;
  font-size: 14px;
  color: var(--muted);
}

.confirmation-card .confirmation-recap strong {
  color: var(--heading);
}

.confirmation-card .info-block {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

/* Partage réseaux sociaux */
.share-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.share-section h4 {
  font-size: 14px;
  margin-bottom: 12px;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.share-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all var(--transition);
}

.share-btn:hover {
  border-color: var(--accent2);
  color: var(--accent2);
  background: rgba(92, 196, 131, 0.04);
}

.share-btn svg {
  width: 18px;
  height: 18px;
}


/* ============================================================
   SECTION RASSURANCE (événements, albums)
   ============================================================ */
.reassurance {
  background: var(--bg-soft);
  padding: 32px 0;
  margin-top: 48px;
}

.reassurance-grid {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.reassurance-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}

.reassurance-item .reassurance-icon {
  font-size: 20px;
}


/* ============================================================
   TABLE — Override Bootstrap .table pour thème Strayde
   ============================================================ */
.table-custom,
.table.table-strayde {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  --bs-table-bg: transparent;
  --bs-table-color: var(--text);
  --bs-table-border-color: var(--border);
}

.table-custom thead th,
.table.table-strayde thead th {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: transparent;
}

.table-custom tbody td,
.table.table-strayde tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.table-custom tbody tr:hover,
.table.table-strayde tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Summary discount line (green) */
.summary-discount {
  color: var(--accent2);
}

/* Checkout step-dot (used in checkout progress bar) */
.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: var(--muted);
  flex-shrink: 0;
}

.checkout-step.done .step-dot {
  background: var(--accent2);
  border-color: var(--accent2);
  color: #ffffff;
}

.checkout-step.active .step-dot {
  border-color: var(--accent2);
  color: var(--accent2);
}

.checkout-step.active {
  color: var(--heading);
}

.checkout-step.done {
  color: var(--accent2);
}


/* ============================================================
   RESPONSIVE APP
   ============================================================ */
@media (max-width: 991px) { /** 900 */ 
  /* Pack banners */
  .pack-banner-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  /* Grille photos */
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  /* Bib résultats */
  .bib-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Panier */
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: relative;
    top: 0;
  }

  /* Checkout */
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  /* Actions album */
  .album-actions .actions-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .album-actions .actions-left,
  .album-actions .actions-right {
    justify-content: space-between;
  }

  /* Nav app */
  .nav-app .nav-breadcrumb {
    display: none;
  }

  /* Cart float mobile : bulle compacte */
  .cart-float {
    right: 25px;
    bottom: 25px;
    padding: 12px;
    border-radius: 50%;
    gap: 0;
  }

  /* Checkout progress */
  .checkout-step span:not(.step-circle) {
    display: none;
  }

  .checkout-step-line {
    width: 24px;
  }

  /* Lightbox */
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }

  .lightbox-info {
    flex-direction: column;
    text-align: center;
  }

  .lightbox-cart-btn {
    margin-left: 0;
  }
}

@media (max-width: 576px) { /* */
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .cart-item {
    flex-wrap: wrap;
    gap: 12px;
  }

  .cart-item-thumb {
    width: 60px;
    height: 45px;
  }

  .bib-search-form {
    flex-direction: column;
  }

  .confirmation-card {
    padding: 32px 20px;
  }

  .card-fields {
    grid-template-columns: 1fr;
  }

  .nav-checkout .checkout-back,
  .nav-checkout .checkout-secure {
    display: none;
  }
}
