/* =====================
   BASE
   ===================== */
html {
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    color: #1a1a1a;
    overflow-x: hidden;
    max-width: 100%;
}

/* =====================
   NAVBAR
   ===================== */
.navbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e8e6e1;
    padding-top: 8px;
    padding-bottom: 8px;
    min-height: 90px;
}

.navbar .container {
    position: relative;
}

/* =====================
   SECTIONS — COULEURS
   ===================== */
.section-hero {
    background-color: #ffffff;
}

.section-hero .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: none;
}

.hero-right {
    background-color: #ffffff;
    color: #1a1a1a;
}

.hero-right .text-muted {
    color: #999999 !important;
}

.section-about {
    background-color: #F8F6F1;
}

.section-projects {
    background-color: #ffffff;
}

.section-tech {
    background-color: #F3EAE0;
}
/* Badges en apprentissage — style différent */
.tech-badge-learning {
    background-color: #f5f3ef;
    border: 1px dashed #d0cdc8;
    color: #888;
    font-style: italic;
}

.section-reviews {
    background-color: #ffffff;
}

.section-contact {
    background-color: #EFEFEF;
}

/* =====================
   FOOTER
   ===================== */
footer {
    background-color: #ffffff;
    border-top: 1px solid #e8e6e1;
}

/* =====================
   ANIMATIONS REVEAL
   ===================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* =====================
   CARTES PROJETS
   ===================== */
.project-card {
    background-color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* =====================
   CARROUSEL PROJETS
   ===================== */
.projects-track-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 8px 0;
}

.projects-track {
    display: flex;
    gap: 24px;
    animation: scrollProjects 30s linear infinite;
    width: max-content;
}

.projects-track:hover {
    animation-play-state: paused;
}

.project-slide {
    background: #ffffff;
    border: 1px solid #e8e6e1;
    padding: 20px;
    width: 320px;
    flex-shrink: 0;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-slide:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

@keyframes scrollProjects {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* =====================
   BADGES TECHNOS
   ===================== */
.tech-badge {
    background-color: #ffffff;
    border: 1px solid #e0ddd8;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
}

.tech-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* =====================
   CARROUSEL AVIS
   ===================== */

.reviews-track-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 8px 0;
}

.reviews-track {
    display: flex;
    gap: 24px;
    animation: scrollReviews 50s linear infinite;
    width: max-content;
}

.reviews-track:hover {
    animation-play-state: paused;
}

.review-slide {
    background: #ffffff;
    border: 1px solid #e8e6e1;
    padding: 28px;
    width: 340px;
    flex-shrink: 0;
    border-radius: 4px;
}

@keyframes scrollReviews {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* =====================
   PHOTO À PROPOS
   ===================== */
.about-photo {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #e8e6e1;
}

/* =====================
   CHATBOT FLOTTANT
   ===================== */
.chatbot-bubble {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    padding: 0;
    background-color: #046D7D;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-bubble:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.chatbot-window {
    position: fixed;
    bottom: 92px;
    right: 28px;
    width: 320px;
    background: #ffffff;
    border: 1px solid #e8e6e1;
    border-radius: 12px;
    z-index: 9998;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    overflow: hidden;
}

.chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #e8e6e1;
    background: #fafaf8;
}

.chatbot-messages {
    padding: 16px;
    height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-bubble-bot {
    background: #f5f3ef;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    line-height: 1.6;
    max-width: 85%;
    align-self: flex-start;
}

.chat-bubble-user {
    background: #1a1a1a;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    line-height: 1.6;
    max-width: 85%;
    align-self: flex-end;
}

.chatbot-input-row {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #e8e6e1;
}

.chatbot-input-row input {
    flex: 1;
    border: 1px solid #e8e6e1;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.82rem;
    outline: none;
}

.chatbot-input-row button {
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.chatbot-input-row button:hover {
    background: #333;
}

/* =====================
   RESPONSIVE MOBILE
   ===================== */
@media (max-width: 991px) {

    .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .navbar .container {
        flex-wrap: wrap;
    }

    .navbar-brand.position-absolute {
        position: relative !important;
        transform: none !important;
        left: auto !important;
        margin: 0 auto;
    }

    .hero-right {
        margin: 0;
        padding: 2rem 1.5rem !important;
    }

    .section-hero .col-lg-7 {
        padding: 2.5rem 1.5rem !important;
    }

    .section-hero .border-end {
        border-right: none !important;
        border-bottom: 1px solid #e8e6e1;
    }

    .about-photo {
        width: 200px;
        height: 200px;
    }

    .section-hero h1 {
        font-size: 2.2rem !important;
    }
}

@media (max-width: 575px) {

    .navbar .me-auto {
        font-size: 1.2rem !important;
    }

    .section-hero h1 {
        font-size: 1.8rem !important;
    }

    .project-card {
        margin-bottom: 1rem;
    }

    .tech-badge {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .chatbot-window {
        width: 280px;
        right: 12px;
    }

    .chatbot-bubble {
        bottom: 16px;
        right: 16px;
    }
}