/* CSS principal FRONTYGO – style sobre, inspiré Apple */
/* Reset minimal / base */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
                 "Segoe UI", Roboto, sans-serif;
    color: #0b0b0f;
    background-color: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Layout */

.fg-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

.fg-section {
    padding: 96px 0;
}

.fg-section-light {
    background: #f5f5f7;
}

/* Header */

.fg-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.fg-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

/* Logo */

.fg-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.fg-logo-mark {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, #ffffff, #0071e3);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.08),
        0 8px 20px rgba(0, 0, 0, 0.18);
}

.fg-logo-text {
    font-weight: 600;
    letter-spacing: 0.12em;
    font-size: 13px;
    text-transform: uppercase;
}

/* Nav */

.fg-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
}

.fg-nav a {
    text-decoration: none;
    color: rgba(0, 0, 0, 0.7);
    position: relative;
    padding-bottom: 2px;
}

.fg-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: #000000;
    transition: width 0.25s ease;
}

.fg-nav a:hover::after {
    width: 100%;
}

.fg-header-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Buttons & links */

.fg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
    white-space: nowrap;
}

.fg-btn-primary {
    background: #000000;
    color: #ffffff;
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.fg-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.16) inset;
}

.fg-btn-ghost {
    background: rgba(0, 0, 0, 0.03);
    color: #000000;
    border-color: rgba(0, 0, 0, 0.12);
}

.fg-btn-ghost:hover {
    background: rgba(0, 0, 0, 0.06);
}

.fg-link {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.7);
    text-decoration: none;
}

.fg-link:hover {
    text-decoration: underline;
}

/* Mobile nav toggle */

.fg-nav-toggle {
    display: none;
    border: none;
    background: transparent;
    width: 32px;
    height: 32px;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}

.fg-nav-toggle span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: #000000;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */

.fg-hero {
    padding-top: 96px;
}

.fg-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

.fg-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: #f5f5f7;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 16px;
}

.fg-hero h1 {
    font-size: clamp(32px, 3.2vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.fg-hero-subtitle {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.7);
    max-width: 480px;
    margin-bottom: 24px;
}

.fg-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.fg-hero-note {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.6);
}

/* Hero media */

.fg-hero-media {
    display: flex;
    justify-content: flex-end;
}

.fg-hero-video {
    width: 100%;
    max-width: 350px;
    border-radius: 28px;
    padding: 18px;
    background: radial-gradient(circle at 0 0, #ffffff, #f5f5f7);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}


.fg-hero-ui {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
}

.fg-hero-ui-line {
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
}

.fg-hero-ui-line-1 { width: 72%; }
.fg-hero-ui-line-2 { width: 54%; opacity: 0.9; }
.fg-hero-ui-line-3 { width: 32%; opacity: 0.7; }

.fg-hero-ui-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    font-size: 11px;
    margin-top: 8px;
}

.fg-hero-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Important pour éviter que la vidéo déborde */
    background: #fff; /* ou transparent si tu préfères */
}


/* Trust section */

.fg-trust {
    text-align: center;
}

.fg-trust-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(0, 0, 0, 0.55);
    margin-bottom: 24px;
}

.fg-trust-logos {
    display: inline-flex;
    align-items: center;
    gap: 32px;
    padding: 16px 24px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow:
        0 16px 30px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(0, 0, 0, 0.05);
}

.fg-trust-item {
    text-align: left;
}

.fg-trust-tag {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(0, 0, 0, 0.4);
    margin-bottom: 4px;
}

.fg-trust-title {
    font-size: 14px;
    font-weight: 600;
}

.fg-trust-text {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.65);
}

.fg-trust-divider {
    width: 1px;
    height: 40px;
    background: rgba(0, 0, 0, 0.06);
}

/* Sections titres & layouts */

.fg-section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}

.fg-section-header h2 {
    font-size: clamp(24px, 2.4vw, 30px);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.fg-section-lead {
    font-size: 15px;
    color: rgba(0, 0, 0, 0.65);
}

.fg-two-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: flex-start;
}

