:root {
  --color-primary: #ff3c00;
  --color-primary-dark: #e13800;
  --color-black: #000;
  --color-white: #fff;
  --color-grey-light: #f5f5f5;
  --color-grey-dark: #555;
  --color-divider: #ddd;
  --font-family: "Montserrat", sans-serif;
  --font-size-base: 14px;
  --font-size-heading: 48px;
  --font-size-subheading: 20px;
  --header-height: 80px;
  --border-radius-round: 50px;
  --transition-speed: 0.3s;
  --shadow-light: 0 2px 5px rgba(0, 0, 0, 0.1);
  --shadow-strong: 0 2px 10px rgba(0, 0, 0, 0.1);
  --color-bg-body: #f8f9fa;
}

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

body {
  font-family: var(--font-family);
  background: var(--color-white);
  padding-top: var(--header-height);
}

/* ════════════════════════════════════════
   HEADER PUBLIC
   Un filet net remplace l'ombre floutee : celle-ci bavait sur le contenu et
   datait la barre. Le blanc est tenu par la bordure, pas par le flou.
════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--color-white);
  border-bottom: 1px solid #ebedf0;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 0 28px;
  z-index: 1000;
}

.logo img {
  height: 45px;
  display: block;
}

/* ---------- Barre de recherche ----------
   .search-bar ne porte plus que la largeur. Elle etait aussi posee sur le
   <form> qu'elle contient : le fond gris se dessinait deux fois, l'un dans
   l'autre, et le bouton orange flottait dans une gouttiere plate.

   La capsule est desormais blanche sur bordure, comme un champ : elle se
   detache du header au lieu de s'y fondre, et reagit au survol comme au
   focus — l'ancienne barre ne donnait aucun retour. */
.search-bar {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  max-width: 780px;
}

.search-form {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 5px 5px 5px 6px;
  background: var(--color-white);
  border: 1px solid #e4e7ea;
  border-radius: var(--border-radius-round);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.search-form:hover {
  border-color: #d3d8dd;
  box-shadow: 0 4px 14px rgba(16, 24, 40, .07);
}

/* Le focus se voit sur toute la capsule, pas seulement sur le champ actif :
   c'est la barre entiere qui devient active. */
.search-form:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 60, 0, .1);
}

/* Chaque segment s'eclaire au survol : on voit ou l'on va cliquer */
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  padding: 9px 16px;
  border-radius: var(--border-radius-round);
  transition: background .18s ease;
}

.search-form .search-field:hover {
  background: #f6f7f8;
}

/* Le champ libre est le plus utilise : il prend plus de large que les deux
   filtres qui le suivent. */
.search-form .search-field:first-child { flex: 1.6; }

.search-field i {
  flex-shrink: 0;
  width: 15px;
  margin-right: 0;
  color: #9aa1a8;
  font-size: 14px;
  text-align: center;
  transition: color .18s ease;
}

.search-form .search-field:focus-within i {
  color: var(--color-primary);
}

/* padding/border/display sont remis a plat : .search-input et .location-input,
   definis plus bas pour les filtres de page, retombaient sur ces champs et y
   injectaient une bordure et 12px de padding. */
.search-form input,
.search-form select {
  display: block;
  border: none;
  border-radius: 0;
  background: none;
  outline: none;
  padding: 0;
  color: #1f2328;
  font-family: inherit;
  font-size: var(--font-size-base);
  font-weight: 500;
  width: 100%;
  min-width: 0;
  text-overflow: ellipsis;
}

.search-form input::placeholder {
  color: #9aa1a8;
  font-weight: 400;
}

/* Le select portait le chevron natif du systeme : il jurait avec le reste.
   Celui-ci est dessine, aligne sur la couleur des icones. */
.search-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 20px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath fill='none' stroke='%239aa1a8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 5 5.5 9 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
}

.divider {
  flex-shrink: 0;
  width: 1px;
  height: 22px;
  background: #e8eaed;
  margin: 0 2px;
}

.search-form .search-btn {
  flex-shrink: 0;
  height: 42px;
  margin-left: 6px;
  padding: 0 24px;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(255, 60, 0, .22);
}

.search-form .search-btn:hover {
  box-shadow: 0 4px 12px rgba(255, 60, 0, .28);
}

.search-btn,
.btn-buy {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--border-radius-round);
  padding: 8px 20px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-speed);
}

.search-btn:hover {
  background: var(--color-primary-dark);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Meme grammaire que la capsule de recherche et que la pilule du compte :
   blanc sur filet, pas une pastille grise. */
.icon-btn {
  background: var(--color-white);
  border: 1px solid #e4e7ea;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.icon-btn i {
  font-size: 17px;
  color: #3f4650;
  transition: color .2s ease;
}

.icon-btn:hover {
  background: #f6f7f8;
  border-color: #d3d8dd;
}

.icon-btn:hover i {
  color: var(--color-primary);
}

.profile-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

/* ==========================================================================
   SIDEBAR (menu lateral)
   Tout est porte par .sidebar : .close-btn et .social-icons sont redefinis
   plus bas dans le fichier (modale et footer) et gagneraient sinon.
   ========================================================================== */
.sidebar {
  position: fixed;
  right: -380px;
  top: 0;
  width: 320px;
  max-width: 88vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #141414;
  color: #fff;
  transition: right 0.4s ease;
  z-index: 9999;
}

.sidebar.active {
  right: 0;
}

/* ---- En-tete : marque + fermeture ---- */
.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding: 18px 22px;
  border-bottom: 1px solid #262626;
}

/* Le logo de l'en-tete, en version fond sombre */
.sidebar-wordmark {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.sidebar-wordmark-icon {
  display: block;
  height: 32px;
  width: auto;
  max-width: 100%;
}

.sidebar .close-btn {
  position: static;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #2E2E2E;
  background: #1C1C1C;
  color: #D0D0D0;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.sidebar .close-btn:hover {
  background: var(--color-primary, #FF4D1C);
  border-color: var(--color-primary, #FF4D1C);
  color: #fff;
}

/* ---- Corps defilant ---- */
.sidebar-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sidebar .menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar .menu-item {
  margin: 0;
  font-size: 15px;
  border-bottom: 1px solid #262626;
}

.sidebar .menu-item > a {
  display: block;
  padding: 16px 22px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}

.sidebar .menu-item > a:hover {
  color: var(--color-primary, #FF4D1C);
  background: #1C1C1C;
}

/* ---- Groupe repliable "Nos N services" ---- */
.menu-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: color .2s ease;
}

.menu-group-toggle:hover {
  color: var(--color-primary, #FF4D1C);
}

.menu-group-toggle i {
  flex-shrink: 0;
  font-size: 12px;
  color: #8A8A8A;
  transition: transform .25s ease;
}

.menu-group.is-open .menu-group-toggle i {
  transform: rotate(180deg);
}

.menu-sublist {
  list-style: none;
  margin: 0 0 0 24px;
  padding: 0;
  border-left: 1px solid #2E2E2E;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.menu-group.is-open .menu-sublist {
  max-height: 720px;
}

.menu-sublist li {
  position: relative;
  margin: 0;
}

.menu-sublist li a {
  display: block;
  padding: 11px 22px 11px 18px;
  font-size: 14px;
  color: #C4C4C4;
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}

.menu-sublist li a:hover {
  color: var(--color-primary, #FF4D1C);
  background: #1C1C1C;
}

.menu-sublist li a.is-active {
  color: var(--color-primary, #FF4D1C);
}

/* Marqueur orange pose sur le filet vertical */
.menu-sublist li a.is-active::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--color-primary, #FF4D1C);
}

.menu-sublist li:last-child a {
  padding-bottom: 16px;
}

/* Service annoncé mais pas encore ouvert (Formation), menu et pied de page */
.soon-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 50px;
  background: rgba(255, 77, 28, .14);
  color: var(--color-primary, #FF4D1C);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  vertical-align: 1px;
}

/* ---- Appel a l'action ---- */
.sidebar-cta {
  padding: 22px;
  text-align: center;
  border-bottom: 1px solid #262626;
}

.sidebar-cta-btn {
  display: block;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--color-primary, #FF4D1C);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background .2s ease;
}

.sidebar-cta-btn:hover {
  background: #E03F14;
  color: #fff;
}

.sidebar-cta-note {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: #8A8A8A;
}

/* ---- Pied ---- */
.sidebar .sidebar-footer {
  margin: 0;
  padding: 22px;
  border-top: 0;
}

.sidebar .sidebar-footer h3 {
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7A7A7A;
}

.sidebar .sidebar-footer p {
  margin-bottom: 16px;
  font-size: 13px;
}

.sidebar .sidebar-footer p a {
  color: var(--color-primary, #FF4D1C);
  text-decoration: none;
}

.sidebar .social-icons {
  display: flex;
  gap: 10px;
  margin-top: 0;
}

.sidebar .social-icons a {
  width: 34px;
  height: 34px;
  margin: 0;
  border-radius: 50%;
  border: 1px solid #2E2E2E;
  background: #1C1C1C;
  color: #D0D0D0;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.sidebar .social-icons a:hover {
  background: var(--color-primary, #FF4D1C);
  border-color: var(--color-primary, #FF4D1C);
  color: #fff;
}

.mobile-search {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background: var(--color-white);
  padding: 18px 16px 20px;
  border-bottom: 1px solid #ebedf0;
  box-shadow: 0 10px 24px rgba(16, 24, 40, .07);
  display: none;
  z-index: 999;
}

.mobile-search.active {
  display: block;
  animation: fadeIn var(--transition-speed) ease;
}

/* Meme langage que la capsule du bureau : champs blancs sur filet, plutot
   qu'un empilement de pilules blanches posees sur un bloc gris. */
.mobile-search-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.mobile-search-content form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-search .search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-white);
  border: 1px solid #e4e7ea;
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.mobile-search .search-field:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 60, 0, .1);
}

.mobile-search .search-field i {
  flex-shrink: 0;
  width: 15px;
  margin-right: 0;
  color: #9aa1a8;
  font-size: 14px;
  text-align: center;
  transition: color .18s ease;
}

.mobile-search .search-field:focus-within i {
  color: var(--color-primary);
}

.mobile-search input,
.mobile-search select {
  display: block;
  border: none;
  border-radius: 0;
  outline: none;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: var(--font-size-base);
  font-weight: 500;
  color: #1f2328;
  width: 100%;
  min-width: 0;
}

.mobile-search input::placeholder {
  color: #9aa1a8;
  font-weight: 400;
}

.mobile-search select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 20px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath fill='none' stroke='%239aa1a8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 5 5.5 9 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
}

.mobile-search .search-btn {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 12px;
  padding: 13px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-speed);
  margin-top: 2px;
}

.mobile-search .search-btn:hover {
  background: var(--color-primary-dark);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Entre 992 et 1200px la capsule est a l'etroit : on resserre les marges
   plutot que de laisser les libelles se tronquer. */
@media (min-width: 992px) and (max-width: 1200px) {
  .header {
    gap: 16px;
    padding: 0 18px;
  }

  .logo img {
    height: 38px;
  }

  .search-field {
    padding: 9px 12px;
  }

  .search-form .search-btn {
    padding: 0 18px;
  }
}

@media (max-width: 991px) {
  .search-bar {
    display: none;
  }

  .icon-btn {
    display: flex;
  }
}

@media (min-width: 992px) {
  #searchToggle {
    display: none;
  }

  .mobile-search {
    display: none !important;
  }
}

/*--------Inscription+Connexion---------*/
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: #ffffff;
  margin: 5% auto;
  padding: 0;
  width: 90%;
  max-width: 480px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-btn {
  position: absolute;
  right: 20px;
  top: 20px;
  /* Les onglets (.tab-btn) sont aussi positionnes et declares apres la croix
     dans le DOM : a z-index egal, ils passaient devant et recouvraient les
     deux tiers bas du bouton, qui ne repondait donc plus au clic. */
  z-index: 2;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background-color: #f5f5f5;
  color: #333;
}

.tabs {
  display: flex;
  border-bottom: 1px solid #e5e5e5;
  padding: 0 30px;
  padding-top: 30px;
}

.tab-btn {
  flex: 1;
  padding: 15px 20px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}

.tab-btn.active {
  color: #ff5722;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #ff5722;
  border-radius: 3px 3px 0 0;
}

.tab-btn:hover {
  color: #ff5722;
}

.tab-content {
  padding: 40px 30px;
}

.input-group {
  position: relative;
  margin-bottom: 18px;
}

.input-group i:not(.toggle-password) {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 16px;
  pointer-events: none;
  z-index: 1;
}

.input-group select {
  cursor: pointer;
  appearance: none;
  width: 100%;
  padding: 14px 16px;
  padding-left: 45px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  background-color: #fafafa;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.input-group .toggle-password {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 16px;
  cursor: pointer;
  pointer-events: all;
  transition: color 0.2s ease;
  z-index: 1;
}

.input-group .toggle-password:hover {
  color: #666;
}

.tab-content input[type="text"],
.tab-content input[type="email"],
.tab-content input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  padding-left: 45px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  background-color: #fafafa;
}

.input-group:has(.toggle-password) input[type="password"] {
  padding-right: 45px;
}

.tab-content input[type="text"]:focus,
.tab-content input[type="email"]:focus,
.tab-content input[type="password"]:focus {
  outline: none;
  border-color: #ff5722;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

.input-group:has(input:focus) i:not(.toggle-password) {
  color: #ff5722;
}

.tab-content label {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  cursor: pointer;
}

.tab-content label input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #ff5722;
}

.tab-content label a {
  color: #ff5722;
  text-decoration: none;
}

.tab-content label a:hover {
  text-decoration: underline;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background-color: #ff5722;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

.submit-btn:hover {
  background-color: #f4511e;
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
  transform: translateY(-1px);
}

.submit-btn:active {
  transform: translateY(0);
}

.tab-content p {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
  color: #666;
}

.tab-content p a {
  color: #ff5722;
  text-decoration: none;
}

.tab-content p a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10% auto;
  }

  .tabs {
    padding: 0 20px;
    padding-top: 25px;
  }

  .tab-content {
    padding: 30px 20px;
  }

  .tab-btn {
    font-size: 15px;
    padding: 12px 15px;
  }
}

@media (max-width: 480px) {
  .modal-content {
    margin: 5% auto;
    border-radius: 8px;
  }

  .tab-content input[type="text"],
  .tab-content input[type="email"],
  .tab-content input[type="password"] {
    padding: 12px 14px;
    padding-left: 42px;
    font-size: 14px;
  }

  .submit-btn {
    padding: 12px;
    font-size: 15px;
  }
}

/* ==========================================================================
   Olten.fr — Home page
   ========================================================================== */
.hero-section {
  position: relative;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.72) 55%, rgba(255,255,255,.9) 100%),
    url('../images/Hero_section.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84vh;
  padding: 120px 20px 90px;
  isolation: isolate;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fee8c6;
  border: 1px solid #ff744e;
  color: #FF4D1C;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 26px;
  box-shadow: 0 4px 14px rgba(21,17,13,.08);
}

.hero-badge i {
  color: var(--color-primary, #FF4D1C);
  font-size: 12px;
}

.hero-content h1 {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: clamp(32px, 5.2vw, 54px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #15110D;
  margin-bottom: 22px;
  text-transform: uppercase;
  text-shadow: 0 2px 20px rgba(255,255,255,.6);
}

.hero-content h1 span.highlight {
  color: var(--color-primary, #FF4D1C);
}

.hero-content > p:first-of-type {
  font-size: 18px;
  color: rgba(21,17,13,.82);
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto 14px;
}

.hero-subtitle {
  font-size: 15px;
  color: rgba(21,17,13,.6);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* ---- Stats ---- */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid #E4DCCE;
  border-radius: 18px;
  padding: 22px 10px;
  max-width: 900px;
  margin: 0 auto;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1 1 0;
  padding: 0 18px;
  position: relative;
}

.hero-stat + .hero-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: #E4DCCE;
}

.hero-stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary, #FF4D1C);
}

.hero-stat-label {
  font-size: 12px;
  color: #6B6259;
  letter-spacing: .01em;
  text-align: center;
}

/* ---- Boutons d'action du hero ---- */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 230px;
  padding: 15px 28px;
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s ease, background .2s ease, color .2s ease,
              border-color .2s ease, box-shadow .2s ease;
}

.hero-btn i {
  font-size: 14px;
}

