/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: Inter, sans-serif; 
    background: #fff; 
    color: #1A1F36; 
}

/* MENU MOBILE — caché sur desktop */
.mobile-menu {
    display: none;
    position: fixed;
    top: 120px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: #fff;
    padding: 20px;
    overflow-y: auto;
    z-index: 900;
    transform: translateY(-100%);
    transition: transform 0.35s ease;
}

.mobile-menu.open {
    transform: translateY(0);
}

/* Bouton retour */
.mobile-back {
    display: none;
    font-size: 18px;
    padding: 15px 0;
    margin-bottom: 10px;
    color: #0A6EBE;
    font-weight: 600;
    cursor: pointer;
}

/* Style du menu mobile */
.mobile-menu ul {
    list-style: none;
    padding: 0;
}

/* IMPORTANT : le <li> doit être vertical */
.mobile-menu li {
    padding: 18px 10px;
    border-bottom: 1px solid #eee;
    display: block;
}

/* Le parent cliquable */
.mobile-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Liens */
.mobile-menu a {
    color: #1A1F36;
    font-size: 18px;
    text-decoration: none;
}

/* Chevron mobile */
.mobile-chevron {
    font-size: 20px;
    color: #1A1F36;
}

/* Sous-menu mobile */
.mobile-submenu {
    display: none;
    flex-direction: column;
    padding-left: 20px;
    background: #f5f9ff;
    border-left: 3px solid #0A6EBE;
}

.mobile-submenu a {
    font-size: 16px;
    padding: 10px 0;
    color: #0A6EBE !important;
}

/* Quand un sous-menu est ouvert */
.mobile-has-submenu.open .mobile-submenu {
    display: flex;
}



/* HEADER */
.main-header {
    width: 100%;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    color: #0A6EBE;
}

/* NAVIGATION */
.main-nav > ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #1A1F36;
    font-weight: 500;
    position: relative;
}

.main-nav a:hover {
    color: #0A6EBE;
}

/* SUBMENU */
/* =========================
   SUBMENU DESKTOP
========================= */

.has-submenu {
    position: relative;
}

/* menu flottant */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;

    min-width: 240px;

    padding: 10px;
    margin: 0;

    list-style: none;

    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 18px;

    box-shadow:
        0 20px 45px rgba(15,23,42,.08),
        0 6px 18px rgba(15,23,42,.04);

    z-index: 999;

    flex-direction: column;
    gap: 4px;
}

/* petit délai visuel naturel */
.has-submenu:hover > .submenu {
    display: flex;
}

/* espace interne */
.submenu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* liens */
.submenu a {
    display: flex;
    align-items: center;

    padding: 12px 14px;

    border-radius: 12px;

    text-decoration: none;

    color: #425466;
    font-size: 15px;
    font-weight: 500;

    transition:
        background .18s ease,
        color .18s ease,
        transform .18s ease;
}

/* hover premium */
.submenu a:hover {
    background: #f5f9ff;
    color: #0A6EBE;
    transform: translateX(3px);
}

/* petite flèche visuelle */
.submenu::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 28px;

    width: 14px;
    height: 14px;

    background: #fff;

    border-top: 1px solid #edf2f7;
    border-left: 1px solid #edf2f7;

    transform: rotate(45deg);
}

/* Parent identique à .has-submenu */
.menu-create-account {
    position: relative;
    display: inline-block;
}

/* Sous-menu aligné à droite et DESCENDU */
.menu-create-account .submenu-create {
    left: auto;
    right: 0;

    top: calc(100% + 10px); /* ↓↓↓ DESCEND LE SOUS-MENU ↓↓↓ */
}

.menu-actions {
    display: flex;
    gap: 12px;
}



/* BUTTONS */
.btn-primary {
    background: #0A6EBE;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.btn-outline {
    border: 2px solid #0A6EBE;
    color: #0A6EBE;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-right: 10px;
}


