/* #region GENERAL  */

:root {
  --primary: #1f2a45;
  --secondary: #e35205;

  --main-font: "DM Serif Display", Sans-serif;
  --second-font: "Roboto", Sans-serif;
}
.table-type-3.alignleft th {
  text-align: left;
}
.fcw-main table th {
  font-weight: 400;
}
strong {
  font-weight: bold !important;
}
/* #endregion */

/* #region WIDGETS UNDERLINE */
.underlined-title {
  position: relative;
  display: inline-block;
}

.underlined-title:after {
  content: "";
  bottom: -30px;
  left: 0;
  width: 1px;
  height: 130%;
  background: white;
  position: absolute;
  max-height: 180px;
}

.underlined-title:before {
  content: "";
  bottom: 15px;
  left: -35px;
  width: 100%;
  height: 1px;
  background: white;
  position: absolute;
}

.underlined-title .top-text {
  display: block;
  margin-bottom: -4px !important;
}

.underlined-title .bottom-text {
  display: block;
}
/* #endregion */

/* #region WIDGETS CONTENU FLEXIBLE */
/* Wrapper par défaut */
.flexible-content-widget {
  width: 100%;
}

/* Layout avec sidebar */
.flexible-content-widget.has-sidebar {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
}

/* Mobile / tablette : stack */
@media (max-width: 992px) {
  .flexible-content-widget.has-sidebar {
    grid-template-columns: 1fr;
  }
}

/* Sidebar */
.fcw-sidebar {
  color: var(--primary);
  font-family: var(--second-font);
}

.fcw-sidebar__title {
  font-family: var(--main-font);
  color: var(--primary);
  font-weight: 400;
  margin: 0 0 2rem;
  position: relative;
  padding-bottom: 0.5rem;
  padding-left: 12px;
}
.fcw-sidebar__title a,
.fcw-sidebar__title a:visited,
.fcw-sidebar__title a:focus {
  color: var(--primary);
}
.fcw-sidebar__title::after {
  content: "";
  top: 0;
  left: 0;
  width: 1px;
  height: 130%;
  background: var(--primary);
  position: absolute;
}
.fcw-sidebar__title::before {
  content: "";
  bottom: 15px;
  left: -35px;
  width: 100%;
  height: 1px;
  background: var(--primary);
  position: absolute;
}

/* Liens du menu */
.fcw-sidebar__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  padding-left: 13px;
}
.fcw-sidebar__nav li + li {
  margin-top: 0.5rem;
}
.fcw-sidebar__nav a {
  color: var(--secondary);
  text-decoration: none;
}
.fcw-sidebar__nav a:hover,
.fcw-sidebar__nav a:focus {
  text-decoration: underline;
}

/* Colonne principale */
.fcw-main {
  color: var(--primary);
}
.fcw-main a {
  /* liens contenus (WYSIWYG, etc.) */
  color: var(--secondary);
  text-decoration: underline;
}

/* ====== Grille 1–3 colonnes ====== */
.flexible-content-widget {
  display: grid;
  gap: 2rem;
}
.flexible-content-widget.has-sidebar-left {
  grid-template-columns: 260px minmax(0, 1fr);
}
.flexible-content-widget.has-sidebar-right {
  grid-template-columns: minmax(0, 1fr) 340px;
}
.flexible-content-widget.has-sidebar-left.has-sidebar-right {
  grid-template-columns: 260px minmax(0, 1fr) 340px;
}

/* Empilement mobile : menu en haut, contenu, blog en bas */
@media (max-width: 980px) {
  .flexible-content-widget,
  .flexible-content-widget.has-sidebar-left,
  .flexible-content-widget.has-sidebar-right,
  .flexible-content-widget.has-sidebar-left.has-sidebar-right {
    grid-template-columns: 1fr;
  }
  .flexible-content-widget {
    padding: 0 20px;
  }
  .fcw-sidebar {
    order: 2;
  }
  .fcw-main {
    order: 1;
  }
}

