/* ================
NAVBAR
================= */
.navbar .hamburger-lines,
.navbar input[type="checkbox"] {
  display: none;
}
.has-submenus:focus > ul,
.has-submenus:hover > ul,
.logo img {
  display: block;
}
.navbar {
  box-shadow: 0 5px 10px 0 #aaa;
  width: 100%;
  background: var(--white);
  color: var(--black);
  opacity: 1;
  height: 90px;
}
.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}
.menu-items {
  order: 2;
  display: flex;
  flex-flow: row wrap;
  z-index: 100000;
}
.menu-items li {
  list-style: none;
  margin-left: 1rem;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.menu-items a:link,
.menu-items a:visited {
  text-decoration: none;
  color: var(--grey-700);
  transition: color var(--ease-slow) ease-in-out;
}
.has-submenus ul a:active,
.has-submenus ul a:hover,
.menu-items a:active,
.menu-items a:hover {
  color: var(--bleu-apsaq-alt);
  transition: color var(--ease-slow) ease-in-out;
}
.logo {
  order: 1;
  font-size: 2.3rem;
  margin: 0.2rem;
}
.logo img {
  width: 100%;
}
.has-submenus {
  position: relative;
  color: var(--black);
  cursor: pointer;
}
.has-submenus:after {
  content: "\025BC";
  color: var(--bleu-apsaq);
}
.has-submenus ul {
  display: none;
  position: absolute;
  padding: 5px 0;
  min-width: 100%;
  border: 1px solid #888;
  line-height: 2;
  white-space: nowrap;
  background-color: var(--white);
  border-radius: 5px;
}

/*********************************************************
PAGES
**********************************************************/
/* ================
FOOTER
================= */
.footer {
  gap: var(--space-5);
  justify-content: center;
  align-items: center;
  height: 85px;
  width: 100%;
  color: var(--white);
  background: var(--grey-800);
  padding: 0.5rem;
  margin-bottom: var(--space-2);
}
.footer img {
  display: inline;
  height: 20px;
}

/* ================
INDEX
================= */
.home,
.footer {
  display: flex;
}

.home,
.home p {
  border-radius: var(--radius-md);
}

.home {
  height: 80vh;
  background: linear-gradient(
        rgba(240, 240, 240, 0.144),
        rgba(255, 255, 255, 0.336)
      )
      center/cover no-repeat,
    url("../images/fond_accueil_3.jpg") center/cover no-repeat;
  align-items: center;
  justify-content: center;
  margin: 1rem auto !important;
}
.home p {
  color: var(--black);
  font-size: 3rem;
  font-weight: 700;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.5);
}

/* ================
CONSENTEMENT IMPROOV
================= */
.alert {
  border: 1px solid var(--grey-200);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  line-height: 1.4;
  font-size: 0.95rem;
  margin: 1rem 0;
}
.alert + .alert {
  margin-top: 0.75rem;
}

.alert.info {
  background: var(--grey-50);
}
.alert.warning {
  background: #fff7e6;
  border-color: #ffd591;
}
.alert.success {
  background: #f6ffed;
  border-color: #b7eb8f;
}
.alert.error {
  background: #fff2f0;
  border-color: #ffccc7;
}

.alert strong {
  font-weight: 700;
}

/* Carte formulaire */
.consent-card {
  border: 1px solid var(--grey-200);
  border-radius: 12px;
  background: #fff;
  padding: 1.25rem 1.25rem 1.5rem;
}

/* Micro-ajustements de contraste dans la carte */
.consent-card .muted strong,
.consent-card label span {
  color: var(--grey-900);
}