/* FOOTER */
.main-footer {
    background: #0A1F33;
    color: #fff;
    padding: 60px 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-col a {
    display: block;
    color: #F6F9FC;
    text-decoration: none;
    margin-bottom: 8px;
}

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

.footer-bottom {
    text-align: center;
    color: #F6F9FC;
    opacity: 0.7;
}

/* BURGER MENU */
.burger {
    display: none; /* caché sur desktop */
    cursor: pointer;
}

.burger span {
    display: block;
    width: 28px;
    height: 3px;
    background: #1A1F36;
    margin: 5px 0;
}

/* RESPONSIVE */
@media (max-width: 900px) {

    .main-nav {
        display: none;
    }

    .menu-actions {
        display: none;
    }

    .burger {
        display: block;
    }

    /* IMPORTANT : menu mobile prêt mais invisible */
    .mobile-menu {
        display: block;
        transform: translateY(-100%);
    }
    

    .main-footer {
        padding: 40px 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: left;
    }

    .footer-col h4 {
        font-size: 17px;
        margin-bottom: 10px;
    }

    .footer-col a {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .footer-bottom {
        margin-top: 30px;
        font-size: 14px;
        line-height: 1.4;
        opacity: 0.8;
    }
}



/* HAMBURGER → CROIX */
.burger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.burger.open span:nth-child(2) {
    opacity: 0;
}

.burger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.burger span {
    transition: 0.3s;
}

/* Accueil*/

/* ==========================
   HERO PREMIUM
========================== */

/* ==================================================
   HERO
================================================== */

.hero-api {
    position: relative;
    padding: 80px 20px 120px;
    overflow: hidden;
    text-align: center;

    background:
        radial-gradient(
            circle at top,
            #eaf4ff 0%,
            #ffffff 60%
        );
}

.hero-content {
    max-width: 980px;
    margin: 0 auto;
}

.hero-badge,
.infra-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 18px;

    border-radius: 999px;

    background: #f5f9ff;
    border: 1px solid #dbe7f3;

    color: #0A6EBE;

    font-size: 14px;
    font-weight: 600;
}

.hero-api h1 {
    max-width: 920px;
    margin: 30px auto;

    font-size: 72px;
    line-height: 1.05;
    letter-spacing: -2px;
    font-weight: 700;

    color: #0f172a;
}

.hero-api p {
    max-width: 760px;
    margin: 0 auto 42px;

    font-size: 22px;
    line-height: 1.75;

    color: #425466;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* ==================================================
   API PREVIEW
================================================== */

.api-preview {
    padding: 0 20px 100px;
}

.api-window {
    max-width: 950px;
    margin: -50px auto 0;

    padding: 32px;

    border-radius: 32px;

    background: #0d1117;

    box-shadow:
        0 30px 80px rgba(0,0,0,.14);
}

.api-window-top {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
}

.api-window-top span {
    width: 12px;
    height: 12px;

    border-radius: 50%;

    background: #425466;
}

.api-window pre {
    margin: 0;

    color: #d6e2f0;

    font-size: 15px;
    line-height: 1.8;

    white-space: pre-wrap;
    overflow-x: auto;

    font-family: monospace;
}

/* ==================================================
   BENEFITS STRIP
================================================== */

.api-benefits-strip {
    display: grid;
    grid-template-columns: repeat(4,1fr);

    gap: 20px;

    max-width: 1200px;
    margin: 0 auto;

    padding: 0 20px 100px;
}

.benefit-card {
    padding: 22px;

    border-radius: 22px;

    background: #ffffff;

    border: 1px solid #edf2f7;

    box-shadow:
        0 10px 30px rgba(0,0,0,.04);

    text-align: center;

    font-size: 16px;
    font-weight: 600;

    color: #0f172a;
}

/* ==================================================
   GLOBAL
================================================== */

.api-section,
.api-infra,
.trust-section,
.billing-section,
.api-docs-section,
.pricing-section {
    padding: 40px 20px;
}

.api-container {
    max-width: 1200px;
    margin: 0 auto;

    text-align: center;
}

.api-container h2 {
    max-width: 900px;
    margin: 0 auto 20px;

    font-size: 30px;
    line-height: 1.15;

    color: #0f172a;
}

.api-container p {
    max-width: 760px;
    margin: 0 auto;

    font-size: 18px;
    line-height: 1.75;

    color: #425466;
}

/* ==================================================
   GRID / CARDS
================================================== */

.api-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);

    gap: 30px;

    margin-top: 60px;
}

