/* ========================================
   VARIABLES & RESET
   ======================================== */

:root {
    /* Couleurs principales */
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #6366F1;
    --secondary: #8B5CF6;
    --accent: #EC4899;
    
    /* Couleurs de fond */
    --bg-dark: #0F0F1E;
    --bg-darker: #080814;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.05);
    
    /* Couleurs de texte */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    /* Effets */
    --glow: 0 0 40px rgba(79, 70, 229, 0.3);
    --glow-strong: 0 0 60px rgba(79, 70, 229, 0.5);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 100px 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-darker);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 30, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo .logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(var(--glow));
    transition: transform 0.3s ease;
}

.nav-logo .logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/galaxy.png') no-repeat center center;
    background-size: cover;
    opacity: 0.4;
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(79, 70, 229, 0.15), transparent 70%);
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.logo-hero {
    margin-bottom: 40px;
    animation: fadeInDown 1s ease;
}

.hero-logo {
    height: 300px;
    width: auto;
    filter: drop-shadow(var(--glow-strong));
    animation: float 3s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    animation: fadeInUp 1s ease 0.2s both;
    background: linear-gradient(135deg, #3B9DFF 0%, #6B7FFF 30%, #8B5CF6 70%, #A78BFA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--glow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 50%, #7C3AED 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.6), 0 0 30px rgba(79, 70, 229, 0.4);
}

.btn-primary span,
.btn-primary svg {
    position: relative;
    z-index: 2;
}

.btn-primary:hover::before {
    right: 0;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--glow-strong);
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-primary svg {
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--glow-strong);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(139, 92, 246, 0.1) 25%,
        rgba(139, 92, 246, 0.2) 50%,
        rgba(139, 92, 246, 0.1) 75%,
        transparent 100%
    );
    transition: left 0.6s ease;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(79, 70, 229, 0.1) 0%, 
        rgba(139, 92, 246, 0.15) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover::after {
    opacity: 1;
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
}}

.scroll-indicator {
    display: none;
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeIn 1s ease 1s both;
}

/* ========================================
   SECTIONS COMMUNES
   ======================================== */

section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
}

/* ========================================
   À PROPOS SECTION
   ======================================== */

.about-section {
    background: var(--bg-dark);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    max-width: 600px;
}

.about-intro {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: var(--bg-card-hover);
    border-color: rgba(79, 70, 229, 0.3);
    transform: translateX(10px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.about-visual {
    position: relative;
    height: 500px;
}

.visual-card {
    position: absolute;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.visual-card:hover {
    transform: translateY(-10px);
    border-color: rgba(79, 70, 229, 0.5);
    box-shadow: var(--glow);
}

.card-1 {
    top: 0;
    left: 0;
    width: 200px;
    animation: float 3s ease-in-out infinite;
}

.card-2 {
    top: 150px;
    right: 50px;
    width: 220px;
    animation: float 3s ease-in-out infinite 1s;
}

.card-3 {
    bottom: 0;
    left: 80px;
    width: 200px;
    animation: float 3s ease-in-out infinite 2s;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.visual-card h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.visual-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========================================
   SERVICES SECTION
   ======================================== */

.services-section {
    background: var(--bg-darker);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(79, 70, 229, 0.3);
    transform: translateY(-10px);
    box-shadow: var(--glow);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.service-card > p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1rem;
}

.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-list li {
    padding-left: 28px;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.service-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ========================================
   POURQUOI NOUS SECTION
   ======================================== */

.why-section {
    background: var(--bg-dark);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.why-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px 30px;
    transition: all 0.3s ease;
}

.why-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(79, 70, 229, 0.3);
    transform: translateY(-5px);
}

.why-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

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

.why-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 60px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact-section {
    background: var(--bg-darker);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.8;
}

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

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.benefit-item svg {
    color: var(--primary);
    min-width: 24px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.detail-item svg {
    color: var(--primary);
}

.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(20px);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    background: var(--bg-darker);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 14px 18px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    grid-column: 1 / -1;
    justify-content: center;
    margin-top: 10px;
}

.form-note {
    grid-column: 1 / -1;
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
    margin-top: 10px;
}

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 40px;
}

.form-success.active {
    display: flex;
}

.form-success h3 {
    font-size: 1.8rem;
    color: var(--primary);
}

.form-success p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 20px;
    filter: drop-shadow(var(--glow));
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.8;
}

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

.footer-column h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes scrollLine {
    0%, 100% {
        transform: scaleY(0);
        transform-origin: top;
    }
    50% {
        transform: scaleY(1);
        transform-origin: top;
    }
}

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

@media (max-width: 992px) {
    :root {
        --section-padding: 60px 0;
    }

    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .about-visual {
        height: 400px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: calc(100vh - 80px);
        background: rgba(15, 15, 30, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 40px 20px;
        gap: 20px;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .services-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stats-section {
        padding: 40px 20px;
    }

    .about-visual {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        height: 80px;
    }

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

    .stat-number {
        font-size: 2.5rem;
    }

    .why-number {
        font-size: 2rem;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }
}
/* ======= PAGE MENTIONS LÉGALES (même DA) ======= */
.legal-page {
  color: #eaf1ff;
  background: #030919;
  min-height: 100vh;
}

/* Bandeau haut avec le même fond galaxie + halo */
.legal-hero {
  position: relative;
  min-height: 40vh;
  display: grid;
  place-items: center;
  text-align: center;
  background: url("/assets/galaxy.png") center/cover no-repeat fixed;
  overflow: hidden;
}
.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 25, 0.28);               /* moins sombre */
  z-index: 0;
}
.legal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60rem 35rem at 72% 38%, rgba(140,210,255,0.24), transparent 60%),
    radial-gradient(40rem 24rem at 78% 60%, rgba(120,90,255,0.18), transparent 60%);
  z-index: 0;                                       /* halo bleu-violet comme la home */
}

