/* === BANNIÈRE DE COOKIES TERRALADA - VERSION PLEIN ÉCRAN === */
#cookie-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Open Sans', sans-serif;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
}

#cookie-banner.show {
    opacity: 1;
    visibility: visible;
}

.cookie-content {
    max-width: 800px;
    width: 90%;
    padding: 50px;
    background: linear-gradient(135deg, #1f7735 0%, #2d5016 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: slideInScale 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.cookie-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes slideInScale {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.cookie-header {
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.cookie-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #ffffff, #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Fredoka One', cursive;
}

.cookie-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.cookie-text {
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.cookie-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 600;
}

.cookie-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.95;
    text-align: left;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-text .highlight {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 5px;
    font-weight: 600;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cookie-btn {
    padding: 18px 30px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    min-width: 180px;
}

.cookie-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cookie-btn:hover::before {
    left: 100%;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(76, 175, 80, 0.6);
}

.cookie-btn-refuse {
    background: linear-gradient(135deg, #f44336, #da190b);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(244, 67, 54, 0.4);
}

.cookie-btn-refuse:hover {
    background: linear-gradient(135deg, #da190b, #c62828);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(244, 67, 54, 0.6);
}

.cookie-btn-customize {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.4);
}

.cookie-btn-customize:hover {
    background: linear-gradient(135deg, #1976D2, #1565C0);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(33, 150, 243, 0.6);
}

/* Modal de personnalisation - Plus grand */
#cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100000;
    animation: fadeIn 0.3s ease;
}

.cookie-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    max-width: 700px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.5s ease-out;
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.cookie-modal-header {
    background: linear-gradient(135deg, #1f7735 0%, #2d5016 100%);
    color: white;
    padding: 30px;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.cookie-modal-header h3 {
    margin: 0;
    font-size: 1.8rem;
    font-family: 'Fredoka One', cursive;
}

.cookie-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cookie-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.cookie-modal-body {
    padding: 40px;
}

.cookie-category {
    margin-bottom: 30px;
    padding: 25px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    background: #f9f9f9;
    transition: all 0.3s ease;
}

.cookie-category:hover {
    border-color: #1f7735;
    box-shadow: 0 5px 15px rgba(31, 119, 53, 0.1);
}

.cookie-category h4 {
    margin: 0 0 15px 0;
    color: #1f7735;
    font-size: 1.3rem;
    font-weight: 600;
}

.cookie-category p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 30px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .cookie-slider {
    background-color: #1f7735;
}

input:checked + .cookie-slider:before {
    transform: translateX(30px);
}

input:disabled + .cookie-slider {
    background-color: #4CAF50;
    opacity: 0.7;
}

.cookie-modal-footer {
    padding: 30px 40px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 15px;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 0 0 20px 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-content {
        width: 95%;
        padding: 30px 20px;
        margin: 20px;
    }
    
    .cookie-header h1 {
        font-size: 2.2rem;
    }
    
    .cookie-text h3 {
        font-size: 1.5rem;
    }
    
    .cookie-text p {
        font-size: 1rem;
        text-align: center;
    }
    
    .cookie-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cookie-btn {
        width: 100%;
        max-width: 300px;
        margin: 5px 0;
    }
    
    .cookie-modal-content {
        width: 98%;
        margin: 10px;
        max-height: 95vh;
    }
    
    .cookie-modal-body {
        padding: 20px;
    }
    
    .cookie-modal-footer {
        padding: 20px;
        flex-direction: column;
    }
    
    .cookie-category {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .cookie-header h1 {
        font-size: 1.8rem;
    }
    
    .cookie-icon {
        font-size: 3rem;
    }
    
    .cookie-content {
        padding: 20px 15px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Effet de blocage du scroll sur le body */
body.cookie-overlay-active {
    overflow: hidden;
    height: 100vh;
}