/* Fieldset / legend */
fieldset.consent-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 1rem 0;
}
legend.consent-legend {
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

/* Lignes et libellés */
.field {
  margin: 0 0 1rem 0;
  line-height: 1.5;
}
.field-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* Groupes radio et checkbox */
.inline-choice {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  margin-right: 1rem;
}
.block-choice {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 0.5rem 0;
}
.inline-choice,
.block-choice {
  font-size: 1rem;
}

.inline-choice input[type="radio"],
.block-choice input[type="checkbox"] {
  inline-size: 1rem; /* largeur logique */
  block-size: 1rem; /* hauteur logique */
  transform: scale(1.12);
  accent-color: var(--primary-500, #00b7e8); /* fallback sur ta couleur APSAQ */
}

/* Métadonnées / texte atténué */
.muted {
  color: var(--grey-700);
  font-size: 0.95rem;
  margin: 0.25rem 0 1rem 0;
  text-align: left;
}

/* Séparateur */
.hr-soft {
  margin: 2rem 0;
  border: none;
  border-top: 1px solid var(--grey-200);
}

/* Section details (Loi 25) : neutraliser styles "headline" globaux */
details {
  margin-top: 0.5rem;
}
.details-summary {
  font-weight: 600;
  text-align: left;
  font-size: 1rem;
}
.details-content {
  margin-top: 0.75rem;
  text-align: left;
  font-size: 0.98rem;
  line-height: 1.6;
}
.details-content p,
.details-content ul,
.details-content li {
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  margin-block: 0.5rem;
}
.details-content ul {
  padding-left: 1.1rem;
}
.details-content li {
  margin: 0.25rem 0;
}
.details-content em {
  font-style: normal;
}

/* ================
EMPLOIS
================= */
.emplois-box {
  background-color: var(--grey-100); /* proche de #f8fafa */
  border: 1px solid var(--grey-300); /* proche de #dbeaf0 */
  border-left: 6px solid var(--bleu-apsaq); /* couleur principale APSAQ */
  border-radius: 12px;
  margin: 2rem 0;
  padding: 1.6rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.emplois-infos {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  font-size: 1.2rem;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1rem;
}

.emplois-poste {
  font-weight: 700;
  color: var(--bleu-apsaq-alt); /* proche de #005b88 */
}

.emplois-ville {
  text-align: center;
  font-weight: 700;
  color: var(--bleu-apsaq-alt); /* cohérent avec le thème bleu secondaire */
}

.emplois-employeur {
  text-align: right;
  color: var(--grey-900); /* ancien #333 */
  font-style: italic;
}

/* ================
EMPLOIS OFFRE
================= */
.social_medias {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  font-size:1rem;
  grid-row-gap:1rem
}

/* ================
EMPLOIS OFFRE PAIEMENT
================= */
.employeurs_facturation {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:2rem;
  background-color:#f9f9f9;
  padding:2rem;
  border-radius:10px;
  box-shadow:0 0 10px rgba(0,0,0,.05);
  margin-top:2rem
}

.infosfacturation {
  background-color:#fff;
  border:1px solid #dcdcdc;
  border-radius:8px;
  padding:1.5rem;
  display:flex;
  flex-direction:column;
  gap:.6rem;
  font-size:.95rem
}

.infosfacturation>div:first-child {
  font-weight:700;
  font-size:1.1rem;
  color:#07a;
  border-bottom:1px solid #ddd;
  padding-bottom:.5rem;
  margin-bottom:.8rem
}

/* ================
EMPLOIS VOIR
================= */
.emplois-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.emplois-logo img {
  width: 200px;
  height: auto;
  border-radius: 8px;
}

.emplois-logo-infos {
  display: grid;
  gap: 1rem;
  font-size: 1.1rem;
}

.emplois-details {
  background-color: var(--grey-300);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.emplois-general {
  display: grid;
  gap: 1.2rem;
  font-size: 1.1rem;
}
.emplois-infos-1 {
  font-weight: 700;
  color: var(--grey-700);
}
.emplois-infos-2 {
  color: var(--grey-900);
}

/* ================
EMPLOYEURS CREATE
================= */
.checkbox {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: var(--space-2);
  margin-bottom: 1rem;
}

.checkbox label {
  font-size: 1rem;
}

.checkbox input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--bleu-apsaq);
}

/* ================
EMPLOYEURS GESTION
================= */
.employeurs_main {
  display:grid;
  grid-template-columns:0.5fr 3fr;
  gap:2rem;
  margin-top:2rem 
}

.employeurs_content { 
  background-color:#f9f9f9;
  padding:2rem;
  border-radius:12px;
  box-shadow:0 2px 10px rgba(0,0,0,.08);
  max-width:1000px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:2rem;
  width:100%
}
  
.employeurs_nav {
  background-color:#f4f8fc;
  border:1px solid #cfdfea;
  padding:1rem;
  border-radius:8px
}

.employeurs_nav ul {
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  font-size:1rem;
  gap:1rem
}

.employeurs_nav li {
  margin-bottom:.75rem;
  background:#fff;
  border-left:4px solid #20bfdc;
  padding:.5rem;color:#444;
  border-radius:8px;
  box-shadow:0 4px 12px rgba(0,0,0,.05);
  transition:transform .2s,background-color .2s
}

.employeurs_nav a {
  color:#004f78;
  text-decoration:none;
  font-weight:500
}

.employeurs_emplois {
  display:grid;
  grid-template-columns:1fr 2fr 1fr 1fr;
  border:1px solid #d1e0eb;
  border-radius:6px;
  overflow:hidden;
  font-size:1rem 
}

.employeurs_emplois>div {
  padding:.75rem 1rem;
  border-top:1px solid #f0f4f8
}

.employeurs_emplois a {
  color:#0077b6;
  font-weight:600;
  text-decoration:none
}

.employeurs_info a {
  text-decoration:none;
  font-weight:500
}

/* ================
EMPLOYEURS PROFIL
================= */
.employeurs_main_info {
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  gap:2rem
}

.main_logo {
  flex:0 0 150px;
  max-width:150px }
  
.main_logo_img {
  width:100%;
  height:auto;
  border-radius:8px;
  object-fit:contain;
  background-color:#fff;
  border:1px solid #ddd;
  padding:8px}
  
.main_info {
  display:grid;
  gap:.75rem 2rem
}

.employeurs_info {
  font-size:1rem;
  color:#333;
  background-color:#fff;
  padding:.5rem 1rem;
  border-left:4px solid #00b7e8;border-radius:4px
}

/* ================
ESPACE MEMBRE ABONNEMENT
================= */
.form-renew {
  display: grid;
  grid-template-columns: 0.5fr 1fr; /* champ à gauche, bouton à droite */
  gap: var(--space-3);
  align-items: center;
  margin: var(--space-4) auto; /* centré sous le h2 */
}

.form-renew label {
  font-size: 1.05rem; /* même taille que tes autres labels */
  font-weight: 700;
  color: var(--grey-900);
  margin-bottom: 0.25rem;
  text-align: right;
}

.form-renew select,
.form-renew input[type="text"],
.form-renew input[type="number"] {
  width: 100%;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--grey-300);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--grey-900);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.form-renew input[type="submit"] {
  width: fit-content;
}

.form-renew select:focus,
.form-renew input[type="text"]:focus {
  outline: none;
  border-color: var(--bleu-apsaq);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bleu-apsaq) 35%, transparent);
}

