/* =========================================================
   VARIABLES
========================================================= */


:root {
    --bg: #0b1220;
    --surface: #121b2f;
    --text: #eaf0ff;
    --muted: #a9b3ca;
    --bd: rgba(255, 255, 255, .08);
    --r: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --accent1: #5bd6ff;
    --accent2: #9b7bff;
}

/* =========================================================
   RESET
========================================================= */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    font-family: Arial, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
}

/* =========================================================
   NAVIGATION
========================================================= */
.nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 3.2rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 0 6px #00f0ff, 0 0 12px #6d5dfc, 0 0 18px #ff00cc;
    transition: .3s;
    letter-spacing: .5px;
}

.brand:hover {
    transform: scale(1.05);
    text-shadow: 0 0 10px #00f0ff, 0 0 18px #6d5dfc, 0 0 25px #ff00cc;
}

/* =========================================================
   BOUTONS NAV — VERSION FINALE
========================================================= */
.links a,
#faq-menu-btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid #3b82f6;
    text-decoration: none;
    color: white;
    background: transparent;
    margin-left: 16px;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
    transition: all .25s ease;
}

.links a:hover,
#faq-menu-btn:hover {
    background: #3b82f6;
    color: white !important;
    box-shadow: 0 0 16px rgba(59, 130, 246, 1);
}

/* soulignement animé (PC uniquement) */
.links a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 4px;
    transition: width .25s ease;
}

.links a:hover::after {
    width: 100%;
}

/* =========================================================
   HERO
========================================================= */
.hero {
    background: linear-gradient(180deg, #0b1220 0%, #111b33 100%);
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px 70px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(34px, 7vw, 78px);
    margin: 0 0 16px;
    font-weight: 800;
    line-height: 1.1;
}

.hero p {
    max-width: 760px;
    margin: 0 auto 22px;
    color: #d8e2ff;
    font-size: clamp(14px, 2.1vw, 18px);
}

/* =========================================================
   BOUTON CTA
========================================================= */
.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    background: linear-gradient(135deg, var(--accent1), var(--accent2));
    color: #04111d;
    border: none;
    box-shadow: var(--shadow);
    transition: .12s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .4);
}

/* =========================================================
   SECTIONS BENTO / CONTACT / FOOTER
========================================================= */
.bento {
    max-width: 1100px;
    padding: 20px;
    margin: 0 auto;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    background: var(--surface);
    border: 1px solid var(--bd);
    border-radius: var(--r);
    padding: 20px;
}

.contact {
    padding: 40px 20px;
}

.form {
    display: grid;
    gap: 12px;
    max-width: 420px;
    margin: 0 auto;
    padding: 16px;
    border-radius: 12px;
    background: #0f172a;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
}

input,
textarea {
    background: #0c1426;
    color: var(--text);
    border: 1px solid var(--bd);
    border-radius: 10px;
    padding: 12px;
}

.footer {
    text-align: center;
    padding: 20px;
    color: var(--muted);
    border-top: 1px solid var(--bd);
}

/* =========================================================
   TITRE H2 ANIMÉ
========================================================= */
h2 {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    color: #e5e7eb;
    animation:
        fadeInTitle 1s ease forwards,
        shine 4s linear infinite 1s;
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
    h2 {
        background: linear-gradient(90deg, #3b82f6, #60a5fa, #3b82f6);
        background-size: 200% auto;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

@keyframes fadeInTitle {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shine {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: 0% center;
    }
}

/* =========================================================
   CHATBOT (repris sans doublon)
========================================================= */
.agent {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 10000;
}

#agent-toggle {
    position: fixed;
    right: 24px;
    bottom: 12px;
    width: 80px;
    height: 80px;
    background: #3a86ff;
    color: #fff;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 32px;
    box-shadow: 0 0 20px rgba(0, 150, 255, 0.6);
}

@media (max-width: 480px) {
    #agent-toggle {
        width: 62px;
        height: 62px;
        font-size: 28px;
    }
}


.agent-panel {
    position: fixed;
    right: 24px;
    bottom: 80px;
    width: 360px;
    max-height: 78vh;
    display: none;
    flex-direction: column;
    background: #0f0f0f;
    border: 1px solid #242424;
    border-radius: 12px;
    overflow: hidden;
    color: #eee;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}

.agent.open .agent-panel {
    display: flex;
}

.agent-log {
    flex: 1;
    padding: 12px;
    overflow-y: auto !important;
    max-height: calc(100% - 120px);
    padding-bottom: 20px;
}

.agent-form {
    display: flex;
    gap: 8px;
    padding: 10px;
    background: #0f0f0f;
    border-top: 1px solid #242424;
}

/* =========================================================
   RESPONSIVE MOBILE
========================================================= */
@media (max-width: 768px) {

    .nav {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding-top: 22px;
    }

    .brand {
        width: 100%;
        font-size: 2rem;
        margin-bottom: 6px;
        text-align: center;
    }

    .links {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .links a,
    #faq-menu-btn {
        width: 70%;
        max-width: 280px;
        min-width: 160px;
        margin: 0;
        padding: 12px;
        box-shadow: 0 0 12px rgba(59, 130, 246, .7);
    }

    #agent-panel {
        width: 92vw !important;
        right: 4vw !important;
        bottom: 90px !important;
        border-radius: 14px;
    }
}

/* =========================================================
   PETITS TÉLÉPHONES
========================================================= */
@media (max-width: 480px) {
    .brand {
        font-size: 2.3rem;
    }

    .links a,
    #faq-menu-btn {
        font-size: .9rem;
        padding: 10px;
        min-width: 130px;
    }
}

/* Écrans horizontaux très bas (téléphones landscape) */
@media (max-height: 480px) {
    .agent-panel {
        width: 96vw !important;
        height: 85vh !important;
        left: 2vw !important;
        right: 2vw !important;
        bottom: 10px !important;
        border-radius: 10px !important;
    }

    .agent-log {
        max-height: calc(85vh - 130px) !important;
    }
}