/* Variables pour maintenance */
:root {
    --bg-primary: radial-gradient(circle, #0a0a1a, #000000); /* Dégradé cosmique plus profond */
    --color-text: #ffffff;
    --color-accent: #00d4ff; /* Bleu cosmique vibrant */
    --color-mercury: #00b4ff; /* Bleu frais */
    --color-venus: #ffd700; /* Or chaleureux */
    --color-mars: #ff4d4d; /* Rouge intense */
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
    --shadow-light: 0 2px 5px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.3);
    --glow: 0 0 12px rgba(0, 212, 255, 0.6); /* Glow vivid trend 2025 */
    --transition: all 0.4s ease-in-out; /* Fluide */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: default; /* Cursor classe par défaut */
}

a, button {
    cursor: pointer; /* Cursor interactif */
}

body {
    font-family: 'Montserrat', sans-serif; /* Font élégante pour corps */
    color: var(--color-text);
    background: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Orbitron', sans-serif; /* Cosmique pour titres */
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    padding: var(--spacing-sm);
    z-index: 1000;
    box-shadow: var(--shadow-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

header h1 {
    font-size: 1.4rem;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text);
}

#nav-menu {
    list-style: none;
    display: flex;
    gap: 15px;
}

#nav-menu li a {
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
}

#nav-menu li a:hover {
    color: var(--color-accent);
    text-shadow: var(--glow);
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-content {
    z-index: 2;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: var(--spacing-md);
    border-radius: 15px;
    box-shadow: var(--glow);
    max-width: 80%;
    transition: var(--transition);
}

.hero h2 {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
}

.btn-cta {
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--color-accent);
    color: var(--color-text);
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--glow);
}

.btn-cta:hover {
    background-color: #00aaff;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.8); /* Glow plus intense */
}

#cubeCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.offers-section, .services-section, .portfolio-section, .equipe-section, .testimonials-section, .contact-section, footer {
    padding: var(--spacing-lg) var(--spacing-md);
    opacity: 0;
    transform: translateY(50px); /* Pour slide-up */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; /* Animation fluide */
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.offers-section {
    text-align: center;
    background-color: #ffffff;
    color: #333;
}

.offers-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: var(--spacing-md);
    color: #333;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.offer-card {
    padding: var(--spacing-md);
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.offer-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover), var(--glow);
}

.offer-card h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.offer-card p {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
    color: #555;
}

.offer-card .price {
    font-size: 1.6rem;
    margin-bottom: var(--spacing-sm);
    font-weight: bold;
}

.mercury {
    background: linear-gradient(135deg, #00b4ff, #007acc);
    color: #fff;
    border: 2px solid #005f99;
}

.mercury h3, .mercury .price {
    color: #fff;
}

.venus {
    background: linear-gradient(135deg, #ffda73, #ffd700);
    color: #333;
    border: 2px solid #b8860b;
}

.venus h3, .venus .price {
    color: #b8860b;
}

.mars {
    background: linear-gradient(135deg, #ff4d4d, #cc0000);
    color: #fff;
    border: 2px solid #990000;
}

.mars h3, .mars .price {
    color: #fff;
}

.btn-buy, .btn-learn-more {
    padding: 8px 16px;
    background-color: #333;
    color: var(--color-text);
    text-decoration: none;
    border-radius: 20px;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-buy:hover, .btn-learn-more:hover {
    background-color: #555;
    box-shadow: var(--glow);
    transform: scale(1.05);
}

.services-section {
    background-color: #111;
    text-align: center;
}

.services-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    margin-bottom: var(--spacing-md);
    color: #ffcc00;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: var(--spacing-md);
    border-radius: 15px;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover), var(--glow);
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.service-card p {
    color: #dddddd;
    margin-bottom: var(--spacing-sm);
}

.portfolio-section {
    background-color: #0a0a0a;
    text-align: center;
}

.portfolio-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    color: #ffcc00;
    margin-bottom: var(--spacing-md);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: var(--spacing-md);
    border-radius: 15px;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.portfolio-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: var(--spacing-sm);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover), var(--glow);
}

.portfolio-card h3 {
    font-size: 1.4rem;
    color: var(--color-text);
}

.portfolio-card p {
    color: #dddddd;
}

.equipe-section {
    padding: var(--spacing-lg) var(--spacing-md);
    background-color: #0a0a0a; /* Fond cosmique clean */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.equipe-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05), transparent); /* Nébuleuse très subtile */
    opacity: 0.3;
    z-index: 0;
}

.equipe-section > * {
    position: relative;
    z-index: 1;
}

.equipe-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #ffcc00;
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 0 5px rgba(255, 204, 0, 0.3); /* Glow subtil classe */
}

.organigram {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.ceo-container {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.ceo-photo, .team-photo {
    width: 100%;  /* Rends-la fluide */
    max-width: 180px;  /* Limite max sur desktop */
    height: auto;  /* Garde le ratio d'aspect */
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    transition: var(--transition);
    border: 2px solid rgba(255, 215, 0, 0.2);
}

.ceo-photo:hover, .team-photo:hover {
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
}

.ceo-container h3 {
    font-size: 1.8rem;
    color: #ffd700;
    margin-top: var(--spacing-sm);
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.2);
}

.ceo-container p {
    font-size: 1rem;
    color: #dddddd;
    font-style: italic; /* Touch classe */
}

.tasks-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    max-width: 800px;
}