/* ====== Colonne blog (droite) ====== */
.fcw-blog {
  color: var(--primary);
}
.fcw-blog__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fcw-blog__item {
  padding: 1rem 0;
}
.fcw-blog__date {
  display: block;
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 0.35rem;
  font-family: var(--second-font);
}
.fcw-blog__title {
  font-family: var(--main-font);
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
  line-height: 1.35;
}
.fcw-blog__title a {
  color: var(--primary);
  text-decoration: none;
}
.fcw-blog__title a:hover {
  text-decoration: underline;
}
.fcw-blog__excerpt {
  margin: 0 0 0.5rem;
  line-height: 1.6;
}
.fcw-blog__sep {
  display: block;
  height: 2px;
  width: 110px;
  background: var(--primary);
  margin-top: 0.5rem;
}

/* lien "Tout voir" */
.fcw-blog__more-wrap {
  margin-top: 0.5rem;
}
.fcw-blog__more {
  color: var(--primary);
  text-decoration: underline;
  font-family: var(--second-font);
}
.fcw-blog__list-title {
  font-family: var(--main-font);
  margin-bottom: 0;
}
.flexible-content-widget {
  padding-bottom: 100px;
}

/* (Optionnel) harmoniser avec le menu gauche si besoin :
.fcw-sidebar { ... }  // tu as déjà tes styles
*/

/* #endregion */

/* #region SECTION TEXTE SIMPLE */
.block-texte-simple {
  margin: 0 0 2rem 0;
  color: var(--primary);
  font-family: var(--second-font);
  font-weight: 300;
}

.block-texte-simple h2 {
  font-family: var(--main-font);
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 1rem;
  margin-block-start: 0;
}

/* Ligne soulignée si activé */
.block-texte-simple h2.is-underlined {
  position: relative;
  padding-bottom: 0.5rem;
}
.block-texte-simple h2.is-underlined::after {
  content: "";
  display: block;
  width: 215px;
  height: 2px;
  background: var(--primary);
  margin-top: 0.5rem;
}

.texte-simple__content a {
  color: var(--secondary);
  text-decoration: underline;
}
/* #endregion */

/* #region SECTION IMAGE */
/* IMAGE – layout */
.cf-image {
  margin: 0 0 2rem 0;
  color: var(--primary);
  font-family: var(--second-font);
}

/* Titre optionnel */
.cf-image__title {
  font-family: var(--main-font);
  color: var(--primary);
  margin: 0 0 1rem;
  line-height: 1.25;
}

/* Contenu limité vs pleine largeur */
.cf-image.is-contained .cf-image__figure {
  max-width: 1040px; /* ajuste selon ton grid */
  margin: 0 auto;
}
.cf-image.is-full .cf-image__figure {
  max-width: none;
}

/* Image */
.cf-image__figure {
  margin: 0;
}
.cf-image__img {
  display: block;
  width: 100%;
  height: auto;
}

/* Hauteur max (si fournie) */
.cf-image .cf-image__img.has-hmax {
  max-height: var(--hmax);
  object-fit: contain;
  max-width: 100%;
}
.cf-image.is-full .cf-image__img.has-hmax {
  max-height: var(--hmax);
  object-fit: cover;
  max-width: 100%;
}

/* #endregion */

/* #region SECTION FAQ */

/* Wrapper */
.cf-faq {
  margin: 1.5rem 0;
  color: var(--primary);
  font-family: var(--second-font);
}
.cf-faq__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cf-faq__item + .cf-faq__item {
  border-top: 1px solid #e9edf3;
}

/* Ligne (summary) */
.cf-faq__details {
  padding: 0.875rem 0;
}
.cf-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none; /* cache le marker natif */
  font-family: var(--main-font);
  font-size: 1.05rem;
}
.cf-faq__details > summary::-webkit-details-marker {
  display: none;
}

/* Icône cercle + chevron */
.cf-faq__icon {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 2px solid var(--secondary);
  border-radius: 50%;
}
.cf-faq__icon::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--secondary);
  border-bottom: 2px solid var(--secondary);
  transform: rotate(45deg); /* chevron vers le bas */
  transition: transform 0.2s ease;
}
.cf-faq__details[open] .cf-faq__icon::before {
  transform: rotate(-135deg); /* chevron vers le haut */
}

