/* ============================= */
/* ÉTAPES - GRHTLD */
/* ============================= */

:root {
  --bg: #F4F1EA;
  --bg-2: #ECE8DD;
  --surface: #FFFFFF;
  --ink: #14110D;
  --ink-2: #3B362D;
  --ink-3: #71695C;
  --line: #DDD6C6;
  --navy: #1F3565;
  --gold: #D9A536;
  --serif: "Source Serif 4", "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --radius-l: 4px;
  --ease: cubic-bezier(.22, .8, .28, 1);
}

/* ============================= */
/* SECTION */
/* ============================= */

section.builder.etapes,
.builder.etapes {
  position: relative;
  overflow: hidden;
  background: #ECE8DD;
  color: var(--ink);
}

.etapes__inner {
  position: relative;
  z-index: 1;
}

.builder.etapes .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================= */
/* HEADER */
/* ============================= */

.builder.etapes .etapes__header {
  display: block;
  margin-bottom: 48px;
}

.builder.etapes .etapes__title-block {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.builder.etapes .etapes__surtitre {
  margin: 0 0 18px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
}

/* Titre à gauche + paragraphe à droite */
.builder.etapes .etapes__custom-title {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 72px;
  align-items: start;
}

/* Bloc titre, compatible avec ton HTML : .section__title.text-start */
.builder.etapes .etapes__custom-title > h2,
.builder.etapes .etapes__custom-title > .section__title,
.builder.etapes .etapes__custom-title > .title {
  grid-column: 1;
  margin: 0;
  min-width: 0;
}

/* Le h2 réel */
.builder.etapes .etapes__custom-title h2,
.builder.etapes .etapes__custom-title .section__title h2,
.builder.etapes .etapes__custom-title .title h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: #263b67;
}

.builder.etapes .etapes__custom-title em,
.builder.etapes .etapes__custom-title i {
  font-style: italic;
  color: #263b67;
  font-weight: 300;
}

/* Description dans le custom title */
.builder.etapes .etapes__custom-title > p {
  grid-column: 2;
  margin: 14px 0 0;
  max-width: 520px;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* Si tu utilises aussi le champ texte_intro séparé */
.builder.etapes .etapes__intro {
  max-width: 520px;
  padding-top: 14px;
  padding-bottom: 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-2);
}

.builder.etapes .etapes__intro p {
  margin: 0;
}

/* ============================= */
/* LISTE DES ÉTAPES */
/* ============================= */

.builder.etapes .etapes__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.builder.etapes .etapes__step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color .2s, transform .35s var(--ease);
}

.builder.etapes .etapes__step:hover {
  border-color: var(--navy);
  transform: translateY(-4px);
}

.builder.etapes .etapes__number {
  display: inline-block;
  margin-bottom: 22px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
}

.builder.publications .etapes__surtitre {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}

.builder.etapes .etapes__step-title {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -.01em;
  font-weight: 400;
  color: var(--ink);
}

.builder.etapes .etapes__step-title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 300;
}

.builder.etapes .etapes__step-text {
  color: var(--ink-3);
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.55;
  margin-bottom: 22px;
  flex: 1;
}

.builder.etapes .etapes__step-text p {
  margin: 0;
}

body.page-id-1916 .builder.etapes .pub-cat {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}

/* ============================= */
/* LIEN / BOUTON */
/* ============================= */

.builder.etapes .etapes__link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  margin-top: auto;
  padding-bottom: 4px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--navy);
  transition: color .2s, border-color .2s;
}

.builder.etapes .etapes__link:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* ============================= */
/* SLIDER */
/* ============================= */

.builder.etapes .etapes__slider .splide__list {
  align-items: stretch;
}

.builder.etapes .etapes__slider .etapes__step {
  height: 100%;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 1200px) {
  section.builder.etapes,
  .builder.etapes {
    padding: 96px 0;
  }

  .builder.etapes .container {
    padding: 0 28px;
  }

  .builder.etapes .etapes__custom-title {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 48px;
  }
}

@media (max-width: 1024px) {
  section.builder.etapes,
  .builder.etapes {
    padding: 84px 0;
  }

  .builder.etapes .container {
    padding: 0 26px;
  }

  .builder.etapes .etapes__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 880px) {
  section.builder.etapes,
  .builder.etapes {
    padding: 72px 0;
  }
}

