/* --- Modern Elite Scale CSS --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700;800&display=swap');

:root {
    --primary: #4F46E5;       /* Vibrant Indigo */
    --primary-hover: #4338CA;
    --primary-glow: rgba(79, 70, 229, 0.5);
    
    --secondary: #38BDF8;     /* Sky Blue */
    --accent: #F43F5E;        /* Rose alert/accent */
    
    --bg-dark: #030712;       /* Very dark space blue */
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.08);
    
    --text-main: #F9FAFB;     /* Off-white */
    --text-muted: #9CA3AF;    /* Cool Gray */
    
    --gradient-brand: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-text: linear-gradient(to right, #818CF8, #E0E7FF);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.3, 1);
}

/* ================== BASE & RESETS ================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    color-scheme: dark;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, .logo, .form-title {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ================== TYPOGRAPHY & UTILS ================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.section {
    padding: 60px 0; /* Réduction de 100px à 60px sur PC */
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem auto; /* Réduction de 4rem à 2rem */
}

.section-header {
    text-align: center;
}

.relative {
    position: relative;
}

.glass {
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 16px;
}

/* ================== THEME TOGGLE & LIGHT MODE ================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.btn-theme {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}
.btn-theme:hover {
    color: var(--primary);
    transform: rotate(15deg) scale(1.1);
}

body.light-mode {
    /* Fond principal très clair, type Slate 50 */
    --bg-dark: #F8FAFC;
    
    /* Cartes et zones avec effet de verre plus opaques */
    --surface: rgba(255, 255, 255, 0.85);
    --surface-hover: rgba(255, 255, 255, 1);
    --border-light: rgba(0, 0, 0, 0.08);
    
    /* Couleurs de texte pour une lisibilité parfaite */
    --text-main: #0F172A; /* Slate 900 très foncé pour les titres */
    --text-muted: #475569; /* Slate 600 pour les descriptions */
    
    /* On force le dégradé des titres à être plus sombre et visible */
    --gradient-text: linear-gradient(135deg, #4338CA, #2563EB);
    --primary-glow: rgba(79, 70, 229, 0.25);
}

body.light-mode header,
body.light-mode .glass-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08); /* Ombre douce */
}
body.light-mode .ambient-bg {
    display: none; /* Supprime complètement les orbes lumineuses en arrière-plan pour le mode clair */
}
body.light-mode .glass {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}
body.light-mode .btn-outline {
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--text-main);
}
body.light-mode .btn-outline:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--text-muted);
}
body.light-mode .nav-links {
    background: rgba(248, 250, 252, 0.98); /* Fond du menu mobile clair */
}
body.light-mode .consultation-form-area {
    background: rgba(255, 255, 255, 0.7);
}
body.light-mode .site-footer {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}
body.light-mode .tut-thumb .overlay {
    display: none; /* Désactive complètement l'overlay pour afficher l'image claire et nette */
}
body.light-mode .tut-thumb img {
    filter: none; /* Affiche la photo avec ses couleurs originales sans filtre */
    opacity: 1;
}
body.light-mode .hero-logo-img {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1); /* Ombre beaucoup plus douce en mode clair */
    border-color: rgba(0, 0, 0, 0.08); /* Bordure atténuée */
}
body.light-mode .avatar-circle {
    background: #fff;
    border-color: rgba(0,0,0,0.1);
}
body.light-mode .social-circle,
body.light-mode .contact-icon {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}
body.light-mode .social-circle:hover {
    color: white; /* Restera blanc sur fond bleu primary */
}
body.light-mode .floating-card i {
    background: rgba(0, 0, 0, 0.05);
}
body.light-mode .read-more-btn:hover {
    color: var(--primary); /* Au lieu de blanc pour le mode clair */
}
body.light-mode .mobile-contact .contact-item {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.1);
}
body.light-mode .chip-content {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.15);
}
body.light-mode .service-chip input:checked + .chip-content {
    color: white; 
}
body.light-mode .modern-form .input-group > input, 
body.light-mode .modern-form .input-group > textarea {
    border-bottom-color: rgba(0, 0, 0, 0.2);
    color: var(--text-main);
}

/* ================== BACKGROUND EFFECTS ================== */
.ambient-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.glowing-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: drift 20s infinite alternate cubic-bezier(0.2, 0.8, 0.2, 1);
}