.legal-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  padding: 60px 20px;
}

.legal-logo {
  height: 90px;                                     /* logo un peu plus grand */
  filter:
    drop-shadow(0 0 22px rgba(90,130,255,0.85))
    drop-shadow(0 0 45px rgba(170,90,255,0.45));
}

.legal-title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(120, 180, 255, 0.7);
}

.legal-subtitle {
  font-size: 16px;
  color: #cfe5ff;
  opacity: 0.9;
}

/* Zone de contenu principale */
.legal-content {
  position: relative;
  margin: -40px auto 60px;                          /* carte chevauche le bandeau */
  padding: 0 20px;
  max-width: 980px;
  z-index: 1;
}

/* Carte glassmorphism */
.legal-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(173,216,230,0.25);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 28px clamp(20px, 4vw, 40px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}

.legal-card h2 {
  font-size: 22px;
  margin: 20px 0 10px;
  background: linear-gradient(90deg, #00d4ff, #8a2be2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legal-card p, .legal-card li {
  color: #d7e6ff;
  line-height: 1.8;
  font-size: 16px;
}

.legal-card a {
  color: #9ed0ff;
  text-decoration: none;
}
.legal-card a:hover { text-decoration: underline; }

/* Bouton retour styled comme tes CTA */
.legal-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.btn-ghost {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 14px;
  color: #e0ecff;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(173,216,230,0.4);
  backdrop-filter: blur(8px);
  transition: all .25s ease;
}
.btn-ghost:hover {
  background: linear-gradient(90deg, #2b3bff, #8a2be2);
  box-shadow: 0 0 22px rgba(100,180,255,.6);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 800px) {
  .legal-title { font-size: 34px; }
  .legal-logo { height: 72px; }
  .legal-card { padding: 22px 18px; }
}
/* ========================================
   CHATBOT - VERSION FINALE
   ======================================== */

/* Bouton trigger */
.chat-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.chat-trigger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    background: linear-gradient(135deg, #4338CA 0%, #6D28D9 100%);
}

.chat-trigger-btn svg {
    flex-shrink: 0;
}

/* Backdrop */
.chat-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.chat-backdrop.show {
    opacity: 1;
    pointer-events: all;
}

/* Fenêtre de chat - Version mobile optimisée */
.chat-window {
    position: fixed;
    bottom: 150px;  /* Décalé du bas au lieu du haut */
    right: 20px;   /* Décalé de la droite */
    left: 20px;    /* Marges sur les côtés */
    width: auto;   /* Largeur automatique avec marges */
    max-width: 400px;  /* Largeur max pour grands écrans */
    height: 500px;     /* Hauteur fixe réduite */
    max-height: 60vh;  /* Max 60% de la hauteur d'écran */
    background: rgba(15, 15, 30, 0.95);
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ajustements spécifiques mobile */
@media (max-width: 768px) {
    .chat-window {
        bottom: 130px;
        right: 10px;
        left: 10px;
        height: 450px;      /* Réduit sur mobile */
        max-height: 65vh;   /* 65% de l'écran max */
        border-radius: 16px;
    }
}

/* Classe pour afficher le chatbot */
.chat-window.show {
    opacity: 1 !important;
    pointer-events: all !important;
    transform: translateY(0) scale(1) !important;
}

/* Très petits écrans */
@media (max-width: 380px) {
    .chat-window {
        height: 400px;
        max-height: 70vh;
        bottom: 60px;
        right: 5px;
        left: 5px;
    }
}

/* Header du chat - ajusté */
.chat-header {
    padding: 16px 20px;  /* Réduit de 20px à 16px */
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(139, 92, 246, 0.2));
    border-bottom: 1px solid rgba(79, 70, 229, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px 20px 0 0;
}

@media (max-width: 768px) {
    .chat-header {
        padding: 12px 16px;
        border-radius: 16px 16px 0 0;
    }
}

/* Zone de messages - optimisée */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;  /* Réduit de 20px */
    display: flex;
    flex-direction: column;
    gap: 12px;      /* Réduit de 15px */
}

@media (max-width: 768px) {
    .chat-messages {
        padding: 12px;
        gap: 10px;
    }
}

/* Zone de saisie - compacte */
.chat-input-container {
    padding: 12px 16px;  /* Réduit de 15px 20px */
    background: rgba(15, 15, 30, 0.5);
    border-top: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: 0 0 20px 20px;
}

@media (max-width: 768px) {
    .chat-input-container {
        padding: 10px 12px;
        border-radius: 0 0 16px 16px;
    }
}

/* Header */
.chat-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    border-radius: 20px 20px 0 0;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.chat-close-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Zone de messages */
.chat-messages-area {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-messages-area::-webkit-scrollbar {
    width: 6px;
}

.chat-messages-area::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages-area::-webkit-scrollbar-thumb {
    background: rgba(79, 70, 229, 0.3);
    border-radius: 10px;
}

.chat-message {
    display: flex;
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.bot-message {
    justify-content: flex-start;
}

.chat-message.user-message {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.bot-message .message-bubble {
    background: rgba(79, 70, 229, 0.15);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.user-message .message-bubble {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.loading-message .message-bubble {
    background: rgba(79, 70, 229, 0.1);
    color: var(--text-secondary);
}

/* Zone d'input */
.chat-input-area {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}

.chat-input-area input:focus {
    border-color: #4F46E5;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.chat-input-area button {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.chat-input-area button:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.chat-input-area button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .chat-trigger-btn span {
        display: none;
    }
    
    .chat-window {
        left: 10px;
        right: 10px;
        width: auto;
        height: calc(100vh - 100px);
    }
}
/* ===================================
   MENU MOBILE - À AJOUTER À LA FIN DE STYLE.CSS
   =================================== */

/* Actions du header */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Bouton chatbot dans le header */
.chat-trigger-btn-header {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4F46E5, #8B5CF6);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
    transition: all 0.3s ease;
    position: relative;
    z-index: 101;
}

.chat-trigger-btn-header:hover {
    transform: scale(1.1);
}

.chat-trigger-btn-header svg {
    width: 22px;
    height: 22px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

.chat-notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background: #EF4444;
    border-radius: 50%;
    border: 2px solid #0f0f1e;
    animation: pulse-notification 2s infinite;
}

@keyframes pulse-notification {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.8; }
}

/* Menu burger */
.menu-burger {
    width: 32px;
    height: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 121;
}

.menu-burger span {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-burger:hover span {
    background: #8B5CF6;
}

.menu-burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-burger.active span:nth-child(2) {
    opacity: 0;
}

.menu-burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Backdrop menu */
.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 110;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.menu-backdrop.show {
    opacity: 1;
    pointer-events: all;
}

/* Menu mobile */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: rgba(15, 15, 30, 0.98);
    backdrop-filter: blur(30px);
    border-left: 1px solid rgba(79, 70, 229, 0.3);
    padding: 80px 30px 30px 30px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 120;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.mobile-menu.show {
    transform: translateX(0);
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item {
    padding: 16px 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, #4F46E5, #8B5CF6);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.menu-item:hover {
    background: rgba(79, 70, 229, 0.1);
    color: white;
    transform: translateX(5px);
}

.menu-item:hover::before {
    transform: scaleY(1);
}

.menu-item.active {
    background: rgba(79, 70, 229, 0.2);
}

.menu-item.active::before {
    transform: scaleY(1);
}

.menu-item svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

.menu-cta {
    margin-top: 30px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #4F46E5, #8B5CF6);
    color: white;
    text-align: center;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
}

.menu-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(79, 70, 229, 0.5);
}

.menu-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.3) 20%, rgba(79, 70, 229, 0.3) 80%, transparent);
    margin: 25px 0;
}

.menu-contact {
    margin-top: 25px;
    padding: 16px;
    background: rgba(79, 70, 229, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.menu-contact-title {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.menu-contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #8B5CF6;
    transform: translateX(3px);
}

.contact-link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    flex-shrink: 0;
}
/* Desktop : Chatbot à gauche, pas de logo */
@media (min-width: 769px) {
    .nav-logo {
        display: none; /* Masquer le logo sur desktop */
    }
    
    .header-actions {
        display: flex !important;
        justify-content: flex-start; /* À gauche */
    }
    
    .menu-burger {
        display: none; /* Pas de burger sur desktop */
    }
}

/* ===================================
   NAVBAR MOBILE - STYLE iOS TRANSLUCIDE
   =================================== */

/* Navbar translucide style iOS */
.navbar {
    background: rgba(15, 15, 30, 0.2) !important; /* Translucide */
    backdrop-filter: blur(30px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
}

/* Mobile : Chatbot à gauche, Burger à droite */
@media (max-width: 768px) {
    .nav-logo {
        display: none !important; /* Masquer le logo */
    }
    
    .nav-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 3px 20px !important;
    }
    
    .header-actions {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        gap: 0 !important; /* Pas de gap pour forcer l'espacement */
    }
    
    /* Chatbot à gauche */
    .chat-trigger-btn {
        order: 1; /* Forcer à gauche */
        margin-right: auto !important;
    }
    
    /* Burger à droite */
    .menu-burger {
        order: 2; /* Forcer à droite */
        display: flex !important;
    }
    
    .nav-toggle {
        display: none !important;
    }
    
    .nav-menu {
        display: none !important;
    }
}

/* Très petits écrans */
@media (max-width: 380px) {
    .nav-container {
        padding: 10px 15px !important;
    }
    
    .chat-trigger-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}
/* Mobile : Agrandir le logo OptiAI et le chatbot */
@media (max-width: 768px) {
    /* Logo OptiAI au centre de la page (dans le hero) */
    .hero-logo {
        height: 170px !important; /* Augmenter (était 80px) */
        width: auto !important;
    }
    
    /* Bouton chatbot dans la navbar */
    .chat-trigger-btn {
        padding: 10px 16px !important; /* Plus grand */
        font-size: 15px !important; /* Texte plus gros */
        min-height: 44px !important; /* Hauteur minimale */
    }
    
    .chat-trigger-btn svg {
        width: 19px !important; /* Icône plus grande */
        height: 24px !important;
    }
    
    /* Menu burger plus grand aussi */
    .menu-burger {
        width: 34px !important;
        height: 34px !important;
    }
    
    .menu-burger span {
        width: 24px !important;
        height: 2.5px !important;
    }
}

/* Très petits écrans - ajuster */
@media (max-width: 380px) {
    .hero-logo {
        height: 100px !important;
    }
    
    .chat-trigger-btn {
        padding: 9px 14px !important;
        font-size: 14px !important;
    }
    
    .chat-trigger-btn svg {
        width: 22px !important;
        height: 22px !important;
    }
}
/* ===================================
   HOLOGRAM AVATAR VIVANT - VERSION FINALE
   REMPLACER toute la section hologram dans style.css
   =================================== */

/* Avatar holographique */
.chat-hologram {
    position: absolute;
    top: 50%;
    right: -50px;
    transform: translateY(-50%) translateX(-100%) scale(0);
    width: 38px;
    height: 38px;
    z-index: 15;
    opacity: 0;
    pointer-events: none;
}

/* Tête */
.chat-hologram .holo-head {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 157, 255, 0.15), rgba(139, 92, 246, 0.15));
    border: 2px solid #3B9DFF;
    border-radius: 50%;
    position: relative;
    box-shadow: 
        0 0 25px rgba(59, 157, 255, 0.7),
        inset 0 0 20px rgba(59, 157, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* Visage */
.chat-hologram .holo-face {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.chat-hologram .holo-eyes {
    display: flex;
    gap: 9px;
    margin-bottom: 6px;
    justify-content: center;
}

.chat-hologram .holo-eye {
    width: 6px;
    height: 6px;
    background: #3B9DFF;
    border-radius: 50%;
    box-shadow: 0 0 10px #3B9DFF;
}

.chat-hologram .holo-smile {
    width: 12px;
    height: 6px;
    border: 1.5px solid #3B9DFF;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 0 8px rgba(59, 157, 255, 0.6);
    margin: 0 auto;
    background: transparent;
}

.chat-hologram .holo-scan {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3B9DFF, transparent);
}

/* Main pour faire coucou - À GAUCHE */
.chat-hologram .holo-hand {
    position: absolute;
    top: -8px;
    left: -10px; /* À GAUCHE au lieu de right */
    font-size: 18px;
    transform-origin: bottom center;
    opacity: 0;
    filter: hue-rotate(200deg) saturate(2) brightness(1.2);
    text-shadow: 0 0 10px rgba(59, 157, 255, 0.8);
}

/* ========== ANIMATION DE BASE : Apparition ========== */
.chat-hologram.active {
    animation: holoEnter 4s ease-in-out forwards;
}

@keyframes holoEnter {
    0% {
        transform: translateY(-50%) translateX(-100%) scale(0);
        opacity: 0;
    }
    5% {
        transform: translateY(-50%) translateX(-80%) scale(0.3);
        opacity: 0.3;
    }
    15% {
        transform: translateY(-50%) translateX(0) scale(1);
        opacity: 1;
    }
    20%, 80% {
        transform: translateY(-50%) translateX(0) scale(1);
        opacity: 1;
    }
    85% {
        transform: translateY(-50%) translateX(30%) scale(1);
        opacity: 1;
    }
    95% {
        transform: translateY(-50%) translateX(80%) scale(0.3);
        opacity: 0.3;
    }
    100% {
        transform: translateY(-50%) translateX(100%) scale(0);
        opacity: 0;
    }
}

/* Scan par défaut */
.chat-hologram.active .holo-scan {
    animation: holoScan 1.5s ease-in-out infinite;
}

@keyframes holoScan {
    0%, 100% { top: 0; opacity: 0; }
    50% { top: 100%; opacity: 1; }
}

/* ========== ANIMATION 1 : COUCOU ========== */
.chat-hologram.anim-wave .holo-hand {
    opacity: 1;
    animation: waveHand 0.8s ease-in-out infinite;
}

.chat-hologram.anim-wave .holo-eye {
    animation: eyeGlowWave 2s ease-in-out infinite;
}

@keyframes waveHand {
    0%, 100% { transform: rotate(20deg); }
    50% { transform: rotate(-20deg); }
}

@keyframes eyeGlowWave {
    0%, 100% { box-shadow: 0 0 10px #3B9DFF; }
    50% { box-shadow: 0 0 20px #3B9DFF, 0 0 30px rgba(59, 157, 255, 0.8); }
}

/* ========== ANIMATION 2 : SOURIRE VIVANT ========== */
.chat-hologram.anim-smile .holo-smile {
    animation: smileGrow 2s ease-in-out infinite;
}

.chat-hologram.anim-smile .holo-eye {
    animation: eyeHappy 2s ease-in-out infinite;
}

@keyframes smileGrow {
    0%, 100% { 
        transform: scaleX(1) scaleY(1);
        border-radius: 0 0 12px 12px;
    }
    50% { 
        transform: scaleX(1.3) scaleY(1.4);
        border-radius: 0 0 15px 15px;
        box-shadow: 0 0 15px rgba(59, 157, 255, 0.8);
    }
}

@keyframes eyeHappy {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 10px #3B9DFF;
    }
    50% { 
        transform: scale(1.2);
        box-shadow: 0 0 18px #3B9DFF, 0 0 25px rgba(59, 157, 255, 0.8);
    }
}

/* ========== ANIMATION 3 : JOIE INTENSE ========== */
.chat-hologram.anim-bighappy .holo-eye {
    animation: eyeCloseHappy 2.5s ease-in-out infinite;
}

.chat-hologram.anim-bighappy .holo-smile {
    animation: bigSmile 2.5s ease-in-out infinite;
}

.chat-hologram.anim-bighappy .holo-head {
    animation: headBounce 2.5s ease-in-out infinite;
}

@keyframes eyeCloseHappy {
    0%, 30%, 70%, 100% { 
        transform: scaleY(1);
        height: 6px;
    }
    40%, 60% { 
        transform: scaleY(0.15);
        height: 2px;
        box-shadow: 0 0 15px #3B9DFF;
    }
}

@keyframes bigSmile {
    0%, 30%, 70%, 100% { 
        transform: scaleX(1) scaleY(1);
        width: 12px;
    }
    40%, 60% { 
        transform: scaleX(1.5) scaleY(1.6);
        width: 16px;
        box-shadow: 0 0 18px rgba(59, 157, 255, 1);
    }
}

@keyframes headBounce {
    0%, 30%, 70%, 100% { 
        transform: scale(1);
    }
    40%, 60% { 
        transform: scale(1.08);
        box-shadow: 0 0 30px rgba(59, 157, 255, 0.9), inset 0 0 25px rgba(59, 157, 255, 0.3);
    }
}

/* ========== ANIMATION 4 : SÉQUENCE COMPLÈTE ========== */
.chat-hologram.anim-full .holo-hand {
    animation: waveSequence 6s ease-in-out infinite;
}

.chat-hologram.anim-full .holo-eye {
    animation: eyeSequence 6s ease-in-out infinite;
}

.chat-hologram.anim-full .holo-smile {
    animation: smileSequence 6s ease-in-out infinite;
}

.chat-hologram.anim-full .holo-head {
    animation: headSequence 6s ease-in-out infinite;
}

@keyframes waveSequence {
    0%, 16.6% { 
        opacity: 1;
        transform: rotate(20deg); 
    }
    8.3% { 
        transform: rotate(-20deg); 
    }
    33.3%, 100% { 
        opacity: 0;
        transform: rotate(0deg) scale(0);
    }
}

@keyframes eyeSequence {
    0%, 33.3% { 
        transform: scaleY(1) scale(1);
        height: 6px;
        box-shadow: 0 0 10px #3B9DFF;
    }
    16.6% {
        box-shadow: 0 0 18px #3B9DFF, 0 0 25px rgba(59, 157, 255, 0.8);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 18px #3B9DFF;
    }
    66.6%, 83.3% { 
        transform: scaleY(0.15);
        height: 2px;
        box-shadow: 0 0 15px #3B9DFF;
    }
    100% {
        transform: scaleY(1);
        height: 6px;
    }
}

@keyframes smileSequence {
    0%, 33.3% { 
        transform: scaleX(1) scaleY(1);
        width: 12px;
    }
    50% { 
        transform: scaleX(1.3) scaleY(1.4);
        box-shadow: 0 0 15px rgba(59, 157, 255, 0.8);
    }
    66.6%, 83.3% { 
        transform: scaleX(1.5) scaleY(1.6);
        width: 16px;
        box-shadow: 0 0 18px rgba(59, 157, 255, 1);
    }
    100% {
        transform: scaleX(1) scaleY(1);
        width: 12px;
    }
}

@keyframes headSequence {
    0%, 66.6% { 
        transform: scale(1);
    }
    75% { 
        transform: scale(1.08);
        box-shadow: 0 0 30px rgba(59, 157, 255, 0.9), inset 0 0 25px rgba(59, 157, 255, 0.3);
    }
    83.3%, 100% {
        transform: scale(1);
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .chat-hologram {
        right: -45px;
        width: 34px;
        height: 34px;
    }
    
    .chat-hologram .holo-eye {
        width: 5px;
        height: 5px;
    }
    
    .chat-hologram .holo-smile {
        width: 10px;
        height: 5px;
    }
    
    .chat-hologram .holo-hand {
        font-size: 16px;
        left: -8px;
    }
}

@media (max-width: 480px) {
    .chat-hologram {
        right: -42px;
        width: 30px;
        height: 30px;
    }
    
    .chat-hologram .holo-eye {
        width: 4px;
        height: 4px;
    }
    
    .chat-hologram .holo-smile {
        width: 9px;
        height: 4px;
    }
    
    .chat-hologram .holo-hand {
        font-size: 14px;
        left: -7px;
    }
}

/* S'assurer que le bouton peut contenir l'avatar */
.chat-trigger-btn {
    position: relative !important;
    overflow: visible !important;
}
