/* =============================================
   Commandes Groupées - Tuiles
   Préfixe : .cg- pour éviter les conflits CSS
   ============================================= */

.cg-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 15px 40px;
}

.cg-titre-page {
    text-align: center;
    color: #2d3e50;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.cg-titre-separateur {
    display: block;
    width: 50px;
    height: 0px;
    background-color: #1a7bbf;
    margin: 0 auto 35px;
    border-radius: 2px;
}

/* Grille responsive */
.cg-grille {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

/* Tuile */
.cg-tuile {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    overflow: hidden;
}

.cg-tuile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(26, 123, 191, 0.18);
}

/* Barre de couleur en haut de la tuile */
.cg-tuile-barre {
    height: 5px;
    background: linear-gradient(90deg, #1a7bbf, #2d3e50);
}

/* Contenu de la tuile */
.cg-tuile-corps {
    padding: 22px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
}

.cg-tuile-icone {
    font-size: 1.8rem;
    line-height: 1;
}

.cg-tuile-titre {
    color: #2d3e50;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    text-align: center;
    width: 100%;
}

/* Sous-titre entre parenthèses */
.cg-tuile-titre-sub {
    display: block;
    font-size: 0.78rem;
    font-weight: 400;
    color: #6b7f93;
    text-align: center;
}

/* Badge date limite */
.cg-tuile-badge-date {
    display: inline-block;
    background-color: #eef0f2;
    color: #6b7f93;
    font-size: 0.65rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.cg-tuile-lien {
    display: inline-block;
    margin-top: auto;
    padding: 8px 18px;
    background-color: #1a7bbf;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.cg-tuile-lien:hover {
    background-color: #155f96;
}

/* Message aucune commande */
.cg-vide {
    text-align: center;
    color: #2d3e50;
    font-size: 1.4rem;
    padding: 40px 0;
}