/* Reproduction de therapiedusport.com */
:root {
  --bleu: #185caf;
  --bleu-bouton: #1972de;
  --bleu-pied: #154278;
  --bordeaux: #8b3434;
  --saumon: #fbab99;
  --rose-pale: #fcefe8;
  --gris-bleu: #e5eef0;
  --avenir: "Avenir", "Avenir Next", "Nunito Sans", "Helvetica Neue", Arial, sans-serif;
  --baskerville: "Libre Baskerville", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 61px; }

body {
  margin: 0;
  background: #fff;
  color: var(--bleu);
  font-family: var(--avenir);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.contenu { width: 100%; max-width: 980px; margin: 0 auto; }
.cadre { max-width: 1180px; margin: 0 auto; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 61px;
  background: #fff;
}
.entete .contenu {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1012px;
  padding: 0 16px;
}
.entete nav { margin-right: 44px; }
.marque { margin-left: -42px; }
.marque {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--bordeaux);
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
}
.marque svg { width: 35px; height: 40px; fill: var(--saumon); flex: none; }
.menu { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.menu a {
  text-decoration: none;
  color: var(--bordeaux);
  font-size: 13px;
  transition: color .3s;
}
.menu a:hover, .menu a.actif { color: var(--saumon); }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 3px solid var(--bleu-bouton);
  color: var(--bleu-bouton);
  font-family: var(--baskerville);
  font-style: italic;
  font-size: 15px;
  text-decoration: none;
  padding: 0 14px;
  transition: background .3s, color .3s;
}
.bouton:hover { background: var(--bleu-bouton); color: #fff; }
.bouton-grand { height: 52px; }
.bouton-petit { height: 39px; }
.bouton-reserver {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 142px;
  height: 40px;
  background: var(--saumon);
  color: #fff;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-decoration: none;
  transition: background .3s;
}
.bouton-reserver:hover { background: var(--bleu); }

/* ---------- Titres de section ---------- */
.titre-section {
  margin: 0;
  font-family: var(--baskerville);
  font-style: italic;
  font-weight: 400;
  font-size: 50px;
  line-height: 1.3;
}
.t-bordeaux { color: var(--bordeaux); }
.t-bleu { color: var(--bleu); }

/* ---------- Héro ---------- */
.hero {
  min-height: 509px;
  margin-bottom: 23px;
  padding: 68px 16px 0;
  text-align: center;
  background: var(--rose-pale) url("images/fond-hero.png") center / cover no-repeat;
  border-radius: 0 0 50% 50% / 0 0 40% 40%;
}
.hero .accroche {
  display: inline-block;
  margin: 0;
  padding: 0 90px;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 1px;
  line-height: 1.4;
  background: linear-gradient(#fff, #fff) center 72% / 100% 18px no-repeat;
}
.hero h1 {
  margin: 18px auto 0;
  max-width: 980px;
  color: var(--bordeaux);
  font-weight: 800;
  font-size: 82px;
  line-height: 1.2;
}
.hero .bouton { margin-top: 62px; }

/* ---------- À propos + formations ---------- */
.apropos { background: var(--rose-pale); padding: 50px 0 53px; }
.apropos .cadre { background: #fff; padding-bottom: 28px; }
.apropos .contenu { position: relative; padding: 0 59px 0; }
.apropos .portrait {
  position: absolute;
  left: 59px;
  top: -14px;
  width: 300px;
  height: 304px;
  object-fit: cover;
}
.apropos .contenu > .titre-section {
  margin-left: 290px;
  text-align: center;
  transform: translateY(-35px);
}
.apropos .presentation {
  position: relative;
  margin: 25px -34px 0 231px;
  padding: 18px 4px;
  min-height: 182px;
  background: rgba(255, 255, 255, .74);
  font-size: 17px;
  text-align: center;
}
.apropos .presentation p { margin: 0; }
.formations { margin-top: 30px; }
.formations .colonnes {
  display: grid;
  grid-template-columns: 398px 1fr;
  gap: 21px;
  margin-top: 26px;
}
.formations h4 { margin: 0 0 8px; font-weight: 800; font-size: 18px; }
.formations p { margin: 0 0 26px; font-size: 17px; }
.formations ul { list-style: none; margin: 0; padding: 0; font-size: 17px; }
.formations li { padding-left: 22px; text-indent: -22px; margin-bottom: 4px; }
.formations li::before { content: "-"; display: inline-block; width: 22px; text-indent: 0; }

/* ---------- Services ---------- */
.services { background: var(--rose-pale); padding: 21px 16px 45px; text-align: center; }
.services .grille {
  display: grid;
  grid-template-columns: repeat(3, 280px);
  justify-content: space-between;
  max-width: 962px;
  margin: 15px auto 0;
}
.services img { width: 121px; height: 121px; border-radius: 50%; margin: 0 auto 14px; }
.services h3 { margin: 0 0 14px; font-weight: 300; font-size: 20px; }
.services p { margin: 0; line-height: 1.9; }
.services .bouton { margin-top: 12px; }

/* ---------- Lieux de travail ---------- */
.lieux .cadre {
  padding: 97px 16px 31px;
  text-align: center;
  background: url("images/fond-lieux.png") center / cover no-repeat;
}
.lieux { padding-bottom: 41px; }
.lieux .titre-section {
  display: inline-block;
  padding: 0 14px;
  background: linear-gradient(var(--rose-pale), var(--rose-pale)) bottom / 100% 32px no-repeat;
}
.lieux .grille {
  display: grid;
  grid-template-columns: repeat(2, 258px);
  justify-content: center;
  gap: 96px;
  margin-top: 52px;
}
.lieux h4 { margin: 0; font-weight: 800; font-size: 18px; letter-spacing: 1.5px; line-height: 1.2; }
.lieux p { margin: 0; line-height: 1.9; }
.lieux .bouton-reserver { margin-top: 42px; }

/* ---------- Pied de page ---------- */
.pied { height: 124px; background: var(--bleu-pied); }

/* ---------- Page Contact ---------- */
.contact { position: relative; padding: 26px 16px 0; text-align: center; }
.contact h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Oi", var(--avenir);
  font-weight: 400;
  font-size: 56px;
  line-height: 1.2;
}
.contact .bulle {
  max-width: 1047px;
  min-height: 211px;
  margin: -28px auto 0;
  padding: 50px 24px 14px;
  border-radius: 300px;
  background: rgba(255, 188, 153, .38);
}
.contact .bulle p { max-width: 669px; margin: 0 auto; line-height: 1.9; }
.contact .courriel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  text-decoration: none;
}
.contact .courriel:hover { text-decoration: underline; }
.contact .courriel img { width: 28px; height: 17px; }

.galerie { position: relative; width: 980px; height: 1193px; margin: 29px auto 0; }
.galerie .instagram { position: absolute; left: 1002px; top: 22px; width: 23px; height: 23px; }
.galerie .fond { position: absolute; }
.galerie .fond-basket { left: 27px; top: 46px; width: 716px; height: 412px; background: var(--gris-bleu); }
.galerie .fond-rugby { left: 180px; top: 633px; width: 755px; height: 339px; background: var(--rose-pale); }
.galerie h2 {
  position: absolute;
  margin: 0;
  font-family: "Bangers", var(--avenir);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  transform: skewX(-8deg);
}
.galerie .titre-basket {
  left: 51px; top: 16px;
  -webkit-text-stroke: 2px var(--bleu);
  text-shadow: 3px 3px 0 var(--bleu);
}
.galerie .titre-rugby {
  right: 66px; top: 601px;
  -webkit-text-stroke: 2px #8b0000;
  text-shadow: 3px 3px 0 #8b0000;
}
.galerie .annee {
  position: absolute;
  margin: 0;
  font-family: "Futura", var(--avenir);
  font-style: italic;
  font-size: 15px;
  letter-spacing: .45px;
}
.galerie .annee-basket { left: 38px; top: 65px; }
.galerie .annee-rugby { left: 640px; top: 652px; color: #8b0000; }
.galerie .photo { position: absolute; left: var(--x); top: var(--y); width: var(--l); height: var(--h); object-fit: cover; }

/* ---------- Écrans étroits ---------- */
@media (max-width: 1100px) {
  .galerie { width: auto; height: auto; padding: 0 16px 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
  .galerie .fond { display: none; }
  .galerie h2, .galerie .annee { position: static; grid-column: 1 / -1; }
  .galerie h2 { margin-top: 24px; }
  .galerie .instagram { position: static; grid-column: 1 / -1; justify-self: end; }
  .galerie .photo { position: static; width: 100%; height: 220px; }
}

@media (max-width: 1000px) {
  .menu { gap: 16px; }
  .hero h1 { font-size: clamp(38px, 8vw, 82px); }
  .hero { min-height: 0; padding-bottom: 110px; background-size: cover; }
  .hero .accroche { padding: 0 24px; }

  .apropos .contenu { padding: 0 20px; }
  .apropos .portrait { position: static; margin: 0 auto; transform: translateY(-14px); }
  .apropos .contenu > .titre-section { margin-left: 0; transform: none; }
  .marque { margin-left: 0; }
  .entete nav { margin-right: 0; }
  .apropos .presentation { margin: 16px 0 0; min-height: 0; }
  .formations .colonnes { grid-template-columns: 1fr; gap: 0; }

  .services .grille { grid-template-columns: minmax(0, 420px); justify-content: center; gap: 44px; }
  .lieux .grille { grid-template-columns: minmax(0, 300px); gap: 48px; }
  .titre-section { font-size: 38px; }
  .contact .bulle { border-radius: 60px; }
  .contact h1 { font-size: 40px; }
}

@media (max-width: 720px) {
  .entete { height: auto; }
  .entete .contenu { flex-direction: column; gap: 6px; padding: 8px 16px; }
  .menu { flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
  html { scroll-padding-top: 110px; }
}
