/* =====================================================
   ENGLISH CHALLENGE - STYLE PRINCIPAL
===================================================== */

/* RESET */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background:#f8f9fa;
    color:#333;
    line-height:1.6;
}

/* =====================================================
   NAVBAR
===================================================== */

.navbar{
    box-shadow:0 2px 12px rgba(0,0,0,0.10);
}

.navbar-brand{
    font-size:1.4rem;
    font-weight:700;
}

.nav-link{
    font-weight:500;
    transition:0.3s;
}

.nav-link:hover{
    color:#ffc107 !important;
}

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

.hero{
    min-height:85vh;
    display:flex;
    align-items:center;
    background:linear-gradient(
        135deg,
        #0d6efd 0%,
        #0052cc 100%
    );
    color:#fff;
    padding:80px 0;
}

.hero h1{
    font-size:3.2rem;
    font-weight:700;
    margin-bottom:20px;
    line-height:1.2;
}

/* CORRECTION DU TEXTE INVISIBLE */
.hero p{
    color:#F8F9FA;
    font-weight:500;
    font-size:1.25rem;
    margin-bottom:30px;
}

.hero img{
    max-width:100%;
    max-height:450px;
    animation:float 4s ease-in-out infinite;
}

@keyframes float{

    0%{
        transform:translateY(0px);
    }

    50%{
        transform:translateY(-15px);
    }

    100%{
        transform:translateY(0px);
    }
}

/* =====================================================
   BOUTONS
===================================================== */

.btn{
    border-radius:10px;
    font-weight:600;
    transition:0.3s;
}

.btn-lg{
    padding:14px 32px;
}

.btn-warning:hover{
    transform:translateY(-2px);
}

.btn-outline-light:hover{
    transform:translateY(-2px);
}

/* =====================================================
   SECTIONS
===================================================== */

section{
    padding-top:70px;
    padding-bottom:70px;
}

section h2{
    font-weight:700;
    margin-bottom:15px;
}

section p{
    color:#666;
}

/* =====================================================
   STATISTIQUES
===================================================== */

.bg-light h2{
    font-weight:700;
}

.bg-light p{
    color:#666;
}

/* =====================================================
   ABOUT
===================================================== */

.bi{
    transition:0.3s;
}

.col-md-4:hover .bi{
    transform:scale(1.15);
}

.col-md-4 h4{
    margin-top:15px;
    font-weight:700;
}

/* =====================================================
   CARTES
===================================================== */

.card{
    border:none;
    border-radius:16px;
    overflow:hidden;
    transition:all .3s ease;
}

.card:hover{
    transform:translateY(-8px);
    box-shadow:0 15px 35px rgba(0,0,0,0.15);
}

.card-body{
    padding:30px 20px;
}

.card h5{
    font-weight:700;
    margin-top:10px;
    margin-bottom:10px;
}

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

.cta-section{
    background:linear-gradient(
        135deg,
        #0d6efd,
        #0052cc
    );
    color:white;
}

.cta-section h2{
    margin-bottom:20px;
    font-weight:700;
}

.cta-section p{
    color:#F8F9FA;
}

/* =====================================================
   FORMULAIRES
===================================================== */

.form-control{
    border-radius:10px;
    padding:12px;
}

.form-control:focus{
    box-shadow:none;
    border-color:#0d6efd;
}

.form-label{
    font-weight:600;
}

.auth-card{
    background:#fff;
    border-radius:20px;
    padding:40px;
    box-shadow:0 10px 30px rgba(0,0,0,0.1);
}

/* =====================================================
   DASHBOARD
===================================================== */

.dashboard-card{
    background:white;
    border-radius:15px;
    padding:25px;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
    margin-bottom:20px;
}

.dashboard-card h3{
    font-weight:700;
}

.token-box{
    background:#ffc107;
    color:#000;
    padding:20px;
    border-radius:15px;
    text-align:center;
    font-weight:700;
}

/* =====================================================
   QUIZ
===================================================== */

.quiz-card{
    background:white;
    border-radius:15px;
    padding:25px;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
}

.quiz-question{
    font-size:1.2rem;
    font-weight:600;
    margin-bottom:20px;
}

/* =====================================================
   CLASSEMENT
===================================================== */

.rank-badge{
    width:45px;
    height:45px;
    border-radius:50%;
    background:#0d6efd;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:bold;
}

/* =====================================================
   FOOTER
===================================================== */

footer{
    background:#212529;
}

footer p{
    color:#d1d1d1;
    margin:0;
}

/* =====================================================
   TABLETTE
===================================================== */

@media(max-width:992px){

    .hero{
        text-align:center;
        min-height:auto;
        padding:70px 0;
    }

    .hero h1{
        font-size:2.5rem;
    }

    .hero img{
        margin-top:40px;
        max-height:320px;
    }
}

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

@media(max-width:768px){

    .hero h1{
        font-size:2rem;
    }

    .hero p{
        font-size:1.05rem;
    }

    .btn-lg{
        width:100%;
        margin-bottom:10px;
    }

    section{
        padding-top:50px;
        padding-bottom:50px;
    }

    .auth-card{
        padding:25px;
    }
}

/* =====================================================
   PETITS SMARTPHONES
===================================================== */

@media(max-width:480px){

    .navbar-brand{
        font-size:1.1rem;
    }

    .hero h1{
        font-size:1.7rem;
    }

    .hero p{
        font-size:1rem;
    }

    .card-body{
        padding:20px;
    }
}