/* ═══════════════════════════════════════════════════════════════
   FLASH.CSS — Styles pour la section Flashs Tatouage (julls.fr)
   Galerie listing + page détail + sélecteur taille/prix
   ═══════════════════════════════════════════════════════════════ */

/* ── GALERIE LISTING (/flashs) ──────────────────────────────── */

.flash-gallery {
  padding: 60px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.flash-gallery__head {
  margin-bottom: 32px;
}

.flash-gallery__head .gallery-title {
  font-family: 'Playfair Display', 'Amandine', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #1a1a1a;
  letter-spacing: 1px;
}

.flash-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* ── TILE (vignette flash) ──────────────────────────────────── */

.flash-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flash-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.flash-tile--reserved {
  opacity: 0.7;
}
.flash-tile--reserved:hover {
  transform: none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.flash-tile__img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f8f8f8;
}

.flash-tile__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.flash-tile:hover .flash-tile__img-wrap img {
  transform: scale(1.05);
}

.flash-tile--reserved:hover .flash-tile__img-wrap img {
  transform: none;
}

/* Badge "Réservé" */
.flash-tile__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(198, 40, 40, 0.9);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  z-index: 2;
}
.flash-tile__badge--large {
  position: static;
  font-size: 14px;
  padding: 8px 20px;
}

.flash-tile__info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.flash-tile__info strong {
  font-size: 15px;
  color: #1a1a1a;
}

.flash-tile__price {
  font-size: 14px;
  color: #c8a96e;
  font-weight: 500;
}
.flash-tile__price--reserved {
  color: #c62828;
}


/* ── PAGE DÉTAIL (/flashs/slug) ─────────────────────────────── */

.flash-detail {
  padding: 60px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.flash-detail__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Image modèle */
.flash-detail__model {
  border-radius: 14px;
  overflow: hidden;
  background: #f8f8f8;
}
.flash-detail__model img {
  width: 100%;
  display: block;
  border-radius: 14px;
}

/* Panneau commande */
.flash-detail__order {
  position: sticky;
  top: 100px;
}

.flash-detail__order h2 {
  font-family: 'Playfair Display', 'Amandine', serif;
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #1a1a1a;
}

/* ── SÉLECTEUR DE TAILLE ────────────────────────────────────── */

.flash-sizes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.flash-size-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: 2px solid #e5e5e5;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.flash-size-option:hover {
  border-color: #c8a96e;
  background: rgba(200,169,110,0.04);
}
.flash-size-option--selected {
  border-color: #c8a96e;
  background: rgba(200,169,110,0.08);
}

.flash-size-option input[type="radio"] {
  display: none;
}

.flash-size-option__content {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.flash-size-option__content strong {
  font-size: 15px;
  color: #1a1a1a;
}
.flash-size-option__dims {
  font-size: 13px;
  color: #999;
}
.flash-size-option__area {
  font-size: 12px;
  color: #bbb;
}

.flash-size-option__price {
  font-size: 18px;
  font-weight: 700;
  color: #c8a96e;
  white-space: nowrap;
}

/* ── TOTAL ───────────────────────────────────────────────────── */

.flash-detail__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 24px;
}
.flash-detail__total-label {
  font-size: 16px;
  color: #666;
  font-weight: 500;
}
.flash-detail__total-price {
  font-family: 'Playfair Display', 'Amandine', serif;
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
}

/* ── FORMULAIRE RÉSERVATION ─────────────────────────────────── */

.flash-reserve-form__fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.flash-reserve-form .form-group {
  margin-bottom: 0;
}
.flash-reserve-form .form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 6px;
}
.flash-reserve-form .form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  color: #333;
  transition: border-color 0.2s;
}
.flash-reserve-form .form-control:focus {
  outline: none;
  border-color: #c8a96e;
}

.flash-reserve-btn {
  width: 100%;
  padding: 16px 24px;
  background: #c8a96e;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.flash-reserve-btn:hover {
  background: #a68844;
  transform: translateY(-1px);
}
.flash-reserve-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.flash-reserve-form__note {
  font-size: 12px;
  color: #999;
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

.flash-reserve-form__feedback {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}
.flash-reserve-form__feedback--success {
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  color: #2e7d32;
}
.flash-reserve-form__feedback--error {
  background: #ffebee;
  border: 1px solid #ffcdd2;
  color: #c62828;
}

/* Notice "Réservé" sur la page détail */
.flash-detail__reserved-notice {
  text-align: center;
  padding: 32px 20px;
  background: #fafafa;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
}
.flash-detail__reserved-notice p {
  margin-top: 16px;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

.flash-detail__no-sizes {
  color: #999;
  font-size: 14px;
  line-height: 1.6;
  padding: 20px 0;
}

/* ── Galerie "Autres flashs" ────────────────────────────────── */
.flash-gallery--related {
  padding-top: 40px;
  border-top: 1px solid #f0f0f0;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */

@media (max-width: 768px) {
  .flash-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .flash-detail__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .flash-detail__order {
    position: static;
  }

  .flash-tile__info {
    padding: 12px;
  }
  .flash-tile__info strong {
    font-size: 13px;
  }
  .flash-tile__price {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .flash-gallery {
    padding: 40px 16px;
  }
  .flash-detail {
    padding: 40px 16px;
  }
  .flash-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* ── ENCART INFORMATIF (tarif / retouche) ──────────────────── */

.flash-info-band {
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.seo-band.flash-info-band {
  padding: 0 24px 40px;
  margin-top: -140px;
}

.flash-info-inner {
  background: #faf8f5;
  border-left: 4px solid #c8a96e;
  border-radius: 0 8px 8px 0;
  padding: 24px 28px;
}

.flash-info-inner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  font-style: italic;
}

@media (max-width: 600px) {
  .flash-info-band {
    padding: 24px 16px;
  }
  .flash-info-inner {
    padding: 18px 20px;
  }
  .flash-info-inner p {
    font-size: 13px;
  }
}
