/* --- VARIABLES --- */
:root {
    /* Couleurs extraites de ton logo */
    --bg-dark: #030b2e; /* Fond principal (Bleu très sombre) */
    --bg-card: #0a133d; /* Fond des cartes (Légèrement plus clair) */
    --primary-gradient: linear-gradient(135deg, #d946ef 0%, #8b5cf6 100%); /* Rose vers Violet */
    --text-white: #ffffff;
    --text-gray: #b3b9d6; /* Gris bleuté pour le texte secondaire */
    --accent-glow: rgba(139, 92, 246, 0.3); /* Lueur violette */
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden; /* Évite le scroll horizontal */
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- HEADER --- */
header {
    background: rgba(3, 11, 46, 0.95); /* Fond semi-transparent */
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -1px;
}

.logo-subtitle {
    font-size: 0.6rem;
    color: #a78bfa; /* Violet clair */
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-gray);
    font-size: 0.95rem;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--text-white);
}

.btn-nav {
    background: var(--primary-gradient);
    padding: 10px 25px;
    border-radius: 50px;
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-nav:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* --- HERO SECTION --- */
.hero {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: var(--primary-gradient);
    padding: 15px 35px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    transition: 0.3s;
}

.btn-secondary {
    border: 1px solid rgba(255,255,255,0.2);
    padding: 15px 35px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-3px);
}

.hero-visual {
    flex: 1;
    position: relative;
}

.hero-img {
    width: 100%;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 2;
}

.glowing-circle {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: var(--primary-gradient);
    border-radius: 50%;
    filter: blur(80px); /* Effet de lumière diffuse derrière l'image */
    z-index: 1;
    opacity: 0.6;
}

/* --- SECTIONS COMMUNES --- */
.section-padding { padding: 100px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 10px; }
.section-subtitle { text-align: center; color: var(--text-gray); margin-bottom: 60px; }

/* --- CARDS / SERVICES --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    border-color: #8b5cf6;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- CONTACT SECTION --- */
.contact-wrapper {
    display: flex;
    gap: 50px;
    background: var(--bg-card);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.info-item i {
    font-size: 1.5rem;
    color: #d946ef;
}

.info-box-highlight {
    margin-top: auto;
    background: rgba(139, 92, 246, 0.1);
    padding: 20px;
    border-radius: 10px;
    border-left: 3px solid #d946ef;
}

/* Formulaire */
.contact-form {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-gray);
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px 15px;
    background: #030b2e; /* Fond très sombre pour les inputs */
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #d946ef;
    box-shadow: 0 0 10px rgba(217, 70, 239, 0.2);
}

.full-width { width: 100%; border: none; cursor: pointer; font-size: 1rem; }

/* --- FOOTER --- */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 50px;
    color: var(--text-gray);
}

/* MOBILE */
@media (max-width: 768px) {
    .hero-layout, .contact-wrapper {
        flex-direction: column;
    }
    
    .nav-links { display: none; } /* Cache le menu desktop sur mobile */
    .hamburger { display: block; color: white; font-size: 1.5rem; cursor: pointer; }
    
    .hero h1 { font-size: 2.2rem; }
}

/* --- AJOUTS FONCTIONNELS (New) --- */

/* État actif du menu mobile */
@media (max-width: 768px) {
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px; /* Juste sous le header */
        right: 0;
        background: rgba(3, 11, 46, 0.98);
        width: 100%;
        padding: 20px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        animation: slideDown 0.3s ease-out;
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Classe pour l'animation au scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
/* --- NOUVEAUX STYLES POUR L'OFFRE --- */

/* 1. Le Badge dans le Hero */
.offer-badge {
    display: inline-block;
    background: rgba(217, 70, 239, 0.15); /* Fond rose très léger */
    color: #d946ef; /* Texte rose fluo */
    border: 1px solid rgba(217, 70, 239, 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(217, 70, 239, 0.1);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(217, 70, 239, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(217, 70, 239, 0); }
    100% { box-shadow: 0 0 0 0 rgba(217, 70, 239, 0); }
}

/* 2. Le Ruban "OFFERT" sur la carte */
.card {
    position: relative; /* Nécessaire pour placer le ruban */
    overflow: hidden; /* Coupe le ruban qui dépasse */
}

.card-ribbon {
    position: absolute;
    top: 25px;
    right: -28px;
    background: #d946ef; /* Rose */
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    padding: 5px 40px;
    transform: rotate(45deg); /* Rotation diagonale */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}
/* --- AJOUT RUBAN CADEAU "OFFERT" --- */

/* 1. On cible la 2ème carte (Site Vitrine OFFERT) */
.grid-3 .card:nth-child(2) {
    position: relative;
    overflow: hidden;
    border: 2px solid #ef4444; /* Bordure rouge */
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

/* 2. Le ruban rouge */
.grid-3 .card:nth-child(2)::after {
    content: 'CADEAU';
    position: absolute;
    top: 25px;
    right: -35px;
    background-color: #ef4444;
    color: white;
    font-weight: bold;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 8px 40px;
    transform: rotate(45deg);
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    z-index: 10;
    pointer-events: none;
}

/* Effet au survol pour cette carte */
.grid-3 .card:nth-child(2):hover {
    border-color: #ef4444;
    transform: translateY(-10px) scale(1.02);
}