/*
  Site vitrine StreetProg, en grille bento.
  Couleurs du thème Océan de l'appli (src/styles/themes/_ocean.scss) ; typographie et formes
  du design system : Poppins, titres 900 italique, aplats d'action en biais, angles coupés.
*/
:root {
  --prussian: #0a1128;
  --navy: #001f54;
  --yale: #034078;
  --action: #2896b8;        /* cérulé des aplats qui portent du texte (texte bleu de Prusse) */
  --action-hover: #3fa6c6;
  --accent-dark: #4fb3d4;   /* accent de texte sur fond sombre */
  --mist: #eaf0f6;
  --white: #fefcfb;
  --soft: #dbe7f3;
  --text-soft: #3c4a63;
  --on-dark-soft: #dbe5f1;
  --line: rgba(10, 17, 40, .14);
  --font: "Poppins", Roboto, Arial, sans-serif;
  --radius: 10px;
  --gap: clamp(10px, 1.4vw, 16px);
  --pad: clamp(18px, 2.2vw, 28px);
  --max: 1240px;
  --slant: 14px;
  --cut: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 400 16px/1.55 var(--font); color: var(--prussian); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p, figure, ul, ol { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 clamp(12px, 3vw, 28px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.material-symbols-rounded { font-size: 30px; line-height: 1; color: var(--yale); }

/* Bouton d'action : aplat cérulé en biais, texte bleu de Prusse, contour fin */
.cta {
  position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 12px 30px; font-weight: 800; font-style: italic; text-decoration: none; color: var(--prussian);
  isolation: isolate; text-align: center;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--action); border: 1px solid var(--prussian);
  clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
  transition: background-color .15s ease;
}
.cta:hover::before { background: var(--action-hover); }
.cta--small { min-height: 40px; padding: 8px 22px; font-size: 14px; }

.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--yale); }
.eyebrow--light { color: var(--accent-dark); }
.note { font-size: 12px; color: #6a7891; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 5; background: rgba(10, 17, 40, .94); color: var(--white); backdrop-filter: blur(8px); }
.top__inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { font-weight: 900; font-style: italic; font-size: 24px; letter-spacing: -0.04em; text-decoration: none; color: var(--white); }
.logo span { color: var(--accent-dark); }
.logo--small { font-size: 20px; }
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: #c6d3e3; }
.nav a:hover { color: var(--white); }
.top__actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.link-login { font-weight: 600; font-size: 15px; color: var(--white); }
@media (max-width: 860px) { .nav { display: none; } }
@media (max-width: 420px) { .link-login { display: none; } }

/* ===== Grille bento ===== */
main { padding-top: var(--gap); padding-bottom: calc(var(--gap) * 3); }
.bento {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(170px, auto);
  grid-template-areas:
    "hero hero hero train"
    "hero hero hero coachE"
    "hero hero hero timer"
    "guide guide battles battles"
    "guide guide battles battles"
    "prog voice battles battles"
    "coach coach coach feed"
    "coach coach coach photo"
    "pricing pricing pricing pricing"
    "final final final final";
}
.tile--hero { grid-area: hero; }
.tile--action { grid-area: train; }
.tile--entry-coach { grid-area: coachE; }
.tile--timer { grid-area: timer; }
.tile--guide { grid-area: guide; }
.tile--battles { grid-area: battles; }
.tile--prog { grid-area: prog; }
.tile--voice { grid-area: voice; }
.tile--feed { grid-area: feed; }
.tile--photo { grid-area: photo; }
.tile--coach { grid-area: coach; }
.tile--pricing { grid-area: pricing; }
.tile--final { grid-area: final; }

@media (max-width: 1000px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "hero hero"
      "train coachE"
      "timer prog"
      "guide guide"
      "battles battles"
      "voice feed"
      "coach coach"
      "photo photo"
      "pricing pricing"
      "final final";
  }
}
@media (max-width: 620px) {
  .bento {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
    grid-template-areas: "hero" "train" "coachE" "timer" "guide" "battles" "prog" "voice" "feed" "coach" "pricing" "final";
  }
  .bento .tile--photo { display: none; }
}

/* ===== Tuiles ===== */
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: var(--pad);
  background: var(--mist); display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.tile__h { font-size: clamp(22px, 2.3vw, 30px); font-weight: 900; font-style: italic; letter-spacing: -0.02em; line-height: 1.08; }
.tile__h--small { font-size: 20px; }
.tile__text { color: var(--text-soft); max-width: 46ch; }
.tile__title { font-size: 26px; font-weight: 900; font-style: italic; letter-spacing: -0.02em; line-height: 1.1; }
.tile__more { margin-top: auto; font-weight: 700; }
.tile__photo { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
.tile__content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; height: 100%; }

/* Tuiles sur fond sombre (photo ou bleu de Prusse) */
.tile--hero, .tile--timer, .tile--guide, .tile--battles, .tile--dark, .tile--final { background: var(--prussian); color: var(--white); }
.tile--hero .tile__text, .tile--guide .tile__text, .tile--battles .tile__text, .tile--dark .tile__text, .tile--timer .tile__text { color: var(--on-dark-soft); }
.tile--dark .material-symbols-rounded, .tile--guide .material-symbols-rounded { color: var(--accent-dark); }