.renew-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 1.25rem;
  margin-bottom: 2rem;
}

.renew-summary__item {
  background: #fff;
  border: 2px solid var(--bleu-apsaq);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}
.renew-summary__item--total {
  border-color: var(--jaune-apsaq);
  box-shadow: 0 0 0 3px rgba(255, 212, 59, 0.25) inset;
}
.renew-summary__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bleu-apsaq);
  margin-bottom: 0.35rem;
}
.renew-summary__value {
  /* chiffres qui “prennent la même largeur” → alignement propre */
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(1.25rem, 2.2vw, 1.9rem); /* grand mais fluide */
  line-height: 1.2;
  /* sécurité si montant ultra long (ex: 12 345 678.90 $) */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ================
ESPACE MEMBRE ACCES
================= */
.admin-access__header {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.admin-access__status {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-access__status-label {
  font-weight: 700;
  color: var(--grey-800);
  font-size: 1rem;
}

.status-pill {
  --pill-bg: var(--grey-200);
  --pill-tx: var(--grey-800);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-tx);
  box-shadow: var(--shadow-xs);
}
.status-pill--on {
  --pill-bg: color-mix(in srgb, #22c55e 22%, white);
  --pill-tx: #166534;
}
.status-pill--off {
  --pill-bg: var(--grey-100);
  --pill-tx: var(--grey-700);
}

/* Liste des règles (admin-access) */
.admin-access__rules {
  margin: var(--space-4) 0;
  padding: 1rem 1.5rem;
  background: var(--grey-50); /* fond très léger pour séparer visuellement */
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  list-style: none; /* enlève les puces natives */
  color: var(--grey-800);
  box-shadow: var(--shadow-xs);
}

.admin-access__rules li {
  position: relative;
  margin: 0.5rem 0;
  padding-left: 1.5rem; /* espace pour l’icône */
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Icône custom verte (✓) devant chaque règle */
.admin-access__rules li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--bleu-apsaq); /* cohérence avec la charte */
  font-size: 0.9rem;
  line-height: 1.4;
}

/* ================
ESPACE MEMBRE FORMATIONS
================= */
.formations-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: var(--space-3);
  align-items: stretch;
}

.formation-card-membre {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 14px;
  padding: clamp(1rem, 1.5vw, 1.25rem);
  box-shadow: var(--shadow-md);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  justify-items: center;
}
.formation-card-membre:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.formation-date {
  font-weight: 700;
  color: var(--bleu-apsaq);
  letter-spacing: 0.2px;
  display: inline-block;
  background: color-mix(in srgb, var(--bleu-apsaq) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--bleu-apsaq) 35%, transparent);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  width: fit-content;
  font-size: 1rem;
  height: fit-content;
}