.hero-btn-primary {
  background: var(--color-primary, #FF4D1C);
  color: #fff;
  border: 1px solid var(--color-primary, #FF4D1C);
  box-shadow: 0 10px 24px rgba(255, 77, 28, .32);
}

.hero-btn-primary:hover,
.hero-btn-primary:focus {
  background: #E03F14;
  border-color: #E03F14;
  color: #fff;
  transform: translateY(-2px);
}

.hero-btn-ghost {
  background: #fff;
  color: #15110D;
  border: 1px solid #E4DCCE;
  box-shadow: 0 6px 16px rgba(21, 17, 13, .07);
}

.hero-btn-ghost:hover,
.hero-btn-ghost:focus {
  border-color: var(--color-primary, #FF4D1C);
  color: var(--color-primary, #FF4D1C);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .hero-stats { padding: 20px 6px; }
  .hero-stat { padding: 0 10px; }
  .hero-stat-value { font-size: 21px; }
}

@media (max-width: 600px) {
  .hero-section { min-height: auto; padding: 90px 16px 60px; }
  .hero-content > p:first-of-type { font-size: 16px; }
  .hero-search { flex-direction: column; border-radius: 18px; }
  .hero-search-divider { display: none; }
  .hero-search-btn { padding: 16px; justify-content: center; }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 0;
    padding: 20px 10px;
  }
  .hero-stat { padding: 0 8px; }
  .hero-stat + .hero-stat::before { display: none; }
  .hero-actions { margin-top: 22px; gap: 12px; }
  .hero-btn { width: 100%; min-width: 0; padding: 14px 20px; }
}

/* ==========================================================================
   CATEGORIES
   ========================================================================== */
.categories-section {
  background: #FAF6F0;
  padding: 70px 20px 30px;
  max-width: 1360px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 10px;
}

/* Variante centree (accueil) : titre au centre, fleches a droite en desktop */
.section-header--center {
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 22px;
  margin-bottom: 38px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
}

@media (min-width: 992px) {
  .section-header--center .carousel-nav {
    position: absolute;
    right: 0;
    bottom: 6px;
  }
}

.category-card {
  position: relative;
  z-index: 1;
  flex: 0 0 180px;
  background: #fff;
  border: 1px solid #E4DCCE;
  border-radius: 18px;
  padding: 26px 16px 22px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 0 rgba(21,17,13,.05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-primary, #FF4D1C);
  box-shadow: 0 10px 24px rgba(21,17,13,.12);
}

.category-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #F1EBE1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--color-primary, #FF4D1C);
  transition: background .2s ease, color .2s ease;
}

.category-card:hover .category-icon {
  background: var(--color-primary, #FF4D1C);
  color: #fff;
}

.category-card h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #15110D;
  margin: 0;
}

.category-overlay {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: rgba(255, 77, 28, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s ease;
}

.category-overlay span {
  font-family: 'Space Grotesk', sans-serif;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
}

.category-card:hover .category-overlay {
  opacity: 1;
}

/* ==========================================================================
   SECTION SERVICES (accueil) - "Explorez nos N piliers de services"
   ========================================================================== */
.services-section {
  max-width: none;
  margin: 0;
  padding: 74px 0 46px;
  background: #F8FAFC;
}

.services-inner {
  /* Reprise par la ligne de tuiles, qui deborde dans cette marge pour defiler */
  --services-gutter: 20px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 var(--services-gutter);
}

/* ---- En-tete aligne a gauche, partage services + annonces ---- */
.section-header--left {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  margin-bottom: 34px;
}

/* Lien "Tous les services" a droite de l'en-tete */
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
  color: #15110D;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease, gap .2s ease;
}

.section-link:hover {
  color: var(--color-primary, #FF4D1C);
  gap: 12px;
}

.section-link i {
  font-size: 12px;
}

.section-header--left .section-heading {
  align-items: flex-start;
  text-align: left;
  max-width: 100%;
}

/* Eyebrow simple (sans pastille). Selecteur compose : .section-eyebrow
   est declaree plus bas dans le fichier, il faut une specificite superieure. */
.section-eyebrow.section-eyebrow--plain {
  padding: 0;
  border: 0;
  background: none;
  border-radius: 0;
  margin-bottom: 12px;
}

.categories-section.services-section .section-title::after {
  display: none;
}

/* ---- Ligne de services ----
   Une seule ligne : les cartes se partagent la largeur ; quand elles n'y
   tiennent plus, la ligne defile horizontalement. Les fleches, le fondu du
   bord et la barre de progression (script de home.blade.php) n'apparaissent
   qu'alors ; sans script, le defilement natif reste. */
.services-nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.services-nav .carousel-btn {
  width: 38px;
  height: 38px;
  font-size: 12px;
}

/* Bouton en butee : il ne reagit plus au survol */
.services-nav .carousel-btn:disabled:hover {
  background: #fff;
  border-color: #E4DCCE;
  color: #15110D;
}

.services-rail {
  position: relative;
  /* Deborde dans la marge de .services-inner pour que les cartes defilent
     jusqu'au bord du bloc ; les marges verticales negatives compensent la
     marge interieure de .services-grid. */
  margin: -8px calc(-1 * var(--services-gutter)) -30px;
}

.services-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--services-gutter);
  scrollbar-width: thin;
  /* Le defilement rogne tout ce qui depasse : cette marge interieure
     laisse la place a l'elevation, a l'ombre et au contour de focus. */
  padding: 8px var(--services-gutter) 30px;
}

/* Le script a pris le relais : la barre de progression remplace la
   barre de defilement native. */
.services-rail.is-scrollable .services-grid {
  scrollbar-width: none;
}

.services-rail.is-scrollable .services-grid::-webkit-scrollbar {
  display: none;
}

/* Fondus des bords : celui de droite annonce la suite, celui de gauche
   apparait des qu'on a quitte le debut de la ligne. */
.services-rail::before,
.services-rail::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: calc(var(--services-gutter) + 48px);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}

.services-rail::before {
  left: 0;
  background: linear-gradient(90deg, #F8FAFC 30%, rgba(248, 250, 252, 0));
}

.services-rail::after {
  right: 0;
  background: linear-gradient(270deg, #F8FAFC 30%, rgba(248, 250, 252, 0));
}

.services-rail.is-scrollable:not(.at-start)::before,
.services-rail.is-scrollable:not(.at-end)::after {
  opacity: 1;
}

/* ---- Carte de service : photo assombrie, nom et accroche en bas ---- */
.service-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1 0 250px;
  height: 180px;
  padding: 16px;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  /* 1. voile sombre, plus dense en bas pour la lisibilite du texte
     2. photo du service (modele Service), absente -> couche ignoree
     3. fond sombre de repli */
  background:
    linear-gradient(180deg, rgba(16, 12, 8, .22) 0%, rgba(16, 12, 8, .32) 45%, rgba(16, 12, 8, .85) 100%),
    var(--tile-image, none) center / cover no-repeat,
    #2A2420;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .08), inset 0 0 0 1px rgba(255, 255, 255, .08);
  scroll-snap-align: start;
  transition: transform .25s ease, box-shadow .25s ease;
}

/* Au survol : la carte se souleve, cerclee de clair */
.service-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px -12px rgba(16, 24, 40, .45), inset 0 0 0 2px rgba(255, 255, 255, .5);
}

.service-tile:focus-visible {
  outline: 2px solid var(--color-primary, #FF4D1C);
  outline-offset: 3px;
}

/* Pastille d'icone, en verre depoli */
.service-tile-icon {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 14px;
}

/* Service annonce mais pas encore ouvert (Formation) */
.service-tile-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 9px;
  border-radius: 50px;
  background: var(--color-primary, #FF4D1C);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(16, 12, 8, .25);
  transition: opacity .2s ease, transform .2s ease;
}

/* Fleche revelee au survol (et au focus clavier) : la carte mene au service */
.service-tile-arrow {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  color: #15110D;
  font-size: 12px;
  box-shadow: 0 4px 12px rgba(16, 12, 8, .25);
  opacity: 0;
  transform: translate(-4px, 4px) scale(.85);
  transition: opacity .25s ease, transform .25s ease;
}

/* fa-arrow-up-right n'existe pas dans Font Awesome Free : on tourne la fleche droite */
.service-tile-arrow i {
  transform: rotate(-45deg);
}

.service-tile:hover .service-tile-arrow,
.service-tile:focus-visible .service-tile-arrow {
  opacity: 1;
  transform: none;
}

/* Formation : le badge cede sa place a la fleche le temps du survol */
.service-tile:hover .service-tile-badge,
.service-tile:focus-visible .service-tile-badge {
  opacity: 0;
  transform: translateY(-4px);
}

.service-tile-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.service-tile-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: #fff;
}

.service-tile-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .82);
}

/* ---- Sous la ligne : progression du defilement, puis lien vers tout ---- */
.services-rail-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
}

.services-progress {
  position: relative;
  width: 160px;
  height: 4px;
  border-radius: 4px;
  background: #E4E7EC;
  overflow: hidden;
}

.services-progress span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  border-radius: inherit;
  background: var(--color-primary, #FF4D1C);
  transition: width .2s ease;
}

/* Consigne de geste, seulement la ou l'on fait defiler au doigt */
.services-hint {
  display: none;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: #667085;
}

.services-hint i {
  color: var(--color-primary, #FF4D1C);
  animation: services-hint-nudge 1.8s ease-in-out infinite;
}

@keyframes services-hint-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

/* Bouton « Voir tous les services », centre sous la ligne */
.services-all {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

@media (max-width: 620px), (hover: none) {
  .services-progress { flex: 1; width: auto; }
  .services-hint { display: inline-flex; }
}

@media (max-width: 620px) {
  .service-tile { flex: 0 0 148px; height: 164px; padding: 14px; }
}

@media (max-width: 600px) {
  /* Au doigt, la ligne se glisse : les fleches chargeraient l'en-tete */
  .services-nav { display: none; }
  .services-all .hero-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .service-tile,
  .service-tile-arrow,
  .service-tile-badge,
  .services-rail::before,
  .services-rail::after { transition: none; }
  .service-tile:hover { transform: none; }
  .services-hint i { animation: none; }
}

/* ==========================================================================
   SECTION annonces / produits
   ========================================================================== */
.annonces-section,
.produits-section {
  background: #FAF6F0;
  padding: 0px 20px 30px;
  max-width: 1360px;
  margin: 0 auto;
}

.categories-section .section-title,
.annonces-section .section-title,
.produits-section .section-title {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 700;
  color: #15110D;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0;
  position: relative;
  display: inline-block;
}

.categories-section .section-title::after,
.annonces-section .section-title::after,
.produits-section .section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 44px;
  height: 3px;
  background: var(--color-primary, #FF4D1C);
}

.section-header--center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-title .site-name {
  color: var(--color-primary, #FF4D1C);
}

/* ==========================================================================
   SECTION ANNONCES (accueil) - "Les Annonces Populaires du Moment"
   Portee sur .annonces-section--white : categories/show et homeLocation
   reutilisent .annonce-card et gardent leur rendu actuel.
   ========================================================================== */
.annonces-section--white {
  background: #fff;
}

/* Espacement vertical : .annonces-section a padding-top: 0 (et une regle
   responsive declaree plus bas), d'ou le selecteur compose. */
.annonces-section.annonces-section--white {
  padding: 74px 20px 64px;
}

/* Pas de trait orange sous le titre (selecteur compose : la regle
   .annonces-section .section-title::after est declaree plus bas) */
.annonces-section.annonces-section--white .section-title::after {
  display: none;
}

/* ---- Grille flex : 4 par ligne, puis 3 / 2 / 1 ---- */
.annonces-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.annonces-grid .annonce-card {
  display: flex;
  flex-direction: column;
  flex: 0 1 calc((100% - 60px) / 4);
  background: #fff;
  border: 1px solid #EEF1F6;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .04),
              0 8px 20px rgba(16, 24, 40, .05);
}

.annonces-grid .annonce-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(16, 24, 40, .12);
}

/* ---- Visuel ---- */
.annonces-section--white .card-image-container {
  padding-top: 60%;
  border-radius: 13px 13px 0 0;
}

.annonces-section--white .category-badge {
  top: 10px;
  left: 10px;
  background: var(--color-primary, #FF4D1C);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 5px 10px;
  border-radius: 6px;
}

.annonces-section--white .favorite-btn {
  top: 10px;
  bottom: auto;
  right: 10px;
  width: 32px;
  height: 32px;
  box-shadow: 0 2px 6px rgba(16, 24, 40, .14);
}

/* ---- Contenu ---- */
.annonces-section--white .card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 14px 16px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 22px;
  margin-bottom: 8px;
}

/* Selecteur compose : un autre .card-location est declare plus bas
   dans le fichier (pages annonces) et gagnerait a specificite egale. */
.annonces-section--white .card-location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin-bottom: 0;
  font-size: 12px;
  color: #98A2B3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.annonces-section--white .card-location i {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--color-primary, #FF4D1C);
}

.card-delivery {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding: 3px 9px;
  border: 1px solid #FFD3BF;
  background: #FFF1E8;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-primary, #FF4D1C);
  white-space: nowrap;
}

.annonces-section--white .card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
  margin: 0 0 6px;
}

.card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.55;
  color: #98A2B3;
}

/* ---- Pied de carte : prix + CTA ---- */
.annonces-section--white .card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #F1F4F8;
}

.card-price-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.card-price-label {
  font-size: 11.5px;
  color: #98A2B3;
}

.annonces-section--white .card-price {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.annonces-section--white .card-price small {
  margin-left: 3px;
  font-size: 11.5px;
  font-weight: 500;
  color: #98A2B3;
}

.card-cta {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 9px;
  background: #F1F5F9;
  font-size: 12.5px;
  font-weight: 600;
  color: #475467;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}

.annonces-grid .annonce-card:hover .card-cta {
  background: var(--color-primary, #FF4D1C);
  color: #fff;
}

@media (max-width: 1100px) {
  .annonces-grid .annonce-card { flex: 0 1 calc((100% - 40px) / 3); }
}

@media (max-width: 860px) {
  .annonces-grid { gap: 16px; }
  .annonces-grid .annonce-card { flex: 0 1 calc((100% - 16px) / 2); }
}

@media (max-width: 560px) {
  .annonces-grid .annonce-card { flex: 0 1 100%; }
}

@media (max-width: 992px) {
  .annonces-section.annonces-section--white { padding: 56px 18px 48px; }
}

@media (max-width: 576px) {
  .annonces-section.annonces-section--white { padding: 44px 16px 36px; }
}

/* ---- Trajets du jour (accueil) ----
   Suit directement les annonces populaires, sur le meme fond : pas de
   second espace haut, l'espace bas de la section precedente suffit. */
.annonces-section.annonces-section--white.home-trips {
  padding-top: 0;
}

/* ==========================================================================
   CAROUSEL
   ========================================================================== */
.carousel-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-wrapper::-webkit-scrollbar {
  display: none;
}

.carousel-nav {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.carousel-track {
  display: flex;
  gap: 26px;
}

/* ==========================================================================
   LISTING (annonces / produits)
   ========================================================================== */
.annonce-card,
.product-card {
  flex: 0 0 calc(33.333% - 18px);
  background: #fff;
  border: 1px solid #E4DCCE;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.annonce-card:hover,
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(21,17,13,.12);
}

.annonce-card.expired-card,
.product-card.notActive-card {
  opacity: .55;
  filter: grayscale(.4);
}

.card-image-container {
  position: relative;
  width: 100%;
  padding-top: 72%;
  overflow: hidden;
  background: #F1EBE1;
}

.card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.annonce-card:hover .card-image,
.product-card:hover .card-image {
  transform: scale(1.04);
}

.watermark {
  position: absolute;
  top: 12px;
  left: 12px;
  color: #fff;
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 4px;
  z-index: 2;
}

.category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #15110D;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  z-index: 3;
}

.favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-primary, #FF4D1C);
  font-size: 16px;
  transition: transform .15s ease;
  z-index: 3;
}

.favorite-btn:hover {
  transform: scale(1.08);
}

.card-content {
  padding: 20px;
}

.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #15110D;
  line-height: 1.35;
  min-height: 46px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
}

.info-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #F1EBE1;
  color: #6B6259;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  margin-top: 2px;
}

.expired {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: #D63D10;
  background: #FBE4DB;
  padding: 4px 10px;
  border-radius: 4px;
  height: fit-content;
  white-space: nowrap;
}

.card-price,
.card-qte {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  font-weight: 600;
  color: #15110D;
}

.card-price {
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px dashed #E4DCCE;
}

.bg-success {
  background: #ff3c00 !important;
  font-weight: 500 !important;
  font-size: 12px !important;
  border-radius: 20px !important;
  padding: 5px 12px !important;
}

/* ==========================================================================
   CAROUSEL NAV
   ========================================================================== */
.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #E4DCCE;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #15110D;
  font-size: 15px;
  transition: all .2s ease;
}

.carousel-btn:hover {
  background: var(--color-primary, #FF4D1C);
  border-color: var(--color-primary, #FF4D1C);
  color: #fff;
}

.carousel-btn:disabled {
  opacity: .3;
  cursor: not-allowed;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #E4DCCE;
  cursor: pointer;
  transition: all .2s ease;
}

.dot.active {
  background: var(--color-primary, #FF4D1C);
  width: 24px;
  border-radius: 4px;
}

/* ==========================================================================
   À PROPOS D'OLTEN
   ========================================================================== */
.about-section {
  max-width: none;
  margin: 0;
  padding: 80px 20px;
  background: #F8FAFC;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1360px;
  margin: 0 auto;
}

.about-image {
  min-width: 0;
}

.about-image-frame {
  position: relative;
  padding: 8px;
  border-radius: 20px;
  background: #15110D;
  box-shadow: 0 18px 44px rgba(16, 24, 40, .20);
}

.about-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 13px;
}

/* Carte legende posee en bas de l'image */
.about-image-caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 24px rgba(16, 24, 40, .22);
}

.about-caption-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary, #FF4D1C);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.about-caption-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.about-caption-text strong {
  font-size: 13px;
  font-weight: 700;
  color: #15110D;
}

.about-caption-text > span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 11.5px;
  line-height: 1.45;
  color: #6B6259;
}

/* Eyebrow réutilisé pour "À propos d'Olten"  */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border: 1px solid #FF744E;
  background: #FEE8C6;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary, #FF4D1C);
  margin-bottom: 16px;
}

.about-text h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1.25;
  color: #15110D;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 15px;
  line-height: 1.75;
  color: #6B6259;
  margin-bottom: 25px;
}

.about-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  font-weight: 500;
  color: #15110D;
  margin-bottom: 18px;
}

.about-checklist-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.about-checklist-text strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #15110D;
}

.about-checklist-text span {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: #6B6259;
}