.orb-1 {
    width: 500px; height: 500px;
    background: rgba(79, 70, 229, 0.3); /* Primary */
    top: -100px; left: -100px;
}
.orb-2 {
    width: 400px; height: 400px;
    background: rgba(56, 189, 248, 0.2); /* Secondary */
    bottom: -100px; right: 10%;
    animation-delay: -5s;
}
.orb-3 {
    width: 300px; height: 300px;
    background: rgba(244, 63, 94, 0.15); /* Accent */
    top: 40%; left: 50%;
    animation-duration: 25s;
}

@keyframes drift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 150px) scale(1.2); }
}

/* ================== BUTTONS ================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.btn i { transition: transform 0.3s ease; }
.btn:hover i { transform: translateX(4px); }

.btn-primary {
    background: var(--gradient-brand);
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.4);
    transform: translateY(-2px);
}

.btn-glow {
    position: relative;
    z-index: 1;
}
.btn-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-brand);
    z-index: -1;
    border-radius: 10px;
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s;
}
.btn-glow:hover::after {
    opacity: 0.8;
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: var(--surface-hover);
    border-color: var(--text-muted);
}

.btn-nav {
    padding: 10px 20px;
    background: var(--primary);
    color: white !important;
    border-radius: 6px;
    font-size: 0.9rem !important;
}

.btn-nav:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* ================== HEADER ================== */
header {
    position: fixed;
    top: 20px;
    left: 0; right: 0; margin: 0 auto;
    width: 90%;
    max-width: 1000px;
    z-index: 1000;
    transition: var(--transition);
    padding: 16px 30px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
}

header .nav-container {
    width: 100%; /* Override default container width */
}

.glass-header.scrolled {
    background: rgba(3, 7, 18, 0.85);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    padding: 12px 30px;
    top: 15px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-item {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s;
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: -4px; left: 0;
    background: var(--gradient-brand);
    transition: width 0.3s;
}

.nav-item:hover {
    color: var(--text-main);
}
.nav-item:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* ================== HERO SECTION ================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 40px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
    color: #818CF8;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-main);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 90%;
}

.hero-btns {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.trust-indicators {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.avatar-group { display: flex; }
.avatar-circle {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--border-light);
    display: flex; justify-content: center; align-items: center;
    color: var(--primary);
    font-size: 0.9rem;
}

/* Hero Image & Cards */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.image-wrapper {
    position: relative;
    width: 100%; max-width: 450px;
}

.hero-logo-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid var(--border-light);
}

.floating-card {
    position: absolute;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.floating-card i {
    font-size: 1.5rem;
    background: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 10px;
}

.card-text {
    display: flex;
    flex-direction: column;
}
.card-text strong { font-size: 1.1rem; color: var(--text-main); }
.card-text span { font-size: 0.8rem; color: var(--text-muted); }

.float-anim-1 {
    top: 10%; right: -10%;
    animation: float1 6s ease-in-out infinite;
}
.float-anim-2 {
    bottom: 10%; left: -10%;
    animation: float2 7s ease-in-out infinite alternate;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
@keyframes float2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(15px); }
}

/* ================== SERVICES ================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    padding: 32px 24px;
    text-align: left;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--gradient-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    background: var(--surface-hover);
    border-color: rgba(255,255,255,0.15);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 50px; height: 50px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 12px;
    color: var(--secondary);
    display: flex; justify-content: center; align-items: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: white;
    transform: rotateY(180deg);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-link {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex; align-items: center; gap: 4px;
}
.service-link i { transition: transform 0.3s; }
.service-link:hover i { transform: translateX(6px); }

/* ================== TUTORIALS ================== */
.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.tut-card {
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    display: flex; flex-direction: column;
}
.tut-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.15);
}

.tut-thumb {
    height: 200px;
    width: 100%;
    position: relative;
    background: var(--surface);
    display: flex; justify-content: center; align-items: center;
    font-size: 3rem; color: var(--text-muted);
}
.tut-thumb img {
    width: 100%; height: 100%; object-fit: cover;
}
.tut-thumb .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent, var(--bg-dark));
    opacity: 0.6;
}

.tut-content {
    padding: 24px;
    flex-grow: 1;
    display: flex; flex-direction: column;
}

