/* =========================================================
   HOMEPAGE — styles spécifiques à la page d'accueil
   ========================================================= */
main {
  padding: 0 var(--margin-mobile);
}

@media (min-width: 1024px) {
  main {
    padding: 0 var(--margin-desktop);
    max-width: 1440px;
    margin-inline: auto;
    display:flex;
    flex-direction: column;
    gap: 60px;
    padding-bottom: 60px;
  }

  main > .dnd-plugins-content > .clearfix,
  main .dnd-layout-wrapper > .melis-dragdropzone {
    display: flex;
    flex-direction: column;
    gap: 60px;
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--margin-mobile) 0 0;
  gap: var(--space-3);
  background-color: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: 0 14px 21px 0 rgba(0, 0, 0, 0.15);
  margin-bottom: var(--space-3);
}

/* Fond blanc au-dessus des traces, en dessous du contenu */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-white);
  border-radius: var(--radius-card);
  z-index: 1;
}

.booking-card {
  position: relative;
  z-index: 2;
}


/* Decorative traces (mobile-first) */
.hero__deco-layer {
  display: block;
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

.hero__deco {
  position: absolute;
  pointer-events: none;
}

/* trace-1 : ligne diagonale */
.hero__deco--1 {
  transform: rotate(119deg);
  right: 50%;
  top: 110px;
}

/* trace-2 : forme courbe */
.hero__deco--2 {
  bottom: -30px;
  right: -7%;
  transform: rotate(120deg);
}

@media (min-width: 1024px) {

  .hero {
    margin-bottom:0;
  }

  .hero__deco--1 {
    transform: none;
    right: -90px;
    top: 80px;
    width: 704px;
  }

  .hero__deco--2 {
    right: -90px;
    top: -138px;
    bottom:auto;
    width: 761px;
    transform: none;
  }
}

.hero__content {
  flex: 1;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--margin-mobile);
}

.hero__rating {
  display: none;
  align-items: center;
  font-size: var(--fs-footer-link);
  font-weight: 700;
}

