/* Bannière de cookies */
.cookie-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 480px;
    border-radius: 16px;
    background: white;
    border: 2px solid #e0e0e0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    animation: fadeInScale 0.5s ease-out;
    overflow: hidden;
}

@keyframes fadeInScale {
    from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.cookie-banner-inner {
    display: flex;
    flex-direction: column;
}

/* Header - lien continuer sans accepter */
.cookie-header {
    padding: 12px 16px 0 16px;
    text-align: right;
}

.continue-link {
    color: #c88a32;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.continue-link:hover {
    color: #f57c00;
    text-decoration: underline;
}

/* Body - image à gauche, texte à droite */
.cookie-body {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 10px 20px 16px 20px;
    gap: 16px;
}

.cookie-image {
    flex-shrink: 0;
    width: 130px;
}

.cookie-icon {
    width: 130px;
    height: auto;
    display: block;
}

.cookie-text {
    flex: 1;
}

.cookie-text h4 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 700;
    color: #c88a32;
    text-transform: uppercase;
}

.cookie-text p {
    margin: 0;
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

/* Footer - boutons côte à côte */
.cookie-footer {
    display: flex;
    flex-direction: row;
    border-top: 1px solid #e0e0e0;
}

.cookie-customize {
    text-align: center;
    padding: 8px 16px 12px;
}

.customize-link {
    color: #c88a32;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.customize-link:hover {
    color: #f57c00;
    text-decoration: underline;
}

.btn-cookie {
    flex: 1;
    padding: 14px 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    text-align: center;
    line-height: 1.3;
}

.btn-settings {
    background: #f5f5f5;
    color: #888;
    border-right: 1px solid #e0e0e0;
}

.btn-settings:hover {
    background: #eee;
    color: #555;
}

.btn-accept {
    background: white;
    color: #c88a32;
    font-size: 16px;
    font-weight: 700;
}

.btn-accept:hover {
    background: #fff8ee;
}

/* Modal de personnalisation */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.cookie-modal-header {
    padding: 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h3 {
    margin: 0;
    color: #ff9800;
    font-weight: 700;
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.close-modal:hover {
    color: #333;
}

.cookie-modal-body {
    padding: 24px;
}

.cookie-category {
    margin-bottom: 24px;
    padding: 16px;
    background: #fff3e0;
    border-radius: 8px;
    border: 1px solid #ffe0b2;
}

.cookie-category:last-child {
    margin-bottom: 0;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cookie-category-header h4 {
    margin: 0;
    color: #ff9800;
    font-size: 16px;
    font-weight: 600;
}

.required-badge {
    background: #ff9800;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.cookie-category p {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 14px;
}

.cookie-details {
    margin: 8px 0 0 0;
    padding-left: 20px;
    color: #666;
    font-size: 13px;
}

.cookie-details li {
    margin-bottom: 4px;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #ff9800;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.cookie-modal-footer {
    padding: 24px;
    border-top: 1px solid #eee;
    text-align: center;
}

.cookie-modal-footer .btn-cookie {
    min-width: 200px;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner {
        width: calc(100% - 40px);
    }

    .cookie-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cookie-image {
        width: 100px;
    }

    .cookie-icon {
        width: 100px;
    }

    .cookie-text h4 {
        font-size: 18px;
    }

    .cookie-text p {
        font-size: 11px;
    }

    .btn-cookie {
        font-size: 11px;
    }

    .btn-accept {
        font-size: 14px;
    }
}