.formation-details h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
  line-height: 1.3;
}
.formation-details p {
  margin: 0;
  color: var(--grey-700);
  font-size: 0.95rem;
  text-align: center;
}

.formation-action {
  margin-top: 0.25rem;
}

.unavailable {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  background: var(--grey-100);
  border: 1px dashed var(--grey-300);
  border-radius: 10px;
  color: var(--grey-700);
  font-size: 0.95rem;
}

.badge-status {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.15rem;
  line-height: 1;
}
.badge-video {
  color: #1e8e3e;
} /* vert */
.badge-no {
  color: #c62828;
} /* rouge */

/* ================
ESPACE MEMBRE FORMATIONS COMPLETES
================= */
.pay-table-wrap {
  padding: clamp(1rem, 1.5vw, 1.25rem);
}

.pay-head {
  display: grid;
  grid-template-columns: 150px 1fr 160px 160px;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--grey-200, #e5e7eb);
  border-radius: 12px;
  background: var(--grey-50, #fafafa);
  font-weight: 700;
  margin-bottom: 10px;
}

.pay-col {
  font-size: 0.95rem;
}

.pay-row {
  display: grid;
  grid-template-columns: 150px 1fr 160px 160px;
  gap: 12px;
  align-items: center;
  padding: 14px 12px;
  border: 1px solid var(--grey-200, #e5e7eb);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.04));
  margin-bottom: 10px;
}

.pay-cell {
  font-size: 1rem;
  line-height: 1.4;
  min-height: 32px;
  display: flex;
  align-items: center;
}

.pay-cell.center {
  justify-content: center;
}

.pay-cell .btn--xs {
  padding: 0.4rem 0.7rem;
  font-size: 0.875rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  line-height: 1;
  user-select: none;
  white-space: nowrap;
}
.badge--muted {
  background: #eef2f7;
  color: #445;
  border: 1px solid #e1e6ee;
}
.badge--video {
  background: #e8f7ff;
  color: #086788;
  border: 1px solid #bfe9ff;
}
.badge--no {
  background: #fff3f3;
  color: #7a1f1f;
  border: 1px solid #ffd6d6;
}

.btn.btn--ghost {
  background: #fff;
  border: 1.5px solid var(--bleu-apsaq, #00b7e8);
  color: var(--bleu-apsaq, #00b7e8);
}
.btn.btn--ghost:hover {
  background: color-mix(in srgb, var(--bleu-apsaq) 10%, #fff);
}

/* Optionnel : micro-harmo visuelle */
.pay-table-wrap .badge + .badge {
  margin-left: 6px;
}

/* ================
ESPACE MEMBRE GESTION
================= */
.infos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin: var(--space-5) 0;
  align-items: stretch; /* même hauteur */
}

.infos--important {
  font-size: 1.15rem;
  line-height: 1.6;
  padding: var(--space-5);
  min-height: 96px;
}
.infos--important .red {
  font-weight: 700;
}

/* Ligne icône + texte */
.info-line {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 1.15rem; /* taille plus lisible */
  font-weight: 600;
  color: var(--grey-900);
}
.info-line i {
  font-size: 1.2rem;
  color: var(--bleu-apsaq);
}

/* Icône des infos importantes */
.infos--important .info-icon {
  font-size: 1.2rem;
  color: var(--bleu-apsaq);
}

.infos .member-alert {
  display: inline-block !important;
}

.infos .infosgenerales {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 8px;
  background: #fff;
  border: 2px solid var(--bleu-apsaq);
  font-size: 1rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  min-height: 100px; /* force la même hauteur */
}

/* Icône aligné avec le texte */
.infos .infosgenerales i,
.infos .member-alert i {
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* Variante alerte (jaune) */
.infos .member-alert {
  border-color: var(--jaune-apsaq);
  background: #fffce5;
  color: var(--grey-900);
}

/* Variante danger (rouge) */
.infos .member-alert.member-alert--danger {
  border-color: var(--rouge-apsaq);
  background: color-mix(in srgb, var(--rouge-apsaq) 10%, white);
  color: var(--rouge-apsaq);
}

.infostitre {
  font-weight: 700;
  color: var(--bleu-apsaq);
  font-size: 1.02rem;
}
.infosmembre {
  color: var(--grey-900);
  font-size: 1.05rem;
  line-height: 1.5;
  word-break: break-word;
}


/* Bandeaux d’état (expiration d’abonnement) */
.member-alert {
  margin: var(--space-4) 0;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  border: 2px solid var(--jaune-apsaq);
  background: #fffce5;
  color: var(--grey-900);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.member-alert--danger {
  border-color: var(--rouge-apsaq);
  background: color-mix(in srgb, var(--rouge-apsaq) 10%, white);
}

/* ================
ESPACE MEMBRE INFOS GENERALES
================= */
.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: var(--space-2);
}

.check input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--bleu-apsaq);
}

.form-alert {
  grid-column: 1 / -1;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.form-alert--error {
  background: #fff5f5;
  border: 1px solid #ffd6d6;
  color: var(--rouge-apsaq);
}

.form-checks {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px dashed var(--grey-300);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row--span2 {
  grid-column: 1 / -1;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select {
  width: 100%;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--grey-300);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--grey-900);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--bleu-apsaq);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bleu-apsaq) 35%, transparent);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

/* Labels */
.form-grid label {
  font-weight: 700;
  color: var(--grey-900);
  font-size: 1.05rem;
}

/* Accessibilité (cache visuel) */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ================
ESPACE MEMBRE LOGIN
================= */
.login-section{
  background-color:#f9f9f9;
  padding:2rem;
  border-radius:12px;
  box-shadow:0 4px 20px rgba(0,0,0,.05);
  max-width:1200px;
  margin:0 auto
}

.login-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-6) var(--space-5);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.login-info {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.login-info label {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--grey-900);
}

.login-info input,
.login-info select {
  font-size: 1.05rem;
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--grey-300);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--grey-900);
  transition: border-color var(--ease), box-shadow var(--ease);
}

