/**
 * Styles du footer Purple Telecom
 * Emplacement : /home/yqqyvar/domains/purpletelecom.fr/public_html/includes/footer.css
 * Permissions : 0644
 * Version : 5.0.0 - Modulaire
 */

/* ===== VARIABLES CSS ===== */
:root {
    --purple-primary: #9b59b6;
    --purple-dark: #8e44ad;
    --blue-primary: #3498db;
    --blue-dark: #2980b9;
    --green-success: #10B981;
    --orange-warning: #F59E0B;
    --gray-light: #f8f9fa;
    --gray-medium: #e9ecef;
    --gray-dark: #6c757d;
    --text-primary: #203859;
    --text-secondary: #718096;
    --text-muted: #a0aec0;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* ===== STYLES DU FOOTER ===== */

/* Reset pour le footer */
.purple-footer {
    position: relative;
    background: transparent;
    margin-top: 80px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Screen reader only (accessibilité) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Vague décorative */
.footer-wave {
    position: absolute;
    top: -79px;
    left: 0;
    width: 100%;
    height: 80px;
    overflow: hidden;
}

.footer-wave svg {
    width: 100%;
    height: 100%;
}

/* Contenu principal */
.footer-content {
    background: var(--gray-light);
    color: var(--text-secondary);
    position: relative;
    padding-bottom: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 35px 40px 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
}

/* Section Brand */
.footer-logo {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}

.footer-logo .logo-purple {
    background: linear-gradient(135deg, var(--purple-primary), var(--purple-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo .logo-telecom {
    color: var(--text-primary);
}

.footer-logo .logo-r {
    font-size: 16px;
    font-weight: 400;
    color: var(--purple-primary);
    vertical-align: super;
    margin-left: 2px;
    animation: floatRegistered 4s ease-in-out infinite;
    display: inline-block;
}

@keyframes floatRegistered {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #4a5568;
}

/* Titres de section */
.footer-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    position: relative;
}

/* Infobulles */
.tooltip-link {
    position: relative;
}

.tooltip-bubble {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--purple-primary), var(--purple-dark));
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.3);
}

.tooltip-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--purple-dark);
}