.task-card {
    width: 180px;
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 215, 0, 0.1); /* Bordure minimaliste */
}

.task-card:hover {
    box-shadow: var(--shadow-hover), 0 0 15px rgba(255, 215, 0, 0.3);
    transform: translateY(-5px);
}

.task-card h4 {
    font-size: 1.2rem;
    color: var(--color-accent);
    margin-bottom: 5px;
}

.task-card p {
    font-size: 0.9rem;
    color: #dddddd;
}

.task-card img {
    margin-bottom: var(--spacing-sm);
}

.testimonials-section {
    background-color: #111;
    text-align: center;
}

.testimonials-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    margin-bottom: var(--spacing-md);
    color: #ffcc00;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: var(--spacing-md);
    border-radius: 15px;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover), var(--glow);
}

.testimonial-card p {
    font-style: italic;
    color: #dddddd;
}

.testimonial-card cite {
    display: block;
    margin-top: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--color-accent);
}

.contact-section {
    background-color: #0a0a0a;
    text-align: center;
}

.contact-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    color: #ffcc00;
    margin-bottom: var(--spacing-md);
}

.contact-section form {
    max-width: 450px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-section label {
    text-align: left;
    font-weight: bold;
    color: var(--color-text);
}

.contact-section input, .contact-section textarea {
    padding: var(--spacing-sm);
    border: none;
    border-radius: 5px;
    background-color: #333;
    color: var(--color-text);
    font-size: 0.9rem;
    transition: var(--transition);
}

.contact-section input:focus, .contact-section textarea:focus {
    box-shadow: var(--glow);
}

.contact-section button[type="submit"] {
    background-color: var(--color-accent);
    cursor: pointer;
    transition: var(--transition);
    padding: var(--spacing-sm);
    border: none;
    border-radius: 5px;
    color: var(--color-text);
    font-weight: bold;
}

.contact-section button[type="submit"]:hover {
    background-color: #00aaff;
    box-shadow: var(--glow);
    transform: scale(1.05);
}

#formMessage {
    margin-top: var(--spacing-sm);
    font-size: 1rem;
    padding: var(--spacing-sm);
    border-radius: 5px;
}

#formMessage.success {
    color: #00ff00;
    background: rgba(0, 255, 0, 0.1);
}

#formMessage.error {
    color: #ff0000;
    background: rgba(255, 0, 0, 0.1);
}

footer {
    background-color: #000;
    padding: var(--spacing-md);
    text-align: center;
    transition: var(--transition);
}

footer p {
    color: #999;
    margin-bottom: 8px;
}

.social-icons a {
    margin: 0 8px;
    color: var(--color-text);
    font-size: 1.3rem;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--color-accent);
    text-shadow: var(--glow);
    transform: scale(1.1);
}

#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    transition: var(--transition);
    box-shadow: var(--glow);
}

#backToTop:hover {
    background-color: #00aaff;
    transform: scale(1.1);
}

.cursor {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: width 0.3s, height 0.3s, border 0.3s;
    z-index: 9999;
}

.cursor.expand {
    width: 40px;
    height: 40px;
    border: 2px solid transparent;
    background: rgba(0, 212, 255, 0.3);
}

/* Responsive optimisé pour portable */
@media (max-width: 768px) {
    .ceo-photo, .team-photo {
        max-width: 120px;  /* Plus petit sur mobile */
        height: auto;  /* Maintient le ratio */
    }

    .ceo-container, .task-card {
        display: flex;
        flex-direction: column;
        align-items: center;  /* Centre tout sur mobile */
        text-align: center;
    }

    #nav-menu.active {
        display: flex;
    }

    #nav-menu li {
        text-align: center;
        margin: 10px 0;
    }

    header {
        justify-content: space-between;
        padding: var(--spacing-sm);
    }

    .hero-content {
        max-width: 95%;
        padding: var(--spacing-sm);
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .offers-section, .services-section, .portfolio-section, .equipe-section, .testimonials-section, .contact-section {
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .offers-grid, .services-grid, .portfolio-grid, .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .offer-card, .service-card, .portfolio-card, .testimonial-card {
        margin: 0 auto;
        max-width: 95%;
    }

    .organigram {
        max-width: 100%;
    }

    .tasks-grid {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .task-card {
        width: 100%;
        max-width: 95%;
    }

    .ceo-photo, .team-photo {
        width: 120px;
        height: 120px;
    }

    .ceo-container h3 {
        font-size: 1.4rem;
    }

    .task-card h4 {
        font-size: 1.1rem;
    }

    .contact-section form {
        max-width: 95%;
        gap: 10px;
    }

    .contact-section input, .contact-section textarea {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .btn-cta, .btn-buy, .btn-learn-more {
        font-size: 1rem;
        padding: 10px 20px;
    }

    .reveal {
        transform: translateY(20px); /* Moins de slide sur mobile pour fluidité */
        transition-duration: 0.6s;
    }

    #backToTop {
        bottom: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.2rem;
    }

    .hamburger {
        font-size: 1.2rem;
    }

    .hero h2 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .offer-card h3, .service-card h3, .portfolio-card h3 {
        font-size: 1.4rem;
    }

    .offer-card .price {
        font-size: 1.4rem;
    }

    .btn-cta, .btn-buy, .btn-learn-more {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    .social-icons a {
        font-size: 1.1rem;
        margin: 0 5px;
    }
}