/* ===============================
   CONTENEUR :
   =============================== */
#cc-main {
    font-family: 'Raleway';
}

#cc-main .cm {
    background: #ffffff !important;
    border-radius: 22px !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.12),
    0 -8px 30px rgba(0, 0, 0, 0.20) !important;

    max-width: 620px !important;
    margin: 0 auto !important;
    padding: 32px 36px !important;
}

/* ===============================
   EFFET DÉTACHÉ : halo léger
   =============================== */
#cc-main .cm::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 22px;
    background: radial-gradient(
            circle at 50% 110%,
            rgba(0, 0, 0, 0.05),
            transparent 60%
    );
}

/* ===============================
   MODE MOBILE — contraste renforcé
   =============================== */
@media (max-width: 700px) {
    /* Image cookie légèrement plus grande sur mobile */
    .cookie-img {
        width: 180px !important;
    }

    /* Boutons plus espacés */
    #cc-main .cm__btns {
        gap: 12px !important;
    }

}


/* ===============================
   TITRE
   =============================== */
#cc-main .cm__title {
    color: #C4402F !important;
    font-size: 1.85rem !important;
    margin-bottom: 10px !important;
    font-weight: 900 !important;
    text-align: center !important;
}

/* ===============================
   TEXTE DU MESSAGE
   =============================== */
#cc-main .cm__texts {
    padding: 0 !important;
}

#cc-main .cm__desc,
.cookie-text {
    font-size: 1rem !important;
    color: #333 !important;
    line-height: 1.55 !important;
}

#cc-main .cm__desc {
    padding-bottom: 0 !important;
}

/* ===============================
   IMAGE COOKIE
   =============================== */

.cookie-img-wrapper {
    display: flex !important;
    justify-content: center !important;
    margin: 16px auto 8px auto !important;
}

.cookie-img {
    width: 160px !important;
    height: auto !important;
    opacity: 1;
    user-select: none;
}

/* ===============================
   BOUTONS
   =============================== */

/* On remet le conteneur en grid */
#cc-main .cm__btns {
    display: grid !important;
    grid-template-columns: 1fr 1fr; /* 2 colonnes */
    gap: 10px !important;
}

/* 1er bouton (ACCEPTER) → sur toute la ligne */
#cc-main .cm__btns .cm__btn:nth-child(1) {
    grid-column: 1 / 3; /* colonne 1 à 2, donc full width */
}

/* 2ᵉ bouton (JE CHOISIS) → colonne 1 */
#cc-main .cm__btns .cm__btn:nth-child(2) {
    grid-column: 2;
}

/* 3ᵉ bouton (REFUSER) → colonne 2 */
#cc-main .cm__btns .cm__btn:nth-child(3) {
    grid-column: 1;
}

/* Réordonner les boutons */
#cc-main .cm__btn[data-role="all"] {
    order: 1;
}

#cc-main .cm__btn[data-role="show"] {
    order: 2;
}

#cc-main .cm__btn[data-role="necessary"] {
    order: 3;
}


/* Sur mobile → on repasse tout en colonne */
@media (max-width: 480px) {
    #cc-main .cm__btns {
        grid-template-columns: 1fr !important;
    }

    #cc-main .cm__btns .cm__btn {
        grid-column: 1 !important;
    }
}

/* Style général */
#cc-main .cm__btn {
    border-radius: 10px !important;
    padding: 12px 22px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    width: 100% !important;
    border: none !important;
}

/* ====== 1) J’ACCEPTE ====== */
#cc-main .cm__btn[data-role="all"] {
    background: #C4402F !important;
    color: #fff !important;
    font-weight: 800 !important;
}

#cc-main .cm__btn[data-role="all"]:hover {
    background: #A53524 !important;
    transform: translateY(-1px);
}

/* ====== 2) JE REFUSE ====== */
#cc-main .cm__btn[data-role="necessary"] {
    background: #ececee78 !important;
    color: #666 !important;
    border: 0px solid #e5e5e5 !important;
}

#cc-main .cm__btn[data-role="necessary"]:hover {
    background: #e9e9ea !important;
}

/* ====== 3) JE CHOISIS ====== */
#cc-main .cm__btn[data-role="show"] {
    background: #ececee78 !important;
    color: #555 !important;
    border: 0px solid #e5e5e5 !important;
}

#cc-main .cm__btn[data-role="show"]:hover {
    background: #edeef1 !important;
}

/* ===============================
   RESPONSIVE
   =============================== */
@media (max-width: 600px) {

    #cc-main .cm {
        max-width: 92% !important;
        padding: 24px !important;
    }

    .cookie-img {
        width: 130px !important;
    }

    #cc-main .cm__btns {
        gap: 10px !important;
    }

    .btn-cookie-settings {
        bottom: 80px !important;
    }
}

/* ==============
   BTN OUVERTURE (petit bouton cookie)
   ============== */

.btn-cookie-settings {
    position: fixed;
    bottom: 10px;
    left: 10px;
    width: 45px;
    height: 44px;
    cursor: pointer;
    z-index: 99999;
    border: none;
    border-radius: 50%;
    background-color: #ce5750;
    color: white;
}

.btn-cookie-settings:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .12), 0 4px 8px rgba(0, 0, 0, .06);
}

.btn-cookie-settings .material-symbols-sharp {
    font-size: 35px;
    line-height: 43px;
}

