/* ===== Heurék — style-user.css ===== */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800;900&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
  /* Palette Heurék : lavande, soleil, corail */
  --menthe:         #F5A84B;
  --menthe-light:   #FDE5C4;
  --menthe-dark:    #E07A1F;
  --peche:          #E85D42;
  --peche-light:    #FAD4CE;
  --peche-dark:     #C43D23;
  --lavande:        #D4B8E8;
  --lavande-light:  #EDE4F8;
  --lavande-dark:   #9B6DC8;

  --primary:        var(--menthe-dark);
  --primary-light:  var(--menthe);
  --accent:         var(--peche);
  --accent-light:   var(--peche-light);
  --soft:           var(--lavande);
  --soft-light:     var(--lavande-light);

  --bg:             #FFF8F5;
  --bg-card:        #FFFFFF;
  --bg-soft:        #FFF1E8;
  --text:           #2C1A10;
  --text-muted:     #9A7060;
  --border:         #F0D5C8;
  --shadow:         0 4px 24px rgba(232, 93, 66, 0.10);
  --shadow-hover:   0 8px 40px rgba(232, 93, 66, 0.18);
  --radius:         18px;
  --radius-sm:      10px;
  --radius-pill:    100px;
  --transition:     0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

/* ===== NAVBAR ===== */
.navbar {
  background: #fff;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(224, 122, 31, 0.08);
  border-bottom: 2px solid var(--lavande-light);
}

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--menthe-dark);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.navbar-brand span { color: var(--peche-dark); }

.nav-links { display: flex; gap: 0.4rem; align-items: center; list-style: none; }

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
  transition: var(--transition);
}

.nav-links a:hover { background: var(--menthe-light); color: var(--menthe-dark); }
.nav-links a.active { background: var(--menthe-light); color: var(--menthe-dark); }

.nav-links .btn-nav {
  background: var(--menthe-dark);
  color: #fff !important;
  font-weight: 800;
  padding: 0.5rem 1.3rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 3px 12px rgba(224, 122, 31, 0.30);
}
.nav-links .btn-nav:hover {
  background: var(--menthe);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(224, 122, 31, 0.35);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #F0FAF6 0%, var(--lavande-light) 50%, #FFF5EE 100%);
  padding: 5rem 2rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(232,93,66,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(245,168,75,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content { position: relative; max-width: 720px; margin: 0 auto; z-index: 1; }

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--text);
}

.hero h1 span { color: var(--menthe-dark); }
.hero p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2.5rem; font-weight: 400; }
.hero-sm { padding: 3rem 2rem 2.5rem; }
.hero-sm h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }

/* ===== STATS BAND ===== */
.stats-band { background: var(--menthe-dark); padding: 2rem 0; }

.stats-inner {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1rem;
}

.stat-num { font-size: 2.2rem; font-weight: 900; color: #fff; line-height: 1; }
.stat-lbl { font-size: 0.88rem; color: rgba(255,255,255,0.8); font-weight: 600; margin-top: 0.3rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius-pill);
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--transition);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--menthe-dark);
  color: #fff;
  box-shadow: 0 4px 16px rgba(224,122,31,0.30);
}
.btn-primary:hover {
  background: var(--menthe);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(224,122,31,0.40);
}

.btn-outline {
  background: transparent;
  border: 2.5px solid var(--menthe-dark);
  color: var(--menthe-dark);
}
.btn-outline:hover { background: var(--bg-soft); transform: translateY(-1px); }

.btn-green {
  background: var(--peche);
  color: #fff;
  box-shadow: 0 4px 16px rgba(232,93,66,0.30);
}
.btn-green:hover {
  background: var(--peche-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,93,66,0.40);
}

