/* FINARBOR (maquette) : pages d'offre. À gauche le détail de l'offre, à droite l'inscription (paiement ou rendez-vous) */
:root {
  --bg: #0B0A09; --surface: rgba(255, 244, 222, .035); --border: rgba(255, 244, 222, .1); --border-2: rgba(255, 244, 222, .2);
  --text: #EFE9DD; --text-2: #BDB5A6; --muted: #8E877B; --gold: #E3C67B;
  --gold-grad: linear-gradient(120deg, #F6E3AE 0%, #E3C67B 38%, #C19A4B 72%, #F0D896 100%);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 300 16px/1.6 Outfit, system-ui, sans-serif; }
.interne { background: #2A2418; color: var(--gold); font-size: 13.5px; text-align: center; padding: 9px 16px; font-weight: 400; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.haut-page { display: flex; align-items: center; justify-content: space-between; padding: 26px 0 10px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 20px; color: var(--text); text-decoration: none; }
.brand svg { width: 22px; height: 30px; }
.lien-retour { color: var(--text-2); font-size: 14px; text-decoration: none; }
.lien-retour:hover { color: var(--gold); }
h1, h2, h3 { font-weight: 500; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
h1 em, h2 em, h3 em { font-style: normal; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.page { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: start; padding: 26px 0 60px; }
.detail h1 { font-size: clamp(34px, 5vw, 50px); }
.detail .chapeau { color: var(--text-2); font-size: 18px; margin: 14px 0 0; max-width: 34em; }
.bloc { margin-top: 44px; }
.bloc h2 { font-size: 26px; margin-bottom: 8px; }
.bloc > p { color: var(--text-2); margin: 0 0 6px; max-width: 36em; }
.puces { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 9px; }
.puces li { padding-left: 24px; position: relative; line-height: 1.45; }
.puces li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 11px; height: 6px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.puces b { font-weight: 500; }

/* téléphones en éventail, comme sur le site */
.tels { display: flex; justify-content: center; align-items: center; padding: 22px 0 8px; }
.tel { position: relative; flex: 0 1 190px; min-width: 0; padding: 5px; border-radius: 26px;
  background: linear-gradient(145deg, #3A362F, #121110 55%, #2A2722); box-shadow: 0 18px 40px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 244, 222, .14); }
.tel::before { content: ""; position: absolute; top: 10px; left: 50%; width: 22%; height: 9px; transform: translateX(-50%); border-radius: 99px; background: #050505; z-index: 2; }
.tel .scr { border-radius: 21px; overflow: hidden; background: #0B0A09; padding-top: 12px; }
.tel img { display: block; width: 100%; height: auto; }
.tel + .tel { margin-left: -8%; }
.n3 .tel:nth-child(1) { transform: rotate(-5deg) translateY(12px); }
.n3 .tel:nth-child(2) { z-index: 1; }
.n3 .tel:nth-child(3) { transform: rotate(5deg) translateY(12px); }
.n2 .tel:nth-child(1) { transform: rotate(-4deg) translateY(6px); }
.n2 .tel:nth-child(2) { transform: rotate(4deg) translateY(6px); z-index: 1; }
/* téléphone animé (offre.js) : l'écran fait 390 × 844 comme sur un iPhone */
.anim-cadre { position: relative; aspect-ratio: 390 / 844; overflow: hidden; background: #0B0A09; }
.anim-cadre img { position: absolute; left: 0; top: 0; width: 100%; height: auto; opacity: 0; transition: opacity .35s; }
.anim-cadre img.visible { opacity: 1; }
.anim-barre { position: absolute; left: 0; right: 0; bottom: 0; height: 7.6%; background: bottom / 100% auto no-repeat; opacity: 0; transition: opacity .35s; z-index: 1; }
.anim-cadre.avec-barre .anim-barre { opacity: 1; }
.anim-doigt { position: absolute; width: 15%; aspect-ratio: 1; margin: -7.5% 0 0 -7.5%; border-radius: 50%; background: rgba(239, 233, 221, .35); box-shadow: 0 0 0 2px rgba(239, 233, 221, .5); opacity: 0; z-index: 2; pointer-events: none; }
.anim-doigt.tape { animation: tape .55s ease-out; }
@keyframes tape { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.25); } }
.tel.grand { flex-basis: 230px; z-index: 3 !important; }
/* visio du rendez-vous mensuel (offre.js) : le formateur, l'écran partagé de l'élève, les sous-titres */
.visio { margin-top: 22px; border-radius: 20px; overflow: hidden; background: #161411; border: 1px solid var(--border-2); box-shadow: 0 22px 50px rgba(0, 0, 0, .5); }
.v-haut { display: flex; align-items: center; gap: 8px; padding: 9px 14px; font-size: 12.5px; color: var(--text-2); border-bottom: 1px solid var(--border); }
.v-haut b { font-weight: 500; color: var(--text); }
.v-rec { width: 7px; height: 7px; border-radius: 50%; background: #D9826B; animation: clignote 1.6s infinite; }
.v-chrono { margin-left: auto; font-variant-numeric: tabular-nums; }
.v-scene { display: grid; grid-template-columns: minmax(0, 1fr) 32%; gap: 8px; padding: 8px; }
.v-tuile { position: relative; border-radius: 14px; overflow: hidden; background: radial-gradient(70% 70% at 50% 40%, #2C271E, #12100D); }
.v-formateur { aspect-ratio: 16 / 11; display: grid; place-items: center; }
.v-avatar { position: relative; width: 26%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: #15120B; font-weight: 600; font-size: clamp(18px, 3.4vw, 34px); letter-spacing: .02em; }
.v-avatar::before, .v-avatar::after { content: ""; position: absolute; inset: -10%; border-radius: 50%; border: 2px solid rgba(227, 198, 123, .5); animation: onde 2s ease-out infinite; }
.v-avatar::after { animation-delay: 1s; }
.v-nom { position: absolute; left: 10px; bottom: 9px; display: flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; background: rgba(0, 0, 0, .5); font-size: 12px; }
.v-ondes { display: inline-flex; gap: 2px; align-items: center; height: 10px; }
.v-ondes i { width: 2px; height: 100%; border-radius: 2px; background: var(--gold); animation: ondes .9s ease-in-out infinite; }
.v-ondes i:nth-child(2) { animation-delay: .15s; } .v-ondes i:nth-child(3) { animation-delay: .3s; }
.v-sous { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); width: max-content; max-width: 88%; margin: 0; padding: 6px 12px; border-radius: 10px; background: rgba(0, 0, 0, .62); font-size: 13.5px; line-height: 1.35; text-align: center; color: var(--text); opacity: 0; transition: opacity .35s; }
.v-sous.visible { opacity: 1; }
.v-cote { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 8px; min-height: 0; }
.v-partage { position: relative; border-radius: 14px; overflow: hidden; background: #0B0A09; border: 1px solid var(--border); }
.v-partage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.v-partage .v-nom { font-size: 11px; }
.v-eleve { aspect-ratio: 16 / 10; display: grid; place-items: center; }
.v-eleve .v-avatar { width: 30%; font-size: 15px; background: #3A352B; color: var(--text); }
.v-eleve .v-avatar::before, .v-eleve .v-avatar::after { display: none; }
.v-eleve .v-nom { font-size: 11px; left: 6px; bottom: 6px; }
.v-barre { display: flex; justify-content: center; gap: 10px; padding: 4px 0 12px; }
.v-barre span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 244, 222, .08); }
.v-barre span.fin { background: #B5533F; }
.v-barre svg { width: 16px; height: 16px; fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.visio.fixe .v-avatar::before, .visio.fixe .v-avatar::after, .visio.fixe .v-ondes i, .visio.fixe .v-rec { animation: none; }
@keyframes onde { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.45); opacity: 0; } }
@keyframes ondes { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes clignote { 50% { opacity: .3; } }
@media (max-width: 560px) {
  .v-scene { grid-template-columns: 1fr; } .v-partage { display: none; } .v-sous { font-size: 12.5px; bottom: 36px; }
  .v-eleve { aspect-ratio: 16 / 5; } .v-eleve .v-avatar { width: 12%; }
}
.legende-tel {text-align: center; font-size: 13px; color: var(--muted); margin: 10px 0 0; }

.etapes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 16px; }
.etapes.quatre { grid-template-columns: repeat(4, 1fr); }
.etapes div {padding: 12px 10px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); font-size: 13px; color: var(--text-2); line-height: 1.35; }
.etapes b { display: block; font-size: 22px; font-weight: 500; color: var(--gold); line-height: 1; margin-bottom: 6px; }
.etapes span { display: block; color: var(--text); font-weight: 400; font-size: 14px; margin-bottom: 2px; }

.faq { margin-top: 14px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); padding: 12px 2px; }
.faq summary { cursor: pointer; font-weight: 400; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 8px 0 2px; color: var(--text-2); font-size: 15px; }

/* colonne d'inscription */
.inscription { position: sticky; top: 16px; padding: 22px 22px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(227, 198, 123, .35) transparent; border: 1px solid rgba(227, 198, 123, .45); border-radius: 26px;
  background: radial-gradient(90% 50% at 50% 0%, rgba(227, 198, 123, .12), transparent 70%), #12100D; }
.inscription h2 { font-size: 23px; margin-bottom: 4px; }
.inscription .accroche { color: var(--text-2); font-size: 14.5px; margin: 0 0 14px; }
.inscription form { display: flex; flex-direction: column; gap: 8px; }
.ligne2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.champ { display: grid; gap: 4px; font-size: 13px; color: var(--text-2); min-width: 0; }
.champ input { width: 100%; font: inherit; font-size: 14px; color: var(--text); background: rgba(0, 0, 0, .25); border: 1px solid var(--border-2); border-radius: 11px; padding: 8px 11px; }
.champ :focus { outline: none; border-color: var(--gold); }
.champ .invalide, .accord.invalide { border-color: #D9826B; }
.accord { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--text-2); line-height: 1.45; border: 1px solid transparent; border-radius: 10px; padding: 2px; }
.accord input { margin: 2px 0 0; accent-color: var(--gold); }
.lien-cgv { color: var(--gold); }
.bouton { display: block; width: 100%; text-align: center; padding: 13px; border-radius: 99px; font: inherit; font-weight: 500; font-size: 15px; border: 1px solid var(--border-2); background: none; color: var(--text); cursor: pointer; margin-top: 6px; }
.bouton.plein { background: var(--gold-grad); color: #15120B; border: 0; }

.qui { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; }
.qui b { font-weight: 500; display: block; }
.qui span { color: var(--text-2); font-size: 13px; display: block; }
.qui button { font: inherit; font-size: 13px; color: var(--gold); background: none; border: 0; cursor: pointer; padding: 0; }
.formules { display: grid; gap: 8px; margin: 12px 0 0; }
.formule { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--border-2); border-radius: 16px; cursor: pointer; }
.formule input { accent-color: var(--gold); margin: 0; }
.formule .f-prix { margin-left: auto; text-align: right; font-weight: 500; font-size: 18px; white-space: nowrap; }
.formule .f-nom { font-weight: 400; line-height: 1.3; }
.formule small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 300; }
.formule:has(input:checked) { border-color: var(--gold); background: rgba(227, 198, 123, .07); }

/* agenda Calendly dans la colonne : version étroite (téléphone). La colonne suit la page ; l'agenda défile à l'intérieur s'il dépasse la hauteur de l'écran */
.agenda { margin: 4px -12px 0; border-radius: 16px; overflow: hidden; }
.agenda:not(:has(iframe)) { min-height: 660px; }
.agenda:has(.fa-agenda) { min-height: 0; margin: 4px 0 0; }   /* agenda maison : hauteur de son contenu */
.agenda .calendly-spinner { display: none !important; }   /* les trois points de Calendly restaient affichés au milieu de la page */
.agenda .calendly-inline-widget {min-width: 0 !important; height: auto !important; }
.agenda iframe { display: block; width: 100%; height: 660px; border: 0; }
.mention { color: var(--muted); font-size: 12.5px; margin: 14px 0 0; }
.note-cadre { margin: 14px 0 0; padding: 12px 16px; border-left: 2px solid var(--gold); background: var(--surface); border-radius: 0 12px 12px 0; font-size: 14px; color: var(--text-2); }

@media (max-width: 900px) {
  .page { grid-template-columns: 1fr; gap: 30px; }
  .inscription { position: static; max-height: none; overflow: visible; scroll-margin-top: 12px; }
  .page { padding-bottom: 96px; }
  .etapes, .etapes.quatre { grid-template-columns: repeat(2, 1fr); }
}

/* paiement : les deux cases, le bouton vers Stripe, la confirmation au retour */
.paiement { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.paiement .bouton { margin-top: 4px; }
.paiement .bouton:disabled { opacity: .6; cursor: wait; }
.paiement-note { margin: 0; font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.5; }
.paiement-erreur { margin: 0; font-size: 13.5px; color: #D9826B; text-align: center; }
.paiement-info { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 13.5px; color: var(--text-2); }
.paiement-texte { margin: 0 0 14px; line-height: 1.6; color: var(--text-2); }
.bandeau-test { position: sticky; top: 0; z-index: 50; padding: 8px 16px; text-align: center; font-size: 13px; background: #E3C67B; color: #15120B; }

/* formulaire de paiement de Stripe intégré à la colonne de droite */
.inscription.en-paiement { position: relative; top: auto; max-height: none; overflow: visible; padding: 16px; }
.caisse-haut { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 2px 12px; font-size: 13.5px; color: var(--text-2); }
.caisse-retour { background: none; border: 0; padding: 0; font: inherit; color: var(--gold); cursor: pointer; }
.caisse-retour:hover { text-decoration: underline; }
.caisse { min-height: 420px; border-radius: 16px; overflow: hidden; background: #fff; }
.caisse-attente { margin: 0; padding: 40px 16px; text-align: center; font-size: 14px; color: #6B655B; }
.en-paiement .paiement-note { margin-top: 12px; }

/* téléphone : bouton fixé en bas, au centre, vers le paiement ou la prise de rendez-vous */
.aller-bas { display: none; }
@media (max-width: 900px) {
  .aller-bas { display: block; position: fixed; left: 50%; bottom: 28px; z-index: 40; transform: translateX(-50%);
    width: min(calc(100% - 32px), 420px); padding: 15px; border: 0; border-radius: 99px; font: inherit; font-weight: 500; font-size: 16px;
    background: var(--gold-grad); color: #15120B; box-shadow: 0 14px 34px rgba(0, 0, 0, .55); cursor: pointer; transition: opacity .3s, transform .3s; }
  .aller-bas.cache { opacity: 0; transform: translate(-50%, 20px); pointer-events: none; }
}

/* Autonomie : l'Essentiel en résumé en haut, puis ce que l'Autonomie ajoute */
.en-plus-titre { display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.etapes a { color: var(--gold); text-decoration: none; font-size: 14px; }
.etapes a:hover { text-decoration: underline; }
.recap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
.recap div { padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); font-size: 13.5px; color: var(--text-2); line-height: 1.4; }
.recap b { display: block; font-weight: 500; color: var(--text); font-size: 15px; margin-bottom: 2px; }
.etapes a { display: block; margin-top: 6px; font-size: 13px; }
/* Accompagnement : lien vers le contenu de l'Autonomie, juste sous le titre */
.inclus-lien { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 7px 14px; border-radius: 99px; border: 1px solid rgba(227, 198, 123, .45); background: rgba(227, 198, 123, .1); color: var(--gold); font-size: 14.5px; text-decoration: none; }
.inclus-lien:hover { background: rgba(227, 198, 123, .18); }
.bloc.premier { margin-top: 28px; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 16px; }
@media (max-width: 560px) { .recap { grid-template-columns: 1fr; } }
.en-plus-separe { margin-top: 28px; }
.en-plus-separe + .bloc { margin-top: 14px; }
/* questions fréquentes sous le paiement : sous la description sur ordinateur, après le paiement sur téléphone */
.faq-bloc { grid-column: 1; margin-top: 0; }
@media (max-width: 900px) {
  /* 16 px : l'iPhone ne zoome plus en entrant dans un champ */
  .champ input { font-size: 16px; }
}
