/* ========================================
   FOOTER.CSS - Footer et éléments associés
   ======================================== */

/* Footer principal */
.footer {
    background: linear-gradient(135deg, #003d52 0%, #004a63 100%);
    color: white;
    padding: 40px 20px 20px;
    position: relative;
    overflow: hidden;
}

/* Effet de vague animée en haut du footer */
.footer::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    width: 200%;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23003d52' d='M0,30 C240,50 480,10 720,30 C960,50 1200,10 1440,30 L1440,60 L0,60 Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: 50% 100%;
    animation: wave 20s linear infinite;
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Pattern géométrique en arrière-plan */
.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(0, 168, 204, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 168, 204, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 168, 204, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Conteneur du footer */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    position: relative;
    z-index: 1;
}

/* Sections du footer avec animation au hover */
.footer-section {
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.footer-section:hover {
    transform: translateY(-5px);
}

.footer-section h3 {
    margin-bottom: 15px;
    color: #00d4ff;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

/* Ligne décorative sous les titres */
.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, transparent);
    animation: slideRight 2s ease infinite;
}

@keyframes slideRight {
    0% { width: 40px; }
    50% { width: 60px; }
    100% { width: 40px; }
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    line-height: 1.8;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: #00d4ff;
    padding-left: 5px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Info entreprise avec style */
.footer-section p.company-info {
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 168, 204, 0.1);
    border-left: 3px solid #00a8cc;
    border-radius: 5px;
}

.footer-section p.company-info strong {
    color: #00d4ff;
    font-size: 18px;
}

/* Liste de liens du footer avec icônes */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.footer-links li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #00a8cc;
    transition: transform 0.3s ease;
}

.footer-links li:hover::before {
    transform: translateX(5px);
    color: #00d4ff;
}

.footer-links a {
    position: relative;
    display: inline-block;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00a8cc, #00d4ff);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

/* Titre cliquable avec effet glow */
.footer-section h3 a {
    color: #00d4ff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section h3 a:hover {
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
}

/* Bas du footer amélioré */
.footer-bottom {
    text-align: center;
    padding: 30px 20px 20px;
    border-top: 1px solid rgba(0, 168, 204, 0.3);
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.2);
}

/* Fix pour le lien partenaire - IMPORTANT */
.footer-bottom a {
    color: #00a8cc;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-bottom a:hover {
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Liens légaux avec animation */
.footer-legal-links {
    margin-top: 15px;
    font-size: 14px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.footer-legal-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 168, 204, 0.1);
    border-radius: 20px;
    transform: scale(0);
    transition: transform 0.3s ease;
    z-index: -1;
}

.footer-legal-links a:hover {
    color: #00d4ff;
}

.footer-legal-links a:hover::before {
    transform: scale(1);
}

.footer-legal-links span {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 5px;
}

/* Bouton préférences cookies */
.cookie-preferences-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 0 2px;
}

.cookie-preferences-btn:hover {
    color: #00d4ff;
    background: rgba(0, 168, 204, 0.1);
    transform: translateY(-1px);
}

/* Bouton scroll to top intégré au footer */
.footer-scroll-top {
    position: absolute;
    top: -25px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00a8cc, #00d4ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 168, 204, 0.4);
    z-index: 2;
}

.footer-scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 168, 204, 0.6);
    background: linear-gradient(135deg, #00d4ff, #00a8cc);
}

/* ========================================
   RESPONSIVE - FOOTER
   ======================================== */

