/*
  Le Club — feuille de style de la page /club/
  ============================================================================
  Chargée après la CSS de base inline (compiled/inline-css) via
  {{contentFor 'head'}} dans page-club.hbs.

  Principe : la page réutilise le système de composants `.c-socle-*` déjà
  compilé et disponible globalement (sections, boutons, piliers, eyebrow,
  conversion). Ce fichier ne fait qu'ajouter la peau propre au Club :
    - la palette (fond bleu clair #EBF5FF, cartes blanches),
    - le hero en image de fond,
    - les blocs de prose et l'encadré (aside),
    - quelques garde-fous de couleur.

  Note sur la spécificité : cette feuille est chargée AVANT la CSS de base.
  Pour être certain de gagner face aux règles `.c-socle` / `.c-socle-*` de
  la base (même spécificité, mais postérieures dans la source), les
  surcharges sont scopées avec une classe supplémentaire :
    - variables de palette : `.c-socle.c-club`
    - surcharges de composant : `.c-club .c-socle-*`
*/

/* ---- Palette (redéfinie sur le wrapper, héritée par tous les descendants) ---- */
.c-socle.c-club {
  --socle-accent: #004CCC;
  --socle-accent-soft: #96BEFF;
  --socle-paper: #FFFFFF;        /* cartes, piliers */
  --socle-paper-soft: #EBF5FF;   /* fond de section clair */
  --socle-paper-cool: #DCEBFF;   /* encadrés / tints */
  --socle-border: #CFE1FA;

  background-color: #EBF5FF;
}

/* Les sections héritent du fond bleu clair du wrapper (transparent par défaut). */
.c-club .c-socle-section {
  background-color: transparent;
}

/* Garde-fou : bouton accent (au cas où la base aurait figé une ancienne couleur). */
.c-club .c-socle-btn {
  background-color: var(--socle-accent);
  color: var(--color-text-white);
  box-shadow: 0 8px 24px -8px rgba(0, 76, 204, 0.25);
}
.c-club .c-socle-btn:hover,
.c-club .c-socle-btn:focus,
.c-club .c-socle-btn:active {
  box-shadow: 0 12px 32px -8px rgba(0, 76, 204, 0.32);
}
.c-club .c-socle-btn--ghost {
  background-color: transparent;
  color: var(--socle-accent);
  box-shadow: inset 0 0 0 1.5px var(--socle-accent);
}
.c-club .c-socle-btn--ghost:hover,
.c-club .c-socle-btn--ghost:focus,
.c-club .c-socle-btn--ghost:active {
  background-color: var(--socle-accent);
  color: var(--color-text-white);
}

/* ============================== Décalage sous le header fixe ============================== */
/* Le site injecte (via le Code Injection de Ghost, hors thème) un décalage
   global : body { margin-top: ~172px } + #main-content { margin-top: -32px },
   dimensionné pour le header fixe ET la barre de tags. La page Club n'ayant pas
   de barre de tags (layout default-club), on ramène ce décalage à la seule
   hauteur du header fixe (56px) pour que le hero soit collé au menu. */
body.page-club {
  margin-top: 56px !important;
}
body.page-club #main-content {
  margin-top: 0 !important;
}

/* ============================== Hero ============================== */
.c-club-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 60vh;
  padding-top: var(--space-72);
  padding-bottom: var(--space-72);
  color: var(--color-text-white);
  overflow: hidden;
}
@media (min-width: 1024px) {
  .c-club-hero {
    min-height: 66vh;
    padding-top: var(--space-128);
    padding-bottom: var(--space-128);
  }
}

/* Couche image (fond) — l'URL réelle est injectée en inline via {{asset}}. */
.c-club-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: #1e57c8;   /* repli si l'image est absente */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Scrim dégradé pour garantir la lisibilité du texte blanc. */
.c-club-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(2, 17, 54, 0.28) 0%, rgba(2, 17, 54, 0.68) 100%);
}

.c-club-hero__inner {
  position: relative;
}
.c-club-hero__content {
  max-width: 780px;
}

