/* FIT'WORLD, pages intérieures (complète site-v4.css) - AES Communication, 17/11/2026
   Préfixe fp-. Chaque page peut ajouter sa feuille assets/css/page-<nom>.css, jamais modifier celle-ci. */

/* ---------- Ouverture des pages : la photo, et l'apostrophe rouge du logo qui grandit puis s'efface ---------- */
.fp-ouverture{position:relative;min-height:84vh;min-height:84svh;display:flex;align-items:flex-end;color:#fff;overflow:hidden;background:#141415}
.fp-ouverture--court{min-height:62vh;min-height:62svh}
.fp-ouverture__photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;animation:fp-recul 7s cubic-bezier(.2,.6,.2,1) both}
.fp-ouverture::after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(0,0,0,.42) 0%,rgba(0,0,0,.06) 30%,rgba(0,0,0,.2) 52%,rgba(0,0,0,.84) 100%);pointer-events:none}
.fp-ouverture__contenu{position:relative;z-index:2;width:100%;max-width:1760px;margin:0 auto;padding:calc(var(--fv-tete) + 40px) var(--fv-bord) clamp(44px,7vh,90px)}
.fp-ariane{display:flex;flex-wrap:wrap;gap:6px 10px;margin-bottom:clamp(14px,2vh,24px);font-size:15px;font-weight:600;color:rgba(255,255,255,.86)}
.fp-ariane a{text-decoration:none}
.fp-ariane a:hover{text-decoration:underline;text-decoration-color:var(--fv-rouge);text-underline-offset:4px}
.fp-titre{margin:0;font-family:var(--fv-titre);font-weight:820;font-stretch:84%;text-transform:uppercase;font-size:clamp(62px,10.4vw,204px);line-height:.8;letter-spacing:-.012em}
.fp-titre__suite{display:block;margin-top:clamp(12px,1.8vh,22px);font-weight:620;font-stretch:84%;text-transform:none;font-size:clamp(22px,2.1vw,40px);line-height:1.1;letter-spacing:0}
.fp-ouverture__texte{max-width:720px;margin:16px 0 0;font-size:clamp(17px,1.15vw,20px);line-height:1.5;color:rgba(255,255,255,.92);text-wrap:balance}
.fp-ouverture .fv-actions{margin-top:26px;align-items:center;gap:16px 32px}
.fp-ouverture .fv-lien{color:#fff}
.fp-ouverture .fv-lien:hover{text-decoration-color:#fff}

/* Le rideau : l'apostrophe rouge du logo, posée à gauche du titre, s'étend à tout l'écran puis glisse à droite */
.fp-rideau{position:absolute;inset:0;z-index:3;background:var(--fv-rouge);transform-origin:var(--fp-x,7%) var(--fp-y,58%);animation:fp-apostrophe 1.3s cubic-bezier(.76,0,.24,1) .12s both;pointer-events:none}
@keyframes fp-apostrophe{0%{transform:translateX(0) scale(.012,.075)}44%{transform:translateX(0) scale(1,1)}100%{transform:translateX(101%) scale(1,1)}}
@keyframes fp-recul{from{transform:scale(1.14)}to{transform:scale(1.02)}}
.fp-ouverture__contenu > *{animation:fp-monte .8s cubic-bezier(.2,.7,.2,1) both}
.fp-ouverture__contenu > :nth-child(1){animation-delay:.95s}
.fp-ouverture__contenu > :nth-child(2){animation-delay:1.02s}
.fp-ouverture__contenu > :nth-child(3){animation-delay:1.14s}
.fp-ouverture__contenu > :nth-child(4){animation-delay:1.24s}
@keyframes fp-monte{from{opacity:0;transform:translateY(32px)}to{opacity:1;transform:none}}

/* Ouverture sans photo (pages légales) */
.fp-ouverture--uni{min-height:0;background:var(--fv-noir)}
.fp-ouverture--uni::after{display:none}
.fp-ouverture--uni .fp-ouverture__contenu{padding-top:calc(var(--fv-tete) + 70px);padding-bottom:60px}
.fp-ouverture--uni .fp-titre{font-size:clamp(46px,6vw,110px)}

/* ---------- Sections communes ---------- */
.fp-section{padding:clamp(80px,8vw,140px) 0}
.fp-section--sable{background:var(--fv-sable)}
.fp-section--noir{background:var(--fv-noir);color:#fff}
.fp-section--rouge{background:var(--fv-rouge);color:#fff}
.fp-section--rouge h2 span{color:var(--fv-encre)}
.fp-section--noir .fv-lien:hover{color:#FF5A5F}

/* Titre au-dessus, texte long en deux colonnes */
.fp-colonnes h2{max-width:1100px}
.fp-colonnes__texte{columns:2 420px;column-gap:clamp(40px,5vw,96px);font-size:clamp(17.5px,1.15vw,20px);line-height:1.65;max-width:1500px}
.fp-colonnes__texte p{break-inside:avoid}

/* Photo et texte, moitié moitié, la photo va jusqu'au bord */
.fp-duo{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch}
.fp-duo__photo{position:relative;min-height:min(92vh,880px);overflow:hidden;background:#222;margin:0}
.fp-duo__photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.fp-duo__texte{align-self:center;padding:clamp(64px,6vw,120px) var(--fv-bord) clamp(64px,6vw,120px) clamp(32px,5vw,100px);max-width:900px}
.fp-duo--inverse .fp-duo__photo{order:2}
.fp-duo--inverse .fp-duo__texte{padding:clamp(64px,6vw,120px) clamp(32px,5vw,100px) clamp(64px,6vw,120px) var(--fv-bord);justify-self:end}
.fp-duo__texte p{font-size:clamp(17.5px,1.15vw,20px);line-height:1.62}

/* Grande bande photo avec carte blanche (texte long) */
.fp-bande{position:relative;min-height:min(96vh,1000px);display:flex;align-items:center;overflow:hidden;background:#222}
.fp-bande__photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.fp-bande .fv-conteneur{position:relative;z-index:2;display:flex;padding-top:90px;padding-bottom:90px}
.fp-bande--droite .fv-conteneur{justify-content:flex-end}
.fp-bande__carte{max-width:720px;background:#fff;color:var(--fv-encre);padding:clamp(34px,3.6vw,64px)}
.fp-bande__carte p{font-size:18.5px;line-height:1.6}
.fp-bande__carte--rouge{background:var(--fv-rouge);color:#fff}
.fp-bande__carte--rouge h2 span{color:var(--fv-encre)}

/* Mosaïque de photos collées : une grande, deux ou quatre petites */
.fp-mosaique{display:grid;grid-template-columns:2fr 1fr 1fr;grid-auto-rows:clamp(220px,22vw,430px);gap:0}
.fp-mosaique figure{position:relative;margin:0;overflow:hidden;background:#222}
.fp-mosaique figure:first-child{grid-row:span 2}
.fp-mosaique img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform 1.2s cubic-bezier(.2,.7,.2,1)}
.fp-mosaique figure:hover img{transform:scale(1.05)}
.fp-mosaique figcaption{position:absolute;left:0;bottom:0;z-index:2;padding:12px 18px;background:var(--fv-noir);color:#fff;font-weight:600;font-size:15px}

/* Un chiffre vrai en très grand, avec sa phrase */
.fp-chiffre{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px clamp(28px,4vw,80px)}
.fp-chiffre__nombre{margin:0;font-family:var(--fv-titre);font-weight:840;font-stretch:80%;font-size:clamp(110px,12vw,240px);line-height:.8;letter-spacing:-.02em;color:var(--fv-rouge)}
.fp-chiffre__phrase{max-width:520px;margin:0 0 8px;font-size:clamp(18px,1.3vw,22px);line-height:1.5}
.fp-section--rouge .fp-chiffre__nombre{color:#fff}

/* Étapes : grands numéros, un seul fil */
.fp-etapes{counter-reset:etape;display:grid;gap:clamp(28px,3vw,48px);max-width:1100px;margin-top:20px}
.fp-etapes li{counter-increment:etape;display:grid;grid-template-columns:clamp(70px,8vw,140px) 1fr;gap:clamp(18px,2.4vw,40px);align-items:start}
.fp-etapes li::before{content:counter(etape,decimal-leading-zero);font-family:var(--fv-titre);font-weight:820;font-stretch:80%;font-size:clamp(56px,6vw,110px);line-height:.8;color:var(--fv-rouge)}
.fp-etapes h3{margin:4px 0 8px;font-family:var(--fv-titre);font-weight:760;font-stretch:80%;text-transform:uppercase;font-size:clamp(24px,2vw,36px);line-height:1}
.fp-etapes p{margin:0;font-size:clamp(17px,1.1vw,19px);line-height:1.6;max-width:760px}
.fp-section--noir .fp-etapes p{color:#D9D6D1}

/* Questions fréquentes */
.fp-faq{display:grid;gap:8px;max-width:1100px;margin-top:10px}
.fp-faq details{background:var(--fv-sable)}
.fp-section--sable .fp-faq details{background:#fff}
.fp-faq summary{position:relative;list-style:none;cursor:pointer;padding:24px 70px 24px 28px;font-family:var(--fv-titre);font-weight:720;font-stretch:84%;font-size:clamp(21px,1.6vw,28px);line-height:1.15}
.fp-faq summary::-webkit-details-marker{display:none}
.fp-faq summary::after{content:"";position:absolute;right:28px;top:50%;width:18px;height:18px;margin-top:-9px;background:linear-gradient(var(--fv-rouge),var(--fv-rouge)) center/18px 3px no-repeat,linear-gradient(var(--fv-rouge),var(--fv-rouge)) center/3px 18px no-repeat;transition:transform .3s}
.fp-faq details[open] summary::after{transform:rotate(45deg)}
.fp-faq details > div{padding:0 28px 26px;font-size:18px;line-height:1.6;max-width:880px}

/* Appel de fin de page */
.fp-appel{background:var(--fv-rouge);color:#fff;padding:clamp(70px,7vw,120px) 0}
.fp-appel__grille{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:clamp(30px,5vw,90px);align-items:end}
.fp-appel h2{margin:0}
.fp-appel h2 span{color:var(--fv-encre)}
.fp-appel p{font-size:19px;margin-bottom:22px}
.fp-appel .fv-actions{margin-top:0;align-items:center;gap:16px 30px}
.fp-appel__tel{font-family:var(--fv-titre);font-weight:800;font-stretch:84%;font-size:clamp(28px,2.4vw,42px);text-decoration:none;color:#fff}
.fp-appel__tel:hover{color:var(--fv-encre)}

/* Pages légales : une colonne lisible, sommaire numéroté */
.fp-legal{max-width:900px}
.fp-legal h2{font-size:clamp(30px,2.6vw,46px);margin:1.6em 0 .5em}
.fp-legal h3{margin:1.4em 0 .4em;font-family:var(--fv-texte);font-weight:700;font-size:20px}
.fp-legal p,.fp-legal li{font-size:17.5px;line-height:1.65}
.fp-legal ul{list-style:disc;padding-left:1.3em;margin:0 0 1em}
.fp-legal a{text-decoration-color:var(--fv-rouge);text-underline-offset:4px}
.fp-sommaire{background:var(--fv-sable);padding:clamp(24px,2.4vw,40px);margin-bottom:20px}
.fp-sommaire p{font-family:var(--fv-titre);font-weight:760;font-stretch:80%;text-transform:uppercase;font-size:24px;margin-bottom:12px}
.fp-sommaire ol{margin:0;padding-left:1.4em;columns:2 280px}
.fp-sommaire li{padding:3px 0}
.fp-legal table{width:100%;border-collapse:collapse;margin:0 0 1.2em}
.fp-legal th,.fp-legal td{text-align:left;vertical-align:top;padding:10px 12px;font-size:16.5px}
.fp-legal tbody tr:nth-child(odd){background:var(--fv-sable)}
.fp-maj{font-size:15px;color:var(--fv-gris)}

/* Lien de page actif dans le menu */
.fv-menu a[aria-current="page"]{background-size:100% 3px}

/* ---------- Téléphone et tablette ---------- */
@media (max-width:1180px){
  .fp-appel__grille{grid-template-columns:1fr}
}
@media (max-width:760px){
  .fp-ouverture{min-height:86svh}
  .fp-ouverture--court{min-height:60svh}
  .fp-titre{font-size:clamp(50px,15vw,96px)}
  .fp-ouverture .fv-actions{flex-direction:column;align-items:flex-start}
  .fp-colonnes__texte{columns:1}
  .fp-duo{grid-template-columns:1fr}
  .fp-duo__photo{min-height:0;height:78vw}
  .fp-duo--inverse .fp-duo__photo{order:0}
  .fp-duo__texte,.fp-duo--inverse .fp-duo__texte{padding:56px var(--fv-bord);justify-self:stretch}
  .fp-bande{min-height:0;display:block}
  .fp-bande__photo{position:relative;height:66vw}
  .fp-bande .fv-conteneur{padding:0}
  .fp-bande__carte{max-width:none}
  .fp-mosaique{grid-template-columns:1fr 1fr;grid-auto-rows:44vw}
  .fp-mosaique figure:first-child{grid-column:span 2;grid-row:span 1;height:auto}
  .fp-etapes li{grid-template-columns:64px 1fr}
  .fp-faq summary{padding:20px 56px 20px 20px}
  .fp-faq details > div{padding:0 20px 22px}
}

/* ---------- Sans mouvement, et mode capture ---------- */
@media (prefers-reduced-motion:reduce){ .fp-rideau{display:none} }
.fv-test .fp-rideau{display:none}
.fv-page .fp-ouverture{min-height:900px!important}
.fv-page .fp-ouverture--court{min-height:640px!important}
.fv-page .fp-ouverture--uni{min-height:0!important}

/* ---------- Retouches du 19/11/2026 : appel de fin de page, photo + bloc rouge ---------- */
.fp-appel{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;padding:0}
.fp-appel__photo{position:relative;margin:0;min-height:min(72vh,640px);overflow:hidden;background:#222}
.fp-appel__photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.fp-appel__texte{align-self:center;padding:clamp(56px,5vw,100px) var(--fv-bord) clamp(56px,5vw,100px) clamp(32px,5vw,96px);max-width:860px}
.fv .fp-appel h2{text-transform:none;font-weight:760;font-stretch:86%;font-size:clamp(36px,3.3vw,62px);line-height:1;letter-spacing:-.012em;margin:0 0 .45em}
.fp-appel .fp-appel__infos{margin:26px 0 0;font-size:15.5px;line-height:1.55;color:rgba(255,255,255,.92)}
@media (max-width:760px){ .fp-appel{grid-template-columns:1fr} .fp-appel__photo{min-height:0;height:62vw} .fp-appel__texte{padding:52px var(--fv-bord) 60px} }

/* ---------- Retouches du 19/11/2026 : titres de section plus mesurés, photos qui se dévoilent ---------- */
.fv main h2{font-size:clamp(38px,3.9vw,78px)}
:is(.fp-duo__photo,.fp-appel__photo,.fp-coaching-cadre__photo,.fp-coaching-methode__photo,.fp-contact-acces__photo,.fp-salle-espace__large,.fp-salle-espace__portrait,.fp-salle-fonte__photo,.fp-salle-jauge__photo,.fp-salle-machines__photo,.fp-salle-parcours__photo,.fp-tarifs-horaires__photo,.fp-tarifs-questions__photo,.fp-conseils-formule__photo){overflow:hidden}
@supports (animation-timeline:view()){
  html:not(.fv-test) :is(.fp-duo__photo,.fp-appel__photo,.fp-coaching-cadre__photo,.fp-contact-acces__photo,.fp-salle-espace__large,.fp-salle-espace__portrait,.fp-salle-fonte__photo,.fp-salle-jauge__photo,.fp-salle-machines__photo,.fp-salle-parcours__photo,.fp-tarifs-horaires__photo,.fp-tarifs-questions__photo,.fp-conseils-formule__photo)::after,
  html:not(.fv-test) .fp-bande::after{content:"";position:absolute;inset:0;z-index:3;background:var(--fv-rouge);transform-origin:100% 50%;animation:fp-devoile linear both;animation-timeline:view();animation-range:entry 0% entry 80%;pointer-events:none}
  html:not(.fv-test) .fp-bande::after{z-index:1}
  html:not(.fv-test) :is(.fp-duo__photo,.fp-appel__photo,.fp-coaching-cadre__photo,.fp-contact-acces__photo,.fp-salle-espace__large,.fp-salle-espace__portrait,.fp-salle-fonte__photo,.fp-salle-jauge__photo,.fp-salle-machines__photo,.fp-salle-parcours__photo,.fp-tarifs-horaires__photo,.fp-tarifs-questions__photo,.fp-conseils-formule__photo) img,
  html:not(.fv-test) .fp-bande__photo{animation:fp-recul-vue linear both;animation-timeline:view();animation-range:entry 0% cover 55%}
  @keyframes fp-devoile{from{transform:scaleX(1)}to{transform:scaleX(0)}}
  @keyframes fp-recul-vue{from{transform:scale(1.16)}to{transform:scale(1)}}
}
@media (prefers-reduced-motion:reduce){ .fp-bande::after,:is(.fp-duo__photo,.fp-appel__photo)::after{display:none} }
