/* ===============================
   CIEL CYBERLAB - STYLE GLOBAL
   =============================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&family=Inter:wght@300;400;600&display=swap');

:root {
    --bg-main: #0b0f1a;
    --bg-card: #12182b;
    --primary: #00f7a5;
    --secondary: #1f6fff;
    --text-main: #e8eaf0;
    --text-muted: #a0a3b1;
    --danger: #ff4c4c;
    --radius: 14px;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BASE */
body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at top, #111936, var(--bg-main));
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
}

/* ===============================
   NAVBAR
   =============================== */
header {
    background: rgba(10, 15, 30, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1300px;
    margin: auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    color: var(--primary);
    letter-spacing: 2px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    bottom: -6px;
    left: 0;
    transition: 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* Bouton déconnexion */
nav a.logout {
    padding: 8px 16px;
    border: 2px solid #dc2626;
    border-radius: 30px;
    color: #dc2626;
}

nav a.logout:hover {
    background: #dc2626;
    color: white;
}

/* ===============================
   HERO
   =============================== */
.hero {
    max-width: 1300px;
    margin: auto;
    padding: 120px 20px 80px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.2rem;
    color: var(--primary);
    margin-bottom: 25px;
}

.hero p {
    margin-top: 15px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.hero .badge {
    display: inline-block;
    margin-bottom: 20px;
    padding: 6px 14px;
    background: rgba(0,247,165,0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.9rem;
}

/* IMAGE HERO */
.hero-logo {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: -100px;
}

.hero-logo img {
    width: 460px;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 25px 40px rgba(0,0,0,0.45));
    transition: transform 0.4s ease;
}

.hero-logo img:hover {
    transform: translateY(-6px) scale(1.03);
}

/* ===============================
   BOUTONS HERO
   =============================== */
.hero-actions {
    margin-top: 35px;
    display: flex;
    gap: 20px;
}

.btn-primary {
    padding: 14px 28px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #000;
    font-weight: 600;
    border-radius: 40px;
    text-decoration: none;
}

.btn-secondary {
    padding: 14px 28px;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 40px;
    text-decoration: none;
}

/* ===============================
   SECTIONS & CARDS
   =============================== */
section {
    max-width: 1300px;
    margin: auto;
    padding: 60px 20px;
}

section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin-bottom: 40px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: linear-gradient(180deg, var(--bg-card), #0c1022);
    border-radius: var(--radius);
    padding: 25px 20px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.4s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.card h3 {
    color: var(--secondary);
    margin-bottom: 15px;
}

/* ===============================
   BOUTONS BOT – STYLE PRO
   =============================== */
.bot-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-decoration: none;
    color: var(--secondary);
    background: transparent;
    border: 2px solid var(--secondary);
    transition: all 0.25s ease;
}

.bot-link:hover {
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 0 0 4px rgba(31,111,255,0.15),
                0 12px 30px rgba(0,0,0,0.45);
}

/* ===============================
   AUTH BOX – FORMULAIRE
   =============================== */
.auth-box {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 340px;
    background: linear-gradient(145deg,#0f172a,#020617);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
    color: white;
    z-index: 1000;
    animation: fadeUp .6s ease;
}

.auth-box h3{
    text-align:center;
    margin-bottom:15px;
    font-size:22px;
    color:#38bdf8;
}

.auth-box input{
    width:100%;
    padding:12px;
    margin:8px 0;
    border-radius:10px;
    border:none;
    background:#020617;
    color:white;
    outline:1px solid #1e293b;
}

.auth-box input:focus{
    outline:2px solid #38bdf8;
}

.auth-box button{
    width:100%;
    padding:12px;
    margin-top:12px;
    border-radius:10px;
    border:none;
    background:linear-gradient(135deg,#2563eb,#38bdf8);
    color:white;
    font-weight:bold;
    font-size:16px;
    cursor:pointer;
}

.auth-box button:hover{
    opacity:.9;
}

.auth-switch{
    text-align:center;
    margin-top:12px;
    color:#38bdf8;
    cursor:pointer;
    font-size:14px;
}

.auth-error{
    text-align:center;
    color:#f87171;
    margin-bottom:10px;
}
/* ===============================
   BOT FIXE – STYLE PRO (comme auth-box)
   =============================== */
#coach-floating {
    position: fixed;
    top: 100px;           /* hauteur depuis le haut, ajustable */
    right: 25px;
    width: 340px;
    background: linear-gradient(145deg,#0f172a,#020617);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
    color: white;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
    animation: fadeUp 0,6s ease;
}

/* Bubble texte du bot */
.coach-bubble {
    background: #020617;      /* même couleur que les inputs */
    border-left: 4px solid #38bdf8;
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 15px;
}

.coach-bubble p {
    margin: 0;
    font-size: 14px;
    color: white;
}

/* Bouton du bot */
.btn-floating {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg,#2563eb,#38bdf8);
    color: white;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    display: block;
    transition: all 0.25s ease;
}

.btn-floating:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Animation apparition */
@keyframes fadeUp{
    from{opacity:0; transform:translateY(30px);}
    to{opacity:1; transform:translateY(0);}
}

/* Responsive */
@media(max-width:768px){
    #coach-floating {
        width: 280px;
        right: 15px;
        top: 80px;
    }

    .coach-bubble p { font-size: 13px; }
    .btn-floating { font-size: 14px; padding: 10px 0; }
}


/* ===============================
   FOOTER
   =============================== */
footer {
    background: #050812;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

/* ===============================
   RESPONSIVE HERO
   =============================== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-logo {
        margin-top: -40px;
    }
    .hero-logo img {
        width: 320px;
    }
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media(max-width:768px){
    #coach-floating {
        width: 260px;
        right: 15px;
        top: 80px;
    }
    .coach-bubble p { font-size: 13px; }
    .btn-floating { font-size: 14px; padding: 10px 0; }
}