/* Réponse */
.cf-faq__a {
  padding: 0.5rem 0 1rem;
  line-height: 1.7;
}
.cf-faq__a a {
  color: var(--secondary);
  text-decoration: underline;
}

/* Hover/focus */
.cf-faq__q:hover .cf-faq__qtext,
.cf-faq__q:focus-visible .cf-faq__qtext {
  text-decoration: underline;
}

/* Responsive: rien de spécial, c'est une liste verticale. */

/* #endregion */

/* #region  SECTION TEXTE IMAGE */
.cf-ti {
  display: grid;
  grid-template-columns: 1fr var(--img-w, 35%);
  gap: 2rem;
  align-items: start;
  color: var(--primary);
  font-family: var(--second-font);
  font-weight: 300;
  margin: 2rem 0;
}

/* Inversion (image à gauche) */
.cf-ti.is-reverse .cf-ti__text {
  order: 2;
}
.cf-ti.is-reverse .cf-ti__image {
  order: 1;
}
.cf-ti__text h2 {
  font-family: var(--main-font);
  font-weight: 400;
}

/* Colonne texte */
.cf-ti__text a {
  color: var(--secondary);
  text-decoration: underline;
}

/* Colonne image + séparateur vertical */
.cf-ti__image {
  margin: 0;
  padding-left: 1.25rem;
  border-left: 2px solid #e6e9ef;
}
.cf-ti.is-reverse .cf-ti__image {
  padding-left: 0;
  padding-right: 1.25rem;
}
.cf-ti__img {
  display: block;
  width: 100%;
  height: auto;
}

/* Responsive: pile sur une colonne, on enlève le séparateur */
@media (max-width: 992px) {
  .cf-ti {
    grid-template-columns: 1fr;
  }
  .cf-ti__image {
    border: 0;
    padding: 0;
    max-width: 520px; /* optionnel pour éviter une image trop large */
    margin: 0 auto;
  }
}
/* #endregion */

/* #region  SECTION GRILLE DE BLOG */
/* ====== TON CSS INITIAL (inchangé) ====== */

/* Bloc + titre  */
.cf-bloggrid {
  margin: 4rem 0;
  color: var(--primary);
  font-family: var(--second-font);
  position: relative;
}
.cf-bloggrid__title {
  font-family: var(--main-font);
  margin: 0 0 2.5rem;
  position: relative;
}
.cf-bloggrid__title::after {
  content: "";
  top: 0;
  left: -10px;
  width: 1px;
  height: 130%;
  background: var(--primary);
  position: absolute;
}
.cf-bloggrid__title::before {
  content: "";
  bottom: 8px;
  left: -35px;
  width: 100%;
  max-width: 410px;
  height: 1px;
  background: var(--primary);
  position: absolute;
}

.cf-bloggrid__list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

/* Item */
.cf-bloggrid__item {
  padding: 1.25rem 0;
  position: relative;
}

.cf-bloggrid__date {
  display: block;
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
  font-weight: 300;
  font-family: var(--second-font);
}

.cf-bloggrid__item-title {
  font-family: var(--main-font);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}
.cf-bloggrid__item-title a {
  color: var(--primary);
  text-decoration: none;
}
.cf-bloggrid__item-title a:hover {
  text-decoration: underline;
}

.cf-bloggrid__excerpt {
  margin: 0 0 0.75rem;
  line-height: 1.7;
  font-family: var(--second-font);
  font-weight: 200;
}

.cf-bloggrid__list .cf-bloggrid__more {
  color: var(--primary);
  text-decoration: underline;
  display: inline-block;
  font-family: var(--second-font);
  font-weight: 300;
  margin-bottom: 0.25rem;
  text-decoration: underline;
}