/* Focus visible */
.login-info input:focus {
  outline: none;
  border-color: var(--bleu-apsaq);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bleu-apsaq) 35%, transparent);
}

/* Lien “oublié” */
.login-forgot {
  margin-top: var(--space-3);
}
.login-forgot a {
  font-size: 1rem;
  text-decoration: underline;
  color: var(--bleu-apsaq-alt);
  font-weight: 600;
}
.login-forgot a:hover {
  text-decoration: none;
}

/* ================
ESPACE MEMBRE MAGAZINE
================= */
.magz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-4);
}

.magz-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 18px;
  box-shadow: 0 8px 26px rgba(3, 27, 78, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 150ms ease, box-shadow 150ms ease,
    border-color 150ms ease;
}

.magz-card:hover {
  transform: translateY(-2px);
  border-color: var(--bleu-apsaq);
  box-shadow: 0 10px 32px rgba(0, 183, 232, 0.12);
}

.magz-cover-wrap {
  background: var(--grey-50);
}

.magz-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4; /* garde des vignettes uniformes */
  object-fit: cover;
  display: block;
}

.magz-actions {
  padding: 0.75rem 1rem 1rem;
  display: flex;
  justify-content: flex-start;
}

/* ================
ESPACE MEMBRE MOTDEPASSE
================= */
.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 2.5rem; /* espace pour l’icône */
}

