/*
 * RideSeek — l'océan d'un côté, le béton de l'autre.
 *
 * Les couleurs viennent de l'app : le bleu du logo, le cyan de la banderole
 * de houle, le jaune-vert de celle du vent, le marine des textes. Le béton
 * est un gris texturé ; les notes au marqueur (Permanent Marker) sont celles
 * qu'on écrit sur une board ou un bloc, et restent rares.
 */

.rs {
  --rs-bleu: #1e6fd9;
  --rs-ciel: #3d9df2;
  --rs-nuit: #0b1d4a;
  --rs-houle: #37d3ea;
  --rs-vent: #c9ee3f;
  --rs-beton: #cfcdc6;
  --rs-beton-sombre: #9b998f;
  --rs-grip: #1d1f22;
  --rs-papier: #f4f6f8;
  --marker: "Permanent Marker", "Comic Sans MS", cursive;
  background: var(--rs-papier);
  color: var(--rs-nuit);
}

/* Le grain du béton, sans image : un bruit SVG en fond. */
.beton {
  background-color: var(--rs-beton);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .34 0 0 0 0 .32 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.marker {
  font-family: var(--marker);
  font-weight: 400;
  letter-spacing: 0;
}

/* ------------------------------------------------------------------ */
/* Ouverture : l'app, et le bouton juste dessous                        */
/* ------------------------------------------------------------------ */

.rs-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(61, 157, 242, 0.22), transparent 60%),
    var(--rs-papier);
}

.rs-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.rs-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.rs-brand img {
  width: 64px;
  height: auto;
}

.rs-brand span {
  font-style: italic;
  font-weight: 800;
  font-stretch: 125%;
  font-size: 30px;
  letter-spacing: -0.03em;
  color: var(--rs-bleu);
}

.rs-hero h1 {
  font-size: clamp(44px, 7vw, 96px);
  color: var(--rs-nuit);
  margin-bottom: 28px;
}

.rs-hero-lead {
  max-width: 42ch;
  font-size: clamp(17px, 1.5vw, 20px);
  color: #34466e;
}

.rs-scribble {
  display: inline-block;
  margin-top: 8px;
  font-size: 22px;
  color: var(--rs-bleu);
  transform: rotate(-3deg);
}

.rs-phone-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.rs-phone {
  position: relative;
  width: min(340px, 82vw);
  padding: 12px;
  border-radius: 46px;
  background: var(--rs-grip);
  box-shadow:
    0 2px 0 1px #3a3d42 inset,
    -30px 50px 80px -30px rgba(11, 29, 74, 0.5),
    -12px 22px 30px -18px rgba(11, 29, 74, 0.4);
  /* Penché, et tourné en 3D : le bord gauche avance, le droit recule. */
  transform: perspective(1600px) rotateY(-20deg) rotateX(8deg) rotate(3deg);
  transform-style: preserve-3d;
}

/* L'épaisseur du téléphone, visible sur la tranche qui avance. */
.rs-phone::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #0d0e10;
  transform: translateZ(-14px) translateX(-6px);
}

.rs-phone img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 36px;
}

.rs-stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.rs-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--rs-nuit);
  color: #fff;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.rs-store:hover {
  background: var(--rs-bleu);
  transform: translateY(-2px);
}

.rs-store svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  flex: none;
}

.rs-store span {
  display: flex;
  flex-direction: column;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}

.rs-store small {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.8;
}

.rs-store[aria-disabled="true"] {
  cursor: default;
}

.rs-soon {
  margin: -12px 0 0;
  font-size: 15px;
  color: #4a5b80;
}

@media (prefers-reduced-motion: no-preference) {
  .rs-phone {
    animation: drop-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1.1) both;
  }

}

@keyframes drop-in {
  from { opacity: 0; transform: perspective(1600px) translateY(40px) rotateY(-40deg) rotateX(14deg) rotate(8deg); }
  to { opacity: 1; transform: perspective(1600px) rotateY(-20deg) rotateX(8deg) rotate(3deg); }
}

/* ------------------------------------------------------------------ */
/* La marée en direct                                                 */
/* ------------------------------------------------------------------ */

.rs-line-section {
  padding: 96px 0 0;
  overflow: hidden;
  background: var(--rs-nuit);
  color: #e6efff;
}

.rs-line-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-bottom: 40px;
}

.rs-line-head h2 {
  font-size: clamp(32px, 4.6vw, 60px);
  max-width: 14ch;
  margin: 0;
}

.rs-line-head p {
  max-width: 40ch;
  margin: 0;
  color: #b5c4e6;
}

.rs-live {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 6px;
  color: #fff;
}

.rs-live strong {
  font-style: italic;
  font-weight: 800;
  font-stretch: 125%;
  font-size: 64px;
  line-height: 1;
  color: var(--rs-houle);
}

