/**
 * YCMC Activités — cards + modale + formulaire de contact
 * Shortcode [ycmc_activites]
 */

/* --- CARDS --- */
.ycmc-wrap {
    width: 100%;
    font-family: inherit;
}

.ycmc-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ycmc-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 140px;
    height: 140px;
    background: var(--c) !important;
    border: none !important;
    cursor: pointer;
    padding: 16px 10px;
    transition: filter .2s, transform .15s;
    text-decoration: none !important;
}

.ycmc-card:hover {
    filter: brightness(1.12);
    transform: translateY(-2px);
}

.ycmc-card-ico svg {
    width: 52px;
    height: 52px;
    display: block;
}

.ycmc-card-ico .ycmc-big-svg {
    width: 52px;
    height: 52px;
}

.ycmc-card-lbl {
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.3;
}

/* --- MODAL --- */
.ycmc-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ycmc-modal[hidden] {
    display: none !important;
}

.ycmc-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    cursor: pointer;
}

.ycmc-modal-box {
    position: relative;
    z-index: 1;
    top: 30px;
    width: 90%;
    max-width: 1100px;
    max-height: 80vh;
    overflow-y: auto;
    background: var(--c) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    animation: ycmc-pop .22s ease;
}

@keyframes ycmc-pop {
    from {
        opacity: 0;
        transform: scale(.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ycmc-modal-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    position: sticky;
    top: 0;
    z-index: 2;
}

.ycmc-modal-title {
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.ycmc-modal-close {
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
    opacity: .8;
    transition: opacity .15s;
}

.ycmc-modal-close:hover {
    opacity: 1;
}

.ycmc-modal-bd {
    padding: 28px 32px 40px;
}

/* --- CONTENU MODAL --- */
.ycmc-modal-bd,
.ycmc-modal-bd p,
.ycmc-modal-bd span,
.ycmc-modal-bd div,
.ycmc-modal-bd label,
.ycmc-modal-bd h1,
.ycmc-modal-bd h2,
.ycmc-modal-bd h3,
.ycmc-modal-bd h4,
.ycmc-modal-bd h5,
.ycmc-modal-bd h6 {
    color: #fff !important;
}

.ycmc-grid {
    display: grid;
    grid-template-columns: 35% 1fr;
    gap: 20px 36px;
    align-items: center;
}

@media (max-width: 600px) {
    .ycmc-grid {
        grid-template-columns: 1fr;
    }
}

.ycmc-lft {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ycmc-big-svg {
    width: 60%;
    height: 60%;
}

.ycmc-rgt {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ycmc-section-ttl {
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: .2em;
    text-transform: uppercase;
    font-style: italic;
    margin: 0 0 4px !important;
    color: #fff !important;
}

.ycmc-row {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 1.5vw;
    align-items: start;
}

.ycmc-ico-box {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ycmc-ico-box svg {
    width: 60%;
    height: 60%;
}

.ycmc-lbl {
    font-weight: 700 !important;
    letter-spacing: .12em;
    font-size: 20px !important;
    text-transform: uppercase;
    margin-bottom: 8px !important;
    color: #fff !important;
}

.ycmc-val {
    font-size: 16px !important;
    line-height: 1.6;
    margin: 0 !important;
    color: #fff !important;
}

.ycmc-modal-bd a.ycmc-link {
    color: rgba(255, 255, 255, .85) !important;
    text-decoration: underline;
}

.ycmc-modal-bd a.ycmc-link:hover {
    opacity: .7;
}

.ycmc-cta-wrap {
    margin-top: 6px;
}

.ycmc-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 11px 26px !important;
    border: 2px solid rgba(255, 255, 255, .62) !important;
    color: #fff !important;
    font-weight: 700 !important;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none !important;
    font-size: 12px !important;
    cursor: pointer;
    background: transparent !important;
    transition: background .2s, color .2s;
    font-family: inherit;
}

.ycmc-btn span {
    color: #fff !important;
}

.ycmc-btn:hover {
    background: rgba(255, 255, 255, .92) !important;
    color: var(--c) !important;
}

.ycmc-btn:hover span {
    color: var(--c) !important;
}

.ycmc-btn:hover svg {
    fill: var(--c) !important;
}

.ycmc-btn:disabled {
    opacity: .6;
    cursor: wait;
}

/* --- FORMULAIRE --- */
.ycmc-form {
    margin-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, .25);
    padding-top: 24px;
}

.ycmc-form-ttl {
    text-align: center;
    font-weight: 700 !important;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-size: 16px !important;
    margin-bottom: 20px !important;
    color: #fff !important;
}

.ycmc-fgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
}

@media (max-width: 560px) {
    .ycmc-fgrid {
        grid-template-columns: 1fr;
    }
}

.ycmc-ff {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ycmc-full {
    grid-column: 1 / -1;
}

.ycmc-ff label {
    font-size: 18px !important;
    color: rgba(255, 255, 255, .7) !important;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.ycmc-ff input,
.ycmc-ff select {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, .4) !important;
    color: #fff !important;
    padding: 6px 0;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    width: 100%;
}

.ycmc-ff input::placeholder {
    color: rgba(255, 255, 255, .45) !important;
}

.ycmc-ff input[type="datetime-local"] {
    color-scheme: dark;
}

.ycmc-ff select {
    cursor: pointer;
}

.ycmc-ff select option {
    color: #222 !important;
    background: #fff !important;
}

.ycmc-ff textarea {
    background: transparent !important;
    color: #fff !important;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .3) !important;
    padding: 8px 10px;
    resize: vertical;
    min-height: 80px;
    margin-top: 4px;
}

.ycmc-ff textarea::placeholder {
    color: rgba(255, 255, 255, .45) !important;
}

.ycmc-captcha-wrap {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.ycmc-captcha-wrap .g-recaptcha {
    transform-origin: center top;
}

@media (max-width: 360px) {
    .ycmc-captcha-wrap .g-recaptcha {
        transform: scale(0.85);
    }
}

.ycmc-fsub {
    margin-top: 20px;
    text-align: center;
}

.ycmc-fmsg {
    font-size: 13px !important;
    margin-top: 10px;
    min-height: 18px;
    color: #fff !important;
}