.about-checklist li i {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  margin-top: 2px;
  border: 1px solid #FFD3BF;
  border-radius: 8px;
  background: #FFF4EC;
  color: var(--color-primary, #FF4D1C);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

@media (max-width: 992px) {
  .about-section { padding: 60px 20px; }
  .about-container { gap: 40px; }
}

@media (max-width: 900px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-image-frame {
    max-width: 620px;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .about-section { padding: 48px 18px; }
  .about-text p { font-size: 14px; }
  .about-checklist li { gap: 12px; }

  .about-image-frame { padding: 6px; border-radius: 16px; }
  .about-image img { border-radius: 11px; }
  .about-image-caption {
    left: 12px;
    right: 12px;
    bottom: 12px;
    gap: 10px;
    padding: 10px 12px;
  }
  .about-caption-icon { width: 28px; height: 28px; font-size: 12px; }
}

/* ==========================================================================
   L'ÉCOSYSTÈME OLTEN
   ========================================================================== */
.ecosystem-section {
  background: #fff;
  padding: 80px 20px;
}

.ecosystem-header {
  max-width: 760px;
  margin: 0 auto 58px;
  text-align: center;
}

.ecosystem-header h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  color: #15110D;
  margin: 10px 0 14px;
  line-height: 1.3;
}

.ecosystem-subtitle {
  font-size: 15px;
  color: #6B6259;
  line-height: 1.7;
}

.ecosystem-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ecosystem-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFC 100%);
  border: 1px solid #EEF1F6;
  border-radius: 16px;
  padding: 30px 26px 32px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.ecosystem-card:hover {
  transform: translateY(-6px);
  border-color: #E3E8EF;
  box-shadow: 0 14px 30px rgba(16, 24, 40, .08);
}

.ecosystem-icon {
  width: 46px;
  height: 46px;
  border: 1px solid #EEF1F6;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .05);
  color: var(--color-primary, #FF4D1C);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 22px;
}

.ecosystem-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #15110D;
  margin-bottom: 12px;
}

.ecosystem-card p {
  font-size: 14px;
  line-height: 1.7;
  color: #6B6259;
}

@media (max-width: 992px) {
  .ecosystem-section { padding: 60px 20px; }
  .ecosystem-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

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

@media (max-width: 576px) {
  .ecosystem-section { padding: 48px 18px; }
  .ecosystem-header { margin-bottom: 34px; }
  .ecosystem-card { padding: 26px 20px; }
}

/* ==========================================================================
   CENTRE D'ASSISTANCE / FAQ
   ========================================================================== */
.faq-section {
  max-width: none;
  margin: 0;
  padding: 70px 20px;
  background: #F8FAFC;
}

.faq-header {
  max-width: 620px;
  margin: 0 auto 40px;
  text-align: center;
}

.faq-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border: 1px solid var(--color-primary, #FF4D1C);
  background: #fff;
  color: var(--color-primary, #FF4D1C);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 30px;
  margin-bottom: 18px;
}

.faq-header h2 {
  font-size: clamp(26px, 3.2vw, 32px);
  font-weight: 700;
  color: #15110D;
  margin: 4px 0 12px;
}
.faq-number {
  background: #FEE8C6;
  color: #FF4D1C;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  margin-right: 12px;
  flex-shrink: 0;
}

.faq-header p {
  font-size: 14px;
  line-height: 1.7;
  color: #6B6259;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid #E4DCCE;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s ease;
}

.faq-item.active {
  border-color: var(--color-primary, #FF4D1C);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: #15110D;
}

.faq-text {
  flex: 1;
}

.faq-toggle-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F1EBE1;
  color: #6B6259;
  font-size: 13px;
  transition: transform .25s ease, background .2s ease, color .2s ease;
}

.faq-item.active .faq-toggle-icon {
  background: var(--color-primary, #FF4D1C);
  color: #fff;
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.faq-item.active .faq-answer {
  max-height: 800px;
}

.faq-answer p {
  padding: 0 24px 22px 24px;
  font-size: 14px;
  line-height: 1.75;
  color: #6B6259;
}

@media (max-width: 600px) {
  .faq-section { padding: 40px 18px; }

  .faq-question {
    font-size: 14px;
    gap: 12px;
    padding: 16px 18px;
  }

  .faq-number {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    font-size: 11px;
  }

  .faq-toggle-icon {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .faq-answer p {
    padding: 0 18px 18px 18px;
  }
}

/* ==========================================================================
   CTA SECTION — "Prêt à publier votre première annonce ?"
   ========================================================================== */
.cta-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 1100px;
  padding: 44px 48px;
  overflow: hidden;
  background: #000;
  border-radius: 24px;
  margin: 40px auto;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.cta-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
}

.cta-content p {
  font-size: 15px;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
  margin: 0;
}

.cta-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  background: var(--color-primary, #FF4D1C);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(255,77,28,.35);
  transition: transform .2s ease, background .2s ease;
  white-space: nowrap;
}

.cta-btn:hover {
  background: #E03F14;
  transform: translateY(-2px);
  color: #fff;
}

/* ==========================================================================
   RESPONSIVE - accueil
   ========================================================================== */
@media (max-width: 992px) {
  .services-section { padding: 56px 0 36px; }
  .services-inner { --services-gutter: 18px; }
  .section-header--left { margin-bottom: 24px; }
  .section-header--center { gap: 18px; margin-bottom: 30px; }
  .annonce-card, .product-card { flex: 0 0 calc(50% - 13px); }
  .carousel-track { gap: 20px; }
  .carousel-dots { margin-top: 28px; }

  .cta-section {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 32px;
    margin: 30px 20px;
  }
  .cta-content { max-width: 100%; }
  .cta-btn { width: 100%; justify-content: center; }
}

@media (max-width: 768px) {
  .category-card { flex: 0 0 150px; }
  .section-eyebrow { font-size: 11px; padding: 6px 14px; margin-bottom: 12px; }
  .section-eyebrow.section-eyebrow--plain { padding: 0; margin-bottom: 8px; }
  .section-header--left { margin-bottom: 26px; }
}

@media (max-width: 600px) {
  .section-header--left {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

@media (max-width: 576px) {
  .services-section { padding: 44px 0 34px; }
  .services-inner { --services-gutter: 16px; }
  .annonces-section, .produits-section { padding: 0 18px 25px; }
  .annonce-card, .product-card { flex: 0 0 100%; }
  .carousel-track { gap: 16px; }
  .card-content { padding: 16px; }
  .card-title { font-size: 15px; min-height: 0; margin-bottom: 12px; }

  .cta-section {
    padding: 30px 22px;
    margin: 24px 16px;
    border-radius: 20px;
  }
  .cta-content p { font-size: 14px; }
  .cta-btn { padding: 14px 20px; font-size: 14px; white-space: normal; }
}

/* ==========================================================================
   PAGE DE RÉSULTATS DE RECHERCHE
   ========================================================================== */
.search-results-section {
  max-width: 1360px;
  margin: 0 auto;
  padding: 60px 20px;
}

.search-filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid #E4DCCE;
  border-radius: 14px;
  padding: 14px;
  margin: 20px 0 40px;
}

.search-filter-bar input,
.search-filter-bar select {
  flex: 1;
  min-width: 160px;
  border: 1px solid #E4DCCE;
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  color: #15110D;
}

.search-filter-bar button {
  border: none;
  background: var(--color-primary, #FF4D1C);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  padding: 10px 24px;
  cursor: pointer;
  transition: background .2s ease;
}

.search-filter-bar button:hover {
  background: #E03F14;
}

.results-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #15110D;
  margin: 40px 0 20px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.results-pagination {
  margin-top: 30px;
}

@media (max-width: 992px) {
  .results-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/*------------Créer un site page---------------*/
.create-site-section {
  padding: 60px 20px;
  color: var(--color-black);
}

.create-site-form {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--color-white);
  padding: 40px 30px;
  border-radius: 15px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid var(--color-divider);
  font-size: 15px;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  outline: none;
}

textarea {
  resize: vertical;
}

.btn-submit {
  display: block;
  width: 100%;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: 14px 0;
  font-size: 17px;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-submit:hover {
  background-color: var(--color-primary);
}

/* Responsive tablette */
@media (max-width: 992px) {
  .create-site-section h2 {
    font-size: 28px;
  }

  .create-site-form {
    padding: 30px 20px;
  }
}

/* Responsive mobile */
@media (max-width: 600px) {
  .create-site-section {
    padding: 40px 15px;
  }

  .create-site-section h2 {
    font-size: 24px;
  }

  .btn-submit {
    font-size: 15px;
    padding: 12px 0;
  }
}

/*-------------Contact Page------------------*/
.hero-map-section {
  width: auto;
  height: 400px;
  padding:0 !important;
  margin:0 !important;
}

.contact-map-container {
  padding:0 !important;
  margin:0 !important;
  width: 100% !important;
  height: 100% !important;
}

.contact-map-container iframe {
  padding:0 !important;
  margin:0 !important;
  width: 100% !important;
  height: 100% !important;
  border: none;
  display: block;
}

/* Intro (badge + titre) */
.contact-intro {
  text-align: center;
  padding: 60px 20px 20px;
}

.contact-badge {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid var(--color-primary, #ff3b00);
  color: var(--color-primary, #ff3b00);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 30px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.contact-intro h2 {
  font-size: 34px;
  font-weight: 700;
  color: #111;
  margin-bottom: 12px;
}

.contact-intro p {
  font-size: 16px;
  color: #777;
  max-width: 550px;
  margin: 0 auto;
}

/* Section formulaire + coordonnées */
.contact-contact-section {
  padding: 40px 20px 100px;
}

.contact-form-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 30px;
  align-items: stretch;
}

/* Carte Coordonnées */
.info-card {
  flex: 0 0 360px;
  /* Blanc, avec une pointe de chaleur vers le bas de la carte */
  background: linear-gradient(180deg, #fff 55%, #fffaf6 100%);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(17, 17, 17, 0.07);
  padding: 34px 30px 26px;
  display: flex;
  flex-direction: column;
}

.info-card h3 {
  font-size: 24px;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}

.info-card > p.info-desc {
  font-size: 13.5px;
  color: #8e8e8e;
  line-height: 1.65;
  margin-bottom: 28px;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

/* Pastille claire a l'icone orange, et non l'inverse */
.info-row .icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #ffe9dd;
  color: var(--color-primary, #ff3b00);
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-row .icon i {
  font-size: 16px;
}

.info-row .info-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 2px;
  min-width: 0;
}

.info-row .info-label {
  font-size: 12.5px;
  font-weight: 400;
  color: #a6a6a6;
  letter-spacing: 0;
}

.info-row p,
.info-row a {
  font-size: 15px;
  color: #111;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
  overflow-wrap: anywhere;
}

/* L'adresse e-mail reste soulignee : c'est le seul element cliquable */
.info-row a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.info-row a:hover {
  color: var(--color-primary, #ff3b00);
}

/* Pied de carte : delai de reponse a gauche, etat du support a droite */
.info-card .info-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #efefef;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.info-card .info-delay {
  font-size: 12px;
  color: #b3b3b3;
  white-space: nowrap;
}

.info-card .info-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  color: #4b4b4b;
  white-space: nowrap;
}

.info-card .info-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

/* Formulaire
   Ces regles sont limitees a `.contact-form` : les classes `.form-group`,
   `.form-row` et `.btn-submit` sont aussi utilisees par la page « creer un
   site », qui les declare plus haut. Sans cette portee, les deux pages se
   marchaient dessus. */
.contact-form {
  flex: 1;
  background: transparent;
  padding: 0;
}

.contact-form .form-row {
  display: flex;
  gap: 20px;
}

.contact-form .form-row .form-group {
  flex: 1;
}

.contact-form .form-group {
  margin-bottom: 20px;
  text-align: left;
}

.contact-form .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  font-size: 15px;
  color: #333;
  background: #fefefe;
  outline: none;
  transition: border 0.3s ease;
  box-sizing: border-box;
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
  border-color: #ff3b00;
}

.contact-form .form-actions {
  text-align: right;
}

/* `width` doit etre remis a plat : la page « creer un site » impose
   `width: 100%` sur `.btn-submit`, ce qui etirait le bouton Envoyer
   sur toute la largeur du formulaire. */
.contact-form .btn-submit {
  display: inline-block;
  width: auto;
  background: #ff3b00;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 35px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form .btn-submit:hover {
  background: #e13200;
}

/* Responsive Tablette */
@media (max-width: 991px) {
  .hero-map-section {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    height: 400px !important;
  }

  .contact-form-wrapper {
    flex-direction: column;
  }

  .info-card {
    flex: none;
    width: 100%;
  }
}

/* Responsive Mobile */
@media (max-width: 600px) {
  .hero-map-section {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    height: 300px !important;
  }

  .contact-intro h2 {
    font-size: 24px;
  }

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

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

  .contact-contact-section {
    padding: 30px 15px 60px;
  }

  .info-card {
    padding: 25px 20px;
  }
}

/* ════════════════════════════════════════
   FICHES DETAIL — annonce (/annonces/{id}/détails)
   et produit (/produits/{id})
   Prefixe `dt-` : ces regles remplacent l'ancien design
   (.image-gallery, .left-section-annonce, .purchase-box...)
════════════════════════════════════════ */

.dt {
    --dt-max: 1180px;
    --dt-radius: 18px;
    --dt-border: #e9ecef;
    --dt-muted: #8a9099;
    background: var(--color-bg-body, #f8f9fa);
    padding: 26px 0 90px;
    color: var(--color-black, #111);
}

.dt-wrap {
    max-width: var(--dt-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Fil d'ariane ---- */
.dt-crumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12.5px;
    color: var(--dt-muted);
    margin-bottom: 18px;
}

.dt-crumbs a {
    color: var(--dt-muted);
    text-decoration: none;
    transition: color .2s ease;
}

.dt-crumbs a:hover {
    color: var(--color-primary, #ff3c00);
}

.dt-crumbs i {
    font-size: 9px;
    opacity: .6;
}

.dt-crumbs .is-current {
    color: var(--color-black, #111);
    font-weight: 600;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dt-flag {
    margin-left: 4px;
    padding: 4px 11px;
    border-radius: 999px;
    background: #fdecec;
    color: #b42318;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ---- En-tete ---- */
.dt-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.dt-title {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.2;
    margin: 0 0 12px;
}

.dt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dt-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 999px;
    background: var(--color-white, #fff);
    border: 1px solid var(--dt-border);
    font-size: 12px;
    font-weight: 600;
    color: var(--color-grey-dark, #555);
}

.dt-chip i {
    font-size: 11px;
    color: var(--color-primary, #ff3c00);
}

.dt-chip.is-solid {
    background: #1c2026;
    border-color: #1c2026;
    color: #fff;
}

.dt-chip.is-solid i {
    color: #fff;
}

.dt-head-price {
    text-align: right;
    white-space: nowrap;
}

.dt-head-price strong {
    display: block;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    color: var(--color-primary, #ff3c00);
}

.dt-head-price small {
    font-size: 12px;
    color: var(--dt-muted);
}

/* ---- Galerie ---- */
.dt-gallery {
    background: var(--color-white, #fff);
    border: 1px solid var(--dt-border);
    border-radius: var(--dt-radius);
    padding: 10px;
}

.dt-gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #101317;
}

.dt-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dt-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #1c2026;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
    transition: background .2s ease, transform .15s ease;
}

.dt-gallery-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.06);
}

.dt-gallery-nav.prev { left: 14px; }
.dt-gallery-nav.next { right: 14px; }

.dt-gallery-count {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(17, 17, 17, .72);
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.dt-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
}

.dt-thumb {
    flex: 0 0 96px;
    width: 96px;
    height: 66px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: #eef0f3;
    cursor: pointer;
    transition: border-color .2s ease, opacity .2s ease;
    opacity: .65;
}

.dt-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dt-thumb.is-active,
.dt-thumb:hover {
    border-color: var(--color-primary, #ff3c00);
    opacity: 1;
}

/* ---- Disposition ----
   Haut de page : la galerie et l'encart d'action cote a cote.
   Dessous : le detail, en pleine largeur. */
.dt-top {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    margin-bottom: 20px;
}

.dt-below {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.dt-card {
    background: var(--color-white, #fff);
    border: 1px solid var(--dt-border);
    border-radius: var(--dt-radius);
    padding: 22px;
}

.dt-card-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--dt-muted);
    margin: 0 0 16px;
}

/* ---- Points cles ---- */
.dt-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.dt-fact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px solid var(--dt-border);
    border-radius: 13px;
}

.dt-fact-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: #fff1e9;
    color: var(--color-primary, #ff3c00);
}

.dt-fact-icon.is-blue  { background: #eaf0fd; color: #3f6ad8; }
.dt-fact-icon.is-green { background: #e8f7ee; color: #1a9d5c; }
.dt-fact-icon.is-grey  { background: #f1f3f5; color: #5b626b; }

.dt-fact-text {
    min-width: 0;
}

.dt-fact-text strong {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dt-fact-text small {
    font-size: 11px;
    color: var(--dt-muted);
}

/* ---- Onglets ---- */
.dt-tabs {
    display: flex;
    gap: 26px;
    border-bottom: 1px solid var(--dt-border);
    margin: -4px 0 18px;
    overflow-x: auto;
}

.dt-tab {
    position: relative;
    background: none;
    border: 0;
    padding: 14px 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dt-muted);
    white-space: nowrap;
    cursor: pointer;
    transition: color .2s ease;
}

.dt-tab:hover { color: var(--color-black, #111); }

.dt-tab.is-active { color: var(--color-primary, #ff3c00); }

.dt-tab.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: var(--color-primary, #ff3c00);
}

.dt-panel { display: none; }
.dt-panel.is-active { display: block; }

.dt-prose {
    font-size: 14px;
    line-height: 1.75;
    color: var(--color-grey-dark, #555);
}

.dt-prose p:last-child { margin-bottom: 0; }

.dt-empty-text {
    font-size: 13px;
    color: var(--dt-muted);
    font-style: italic;
}

.dt-map {
    width: 100%;
    height: 380px;
    border-radius: 13px;
    background: #e9edf0;
    z-index: 0;
}

/* ---- Vendeur / proprietaire ---- */
.dt-owner {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dt-owner img,
.dt-owner-initial {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 50%;
    object-fit: cover;
    background: #1c2026;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dt-owner-info {
    min-width: 0;
    flex: 1;
}

.dt-owner-info strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.dt-owner-info small {
    font-size: 11.5px;
    color: var(--dt-muted);
}

.dt-owner-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    padding: 3px 9px;
    border-radius: 6px;
    background: #e8f7ee;
    color: #1a9d5c;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ---- Colonne d'action ---- */
.dt-aside {
    min-width: 0;
}

.dt-box {
    background: var(--color-white, #fff);
    border: 1px solid var(--dt-border);
    border-radius: var(--dt-radius);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(17, 17, 17, .05);
}

.dt-box-price {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--dt-border);
}

.dt-box-price strong {
    font-size: 27px;
    font-weight: 800;
    line-height: 1;
}

.dt-box-price small {
    font-size: 12px;
    color: var(--dt-muted);
}

.dt-field {
    margin-bottom: 14px;
}

.dt-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-grey-dark, #555);
    margin-bottom: 7px;
}

.dt-label i {
    color: var(--color-primary, #ff3c00);
    font-size: 11px;
}

.dt-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--dt-border);
    border-radius: 11px;
    font-size: 13.5px;
    background: var(--color-white, #fff);
    color: var(--color-black, #111);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.dt-input:focus {
    outline: none;
    border-color: var(--color-primary, #ff3c00);
    box-shadow: 0 0 0 3px rgba(255, 60, 0, .12);
}

.dt-input[readonly] {
    cursor: pointer;
}

/* Selecteur de quantite */
.dt-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--dt-border);
    border-radius: 11px;
    overflow: hidden;
    width: fit-content;
}

.dt-qty button {
    width: 40px;
    height: 42px;
    border: 0;
    background: var(--color-grey-light, #f5f5f5);
    color: var(--color-black, #111);
    font-size: 14px;
    cursor: pointer;
    transition: background .2s ease;
}

.dt-qty button:hover:not(:disabled) {
    background: #e9ecef;
}

.dt-qty button:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.dt-qty input {
    width: 58px;
    height: 42px;
    border: 0;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    -moz-appearance: textfield;
}

.dt-qty input::-webkit-outer-spin-button,
.dt-qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.dt-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 16px 0;
    padding-top: 14px;
    border-top: 1px solid var(--dt-border);
}

.dt-total span {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--dt-muted);
}

.dt-total strong {
    font-size: 22px;
    font-weight: 800;
}

/* Boutons */
.dt-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border: 0;
    border-radius: 12px;
    background: var(--color-primary, #ff3c00);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
    box-shadow: 0 10px 22px rgba(255, 60, 0, .22);
}

.dt-btn:hover {
    background: var(--color-primary-dark, #e13800);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 13px 28px rgba(255, 60, 0, .28);
}

.dt-btn:disabled,
.dt-btn.is-disabled {
    background: #e9ecef;
    color: #9aa0a6;
    box-shadow: none;
    pointer-events: none;
    transform: none;
}

.dt-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 14px;
}

.dt-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 6px;
    border: 1px solid var(--dt-border);
    border-radius: 12px;
    background: var(--color-white, #fff);
    color: var(--color-grey-dark, #555);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.dt-action i {
    font-size: 15px;
    color: var(--dt-muted);
    transition: color .2s ease;
}

.dt-action:hover {
    border-color: var(--color-primary, #ff3c00);
    color: var(--color-primary, #ff3c00);
}

.dt-action:hover i,
.dt-action.active i {
    color: var(--color-primary, #ff3c00);
}

.dt-action.active {
    border-color: var(--color-primary, #ff3c00);
    background: #fff1e9;
    color: var(--color-primary, #ff3c00);
}

.dt-action:disabled {
    opacity: .5;
    cursor: not-allowed;
    pointer-events: none;
}

.dt-report {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 10px;
    border: 0;
    background: none;
    color: var(--dt-muted);
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: color .2s ease;
}

.dt-report:hover {
    color: #b42318;
}

/* --------------------------------------------------------------------------
   Popin de signalement d'une annonce
   Le prompt() natif du navigateur affichait l'URL du site et n'offrait aucun
   choix de motif. On ouvre desormais une vraie fenetre : motifs pre-definis,
   champ de precision et confirmation visible apres envoi.
   -------------------------------------------------------------------------- */
.dt-rep {
    /* La popin est rendue hors de <div class="dt"> : on redeclare ici les
       variables du bloc fiche, sinon bordures, rayon et gris ne resolvent pas. */
    --dt-radius: 18px;
    --dt-border: #e9ecef;
    --dt-muted: #8a9099;
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.dt-rep[hidden] {
    display: none;
}

body.dt-rep-open {
    overflow: hidden;
}

.dt-rep-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 13, 17, .62);
    backdrop-filter: blur(2px);
}

.dt-rep-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(520px, 100%);
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow: hidden;
    background: var(--color-white, #fff);
    border-radius: var(--dt-radius);
    box-shadow: 0 24px 60px rgba(16, 24, 40, .28);
    animation: dt-rep-in .18s ease-out;
}

@keyframes dt-rep-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.98);
    }
}

@media (prefers-reduced-motion: reduce) {
    .dt-rep-card {
        animation: none;
    }
}

.dt-rep-form {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.dt-rep-form[hidden] {
    display: none;
}

.dt-rep-head {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 22px 22px 16px;
    border-bottom: 1px solid var(--dt-border);
}

.dt-rep-badge {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fdecec;
    color: #b42318;
    font-size: 16px;
}

.dt-rep-head-text {
    flex: 1 1 auto;
    min-width: 0;
}

.dt-rep-title {
    margin: 0 0 4px;
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-black, #16181d);
}

.dt-rep-sub {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--dt-muted);
}

.dt-rep-close {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--dt-muted);
    font-size: 15px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.dt-rep-close:hover {
    background: #f2f4f7;
    color: var(--color-black, #16181d);
}

.dt-rep-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 18px 22px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.dt-rep-legend {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--dt-muted);
}

.dt-rep-options {
    display: grid;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
}

.dt-rep-option {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 11px 13px;
    border: 1px solid var(--dt-border);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
}

.dt-rep-option:hover {
    border-color: #f5c2c3;
    background: #fffafa;
}

.dt-rep-option input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.dt-rep-dot {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin-top: 1px;
    border: 1.5px solid #c6cbd2;
    border-radius: 50%;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.dt-rep-option-text {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--color-grey-dark, #555);
}

.dt-rep-option-text small {
    display: block;
    margin-top: 2px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--dt-muted);
}

/* Etat selectionne : le navigateur ne peut pas styler un radio natif, on
   colore donc l'etiquette entiere via :has(). */
.dt-rep-option.is-selected {
    border-color: #d9534f;
    background: #fdecec;
}

.dt-rep-option.is-selected .dt-rep-dot {
    border-color: #b42318;
    box-shadow: inset 0 0 0 4px #b42318;
}

.dt-rep-option.is-selected .dt-rep-option-text {
    color: #8f2226;
}

.dt-rep-option:focus-within {
    outline: 2px solid #b42318;
    outline-offset: 2px;
}

.dt-rep-field {
    display: block;
}

.dt-rep-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--color-grey-dark, #555);
}

.dt-rep-count {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--dt-muted);
}

.dt-rep-textarea {
    width: 100%;
    min-height: 92px;
    padding: 11px 13px;
    border: 1px solid var(--dt-border);
    border-radius: 12px;
    background: var(--color-white, #fff);
    font-family: inherit;
    font-size: 13px;
    line-height: 1.55;
    color: var(--color-grey-dark, #555);
    resize: vertical;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.dt-rep-textarea:focus {
    outline: none;
    border-color: #d9534f;
    box-shadow: 0 0 0 3px rgba(180, 35, 24, .12);
}

.dt-rep-alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 14px;
    padding: 11px 13px;
    border: 1px solid #f5c2c3;
    border-radius: 12px;
    background: #fdecec;
    font-size: 12.5px;
    line-height: 1.5;
    color: #8f2226;
}

.dt-rep-alert[hidden] {
    display: none;
}

.dt-rep-alert i {
    margin-top: 2px;
}

.dt-rep-alert a {
    color: inherit;
    font-weight: 700;
}

.dt-rep-foot {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
    padding: 16px 22px 20px;
    border-top: 1px solid var(--dt-border);
}

.dt-rep-btn {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease;
}

.dt-rep-btn.is-ghost {
    border-color: var(--dt-border);
    background: var(--color-white, #fff);
    color: var(--color-grey-dark, #555);
}

.dt-rep-btn.is-ghost:hover {
    border-color: #c6cbd2;
    background: #f8f9fa;
}

.dt-rep-btn.is-danger {
    background: #b42318;
    color: #fff;
}

.dt-rep-btn.is-danger:hover {
    background: #91190f;
}

.dt-rep-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.dt-rep-btn .fa-spinner {
    animation: dt-rep-spin .8s linear infinite;
}

@keyframes dt-rep-spin {
    to { transform: rotate(360deg); }
}

/* Ecran de confirmation, une fois le signalement transmis */
.dt-rep-done {
    min-height: 0;
    padding: 34px 26px 30px;
    overflow-y: auto;
    text-align: center;
}

.dt-rep-done[hidden] {
    display: none;
}

.dt-rep-done-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e7f6ec;
    color: #1c7c3f;
    font-size: 22px;
}

.dt-rep-done h3 {
    margin: 0 0 7px;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-black, #16181d);
}

.dt-rep-done p {
    margin: 0 auto 20px;
    max-width: 340px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--dt-muted);
}

.dt-rep-done .dt-rep-btn {
    flex: 0 0 auto;
    min-width: 170px;
}

@media (max-width: 575.98px) {
    .dt-rep {
        padding: 0;
        align-items: flex-end;
    }

    .dt-rep-card {
        width: 100%;
        max-height: 92vh;
        max-height: 92dvh;
        border-radius: 18px 18px 0 0;
    }

    .dt-rep-foot {
        flex-direction: column-reverse;
    }
}

/* ---- Etats et alertes ---- */
.dt-note {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 16px;
    border-radius: 13px;
    font-size: 12.5px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.dt-note i { margin-top: 2px; }

.dt-note.is-warn {
    background: #fff8e6;
    border: 1px solid #ffe2a8;
    color: #8a5a00;
}

.dt-note.is-danger {
    background: #fdecec;
    border: 1px solid #f5c2c3;
    color: #8f2226;
}

.dt-note.is-info {
    background: #eef3fd;
    border: 1px solid #d3e0fa;
    color: #2c4e9c;
}

.dt-stock {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    background: #e8f7ee;
    color: #1a9d5c;
}

.dt-stock.is-low {
    background: #fff4e2;
    color: #a35f00;
}

.dt-stock.is-out {
    background: #fdecec;
    color: #b42318;
}

.dt-stock .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .dt-top {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .dt {
        padding: 18px 0 64px;
    }

    .dt-head-price {
        text-align: left;
    }

    .dt-card,
    .dt-box {
        padding: 17px;
    }

    .dt-gallery-nav {
        width: 36px;
        height: 36px;
    }

    .dt-thumb {
        flex: 0 0 78px;
        width: 78px;
        height: 54px;
    }

    .dt-map {
        height: 280px;
    }
}

/*------------Annonce details----------------*/
/* Galerie d'images */
.image-gallery {
  position: relative;
  width: 100%;
  height: 450px;
  background-color: #000;
  overflow: hidden;
}

.gallery-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.gallery-slides {
  display: flex;
  transition: transform 0.3s ease-in-out;
  height: 100%;
}

.gallery-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1a1a1a;
}

.gallery-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #333;
  transition: background-color 0.2s;
  z-index: 10;
}

.gallery-nav:hover {
  background-color: rgba(255, 255, 255, 1);
}

.gallery-nav.prev {
  left: 20px;
}

.gallery-nav.next {
  right: 20px;
}

.gallery-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.2s;
}

.indicator.active {
  background-color: rgba(255, 255, 255, 1);
}

/* Container principal */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.main-content {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
  margin-top: 20px;
}

/* Section gauche */
.left-section {
  padding: 30px;
  border-radius: 8px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #666;
}

.breadcrumb a {
  color: #ff6b35;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 15px;
  background-color: #e8f5e9;
  color: #2e7d32;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 15px;
}

.status-badge i {
  font-size: 14px;
}

h1 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.meta-info {
  display: none;
}

.meta-item {
  display: none;
}

.meta-label {
  display: none;
}

.meta-value {
  display: none;
}

.category-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: #fff3e0;
  color: #e65100;
  border-radius: 20px;
  font-size: 13px;
  margin-right: 10px;
  margin-bottom: 10px;
  font-weight: 500;
}

.category-tag i {
  font-size: 14px;
}

.location-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: #e3f2fd;
  color: #1565c0;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 10px;
  font-weight: 500;
}

.location-tag i {
  font-size: 14px;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.tabs-navigation {
  display: flex;
  gap: 30px;
  margin-bottom: 25px;
  border-bottom: 2px solid #e0e0e0;
}

.tab-link {
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: #666;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  bottom: -2px;
}

.tab-link:hover {
  color: #ff6b35;
}

.tab-link.active {
  color: #ff6b35;
  border-bottom-color: #ff6b35;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  margin-top: 25px;
  scroll-margin-top: 20px;
}

.content-section {
  width: 100%;
  scroll-margin-top: 20px;
  display: none;
}

.always-visible {
  display: block !important;
}

span.expired {
  background-color: #dc3545;
  height: 26px;
  width: 4rem;
  padding: 0 5px 0 5px;
  border-radius: 15px;
  font-size: 12px;
  display: flex;
  align-content: center;
  flex-wrap: wrap;
  justify-content: center;
  color: #fff;
  font-weight: 600;
}

.content-section.active {
  display: block;
  width: 100%;
}

.left-section-annonce,
.left-section-product {
  margin: 2rem;
}

.purchase-box {
  border: 1px solid;
  width: 50%;
  padding: 1rem;
  margin: 2rem;
}

.description {
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
}

.location-section {
  margin-top: 30px;
}

.map-container {
  width: 100%;
  height: 250px;
  background-color: #e0e0e0;
  border-radius: 8px;
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

/* Section droite */
.right-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.alert-box {
  background-color: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #856404;
}

.alert-icon {
  font-size: 18px;
}

.reservation-box {
  background-color: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.reservation-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.date-selector {
  margin-bottom: 15px;
}

.date-selector label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: #666;
}

.date-selector input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.reserve-button {
  width: 100%;
  padding: 15px;
  background-color: #ff6b35;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 15px;
}

.reserve-button:hover {
  background-color: #e55a2b;
}

.action-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.action-btn {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  background-color: white;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.action-btn:hover {
  border-color: #ff6b35;
  color: #ff6b35;
}

.btn-favorite.active {
  border-color: #ff6b35;
  color: #ff6b35;
}

.signal-btn {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  background-color: white;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

@media (max-width: 968px) {
  .main-content {
    grid-template-columns: 1fr;
  }

  .image-gallery {
    height: 300px;
  }
}

/*-------------Category_detail page--------------------*/
.main-container {
  display: flex;
  height: 100vh;
}

/* SIDEBAR FILTERS */
.filters-sidebar {
  width: 280px;
  background: white;
  padding: 20px;
  overflow-y: auto;
  border-right: 1px solid #e0e0e0;
  flex-shrink: 0;
  transition: margin-left 0.3s ease;
}

.filters-sidebar.hidden {
  margin-left: -280px;
}

.filters-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 30px;
  color: var(--color-black);
}

.filter-group {
  margin-bottom: 30px;
}

.filter-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gray);
  margin-bottom: 10px;
  display: block;
}

.search-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border 0.3s;
}

.search-input:focus {
  border-color: var(--color-primary);
}

.select-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  background: white;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23636e72' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}

.location-input {
  display: flex;
  align-items: center;
  gap: 10px;
}

.location-icon {
  color: var(--color-gray);
}

.price-range {
  margin-top: 15px;
}

.range-slider {
  width: 100%;
  height: 6px;
  background: var(--color-grey-light);
  border-radius: 3px;
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--color-primary);
  border-radius: 50%;
  cursor: pointer;
}

.filter-btn {
  width: 100%;
  padding: 12px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.filter-btn:hover {
  background: #e85a2a;
}

/* MAIN CONTENT */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* HEADER */
.content-header {
  background: white;
  padding: 20px 30px;
  border-bottom: 1px solid #e0e0e0;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  justify-content: space-between;
}

.header-categories {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.filter-pill:hover {
  background: #e85a2a;
}

.filter-pill i {
  font-size: 16px;
}

.categories-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 0;
  scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar {
  display: none;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 90px;
  cursor: pointer;
  transition: transform 0.2s;
}

.category-item:hover {
  transform: translateY(-2px);
}

.category-name {
  font-size: 12px;
  text-align: center;
  color: var(--color-gray);
  line-height: 1.3;
}

/* VIEW OPTIONS */
.view-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: white;
  border-bottom: 1px solid #e0e0e0;
}

.view-toggle {
  display: flex;
  gap: 5px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.view-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--color-gray);
}

.view-btn.active {
  background: var(--color-primary);
  color: white;
}

.view-btn:hover:not(.active) {
  background: #fff5f2;
}

.sort-dropdown {
  padding: 10px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

/* CONTENT AREA WITH MAP */
.content-area {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.listings-container {
  flex: 1;
  overflow-y: auto;
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.map-container {
  width: 300px;
  position: relative;
  flex-shrink: 0;
}

#map {
  width: 100%;
  height: 100%;
}

/* GRID VIEW - 3 COLONNES */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* ANNONCE CARDS */
.annonce-card,
.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.annonce-card:hover,
product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-image-container {
  position: relative;
  width: 100%;
  padding-top: 75%;
  overflow: hidden;
  background: #e0e0e0;
}

.card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.annonce-card:hover .card-image,
.product-card:hover .card-image {
  transform: scale(1.05);
}

.watermark {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 4px;
  z-index: 2;
}

.category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-primary);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  z-index: 3;
}

.favorite-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: white;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  z-index: 3;
  font-size: 18px;
  color: var(--color-primary);
}

.favorite-btn:hover {
  transform: scale(1.1);
}

.favorite-btn.active i {
  font-weight: 900;
}

.card-content {
  padding: 20px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: #2d3436;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.3;
}

.card-title-text {
  flex: 1;
}

.info-badge {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--color-black);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: help;
  font-weight: 700;
}

.card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-gray);
  margin-bottom: 16px;
}

.card-location i {
  font-size: 12px;
}

.card-price {
  font-size: 16px;
  color: var(--color-black);
  font-weight: 600;
}

/* LIST VIEW */
.listings-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.listings-list .annonce-card,
.listings-list .card-image {
  display: flex;
  flex-direction: row;
}

.listings-list .card-image-container {
  flex: 0 0 350px;
  padding-top: 0;
  height: 250px;
}

.listings-list .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

/* MAP CONTROLS */
.map-zoom-control {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.zoom-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--color-gray);
  transition: background 0.2s;
}

.zoom-btn:hover {
  background: var(--color-bg);
}

.zoom-btn:not(:last-child) {
  border-bottom: 1px solid #e0e0e0;
}

.locate-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
  z-index: 1000;
  transition: transform 0.2s;
}

.locate-btn:hover {
  transform: scale(1.1);
}

@media (max-width: 1400px) {
  .listings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1200px) {
  .map-container {
    display: none;
  }

  .content-area {
    margin-right: 0;
  }

  .listings-container {
    width: 100%;
  }
}

@media (max-width: 992px) {
  .filters-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 2000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .filters-sidebar.hidden {
    margin-left: -280px;
  }

  .listings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .categories-scroll {
    gap: 15px;
  }

  .category-item {
    min-width: 80px;
  }

  .listings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .listings-list .annonce-card {
    flex-direction: column;
  }

  .listings-list .card-image-container {
    flex: 0 0 auto;
    width: 100%;
    padding-top: 75%;
    height: auto;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid #E4DCCE;
  background: #F8FAFC;
  color: #15110D;
  padding: 70px 30px 0;
}

.footer-container {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid #E4DCCE;
}

.footer-section h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #15110D;
  margin: 0 0 20px;
}

.footer-section p {
  font-size: 14px;
  line-height: 1.7;
  color: #15110D;
  margin: 0 0 14px;
}

.footer-section a {
  color: #15110D;
  text-decoration: none;
  transition: color .2s ease;
}

.footer-section a:hover {
  color: var(--color-primary, #FF4D1C);
}

/* Logo + description */
.footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: 18px;
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #E4DCCE;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #15110D;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.social-icons a:hover {
  background: var(--color-primary, #FF4D1C);
  border-color: var(--color-primary, #FF4D1C);
  color: #fff;
}

.links-section ul,
.categories-section-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.links-section a,
.categories-section-footer a {
  font-size: 14px;
}

/* Contact */
.contact-section a {
  color: var(--color-primary, #FF4D1C);
}

/* Bas de page : copyright, liens legaux et credit sur une ligne */
.footer-bottom {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.footer-bottom p {
  font-size: 13px;
  color: #6B6259;
  margin: 0;
}

/* Liens vers les pages legales */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
}

.footer-legal a {
  font-size: 13px;
  color: #6B6259;
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--color-primary, #FF4D1C);
  text-decoration: underline;
}

/* Credit de l'agence */
.footer-credit a {
  font-weight: 600;
  color: #15110D;
  text-decoration: none;
}

.footer-credit a:hover {
  color: var(--color-primary, #FF4D1C);
  text-decoration: underline;
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }
}

/* Petit ecran : les trois blocs du bas de page s'empilent, centres */
@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}

.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--color-primary);
  color: var(--color-white);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 20px;
  box-shadow: var(--shadow-strong);
  transition: background var(--transition-speed);
}

.scroll-top:hover {
  background: var(--color-primary-dark);
}

.toast-success {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 320px;
  background: linear-gradient(135deg, #4ade80, #22d3ee);
  color: #fff;
  padding: 16px 20px;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Poppins', sans-serif;
  transform: translateX(400px);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
  z-index: 9999;
}

.toast-success.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-icon {
  font-size: 2rem;
}

.toast-message h4 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.toast-message p {
  margin: 4px 0 0 0;
  font-size: 0.95rem;
}

.toast-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.toast-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: left;
    text-align: left;
  }

  .footer-section {
    max-width: 500px;
    padding-left: 20px;
  }
}

/* ════════════════════════════════════════
   DROPDOWN USER-MENU (header public + connecté)
════════════════════════════════════════ */

.user-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  user-select: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.user-menu:hover {
  border-color: #d7dbe0;
  box-shadow: 0 4px 14px rgba(17, 17, 17, .07);
}

.user-menu.open {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 60, 0, .12);
}

/* ---- Avatar déclencheur ---- */
.user-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  background: #2b2f36;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  overflow: visible;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(255, 60, 0, .55);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* pastille d'état (compte non validé) */
.user-avatar.is-pending::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #f5a524;
  border: 2px solid #fff;
}

.username {
  font-size: 14px;
  font-weight: 600;
  color: #1f2328;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu > .fa-chevron-down {
  font-size: 10px;
  color: #9aa0a6;
  transition: transform .25s ease;
}

.user-menu.open > .fa-chevron-down {
  transform: rotate(180deg);
}

/* ════════ Panneau ════════ */
.user-dropdown {
  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(.98);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;

  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 290px;
  background: #fff;
  border: 1px solid #ebedf0;
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(17, 17, 17, .14), 0 2px 6px rgba(17, 17, 17, .05);
  padding: 8px;
  list-style: none;
  margin: 0;
  z-index: 9999;
  cursor: default;

  /* Hauteur bornee a toutes les largeurs : le menu s'est allonge (Archives)
     et, sur un ecran d'ordinateur peu haut, ses dernieres entrees
     — dont « Deconnexion » — passaient sous le bas de la fenetre. Le header
     est fixe : on retire sa hauteur et une marge. */
  max-height: calc(100vh - var(--header-height, 80px) - 24px);
  max-height: calc(100dvh - var(--header-height, 80px) - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #d7dbe0 transparent;
}

.user-dropdown::-webkit-scrollbar {
  width: 6px;
}

.user-dropdown::-webkit-scrollbar-track {
  background: transparent;
  margin: 12px 0;
}

.user-dropdown::-webkit-scrollbar-thumb {
  background: #d7dbe0;
  border-radius: 999px;
}

.user-dropdown::-webkit-scrollbar-thumb:hover {
  background: #b9bec5;
}

.user-menu.open .user-dropdown {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear 0s;
}

/* ---- En-tête identité ---- */
.user-dropdown .ud-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 14px 12px 16px;
  border-bottom: 1px solid #f1f3f5;
  margin-bottom: 6px;
  cursor: default;
}

.user-dropdown .ud-head:hover {
  background: transparent;
}

.ud-head-avatar {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #2b2f36;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ud-head-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ud-head-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ud-head-info strong {
  font-size: 15px;
  font-weight: 700;
  color: #1f2328;
  line-height: 1.3;
}

.ud-head-info .ud-mail {
  font-size: 12.5px;
  color: #8a9099;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 190px;
}

.ud-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  margin-top: 7px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
}

.ud-badge i {
  font-size: 10px;
}

.ud-badge.is-ok {
  background: rgba(255, 60, 0, .09);
  color: var(--color-primary);
}

.ud-badge.is-wait {
  background: rgba(245, 165, 36, .16);
  color: #a35f00;
}

.ud-badge.is-wait:hover {
  background: rgba(245, 165, 36, .26);
  color: #8a5000;
}

/* ---- Libellés de section ---- */
.user-dropdown .ud-label {
  padding: 12px 12px 6px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: #a2a8b0;
  cursor: default;
}

.user-dropdown .ud-label:hover {
  background: transparent;
}

/* ---- Séparateur ---- */
.user-dropdown .ud-sep {
  height: 1px;
  padding: 0;
  margin: 8px 12px;
  background: #f1f3f5;
  cursor: default;
}

.user-dropdown .ud-sep:hover {
  background: #f1f3f5;
}

/* ---- Items ---- */
.user-dropdown li {
  display: block;
  padding: 0;
  margin: 0;
  border: 0;
  font-size: 14px;
  color: #374151;
  border-radius: 11px;
  transition: background .15s ease;
}

.user-dropdown li a,
.user-dropdown li button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  border-radius: 11px;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.user-dropdown li a > span,
.user-dropdown li button > span {
  flex: 1;
  min-width: 0;
}

.user-dropdown li i {
  font-size: 15px;
  width: 20px;
  text-align: center;
  color: #8a9099;
  transition: color .15s ease;
}

.user-dropdown li a:hover,
.user-dropdown li button:hover {
  background: #f6f7f9;
  color: #111;
}

.user-dropdown li a:hover i,
.user-dropdown li button:hover i {
  color: var(--color-primary);
}

/* ---- Item actif ---- */
.user-dropdown li.active > a {
  background: rgba(255, 60, 0, .08);
  color: var(--color-primary);
  font-weight: 600;
}

.user-dropdown li.active > a i {
  color: var(--color-primary);
}

/* ---- Compteurs ---- */
.ud-count {
  flex: 0 0 auto;
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #eef0f3;
  color: #6b7280;
  font-size: 11.5px;
  font-weight: 700;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ud-count.is-alert {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 60, 0, .35);
}

/* ---- Déconnexion ---- */
.user-dropdown .ud-logout form {
  width: 100%;
  margin: 0;
  padding: 0;
}

.user-dropdown .ud-logout button {
  color: var(--color-primary);
  font-weight: 600;
}

.user-dropdown .ud-logout button i {
  color: var(--color-primary);
}

.user-dropdown .ud-logout button:hover {
  background: rgba(255, 60, 0, .08);
  color: var(--color-primary-dark, #e13800);
}

/* ---- Responsive ----
   Ancre au declencheur, le panneau deborde de l'ecran des que le header se
   resserre : sous 992px il est pose sur le viewport, sous le header. La
   hauteur bornee et le defilement interne sont portes par la regle de base. */
@media (max-width: 991.98px) {
  .user-dropdown {
    position: fixed;
    top: calc(var(--header-height, 80px) + 8px);
    left: 12px;
    right: 12px;
    width: auto;
    max-width: 360px;
    margin-left: auto;
  }
}

@media (max-width: 767.98px) {
  .user-menu {
    padding: 4px;
    gap: 6px;
    border-radius: 999px;
  }

  .user-menu .username,
  .user-menu > .fa-chevron-down {
    display: none;
  }

  .user-dropdown {
    left: 10px;
    right: 10px;
    max-width: none;
    border-radius: 16px;
  }

  /* Cibles tactiles plus genereuses */
  .user-dropdown li a,
  .user-dropdown li button {
    padding: 13px 12px;
    font-size: 14.5px;
  }

  .user-dropdown .ud-head {
    padding: 14px 12px 15px;
  }

  .user-dropdown .ud-label {
    padding: 12px 12px 5px;
  }

  .ud-head-info .ud-mail {
    max-width: 60vw;
  }
}

/* Ecrans courts (paysage telephone) : lignes resserrees pour montrer plus
   d'entrees avant de devoir faire defiler. */
@media (max-height: 520px) {
  .user-dropdown li a,
  .user-dropdown li button {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .user-dropdown .ud-head {
    padding: 10px 12px 12px;
  }

  .user-dropdown .ud-label {
    padding: 8px 12px 4px;
  }
}

#ad-link,
#product-link {
  text-decoration: none;
}

#card-element {
  border: 1px solid #ccc;
  padding: 12px;
  border-radius: 6px;
  background-color: white;
  min-height: 40px;
}

.StripeElement {
  width: 100%;
  padding: 12px 15px;
}

.StripeElement--focus {
  border-color: #635bff;
}

.StripeElement--invalid {
  border-color: #fa755a;
}

/* product show */
.toggle-switch {
  position: relative;
  display: inline-block;
}

.toggle-switch input[type="checkbox"] {
  display: none;
}

.toggle-label {
  display: block;
  width: 50px;
  height: 26px;
  background: #dee2e6;
  border-radius: 13px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.toggle-label::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: all 0.3s;
}

.toggle-switch input[type="checkbox"]:checked+.toggle-label {
  background: #28a745;
}

.toggle-switch input[type="checkbox"]:checked+.toggle-label::after {
  left: 27px;
}

.suggestions {
  list-style: none;
  border: 1px solid #ccc;
  background: white;
  max-height: 150px;
  overflow-y: auto;
  padding: 0;
  margin: 0;
  z-index: 999;
  width: 100%;
}

.suggestions li {
  padding: 8px;
  cursor: pointer;
}

.suggestions li:hover {
  background: #eee;
}

.radius-2 {
  border-radius: 4px;
}

.expired-card,
.notActive-card {
  opacity: 0.5;
  filter: grayscale(100%);
}

.reservation-datepicker{
    width:100%;
    padding:14px 18px;
    border:1px solid #e5e7eb;
    border-radius:12px;
    background:#fff;
    cursor:pointer;
    font-size:15px;
    font-weight:500;
}

.date-label{
    display:block;
    margin-bottom:10px;
    font-weight:600;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #ff6b35 !important;
    border-color: #ff6b35 !important;
    color: #fff !important;
}

.flatpickr-day.inRange {
    background: #ff6b35 !important;
    border-color: #ff6b35 !important;
    color: #fff !important;
    box-shadow: none !important;
}

.flatpickr-day:hover {
    background: #ff6b35 !important;
    border-color: #ff6b35 !important;
    color: #fff !important;
}

.flatpickr-day.inRange:hover,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background: #ff6b35 !important;
    border-color: #ff6b35 !important;
    color: #fff !important;
}

.flatpickr-day.today {
    border-color: #ff6b35 !important;
}

.flatpickr-day.today:hover {
    background: #ff6b35 !important;
    color: #fff !important;
}

.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected,
.flatpickr-day.inRange {
    background: #ff6b35 !important;
    border-color: #ff6b35 !important;
    color: #fff !important;
    box-shadow: none !important;
}

.flatpickr-day.startRange:before,
.flatpickr-day.endRange:before,
.flatpickr-day.startRange:after,
.flatpickr-day.endRange:after {
    display: none !important;
}

/* ==========================================================================
   PAGE SERVICE / CATÉGORIE (service-standard.blade.php)
   --------------------------------------------------------------------------
   La page est un empilement de blocs : hero, categories, carte, filtres +
   grille, populaires. Tous sont cales sur le meme contenant
   (--cs-max-width + --cs-pad) : le hero se decalait de 20px par rapport au
   reste parce qu'il avait sa propre gouttiere.

   Les variables restent sur :root et non sur `.cs-page` : la carte d'offre
   (.cs-card, composant <x-services.listing-card />) est partagee avec la page
   location, elle vit donc hors de `.cs-page`.
   ========================================================================== */
:root {
    --cs-radius-lg: 16px;
    --cs-radius-md: 12px;
    --cs-radius-sm: 10px;
    --cs-max-width: 1320px;
    --cs-pad: 20px;
    --cs-gap: 20px;
    --cs-block: 52px;

    /* Filets et gris propres a ces pages. Le `--color-divider` global (#ddd)
       cerne trop : sur une grille de cartes, le contour prenait le pas sur
       le contenu. */
    --cs-line: #e7e9ec;
    --cs-line-strong: #d8dbe0;
    --cs-ink-soft: #6b7280;
    --cs-tint: #fff5f1;
    --cs-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    --cs-shadow-hover: 0 12px 26px rgba(16, 24, 40, .10);
    --cs-control-h: 42px;
}

.cs-page {
    max-width: var(--cs-max-width);
    margin: 0 auto;
    padding: 0 var(--cs-pad) 72px;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--color-black);
}

/* --------------------------------------------------------------------------
   Hero
   Une banniere sombre, photo du service en fond derriere un voile : la bande
   peche precedente reprenait le meme rose que les cartes et le fil d'Ariane
   s'y noyait. Le hero est pose avant `.cs-page` dans la vue et reprend la
   meme gouttiere interne, donc le fil d'Ariane s'aligne sur les blocs qui le
   suivent.
   -------------------------------------------------------------------------- */
.cs-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #12141a;
    padding: 40px 0 46px;
    margin-bottom: var(--cs-block);
}

.cs-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.cs-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Deux couches : un degrade qui garde le texte lisible a gauche et laisse
   respirer la photo a droite, puis une lueur orange qui rattache la banniere
   a la couleur de la marque. */
.cs-hero-veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(120% 150% at 100% 0%, rgba(255, 60, 0, .34) 0%, rgba(255, 60, 0, 0) 58%),
        linear-gradient(100deg, rgba(12, 13, 17, .96) 0%, rgba(12, 13, 17, .88) 46%, rgba(18, 12, 9, .58) 100%);
}

/* Sans photo, la banniere ne doit pas rester un aplat noir. */
.cs-hero:not(.has-image) .cs-hero-veil {
    background:
        radial-gradient(110% 140% at 100% 0%, rgba(255, 60, 0, .40) 0%, rgba(255, 60, 0, 0) 60%),
        linear-gradient(115deg, #12141a 0%, #1b1d25 55%, #241a17 100%);
}

.cs-hero-inner {
    position: relative;
    max-width: var(--cs-max-width);
    margin: 0 auto;
    padding: 0 var(--cs-pad);
}

/* Le glyphe du service en filigrane, pour que la banniere ne soit pas
   qu'un bloc de texte quand le service n'a pas de photo. */
.cs-hero-glyph {
    position: absolute;
    right: var(--cs-pad);
    top: 50%;
    transform: translateY(-50%);
    font-size: 132px;
    line-height: 1;
    color: rgba(255, 255, 255, .07);
    pointer-events: none;
}

.cs-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, .6);
    margin-bottom: 18px;
}

.cs-breadcrumb-link {
    color: rgba(255, 255, 255, .6);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed) ease;
}

.cs-breadcrumb-link:hover {
    color: var(--color-white);
}

.cs-breadcrumb-sep {
    font-size: 9px;
    color: rgba(255, 255, 255, .38);
}

.cs-breadcrumb-current {
    color: #ff7a4d;
    font-weight: 600;
}

/* Nom du service au-dessus du titre : sur une page de categorie, le titre
   est celui de la categorie et le service se perdait. */
.cs-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 13px;
    border-radius: var(--border-radius-round);
    background: rgba(255, 60, 0, .16);
    border: 1px solid rgba(255, 122, 77, .42);
    color: #ff8b62;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 14px;
}

.cs-hero-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.12;
    color: var(--color-white);
    margin: 0 0 12px;
}

.cs-hero-subtitle {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .74);
    margin: 0;
    max-width: 620px;
}

/* Les pastilles de comptage reprennent `.olten-count`, partage avec les
   pages covoiturage et location, retournees pour un fond sombre. */
.cs-hero .olten-count {
    margin-top: 20px;
}

.cs-hero .olten-count-pill {
    background: rgba(255, 255, 255, .10);
    border-color: rgba(255, 255, 255, .20);
    color: var(--color-white);
    backdrop-filter: blur(4px);
}

.cs-hero .olten-count-pill i {
    color: #ff8b62;
}

.cs-hero .olten-count-note {
    color: rgba(255, 255, 255, .6);
}

/* --------------------------------------------------------------------------
   Titre de section (Categories, Toutes les offres, Les plus consultees)
   Le libelle et sa note etaient pousses aux deux bords opposes de la page :
   de loin, la note ne se rattachait plus a rien. Ils sont empiles.
   -------------------------------------------------------------------------- */
.cs-section-head {
    margin-bottom: 20px;
}

.cs-section-title,
.cs-listings-title {
    position: relative;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 0;
    padding-bottom: 12px;
}

.cs-section-title::after,
.cs-listings-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 44px;
    height: 3px;
    border-radius: var(--border-radius-round);
    background: var(--color-primary);
}

.cs-section-hint {
    display: block;
    font-size: 13.5px;
    color: var(--cs-ink-soft);
    margin-top: 10px;
}

/* --------------------------------------------------------------------------
   Categories
   Les vignettes occupaient trois rangees pleines avant meme la premiere
   annonce. En pastilles, les treize categories tiennent sur deux lignes et
   la page va droit aux offres. Meme dessin que les pastilles de la page
   location (.lv-chip), pour qu'une categorie se choisisse partout pareil.
   -------------------------------------------------------------------------- */
.cs-categories-block {
    margin-bottom: var(--cs-block);
}

.cs-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cs-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid var(--cs-line-strong);
    border-radius: var(--border-radius-round);
    background: var(--color-white);
    color: var(--color-black);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color var(--transition-speed) ease,
                background var(--transition-speed) ease,
                color var(--transition-speed) ease;
}

