/* Ascendo : feuille de style unique. Polices auto-hébergées (aucun appel à Google). */

@font-face {
  font-family: "Big Shoulders";
  src: url("../fonts/big-shoulders-display-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #0a1912;
  --surface: #102419;
  --line: #28483a;
  --text: #eaf1ec;
  --muted: #a6bcaf;
  --accent: #62e590;
  --accent-ink: #06150d;
  --display: "Big Shoulders", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 2.5rem, 68rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  z-index: 10;
}

.skip:focus {
  top: 1rem;
}

/* En-tête */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: clamp(1rem, 4vw, 2rem);
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* Accueil */

.hero {
  padding-top: clamp(2.5rem, 7vw, 5rem);
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3rem, 12vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
}

.lead {
  max-width: 36rem;
  margin: 1.75rem 0 0;
  font-size: 1.2rem;
  color: var(--text);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.4rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
}

.btn:hover {
  border-color: var(--accent);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: #86f0ad;
  border-color: #86f0ad;
}

/* Profil d'élévation : le seul moment animé de la page */

.climb {
  margin-top: clamp(2rem, 6vw, 4rem);
}

.climb svg {
  display: block;
  width: 100%;
  height: clamp(110px, 20vw, 240px);
}

.climb .profile-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: draw 2.6s cubic-bezier(0.3, 0.1, 0.2, 1) both;
}

.climb .profile-fill {
  animation: fade 1.6s ease-out 1.2s both;
}

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

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .climb .profile-line,
  .climb .profile-fill {
    animation: none;
  }
}

/* Sections */

.section {
  padding-block: clamp(3.5rem, 9vw, 7rem);
}

.section-alt {
  background: var(--surface);
}

.section h2 {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.3rem, 5.5vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0.005em;
}

.section-intro {
  max-width: 38rem;
  margin: 0 0 2.5rem;
  color: var(--muted);
}

.rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: 0.75rem 3rem;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--line);
}

.row h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1.05;
}

.row p {
  margin: 0;
  max-width: 40rem;
}

.row .more {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.97rem;
}

/* Tarifs */

.price-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.price-lines li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--line);
}

.price-lines li:last-child {
  border-bottom: 0;
}

.price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  white-space: nowrap;
}

.row .price-desc {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.97rem;
}

.note {
  max-width: 40rem;
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* À propos */

.about {
  max-width: 38rem;
}

.about p {
  margin: 0 0 1rem;
}

/* Contact */

.contact-mail {
  display: inline-block;
  margin: 0.5rem 0 2rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 6vw, 3.2rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-decoration-line: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.25em;
}

.contact-mail:hover {
  color: var(--accent);
}

/* Pied de page */

.site-footer {
  padding-block: 2rem 3rem;
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

/* Page 404 */

.not-found {
  padding-block: clamp(4rem, 14vw, 9rem);
}

.not-found h1 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3rem, 10vw, 6rem);
  line-height: 0.95;
}

/* Mobile */

@media (max-width: 720px) {
  .row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.6rem;
    padding-block: 1.35rem;
  }

  .row h3 {
    font-size: 1.7rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Image de fond de l'accueil */

.hero {
  position: relative;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: calc(clamp(110px, 20vw, 240px) + clamp(2rem, 6vw, 4rem));
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  background: url("../img/hero.webp") right center / cover no-repeat;
  filter: brightness(1.5) contrast(1.08);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 90%, transparent 100%);
}

/* Voile à gauche : garde le texte lisible sur l'image */
.hero::after {
  background: linear-gradient(90deg, var(--ground) 0%, rgba(10, 25, 18, 0.9) 38%, rgba(10, 25, 18, 0.3) 58%, rgba(10, 25, 18, 0) 72%);
}

/* Disciplines (texte réel, lisible) */

.disciplines {
  list-style: none;
  margin: clamp(2rem, 5vw, 3.25rem) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 0;
}

.disciplines li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding-inline: clamp(0.9rem, 2vw, 1.5rem);
  border-left: 1px solid var(--line);
  color: #dbe9e0;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.disciplines li:first-child {
  padding-left: 0;
  border-left: 0;
}

.disciplines svg {
  color: var(--accent);
}

@media (max-width: 720px) {
  .hero::before {
    background: url("../img/hero.webp") right top / auto 125% no-repeat;
    opacity: 0.4;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(10, 25, 18, 0.35) 0%, rgba(10, 25, 18, 0.75) 100%);
  }

  .disciplines {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem 0;
  }

  .disciplines li {
    padding-inline: 0.25rem;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-align: center;
  }

  .disciplines li:first-child {
    padding-left: 0.25rem;
  }

  .disciplines li:nth-child(3n + 1) {
    border-left: 0;
  }
}

/* Photo et contact */

.about {
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;
  max-width: 44rem;
}

.about-text {
  max-width: 38rem;
}

.portrait {
  flex: none;
  width: 7.5rem;
  height: 7.5rem;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.contact-phone {
  display: block;
  width: fit-content;
  margin: -1rem 0 2rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.4rem, 5vw, 2.2rem);
  line-height: 1.1;
  text-decoration-line: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}

.contact-phone:hover {
  color: var(--accent);
}

@media (max-width: 720px) {
  .about {
    flex-direction: column;
    gap: 1.25rem;
  }

  .portrait {
    width: 6rem;
    height: 6rem;
  }
}

/* Formules du programme personnalisé */

.formulas {
  display: grid;
  gap: 1rem;
}

.formula {
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ground);
}

.formula-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 0.9rem;
}

.formula-head h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.1;
}

.price small {
  margin-left: 0.15em;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--muted);
}

.formula-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.formula-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-top: 0.4rem;
  font-size: 0.97rem;
}

.formula-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.45rem;
  height: 2px;
  background: var(--accent);
}

.formula-extra {
  margin-top: 1.25rem;
}

.formula-extra li {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

@media (max-width: 720px) {
  .formula {
    padding: 1.1rem 1rem;
  }

  .formula-head {
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
  }
}
