.afsgm-sorties-section {
    --afsgm-forest: #12371d;
    --afsgm-forest-soft: #315c34;
    --afsgm-leaf: #8caf1e;
    --afsgm-sage: #edf4e6;
    --afsgm-cream: #f7f5ed;
    --afsgm-border: #dfe8dc;
    --afsgm-text: #203728;
    margin: 36px auto;
    max-width: 1180px;
    width: 100%;
}

.afsgm-sorties-header {
    max-width: 760px;
    margin: 0 auto 22px;
    text-align: center;
}

.afsgm-sorties-kicker {
    margin: 0 0 8px;
    color: var(--afsgm-leaf);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.afsgm-sorties-header h2 {
    margin: 0;
    color: var(--afsgm-forest);
    font-size: clamp(1.65rem, 2.3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
}

.afsgm-sorties-header p:not(.afsgm-sorties-kicker) {
    margin: 10px auto 0;
    color: #5b6b5d;
    font-size: 1rem;
    line-height: 1.55;
}

.afsgm-sorties-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 28px;
}

.afsgm-filter-button {
    min-height: 38px;
    padding: 8px 15px;
    border: 1px solid var(--afsgm-border);
    border-radius: 999px;
    background: #fff;
    color: var(--afsgm-forest);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.afsgm-filter-button:hover,
.afsgm-filter-button:focus,
.afsgm-filter-button.is-active {
    border-color: var(--afsgm-forest);
    background: var(--afsgm-forest, #12371d);
    color: #fff;
}

.afsgm-filter-month {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 5px 7px 5px 13px;
    border: 1px solid var(--afsgm-border);
    border-radius: 999px;
    background: var(--afsgm-cream);
    color: var(--afsgm-forest);
    font-size: 0.86rem;
    font-weight: 700;
}

.afsgm-filter-month select {
    min-height: 28px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
}

.afsgm-sorties-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
    margin: 0 auto;
    width: 100%;
}

.afsgm-sortie-card {
    background: #fff;
    border: 1px solid var(--afsgm-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(18, 55, 29, 0.08);
    display: grid;
    grid-template-columns: minmax(240px, 50%) minmax(0, 1fr);
    height: 100%;
    min-width: 0;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.afsgm-sortie-card[hidden] {
    display: none !important;
}

.afsgm-sortie-card:hover {
    transform: translateY(-2px);
    border-color: rgba(140, 175, 30, 0.72);
    box-shadow: 0 18px 34px rgba(18, 55, 29, 0.12);
}

.afsgm-sortie-image {
    display: block;
    aspect-ratio: auto;
    min-height: 100%;
    padding: 0 10px;
    background: var(--afsgm-cream);
    color: var(--afsgm-forest);
    text-decoration: none;
    overflow: hidden;
    border-right: 1px solid var(--afsgm-border);
}

.afsgm-sortie-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    background: #f3f4ef;
}

.afsgm-sortie-image span {
    display: grid;
    height: 100%;
    place-items: center;
    font-weight: 700;
    color: var(--afsgm-leaf);
}

.afsgm-sortie-content {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.afsgm-sortie-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 12px;
}

.afsgm-sortie-content h3 {
    margin: 14px 0 10px;
    color: var(--afsgm-forest);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.32;
    text-transform: uppercase;
}

.afsgm-sortie-content h3 a {
    color: inherit;
    text-decoration: none;
}

.afsgm-sortie-content h3 a:hover,
.afsgm-sortie-content h3 a:focus {
    color: #6f8d19;
}

.afsgm-sortie-content p {
    margin: 0 0 12px;
    color: var(--afsgm-text);
    font-size: 0.95rem;
    line-height: 1.62;
}

.afsgm-sortie-excerpt {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.afsgm-sortie-meta,
.afsgm-sortie-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: #60705f;
    font-size: 0.84rem;
}

.afsgm-sortie-meta {
    flex-wrap: nowrap;
}

.afsgm-sortie-date {
    display: grid;
    place-items: center;
    flex: 0 0 54px;
    min-height: 58px;
    border-radius: 7px;
    background: var(--afsgm-forest, #12371d);
    color: #fff;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.afsgm-sortie-date-day {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
}

.afsgm-sortie-date-month {
    margin-top: 3px;
    color: #9bb61f;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0;
}

.afsgm-sortie-meta-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    min-width: 0;
    color: var(--afsgm-forest);
    font-size: 0.95rem;
    line-height: 1.35;
}

.afsgm-sortie-meta-details span {
    overflow-wrap: anywhere;
}

.afsgm-sortie-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}

.afsgm-sortie-duration {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #536750;
    font-weight: 700;
}

.afsgm-sortie-price {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--afsgm-forest-soft);
    font-weight: 700;
}

.afsgm-sortie-time-icon,
.afsgm-sortie-duration-icon,
.afsgm-sortie-price-icon,
.afsgm-sortie-location-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.afsgm-sortie-location {
    display: inline-flex;
    align-items: flex-start;
    gap: 7px;
    font-weight: 700;
    color: var(--afsgm-forest-soft);
    font-size: 0.9rem;
    line-height: 1.35;
}

.afsgm-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    background: var(--afsgm-sage);
    color: #285b2b;
}

.afsgm-badge-complete,
.afsgm-badge-annulee {
    background: #f7e7e5;
    color: #9b2c22;
}

