/* Ajouts de production à la vitrine : lien « Se connecter », formulaire de la fenêtre d'accès.
   Les styles de l'export (style.css) ne sont pas modifiés ; ce fichier n'utilise que ses variables. */

.header-actions { display: flex; align-items: center; gap: 22px; }
.header-login { font-size: 15px; font-weight: 650; padding: 8px 0; white-space: nowrap; }
.header-login:hover { color: var(--blue); }

#access-description { color: var(--muted); margin-bottom: 22px; }
#access-form { display: grid; gap: 10px; }
#access-form label { font-size: 15px; font-weight: 650; }
#access-input {
  width: 100%;
  min-height: 49px;
  padding: 11px 14px;
  border: 1px solid #aebcd2;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
}
#access-status { min-height: 1.5em; font-size: 16px; color: var(--teal); }
#access-status.is-error { color: #a3262f; }
#access-submit { width: 100%; max-width: none; }
#access-submit:disabled { opacity: 0.6; cursor: progress; }

#access-legal { font-size: 14px; color: var(--muted); }
#access-legal a { text-decoration: underline; }

.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-left: auto; }
.footer-legal a { padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; }

.noscript-access { padding: 16px 24px; text-align: center; border-top: 1px solid var(--line); }
.noscript-access a { color: var(--blue); font-weight: 650; text-decoration: underline; }

/* « 29,90 € » est plus long que le prix de l'export : quand la place manque, « par mois ensuite » passe dessous, sans retrait. */
.price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 16px; }
.price span { margin-left: 0; }

@media (max-width: 1180px) {
  .header-login { font-size: 13px; }
}
@media (max-width: 640px) {
  .header-actions { gap: 10px; }
  .header-login { font-size: 12px; }
}

/* Précision dans le titre d'une étape, plus petite que le titre, dans sa couleur. */
.begin-steps h3 .step-aside { font-size: .75em; font-weight: 600; letter-spacing: -.2px; white-space: nowrap; }