.toggle-password {
  position: absolute;
  top: 55%;
  right: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--grey-600);
  font-size: 1.1rem;
}

.toggle-password:hover {
  color: var(--bleu-apsaq);
}

/* ================
ESPACE MEMBRE MOTDEPASSE
================= */
.player-wrap {
  position: relative;
  margin: 24px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08)
}

.player-16x9 {
  position: relative;
  padding-top: 56.25%
}

.player-16x9 iframe,
.player-16x9 video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block
}

.page-wrap {
  padding: 20px
}

.notice {
  max-width: 980px;
  margin: 12px auto 0;
  color: #555;
  font-size: .95rem
}

/* ================
FORMATEURS GESTION
================= */
.formateurs-table {
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:20px;
  font-size:1rem
}

.table-header,.table-row {
  display:grid;
  grid-template-columns:2fr 3fr 1fr;
  align-items:center;
  padding:12px 15px;
  border-radius:8px
}

.table-header {
  background-color:#00b7e8;
  color:#fff;
  font-weight:700
}

.table-row { 
  background-color:#f9f9f9;
  border:1px solid #ddd;
  transition:background .3s
}

.table-row:hover {
  background-color:#eef9fc
}

.table-header div,.table-row div {
  padding:5px
}

.table-row a {
  color:#00b7e8;
  transition:color .2s
}

/* ================
FORMATEURS PASSWORD
================= */
.password-strength {
  height: 8px;
  border-radius: 4px;
  background-color: #e0e0e0;
  margin-top: 6px;
  transition: background-color 0.3s ease;
}

.strength-weak {
  background-color: #e74c3c;
  width: 33%;
}

.strength-medium {
  background-color: #f39c12;
  width: 66%;
}

.strength-strong {
  background-color: #00b7e8;
  width: 100%;
}

.strength-text {
  font-size: 0.9rem;
  margin-top: 4px;
  color: #333;
}

/* ================
FORMATEURS WEBINAIRES GESTION
================= */
.formateurs_webinaires {
  display:grid;
  grid-template-columns:1fr 1.5fr 3fr 1.5fr;
  gap:10px;
  margin-top:20px;
  font-size:0.8rem; 
}

.webinaires_payant {
  display:grid;
  grid-template-columns:3fr 2fr 2fr;
  gap:1rem .5rem;
  font-size:1rem
}
  
.formateurs_webinaires_header,
.webinaires_header {
  background-color:#00b7e8;
  color:#fff;
  font-weight:700;
  padding:10px;
  border-radius:6px
}

.formateurs_webinaires>div,
.webinaires_payant>div {
  border:1px solid #ddd;
  padding:10px;
  border-radius:6px
}

.alert-info {
  background-color:rgba(0,183,232,.1);
  border-left:4px solid #00b7e8;
  color:#333;
  padding:15px 20px;
  margin-top:15px;
  border-radius:6px;
  font-size:1rem
}

/* ================
MAGAZINES
================= */
.magazines {
  flex-wrap: wrap;
  gap: 15px 30px;
  justify-content: center;
  display: flex;
}

.magazine {
  width: 220px;
  animation: 0.8s ease-in both fadeInMagazine;
  background: #f8f8f8;
  border-radius: 8px;
  padding: 15px 10px;
  transition: transform 0.3s;
}

.magazine-cover {
  width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.magazine-month {
  margin-top: 10px;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
}

/* ================
MEMBRE ADHESION HOW
================= */
.how-image {
  max-height: 400px;
}

/* ================
MEMBRE ADHESION PAIEMENT
================= */
.infosfacturation {
  background-color: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.paypal-warning {
  background: #fff3cd;
  border: 1px solid #ffecb5;
  padding: 1rem;
  border-radius: 10px;
  color: #856404;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.facturation-total {
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--blue-700);
  margin-top: 0.75rem;
}

/* ================
MEMBRE PLAN
================= */
.membre-plan {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  align-items: start;
  justify-items: center;
  margin-top: 2rem;
}

.membre-plan-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-5) 1.6rem;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  transition: transform var(--ease), box-shadow 0.2s;
  max-width: 320px;
  width: 100%;
  border: 2px solid var(--bleu-apsaq);
}

