/* Styles extraits du template base.html */

/* Animations pour le thème de flammes */
.flame-text {
    display: inline-block;
    background: linear-gradient(to bottom, var(--flame-highlight), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
    position: relative;
    text-shadow: 0 0 3px rgba(255, 183, 0, 0.3);
}

.flame-text::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to top, rgba(230, 57, 0, 0), rgba(255, 119, 0, 0.6));
    filter: blur(5px);
    animation: flicker 3s infinite alternate;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    25% { opacity: 0.8; }
    50% { opacity: 0.9; }
    75% { opacity: 0.7; }
}

/* Styles pour le pixel divider */
.pixel-divider {
    position: relative;
    height: 20px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
}

.pixel-divider-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4' viewBox='0 0 8 4'%3E%3Cpath d='M0 0h2v2H0V0zm2 2h2v2H2V2zm2-2h2v2H4V0zm2 2h2v2H6V2z' fill='%23ff4500'/%3E%3C/svg%3E") repeat-x;
    background-size: 8px 4px;
    image-rendering: pixelated;
    transform: translateY(-50%);
    animation: pixel-slide 20s linear infinite;
}

@keyframes pixel-slide {
    0% { background-position: 0 0; }
    100% { background-position: 100% 0; }
}

/* Styles pour le formulaire de newsletter */
.newsletter-section {
    flex: 1;
    min-width: 250px;
    max-width: 100%;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.footer-section {
    flex: 1 1 250px;
    max-width: 100%;
}

/* Styles pour les éléments pixel art du footer */
.pixel-box {
    border: 4px solid;
    border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M0 0h8v1H1v7H0V0zm7 7h1v1H7V7zm-1 0h1v1H6V7zm-1 0h1v1H5V7zm-1 0h1v1H4V7zm-1 0h1v1H3V7zm-1 0h1v1H2V7zm5-1h1v1H7V6zm0-1h1v1H7V5zm0-1h1v1H7V4zm0-1h1v1H7V3zm0-1h1v1H7V2zm0-1h1v1H7V1z' fill='%23ffcc00'/%3E%3C/svg%3E") 2 stretch;
    image-rendering: pixelated;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 4px;
    transition: transform 0.3s steps(3);
    height: 100%;
    display: flex;
    flex-direction: column;
    word-break: break-word;
}

.pixel-box:hover {
    transform: translateY(-5px);
}

.pixel-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.pixel-link {
    display: flex;
    align-items: center;
    color: #ddd;
    text-decoration: none;
    padding: 5px;
    transition: all 0.2s steps(2);
    border-left: 3px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pixel-link:hover {
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
    padding-left: 10px;
    background-color: rgba(255, 255, 255, 0.1);
}

.pixel-icon {
    margin-right: 8px;
    color: var(--accent-color);
    transition: transform 0.3s steps(2);
}

.pixel-link:hover .pixel-icon {
    transform: translateY(-2px) scale(1.2);
}

.newsletter-form .form-group {
    display: flex;
    margin-bottom: 10px;
    width: 100%;
}

.newsletter-input {
    flex: 1;
    padding: 10px;
    border: 2px solid var(--dark-color);
    border-radius: 4px 0 0 4px;
    background-color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    transition: all 0.3s ease;
    max-width: 100%;
    min-width: 0;
    width: 0; /* Permet au flex de gérer correctement la largeur */
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(255, 69, 0, 0.5);
}

.pixel-input {
    border: 3px solid;
    border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M0 0h8v1H1v7H0V0zm7 7h1v1H7V7zm-1 0h1v1H6V7zm-1 0h1v1H5V7zm-1 0h1v1H4V7zm-1 0h1v1H3V7zm-1 0h1v1H2V7zm5-1h1v1H7V6zm0-1h1v1H7V5zm0-1h1v1H7V4zm0-1h1v1H7V3zm0-1h1v1H7V2zm0-1h1v1H7V1z' fill='%23333'/%3E%3C/svg%3E") 3 stretch;
    image-rendering: pixelated;
}

.newsletter-btn {
    background: linear-gradient(to bottom, var(--accent-color), var(--primary-color));
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pixel-btn {
    border: 3px solid;
    border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M0 0h8v1H1v7H0V0zm7 7h1v1H7V7zm-1 0h1v1H6V7zm-1 0h1v1H5V7zm-1 0h1v1H4V7zm-1 0h1v1H3V7zm-1 0h1v1H2V7zm5-1h1v1H7V6zm0-1h1v1H7V5zm0-1h1v1H7V4zm0-1h1v1H7V3zm0-1h1v1H7V2zm0-1h1v1H7V1z' fill='%23ffcc00'/%3E%3C/svg%3E") 3 stretch;
    image-rendering: pixelated;
    transition: all 0.2s steps(2);
}

.newsletter-btn:hover {
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    transform: translateY(-2px);
}

.pixel-btn:hover {
    transform: translateY(-4px) scale(1.05);
    filter: brightness(1.2);
}

.form-consent {
    font-size: 12px;
    color: #aaa;
    margin-top: 5px;
    line-height: 1.4;
    max-width: 100%;
    overflow-wrap: break-word;
}

/* Styles pour les liens sociaux */
.pixel-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.pixel-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid;
    border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M0 0h8v1H1v7H0V0zm7 7h1v1H7V7zm-1 0h1v1H6V7zm-1 0h1v1H5V7zm-1 0h1v1H4V7zm-1 0h1v1H3V7zm-1 0h1v1H2V7zm5-1h1v1H7V6zm0-1h1v1H7V5zm0-1h1v1H7V4zm0-1h1v1H7V3zm0-1h1v1H7V2zm0-1h1v1H7V1z' fill='%23ffcc00'/%3E%3C/svg%3E") 2 stretch;
    image-rendering: pixelated;
    transition: all 0.2s steps(2);
    text-decoration: none;
}

.pixel-social-link:hover {
    transform: translateY(-4px) scale(1.1);
    background-color: var(--primary-color);
    color: white;
}

/* Style pour le copyright */
.pixel-copyright {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 4px solid;
    border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4' viewBox='0 0 8 4'%3E%3Cpath d='M0 0h2v2H0V0zm2 2h2v2H2V2zm2-2h2v2H4V0zm2 2h2v2H6V2z' fill='%23ff4500'/%3E%3C/svg%3E") 4 repeat;
    image-rendering: pixelated;
    text-align: center;
}

/* Styles améliorés pour le header et la navigation */
header {
    transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    background: rgba(51, 51, 51, 0.95);
    padding: 0.5rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 1.8rem;
}

/* Navigation styles */
.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav ul li a {
    position: relative;
    overflow: hidden;
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav ul li a i {
    margin-right: 6px;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

nav ul li a:hover i {
    transform: translateY(-2px);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
    border-radius: 3px;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Menu mobile */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
}

/* Responsive styles */
@media (max-width: 992px) {
    /* Ajustements pour tablettes et écrans moyens */
    .footer-container {
        gap: 25px;
    }
    
    .footer-section {
        flex: 1 1 45%;
    }
    
    .newsletter-section {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: var(--dark-color);
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        padding: 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        z-index: 100;
        gap: 2rem;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    nav ul li a {
        padding: 1rem;
        border-left: 3px solid transparent;
    }
    
    nav ul li a:hover {
        border-left: 3px solid var(--primary-color);
    }
    
    /* Responsive footer et newsletter */
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-section {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .newsletter-form .form-group {
        max-width: 100%;
    }
    
    .pixel-social {
        display: flex;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .pixel-box {
        border-width: 2px;
        padding: 10px;
        min-height: auto;
    }
}

/* Améliorations supplémentaires pour les petits écrans */
@media (max-width: 576px) {
    .footer-container {
        gap: 20px;
    }
    
    .footer-section {
        padding: 12px 8px;
        margin-bottom: 10px;
    }
    
    .footer-section h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .pixel-links {
        gap: 5px;
    }
    
    .pixel-link {
        font-size: 0.85rem;
        padding: 3px;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-input,
    .newsletter-btn {
        width: 100%;
        border-radius: 4px;
    }
    
    .newsletter-btn {
        margin-top: 5px;
        padding: 8px;
    }
    
    .pixel-copyright {
        font-size: 0.8rem;
        padding: 10px 0;
        margin-top: 20px;
    }
    
    .form-consent {
        font-size: 0.7rem;
    }
    
    .pixel-social-link {
        width: 35px;
        height: 35px;
    }
}