.rs-live span {
  font-size: 16px;
  color: #b5c4e6;
}

.rs-line-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: end;
  padding-bottom: 72px;
}

.ride-line {
  display: block;
  width: 100%;
  height: auto;
}

/* La Torche en direct : les banderoles de la carte de l'app. */
.spot-live {
  padding: 28px 26px 22px;
  border-radius: 22px;
  background: #12296a;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.spot-live-titre {
  display: flex;
  flex-direction: column;
  margin: 0 0 22px;
  color: #b5c4e6;
  font-size: 15px;
}

.spot-live-titre strong {
  font-style: italic;
  font-weight: 800;
  font-stretch: 125%;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
}

.spot-live-ligne {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 16px;
}

.banderole {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  padding: 6px 14px 6px 12px;
  border-radius: 8px;
  color: var(--rs-nuit);
  font-size: 14px;
  font-weight: 700;
}

.banderole b {
  font-size: 26px;
  line-height: 1;
}

.banderole i {
  font-style: normal;
  margin: 0 2px;
}

.banderole-houle { background: var(--rs-houle); }
.banderole-vent { background: var(--rs-vent); }

.spot-live-dir {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #dbe6ff;
}

.spot-live-fleche {
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l7 18-7-4-7 4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l7 18-7-4-7 4z'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: rotate(var(--r, 0deg));
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.spot-live-verdict {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 0;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}

.spot-live-verdict::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #8696bd;
}

