/* =============================================
   RUMBA Y SABOR — Feuille de styles principale
   ============================================= */

/* ---- VARIABLES ---- */
:root {
  /* Palette initiale */
  /* --rum: #c0392b; */
  /* --rum-light: #e74c3c; */
  /* --gold: #d4a017; */
  /* --gold-light: #f0c040; */
  /* --night: #1a0a00; */
  /* --night-mid: #2e1800; */
  /* --night-soft: #3d2200; */
  /* --cream: #fdf6e3; */
  /* --cream-warm: #f5e6c8; */

  /* Palette tropicale */
  --rum: #e85a3b;
  --rum-light: #ff7a57;
  --gold: #2db6a3;
  --gold-light: #5fd6c4;
  --night: #0a1f1c;
  --night-mid: #123330;
  --night-soft: #22413d;
  --cream: #fbf7ee;
  --cream-warm: #e8f3e9;
}

/* ---- BASE ---- */
* {
  box-sizing: border-box;
}

body {
  font-family: "DM Sans", sans-serif;
  background-color: var(--night);
  color: var(--cream);
}

/* ---- NAV ---- */
.nav-glass {
  background: rgba(26, 10, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo-mark {
  font-size: 1.5rem;
  color: var(--rum);
  line-height: 1;
}

.nav-link {
  color: rgba(253, 246, 227, 0.55);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
}
.nav-link:hover,
.nav-link.active {
  color: var(--gold);
}

/* ---- HERO ---- */
.hero-section {
  position: relative;
  background: var(--night);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 50% 0%,
      rgba(192, 57, 43, 0.18) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 50% at 85% 80%,
      rgba(212, 160, 23, 0.1) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 60% 60% at 10% 90%,
      rgba(192, 57, 43, 0.08) 0%,
      transparent 50%
    );
}

.noise-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(253, 246, 227, 0.3);
  font-size: 1.25rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ---- FADE IN UP ANIMATION ---- */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 0.7s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block;
  background: var(--rum);
  color: var(--cream);
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.15s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--rum-light);
  transform: translateY(-2px);
}
.btn-primary--large {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--cream);
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: 1px solid rgba(253, 246, 227, 0.25);
  transition:
    border-color 0.2s,
    color 0.2s,
    transform 0.15s;
  cursor: pointer;
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ---- SECTION TAGS ---- */
.section-tag {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rum-light);
  border: 1px solid rgba(192, 57, 43, 0.35);
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

/* ---- FEATURE CARDS (accueil) ---- */
.card-feature {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 2rem;
  transition: border-color 0.2s;
}
.card-feature:hover {
  border-color: rgba(212, 160, 23, 0.25);
}
.card-feature--accent {
  border-color: rgba(192, 57, 43, 0.2);
  background: rgba(192, 57, 43, 0.05);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* ---- EVENTS ---- */
.event-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  transition: border-color 0.2s;
}
.event-row:hover {
  border-color: rgba(212, 160, 23, 0.2);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
}

.event-badge {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  background: rgba(192, 57, 43, 0.2);
  color: var(--rum-light);
  white-space: nowrap;
}
.event-badge--gold {
  background: rgba(212, 160, 23, 0.15);
  color: var(--gold-light);
}
.event-badge--green {
  background: rgba(39, 174, 96, 0.15);
  color: #6fcf97;
}

/* ---- DECORATION ---- */
.decoration-circle {
  position: absolute;
  right: -200px;
  top: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(212, 160, 23, 0.06);
  pointer-events: none;
}

/* ---- CTA SECTION ---- */
.cta-section {
  background: var(--night-mid);
}
.cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 80% at 50% 50%,
    rgba(192, 57, 43, 0.15) 0%,
    transparent 70%
  );
}

/* ---- PAGE HEADER ---- */
.page-header {
  position: relative;
  background: var(--night);
  overflow: hidden;
}
.page-header-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 60% 80% at 0% 100%,
      rgba(192, 57, 43, 0.12) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 40% 60% at 100% 0%,
      rgba(212, 160, 23, 0.07) 0%,
      transparent 60%
    );
}

