/* --- BASE --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

/* --- NAVIGATION --- */
header {
    background: #fff;
    padding: 1rem 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px; /* Taille fixe pour éviter les bugs */
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li { margin-left: 25px; }

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: 0.3s;
}

nav ul li a:hover { color: #6a0dad; }

/* --- SECTIONS --- */
.hero {
    padding: 100px 5%;
    background-color: #f9f9f9;
}

.hero h1 { font-size: 3rem; margin-bottom: 1rem; }

.btn {
    background: #333;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    display: inline-block;
}

.services {
    display: flex;
    gap: 20px;
    padding: 50px 5%;
    flex-wrap: wrap;
    background-color: #EAF6FB;
}

.service-card {
    flex: 1;
    min-width: 300px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.service-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* --- CONTACT --- */
.contact-section {
    padding: 60px 5%;
    background: #1a252f;
    color: #fff;
    text-align: center;
}

.social-links a {
    color: #fff;
    font-size: 2rem;
    margin: 0 15px;
}

footer { padding: 20px; text-align: center; font-size: 0.9rem; }

/* --- SECTION INSCRIPTION / CONNEXION --- */
.login-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f7f6; /* Gris très clair pour faire ressortir la carte */
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-card h2 {
    color: #333;
    margin-bottom: 25px;
    font-weight: 700;
}

/* --- FORMULAIRE --- */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box; /* Évite que l'input dépasse de la carte */
}

.form-group input:focus {
    border-color: #6a0dad; /* Violet Dyvio au clic */
    outline: none;
}

/* --- BOUTON --- */
.btn-submit {
    width: 100%;
    padding: 14px;
    background: #6a0dad; /* Violet Dyvio */
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #520a85;
    transform: translateY(-2px);
}

/* --- FOOTER DE LA CARTE --- */
.login-footer {
    margin-top: 25px;
    font-size: 0.9rem;
    color: #777;
}

.login-footer a {
    color: #6a0dad;
    text-decoration: none;
    font-weight: bold;
}

.login-footer a:hover {
    text-decoration: underline;
}