/* ========================================
   INDEX PAGE STYLES
   Modern Design with Animations
   ======================================== */

/* ----------- GENERAL STYLES ----------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    background: url('../../assets/images/chalutier.jpg') no-repeat center center fixed;
    background-size: cover;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Overlay pour améliorer la lisibilité */
    z-index: -1;
}

/* Override index-styles.css to support RGPD footer */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    background: url('../../assets/images/chalutier.jpg') no-repeat center center fixed;
    background-size: cover;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: transparent;
    padding: 20px;
    border-radius: 10px;
    box-shadow: none;
}

/* Hide the old fixed footer */
footer:not(.rgpd-footer) {
    display: none;
}

/* Enhanced RGPD Footer Styles with improved text visibility */
.rgpd-footer {
    background: rgba(0, 0, 0, 0.1); /* Very light transparency */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.rgpd-footer-links {
    gap: 30px;
}

.rgpd-footer-link {
    color: #000000; /* Black color for maximum visibility */
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.7); /* White text shadow for visibility against any background */
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rgpd-footer-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.rgpd-footer-link:hover {
    color: #0056b3; /* Dark blue for hover state */
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.rgpd-footer-link:hover::before {
    transform: translateX(100%);
}

.rgpd-footer-copyright {
    color: #333333; /* Dark gray for copyright text */
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.7); /* White text shadow for visibility */
    font-weight: 400;
    margin-top: 15px;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .rgpd-footer {
        padding: 15px;
    }
    
    .rgpd-footer-links {
        gap: 15px;
    }
    
    .rgpd-footer-link {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .container {
        background: transparent;
        padding: 15px;
        margin: 10px;
    }
}

/* Notification bubble styles */
.notification-bubble {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    max-width: 300px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification-bubble.show {
    transform: translateX(0);
}

.notification-bubble.hide {
    transform: translateX(100%);
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.notification-icon {
    font-size: 1.2em;
}

.notification-text strong {
    display: block;
    margin-bottom: 5px;
}

.notification-text p {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.4;
}

.notification-text a {
    color: #ffcc00;
    text-decoration: underline;
    font-weight: bold;
}

.notification-text a:hover {
    color: #ffffff;
    text-decoration: none;
}

.close-notification {
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    line-height: 1;
}

/* ----------- COOKIE CONSENT ----------- */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #2c3e50, #4a6491);
    color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-width: 350px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent.hide {
    transform: translateY(100%);
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-icon {
    font-size: 2em;
    text-align: center;
}

.cookie-text strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.cookie-text p {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.5;
}

.cookie-text a {
    color: #ffcc00;
    text-decoration: underline;
}

.cookie-text a:hover {
    color: #ffffff;
    text-decoration: none;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.cookie-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accept-btn {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
}

.accept-btn:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: translateY(-2px);
}

.refuse-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.refuse-btn:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-2px);
}

/* Welcome message styles */
.welcome-message {
    font-size: 1.2em;
    text-align: center;
    margin: 20px 0;
    color: #333;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.7);
}

/* Home button styles */
.home-button {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-shadow: none;
}

.home-button:hover {
    background: linear-gradient(135deg, #0056b3, #003d80);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* ----------- ANIMATIONS ----------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.8;
    }
}

@keyframes fadeInWelcome {
    from {
        opacity: 0.6;
    }
    to {
        opacity: 1;
    }
}

/* ----------- HEADING ----------- */
h1 {
    font-size: 2.5rem; /* Reduced from 3rem */
    background: linear-gradient(90deg, #ff9966, #ff5e62);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s infinite alternate;
    margin-bottom: 15px; /* Reduced from 20px */
    font-weight: 700;
}

/* ----------- PARAGRAPH ----------- */
p {
    font-size: 1.2rem;
    opacity: 0.8;
    line-height: 1.6;
    animation: fadeIn 2.5s ease forwards;
    margin-bottom: 30px;
}

/* ----------- WELCOME MESSAGE ----------- */
.welcome-message {
    font-size: 1.5rem; /* Reduced from 1.8rem */
    font-weight: bold;
    color: #ffcc00;
    animation: fadeInWelcome 2s infinite alternate;
    margin-bottom: 20px; /* Reduced from 30px */
}

/* ----------- BUTTON ----------- */
.home-button {
    display: inline-block;
    padding: 12px 25px; /* Reduced from 15px 30px */
    font-size: 15px; /* Reduced from 16px */
    color: white;
    background: linear-gradient(135deg, #007BFF, #0056b3);
    text-decoration: none;
    border-radius: 6px; /* Reduced from 8px */
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    text-align: center; /* Center the text horizontally */
}

.home-button:hover {
    background: linear-gradient(135deg, #0056b3, #003d80);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.home-button:active {
    transform: translateY(-1px);
}

/* ----------- FOOTER ----------- */
footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 14px;
    position: fixed;
    width: 100%;
    bottom: 0;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ----------- RESPONSIVE ----------- */
@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .welcome-message {
        font-size: 1.5rem;
    }
    
    p {
        font-size: 1.1rem;
    }
    
    .home-button {
        padding: 12px 25px;
        font-size: 15px;
    }
    
    .notification-bubble {
        max-width: 300px;
        right: 10px;
        top: 10px;
    }
    
    .notification-content {
        padding: 15px;
    }
    
    .cookie-consent {
        max-width: 300px;
        left: 10px;
        bottom: 10px;
        padding: 15px;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 25px 15px;
        margin: 0 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .welcome-message {
        font-size: 1.3rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    .home-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    footer {
        padding: 15px 10px;
        font-size: 12px;
    }
    
    .notification-bubble {
        max-width: calc(100% - 20px);
        right: 10px;
        top: 10px;
    }
    
    .cookie-consent {
        max-width: calc(100% - 20px);
        left: 10px;
        bottom: 10px;
    }
}