.hero__rating-link            { display: flex; align-items: center; }
.hero__rating .text-strong    { margin-left: 13px;margin-right:5px; }
.hero__rating > svg            { margin-left: 5px; color: #FABC02; }
.hero__rating-count            { margin-left: 20px; color: var(--color-primary); font-size: var(--fs-body-desktop); font-weight: 700; line-height: 22px; }

/* Avatar stack */
.avatar-stack {
  display: flex;
  align-items: center;
  margin-right:5px;
}

.avatar-stack__item {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  border: 1px solid var(--color-bg);
  overflow: hidden;
  margin-left: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-stack__item:first-child {
  margin-left: 0;
}

.avatar-stack__item svg {
  width: 100%;
  height: 100%;
}

.hero__title {
  margin: 0;
  color: var(--color-primary-dark);
  text-align: center;
  line-height: 30px;
}

.hero__brands {
  order: -1;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  padding: 0 16px;
  margin-top: -5px;
}

.hero__brands-logo {
  max-height: 38px;
  height: auto;
  width: auto;
}

.hero__payment {
  display: none;
  align-items: center;
  gap: var(--space-4);
}

.hero__payment-list {
  display:flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.hero__payment-label {
  font-size: var(--fs-body-desktop);
  font-weight: 700;
  line-height: 22px;
  color: var(--color-primary);
}

.hero__payment img {
  width: auto;
}

.pay-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 10px;
  background: var(--color-white);
  border: 1px solid #e2e8e4;
  border-radius: 6px;
  white-space: nowrap;
  min-width: 70px;
  height:32px;
}

.pay-badge__sub {
  font-size: var(--fs-legal-mobile);
  line-height: 9px;
  color: var(--color-text);
  font-weight:500;
  text-align: center;
}

.hero .booking-card__body {
  padding: 0 var(--margin-mobile);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 1024px) {
  .hero {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-6);
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
    background: none;
    box-shadow: none;
    overflow: visible;
  }
  .hero::before { display: none; }
  .hero__title { text-align: left;line-height:var(--fs-h1-desktop); }
  .hero__content { gap: var(--space-4);align-self: center;width:472px;max-width:472px; }
  .hero__rating { display: flex; }
  .hero__brands { padding:0; order: 0; justify-content: flex-start; height: 59px; margin-top:0; margin-bottom: var(--space-4); }
  .hero__brands-logo { max-height: 57px; height: auto; width: auto; }
  .hero__payment { display: flex; }

  .hero .booking-card__body {
    padding:0 var(--space-6);
    margin-bottom: var(--space-6);
  }
}

/* =========================================================
   BOOKING CARD
   ========================================================= */
.booking-card {
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.booking-card__body {
  padding: var(--space-4);
}

.booking-card__title {
  display: none;
  text-align: center;
  font-size: var(--fs-h3-desktop);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.booking-card__payment {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--margin-mobile);
  margin-bottom: var(--space-2);
  flex-wrap: wrap;
  padding: var(--space-2) 0;
}

.booking-card__payment-alma {
  display: flex;
  align-items: center;
  text-align: center;
  gap: 8px;
  font-size: var(--fs-legal-mobile);
  font-weight: 400;
  line-height: 12px;
  color: var(--color-text);
}

/* Vehicle type selector */
.vehicle-selector {
  display: flex;
  gap: var(--space-2);
  border: none;
  padding: 0;
  margin-inline: 0;
}

.vehicle-selector .btn-selector {
  flex: 1;
  cursor: pointer;
}

/* Form field */
.booking-card__field-label {
  font-size: var(--fs-card-subtext);
  font-weight: 500;
  line-height: 18px;
  margin-bottom: var(--space-2);
}
.form-field__input-wrap {
  position: relative;
}

/* Label flottant — default : sans icône */
.form-field__label {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--fs-card-subtext);
  font-weight: 400;
  color: rgba(1, 22, 11, 0.70);
  pointer-events: none;
  white-space: nowrap;
  padding: 0 2px;
  line-height: 1;
  transition: top 0.15s ease, left 0.15s ease, font-size 0.15s ease, color 0.15s ease;
}

/* Avec icône : décale le label pour aligner avec le texte */
.form-field__input-wrap--with-icon .form-field__label {
  left: 38px;
}

.form-field__input:not(:placeholder-shown) ~ .form-field__label,
.form-field__input:focus ~ .form-field__label {
  top: 0;
  left: 12px;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--color-primary);
  background: var(--color-white);
  font-weight: 500;
}

/* ── État erreur (.form-field--error sur tout parent) ─── */
.form-field--error .form-field__input:not(:placeholder-shown) ~ .form-field__label,
.form-field--error .form-field__input:focus ~ .form-field__label {
  color: var(--color-error);
}

.form-field__input-wrap svg,
.form-field__input-wrap img {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--color-text);
}

.form-field__input-wrap .btn-geoloc {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  z-index: 1;
}

.form-field__input-wrap .btn-geoloc img {
  position: static;
  transform: none;
}

/* ── Base générique ───────────────────────────────────── */
.form-field__input {
  width: 100%;
  height: var(--tap-target);
  padding: 0 var(--space-3);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-pill);
  font-size: var(--fs-card-subtext);
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-white);
}

.form-field__input::placeholder {
  color: #8a948e;
}

.form-field__input:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-primary-light);
}

/* Avec icône : padding gauche pour ne pas chevaucher l'icône */
.form-field__input-wrap--with-icon .form-field__input {
  padding-left: 38px;
}

/* Code promo : layout flex + bordure plus épaisse */
.promo-field__input {
  width: 117px;
  border-width: 1.5px;
}

.form-field--error .form-field__input {
  border-color: var(--color-error);
  background-color: var(--color-error-bg);
}

.form-field--error .form-field__input:focus {
  box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.2);
}

.form-field--error .form-field__input-wrap svg {
  color: var(--color-error);
}

/* Error message / info notice */
.field-message {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--fs-card-subtext);
}

