/* Réinitialisation de base */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7fa; /* Arrière-plan clair */
    background-image: url('texture_fond.jpg');
    background-size:cover; /* Assure que l'image couvre tout le conteneur */
    color: #333;
}

/* En-tête */
header {
    background-color: #ff9a3c; /* Bleu primaire */
    color: rgb(122, 8, 8);
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin-top: 0;
    font-size: 2.5em;
}

/* Conteneur principal */
.container {
    max-width: 1200px;
    max-height: 2000px;
    margin-bottom:400px;
    padding-top:40px;
    border-radius: 15px;
    padding: 0 20px;
    margin-left: auto;
    margin-right: auto;
}

h2 {
    color: #ee8625;
    background-color: rgb(122, 8, 8);
    border-radius: 15px;
    padding-block-end: 5px;
    padding-left: 10px;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* Groupe de cartes (Grille) */
.card-group {
    display: grid;
    /* Crée une grille de colonnes qui s'ajustent */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Style d'une seule carte (lien de serveur) */
.card {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card h3 {
    color: #312e2e;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.card p {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 20px;
}


/* Bouton d'accès */
.button {
    display: inline-block;
    background-color: rgb(122, 8, 8); 
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 15px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #ff0000;
}

/* Pied de page */
footer {
    text-align: center;
    padding: 20px;
    background-color: #e9ecef;
    color: #6c757d;
    margin-top: 40px;
    font-size: 0.85em;
}

/* Ligne de séparation */
hr {
    border: 0;
    height: 1px;
    background: #e9ecef;
    margin: 40px 0;
}
.logo {
    position: absolute;
     width: 15%;
     margin-left: 24px;
     margin-top: 24px;


}
.card-logo {
    display: block;
    width: 60%;
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    /* Pas besoin de display: block ou de marges automatiques ici */
}