/* Steps */

.fg-step-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
}

.fg-step {
    padding: 18px 18px 16px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.03),
        0 0 0 1px rgba(0, 0, 0, 0.04);
}

.fg-step-number {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #000000;
    color: #ffffff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.fg-step h3 {
    font-size: 15px;
    margin-bottom: 6px;
}

.fg-step p {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.7);
}

/* Features */

.fg-features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.fg-feature {
    padding: 20px 18px 18px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.03),
        0 0 0 1px rgba(0, 0, 0, 0.04);
}

.fg-feature h3 {
    font-size: 15px;
    margin-bottom: 8px;
}

.fg-feature p {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.7);
}

/* Demo / mockup */

.fg-demo-block {
    align-items: center;
}

.fg-demo-media {
    display: flex;
    justify-content: flex-end;
}

.fg-demo-screen {
    width: 100%;
    max-width: 420px;
    border-radius: 26px;
    overflow: hidden;
    background: #ffffff;
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.16),
        0 0 0 1px rgba(0, 0, 0, 0.04);
}

.fg-demo-browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    background: #f5f5f7;
    font-size: 11px;
    color: rgba(0, 0, 0, 0.5);
}

.fg-demo-browser-bar .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.16);
}

.fg-demo-browser-bar .url {
    margin-left: 8px;
}

.fg-demo-content {
    padding: 14px;
}

/* Lists */

.fg-list {
    list-style: none;
    margin: 16px 0 20px;
}

.fg-list li {
    position: relative;
    padding-left: 18px;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 6px;
}

.fg-list li::before {
    content: "•";
    position: absolute;
    left: 4px;
    top: 0;
    color: rgba(0, 0, 0, 0.5);
}

.fg-list-tight li {
    margin-bottom: 4px;
}

/* Pricing */

.fg-pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.fg-pricing-card {
    border-radius: 22px;
    padding: 22px 22px 24px;
    background: #ffffff;
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fg-pricing-card h3 {
    font-size: 17px;
    margin-bottom: 2px;
}

.fg-pricing-sub {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.6);
}

.fg-pricing-price {
    font-size: 20px;
    font-weight: 600;
    margin-top: 4px;
}

/* FAQ */

.fg-faq {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fg-faq-item {
    border-radius: 18px;
    padding: 14px 16px;
    background: #f5f5f7;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.fg-faq-item summary {
    list-style: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.fg-faq-item summary::-webkit-details-marker {
    display: none;
}

.fg-faq-item p {
    margin-top: 8px;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.7);
}

/* Footer */

.fg-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 32px 0 36px;
    background: #ffffff;
}

.fg-footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: flex-start;
}

.fg-footer-text {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.6);
    margin: 8px 0 10px;
}

.fg-footer-copy {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.45);
}

.fg-footer-right {
    display: flex;
    gap: 40px;
}

.fg-footer-column h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 10px;
}

.fg-footer-column a {
    display: block;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.7);
    text-decoration: none;
    margin-bottom: 6px;
}

.fg-footer-column a:hover {
    text-decoration: underline;
}

/* Responsive */

@media (max-width: 960px) {
    .fg-hero-grid,
    .fg-two-columns,
    .fg-features-grid,
    .fg-step-grid,
    .fg-pricing-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .fg-hero-grid {
        gap: 40px;
    }

    .fg-demo-media {
        justify-content: flex-start;
    }

    .fg-header-inner {
        gap: 12px;
    }

    .fg-header-cta {
        display: none;
    }

    .fg-nav-toggle {
        display: flex;
    }

    .fg-nav {
        position: fixed;
        inset: 64px 0 auto 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 16px 20px 20px;
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.18s ease, transform 0.18s ease;
    }

    .fg-nav a {
        padding: 6px 0;
        font-size: 15px;
    }

    .fg-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 720px) {
    .fg-section {
        padding: 72px 0;
    }

    .fg-hero {
        padding-top: 80px;
    }

    .fg-trust-logos {
        border-radius: 18px;
        flex-direction: column;
        align-items: flex-start;
    }

    .fg-footer-inner {
        flex-direction: column;
    }

    .fg-footer-right {
        flex-wrap: wrap;
    }

    .fg-hero-video {
        max-width: 100%;
    }
}