.tut-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}
.tut-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}
.tut-content .extended-text {
    display: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.read-more-btn {
    margin-top: auto;
    color: var(--secondary);
    font-weight: 500; font-size: 0.9rem;
    cursor: pointer;
    background: none; border: none;
    font-family: inherit;
    text-align: left;
    transition: color 0.3s;
}
.read-more-btn:hover { color: #fff; }

/* ================== CONSULTATION FORM ================== */
.consultation-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.consultation-info {
    padding: 60px 50px;
    background: rgba(255,255,255,0.02);
    border-right: 1px solid var(--border-light);
}

.form-title {
    font-size: 2.2rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

.form-desc {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.contact-details {
    display: flex; flex-direction: column; gap: 20px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex; align-items: center; gap: 16px;
    font-weight: 500; color: var(--text-main);
    transition: var(--transition);
}
.contact-item:hover { color: var(--secondary); transform: translateX(5px); }

.contact-icon {
    width: 45px; height: 45px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--primary-light);
    display: flex; justify-content: center; align-items: center;
    font-size: 1.2rem;
}

.social-links-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.social-circle {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--surface);
    display: flex; justify-content: center; align-items: center;
    color: var(--text-muted);
    transition: var(--transition);
}
.social-circle:hover {
    background: var(--primary);
    color: white; transform: translateY(-3px);
}

.consultation-form-area {
    padding: 60px 50px;
    background: rgba(3, 7, 18, 0.4);
}

.modern-form .input-group {
    position: relative;
    margin-bottom: 30px;
}

.modern-form .input-group > input, 
.modern-form .input-group > textarea {
    width: 100%;
    padding: 16px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-main);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition);
    resize: none;
}

.modern-form .input-group > input:focus, 
.modern-form .input-group > textarea:focus {
    outline: none;
    border-color: transparent;
}

.modern-form .input-group > label {
    position: absolute;
    top: 16px; left: 0;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition);
}

/* Floating Label Logic */
.modern-form .input-group > input:focus ~ label,
.modern-form .input-group > input:not(:placeholder-shown) ~ label,
.modern-form .input-group > textarea:focus ~ label,
.modern-form .input-group > textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--secondary);
}

.input-highlight {
    position: absolute;
    bottom: 0; left: 0;
    height: 2px; width: 0;
    background: var(--gradient-brand);
    transition: width 0.4s ease;
}

.modern-form .input-group > input:focus ~ .input-highlight,
.modern-form .input-group > textarea:focus ~ .input-highlight {
    width: 100%;
}

/* Fix Browser Autofill White Background on Dark Theme */
.modern-form input:-webkit-autofill,
.modern-form input:-webkit-autofill:hover, 
.modern-form input:-webkit-autofill:focus, 
.modern-form textarea:-webkit-autofill,
.modern-form textarea:-webkit-autofill:hover,
.modern-form textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-main) !important;
    -webkit-box-shadow: 0 0 0px 1000px #090f1d inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Service Selection Accordion */
.service-select-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-main);
    font-size: 1rem;
    cursor: pointer;
    font-family: var(--font-body);
    transition: var(--transition);
    user-select: none;
}

.service-select-toggle i {
    transition: transform 0.4s ease;
    color: var(--text-muted);
}

.service-select-toggle:hover i,
.service-select-toggle:hover {
    color: var(--primary-light);
}

.service-select-toggle.active i {
    transform: rotate(180deg);
    color: var(--primary-light);
}

.service-chips-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.3, 1);
}

.service-chips-wrapper.open {
    max-height: 600px;
}

.service-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 15px;
    margin-bottom: 10px;
}

.service-chip {
    cursor: pointer;
}

