/* ============================================
   SYNTEXS - PREMIUM HOMEPAGE REDESIGN
   Effets 3D, Glassmorphism & Animations
   ============================================ */

/* ============================================
   VARIABLES CSS PERSONNALISÉES
   ============================================ */
:root {
    /* Couleurs principales */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-dark: linear-gradient(135deg, #0c0f1a 0%, #1a1f35 50%, #0c0f1a 100%);
    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);

    /* Couleurs accent */
    --accent-purple: #a855f7;
    --accent-blue: #667eea;
    --accent-gold: #ecba19;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    /* Alerts Dark Mode */
    --alert-info-bg: rgba(13, 202, 240, 0.15);
    --alert-info-border: rgba(13, 202, 240, 0.3);
    --alert-info-text: #6edff6;

    --alert-primary-bg: rgba(102, 126, 234, 0.15);
    --alert-primary-border: rgba(102, 126, 234, 0.3);
    --alert-primary-text: #a3b8db;

    --alert-success-bg: rgba(25, 135, 84, 0.15);
    --alert-success-border: rgba(25, 135, 84, 0.3);
    --alert-success-text: #75b798;

    --alert-warning-bg: rgba(255, 193, 7, 0.1);
    --alert-warning-border: rgba(255, 193, 7, 0.3);
    --alert-warning-text: #ffda6a;

    /* Effets 3D */
    --perspective: 1000px;
    --rotate-intensity: 15deg;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   ANIMATIONS KEYFRAMES
   ============================================ */

/* Flottement 3D */
@keyframes float3d {

    0%,
    100% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg);
    }

    25% {
        transform: translateY(-15px) rotateX(2deg) rotateY(-2deg);
    }

    50% {
        transform: translateY(-20px) rotateX(0deg) rotateY(2deg);
    }

    75% {
        transform: translateY(-10px) rotateX(-2deg) rotateY(0deg);
    }
}

/* Glow pulsant */
@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.4),
            0 0 40px rgba(118, 75, 162, 0.2);
    }

    50% {
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.6),
            0 0 60px rgba(118, 75, 162, 0.4);
    }
}

/* Gradient animé */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Apparition slide-up */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Rotation 3D continue */
@keyframes spin3d {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(360deg);
    }
}

/* Wave animation */
@keyframes waveMove {
    0% {
        transform: translateX(0) translateZ(0) scaleY(1);
    }

    50% {
        transform: translateX(-25%) translateZ(0) scaleY(0.8);
    }

    100% {
        transform: translateX(-50%) translateZ(0) scaleY(1);
    }
}

/* Particules flottantes */
@keyframes particleFloat {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.6;
    }

    25% {
        transform: translate(10px, -20px) rotate(90deg);
        opacity: 0.8;
    }

    50% {
        transform: translate(-5px, -40px) rotate(180deg);
        opacity: 0.4;
    }

    75% {
        transform: translate(15px, -20px) rotate(270deg);
        opacity: 0.7;
    }
}

/* Text reveal */
@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Neon glow pour les numéros */
@keyframes neonGlow {

    0%,
    100% {
        text-shadow: 0 0 10px var(--accent-cyan),
            0 0 20px var(--accent-cyan),
            0 0 30px var(--accent-blue);
    }

    50% {
        text-shadow: 0 0 20px var(--accent-cyan),
            0 0 40px var(--accent-cyan),
            0 0 60px var(--accent-blue);
    }
}

/* ============================================
   HERO SECTION REDESIGN
   ============================================ */
.hero-redesign {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--gradient-dark);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

.hero-redesign::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(118, 75, 162, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(0, 245, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

/* Conteneur particules */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    opacity: 0.5;
    animation: particleFloat 8s ease-in-out infinite;
    box-shadow: 0 0 10px var(--accent-cyan);
}

.particle:nth-child(2) {
    animation-delay: -2s;
    left: 20%;
    top: 30%;
    width: 12px;
    height: 12px;
}

.particle:nth-child(3) {
    animation-delay: -4s;
    left: 60%;
    top: 20%;
    width: 6px;
    height: 6px;
}

.particle:nth-child(4) {
    animation-delay: -6s;
    left: 80%;
    top: 60%;
    width: 10px;
    height: 10px;
}

.particle:nth-child(5) {
    animation-delay: -1s;
    left: 40%;
    top: 70%;
    width: 5px;
    height: 5px;
}

.particle:nth-child(6) {
    animation-delay: -3s;
    left: 10%;
    top: 80%;
    width: 8px;
    height: 8px;
}

.particle:nth-child(7) {
    animation-delay: -5s;
    left: 70%;
    top: 40%;
    width: 7px;
    height: 7px;
}

.particle:nth-child(8) {
    animation-delay: -7s;
    left: 90%;
    top: 10%;
    width: 9px;
    height: 9px;
}

/* Hero titre animé */
.hero-title-animated {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    /* Suppression gradient text global pour assurer lisibilité */
    /* background: linear-gradient(...) supprimé */
    -webkit-background-clip: border-box;
    -webkit-text-fill-color: initial;
    background-clip: border-box;
    animation: textReveal 1s ease-out forwards;
    text-shadow: none;
}

/* Support fallback pour les navigateurs sans support background-clip */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .hero-title-animated {
        color: #ffffff;
        -webkit-text-fill-color: currentColor;
    }
}

