/* 
 * Styles communs pour toutes les pages
 * FavorisWeb.net
 */

/* Reset et base - NE PAS toucher au body global pour ne pas casser le design existant */
.form-container *,
.reset-container *,
.centered-container * {
    box-sizing: border-box;
}

/* Conteneurs centrés */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.centered-container {
    max-width: 500px;
    margin: 100px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Titres - SEULEMENT dans les conteneurs spécifiques */
.form-container h1,
.reset-container h1,
.centered-container h1 {
    margin-top: 0;
    color: #3b598a;
    font-size: 24px;
}

.form-container h2,
.reset-container h2,
.centered-container h2 {
    color: #3b598a;
    font-size: 20px;
}

/* Messages */
.message {
    padding: 10px;
    margin: 15px 0;
    border-radius: 4px;
    border: 1px solid;
}

.error {
    background: #fee;
    border-color: #fcc;
    color: #c00;
}

.success {
    background: #efe;
    border-color: #cfc;
    color: #060;
}

.warning {
    background: #ffc;
    border-color: #fc6;
    color: #840;
}

.info {
    background: #eff;
    border-color: #cff;
    color: #046;
}

/* Formulaires - SEULEMENT pour les conteneurs avec classe .form-container ou .reset-container */
.form-container label,
.reset-container label,
.centered-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-container input[type="text"],
.form-container input[type="email"],
.form-container input[type="password"],
.reset-container input[type="text"],
.reset-container input[type="email"],
.reset-container input[type="password"],
.centered-container input[type="text"],
.centered-container input[type="email"],
.centered-container input[type="password"] {
    width: 100%;
    padding: 8px 12px;
    margin: 5px 0 15px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-container input[type="text"]:focus,
.form-container input[type="email"]:focus,
.form-container input[type="password"]:focus,
.reset-container input[type="text"]:focus,
.reset-container input[type="email"]:focus,
.reset-container input[type="password"]:focus,
.centered-container input[type="text"]:focus,
.centered-container input[type="email"]:focus,
.centered-container input[type="password"]:focus {
    outline: none;
    border-color: #3b598a;
    box-shadow: 0 0 0 2px rgba(59, 89, 138, 0.1);
}

/* Boutons - SEULEMENT avec classe .btn */
.btn {
    background: #3b598a;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: #2d4570;
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: #28a745;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

/* Liens - SEULEMENT dans les conteneurs spécifiques */
.form-container a,
.reset-container a,
.centered-container a {
    color: #3b598a;
    text-decoration: none;
    transition: color 0.3s;
}

.form-container a:hover,
.reset-container a:hover,
.centered-container a:hover {
    color: #2d4570;
    text-decoration: underline;
}

.back-link {
    margin-top: 20px;
    text-align: center;
}

/* Utilitaires */
.text-center {
    text-align: center;
}

/* Marges */
.mt-2 { margin-top: 2px; }
.mt-3 { margin-top: 3px; }
.mt-4 { margin-top: 4px; }
.mt-5 { margin-top: 5px; }
.mt-6 { margin-top: 6px; }
.mt-10 { margin-top: 10px; }
.mt-18 { margin-top: 18px; }
.mt-20 { margin-top: 20px; }
.mt-25 { margin-top: 25px; }
.mt-30 { margin-top: 30px; }

.mb-2 { margin-bottom: 2px; }
.mb-4 { margin-bottom: 4px; }
.mb-5 { margin-bottom: 5px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.ml-20 { margin-left: 20px; }
.mr-5 { margin-right: 5px; }

/* Padding */
.p-10 { padding: 10px; }
.p-20 { padding: 20px; }
.p-30 { padding: 30px; }

.pr-5 { padding-right: 5px; }

/* Marges mixtes */
.mt-10-mb-5 { margin: 10px 0 5px 0; }

/* Hauteurs */
.h-54 { height: 54px; }

/* Largeurs */
.w-10 { width: 10px; }
.w-90 { width: 90px; }
.w-100 { width: 100%; }
.w-104 { width: 104px; }
.w-200 { width: 200px; }
.w-208 { width: 208px; }
.w-210 { width: 210px; }
.w-263 { width: 263px; }
.w-300 { width: 300px; }

