/* ============================================================
   Bloc : membres_access — Espace membres (intro + login)
   Port fidèle de .membres-page (maquette 2026-06-10, membres.html).
   Tout le CSS du bloc est ici (règle decoupe-maquettes §1) : un bloc
   dupliqué emporte ses styles.
   ============================================================ */

/* Page Membres en mode BEIGE (light). */
.membres-page {
  position: relative;
  color: var(--c-blue);
  padding: clamp(40px, 7vh, 90px) 0 clamp(80px, 12vh, 160px);
  background: var(--c-bg-cream);
}

/* Layout 2 colonnes : texte descriptif à gauche, bloc login à droite.
   .membres-page__inner porte .wrap → hérite du même max-width + --pad que
   le hero, donc le bord gauche du texte coïncide avec « Espace membres ».
   On NE redéfinit PAS max-width/margin/width ici (on garde ceux de .wrap). */
.membres-page__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: clamp(48px, 7vw, 140px);
}
.membres-page__intro {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.4vh, 28px);
  padding-top: clamp(4px, 1vh, 12px);
}

/* Paragraphes d'intro. Le contenu vient d'un wysiwyg (CKEditor) → des <p>
   sans classe : on style donc directement les <p> de la colonne, en gardant
   aussi le sélecteur .membres-page__lead pour robustesse. */
.membres-page__lead,
.membres-page__intro > p {
  margin: 0;
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  line-height: 1.65;
  color: rgba(0, 57, 77, 0.82);
}
/* 1ère phrase d'intro mise en avant (un peu plus grande). */
.membres-page__intro .membres-page__lead:first-child,
.membres-page__intro > p:first-child {
  font-size: clamp(1.15rem, 1.5vw, 1.5rem);
  line-height: 1.45;
  color: var(--c-blue);
  font-weight: 500;
}

/* Bloc auth : formulaire de login encadré. */
.membres-auth {
  width: 100%;
  margin: 0;
  padding: clamp(32px, 5vh, 56px) clamp(28px, 3vw, 52px);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(142, 117, 71, 0.25);
  border-left: 3px solid var(--c-copper);
  border-radius: 0 4px 4px 0;
}
.membres-auth__form {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vh, 28px);
}
.membres-auth__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.membres-auth__label {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-copper);
  font-weight: 500;
}
.membres-auth__input {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 57, 77, 0.2);
  border-radius: 4px;
  padding: clamp(12px, 1.6vh, 18px) clamp(14px, 1.8vw, 22px);
  color: var(--c-blue);
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  width: 100%;
}
.membres-auth__input:focus {
  outline: none;
  border-color: var(--c-copper);
  background: #fff;
}
.membres-auth__submit {
  margin-top: clamp(8px, 1vh, 16px);
}
.membres-auth__submit .btn { width: 100%; justify-content: center; }
.membres-auth__forgot {
  margin-top: clamp(4px, 0.5vh, 8px);
  text-align: center;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 57, 77, 0.55);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
  align-self: center;
  white-space: nowrap;
}
.membres-auth__forgot:hover {
  color: var(--c-copper);
  border-bottom-color: var(--c-copper);
}

/* Le hero étant présent juste au-dessus, on colle la section au hero.
   Sélecteur indépendant du slug (.membres-page n'existe que sur ce bloc),
   donc valable quel que soit le slug de page (fr 'membres' / en 'members'). */
.page-hero + .membres-page {
  padding-top: 0;
  min-height: auto;
}

/* Tablette / mobile : repasse en 1 colonne (texte au-dessus, login dessous). */
@media (max-width: 1024px) {
  .membres-page__inner {
    grid-template-columns: 1fr;
    gap: clamp(32px, 5vh, 56px);
    max-width: min(94vw, 620px);
  }
  .membres-auth { max-width: 480px; }
  /* Évite le zoom iOS au focus (taille de police >= 16px). */
  .membres-auth__input { font-size: max(1rem, 16px); }
}