.api-card {
    padding: 40px;

    border-radius: 30px;

    background: #ffffff;

    border: 1px solid #edf2f7;

    text-align: left;

    box-shadow:
        0 12px 35px rgba(0,0,0,.04);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.api-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 18px 50px rgba(0,0,0,.07);
}

.api-card h4 {
    margin-bottom: 14px;

    font-size: 22px;
    line-height: 1.3;

    color: #0f172a;
}

.api-card p {
    margin: 0;
}

/* ==================================================
   INFRA CARD
================================================== */

.infra-card {
    max-width: 980px;
    margin: 0 auto;

    padding: 75px 60px;

    border-radius: 36px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fbff 100%
        );

    border: 1px solid #e7eef7;

    box-shadow:
        0 20px 60px rgba(0,0,0,.05);
}

.infra-badge {
    margin-bottom: 24px;
}

.infra-card h2 {
    margin-bottom: 30px;
}

.infra-card p {
    max-width: 720px;

    font-size: 20px;
}

/* ==================================================
   BILLING
================================================== */
.billing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* =========================
   CARD
========================= */
.billing-card {
    background: #fff;
    border-radius: 24px;
    border: 1px solid #edf2f7;
    box-shadow: 0 18px 50px rgba(0,0,0,.06);
    padding: 24px;
    transition: .2s ease;
}

.billing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 70px rgba(0,0,0,.10);
}

/* TITLE */
.billing-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #0f172a;
}

/* TOTAL */
.billing-total {
    font-size: 28px;
    font-weight: 700;
    color: #0A6EBE;
    margin-bottom: 14px;
}

/* HEADER TABLE */
.billing-table-head {
    display: grid;
    grid-template-columns: 90px 1.2fr 1fr 90px;
    gap: 10px;

    font-size: 12px;
    font-weight: 600;
    color: #425466;

    padding: 10px 12px;
    border-bottom: 1px solid #edf2f7;

    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ROWS */
.billing-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.billing-row {
    display: grid;
    grid-template-columns: 90px 1.2fr 1fr 90px;
    gap: 10px;

    padding: 10px 12px;
    background: #f8fbff;
    border: 1px solid #edf2f7;
    border-radius: 10px;

    font-size: 13px;
    color: #425466;
}

/* BUTTON */
.billing-more {
    margin-top: 14px;
    background: transparent;
    border: none;
    color: #0A6EBE;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}


/* ==================================================
   DOCS
================================================== */

.api-docs-section {
    background: #f8fbff;
}

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

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

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

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

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 28px;

    max-width: 1250px;
    margin: 50px auto 0;

    align-items: stretch;
}

.pricing-card {
    width: 100%;
    box-sizing: border-box;
}

.pricing-card {
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 28px;
    padding: 35px;
    box-shadow: 0 20px 60px rgba(0,0,0,.05);
    transition: .25s ease;
    text-align: left;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 80px rgba(0,0,0,.08);
}

.pricing-card.featured {
    border: 2px solid #0A6EBE;
}

.pricing-group-label {
    display: inline-flex;
    align-items: center;

    padding: 10px 16px;
    margin-bottom: 18px;

    border-radius: 999px;

    background: #eef6ff;
    color: #0A6EBE;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.pricing-group-label.full-width {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 10px;
}
/* =========================
   CARTE DÉDIÉE LOUEUR MONO
========================= */

.featured-plan {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 420px;
    justify-self: center;
}

/* centre le label au-dessus */
.pricing-card.featured-plan .plan-tag {
    display: table;
    margin: 0 auto 20px;
}

/* centre aussi le contenu */
.pricing-card.featured-plan {
    text-align: center;
}

.pricing-card.featured-plan ul {
    text-align: left;
    margin-top: 25px;
}

.plan-tag {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef6ff;
    color: #0A6EBE;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 20px;
}

.pricing-card h3 {
    font-size: 26px;
    margin-bottom: 20px;
    color: #0f172a;
}

.price-box {
    margin-bottom: 30px;
}

.price-value {
    font-size: 52px;
    font-weight: 700;
    line-height: 1;
    color: #0A6EBE;
}

.price-meta {
    margin-top: 12px;
}

.price-meta .credits {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 14px;

    border-radius: 999px;

    background: #eaf4ff;
    border: 1px solid #cfe5fb;

    color: #0A6EBE;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.pricing-card li {
    padding: 14px 0;
    border-bottom: 1px solid #edf2f7;
    color: #425466;
    line-height: 1.5;
}



/* ==================================================
   API SNAPSHOT — VERSION CLAIRE
================================================== */

.api-snapshot {
    padding: 100px 20px;
    background: #ffffff;
}

.api-snapshot .api-container {
    text-align: center;
}

.api-snapshot h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #0f172a;
}

