/* ------------------------------------------------------------------
   OTHER LEVEL - Habillage du bandeau de consentement
   Remplace le jaune par defaut de tarteaucitron par la charte doree.

   Palette (identique a child-custom.css du theme) :
     dore        #D6BE91
     dore clair  #F7F2E9
     texte       #222222

   Le CSS de tarteaucitron est injecte par son propre script :
   les !important sont donc necessaires pour passer devant.
   ------------------------------------------------------------------ */

/* --- Panneau et bandeau : fond sobre, pas de noir dur --- */
#tarteaucitronRoot #tarteaucitronAlertBig,
#tarteaucitron .tarteaucitronBorder,
#tarteaucitron #tarteaucitronServices .tarteaucitronMainLine {
    background: #ffffff !important;
    color: #222222 !important;
    border-color: #D6BE91 !important;
}

#tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronDisclaimerAlert,
#tarteaucitron #tarteaucitronServices .tarteaucitronTitle,
#tarteaucitron #tarteaucitronServices .tarteaucitronMainLine .tarteaucitronName {
    color: #222222 !important;
}

/* --- En-tetes de sections : doré clair --- */
#tarteaucitron #tarteaucitronServices .tarteaucitronTitle button,
#tarteaucitron #tarteaucitronServices .tarteaucitronHidden {
    background: #F7F2E9 !important;
    color: #222222 !important;
}

/* --- Boutons : doré plein, texte foncé ---
   Accepter et refuser recoivent STRICTEMENT le meme traitement
   visuel : refuser doit rester aussi simple qu'accepter. */
#tarteaucitronRoot .tarteaucitronAllow,
#tarteaucitronRoot .tarteaucitronDeny,
#tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronAsk .tarteaucitronAllow,
#tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronAsk .tarteaucitronDeny,
#tarteaucitron #tarteaucitronServices #tarteaucitronAllAllowed.tarteaucitronIsSelected,
#tarteaucitron #tarteaucitronServices #tarteaucitronAllDenied.tarteaucitronIsSelected,
#tarteaucitron #tarteaucitronServices #tarteaucitronAllDenied2.tarteaucitronIsSelected,
#tarteaucitron #tarteaucitronServices .tarteaucitronLine.tarteaucitronIsAllowed .tarteaucitronAllow,
#tarteaucitron #tarteaucitronServices .tarteaucitronLine.tarteaucitronIsDenied .tarteaucitronDeny,
#tarteaucitron #tarteaucitronServices #tarteaucitronServices_mandatory .tarteaucitronLine button.tarteaucitronAllow,
.tac_activate .tarteaucitronAllow,
.tac_activate .tac_float .tarteaucitronAllow,
.tarteaucitron-magic-block button {
    background: #D6BE91 !important;
    background-color: #D6BE91 !important;
    color: #222222 !important;
    border: 1px solid #D6BE91 !important;
    border-radius: 2px !important;
    font-weight: 500 !important;
    letter-spacing: 0.3px !important;
    text-transform: none !important;
}

/* --- Survol : doré assombri, lisible --- */
#tarteaucitronRoot .tarteaucitronAllow:hover,
#tarteaucitronRoot .tarteaucitronDeny:hover,
#tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronAsk .tarteaucitronAllow:hover,
#tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronAsk .tarteaucitronDeny:hover,
.tarteaucitron-magic-block button:hover {
    background: #C3A874 !important;
    background-color: #C3A874 !important;
}

/* --- Ligne de service autorisee : liseré doré --- */
#tarteaucitron #tarteaucitronServices .tarteaucitronLine.tarteaucitronIsAllowed {
    border-color: #D6BE91 !important;
}

/* --- Liens (politique de confidentialite, en savoir plus) --- */
#tarteaucitron #tarteaucitronPrivacyUrl,
#tarteaucitron #tarteaucitronPrivacyUrlDialog,
#tarteaucitronRoot a {
    color: #222222 !important;
    text-decoration: underline !important;
}

/* --- Pastille de rappel en bas de page --- */
#tarteaucitronAlertSmall #tarteaucitronManager #tarteaucitronDot #tarteaucitronDotGreen,
#tarteaucitronAlertSmall #tarteaucitronManager #tarteaucitronDot #tarteaucitronDotYellow {
    background-color: #D6BE91 !important;
}

#tarteaucitronAlertSmall {
    background: #222222 !important;
}

/* --- Voile de fond : moins opaque, on garde la boutique visible --- */
#tarteaucitronBack {
    background: #222222 !important;
    opacity: 0.55 !important;
}

/* ------------------------------------------------------------------
   AJOUT 2026-07-26 : liberer le bouton "retour en haut"

   Probleme constate en production : le bandeau masquait la fleche de
   remontee rapide du theme, impossible a atteindre tant que le
   consentement n'etait pas donne.

   Cause : le bandeau de tarteaucitron est en position fixed, left 0,
   width 100%, avec un z-index de 2147483645. Le bouton .back-to-top du
   theme Jeweelish est en right 1.875rem / bottom 1.875rem, z-index 10.
   Le bandeau passe donc devant, sur toute la largeur.

   Correctif : on arrete le bandeau avant le bord droit et on reduit sa
   hauteur. Le bouton reste accessible, le bandeau reste pleinement
   lisible et son texte centre ne bouge quasiment pas.

   width:auto est indispensable : sans lui, le width:100% de
   tarteaucitron rend le "right" sans effet.
   ------------------------------------------------------------------ */

/* Ordinateur : bouton de 2,3rem a 1,875rem du bord, on reserve 90px. */
#tarteaucitronRoot #tarteaucitronAlertBig {
    left: 0 !important;
    right: 90px !important;
    width: auto !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

/* Mobile et tablette : bouton de 2,1rem a 1rem du bord, 56px suffisent.
   On reserve moins pour ne pas trop resserrer le texte sur petit ecran. */
@media (max-width: 991px) {
    #tarteaucitronRoot #tarteaucitronAlertBig {
        right: 56px !important;
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }
}

/* Le panneau de personnalisation, lui, reste pleine largeur : il est
   modal, le bouton de remontee n'a aucun interet a ce moment-la. */
#tarteaucitron {
    right: 0 !important;
}
