/* CookieConsent v3 aux couleurs de l'ancienne fenêtre Cookiebot (public/theme/js/consent.js) : blanc, vert #939a1e,
   titres en Oswald, texte en Source Sans 3, voile sombre. */
#cc-main {
    --cc-font-family: "Source Sans 3", "Open Sans", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
    --cc-modal-border-radius: 4px;
    --cc-btn-border-radius: 5px;
    --cc-bg: #fff;
    --cc-primary-color: #161515;
    --cc-secondary-color: #161515;
    --cc-btn-primary-bg: #939a1e;
    --cc-btn-primary-color: #fff;
    --cc-btn-primary-border-color: #939a1e;
    --cc-btn-primary-hover-bg: #7d8318;
    --cc-btn-primary-hover-color: #fff;
    --cc-btn-primary-hover-border-color: #7d8318;
    --cc-btn-secondary-bg: #fff;
    --cc-btn-secondary-color: #939a1e;
    --cc-btn-secondary-border-color: #939a1e;
    --cc-btn-secondary-hover-bg: #f4f5e6;
    --cc-btn-secondary-hover-color: #7d8318;
    --cc-btn-secondary-hover-border-color: #7d8318;
    --cc-toggle-on-bg: #939a1e;
    --cc-overlay-bg: rgba(43, 43, 43, .7);
    --cc-link-color: #161515;
    --cc-cookie-category-block-bg: #f7f7f2;
    --cc-cookie-category-block-hover-bg: #eff0e3;
    --cc-separator-border-color: #e6e6dc;
    font-family: var(--cc-font-family);
}

/* Fenêtre de consentement : centrée, 588 px, logo, titre et boutons centrés */
#cc-main .cm--box { max-width: 588px; width: calc(100% - 32px); }
#cc-main .cm__body { flex-direction: column; }
#cc-main .cm__texts { position: static; padding-top: 44px; }
#cc-main .cm__title {
    display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center;
    font-family: Oswald, sans-serif; font-size: 24px; font-weight: 600; line-height: 1.2; color: #161515;
}
#cc-main .me-cc-logo { width: 92px; height: 92px; object-fit: contain; }
#cc-main .cm__desc { font-size: 14px; line-height: 1.45; color: #161515; max-height: none; }
#cc-main .me-cc-deny {
    position: absolute; top: 24px; left: 26px; font-size: 14px; font-weight: 500; color: #161515;
    background: none; text-decoration: none;
}
#cc-main .me-cc-deny:hover { text-decoration: underline; }
#cc-main .cm__btns { border-top: 0; padding-top: 6px; padding-bottom: 26px; }
#cc-main .me-cc-p { display: block; margin-top: 9px; }
#cc-main .cm__btn { font-size: 16px; font-weight: 700; min-height: 45px; border-width: 2px; }
#cc-main .cm__btn--secondary { font-weight: 600; }

/* Préférences */
#cc-main .pm__title { font-family: Oswald, sans-serif; font-size: 22px; font-weight: 600; }
#cc-main .pm__section-title { font-weight: 700; }
#cc-main .pm__btn { font-weight: 700; border-width: 2px; }
/* croix de fermeture comme celle de la connexion (.logup__close) : icône de 21 px, noire, sans cadre */
#cc-main .pm__close-btn, #cc-main .pm__close-btn:hover { border: 0; background: none; width: 25px; height: 25px; }
#cc-main .pm__close-btn svg { width: 21px; height: 21px; transform: none; stroke: #161515; stroke-width: 2; }
#cc-main .pm__close-btn:hover svg { stroke: #161515; opacity: .7; }

@media (max-width: 640px) {
    #cc-main .cm__texts { padding-top: 48px; }
    #cc-main .cm__title { font-size: 21px; gap: 14px; }
    #cc-main .me-cc-logo { width: 72px; height: 72px; }
    #cc-main .me-cc-deny { top: 18px; left: 18px; }
}

/* Vidéo YouTube en attente du consentement marketing */
.me-cc-video {
    position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 12px; padding: 16px; text-align: center; background: #2b2b2b; color: #fff;
    font-size: 14px; line-height: 1.4;
}
.me-cc-video p { margin: 0; max-width: 360px; }
.me-cc-video__btn {
    cursor: pointer; border: 2px solid #939a1e; border-radius: 5px; background: #939a1e; color: #fff;
    font-weight: 700; font-size: 15px; padding: 9px 20px;
}
.me-cc-video__btn:hover { background: #7d8318; border-color: #7d8318; }
