/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

body {
  background: #f5f0e8;
  color: #3e2723;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== HEADER MODERNE ===== */
.site-header {
  background: linear-gradient(135deg, #3e2723 0%, #5d4037 100%);
  color: #f5f0e8;
  padding: 30px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: inherit;
}

.logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.site-title h1 {
  font-size: 2rem;
  margin: 0;
  color: #f5f0e8;
  font-weight: 700;
}

.site-title .tagline {
  font-size: 1rem;
  color: #d7ccc8;
  font-style: italic;
  margin: 5px 0 0 0;
}

/* ===== NAVIGATION ===== */
.main-nav {
  background: #5d4037;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  position: relative;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2px;
  flex-wrap: nowrap;
  justify-content: center;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: block;
  padding: 15px 14px;
  color: #f5f0e8;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  transition: all 0.3s;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.nav-menu > li > a:hover {
  background: #8d6e63;
  border-bottom: 3px solid #ea580c;
}

/* Sous-menus */
.has-dropdown > a::after {
  content: " ▾";
  font-size: 0.8rem;
  margin-left: 5px;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #5d4037;
  min-width: 280px;
  list-style: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  border-radius: 0 0 8px 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s;
  z-index: 1000;
}

.has-dropdown:hover > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown > li > a {
  display: block;
  padding: 12px 20px;
  color: #f5f0e8;
  text-decoration: none;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}

.dropdown > li > a:hover {
  background: #8d6e63;
  border-left: 3px solid #ea580c;
  padding-left: 25px;
}

/* Sous-sous-menus */
.has-subdropdown > a::after {
  content: " ▸";
  font-size: 0.8rem;
  margin-left: 5px;
  float: right;
}

.subdropdown {
  position: absolute;
  left: 100%;
  top: 0;
  background: #4e342e;
  min-width: 250px;
  list-style: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  border-radius: 0 8px 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all 0.3s;
  z-index: 1001;
}

.has-subdropdown:hover > .subdropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.subdropdown li a {
  display: block;
  padding: 12px 20px;
  color: #f5f0e8;
  text-decoration: none;
  font-size: 0.88rem;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}

.subdropdown li a:hover {
  background: #6d4c41;
  border-left: 3px solid #ea580c;
  padding-left: 25px;
}

/* Bouton hamburger mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #f5f0e8;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 15px;
}

/* ===== CONTENU PRINCIPAL ===== */
.site-main {
  flex: 1;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* ===== SECTION HERO (Bienvenue) ===== */
.hero-section {
  background: linear-gradient(135deg, #faf6f1 0%, #f5f0e8 100%);
  padding: 60px 0;
  text-align: center;
}

.welcome-title {
  font-size: 2.5rem;
  color: #3e2723;
  margin-bottom: 20px;
  font-weight: 700;
}

.welcome-text {
  font-size: 1.2rem;
  color: #6d4c41;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

/* ===== SECTION SERVICES ===== */
.services-section {
  background: white;
  padding: 60px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: #faf6f1;
  padding: 35px 25px;
  border-radius: 16px;
  border-left: 4px solid #8d6e63;
  transition: all 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.service-card h3 {
  color: #3e2723;
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.service-card p {
  color: #6d4c41;
  line-height: 1.6;
}

/* ===== SECTION PROMO (Location) ===== */
.promo-section {
  background: #f5f0e8;
  padding: 60px 0;
}

.promo-card {
  background: linear-gradient(135deg, #3e2723 0%, #5d4037 100%);
  color: #f5f0e8;
  padding: 50px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(62, 39, 35, 0.2);
}

.promo-card h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #d7ccc8;
}

.promo-card p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #efebe9;
  line-height: 1.6;
}

.btn-promo {
  display: inline-block;
  background: #ea580c;
  color: white;
  padding: 16px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(234, 88, 12, 0.3);
}

.btn-promo:hover {
  background: #c2410c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.4);
}

/* ===== FOOTER ===== */
.site-footer {
  background: #3e2723;
  color: #a1887f;
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-contact {
  margin-top: 10px;
  font-size: 0.85rem;
}

.footer-contact a {
  color: #d7ccc8;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
  }
  
  .logo-link {
    flex-direction: column;
  }
  
  .site-title h1 {
    font-size: 1.5rem;
  }
  
  .welcome-title {
    font-size: 1.8rem;
  }
  
  .welcome-text {
    font-size: 1rem;
  }
  
  .promo-card {
    padding: 30px 20px;
  }
  
  .promo-card h3 {
    font-size: 1.4rem;
  }
  
  /* Menu mobile */
  .menu-toggle {
    display: block;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .nav-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu > li > a {
    padding: 15px 20px;
    border-bottom: 1px solid #4e342e;
  }
  
  .dropdown,
  .subdropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;
  }
  
  .has-dropdown.open > .dropdown,
  .has-subdropdown.open > .subdropdown {
    display: block;
  }
}

/* ===== PLANNING - CARTES DE SESSIONS ===== */
.card {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-bottom: 30px;
}

.card h2 {
  color: #3e2723;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.session-card {
  background: #faf6f1;
  border: 1px solid #d7ccc8;
  border-radius: 12px;
  padding: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: all 0.3s;
}

.session-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.session-info {
  flex: 1;
}

.session-info h3 {
  color: #3e2723;
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.session-info p {
  color: #6d4c41;
  margin-bottom: 15px;
  line-height: 1.6;
}

.session-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.9rem;
  color: #4a3f35;
}

.session-action {
  text-align: center;
  min-width: 180px;
}

.places-badge {
  padding: 10px 15px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 15px;
  display: inline-block;
}

.places-badge.available {
  background: #d1fae5;
  color: #065f46;
}

.places-badge.full {
  background: #fee2e2;
  color: #991b1b;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
  width: 100%;
  text-align: center;
}

.btn-primary {
  background: #ea580c;
  color: white;
}

.btn-primary:hover {
  background: #c2410c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.btn-disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
}

.breadcrumb {
  font-size: 0.9rem;
  color: #8d6e63;
  margin-bottom: 20px;
}

.breadcrumb a {
  color: #5d4037;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .session-card {
    flex-direction: column;
    align-items: stretch;
  }
  
  .session-action {
    width: 100%;
  }
}
/* ===== INVITATION À SE CONNECTER ===== */
.login-invite {
  background: #fef3c7;
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
}

.invite-text {
  color: #78350f;
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.login-invite .btn {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  padding: 10px 20px;
}

.login-invite .btn:last-child {
  margin-bottom: 0;
}

.btn-secondary {
  background: white;
  color: #3e2723;
  border: 2px solid #3e2723;
}

.btn-secondary:hover {
  background: #3e2723;
  color: white;
  transform: translateY(-2px);
}

/* ✅ NOUVEAU AFFICHAGE DES PLACES */
.places-info-container {
  text-align: center;
  margin-bottom: 15px;
}

.places-badge {
  padding: 10px 15px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: 8px;
}

.places-badge.available {
  background: #d1fae5;
  color: #065f46;
}

.places-badge.full {
  background: #fee2e2;
  color: #991b1b;
}

.places-restantes {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}