.cf-bloggrid__item:before {
  content: "";
  height: 2px;
  background: var(--primary);
  width: 75px;
  position: absolute;
  bottom: 28px;
  right: 0;
}
.cf-bloggrid.is-grid .cf-bloggrid__item:before {
  display: none;
} /* ne touche pas au titre ::before/::after */
.cf-bloggrid.is-grid .cf-bloggrid__more {
  position: relative;
}
/* .cf-bloggrid.is-grid .cf-bloggrid__more:before {
  content: "";
  height: 2px;
  background: var(--primary);
  width: 75px;
  position: absolute;
  bottom: -10px;
  right: 0;
} */

/* ====== AJOUTS MINIMAUX ====== */

/* 1) MODE LISTE + image cochée → 2 colonnes: texte gauche / image droite */
.cf-bloggrid.is-list.has-thumb .cf-bloggrid__item {
  display: grid;
  grid-template-columns: minmax(220px, 32%) 1fr;
  gap: 1.25rem 2rem;
  align-items: start;
}
.cf-bloggrid.is-list.has-thumb .cf-bloggrid__figure {
  grid-column: 1;
  grid-row: 1 / span 5;
  margin: 0;
}
.cf-bloggrid.is-list.has-thumb .cf-bloggrid__date,
.cf-bloggrid.is-list.has-thumb .cf-bloggrid__item-title,
.cf-bloggrid.is-list.has-thumb .cf-bloggrid__excerpt,
.cf-bloggrid.is-list.has-thumb .cf-bloggrid__more,
.cf-bloggrid.is-list.has-thumb .cf-bloggrid__separator {
  grid-column: 2;
}
.cf-bloggrid.is-list.has-thumb .cf-bloggrid__thumb {
  width: 100%;
  height: auto;
}
@media (max-width: 820px) {
  .cf-bloggrid.is-list.has-thumb .cf-bloggrid__item {
    grid-template-columns: 1fr;
  }
  .cf-bloggrid.is-list.has-thumb .cf-bloggrid__figure {
    grid-column: 1;
    grid-row: auto;
    padding-left: 0;
    border-left: 0;
    margin-top: 0.75rem;
  }
}

/* 2) MODE GRILLE (horizontal) → grille 3/2/1 + Titre AVANT l'image */
.cf-bloggrid.is-grid .cf-bloggrid__list {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1024px) {
  .cf-bloggrid.is-grid .cf-bloggrid__list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .cf-bloggrid.is-grid .cf-bloggrid__list {
    grid-template-columns: 1fr;
  }
}

.cf-bloggrid.is-grid .cf-bloggrid__item {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.cf-bloggrid.is-grid .cf-bloggrid__item-title {
  order: 1;
  margin: 0 0 0.5rem; /* même taille/couleur qu'avant */
}
.cf-bloggrid.is-grid .cf-bloggrid__figure {
  order: 2;
  margin: 0 0 0.75rem;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.cf-bloggrid.is-grid .cf-bloggrid__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cf-bloggrid.is-grid .cf-bloggrid__excerpt {
  order: 3;
}
.cf-bloggrid.is-grid .cf-bloggrid__more {
  order: 4;
  color: var(--primary);
} /* couleur d'origine */
.cf-bloggrid.is-grid .cf-bloggrid__separator {
  order: 5;
  display: block;
  width: 75px;
  height: 2px;
  background: #e9edf3;
  margin-top: 0.6rem;
}
.cf-bloggrid.is-grid .cf-bloggrid__date {
  display: none;
}
.cf-bloggrid.is-grid .cf-bloggrid__excerpt {
  margin-top: 1rem;
}
/* #endregion */

/* #region  SECTION GROUPES DE LIENS */
/* Wrapper */
.cf-links {
  margin: 1rem 0;
}
.cf-links__list {
  --links-color: var(--secondary);
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  padding: 0;
  margin: 0;
}

/* Lien + icône cercle > */
.cf-links__a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--links-color);
  text-decoration: none;
  font-family: var(--second-font);
}
.cf-links__a:hover,
.cf-links__a:focus {
  text-decoration: underline;
}

