/* =================================================================== FIDÉLITÉ */

.f-page { overflow-x: clip; }
.f-page em { font-style: italic; font-weight: 300; color: var(--orange-texte); }
.f-titre { font: 300 clamp(38px, 5vw, 76px)/1.02 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.f-num { font: 500 10px/1 var(--sans); letter-spacing: .28em; color: var(--orange-texte); }
.f-lien { font: 500 10px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; }

/* Une : les trois cartes s'ouvrent en éventail */
.f-une { position: relative; min-height: 100vh; min-height: 100svh; padding: 120px clamp(24px, 5vw, 72px) 80px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; overflow: hidden; background: radial-gradient(120% 80% at 75% 45%, #F7F1E7 0%, #EDE3D3 60%, #E6DAC6 100%); }
.f-une-texte { display: flex; flex-direction: column; gap: clamp(20px, 3vh, 30px); }
.f-une-sur { display: flex; align-items: center; gap: 14px; font: 500 10px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: #4A433B; }
.f-une-sur span { width: 28px; height: 1px; background: var(--orange); }
.f-une-sur span:last-child { display: none; }
.f-une h1 { font: 300 clamp(52px, 7.4vw, 124px)/.95 var(--serif); letter-spacing: -.03em; }
.f-une-sous { max-width: 40ch; font: 400 16px/1.7 var(--sans); color: var(--gris-fonce); }
.f-eventail { position: relative; height: clamp(300px, 46vw, 520px); }
.f-eventail-carte { position: absolute; left: 50%; top: 50%; width: clamp(220px, 26vw, 380px); transform: translate(-50%, -50%); transition: transform 1.6s cubic-bezier(.16, 1, .3, 1); }
.f-eventail-carte .carte { box-shadow: 0 40px 60px -30px rgba(60, 40, 20, .45); }
.f-eventail-carte--0 { z-index: 1; }
.f-eventail-carte--1 { z-index: 2; }
.f-eventail-carte--2 { z-index: 3; }
.f-une.est-ouverte .f-eventail-carte--0 { transform: translate(-82%, -78%) rotate(-12deg); }
.f-une.est-ouverte .f-eventail-carte--1 { transform: translate(-50%, -50%) rotate(-2deg); }
.f-une.est-ouverte .f-eventail-carte--2 { transform: translate(-18%, -22%) rotate(9deg); }
html:not(.js) .f-eventail-carte--0 { transform: translate(-82%, -78%) rotate(-12deg); }
html:not(.js) .f-eventail-carte--2 { transform: translate(-18%, -22%) rotate(9deg); }
.f-eventail-carte .carte-3d { animation: f-flotte 7s ease-in-out infinite; }
.f-eventail-carte--1 .carte-3d { animation-delay: -2.3s; }
.f-eventail-carte--2 .carte-3d { animation-delay: -4.6s; }
@keyframes f-flotte { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) {
  .f-eventail-carte { transition: none; }
  .f-eventail-carte .carte-3d { animation: none; }
}
@media (max-width: 899px) {
  .f-une { grid-template-columns: 1fr; min-height: auto; padding-top: 110px; text-align: center; }
  .f-une-texte { align-items: center; }
  .f-une-sur span:last-child { display: block; }
  .f-eventail { height: 300px; order: -1; }
  .f-eventail-carte { width: min(54vw, 240px); }
  .f-une.est-ouverte .f-eventail-carte--0, html:not(.js) .f-eventail-carte--0 { transform: translate(-72%, -70%) rotate(-10deg); }
  .f-une.est-ouverte .f-eventail-carte--2, html:not(.js) .f-eventail-carte--2 { transform: translate(-28%, -30%) rotate(8deg); }
}

/* Deux façons de gagner des points */
.f-moteurs { max-width: 1240px; margin: 0 auto; padding: clamp(90px, 14vh, 160px) clamp(24px, 5vw, 72px); display: flex; flex-direction: column; gap: clamp(40px, 6vh, 64px); }
.f-moteurs-tete { display: flex; flex-direction: column; gap: 18px; }
.f-moteurs-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.f-moteurs-liste article { display: flex; flex-direction: column; gap: 14px; padding-top: 26px; border-top: 1px solid rgba(14, 12, 11, .2); }
.f-moteurs-liste h3 { font: 300 clamp(34px, 3.6vw, 54px)/1 var(--serif); letter-spacing: -.01em; }
.f-moteurs-liste p { max-width: 44ch; font: 400 16px/1.7 var(--sans); color: var(--gris-fonce); }
@media (max-width: 759px) { .f-moteurs-liste { grid-template-columns: 1fr; } }

/* Simulateur de niveau */
.f-simu { background: var(--sable); padding: clamp(90px, 14vh, 160px) clamp(24px, 5vw, 72px); }
.f-simu > * { max-width: 1160px; margin-left: auto; margin-right: auto; }
.f-simu-tete { display: flex; flex-direction: column; gap: 18px; }
.f-simu-tete p:not(.etiquette) { max-width: 46ch; font: 400 16px/1.7 var(--sans); color: var(--gris-fonce); }
.f-simu-tete p.f-simu-aide { max-width: none; }
@media (min-width: 1000px) { .f-simu-tete p.f-simu-aide { white-space: nowrap; } }
/* Boutons de niveau, traversés par une flèche qui avance de Silver vers Platinium */
.f-choix { position: relative; width: fit-content; margin-top: clamp(36px, 5vh, 56px); padding: 0 clamp(36px, 5vw, 64px); display: flex; justify-content: center; gap: clamp(14px, 4vw, 56px); }
.f-choix-rail { position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: linear-gradient(90deg, rgba(255, 106, 53, 0), var(--orange) 12%, var(--orange)); }
.f-choix-rail::after { content: ''; position: absolute; right: 0; top: -4.5px; width: 9px; height: 9px; border-top: 1.5px solid var(--orange); border-right: 1.5px solid var(--orange); transform: rotate(45deg); }
.f-choix-fleche { position: absolute; top: 50%; left: 0; display: flex; transform: translate(-50%, -50%); animation: f-fleche 3.4s cubic-bezier(.45, 0, .25, 1) infinite; }
@keyframes f-fleche {
  0% { left: 0; opacity: 0; }
  12% { opacity: 1; }
  82% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
.f-choix button { position: relative; z-index: 1; min-height: 44px; background: var(--sable); cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.f-choix button[aria-pressed="true"] { background: var(--noir); color: var(--creme); border-color: var(--noir); }
.f-choix button:hover { border-color: var(--orange-texte); }
.f-choix button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
@media (max-width: 559px) { .f-choix { padding: 0 22px; } .f-choix button { padding: 0 14px; } }
@media (prefers-reduced-motion: reduce) { .f-choix-fleche { display: none; } }
.f-simu-curseur { margin-top: clamp(28px, 4vh, 44px); display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 10px 20px; }
.f-simu-curseur label { font: 500 10px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gris-fonce); }
.f-simu-curseur output { justify-self: end; font: 300 clamp(32px, 3.4vw, 52px)/1 var(--serif); font-variant-numeric: tabular-nums; }
.f-simu-curseur input { grid-column: 1 / -1; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; --remplissage: 42.5%; }
.f-simu-curseur input::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--orange) var(--remplissage), rgba(14, 12, 11, .18) var(--remplissage)); }
.f-simu-curseur input::-moz-range-track { height: 3px; border-radius: 3px; background: rgba(14, 12, 11, .18); }
.f-simu-curseur input::-moz-range-progress { height: 3px; border-radius: 3px; background: var(--orange); }
.f-simu-curseur input::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11.5px; border-radius: 50%; background: var(--creme); border: 1.5px solid var(--orange); box-shadow: 0 4px 12px rgba(60, 40, 20, .25); }
.f-simu-curseur input::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--creme); border: 1.5px solid var(--orange); box-shadow: 0 4px 12px rgba(60, 40, 20, .25); }
.f-simu-curseur input:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.f-seuils { grid-column: 1 / -1; position: relative; height: 18px; font: 500 10px/1 var(--sans); letter-spacing: .08em; color: var(--gris); }
.f-seuils span { position: absolute; top: 0; white-space: nowrap; }
.f-seuils span:first-child { left: 0; }
.f-seuils span:last-child { right: 0; }
.f-seuils span[style] { left: var(--p); transform: translateX(-50%); }
.f-seuils span[style]::before { content: ''; position: absolute; left: 50%; top: -16px; width: 1px; height: 8px; background: rgba(14, 12, 11, .35); }
@media (max-width: 559px) { .f-seuils span:first-child, .f-seuils span:last-child { display: none; } }

