/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.desktop-header {
    display: none;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    height: 60px;
}

.logo-desktop img {
    height: 25px;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.user-icon {
    font-size: 24px;
    color: #333;
}

/* Contenu principal */
.container {
    flex: 1;
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Section de connexion */
.login-section {
    padding: 20px 15px 10px;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.logo-mobile {
    text-align: center;
    padding: 15px 0;
}

.logo-mobile img {
    height: 30px;
}

.welcome-text {
    margin-bottom: 15px;
}

.welcome-text h1 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.welcome-text p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Formulaire */
.login-form {
    margin-bottom: 15px;
}

.form-group {
    position: relative;
    margin-bottom: 12px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 15px;
}

.form-group .icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    cursor: pointer;
}

.forgot-password {
    margin-bottom: 15px;
}

.forgot-password a {
    font-size: 13px;
    color: #666;
    text-decoration: none;
}

.btn-login {
    width: 100%;
    background-color: #e00;
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-login:hover {
    background-color: #c00;
}

/* Liens d'aide */
.help-links {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.help-link {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
}

.help-icon {
    color: #777;
    margin-right: 10px;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.help-text {
    font-size: 14px;
    color: #555;
}

/* Section image */
.hero-section {
    order: -1;
}

.hero-img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Footer */
.site-footer {
    background-color: #333;
    color: #fff;
    padding: 20px 15px;
    margin-top: auto; /* Garde le footer en bas */
    width: 100%;
}

.social-section {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.social-section h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.social-section p {
    font-size: 13px;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto 15px;
    line-height: 1.4;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-logo img {
    height: 25px;
    filter: brightness(0) invert(1);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 15px auto 0;
}

.footer-column {
    width: 100%;
    margin-bottom: 20px;
}

.footer-column h3 {
    font-size: 15px;
    margin-bottom: 10px;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #bbb;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #fff;
}

/* Styles Desktop */
@media (min-width: 769px) {
    .desktop-header {
        display: block;
    }

    .content-wrapper {
        flex-direction: row;
        max-width: 1200px;
        margin: 60px auto 0;
        min-height: calc(100vh - 60px - 150px);
    }

    .login-section {
        width: 45%;
        padding: 40px;
        margin: 0;
    }

    .logo-mobile {
        display: none;
    }

    .hero-section {
        width: 55%;
        order: 1;
    }

    .hero-img {
        height: 100%;
        max-height: none;
        object-position: right;
    }

    .welcome-text h1 {
        font-size: 28px;
    }

    .welcome-text p {
        font-size: 16px;
    }

    .footer-column {
        width: 22%;
    }
}

/* Styles Mobile spécifiques */
@media (max-width: 768px) {
    .logo-mobile {
        display: block;
    }
    
    .welcome-text {
        text-align: center;
    }
    
    .login-section {
        padding: 20px 15px 10px;
    }
    
    .site-footer {
        padding: 20px 15px;
    }
    
    .social-section {
        padding-bottom: 15px;
    }
    
    .footer-links {
        margin: 5px auto 0;
    }
    
    .footer-column {
        width: 100%;
        padding: 0;
        margin-bottom: 15px;
    }
    
    .footer-column h3 {
        margin-bottom: 8px;
        font-size: 14px;
    }
    
    .footer-column li {
        margin-bottom: 5px;
    }
    
    .footer-column a {
        font-size: 12px;
    }
    
    .social-section p {
        padding: 0 5px;
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .social-section h2 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .social-icons {
        margin-bottom: 15px;
    }
}