/* === PAGE ADHÉSION (adhesion.html) ===
   Feuille propre à la page, chargée après styles.css. N'utilise que les
   tokens de la charte (styles.css :root). Blocs dépliables en <details>
   natif, sans JavaScript ; mobile d'abord. */

/* --- Ouverture --- */

.adh-hero {
  padding: 24px 0 32px;
}

.adh-hero h1 {
  font-size: clamp(32px, 5vw, 56px);
}

.adh-hero .h1-with-bar .colon {
  min-height: 40px;
}

.adh-lede {
  margin-top: 16px;
  max-width: 760px;
  font-size: 16px;
}

.adh-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 16px;
  margin-top: 24px;
}

.adh-ctas--center {
  justify-content: center;
}

.adh-ctas .btn {
  white-space: normal;
  justify-content: center;
  text-align: center;
  min-height: 48px;
}

.adh-cta-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.adh-cta-note {
  margin: 0;
  font-size: 13px;
  color: var(--grey-dark);
}

@media (max-width: 600px) {
  .adh-ctas,
  .adh-cta-main {
    flex-direction: column;
    align-items: stretch;
  }
  .adh-ctas .btn {
    width: 100%;
  }
}

/* --- Sections --- */

.adh-section {
  padding: 48px 0;
}

.adh-section--alt {
  background: var(--grey-bg);
}

.adh-h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  margin-bottom: 24px;
}

/* --- Cinq cartes : 1 colonne, puis 3 + 2 centrées, puis 5 --- */

.adh-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  list-style: none;
}

.adh-card {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-top: 3px solid var(--rouge);
  border-radius: var(--radius-md);
  padding: 20px;
}

.adh-card__icon {
  width: 24px;
  height: 24px;
  color: var(--rouge);
  margin-bottom: 8px;
}

.adh-card__title {
  font-size: 17px;
  margin-bottom: 6px;
}

.adh-card p {
  font-size: 15px;
  color: var(--grey-dark);
  margin: 0;
}

@media (min-width: 700px) {
  .adh-cards {
    grid-template-columns: repeat(6, 1fr);
  }
  .adh-card {
    grid-column: span 2;
  }
  .adh-card:nth-child(4) {
    grid-column: 2 / span 2;
  }
}

@media (min-width: 1180px) {
  .adh-cards {
    grid-template-columns: repeat(5, 1fr);
  }
  .adh-card,
  .adh-card:nth-child(4) {
    grid-column: auto;
  }
}

/* --- Bande chiffres clés + financeurs --- */

.adh-band {
  background: var(--grey-bg);
  color: var(--grey-dark);
  padding: 40px 0 32px;
  border-top: 1px solid var(--grey-line);
  border-bottom: 1px solid var(--grey-line);
}

.adh-figures {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  list-style: none;
  font-size: 14px;
  line-height: 1.4;
}

.adh-figures li {
  border-left: 3px solid var(--rouge);
  padding-left: 12px;
}

.adh-figures__big {
  display: block;
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.1;
  margin-bottom: 4px;
}

@media (min-width: 900px) {
  .adh-figures {
    grid-template-columns: repeat(3, 1fr);
  }
}

.adh-funders__label {
  margin: 32px 0 12px;
  font-size: 14px;
  text-align: center;
}

/* Bandeau fourni sur fond blanc : posé tel quel dans un cartouche blanc bordé */
.adh-funders__img {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 0 auto;
  padding: 12px 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--grey-line);
}

/* --- Tableaux (comparatif, cotisations) --- */

.adh-cmp-wrap {
  overflow-x: auto;
}

.adh-cmp,
.adh-tarifs {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--white);
}

.adh-cmp th,
.adh-cmp td,
.adh-tarifs th,
.adh-tarifs td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--grey-line);
  text-align: left;
  vertical-align: top;
}

.adh-cmp thead th,
.adh-tarifs thead th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  vertical-align: bottom;
}

.adh-cmp tbody th,
.adh-tarifs tbody th {
  font-weight: 400;
  color: var(--grey-dark);
}

.adh-cmp__col,
.adh-cmp td {
  width: 8rem;
  text-align: center !important;
}

.adh-cmp__common {
  background: var(--paper);
}

