@charset "utf-8";
/* Page Haltérophilie — ce qui lui est propre. Le commun est dans ../commun.css. */

/* ---- 1. Les deux mouvements en grand (nom français + terme anglais), puis deux cartes de texte ---- */
.mouvements { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.mouvement {
  display: grid; grid-template-columns: 120px 1fr; grid-template-rows: auto auto; column-gap: 26px; align-items: center;
  padding: 30px 34px; border-radius: 24px; background: var(--violet); color: #FFFFFF; transition: transform .25s;
}
.mouvement:hover { transform: translateY(-4px); }
.mouvement svg { grid-row: 1 / 3; width: 120px; height: 120px; fill: none; stroke: #FFFFFF; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mouvement svg rect { fill: #FFFFFF; }
.mouvement-fr { align-self: end; font: 800 46px/1 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.mouvement-en { align-self: start; margin-top: 6px; font: 800 24px/1 'Barlow Condensed', sans-serif; text-transform: uppercase; color: #CFC6FF; letter-spacing: .04em; }
.definitions { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.definition { background: var(--creme); border-radius: 22px; padding: 30px 32px; }
.definition .titre-h3 { font-size: 24px; margin-bottom: 12px; }

/* ---- 2. Publics : trois disques de plus en plus grands sur une barre, un texte sous chacun ---- */
.publics-photo { margin: 44px 0 0; border-radius: 22px; overflow: hidden; }
.publics-photo img { display: block; width: 100%; aspect-ratio: 16 / 6; object-fit: cover; }
.barre-publics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; margin-top: 44px; }
.barre-axe { grid-column: 1 / -1; position: relative; height: 150px; margin-bottom: 26px; }
.barre-axe::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 10px; margin-top: -5px; border-radius: 5px; background: linear-gradient(90deg, #C9C9CF, #E6E6EA 50%, #C9C9CF); }
.disque { position: absolute; top: 50%; border-radius: 12px; transform: translate(-50%, -50%) scaleY(.2); transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.barre-publics.visible .disque, .barre-axe.visible .disque { transform: translate(-50%, -50%); }
.d1 { left: 16.7%; width: 26px; height: 74px; background: var(--lilas); }
.d2 { left: 50%; width: 32px; height: 112px; background: var(--violet); transition-delay: .15s; }
.d3 { left: 83.3%; width: 40px; height: 150px; background: var(--nuit); transition-delay: .3s; }
.barre-public { text-align: left; }
.barre-public .titre-h3 { font-size: 23px; margin-bottom: 10px; }

/* ---- 3. Bénéfices : trois cartes, l'intitulé court à icône en tête ---- */
.atouts-h { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.atout-h { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--creme); }
.atout-h-tete { display: flex; align-items: center; gap: 14px; padding: 20px 26px; background: var(--lilas); }
.atout-h-tete svg { flex: none; width: 46px; height: 46px; padding: 9px; border-radius: 14px; background: var(--violet); fill: none; stroke: #FFFFFF; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.atout-h-tete svg .plein { fill: #FFFFFF; stroke: none; }
.atout-h-tete p { font: 800 22px/1.05 'Barlow Condensed', sans-serif; text-transform: uppercase; color: var(--violet-fonce); }
.atout-h-corps { padding: 24px 26px 30px; }
.atout-h-corps .titre-h3 { font-size: 22px; margin-bottom: 10px; }

/* ---- 4. Pourquoi : la photo du coach, trois paragraphes séparés par un filet ---- */
.encadrement { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4cqw, 64px); align-items: center; margin-top: 48px; }
/* Photo 20, sans zoom : les deux femmes entières dans le cadre, cadrée à gauche (Virginie, 30/10) */
.encadrement-photo { margin: 0; overflow: hidden; border-radius: 22px; }
.encadrement-photo img { display: block; width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 22px; }
.encadrement-texte { color: rgba(245,244,241,.86); }
.encadrement-texte strong { color: #FFFFFF; }
.encadrement-texte > p { padding-left: 22px; border-left: 3px solid var(--violet); }
.encadrement-texte > p + p { margin-top: 22px; }

/* ---- 5. Haltérophilie ⇄ Functional Fitness ---- */
.echange { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 44px; }
.echange-pratique { padding: 14px 26px 12px; border-radius: 16px; background: var(--nuit); color: #FFFFFF; font: 800 34px/1 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.echange-ff { background: var(--violet); }
.echange-fleches svg { display: block; width: 120px; height: 40px; fill: none; stroke: var(--violet); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.echange.visible .echange-fleches svg { animation: echange 2.4s ease-in-out infinite; }
@keyframes echange { 0%, 100% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }
.complement-texte { max-width: 760px; margin: 34px auto 0; }
.complement-lien { margin-top: 20px; }
.complement-lien a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--lilas); color: var(--violet-fonce); text-decoration: none; font-weight: 700; }
.complement-lien a:hover { background: var(--violet); color: #FFFFFF; }

@media (prefers-reduced-motion: reduce) {
  .disque { transition: none; transform: translate(-50%, -50%); }
  .echange.visible .echange-fleches svg { animation: none; }
  .mouvement { transition: none; } .mouvement:hover { transform: none; }
}

/* ---- Téléphone et tablette (1 023 px et moins) ---- */
@media (max-width: 1023.98px) {
  .mouvements, .definitions, .atouts-h, .encadrement { grid-template-columns: 1fr; gap: 18px; margin-top: 34px; }
  .definitions { margin-top: 18px; }
  .mouvement { grid-template-columns: 84px 1fr; column-gap: 18px; padding: 22px; }
  .mouvement svg { width: 84px; height: 84px; }
  .mouvement-fr { font-size: 36px; }
  .mouvement-en { font-size: 20px; }
  .definition, .atout-h-corps { padding: 24px 22px; }
  .publics-photo { margin-top: 30px; }
  .publics-photo img { aspect-ratio: 4 / 3; }
  /* Publics : la barre devient verticale, un disque devant chaque texte */
  .barre-publics { grid-template-columns: 1fr; gap: 26px; margin-top: 34px; position: relative; padding-left: 64px; }
  /* grid-column auto : placé dans la grille, un élément absolu prendrait la zone de la grille (après la marge) comme repère */
  .barre-axe { position: absolute; grid-column: auto; left: 0; top: 0; bottom: 0; width: 46px; height: auto; margin: 0; }
  .barre-axe::before { left: 50%; right: auto; top: 0; bottom: 0; width: 8px; height: auto; margin: 0 0 0 -4px; background: linear-gradient(180deg, #C9C9CF, #E6E6EA 50%, #C9C9CF); }
  .disque { left: 50%; transform: translate(-50%, -50%) scaleX(.2); }
  .barre-publics.visible .disque, .barre-axe.visible .disque { transform: translate(-50%, -50%); }
  /* Sur téléphone, chaque disque se place en face du titre qu'il accompagne */
  .disque { display: none; }
  .barre-public { position: relative; }
  .barre-public::before { content: ""; position: absolute; left: -41px; top: 2px; transform: translateX(-50%); border-radius: 8px; }
  .barre-public:nth-of-type(1)::before { width: 30px; height: 18px; background: var(--lilas); }
  .barre-public:nth-of-type(2)::before { width: 38px; height: 22px; background: var(--violet); }
  .barre-public:nth-of-type(3)::before { width: 46px; height: 26px; background: var(--nuit); }
  /* Le loup des titres prend la place du disque, sur la barre ; le titre s'aligne sur son paragraphe (Virginie, 26/10) */
  .barre-public::before { display: none; }
  .barre-public .titre-loup { padding-left: 0; }
  .barre-public .titre-loup .picto-loup { left: -57px; top: -3px; width: 32px; height: 32px; padding: 3px; box-sizing: border-box; border-radius: 50%; background: var(--creme); }
  .encadrement-photo img { aspect-ratio: 4 / 3; }
  .echange { flex-direction: column; gap: 10px; margin-top: 34px; }
  .echange-pratique { font-size: 28px; }
  .echange-fleches svg { transform: rotate(90deg); width: 70px; }
  /* La flèche tournée mesure 70 px de haut mais sa boîte n'en gardait que 40 : ses pointes touchaient les pastilles.
     La boîte prend la hauteur réelle, plus de l'air de chaque côté (Virginie, 04/11). */
  .echange-fleches { display: flex; align-items: center; justify-content: center; height: 70px; margin: 8px 0; }
  .complement-texte { text-align: center; } /* téléphone et tablette : texte et bouton centrés sous les pastilles (Virginie, 04/11) */
  .echange.visible .echange-fleches svg { animation: none; }
}
@media (max-width: 1023.98px) { .mouvement > * { min-width: 0; } }
@media (max-width: 399.98px) {
  .mouvement { grid-template-columns: 64px 1fr; column-gap: 14px; padding: 20px 18px; }
  .mouvement svg { width: 64px; height: 64px; }
  .mouvement-fr { font-size: 30px; }
  .mouvement-en { font-size: 18px; color: #FFFFFF; }  /* 18 px : le lilas n'atteint que 3,85:1 (Codex, 26/10) */
}

/* ---- Tablette (Virginie, 27/10) : deux cartes = deux colonnes (dès 600 px), trois cartes = trois colonnes (dès 700 px) ---- */
@media (min-width: 700px) and (max-width: 1023.98px) {
  .atouts-h { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .atout-h-tete { padding: 16px 18px; gap: 10px; }
  .atout-h-tete p { font-size: 19px; }
  .atout-h-corps { padding: 20px 18px 24px; }
  .atout-h-corps .titre-h3 { font-size: 20px; }
}