@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links li {
        padding-left: 0;
    }
    
    .footer-links li::before {
        display: none;
    }
    
    .footer-legal-links {
        font-size: 12px;
    }
    
    .footer-legal-links a {
        margin: 0 5px;
        display: inline-block;
        line-height: 1.8;
    }
    
    .footer-legal-links span {
        display: none;
    }
    
    .footer-scroll-top {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 30px 15px 15px;
    }
    
    .footer::before {
        top: -40px;
        height: 40px;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .footer-section h3 {
        font-size: 18px;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 14px;
    }
    
    .footer-bottom {
        padding: 20px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 25px 10px 10px;
    }
    
    .footer-content {
        gap: 25px;
    }
    
    .footer-section h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .footer-links li {
        margin-bottom: 8px;
    }
    
    .footer-bottom {
        margin-top: 20px;
        padding: 15px 10px;
    }
    
.footer-legal-links {
    margin-top: 15px;
    font-size: 14px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.footer-legal-links::before {
    content: none; /* Supprime tout contenu before existant */
}
.footer-legal-links > span:first-child,
.footer-legal-links > text:first-child {
    margin-right: 10px;
    color: rgba(255, 255, 255, 0.7);
}
    
    .footer-scroll-top {
        width: 40px;
        height: 40px;
        font-size: 20px;
        top: -20px;
    }
}

/* ========================================
   POST-FOOTER - Ultra Modern Design
   ======================================== */

.post-footer {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.post-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(0, 168, 204, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.post-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 168, 204, 0.3) 25%, 
        rgba(0, 168, 204, 0.6) 50%, 
        rgba(0, 168, 204, 0.3) 75%, 
        transparent 100%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.post-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px;
    position: relative;
    z-index: 1;
}

.modern-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.credit-visual {
    position: relative;
}

.modern-icon {
    width: 48px;
    height: 48px;
    position: relative;
}

.icon-layers {
    width: 100%;
    height: 100%;
    position: relative;
}

.layer {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, #00a8cc, #00d4ff);
    animation: float 6s ease-in-out infinite;
}

.layer-1 {
    width: 100%;
    height: 100%;
    opacity: 0.4;
    animation-delay: 0s;
}

.layer-2 {
    width: 75%;
    height: 75%;
    top: 12.5%;
    left: 12.5%;
    opacity: 0.6;
    animation-delay: -2s;
}

.layer-3 {
    width: 50%;
    height: 50%;
    top: 25%;
    left: 25%;
    opacity: 0.8;
    animation-delay: -4s;
    background: linear-gradient(135deg, #00d4ff, #ffffff);
}

@keyframes float {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        box-shadow: 0 0 20px rgba(0, 168, 204, 0.2);
    }
    50% { 
        transform: scale(1.1) rotate(180deg);
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
    }
}

.credit-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.credit-primary {
    display: flex;
    align-items: center;
    gap: 12px;
}

.developed-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    letter-spacing: 0.5px;
}

.opengraphy-brand {
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.brand-text {
    font-size: 24px;
    font-weight: 600;
    background: linear-gradient(135deg, #00a8cc 0%, #00d4ff 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.4s ease;
    position: relative;
}

.opengraphy-brand:hover .brand-text {
    background: linear-gradient(135deg, #ffffff 0%, #00d4ff 50%, #00a8cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
}

.brand-underline {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00a8cc, #00d4ff, #ffffff);
    transition: width 0.4s ease;
}

.opengraphy-brand:hover .brand-underline {
    width: 100%;
}

.credit-secondary {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 4px;
}

.agency-position {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.excellence-badge {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 6px 16px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.badge-content {
    font-size: 11px;
    font-weight: 500;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}

.badge-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 212, 255, 0.2) 50%, 
        transparent 100%);
    animation: glow-sweep 3s ease-in-out infinite;
}

@keyframes glow-sweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Responsive - Ultra Modern Design */
@media (max-width: 768px) {
    .modern-credit {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .credit-content {
        text-align: center;
    }
    
    .credit-primary {
        flex-direction: column;
        gap: 8px;
    }
    
    .credit-secondary {
        justify-content: center;
        gap: 12px;
    }
    
    .modern-icon {
        width: 40px;
        height: 40px;
    }
    
    .brand-text {
        font-size: 20px;
    }
    
    .developed-label {
        font-size: 12px;
    }
    
    .agency-position {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .post-footer-content {
        padding: 24px 15px;
    }
    
    .modern-credit {
        gap: 16px;
    }
    
    .modern-icon {
        width: 36px;
        height: 36px;
    }
    
    .brand-text {
        font-size: 18px;
    }
    
    .developed-label {
        font-size: 11px;
    }
    
    .agency-position {
        font-size: 10px;
        letter-spacing: 0.5px;
    }
    
    .excellence-badge {
        padding: 4px 12px;
    }
    
    .badge-content {
        font-size: 10px;
    }
}