/* Entre Loire et Vals — charte : Fraunces (titres), Source Sans 3 (corps), verts Loire / sable chaud */

:root {
  --green: #1e4a2d;
  --green-soft: #2f7d4a;
  --green-faint: rgba(30, 74, 45, 0.08);
  --blue: #3d8fd9;
  --blue-deep: #1a5f8a;
  --blue-mist: #e8f2f9;
  --sand: #f7f4ec;
  --sand-dark: #e5dfd0;
  --sand-deep: #d4cbb8;
  --text: #152218;
  --text-muted: #3d4a40;
  --white: #fff;
  --gold: #b8954a;
  --shadow: 0 4px 20px rgba(21, 34, 24, 0.08);
  --shadow-hover: 0 12px 36px rgba(21, 34, 24, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --font-display: "Fraunces", "Georgia", serif;
  --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--sand);
  background-image: radial-gradient(ellipse 120% 80% at 50% -30%, rgba(61, 143, 217, 0.06), transparent 55%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--white);
  color: var(--green);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 236, 0.88);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid rgba(229, 223, 208, 0.9);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.site-header::before {
  content: "";
  display: block;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--green-soft), var(--blue), var(--gold));
  opacity: 0.85;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem 1rem;
  flex-wrap: nowrap;
  position: relative;
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-svg {
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.03em;
  color: var(--green);
  line-height: 1.2;
}

.brand-tagline {
  font-size: 0.74rem;
  color: var(--blue-deep);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 24px;
  margin: 0 auto;
  background: var(--green);
  border-radius: 2px;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.2rem 0.65rem;
  justify-content: flex-end;
}

.site-nav .nav-cta {
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.site-nav .btn-nav-cta {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  white-space: nowrap;
  border-bottom: none;
}

.site-nav a:not(.btn-nav-cta) {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.4rem 0.55rem;
  border-radius: var(--radius-sm);
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav a:not(.btn-nav-cta):hover,
.site-nav a:not(.btn-nav-cta):focus-visible {
  color: var(--green);
  background: var(--green-faint);
  border-bottom-color: transparent;
}

@media (max-width: 900px) {
  .site-nav ul {
    gap: 0.1rem 0.45rem;
  }

  .site-nav a:not(.btn-nav-cta) {
    font-size: 0.82rem;
    padding: 0.35rem 0.4rem;
  }

  .site-nav .btn-nav-cta {
    padding: 0.48rem 0.75rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    order: 2;
    margin-left: auto;
  }

  .site-nav {
    order: 3;
    flex: none;
    width: 100%;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--sand);
    border-bottom: 1px solid var(--sand-dark);
    box-shadow: 0 10px 24px rgba(21, 34, 24, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
  }

  .site-nav.is-open {
    max-height: 420px;
  }

  .site-nav ul {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    padding: 0.5rem 1.25rem 1.15rem;
    gap: 0;
  }

  .site-nav a:not(.btn-nav-cta) {
    display: block;
    padding: 0.65rem 0;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .site-nav .nav-cta {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--sand-dark);
  }

  .site-nav .btn-nav-cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    white-space: normal;
  }
}

.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: flex-end;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 35, 28, 0.82) 0%,
    rgba(15, 35, 28, 0.35) 42%,
    rgba(26, 95, 138, 0.12) 100%
  );
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  color: var(--white);
}

.eyebrow {
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 236, 179, 0.95);
  margin: 0 0 0.65rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  line-height: 1.12;
  max-width: 20ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 1.5rem;
  max-width: 42ch;
  font-size: 1.05rem;
  opacity: 0.95;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(165deg, var(--green-soft) 0%, var(--green) 100%);
  color: var(--white);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: var(--shadow-hover), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.btn-primary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .btn-primary:hover {
    transform: translateY(-1px);
  }
}

.section {
  padding: 3.25rem 1.25rem;
}

.section-tint {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, color-mix(in srgb, var(--sand) 75%, var(--white)) 40%, var(--sand) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid var(--sand-dark);
}

.section-accent {
  background: linear-gradient(165deg, var(--blue-mist) 0%, rgba(247, 244, 236, 0.98) 50%, var(--sand) 100%);
  border-top: 1px solid rgba(61, 143, 217, 0.12);
  border-bottom: 1px solid var(--sand-dark);
}

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

.section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 0.85rem;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  color: var(--green);
  letter-spacing: -0.02em;
  position: relative;
  padding-bottom: 0.6rem;
}

.section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3rem;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green-soft), var(--blue));
  opacity: 0.9;
}

.section-intro {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  max-width: 60ch;
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-list li {
  background: linear-gradient(180deg, var(--white) 0%, rgba(255, 255, 255, 0.88) 100%);
  border: 1px solid rgba(229, 223, 208, 0.95);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green);
  box-shadow: 0 1px 2px rgba(21, 34, 24, 0.04);
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid-velos {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-balades {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.presentation-lead {
  margin: 0 0 1.1rem;
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.58;
}

.presentation-showcase {
  display: grid;
  gap: 2rem;
  align-items: stretch;
}

@media (min-width: 960px) {
  .presentation-showcase {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
    gap: 2.5rem 3rem;
  }

  .presentation-copy {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .presentation-carousel-wrap {
    height: 100%;
    min-height: 0;
  }
}

.presentation-copy .presentation-body p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  max-width: 62ch;
}

.presentation-copy .presentation-body p:last-child {
  margin-bottom: 0;
}

.presentation-carousel-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 0;
}

.presentation-carousel-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}

.presentation-carousel {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 1px solid rgba(229, 223, 208, 0.95);
  background: var(--white);
}

.carousel-viewport {
  flex: 0 0 auto;
  width: 100%;
  /* Hauteur dérivée de la largeur : évite les sauts quand les photos n’ont pas le même ratio intrinsèque */
  aspect-ratio: 4 / 3;
  min-height: 12rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.carousel-viewport:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.carousel-track {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}

.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-width: 0;
}

.carousel-figure {
  margin: 0;
  position: relative;
  height: 100%;
  min-height: 0;
  background: var(--sand-dark);
}

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

.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 700;
  color: var(--green);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 12px rgba(21, 34, 24, 0.15);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.carousel-btn:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.05);
}