.f-niveaux { margin-top: clamp(40px, 6vh, 64px); display: grid; }
.f-niveau { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.js .f-niveau { opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .6s, transform .8s cubic-bezier(.16, 1, .3, 1), visibility 0s .6s; }
.js .f-niveau.est-actif { opacity: 1; visibility: visible; transform: none; transition: opacity .6s, transform .8s cubic-bezier(.16, 1, .3, 1), visibility 0s; }
html:not(.js) .f-niveaux { gap: 64px; }
html:not(.js) .f-niveau { grid-area: auto; }
.f-niveau-carte { width: min(100%, 420px); justify-self: center; }
.f-niveau-texte { display: flex; flex-direction: column; gap: 12px; }
.f-niveau-num { font: 500 10px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--orange-texte); }
.f-niveau h3 { font: 300 clamp(48px, 6vw, 92px)/.95 var(--serif); letter-spacing: -.02em; }
.f-niveau-seuil { font: 400 14px/1.6 var(--sans); color: var(--gris); }
.f-niveau ul { margin-top: 10px; border-top: 1px solid rgba(14, 12, 11, .16); }
.f-niveau li { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(14, 12, 11, .1); font: 400 15px/1.5 var(--sans); color: var(--gris-fonce); }
.f-niveau li::before { content: ''; flex: none; width: 6px; height: 6px; margin-top: 7px; border-radius: 50%; background: var(--orange); }
.f-simu-note { margin-top: clamp(32px, 5vh, 48px); font: 400 14px/1.6 var(--sans); color: var(--gris-fonce); }
@media (max-width: 759px) {
  .f-niveau { grid-template-columns: 1fr; }
  .f-niveau-carte { width: min(82%, 320px); }
}