.field-message svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  align-self: center;
}

.field-message--error {
  color: var(--color-error);
  margin-top: var(--space-3);
  font-size:var(--fs-card-subtext);
  font-weight: 500;
  line-height: 19.6px;
}

.field-message--info {
  color: var(--color-text);
}

.field-message-box {
  background-color: var(--color-error-bg);
  border: 1px solid var(--color-error);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  font-size: var(--fs-card-subtext);
  color: var(--color-error);
  margin-bottom: var(--space-2);
}

.field-message-box strong {
  display: block;
  margin-bottom: var(--space-1);
}

.field-message-box ul {
  list-style: disc;
  padding-left: var(--space-3);
}

/* Suggestions combobox */
.suggestions-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--color-white);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  list-style: none;
  margin: 0;
  padding: var(--space-1) 0;
  z-index: 10;
  /* 4.5 items visible : indique visuellement que la liste défile */
  max-height: 192px;
  overflow-y: auto;
}

.suggestion-option {
  padding: var(--space-2) var(--space-3);
  font-size: var(--fs-card-subtext);
  line-height: 20px;
  cursor: pointer;
  color: var(--color-text);
}

.suggestion-option--active,
.suggestion-option:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.promo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  font-size: var(--fs-card-subtext);
  color: var(--color-primary);
  font-weight: 400;
  line-height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: none;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
}

/* Champ code promo */
.promo-field {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.promo-field .field-message {
  width: 100%;
  margin-top: 0;
}

.promo-field__label {
  font-size: var(--fs-card-subtext);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--color-text);
}

.booking-card__banner {
  background-color: var(--color-promo);
  color: var(--color-white);
  text-align: center;
  font-size: var(--fs-card-subtext);
  font-weight: 500;
  padding: var(--space-2);
  line-height:18px;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}

@media (min-width: 1024px) {
  .booking-card {
    flex-shrink: 0;
    width: 520px;
    max-width: 520px;
    margin: 0;
    background-color: var(--color-white);
    border-radius: var(--radius-card);
    box-shadow: 0 14px 21px 0 rgba(0, 0, 0, 0.15);
    padding-top: var(--space-6);
  }
  .booking-card__title { display: block;margin-bottom:0; }
  .booking-card__payment { display: none; }
  .booking-card__field-label { font-size: var(--fs-list-item); }
  .promo-link { font-size: var(--fs-article); }
  .booking-card__banner { font-size: var(--fs-list-item); }
  .badge.badge--outline-green { font-size: var(--fs-btn); line-height: 20px; }
}

/* =========================================================
   BONS PLANS
   ========================================================= */
/* Mobile : fond blanc pleine largeur — compense le padding de <main> */
.section--deals {
  background-color: var(--color-white);
  margin-inline: calc(-1 * var(--margin-mobile));
  padding-inline: var(--margin-mobile);
}

.section--deals .section-header__text { max-width: 214px; }

.deals {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Desktop : fond beige sur la page, container blanc arrondi */
@media (min-width: 1024px) {
  .section--deals {
    background-color: transparent;
  }

  .section--deals .section-header__text { max-width: none; }

  .section--deals .container {
    background-color: var(--color-white);
    border-radius: var(--radius-card-lg);
    padding: var(--space-6);
  }
}

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

@media (min-width: 1024px) {
  .deals__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }
}

.deal-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.10);
}

.deal-card__top {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--space-4);
  min-height: 213px;
}

.deal-card__top-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.deal-card__top-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.deal-card--flash .deal-card__top {
  background-color: var(--color-promo);
  color: var(--color-white);
}

/* Zone texte — fond blanc pour les deux cartes */
.deal-card__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  background-color: var(--color-white);
  color: var(--color-text);
  padding: 16px;
  flex: 1;
}

.deal-card__bottom .badge {
  align-self: flex-start;
}

.deal-card__title {
  font-size: var(--fs-h3-mobile);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-1);
}

.deal-card__flash-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 22px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
}