.cs-chip i {
    font-size: 12px;
    color: var(--color-primary);
}

.cs-chip:hover {
    border-color: var(--color-primary);
    color: var(--color-black);
}

.cs-chip.is-active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.cs-chip.is-active i,
.cs-chip.is-active:hover {
    color: var(--color-white);
}

/* Categorie sans offre : elle reste cliquable, mais le compteur ayant
   disparu de la pastille, c'est le gris qui dit qu'il n'y a rien. */
.cs-chip.is-empty:not(.is-active) {
    background: #fbfbfc;
    border-color: var(--cs-line);
    color: #6b7280;
}

.cs-chip.is-empty:not(.is-active) i {
    color: #a2a8b0;
}

.cs-chip.is-empty:not(.is-active):hover {
    border-color: var(--color-primary);
    color: var(--color-black);
}

/* --------------------------------------------------------------------------
   Carte des annonces
   -------------------------------------------------------------------------- */
.cs-map-card {
    background: var(--color-white);
    border: 1px solid var(--cs-line);
    border-radius: var(--cs-radius-lg);
    box-shadow: var(--cs-shadow);
    padding: 20px;
    margin-bottom: var(--cs-block);
}

.cs-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.cs-map-title {
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--cs-ink-soft);
    margin: 0;
    max-width: 560px;
}

