/* ============================================================================
   Vaziva — Agenda des salons CSE.
   Same visual language as mobilite-v2 (pastel panels, deep-red hooks,
   orange CTAs) with Vaziva blue for practical info. Namespaced .ag_.
   Header, footer, offcanvas and modals come from styles.css unchanged.
   ========================================================================== */

.ag_page {
    background: #ffffff;
    color: #191919;
}

/* --- shared ---------------------------------------------------------------- */
.ag_section {
    padding: 0 0 24px;
}
.ag_hero + .ag_section {
    padding-top: 40px;
}
.ag_panel {
    background: linear-gradient(180deg, #F7F7FB, #FDFDFF);
    border: 1px solid #FBE1D8;
    border-radius: 24px;
    padding: 40px;
}
.ag_title {
    font: 52px/56px 'Heading-Now-57-Extrabold';
    text-transform: uppercase;
    color: #191919;
    margin: 0 0 8px;
    text-align: center;
}
.ag_sub {
    font: 16px/24px 'Heading-Now-73-Book';
    color: #191919;
    margin-bottom: 32px;
    max-width: 720px;
}

/* photo slot — replace with <img> once the visuals are delivered */
.ag_ph {
    width: 100%;
    height: 100%;
    min-height: 180px;
    border-radius: 24px;
    border: 2px dashed #F6D4C8;
    background: #FFF6F2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    font: 13px/18px 'Heading-Now-75-Medium';
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8A5A4E;
}

/* filled btn_orange (hover state made permanent) — same as mobilite-v2 */
.ag_btn_filled::before {
    opacity: 0;
}
.ag_btn_filled span {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}
.ag_btn_filled .btn_orange__h {
    visibility: visible;
    width: 20px;
    margin-left: 8px;
}
.ag_btn_filled span,
.ag_btn_filled .btn_orange__h {
    background: none !important;
}

/* --- hero ------------------------------------------------------------------ */
.ag_hero {
    padding: 70px 0 0;
}
.ag_hero__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 48px;
    align-items: center;
}
.ag_badge {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    background: #EF423E;
    font: 20px/20px 'Heading-Now-57-Extrabold';
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 24px;
}
.ag_h1 {
    font: 72px/74px 'Heading-Now-57-Extrabold';
    text-transform: uppercase;
    color: #191919;
    margin: 0 0 24px;
}
.ag_h1 span {
    color: #E8432F;
}
.ag_lead {
    font: 26px/34px 'Heading-Now-75-Medium';
    color: #191919;
    margin-bottom: 16px;
}
.ag_text {
    font: 17px/26px 'Heading-Now-73-Book';
    color: #191919;
    margin-bottom: 32px;
    max-width: 560px;
}
.ag_hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
}
.ag_chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 100px;
    background: #E5EDFA;
    font: 15px/20px 'Heading-Now-75-Medium';
    color: #191919;
}
.ag_chip svg {
    color: #2563C9;
    flex: 0 0 auto;
}
.ag_hero__media {
    height: 560px;
}
.ag_hero__media .ag_ph {
    border-radius: 32px;
}
.ag_hero__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 32px;
}

/* --- agenda ---------------------------------------------------------------- */
.ag_toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 20px;
}
.ag_toolbar .ag_sub {
    margin-bottom: 0;
}
.ag_filter {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 240px;
}
.ag_label {
    font: 14px/20px 'Heading-Now-76-Bold';
    color: #191919;
}
.ag_select,
.ag_input,
.ag_textarea {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid #F6D4C8;
    background-color: #ffffff;
    font: 16px/22px 'Heading-Now-73-Book';
    color: #191919;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ag_textarea {
    height: auto;
    min-height: 120px;
    padding: 14px 16px;
    resize: vertical;
}
.ag_select:focus,
.ag_input:focus,
.ag_textarea:focus {
    outline: none;
    border-color: #2563C9;
    box-shadow: 0 0 0 3px rgba(37, 99, 201, 0.15);
}
.ag_select.is-preselected {
    border-color: #E8432F;
    box-shadow: 0 0 0 4px rgba(232, 67, 47, 0.18);
}

