/* ==========================================================================
   Appels d'Offres Grid Styles (Statique)
   ========================================================================== */

/* --- Main Container --- */
.aog-container {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* --- Header Section (Button) --- */
.aog-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 40px;
}

.aog-button-container {
    text-align: right;
    margin-top: 20px;
}

.aog-view-all-btn {
    border-radius: 30px;
    border: 1px solid #C5BA90;
    display: inline-block;
    background-color: #C5BA90;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: none;
}

.aog-view-all-btn:hover {
    background-color: #C5BA90;
    border-color: #D1D1D1;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* --- Grid Layout --- */
.aog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

/* --- Card Styling (Default / Inactive State) --- */
.aog-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(41, 51, 72, 0.08);
    background-color: #fff;
    cursor: pointer;
    border-style: solid;
    border-color: #E9ECF2;
    border-width: 8px 4px;
    /* 4px haut/bas, 8px gauche/droite */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* --- Card Active State (Hover) --- */
.aog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(41, 51, 72, 0.12);
    border-color: #013B9B;
    /* Bleu foncé */
}

/* --- Card Active State (Clicked/Selected) --- */
.aog-card.aog-card--selected {
    border-color: #013B9B;
    /* Bleu foncé */
}

/* --- Card Content --- */
.aog-card a {
    display: block;
    line-height: 0;
}

.aog-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .aog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .aog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .aog-grid {
        grid-template-columns: 1fr;
    }

    .aog-button-container {
        width: 100%;
        text-align: center;
    }

    .aog-view-all-btn {
        width: 100%;
        box-sizing: border-box;
    }
}