/* ==========================================
   TOOI.FR - Page en construction
   Fichier CSS principal
   ========================================== */

/* Reset et configuration de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #ffffff;
    background:
        /* Halo vert en haut à gauche */
        radial-gradient(ellipse 800px 600px at 10% 15%, rgba(0, 255, 136, 0.12) 0%, transparent 50%),
        /* Halo violet en bas à droite */
        radial-gradient(ellipse 700px 700px at 90% 85%, rgba(138, 43, 226, 0.15) 0%, transparent 50%),
        /* Halo vert central droit */
        radial-gradient(circle 500px at 85% 40%, rgba(0, 255, 136, 0.08) 0%, transparent 60%),
        /* Halo violet central gauche */
        radial-gradient(circle 450px at 20% 70%, rgba(138, 43, 226, 0.1) 0%, transparent 60%),
        /* Gradient de profondeur principal */
        radial-gradient(ellipse at center, #0d0d0d 0%, #000000 100%),
        /* Base noire */
        #000000;
    background-attachment: fixed;
    background-size: 100% 100%;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    animation: backgroundPulse 15s ease-in-out infinite;
}

/* Animation subtile du background */
@keyframes backgroundPulse {
    0%, 100% {
        background-position: 10% 15%, 90% 85%, 85% 40%, 20% 70%, center, center;
    }
    50% {
        background-position: 15% 20%, 85% 80%, 80% 45%, 25% 65%, center, center;
    }
}

/* Conteneur principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
}

/* En-tête principal */
.header {
    text-align: center;
    margin-bottom: 60px;
    padding-top: 60px;
}

.construction-icon {
    font-size: 5rem;
    display: block;
    margin-bottom: 20px;
    animation: iconGlow 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px #00ff88);
}

@keyframes iconGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px #00ff88);
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 40px #00ff88) drop-shadow(0 0 60px #8a2be2);
        transform: scale(1.05);
    }
}

.site-name {
    font-size: 4rem;
    font-weight: bold;
    background: linear-gradient(90deg, #00ff88, #8a2be2, #00ff88);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.subtitle {
    font-size: 1.5rem;
    color: #cccccc;
    margin-bottom: 20px;
}

.description {
    font-size: 1.1rem;
    color: #aaaaaa;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
    font-weight: 300;
}

/* Barre de progression */
.progress-container {
    max-width: 600px;
    margin: 0 auto 60px;
}

.progress-label {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #00ff88;
}

.progress-bar {
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.progress-fill {
    height: 100%;
    width: 75%;
    background: linear-gradient(90deg, #00ff88, #8a2be2);
    border-radius: 15px;
    animation: progressAnimation 4s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
}

@keyframes progressAnimation {
    0%, 100% {
        width: 70%;
    }
    50% {
        width: 75%;
    }
}

/* Grille des fonctionnalités */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #00ff88;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(0, 255, 136, 0.1);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #00ff88;
}

.feature-description {
    font-size: 0.9rem;
    color: #cccccc;
    line-height: 1.6;
}

/* Section Ce qui vous attend */
.upcoming-section {
    margin-top: 80px;
    padding-top: 40px;
}

.upcoming-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 50px;
    color: #ffffff;
    font-weight: bold;
}

.upcoming-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.upcoming-card {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(138, 43, 226, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

.upcoming-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 15px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.3), rgba(138, 43, 226, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upcoming-card:hover::before {
    opacity: 1;
}

.upcoming-card:hover {
    transform: translateY(-5px) scale(1.02);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(138, 43, 226, 0.1));
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.upcoming-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.3));
    transition: all 0.3s ease;
}

.upcoming-card:hover .upcoming-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.5)) drop-shadow(0 0 30px rgba(138, 43, 226, 0.5));
}

.upcoming-card-title {
    font-size: 1.4rem;
    color: #00ff88;
    margin-bottom: 15px;
    font-weight: bold;
}

.upcoming-card-description {
    font-size: 0.95rem;
    color: #bbbbbb;
    line-height: 1.6;
}

/* Section Projets */
.projects-section {
    margin-top: 100px;
    padding-top: 60px;
    border-top: 2px solid rgba(0, 255, 136, 0.3);
}

.projects-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(138, 43, 226, 0.5);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    transition: left 0.5s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: #00ff88;
    box-shadow: 0 15px 40px rgba(0, 255, 136, 0.4);
    background: rgba(0, 255, 136, 0.08);
}

.project-card h3 {
    font-size: 1.8rem;
    color: #00ff88;
    margin-bottom: 20px;
    font-weight: bold;
}

.project-card p {
    font-size: 1rem;
    color: #cccccc;
    line-height: 1.8;
    margin-bottom: 0;
    flex-grow: 1;
}

.project-button {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(135deg, #00ff88, #8a2be2);
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
    position: relative;
    overflow: hidden;
    margin-top: 25px;
    align-self: center;
}

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

.project-button:hover::before {
    width: 300px;
    height: 300px;
}

.project-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.5);
}

/* Orbes flottants d'arrière-plan */
.orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.15), transparent);
    top: -100px;
    left: -100px;
    animation: floatOrb 8s ease-in-out infinite;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.15), transparent);
    bottom: -50px;
    right: -50px;
    animation: floatOrb 10s ease-in-out infinite reverse;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1), transparent);
    top: 50%;
    right: 10%;
    animation: floatOrb 12s ease-in-out infinite;
}

@keyframes floatOrb {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-30px) scale(1.1);
        opacity: 0.6;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .upcoming-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-name {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .upcoming-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .site-name {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .description {
        font-size: 1rem;
    }

    .upcoming-title {
        font-size: 1.8rem;
    }

    .projects-title {
        font-size: 2rem;
    }

    .construction-icon {
        font-size: 3.5rem;
    }
}

@media (max-width: 480px) {
    .site-name {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .description {
        font-size: 0.9rem;
    }

    .upcoming-title {
        font-size: 1.5rem;
    }

    .upcoming-card {
        padding: 25px 20px;
    }

    .upcoming-icon {
        font-size: 3rem;
    }

    .project-card {
        padding: 30px 20px;
    }

    .project-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}