.service-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.chip-content {
    display: inline-block;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.service-chip input:checked + .chip-content {
    background: var(--gradient-brand);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px var(--primary-glow);
    transform: translateY(-2px);
}

.service-chip:hover .chip-content {
    background: rgba(255, 255, 255, 0.08); /* slight highlight on hover */
}

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* ================== FOOTER ================== */
.site-footer {
    border-top: 1px solid var(--border-light);
    padding: 30px 0;
    margin-top: 40px;
    background: rgba(0,0,0,0.5);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5px;
}

.footer-bottom {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ================== FLOATING WHATSAPP ================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 60px; height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 30px;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
}

.pulse { animation: pulseAnim 2s infinite; }
@keyframes pulseAnim {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ================== ANIMATIONS (Reveal via JS) ================== */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.reveal.active {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

.fade-bottom { transform: translateY(50px); }
.fade-right { transform: translateX(50px); }
.scale-up { transform: scale(0.95); opacity: 0; }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

.mobile-contact {
    display: none;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 992px) {
    .hero-container, .consultation-wrapper {
        grid-template-columns: 1fr;
    }
    .hero-title { font-size: 3.5rem; }
    .hero-image { order: -1; margin-bottom: 20px; }
    .consultation-info { border-right: none; border-bottom: none; padding: 40px 30px 20px 30px; }
    .desktop-contact { display: none; }
    .consultation-form-area { padding: 20px 30px 40px 30px; }
    .mobile-contact { 
        display: block; 
        padding: 0 30px 40px 30px; 
    }
    .mobile-contact::before {
        content: '';
        display: block;
        width: 100%;
        height: 1px;
        background: var(--border-light);
        margin-bottom: 30px;
    }
    .mobile-contact .contact-details {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 30px;
    }
    .mobile-contact .contact-item {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        padding: 16px 20px;
        justify-content: flex-start;
        width: 100%;
    }
    .mobile-contact .contact-item span {
        font-size: 0.95rem;
        word-break: break-all;
    }
    .mobile-contact .contact-icon {
        background: rgba(79, 70, 229, 0.15);
    }
    .mobile-contact .social-links-form {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
    .mobile-contact .social-circle {
        width: 50px; height: 50px;
        font-size: 1.3rem;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
}

@media (max-width: 768px) {
    header { padding: 12px 20px; top: 15px; width: 92%; }
    .logo { font-size: 1.4rem; position: relative; z-index: 1001; }
    
    .menu-toggle { 
        display: flex; justify-content: center; align-items: center;
        width: 45px; height: 45px;
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 12px;
        position: relative; z-index: 1001;
    }
    
    .nav-links {
        position: fixed;
        top: 0; left: 0;
        width: 100vw; height: 100vh;
        background: rgba(3, 7, 18, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 0 40px;
        gap: 0;
        opacity: 0;
        pointer-events: none;
        clip-path: circle(0px at calc(100% - 40px) 40px);
        transition: all 0.6s cubic-bezier(0.25, 1, 0.3, 1);
        z-index: 1000;
        margin: 0;
    }
    
    .nav-links.active {
        opacity: 1;
        pointer-events: auto;
        clip-path: circle(150vh at calc(100% - 40px) 40px);
    }
    
    .nav-links li {
        width: 100%;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
    }
    
    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
    
    .nav-item { 
        display: block;
        width: 100%;
        padding: 24px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 1.6rem; 
        font-weight: 700;
        letter-spacing: 1px;
        position: relative;
    }
    
    .nav-item::after {
        content: '\f054' !important;
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 1.2rem;
        color: var(--primary);
        position: absolute;
        right: 0;
        top: 50%;
        bottom: auto; left: auto;
        transform: translateY(-50%);
        width: auto; height: auto;
        background: transparent;
    }

    .nav-links li:last-child {
        margin-top: 30px;
    }
    
    .btn-nav.w-100 {
        padding: 18px !important;
        font-size: 1.1rem !important;
    }
    
    .hero { padding-top: 100px; padding-bottom: 20px; text-align: center; } /* Réduction du top padding de 160px à 100px */
    .hero-title { font-size: 2.8rem; margin-bottom: 15px; }
    .hero-subtitle { margin: 0 auto 20px auto; }
    .hero-btns { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto 20px auto; gap: 10px; }
    .trust-indicators { justify-content: center; }
    
    .section-title { font-size: 2.2rem; margin-bottom: 10px; }
    .section { padding: 40px 0; } /* Réduction massive de 80px à 40px sur mobile */
    .section-desc { margin-bottom: 2rem; }
    
    .floating-card { padding: 10px 15px; }
    .floating-card i { font-size: 1.2rem; }
    .card-text strong { font-size: 0.9rem; }
    .card-text span { font-size: 0.7rem; }
}
