/* CSS pour Marc Le Coq */
/* Polices et Couleurs */

:root {
    /*principal*/
    --primary-color: #D4AF37;
    --secondary-color: #62FE52;
    --thirdy-color: #E0E0E0;

    /*balises h1 h2 h3*/
    --text-color-h1:#E0E0E0;
    --text-color-h2: #62FE52; 
    --text-color-h3: #D4AF37;

    /*text*/
    --text-color-p1: #C0C0C0;
    --text-color-p3: #808080;
    --text-color-p2: #D4AF37;

    --background-color: #121212;
    --surface-color:#808080;

}

/*logo*/
.logo img {
    height: 77px;
    width: auto;
    display: block;
}

#logo-title {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1.06rem;
    font-weight: bold
}


/* En-tête et Navigation */
#header {
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); 
    border: 1px solid var(--primary-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.06rem;
    font-weight: bold
}


.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1.11rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}


/*body*/
#header {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('/assets/images/hero-bg.webp') no-repeat center center/cover;
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    line-height: 1.6;
}


a {
    text-decoration: none;
    color: var(--secondary-color); 
}

a:hover,
a.active {
    color: var(--primary-color) ;
    text-decoration: underline;
    font-weight: bold;
    font-size:larger;
}


h1 {
    font-size: clamp(1.1rem, 3vw, 1.8rem);
    margin-bottom: 1rem;
    color: var(--thirdy-color);
    text-align: center;      
    font-weight: 700;
}




/* Hero Section */
#hero {
    max-width: 100%;
    display:block;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.fdhero-container p {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    margin-left: clamp(5%, 10vw, 10%);
    margin-right: clamp(5%, 10vw, 10%);
    color: var(--primary-color);
}


.hero-container {
    max-width: 800px;
    margin: 3rem auto;   /* ← CENTRAGE */
    padding: 2rem 3rem;
    background-color: var(--background-color);
    border-radius: 8px;
    border: 1px solid var(--secondary-color);

    /* ✨ la clé */
    box-sizing: border-box;
    width: calc(100% - 40px);
}


.hero-text {
    text-align: left;
    text-align: start;
}

.book {
    text-align: center;
    margin-top: 45px;
}

.book img {
    max-width: 100%;
    height: auto; 
}



/*Button file upload*/
.file-upload-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    margin-top: 10px;
}

.file-upload-btn {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: var(--background-color);
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 20px;
}

.file-upload-btn:hover {
    background-color: var(--background-color);
    color: var(--text-color-h1);
    border: 2px solid var(--text-color-h2);
}


/*Button*/
.cta-button {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--background-color);
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bolder;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    background-color: var(--text-hover);
    /* Or plus brillant */
    color: var(--secondary-color);
}

/* Sections de Contenu */
.content-section {
    padding: 4rem 10%;
    text-align: center;
}

.content-section h2 {
    font-size: 2.22rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.content-section p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    color: var(--text-secondary);
}

/* Grille des leçons */
.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.lesson-card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 3px solid var(--primary-color);
}

.lesson-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

.lesson-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Section Pouvoirs */
#powers ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

#powers li {
    background: var(--surface-color);
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    font-weight: 500;
}

/* Section CTA */
.cta-section {
    background-color: var(--surface-color);
}

/* Pied de page */
footer {
    text-align: center;
    color:var(--thirdy-color);
    padding: 2rem 5%;
    background: var(--background-color);
}

.footer-content p {
    margin: 0;
    color: var(--thirdy-color);
}


.social-links a {
    color: var(--secondary-color);
    text-decoration: none;
    margin: 0 0.5rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.-links a {
    color: var(--secondary-color);
    text-decoration: none;
    margin: 0 0.5rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}



.social-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Responsive (Menu Burger) */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px;
    transition: all 0.3s ease;
}


@media screen and (max-width: 768px) { 
    .nav-links {
        position: fixed;
        right: 0;
        top: 8vh;
        background-color: var(--surface-color);
        flex-direction: column;
        align-items: center;
        width: 50%;
        height: 92vh;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }

    .nav-links li {
        opacity: 0;
        margin: 2rem 0;
    }

    .nav-links a {
        color: var(--primary-color);
        text-decoration: none;
        font-size: 1.5rem;
        transition: color 0.3s ease;
    }

    .nav-links li,a:hover {
        color: var(--primary-color);
    }   

    .burger {
        display: block;
    }

    .nav-active {
        transform: translateX(0%);
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }

        to {
            opacity: 1;
            transform: translateX(0px);
        }
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

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

    .hero-container p {
        font-size: 1.2rem;
    }

    .content-section {
        padding: 3rem 5%;
    }
}



/*css lang*/
.lang-menu {
    position: relative;
    display: inline-block;
    font-family: Arial, sans-serif;
}

.lang-btn {
    color: var(--secondary-color);
    background-color: var(--background-color);
    cursor: pointer;
    border-radius: 0.2rem;
    padding: 0.2rem 0.2rem 0.3rem 0.2rem;
    color: var(--primary-color);
}

.lang-flag {
    vertical-align: middle;
}


.lang-list {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    background: var(--text-color);
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 160px;
    z-index: 1000;
}

.lang-list li {
    color: var(--thirdy-color);
    padding: 0.2rem 0.2rem 0.2rem 0.2rem;
    cursor: pointer;
    ;
}



.lang-list li:hover {
    background: var(--primary-color);
}

.flag {
    width: 20px;
    height: 14px;
    margin-right: 8px;
    vertical-align: middle;
}

/*contactForm*/
.contact-txt {
    width: 100%;
    box-sizing: border-box;
    /* Ensures padding and border are included in the width */
    margin-bottom: 1.66em;
}

.contact-label {
    margin-top: 1em;
    color:var(--secondary-color);
}

/*page police confidentialité - CONTACT ETC.*/
.normal-container {
    max-width: 800px;
    margin: 3rem auto;   /* ← CENTRAGE */
    padding: 2rem 3rem;
    background-color: var(--background-color);
    border-radius: 8px;
    border: 1px solid var(--secondary-color);

    /* ✨ la clé */
    box-sizing: border-box;
    width: calc(100% - 40px);


}


.normal-container h1 {
    color: var(--text-color-h1);
}

.normal-container h2 {
    color: var(--text-color-h2);
    margin-top: 0rem;
    margin-bottom: 0rem;
    text-align: center;
    padding-bottom: 1rem;
}

.normal-container h3 {
    color: var(--text-color-h3);    
}

.normal-container li,p {
    color: var(--text-color-p1);
    margin-bottom: 0rem;
    margin-top: 0rem;

}


.normal-container a {
    color: var(--secondary-color);
    text-decoration: none;
}

.normal-container a:hover {
    text-decoration: underline;
}

.normal-container ul {
    padding-left: 20px;
}

.normal-container li {
    margin-bottom: 0.5rem;
}


#captchaQuestion{
    color: var(--primary-color);
}

.home-link {
    display: block;
    text-align: center;
    margin-top: 2rem;
    font-weight: bold;
}

