/* ===== KYDEN Learn ===== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Inter',sans-serif;
    background:#f3f6fb;
    color:#111827;
}

.container{
    width:100%;
    max-width:1100px;
    margin:auto;
    padding:60px 20px;
}

/* Hero */

.hero{
    text-align:center;
    margin-bottom:40px;
}

.badge{
    display:inline-block;
    background:#dbeafe;
    color:#2563eb;
    padding:8px 18px;
    border-radius:999px;
    font-size:13px;
    font-weight:600;
    margin-bottom:18px;
}

.hero h1{
    font-size:48px;
    font-weight:700;
    margin-bottom:15px;
    letter-spacing:-1px;
}

.hero p{
    max-width:650px;
    margin:auto;
    color:#6b7280;
    font-size:18px;
    line-height:1.6;
}

/* Carte principale */

.generator{
    background:white;
    border-radius:22px;
    padding:30px;
    box-shadow:0 15px 45px rgba(0,0,0,.08);
    margin-bottom:30px;
}

.generator label{
    display:block;
    font-weight:600;
    margin-bottom:12px;
}

.generator input{
    width:100%;
    padding:18px;
    border:2px solid #e5e7eb;
    border-radius:14px;
    font-size:15px;
    transition:.25s;
}

.generator input:focus{
    outline:none;
    border-color:#2563eb;
}

.generator button{
    width:100%;
    margin-top:18px;
    padding:18px;
    border:none;
    border-radius:14px;
    background:#2563eb;
    color:white;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    transition:.25s;
}

.generator button:hover{
    background:#1d4ed8;
    transform:translateY(-2px);
}

/* Aperçu */

.preview-card{
    background:white;
    border-radius:22px;
    padding:35px;
    min-height:380px;
    box-shadow:0 15px 45px rgba(0,0,0,.08);
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
}

.preview-card h2{
    font-size:28px;
    margin-bottom:10px;
}

.preview-card p{
    color:#6b7280;
    max-width:420px;
    line-height:1.6;
}

/* Responsive */

@media(max-width:768px){

.hero h1{
    font-size:34px;
}

.hero p{
    font-size:16px;
}

.generator,
.preview-card{
    padding:22px;
}


}
.loader{
    width:55px;
    height:55px;
    border:5px solid #e5e7eb;
    border-top:5px solid #2563eb;
    border-radius:50%;
    animation:spin 1s linear infinite;
    margin-bottom:20px;
}

@keyframes spin{
    from{transform:rotate(0deg);}
    to{transform:rotate(360deg);}
}