/**
 * Bannière CMP — formulaire public Contact IDG
 */

.idg-cmp {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 10050;
    padding: 1rem;
    pointer-events: none;
}

.idg-cmp:not([hidden]) {
    pointer-events: auto;
}

.idg-cmp__inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid var(--gray-border, #e2e8f0);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    align-items: flex-end;
    justify-content: space-between;
}

.idg-cmp__main {
    flex: 1 1 280px;
    min-width: 0;
}

.idg-cmp__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-dark, #1e293b);
    margin-bottom: 0.35rem;
}

.idg-cmp__text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--gray-medium, #334155);
    margin: 0;
}

.idg-cmp__text a {
    color: var(--primary, #0f766e);
    font-weight: 600;
}

.idg-cmp__panel {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-border, #e2e8f0);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.idg-cmp__choice {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--gray-medium, #334155);
    cursor: pointer;
}

.idg-cmp__choice--disabled {
    opacity: 0.85;
    cursor: default;
}

.idg-cmp__choice input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.idg-cmp__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.idg-cmp__btn {
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.idg-cmp__btn--primary {
    background: var(--primary, #0f766e);
    color: #fff;
}

.idg-cmp__btn--primary:hover {
    background: var(--secondary, #115e59);
}

.idg-cmp__btn--secondary {
    background: #fff;
    color: var(--gray-dark, #1e293b);
    border-color: var(--gray-border, #e2e8f0);
}

.idg-cmp__btn--ghost {
    background: transparent;
    color: var(--primary, #0f766e);
    border-color: var(--gray-border, #e2e8f0);
}

body.idg-cmp-open {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (max-width: 640px) {
    .idg-cmp__inner {
        padding: 1rem;
    }

    .idg-cmp__actions {
        width: 100%;
        flex-direction: column;
    }

    .idg-cmp__btn {
        width: 100%;
        text-align: center;
    }
}