.api-snapshot p {
    max-width: 760px;
    margin: 0 auto 40px;
    font-size: 18px;
    line-height: 1.7;
    color: #425466;
}

/* Fenêtre API claire */
.api-window-light {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 36px;

    background: #f8fbff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;

    box-shadow:
        0 12px 35px rgba(0,0,0,.05);
}

/* Code */
.api-window-light pre {
    margin: 0;
    padding: 0;

    font-family: monospace;
    font-size: 16px;
    line-height: 1.8;

    color: #0f172a;

    white-space: pre-wrap;
    overflow-x: auto;
}

/* Ligne de séparation visuelle */
.api-window-light pre::before {
    content: "";
    display: block;
    height: 1px;
    width: 100%;
    background: #e2e8f0;
    margin: 22px 0;
}

/* ==================================================
   CTA FINAL
================================================== */

.api-cta-final {
    max-width: 1280px;

    margin: 80px auto;

    padding: 120px 30px;

    border-radius: 42px;

    text-align: center;

    background:
        radial-gradient(
            circle at top left,
            rgba(255,255,255,.15),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #0A6EBE,
            #083e77
        );
}

.api-cta-final h2 {
    max-width: 900px;
    margin: 0 auto 20px;

    font-size: 30px;
    line-height: 1.1;

    color: #ffffff;
}

.api-cta-final p {
    max-width: 760px;
    margin: 0 auto 36px;

    font-size: 20px;
    line-height: 1.75;

    color: rgba(255,255,255,.88);
}

.credit-usage-box {
    background: #f8fbff;
    border: 1px solid #dce6f5;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 40px;
    text-align: center; /* ← centre le contenu du bloc */
}

.credit-usage-box h3,
.credit-usage-box p {
    margin-bottom: 15px; /* ← espace propre entre le texte et la liste */
}

.credit-usage-list {
    display: inline-block;
    text-align: left;
    margin: 0 auto;
    padding-left: 20px;
}


.credit-usage-list li {
    list-style: none;
    display: flex;               /* ← alignement horizontal */
    gap: 12px;                   /* ← espace entre colonnes */
    margin-bottom: 8px;
    font-size: 1rem;
    color: #333;
}

.credit-count {
    min-width: 110px;            /* ← largeur fixe pour aligner les descriptions */
    font-weight: 600;
}

.credit-desc {
    flex: 1;                     /* ← occupe tout l’espace restant */
}



/* ==================================================
   MOBILE
================================================== */

/* ==================================================
   MOBILE
================================================== */

