/* ============================================================
   SOCLE ADMIN – WP-FRANCE THEA
   ============================================================ */
.wrap.cec-admin-wrap,
.wrap {
    max-width: 1600px;
}

.thea-box-grey {
    background: #f1f3f5;
    padding: 28px 32px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.thea-box-grey h1 {
    margin-top: 0;
    font-size: 26px;
}

.thea-box-grey p {
    font-size: 15px;
    margin-bottom: 12px;
}

.thea-box-white {
    background: #ffffff;
    padding: 26px 30px;
    border-radius: 16px;
    margin-bottom: 26px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.thea-box-white h2,
.thea-box-white h3 {
    margin-top: 0;
}

.cec-box-green {
    background: #eefaf0;
    border-left: 5px solid #6fcb7b;
}

.cec-box-yellow-soft {
    background: #fff9dc;
    border-left: 5px solid #f0c84b;
}

.cec-box-red-soft {
    background: #fff1f1;
    border-left: 5px solid #e57373;
}

.cec-cache-note {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff8e1;
    border-left: 4px solid #f4b400;
    color: #4b3b00;
}

.cec-inline-save {
    margin: 18px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(17,24,39,0.08);
}

.thea-box-yellow {
    background: #fff8e1;
    padding: 20px 24px;
    border-radius: 14px;
    margin-bottom: 30px;
    border-left: 5px solid #f4b400;
}

.thea-box-white a {
    text-decoration: none;
}

.thea-box-white a:hover {
    text-decoration: underline;
}

.thea-footer-logo {
    margin-top: 30px;
}

.thea-footer-logo img {
    max-width: 200px;
    height: auto;
}


/* ============================================================
   ADMIN – GUIDE GOOGLE TAG MANAGER
   ============================================================ */
.cec-gtm-guide h3 {
    margin-top: 26px;
    margin-bottom: 8px;
}

.cec-gtm-guide code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 6px;
}

.cec-admin-list {
    margin-left: 20px;
    list-style: disc;
}

.cec-admin-list li {
    margin-bottom: 8px;
}

.cec-guide-alert {
    background: #eef6ff;
    border-left: 5px solid #8ab4f8;
    padding: 14px 16px;
    border-radius: 12px;
    margin: 18px 0;
}

.cec-guide-figure {
    margin: 18px 0 26px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #f9fafb;
}

.cec-guide-figure img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.cec-guide-figure figcaption {
    margin-top: 10px;
    color: #5f6673;
    font-size: 13px;
}

/* ============================================================
   FRONT – COOKIES ÉTOILÉS CLARA
   ============================================================ */
#cec-cookie-root {
    --cec-accent: #E6EFFE;
    --cec-button: #111827;
    --cec-text: #111827;
    --cec-muted: #5f6673;
    --cec-border: rgba(17,24,39,0.12);
    font-family: inherit;
    color: var(--cec-text);
}

.cec-cookie-float {
    position: fixed;
    bottom: 18px;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid var(--cec-border);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.14);
    z-index: 999998;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.cec-position-bottom-left .cec-cookie-float { left: 18px; }
.cec-position-bottom-right .cec-cookie-float { right: 18px; }
.cec-cookie-float.is-visible { display: flex; }

.cec-cookie-banner {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 18px;
    max-width: 940px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--cec-border);
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    z-index: 999999;
    padding: 20px;
    display: none;
    gap: 18px;
    align-items: center;
}

.cec-cookie-banner.is-visible {
    display: flex;
}

.cec-cookie-content {
    flex: 1 1 auto;
}

.cec-cookie-content h2 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.25;
}

.cec-cookie-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--cec-muted);
}

.cec-cookie-privacy {
    margin-top: 8px !important;
    font-size: 13px !important;
}

.cec-cookie-privacy a {
    color: var(--cec-text);
    text-decoration: underline;
}

.cec-cookie-actions,
.cec-modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cec-btn {
    border: 0;
    border-radius: 999px;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    min-height: 42px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.cec-btn:hover {
    transform: translateY(-1px);
}

.cec-btn-primary {
    background: var(--cec-button);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.16);
}

.cec-btn-secondary {
    background: #fff;
    color: var(--cec-text);
    border: 1px solid var(--cec-border);
}

.cec-btn-light {
    background: var(--cec-accent);
    color: var(--cec-text);
}

.cec-cookie-modal {
    position: fixed;
    inset: 0;
    background: rgba(17,24,39,0.42);
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.cec-cookie-modal.is-visible {
    display: flex;
}

.cec-modal-panel {
    position: relative;
    width: min(680px, 100%);
    max-height: calc(100vh - 36px);
    overflow: auto;
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.24);
}