.membre-plan-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
}

/* Prix */
.plan-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bleu-apsaq);
}

/* Nom d’abonnement */
.plan-name {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
/*  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;*/
}

/* Icône */
.plan-icon i {
  font-size: 1.2rem;
  color: var(--bleu-apsaq);
}

/* Description / par personne */
.plan-person {
  font-size: 1.1rem;
  color: var(--grey-700);
}

/* Badge “membre agréé” sur la carte correspondante */
.membre-plan-agree {
  position: relative;
  border: 2px solid var(--jaune-apsaq);
  background-color: #fffce5;
  overflow: hidden;
}

.membre-plan-agree::after {
  content: "Populaire";
  position: absolute;
  top: 27px;
  right: -39px;
  transform: rotate(45deg);
  background: var(--jaune-apsaq);
  color: var(--white); /* contraste sur fond bleu */
  font-weight: 700;
  padding: 0.4rem 3.2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

/* ================
MEMBRE REVISION CODE
================= */
.form-revision {
  display: flex;
  justify-content: center;
  gap: 1rem;
}


/* ================
NOTRE CONSEIL
================= */
.notreconseil {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(500px, 1fr)
  ); /* 2 colonnes max */
  gap: var(--space-5);
  justify-content: center;
}

.ca-box {
  display: flex;
  flex-direction: column;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: transform var(--ease), box-shadow 0.2s;
}

.ca-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.ca-nom {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0.4rem;
  color: var(--bleu-apsaq-alt); /* bleu APSAQ */
}

.ca-poste {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--grey-700);
  margin-bottom: 0.8rem;
}

.ca-bio {
  margin-top: 1rem;
}

/* Focus visibles pour accessibilité (tab navigation) */
.ca-box:focus-within {
  outline: 3px solid rgba(32, 191, 220, 0.35);
  outline-offset: 2px;
}

.ca-box img {
  height: 400px; /* fixe pour garder l’alignement visuel */
  width: auto;
  border-radius: 0.5rem;
  display: block;
  margin: 0 auto;
  object-fit: cover; /* sécurité si l’image est trop large/haute */
}

/* ================
NOTRE MISSION
================= */
.notremission-text {
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--grey-900);
  padding: 1rem 0;
  max-width: 950px;
  margin: 0 auto;
}

.notremission-ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 colonnes desktop */
  gap: 1.6rem;
  margin: var(--space-5) auto;
  max-width: 950px;
  list-style: none;
  padding: 0;
}

.notremission-ul li {
  background: var(--white);
  border-left: 4px solid var(--bleu-apsaq-alt);
  padding: 1rem 1.2rem;
  font-size: 1.2rem;
  color: #444;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform var(--ease), background-color 0.2s;
  line-height: 1.7;
}

.notremission-ul li:hover {
  background-color: #e6faff;
  transform: translateY(-3px);
}

/* ================
ON PARLE DE NOUS
================= */
.audio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-5);
}

.audio-header {
  position: relative;
  height: 120px;
  background: url("../images/header-audio.png") center/cover no-repeat;
}

.audio-icon {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  color: var(--bleu-apsaq);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Texte */
.audio figcaption {
  font-size: 1rem;
  font-weight: 600;
  margin: 2.5rem 0 0.8rem 0; /* espace pour l’icône */
  color: #222;
  padding: 0 1rem;
  text-align: center;
}

/* Lecteur audio */
.audio audio {
  width: 90%;
  margin: 0 auto 1.2rem auto;
  display: block;
  border-radius: var(--radius-sm);
}

.video-embed {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ================
OTP START
================= */
.otp-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-6) var(--space-5);
}

.otp-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(.32rem, 2.5vw, .6rem);
  margin: .75rem 0 1.25rem;
  flex-wrap: nowrap;
  overflow-x: hidden;
}