@media (max-width:900px) {

    /* fond léger pour créer du contraste */

    .api-section,
    .api-infra,
    .trust-section,
    .billing-section,
    .api-docs-section,
    .pricing-section {
        padding: 55px 20px;
        background: #f8fbff;
    }

    .hero-api {
        padding: 80px 20px 80px;
    }

    .hero-api h1 {
        font-size: 42px;
        line-height: 1.1;
        letter-spacing: -1px;
    }

    .hero-api p {
        font-size: 18px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .api-preview {
        padding-bottom: 70px;
    }

    .api-window {
        margin-top: -30px;
        padding: 24px;
        border-radius: 24px;
    }

    .api-window pre {
        font-size: 14px;
    }

    /* BENEFITS */

    .api-benefits-strip {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-bottom: 70px;
    }

    .benefit-card {
        background: #fff;
        border: 1px solid #e7eef7;

        box-shadow:
            0 10px 25px rgba(10,110,190,.06);

        border-radius: 24px;

        padding: 24px;
    }

    /* GRID */

    .api-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 40px;
    }

    /* CARDS PREMIUM MOBILE */

    .api-card {
        padding: 34px 28px;

        text-align: left;

        background:
            linear-gradient(
                180deg,
                #ffffff 0%,
                #fbfdff 100%
            );

        border: 1px solid #e4edf7;

        border-radius: 28px;

        box-shadow:
            0 14px 35px rgba(10,110,190,.08);

        transform: translateY(0);
    }

    .api-card h4 {
        font-size: 22px;
        margin-bottom: 14px;
    }

    /* INFRA */

    .infra-card {
        padding: 45px 30px;

        border-radius: 30px;

        background:
            linear-gradient(
                180deg,
                #ffffff 0%,
                #f7fbff 100%
            );

        box-shadow:
            0 18px 45px rgba(10,110,190,.08);
    }

    .infra-card h2 {
        font-size: 30px;
    }

    .infra-card p {
        font-size: 18px;
    }

    /* BILLING */
.billing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .billing-card {
        padding: 16px;
        border-radius: 18px;
    }

    .billing-card h3 {
        font-size: 15px;
    }

    .billing-total {
        font-size: 24px;
        margin-bottom: 12px;
    }

    /* ❌ on cache complètement le header */
    .billing-table-head {
        display: none;
    }

    /* ROW mobile propre */
    .billing-row {
        display: flex;
        flex-direction: column;
        gap: 8px;

        padding: 12px;
        border-radius: 12px;

        background: #f8fbff;
        border: 1px solid #edf2f7;
    }

    /* chaque ligne devient label + value */
    .billing-row span {
        display: flex;
        justify-content: space-between;

        font-size: 12px;
        color: #425466;
    }

    .billing-row span:nth-child(1)::before { content: "Date"; font-weight: 600; color: #0f172a; }
    .billing-row span:nth-child(2)::before { content: "Réservation"; font-weight: 600; color: #0f172a; }
    .billing-row span:nth-child(3)::before { content: "Partenaire"; font-weight: 600; color: #0f172a; }
    .billing-row span:nth-child(4)::before { content: "Montant"; font-weight: 600; color: #0f172a; }


    /* =========================
       BUTTON
    ========================== */
    .billing-more {
        width: 100%;
        margin-top: 12px;

        text-align: center;
        padding: 10px;

        border-radius: 10px;
        border: 1px solid #0A6EBE;

        font-size: 13px;
    }

    /* PRICING */

.pricing-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 20px;
    }


    .pricing-card {
        padding: 26px;
        border-radius: 22px;
    }

    .pricing-card h3 {
        font-size: 22px;
    }

    .price-value {
        font-size: 40px;
    }

    .credits {
        font-size: 14px;
    }

    /* CTA */

    .api-cta-final {
        margin: 0;
        padding: 80px 20px;
        border-radius: 0;
    }

    .api-cta-final h2 {
        font-size: 30px;
    }

    .api-cta-final p {
        font-size: 18px;
    }
    
    /* Snapshot */
    .api-snapshot {
        padding: 70px 20px;
    }

    .api-snapshot h2 {
        font-size: 30px;
        line-height: 1.2;
    }

    .api-snapshot p {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .api-window-light {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .api-window-light pre {
        font-size: 14px;
        line-height: 1.6;
    }

}