/* Reset et polices */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Urbanist', sans-serif;
    background-color: #F9EFE7;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
nav {
    background-color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-left {
    display: flex;
}

.nav-right {
    display: flex;
    gap: 1rem;
}

nav a {
    text-decoration: none;
    color: #361349;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

nav a:hover {
    color: #BF8DB8;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    width: calc(100% - 2rem);
    height: 2px;
    background: #BF8DB8;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

nav a:hover::after {
    transform: scaleX(1);
}

/* Boutons connexion/inscription */
.btn-login, .btn-signup {
    border-radius: 20px;
    transition: all 0.3s ease;
}

.btn-login {
    border: 2px solid #361349;
    color: #361349;
}

.btn-signup {
    background: #BF8DB8;
    color: white;
}

.btn-login:hover {
    background-color: #361349;
    color: white;
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}



img {
     display: block;
    margin: 2rem auto;
    max-width: 300px; /* Ajuste selon tes besoins */
    width: 100%;
    height: auto;
}



/* Contenu principal */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.content {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.content::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(110, 69, 226, 0.05) 0%, rgba(137, 212, 207, 0.05) 100%);
    z-index: 0;
}

.content > * {
    position: relative;
    z-index: 1;
}

h2 {
    font-family: 'Poppins', serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #361349;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: #BF8DB8;
    border-radius: 2px;
}

p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: #555;
    max-width: 800px;
}

/* Pied de page */
footer {
    background: linear-gradient(135deg, #333 0%, #111 100%);
    color: white;
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 3rem;
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #BF8DB8;
}

footer p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Effets spéciaux */
.content {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem;
    }
    
    .nav-left, .nav-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    nav a {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .content {
        padding: 2rem 1.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .header-image img {
        max-width: 150px;
    }
}

/* Formulaires */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 400;
    color: #361349;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Urbanist', sans-serif;
    font-size: 1rem;
    transition: border 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #BF8DB8;
    box-shadow: 0 0 0 2px rgba(191, 141, 184, 0.2);
}

button[type="submit"] {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 20px;
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.user-info {
    padding: 16px 20px; /* Augmentation du padding */
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 8px; /* Marge augmentée */
    background-color: #f9f9f9; /* Fond légèrement différencié */
    border-radius: 8px 8px 0 0; /* Coins arrondis seulement en haut */
}

.user-email {
    color: #361349;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
    padding: 8px 12px; /* Padding interne ajouté */
    word-break: break-word;
    background-color: white; /* Fond blanc */
    border-radius: 6px; /* Légers coins arrondis */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Très légère ombre */
    display: inline-block; /* Pour que le padding/border-radius s'applique */
    max-width: 100%;
    box-sizing: border-box;
    line-height: 1.5;
    border: 1px solid #eee; /* Bordure très subtile */
}

/* Menu déroulant */
.dropdown {
    position: relative;
    display: inline-block;
}

.btn-account {
    background: #361349;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-account:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1;
    overflow: hidden;
}

.dropdown-content a {
    color: #361349;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background-color: #361349;
    color: white;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Bouton thème */
.btn-theme {
    background: transparent;
    border: 2px solid #BF8DB8;
    color: #BF8DB8;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-right: 1rem;
}

.btn-theme:hover {
    background: #BF8DB8;
    color: white;
}

.theme-toggle-container {
    display: inline-block;
    position: relative;
    margin-right: 15px;
}

.toggleCheckbox {
    display: none;
}

.toggleLabel {
    display: flex;
    align-items: center;
    cursor: pointer;
    background: #e0e0e0;
    border-radius: 50px;
    padding: 5px;
    width: 140px;
    height: 34px;
    position: relative;
    transition: background 0.3s;
}

.toggleCheckbox:checked + .toggleLabel {
    background: #333;
}

.toggle-slider {
    position: absolute;
    width: 60px;
    height: 28px;
    background: white;
    border-radius: 50px;
    left: 5px;
    transition: transform 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.toggleCheckbox:checked + .toggleLabel .toggle-slider {
    transform: translateX(70px);
}

.light-text, .dark-text {
    width: 65px;
    text-align: center;
    font-size: 10px;
    z-index: 1;
    color: #666;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.toggleCheckbox:checked + .toggleLabel .light-text {
    color: #aaa;
}

.toggleCheckbox:not(:checked) + .toggleLabel .dark-text {
    color: #aaa;
}

.fa-sun, .fa-moon {
    font-size: 11px;
}