.hero-title-animated .highlight {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero sous-titre */
.hero-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    animation: textReveal 1s ease-out 0.3s forwards;
    opacity: 0;
}

/* Image Hero avec effet 3D flottant */
.hero-image-3d {
    animation: float3d 6s ease-in-out infinite;
    transform-style: preserve-3d;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.4));
}

/* ============================================
   BOUTONS GLASSMORPHISM - STYLE ÉLÉGANT
   ============================================ */
.btn-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.35s ease-out;
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    color: #fff;
    text-decoration: none !important;
}

.btn-glass:focus,
.btn-glass:active,
.btn-glass:visited {
    text-decoration: none !important;
    color: #fff;
}

.btn-glass-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-glass-primary:hover {
    background: linear-gradient(135deg, #7b8ef5 0%, #8a5cb8 100%);
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.35);
}

/* ============================================
   CARTES 3D GLASSMORPHISM
   ============================================ */
.card-3d-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition-smooth);
    transform-style: preserve-3d;
    perspective: var(--perspective);
}

.card-3d-glass:hover {
    transform: perspective(1000px) rotateY(5deg) rotateX(-3deg) translateZ(10px);
    box-shadow: var(--glass-shadow),
        0 15px 40px rgba(102, 126, 234, 0.15);
    border-color: var(--accent-cyan);
}

/* Effet tilt interactif (JS requis pour le suivi souris) */
.card-tilt {
    transition: var(--transition-smooth);
    transform-style: preserve-3d;
}

.card-tilt .card-tilt-content {
    transform: translateZ(50px);
    transition: var(--transition-smooth);
}

/* ============================================
   SECTION SERVICES REDESIGN
   ============================================ */
.services-redesign {
    background: var(--gradient-dark);
    padding: 100px 0;
    position: relative;
}

.service-card-3d {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition-bounce);
    transform-style: preserve-3d;
    cursor: pointer;
}

.service-card-3d:hover {
    transform: perspective(1000px) rotateY(10deg) rotateX(-5deg) translateZ(20px);
    border-color: var(--accent-cyan);
    box-shadow:
        -20px 20px 60px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(0, 245, 255, 0.15);
}

.service-card-3d .icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    transform: translateZ(30px);
}

.service-card-3d:hover .icon-wrapper {
    transform: translateZ(50px) rotateY(-10deg);
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}

.service-card-3d .icon-wrapper img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.service-card-3d h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 15px;
    transform: translateZ(20px);
}

.service-card-3d p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    transform: translateZ(10px);
}

/* ============================================
   SECTION RÉALISATIONS REDESIGN
   ============================================ */
.realisations-redesign .card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.realisations-redesign .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    border-color: var(--accent-purple);
}

.realisations-redesign .card-img-top {
    transition: var(--transition-smooth);
    height: 220px;
    overflow: hidden;
}

.realisations-redesign .card-img-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.realisations-redesign .card:hover .card-img-top {
    /* Pas de déformation pour conserver la résolution d'origine */
    transform: none;
}

.realisations-redesign .overlay {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    backdrop-filter: blur(10px);
}

/* ============================================
   SECTION PROCESSUS REDESIGN
   ============================================ */
.processus-redesign {
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.step-card-3d {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 50px 35px 35px;
    position: relative;
    transition: var(--transition-bounce);
    transform-style: preserve-3d;
    margin-top: 20px;
}

.step-card-3d:hover {
    transform: translateX(10px);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 40px rgba(0, 245, 255, 0.15);
}

.step-number {
    position: absolute;
    top: -35px;
    left: 30px;
    font-size: 100px;
    font-weight: 900;
    line-height: 1;
    /* Dégradé bleu-violet */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #466fb5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Effet 3D avec ombre portée */
    filter: drop-shadow(3px 3px 0px rgba(70, 111, 181, 0.4)) drop-shadow(6px 6px 0px rgba(102, 126, 234, 0.2)) drop-shadow(9px 9px 15px rgba(0, 0, 0, 0.3));
    /* Animation subtile */
    transition: all 0.3s ease;
}

.step-card-3d:hover .step-number {
    transform: translateY(-5px) scale(1.05);
    filter: drop-shadow(4px 4px 0px rgba(70, 111, 181, 0.5)) drop-shadow(8px 8px 0px rgba(102, 126, 234, 0.3)) drop-shadow(12px 12px 20px rgba(0, 0, 0, 0.4));
}

.step-card-3d h3 {
    color: #fff;
    position: relative;
    z-index: 1;
}

.step-card-3d p {
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 1;
}

/* ============================================
   SECTION FAQ REDESIGN 3D
   ============================================ */
.faq-redesign {
    padding: 80px 0;
}

.faq-redesign .accordion-item {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border) !important;
    border-radius: 20px !important;
    margin-bottom: 20px;
    overflow: hidden;
    transition: var(--transition-bounce);
    transform-style: preserve-3d;
}