.cec-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid var(--cec-border);
    background: #fff;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.cec-modal-panel h2 {
    margin: 0 42px 10px 0;
    font-size: 24px;
}

.cec-modal-intro {
    color: var(--cec-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.cec-choice-list {
    display: grid;
    gap: 12px;
    margin: 18px 0 22px;
}

.cec-choice {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--cec-border);
    border-radius: 18px;
    background: #fff;
}

.cec-choice.is-locked {
    background: #f9fafb;
}

.cec-choice strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.cec-choice span {
    display: block;
    color: var(--cec-muted);
    font-size: 13px;
    line-height: 1.45;
}

.cec-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 30px;
    flex: 0 0 52px;
}

.cec-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cec-switch span {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #d1d5db;
    border-radius: 999px;
    transition: 0.2s;
}

.cec-switch span:before {
    content: "";
    position: absolute;
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.cec-switch input:checked + span {
    background: var(--cec-button);
}

.cec-switch input:checked + span:before {
    transform: translateX(22px);
}

.cec-choice.is-hidden {
    display: none;
}

@media (max-width: 760px) {
    .cec-cookie-banner {
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        border-radius: 20px;
    }

    .cec-cookie-banner.is-visible {
        display: flex;
    }

    .cec-cookie-actions,
    .cec-modal-actions {
        flex-direction: column-reverse;
    }

    .cec-btn {
        width: 100%;
    }

    .cec-modal-panel {
        padding: 22px;
        border-radius: 20px;
    }

    .cec-choice {
        align-items: flex-start;
    }
}

/* ============================================================
   ADMIN – V1.1 TRACEURS / MODES / PREUVE
   ============================================================ */
.cec-radio-line {
    display: inline-block;
    margin: 0 0 8px;
    line-height: 1.5;
}

.cec-scan-table td,
.cec-scan-table th {
    vertical-align: top;
}

.cec-scan-table code {
    white-space: normal;
    word-break: break-word;
}

.cec-admin-wrap pre {
    max-width: 100%;
    overflow: auto;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 12px;
}

/* ============================================================
   ADMIN – V1.2 REGISTRE DES CONSENTEMENTS
   ============================================================ */
.cec-registry-actions .button {
    margin-right: 8px;
    margin-bottom: 8px;
}

.cec-danger-link {
    border-color: #b32d2e !important;
    color: #b32d2e !important;
}

.cec-registry-table th,
.cec-registry-table td {
    vertical-align: top;
    font-size: 12px;
}

.cec-registry-table code {
    word-break: break-word;
    white-space: normal;
}

.cec-ok {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-weight: 700;
}

.cec-ko {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    background: #fee2e2;
    color: #991b1b;
    font-weight: 700;
}


/* ============================================================
   FRONT – V1.3.1 STYLES DE BANNIÈRE ET LIEN PIED DE PAGE
   ============================================================ */
.cec-cookie-footer-link {
    display: none;
    margin: 18px auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #4b5563;
    font: inherit;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

.cec-cookie-footer-link.is-visible {
    display: block;
}

.cec-reopen-footer_link .cec-cookie-float {
    display: none !important;
}

.cec-premium-modal-accept,
.cec-premium-choice-title {
    display: none;
}

.cec-style-premium_luxe.cec-has-banner::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 999998;
    background: rgba(0, 0, 0, 0.58);
}

.cec-style-premium_luxe .cec-cookie-banner {
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: min(880px, calc(100vw - 36px));
    max-width: 880px;
    margin: 0;
    border-radius: 0;
    border: 0;
    background: #fff !important;
    color: #1f1f1f;
    padding: 58px 66px 56px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.34);
    z-index: 999999;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
}

.cec-style-premium_luxe .cec-cookie-content h2,
.cec-style-premium_luxe .cec-modal-panel h2,
.cec-style-premium_luxe .cec-premium-choice-title {
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
    margin: 0 0 24px;
    color: #111;
}

.cec-style-premium_luxe .cec-cookie-content p,
.cec-style-premium_luxe .cec-modal-intro,
.cec-style-premium_luxe .cec-choice span {
    color: #2f2f2f;
    font-size: 17px;
    line-height: 1.56;
}

.cec-style-premium_luxe .cec-cookie-privacy {
    margin-top: 16px !important;
}

.cec-style-premium_luxe .cec-cookie-privacy a {
    color: #111;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cec-style-premium_luxe .cec-cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
    justify-content: stretch;
    align-items: stretch;
}