.deal-card__flash-sub {
  font-size: var(--fs-article);
  font-weight: 500;
  line-height: 20px;
  text-align: center;
  max-width: 220px;
}

/* Desktop : layout horizontal */
@media (min-width: 1024px) {
  .deal-card {
    flex-direction: row;
    height: 187px;
    box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.10);
  }

  .deal-card__title {
    font-size: var(--fs-h3-desktop);
    margin-bottom: 0;
  }

  .deal-card__flash-sub {
    max-width: 146px;
  }

  .deal-card__top {
    flex: 0 0 50%;
    min-height: unset;
  }

  .deal-card__bottom {
    flex: 1;
    justify-content: space-between;
  }
}

@media (max-width: 1439px) {
  .deal-card {
    flex-direction: column;
    height: auto;
  }

  .deal-card__top {
    min-height: 213px;
  }
}

/* ── Carte partenaires ── */
.deal-card--partners .deal-card__top {
  background-color: #F9FAFB;
  padding: var(--space-4);
}

.partners-logos {
  align-items: center;
  width: 100%;
}

.partners-logos img {
  width: 100%;
  object-fit: contain;
  object-position: center;
}

/* =========================================================
   OFFER CARDS (Contrôle Eco / Pass / Fiabilis / Transparence)
   ========================================================= */
.section--offers .section-header__subtitle { display: none; }

@media (min-width: 1024px) {
  .section--offers .section-header__subtitle { display: revert; }
}
.offers {
  position: relative;
}

.offers__scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 85%;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-6);
  scrollbar-width: none;
}

.offers__scroll::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1024px) {
  .offers__scroll {
    grid-auto-columns: calc((100% - 3 * var(--space-4)) / 3.85);
  }
}

.offer-card {
  scroll-snap-align: start;
  background-color: var(--color-white);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.10);
}

.offer-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  height:192px;
}

.offer-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-card__badge {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
}

.offer-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1;
}

@media (min-width: 1024px) {
  .offer-card__title {
    color: var(--color-primary);
  }
}

.offer-card__categories {
  font-size: var(--fs-card-subtext);
  color: var(--color-text);
  font-weight: 400;
  line-height: 18px;
}

.offer-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

.offer-card__list ul {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}

.offer-card__list li {
  position: relative;
  padding-left: 26px;
  font-size: var(--fs-card-subtext);
  font-weight: 400;
  list-style: none;
}

.offer-card__list li strong {
  font-weight: 700;
  font-size: var(--fs-list-item);
}

.offer-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  background-color: var(--color-primary);
  mask-image: url('../assets/icons/ui/check.svg');
  mask-repeat: no-repeat;
  mask-size: contain;
  mask-position: center;
}

.offer-card__list svg,
.offer-card__list img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 2px;
}

.offer-card__cta {
  margin-top: auto;
  padding-top: var(--space-3);
}

.offers__nav {
  display: flex;
  gap: var(--space-2);
  justify-content: flex-end;
}

/* =========================================================
   PROCHAIN CONTRÔLE
   ========================================================= */
.next-control {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.next-control__text {
  flex: 1;
}

.next-control__text p {
  margin-top: var(--space-3);
  color: var(--color-text);
}

.next-control__link {
  display: inline-flex;
  margin-top: var(--space-2);
}

.next-control__card {
  flex: 1;
  background-color: var(--color-white);
  border-radius: var(--radius-card);
  padding: 16px;
  box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.10);
}

.next-control__card-title {
  font-size: var(--fs-h3-mobile);
  font-weight: 700;
  margin-bottom: var(--space-3);
  display:none;
  color: var(--color-primary);
}

.next-control__checklist {
  display: none;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.next-control__checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--fs-list-item);
  font-weight: 500;
}

.next-control__checklist svg,
.next-control__checklist img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 2px;
}

.next-control__selector {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  border: none;
  padding: 0;
  margin-inline: 0;
  min-width: 0;
}

.next-control__selector .btn-selector {
  min-width: 143px;
}

