/* /Components/Consent/Consent.razor.rz.scp.css */
/* Variables de couleurs ZephyrAudition */
/* Primary: #30402D (vert foncé) */
/* Secondary: #A9BF99 (vert clair) */
/* Accent: #F2DAAA (beige) */
/* Neutral: #FFFFFF (blanc) */

/* Bouton fixe pour gérer les cookies - CNIL/RGPD compliant */
.consent-settings-btn[b-k2b0bkj16f] {
    position: fixed;
    bottom: 3rem;
    left: 1.5rem;
    width: 3.125rem;
    height: 3.125rem;
    background-color: #30402D;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(48, 64, 45, 0.3);
    cursor: pointer;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease,
                visibility 0.3s ease,
                background-color 0.2s ease,
                box-shadow 0.2s ease;
    font-size: 1.5rem;
    color: #FFFFFF;
}

.consent-settings-btn:hover[b-k2b0bkj16f] {
    background-color: #A9BF99;
    color: #FFFFFF;
    box-shadow: 0 6px 20px rgba(48, 64, 45, 0.35);
    transform: translateY(-2px) scale(1.05);
}

.consent-settings-btn:active[b-k2b0bkj16f] {
    transform: translateY(0);
}

.consent-settings-btn:focus-visible[b-k2b0bkj16f] {
    outline: 2px solid #A9BF99;
    outline-offset: 2px;
}

/* Cacher le bouton quand le menu mobile est ouvert - synchronisé avec l'ouverture du menu (300ms) */
body.mobile-menu-open .consent-settings-btn[b-k2b0bkj16f] {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.9) translateY(10px);
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .consent-settings-btn[b-k2b0bkj16f] {
        width: 2.75rem;
        height: 2.75rem;
        bottom: 2.75rem;
        left: 1rem;
        font-size: 1.375rem;
    }
}

/* Bandeau de consentement - Base */
.consent-banner[b-k2b0bkj16f] {
    position: fixed;
    background-color: #FFFFFF;
    box-shadow: 0 -4px 20px rgba(48, 64, 45, 0.15);
    z-index: 9999;
    font-family: 'Merriweather Sans', sans-serif;
}