/* Accroche */
.tile--hero { min-height: clamp(420px, 52vw, 560px); justify-content: flex-end; padding: clamp(24px, 4vw, 48px); }
.tile--hero .tile__photo { object-position: 70% center; opacity: .6; }
.tile--hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,17,40,.96) 0%, rgba(10,17,40,.7) 50%, rgba(10,17,40,.1) 100%); }
.tile--hero .tile__content { justify-content: flex-end; gap: 16px; }
.tile--hero h1 { font-size: clamp(34px, 4.8vw, 64px); font-weight: 900; font-style: italic; letter-spacing: -0.03em; line-height: 1.02; max-width: 15ch; }
.lead { color: var(--on-dark-soft); font-size: clamp(16px, 1.6vw, 19px); max-width: 44ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 8px; }
.link-light { color: var(--white); font-weight: 600; }

/* Entrées : tuiles cliquables, angles coupés */
.tile--entry { text-decoration: none; transition: transform .15s ease, background-color .15s ease, border-color .15s ease; }
.tile--action { background: var(--action); color: var(--prussian); clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.tile--action .material-symbols-rounded, .tile--action .tile__text { color: var(--prussian); }
.tile--action:hover { background: var(--action-hover); }
.tile--entry-coach { background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--yale); }
.tile--entry-coach .tile__more { color: var(--yale); }
.tile--entry-coach:hover { border-color: var(--prussian); }
@media (prefers-reduced-motion: no-preference) { .tile--entry:hover { transform: translateY(-2px); } }

/* Chrono */
.timer {
  align-self: center; width: min(170px, 70%); aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(circle, var(--prussian) 0 62%, transparent 63%), conic-gradient(var(--action) 0 75%, var(--navy) 75% 100%);
  margin-bottom: 6px;
}
.timer__label { font-weight: 800; font-size: 12px; letter-spacing: .14em; color: var(--accent-dark); }
.timer__value { font-weight: 900; font-style: italic; font-size: clamp(30px, 3vw, 40px); letter-spacing: -0.03em; line-height: 1; }

/* Séance guidée : photo, texte en bas */
.tile--guide { min-height: 380px; justify-content: flex-end; }
.tile--guide .tile__photo { opacity: .75; }
.tile--guide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,17,40,.95) 0%, rgba(10,17,40,.35) 55%, rgba(10,17,40,0) 100%); }
.tile--guide .tile__content { justify-content: flex-end; }

/* Battles */
.tile--battles { min-height: 420px; }
.tile--battles .tile__photo { opacity: .3; }
.tile--battles::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,17,40,.55), rgba(10,17,40,.9)); }
.podium { list-style: none; padding: 0; display: grid; gap: 8px; margin-top: auto; }
.podium li { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; padding: 12px 16px; background: rgba(254,252,251,.08); border: 1px solid rgba(254,252,251,.2); border-radius: 8px; }
.podium li:first-child { background: var(--action); color: var(--prussian); border-color: var(--prussian); }
.podium__rank { font-weight: 900; font-style: italic; font-size: 22px; }
.podium__name { font-weight: 700; }
.podium__score { font-weight: 800; font-variant-numeric: tabular-nums; }
.tile--battles .note { color: #9fb3cc; }

/* Petites tuiles */
.tile--small { justify-content: flex-start; }
.tile--dark { background: var(--navy); }
.tile--dark .tile__h { color: var(--white); }

/* Photo seule */
.tile--photo { padding: 0; min-height: 170px; }

/* Coachs */
.tile--coach { background: var(--white); border: 1px solid var(--line); display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--pad); align-items: stretch; }
.tile--coach .tile__content { gap: 14px; align-items: flex-start; }
.tile__side { width: 100%; height: 100% !important; min-height: 220px; object-fit: cover; border-radius: 8px; }
@media (max-width: 620px) { .tile--coach { grid-template-columns: 1fr; } .tile__side { min-height: 200px; max-height: 260px; } }
.checks { list-style: none; padding: 0; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 30px; font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 10px; border-left: 3px solid var(--yale); border-bottom: 3px solid var(--yale); transform: rotate(-45deg); }
.tile--coach .cta { margin-top: auto; }

/* Tarifs */
.tile--pricing { gap: 14px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 20px; display: grid; gap: 6px; align-content: start; }
.plan h3 { font-size: 18px; font-weight: 800; }
.plan--featured { border: 2px solid var(--prussian); box-shadow: 0 2px 0 var(--prussian); }
.plan__price strong { font-size: 34px; font-weight: 900; font-style: italic; letter-spacing: -0.02em; }
.plan__price span { color: #4a5873; margin-left: 4px; }
.plan p:last-child { color: var(--text-soft); }
.plan p.plan__offer { color: var(--yale); font-weight: 700; font-size: 14px; }
.offer { margin: 4px 0 14px; padding: 10px 14px; background: var(--mist); border-left: 4px solid var(--action); border-radius: 4px; }
.offer strong { color: var(--yale); }

/* Appel final */
.tile--final { background: var(--navy); min-height: 240px; justify-content: center; }
.tile--final .tile__photo { opacity: .3; }
.tile--final .tile__content { justify-content: center; align-items: flex-start; gap: 22px; }
.tile--final .tile__h { font-size: clamp(28px, 3.6vw, 44px); max-width: 18ch; }

/* Pied de page */
.footer { background: var(--prussian); color: #c6d3e3; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a { color: #c6d3e3; font-size: 14px; }