/* ---- COURS CARDS ---- */
.cours-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 1.75rem;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.cours-card:hover {
  border-color: rgba(212, 160, 23, 0.2);
  transform: translateY(-3px);
}
.cours-card--special {
  border-color: rgba(212, 160, 23, 0.15);
  background: rgba(212, 160, 23, 0.04);
}

.cours-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.cours-niveau {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-weight: 500;
}
.cours-niveau.debut {
  background: rgba(39, 174, 96, 0.15);
  color: #6fcf97;
}
.cours-niveau.intermediaire {
  background: rgba(212, 160, 23, 0.15);
  color: var(--gold-light);
}
.cours-niveau.avance {
  background: rgba(192, 57, 43, 0.15);
  color: var(--rum-light);
}
.cours-niveau.special {
  background: rgba(155, 89, 182, 0.15);
  color: #c39bd3;
}

.cours-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.75rem;
  color: rgba(253, 246, 227, 0.4);
  margin-top: 0.5rem;
}

/* ---- TARIFS ---- */
.tarif-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  transition: border-color 0.2s;
}
.tarif-card:hover {
  border-color: rgba(212, 160, 23, 0.2);
}
.tarif-card--featured {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.03);
}

.tarif-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--rum);
  color: var(--cream);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 20px;
}

.tarif-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.tarif-price {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  color: var(--cream);
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.tarif-price span {
  font-size: 0.9rem;
  font-weight: 300;
  opacity: 0.5;
}
.tarif-price--dark {
  color: var(--night);
}

.tarif-features {
  list-style: none;
  padding: 0;
  font-size: 0.85rem;
  color: rgba(253, 246, 227, 0.6);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tarif-features--dark li {
  color: rgba(26, 10, 0, 0.65);
}

/* ---- FAQ ---- */
.faq-category {
  margin-bottom: 3rem;
}

.faq-category-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.accordion-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.accordion-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.accordion-item[data-open="true"] {
  border-color: rgba(212, 160, 23, 0.25);
}

.accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: transparent;
  border: none;
  color: var(--cream);
  font-family: "DM Sans", sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}
.accordion-btn:hover {
  color: var(--gold);
}
.accordion-item[data-open="true"] .accordion-btn {
  color: var(--gold);
}

.accordion-icon {
  font-size: 1.2rem;
  color: var(--rum);
  font-weight: 300;
  min-width: 20px;
  text-align: center;
  transition: transform 0.2s;
}

.accordion-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    opacity 0.3s ease;
  padding: 0 1.25rem;
}
.accordion-body p {
  padding-bottom: 1.25rem;
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(253, 246, 227, 0.65);
}

/* ---- CONTACT ---- */
.contact-info-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.25rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(192, 57, 43, 0.1);
  border-radius: 6px;
  flex-shrink: 0;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  text-decoration: none;
  color: rgba(253, 246, 227, 0.6);
  font-size: 0.8rem;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.social-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ---- FORM ---- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(253, 246, 227, 0.7);
  text-transform: uppercase;
}

.form-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  padding: 0.75rem 1rem;
  color: var(--cream);
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}
.form-input::placeholder {
  color: rgba(253, 246, 227, 0.25);
}
.form-input:focus {
  border-color: var(--gold);
}

.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23D4A017' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-select option {
  background: var(--night-mid);
  color: var(--cream);
}

.form-input--error {
  border-color: var(--rum-light);
}
.form-error {
  color: var(--rum-light);
  font-size: 0.78rem;
  margin-top: 0.35rem;
}
.form-checkbox--error label {
  color: var(--rum-light);
}

/* ---- ACCÈS ---- */
.acces-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}
.acces-card:hover {
  border-color: rgba(212, 160, 23, 0.2);
}

/* ---- VIDÉOS ---- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.video-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 0.9rem;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.video-card:hover {
  border-color: rgba(212, 160, 23, 0.25);
  transform: translateY(-3px);
}

.video-embed-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* ratio 16:9 */
  border-radius: 6px;
  overflow: hidden;
  background: var(--night);
}
.video-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-title {
  margin-top: 0.9rem;
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  color: var(--cream);
}

/* ---- RESPONSIVE UTILITIES ---- */
@media (max-width: 768px) {
  .tarif-card--featured {
    transform: scale(1);
  }
  .event-row {
    flex-wrap: wrap;
  }
}