.cf-links__icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}
.cf-links__icon::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); /* flèche vers la droite */
}

/* Optionnel: réduire l'espacement sur petit écran */
@media (max-width: 640px) {
  .cf-links__list {
    gap: 0.75rem 1.25rem;
  }
}

/* #endregion */

/* #region  SECTION GALERIE DE PHOTOS */
/* Wrapper */
.cf-gallery {
  margin: 2rem 0;
  color: var(--primary);
}

/* Grille responsive */
.cf-gallery__grid {
  --gal-ratio: 16/9; /* ajuste si besoin (ex: 4/3, 3/2) */
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0;
  padding: 0;
}
@media (min-width: 768px) {
  .cf-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Carte */
.cf-gallery__item {
  margin: 0;
}

/* Lien = cadre avec ratio fixe, image couvre */
.cf-gallery__link {
  display: block;
  position: relative;
  aspect-ratio: var(--gal-ratio);
  overflow: hidden;
  border-radius: 6px; /* optionnel */
}

/* Image */
.cf-gallery__img {
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: cover; /* rogne pour respecter le ratio visuel */
  transition: transform 0.25s ease;
}
.cf-gallery__link:hover .cf-gallery__img,
.cf-gallery__link:focus .cf-gallery__img {
  transform: scale(1.02);
}

/* #endregion */

/* #region  SECTION HORAIRES DE COURS */

/* Bloc global */
.cf-schedule {
  margin: 2rem 0;
  color: var(--primary);
  font-family: var(--second-font);
}

/* En-tête: "Session 1 | 6 semaines | 140,00 $" */
.cf-schedule__header {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: baseline;
  margin-bottom: 0.75rem;
}
.cf-schedule__h-item {
  position: relative;
  padding-left: 1.25rem;
}
.cf-schedule__h-item:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 18px;
  background: #dfe7f0; /* séparateur vertical */
}
.cf-schedule__h-item.is-title {
  font-family: var(--main-font);
  font-weight: 700;
  padding-left: 0;
  font-size: 30px;
}
.cf-schedule__h-item.is-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  background: var(--secondary);
  margin-top: 0.35rem;
}

/* Table "visuelle" en 3 colonnes (date / heure / note) */
.cf-schedule__table {
  border-top: 1px solid #e9edf3;
}
.cf-schedule__row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid #e9edf3;
}
.cf-schedule__row--head {
  font-weight: 700;
  font-family: var(--main-font);
}

.cf-schedule__cell {
  padding: 1rem 0.85rem;
  line-height: 1.6;
}

/* Liens éventuels dans la note */
.cf-schedule__cell--note a {
  color: var(--secondary);
  text-decoration: underline;
}

/* Mobile: empilement + labels visibles */
@media (max-width: 820px) {
  .cf-schedule__row {
    grid-template-columns: 1fr;
  }
  .cf-schedule__row--head {
    display: none;
  }
  .cf-schedule__cell {
    padding: 0.75rem 0;
  }
  .cf-schedule__cell::before {
    content: attr(data-label) ": ";
    display: block;
    font-weight: 700;
    margin-bottom: 0.25rem;
  }
  .cf-schedule__cell--date,
  .cf-schedule__cell--time {
    background: transparent;
  }
}

/* #endregion */

/* #region  SECTION BOUTTONS */
/* Boutons avec icônes */
.cf-btns {
  margin: 2rem 0;
}
.cf-btns__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1024px) {
  .cf-btns__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .cf-btns__grid {
    grid-template-columns: 1fr;
  }
}

.cf-btns__item {
  margin: 0;
}

.cf-btns__btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  min-height: 72px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 99px; /* ajuste si tu veux plus carré */
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.cf-btns__btn:hover,
.cf-btns__btn:focus {
  background: white;
  border: var(--primary) 1px solid;
  transform: translateY(-1px);
  color: var(--primary);
}

.cf-btns__btn svg {
  color: white;
}

.cf-btns__btn:hover svg,
.cf-btns__btn:focus svg,
.cf-btns__btn:hover .cf-btns__label,
.cf-btns__btn:focus .cf-btns__label {
  color: var(--primary) !important;
}

