/* ============================================================
   AG FFESSM — Rennes
   Palette inspirée des cartes bathymétriques et de la Bretagne
   ============================================================ */

:root {
  --abyss: #0a2436;
  --deep: #0f3a52;
  --sea: #1c6e8c;
  --lagoon: #4fa8c9;
  --foam: #f3f7f6;
  --foam-dim: #e4ecec;
  --granite: #3c464c;
  --granite-soft: #6c7a80;
  --corail: #d9793f;
  --line: rgba(28, 110, 140, 0.22);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --gauge-w: 76px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--granite);
  background: var(--foam);
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--abyss);
  margin: 0 0 0.4em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

a { color: var(--sea); }

img, svg { display: block; max-width: 100%; }

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------------- Depth gauge (nav) ---------------- */

.gauge {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--gauge-w);
  height: 100vh;
  background: var(--abyss);
  color: var(--foam);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 0;
}

.gauge__readout {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-bottom: 18px;
  color: var(--lagoon);
}

.gauge__readout strong {
  color: var(--foam);
  font-size: 1rem;
}

.gauge__track {
  position: relative;
  flex: 1;
  width: 2px;
  background: rgba(255, 255, 255, 0.14);
  margin: 4px 0;
}

.gauge__marker {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--granite-soft);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.gauge__marker.is-active {
  background: var(--corail);
  transform: translate(-50%, -50%) scale(1.35);
}

.gauge__label {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  white-space: nowrap;
  color: var(--foam);
  background: var(--abyss);
  padding: 5px 11px;
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 60;
}

.gauge__marker:hover + .gauge__label,
.gauge__marker.is-active + .gauge__label {
  opacity: 1;
}

@media (max-width: 860px) {
  .gauge { display: none; }
}

main {
  margin-left: var(--gauge-w);
}

@media (max-width: 860px) {
  main { margin-left: 0; }
}

/* mobile depth strip */
.gauge-mobile {
  display: none;
}

@media (max-width: 860px) {
  .gauge-mobile {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--abyss);
    color: var(--foam);
    font-family: var(--mono);
    font-size: 0.72rem;
    padding: 9px 16px;
    align-items: center;
    justify-content: space-between;
    letter-spacing: 0.02em;
  }
  .gauge-mobile strong { color: var(--lagoon); }
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--abyss) 0%, var(--deep) 78%, var(--sea) 100%);
  color: var(--foam);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__contours path {
  fill: none;
  stroke: rgba(79, 168, 201, 0.35);
  stroke-width: 1.1;
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation: draw 2.6s ease-out forwards;
}

.hero__contours path:nth-child(2) { stroke: rgba(79, 168, 201, 0.24); animation-delay: 0.15s; }
.hero__contours path:nth-child(3) { stroke: rgba(79, 168, 201, 0.16); animation-delay: 0.3s; }
.hero__contours path:nth-child(4) { stroke: rgba(217, 121, 63, 0.28); animation-delay: 0.45s; }

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding: 120px 28px 72px;
  max-width: 780px;
  margin: 0 auto;
  width: 100%;
}

.hero__kicker {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--lagoon);
  margin-bottom: 18px;
}

.hero h1 {
  color: var(--foam);
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  line-height: 1.04;
  max-width: 13ch;
}

.hero__lede {
  font-size: 1.12rem;
  max-width: 46ch;
  color: var(--foam-dim);
  margin: 22px 0 34px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 40px;
}

.hero__fact dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: none;
  color: var(--lagoon);
  margin-bottom: 4px;
}

.hero__fact dd {
  margin: 0;
  font-size: 1.02rem;
  color: var(--foam);
}

.btn {
  display: inline-block;
  background: var(--corail);
  color: var(--abyss);
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 3px;
  text-decoration: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,0.18); }

.btn--ghost {
  background: transparent;
  border: 1px solid rgba(243,247,246,0.5);
  color: var(--foam);
  margin-left: 14px;
}

/* ---------------- Sections ---------------- */

.section {
  padding: 96px 0 88px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.section:last-of-type { border-bottom: none; }

.section__eyebrow {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--sea);
  margin-bottom: 10px;
}

.section h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  max-width: 20ch;
}

.section__intro {
  max-width: 58ch;
  color: var(--granite-soft);
  font-size: 1.04rem;
  margin: 14px 0 40px;
}

/* contour divider between sections */
.contour-divider {
  width: 100%;
  height: 34px;
  margin-top: -1px;
}

.contour-divider path {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

/* practical info */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 26px;
}

.fact-card {
  border-left: 2px solid var(--sea);
  padding-left: 18px;
}

.fact-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.fact-card p { margin: 0; color: var(--granite-soft); }

.note {
  margin-top: 30px;
  font-size: 0.92rem;
  color: var(--granite-soft);
  border-top: 1px dashed var(--line);
  padding-top: 16px;
}

/* programme timeline */
.timeline {
  border-left: 2px solid var(--line);
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.timeline__day {
  position: relative;
}

.timeline__day::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--corail);
}

.timeline__day h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.timeline__row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  padding: 7px 0;
  border-bottom: 1px solid var(--foam-dim);
  font-size: 0.96rem;
}

.timeline__row time {
  font-family: var(--mono);
  color: var(--sea);
  font-size: 0.88rem;
}

/* cards (hotels / restaurants) */
.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.card {
  background: #fff;
  border: 1px solid var(--foam-dim);
  padding: 22px 20px;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.card__meta {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--sea);
  margin-bottom: 10px;
}

.card p { margin: 0; color: var(--granite-soft); font-size: 0.95rem; }

.card__price {
  margin-top: 12px;
  font-weight: 600;
  color: var(--abyss);
  font-size: 0.92rem;
}

/* transport */
.transport-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
}

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

.transport-grid h3 { font-size: 1.05rem; margin-top: 26px; }
.transport-grid h3:first-child { margin-top: 0; }

.fare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  margin-top: 10px;
}

.fare-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--foam-dim);
}

.fare-table td:last-child {
  text-align: right;
  font-family: var(--mono);
  color: var(--abyss);
}

.metro-lines {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.metro-line {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.metro-line__badge {
  font-family: var(--mono);
  font-weight: 700;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 0.85rem;
}

.metro-line__badge--a { background: #c0392b; }
.metro-line__badge--b { background: #1e8a5f; }

.btn--outline {
  background: transparent;
  border: 1px solid var(--sea);
  color: var(--sea);
  padding: 10px 22px;
  font-size: 0.94rem;
}

.btn--outline:hover { background: rgba(28,110,140,0.08); }

.map-block {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-top: 36px;
}

.mini-map {
  width: 100%;
  height: auto;
  margin: 18px 0 8px;
}

.mini-map__label {
  font-family: var(--mono);
  font-size: 10px;
  fill: var(--granite);
}

.mini-map__tag {
  font-family: var(--mono);
  font-size: 10px;
  fill: var(--granite-soft);
}

/* safety stop / registration */
.stop {
  background: var(--abyss);
  color: var(--foam);
}

.stop h2 { color: var(--foam); }
.stop .section__intro { color: var(--foam-dim); }
.stop .section__eyebrow { color: var(--lagoon); }

.stop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
  margin-top: 30px;
}

.stop-card {
  border: 1px solid rgba(243,247,246,0.18);
  padding: 22px;
}

.stop-card h3 { color: var(--foam); font-size: 1.02rem; }
.stop-card p { color: var(--foam-dim); font-size: 0.94rem; }
.stop-card a { color: var(--lagoon); }

footer {
  background: var(--abyss);
  color: var(--granite-soft);
  font-size: 0.85rem;
  padding: 26px 0 40px;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
