/* ═══════════════════════════════════════════════════
   ELAN — Section Rejoindre & Réservation Proton Calendar
   ═══════════════════════════════════════════════════ */

.join-section {
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}

/* ──────────────────────────────── BACKGROUND */
.join-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.join-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: calc(var(--grain-opacity) * 1.5);
  pointer-events: none;
}

/* ──────────────────────────────── LAYOUT */
.join-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

/* ──────────────────────────────── TEXTE */
.join-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 8px;
}

.join-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-2);
}

.join-criteria {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.join-criteria li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.5;
}

.criteria-icon {
  color: var(--yellow);
  font-size: 0.7rem;
  flex-shrink: 0;
  position: relative;
  top: -1px;
}

[data-theme="light"] .criteria-icon { color: var(--blue-dark); }

/* ──────────────────────────────── RÉSERVATION PROTON CALENDAR */
.booking-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* Ligne accent en haut */
.booking-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
  z-index: 1;
}

[data-theme="light"] .booking-wrap::before {
  background: linear-gradient(90deg, transparent, var(--blue-dark), transparent);
}

/* Header */
.booking-header {
  padding: 24px 28px 0;
  position: relative;
  z-index: 1;
}

.booking-label {
  font-family: var(--font-title);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

[data-theme="light"] .booking-label { color: var(--blue-dark); }

.booking-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
}

.booking-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

/* Appel à l'action — ouvre Proton Calendar dans un nouvel onglet */
.booking-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 420px;
  padding: 40px 28px;
  text-align: center;
}

.booking-cta-icon {
  font-size: 2.5rem;
  opacity: 0.6;
}

.booking-cta p {
  font-size: 0.92rem;
  color: var(--text-2);
  max-width: 320px;
  line-height: 1.6;
}

.booking-cta .btn {
  max-width: 280px;
}

/* ──────────────────────────────── RESPONSIVE */
@media (max-width: 1024px) {
  .join-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 600px) {
  .booking-wrap { padding: 0; }
  .booking-header { padding: 20px 20px 0; }
  .booking-cta { padding: 32px 20px; min-height: 320px; }
}

/* Critères : icône alternée en bleu clair */
.join-criteria li:nth-child(even) .criteria-icon {
  color: var(--blue-light);
}

[data-theme="light"] .join-criteria li:nth-child(even) .criteria-icon {
  color: var(--blue-dark);
}

/* ── Liste de profils recherchés ── */
.join-profiles-label {
  margin-top: 24px;
  margin-bottom: 10px;
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.join-profiles-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.join-profiles-tags .tag {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.75);
}

.join-profiles-tags .tag:hover {
  background: rgba(250,180,40,0.15);
  border-color: rgba(250,180,40,0.4);
  color: var(--yellow);
}

.join-profiles-tags .tag--muted {
  font-style: italic;
  opacity: 0.6;
}

[data-theme="light"] .join-profiles-tags .tag {
  background: rgba(33,50,123,0.06);
  border-color: rgba(33,50,123,0.18);
  color: var(--blue-dark);
}

[data-theme="light"] .join-profiles-tags .tag:hover {
  background: rgba(33,50,123,0.12);
  border-color: var(--blue-dark);
}