/* 3 boutons : espace partagé équitablement */
.next-control__selector .btn-selector:first-child:nth-last-child(3),
.next-control__selector .btn-selector:first-child:nth-last-child(3) ~ .btn-selector {
  flex: 1;
}

.next-control__selector .btn-selector::before {
  width: 24px;
  height: 14px;
}

@media (min-width: 1024px) {
  .next-control {
    flex-direction: row;
    align-items: stretch;
    gap: var(--section-gap);
  }

  .next-control__card { padding: var(--space-6); }
  .next-control__card-title { display:block; font-size: var(--fs-h3-desktop); }
  .next-control__checklist { display:flex; }

  .next-control__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .next-control__text p {
    max-width: 532px;
    font-size: 18px;
    font-weight: 500;
    line-height: 22px;
  }

  .next-control__link {
    margin-top: auto;
  }
}

/* =========================================================
   FAQ
   ========================================================= */
.section--faq {
  background-color: var(--color-white);
  margin-inline: calc(-1 * var(--margin-mobile));
  padding-inline: var(--margin-mobile);
}

@media (min-width: 1024px) {
  .section--faq {
    background-color: transparent;
    margin-inline: 0;
    padding-inline: 0;
  }
}

.faq {
  /* mobile : pas de card — la section fournit le fond blanc pleine largeur */
}

@media (min-width: 1024px) {
  .faq {
    background-color: var(--color-white);
    border-radius: var(--radius-card-lg);
    padding: var(--section-padding-y) var(--section-padding-y);
  }
}

.faq__list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--color-primary-light);
}

.faq-item:last-child {
  border-bottom: none;
}


.faq-item__question-heading {
  margin: 0;
  font: inherit;
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  text-align: left;
  padding: var(--space-4) 0;
  font-size: var(--fs-list-item);
  font-weight: 500;
  color: var(--color-text);
  min-height: var(--tap-target);
}

@media (min-width: 1024px) {
  .faq-item__question {
    font-size: var(--fs-body-desktop);
  }
}

.faq-item__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-item__icon::before {
  content: url('../assets/icons/ui/plus.svg');
  display: block;
  line-height: 0;
}

.faq-item--open .faq-item__icon::before {
  content: url('../assets/icons/ui/minus.svg');
}

.faq-item__answer {
  display: none;
  padding: 0 0 var(--space-4);
  font-size: var(--fs-small-mobile);
  font-weight: 400;
  line-height: 18px;
}

.faq-item--open .faq-item__answer {
  display: block;
}

.faq-item__answer p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  line-height:24px;
}

.faq-item__more {
  display: block;
  text-align: right;
  margin-top: var(--space-3);
  font-size: 14px;
  color: var(--color-primary);
  text-decoration: underline;
  padding-right: 20px;
}

.faq-item__related-label {
  font-size: var(--fs-article);
  font-weight: 700;
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

.faq-item__related {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

@media (min-width: 768px) {
  .faq-item__related {
    flex-direction: row;
  }
}

.faq-related-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  flex: 1;
}

.faq-related-card img {
  width: 156px;
  height: 156px;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
}

.faq-related-card__title {
  font-size: var(--fs-card-subtext);
  font-weight: 400;
  line-height: 18px;
}

.faq-related-card__title:after {
  height:6px;
  width: 40px;
  background-color: var(--color-primary);
  content: '';
  display: block;
  margin-top: 14px;
  margin-bottom:16px;
}

.faq-related-card__time {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-small-mobile);
  font-weight: 400;
}

.faq-related-card__time::before {
  content: url('../assets/icons/ui/book.svg');
  display: block;
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  line-height: 0;
}

/* =========================================================
   ACTUALITÉS
   ========================================================= */
.section--news .section-header > .btn-mobileLink {
  display: none;
}

@media (min-width: 1024px) {
  .section--news .section-header > .btn-mobileLink {
    display: flex;
  }
}

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

@media (min-width: 1024px) {
  .news__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
    align-items: stretch;
    margin-top: 46px;
  }
}

