@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');

:root {
  /* Couleurs principales */
  --color-primary: #283959;
  --color-secondary: #00A396;
  --color-highlight: #F08F29;
  --color-text: #222;
  --color-white: #fff;

  /* Typographie */
  --font-family: 'Quicksand', sans-serif;

  /* Header */
  --header-height: 106px;
  --header-bg: var(--color-primary);
  --header-phone-bg: var(--color-secondary);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: var(--color-text);
  font-family: var(--font-family);
  line-height: 1.5;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: var(--header-bg);
  z-index: 1000;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 2rem;
  max-width: 1440px;
  margin: 0 auto;
}

.header-logo img {
  height: 80px;
  width: auto;
}

.header-nav {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.header-nav .nav-link {
  color: var(--color-white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: opacity 0.2s;
  text-align: center;
}

.header-nav .nav-link:hover {
  opacity: 0.8;
}

.header-nav .nav-link.active {
  font-weight: 700;
}

.header-phone {
  display: flex;
  align-items: center;
  background-color: var(--header-phone-bg);
  border-radius: 50px;
  padding: 0.5rem 1.25rem 0.5rem 0.75rem;
  gap: 0.75rem;
}

.header-phone .phone-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-phone .phone-icon img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.header-phone .phone-info {
  display: flex;
  flex-direction: column;
}

.header-phone .phone-number {
  color: var(--color-white);
  font-size: 18px;
  font-weight: 600;
}

.header-phone .phone-hours {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
}

/* Header mobile elements - hidden by default */
.header-phone-mobile,
.header-burger {
  display: none;
}

.header-phone-mobile {
  display: none;
  align-items: center;
  background-color: var(--header-phone-bg);
  border-radius: 50px;
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  gap: 0.5rem;
  text-decoration: none;
}

.header-phone-mobile .phone-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-phone-mobile .phone-icon img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.header-phone-mobile .phone-info {
  display: flex;
  flex-direction: column;
}

.header-phone-mobile .phone-number {
  color: var(--color-white);
  font-size: 14px;
  font-weight: 600;
}

.header-phone-mobile .phone-hours {
  color: rgba(255, 255, 255, 0.8);
  font-size: 10px;
}

.header-burger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  gap: 5px;
}

.burger-line {
  display: block;
  width: 24px;
  height: 3px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-primary);
  z-index: 2000;
  flex-direction: column;
  padding: 1.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-close img {
  width: 32px;
  height: 32px;
}

.mobile-menu-close span {
  color: var(--color-white);
  font-size: 32px;
  line-height: 1;
}

.mobile-menu-nav {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  color: var(--color-white);
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu-link:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu-arrow {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.mobile-menu-contact {
  margin-top: 6rem;
  background-color: var(--color-secondary);
  border-radius: 20px;
  padding: 1rem 1.5rem;
  text-align: center;
  align-self: center;
}

.mobile-menu-contact-title {
  color: var(--color-white);
  font-size: 13px;
  font-weight: normal;
  margin-bottom: 0.25rem;
}

.mobile-menu-contact-info {
  color: var(--color-white);
  font-size: 12px;
  font-weight: 600;
}

/* Mobile breakpoint */
@media (max-width: 1024px) {
  :root {
    --header-height: 80px;
  }

  .header-nav,
  .header-phone {
    display: none;
  }

  .header-phone-mobile,
  .header-burger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .header-logo img {
    height: 60px;
  }
}

/* Main content - offset for fixed header */
main {
  margin-top: var(--header-height);
}

/* Hero */
.hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 394px;
  display: flex;
  justify-content: center;
  padding-top: 58px;
}

.hero-headline {
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.hero-headline .text-primary {
  color: var(--color-primary);
  font-size: 40px;
}

.hero-headline .text-highlight {
  color: var(--color-highlight);
  font-size: 50px;
}

/* Search Block */
.search-block {
  background-color: var(--color-secondary);
  border-radius: 35px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  max-width: 1328px;
  height: 252px;
  margin: -58px auto 0;
  padding: 2rem 3rem;
  position: relative;
  z-index: 10;
}

.search-title {
  color: var(--color-white);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

.search-form {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group-row {
  display: flex;
  flex: 1;
  gap: 1.5rem;
}

.form-group-locations {
  display: contents;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-white);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group label .label-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.form-group input {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: 14px;
  background-color: var(--color-white);
  color: var(--color-text);
}

.form-group input:focus {
  outline: 2px solid var(--color-primary);
}

.form-group input.input-error {
  outline: 2px solid #e53935;
  background-color: #ffebee;
}

.swap-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0 -0.5rem;
  margin-bottom: 0.25rem;
  align-self: flex-end;
}

.swap-btn img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  transition: transform 0.2s;
}

.swap-btn:hover img {
  transform: rotate(180deg);
}

.search-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-highlight);
  color: var(--color-white);
  border: none;
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.search-btn:hover {
  opacity: 0.9;
}

.search-btn .btn-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* Video Block */
.video-block {
  padding: 4rem 2rem;
  text-align: center;
}

.video-title {
  color: var(--color-primary);
  font-size: 25px;
  font-weight: 700;
  margin-bottom: 2rem;
}

.video-container {
  max-width: 1022px;
  margin: 0 auto;
}

.video-container video {
  width: 100%;
  max-width: 1022px;
  height: auto;
  border-radius: 8px;
}

/* Contact Block */
.contact-block {
  background-color: var(--color-primary);
  border-radius: 35px;
  max-width: 1328px;
  margin: 2rem auto;
  padding: 2.5rem 3rem;
  text-align: center;
}

.contact-title {
  color: var(--color-white);
  font-size: 25px;
  font-weight: 700;
  margin-bottom: 2.5rem;
}

.contact-phrases {
  margin-bottom: 2.5rem;
}

.contact-phrases p {
  color: var(--color-white);
  font-size: 16px;
  margin-bottom: 0.5rem;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-highlight);
  color: var(--color-white);
  text-decoration: none;
  border-radius: 50px;
  width: 408px;
  height: 43px;
  font-size: 16px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.contact-btn:hover {
  opacity: 0.9;
}

/* Partners Block */
.partners-block {
  padding: 2rem;
  text-align: center;
}

.partners-block img {
  max-width: 1168px;
  width: 100%;
  height: auto;
}

.partners-desktop {
  display: block;
  margin: 0 auto;
}

.partners-mobile {
  display: none;
  margin: 0 auto;
}

@media (max-width: 480px) {
  .partners-desktop {
    display: none;
  }

  .partners-mobile {
    display: block;
    max-width: 344px;
  }
}

/* Pages */
.page-solutions {
  padding: 3rem 2rem;
}

.page-title {
  font-size: 30px;
  color: var(--color-text);
  text-align: center;
  font-weight: 700;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

/* Solutions Grid */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.solution-card {
  width: 403px;
  max-width: 100%;
  aspect-ratio: 403 / 362;
  background-color: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
}

.solution-front {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  transition: opacity 0.3s;
}

.solution-header {
  height: 107px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: var(--color-white);
}

.solution-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
}

.solution-image-container {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.solution-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.solution-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.solution-toggle img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.solution-back {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-white);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.solution-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.solution-close img {
  width: 24px;
  height: 24px;
  filter: invert(48%) sepia(79%) saturate(438%) hue-rotate(131deg) brightness(95%) contrast(101%);
}

.solution-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem;
}

.solution-card.open .solution-front {
  opacity: 0;
  pointer-events: none;
}

.solution-card.open .solution-back {
  opacity: 1;
  pointer-events: auto;
}

.solution-text {
  font-size: 20px;
  color: var(--color-primary);
  line-height: 1.6;
  text-align: center;
  max-width: 339px;
}

.solutions-cta {
  text-align: center;
  margin-top: 3rem;
}

.solutions-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-highlight);
  color: var(--color-white);
  text-decoration: none;
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-size: 16px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.solutions-btn:hover {
  opacity: 0.9;
}

.solutions-btn .btn-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* Page Conducteur Solidaire */
.conducteur-hero {
  height: 380px;
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  border-radius: 0 0 35px 35px;
}

.page-conducteur {
  padding: 3rem 2rem;
  max-width: 1600px;
  margin: 0 auto;
}

.conducteur-content {
  display: flex;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.conducteur-image {
  flex-shrink: 0;
  width: 408px;
}

.conducteur-image img {
  width: 100%;
  height: auto;
}

.conducteur-text {
  flex: 1;
}

.conducteur-text ul {
  list-style-position: inside;
  padding-left: 4px;
}

/* Etapes */
.conducteur-etapes-section {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  align-items: center;
}

.conducteur-etapes {
  flex: 1;
}

.etapes-title {
  font-size: 25px;
  font-weight: 700;
  color: var(--color-secondary);
  text-align: left;
  margin-bottom: 2rem;
  margin-left: 100px;
}

.etapes-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 900px;
  margin: 0 100px;
  position: relative;
}

.etape-block {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background-color: var(--color-primary);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.etape-block:last-child {
  margin-bottom: 0;
}

.etape-icon {
  flex-shrink: 0;
  width: 60px;
}

.etape-icon img {
  width: 100%;
  height: auto;
}

.etape-content {
  flex: 1;
}

.etape-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0;
}

.etape-text {
  font-size: 16px;
  color: var(--color-white);
  line-height: 1.6;
}

.etape-arrow {
  position: absolute;
  bottom: -50px;
  z-index: 10;
}

.etape-arrow img {
  width: 80px;
  height: auto;
}

.etape-arrow-right {
  right: -80px;
}

.etape-arrow-left {
  left: -80px;
}

/* Plus d'infos */
.plus-infos {
  width: 100%;
  max-width: 475px;
  flex-shrink: 0;
  background-color: #F2E5DD;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.plus-infos-title {
  font-size: 25px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.plus-infos-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.plus-infos-button {
  display: inline-block;
  background-color: var(--color-highlight);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 1.5rem;
  transition: opacity 0.2s;
}

.plus-infos-button:hover {
  opacity: 0.9;
}

.plus-infos-download {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  transition: opacity 0.2s;
}

.plus-infos-download:hover {
  opacity: 0.8;
}

.plus-infos-download img {
  width: 42px;
  height: 42px;
}

.plus-infos-download span {
  text-decoration: underline;
}

/* Conducteur Video */
.conducteur-video {
  margin-top: 3rem;
  text-align: center;
}

.conducteur-video-title {
  font-size: 25px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.conducteur-video-container {
  max-width: 1063px;
  margin: 0 auto;
}

.conducteur-video-container video {
  width: 100%;
  max-height: 520px;
  border-radius: 20px;
}

/* Page Engagez votre entreprise */
.entreprise-hero {
  height: 380px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0 0 35px 35px;
}

.page-entreprise {
  padding: 3rem 2rem;
  max-width: 1600px;
  margin: 0 auto;
}

.entreprise-avantages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.avantage-block {
  text-align: center;
}

.avantage-icon {
  margin-bottom: 1rem;
}

.avantage-icon img {
  width: 80px;
  height: auto;
}

.avantage-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.avantage-text {
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.5;
}

.entreprise-subtitle {
  font-size: 25px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-top: 6rem;
  margin-bottom: 3rem;
  text-align: center;
}

.entreprise-engagements {
  display: flex;
  gap: 8rem;
  justify-content: center;
  align-items: flex-start;
}

.engagements-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 475px;
}

.engagements-column:nth-child(2) {
  margin-top: 150px;
}

.engagement-block {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background-color: var(--color-primary);
  border-radius: 20px;
  padding: 1.5rem;
  max-width: 475px;
}

.engagement-icon {
  flex-shrink: 0;
  width: 80px;
}

.engagement-icon img {
  width: 100%;
  height: auto;
}

.engagement-content {
  flex: 1;
}

.engagement-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.engagement-text {
  font-size: 16px;
  color: var(--color-white);
  line-height: 1.5;
}

.engagement-text ul {
  list-style-position: inside;
  padding-left: 4px;
  margin: 0;
}

.engagement-text li {
  margin-bottom: 0.25rem;
}

/* Entreprise Video */
.entreprise-video {
  margin-top: 3rem;
}

.entreprise-video-container {
  max-width: 1063px;
  margin: 0 auto;
}

.entreprise-video-container video {
  width: 100%;
  max-height: 520px;
  border-radius: 20px;
}

/* Page Qui sommes-nous */
.quisommesnous-hero {
  height: 380px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0 0 35px 35px;
}

.page-quisommesnous {
  padding: 3rem 2rem;
  max-width: 1600px;
  margin: 0 auto;
}

.quisommesnous-content {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.quisommesnous-text {
  max-width: 600px;
  flex: 1;
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text);
}

.quisommesnous-text p {
  margin-bottom: 1.5rem;
}

.quisommesnous-text p:last-child {
  margin-bottom: 0;
}

.quisommesnous-text ul {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.quisommesnous-text li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.quisommesnous-text li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background-color: var(--color-secondary);
  border-radius: 50%;
}

.quisommesnous-image {
  flex: 1;
  padding: 100px;
}

.quisommesnous-image img {
  width: 100%;
  height: auto;
}

.quisommesnous-savoirplus {
  background-color: #F2E5DD;
  border-radius: 0 0 35px 35px;
  padding: 2.5rem 3rem;
  margin-top: 3rem;
  margin-bottom: 8rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.savoirplus-title {
  font-size: 25px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.savoirplus-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.savoirplus-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.savoirplus-arrow {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.savoirplus-link {
  color: var(--color-text);
  font-size: 18px;
  font-weight: 600;
  text-decoration: underline;
  transition: opacity 0.2s;
}

.savoirplus-link:hover {
  opacity: 0.8;
}

/* Page Default */
.page-default {
  padding: 3rem 2rem;
  max-width: 1600px;
  margin: 0 auto;
  margin-top: var(--header-height);
}

.page-content {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text);
  max-width: 900px;
  margin: auto;
}

.page-content p {
  margin-bottom: 1.5rem;
}

.page-content p:last-child {
  margin-bottom: 0;
}

.page-content ul {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.page-content li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.page-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background-color: var(--color-secondary);
  border-radius: 50%;
}

.page-content a {
  color: var(--color-secondary);
  text-decoration: underline;
}

.page-content a:hover {
  opacity: 0.8;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 2rem auto 0;
}

.contact-form-row {
  display: flex;
  gap: 1rem;
}

.contact-form-group {
  flex: 1;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.contact-form label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.25rem;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  font-size: 16px;
  font-family: var(--font-family);
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: var(--color-white);
  color: var(--color-text);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #999;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form-submit {
  display: block;
  margin: 0 auto;
  padding: 1rem 2rem;
  font-size: 18px;
  font-weight: 600;
  font-family: var(--font-family);
  background-color: var(--color-highlight);
  color: var(--color-white);
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.contact-form-submit:hover {
  opacity: 0.9;
}

.contact-form-privacy {
  font-size: 12px;
  color: var(--color-text);
  text-align: center;
  margin-top: 1rem;
  line-height: 1.5;
}

/* Messages de formulaire */
.contact-form-message {
  padding: 1rem 1.5rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
}

.contact-form-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.contact-form-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.contact-form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.contact-form input:disabled,
.contact-form textarea:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

[x-cloak] {
  display: none !important;
}

/* Multicheckboxes */
.contact-form-checkboxes {
  text-align: left;
}

.contact-form-checkbox-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.contact-form-checkbox-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
}

.contact-form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--color-secondary);
  cursor: pointer;
}

@media (max-width: 1300px) {
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
  }
}

@media (max-width: 860px) {
  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .solution-card {
    width: calc(100% - 2rem);
    margin: 0 1rem;
  }

  .quisommesnous-content {
    flex-direction: column-reverse;
  }

  .quisommesnous-image {
    width: calc(100% - 2rem);
    max-width: none;
    margin: 0 1rem;
  }
}

/* Footer */
footer {
  margin-top: 2rem;
}

/* Footer Contact Block */
.footer-contact-block {
  background-color: var(--color-primary);
  border-radius: 35px;
  max-width: 1328px;
  margin: 0 auto 2rem;
  padding: 2.5rem 3rem;
  text-align: center;
}

.footer-contact-title {
  color: var(--color-white);
  font-size: 25px;
  font-weight: 700;
  margin-bottom: 2.5rem;
}

.footer-contact-phrases {
  margin-bottom: 2.5rem;
}

.footer-contact-phrases p {
  color: var(--color-white);
  font-size: 16px;
  margin-bottom: 0.5rem;
}

/* Footer Partners Block */
.footer-partners-block {
  padding: 2rem;
  text-align: center;
}

.footer-partners-block img {
  max-width: 1168px;
  width: 100%;
  height: auto;
}

.footer-partners-block .partners-desktop {
  display: block;
  margin: 0 auto;
}

.footer-partners-block .partners-mobile {
  display: none;
  margin: 0 auto;
}

@media (max-width: 480px) {
  .footer-partners-block .partners-desktop {
    display: none;
  }

  .footer-partners-block .partners-mobile {
    display: block;
    max-width: 344px;
  }
}

/* Footer Main */
.footer-main {
  height: 152px;
}

.footer-container {
  display: flex;
  height: 152px;
}

.footer-left,
.footer-center {
  background-color: var(--color-primary);
}

.footer-right {
  background-color: var(--color-secondary);
}

.footer-left {
  flex: 0 0 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.footer-logo img {
  height: 80px;
  width: auto;
}

.footer-logo-horizontal {
  display: none;
}

.footer-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
}

.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

.footer-nav a {
  color: var(--color-white);
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.2s;
}

.footer-nav a:hover {
  opacity: 0.8;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social .social-link img {
  height: 24px;
  width: auto;
  transition: opacity 0.2s;
}

.footer-social .social-link:hover img {
  opacity: 0.8;
}

.footer-right {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 1.5rem;
  position: relative;
}

.footer-cta {
  text-align: center;
}

.footer-cta-title {
  color: var(--color-white);
  font-size: 13px;
  font-weight: normal;
  margin-bottom: 0.25rem;
}

.footer-cta-contact {
  color: var(--color-white);
  font-size: 12px;
  font-weight: 600;
}

.footer-copyright {
  color: var(--color-white);
  font-size: 10px;
  text-align: right;
  position: absolute;
  bottom: 0.5rem;
  right: 1rem;
}

.footer-copyright-mobile {
  display: none;
}

a {
  color: #00e;
  text-decoration: none;
}

/* Page Footer Section (réutilisable) */
.page-footer-section {
  margin-top: 4rem;
  text-align: center;
}

.page-footer-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.page-footer-content {
  max-width: 700px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.6;
}

/* ===========================================
   RESPONSIVE STYLES
   =========================================== */

/* Tablet - 1024px */
@media (max-width: 1024px) {
  /* Hero */
  .hero {
    height: 300px;
    padding-top: 40px;
  }

  .hero-headline .text-primary {
    font-size: 30px;
  }

  .hero-headline .text-highlight {
    font-size: 38px;
  }

  /* Search Block */
  .search-block {
    height: auto;
    margin: -40px 1rem 0;
    padding: 1.5rem;
    border-radius: 20px;
  }

  .search-title {
    font-size: 20px;
    margin-bottom: 1rem;
  }

  .search-form {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .form-group-locations {
    display: flex;
    flex-direction: column;
    position: relative;
    gap: 0.5rem;
  }

  .form-group-locations .swap-btn {
    position: absolute;
    right: 0.75rem;
    top: calc(50% + 0.75rem);
    transform: translateY(-50%) rotate(90deg);
    margin: 0;
    z-index: 5;
  }

  .form-group-row {
    display: flex;
    gap: 1rem;
  }

  .search-btn {
    width: 100%;
    justify-content: center;
  }

  /* Page content */
  .page-solutions,
  .page-conducteur,
  .page-entreprise,
  .page-quisommesnous,
  .page-default {
    padding: 2rem 1rem;
  }

  .page-title {
    font-size: 24px;
    margin-bottom: 2rem;
  }

  /* Hero sections for inner pages */
  .conducteur-hero,
  .entreprise-hero,
  .quisommesnous-hero {
    height: 250px;
  }

  /* Conducteur content */
  .conducteur-content {
    flex-direction: column;
  }

  .conducteur-image {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Etapes section */
  .conducteur-etapes-section {
    flex-direction: column;
  }

  .conducteur-etapes {
    max-width: 100%;
  }

  .etapes-title {
    margin-left: 0;
    text-align: center;
  }

  .etapes-list {
    margin: 0 2rem;
  }

  .etape-arrow-right {
    right: -35px;
  }

  .etape-arrow-left {
    left: -35px;
  }

  .etape-arrow img {
    width: 50px;
  }

  .etape-block {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .plus-infos {
    position: static;
    width: 100%;
    max-width: 400px;
    margin: 2rem auto 0;
  }

  /* Entreprise */
  .entreprise-avantages {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .avantage-block {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .entreprise-engagements {
    flex-direction: column;
    gap: 1.5rem;
  }

  .engagements-column {
    width: 100%;
    margin-top: 0 !important;
  }

  .engagement-block {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Qui sommes nous */
  .quisommesnous-content {
    flex-direction: column-reverse;
    gap: 2rem;
  }

  .quisommesnous-text {
    max-width: 100%;
  }

  .quisommesnous-image {
    width: calc(100% - 2rem);
    max-width: none;
    margin: 0 1rem;
    padding: 0;
  }

  .quisommesnous-savoirplus {
    max-width: 100%;
  }

  /* Video sections */
  .conducteur-video-container,
  .video-container {
    max-width: 100%;
  }

  /* Contact form */
  .contact-form {
    max-width: 100%;
    padding: 0 1rem;
  }

  .contact-form-row {
    flex-direction: column;
    gap: 0;
  }

  /* Footer */
  .footer-contact-block {
    margin: 0 1rem 2rem;
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }

  .footer-contact-title {
    font-size: 20px;
  }

  .footer-container {
    flex-direction: column;
    height: auto;
  }

  .footer-left {
    flex: none;
    width: 100%;
    padding: 0.5rem 1.5rem;
    order: 2;
    display: flex;
    justify-content: center;
  }

  .footer-logo-vertical {
    display: none;
  }

  .footer-logo-horizontal {
    display: block;
    width: 100%;
    max-width: 350px;
    height: auto;
  }

  .footer-center {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    text-align: center;
    order: 3;
  }

  .footer-nav {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-right {
    flex: none;
    width: 100%;
    padding: 1.5rem;
    order: 1;
  }

  .footer-right .footer-copyright {
    display: none;
  }

  .footer-copyright-mobile {
    display: block;
    position: static;
    text-align: center;
    margin-top: 1rem;
  }

  /* Page footer section */
  .page-footer-section {
    margin-top: 2rem;
  }

  .page-footer-title {
    font-size: 24px;
    padding: 0 1rem;
  }

  .page-footer-content {
    padding: 0 1rem;
  }
}

/* Mobile - 600px */
@media (max-width: 600px) {
  /* Hero */
  .hero {
    height: 220px;
    padding-top: 30px;
  }

  .hero-headline .text-primary {
    font-size: 22px;
  }

  .hero-headline .text-highlight {
    font-size: 28px;
  }

  /* Search Block */
  .search-block {
    margin: -30px 0.75rem 0;
    padding: 1rem;
    border-radius: 15px;
  }

  .search-title {
    font-size: 16px;
  }

  /* Video block */
  .video-block {
    padding: 2rem 1rem;
  }

  .video-title {
    font-size: 20px;
  }

  /* Contact block */
  .contact-block {
    margin: 1rem 0.75rem;
    padding: 1.5rem 1rem;
    border-radius: 20px;
  }

  .contact-title {
    font-size: 20px;
    margin-bottom: 1.5rem;
  }

  .contact-btn {
    width: 100%;
    max-width: 300px;
  }

  /* Inner page heroes */
  .conducteur-hero,
  .entreprise-hero,
  .quisommesnous-hero {
    height: 180px;
    border-radius: 0 0 20px 20px;
  }

  /* Page title */
  .page-title {
    font-size: 20px;
  }

  /* Etapes */
  .etapes-title {
    font-size: 20px;
    margin-left: 0;
  }

  .etape-block {
    padding: 1rem;
  }

  .etape-title {
    font-size: 16px;
  }

  .etape-text {
    font-size: 14px;
  }

  /* Plus infos */
  .plus-infos {
    padding: 1.5rem;
  }

  .plus-infos-title {
    font-size: 20px;
  }

  .plus-infos-text {
    font-size: 16px;
  }

  /* Avantages */
  .avantage-block {
    padding: 1rem;
  }

  .avantage-title {
    font-size: 16px;
  }

  .avantage-text {
    font-size: 14px;
  }

  /* Engagements */
  .engagement-block {
    padding: 1rem;
  }

  .engagement-number {
    font-size: 60px;
  }

  .engagement-title {
    font-size: 16px;
  }

  .engagement-text {
    font-size: 14px;
  }

  /* Qui sommes nous */
  .quisommesnous-text {
    font-size: 16px;
  }

  .savoirplus-link {
    font-size: 14px;
  }

  /* Footer */
  .footer-contact-block {
    margin: 0 0.75rem 1.5rem;
    padding: 1.5rem 1rem;
  }

  .footer-contact-title {
    font-size: 18px;
    margin-bottom: 1.5rem;
  }

  .footer-contact-phrases p {
    font-size: 14px;
  }

  .footer-logo img {
    height: 60px;
  }

  .footer-nav a {
    font-size: 12px;
  }

  /* Page footer */
  .page-footer-title {
    font-size: 20px;
  }

  .page-footer-content {
    font-size: 16px;
  }
}

/* Autocomplete */
.autocomplete-container {
  position: relative;
}

.autocomplete-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-white);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  list-style: none;
  margin-top: 4px;
}

.autocomplete-results li {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 14px;
  color: var(--color-text);
  border-bottom: 1px solid #eee;
}

.autocomplete-results li:last-child {
  border-bottom: none;
}

.autocomplete-results li:hover {
  background-color: #f5f5f5;
}

[x-cloak] {
  display: none !important;
}

/* Page Recherche */
.page-recherche {
  padding: 2rem;
}

.page-recherche .search-block {
  margin-top: 0;
  padding-top: 1rem;
  padding-bottom: 1rem;
  height: auto;
}

/* Search Results */
.search-results-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1328px;
  margin: 2rem auto 0;
  padding: 0 2rem;
  align-items: start;
}

.search-results-accordions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.result-accordion {
  background-color: var(--color-secondary);
  border-radius: 15px;
  overflow: hidden;
}

.accordion-header {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-family);
}

.accordion-title {
  flex: 1;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-white);
}

.accordion-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 0.5rem;
  background-color: var(--color-highlight);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 700;
  border-radius: 14px;
  margin-right: 0.75rem;
}

.accordion-arrow {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
  transform: rotate(180deg);
}

.accordion-arrow.open {
  transform: rotate(0deg);
}

.accordion-content {
  background-color: var(--color-white);
}

.accordion-inner {
  padding: 1rem 1.25rem;
}

.no-result-text {
  color: var(--color-text);
  font-size: 14px;
  font-style: italic;
  margin: 0;
  text-align: center;
}

.accordion-cta {
  text-align: center;
  margin: 1.5rem 1.5rem 0 1.5rem;
}

.accordion-cta p {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin: 0 0 0.5rem 0;
}

.accordion-cta-phone {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  color: #000;
  text-decoration: none;
}

.accordion-cta-phone:hover {
  text-decoration: underline;
}

/* Transport solidaire result */
.solidarity-result {
  text-align: center;
}

.solidarity-result p {
  margin: 0;
  font-size: 16px;
  color: var(--color-text);
}

.solidarity-result .solidarity-count {
  font-size: 24px;
  font-weight: 700;
  color: #000;
  margin: 0.5rem 0;
}

/* Local Solutions */
.local-solutions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.local-solution-item {
  background-color: #f9fafb;
  border-radius: 10px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.local-solution-item:hover {
  background-color: #f3f4f6;
}

.local-solution-item.active {
  border-color: var(--color-highlight);
  background-color: #fef3e6;
}

.local-solution-title {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  margin: 0 0 0.5rem 0;
}

.local-solution-description {
  font-size: 14px;
  color: var(--color-text);
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
}

.local-solution-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-highlight);
  text-decoration: underline;
}

.local-solution-link:hover {
  opacity: 0.8;
}

.local-solutions-text {
  font-size: 15px;
  color: var(--color-text);
  text-align: center;
  margin: 1.5rem 0 0 0;
  line-height: 1.5;
}

/* Search Results Map */
.search-results-map {
  min-height: 400px;
  max-height: 600px;
  height: 600px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.search-results-map #map {
  width: 100%;
  height: 100%;
}

.carpool-route-info {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10;
}

/* Map Markers */
.map-marker {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 2px solid var(--color-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.map-marker:hover {
  transform: scale(1.1);
}

.map-marker-departure {
  background-color: var(--color-secondary);
}

.map-marker-arrival {
  background-color: var(--color-highlight);
}

/* MapLibre Popup Styling */
.maplibregl-popup-content {
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-family: var(--font-family);
  font-size: 14px;
}

.maplibregl-popup-close-button {
  font-size: 18px;
  padding: 4px 8px;
  color: #666;
}

.maplibregl-popup-close-button:hover {
  color: var(--color-text);
  background: transparent;
}

/* Transit Journeys */
.transit-journeys {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.transit-journey {
  background-color: #f9fafb;
  border-radius: 10px;
  padding: 1rem;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
  border: 2px solid transparent;
}

.transit-journey:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.transit-journey.active {
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(40, 57, 89, 0.2);
}

.journey-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.journey-date {
  font-size: 14px;
  color: var(--color-text);
  text-transform: capitalize;
}

.journey-times {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.journey-time {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
}

.journey-arrow {
  width: 18px;
  height: 18px;
}

.journey-duration {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-white);
  background-color: var(--color-secondary);
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
}

.journey-separator {
  height: 1px;
  background-color: #e5e7eb;
  margin: 0.75rem 0;
}

.journey-legs {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.journey-leg {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  position: relative;
  padding-bottom: 0.75rem;
}

.journey-leg:last-child {
  padding-bottom: 0;
}

/* Ligne de connexion verticale entre les icônes */
.journey-leg:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 18px;
  top: 36px;
  bottom: 0;
  width: 2px;
  background-color: var(--color-secondary);
  transform: translateX(-50%);
}

.leg-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  position: relative;
  z-index: 1;
}

.leg-icon img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.leg-icon svg {
  color: white;
}

.leg-details {
  flex: 1;
  min-width: 0;
}

.leg-line {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.leg-line strong {
  color: var(--color-primary);
}

.leg-text {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 0.125rem;
}

.leg-text strong {
  color: var(--color-text);
  font-weight: 500;
}

.leg-duration {
  font-size: 12px;
  color: #9ca3af;
}

.leg-operator {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
}

.leg-direction {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0.25rem 0 0.5rem;
}

.leg-timeline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-top: 0.5rem;
  position: relative;
  padding-left: 10px;
}

.leg-stop {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.leg-stop-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.leg-stop-departure .leg-stop-dot {
  background-color: #79C970;
}

.leg-stop-arrival .leg-stop-dot {
  background-color: #F70004;
}

.leg-stop-time {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text);
  min-width: 40px;
}

.leg-stop-name {
  font-size: 12px;
  color: var(--color-text);
}

.leg-timeline-arrow {
  width: 14px;
  height: 14px;
  margin-left: -2px;
  transform: rotate(90deg);
}

/* Carpool List */
.carpool-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.carpool-item {
  background-color: #f9fafb;
  border-radius: 10px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.carpool-item:hover {
  background-color: #f3f4f6;
}

.carpool-item.active {
  border-color: var(--color-secondary);
  background-color: #e6f7f6;
}

.carpool-preview {
  margin-bottom: 0.75rem;
}

.carpool-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.carpool-driver {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
}

.carpool-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
}

.carpool-date {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.carpool-route {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.carpool-place {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
  color: var(--color-text);
  margin: 0;
}

.carpool-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.carpool-dot-departure {
  background-color: var(--color-secondary);
}

.carpool-dot-arrival {
  background-color: var(--color-highlight);
}

.carpool-link-container {
  text-align: center;
  margin-top: 1rem;
}

.carpool-operator-link {
  color: var(--color-highlight);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  transition: opacity 0.2s;
}

.carpool-operator-link:hover {
  opacity: 0.8;
}

/* Mobile map container - hidden by default on desktop */
.mobile-map-container {
  display: none;
}

.mobile-map-container #mobile-map {
  width: 100%;
  height: 100%;
}

/* Compact search summary - hidden by default on desktop */
.compact-search-summary {
  display: none;
}

/* Responsive */
@media (max-width: 1024px) {
  /* Hide search form on mobile when search was performed */
  .hide-on-mobile-searched {
    display: none;
  }

  /* Page recherche with results - no padding */
  .page-recherche.has-results {
    padding: 0;
  }

  /* Mobile map - full width, no margin, after header */
  .mobile-map-container {
    display: block;
    width: 100%;
    height: 500px;
    margin: 0;
    position: relative;
  }

  .mobile-map-container #mobile-map {
    width: 100%;
    height: 100%;
  }

  /* Hide desktop map on mobile */
  .search-results-map {
    display: none;
  }

  /* Compact search summary */
  .compact-search-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-secondary);
    padding: 1rem 1.25rem;
    margin-top: -1.5rem;
    border-radius: 20px 20px 0 0;
    position: relative;
    z-index: 10;
  }

  .compact-search-content {
    flex: 1;
    text-decoration: none;
    color: #fff;
  }

  .compact-search-route {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 0.25rem;
  }

  .compact-search-place {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    font-weight: 700;
  }

  .compact-search-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
  }

  .compact-search-date {
    font-size: 12px;
    opacity: 0.9;
  }

  .compact-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 1rem;
  }

  .compact-search-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
  }

  /* Search results container adjustments */
  .search-results-container {
    grid-template-columns: 1fr;
    padding: 0 1rem;
    margin-top: 0;
  }

  .search-results-accordions {
    padding-top: 1rem;
  }
}

@media (max-width: 600px) {
  .search-results-container {
    gap: 1rem;
    padding: 0 0.75rem;
  }

  .accordion-header {
    padding: 0.875rem 1rem;
  }

  .accordion-title {
    font-size: 14px;
  }

  .accordion-badge {
    min-width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .compact-search-summary {
    padding: 0.875rem 1rem;
  }

  .compact-search-route {
    font-size: 12px;
  }

  .compact-search-place {
    max-width: 100px;
  }

  .compact-search-date {
    font-size: 12px;
  }

  .mobile-map-container {
    height: 400px;
  }
}