/* Panneau en grand sous l'image (téléphone) : le contenu de la fenêtre de la visite, lisible en entier (spec du 16/10). */
.story-mobile-proof .mobile-detail .demo-caption:first-child { margin-top: -8px; }
.story-mobile-proof .mobile-detail .demo-fit { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.story-mobile-proof .mobile-detail .demo-fit b { color: var(--ink); }
.story-mobile-proof .mobile-detail .demo-check { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.story-mobile-proof .mobile-detail .demo-check li { display: flex; gap: 9px; align-items: baseline; }
.story-mobile-proof .mobile-detail .demo-check li::before { content: ""; flex: none; width: 12px; height: 12px; border: 2px dashed #85550d; border-radius: 50%; transform: translateY(1px); }
.story-mobile-proof .mobile-detail .pq-panel.demo-caution { background: #fff7e7; border-color: #e4cf9f; }
.story-mobile-proof .mobile-detail .pq-panel.demo-caution > strong { color: #85550d; }
.story-mobile-proof .mobile-detail .demo-bridge-table { width: 100%; border-collapse: collapse; }
.story-mobile-proof .mobile-detail .demo-bridge-table th { text-align: left; font-size: 13px; color: var(--family); padding: 0 8px 6px 0; }
.story-mobile-proof .mobile-detail .demo-bridge-table td { width: 50%; vertical-align: top; padding: 7px 8px 7px 0; border-top: 1px solid #d1dbe8; line-height: 1.45; }
.story-mobile-proof .mobile-detail .demo-coach { font-family: "Fraunces", Georgia, serif; font-size: 17px; line-height: 1.45; color: var(--ink); margin: 0 0 6px; }
.story-mobile-proof .mobile-detail .demo-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.story-mobile-proof .mobile-detail .demo-chips span { padding: 2px 10px; border: 1px solid #b8d6c5; border-radius: 999px; background: #edf7f1; color: #226b50; font-size: 14px; font-weight: 600; }
.story-mobile-proof .mobile-detail .demo-chips .demo-out { border: 1.5px dashed #e3a33a; background: #fff; color: #85550d; }
.story-mobile-proof .mobile-detail p.demo-cv-download, .story-mobile-proof .mobile-detail p.demo-cv-download:hover { cursor: default; background: var(--blue); user-select: none; }
.story-mobile-proof .mobile-detail .demo-changes { margin: 0; padding-left: 18px; display: grid; gap: 6px; }

/* Lien dans une réponse de la FAQ : souligné, pour qu'on le voie. */
.faq-list p a { text-decoration: underline; text-underline-offset: 3px; }

/* Page plus belle et qui convertit mieux (critique du 16/10, validée par Gilles) : bande de confiance sous le haut de page,
   mot du fondateur après la visite, bloc prix sans pastilles-boutons, bandeau final sous le ciel de l'aube. */
.confiance { padding: 0 64px; background: #fbf8f3; }
.confiance ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; border-top: 1px solid #ebe4d8; border-bottom: 1px solid #ebe4d8; }
.confiance li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--muted); }
.confiance b { display: block; color: var(--ink); font-weight: 700; }
.confiance svg { flex: none; width: 26px; height: 26px; margin-top: 2px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fondateur { display: grid; grid-template-columns: 150px 1fr; gap: 44px; align-items: start; max-width: 980px; margin: 0 auto; padding-top: 70px; padding-bottom: 70px; }
.fondateur-portrait { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 10px #fff1dc, 0 0 0 20px #fff8ec, 0 20px 50px #14233f22; }
.fondateur h2 { font-size: clamp(28px, 2.6vw, 36px); letter-spacing: -1px; line-height: 1.15; margin: 0 0 16px; }
.fondateur p { font-size: 19px; line-height: 1.6; color: var(--text); max-width: 62ch; }
.fondateur-signature { margin-top: 16px; font-size: 15px !important; color: var(--muted) !important; }
.fondateur-signature strong { color: var(--ink); }
.fondateur-signature a { text-decoration: underline; text-underline-offset: 3px; }
.trial-label { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.final-section { background: linear-gradient(180deg, #17234f 0%, #30307a 48%, #6a4a8c 78%, #9a5f93 100%); position: relative; overflow: hidden; }
.final-section::before { content: ""; position: absolute; left: -10%; right: -10%; bottom: -80px; height: 260px; border-radius: 50%; background: radial-gradient(ellipse at center, #f6ad6d 0%, #c47aa6 35%, transparent 70%); opacity: .55; pointer-events: none; }
.final-section > div { position: relative; }
@media (max-width: 900px) {
  .confiance { padding: 0 40px; }
  .confiance ul { grid-template-columns: 1fr; gap: 16px; }
  .fondateur { grid-template-columns: 110px 1fr; gap: 24px; }
  .fondateur-portrait { width: 110px; height: 110px; }
}
@media (max-width: 640px) {
  .confiance { padding: 0 21px; }
  .confiance ul { padding: 18px 0; }
  .fondateur { grid-template-columns: 1fr; gap: 18px; padding: 48px 21px; }
  .fondateur-portrait { width: 96px; height: 96px; box-shadow: 0 0 0 7px #fff1dc, 0 0 0 14px #fff8ec; }
  .fondateur p { font-size: 17px; }
}

/* Réassurance (17/10, validée par Gilles sur maquette) : « Seul / Avec votre coach », ce que le coach prépare chaque matin. */
.matin { padding: 52px 64px 40px; background: #fbf8f3; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 56px; align-items: center; }
.matin-label { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #a8640a; }
.matin h2 { margin: 0 0 12px; font-family: var(--heading); font-size: clamp(28px, 2.6vw, 38px); line-height: 1.15; letter-spacing: -1px; color: var(--ink); }
.matin-texte p:last-child { margin: 0; font-size: 18px; line-height: 1.5; color: var(--muted); }
.matin-compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid #ebe4d8; border-radius: 16px; overflow: hidden; font-size: 15px; }
.matin-compare th, .matin-compare td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid #f0e8dc; line-height: 1.4; }
.matin-compare thead th { border-top: 0; font-size: 13px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.matin-compare thead th.avec { color: var(--blue); }
.matin-compare tbody th { font-family: var(--heading); font-size: 15px; color: var(--ink); white-space: nowrap; }
.matin-compare td { color: #6b7587; }
.matin-compare td.avec { color: var(--ink); font-weight: 600; background: #f3f6ff; }
.matin-compare td.avec::before { content: "✓ "; color: var(--blue); font-weight: 800; }
@media (max-width: 1100px) { .matin { grid-template-columns: 1fr; gap: 24px; padding: 40px; } }
@media (max-width: 640px) {
  .matin { padding: 32px 21px 24px; }
  .matin-compare, .matin-compare tbody, .matin-compare tr, .matin-compare th, .matin-compare td { display: block; }
  .matin-compare thead { display: none; }
  .matin-compare tbody tr { padding: 12px 14px; border-top: 1px solid #f0e8dc; }
  .matin-compare tbody tr:first-child { border-top: 0; }
  .matin-compare tbody th, .matin-compare td { padding: 3px 0; border: 0; }
  .matin-compare td:not(.avec) { text-decoration: line-through; text-decoration-color: #c9bfae; }
  .matin-compare td.avec { background: none; }
}

/* Téléphone (16/10) : sous chaque image de la visite, le panneau « en grand » est replié derrière « Lire en entier » ;
   la page est environ trois écrans plus courte, le contenu reste à un geste. */
.story-mobile-proof .mobile-detail:not([hidden]) { padding-bottom: 14px; }
.story-mobile-proof .mobile-detail > h4 { font-family: var(--heading); font-size: 22px; font-weight: 700; letter-spacing: -.6px; line-height: 1.3; margin: 10px 0 8px; }
.fold-button { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 4px; padding: 8px 0; border: 0; background: none; color: var(--family); font: 650 15px var(--body); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, var(--family) 40%, transparent); min-height: 44px; }
.fold-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.fold-button[aria-expanded="true"] svg { transform: rotate(180deg); }
.mobile-detail > div[hidden] { display: none; }
.mobile-detail[data-open] > div { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .fold-button svg { transition: none; } }

/* Doigt et clavier (audit du 16/10) : zones de 44 px dans l'en-tête, le pied de page et la fenêtre ; pied de page dégagé du bouton
   de la barre du bas ; pas d'état « survolé » qui colle après un toucher. */
.header-login { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
#access-legal a, .fondateur-signature a { display: inline-block; padding: 12px 0; margin: -12px 0; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.footer-brand { min-height: 44px; }
@media (max-width: 640px) {
  .header-access { min-height: 44px; }
  .site-footer { padding-right: 21px; }
  body:has(.coach-barre:not([hidden])) .site-footer { padding-bottom: calc(26px + 84px + env(safe-area-inset-bottom)); }
}
@media (max-width: 900px) and (min-width: 761px) {
  .story-controls .tour-button { font-size: 12px; min-height: 44px; padding: 8px 10px; }
}
@media (hover: none) {
  .button:hover { background: var(--light); }
  .button.primary:hover { background: var(--blue); border-color: var(--blue); }
  .button.outline:hover { background: transparent; border-color: #aebcd2; }
  .final-section .outline:hover { background: transparent; }
  .faq-list summary:hover { color: inherit; }
  .close-button:hover { background: var(--light); }
  .header-login:hover { color: inherit; }
  .section-scroll:hover svg { transform: none; }
  .mobile-detail button[data-open^="copy:"]:hover { background: #d9eee8; }
}

/* Téléphone (16/10, demande de Gilles) : rien à l'arrivée ; une fois l'en-tête sorti de l'écran, une ligne de quatre raccourcis
   se fixe en haut (comme la barre du bas, inline dans index.html). Les sections visées s'arrêtent sous la ligne. */
.site-shortcuts { display: none; }
@media (max-width: 640px) {
  .site-shortcuts:not([hidden]) { display: flex; position: fixed; top: 0; left: 0; right: 0; z-index: 30; justify-content: space-between; gap: 18px; padding: env(safe-area-inset-top) 21px 0; overflow-x: auto; white-space: nowrap; border-bottom: 1px solid var(--line); background: #fffffff2; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); scrollbar-width: none; animation: shortcuts-in .2s ease-out; }
  .site-shortcuts::-webkit-scrollbar { display: none; }
  .site-shortcuts a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13.5px; font-weight: 650; color: var(--ink); letter-spacing: -.1px; }
  #visite, #demarrage, #abonnement, #questions { scroll-margin-top: 60px; }
}
@keyframes shortcuts-in { from { transform: translateY(-100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .site-shortcuts:not([hidden]) { animation: none; } }

/* « Comment ça commence » et prix, resserrés (17/10) : le titre en haut, les trois étapes en une ligne ; le prix sans colonne vide. */
@media (min-width: 901px) {
  .begin-section { grid-template-columns: 1fr; gap: 34px; padding-top: 64px; padding-bottom: 32px; max-width: none; }
  .begin-section .section-intro h2 { margin: 0; max-width: 900px; }
  .begin-section .section-intro .section-scroll { display: none; }
  .begin-steps { flex-direction: row; gap: 28px; }
  .begin-steps li { flex: 1 1 0; }
  .pricing-section { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); align-items: start; gap: 80px; padding-top: 32px; padding-bottom: 64px; max-width: none; }
  .pricing-copy { padding-top: 28px; }
  .pricing-copy h2 { margin-top: 0; }
}