/* Mobile : description sous le titre */
@media (max-width: 760px) {
  .builder.etapes .etapes__custom-title {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .builder.etapes .etapes__custom-title > h2,
  .builder.etapes .etapes__custom-title > .section__title,
  .builder.etapes .etapes__custom-title > .title,
  .builder.etapes .etapes__custom-title > p {
    grid-column: auto;
  }

  .builder.etapes .etapes__custom-title > p {
    margin-top: 0;
    max-width: 560px;
  }

  .builder.etapes .etapes__intro {
    max-width: 560px;
    padding-top: 0;
  }
}

@media (max-width: 600px) {
  section.builder.etapes,
  .builder.etapes {
    padding: 56px 0;
  }

  .builder.etapes .container {
    padding: 0 20px;
  }

  .builder.etapes .etapes__header {
    margin-bottom: 40px;
  }

  .builder.etapes .etapes__custom-title h2,
  .builder.etapes .etapes__custom-title .section__title h2,
  .builder.etapes .etapes__custom-title .title h2 {
    font-size: clamp(32px, 9vw, 48px);
  }

  .builder.etapes .etapes__list {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .builder.etapes .etapes__step {
    padding: 32px 28px;
  }

  .builder.etapes .etapes__number {
    font-size: 30px;
  }

  .builder.etapes .etapes__step-title {
    font-size: 24px;
  }

  .builder.etapes .etapes__step-text {
    font-size: 14px;
  }
}

@media (max-width: 400px) {
  .builder.etapes .container {
    padding: 0 16px;
  }

  .builder.etapes .etapes__step {
    padding: 28px 24px;
  }
}

@media (hover: none) {
  .builder.etapes .etapes__step:hover {
    transform: none;
  }
}
/* ============================= */
/* FIX FINAL : DESCRIPTION ÉTAPES À DROITE */
/* ============================= */

.builder.etapes .etapes__header {
  display: block !important;
}

.builder.etapes .etapes__custom-title {
  display: grid !important;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr) !important;
  column-gap: 72px !important;
  row-gap: 0 !important;
  align-items: start !important;
  width: 100% !important;
  max-width: none !important;
}

/* On neutralise le wrapper .section__title qui bloque le layout */
.builder.etapes .etapes__custom-title > .section__title,
.builder.etapes .etapes__custom-title > .title {
  display: contents !important;
}

/* Titre à gauche */
.builder.etapes .etapes__custom-title h2 {
  grid-column: 1 !important;
  grid-row: 1 !important;
  margin: 0 !important;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: #263b67 !important;
}

/* Description à droite */
.builder.etapes .etapes__custom-title > p,
.builder.etapes .etapes__custom-title .section__title > p,
.builder.etapes .etapes__custom-title .title > p {
  grid-column: 2 !important;
  grid-row: 1 !important;
  margin: 0 !important;
  align-self: end;
  
  max-width: 520px !important;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* Mobile : description sous le titre */
@media (max-width: 760px) {
  .builder.etapes .etapes__custom-title {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .builder.etapes .etapes__custom-title h2,
  .builder.etapes .etapes__custom-title > p,
  .builder.etapes .etapes__custom-title .section__title > p,
  .builder.etapes .etapes__custom-title .title > p {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  .builder.etapes .etapes__custom-title > p,
  .builder.etapes .etapes__custom-title .section__title > p,
  .builder.etapes .etapes__custom-title .title > p {
    margin-top: 0 !important;
    max-width: 560px !important;
  }
}

/* ============================= */
/* PAGE ADHÉRER ID 1872 */
/* ============================= */

body.page-id-1872 .builder.etapes {
  background: var(--bg);
  color: var(--ink);
}

/* Header de la section */
body.page-id-1872 .builder.etapes .etapes__header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 72px;
  align-items: end;
  margin-bottom: 56px;
}

body.page-id-1872 .builder.etapes .etapes__title-block {
  max-width: none;
  min-width: 0;
}

body.page-id-1872 .builder.etapes .etapes__surtitre {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

body.page-id-1872 .builder.etapes .etapes__custom-title h2,
body.page-id-1872 .builder.etapes .etapes__custom-title .section__title,
body.page-id-1872 .builder.etapes .etapes__custom-title .title {
  font-family: var(--serif);
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 1.05;
  letter-spacing: -.02em;
  font-weight: 400;
  color: var(--navy);
}

body.page-id-1872 .builder.etapes .etapes__custom-title em,
body.page-id-1872 .builder.etapes .etapes__custom-title i {
  font-style: italic;
  color: var(--gold);
  font-weight: 300;
}

body.page-id-1872 .builder.etapes .etapes__intro {
  max-width: 520px;
  align-self: end;
  padding-bottom: 6px;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
}

body.page-id-1872 .builder.etapes .etapes__intro p {
  margin: 0;
}

/* ============================= */
/* GRILLE DES CARTES */
/* ============================= */

body.page-id-1872 .builder.etapes .etapes__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

/* ============================= */
/* CARTE : etapes__step → benefit */
/* ============================= */

body.page-id-1872 .builder.etapes .etapes__step {
  display: flex;
  flex-direction: column;
  padding: 30px 24px 28px;
  background: var(--bg);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  transition:
    transform .35s var(--ease),
    border-color .25s var(--ease),
    box-shadow .25s var(--ease);
}

body.page-id-1872 .builder.etapes .etapes__step:hover {
  transform: translateY(-4px);
  border-color: var(--navy);
  background: var(--surface);
}

/* Numéro façon .ben-num */
body.page-id-1872 .builder.etapes .etapes__number {
  margin-bottom: 4px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  color: var(--gold);
}

/* Titre carte */
body.page-id-1872 .builder.etapes .etapes__step-title {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.18;
  letter-spacing: -.005em;
}

body.page-id-1872 .builder.etapes .etapes__step-title em,
body.page-id-1872 .builder.etapes .etapes__step-title i {
  font-style: italic;
  color: var(--gold);
  font-weight: 300;
}

/* Texte carte */
body.page-id-1872 .builder.etapes .etapes__step-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-3);
}

body.page-id-1872 .builder.etapes .etapes__step-text p {
  margin: 0;
}

/* Si un bouton existe dans les anciennes cartes, on le masque sur cette page */
body.page-id-1872 .builder.etapes .etapes__link {
  display: none;
}

body.page-id-1917 .builder.etapes .etapes__list {
  grid-template-columns: repeat(4, 1fr) !important;
}

body.page-id-1917 .builder.etapes .etapes__step {
  background: var(--bg) !important;
}

body.page-id-1917 .builder.etapes {
  background: var(--surface) !important;
}


@media (max-width: 1100px) {
  body.page-id-1917 .builder.etapes .etapes__list {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 700px) {
  body.page-id-1917 .builder.etapes .etapes__list {
    grid-template-columns: 1fr !important;
  }
}
/* ============================= */
/* RESPONSIVE PAGE 1872 */
/* ============================= */

@media (max-width: 1280px) {
  body.page-id-1872 .builder.etapes .etapes__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  body.page-id-1872 .builder.etapes {
    padding: 84px 0;
  }

  body.page-id-1872 .builder.etapes .etapes__header {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }

  body.page-id-1872 .builder.etapes .etapes__intro {
    max-width: 640px;
    padding-bottom: 0;
  }

  body.page-id-1872 .builder.etapes .etapes__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 700px) {
  body.page-id-1872 .builder.etapes {
    padding: 64px 0;
  }

  body.page-id-1872 .builder.etapes .etapes__list {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  body.page-id-1872 .builder.etapes .etapes__step {
    min-height: auto;
    padding: 30px 26px;
  }

  body.page-id-1872 .builder.etapes .etapes__number {
    margin-bottom: 28px;
    font-size: 30px;
  }

  body.page-id-1872 .builder.etapes .etapes__step-title {
    font-size: 24px;
  }

  body.page-id-1872 .builder.etapes .etapes__step-text {
    font-size: 15px;
  }
}
body.page-id-1872 section.builder.etapes[data-color="#FFFFFF"] {
  background: #FFFFFF;
}