/* ===== POLICES ===== */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;700&family=Righteous&display=swap');

/* ===== RESET CSS ===== */
html, body, div, span, h1, h2, h3, h4, h5, h6, p, a, ul, li, table, th, td {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    vertical-align: baseline;
    font-family: 'Ubuntu', Arial, sans-serif;
}

body {
    width: 100%;
    margin: auto;
    padding: 0;
    line-height: 1.1em;
    font-size: 0.9em;
    color: #646464;
    background-color: #f5f5f5;
}

/* ===== EN-TÊTE ET BANDEAU ===== */
#home {
    position: relative;
    float: left;
    width: 50px;
    height: 50px;
    top: 80px;
    left: 20px;
    z-index: 10;
    background: url("img/home.png") no-repeat;
    background-size: 40px;
}

#titre_extranet_coll {
    position: relative;
    height: 30px;
    text-align: center;
    font-size: 1.5em;
    text-align: left;
    z-index: 10;
    color: #000;
    padding-top: 30px;
    text-transform: uppercase;
    margin-left: 200px;
}

#bandeau {
    position: relative;
    float: left;
    width: 420px;
    height: 130px;
    margin: 10px 0 0 200px;
    z-index: 100;
    background: url("img/CDG38_Logo_tetiere.svg") no-repeat;
}

/* ===== TITRES DES 4 COLONNES ===== */
.wrapper_titre {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 20px auto;
    width: 90%;
    background: #000;
}

.extranet_menu {
    padding: 10px 0;
    text-align: center;
    font-family: 'Righteous', sans-serif;
    font-size: 1em;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    font-weight: 900;
    color: #fff;
    position: relative;
    border-right: 1px solid #fff;
}

.menu1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(0,144,179,1) 100%);
}

.menu2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, rgba(96,6,69,1) 0%, rgba(151,10,109,1) 100%);
}

.menu3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, rgba(186,105,0,1) 0%, rgba(242,137,2,1) 100%);
}

.menu4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, rgba(90,119,38,1) 0%, rgba(152,200,65,1) 100%);
}

/* ===== CARTES PAR COLONNE ===== */
.cartes_container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
    width: 90%;
    margin: 0 auto;
}

.colonne_carte {
    display: grid;
	align-content: start;
	grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}


.carte {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    height: 150px; /* Hauteur fixe */
    width: 100%; /* Largeur à 100% de la colonne */
}

.carte:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.carte a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.carte_contenu {
    display: flex;
    flex-direction: column; /* Alignement horizontal */
    align-items: center; /* Centrage vertical */
	justify-content: space-between;
    height: 80%;
    padding: 10px;
    gap: 2px; /* Espace entre le titre et l'icône */
}

.carte_titre {
    font-weight: bold;
    font-size: 0.9em;
    text-align: left; /* Alignement à gauche */
    color: #333;
    min-width: 0; /* Évite le débordement */
}

.carte_icone {
    display: flex;
    align-items: center;
    justify-content: center;    
}

.carte_icone img {
    max-width: 65px; /* Taille réduite pour l'icône */
    max-height: 65px;
}

/* Couleurs des cartes par colonne */
.col1 {
    border-top: 4px solid #009ec3;
}

.col2 {
    border-top: 4px solid #970a6d;
}

.col3 {
    border-top: 4px solid #f28902;
}

.col4 {
    border-top: 4px solid #98c841;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .cartes_container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cartes_container {
        grid-template-columns: 1fr;
    }
}
