/* =========================================================
   GE-conso – Demande d'adhésion (demande.php)
   Dépend de base.css (chargé avant ce fichier).
   ========================================================= */

/* =========================================
   2. CONTENEUR PRINCIPAL
========================================= */
.adhesion-wrapper {
  max-width: 1240px;
  margin: 24px auto 70px;
  padding: 0 24px;
}

.breadcrumb {
  margin-bottom: 18px;
}

/* =========================================
   3. HERO ADHÉSION
========================================= */
.adhesion-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-light) 100%);
  color: var(--white);
  border-radius: 22px;
  padding: 36px;
  box-shadow: 0 16px 40px rgba(16, 37, 66, 0.14);
  margin-bottom: 28px;
  border-bottom: 5px solid var(--red-primary);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--yellow-accent);
  color: #111111;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 13px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.adhesion-hero h1 {
  font-size: 2.05rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 10px;
}

.adhesion-hero h1 span {
  color: var(--yellow-accent);
}

.adhesion-hero p {
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 720px;
  line-height: 1.65;
}

/* =========================================
   4. CHOIX DU PROFIL D'ADHÉSION
========================================= */
.membership-types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.type-option-card {
  background: var(--white);
  border: 2px solid var(--border-light);
  border-radius: 18px;
  padding: 22px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.type-option-card:hover {
  border-color: var(--navy-dark);
  transform: translateY(-2px);
}

.type-option-card.selected {
  border-color: var(--red-primary);
  box-shadow: 0 12px 28px rgba(229, 25, 55, 0.12);
  background: #fffdfd;
}

.type-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.type-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f1f5f9;
  color: var(--navy-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.type-option-card.selected .type-icon-box {
  background: var(--red-primary);
  color: var(--white);
}

.radio-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.type-option-card.selected .radio-indicator {
  border-color: var(--red-primary);
}

.type-option-card.selected .radio-indicator::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red-primary);
}

.type-option-card h2 {
  font-size: 1.08rem;
  font-weight: 900;
  color: var(--navy-dark);
  margin-bottom: 4px;
}

.type-option-card p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* =========================================
   5. FORMULAIRE D'ADHÉSION + CHARTE / ÉTAPES
========================================= */
.adhesion-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.form-card {
  background: var(--white);
  border-radius: 20px;
  padding: 30px 32px;
  box-shadow: 0 12px 32px rgba(16, 37, 66, 0.06);
}

.block-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--navy-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.block-title i {
  color: var(--red-primary);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-group {
  margin-bottom: 16px;
}

.field-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 6px;
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.86rem;
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: var(--navy-dark);
  box-shadow: 0 0 0 3px rgba(16, 37, 66, 0.08);
}

.charter-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 14px;
  font-size: 0.8rem;
  color: #334155;
  margin-bottom: 20px;
  cursor: pointer;
}

.charter-box input {
  margin-top: 3px;
  accent-color: var(--red-primary);
  cursor: pointer;
}

.btn-submit-join {
  width: 100%;
  background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%);
  color: var(--white);
  border: none;
  padding: 15px 22px;
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.94rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 24px rgba(229, 25, 55, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit-join:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(229, 25, 55, 0.36);
}

.dossier-result {
  display: none;
  margin-top: 20px;
  padding: 20px;
  border-radius: 14px;
  background: #ecfdf5;
  border: 1.5px solid #6ee7b7;
  color: #065f46;
}

.dossier-result h3 {
  font-size: 1.05rem;
  font-weight: 900;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dossier-result p {
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Colonne droite : Comment se passe l'adhésion */
.side-sticky {
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.steps-card {
  background: var(--white);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 32px rgba(16, 37, 66, 0.06);
  border-top: 5px solid var(--navy-dark);
}

.steps-card h3 {
  font-size: 1.08rem;
  font-weight: 900;
  color: var(--navy-dark);
  margin-bottom: 16px;
}

.step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.step-item:last-child {
  margin-bottom: 0;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy-dark);
  color: var(--yellow-accent);
  font-size: 0.8rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-item strong {
  display: block;
  font-size: 0.86rem;
  color: var(--navy-dark);
  margin-bottom: 2px;
}

.step-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.selection-note-card {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 16px;
  padding: 18px 20px;
  font-size: 0.82rem;
  color: #78350f;
}

.selection-note-card strong {
  display: block;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 4px;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 960px) {
  .membership-types-grid,
  .adhesion-grid {
    grid-template-columns: 1fr;
  }

  .side-sticky {
    position: static;
  }
}

@media (max-width: 640px) {
  .adhesion-hero,
  .form-card,
  .steps-card {
    padding: 22px 18px;
  }

  .adhesion-hero h1 {
    font-size: 1.55rem;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }
}