/* Icône (class-based <i>) */
.cf-btns__icon i {
  font-size: 1.35rem;
  line-height: 1;
  color: #fff;
}

/* SVG inline éventuellement renvoyé par ACF Extended */
.cf-btns__icon svg {
  width: 28px;
  height: 28px;
  display: block;
  color: #fff;
}

/* Libellé souligné (comme dans la maquette) */
.cf-btns__label {
  font-family: var(--main-font);
  color: #fff;
}

/* #endregion */

/* #region  SECTION PAGE PARENT */
/* SECTION */
.cf-parent {
  display: grid;
  grid-template-columns: 1fr 35%;
  gap: 2rem;
  align-items: start;
  color: var(--primary);
  font-family: var(--second-font);
  margin: 2rem 0;
}
@media (max-width: 992px) {
  .cf-parent {
    grid-template-columns: 1fr;
  }
}

/* Texte */
.cf-parent__title {
  font-family: var(--main-font);
  color: var(--primary);
  line-height: 1.2;
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
}
.cf-parent__content a {
  color: var(--secondary);
  text-decoration: underline;
}

/* Image + séparateur vertical */
.cf-parent__figure {
  margin: 0;
  padding-left: 1.25rem;
}
@media (max-width: 992px) {
  .cf-parent__figure {
    padding: 0;
    border: 0;
  }
}
.cf-parent__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
}

/* Actions (boutons) */
.cf-parent__actions {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 640px) {
  .cf-parent__actions {
    grid-template-columns: 1fr;
  }
}

.cf-parent__btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  min-height: 72px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 99px;
}
.cf-parent__btn:hover,
.cf-parent__btn:focus {
  background: white;
}

.cf-parent__btn-label {
  color: #fff;
  font-family: var(--main-font);
}

.cf-parent__btn:hover {
  border: var(--primary) 1px solid;
}
.cf-parent__btn:hover .cf-parent__btn-icon svg,
.cf-parent__btn:hover .cf-parent__btn-label {
  color: var(--primary);
}
.cf-parent__btn-icon i {
  font-size: 1.35rem;
  line-height: 1;
  color: #fff;
}
.cf-parent__btn-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  color: #fff;
}
.cf-parent__btn-img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}
/* Optionnel pour rendre les PNG blancs sur fond bleu:
   .cf-parent__btn-img { filter: brightness(0) invert(1); } */

.cf-parent__btn-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fff;
  display: inline-block;
}

/* #endregion */

/* #region  SECTION GRILLE DE PARTENAIRES */
/* Grille */
.cf-partners {
  margin: 2rem 0;
  color: var(--primary);
}
.cf-partners__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.5rem 3rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 1100px) {
  .cf-partners__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .cf-partners__grid {
    grid-template-columns: 1fr;
  }
}

.cf-partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.cf-partner__figure {
  margin: 0 0 0.75rem;
  text-align: center;
}
.cf-partner__logo {
  max-width: 320px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* CTA (affiché seulement si texte_du_lien est vide) */
.cf-partner__cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0 1rem;
  border-top: 2px solid #e9edf3;
  width: 100%;
}
.cf-partner__cta-ico {
  display: inline-block;
  width: 26px;
  height: 26px;
  line-height: 26px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  position: relative;
  flex: 0 0 26px;
}
.cf-partner__cta-ico::after {
  content: "›";
  position: absolute;
  inset: 0;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  top: 0;
  line-height: 100%;
}
.cf-partner__cta-link {
  color: var(--primary);
  text-decoration: none;
}
.cf-partner__cta-link:hover {
  text-decoration: underline;
}

/* #endregion */

@media (max-width: 767px) {
  .underlined-title::before {
    bottom: 15px;
    max-width: 100vw;
  }
  .fcw-sidebar__title::before {
    left: -24px;
  }
  .dialog-prevent-scroll {
    max-height: 100lvh !important;
    overflow: hidden;
  }
}