.otp-group input.otp-digit {
  width: clamp(2.3rem, 12vw, 3.2rem);
  height: clamp(2.6rem, 12vw, 3.2rem);
  font-size: clamp(16px, 5vw, 18px);
  text-align: center;
  line-height: 1;
  direction: ltr;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  border: 1px solid #cfd4d9;
  border-radius: .5rem;
  padding: 0;
  background: #fff;
  caret-color: #00B7E8;
}

.otp-group input.otp-digit:focus {
  border-color: #00B7E8;
  box-shadow: 0 0 0 .15rem rgba(0, 183, 232, .2);
}

/* iOS numpad plus fiable */
.otp-group input.otp-digit::-webkit-outer-spin-button,
.otp-group input.otp-digit::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.otp-group input.otp-digit[type=number] {
  appearance: textfield;             /* Standard */
  -moz-appearance: textfield;        /* Firefox */
  -webkit-appearance: none;          /* Chrome, Safari, Edge */
  margin: 0;                         /* Supprime un décalage sur Safari iOS */
}

/* Supprime les flèches internes sur WebKit (Chrome, Safari, Edge) */
.otp-group input.otp-digit[type=number]::-webkit-outer-spin-button,
.otp-group input.otp-digit[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.remember_device {
  margin:.5rem 0 1rem  
}

.remember_device label {
  display:flex; 
  align-items:center; 
  gap:.5rem; 
  cursor:pointer; 
  justify-content:center  
}

/* ================
ON PARLE DE NOUS
WEBINAIRES
================= */

.past-webinaires-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
  margin: var(--space-4) 0 var(--space-6);
  overflow: visible; /* important */
  position: relative; /* base de z-index */
  z-index: 0;
}

.past-webinaire-card {
  position: relative;
  background: var(--white);
  border: 2px solid var(--bleu-apsaq);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
  transition: transform var(--ease), box-shadow var(--ease);
  position: relative;
  z-index: 0;
}
.past-webinaire-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  z-index: 20;
}

.past-date {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--bleu-apsaq);
  margin-bottom: var(--space-2);
}
.past-title {
  font-size: 1rem;
  color: var(--grey-900);
  line-height: 1.5;
}

/* ================
WEBINAIRES
================= */
.formations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-5);
  text-align: center;
}

.formation-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  column-gap: var(--space-4);
  width: 100%;
  max-width: none;
  text-decoration: none;
  background: var(--white);
  color: var(--grey-900);
  border: 2px solid var(--bleu-apsaq);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-md);
  transition: transform var(--ease), box-shadow var(--ease);
}

.formation-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.formation-icon {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bleu-apsaq-50);
  color: var(--bleu-apsaq);
  font-size: 1.8rem;
}

.formation-paragraph {
  color: var(--grey-700);
  margin: 0 0 var(--space-2) 0;
  text-align: center;
}

.past-title {
  font-size: 1rem;
  color: var(--grey-900);
  line-height: 1.5;
}

/* Tooltip (contenu optionnel “description”) */
.tooltip {
  position: relative;
}
.tooltiptext {
  position: absolute;
  top: 70%;
  left: calc(100% - 25px);
  transform: translateY(-20%);
  z-index: 30; /* plus haut que la carte */
  pointer-events: auto; /* pour laisser la souris dessus si besoin */

  display: none;
  width: 360px;
  padding: var(--space-3);
  background: var(--grey-900);
  color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: normal;
}
.tooltip:hover .tooltiptext {
  display: block;
}

/* Affichage clavier + souris */
.tooltip:hover .tooltiptext,
.tooltip:focus-within .tooltiptext {
  display: block;
}

/* ================
WEBINAIRES INFOS
================= */
.webinaires-infos {
  display:grid;
  grid-template-columns:50px 2fr 3fr;
  gap:10px;
  margin-top:20px;
  font-size:1rem;   
}
  
.webinaires-infos>div {
  background:#f9f9f9;
  padding:10px;
  border-radius:6px
}

.formations-title {
  font-weight:700;
  padding-bottom:10px;
  border-bottom:2px solid #00b7e8;
  color:#005f7a;
  font-size:1rem
}

.no-results {
  background:#f0f9ff;
  color:#0077a3;
  padding:15px;
  border:2px dashed #00b7e8;
  text-align:center;
  border-radius:8px;
  margin-top:20px;
  font-style:italic
}