.carousel-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.carousel-btn-prev {
  left: 0.5rem;
}

.carousel-btn-next {
  right: 0.5rem;
}

.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  min-height: 1.25rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(30, 74, 45, 0.22);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.carousel-dot:hover {
  background: rgba(30, 74, 45, 0.4);
}

.carousel-dot.is-active {
  background: var(--green-soft);
  transform: scale(1.25);
}

.carousel-dot:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.section-equipement .equipement-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.equipement-card {
  position: relative;
  margin: 0;
  padding: 1.35rem 1.35rem 1.4rem 1.35rem;
  background: linear-gradient(165deg, var(--white) 0%, rgba(255, 255, 255, 0.92) 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(229, 223, 208, 0.95);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .equipement-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
  }
}

.equipement-card-icon {
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(47, 125, 74, 0.12) 0%, rgba(61, 143, 217, 0.12) 100%);
  color: var(--green);
}

.equipement-card-icon--amber {
  background: linear-gradient(145deg, rgba(184, 149, 74, 0.18) 0%, rgba(184, 149, 74, 0.08) 100%);
  color: #8a6d2e;
}

.equipement-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--green);
}

.equipement-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.equipement-card--note {
  border-color: rgba(184, 149, 74, 0.35);
  background: linear-gradient(165deg, rgba(255, 252, 245, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.check-list {
  margin: 0;
  padding: 0 0 0 1.25rem;
  color: var(--text-muted);
}

.check-list li {
  margin-bottom: 0.75rem;
}

.check-list li:last-child {
  margin-bottom: 0;
}

.check-list--conditions {
  margin-top: 0.5rem;
}

.tarifs-box {
  max-width: 28rem;
  background: linear-gradient(180deg, var(--white) 0%, rgba(255, 255, 255, 0.96) 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(30, 74, 45, 0.1);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 1.75rem;
}

.tarifs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.tarifs-table th,
.tarifs-table td {
  padding: 0.85rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--sand-dark);
}

.tarifs-table th {
  background: linear-gradient(180deg, rgba(232, 242, 249, 0.9) 0%, color-mix(in srgb, var(--green-soft) 14%, var(--white)) 100%);
  color: var(--green);
  font-weight: 700;
  font-family: var(--font);
}

.tarifs-table tbody tr:last-child th,
.tarifs-table tbody tr:last-child td {
  border-bottom: none;
}

.tarifs-table td:last-child {
  text-align: right;
  white-space: nowrap;
}

.tarifs-subtitle {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.card {
  background: linear-gradient(165deg, var(--white) 0%, rgba(255, 255, 255, 0.97) 100%);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(30, 74, 45, 0.07);
}

@media (prefers-reduced-motion: no-preference) {
  .card {
    transition: transform 0.22s ease, box-shadow 0.22s ease;
  }

  .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
  }
}

.card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.velo-photo-placeholder {
  aspect-ratio: 4 / 3;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #e4efe6 0%, #dcecf7 100%);
  border-bottom: 1px dashed rgba(30, 74, 45, 0.2);
}

.velo-photo-placeholder--vae {
  background: linear-gradient(145deg, #dff0e3 0%, #c5e3cf 42%, #c5ddf0 100%);
}

.velo-photo-placeholder-inner {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  padding: 1rem;
}

.card h3,
.card-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
  color: var(--green);
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  padding: 0 1.1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.card h3 {
  padding: 1rem 1.1rem 0;
}

.card > p:last-of-type {
  padding-bottom: 1.1rem;
}

.card-highlight {
  border: 2px solid var(--green-soft);
}

.card-route .card-body {
  padding: 1rem 1.1rem 1.15rem;
}

.card-route p {
  padding: 0;
}

.route-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
}

.route-meta dt {
  font-weight: 700;
  color: var(--blue-deep);
  margin: 0;
}

.route-meta dd {
  margin: 0.15rem 0 0;
  color: var(--text);
}

@media (max-width: 420px) {
  .route-meta {
    grid-template-columns: 1fr;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.contact-block {
  background: linear-gradient(165deg, var(--white) 0%, rgba(232, 242, 249, 0.35) 100%);
  padding: 1.35rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid rgba(61, 143, 217, 0.15);
  box-shadow: var(--shadow);
}

.contact-block h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green);
}

.contact-link {
  font-weight: 700;
  color: var(--blue-deep);
}

.small {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.small code {
  font-size: 0.8em;
}

.infos-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.infos-grid h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  color: var(--green);
}

.infos-grid p {
  margin: 0;
  color: var(--text-muted);
}

.inline-link {
  color: var(--blue-deep);
  font-weight: 600;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.inline-link:hover {
  color: var(--blue);
  text-decoration: underline;
}

.site-footer {
  background: linear-gradient(180deg, #234d33 0%, var(--green) 45%, #152a1c 100%);
  color: #e8f5e9;
  padding: 2.25rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-inner p {
  margin: 0.25rem 0;
}

.footer-inner .small {
  color: rgba(255, 255, 255, 0.8);
}