.c-club-hero__title {
  margin: 0;
  font-size: 40px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text-white);
}
@media (min-width: 640px) {
  .c-club-hero__title { font-size: 56px; line-height: 1.04; }
}
@media (min-width: 1024px) {
  .c-club-hero__title { font-size: 68px; line-height: 1; }
}

.c-club-hero__kicker {
  margin: 16px 0 0;
  font-family: var(--socle-font-display);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0;
}
@media (min-width: 640px) {
  .c-club-hero__kicker { font-size: 24px; }
}

.c-club-hero__lede {
  margin: 24px 0 0;
  max-width: 620px;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}
@media (min-width: 1024px) {
  .c-club-hero__lede { font-size: 20px; }
}

.c-club-hero__actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

/* ============================== Prose ============================== */
.c-club-prose--alt {
  background-color: #FFFFFF;
}

.c-club-prose__body {
  max-width: 760px;
  margin: 0 auto;
}
.c-club-prose__body--center {
  text-align: center;
  margin-top: 48px;
}

.c-club-prose__body > p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--socle-ink);
}
@media (min-width: 1024px) {
  .c-club-prose__body > p { font-size: 20px; line-height: 1.65; }
}
.c-club-prose__body > p + p {
  margin-top: 24px;
}
.c-club-prose__body em {
  font-style: italic;
}
.c-club-prose__body a {
  color: var(--socle-accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.c-club-prose__body a:hover,
.c-club-prose__body a:focus {
  color: var(--socle-ink);
}

/* ---- Encadré / aside ---- */
.c-club-aside {
  margin: 32px auto;
  max-width: 760px;
  padding: 24px 28px;
  background: var(--socle-paper-cool);
  border-left: 4px solid var(--socle-accent);
  border-radius: var(--socle-radius);
}
.c-club-aside p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--socle-ink);
}
.c-club-aside a {
  color: var(--socle-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ============================== Espace / piliers ============================== */
/* Cartes blanches sur fond bleu clair. */
.c-club .c-socle-pilier {
  background: var(--socle-paper);
  border-color: var(--socle-border);
}
.c-club .c-socle-pilier__number {
  color: var(--socle-accent);
}

/* ============================== Conversion finale ============================== */
/* Dégradé bleu → marine, cohérent avec la charte du Club. */
.c-club .c-club-conversion {
  background: linear-gradient(135deg, #004CCC 0%, #001a4d 100%);
}

/* Note : la barre de tags est absente du DOM sur la page Club — celle-ci
   utilise le layout dédié default-club.hbs (sans {{> tags-list}}), pour que
   le hero soit collé au menu sans dépendre du cache CSS. */

/* ============================== Modale du questionnaire ============================== */
.c-club-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.c-club-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.c-club-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 17, 54, 0.6);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.c-club-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 720px;
  height: min(86vh, 820px);
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px -16px rgba(0, 12, 45, 0.45);
}
.c-club-modal__form,
.c-club-modal__form iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.c-club-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(0, 12, 45, 0.2);
  color: #001a4d;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.c-club-modal__close:hover,
.c-club-modal__close:focus {
  background: #FFFFFF;
}
html.is-club-modal-open {
  overflow: hidden;
}

/* ============================== Bande CTA intermédiaire ============================== */
.c-club .c-club-cta-band {
  padding-top: var(--space-48);
  padding-bottom: var(--space-48);
  background-color: #FFFFFF;
}
.c-club-cta-band__inner {
  text-align: center;
}
.c-club-cta-band__text {
  margin: 0 auto 24px;
  max-width: 640px;
  font-family: var(--socle-font-display);
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--socle-ink);
}
@media (min-width: 1024px) {
  .c-club-cta-band__text { font-size: 26px; }
}

/* ============================== Footer (page Club) ============================== */
body.page-club .c-footer {
  margin-top: 0;
  padding-top: var(--space-32);
}
@media (min-width: 1024px) {
  body.page-club .c-footer {
    padding-top: var(--space-48);
  }
}
