/* ============================================================
   style.css — Styles communs Chalet du Meygal
   ============================================================ */

/* ─── Variables globales ─────────────────────────────────── */
:root {
  --font-title: 'Montserrat', sans-serif;
  --font-body:  'Lato', sans-serif;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 24px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.16);
  --transition: .3s ease;
}

/* ─── Reset / Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.25;
}

img { max-width: 100%; height: auto; }

a { transition: color var(--transition); }

/* ─── Navbar ────────────────────────────────────────────────*/
.navbar-meygal {
  padding: .8rem 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
  transition: background var(--transition), box-shadow var(--transition);
}

.brand-text {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -.5px;
}

/* Toggle saison */
.saison-toggle { gap: 4px; }

.btn-saison {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 50px;
  border: 2px solid transparent;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: .82rem;
  cursor: pointer;
  transition: all var(--transition);
  background: transparent;
}

.saison-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,.3);
}

/* ─── Hero ──────────────────────────────────────────────────*/
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1s ease;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.9);
  max-width: 600px;
}

/* ─── Sections communes ─────────────────────────────────────*/
.section-title {
  font-family: var(--font-title);
  font-weight: 800;
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.section-title::after {
  content: '';
  display: block;
  height: 4px;
  width: 50px;
  border-radius: 4px;
  margin-top: 8px;
}

/* ─── Cartes activités ──────────────────────────────────────*/
.card-activite {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}

.card-activite:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-activite .card-img-top {
  height: 220px;
  object-fit: cover;
}

.card-activite .card-emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: .5rem;
}

/* ─── Bulletin d'enneigement ────────────────────────────────*/
.bulletin-card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.bulletin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}

.domaine-badge {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .85rem;
  padding: 6px 16px;
  border-radius: 50px;
}

.domaine-ouvert  { background: #22c55e; color: #fff; }
.domaine-ferme   { background: #ef4444; color: #fff; }

.piste-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: .6rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.piste-row:last-child { border-bottom: none; }

.piste-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.piste-verte  { background: #22c55e; }
.piste-bleue  { background: #3b82f6; }
.piste-rouge  { background: #ef4444; }
.piste-noire  { background: #1e1e1e; }

.statut-ouvert  { color: #16a34a; font-weight: 700; }
.statut-partiel { color: #f59e0b; font-weight: 700; }
.statut-ferme   { color: #dc2626; font-weight: 700; }

.statut-icon-ouvert  { font-size: 1.1rem; }
.statut-icon-partiel { font-size: 1.1rem; }
.statut-icon-ferme   { font-size: 1.1rem; }

.neige-info {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.neige-bloc {
  text-align: center;
}

.neige-cm {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.neige-label {
  font-size: .8rem;
  opacity: .7;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ─── Agenda ────────────────────────────────────────────────*/
.event-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: none;
  overflow: hidden;
  transition: transform var(--transition);
}

.event-card:hover { transform: translateY(-4px); }

.event-date-badge {
  width: 56px;
  text-align: center;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}

.event-date-day {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  padding: 8px 0 4px;
}

.event-date-month {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: rgba(255,255,255,.85);
  padding-bottom: 8px;
}

/* ─── Tarifs ────────────────────────────────────────────────*/
.tarif-table th {
  font-family: var(--font-title);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.tarif-prix {
  font-family: var(--font-title);
  font-weight: 700;
}

/* ─── Footer ────────────────────────────────────────────────*/
.footer-meygal {
  background: #1a1f2e;
  color: #fff;
  margin-top: auto;
}

.footer-newsletter {
  background: rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-body { border-bottom: 1px solid rgba(255,255,255,.08); }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-size: .9rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }

.footer-social {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color var(--transition), transform var(--transition);
  display: inline-block;
}
.footer-social:hover { color: #fff; transform: scale(1.15); }

.footer-bottom { background: rgba(0,0,0,.2); }

.footer-map iframe { display: block; }

/* ─── Boutons communs ───────────────────────────────────────*/
.btn-meygal {
  font-family: var(--font-title);
  font-weight: 700;
  border-radius: 50px;
  padding: .65rem 1.8rem;
  transition: all var(--transition);
  border: none;
  letter-spacing: .3px;
}

.btn-meygal:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }

/* ─── Chiffres clés ─────────────────────────────────────────*/
.stat-bloc {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-family: var(--font-title);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .8px;
  opacity: .7;
  margin-top: .3rem;
}

/* ─── Section chalet ────────────────────────────────────────*/
.chalet-services .service-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: .8rem 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.chalet-services .service-item:last-child { border-bottom: none; }

.service-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ─── Responsive ────────────────────────────────────────────*/
@media (max-width: 768px) {
  .hero { min-height: 70vh; }
  .hero-title { font-size: 1.9rem; }
  .neige-cm { font-size: 1.8rem; }
  .stat-number { font-size: 2rem; }
  .saison-toggle { width: 100%; justify-content: center; margin: .5rem 0; }
}

/* ─── Utilitaires ───────────────────────────────────────────*/
.rounded-lg { border-radius: var(--radius-lg) !important; }
.shadow-meygal { box-shadow: var(--shadow) !important; }

.section-py { padding: 5rem 0; }
@media (max-width: 768px) { .section-py { padding: 3rem 0; } }

/* Scroll to top */
#scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 999;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

#scroll-top.visible { display: flex; }
#scroll-top:hover { transform: translateY(-3px); }