.adh-yes,
.adh-no {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}

.adh-yes {
  background: var(--navy);
  color: var(--white);
}

/* Croix grise sur fond clair ; la forme seule distingue déjà oui / non */
.adh-no {
  border: 2px solid var(--grey-dark);
  color: var(--grey-dark);
}

.adh-yes svg,
.adh-no svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 600px) {
  .adh-cmp {
    font-size: 14px;
  }
  .adh-cmp th,
  .adh-cmp td {
    padding: 8px 6px;
  }
  .adh-cmp__col,
  .adh-cmp td {
    width: 4.5rem;
  }
  .adh-cmp thead th {
    font-size: 12px;
    hyphens: auto;
  }
}

.adh-tarifs caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  color: var(--navy);
  padding: 8px 0;
}

.adh-tarifs td {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* --- Dépliants : « + » qui devient « − » --- */

.adh-details,
.adh-more {
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.adh-details + .adh-details {
  margin-top: 12px;
}

.adh-details summary,
.adh-more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--navy);
}

.adh-details summary::-webkit-details-marker,
.adh-more summary::-webkit-details-marker {
  display: none;
}

.adh-details summary {
  padding: 16px 20px;
  font-size: 17px;
  min-height: 48px;
}

.adh-details summary::after,
.adh-more summary::after {
  content: "+";
  content: "+" / "";
  flex-shrink: 0;
  font-size: 24px;
  line-height: 1;
  font-weight: 400;
}

.adh-details[open] > summary::after,
.adh-more[open] > summary::after {
  content: "\2212";
  content: "\2212" / "";
}

.adh-details summary:focus-visible,
.adh-more summary:focus-visible {
  outline: 3px solid var(--rouge);
  outline-offset: 2px;
}

.adh-details__body {
  padding: 0 20px 20px;
}

.adh-list {
  padding-left: 1.2em;
  list-style: disc;
  margin-bottom: 1em;
}

.adh-list li + li {
  margin-top: 6px;
}

.adh-more {
  margin-top: 8px;
  border: 0;
  background: transparent;
}

.adh-more summary {
  display: block;
  font-size: 13px;
  color: var(--navy-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.adh-more summary::after {
  display: inline-block;
  margin-left: 6px;
  font-size: 16px;
  text-decoration: none;
}

.adh-more p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--grey-dark);
}

/* --- Étapes --- */

.adh-steps {
  display: grid;
  gap: 20px;
  list-style: none;
}

@media (min-width: 800px) {
  .adh-steps {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.adh-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.adh-step__num {
  width: 48px;
  height: 48px;
  border: 2px solid var(--rouge);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--rouge);
  background: var(--white);
  flex-shrink: 0;
}

.adh-step__title {
  font-size: 18px;
  margin-bottom: 6px;
}

.adh-step p {
  color: var(--grey-dark);
  margin: 0;
}

/* --- Bandeau de fin --- */

.adh-final {
  background: var(--navy);
  color: var(--white);
  padding: 48px 0;
  text-align: center;
}

.adh-final h2 {
  color: var(--white);
  font-size: clamp(26px, 3.5vw, 36px);
}

.adh-final .adh-cta-note {
  color: var(--white);
}

@media (min-width: 601px) {
  .adh-final .adh-ctas {
    align-items: flex-start;
  }
}

/* Mobile : cartes compactes, icône à côté du titre */
@media (max-width: 699px) {
  .adh-card {
    display: grid;
    grid-template-columns: 24px 1fr;
    column-gap: 12px;
    padding: 14px 16px;
  }
  .adh-card__icon {
    margin: 0;
  }
  .adh-card p {
    grid-column: 2;
  }
}

/* --- Modalités : publics, encart « À savoir », exemple --- */

.adh-publics {
  list-style: none;
  margin: 12px 0 20px;
}

.adh-publics li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.adh-publics li + li {
  margin-top: 10px;
}

.adh-publics__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--rouge);
}

.adh-encart {
  background: var(--grey-bg);
  border-left: 3px solid var(--navy);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--grey-dark);
}

.adh-encart__title {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.adh-encart .adh-list {
  margin-bottom: 0;
}

.adh-example {
  font-style: italic;
}