/* Pastille sobre : en orange plein, elle se lisait comme un bouton et
   entrait en concurrence avec les vraies actions de la page. */
.cs-map-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--cs-tint);
    border: 1px solid #ffd9c8;
    color: var(--color-primary);
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: var(--border-radius-round);
    white-space: nowrap;
}

.cs-map-frame {
    border-radius: var(--cs-radius-md);
    overflow: hidden;
    border: 1px solid var(--cs-line);
}

.cs-map-canvas {
    width: 100%;
    height: 340px;
    background: var(--color-grey-light);
    z-index: 0;
}

.cs-map-placeholder {
    border: 1px dashed var(--cs-line-strong);
    border-radius: var(--cs-radius-md);
    background: #fafbfc;
    padding: 44px 20px;
    text-align: center;
    color: var(--cs-ink-soft);
}

.cs-map-placeholder i {
    font-size: 30px;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.cs-map-placeholder-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-black);
    margin: 0 0 6px;
}

.cs-map-placeholder-text {
    font-size: 13px;
    margin: 0;
}

/* Bulle d'un marqueur */
.cs-map-popup {
    display: block;
    width: 190px;
    text-decoration: none;
    color: var(--color-black);
}

.cs-map-popup img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: var(--cs-radius-sm);
    margin-bottom: 8px;
}

.cs-map-popup-cat {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--color-primary);
    font-weight: 700;
}

.cs-map-popup strong {
    display: block;
    font-size: 13.5px;
    margin: 2px 0 4px;
}

.cs-map-popup-address {
    display: block;
    font-size: 12px;
    color: var(--cs-ink-soft);
}

.cs-map-popup-price {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 6px;
}

/* --------------------------------------------------------------------------
   Rail de filtres + resultats
   Les criteres tenaient dans une rangee de menus deroulants : il fallait
   ouvrir chaque menu pour savoir ce qu'il proposait, et la marge gauche de
   la page restait vide. Ils occupent maintenant cette marge, en colonne, et
   se lisent tous d'un coup.
   -------------------------------------------------------------------------- */
.cs-listings {
    display: grid;
    grid-template-columns: 288px minmax(0, 1fr);
    align-items: start;
    gap: 28px;
    margin-bottom: var(--cs-block);
}

.cs-results {
    min-width: 0;
}

/* Le rail suit le defilement : sur une longue grille, les filtres restent
   a portee sans remonter en haut de page. */
.cs-facets {
    position: sticky;
    top: calc(var(--header-height) + 16px);
    max-height: calc(100vh - var(--header-height) - 32px);
    overflow-y: auto;
    background: var(--color-white);
    border: 1px solid var(--cs-line);
    border-radius: var(--cs-radius-lg);
    box-shadow: var(--cs-shadow);
    padding: 18px;
}

.cs-facets-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--cs-line);
}

.cs-facets-head-title {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    font-weight: 700;
}

.cs-facets-head-title i {
    color: var(--color-primary);
    font-size: 13px;
}

/* Bouton de repli : n'existe que sous 900px, quand le rail passe au-dessus
   des resultats. */
.cs-facets-toggle {
    display: none;
}

.cs-facets-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    margin-left: 6px;
    border-radius: var(--border-radius-round);
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 11px;
    font-weight: 700;
}

.cs-facets-search {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 42px;
    padding: 0 14px;
    background: var(--color-white);
    border: 1px solid var(--cs-line-strong);
    border-radius: var(--cs-radius-sm);
    color: var(--cs-ink-soft);
    margin-bottom: 16px;
    transition: border-color var(--transition-speed) ease,
                box-shadow var(--transition-speed) ease;
}

.cs-facets-search:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 60, 0, .12);
}

.cs-facets-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-family);
    font-size: 13.5px;
    color: var(--color-black);
}

/* --- Une section du rail --- */
.cs-facet {
    border-top: 1px solid var(--cs-line);
    padding: 14px 0;
}

.cs-facet:first-of-type {
    border-top: none;
    padding-top: 0;
}

.cs-facet-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    font-family: var(--font-family);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--color-black);
    text-align: left;
    cursor: pointer;
}

.cs-facet-name {
    flex: 0 0 auto;
}

/* Valeur retenue, rappelee sur l'en-tete : la section repliee dit quand
   meme ce qu'elle filtre. */
.cs-facet-value {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
}

.cs-facet-caret {
    flex: 0 0 auto;
    margin-left: auto;
    font-size: 10px;
    color: var(--cs-ink-soft);
    transition: transform var(--transition-speed) ease;
}

.cs-facet-value + .cs-facet-caret {
    margin-left: 0;
}

.cs-facet.is-open .cs-facet-caret {
    transform: rotate(180deg);
}

.cs-facet-panel {
    padding-top: 12px;
}

.cs-facet-panel[hidden] {
    display: none;
}

.cs-facet-field {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--cs-line-strong);
    border-radius: var(--cs-radius-sm);
    color: var(--cs-ink-soft);
    margin-bottom: 10px;
}

.cs-facet-field:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 60, 0, .12);
}

.cs-facet-field input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-family);
    font-size: 13px;
    color: var(--color-black);
}

/* Liste de villes bornee en hauteur : un service a cent villes pousserait
   le reste du rail hors de l'ecran. */
.cs-facet-options {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 176px;
    overflow-y: auto;
}

.cs-facet-option {
    text-align: left;
    padding: 7px 10px;
    border: none;
    border-radius: var(--cs-radius-sm);
    background: transparent;
    font-family: var(--font-family);
    font-size: 13px;
    color: var(--color-black);
    cursor: pointer;
    transition: background var(--transition-speed) ease;
}

.cs-facet-option:hover {
    background: var(--color-grey-light);
}

.cs-facet-option.is-on {
    background: var(--cs-tint);
    color: var(--color-primary);
    font-weight: 600;
}

.cs-facet-radios {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cs-facet-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: var(--cs-radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: background var(--transition-speed) ease;
}

.cs-facet-radio:hover {
    background: var(--color-grey-light);
}

.cs-facet-radio input {
    accent-color: var(--color-primary);
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.cs-facet-radio:has(input:checked) {
    background: var(--cs-tint);
}

.cs-facet-radio:has(input:checked) span {
    color: var(--color-primary);
    font-weight: 600;
}

.cs-facet-clear {
    margin-top: 10px;
    padding: 0;
    border: none;
    background: transparent;
    font-family: var(--font-family);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--cs-ink-soft);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color var(--transition-speed) ease;
}

.cs-facet-clear:hover {
    color: var(--color-primary);
}

/* Colle au bas du rail : quand la liste des criteres depasse la hauteur
   disponible, le rail defile en interne et le bouton d'application sortait
   de vue — on ne savait plus comment valider sa recherche. */
.cs-facets-foot {
    position: sticky;
    bottom: -18px;
    padding: 16px 0 0;
    margin-top: 4px;
    border-top: 1px solid var(--cs-line);
    background: var(--color-white);
}

.cs-facet-apply {
    width: 100%;
    height: 42px;
    border: none;
    border-radius: var(--cs-radius-sm);
    background: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-family);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-speed) ease;
}

.cs-facet-apply:hover {
    background: var(--color-primary-dark);
}

/* --- Curseur de prix a deux poignees --- */
.cs-price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.cs-price-inputs input {
    flex: 1 1 0;
    min-width: 0;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--cs-line-strong);
    border-radius: var(--cs-radius-sm);
    font-family: var(--font-family);
    font-size: 13px;
    color: var(--color-black);
    /* Les fleches natives mangent la place du montant. */
    -moz-appearance: textfield;
    appearance: textfield;
}

.cs-price-inputs input::-webkit-outer-spin-button,
.cs-price-inputs input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cs-price-inputs input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 60, 0, .12);
}

.cs-price-sep {
    flex: 0 0 auto;
    color: var(--cs-ink-soft);
}

/* Deux `input[range]` superposes. Ils ne recoivent le clic que sur leur
   poignee (`pointer-events` retire de la piste), sinon celui du dessus
   avalerait tous les clics et l'autre poignee serait inatteignable. */
.cs-price-slider {
    position: relative;
    height: 24px;
    margin-bottom: 16px;
}

.cs-price-track,
.cs-price-fill {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    border-radius: var(--border-radius-round);
}

.cs-price-track {
    left: 0;
    right: 0;
    background: var(--cs-line-strong);
}

.cs-price-fill {
    background: var(--color-primary);
}

.cs-price-slider input[type="range"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    pointer-events: none;
}

.cs-price-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 3px solid var(--color-white);
    box-shadow: 0 1px 4px rgba(16, 24, 40, .28);
    cursor: grab;
}

.cs-price-slider input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 3px solid var(--color-white);
    box-shadow: 0 1px 4px rgba(16, 24, 40, .28);
    cursor: grab;
}

.cs-price-slider input[type="range"]::-moz-range-track {
    background: transparent;
}

