/* ======================================================= */
/* === NOUVEAU CSS POUR L'ACCUEIL (main-centre) === */
/* ======================================================= */

/* ======================================================= */
/* === STYLES GLOBALES POUR LA HAUTEUR TOTALE (index.css ou style.css) === */
/* ======================================================= */

html, body {
    height: 100%; /* S'assure que le corps et l'HTML prennent 100% de la fenêtre */
    margin: 0;
    padding: 0;
}

body {
    display: flex; /* Active Flexbox sur le corps */
    flex-direction: column; /* Organise les enfants (header, main, footer) verticalement */
}

/* ======================================================= */
/* === MISE À JOUR DU .main-content-home === */
/* ======================================================= */

.main-content-home {
    /* Propriété clé : flex-grow: 1 */
    flex-grow: 1; /* Permet à ce conteneur de grandir pour occuper tout l'espace disponible */
    
    /* Les autres styles sont conservés */
    display: flex; 
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: none;
    font-family: Arial, sans-serif;
    
    /* Supprimer : min-height: calc(100vh - 120px); */
    min-height: 0; /* Important si vous voulez éviter les problèmes de débordement avec flex-grow */
}

/* 1. Bloc de message de bienvenue */
.accueil-bienvenue {
    text-align: center;
    margin-bottom: 40px;
}

.bienvenue-titre {
    font-size: 4em; /* Très grand pour un titre d'accueil */
    font-weight: 800;
    color: #495057; /* Gris foncé subtil */
    display: block;
    line-height: 1.1;
}

.bienvenue-soustitre {
    font-size: 1.5em;
    font-weight: 400;
    color: #6c757d;
    display: block;
}

/* 2. Box de Connexion */
.accueil-box-connexion {
    width: 100%;
    max-width: 500px; /* Taille maximale pour la boîte */
    background-color: #ffffff; /* Fond blanc */
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Ombre douce */
    padding: 30px;
    text-align: center;
}

.connexion-texte {
    display: block;
    font-size: 1.1em;
    color: #495057;
    margin-bottom: 25px;
}

/* Style du bouton d'action */
.connexion-bouton-lien {
    text-decoration: none;
    display: block;
}

.connexion-bouton-style {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    /* Couleur vive utilisée pour les actions dans les pages précédentes */
    background-color: #007bff; /* Bleu/Vert vif */
    color: white;
    font-weight: bold;
    border-radius: 8px;
    font-size: 1em;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.1s ease;
    border: none;
    cursor: pointer;
}

.connexion-bouton-style i {
    margin-left: 10px;
}

/* Effet de survol */
.connexion-bouton-style:hover {
    background-color: #0056b3; /* Bleu plus foncé au survol */
    transform: translateY(-1px); /* Léger effet de soulèvement */
}

.connexion-bouton-style:active {
    transform: translateY(0); /* Pression */
}

