.hero-drive-card {
  appearance: none;
  width: 100%;
  min-height: 118px;
  margin: 0;
  padding: 20px 14px 14px;
  border: 1px solid rgba(229, 190, 62, .58);
  border-radius: 20px;
  background:
    radial-gradient(circle at 84% 8%, rgba(255, 221, 109, .20), transparent 34%),
    linear-gradient(135deg, #0c3a1a 0%, #15582f 52%, #237343 100%);
  box-shadow:
    0 6px 0 rgba(7, 44, 21, .16),
    0 17px 31px rgba(11, 63, 31, .22),
    inset 0 1px 0 rgba(255, 255, 255, .13);
  color: #fff;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  position: relative;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: transform .2s ease, box-shadow .2s ease;
  order: 3;
}

.hero-drive-card:hover,
.hero-drive-card:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 8px 0 rgba(7, 44, 21, .15),
    0 22px 38px rgba(11, 63, 31, .27),
    inset 0 1px 0 rgba(255, 255, 255, .17);
}

.hero-drive-card:focus-visible {
  outline: 3px solid rgba(229, 190, 62, .46);
  outline-offset: 3px;
}

.hero-drive-badge {
  position: absolute;
  top: -9px;
  left: 18px;
  min-height: 25px;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 999px;
  background: linear-gradient(135deg, #f5cd55, #dfad2f);
  box-shadow: 0 6px 13px rgba(59, 40, 4, .18);
  color: #173c20;
  font-size: .66rem;
  font-weight: 950;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.hero-drive-icon {
  width: 62px;
  height: 62px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .56);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 9px 19px rgba(3, 29, 12, .24);
  object-fit: contain;
}

.hero-drive-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-drive-copy strong {
  color: #fff;
  font-size: 1.03rem;
  font-weight: 950;
  line-height: 1.05;
}

.hero-drive-copy span {
  color: rgba(255, 255, 255, .76);
  font-size: .68rem;
  font-weight: 650;
  line-height: 1.35;
}

.hero-drive-action {
  min-width: 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hero-drive-action strong {
  color: #ffdd72;
  font-size: 1.12rem;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.hero-drive-action small {
  max-width: 92px;
  color: rgba(255, 255, 255, .74);
  font-size: .54rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.hero-drive-action em {
  min-height: 31px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 5px 12px rgba(3, 29, 12, .20);
  color: #0f4a28;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .63rem;
  font-style: normal;
  font-weight: 950;
}

.hero-more-services {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  order: 4;
}

.hero > .booking-journey {
  order: 5;
}

.hero-more-toggle {
  appearance: none;
  width: 100%;
  min-height: 59px;
  padding: 9px 12px 9px 14px;
  border: 1px solid rgba(22, 84, 44, .18);
  border-radius: 17px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 8px 22px rgba(8, 48, 24, .09), inset 0 1px 0 rgba(255, 255, 255, .86);
  color: #173c20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hero-more-toggle-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-more-toggle-copy strong {
  color: #123b21;
  font-size: .84rem;
  font-weight: 900;
}

.hero-more-toggle-copy small {
  color: #58705f;
  font-size: .64rem;
  font-weight: 650;
}

.hero-more-chevron {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #15582f, #0c3a1a);
  box-shadow: 0 5px 13px rgba(8, 48, 24, .19);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform .28s ease;
}

.hero-more-toggle[aria-expanded="true"] .hero-more-chevron {
  transform: rotate(180deg);
}

.hero-more-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-5px);
  transition: grid-template-rows .32s ease, opacity .24s ease, transform .32s ease;
}

.hero-more-services.is-open .hero-more-panel {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
}

.hero-more-panel-content {
  min-height: 0;
  overflow: hidden;
  display: grid;
  gap: 9px;
}

.hero-more-services.is-open .hero-more-panel-content {
  padding: 2px 0 8px;
}

.hero-more-panel-content > .go-assistant-entry,
.hero-more-panel-content > .travel-drawer {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.tariff-clarity-note {
  display: block;
  margin-top: 3px;
  color: #5f7465;
  font-size: .59rem;
  font-weight: 700;
  line-height: 1.2;
}

.tr .tp.variable-start-price {
  min-width: 53px;
  line-height: .9;
  text-align: center;
}

.tr .tp.variable-start-price .tariff-prefix {
  display: block;
  margin-bottom: 4px;
  font-size: .58rem;
  font-weight: 850;
  letter-spacing: .03em;
  line-height: 1;
  text-transform: uppercase;
}

/* Le formulaire Drive reste intact ; seule sa carte répétée est masquée. */
.tr.drive-card-featured-in-hero {
  display: none !important;
}

@media (max-width: 345px) {
  .hero-drive-card {
    min-height: 111px;
    padding-inline: 11px;
    grid-template-columns: 54px minmax(0, 1fr) 78px;
    gap: 8px;
  }

  .hero-drive-icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
  }

  .hero-drive-copy strong { font-size: .92rem; }
  .hero-drive-copy span { display: none; }
  .hero-drive-action { min-width: 76px; }
  .hero-drive-action strong { font-size: 1rem; }
  .hero-drive-action small { font-size: .49rem; }
  .hero-more-toggle-copy small { font-size: .58rem; }
}

/*
 * Raccord tablette / petit ordinateur.
 * Le tableau de bord passe en grille à 821 px : ces deux cartes doivent
 * immédiatement occuper toute la largeur, sans attendre le palier 900 px.
 */
@media (min-width: 821px) {
  .hero > .hero-drive-card,
  .hero > .hero-more-services {
    grid-column: 1 / -1;
    min-width: 0;
  }
}

@media (min-width: 900px) {
  .hero > .hero-drive-card,
  .hero > .hero-more-services {
    grid-column: 1 / -1;
  }

  .hero-drive-card {
    min-height: 108px;
    grid-template-columns: 72px minmax(0, 1fr) 170px;
    padding: 18px 22px 14px;
  }

  .hero-drive-icon {
    width: 66px;
    height: 66px;
  }

  .hero-drive-copy strong { font-size: 1.16rem; }
  .hero-drive-copy span { font-size: .74rem; }

  .hero-drive-action {
    min-width: 165px;
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 10px;
  }

  .hero-drive-action strong,
  .hero-drive-action small { grid-column: 1; }
  .hero-drive-action em { grid-column: 2; grid-row: 1 / span 2; }

  .hero-more-panel-content {
    grid-template-columns: minmax(0, 7fr) minmax(280px, 5fr);
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-drive-card,
  .hero-more-chevron,
  .hero-more-panel { transition: none; }
}
