/* ==========================================================
   TROGL'EAU FERTILE — Bandeau de consentement
   ========================================================== */

.tef-consent{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:99999;
    display:none;
    padding:16px;
    background:transparent;
    pointer-events:none;
}

.tef-consent.is-open{
    display:block;
}

.tef-consent__box{
    pointer-events:auto;
    width:min(720px,100%);
    margin:0 auto;
    background:#fff;
    border-radius:var(--rayon,14px);
    box-shadow:0 18px 50px rgba(0,0,0,.22);
    border-top:4px solid var(--vert,#46c942);
    padding:22px 24px;
    max-height:85vh;
    overflow:auto;
    font-size:.92rem;
    color:var(--texte,#374151);
}

.tef-consent__title{
    margin:0 0 8px;
    font-family:'Cormorant Garamond',serif;
    font-size:1.35rem;
    color:#2f3b2f;
}

.tef-consent__text{
    margin:0 0 14px;
    line-height:1.5;
}

.tef-consent__text a{
    color:var(--bleu,#2d7fd3);
    text-decoration:underline;
}

/* Panneau de personnalisation */
.tef-consent__panel{
    margin:0 0 14px;
    padding:14px 16px;
    background:#f7f6f1;
    border-radius:10px;
    display:flex;
    flex-direction:column;
    gap:12px;
}

.tef-consent__panel[hidden]{ display:none; }

.tef-consent__row{ margin:0; }

.tef-consent__label{
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:600;
    cursor:pointer;
}

.tef-consent__label input{
    width:18px;
    height:18px;
    accent-color:var(--vert,#46c942);
    cursor:pointer;
}

.tef-consent__row-desc{
    margin:4px 0 0 28px;
    font-size:.85rem;
    opacity:.8;
    line-height:1.4;
}

/* Boutons */
.tef-consent__actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    justify-content:flex-end;
}

.tef-consent__btn{
    font-family:inherit;
    font-size:.9rem;
    font-weight:600;
    padding:11px 18px;
    border-radius:999px;
    border:2px solid transparent;
    cursor:pointer;
    transition:.2s;
    line-height:1;
}

.tef-consent__btn--accept{
    background:var(--vert,#46c942);
    color:#fff;
}

.tef-consent__btn--accept:hover{
    filter:brightness(.94);
}

.tef-consent__btn--refuse{
    background:#fff;
    color:var(--texte,#374151);
    border-color:#c9d2cb;
}

.tef-consent__btn--refuse:hover{
    border-color:#8fa394;
}

.tef-consent__btn--ghost{
    background:transparent;
    color:var(--bleu,#2d7fd3);
    text-decoration:underline;
    padding-left:6px;
    padding-right:6px;
}

.tef-consent__btn--ghost:hover{
    color:#1f5fa0;
}

.tef-consent__btn[hidden]{ display:none; }

@media(max-width:520px){
    .tef-consent{ padding:10px; }
    .tef-consent__box{ padding:18px; max-height:80vh; }
    .tef-consent__actions{ justify-content:stretch; }
    .tef-consent__btn{ flex:1 1 100%; text-align:center; }
}

/* Respecte les préférences de réduction des animations */
@media (prefers-reduced-motion: reduce){
    .tef-consent__btn{ transition:none; }
}
