/* ==================================================================
   PAGES DE CONTENU (About / Contact)
   Chargée APRÈS style.css : réutilise ses couleurs, boutons et champs.
   ================================================================== */

/* L'app occupe exactement la hauteur de l'écran ; ces pages, elles, défilent */
body.page { height: auto; min-height: 100vh; min-height: 100dvh; }
body.page::before { position: fixed; }

.page .header { position: sticky; top: 0; }
.page-logo { text-decoration: none; }
.page-nav { display: flex; align-items: center; gap: 22px; }
.page-nav-link { color: #888; text-decoration: none; font-size: 14px; font-weight: 600; transition: 0.2s; }
.page-nav-link:hover { color: #fff; }
.page-nav-link.active { color: #14F195; }
.page-nav-cta { text-decoration: none; }

.page-main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px 40px; }

a.btn-connect { display: inline-block; text-decoration: none; }
.btn-ghost { display: inline-block; background: transparent; color: #ddd; border: 1px solid #2a2a35; padding: 10px 20px; font-weight: 700; font-size: 14px; border-radius: 6px; cursor: pointer; text-decoration: none; font-family: inherit; transition: 0.2s; }
.btn-ghost:hover { border-color: #14F195; color: #14F195; }

.gradient-text { background: linear-gradient(90deg, #14F195, #9945FF); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* --- Hero --- */
.page-hero { text-align: center; padding: 72px 0 56px; max-width: 760px; margin: 0 auto; }
.page-hero-compact { padding: 56px 0 36px; }
.page-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #14F195; background: rgba(20,241,149,0.08); border: 1px solid rgba(20,241,149,0.25); padding: 5px 12px; border-radius: 20px; margin-bottom: 20px; }
.page-hero h1 { font-size: 46px; line-height: 1.12; margin: 0 0 18px; letter-spacing: -0.5px; }
.page-lead { font-size: 17px; line-height: 1.6; color: #aaa; margin: 0 auto; max-width: 620px; }
.page-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* --- Sections --- */
.page-section { padding: 36px 0; border-top: 1px solid #1a1a24; scroll-margin-top: 64px; }
html { scroll-behavior: smooth; }
.page-section h2 { font-size: 26px; margin: 0 0 20px; }
.section-intro { color: #aaa; font-size: 15px; line-height: 1.6; margin: -6px 0 22px; max-width: 720px; }
.page-section p { line-height: 1.65; }

.steps-grid, .features-grid { display: grid; gap: 16px; }
.steps-grid { grid-template-columns: repeat(3, 1fr); }
.features-grid { grid-template-columns: repeat(4, 1fr); }

.step-card, .feature-card { background: rgba(13,13,18,0.85); border: 1px solid #1a1a24; border-radius: 14px; padding: 22px; transition: 0.2s; }
.step-card:hover, .feature-card:hover { border-color: #2a2a35; transform: translateY(-2px); }
.step-card h3, .feature-card h3 { font-size: 16px; margin: 12px 0 8px; }
.step-card p, .feature-card p { color: #999; font-size: 14px; margin: 0; }
.step-number { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #000; background: linear-gradient(135deg, #14F195, #9945FF); }
.feature-card svg { width: 26px; height: 26px; color: #14F195; }

/* --- Cartes des tiers --- */
.tiers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tier-card { background: rgba(13,13,18,0.85); border: 1px solid #1a1a24; border-radius: 14px; overflow: hidden; transition: 0.2s; display: flex; flex-direction: column; }
.tier-card:hover { transform: translateY(-3px); }
.tier-card img { width: 100%; height: 190px; object-fit: contain; background: #07070b; padding: 10px; box-sizing: border-box; }
.tier-card-body { padding: 16px 18px 20px; border-top: 1px solid #1a1a24; }
.tier-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.tier-card-head h3 { margin: 0; font-size: 17px; }
.tier-card-price { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.tier-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tier-card li { color: #aaa; font-size: 14px; padding-left: 18px; position: relative; }
.tier-card li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.tier-card-1:hover { border-color: #03E1FF; box-shadow: 0 0 22px rgba(3,225,255,0.12); }
.tier-card-1 h3, .tier-card-1 li::before { color: #03E1FF; }
.tier-card-1 .tier-card-price { color: #03E1FF; background: rgba(3,225,255,0.1); }
.tier-card-2:hover { border-color: #9945FF; box-shadow: 0 0 22px rgba(153,69,255,0.15); }
.tier-card-2 h3, .tier-card-2 li::before { color: #9945FF; }
.tier-card-2 .tier-card-price { color: #9945FF; background: rgba(153,69,255,0.12); }
.tier-card-3:hover { border-color: #ffb700; box-shadow: 0 0 22px rgba(255,183,0,0.15); }
.tier-card-3 h3, .tier-card-3 li::before { color: #ffb700; }
.tier-card-3 .tier-card-price { color: #ffb700; background: rgba(255,183,0,0.12); }

/* --- CA Drop --- */
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.split p { color: #aaa; font-size: 15px; margin: 0 0 14px; }
.limits-table { width: 100%; border-collapse: separate; border-spacing: 0; background: rgba(13,13,18,0.85); border: 1px solid #1a1a24; border-radius: 12px; overflow: hidden; font-size: 14px; }
.limits-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #777; padding: 12px 16px; border-bottom: 1px solid #1a1a24; }
.limits-table td { padding: 12px 16px; border-bottom: 1px solid #14141c; color: #ddd; }
.limits-table tr:last-child td { border-bottom: none; }
.limits-table td:last-child { color: #14F195; font-weight: 600; white-space: nowrap; }
.tier-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 10px; vertical-align: 1px; }
.tier-dot-0 { background: #999; } .tier-dot-1 { background: #14F195; } .tier-dot-2 { background: #9945FF; } .tier-dot-3 { background: #ffb700; }

/* --- FAQ --- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: rgba(13,13,18,0.85); border: 1px solid #1a1a24; border-radius: 12px; transition: border-color 0.2s; }
.faq details[open] { border-color: #2a2a35; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 600; font-size: 15px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; border-right: 2px solid #777; border-bottom: 2px solid #777; transform: translateY(-70%) rotate(45deg); transition: 0.2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); border-color: #14F195; }
.faq details p { margin: 0; padding: 0 18px 18px; color: #aaa; font-size: 14px; }
.page-main a:not(.btn-connect):not(.btn-ghost) { color: #14F195; }

.page-disclaimer { margin-top: 12px; padding: 20px 22px; border: 1px solid rgba(255,183,0,0.25); background: rgba(255,183,0,0.05); border-radius: 12px; }
.page-disclaimer h3 { margin: 0 0 8px; font-size: 14px; color: #ffb700; text-transform: uppercase; letter-spacing: 0.5px; }
.page-disclaimer p { margin: 0; color: #aaa; font-size: 14px; line-height: 1.6; }

.page-cta { text-align: center; padding: 56px 0 24px; }
.page-cta h2 { font-size: 28px; margin: 0; }

/* --- Contact --- */
.contact-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.contact-form, .contact-success { background: rgba(13,13,18,0.9); border: 1px solid #1a1a24; border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.contact-identity { align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: rgba(20,241,149,0.06); border: 1px solid rgba(20,241,149,0.25); font-size: 13px; color: #ccc; }
.contact-identity svg { width: 18px; height: 18px; color: #14F195; flex-shrink: 0; }
.contact-identity strong { color: #14F195; }
.form-row .profile-hint { margin-top: 6px; }
.form-optional { text-transform: none; letter-spacing: 0; color: #555; }
.form-select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23777' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.form-select option { background: #0d0d12; color: #fff; }
.form-textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.form-footer-row { display: flex; justify-content: space-between; }
.contact-callout { font-size: 13px; line-height: 1.5; color: #ccc; padding: 12px 14px; border-radius: 10px; background: rgba(153,69,255,0.08); border: 1px solid rgba(153,69,255,0.3); }
.form-error { color: #ff4444; margin: 0; min-height: 0; }
.form-error:empty { display: none; }
.form-submit { padding: 13px 20px; font-size: 15px; }
.form-submit:disabled { opacity: 0.6; cursor: default; }
/* Hors écran plutôt que display:none : certains robots ignorent les champs cachés */
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-success { align-items: center; text-align: center; padding: 44px 26px; }
.contact-success svg { width: 52px; height: 52px; color: #14F195; }
.contact-success h2 { margin: 0; font-size: 24px; }
.contact-success p { color: #aaa; margin: 0; line-height: 1.6; }
.contact-success .page-hero-actions { margin-top: 8px; }

.contact-aside { display: flex; flex-direction: column; gap: 14px; }
.aside-card { display: flex; gap: 14px; background: rgba(13,13,18,0.85); border: 1px solid #1a1a24; border-radius: 14px; padding: 18px; }
.aside-card svg { width: 24px; height: 24px; color: #14F195; flex-shrink: 0; margin-top: 2px; }
.aside-card h3 { margin: 0 0 6px; font-size: 15px; }
.aside-card p { margin: 0; color: #999; font-size: 13px; line-height: 1.6; }

/* --- Footer --- */
.page-footer { border-top: 1px solid #1a1a24; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; color: #666; background: rgba(5,5,8,0.85); }
.page-footer nav { display: flex; gap: 18px; }
.page-footer a { color: #888; text-decoration: none; }
.page-footer a:hover { color: #14F195; }

/* --- Responsive --- */
@media (max-width: 900px) {
    .steps-grid, .tiers-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .split, .contact-layout { grid-template-columns: 1fr; }
    .page-hero { padding: 48px 0 40px; }
    .page-hero h1 { font-size: 34px; }
    .page-lead { font-size: 15px; }
    .tier-card img { height: 170px; }
}

@media (max-width: 600px) {
    .page-main { padding: 0 16px 32px; }
    .page .header { flex-wrap: nowrap; }
    .page-nav { gap: 14px; }
    .page-nav-link { font-size: 13px; }
    .features-grid { grid-template-columns: 1fr; }
    .page-hero h1 { font-size: 29px; }
    .page-section h2 { font-size: 22px; }
    .contact-form, .contact-success { padding: 20px; }
    .page-footer { flex-direction: column; text-align: center; }
}

/* Très petits écrans : le bouton "Open App" ne tient plus à côté des liens (le logo ramène à l'app) */
@media (max-width: 380px) {
    a.page-nav-cta { display: none; }
}