.btn-danger { background: #e05050; color: #fff; }
.btn-danger:hover { background: #c03030; }

.btn-sm { padding: 0.4rem 1.1rem; font-size: 0.875rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ===== LAYOUT ===== */
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section-alt { background: var(--lavande-light); }

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.section-sub { color: var(--text-muted); margin-bottom: 2.5rem; font-size: 1rem; font-weight: 400; }

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1.8rem;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--menthe);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card-img {
  width: 100%;
  height: 160px;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--menthe-light) 0%, var(--peche-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.card-tag {
  display: inline-block;
  background: var(--menthe-light);
  color: var(--menthe-dark);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.card p { color: var(--text-muted); font-size: 0.92rem; }
.card-meta { display: flex; flex-direction: column; gap: 0.3rem; margin: 0.8rem 0; font-size: 0.88rem; color: var(--text-muted); }
.card-date { color: var(--text-muted); font-size: 0.88rem; margin: 0.5rem 0; }

/* ===== FILTERS ===== */
.filters-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
}

.filter-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.filter-btn {
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover { border-color: var(--menthe); color: var(--menthe-dark); }
.filter-btn.active {
  background: var(--menthe-dark);
  border-color: var(--menthe-dark);
  color: #fff;
  box-shadow: 0 3px 12px rgba(224,122,31,0.30);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.1rem;
  min-width: 220px;
}

.search-input-wrap input {
  border: none; background: none; outline: none;
  font-family: 'Nunito', sans-serif;
  font-size: 0.92rem; color: var(--text); flex: 1;
}

/* ===== FORMS ===== */
.form-group { margin-bottom: 1.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--text); }

.form-control {
  width: 100%;
  padding: 0.75rem 1.1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  background: #fff;
  color: var(--text);
  transition: var(--transition);
  outline: none;
}

.form-control:focus { border-color: var(--menthe-dark); box-shadow: 0 0 0 3px rgba(245,168,75,0.25); }
.form-control::placeholder { color: #A8C5BC; }

/* ===== BADGE ===== */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
}
.badge-success { background: #E0F5EC; color: #C43D23; }
.badge-warning { background: #FFF5E0; color: #B87820; }
.badge-danger  { background: #FFEBEB; color: #B03030; }
.badge-info    { background: var(--lavande-light); color: var(--lavande-dark); }

/* ===== ALERT ===== */
.alert {
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-left: 4px solid;
}
.alert-success { background: #E0F5EC; border-color: #3D9E82; color: #C43D23; }
.alert-danger  { background: #FFEBEB; border-color: #e05050; color: #A03030; }
.alert-info    { background: var(--lavande-light); border-color: var(--lavande-dark); color: var(--lavande-dark); }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(30, 53, 48, 0.45);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.2rem;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(24px) scale(0.97);
  transition: var(--transition);
  border: 2px solid var(--menthe-light);
  box-shadow: 0 20px 60px rgba(224,122,31,0.15);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.modal-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; color: var(--text); font-weight: 700;
}

.modal-close {
  background: var(--bg-soft);
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: var(--menthe-dark); color: #fff; }

.modal-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 1rem 0; }
.modal-info-item {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--bg);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem; color: var(--text-muted); font-weight: 600;
}
.modal-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }

/* ===== AUTH ===== */
.auth-wrapper { max-width: 480px; margin: 3rem auto; }

.auth-tabs {
  display: flex;
  background: var(--bg);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: 2rem;
  border: 2px solid var(--border);
}

.auth-tab {
  flex: 1;
  padding: 0.6rem 1rem;
  border: none; background: none;
  border-radius: var(--radius-pill);
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  cursor: pointer; color: var(--text-muted);
  transition: var(--transition);
}

.auth-tab.active { background: var(--menthe-dark); color: #fff; box-shadow: 0 3px 12px rgba(224,122,31,0.25); }
.auth-panel { }
.auth-panel.hidden { display: none; }
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.auth-header h2 { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--text); margin-bottom: 0.3rem; }
.auth-header p { color: var(--text-muted); font-size: 0.95rem; }
.auth-switch { text-align: center; margin-top: 1.2rem; color: var(--text-muted); font-size: 0.9rem; }
.auth-switch a { color: var(--menthe-dark); font-weight: 700; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.connected-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }

/* ===== ABOUT / VALUES ===== */
.about-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: center; }

.about-img {
  font-size: 6rem;
  text-align: center;
  background: linear-gradient(135deg, var(--menthe-light), var(--peche-light));
  border-radius: var(--radius);
  padding: 3rem 2rem;
  border: 2px solid var(--border);
}

.about-text h2 { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--text); margin-bottom: 1rem; }
.about-text p { color: var(--text-muted); margin-bottom: 1rem; }

.values-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }

.value-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  transition: var(--transition);
}

.value-item:hover { border-color: var(--menthe); transform: translateY(-3px); box-shadow: var(--shadow); }
.value-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.value-item h4 { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--text); margin-bottom: 0.5rem; }
.value-item p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(135deg, var(--menthe-dark) 0%, var(--menthe) 100%);
  border-radius: var(--radius);
  padding: 3.5rem 2rem;
  text-align: center;
  color: #fff;
  box-shadow: 0 8px 40px rgba(224,122,31,0.25);
}

.cta-section h2 { font-family: 'Playfair Display', serif; font-size: 2rem; margin-bottom: 0.8rem; }
.cta-section p { opacity: 0.9; font-size: 1.05rem; margin-bottom: 2rem; }
.cta-section .btn-primary { background: #fff; color: var(--menthe-dark); box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.cta-section .btn-outline { border-color: rgba(255,255,255,0.7); color: #fff; }
.cta-section .btn-outline:hover { background: rgba(255,255,255,0.15); }

/* ===== UTILITIES ===== */
.flex { display: flex; }
.gap-1 { gap: 0.5rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ===== INSCRIT / DÉSISTER ===== */
.btn-inscrit-wrap { display: flex; align-items: center; justify-content: space-between; margin-top: 0.75rem; gap: 0.5rem; }

.badge-inscrit {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: #E0F5EC; color: #C43D23;
  font-weight: 800; font-size: 0.9rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  flex: 1; justify-content: center;
}

.btn-desister {
  background: transparent;
  border: 2px solid #e05050; color: #e05050;
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.9rem;
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem; font-weight: 800;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.btn-desister:hover { background: #e05050; color: #fff; }

/* ===== FOOTER ===== */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.65);
  text-align: center;
  padding: 2.5rem 2rem;
  font-size: 0.9rem;
  margin-top: 5rem;
}
footer a { color: var(--peche); text-decoration: none; font-weight: 700; }
footer strong { color: #fff; }

/* ===== LOADING / EMPTY ===== */
.loading-state { text-align: center; padding: 3rem; color: var(--text-muted); font-weight: 600; grid-column: 1/-1; }
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { color: var(--text); font-size: 1.3rem; margin-bottom: 0.5rem; }
.empty-state p { color: var(--text-muted); }

/* ===== TEXT UTILITIES ===== */
.text-center { text-align: center; }
.text-success { color: #C43D23; font-weight: 700; }
.text-danger  { color: #B03030; font-weight: 700; }
.text-muted   { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; }
.hidden { display: none !important; }

/* ===== ANIMATIONS ===== */
.fade-up { opacity: 0; transform: translateY(24px); animation: fadeUp 0.6s ease forwards; }
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.30s; }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar { padding: 0 1rem; }
  .nav-links { gap: 0.2rem; }
  .nav-links a { padding: 0.4rem 0.6rem; font-size: 0.85rem; }
  .hero { padding: 3rem 1rem 2.5rem; }
  .card-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .filters-bar { flex-direction: column; align-items: stretch; }
}