/*
|--------------------------------------------------------------------------
| Styles Généraux (Base)
|--------------------------------------------------------------------------
|
| Styles de base pour le corps de la page et les sélections de texte.
|
*/
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    background-color: #f8fafc;
    color: #374151;
    line-height: 1.6;
    margin: 0;
}

::selection {
    background-color: #bfdbfe;
    color: #1f2937;
}

/*
|--------------------------------------------------------------------------
| Conteneurs et Layouts
|--------------------------------------------------------------------------
|
| Styles pour les conteneurs principaux et les cartes réutilisables.
|
*/
.container-styled {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.card-styled {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    padding: 2rem;
    margin-bottom: 2rem;
}

/*
|--------------------------------------------------------------------------
| Typographie
|--------------------------------------------------------------------------
|
| Styles pour les titres, paragraphes et liens.
|
*/

.styled-heading {
    color: #111827;
    margin-top: 0.7rem; /* Un peu plus d'espace au-dessus */
    margin-bottom: 1rem;
    line-height: 1.25;
    position: relative; /* Prépare l'ajout d'éléments pseudo */
    padding-bottom: 0.5rem; /* Espace pour le soulignement */
    font-weight: 700;
    font-size: 1.75rem;
}

h1::after,
h2::after {
    content: "";
    display: block;
    width: 100%; /* Largeur du trait */
    height: 4px; /* Épaisseur du trait */
    background-color: #2563eb; /* Couleur bleue de votre charte */
    position: absolute;
    bottom: 0;
    left: 0;
    border-radius: 9999px; /* Pour un effet arrondi */
}

p {
    margin-bottom: 1rem;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s, text-decoration 0.2s;
}

a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/*
|--------------------------------------------------------------------------
| Boutons
|--------------------------------------------------------------------------
|
| Styles pour les boutons principaux et secondaires.
|
*/
.btn-styled {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-styled:hover {
    background: #1d4ed8;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-styled:active {
    background: #1e40af;
    transform: translateY(0);
}

.btn-styled.btn-secondary {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #d1d5db;
    box-shadow: none;
}

.btn-styled.btn-secondary:hover {
    background: #e5e7eb;
    color: #374151;
}
/*
|--------------------------------------------------------------------------
| Alertes et Messages
|--------------------------------------------------------------------------
|
| Styles pour afficher des messages de succès, d'erreur, ou d'information.
|
*/
.alert-styled {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #34d399;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #f87171;
}

.alert-info {
    background-color: #e0f2fe;
    color: #0c4a6e;
    border: 1px solid #60a5fa;
}

/*
|--------------------------------------------------------------------------
| Badges et Étiquettes
|--------------------------------------------------------------------------
|
| Styles pour de petites étiquettes réutilisables.
|
*/
.badge-styled {
    display: inline-block;
    padding: 0.25em 0.75em;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 9999px; /* Pour des badges bien arrondis */
}

.badge-blue {
    background-color: #2563eb;
    color: #eff6ff;
}

.badge-green {
    background-color: #10b981;
    color: #ecfdf5;
}

.badge-red {
    background-color: #ef4444;
    color: #fef2f2;
}
