@font-face { font-family: Montserrat; src: url(fonts/Montserrat-Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: Montserrat; src: url(fonts/Montserrat-Medium.ttf); font-weight: 500; font-display: swap; }
@font-face { font-family: Montserrat; src: url(fonts/Montserrat-SemiBold.ttf); font-weight: 600; font-display: swap; }

:root {
  --violet: #6b3fd6;
  --violet-fort: #5630b8;
  --nuit: #2b1c5e;
  --or: #dcb45a;
  --encre: #241d38;
  --gris: #6b6480;
  --fond: #f8f6fc;
  --lavande: #efeaf9;
  --filet: #e4ddf1;
  --marge: clamp(20px, 5.5vw, 96px);
  --rayon: 22px;
  --doux: cubic-bezier(.22, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 400 17px/1.65 Montserrat, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; border-radius: 6px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Les images viennent de vidéos très saturées : même traitement pour toutes */
.photo { filter: saturate(.74) contrast(.95) brightness(1.02); }

h1 { font-size: clamp(40px, 5.3vw, 82px); font-weight: 500; line-height: 1.06; letter-spacing: -.028em; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.7vw, 54px); font-weight: 500; line-height: 1.12; letter-spacing: -.022em; text-wrap: balance; }
h3 { font-weight: 500; line-height: 1.2; }

.tete { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px var(--marge); background: rgba(248, 246, 252, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: padding .4s var(--doux), box-shadow .4s; }
.tete.descendu { padding-block: 11px; box-shadow: 0 1px 0 var(--filet); }
.logo img { width: 132px; }
.tete nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.tete nav a { font-size: 15px; color: var(--gris); text-decoration: none; transition: color .25s; }
.tete nav a:hover { color: var(--encre); }
.tete .tete-contact { padding: 9px 20px; border-radius: 99px; background: var(--lavande); color: var(--violet-fort); font-weight: 500; }

.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; }
.btn { display: inline-block; padding: 15px 30px; border-radius: 99px; background: var(--violet); color: #fff; font-weight: 500; font-size: 16px; text-decoration: none; box-shadow: 0 12px 28px -14px rgba(107, 63, 214, .75); transition: background .3s, transform .4s var(--doux), box-shadow .4s; }
.btn:hover { background: var(--violet-fort); transform: translateY(-2px); box-shadow: 0 18px 32px -14px rgba(107, 63, 214, .8); }
.btn-clair { padding: 12px 24px; background: #fff; color: var(--nuit); box-shadow: none; }
.btn-clair:hover { background: var(--lavande); box-shadow: none; }
.lien { font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: rgba(107, 63, 214, .4); transition: text-decoration-color .3s; }
.lien:hover { text-decoration-color: currentColor; }

.ouverture { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); align-items: center; gap: clamp(36px, 6vw, 104px); padding: clamp(28px, 3.4vw, 60px) var(--marge) clamp(96px, 10vw, 168px); }
.ouverture-texte > p { margin: 26px 0 36px; max-width: 34ch; font-size: clamp(17px, 1.35vw, 20px); color: var(--gris); }
.ouverture-image { position: relative; }
.ouverture-image .photo { width: 100%; aspect-ratio: 1 / 1.02; object-fit: cover; border-radius: 32px; }
.carte-flottante { position: absolute; left: -13%; bottom: -11%; width: 54%; border-radius: 14px; box-shadow: 0 30px 60px -22px rgba(43, 28, 94, .5); transform: rotate(-5deg); animation: flotte 9s ease-in-out infinite; }
@keyframes flotte { 50% { transform: rotate(-3.6deg) translateY(-10px); } }

.section { padding: clamp(64px, 8vw, 136px) var(--marge); }
#salles { padding-top: 0; }
.titre { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 32px; margin-bottom: clamp(26px, 3.2vw, 48px); }
.titre p { color: var(--gris); }

/* Les salles : une ouverte, les autres attendent */
.salles { display: flex; gap: 14px; height: clamp(440px, 42vw, 620px); }
.salle { position: relative; flex: 1; min-width: 0; border-radius: var(--rayon); overflow: hidden; background: var(--nuit); color: #fff; transition: flex-grow .8s var(--doux); }
.salle.active { flex-grow: 4.4; }
.salle > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transition: transform 1.2s var(--doux); }
.salle:not(.active):hover > img { transform: scale(1.04); }
.salle::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(36, 22, 82, .86) 0%, rgba(36, 22, 82, .32) 44%, rgba(36, 22, 82, .1) 100%); pointer-events: none; }
.salle-ouvrir { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; width: 100%; padding: 24px 20px; border: 0; background: none; color: #fff; font: 500 20px/1.2 Montserrat, sans-serif; letter-spacing: -.01em; text-align: left; cursor: pointer; transition: opacity .3s; }
.salle-ouvrir:focus-visible { outline-color: #fff; outline-offset: -6px; border-radius: var(--rayon); }
.salle.active .salle-ouvrir { opacity: 0; pointer-events: none; }
.salle-infos { position: absolute; left: 0; bottom: 0; z-index: 3; width: min(520px, 82vw); padding: clamp(24px, 2.8vw, 42px); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .5s var(--doux), visibility 0s .25s; }
.salle.active .salle-infos { opacity: 1; visibility: visible; transform: none; transition: opacity .6s .3s, transform .7s .3s var(--doux), visibility 0s; }
.salle-infos h3 { font-size: clamp(30px, 3.2vw, 46px); letter-spacing: -.02em; }
.salle-infos p { color: #e9e3f7; }
.salle-infos h3 + p { margin: 8px 0 4px; color: #fff; font-weight: 500; }
.salle-infos .actions { margin-top: 22px; }
.salle-infos .lien { text-decoration-color: rgba(255, 255, 255, .5); }

.entrainement { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: end; background: var(--lavande); }
.disciplines { font-size: clamp(27px, 3.5vw, 54px); font-weight: 500; line-height: 1.28; letter-spacing: -.022em; color: var(--nuit); }
.disciplines span { display: inline-block; margin-right: .32em; color: #8474b5; transition: color .45s; }
.disciplines span:hover { color: var(--violet); }
.disciplines span:nth-child(3n+1) { color: var(--nuit); }
.disciplines span:nth-child(3n+1):hover { color: var(--violet); }
.rdv h3 { font-size: 19px; margin-bottom: 14px; }
.rdv dl > div { display: grid; grid-template-columns: 104px 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid #d9cfee; }
.rdv dt { font-weight: 500; }
.rdv dd { color: var(--gris); }
.rdv > p { font-size: 15px; color: var(--gris); padding-top: 16px; border-top: 1px solid #d9cfee; }

.galerie { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: clamp(64px, 8vw, 136px) var(--marge) 0; align-items: start; }
.galerie figure { overflow: hidden; }
.galerie img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 25%; border-radius: var(--rayon); }
.g-haute { margin-top: clamp(28px, 4.4vw, 72px); }
.galerie figcaption { margin-top: 12px; font-size: 15px; color: var(--gris); }

.carte-panneau { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: clamp(32px, 5vw, 80px); padding: clamp(36px, 6vw, 96px); border-radius: 36px; background: radial-gradient(110% 130% at 85% 20%, #4d33a0 0%, #32216f 52%, #281a59 100%); color: #fff; overflow: hidden; }
.carte-texte > p { margin-top: 22px; max-width: 36ch; color: #d9d1ef; }
.carte-texte .devise { margin-top: 38px; color: var(--or); font-weight: 500; letter-spacing: .02em; }
.cartes { position: relative; aspect-ratio: 1.3; perspective: 1200px; }
.cartes img { position: absolute; width: 76%; border-radius: 16px; box-shadow: 0 34px 60px -24px rgba(12, 5, 40, .75); transition: transform .9s var(--doux); }
.cartes img:first-child { right: 0; top: 2%; transform: rotate(7deg) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); }
.cartes img:last-child { left: 0; bottom: 4%; transform: rotate(-5deg) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); }

.videos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.video { position: relative; display: block; width: 100%; aspect-ratio: 9 / 15; padding: 0; border: 0; border-radius: var(--rayon); overflow: hidden; background: var(--nuit); color: #fff; font: inherit; text-align: left; cursor: pointer; }
.video > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--doux); }
button.video:hover > img { transform: scale(1.04); }
button.video::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(36, 22, 82, .86)); }
.lire { position: absolute; top: 16px; right: 16px; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--violet); transition: transform .5s var(--doux); }
.video:hover .lire { transform: scale(1.1); }
.video-titre { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 1; font-size: 16px; font-weight: 500; line-height: 1.35; }
.video-titre small { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; color: #ded6f2; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.pied { padding: clamp(64px, 8vw, 128px) var(--marge) 34px; background: var(--lavande); }
.pied-mail { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px; padding-bottom: clamp(36px, 4.5vw, 68px); }
.pied-mail a { font-size: clamp(18px, 2vw, 28px); font-weight: 500; color: var(--violet); text-decoration: none; overflow-wrap: anywhere; }
.pied-mail a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.contacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding-top: 30px; border-top: 1px solid #d9cfee; }
.contacts h3 { font-size: 18px; margin-bottom: 8px; }
.contacts a, .contacts span { display: block; width: fit-content; padding: 3px 0; color: var(--gris); text-decoration: none; transition: color .25s; }
.contacts a:hover { color: var(--violet); }
.pied-bas { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; margin-top: clamp(44px, 5vw, 80px); }
.pied-bas p { font-size: 13.5px; color: var(--gris); }

.js .apparait { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--doux), transform .9s var(--doux); }
.js .apparait.vu { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .ouverture, .entrainement, .carte-panneau { grid-template-columns: minmax(0, 1fr); }
  .ouverture-texte > p { max-width: 46ch; }
  .carte-flottante { left: -3%; bottom: -8%; width: 52%; }
  .videos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--marge) * -1); padding-inline: var(--marge); scroll-padding-inline: var(--marge); scrollbar-width: none; }
  .videos::-webkit-scrollbar { display: none; }
  .video { flex: 0 0 min(70%, 300px); scroll-snap-align: start; }
  .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tete nav a[href="#entrainement"], .tete nav a[href="#videos"] { display: none; }
}
@media (max-width: 760px) {
  .salles { flex-direction: column; height: auto; }
  .salle { flex: none; height: 94px; transition: height .7s var(--doux); }
  .salle.active { height: 440px; }
  .salle-ouvrir { align-items: center; }
  .salle-infos { width: 100%; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .logo img { width: 108px; }
  .tete { gap: 12px; padding-block: 14px; }
  .tete nav { gap: 14px; }
  .tete nav a { font-size: 14px; }
  .tete .tete-contact { padding: 8px 15px; }
  .ouverture-image .photo { border-radius: 24px; }
  .carte-panneau { padding: 38px 24px; border-radius: 26px; }
  .galerie { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .apparait { opacity: 1; transform: none; }
}