.ag_monthbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
}
.ag_arrow {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #F6D4C8;
    background: #ffffff;
    color: #191919;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}
.ag_arrow:hover:not(:disabled) {
    background: #2563C9;
    border-color: #2563C9;
    color: #ffffff;
}
.ag_arrow:disabled {
    opacity: 0.35;
    cursor: default;
}
.ag_months {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(12, minmax(64px, 1fr));
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px;
}
.ag_months::-webkit-scrollbar {
    display: none;
}
.ag_month {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 4px;
    border-radius: 14px;
    border: 1px solid #FBE1D8;
    background: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.ag_month:hover {
    border-color: #2563C9;
}
.ag_month__name {
    font: 14px/18px 'Heading-Now-76-Bold';
    text-transform: uppercase;
    color: #191919;
}
.ag_month__count {
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 12px;
    background: #E5EDFA;
    font: 13px/24px 'Heading-Now-76-Bold';
    color: #2563C9;
}
.ag_month.is-empty .ag_month__count {
    background: transparent;
    color: #8C8C8C;
}
.ag_month.is-past {
    background: #FBF8F7;
}
.ag_month.is-past .ag_month__name {
    color: #6E6E6E;
}
.ag_month.is-active {
    background: #2563C9;
    border-color: #2563C9;
}
.ag_month.is-active .ag_month__name {
    color: #ffffff;
}
.ag_month.is-active .ag_month__count {
    background: #ffffff;
    color: #2563C9;
}

.ag_month_title {
    font: 22px/28px 'Heading-Now-76-Bold';
    text-transform: uppercase;
    color: #191919;
    margin: 0 0 20px;
}
.ag_list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.ag_event {
    background: #ffffff;
    border: 1px solid #FBE1D8;
    border-radius: 24px;
    padding: 28px;
    display: flex;
    flex-direction: column;
}
.ag_event.is-next {
    border: 2px solid #E8432F;
    box-shadow: 0 16px 40px rgba(232, 67, 47, 0.12);
}
.ag_event__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}
.ag_event__ids {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ag_event__logo {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #FBE1D8;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}
.ag_event__logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.ag_event.is-past .ag_event__logo img {
    filter: grayscale(1);
    opacity: 0.7;
}
.ag_event__org {
    font: 14px/20px 'Heading-Now-75-Medium';
    color: #555555;
    margin: -10px 0 16px;
}
.ag_tag_live {
    background: #2563C9;
    color: #ffffff;
}
.ag_event__date {
    min-width: 76px;
    height: 76px;
    padding: 0 10px;
    border-radius: 18px;
    background: #2563C9;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.ag_event__day {
    font: 26px/28px 'Heading-Now-57-Extrabold';
}
.ag_event__mon {
    font: 13px/16px 'Heading-Now-76-Bold';
    text-transform: uppercase;
}
.ag_tag {
    padding: 6px 12px;
    border-radius: 100px;
    font: 12px/16px 'Heading-Now-76-Bold';
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ag_tag_next {
    background: #FFE4DC;
    color: #B4321F;
}
.ag_tag_past {
    background: #EFEFEF;
    color: #555555;
}
.ag_event__name {
    font: 22px/28px 'Heading-Now-76-Bold';
    color: #191919;
    margin: 0 0 16px;
}
.ag_event__meta {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}
.ag_event__meta li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font: 15px/22px 'Heading-Now-73-Book';
    color: #191919;
}
.ag_event__meta svg {
    flex: 0 0 auto;
    margin-top: 1px;
    color: #2563C9;
}
.ag_event__meta strong {
    font-family: 'Heading-Now-76-Bold';
    font-weight: normal;
}
.ag_event__cta .btn_orange {
    width: 100%;
}
.ag_event__done {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    border-radius: 28px;
    background: #F4F4F4;
    font: 15px/20px 'Heading-Now-75-Medium';
    color: #555555;
}
.ag_event.is-past .ag_event__ids {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ag_event__logo {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #FBE1D8;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}
.ag_event__logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.ag_event.is-past .ag_event__logo img {
    filter: grayscale(1);
    opacity: 0.7;
}
.ag_event__org {
    font: 14px/20px 'Heading-Now-75-Medium';
    color: #555555;
    margin: -10px 0 16px;
}
.ag_tag_live {
    background: #2563C9;
    color: #ffffff;
}
.ag_event__date {
    background: #9AA3B5;
}
.ag_event.is-past .ag_event__meta svg {
    color: #9AA3B5;
}
.ag_empty {
    grid-column: 1 / -1;
    background: #ffffff;
    border: 1px dashed #F6D4C8;
    border-radius: 24px;
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}
.ag_empty__title {
    font: 20px/26px 'Heading-Now-76-Bold';
    color: #191919;
}

/* --- benefits -------------------------------------------------------------- */
.ag_benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}
.ag_benefit {
    background: #ffffff;
    border: 1px solid #FBE1D8;
    border-radius: 24px;
    padding: 32px 28px;
}
.ag_benefit__icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: #E5EDFA;
    color: #2563C9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.ag_benefit:nth-child(even) .ag_benefit__icon {
    background: #FFE4DC;
    color: #E8432F;
}
.ag_benefit__title {
    font: 20px/26px 'Heading-Now-76-Bold';
    color: #191919;
    margin: 0 0 8px;
}
.ag_benefit__text {
    font: 16px/24px 'Heading-Now-73-Book';
    color: #191919;
}

/* --- appointment ----------------------------------------------------------- */
.ag_rdv {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 48px;
    align-items: start;
}
.ag_rdv__aside .ag_sub {
    margin-bottom: 24px;
}
.ag_rdv__img {
    height: 320px;
}
.ag_form_card {
    background: #ffffff;
    border: 1px solid #FBE1D8;
    border-radius: 24px;
    padding: 32px;
}
.ag_form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.ag_field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ag_field_full {
    grid-column: 1 / -1;
}
.ag_req {
    color: #B4321F;
}
.ag_opt {
    font-family: 'Heading-Now-73-Book';
    color: #6E6E6E;
}
.ag_error {
    display: none;
    font: 13px/18px 'Heading-Now-75-Medium';
    color: #B4321F;
}
.was-validated .ag_input:invalid,
.was-validated .ag_select:invalid {
    border-color: #B4321F;
}
.was-validated .ag_input:invalid ~ .ag_error,
.was-validated .ag_select:invalid ~ .ag_error {
    display: block;
}
.ag_form__submit {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.ag_form__note {
    font: 13px/18px 'Heading-Now-73-Book';
    color: #6E6E6E;
}
.ag_done {
    text-align: center;
    padding: 48px 16px;
}
.ag_done__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #E5EDFA;
    color: #2563C9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ag_done__title {
    font: 24px/30px 'Heading-Now-76-Bold';
    color: #191919;
    margin-bottom: 8px;
}
.ag_done__text {
    font: 16px/24px 'Heading-Now-73-Book';
    color: #191919;
}

/* --- gallery --------------------------------------------------------------- */
.ag_gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 220px;
    gap: 16px;
}
.ag_gallery__item {
    border-radius: 24px;
    overflow: hidden;
}
.ag_gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ag_gallery__item_big {
    grid-column: span 2;
    grid-row: span 2;
}
.ag_gallery__item_wide {
    grid-column: span 2;
}
.ag_gallery__item_tall {
    grid-row: span 2;
}
.ag_gallery {
    grid-auto-flow: dense;
}
.ag_gallery__item {
    margin: 0;
}

/* --- final banner ---------------------------------------------------------- */
.ag_cta {
    background: linear-gradient(93.46deg, #FEFDFD 55.47%, #FFE4DC 88.6%);
    border-radius: 24px;
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px 48px;
    margin: 24px 0 96px;
}
.ag_cta__title {
    font: 36px/40px 'Heading-Now-57-Extrabold';
    text-transform: uppercase;
    color: #191919;
    margin: 0;
    max-width: 760px;
}
.ag_cta .btn_orange {
    flex: 0 0 auto;
    min-width: 320px;
}

/* --- agenda : 4 salons par ligne sur grand écran (contenu réduit ×0.75) ---- */
@media (min-width: 1300px) {
    .ag_list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
    }
    .ag_event {
        border-radius: 18px;
        padding: 21px;
    }
    .ag_event__top {
        gap: 9px;
        margin-bottom: 15px;
    }
    .ag_event__ids {
        gap: 9px;
    }
    .ag_event__logo {
        width: 57px;
        height: 57px;
        padding: 6px;
    }
    .ag_event__date {
        min-width: 57px;
        height: 57px;
        padding: 0 8px;
        border-radius: 14px;
    }
    .ag_event__day {
        font: 20px/21px 'Heading-Now-57-Extrabold';
    }
    .ag_event__mon {
        font: 10px/12px 'Heading-Now-76-Bold';
    }
    .ag_event .ag_tag {
        padding: 5px 9px;
        font: 10px/12px 'Heading-Now-76-Bold';
    }
    .ag_event__org {
        font: 12px/16px 'Heading-Now-75-Medium';
        margin: -8px 0 12px;
    }
    .ag_event__name {
        font: 17px/21px 'Heading-Now-76-Bold';
        margin: 0 0 12px;
    }
    .ag_event__meta {
        gap: 8px;
        margin: 0 0 18px;
    }
    .ag_event__meta li {
        gap: 8px;
        font: 13px/18px 'Heading-Now-73-Book';
    }
    .ag_event__meta svg {
        width: 16px;
        height: 16px;
    }
    .ag_event__cta .btn_orange {
        height: 42px;
        padding: 0 14px;
    }
    .ag_event__cta .btn_orange span {
        font: 14px/18px 'Heading-Now-75-Medium';
    }
    .ag_event__cta .ag_btn_filled .btn_orange__h {
        width: 16px;
        margin-left: 6px;
    }
    .ag_event__cta .btn_orange__h svg {
        width: 16px;
        height: 16px;
    }
    .ag_event__done {
        height: 42px;
        border-radius: 21px;
        font: 12px/16px 'Heading-Now-75-Medium';
    }
}

/* --- responsive ------------------------------------------------------------ */
@media (max-width: 1200px) {
    .ag_h1 {
        font: 56px/58px 'Heading-Now-57-Extrabold';
    }
    .ag_hero__media {
        height: 460px;
    }
    .ag_list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ag_benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ag_rdv {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
    .ag_rdv__img {
        display: none;
    }
}

@media (max-width: 991px) {
    .ag_hero {
        padding-top: 120px;
    }
    .ag_hero__row {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
    .ag_hero__media {
        height: 380px;
    }
    .ag_panel {
        padding: 32px 24px;
    }
    .ag_months {
        grid-template-columns: repeat(12, 72px);
    }
    .ag_gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 180px;
    }
    .ag_cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 24px;
    }
}

@media (max-width: 767px) {
    .ag_h1 {
        font: 40px/44px 'Heading-Now-57-Extrabold';
    }
    .ag_lead {
        font: 20px/28px 'Heading-Now-75-Medium';
    }
    .ag_title,
    .ag_cta__title {
        font: 26px/30px 'Heading-Now-57-Extrabold';
    }
    .ag_hero__media {
        height: 280px;
    }
    .ag_filter {
        min-width: 0;
        width: 100%;
    }
    .ag_arrow {
        width: 40px;
        height: 40px;
    }
    .ag_list,
    .ag_benefits,
    .ag_form {
        grid-template-columns: minmax(0, 1fr);
    }
    .ag_event,
    .ag_form_card {
        padding: 24px 20px;
    }
    .ag_gallery {
        grid-auto-rows: 140px;
    }
    .ag_gallery__item_big {
        grid-column: 1 / -1;
        grid-row: span 2;
    }
    .ag_cta .btn_orange {
        min-width: 0;
        width: 100%;
    }
}