.cec-style-premium_luxe .cec-cookie-actions [data-cec-action="reject"] {
    order: 1;
}

.cec-style-premium_luxe .cec-cookie-actions [data-cec-action="accept"] {
    order: 2;
}

.cec-style-premium_luxe .cec-cookie-actions [data-cec-action="customize"] {
    order: 3;
    grid-column: 1 / -1;
    justify-self: start;
    background: transparent !important;
    color: #111 !important;
    border: 0 !important;
    padding: 20px 0 0;
    min-height: auto;
    border-radius: 0;
    box-shadow: none;
    text-transform: none;
    letter-spacing: 0;
    font-size: 17px;
    font-weight: 500;
}

.cec-style-premium_luxe .cec-btn {
    border-radius: 0;
    min-height: 58px;
    padding: 14px 22px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}

.cec-style-premium_luxe .cec-btn-primary,
.cec-style-premium_luxe .cec-btn-secondary,
.cec-style-premium_luxe .cec-btn-light {
    background: #000;
    color: #fff;
    border: 1px solid #000;
    box-shadow: none;
}

.cec-style-premium_luxe .cec-cookie-modal {
    background: rgba(0, 0, 0, 0.58);
}

.cec-style-premium_luxe .cec-modal-panel {
    width: min(720px, calc(100vw - 36px));
    max-width: 720px;
    max-height: calc(100vh - 48px);
    border-radius: 0;
    background: #fff !important;
    color: #1f1f1f;
    padding: 58px 66px 56px;
}

.cec-style-premium_luxe .cec-modal-close {
    display: none;
}

.cec-style-premium_luxe .cec-premium-modal-accept,
.cec-style-premium_luxe .cec-premium-choice-title {
    display: block;
}

.cec-style-premium_luxe .cec-premium-modal-accept {
    margin: 32px 0 34px;
}

.cec-style-premium_luxe .cec-premium-modal-accept .cec-btn {
    min-width: 220px;
}

.cec-style-premium_luxe .cec-premium-choice-title {
    border-top: 1px solid #e5e7eb;
    padding-top: 34px;
    margin-bottom: 28px;
}

.cec-style-premium_luxe .cec-choice-list {
    gap: 28px;
    margin: 0 0 34px;
}

.cec-style-premium_luxe .cec-choice {
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 18px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.cec-style-premium_luxe .cec-choice.is-locked {
    background: transparent;
    color: #9ca3af;
}

.cec-style-premium_luxe .cec-choice.is-locked strong,
.cec-style-premium_luxe .cec-choice.is-locked span {
    color: #b5b5b5;
}

.cec-style-premium_luxe .cec-choice strong {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 12px;
}

.cec-style-premium_luxe .cec-switch {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 2px;
}

.cec-style-premium_luxe .cec-switch input {
    opacity: 1;
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: #000;
}

.cec-style-premium_luxe .cec-switch input:disabled {
    cursor: not-allowed;
}

.cec-style-premium_luxe .cec-switch span {
    display: none;
}

.cec-style-premium_luxe .cec-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 34px;
}

.cec-style-premium_luxe .cec-modal-actions [data-cec-action="accept"] {
    display: none;
}

.cec-style-premium_luxe .cec-modal-actions [data-cec-action="reject"] {
    background: #fff;
    color: #111;
    border: 1px solid #111;
}

.cec-style-premium_luxe .cec-modal-actions [data-cec-action="save"] {
    background: #000;
    color: #fff;
    border: 1px solid #000;
}

@media (max-width: 760px) {
    .cec-style-premium_luxe .cec-cookie-banner,
    .cec-style-premium_luxe .cec-modal-panel {
        width: calc(100vw - 28px);
        padding: 34px 24px;
    }

    .cec-style-premium_luxe .cec-cookie-actions,
    .cec-style-premium_luxe .cec-modal-actions {
        grid-template-columns: 1fr;
    }

    .cec-style-premium_luxe .cec-cookie-content h2,
    .cec-style-premium_luxe .cec-modal-panel h2,
    .cec-style-premium_luxe .cec-premium-choice-title {
        font-size: 19px;
    }

    .cec-style-premium_luxe .cec-cookie-content p,
    .cec-style-premium_luxe .cec-modal-intro,
    .cec-style-premium_luxe .cec-choice span {
        font-size: 15px;
    }
}


.cec-button-preview {
    margin-top: 18px;
    background: rgba(255,255,255,0.65);
}

.cec-button-preview img {
    max-width: 800px;
    width: 100%;
    height: auto;
}