.afsgm-badge-next {
    background: var(--afsgm-forest);
    color: #fff;
}

.afsgm-badge-last {
    background: #fff4d9;
    color: #815800;
}

.afsgm-badge-terminee {
    background: #eeeeee;
    color: #555;
}

.afsgm-sortie-footer {
    margin-top: auto;
    padding-top: 4px;
}

.afsgm-places {
    color: #58675a;
    font-size: 0.86rem;
    font-weight: 700;
}

.afsgm-sortie-card .afsgm-button,
.afsgm-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    align-self: flex-start;
    min-height: 38px;
    margin-top: 16px;
    padding: 10px 17px;
    border: 0;
    border-radius: 6px;
    background: var(--afsgm-forest, #12371d);
    color: #fff !important;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.afsgm-sortie-card .afsgm-button:hover,
.afsgm-sortie-card .afsgm-button:focus,
.afsgm-button:hover,
.afsgm-button:focus {
    background: #9ab51a;
    color: #fff !important;
    text-decoration: none;
}

.afsgm-empty {
    grid-column: 1 / -1;
    margin: 0;
    color: #12371d;
    text-align: center;
}

.afsgm-filter-empty {
    margin: 22px 0 0;
    padding: 16px 18px;
    border-radius: 8px;
    background: var(--afsgm-cream);
    color: var(--afsgm-forest);
    font-weight: 700;
    text-align: center;
}

.afsgm-form-wrapper {
    margin: 28px 0;
}

.afsgm-form {
    display: block;
    max-width: 760px;
    width: 100%;
}

.afsgm-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 24px;
}

.afsgm-form p {
    margin: 0 0 22px;
}

.afsgm-form-grid p {
    margin: 0;
}

.afsgm-form label {
    display: block;
    margin-bottom: 9px;
    color: #12371d;
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 700;
}

.afsgm-form input[type="text"],
.afsgm-form input[type="email"],
.afsgm-form input[type="tel"],
.afsgm-form input[type="number"],
.afsgm-form textarea {
    width: 100%;
    border: 1px solid #cfd8d1;
    border-radius: 8px;
    padding: 12px 14px;
    color: #12371d;
    font-size: 1rem;
    line-height: 1.45;
}

.afsgm-form input[type="text"],
.afsgm-form input[type="email"],
.afsgm-form input[type="tel"],
.afsgm-form input[type="number"] {
    min-height: 52px;
}

.afsgm-form textarea {
    min-height: 150px;
}

.afsgm-form input:focus,
.afsgm-form textarea:focus {
    border-color: #2f5d3a;
    box-shadow: 0 0 0 1px #2f5d3a;
    outline: none;
}

.afsgm-elementor-field {
    margin: 0;
}

.afsgm-elementor-form .afsgm-form {
    max-width: 100%;
}

.afsgm-checkbox label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0;
    color: #12371d;
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.45;
}

.afsgm-checkbox {
    margin: 0 0 14px;
}

.afsgm-checkbox input[type="checkbox"] {
    appearance: none;
    display: inline-grid;
    place-content: center;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    border: 1.5px solid #9aaca0;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}

.afsgm-checkbox input[type="checkbox"]::before {
    content: "";
    width: 10px;
    height: 10px;
    transform: scale(0);
    transition: transform 120ms ease;
    clip-path: polygon(14% 44%, 0 59%, 39% 100%, 100% 17%, 84% 4%, 37% 69%);
    background: #fff;
}

.afsgm-checkbox input[type="checkbox"]:checked {
    border-color: #12371d;
    background: #12371d;
}

.afsgm-checkbox input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.afsgm-checkbox input[type="checkbox"]:focus {
    outline: 2px solid #9ab51a;
    outline-offset: 2px;
}

.afsgm-message {
    margin: 0 0 18px;
    padding: 16px 18px;
    border-radius: 6px;
    line-height: 1.5;
}

.afsgm-message strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.afsgm-message-success {
    background: #edf8ef;
    color: #245b2d;
    border: 1px solid #b8e2c0;
}

.afsgm-message-error {
    background: #fdebea;
    color: #8a241c;
    border: 1px solid #f5b9b3;
}

.afsgm-form-after-success {
    margin: -6px 0 0;
    color: #37503b;
}

@media (max-width: 700px) {
    .afsgm-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .afsgm-sorties-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .afsgm-sorties-section {
        margin: 28px auto;
    }

    .afsgm-sorties-header {
        text-align: left;
    }

    .afsgm-sorties-filters {
        justify-content: flex-start;
    }

    .afsgm-sorties-grid {
        gap: 18px;
    }

    .afsgm-sortie-card {
        display: flex;
        flex-direction: column;
    }

    .afsgm-sortie-image {
        aspect-ratio: 16 / 10;
        min-height: 0;
        padding: 0 8px;
        border-right: 0;
        border-bottom: 1px solid var(--afsgm-border);
    }

    .afsgm-sortie-content {
        padding: 17px;
    }

    .afsgm-sortie-date {
        flex-basis: 60px;
        min-height: 64px;
    }

    .afsgm-sortie-date-day {
        font-size: 1.5rem;
    }

    .afsgm-sortie-card .afsgm-button,
    .afsgm-button {
        align-self: stretch;
        width: 100%;
    }
}
