/* ═══════════════════════════════════════════
   RIMM Hébergement v3 — Frontend CSS
   Design: chaleureux, musiques du monde
   Fonts: Playfair Display + Nunito
═══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=Nunito:wght@400;500;600;700;800&display=swap');

.rimm-heb {
  font-family: 'Nunito', sans-serif;
  background: #FDFAF5;
  color: #1A1208;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.rh-step { display: none; padding: clamp(24px,5vw,48px) clamp(16px,4vw,40px) clamp(40px,6vw,64px); max-width: 1140px; margin: 0 auto; }
.rh-step.active { display: block; }

/* ── Progress bar ── */
.rh-progress {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 0; padding: 28px 20px 0; max-width: 520px; margin: 0 auto;
}
.rh-progress-step {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  flex: 1; position: relative;
}
.rh-progress-step::before {
  content: '';
  position: absolute; top: 15px;
  left: calc(-50% + 15px); right: calc(50% + 15px);
  height: 2px; background: #E8DEC8; transition: background .4s;
}
.rh-progress-step:first-child::before { display: none; }
.rh-progress-step.done::before  { background: #E85D1A; }
.rh-progress-step.active::before { background: #E85D1A; }

.rh-progress-dot {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid #E8DEC8; background: #FDFAF5;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: #C9A96E; font-weight: 700;
  font-family: 'Nunito', sans-serif; position: relative; z-index: 1;
  transition: all .3s;
}
.rh-progress-step.active .rh-progress-dot { border-color: #E85D1A; background: #E85D1A; color: #fff; box-shadow: 0 0 0 4px rgba(232,93,26,0.15); }
.rh-progress-step.done .rh-progress-dot   { border-color: #E85D1A; background: #E85D1A; color: #fff; }

.rh-progress-label {
  font-family: 'Nunito', sans-serif; font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: #C9A96E; text-align: center;
}
.rh-progress-step.active .rh-progress-label { color: #E85D1A; font-weight: 800; }
.rh-progress-step.done .rh-progress-label   { color: #5A4030; }

/* ── Titles ── */
.rh-title {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: #1A1208; margin-bottom: 6px; letter-spacing: -0.01em; line-height: 1.15;
}
.rh-title-accent { color: #E85D1A; font-style: italic; }
.rh-subtitle {
  font-family: 'Nunito', sans-serif;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: #C9A96E; margin-bottom: 32px; display: block;
}

/* ── Back button ── */
.rh-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 1px solid rgba(26,18,8,0.14); color: #5A4030;
  font-family: 'Nunito', sans-serif; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 7px 18px; border-radius: 20px; cursor: pointer; margin-bottom: 22px;
  transition: all .2s;
}
.rh-back:hover { border-color: #E85D1A; color: #E85D1A; }

/* ── Buttons ── */
.rh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #E85D1A; color: #fff; font-family: 'Nunito', sans-serif; font-weight: 800;
  font-size: clamp(0.8rem, 2.5vw, 0.92rem); letter-spacing: 0.05em; text-transform: uppercase;
  text-decoration: none; padding: 12px 28px; border-radius: 50px;
  border: 2px solid transparent; cursor: pointer; transition: all .22s; line-height: 1.3;
}
.rh-btn:hover { background: #C94C14; color: #fff; text-decoration: none; }

.rh-btn-pay {
  background: #D4952A; font-size: clamp(0.85rem, 2.5vw, 1rem);
  padding: 17px 38px; margin-top: 8px;
  box-shadow: 0 4px 18px rgba(212,149,42,0.3);
  animation: rhPayPulse 2.5s ease-in-out infinite;
}
.rh-btn-pay:hover { background: #B87E22; animation: none; box-shadow: 0 6px 22px rgba(212,149,42,0.45); color: #fff; }
@keyframes rhPayPulse { 0%,100%{box-shadow:0 4px 18px rgba(212,149,42,0.3)} 50%{box-shadow:0 4px 28px rgba(212,149,42,0.55)} }

.rh-btn-submit { width: 100%; margin-top: 28px; padding: 16px; font-size: 0.95rem; }
.rh-btn-secondary { background: transparent; border-color: rgba(26,18,8,0.18); color: #5A4030; }
.rh-btn-secondary:hover { border-color: #1A1208; color: #1A1208; background: transparent; }

/* ── Hotel grid ── */
.rh-hotels-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px,1fr)); gap: 24px; }

.rh-hotel-card {
  background: #fff; border: 1px solid rgba(26,18,8,0.08); border-radius: 16px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(26,18,8,0.06); transition: transform .25s, box-shadow .25s;
}
.rh-hotel-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(26,18,8,0.1); }

.rh-hotel-img img { width: 100%; height: 200px; object-fit: cover; display: block; }
.rh-hotel-img-placeholder {
  width: 100%; height: 140px;
  background: linear-gradient(135deg, #F5EFE0, #E8DEC8);
  display: flex; align-items: center; justify-content: center; font-size: 2.5rem;
}
.rh-hotel-body { padding: 22px; }
.rh-hotel-body h3 {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 1.15rem;
  color: #1A1208; margin-bottom: 8px; letter-spacing: 0.01em;
}
.rh-hotel-desc { font-size: 0.8rem; color: #7A6050; line-height: 1.8; margin-bottom: 14px; }
.rh-hotel-meta { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.rh-hotel-meta span { font-size: 0.75rem; color: #7A6050; display: flex; align-items: center; gap: 6px; }
.rh-hotel-meta a { font-size: 0.75rem; color: #E85D1A; text-decoration: none; display: flex; align-items: center; gap: 6px; }
.rh-hotel-meta a:hover { text-decoration: underline; }
.rh-divider { height: 1px; background: rgba(26,18,8,0.07); margin: 14px 0; }
.rh-sold-out-banner {
  text-align: center; background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B;
  font-family: 'Nunito', sans-serif; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 10px; border-radius: 8px;
}

/* ── Room grid ── */
.rh-rooms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px,1fr)); gap: 20px; }

.rh-room-card {
  background: #fff; border: 1.5px solid rgba(26,18,8,0.08); border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(26,18,8,0.05); display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.rh-room-card:hover:not(.rh-sold-out) { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(26,18,8,0.1); border-color: rgba(232,93,26,0.25); }
.rh-room-card.rh-sold-out { opacity: 0.55; }

.rh-room-top {
  background: linear-gradient(135deg, #1A1208 0%, #2D1E0A 100%);
  padding: 20px 18px; position: relative; min-height: 90px;
}
.rh-room-top h4 {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 1.05rem;
  color: #F5EFE0; margin-bottom: 5px; padding-right: 80px;
}
.rh-room-desc-top { font-size: 0.72rem; color: rgba(245,239,224,0.5); line-height: 1.6; }
.rh-room-price-badge {
  position: absolute; top: 14px; right: 14px;
  background: #E85D1A; color: #fff; font-family: 'Nunito', sans-serif;
  font-weight: 800; font-size: 0.9rem; padding: 5px 12px; border-radius: 20px;
  white-space: nowrap;
}

.rh-room-body { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.rh-room-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rh-tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: #F5EFE0; border: 1px solid #E8DEC8; color: #5A4030;
  font-family: 'Nunito', sans-serif; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 12px;
}
.rh-tag-stock-ok  { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
.rh-tag-stock-low { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }
.rh-tag-sold      { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.rh-room-cta { margin-top: auto; }
.rh-room-cta .rh-btn { width: 100%; }

/* ── Booking summary ── */
.rh-booking-summary { margin-bottom: 28px; }
.rh-summary {
  display: flex; flex-wrap: wrap; gap: 0;
  background: linear-gradient(135deg, #1A1208, #2D1E0A);
  border-radius: 12px; padding: 18px 24px; overflow: hidden;
}
.rh-summary-item {
  display: flex; flex-direction: column; gap: 3px;
  padding: 0 20px 0 0; margin-right: 20px;
  border-right: 1px solid rgba(245,239,224,0.1);
}
.rh-summary-item:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.rh-summary-label { font-size: 0.58rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(245,239,224,0.4); }
.rh-summary-value { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 0.95rem; color: #F5EFE0; }
.rh-summary-value.accent { color: #D4952A; }

/* ── Form ── */
.rh-form-section {
  background: #fff; border: 1px solid rgba(26,18,8,0.08); border-radius: 14px;
  padding: clamp(18px,4vw,26px); margin-bottom: 18px;
  box-shadow: 0 1px 6px rgba(26,18,8,0.04);
}
.rh-form-section h3 {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 0.95rem;
  color: #E85D1A; margin-bottom: 18px; display: flex; align-items: center; gap: 8px;
}
.rh-person-section {
  background: #fff; border: 1.5px solid rgba(26,18,8,0.08);
  border-left: 4px solid #E85D1A; border-radius: 12px;
  padding: clamp(16px,3vw,22px); margin-bottom: 14px;
  box-shadow: 0 1px 6px rgba(26,18,8,0.04);
}
.rh-person-section h3 {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 0.95rem;
  color: #E85D1A; margin-bottom: 16px;
}
.rh-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:520px){ .rh-form-row { grid-template-columns: 1fr; } }

.rh-form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.rh-form-group:last-child { margin-bottom: 0; }
.rh-form-group label {
  font-family: 'Nunito', sans-serif; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase; color: #5A4030;
}
.rh-req { color: #E85D1A; }
.rh-form-group input,
.rh-form-group select,
.rh-form-group textarea {
  background: #FDFAF5; border: 1.5px solid rgba(26,18,8,0.12); border-radius: 8px;
  padding: 11px 14px; color: #1A1208; font-family: 'Nunito', sans-serif;
  font-size: 0.85rem; font-weight: 500; transition: border-color .2s, box-shadow .2s; width: 100%;
}
.rh-form-group input:focus,
.rh-form-group select:focus,
.rh-form-group textarea:focus {
  outline: none; border-color: #E85D1A;
  box-shadow: 0 0 0 3px rgba(232,93,26,0.1); background: #fff;
}
.rh-form-group input::placeholder,
.rh-form-group textarea::placeholder { color: rgba(26,18,8,0.25); }
#rh-capacity-note { font-size: 0.68rem; color: #C9A96E; letter-spacing: 0.04em; margin-top: 2px; }

/* ── Success ── */
.rh-success-box { text-align: center; max-width: 580px; margin: 0 auto; padding: clamp(32px,6vw,52px) clamp(16px,4vw,28px); }
.rh-success-icon-wrap {
  width: 76px; height: 76px; border-radius: 50%;
  background: linear-gradient(135deg, #ECFDF5, #D1FAE5); border: 2px solid #A7F3D0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 22px;
}
.rh-success-box h2 {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 800;
  font-size: clamp(1.4rem, 3.5vw, 2rem); color: #1A1208; margin-bottom: 10px;
}
.rh-success-ref {
  font-family: 'Nunito', sans-serif; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: #C9A96E; margin-bottom: 14px;
}
.rh-success-email-note {
  font-size: 0.78rem; color: #5A4030; margin-bottom: 28px;
  padding: 12px 18px; background: #F5EFE0; border-radius: 8px;
  border: 1px solid #E8DEC8; line-height: 1.7;
}
#rh-pay-btn-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }

/* ── Loading / empty ── */
.rh-loading { text-align: center; padding: 48px; color: #C9A96E; font-size: 0.8rem; letter-spacing: 0.1em; }
.rh-empty   { color: #C9A96E; font-size: 0.85rem; padding: 24px 0; text-align: center; }

/* ── Mobile ── */
@media(max-width:480px){
  .rh-room-top { padding: 16px 14px; }
  .rh-room-top h4 { padding-right: 70px; font-size: 0.95rem; }
  .rh-room-price-badge { font-size: 0.78rem; padding: 4px 10px; }
  .rh-summary { flex-direction: column; gap: 10px; }
  .rh-summary-item { border-right: none; padding-right: 0; margin-right: 0; border-bottom: 1px solid rgba(245,239,224,0.1); padding-bottom: 10px; }
  .rh-summary-item:last-child { border-bottom: none; padding-bottom: 0; }
}