/* ===== PRICING ===== */

.fg-pricing-section {
    position: relative;
    overflow: hidden;
}

/* léger dégradé de fond */
.fg-pricing-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(99,102,241,0.10), transparent 60%);
    opacity: 0.9;
    pointer-events: none;
}

.fg-pricing-section .fg-container {
    position: relative;
    z-index: 1;
}

.fg-pricing-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}

.fg-pricing-header h2 {
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

/* fake toggle mensuel / annuel (pour le look) */
.fg-pricing-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 999px;
    padding: 0.25rem 0.4rem;
    background: rgba(0,0,0,0.04);
    margin: 0 auto 2.5rem;
    max-width: 220px;
    position: relative;
    height:30px;
}

.fg-pricing-toggle-label {
    flex: 1;
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
    text-align: center;
    opacity: 0.6;
}

.fg-pricing-toggle-label--active {
    font-weight: 600;
    opacity: 1;
}

.fg-pricing-toggle-pill {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 50%;
    height: calc(100% - 6px);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(15,23,42,0.1);
    z-index: 0;
}

/* grille des cartes */
.fg-pricing-grid {
    display: grid;
    gap: 1.75rem;
}

@media (min-width: 900px) {
    .fg-pricing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch;
    }
}

.fg-pricing-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 1.75rem 1.8rem 1.9rem;
    box-shadow: 0 16px 40px rgba(15,23,42,0.06);
    border: 1px solid rgba(148,163,184,0.35);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 160ms ease-out, box-shadow 160ms ease-out, border-color 160ms ease-out;
}

.fg-pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 60px rgba(15,23,42,0.12);
    border-color: rgba(99,102,241,0.55);
}

.fg-pricing-card-header h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.fg-pricing-tagline {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0;
}

/* carte Pro mise en avant */
.fg-pricing-card--highlight {
    border: 2px solid rgba(99,102,241,0.8);
    box-shadow: 0 24px 70px rgba(55,65,81,0.18);
    transform: translateY(-4px);
}

.fg-pricing-card--highlight:hover {
    transform: translateY(-6px);
}

.fg-pricing-ribbon {
    position: absolute;
    top: 1.1rem;
    right: 1.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4f46e5;
    background: rgba(224,231,255,0.9);
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}

/* prix */
.fg-pricing-price {
    margin: 1.4rem 0 1.4rem;
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.fg-pricing-amount {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.fg-pricing-period {
    font-size: 0.95rem;
    opacity: 0.7;
}

/* liste des features */
.fg-pricing-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.7rem;
    font-size: 0.9rem;
}

.fg-pricing-list li {
    position: relative;
    padding-left: 1.15rem;
    margin-bottom: 0.45rem;
}

.fg-pricing-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #4f46e5;
    font-weight: 700;
    font-size: 0.9rem;
}

/* CTA */
.fg-pricing-cta {
    margin-top: auto;
}

.fg-btn-block {
    display: inline-flex;
    width: 100%;
    justify-content: center;
}

.fg-pricing-note-small {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 0.6rem;
}

/* note globale */
.fg-pricing-footnote {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.72;
    margin-top: 2.5rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.fg-hero-placeholder video {
    width: 100%;
    height: 100%;
    object-fit: contain !important; /* Affiche 100% de l’image */
    object-position: center center;
    background-color: #0000; /* laisse le fond transparent */
}
.fg-hero-video,
.fg-hero-placeholder {
    aspect-ratio: auto; /* Force la vidéo à contrôler son ratio */
}