/* Carte commune */
.news-card {
  display: flex;
  background-color: var(--color-white);
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.10);
}

.news-card__image {
  overflow: hidden;
  flex-shrink: 0;
}

.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.news-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-3);
  min-width: 0;
}

.news-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.news-card__title {
  font-size: var(--fs-list-item);
  font-weight: 500;
  color: var(--color-text);
}

.news-card__title a {
  color: inherit;
  text-decoration: none;
}

.news-card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.news-card__excerpt {
  display: none;
  font-size: var(--fs-article);
  font-weight: 400;
  line-height: 20px;
}

@media (min-width: 1024px) {
  .news-card__content {
    padding: 16px;
  }

  .news-card__title {
    font-size: var(--fs-body-bold-desktop);
    font-weight: 700;
  }
  .news-card__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .news-card__body {
    gap: var(--space-3);
  }
}

.news-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-card__link {
  font-weight: 500;
  font-size: var(--fs-small-mobile);
}

@media (min-width: 1024px) {
  .news-card__link {
    font-size: var(--fs-article);
  }
}

.news-card__arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card__arrow::before {
  content: url('../assets/icons/ui/arrow-right.svg');
  display: block;
  line-height: 0;
}

/* Carte principale : identique aux secondaires sur mobile */
.news__grid > .news-card {
  flex-direction: row;
}

.news__grid > .news-card .news-card__image {
  width: 132px;
  height: 146px;
}

/* Desktop : carte principale — image à gauche comme les secondaires */
@media (min-width: 1024px) {
  .news__grid > .news-card {
    height: 300px;
  }

  .news__grid > .news-card .news-card__image {
    width: 50%;
    height: 100%;
    flex-shrink: 0;
  }

  .news__grid > .news-card .news-card__title {
    font-size: var(--fs-h3-desktop);
    line-height:normal;
  }

  .news-card__link {
    text-decoration-line: underline;
  }
}

/* Cartes secondaires : image à gauche, texte à droite */
.news__secondary-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 1024px) {
  .news__secondary-grid {
    height: 300px;
  }

  .news__secondary-grid .news-card {
    flex: 1;
  }
}

.news__secondary-grid .news-card {
  flex-direction: row;
}

.news__secondary-grid .news-card .news-card__image {
  width: 132px;
  height: 146px;
}

@media (min-width: 1024px) {
  .news__secondary-grid .news-card .news-card__image {
    width: 50%;
    height: 100%;
  }
}


/* =========================================================
   CENTRES
   ========================================================= */
.centers {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  text-align: center;
}

@media (min-width: 1024px) {
  .centers {
    background-color: var(--color-white);
    border-radius: var(--radius-card-lg);
    padding: 60px;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    text-align: left;
  }
}

.centers__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
}

@media (min-width: 1024px) {
  .centers__text {
    align-items: flex-start;
    gap: 0;
  }

  .centers__text > h2 {
    order: -1;
    margin-bottom: 10px;
  }

  .centers__text > .centers__logos {
    margin-bottom: 50px;
  }
}

@media (max-width: 1024px) {
  .centers__text > a { width:100%; }
}

.centers__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  height:38px;
}

@media (min-width: 1024px) {
  .centers__logos {
    justify-content: flex-start;
    height:auto;
  }
}

.centers__logos img {
  max-height: 42px;
  height: auto;
  width: auto;
}

.centers__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3) var(--space-6);
  font-size: var(--fs-footer-link);
  font-weight: 500;
  text-align: left;
}

@media (min-width: 1024px) {
  .centers__list {
    display: block;
    flex: 0 0 50%;
    columns: 2;
    column-gap: 90px;
    align-self: center;
    font-size: var(--fs-body-desktop);
    margin-top:var(--space-3);
  }

  .centers__list li {
    break-inside: avoid;
    margin-top: var(--space-6);
  }

  .centers__list li:first-child {
    margin-top: 0;
  }

  .centers__logos img {
    max-height: 59px;
  }
}

.centers__list a {
  text-decoration: underline;
}