.cs-price-slider input[type="range"]:focus-visible::-webkit-slider-thumb {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.cs-price-brackets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cs-price-bracket {
    padding: 6px 10px;
    border: 1px solid var(--cs-line-strong);
    border-radius: var(--border-radius-round);
    background: var(--color-white);
    font-family: var(--font-family);
    font-size: 11.5px;
    font-weight: 500;
    color: var(--color-black);
    cursor: pointer;
    transition: background var(--transition-speed) ease,
                border-color var(--transition-speed) ease,
                color var(--transition-speed) ease;
}

.cs-price-bracket:hover,
.cs-price-bracket.is-on {
    background: var(--cs-tint);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* --- Criteres poses --- */
.cs-facets-active {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.cs-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    padding: 5px 10px;
    border: 1px solid var(--cs-line);
    border-radius: var(--cs-radius-sm);
    background: var(--color-grey-light);
    font-size: 12px;
    font-weight: 600;
    color: var(--color-black);
    text-decoration: none;
    transition: background var(--transition-speed) ease,
                border-color var(--transition-speed) ease,
                color var(--transition-speed) ease;
}

.cs-tag i {
    font-size: 10px;
    color: var(--cs-ink-soft);
}

.cs-tag:hover {
    background: var(--cs-tint);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.cs-tag:hover i {
    color: var(--color-primary);
}

.cs-tag-clear {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--cs-ink-soft);
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.cs-tag-clear:hover {
    color: var(--color-primary);
}

/* Texte reserve aux lecteurs d'ecran : la croix seule ne dit pas ce qu'elle
   retire. */
.cs-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   En-tete de la grille d'offres
   -------------------------------------------------------------------------- */
.cs-listings-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}


/* --------------------------------------------------------------------------
   Bascule Liste / Carte
   La carte occupait un bloc entier au-dessus des filtres, que le visiteur
   devait franchir a chaque visite. Elle partage maintenant la place de la
   grille : deux onglets, un seul contenu visible.
   -------------------------------------------------------------------------- */
.cs-view-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: #f1f2f4;
    border: 1px solid var(--cs-line);
    border-radius: var(--border-radius-round);
}

.cs-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 18px;
    border: none;
    border-radius: var(--border-radius-round);
    background: transparent;
    color: var(--cs-ink-soft);
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-speed) ease,
                color var(--transition-speed) ease,
                box-shadow var(--transition-speed) ease;
}

.cs-view-btn i {
    font-size: 12px;
}

.cs-view-btn:hover {
    color: var(--color-black);
}

.cs-view-btn[aria-selected="true"] {
    background: #16181d;
    color: var(--color-white);
    box-shadow: 0 2px 6px rgba(16, 24, 40, .18);
}

.cs-view-btn[aria-selected="true"]:hover {
    color: var(--color-white);
}

/* `!important` : les panneaux portent aussi des regles d'affichage (grille,
   carte), qui reprendraient la main sur l'attribut `hidden`. */
.cs-panel[hidden] {
    display: none !important;
}

/* --------------------------------------------------------------------------
   Popin d'une offre reperee sur la carte
   La bulle Leaflet etait minuscule, coupee par les bords de la carte et
   impossible a lire sur mobile. Un clic sur un repere ouvre desormais une
   vraie fenetre.
   -------------------------------------------------------------------------- */
.cs-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cs-modal[hidden] {
    display: none;
}

body.cs-modal-open {
    overflow: hidden;
}

.cs-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 13, 17, .62);
    backdrop-filter: blur(2px);
}

.cs-modal-card {
    position: relative;
    width: min(420px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: var(--color-white);
    border-radius: var(--cs-radius-lg);
    box-shadow: 0 24px 60px rgba(16, 24, 40, .28);
    animation: cs-modal-in .18s ease-out;
}

@keyframes cs-modal-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.98);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cs-modal-card {
        animation: none;
    }
}

.cs-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: #16181d;
    font-size: 15px;
    cursor: pointer;
    box-shadow: var(--cs-shadow);
    transition: background var(--transition-speed) ease,
                color var(--transition-speed) ease;
}

.cs-modal-close:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

.cs-modal-media {
    aspect-ratio: 16 / 10;
    background: var(--color-grey-light);
}

.cs-modal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cs-modal-body {
    padding: 18px;
}

.cs-modal-cat {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.cs-modal-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px;
}

.cs-modal-address {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 13px;
    color: var(--cs-ink-soft);
    margin: 0 0 16px;
}

.cs-modal-address i {
    margin-top: 2px;
    color: var(--color-primary);
}

.cs-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--cs-line);
}

.cs-modal-price {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.cs-modal-btn {
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--cs-radius-sm);
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition-speed) ease;
}

.cs-modal-btn:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Grille et carte d'offre
   Partagees avec la page location : toute retouche ici s'y voit aussi.
   -------------------------------------------------------------------------- */
.cs-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--cs-gap);
    margin-bottom: 28px;
}

.cs-cards-grid--four {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.cs-card {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border: 1px solid var(--cs-line);
    border-radius: var(--cs-radius-lg);
    overflow: hidden;
    box-shadow: var(--cs-shadow);
    transition: box-shadow var(--transition-speed) ease,
                transform var(--transition-speed) ease,
                border-color var(--transition-speed) ease;
}

.cs-card:hover {
    border-color: var(--cs-line-strong);
    box-shadow: var(--cs-shadow-hover);
    transform: translateY(-3px);
}

.cs-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--color-grey-light);
    overflow: hidden;
}

.cs-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}

.cs-card:hover .cs-card-media img {
    transform: scale(1.04);
}

/* Etiquettes du haut de la carte : le type de l'offre, puis son service.
   Elles partagent une rangee qui passe a la ligne quand la carte est
   etroite. Posees chacune de son cote (le service ancre a droite), elles se
   chevauchaient des que le nom du service etait long (« Prestations de
   services »). La rangee s'arrete avant le bouton favori. */
.cs-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 52px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px;
    pointer-events: none;
}

/* Nature de l'offre : la grille melange annonces (location) et produits (vente) */
.cs-badge-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: var(--border-radius-round);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    background: rgba(17, 17, 17, .78);
    color: var(--color-white);
    backdrop-filter: blur(4px);
}

.cs-badge-type i {
    font-size: 10px;
}

.cs-badge-type.is-product {
    background: rgba(63, 106, 216, .92);
}

.cs-badge-type.is-ad {
    background: rgba(26, 157, 92, .92);
}

/* Service de l'offre, a la suite du type. Un nom trop long pour la carte
   est coupe plutot que d'ecrire sur deux lignes dans la pastille. */
.cs-badge-location {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    padding: 5px 10px;
    border-radius: var(--border-radius-round);
}

.cs-badge-delivery {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, .95);
    color: var(--color-black);
    font-size: 10.5px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: var(--border-radius-round);
    box-shadow: var(--cs-shadow);
}

.cs-badge-delivery i {
    color: var(--color-primary);
    font-size: 10px;
}

.cs-favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .92);
    color: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    box-shadow: var(--cs-shadow);
    transition: color var(--transition-speed) ease,
                background var(--transition-speed) ease;
}

.cs-favorite-btn:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

/* `flex: 1` sur le corps et `margin-top: auto` sur le pied : dans une
   rangee, les prix et les boutons s'alignent meme quand les titres n'ont
   pas le meme nombre de lignes. */
.cs-card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.cs-card-meta {
    font-size: 11.5px;
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin: 0 0 6px;
}

.cs-card-meta i {
    margin-right: 5px;
}

.cs-card-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.35;

    /* Deux lignes au maximum : un titre a rallonge poussait le pied de la
       carte vers le bas et cassait l'alignement de la rangee. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cs-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--cs-ink-soft);
    margin: 0 0 10px;
}

.cs-card-location i {
    flex: 0 0 auto;
    color: var(--color-primary);
    opacity: .8;
}

.cs-card-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 11.5px;
    color: var(--cs-ink-soft);
    margin: 0 0 14px;
}

.cs-card-stats i {
    margin-right: 4px;
}

.cs-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--cs-line);
}

.cs-card-price {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.cs-price-label {
    font-size: 10.5px;
    color: var(--cs-ink-soft);
}

.cs-price-value {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.01em;
}

/* Le suffixe distingue « / jour » (location) de « l'unite » (vente) */
.cs-price-value small {
    font-size: 11px;
    font-weight: 500;
    color: var(--cs-ink-soft);
    margin-left: 2px;
}

.cs-btn-details {
    background: var(--color-bg-body);
    border: 1px solid var(--cs-line-strong);
    color: var(--color-black);
    font-size: 12.5px;
    font-weight: 600;
    padding: 9px 15px;
    border-radius: var(--cs-radius-sm);
    text-decoration: none;
    white-space: nowrap;
    font-family: var(--font-family);
    transition: background var(--transition-speed) ease,
                color var(--transition-speed) ease,
                border-color var(--transition-speed) ease;
}

.cs-btn-details:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Pagination et bloc « les plus consultees »
   -------------------------------------------------------------------------- */
.cs-pagination {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.cs-pagination nav {
    font-size: 13px;
}

.cs-pagination svg {
    width: 16px;
    height: 16px;
}

.cs-popular {
    margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   Adaptations
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .cs-listings {
        grid-template-columns: 248px minmax(0, 1fr);
        gap: 20px;
    }

    .cs-facets {
        padding: 14px;
    }
}

@media (max-width: 900px) {
    .cs-listings {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Colle en haut, le rail deplie masquerait la grille : il redevient un
       bloc ordinaire, replie par defaut. */
    .cs-facets {
        position: static;
        max-height: none;
        overflow: visible;
        padding: 0;
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .cs-facets-head {
        display: none;
    }

    .cs-facets-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        height: 46px;
        padding: 0 16px;
        background: var(--color-white);
        border: 1px solid var(--cs-line-strong);
        border-radius: var(--cs-radius-sm);
        font-family: var(--font-family);
        font-size: 13.5px;
        font-weight: 600;
        color: var(--color-black);
        cursor: pointer;
    }

    .cs-facets-toggle span {
        display: inline-flex;
        align-items: center;
        gap: 9px;
    }

    .cs-facets-toggle i:first-child {
        color: var(--color-primary);
    }

    .cs-facets.is-unfolded .cs-facets-toggle .cs-facet-caret {
        transform: rotate(180deg);
    }

    .cs-facets-body {
        display: none;
        margin-top: 12px;
        padding: 16px;
        background: var(--color-white);
        border: 1px solid var(--cs-line);
        border-radius: var(--cs-radius-lg);
        box-shadow: var(--cs-shadow);
    }

    .cs-facets.is-unfolded .cs-facets-body {
        display: block;
    }

    .cs-facets-foot {
        position: static;
    }
}

@media (max-width: 1024px) {
    :root {
        --cs-block: 44px;
    }

    .cs-map-canvas {
        height: 280px;
    }
}

@media (max-width: 768px) {
    :root {
        --cs-pad: 16px;
        --cs-block: 36px;
        --cs-gap: 14px;
    }

    .cs-page {
        padding: 0 var(--cs-pad) 48px;
    }

    .cs-hero {
        padding: 24px 0 26px;
    }

    .cs-hero-title {
        font-size: 24px;
    }

    .cs-hero-subtitle {
        font-size: 14px;
    }

    .cs-section-title,
    .cs-listings-title {
        font-size: 19px;
    }

    .cs-map-card {
        padding: 16px;
    }

    .cs-map-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cs-map-title {
        font-size: 15.5px;
    }


    /* La bascule passe sous le titre et occupe la largeur : deux cibles
       tactiles pleines plutot que deux pastilles serrees dans un coin. */
    .cs-view-switch {
        width: 100%;
    }

    .cs-view-btn {
        flex: 1 1 0;
        justify-content: center;
        padding: 0 12px;
    }

    .cs-cards-grid,
    .cs-cards-grid--four {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 480px) {
    .cs-hero-title {
        font-size: 21px;
    }

    .cs-chips {
        gap: 8px;
    }

    .cs-chip {
        padding: 8px 13px;
        font-size: 12px;
    }

    .cs-map-canvas {
        height: 220px;
    }

    .cs-facet,
    .cs-facet-btn {
        flex: 1 1 auto;
        width: 100%;
        justify-content: space-between;
    }

    .cs-facet-foot {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 10px;
    }

    .cs-facet-apply {
        width: 100%;
    }

    .cs-cards-grid,
    .cs-cards-grid--four {
        grid-template-columns: 1fr;
    }

    .cs-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .cs-btn-details {
        width: 100%;
        text-align: center;
    }

    .cs-badge-delivery {
        font-size: 10px;
        padding: 4px 8px;
    }
}

/* ==========================================================================
   COMPTEUR DE RESULTATS
   --------------------------------------------------------------------------
   Le nombre de resultats sous un titre de section : des pastilles pour les
   chiffres, une note en clair pour dire de quoi ils parlent. Partage par la
   page covoiturage et la page location.
   ========================================================================== */
.olten-count {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 0;
}

.olten-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border: 1px solid var(--color-divider);
    border-radius: var(--border-radius-round, 999px);
    background: var(--color-grey-light);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--color-black);
    white-space: nowrap;
}

.olten-count-pill i {
    font-size: 11px;
    color: var(--color-primary);
}

.olten-count-note {
    font-size: 12.5px;
    color: var(--color-grey-dark);
}

/* ==========================================================================
   PAGE LOCATION DE VOITURE (location-voiture.blade.php)
   ========================================================================== */
.lv-page {
    --lv-max-width: 1180px;
    --lv-gap: 20px;
}

.lv-page * {
    box-sizing: border-box;
}

.lv-page {
    font-family: var(--font-family);
    color: var(--color-black);
}

/* Hero */
.lv-hero {
    position: relative;
    width: 100%;
    min-height: 480px;
    padding: 110px 0 90px;
    overflow: hidden;
}

.lv-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.lv-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lv-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.25) 100%);
}

.lv-hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--lv-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.lv-hero-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.lv-hero-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-white);
    margin: 0 0 16px;
}

.lv-hero-title-accent {
    color: var(--color-primary);
}

.lv-hero-subtitle {
    font-size: 15px;
    color: rgba(255,255,255,.85);
    max-width: 460px;
    margin: 0;
    line-height: 1.5;
}

.lv-search-section {
    position: relative;
    z-index: 2;
    max-width: var(--lv-max-width);
    margin: -70px auto 0;
    padding: 0 20px;
}

.lv-search-form {
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: var(--shadow-strong);
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(5, 1fr) auto;
    gap: 14px;
    align-items: end;
}

.lv-search-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lv-search-field label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--color-grey-dark);
    text-transform: uppercase;
    letter-spacing: .02em;
}

.lv-search-input {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--color-divider);
    border-radius: 8px;
    padding: 10px 12px;
}

.lv-search-input i {
    color: var(--color-primary);
    font-size: 13px;
}

.lv-search-input input,
.lv-search-input select {
    border: none;
    outline: none;
    font-size: 13px;
    font-family: var(--font-family);
    background: transparent;
    width: 100%;
    color: var(--color-black);
}

.lv-search-btn {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 24px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    font-family: var(--font-family);
    transition: opacity var(--transition-speed) ease;
}

.lv-search-btn:hover {
    opacity: .9;
}

.lv-section-title {
    position: relative;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 24px;
    padding-bottom: 14px;
}

.lv-section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    border-radius: var(--border-radius-round);
    background: var(--color-primary);
}

/* Recent listings */
.lv-recent {
    max-width: var(--lv-max-width);
    margin: 56px auto 64px;
    padding: 0 20px;
}

.lv-recent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.lv-recent-header .lv-section-title {
    margin: 0;
}

.lv-recent-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lv-recent-link i {
    font-size: 10px;
}

/* Tablette — max-width: 1024px */
@media (max-width: 1024px) {
    .lv-search-form {
        grid-template-columns: repeat(2, 1fr);
    }

    .lv-search-btn {
        grid-column: span 2;
    }
}

/* Tablette — max-width: 768px */
@media (max-width: 768px) {
    .lv-hero {
        min-height: auto;
        padding: 40px 0 60px;
    }

    .lv-hero-title {
        font-size: 30px;
    }

    .lv-search-section {
        margin-top: -40px;
    }

    .lv-search-form {
      grid-template-columns: repeat(1, 1fr);
    }

    .lv-search-btn {
        grid-column: 2;
    }
}

/* Mobile — max-width: 480px */
@media (max-width: 480px) {
    .lv-hero-title {
        font-size: 24px;
    }

    .lv-hero-subtitle {
        font-size: 13px;
    }

    .lv-recent-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --------------------------------------------------------------------------
   Page des offres d'une categorie de location (location-annonces.blade.php)
   Elle reprend le design de la vitrine : meme hero, meme barre, memes cartes.
   -------------------------------------------------------------------------- */
.lv-hero-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 14px;
    border-radius: var(--border-radius-round, 999px);
    background: rgba(255, 255, 255, .16);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(4px);
    transition: background var(--transition-speed) ease;
}

.lv-hero-back:hover {
    background: rgba(255, 255, 255, .28);
    color: var(--color-white);
}

.lv-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 34px;
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
}

.lv-hero-stats li {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lv-hero-stats strong {
    font-size: 26px;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1;
}

.lv-hero-stats span {
    font-size: 12px;
    color: rgba(255, 255, 255, .78);
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* Barre de filtres complete : deux rangees de champs, puis les actions.
   Ses regles responsives sont redefinies ici car elles arrivent apres
   celles de `.lv-search-form`, qui sinon reprendraient la main. */
/* Huit champs sur deux rangees repoussaient les offres sous la ligne de
   flottaison. Seuls les quatre criteres qu'on renseigne presque toujours
   restent visibles, sur UNE rangee ; le reste vit dans un volet replie. */
.lv-search-form--filters {
    display: block;
}

.lv-search-row {
    display: grid;
    grid-template-columns: 1.6fr 1.1fr 1fr 1fr auto;
    align-items: end;
    gap: 14px;
}

.lv-search-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
}

.lv-search-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: none;
    background: transparent;
    font-family: var(--font-family);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--color-grey-dark);
    cursor: pointer;
    transition: color var(--transition-speed) ease;
}

.lv-search-more:hover {
    color: var(--color-primary);
}

.lv-search-more i:first-child {
    color: var(--color-primary);
    font-size: 12px;
}

.lv-search-more-caret {
    font-size: 10px;
    transition: transform var(--transition-speed) ease;
}

.lv-search-more[aria-expanded="true"] .lv-search-more-caret {
    transform: rotate(180deg);
}

.lv-search-extra {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
    gap: 14px;
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--color-divider);
}

.lv-search-extra[hidden] {
    display: none;
}

.lv-search-reset {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--color-grey-dark);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.lv-search-reset:hover {
    color: var(--color-primary);
}

.lv-search-reset i {
    font-size: 11px;
}

/* Le bouton termine la rangee : il ne s'etire pas sur toute sa hauteur. */
.lv-search-form--filters .lv-search-btn {
    grid-column: auto;
    align-self: end;
    height: 40px;
}

/* Sous 1080px, quatre champs plus un bouton deviennent illisibles : la
   rangee se scinde en deux, ce qui reste plus court que les deux rangees
   pleines d'avant. */
@media (max-width: 1080px) {
    .lv-search-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lv-search-form--filters .lv-search-btn {
        grid-column: 1 / -1;
        justify-self: end;
        padding: 0 32px;
    }

    .lv-search-extra {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .lv-search-row,
    .lv-search-extra {
        grid-template-columns: 1fr;
    }

    .lv-search-form--filters .lv-search-btn {
        justify-self: stretch;
    }
}

/* Passage d'une categorie a l'autre sans repasser par la vitrine */
.lv-chips {
    max-width: var(--lv-max-width);
    margin: 34px auto 0;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lv-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border: 1px solid var(--color-divider);
    border-radius: var(--border-radius-round, 999px);
    background: var(--color-white);
    color: var(--color-black);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color var(--transition-speed) ease,
                background var(--transition-speed) ease,
                color var(--transition-speed) ease;
}

.lv-chip i {
    font-size: 12px;
    color: var(--color-primary);
}

.lv-chip:hover {
    border-color: var(--color-primary);
    color: var(--color-black);
}

.lv-chip.is-active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.lv-chip.is-active i {
    color: var(--color-white);
}

/* Categorie sans offre : elle reste cliquable, mais ne doit pas attirer
   l'oeil autant qu'une categorie remplie. Meme traitement que sur la page
   service standard (.cs-chip.is-empty). */
.lv-chip.is-empty:not(.is-active) {
    background: #fbfbfc;
    border-color: #e7e9ec;
    color: #6b7280;
}

.lv-chip.is-empty:not(.is-active) i {
    color: #a2a8b0;
}

.lv-chip.is-empty:not(.is-active):hover {
    border-color: var(--color-primary);
    color: var(--color-black);
}

.lv-pagination {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.lv-pagination nav {
    font-size: 13px;
}

.lv-pagination svg {
    width: 16px;
    height: 16px;
}

/* Banniere « publiez votre annonce » */
.lv-banner {
    position: relative;
    max-width: var(--lv-max-width);
    margin: 64px auto 0;
    padding: 0 20px;
}

.lv-banner-bg {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
}

.lv-banner-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lv-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.45) 60%, rgba(0,0,0,.15) 100%);
}

