/* --- Styles Généraux et Réinitialisations (pour la page de profil) --- */
body {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif; /* Police moderne et lisible */
    background-color: #0A0A0A; /* Noir très profond pour le fond principal */
    margin: 0;
    padding: 0;
    color: #E0E0E0; /* Blanc cassé pour le texte par défaut sur fond sombre */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased; /* Lissage des polices */
    -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after {
    box-sizing: border-box; /* S'assure que padding et border sont inclus dans la largeur/hauteur */
}

input, button {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

/* --- Conteneur Principal du Profil --- */
.profile-container {
    background: linear-gradient(135deg, #1C1C1E 0%, #111111 100%); /* Dégradé subtil pour le fond du conteneur */
    padding: 30px; /* Plus de padding pour un look premium */
    border-radius: 12px; /* Coins plus arrondis */
    max-width: 450px; /* Largeur légèrement augmentée */
    margin: 50px auto; /* Centre le conteneur avec une marge supérieure */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5); /* Ombre profonde pour l'élévation */
    border: 1px solid #282828; /* Bordure douce */
    text-align: center; /* Centre le contenu comme l'image de profil et les titres */
}

.profile-container h2 {
    color: #FFFFFF; /* Blanc pur pour le titre */
    font-size: 2.2em; /* Titre plus grand */
    font-weight: 700;
    margin-bottom: 25px; /* Plus d'espace sous le titre */
    letter-spacing: -0.5px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.profile-container img {
    width: 130px; /* Image de profil légèrement plus grande */
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px; /* Plus d'espace sous l'image */
    border: 4px solid #2E8B57; /* Bordure Kinema+ Green pour l'avatar */
    box-shadow: 0 0 0 6px rgba(46, 139, 87, 0.2); /* Lueur subtile autour de l'avatar */
    transition: all 0.3s ease;
}
.profile-container img:hover {
    transform: scale(1.03); /* Léger zoom au survol */
    box-shadow: 0 0 0 8px rgba(46, 139, 87, 0.3); /* Lueur plus prononcée */
}

/* --- Champs de Formulaire (Inputs) --- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"] {
    width: 100%;
    padding: 12px 15px; /* Plus de padding, à l'horizontale aussi */
    margin-bottom: 15px; /* Plus d'espace entre les champs */
    border-radius: 8px; /* Coins plus arrondis */
    border: 1px solid #333333; /* Bordure sombre */
    background-color: #1A1A1A; /* Fond sombre */
    color: #E0E0E0; /* Texte blanc cassé */
    font-size: 1em;
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.2); /* Ombre intérieure subtile */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="file"]:focus {
    outline: none; /* Supprime le contour par défaut du navigateur */
    border-color: #2E8B57; /* Bordure Kinema+ Green au focus */
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(46, 139, 87, 0.3); /* Lueur verte */
}

/* Style spécifique pour le bouton de sélection de fichier */
input[type="file"]::file-selector-button {
    background-color: #2E8B57; /* Couleur Kinema+ Green pour le bouton de sélection */
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s ease;
}
input[type="file"]::file-selector-button:hover {
    background-color: #246B44; /* Vert plus foncé au survol */
}

/* --- Boutons d'Action --- */
button {
    padding: 14px; /* Plus de padding pour le bouton */
    border: none;
    border-radius: 25px; /* Très arrondi pour un look moderne */
    background-color: #2E8B57; /* Vert Kinema+ */
    color: #fff;
    cursor: pointer;
    width: 100%;
    margin-top: 20px; /* Plus d'espace au-dessus du bouton */
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease; /* Transition pour tous les changements */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Ombre subtile */
}

button:hover {
    background-color: #246B44; /* Vert plus foncé au survol */
    transform: translateY(-2px); /* Léger soulèvement */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4) inset; /* Ombre intérieure au clic */
    background-color: #1A5432;
}

/* Styles pour les messages d'information/erreur/avertissement (si utilisés sur cette page) */
.message {
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: bold;
    font-size: 1em;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.message.error {
    background-color: #A92C3D;
    color: #FFC0CB;
    border: 1px solid #7E202E;
}

.message.success {
    background-color: #2E8B57;
    color: #E6FFEC;
    border: 1px solid #246B44;
}

.message.info {
    background-color: #1A4E72;
    color: #DDEEFF;
    border: 1px solid #143F5A;
}

.message.warning {
    background-color: #6A5B1D;
    color: #FFFACD;
    border: 1px solid #504414;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .profile-container {
        padding: 25px;
        margin: 30px auto;
        border-radius: 10px;
    }
    .profile-container h2 {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .profile-container img {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
        border: 3px solid #2E8B57;
        box-shadow: 0 0 0 5px rgba(46, 139, 87, 0.2);
    }
    input[type="text"], input[type="email"], input[type="password"], input[type="file"] {
        padding: 10px 12px;
        margin-bottom: 12px;
        border-radius: 6px;
    }
    input[type="file"]::file-selector-button {
        padding: 6px 12px;
        font-size: 0.85em;
    }
    button {
        padding: 12px;
        font-size: 1em;
        margin-top: 15px;
        border-radius: 20px;
    }
    .message {
        padding: 12px;
        font-size: 0.95em;
        margin-top: 15px;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .profile-container {
        padding: 20px;
        margin: 20px 10px; /* Marges latérales sur très petits écrans */
        border-radius: 8px;
    }
    .profile-container h2 {
        font-size: 1.6em;
        margin-bottom: 15px;
    }
    .profile-container img {
        width: 90px;
        height: 90px;
        margin-bottom: 10px;
        border: 3px solid #2E8B57;
        box-shadow: 0 0 0 4px rgba(46, 139, 87, 0.2);
    }
    input[type="text"], input[type="email"], input[type="password"], input[type="file"] {
        padding: 8px 10px;
        margin-bottom: 10px;
        font-size: 0.95em;
        border-radius: 5px;
    }
    input[type="file"]::file-selector-button {
        padding: 5px 10px;
        font-size: 0.8em;
    }
    button {
        padding: 10px;
        font-size: 0.95em;
        margin-top: 10px;
        border-radius: 20px;
    }
    .message {
        padding: 10px;
        font-size: 0.9em;
        margin-top: 10px;
        border-radius: 5px;
    }
}
