*{
    margin: 0;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Arial', sans-serif;
    padding:0;
    background:#f9f9f9;
    color:#333;
}

a {
    text-decoration:none;
}

h1,h2,h3,p {
    padding:0;
}

main {
    flex: 1;
}

/* HEADER */
header {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 20px;
    background: #2c3e50;
    color:#fff;
    position:relative;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    gap: 8px; 
}

.logo a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 2em; /* légèrement plus grand que le texte */
    width: auto;
    padding-right: 10px;
}
nav {
    display:flex;
    gap:20px;
}

nav a {
    color:#fff;
    font-weight:bold;
}

.menu-toggle {
    display:none;
    font-size:30px;
    cursor:pointer;
}

/* HERO */
.hero {
    text-align:center;
    padding:100px 20px;
    background: #D1B200;
    color:#fff;
}

.hero h1 {
    font-size:48px;
    margin-bottom:20px;
}

.hero p {
    font-size:20px;
    margin-bottom:30px;
}

.btn {
    background:#fff;
    color:#3498db;
    padding:15px 30px;
    font-weight:bold;
    border-radius:5px;
    display:inline-block;
}

 /* FEATURES */
.features {
    display:flex;
    justify-content:center;
    margin:50px 20px; gap:30px;
    flex-wrap:wrap;
}

.feature {
    background:#fff;
    padding:30px;
    border-radius:10px;
    width:250px;
    text-align:center;
    box-shadow:0 4px 10px rgba(0,0,0,0.1);
    margin-bottom:20px;
}

.feature h3 {
    margin-bottom:15px;
}

/* FOOTER */
footer {
    background: #2c3e50;
    color: #fff;
    padding: 25px 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 400;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #3498db;
}

.socials {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #fff;
    color: #2c3e50;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.2s, color 0.2s;
}

.social-icon:hover {
    background: #3498db;
    color: #fff;
}

/* MEDIA QUERIES MOBILE */

@media (max-width: 768px) {
    header {
        flex-direction:row;
        padding:15px 20px;
    }

    .menu-toggle {
        display:block;
        color:#fff;
    }

    nav {
        display:none;
        flex-direction:column;
        position:absolute;
        top:70px;
        right:20px;
        background:#2c3e50;
        padding:20px;
        border-radius:5px;
        z-index:1000;
    }

    nav.show {
        display:flex;
    }

    .hero {
        padding:60px 20px;
    }

    .hero h1 {
        font-size:32px;
    }

    .hero p {
        font-size:16px;
    }

    .btn {
        padding:12px 25px;
        font-size:16px;
    }

    .features {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        margin: 50px 0;
    }

    .feature {
        width: 90%;
        max-width: 300px;
        margin: 0 auto;
    }

    #log_contener {
        width: 95%;
        padding: 30px 20px;
    }

    .tab-header .tab {
        padding: 10px 0;
        font-size: 14px;
    }

    .input-group input {
        padding: 12px;
        font-size: 14px;
    }

    .choix-btn {
        padding: 12px;
        font-size: 14px;
    }
}

/* PAGE LOG */
.page-login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    background: #f0f2f5;
    padding: 20px;
}

#log_contener {
    background: #fff;
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Onglets Connexion / Inscription */
.tab-header {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 30px;
    border-bottom: 2px solid #ddd;
}

.tab-header .tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    cursor: pointer;
    font-weight: bold;
    color: #555;
    transition: 0.3s;
    border-bottom: 3px solid transparent;
}

.tab-header .tab:hover {
    color: #3498db;
}

.tab-header .tab.active {
    color: #3498db;
    border-bottom: 3px solid #3498db;
}

/* Formulaires */
.form_container {
    width: 100%;
}

.form_container form {
    display: none; /* tous cachés par défaut */
    flex-direction: column;
    gap: 20px;
}

.form_container form.active {
    display: flex; /* seul le formulaire actif */
}

.input-group {
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: #3498db;
}

.input-group label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    background: #fff;
    padding: 0 5px;
    color: #999;
    font-size: 13px;
    pointer-events: none;
    transition: 0.2s;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: -8px;
    left: 8px;
    font-size: 12px;
    color: #3498db;
}

/* Boutons */
.choix-btn {
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #3498db;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.choix-btn:hover {
    background: #2980b9;
}

/* Lien mot de passe oublié */
.forgot-password {
    text-align: right;
}

.forgot-password a {
    color: #3498db;
    font-size: 13px;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}
