body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- BACKGROUND --- */
.bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.bg-image {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-image: url('https://media1.giphy.com/media/v1.Y2lkPTc5MGI3NjExYmc4MjZndnhsM3l6bW41bHZzamhoZjY4NG1yb2xwcHBjNWJiaGo0eiZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/FWtVYDHIxgGgE/giphy.gif');
    background-size: cover;
    background-position: center;
    filter: blur(12px) brightness(0.4) contrast(1.2);
    z-index: 0;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(15, 10, 20, 0.2) 0%, var(--bg-dark) 90%);
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- NAVBAR EN ÎLOT --- */
.navbar-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    position: fixed;
    top: 25px;
    width: 100%;
    z-index: 100;
    pointer-events: none;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    gap: 4rem;
    border-radius: 50px;
    pointer-events: auto;
}

.admin-section {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo span {
    font-size: 0.6rem;
    vertical-align: super;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    position: relative;
}

.nav-pill {
    position: absolute;
    background: rgba(147, 51, 234, 0.4);
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.3);
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.8);
}

.nav-links a {
    position: relative;
    z-index: 1;
    padding: 0.5rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* --- SECTIONS GLOBALES --- */
.section {
    padding: 6rem 8rem;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-purple {
    color: var(--purple-light);
}

.text-white {
    color: var(--text-main);
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- HERO SECTION --- */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8rem;
    margin-top: 150px;
    min-height: 90vh;
}

.hero-content {
    max-width: 800px;
    margin-bottom: 6rem;
}

.hero-subtitle {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.hero-subtitle .line {
    width: 40px;
    height: 1px;
    background-color: var(--purple-primary);
}

.hero-title {
    font-size: 5rem;
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: -2px;
    margin: 0 0 2rem 0;
}

.hero-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 6rem;
}

.stat-item h2 {
    font-size: 2.5rem;
    font-weight: 400;
    margin: 0 0 0.5rem 0;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: lowercase;
    margin: 0;
}

/* --- SECTION PROCESSUS --- */
.process-title {
    font-size: 6rem;
    line-height: 1;
    font-weight: 600;
    letter-spacing: -3px;
    color: #444;
    margin-bottom: 4rem;
}

.cards-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* --- SECTION HISTOIRE --- */
.section-center-header {
    text-align: center;
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon-circle {
    background: rgba(255, 255, 255, 0.05);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.section-title-center {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
}

.story-desc {
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.6;
}

/* --- SECTION CONTACT --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.info-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.info-val {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.sub-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* --- FORMULAIRE --- */
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.full-width {
    width: 100%;
    margin-top: 1rem;
}

/* --- GRILLE DE PROJETS --- */
.cards-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 2rem;
}

.flex-col-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.text-center {
    text-align: center !important;
}

/* --- BOUTON ENVOYER CHAT (Correction Hover) --- */
.chat-footer .send-btn {
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    background: var(--purple-primary);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.chat-footer .send-btn:hover {
    background: var(--purple-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(147, 51, 234, 0.4);
}

/* --- ANIMATIONS DES ICONES SVG --- */

/* Coeur qui bat */
.icon-heart-anim svg {
    transition: all 0.3s ease;
}

.icon-heart-anim:hover svg {
    animation: heartbeat 1.2s infinite;
    fill: var(--purple-light);
    color: var(--purple-light);
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.3);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.3);
    }

    60% {
        transform: scale(1);
    }
}

/* Robot qui s'anime */
.icon-bot-anim {
    display: inline-block;
    margin-left: 5px;
    vertical-align: middle;
}

.icon-bot-anim svg {
    transition: transform 0.3s ease;
}

.chat-header:hover .icon-bot-anim svg,
.liquid-btn:hover .icon-bot-anim svg {
    animation: botWiggle 2s infinite ease-in-out;
}

@keyframes botWiggle {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-10deg) translateY(-2px);
    }

    75% {
        transform: rotate(10deg) translateY(-2px);
    }
}

/* Bouton Envoyer qui s'envole */
.icon-send-anim svg {
    transition: transform 0.3s ease;
}

.icon-send-anim:hover svg {
    transform: translateX(3px) translateY(-3px);
}

.icon-send-anim:active svg {
    animation: flyAway 0.5s forwards;
}

