/*
 * Fenetre de consentement aux couleurs de Scimone (ADR 0023). La feuille de tarteaucitron se
 * charge apres celle-ci : les regles commencent par `html body #tarteaucitronRoot` pour l'emporter.
 * Fenetre au milieu de l'ecran (porteur, 12 octobre 2026) : le texte, le lien vers la politique de
 * confidentialite, puis de gauche a droite « Refuser » et « Autoriser les statistiques » (contour
 * clair) et « Autoriser tout » (plein, vert). Le regroupement `.scimone-choix` est pose par mesure.js.
 * Couleurs de la charte : vert #32534e, encre #252f2c, fond creme #faf7f2, filet #d8d2c7.
 */
html body #tarteaucitronRoot,
html body #tarteaucitronRoot * {
    font-family: inherit;
}

/* tarteaucitron centre la fenetre lui-meme (marges automatiques) : on n'en regle que la taille. */
html body #tarteaucitronRoot.tarteaucitronSize-middle div#tarteaucitronAlertBig {
    width: min(34rem, calc(100% - 32px));
    max-height: calc(100% - 32px);
    overflow-y: auto;
    box-sizing: border-box;
    padding: 24px;
    background: #ffffff;
    color: #252f2c;
    border: 1px solid #d8d2c7;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(37, 47, 44, .25);
    font-size: 15px !important;
    line-height: 1.5;
    text-align: left;
}

/* Pas de titre au-dessus du texte. */
html body #tarteaucitronRoot.tarteaucitronSize-middle #tarteaucitronAlertBig::before {
    content: none;
    display: none;
}

html body #tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronDisclaimerAlert {
    display: block;
    margin: 0;
    padding: 0;
    color: #252f2c;
    font-size: 16px !important;
    line-height: 1.5;
    text-align: left;
}

html body #tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronPrivacyUrl {
    display: block;
    width: fit-content;
    text-align: left;
    background: transparent;
    color: #32534e;
    font-size: 15px !important;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    border: 0;
    min-height: 0;
    padding: 0;
    margin: 8px 0 0 !important;
}

html body #tarteaucitronRoot #tarteaucitronAlertBig .scimone-choix {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
}

html body #tarteaucitronRoot #tarteaucitronAlertBig .scimone-choix button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 40px;
    margin: 0 !important;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 15px !important;
    font-weight: 600;
    line-height: 1.2;
    background: #ffffff;
    color: #32534e;
    border: 1.5px solid #d8d2c7;
}

html body #tarteaucitronRoot #tarteaucitronAlertBig .scimone-choix button:hover {
    border-color: #73827c;
    background: #faf7f2;
}

html body #tarteaucitronRoot #tarteaucitronAlertBig .scimone-choix #tarteaucitronPersonalize2 {
    background: #32534e;
    color: #ffffff;
    border-color: #32534e;
}

html body #tarteaucitronRoot #tarteaucitronAlertBig .scimone-choix #tarteaucitronPersonalize2:hover {
    background: #57726e;
    border-color: #57726e;
}

/* La case de tarteaucitron devant le libelle n'a pas sa place dans la fenetre. */
html body #tarteaucitronRoot #tarteaucitronAlertBig .scimone-choix .tarteaucitronCheck,
html body #tarteaucitronRoot #tarteaucitronAlertBig .scimone-choix .tarteaucitronCross {
    display: none;
}

/* Sur telephone, les trois choix en colonne, pleine largeur, dans le meme ordre. */
@media (max-width: 480px) {
    html body #tarteaucitronRoot.tarteaucitronSize-middle div#tarteaucitronAlertBig {
        padding: 20px;
    }

    html body #tarteaucitronRoot #tarteaucitronAlertBig .scimone-choix {
        flex-direction: column;
    }

    html body #tarteaucitronRoot #tarteaucitronAlertBig .scimone-choix button {
        width: 100%;
    }
}

/* Boutons du panneau « Gerer les cookies ». */
html body #tarteaucitronRoot .tarteaucitronAllow,
html body #tarteaucitronRoot .tarteaucitronDeny {
    background: #32534e;
    color: #ffffff;
    border: 0;
    border-radius: 999px;
    font-size: 15px !important;
    font-weight: 600;
    line-height: 1.2;
    min-height: 40px;
    padding: 8px 16px;
    margin: 4px;
}

html body #tarteaucitronRoot #tarteaucitronAlertBig :focus-visible,
html body #tarteaucitronRoot #tarteaucitron :focus-visible {
    outline: 3px solid #32534e;
    outline-offset: 2px;
}

html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronMainLine,
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronTitle button,
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronInfo {
    background: #32534e;
    border-color: #32534e;
    color: #ffffff;
}

html body #tarteaucitronRoot #tarteaucitron #tarteaucitronClosePanel {
    background: #32534e;
    color: #ffffff;
}

/* Panneau « Gérer les cookies » : en-tête vert, titre et boutons lisibles sur ce fond. */
html body #tarteaucitronRoot #tarteaucitron #dialogTitle,
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronMainLine,
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronMainLine * {
    color: #ffffff;
}

html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices #tarteaucitronAllAllowed,
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices #tarteaucitronAllDenied,
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices #tarteaucitronPrivacyUrlDialog {
    background: #ffffff;
    color: #32534e;
    border: 0;
    border-radius: 999px;
    font-weight: 600;
    min-height: 40px;
    padding: 10px 20px;
}

html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices #tarteaucitronAllAllowed *,
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices #tarteaucitronAllDenied *,
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices #tarteaucitronPrivacyUrlDialog * {
    color: #32534e;
}

/* Boutons du service : contour vert, plein quand le choix est fait. Le choix se lit aussi a la case. */
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronAsk .tarteaucitronAllow,
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronAsk .tarteaucitronDeny {
    background: #ffffff;
    color: #32534e;
    border: 2px solid #32534e;
    border-radius: 999px;
    font-weight: 600;
    min-height: 40px;
}

html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronLine.tarteaucitronIsAllowed .tarteaucitronAsk .tarteaucitronAllow,
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronLine.tarteaucitronIsDenied .tarteaucitronAsk .tarteaucitronDeny {
    background: #32534e;
    color: #ffffff;
}

html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronLine.tarteaucitronIsAllowed,
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronLine.tarteaucitronIsDenied {
    border-color: #32534e;
}