.lv-banner-content {
    position: relative;
    z-index: 1;
    padding: 40px;
    max-width: 520px;
}

.lv-banner-badge {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 11.5px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--border-radius-round);
    margin-bottom: 16px;
}

.lv-banner-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 14px;
    line-height: 1.25;
}

.lv-banner-title-accent {
    color: var(--color-primary);
}

.lv-banner-subtitle {
    font-size: 13.5px;
    color: rgba(255,255,255,.85);
    line-height: 1.6;
    margin: 0 0 22px;
}

.lv-banner-btn {
    display: inline-block;
    background: var(--color-white);
    color: var(--color-black);
    font-size: 13.5px;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity var(--transition-speed) ease;
}

.lv-banner-btn:hover {
    opacity: .9;
}

/* Notre engagement */
.lv-engagement {
    max-width: var(--lv-max-width);
    margin: 64px auto 80px;
    padding: 0 20px;
}

.lv-engagement-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--lv-gap);
}

.lv-engagement-card {
    background: var(--color-white);
    border: 1px solid var(--color-divider);
    border-radius: 14px;
    padding: 22px;
}

.lv-engagement-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--color-grey-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 16px;
}

.lv-engagement-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px;
}

.lv-engagement-desc {
    font-size: 12.5px;
    color: var(--color-grey-dark);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 1024px) {
    .lv-engagement-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .lv-hero-stats {
        gap: 22px;
    }

    .lv-banner-content {
        padding: 28px;
    }

    .lv-banner-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .lv-engagement-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   PAGE COVOITURAGE (covoiturage.blade.php)
   ========================================================================== */
.cv-page {
    --cv-max-width: 1180px;
    --cv-gap: 20px;
}

.cv-page * {
    box-sizing: border-box;
}

.cv-page {
    font-family: var(--font-family);
    color: var(--color-black);
}

/* Section titles (avec trait sous le titre) */
.cv-section-title {
    position: relative;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 24px;
    padding-bottom: 14px;
}

.cv-section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    border-radius: var(--border-radius-round);
    background: var(--color-primary);
}

/* Hero */
.cv-hero {
    position: relative;
    width: 100%;
    min-height: 480px;
    padding: 110px 0 90px;
    overflow: hidden;
}

.cv-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cv-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cv-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.25) 100%);
}

.cv-hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--cv-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.cv-hero-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.cv-hero-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-white);
    margin: 0 0 16px;
}

.cv-hero-title-accent {
    color: var(--color-primary);
}

.cv-hero-subtitle {
    font-size: 15px;
    color: rgba(255,255,255,.85);
    max-width: 460px;
    margin: 0;
    line-height: 1.5;
}

/* Search bar — section séparée, remonte de -70px pour chevaucher le hero */
.cv-search-section {
    position: relative;
    z-index: 2;
    max-width: var(--cv-max-width);
    margin: -70px auto 0;
    padding: 0 20px;
}

.cv-search-form {
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: var(--shadow-strong);
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(5, 1fr) auto;
    gap: 14px;
    align-items: end;
}

.cv-search-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cv-search-field label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--color-grey-dark);
    text-transform: uppercase;
    letter-spacing: .02em;
}

.cv-search-input {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--color-divider);
    border-radius: 8px;
    padding: 10px 12px;
}

.cv-search-input i {
    color: var(--color-primary);
    font-size: 13px;
}

.cv-search-input input,
.cv-search-input select {
    border: none;
    outline: none;
    font-size: 13px;
    font-family: var(--font-family);
    background: transparent;
    width: 100%;
    color: var(--color-black);
}

.cv-search-btn {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 24px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    font-family: var(--font-family);
    transition: opacity var(--transition-speed) ease;
}

.cv-search-btn:hover {
    opacity: .9;
}

/* Destinations disponible */
/* Barre de recherche etendue : deux rangees de criteres, puis les actions.
   Ses regles responsives sont redefinies ici car elles arrivent apres celles
   de `.cv-search-form`, qui sinon reprendraient la main. */
/* Sept champs sur deux rangees repoussaient les trajets sous la ligne de
   flottaison. Seuls les quatre criteres qu'on renseigne presque toujours
   restent visibles, sur UNE rangee ; le reste vit dans un volet replie.
   Meme montage que la barre de la page location (.lv-search-row).
   Tout est porte par `--wide` : la page « Tous les trajets » garde sa
   grille d'origine. */
.cv-search-form--wide {
    display: block;
}

.cv-search-row {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1fr 1fr auto;
    align-items: end;
    gap: 14px;
}

.cv-search-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
}

.cv-search-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: none;
    background: transparent;
    font-family: var(--font-family);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--color-grey-dark);
    cursor: pointer;
    transition: color var(--transition-speed) ease;
}

.cv-search-more:hover {
    color: var(--color-primary);
}

.cv-search-more i:first-child {
    color: var(--color-primary);
    font-size: 12px;
}

.cv-search-more-caret {
    font-size: 10px;
    transition: transform var(--transition-speed) ease;
}

.cv-search-more[aria-expanded="true"] .cv-search-more-caret {
    transform: rotate(180deg);
}

.cv-search-extra {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: 14px;
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--color-divider);
}

.cv-search-extra[hidden] {
    display: none;
}

.cv-search-reset {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--color-grey-dark);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.cv-search-reset:hover {
    color: var(--color-primary);
}

.cv-search-reset i {
    font-size: 11px;
}

.cv-search-form--wide .cv-search-row .cv-search-btn {
    grid-column: auto;
    align-self: end;
    height: 40px;
}

/* Sous 1080px, quatre champs plus un bouton deviennent illisibles : la
   rangee se scinde en deux, ce qui reste plus court que les deux rangees
   pleines d'avant. */
@media (max-width: 1080px) {
    .cv-search-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cv-search-form--wide .cv-search-row .cv-search-btn {
        grid-column: 1 / -1;
        justify-self: end;
        padding: 0 32px;
    }

    .cv-search-extra {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .cv-search-row,
    .cv-search-extra {
        grid-template-columns: 1fr;
    }

    .cv-search-form--wide .cv-search-row .cv-search-btn {
        justify-self: stretch;
    }
}

.cv-destinations {
    max-width: var(--cv-max-width);
    margin: 100px auto 0;
    padding: 0 20px;
}

.cv-destinations-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    /* Les pastilles de resultats ne doivent pas toucher la grille. */
    margin-bottom: 22px;
}

.cv-destinations-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

.cv-destinations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--cv-gap);
}

.cv-card {
    background: var(--color-white);
    border: 1px solid var(--color-divider);
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow var(--transition-speed) ease,
                transform var(--transition-speed) ease;
}

.cv-card:hover {
    box-shadow: var(--shadow-strong);
    transform: translateY(-3px);
}

.cv-card-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--color-grey-light);
}

.cv-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cv-card-body {
    padding: 14px 16px 16px;
}

.cv-card-route {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cv-card-route i {
    font-size: 11px;
    color: var(--color-primary);
}

.cv-card-date {
    font-size: 12px;
    color: var(--color-grey-dark);
    margin: 0 0 12px;
}

.cv-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.cv-card-price {
    font-size: 17px;
    font-weight: 700;
}

/* Meme bouton que les cartes d'annonce : une carte se lit partout pareil. */
.cv-card-btn {
    background: var(--color-bg-body);
    border: 1px solid var(--color-divider);
    color: var(--color-black);
    font-size: 12.5px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: var(--cs-radius-sm);
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition-speed) ease,
                color var(--transition-speed) ease,
                border-color var(--transition-speed) ease;
}

.cv-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cv-card-avatars {
    display: flex;
    align-items: center;
}

.cv-card-avatars img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-white);
    margin-left: -8px;
}

.cv-card-avatars img:first-child {
    margin-left: 0;
}

.cv-card-status {
    font-size: 11px;
    font-weight: 600;
    color: #1a9d5c;
    background: #e5f7ee;
    padding: 5px 12px;
    border-radius: var(--border-radius-round);
}

/* ---- Chiffres du hero (alimentes par la table covoiturages) ---- */
.cv-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 34px;
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
}

.cv-hero-stats li {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cv-hero-stats strong {
    font-size: 26px;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1;
}

.cv-hero-stats span {
    font-size: 12px;
    color: rgba(255, 255, 255, .78);
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ---- Entete de la grille ---- */
.cv-destinations-link i {
    font-size: 11px;
}

/* ---- Media de la carte : itineraire, plus de photo de destination ---- */
.cv-card-media--route {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 18px;
    background:
        radial-gradient(420px 200px at 88% 12%, rgba(255, 60, 0, .18), transparent 62%),
        linear-gradient(135deg, #1f2328 0%, #2f353d 100%);
    color: var(--color-white);
    overflow: hidden;
}

.cv-card-media--route::after {
    content: "";
    position: absolute;
    right: -38px;
    bottom: -46px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
}

.cv-card-badge {
    position: relative;
    z-index: 1;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border-radius: var(--border-radius-round, 999px);
    background: rgba(255, 255, 255, .14);
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
    backdrop-filter: blur(4px);
}

.cv-card-path {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cv-card-path-city {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    max-width: 38%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cv-card-path-line {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .6);
    font-size: 8px;
}

.cv-card-path-line em {
    flex: 1;
    height: 1px;
    background: repeating-linear-gradient(to right,
        rgba(255, 255, 255, .55) 0 5px, transparent 5px 10px);
}

.cv-card-path-line .fa-location-dot {
    font-size: 12px;
    color: var(--color-primary);
}

.cv-card-return {
    position: relative;
    z-index: 1;
    align-self: flex-start;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, .8);
}

.cv-card-return i {
    color: var(--color-primary);
    margin-right: 5px;
}

/* ---- Prix ---- */
.cv-card-price small {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-grey-dark);
}

/* ---- Conducteur ---- */
.cv-card-driver {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.cv-card-driver img,
.cv-card-driver-initial {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--color-black);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cv-card-driver-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-grey-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cv-card-status.is-full {
    color: #b42318;
    background: #fdecec;
}

/* ---- Etat vide ---- */
.cv-empty {
    margin-top: 26px;
    border: 1px dashed var(--color-divider);
    border-radius: 16px;
    background: var(--color-grey-light);
    padding: 54px 24px;
    text-align: center;
}

.cv-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--color-white);
    border: 1px solid var(--color-divider);
    color: var(--color-primary);
    font-size: 23px;
    margin-bottom: 16px;
}

.cv-empty-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
}

.cv-empty-text {
    font-size: 13px;
    color: var(--color-grey-dark);
    margin: 0 auto;
    max-width: 420px;
}

.cv-empty-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 11px 22px;
    border-radius: 10px;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition-speed) ease;
}

.cv-empty-btn:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
}

/* ---- Pagination ---- */
.cv-pagination {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.cv-pagination nav {
    font-size: 13px;
}

.cv-pagination svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 600px) {
    .cv-hero-stats {
        gap: 22px;
    }

    .cv-hero-stats strong {
        font-size: 21px;
    }
}

/* ---- Carte d'itineraire (grille regroupee par liaison) ---- */
.cv-card--route {
    display: block;
    text-decoration: none;
    color: inherit;
}

.cv-card--route .cv-card-media {
    position: relative;
}

.cv-card-count {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 6px 12px;
    border-radius: var(--border-radius-round, 999px);
    background: rgba(17, 17, 17, .72);
    color: var(--color-white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    backdrop-filter: blur(4px);
}

.cv-card--route:hover .cv-card-btn {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.cv-card-price small {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-grey-dark);
}

.cv-card-avatar-initial {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-black);
    color: var(--color-white);
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-white);
    margin-left: -8px;
}

.cv-card-avatars > :first-child {
    margin-left: 0;
}

.cv-card-drivers-label {
    margin-left: 9px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-grey-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- Hero compact de la page liaison ---- */
.cv-hero--compact {
    min-height: 340px;
}

.cv-hero-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 14px;
    border-radius: var(--border-radius-round, 999px);
    background: rgba(255, 255, 255, .16);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(4px);
    transition: background var(--transition-speed) ease;
}

.cv-hero-back:hover {
    background: rgba(255, 255, 255, .28);
    color: var(--color-white);
}

/* ---- Liste des trajets d'une liaison ---- */
.cv-trips {
    max-width: var(--cv-max-width);
    margin: 90px auto 0;
    /* Respiration avant le footer : la liste est la derniere section de la page. */
    padding: 0 20px 96px;
}

.cv-trips-header {
    margin-bottom: 26px;
}

.cv-trips-title {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cv-trips-title i {
    font-size: 18px;
    color: var(--color-primary);
}

.cv-trips-count {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--color-grey-dark);
}

.cv-trip-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.cv-trip {
    position: relative;
    background: var(--color-white);
    border: 1px solid var(--color-divider);
    border-radius: 18px;
    padding: 30px 24px 20px;
    transition: box-shadow var(--transition-speed) ease,
                border-color var(--transition-speed) ease;
}

.cv-trip:hover {
    box-shadow: var(--shadow-strong);
    border-color: #dfe3e8;
}

.cv-trip-tag {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 15px;
    border-radius: var(--border-radius-round, 999px);
    background: #1f2328;
    color: var(--color-white);
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    white-space: nowrap;
}

.cv-trip-tag.is-return {
    background: var(--color-primary);
}

.cv-trip-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 26px;
    align-items: center;
}

/* Colonne itineraire */
.cv-trip-stop {
    display: grid;
    grid-template-columns: 54px 16px 1fr;
    align-items: center;
    gap: 12px;
}

.cv-trip-time {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-black);
}

.cv-trip-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 3px solid var(--color-primary);
    background: var(--color-white);
}

.cv-trip-dot.is-end {
    border-color: #1f2328;
    background: #1f2328;
}

.cv-trip-place strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.cv-trip-place small {
    display: block;
    font-size: 11.5px;
    color: var(--color-text-muted, #9aa0a6);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 320px;
}

.cv-trip-line {
    display: grid;
    grid-template-columns: 54px 16px 1fr;
    gap: 12px;
    align-items: center;
    padding: 6px 0;
}

.cv-trip-line-rail {
    grid-column: 2;
    justify-self: center;
    width: 2px;
    height: 34px;
    background: repeating-linear-gradient(to bottom,
        var(--color-divider) 0 4px, transparent 4px 8px);
}

.cv-trip-line-meta {
    grid-column: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cv-trip-line-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--border-radius-round, 999px);
    background: var(--color-grey-light);
    font-size: 11px;
    font-weight: 600;
    color: var(--color-grey-dark);
}

.cv-trip-line-meta i {
    font-size: 10px;
    color: var(--color-primary);
}

/* Colonne conducteur / vehicule */
.cv-trip-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cv-trip-driver,
.cv-trip-vehicle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--color-divider);
    border-radius: 14px;
    background: var(--color-white);
}

.cv-trip-driver img,
.cv-trip-driver-initial {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--color-black);
    color: var(--color-white);
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cv-trip-driver-info,
.cv-trip-vehicle-info {
    min-width: 0;
}

.cv-trip-driver-info strong,
.cv-trip-vehicle-info strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cv-trip-driver-info small,
.cv-trip-vehicle-info small {
    font-size: 11.5px;
    color: var(--color-text-muted, #9aa0a6);
}

.cv-trip-driver-info .is-verified {
    color: #1a9d5c;
    font-weight: 600;
}

.cv-trip-vehicle-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    background: var(--color-grey-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Pied de carte */
.cv-trip-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--color-divider);
}

.cv-trip-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cv-trip-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: var(--border-radius-round, 999px);
    background: var(--color-grey-light);
    font-size: 11px;
    font-weight: 600;
    color: var(--color-grey-dark);
    text-transform: capitalize;
}

.cv-trip-chip i {
    font-size: 10px;
    color: var(--color-primary);
}

.cv-trip-chip.is-instant {
    background: #fff1e9;
    color: #b3350a;
}

.cv-trip-chip.is-full {
    background: #fdecec;
    color: #b42318;
}

.cv-trip-chip.is-full i {
    color: #b42318;
}

.cv-trip-action {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cv-trip-price {
    font-size: 19px;
    font-weight: 800;
    white-space: nowrap;
}

.cv-trip-price small {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-grey-dark);
}

/* Prix de la place, frais de service compris */
.cv-trip-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

/* ---- Alerte trajet (<x-services.trip-alert />) ---- */
.cv-alert {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding: 18px 20px;
    border: 1px solid #ffe0d2;
    border-radius: 16px;
    background: #fff5f1;
}

.cv-alert.is-active {
    border-color: #cfe9da;
    background: #f1faf5;
}

.cv-alert-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fff;
    color: var(--color-primary);
    font-size: 18px;
}

.cv-alert.is-active .cv-alert-icon {
    color: #2f9e5f;
}

.cv-alert-body {
    flex: 1;
    min-width: 0;
}

.cv-alert-body strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #16191d;
}

.cv-alert-body p {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: #5b6470;
}

.cv-alert-body a {
    font-weight: 600;
    color: var(--color-primary);
}

.cv-alert-error {
    color: #b42318 !important;
    font-weight: 600;
}

.cv-alert-form {
    margin: 0;
    flex-shrink: 0;
}

.cv-alert-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border: none;
    border-radius: 11px;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--transition-speed) ease;
}

.cv-alert-btn:hover {
    background: var(--color-primary-dark);
}

@media (max-width: 640px) {
    .cv-alert {
        flex-wrap: wrap;
    }

    .cv-alert-form,
    .cv-alert-btn {
        width: 100%;
        justify-content: center;
    }
}

.cv-trip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 24px;
    border-radius: 10px;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition-speed) ease;
}

.cv-trip-btn:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
}

@media (max-width: 900px) {
    .cv-trip-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cv-trips-title {
        font-size: 24px;
    }
}

@media (max-width: 600px) {
    .cv-trips {
        padding-bottom: 64px;
    }

    .cv-trip {
        padding: 28px 16px 18px;
    }

    .cv-trip-stop,
    .cv-trip-line {
        grid-template-columns: 46px 14px 1fr;
        gap: 9px;
    }

    .cv-trip-place small {
        max-width: 180px;
    }

    .cv-trip-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .cv-trip-action {
        justify-content: space-between;
    }

    .cv-trip-pricing {
        align-items: flex-start;
    }
}

/* ════════════════════════════════════════
   DETAIL D'UN TRAJET (/covoiturage/trajet/{id})
════════════════════════════════════════ */

.cvd {
    background: var(--color-bg-body);
    padding: 34px 0 96px;
}

.cvd-wrap {
    max-width: var(--cv-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Titre ---- */
.cvd-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.cvd-back {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--color-white);
    border: 1px solid var(--color-divider);
    color: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    text-decoration: none;
    transition: background var(--transition-speed) ease, color var(--transition-speed) ease;
}

.cvd-back:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.cvd-head-label {
    position: relative;
    padding-left: 34px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-black);
}

.cvd-head-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
}

.cvd-head-route {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cvd-head-route i {
    font-size: 10px;
}

/* ---- Grilles ---- */
.cvd-row {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.cvd-row--map   { grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); }
.cvd-row--legs  { grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); }
.cvd-row--help  { grid-template-columns: minmax(0, 1fr) minmax(0, 2.15fr); margin-bottom: 0; }

/* ---- Carte ---- */
.cvd-map-card {
    position: relative;
    background: var(--color-white);
    border: 1px solid var(--color-divider);
    border-radius: 18px;
    padding: 10px;
    overflow: hidden;
}

.cvd-map {
    height: 340px;
    width: 100%;
    border-radius: 12px;
    background: #e9edf0;
    z-index: 0;
}

.cvd-map-driver {
    position: absolute;
    left: 26px;
    bottom: 26px;
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 16px 9px 9px;
    border-radius: var(--border-radius-round, 999px);
    background: var(--color-white);
    box-shadow: 0 10px 26px rgba(17, 17, 17, .16);
}

.cvd-map-driver img,
.cvd-avatar-initial {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--color-black);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cvd-map-driver-info strong {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.25;
}

.cvd-map-driver-info small {
    font-size: 11px;
    color: var(--color-text-muted, #9aa0a6);
}

.cvd-map-driver-info .is-verified {
    color: #1a9d5c;
    font-weight: 600;
}

/* ---- Colonne droite ---- */
.cvd-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cvd-recap {
    background: #1c2026;
    border-radius: 18px;
    padding: 20px;
    color: var(--color-white);
}

.cvd-recap-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: rgba(255, 255, 255, .55);
    margin-bottom: 16px;
}

.cvd-recap-leg {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .06);
    margin-bottom: 10px;
}

.cvd-recap-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .85);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.cvd-recap-icon.is-return {
    background: var(--color-primary);
    color: var(--color-white);
}

