/* ============================================
   AMÉLIORATIONS VISUELLES & PARALLAX
   ============================================ */

/* Section FAQ - Style intégré */
#section-faq {
    position: relative;
    padding: 80px 20px;
    overflow: hidden;
}

#section-faq .title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

#section-faq .subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 50px;
    letter-spacing: 1px;
}

/* FAQ Container */
.faq-container {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FAQ Items */
.faq-item {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.faq-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 25px rgba(229, 48, 0, 0.3);
    border-color: rgba(229, 48, 0, 0.4) !important;
}

.faq-question {
    font-family: 'SpartanMB', sans-serif;
    letter-spacing: 1px;
}

.faq-question:hover {
    background: rgba(229, 48, 0, 0.05);
}

.faq-question span {
    flex: 1;
    padding-right: 15px;
    line-height: 1.4;
}

.faq-answer {
    background: rgba(0, 0, 26, 0.3);
}

.faq-answer p {
    font-family: 'SpartanMB', sans-serif;
    letter-spacing: 0.5px;
    text-align: left;
    margin: 0;
}

/* Polices harmonisées */
body .title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 3px;
}

body .subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    letter-spacing: 2px;
}

body .content {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.7;
}

/* Effets Parallax sur les sections */
.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: calc(100% + 100px);
    background-size: cover;
    background-position: center;
    transform: translateZ(0);
    will-change: transform;
}

/* Parallax pour les halos */
body .halo {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* Animation d'entrée pour les sections */
section {
    animation: fadeIn 1s ease-out;
}

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

/* Effet parallax sur les images circulaires */
.circle-image {
    transition: transform 0.3s ease;
}

.circle-image:hover {
    transform: scale(1.05) translateY(-5px);
}

/* Amélioration du formulaire de contact */
#contact-form input:focus,
#contact-form textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 48, 0, 0.3);
}

/* Effet de profondeur sur les content-blocks */
.content-block {
    transition: transform 0.3s ease;
}

.content-block:hover {
    transform: translateZ(10px) scale(1.01);
}

/* Responsive - Ajustements mobiles */
@media (max-width: 768px) {
    #section-faq .title {
        font-size: 2rem;
    }

    #section-faq .subtitle {
        font-size: 1.2rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .faq-answer p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .faq-item {
        margin-bottom: 12px;
    }

    .faq-container {
        padding: 0 10px;
    }
}

/* Animation des achievements */
.achievements > div {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievements > div:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 30px rgba(229, 48, 0, 0.3);
}

/* Effet de glissement sur les boutons */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

/* Effet parallax scroll pour le header */
.header.fixed {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 26, 0.8);
    transition: background 0.3s ease;
}

/* Tech stack - hover amélioré */
.tech-stack img {
    transition: all 0.3s ease;
    filter: grayscale(0.3);
}

.tech-stack img:hover {
    filter: grayscale(0) drop-shadow(0 5px 15px rgba(229, 48, 0, 0.5));
    transform: scale(1.2) rotate(5deg);
}

/* Smooth scroll SANS perspective pour ne pas casser les fixed elements */
html {
    scroll-behavior: smooth;
}

/* Animation d'apparition progressive */
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Effet de vague sur le footer */
.footer {
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 26, 0.5));
}