.tooltip-link:hover .tooltip-bubble {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-link:hover {
    color: var(--blue-primary);
    transform: translateX(3px);
}

/* Newsletter */
.footer-text {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
}

.newsletter-input {
    flex: 1;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px 0 0 20px;
    color: #2d3748;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
}

.newsletter-input::placeholder {
    color: var(--text-muted);
}

.newsletter-input:focus {
    border-color: var(--blue-primary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.newsletter-btn {
    padding: 10px 16px;
    background: #203859; /* Bleu nuit comme les titres */
    border: none;
    border-radius: 0 20px 20px 0;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-btn:hover {
    background: #1a2d4a; /* Bleu nuit plus foncé au hover */
    transform: translateX(2px);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 36px;
    height: 36px;
    background: var(--gray-medium);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: var(--blue-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Footer Bottom */
.footer-bottom {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 12px 0;
    margin-top: 20px;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-legal,
.footer-copyright {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.legal-link,
.copyright-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
    position: relative;
}

.legal-link::after,
.copyright-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--blue-primary);
    transition: width 0.2s ease;
}

.legal-link:hover,
.copyright-link:hover {
    color: var(--blue-primary);
}

.legal-link:hover::after,
.copyright-link:hover::after {
    width: 100%;
}

.separator {
    color: #cbd5e0;
    font-size: 11px;
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 13px;
}

.text-purple {
    color: var(--purple-primary) !important;
}

.text-blue {
    color: var(--blue-primary) !important;
}

/* ===== STYLES DU SYSTÈME DE COOKIES ===== */

/* Bannière principale des cookies */
.purple-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.1);
    z-index: 9998;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner-icon {
    flex-shrink: 0;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.cookie-banner-text p {
    font-size: 14px;
    color: var(--gray-dark);
    line-height: 1.5;
}

.cookie-banner-text p a {
    color: var(--blue-primary);
    text-decoration: none;
}

.cookie-banner-text p a:hover {
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Boutons cookies */

/* Boutons cookies - Styles améliorés */
.cookie-btn {
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, var(--blue-primary), var(--purple-primary));
    color: white;
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(155, 89, 182, 0.3);
}

.cookie-btn-reject {
    background: var(--gray-medium);
    color: var(--gray-dark);
}

.cookie-btn-reject:hover {
    background: #dae0e5;
}

.cookie-btn-settings {
    background: transparent;
    color: var(--gray-dark);
    padding: 8px 16px;
}

.cookie-btn-settings:hover {
    color: var(--blue-primary);
}

.cookie-btn-primary {
    background: linear-gradient(135deg, var(--purple-primary), var(--purple-dark)) !important;
    color: white !important;
    padding: 12px 28px !important;
    font-weight: 600 !important;
    border: none !important;
    min-width: 160px;
}

.cookie-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(155, 89, 182, 0.3);
}

.cookie-btn-secondary {
    background: white !important;
    color: var(--purple-primary) !important;
    border: 2px solid var(--purple-primary) !important;
    padding: 12px 28px !important;
    font-weight: 600 !important;
    min-width: 160px;
}

.cookie-btn-secondary:hover {
    background: var(--purple-primary) !important;
    color: white !important;
}

/* Panneau de paramètres */
.cookie-settings-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}



.cookie-settings-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cookie-settings-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.cookie-settings-header {
    padding: 24px;
    border-bottom: 1px solid var(--gray-medium);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-settings-header h2 {
    font-size: 22px !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    margin: 0;
}

.cookie-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray-dark);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cookie-close-btn:hover {
    background: var(--gray-light);
    color: var(--text-primary);
}

.cookie-settings-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.cookie-intro {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--gray-light);
    border-radius: 12px;
    border: 1px solid var(--gray-medium);
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cookie-category h3 {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-category h3 svg {
    flex-shrink: 0;
}

.cookie-description {
    font-size: 13px !important;
    color: var(--text-secondary) !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

/* Footer du panneau de paramètres */
.cookie-settings-footer {
    padding: 24px;
    border-top: 1px solid var(--gray-medium);
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

/* Switches personnalisés */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-switch label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e0;
    transition: background-color 0.3s;
    border-radius: 26px;
}

.cookie-switch label::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: transform 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.cookie-switch input:checked + label {
    background: linear-gradient(135deg, var(--blue-primary), var(--purple-primary)) !important;
}

.cookie-switch input:checked + label::before {
    transform: translateX(24px);
}

/* Switch désactivé (Cookies Essentiels) */
.cookie-switch input[disabled] + label {
    background-color: #94a3b8 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.cookie-switch input[disabled]:checked + label {
    background-color: #94a3b8 !important;
}

.cookie-switch input[disabled] + label::before {
    transform: translateX(24px);
}
/* Bouton flottant (À GAUCHE) */
.cookie-floating-btn {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 45px;
    height: 45px;
    background: var(--gray-medium);
    border: 1px solid #dee2e6;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    z-index: 9997;
    color: var(--gray-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.cookie-floating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background: #dee2e6;
    color: #495057;
}

/* Responsive */
@media (max-width: 968px) {
    .footer-content {
        padding-bottom: 100px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
        padding: 35px 20px 25px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }

    .footer-legal,
    .footer-copyright {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .cookie-banner-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .cookie-settings-content {
        width: 95%;
        max-height: 90vh;
    }

    .cookie-settings-footer {
    padding: 24px;
    border-top: 1px solid var(--gray-medium);
    display: flex;
    gap: 12px;
    justify-content: center !important; /* Forcer le centrage */
    align-items: center;

        flex-direction: row !important;
        justify-content: center !important;
        gap: 10px;
    }

    .cookie-btn {
        width: 100%;
        justify-content: center;
    }

    .cookie-floating-btn {
        bottom: 100px;
        left: 15px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 8px;
    }

    .newsletter-input,
    .newsletter-btn {
        border-radius: 20px;
        width: 100%;
    }

    .footer-wave {
        top: -39px;
        height: 40px;
    }
}