/* ================================================================
   SYMBIOCITÉ — auth.css
   Bouton Espace Membre · Modal Auth · Sections protégées · Toast
================================================================ */

/* ── BOUTON ESPACE MEMBRE ──────────────────────────────────────── */
.nav-member-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(245,240,232,0.85);
  padding: 0.4rem 0.9rem 0.4rem 0.6rem;
  border-radius: 50px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1;
}
.nav-member-btn:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  transform: translateY(-1px);
}
.nav-member-btn--logged {
  border-color: #b07040;
  background: rgba(176,112,64,0.15);
}
.member-icon {
  font-size: 0.95rem;
  color: #d4a574;
  line-height: 1;
}
.member-icon--logged { color: #b07040; }
.member-label {
  white-space: nowrap;
}
.member-badge {
  background: #b07040;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.1rem 0.45rem;
  border-radius: 50px;
  line-height: 1.5;
}

/* Navbar scrollée (fond clair) */
.navbar.scrolled .nav-member-btn {
  background: #e8e2d6;
  border-color: #c8bfa8;
  color: #3d4f43;
}
.navbar.scrolled .nav-member-btn:hover {
  background: #ddeadf;
  color: #1a3327;
}
.navbar.scrolled .member-icon { color: #b07040; }

/* ── MODAL OVERLAY ─────────────────────────────────────────────── */
.auth-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(10,16,12,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.auth-modal-overlay.auth-modal--open {
  opacity: 1;
  pointer-events: all;
}

/* ── MODAL BOX ─────────────────────────────────────────────────── */
.auth-modal-box {
  background: #f5f2ec;
  border: 1px solid #e8e2d6;
  border-radius: 24px;
  padding: 2.25rem;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 32px 80px rgba(10,16,12,0.45);
  transform: translateY(24px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.auth-modal--open .auth-modal-box {
  transform: translateY(0);
}

/* ── FERMETURE ─────────────────────────────────────────────────── */
.auth-modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #6b7d71;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
}
.auth-modal-close:hover {
  background: #e8e2d6;
  color: #1e2820;
}

/* ── TABS ──────────────────────────────────────────────────────── */
.auth-tabs {
  display: flex;
  gap: 3px;
  background: #e8e2d6;
  border-radius: 50px;
  padding: 3px;
  margin-bottom: 1.5rem;
}
.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #6b7d71;
  padding: 0.45rem 1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}
.auth-tab--active {
  background: #fff;
  color: #1a3327;
  box-shadow: 0 2px 8px rgba(26,51,39,0.1);
}

/* ── HEADER ────────────────────────────────────────────────────── */
.auth-modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.auth-logo {
  font-size: 1.8rem;
  color: #b07040;
  display: block;
  margin-bottom: 0.6rem;
  line-height: 1;
}
.auth-modal-header h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 400;
  color: #1a3327;
  margin-bottom: 0.35rem;
  line-height: 1.2;
}
.auth-modal-header p {
  font-size: 0.85rem;
  color: #6b7d71;
}

/* ── MESSAGES ──────────────────────────────────────────────────── */
.auth-message {
  padding: 0.7rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  margin-bottom: 1.1rem;
  line-height: 1.5;
}
.auth-message--info    { background: #ddeadf; color: #2d5441; }
.auth-message--success { background: #d4edda; color: #155724; }
.auth-message--warn    { background: #fff3cd; color: #856404; }
.auth-message--error   { background: #f8d7da; color: #721c24; }

/* ── FORMULAIRE ────────────────────────────────────────────────── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.auth-form--hidden { display: none; }

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.auth-field label {
  font-size: 0.78rem;
  font-weight: 500;
  color: #3d4f43;
  letter-spacing: 0.02em;
}
.auth-optional {
  color: #98a89e;
  font-weight: 400;
}
.auth-field input {
  padding: 0.65rem 0.9rem;
  border: 1.5px solid #c8bfa8;
  border-radius: 12px;
  font-size: 0.92rem;
  color: #1e2820;
  background: #fff;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: 'DM Sans', system-ui, sans-serif;
}
.auth-field input:focus {
  border-color: #2d5441;
  box-shadow: 0 0 0 3px rgba(45,84,65,0.1);
}

.auth-submit {
  margin-top: 0.4rem;
  background: #1a3327;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.8rem 2rem;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  font-family: 'DM Sans', system-ui, sans-serif;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(26,51,39,0.22);
}
.auth-submit:hover:not(:disabled) {
  background: #2d5441;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,51,39,0.32);
}
.auth-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-forgot {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.78rem;
  color: #6b7d71;
  text-decoration: underline;
  text-align: center;
  font-family: 'DM Sans', system-ui, sans-serif;
  transition: color 0.3s ease;
  padding: 0;
}
.auth-forgot:hover { color: #b07040; }

/* ── SEPARATEUR PAIEMENT ───────────────────────────────────────── */
.auth-payment-sep {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 0.9rem;
  color: #98a89e;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.auth-payment-sep::before,
.auth-payment-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e8e2d6;
}
.auth-payment-btns {
  display: flex;
  gap: 0.65rem;
}
.auth-pay-btn {
  flex: 1;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1.5px solid #c8bfa8;
  background: #fff;
  color: #3d4f43;
  font-family: 'DM Sans', system-ui, sans-serif;
}
.auth-pay-btn:hover:not(:disabled) {
  border-color: #b07040;
  color: #b07040;
  transform: translateY(-1px);
}
.auth-pay-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Blocage scroll quand modal ouverte */
body.modal-open { overflow: hidden; }

/* ── SECTIONS PARTENAIRES PROTEGEES ────────────────────────────── */
.partner-protected {
  position: relative;
  transition: filter 0.4s ease;
}
.partner-locked {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}
.partner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  filter: none !important;
}
.partner-overlay-inner {
  text-align: center;
  padding: 2.5rem 2rem;
  background: rgba(245,242,236,0.96);
  border: 1px solid #e8e2d6;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(26,51,39,0.15);
  max-width: 360px;
}
.partner-lock-icon {
  font-size: 2.2rem;
  color: #b07040;
  display: block;
  margin-bottom: 0.9rem;
}
.partner-overlay-inner h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: #1a3327;
  margin-bottom: 0.65rem;
}
.partner-overlay-inner p {
  font-size: 0.875rem;
  color: #6b7d71;
  line-height: 1.6;
  margin-bottom: 1.35rem;
}
.partner-unlock-btn {
  background: #1a3327;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.7rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  font-family: 'DM Sans', system-ui, sans-serif;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(26,51,39,0.22);
}
.partner-unlock-btn:hover {
  background: #2d5441;
  transform: translateY(-1px);
}

/* ── TOAST ─────────────────────────────────────────────────────── */
.auth-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 10000;
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 8px 30px rgba(10,16,12,0.3);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.auth-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.auth-toast--success { background: #1a3327; color: #fff; }
.auth-toast--warn    { background: #856404; color: #fff; }
.auth-toast--info    { background: #173347; color: #fff; }
.auth-toast--error   { background: #721c24; color: #fff; }

/* Navbar Espace Membre */
.navbar.navbar-auth:not(.scrolled) {
  background: var(--c-green-deep);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