/* Layout Full Width - Barre en bas de l'écran (mobile et desktop par défaut) */
.consent-banner--full-width[b-k2b0bkj16f] {
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    animation: slideUpFullWidth-b-k2b0bkj16f 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFullWidth-b-k2b0bkj16f {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Layout Bottom Left - Fenêtre rectangulaire en bas à gauche (desktop uniquement) */
.consent-banner--bottom-left[b-k2b0bkj16f] {
    bottom: 1.5rem;
    left: 1.5rem;
    max-width: 420px;
    border-radius: 12px;
    padding: 1.75rem;
    border: 1px solid rgba(169, 191, 153, 0.15);
    animation: slideInBottomLeft-b-k2b0bkj16f 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInBottomLeft-b-k2b0bkj16f {
    from {
        transform: translate(-20px, 20px);
        opacity: 0;
    }
    to {
        transform: translate(0, 0);
        opacity: 1;
    }
}

/* Sur mobile, le layout bottomLeft devient fullWidth */
@media (max-width: 768px) {
    .consent-banner--bottom-left[b-k2b0bkj16f] {
        bottom: 0;
        left: 0;
        right: 0;
        max-width: none;
        border-radius: 0;
        border: none;
        border-top: 1px solid rgba(169, 191, 153, 0.15);
        animation: slideUpFullWidth-b-k2b0bkj16f 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
}

.consent-content[b-k2b0bkj16f] {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Pour le layout bottomLeft, on stack verticalement sur desktop aussi */
.consent-banner--bottom-left .consent-content[b-k2b0bkj16f] {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
}

.consent-text[b-k2b0bkj16f] {
    flex: 1;
    min-width: 280px;
}

.consent-title[b-k2b0bkj16f] {
    font-family: 'Merriweather Sans', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #30402D;
    margin: 0 0 0.5rem 0;
}

.consent-description[b-k2b0bkj16f] {
    font-family: 'Merriweather Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 300;
    color: #30402D;
    opacity: 0.85;
    margin: 0;
    line-height: 1.6;
}

.consent-actions[b-k2b0bkj16f] {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Pour bottomLeft, boutons en colonne sur desktop */
.consent-banner--bottom-left .consent-actions[b-k2b0bkj16f] {
    flex-direction: column;
    width: 100%;
}

/* Boutons */
.consent-btn[b-k2b0bkj16f] {
    font-family: 'Merriweather Sans', sans-serif;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.consent-banner--bottom-left .consent-btn[b-k2b0bkj16f] {
    width: 100%;
    text-align: center;
}

.consent-btn-primary[b-k2b0bkj16f] {
    background-color: #30402D;
    color: #FFFFFF;
}

.consent-btn-primary:hover[b-k2b0bkj16f] {
    background-color: rgba(48, 64, 45, 0.9);
    box-shadow: 0 4px 12px rgba(48, 64, 45, 0.25);
    transform: translateY(-1px);
}

.consent-btn-secondary[b-k2b0bkj16f] {
    background-color: rgba(169, 191, 153, 0.15);
    color: #30402D;
}

.consent-btn-secondary:hover[b-k2b0bkj16f] {
    background-color: rgba(169, 191, 153, 0.25);
}

.consent-btn-tertiary[b-k2b0bkj16f] {
    background-color: transparent;
    color: #30402D;
    border: 1.5px solid rgba(169, 191, 153, 0.4);
}

.consent-btn-tertiary:hover[b-k2b0bkj16f] {
    background-color: rgba(169, 191, 153, 0.08);
    border-color: #A9BF99;
}

/* Focus states */
.consent-btn:focus-visible[b-k2b0bkj16f] {
    outline: 2px solid #A9BF99;
    outline-offset: 2px;
}

/* Overlay de la modale */
.consent-overlay[b-k2b0bkj16f] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(48, 64, 45, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn-b-k2b0bkj16f 0.3s ease-out;
}

@keyframes fadeIn-b-k2b0bkj16f {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modale */
.consent-modal[b-k2b0bkj16f] {
    background-color: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(48, 64, 45, 0.2);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleIn-b-k2b0bkj16f 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleIn-b-k2b0bkj16f {
    from {
        transform: scale(0.92);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.consent-modal-header[b-k2b0bkj16f] {
    padding: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(169, 191, 153, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.consent-modal-header h2[b-k2b0bkj16f] {
    font-family: 'Merriweather Sans', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: #30402D;
    margin: 0;
}

.consent-close[b-k2b0bkj16f] {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: rgba(48, 64, 45, 0.5);
    cursor: pointer;
    padding: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    line-height: 1;
}

.consent-close:hover[b-k2b0bkj16f] {
    background-color: rgba(169, 191, 153, 0.15);
    color: #30402D;
}

.consent-close:focus-visible[b-k2b0bkj16f] {
    outline: 2px solid #A9BF99;
    outline-offset: 2px;
}

.consent-modal-body[b-k2b0bkj16f] {
    padding: 2rem;
}

.consent-modal-intro[b-k2b0bkj16f] {
    font-family: 'Merriweather Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 300;
    color: #30402D;
    opacity: 0.85;
    margin: 0 0 1.75rem 0;
    line-height: 1.7;
}

/* Lien vers politique de confidentialité */
.consent-privacy-link[b-k2b0bkj16f] {
    font-family: 'Merriweather Sans', sans-serif;
    font-size: 0.875rem;
    text-align: center;
    margin: 1.5rem 0 0 0;
}

.consent-privacy-link a[b-k2b0bkj16f] {
    color: #A9BF99;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    border-bottom: 1px solid rgba(169, 191, 153, 0.3);
}

.consent-privacy-link a:hover[b-k2b0bkj16f] {
    color: #30402D;
    border-bottom-color: #30402D;
}

/* Catégories de consentement */
.consent-category[b-k2b0bkj16f] {
    background-color: rgba(169, 191, 153, 0.08);
    border: 1px solid rgba(169, 191, 153, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    transition: border-color 0.2s ease;
}

.consent-category:hover[b-k2b0bkj16f] {
    border-color: rgba(169, 191, 153, 0.35);
}

.consent-category-header[b-k2b0bkj16f] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
}

.consent-category-info[b-k2b0bkj16f] {
    flex: 1;
}

.consent-category-info h3[b-k2b0bkj16f] {
    font-family: 'Merriweather Sans', sans-serif;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #30402D;
    margin: 0 0 0.5rem 0;
}

.consent-category-description[b-k2b0bkj16f] {
    font-family: 'Merriweather Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 300;
    color: #30402D;
    opacity: 0.75;
    margin: 0;
    line-height: 1.6;
}

/* Toggle switch */
.consent-toggle[b-k2b0bkj16f] {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.consent-toggle input[b-k2b0bkj16f] {
    opacity: 0;
    width: 0;
    height: 0;
}

.consent-toggle-slider[b-k2b0bkj16f] {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(169, 191, 153, 0.3);
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 28px;
}

.consent-toggle-slider[b-k2b0bkj16f]:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(48, 64, 45, 0.2);
}

.consent-toggle input:checked + .consent-toggle-slider[b-k2b0bkj16f] {
    background-color: #A9BF99;
}

.consent-toggle input:checked + .consent-toggle-slider[b-k2b0bkj16f]:before {
    transform: translateX(24px);
}

.consent-toggle input:focus-visible + .consent-toggle-slider[b-k2b0bkj16f] {
    outline: 2px solid #A9BF99;
    outline-offset: 2px;
}

.consent-modal-footer[b-k2b0bkj16f] {
    padding: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(169, 191, 153, 0.2);
    display: flex;
    justify-content: flex-end;
    gap: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .consent-banner--full-width[b-k2b0bkj16f] {
        padding: 1.25rem;
    }

    .consent-content[b-k2b0bkj16f] {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
    }

    .consent-text[b-k2b0bkj16f] {
        min-width: auto;
    }

    .consent-actions[b-k2b0bkj16f] {
        flex-direction: column;
        width: 100%;
    }

    .consent-btn[b-k2b0bkj16f] {
        width: 100%;
        text-align: center;
    }

    .consent-modal-header[b-k2b0bkj16f] {
        padding: 1.5rem;
    }

    .consent-modal-header h2[b-k2b0bkj16f] {
        font-size: 1.25rem;
    }

    .consent-modal-body[b-k2b0bkj16f] {
        padding: 1.5rem;
    }

    .consent-modal-footer[b-k2b0bkj16f] {
        padding: 1.5rem;
        padding-top: 1.25rem;
        flex-direction: column-reverse;
    }

    .consent-modal-footer .consent-btn[b-k2b0bkj16f] {
        width: 100%;
    }

    .consent-category[b-k2b0bkj16f] {
        padding: 1.25rem;
    }

    .consent-category-header[b-k2b0bkj16f] {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .consent-title[b-k2b0bkj16f] {
        font-size: 1rem;
    }

    .consent-description[b-k2b0bkj16f] {
        font-size: 0.8125rem;
    }

    .consent-modal-header h2[b-k2b0bkj16f] {
        font-size: 1.125rem;
    }

    .consent-close[b-k2b0bkj16f] {
        font-size: 1.75rem;
        width: 2rem;
        height: 2rem;
    }
}
/* /Components/TopScroll.razor.rz.scp.css */
/* TopScroll - Bouton "Retour en haut" de la page */
/* Aligné au style du bouton Consent (cohérence visuelle) */

.top-scroll-btn[b-xr3jylvps9] {
    position: fixed;
    bottom: 3rem;
    right: 1.5rem;
    width: 3.125rem;
    height: 3.125rem;
    background-color: rgba(169, 191, 153, 0.80); /* Secondary color - légèrement transparent */
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(48, 64, 45, 0.2);
    cursor: pointer;
    z-index: 9998; /* Juste en dessous du consent (9999) */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease,
                visibility 0.3s ease,
                background-color 0.2s ease,
                box-shadow 0.2s ease;
    font-size: 1.25rem;
    color: #FFFFFF;
    opacity: 0; /* Caché au départ */
    pointer-events: none; /* Pas cliquable si caché */
}

/* État visible */
.top-scroll-btn.visible[b-xr3jylvps9] {
    opacity: 1;
    pointer-events: auto;
    animation: fadeInScale-b-xr3jylvps9 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover - Plus prononcé que le state par défaut */
.top-scroll-btn:hover[b-xr3jylvps9] {
    background-color: rgba(48, 64, 45, 0.8); /* Primary color au hover - avec transparence */
    color: #FFFFFF;
    box-shadow: 0 6px 20px rgba(48, 64, 45, 0.3);
    transform: translateY(-2px) scale(1.05);
}

/* Active state */
.top-scroll-btn:active[b-xr3jylvps9] {
    transform: translateY(0) scale(0.98);
}

/* Focus pour accessibilité */
.top-scroll-btn:focus-visible[b-xr3jylvps9] {
    outline: 2px solid #30402D;
    outline-offset: 2px;
}

/* Animation d'apparition */
@keyframes fadeInScale-b-xr3jylvps9 {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Cacher le bouton quand le menu mobile est ouvert - synchronisé avec l'ouverture du menu (300ms) */
body.mobile-menu-open .top-scroll-btn[b-xr3jylvps9] {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.9) translateY(10px);
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .top-scroll-btn[b-xr3jylvps9] {
        width: 2.75rem;
        height: 2.75rem;
        bottom: 2.75rem;
        right: 1rem;
        font-size: 1.125rem;
    }
}