.cvd-recap-leg-info {
    flex: 1;
    min-width: 0;
}

.cvd-recap-leg-info strong {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.cvd-recap-leg-info small {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, .5);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cvd-recap-leg-price {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.cvd-recap-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 16px 2px 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.cvd-recap-total span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: rgba(255, 255, 255, .55);
}

.cvd-recap-total strong {
    font-size: 26px;
    font-weight: 800;
}

.cvd-recap-btn {
    display: block;
    text-align: center;
    padding: 13px 18px;
    border-radius: 11px;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background var(--transition-speed) ease;
}

.cvd-recap-btn:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
}

.cvd-vehicle {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 17px;
    background: var(--color-white);
    border: 1px solid var(--color-divider);
    border-radius: 16px;
}

.cvd-vehicle-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    background: #eef1f6;
    color: #3f6ad8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.cvd-vehicle-info strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.cvd-vehicle-info small {
    font-size: 11.5px;
    color: var(--color-text-muted, #9aa0a6);
}

/* ---- Segments ---- */
.cvd-legs {
    background: var(--color-white);
    border: 1px solid var(--color-divider);
    border-radius: 18px;
    padding: 8px 22px 22px;
}

.cvd-tabs {
    display: flex;
    gap: 26px;
    border-bottom: 1px solid var(--color-divider);
    margin-bottom: 20px;
}

.cvd-tab {
    position: relative;
    background: none;
    border: 0;
    padding: 16px 0 13px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted, #9aa0a6);
    cursor: pointer;
    transition: color var(--transition-speed) ease;
}

.cvd-tab:hover {
    color: var(--color-black);
}

.cvd-tab.is-active {
    color: var(--color-primary);
}

.cvd-tab.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
}

.cvd-leg {
    display: none;
    padding-top: 14px;
}

.cvd-leg.is-active {
    display: block;
}

.cvd-leg-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.cvd-leg-title {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cvd-leg-title i {
    font-size: 15px;
    color: var(--color-primary);
}

.cvd-leg-meta {
    font-size: 12px;
    color: var(--color-grey-dark);
    margin: 0 0 20px;
    text-transform: capitalize;
}

.cvd-leg-meta i {
    color: var(--color-primary);
    margin-right: 3px;
}

.cvd-leg-stop {
    display: grid;
    grid-template-columns: 52px 14px 1fr;
    align-items: center;
    gap: 11px;
}

.cvd-leg-time {
    font-size: 14px;
    font-weight: 700;
}

.cvd-leg-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 3px solid var(--color-primary);
    background: var(--color-white);
}

.cvd-leg-dot.is-end {
    border-color: #1f2328;
    background: #1f2328;
}

.cvd-leg-place strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.cvd-leg-place small {
    display: block;
    font-size: 11px;
    color: var(--color-text-muted, #9aa0a6);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 260px;
}

.cvd-leg-rail {
    display: grid;
    grid-template-columns: 52px 14px 1fr;
    gap: 11px;
    padding: 5px 0;
}

.cvd-leg-rail span {
    grid-column: 2;
    justify-self: center;
    width: 2px;
    height: 30px;
    background: repeating-linear-gradient(to bottom,
        var(--color-divider) 0 4px, transparent 4px 8px);
}

/* Panneau tarifaire */
.cvd-leg-pricing {
    background: var(--color-grey-light);
    border: 1px solid var(--color-divider);
    border-radius: 15px;
    padding: 16px;
}

.cvd-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px dashed var(--color-divider);
    font-size: 12.5px;
    color: var(--color-grey-dark);
}

.cvd-price-row:first-child {
    padding-top: 2px;
}

.cvd-price-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cvd-price-row strong {
    font-size: 15px;
    font-weight: 800;
    color: var(--color-black);
    white-space: nowrap;
}

.cvd-price-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 13px 15px;
    border-radius: 12px;
    background: #1c2026;
    color: rgba(255, 255, 255, .78);
    font-size: 11.5px;
    line-height: 1.55;
}

.cvd-price-note i {
    color: var(--color-primary);
    font-size: 13px;
    margin-top: 1px;
}

/* ---- Recapitulatif : selection des sens ---- */
.cvd-recap-leg {
    cursor: pointer;
    user-select: none;
    transition: background var(--transition-speed) ease, opacity var(--transition-speed) ease;
}

.cvd-recap-leg:hover {
    background: rgba(255, 255, 255, .11);
}

.cvd-recap-check {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.cvd-recap-box {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: transparent;
    transition: background var(--transition-speed) ease,
                border-color var(--transition-speed) ease,
                color var(--transition-speed) ease;
}

.cvd-recap-check:checked ~ .cvd-recap-box {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.cvd-recap-check:focus-visible ~ .cvd-recap-box {
    box-shadow: 0 0 0 3px rgba(255, 60, 0, .35);
}

.cvd-recap-leg.is-off {
    opacity: .45;
}

.cvd-recap-leg.is-off .cvd-recap-leg-price {
    text-decoration: line-through;
}

.cvd-recap-btn.is-disabled {
    background: rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .45);
    pointer-events: none;
}

.cvd-recap-hint {
    margin: 10px 0 0;
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, .5);
}

/* Sens complet : ni cochable, ni survolable */
.cvd-recap-leg.is-full {
    cursor: not-allowed;
}

.cvd-recap-leg.is-full:hover {
    background: rgba(255, 255, 255, .06);
}

/* ---- Recapitulatif : nombre de places ---- */
.cvd-recap-seats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    margin-top: 4px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .06);
}

.cvd-recap-seats-info strong {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.cvd-recap-seats-info small {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, .5);
}

.cvd-stepper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cvd-stepper button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 9px;
    background: rgba(255, 255, 255, .12);
    color: var(--color-white);
    font-size: 11px;
    cursor: pointer;
    transition: background var(--transition-speed) ease;
}

.cvd-stepper button:hover:not(:disabled) {
    background: var(--color-primary);
}

.cvd-stepper button:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.cvd-stepper input {
    width: 44px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 9px;
    background: transparent;
    color: var(--color-white);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    -moz-appearance: textfield;
}

.cvd-stepper input::-webkit-outer-spin-button,
.cvd-stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ---- Recapitulatif : places choisies sous le total ----
   Le total est celui paye, frais de service compris : pas de ligne de
   frais a part, seulement les places sous le libelle. */
.cvd-recap-total small {
    display: block;
    margin-top: 4px;
    font-size: 11.5px;
    letter-spacing: 0;
    text-transform: none;
    color: rgba(255, 255, 255, .5);
}

/* ---- Panneau tarifaire ---- */
.cvd-pricing-label {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--color-text-muted, #9aa0a6);
    margin-bottom: 6px;
}

.cvd-price-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-divider);
}

.cvd-price-total span {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--color-grey-dark);
}

.cvd-price-total strong {
    font-size: 19px;
    font-weight: 800;
}

/* ---- Arrivee le lendemain ---- */
.cvd-leg-time em {
    display: block;
    font-size: 9.5px;
    font-style: normal;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: .04em;
}

/* ---- Infos voyage ---- */
.cvd-infos {
    background: var(--color-white);
    border: 1px solid var(--color-divider);
    border-radius: 18px;
    padding: 20px;
}

.cvd-infos-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--color-text-muted, #9aa0a6);
    margin-bottom: 16px;
}

.cvd-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px;
    border: 1px solid var(--color-divider);
    border-radius: 13px;
    margin-bottom: 10px;
}

.cvd-info:last-child {
    margin-bottom: 0;
}

.cvd-info-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.cvd-info-icon.is-blue   { background: #eaf0fd; color: #3f6ad8; }
.cvd-info-icon.is-pink   { background: #fdeef4; color: #d6467f; }
.cvd-info-icon.is-green  { background: #e8f7ee; color: #1a9d5c; }
.cvd-info-icon.is-orange { background: #fff1e9; color: var(--color-primary); }

.cvd-info-text {
    min-width: 0;
}

.cvd-info-text strong {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
}

.cvd-info-text small {
    font-size: 11px;
    color: var(--color-text-muted, #9aa0a6);
}

/* ---- Aide & conditions ---- */
.cvd-help {
    background: #1c2026;
    border-radius: 18px;
    padding: 22px;
    color: var(--color-white);
}

.cvd-help-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 14px;
}

.cvd-help-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
}

.cvd-help-text {
    font-size: 12px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .6);
    margin: 0 0 18px;
}

.cvd-help-btn {
    display: block;
    text-align: center;
    padding: 11px 18px;
    border-radius: 10px;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition-speed) ease;
}

.cvd-help-btn:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
}

.cvd-policy {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: var(--color-white);
    border: 1px solid var(--color-divider);
    border-radius: 18px;
    padding: 22px;
}

.cvd-policy-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 12px;
    background: #fff1e9;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.cvd-policy-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 7px;
}

.cvd-policy-text {
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--color-grey-dark);
    margin: 0;
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .cvd-row--map,
    .cvd-row--legs,
    .cvd-row--help {
        grid-template-columns: 1fr;
    }

    .cvd-leg-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .cvd {
        padding: 22px 0 64px;
    }

    .cvd-map {
        height: 260px;
    }

    .cvd-map-driver {
        left: 18px;
        bottom: 18px;
        padding: 7px 13px 7px 7px;
    }

    .cvd-leg-title {
        font-size: 20px;
    }

    .cvd-leg-stop,
    .cvd-leg-rail {
        grid-template-columns: 46px 12px 1fr;
        gap: 9px;
    }

    .cvd-leg-place small {
        max-width: 170px;
    }
}

/* Bannière conducteur */
.cv-driver-banner {
    position: relative;
    max-width: var(--cv-max-width);
    margin: 64px auto 0;
    padding: 0 20px;
}

.cv-driver-bg {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
}

.cv-driver-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cv-driver-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.45) 60%, rgba(0,0,0,.15) 100%);
}

.cv-driver-content {
    position: relative;
    z-index: 1;
    padding: 40px;
    max-width: 520px;
}

.cv-driver-badge {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 11.5px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--border-radius-round);
    margin-bottom: 16px;
}

.cv-driver-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 14px;
    line-height: 1.25;
}

.cv-driver-title-accent {
    color: var(--color-primary);
}

.cv-driver-subtitle {
    font-size: 13.5px;
    color: rgba(255,255,255,.85);
    line-height: 1.6;
    margin: 0 0 22px;
}

.cv-driver-btn {
    display: inline-block;
    background: var(--color-white);
    color: var(--color-black);
    font-size: 13.5px;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity var(--transition-speed) ease;
}

.cv-driver-btn:hover {
    opacity: .9;
}

/* Notre engagement */
.cv-engagement {
    max-width: var(--cv-max-width);
    margin: 64px auto 80px;
    padding: 0 20px;
}

.cv-engagement-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--cv-gap);
}

.cv-engagement-card {
    background: var(--color-white);
    border: 1px solid var(--color-divider);
    border-radius: 14px;
    padding: 22px;
}

.cv-engagement-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--color-grey-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 16px;
}

.cv-engagement-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px;
}

.cv-engagement-desc {
    font-size: 12.5px;
    color: var(--color-grey-dark);
    line-height: 1.6;
    margin: 0;
}

/* Tablette — max-width: 1024px */
@media (max-width: 1024px) {
    .cv-destinations-grid,
    .cv-engagement-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cv-search-form {
        grid-template-columns: repeat(2, 1fr);
    }


    .cv-search-btn {
        grid-column: span 2;
    }
}

/* Tablette — max-width: 768px */
@media (max-width: 768px) {
    .cv-hero {
        min-height: auto;
        padding: 40px 0 60px;
    }

    .cv-hero-title {
        font-size: 30px;
    }

    .cv-search-section {
        margin-top: -30px;
    }

    .cv-search-form {
        grid-template-columns: repeat(2, 1fr);
    }

    .cv-search-btn {
        grid-column: 2;
    }

    .cv-destinations {
        margin-top: 40px;
    }

    .cv-driver-content {
        padding: 28px;
    }

    .cv-driver-title {
        font-size: 22px;
    }
}

/* Mobile — max-width: 480px */
@media (max-width: 480px) {
    .cv-hero-title {
        font-size: 24px;
    }

    .cv-hero-subtitle {
        font-size: 13px;
    }

    .cv-destinations-grid,
    .cv-engagement-grid {
        grid-template-columns: 1fr;
    }

    .cv-destinations-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .cv-driver-bg {
        min-height: 260px;
    }

    .cv-driver-content {
        padding: 22px;
    }
}

/* ==========================================================================
   PAGE « NOS SERVICES » (services/index.blade.php)
   Vitrine de tous les services, chacun avec ses categories.

   Elle reprend le vocabulaire de la page service : meme banniere sombre,
   memes pastilles de comptage, memes pastilles de categorie. La bande peche
   d'origine reprenait le rose des cartes et le fil d'Ariane s'y noyait.
   ========================================================================== */
.sv-page {
    --sv-max-width: 1180px;
    --sv-pad: 20px;
    --sv-radius-lg: 16px;
    --sv-radius-md: 12px;
    --sv-radius-sm: 10px;
    --sv-line: #e7e9ec;
    --sv-line-strong: #d8dbe0;
    --sv-ink-soft: #6b7280;
    --sv-tint: #fff5f1;
    --sv-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    --sv-shadow-hover: 0 12px 26px rgba(16, 24, 40, .10);

    font-family: var(--font-family);
    color: var(--color-black);
}

/* --------------------------------------------------------------------------
   Banniere
   -------------------------------------------------------------------------- */
.sv-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #12141a;
    padding: 40px 0 46px;
    margin-bottom: 52px;
}

.sv-hero-veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(110% 140% at 100% 0%, rgba(255, 60, 0, .40) 0%, rgba(255, 60, 0, 0) 60%),
        linear-gradient(115deg, #12141a 0%, #1b1d25 55%, #241a17 100%);
}

.sv-hero-inner {
    position: relative;
    max-width: var(--sv-max-width);
    margin: 0 auto;
    padding: 0 var(--sv-pad);
}

.sv-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, .6);
    margin-bottom: 18px;
}

.sv-breadcrumb-link {
    color: rgba(255, 255, 255, .6);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed) ease;
}

.sv-breadcrumb-link:hover {
    color: var(--color-white);
}

.sv-breadcrumb-sep {
    font-size: 9px;
    color: rgba(255, 255, 255, .38);
}

.sv-breadcrumb-current {
    color: #ff7a4d;
    font-weight: 600;
}

.sv-hero-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.12;
    color: var(--color-white);
    margin: 0 0 12px;
}

.sv-hero-subtitle {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .74);
    margin: 0;
    max-width: 640px;
}

/* Les trois chiffres etaient empiles en colonnes muettes. Ils reprennent
   les pastilles `.olten-count` du reste de la plateforme, retournees pour
   un fond sombre. */
.sv-hero .olten-count {
    margin-top: 20px;
}

.sv-hero .olten-count-pill {
    background: rgba(255, 255, 255, .10);
    border-color: rgba(255, 255, 255, .20);
    color: var(--color-white);
    backdrop-filter: blur(4px);
}

.sv-hero .olten-count-pill i {
    color: #ff8b62;
}

.sv-hero .olten-count-note {
    color: rgba(255, 255, 255, .6);
}

/* --------------------------------------------------------------------------
   Grille des services
   -------------------------------------------------------------------------- */
.sv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 22px;
    max-width: var(--sv-max-width);
    margin: 0 auto;
    padding: 0 var(--sv-pad) 72px;
}

.sv-card {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border: 1px solid var(--sv-line);
    border-radius: var(--sv-radius-lg);
    overflow: hidden;
    box-shadow: var(--sv-shadow);
    transition: box-shadow var(--transition-speed) ease,
                transform var(--transition-speed) ease,
                border-color var(--transition-speed) ease;
}

.sv-card:hover {
    border-color: var(--sv-line-strong);
    box-shadow: var(--sv-shadow-hover);
    transform: translateY(-3px);
}

/* Visuel : la photo du service quand il en a une, sinon un aplat sombre
   teinte par son identifiant — stable d'une visite a l'autre — sur lequel
   son glyphe se detache. Les degrades vifs d'origine juraient entre eux. */
.sv-card-visual {
    position: relative;
    display: block;
    height: 132px;
    background:
        linear-gradient(135deg,
            hsl(var(--tile-hue, 20) 28% 17%) 0%,
            hsl(var(--tile-hue, 20) 34% 26%) 100%);
    overflow: hidden;
}

.sv-card-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--tile-image, none);
    background-size: cover;
    background-position: center;
}

/* Voile : sans lui, le glyphe et le titre se perdaient sur les photos
   claires. */
.sv-card-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 13, 17, .18) 0%, rgba(12, 13, 17, .62) 100%);
}

.sv-card-glyph {
    position: absolute;
    right: 18px;
    bottom: 14px;
    z-index: 1;
    font-size: 46px;
    line-height: 1;
    color: rgba(255, 255, 255, .30);
    pointer-events: none;
}

/* Service pas encore ouvert (Formation) : même pastille que sur l'accueil */
.sv-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    padding: 4px 9px;
    border-radius: 50px;
    background: var(--color-primary, #FF4D1C);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(16, 12, 8, .25);
}

.sv-card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 18px;
}

.sv-card-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 0 0 8px;
}

.sv-card-title a {
    color: var(--color-black);
    text-decoration: none;
}

.sv-card-title a:hover {
    color: var(--color-primary);
}

.sv-card-desc {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--sv-ink-soft);
    margin: 0 0 14px;

    /* Exactement deux lignes : les descriptions libres du back-office vont
       d'un mot a un paragraphe. Le plafond seul ne suffisait pas — une
       description d'une ligne remontait les pastilles de 20px par rapport
       aux cartes voisines de la meme rangee. Le plancher les realigne. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.1em;
}

.sv-card-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.sv-card-stat {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border: 1px solid var(--sv-line);
    border-radius: var(--border-radius-round);
    background: var(--color-grey-light);
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
}

.sv-card-stat i {
    font-size: 11px;
    color: var(--color-primary);
}

/* Un service sans aucune offre le dit en gris, comme les pastilles de
   categorie vides des pages service. */
.sv-card-stat.is-empty {
    background: #fbfbfc;
    color: var(--sv-ink-soft);
}

.sv-card-stat.is-empty i {
    color: #a2a8b0;
}

/* Categories : memes pastilles que sur les pages service (.cs-chip) */
.sv-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.sv-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border: 1px solid var(--sv-line-strong);
    border-radius: var(--border-radius-round);
    background: var(--color-white);
    color: var(--color-black);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color var(--transition-speed) ease,
                color var(--transition-speed) ease;
}

.sv-tag i {
    font-size: 11px;
    color: var(--color-primary);
}

.sv-tag:hover {
    border-color: var(--color-primary);
    color: var(--color-black);
}

.sv-tag--more {
    background: var(--sv-tint);
    border-color: #ffd9c8;
    color: var(--color-primary);
}

.sv-card-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 18px;
    border-top: 1px solid var(--sv-line);
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background var(--transition-speed) ease;
}

.sv-card-cta:hover {
    background: var(--sv-tint);
    color: var(--color-primary);
}

.sv-card-cta i {
    transition: transform var(--transition-speed) ease;
}

.sv-card:hover .sv-card-cta i {
    transform: translateX(4px);
}
.cvd-msg {
    background: #fff;
    border-radius: 28px;
    padding: 24px 28px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
    font-family: 'Poppins', sans-serif;
}
.cvd-msg-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.cvd-msg-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #fde3d0;
    color: #f97316;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.cvd-msg-title {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #8b8f99;
}
.cvd-msg-sub {
    margin: 2px 0 0;
    font-size: 11px;
    font-weight: 600;
    color: #111827;
}
.cvd-msg-box {
    background: #f8f9fb;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 16px 20px;
    font-size: 12px;
    line-height: 1.6;
    color: #6b7280;
}
.cvd-msg-foot {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #8b8f99;
}
.cvd-msg-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f97316;
}
/* --------------------------------------------------------------------------
   Adaptations
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .sv-page {
        --sv-pad: 16px;
    }

    .sv-hero {
        padding: 24px 0 26px;
        margin-bottom: 36px;
    }

    .sv-hero-title {
        font-size: 24px;
    }

    .sv-hero-subtitle {
        font-size: 14px;
    }

    .sv-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
        padding-bottom: 48px;
    }
}

@media (max-width: 560px) {
    .sv-hero-title {
        font-size: 21px;
    }

    .sv-grid {
        grid-template-columns: 1fr;
    }

    .sv-card-visual {
        height: 112px;
    }
}