.faq-redesign .accordion-item:hover {
    border-color: var(--accent-cyan) !important;
    transform: perspective(1000px) translateZ(10px) rotateX(-2deg);
    box-shadow: 0 20px 50px rgba(0, 245, 255, 0.15);
}

.faq-redesign .accordion-button {
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 24px 28px;
    border-radius: 20px !important;
}

.faq-redesign .accordion-button:focus {
    box-shadow: none;
}

.faq-redesign .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(0, 245, 255, 0.1) 100%);
    color: var(--accent-cyan);
    border-radius: 20px 20px 0 0 !important;
}

.faq-redesign .accordion-button::after {
    filter: brightness(0) invert(1);
    transition: var(--transition-smooth);
}

.faq-redesign .accordion-button:not(.collapsed)::after {
    filter: invert(83%) sepia(51%) saturate(3600%) hue-rotate(130deg) brightness(105%) contrast(101%);
}

.faq-redesign .accordion-body {
    color: rgba(255, 255, 255, 0.8);
    padding: 16px 28px 24px;
    font-size: 1rem;
    line-height: 1.7;
}

/* ============================================
   FOOTER REDESIGN PREMIUM
   ============================================ */
.footer-redesign {
    position: relative;
    background: var(--gradient-dark);
    overflow: hidden;
}

/* Wave séparateur animé */
.footer-wave {
    position: absolute;
    top: -100px;
    left: 0;
    width: 200%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%230c0f1a'/%3E%3C/svg%3E");
    background-size: 50% 100px;
    animation: waveMove 10s linear infinite;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition-smooth);
}

.footer-glass-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

/* Bouton dans le footer - même effet que btn-glass-primary */
.footer-glass-card .btn-glass-primary {
    color: #fff !important;
}

.footer-glass-card .btn-glass-primary:hover {
    background: linear-gradient(135deg, #7b8ef5 0%, #8a5cb8 100%);
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.35);
    color: #fff !important;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-smooth);
    display: inline-block;
}

.footer-link:hover {
    color: var(--accent-cyan);
    transform: translateX(5px);
}

.footer-social-icon {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: #fff;
    transition: var(--transition-smooth);
    margin: 0 8px;
}

.footer-social-icon:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    color: #fff;
}

/* ============================================
   ANIMATIONS AU SCROLL
   ============================================ */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate-delay-1 {
    transition-delay: 0.1s;
}

.scroll-animate-delay-2 {
    transition-delay: 0.2s;
}

.scroll-animate-delay-3 {
    transition-delay: 0.3s;
}

.scroll-animate-delay-4 {
    transition-delay: 0.4s;
}

.scroll-animate-delay-5 {
    transition-delay: 0.5s;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Écrans FHD (1920x1080) et inférieurs - ajuste marge H1 */
@media (max-height: 1000px) {
    .hero-redesign {
        padding-top: 90px;
    }
}

@media (max-width: 1200px) and (max-height: 900px) {
    .hero-redesign {
        padding-top: 120px;
    }
}

@media (max-width: 992px) {
    .hero-title-animated {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .service-card-3d:hover {
        transform: translateY(-10px);
    }

    .step-number {
        font-size: 80px;
    }
}

@media (max-width: 768px) {
    .hero-redesign {
        padding-top: 1px;
        min-height: auto;
    }

    .hero-title-animated {
        font-size: 1.75rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .btn-glass {
        padding: 12px 24px;
        font-size: 14px;
    }

    .service-card-3d {
        padding: 25px 20px;
    }

    .step-number {
        font-size: 60px;
        top: -20px;
    }

    .footer-wave {
        display: none;
    }
}

/* ============================================
   UTILITAIRES
   ============================================ */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.border-glass {
    border: 1px solid var(--glass-border);
}

.glow-cyan {
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.3);
}

.glow-purple {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
}

/* Désactiver le hover sur les pages où c'est statique */
.card-3d-glass.no-hover:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: var(--glass-border) !important;
}