/* =====================================================================
   sections-v2.css · carrousels, grilles équilibrées, spécialités, flotte,
   atouts, corrections d'affichage sur téléphone. À charger après styles.css.
   ===================================================================== */

/* ---------- Carrousel commun ---------- */
.rcs-car { position: relative; max-width: 1400px; margin-inline: auto; }
.rcs-car .rcs-piste { --rcs-gap: 1.4rem; display: flex !important; gap: var(--rcs-gap) !important; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; padding: .5rem .25rem 1.4rem; margin: 0 -.25rem; max-width: none; }
.rcs-car .rcs-piste::-webkit-scrollbar { display: none; }
.rcs-car .rcs-piste > * { flex: 0 0 calc((100% - (var(--rcs-par) - 1) * var(--rcs-gap)) / var(--rcs-par)); min-width: 0; scroll-snap-align: start; }
.rcs-car .rcs-piste > *:hover { transform: none; }
.rcs-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: .2rem; }
.rcs-seule .rcs-nav { display: none; }
.rcs-points { display: flex; gap: .45rem; }
.rcs-compteur { min-width: 64px; justify-content: center; font-size: .92rem; font-weight: 700; color: var(--text, #1A1916); font-variant-numeric: tabular-nums; }
@media (max-width: 759px) { .rcs-car .rcs-fl { display: grid; width: 40px; height: 40px; font-size: 1.3rem; } }
.rcs-pt { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.rcs-pt::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: #CFC4AE; transition: width .25s, background .25s; }
.rcs-pt[aria-current="true"]::before { width: 26px; background: var(--accent, #8C6A2C); }
.rcs-fl { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border, #E4DDCE); background: var(--surface, #FBF9F4); color: var(--text, #1A1916);
  font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.06); transition: background .2s, color .2s; }
.rcs-fl:hover { background: var(--black, #0B0B0D); color: #FBF9F4; }
.rcs-pt:focus-visible, .rcs-fl:focus-visible, .rcs-tab:focus-visible { outline: 3px solid var(--accent, #8C6A2C); outline-offset: 2px; }
@media (max-width: 1100px) { .rcs-car { --rcs-par: 3 !important; } }
@media (max-width: 900px)  { .rcs-car { --rcs-par: 2 !important; } }
@media (max-width: 759px) {
  .rcs-car { --rcs-par: 1.15 !important; }
  .rcs-car .rcs-piste { --rcs-gap: .9rem; padding-inline: 16px; margin-inline: -16px; scroll-padding-inline: 16px; }
  .rcs-fl { display: none; }
}
/* Carrousel uniquement sur téléphone : grille normale sur ordinateur */
@media (min-width: 760px) {
  .rcs-mobile .rcs-piste { display: grid !important; overflow: visible; padding: 0; margin: 0; scroll-snap-type: none; }
  .rcs-mobile .rcs-piste > * { flex: none; }
  .rcs-mobile .rcs-nav { display: none; }
}
.feature-grid.rcs-piste, .specialty-grid.rcs-piste, .fleet-grid.rcs-piste { margin-top: 0; }
.rcs-mobile:has(.feature-grid) { margin-top: 2.5rem; }
.rcs-mobile:has(.specialty-grid) { margin-top: 3rem; }

/* ---------- Grilles équilibrées (ordinateur) ---------- */
@media (min-width: 760px) {
  .rcs-eq { grid-template-columns: repeat(var(--rcs-cols), minmax(0, 1fr)) !important; }
  .rcs-centre { display: flex !important; flex-wrap: wrap; justify-content: center; }
  .rcs-centre > * { flex: 0 0 calc((100% - (var(--rcs-cols) - 1) * var(--rcs-gap)) / var(--rcs-cols)); min-width: 0; }
}

/* ---------- Circuits de la page d'accueil (cartes photo) ---------- */
.rcs-car .dest-card { height: 380px; scroll-snap-align: start; }
.dest-card .dest-overlay { width: 100%; }
.dest-overlay h3 { font-size: 1.35rem; line-height: 1.2; text-wrap: balance; }
.dest-overlay p { font-size: .92rem; line-height: 1.5; margin-top: .35rem; }
.dest-card .dest-prix { display: inline-block; margin-top: .7rem; padding: .3rem .75rem; border-radius: 999px; background: rgba(251,249,244,.95); color: #1A1916; font-size: .85rem; font-weight: 800; }
@media (max-width: 759px) { .rcs-car .dest-card { height: 340px; } }

/* ---------- Expériences (cartes avec prix) ---------- */
.rcs-car .tour-card { height: auto; }
.tour-card h3 { text-wrap: balance; line-height: 1.3; }

/* ---------- Spécialités ---------- */
.specialty-grid { align-items: stretch; }
.specialty-col { display: flex; flex-direction: column; }
.specialty-col:hover { transform: none; }
.specialty-col ul li { margin-bottom: 0; padding-left: 0; border-bottom: 1px solid var(--border, #E4DDCE); }
.specialty-col ul li:last-child { border-bottom: 0; }
.specialty-col ul li::before { content: none; }
.specialty-col ul li a { display: flex; align-items: center; justify-content: space-between; gap: .6rem; min-height: 46px; padding: .55rem 0; text-decoration: none; }
.specialty-col ul li a::after { content: "›"; font-size: 1.3rem; line-height: 1; color: var(--accent, #8C6A2C); transition: transform .2s; }
.specialty-col ul li a:hover { color: var(--accent, #8C6A2C); }
.specialty-col ul li a:hover::after { transform: translateX(3px); }
@media (max-width: 1100px) and (min-width: 760px) { .specialty-grid { grid-template-columns: repeat(2, 1fr) !important; } }

/* ---------- Atouts (cartes de texte) ---------- */
.feature-card { display: flex; flex-direction: column; }
.feature-card h3 { display: flex; align-items: flex-start; gap: .7rem; text-wrap: balance; }
.feature-card h3::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: .5em; border-radius: 3px; background: var(--accent, #8C6A2C); transform: rotate(45deg); }
.rcs-car .feature-card { height: auto; }

/* ---------- Flotte ---------- */
.fleet-filters { gap: .6rem; }
.filter { background: transparent; color: var(--text, #1A1916); border: 1.5px solid var(--text, #1A1916); min-height: 46px; }
.filter:hover:not(.is-active) { background: var(--black, #0B0B0D); color: #FBF9F4; }
.filter.is-active { background: var(--accent, #8C6A2C); border-color: var(--accent, #8C6A2C); color: #fff; }
.car-card { display: flex; flex-direction: column; }
.car-img { height: 170px; display: flex; align-items: flex-end; justify-content: center; background: linear-gradient(180deg, transparent 70%, rgba(0,0,0,.05)); border-radius: 14px; }
.car-img img { width: 100%; height: 100%; max-height: none; object-fit: contain; object-position: center bottom; }
.car-meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.car-meta span { white-space: nowrap; }
@media (max-width: 759px) {
  .fleet-filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 1.6rem; padding: 0 16px; }
  .fleet-filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .car-img { height: 140px; }
}

/* ---------- Corrections d'affichage sur téléphone ---------- */
.rcs-tab { overflow-x: auto; max-width: 100%; min-width: 0; width: 100%; -webkit-overflow-scrolling: touch; }
.rcs-tab > table { min-width: 560px; }
@media (max-width: 759px) {
  .btn { white-space: normal; max-width: 100%; text-align: center; }
  .pill { white-space: normal; max-width: 100%; }
  .booking-form.rc-quote-form { grid-template-columns: 1fr !important; }
  .booking-form .field { min-width: 0; }
  .hp-tabs { display: flex !important; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; max-width: 100%; }
  .hp-tab { flex: none; }
  .step, .step > * { min-width: 0; overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) { .rcs-car .rcs-piste { scroll-behavior: auto; } }
