/* ==========================================================
   VTC-Drivers : look commun index.html + features.html
   À charger APRÈS style.css (header, footer, cookies, QR).
   ========================================================== */
html { scroll-behavior: smooth; }
:root {
    --f-indigo: #4338ca;
    --f-indigo-dark: #312e81;
    --f-ink: #020617;
    --f-text: #475569;
    --f-line: #e2e8f0;
    --f-soft: #f8fafc;
    --f-gutter: clamp(20px, 5vw, 72px);
}

/* Pleine largeur : un seul gabarit pour toutes les sections */
.f-wrap { width: 100%; padding-left: var(--f-gutter); padding-right: var(--f-gutter); }
.f-inner { max-width: 1400px; margin: 0 auto; }
.f-section { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.f-section.alt { background: var(--f-soft); border-top: 1px solid var(--f-line); border-bottom: 1px solid var(--f-line); }
.f-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 70ch; }
.f-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.025em; color: var(--f-ink); margin: 0 0 10px; line-height: 1.15; }
.f-head p { font-size: 1.08rem; color: var(--f-text); line-height: 1.65; margin: 0; }

/* ---------- Boutons ---------- */
.f-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 24px; border-radius: 10px; font-weight: 700; font-size: 1rem; line-height: 1.2;
    text-decoration: none; border: 0; cursor: pointer; font-family: inherit;
    transition: transform .15s, background .2s, box-shadow .2s;
}
.f-btn:hover { transform: translateY(-2px); }
.f-btn:disabled { opacity: .6; cursor: default; transform: none; }
.f-btn-light { background: #fff; color: var(--f-indigo-dark); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.f-btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.f-btn-ghost:hover { background: rgba(255,255,255,.1); }
.f-btn-primary { background: var(--f-indigo); color: #fff; }
.f-btn-primary:hover { background: #3730a3; }
.f-btn-outline { background: #fff; color: var(--f-indigo); border: 1.5px solid #c7d2fe; }
.f-btn-outline:hover { border-color: var(--f-indigo); }
.f-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.f-hero {
    position: relative; overflow: hidden; color: #fff;
    padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(48px, 7vw, 96px);
    background:
        radial-gradient(900px 400px at 85% -10%, rgba(129,140,248,.45), transparent 60%),
        radial-gradient(700px 380px at 0% 110%, rgba(67,56,202,.55), transparent 60%),
        linear-gradient(135deg, #1e1b4b 0%, #312e81 55%, #4338ca 100%);
}
.f-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.f-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
    padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; margin-bottom: 20px;
}
.f-hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; margin: 0 0 18px; color: #fff; }
.f-hero h1 span { color: #a5b4fc; }
.f-hero p.lead { font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.65; color: #e0e7ff; max-width: 60ch; margin: 0 0 28px; }

/* Version compacte (page Fonctionnalités) : moins de hauteur */
.f-hero.compact { padding-top: clamp(28px, 4vw, 52px); padding-bottom: clamp(26px, 3.5vw, 44px); }
.f-hero.compact .f-hero-grid { grid-template-columns: 1fr auto; gap: 24px; }
.f-hero.compact h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: 10px; }
.f-hero.compact p.lead { font-size: 1.02rem; margin-bottom: 0; max-width: 70ch; }
.f-hero.compact .f-eyebrow { margin-bottom: 12px; padding: 4px 12px; font-size: .8rem; }

/* Tuiles du hero */
.f-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.f-stat { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 16px; padding: 20px; backdrop-filter: blur(6px); display: flex; flex-direction: column; gap: 6px; }
.f-stat .material-icons { font-size: 26px; color: #a5b4fc; }
.f-stat strong { display: block; font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
.f-stat span:not(.material-icons) { font-size: .88rem; line-height: 1.45; color: #c7d2fe; }

/* ---------- Cartes (base commune) ---------- */
.f-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; align-items: start; }
.f-card {
    --c: #4338ca; --c-soft: #eef2ff;
    position: relative; background: #fff; border-radius: 20px; padding: 24px;
    border: 1px solid var(--f-line); overflow: hidden;
    box-shadow: 0 1px 2px rgba(15,23,42,.04);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.f-card:hover { transform: translateY(-3px); border-color: #c7d2fe; box-shadow: 0 14px 30px -16px rgba(30,27,75,.28); }
.f-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--c-soft); color: var(--c); display: grid; place-items: center; flex-shrink: 0; }
.f-icon .material-icons { font-size: 26px; }
.f-card h3 { font-size: 1.2rem; font-weight: 800; color: var(--f-ink); margin: 0 0 8px; line-height: 1.3; letter-spacing: -.01em; }
.f-card p { font-size: .98rem; line-height: 1.6; color: var(--f-text); margin: 0; }
.f-card .f-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c); background: var(--c-soft); padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }

/* ---------- Bandeau final ---------- */
.f-final { background: linear-gradient(135deg, #1e1b4b, #4338ca); color: #fff; text-align: center; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.f-final h2 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 12px; color: #fff; }
.f-final p { color: #c7d2fe; font-size: 1.1rem; margin: 0 auto 28px; max-width: 56ch; line-height: 1.6; }
.f-final a:not(.f-btn) { color: #fff; font-weight: 700; }
.f-final .f-cta { justify-content: center; }

/* ---------- Responsive commun ---------- */
@media (max-width: 960px) {
    .f-hero-grid, .f-hero.compact .f-hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .f-cta .f-btn { width: 100%; }
    .f-stat { padding: 16px; }
    .f-card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation: none !important; transition: none !important; }
}

/* ---------- Étapes numérotées & tarifs d'abonnement (pages options) ---------- */
.f-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.f-steps .f-card { padding: clamp(22px, 2.6vw, 32px); }
.f-step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--f-indigo); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 14px; }
.f-split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 6vw, 96px); align-items: start; }
.f-split .f-head { margin-bottom: 0; }
.f-split > p { margin: 0; font-size: 1.1rem; line-height: 1.75; color: var(--f-text); }
.f-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 22px; align-items: stretch; }
.f-plan { display: flex; flex-direction: column; }
.f-plan.featured { border: 2px solid var(--f-indigo); box-shadow: 0 18px 40px -24px rgba(67,56,202,.45); }
.f-plan h3 { margin-top: 4px; }
.f-price { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; color: var(--f-ink); margin: 6px 0 14px; }
.f-price span { font-size: .95rem; font-weight: 600; color: #64748b; letter-spacing: 0; }
.f-plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; flex: 1; }
.f-plan li { display: flex; gap: 8px; align-items: flex-start; color: #334155; font-size: .95rem; line-height: 1.45; }
.f-plan li .material-icons { color: var(--f-indigo); font-size: 20px; flex-shrink: 0; }
.f-plan .f-btn { width: 100%; }
.f-note { margin-top: 22px; font-size: .88rem; color: #64748b; line-height: 1.6; }
@media (max-width: 960px) { .f-split { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .f-steps { grid-template-columns: 1fr; gap: 20px; } }

/* Parcours "compte > appli > option" (pages d'options) */
.f-flow { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.f-flow li { display: flex; gap: 14px; align-items: flex-start; }
.f-flow .f-step-num { margin: 0; flex-shrink: 0; }
.f-flow div { display: grid; gap: 2px; }
.f-flow strong { color: var(--f-ink); }
.f-flow span:not(.f-step-num) { font-size: .92rem; color: var(--f-text); line-height: 1.5; }
.f-plan ul { margin-bottom: 0; }
@media (max-width: 760px) { .f-flow { grid-template-columns: 1fr; } }