.spot-live-verdict[data-relation="offshore"]::before { background: #62d13a; }
.spot-live-verdict[data-relation="cross"]::before { background: var(--rs-vent); }
.spot-live-verdict[data-relation="onshore"]::before { background: #ff7a45; }

.spot-live-erreur {
  display: none;
  margin: 8px 0 0;
  color: #b5c4e6;
}

.spot-live.is-error .spot-live-ligne,
.spot-live.is-error .spot-live-verdict {
  display: none;
}

.spot-live.is-error .spot-live-erreur {
  display: block;
}

.spot-live-source {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: #8696bd;
}

@media (max-width: 960px) {
  .rs-line-body {
    grid-template-columns: 1fr;
  }

  .spot-live {
    max-width: 420px;
  }
}

.ride-trait {
  fill: none;
  stroke: #fff;
  stroke-width: 4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.ride-extreme {
  fill: var(--rs-nuit);
  stroke: #fff;
  stroke-width: 3;
}

.ride-label {
  fill: #dbe6ff;
  font: 600 22px var(--font);
}

.ride-now-trait {
  stroke: var(--rs-vent);
  stroke-width: 2;
  stroke-dasharray: 6 8;
}

.ride-now {
  fill: var(--rs-vent);
  stroke: var(--rs-nuit);
  stroke-width: 4;
}

.ride-now-label {
  fill: var(--rs-vent);
  font: 700 24px var(--font);
}

@media (prefers-reduced-motion: no-preference) {
  .ride-now {
    animation: pulse 2s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.35); }
}

/* ------------------------------------------------------------------ */
/* Chiffres                                                            */
/* ------------------------------------------------------------------ */

.rs-stats {
  padding: 88px 0;
}

.rs-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.rs-stats strong {
  display: block;
  font-style: italic;
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--rs-bleu);
}

.rs-stats span {
  display: block;
  margin-top: 10px;
  max-width: 18ch;
  color: #34466e;
}

/* ------------------------------------------------------------------ */
/* Côté océan                                                          */
/* ------------------------------------------------------------------ */

.rs-section {
  padding: 112px 0;
}

.rs-section h2 {
  font-size: clamp(36px, 5vw, 68px);
  margin-bottom: 16px;
}

.rs-intro {
  max-width: 50ch;
  font-size: 19px;
  color: #34466e;
  margin-bottom: 56px;
}

.rs-ocean {
  background: linear-gradient(180deg, #e3f3fb, var(--rs-papier));
}

.rs-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 64px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rs-features li {
  padding: 28px 0;
  border-top: 2px solid var(--rs-nuit);
}

.rs-features h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.rs-features p {
  margin: 0;
  color: #34466e;
}

/* ------------------------------------------------------------------ */
/* Le meilleur créneau                                                 */
/* ------------------------------------------------------------------ */

.rs-score {
  background: var(--rs-bleu);
  color: #fff;
}

.rs-score-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.rs-score p {
  max-width: 46ch;
  color: #dce9ff;
}

.rs-board {
  position: relative;
  padding: 28px 28px 20px;
  border-radius: 22px;
  background: var(--rs-papier);
  color: var(--rs-nuit);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}

.rs-score .rs-board p.rs-board-verdict {
  margin: 0 0 20px;
  font-weight: 700;
  color: var(--rs-nuit);
}

.rs-bars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  align-items: end;
  height: 220px;
}

.rs-bar {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  text-align: center;
  font-size: 13px;
  line-height: 1.2;
}

.rs-bar i {
  display: block;
  height: calc(var(--v) * 1.5px);
  margin-bottom: 8px;
  border-radius: 8px 8px 3px 3px;
  background: #c8d6ee;
  transform-origin: bottom;
}

.rs-bar span {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
}

.rs-bar.is-best i {
  background: var(--rs-vent);
  box-shadow: inset 0 0 0 2px var(--rs-nuit);
}

.rs-score .rs-board-note {
  position: absolute;
  right: 0;
  bottom: -56px;
  margin: 0;
  font-size: 22px;
  color: #fff;
  transform: rotate(-4deg);
}

@media (prefers-reduced-motion: no-preference) {
  .rs-board.is-seen .rs-bar i {
    animation: grow 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .rs-board.is-seen .rs-bar:nth-child(2) i { animation-delay: 0.06s; }
  .rs-board.is-seen .rs-bar:nth-child(3) i { animation-delay: 0.12s; }
  .rs-board.is-seen .rs-bar:nth-child(4) i { animation-delay: 0.18s; }
  .rs-board.is-seen .rs-bar:nth-child(5) i { animation-delay: 0.24s; }
  .rs-board.is-seen .rs-bar:nth-child(6) i { animation-delay: 0.3s; }
}

@keyframes grow {
  from { transform: scaleY(0); }
}

/* ------------------------------------------------------------------ */
/* Côté béton                                                          */
/* ------------------------------------------------------------------ */

.rs-concrete {
  position: relative;
  color: var(--rs-grip);
}

.rs-concrete .rs-intro {
  color: #3b3d40;
}

.rs-concrete h2 {
  color: var(--rs-grip);
}

/* Le béton en titre : posé au marqueur, de travers. */
.rs-tag {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 24px;
  color: var(--rs-bleu);
  transform: rotate(-2deg);
}

.rs-stickers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.rs-sticker {
  padding: 26px 24px 28px;
  border-radius: 18px;
  border: 3px solid var(--rs-grip);
  box-shadow: 6px 6px 0 var(--rs-grip);
  transition: transform 0.2s ease;
}

.rs-sticker:nth-child(3n + 1) { background: var(--rs-vent); transform: rotate(-1.5deg); }
.rs-sticker:nth-child(3n + 2) { background: #fff; transform: rotate(1deg); }
.rs-sticker:nth-child(3n) { background: var(--rs-houle); transform: rotate(-0.5deg); }

.rs-sticker:hover {
  transform: rotate(0) translateY(-4px);
}

.rs-sticker h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.rs-sticker p {
  margin: 0;
  font-size: 16px;
}

.rs-crew {
  background: var(--rs-grip);
  color: #f1f1f1;
}

.rs-crew h2 {
  color: #fff;
}

.rs-crew .rs-intro {
  color: #c9c9c9;
}

.rs-crew .rs-sticker {
  border-color: #000;
  box-shadow: 6px 6px 0 #000;
  color: var(--rs-grip);
}

.rs-crew .rs-stickers {
  grid-template-columns: repeat(4, 1fr);
}

.rs-crew .rs-sticker:nth-child(4n) { background: var(--rs-beton); transform: rotate(1.5deg); }

/* ------------------------------------------------------------------ */
/* Fin                                                                 */
/* ------------------------------------------------------------------ */

.rs-cta {
  padding: 120px 0;
  text-align: center;
  background: var(--rs-nuit);
  color: #fff;
}

.rs-cta h2 {
  font-size: clamp(36px, 6vw, 84px);
  margin-bottom: 16px;
}

.rs-cta p {
  color: #b5c4e6;
  margin-bottom: 36px;
}

.rs-cta .rs-store {
  background: #fff;
  color: var(--rs-nuit);
}

.rs-cta .rs-store:hover {
  background: var(--rs-vent);
}

.rs-cta .marker {
  display: block;
  margin-top: 40px;
  font-size: 24px;
  color: var(--rs-vent);
  transform: rotate(-2deg);
}

/* ------------------------------------------------------------------ */
/* Petits écrans                                                       */
/* ------------------------------------------------------------------ */

@media (max-width: 960px) {
  .rs-crew .rs-stickers {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .rs-hero-grid,
  .rs-score-grid {
    grid-template-columns: 1fr;
  }

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

  .rs-stickers {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 560px) {
  .rs-hero {
    padding: 48px 0 72px;
  }

  .rs-features,
  .rs-crew .rs-stickers {
    grid-template-columns: 1fr;
  }

  .rs-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 16px;
  }

  .rs-section {
    padding: 80px 0;
  }

  .rs-live strong {
    font-size: 48px;
  }

  .rs-score .rs-board-note {
    right: 8px;
  }
}