@keyframes flyAway {
    0% {
        transform: translate(0, 0);
        opacity: 1;
    }

    50% {
        transform: translate(15px, -15px);
        opacity: 0;
    }

    51% {
        transform: translate(-15px, 15px);
        opacity: 0;
    }

    100% {
        transform: translate(0, 0);
        opacity: 1;
    }
}

/* Animation "L'IA écrit..." avec dots qui clignotent */
.typing-indicator-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem !important;
    width: 60px;
}

.icon-typing-anim svg {
    color: var(--purple-light);
}

.typing-dot {
    animation: dotBlink 1.4s infinite ease-in-out both;
    stroke-width: 3;
    stroke-linecap: round;
}

.dot-1 {
    animation-delay: -0.32s;
}

.dot-2 {
    animation-delay: -0.16s;
}

.dot-3 {
    animation-delay: 0s;
}

@keyframes dotBlink {

    0%,
    80%,
    100% {
        opacity: 0.2;
        transform: translateY(0);
    }

    40% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

/* CheckCheck Read Receipt */
.read-receipt {
    display: inline-block;
    margin-left: 8px;
    color: var(--text-muted);
    opacity: 0.5;
    transition: all 0.3s;
    vertical-align: middle;
}

.read-receipt.read {
    color: #4ade80;
    opacity: 1;
    animation: checkPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.read-receipt:hover.read svg {
    animation: subtleBounce 1s infinite;
}

@keyframes checkPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Quote Bounce */
.icon-quote-anim svg {
    transition: transform 0.3s ease;
}

.icon-quote-anim:hover svg {
    animation: quoteBounce 1s ease infinite;
    color: var(--purple-light);
}

@keyframes quoteBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px) scale(1.05);
    }
}

/* --- ANIMATIONS DES NOUVELLES ICONES --- */

.icon-phone-anim svg,
.icon-msg-anim svg {
    color: var(--text-muted);
    transition: color 0.3s ease;
    animation: floatIcon 3s infinite ease-in-out;
}

.icon-phone-anim:hover svg,
.icon-msg-anim:hover svg {
    color: var(--purple-light);
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.icon-send-h-anim svg {
    transition: transform 0.3s ease;
    animation: flyHorizontalHover 3s infinite ease-in-out;
}

@keyframes flyHorizontalHover {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(4px);
    }
}

.icon-login-anim svg {
    transition: transform 0.3s ease;
}

#submit-login:hover .icon-login-anim svg {
    transform: translateX(4px);
}

/* Animations iMessage Pop pour le chat */
.chat-message {
    animation: messagePop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.user-message {
    transform-origin: bottom right;
}

.bot-message {
    transform-origin: bottom left;
}

@keyframes messagePop {
    0% {
        transform: scale(0.5) translateY(10px);
        opacity: 0;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}


.icon-botoff-anim {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.icon-botoff-anim svg {
    color: #ef4444;
    animation: botGlitch 1.5s infinite ease-in-out;
}

@keyframes botGlitch {

    0%,
    100% {
        transform: translate(0);
        opacity: 1;
    }

    20% {
        transform: translate(-2px, 2px);
        opacity: 0.8;
    }

    40% {
        transform: translate(2px, -2px);
        opacity: 1;
    }

    60% {
        transform: translate(-2px, -2px);
        opacity: 0.8;
    }

    80% {
        transform: translate(2px, 2px);
        opacity: 1;
    }
}

/* Animations de Notification Admin */
.icon-alarm-anim {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    color: #f59e0b;
}

.icon-alarm-anim svg {
    animation: alarmRing 1.5s infinite ease-in-out;
}

@keyframes alarmRing {

    0%,
    100% {
        transform: rotate(0);
    }

    10%,
    30%,
    50% {
        transform: rotate(-15deg);
    }

    20%,
    40%,
    60% {
        transform: rotate(15deg);
    }

    70%,
    80%,
    90% {
        transform: rotate(0);
    }
}

.icon-belloff-anim {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    color: var(--text-muted);
}

.icon-belloff-anim svg {
    animation: bellSleep 3s infinite ease-in-out;
}

@keyframes bellSleep {

    0%,
    100% {
        transform: rotate(0) translateY(0);
    }

    50% {
        transform: rotate(-10deg) translateY(-2px);
    }
}