/* Parrainage */
.f-parrain { background: var(--nuit); color: var(--creme); padding: clamp(90px, 14vh, 160px) clamp(24px, 5vw, 72px); }
.f-parrain > * { max-width: 1240px; margin-left: auto; margin-right: auto; }
.f-parrain-tete { display: flex; flex-direction: column; gap: 18px; max-width: 760px; margin-bottom: clamp(44px, 7vh, 72px); }
.f-parrain .f-titre { margin: 0; }
.f-etapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); }
.f-etapes li { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; border-top: 1px solid rgba(242, 237, 228, .2); }
.f-etape-num { font: 300 clamp(48px, 4.6vw, 72px)/1 var(--serif); color: #FFB48A; }
.f-etapes h3 { font: 400 clamp(22px, 1.8vw, 26px)/1.2 var(--serif); }
.f-etapes p { font: 400 14px/1.65 var(--sans); color: rgba(242, 237, 228, .82); }
@media (max-width: 899px) { .f-etapes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 559px) { .f-etapes { grid-template-columns: 1fr; } }

/* La carte */
.f-carte { max-width: 860px; margin: 0 auto; padding: clamp(90px, 14vh, 160px) clamp(24px, 5vw, 72px) clamp(40px, 6vh, 64px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.f-carte .etiquette::after { content: ''; width: 28px; height: 1px; background: var(--orange); }
.f-carte > p:not(.etiquette):not(.f-carte-actions) { max-width: 52ch; font: 400 16px/1.7 var(--sans); color: var(--gris-fonce); }
.f-carte-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.f-pilule { min-height: 44px; }

/* Suite de la visite */
.f-suite { max-width: 1240px; margin: 0 auto; padding: clamp(60px, 10vh, 120px) clamp(24px, 5vw, 72px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(8px, 2.4vw, 32px); }
.f-suite a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 26px 0; border-top: 1px solid rgba(14, 12, 11, .25); }
.f-suite a > span:first-child { font: 300 clamp(32px, 3.6vw, 54px)/1 var(--serif); }
