:root {
    --background-color: #f1f1f1;
    --text-color: #000000;
    --titre-color: grey;
    --primary-color: #ab9ff2;
    --border-color: #dcdcdc;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --input-background: #f9f9f9;
    --secondary-color: #2575fc;
    --success-color: #60d394;
    --error-color: #ee6055;
    --jaune-color: #ffd97d;
    --pastel-blue: #74c0fc;
    --pastel-green: #63e6be;
    --pastel-yellow: #ffd43b;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ab9ff2 0%, var(--text-color) 40%, #ab9ff2 60%);
    min-height: 100vh;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
}

.cursor-circle {
    width: 30px;
    height: 30px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.2s ease-out;
}

.cursor-dot.click,
.cursor-circle.click {
    transform: scale(1.5);
    background-color: var(--primary-color);
    border-color: var(--secondary-color);
}

/* Cache le curseur par défaut */
body {
    cursor: none;
}

.demo-container {
    display: block;
    margin: 0 auto;
    padding: 40px 20px;
    max-width: 900px;
    min-height: 100vh;
}

/* ==================== ADVANCED NAVIGATION BAR ==================== */
.navbar-container {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 60px);
    max-width: 1000px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar {
    /*background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.2);*/
    border-radius: 12px;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /*box-shadow: 
                0 20px 40px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);*/
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            #ab9ff2,
            transparent);
    transition: left 0.8s ease;
}

.navbar:hover::before {
    left: 100%;
}

.navbar:hover {
    transform: translateY(-2px);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ==================== LOGO SECTION ==================== */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.4rem;
    z-index: 2;
    position: relative;
}

.logo-icon {
    width: 60px;
    height: 40px;
    /*background: linear-gradient(135deg, #ff6b6b, #4ecdc4);*/
    border-radius: 12%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /*box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);*/
}

.logo-icon::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 20px;
    /*background: rgba(255, 255, 255, 0.9);*/
    border-radius: 12%;
    animation: logo-pulse 2s ease-in-out infinite;
}

@keyframes logo-pulse {

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

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

.brand-text {
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ==================== NAVIGATION LINKS ==================== */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    z-index: 2;
    position: relative;
}

/* Desktop navigation styles */
@media (min-width: 993px) {
    .navbar-nav {
        display: flex !important;
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background: none !important;
        border: none !important;
        padding: 0 !important;
        box-shadow: none !important;
        flex-direction: row !important;
    }
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    color: white;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.nav-link:hover .nav-icon {
    transform: scale(1.1);
}


.nav-item {
    position: relative;
    display: inline-block;
}

.nav-item .tooltip {
    visibility: hidden;
    opacity: 0;
    background-color: #333;
    color: white;
    text-align: center;
    border-radius: 4px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1999;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s, visibility 0.3s;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-item .tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
    z-index: 5000;
}

.nav-item:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .tooltip {
        position: fixed;
        bottom: 20px;
        left: 50%;
        top: auto;
        transform: translateX(-50%);
        margin-left: 0;
    }

    .tooltip::before {
        display: none;
    }

    .nav-item:hover .tooltip {
        transform: translateX(-50%);
    }
}

/* ==================== MOBILE MENU TOGGLE ==================== */
.menu-mobile {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    z-index: 1001;
    position: relative;
    flex-shrink: 0;
}

.menu-mobile:hover {
    transform: scale(1.1);
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 24px;
    height: 18px;
    justify-content: center;
}

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

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

.menu-mobile.active .hamburger span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

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

/* ==================== CTA BUTTON ==================== */
.cta-button {
    background: linear-gradient(135deg, #2575fc, #ab9ff2);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 8px 20px #9489d6;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-left: 5px;
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px #9489d6;
}

/* ==================== MOBILE RESPONSIVE ==================== */
@media (max-width: 992px) {
    .navbar-container {
        top: 20px;
        width: calc(100% - 30px);
    }

    .navbar {
        padding: 12px 20px;
        position: relative;
    }

    .menu-mobile {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* Hide desktop navigation on mobile */
    .navbar-nav {
        display: none;
    }

    .brand-text {
        font-size: 1.2rem;
    }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Container */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--text-color) 50%, var(--primary-color) 100%);
    z-index: 1600;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateY(0);
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.4rem;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* Mobile Menu Navigation */
.mobile-menu-nav {
    padding: 40px 30px;
    list-style: none;
}

.mobile-menu-item {
    margin-bottom: 8px;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 1.1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 12px;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateX(8px);
    border-color: rgba(255, 255, 255, 0.2);
}

.mobile-menu-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.mobile-cta {
    margin: 30px 30px 40px;
}

.mobile-cta-button {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #ab9ff2, #ab9ff2);
    color: white;
    text-decoration: none;
    padding: 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    box-shadow: 0 10px 30px #1a1a1a;
    transition: all 0.3s ease;
}

.mobile-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px #1a1a1a;
}

@media (max-width: 768px) {
    .navbar-container {
        width: calc(100% - 30px);
    }
}

@media (max-width: 480px) {
    .navbar-container {
        width: calc(100% - 20px);
        top: 15px;
    }

    .navbar {
        padding: 10px 15px;
    }

    .navbar-brand {
        gap: 8px;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
    }

    .brand-text {
        font-size: 1.1rem;
    }
}

/* ==================== DEMO CONTENT ==================== */
.demo-content {
    margin-top: 120px;
    text-align: center;
    color: white;
    padding: 40px 20px;
}

.demo-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.demo-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ==================== CONTENT SECTIONS ==================== */
.content-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 100px 20px 40px;
    text-align: center;
    border-radius: 12px;
    color: white;
    position: relative;
}

/* Add extra spacing for home section */
#home {
    padding-top: 200px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 40px;
}

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

.project-card {
    background: white;
    border-radius: 12px;
    border: 1px solid black;
    box-shadow: -8px 8px 0px -1px hsla(0, 0%, 53%, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.project-image-container:hover .project-img {
    transform: scale(1.05);
}

.project-title-overlay {
    position: absolute;
    bottom: 0;
    background: rgba(133, 86, 244, 0.522);
    color: white;
    width: 100%;
    padding: 10px 15px;
    font-weight: bold;
}

.badge {
    width: 60px;
    margin: -15px 333px;
    padding: 5px 7px;
    text-align: center;
    background: #f3f6fa;
    border-color: #c2cadb #bbc5d6 #b7c0cd;
    border-radius: 12px;
    -webkit-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.408);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.321);
    z-index: 100;
}

.badge-saas {
    background-color: var(--background-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);

}

.badge-site {
    background-color: var(--background-color);
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.badge-tool {
    background-color: var(--background-color);
    color: var(--success-color);
    border: 2px solid var(--success-color);
}

.badge-game {
    background-color: var(--background-color);
    color: var(--jaune-color);
    border: 2px solid var(--jaune-color);
}

.project-content {
    padding: 20px;
}

.project-links {
    margin-top: 15px;
}

.project-links a {
    color: #ab9ff2;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2em;
}


#home {
    background: transparent;
    padding-top: 200px;
}

#about {
    background: linear-gradient(135deg, #ab9ff2 0%, #ab9ff2 50%, #ab9ff2 100%);
}

#services {
    background: transparent;
}

#portfolio {
    background: linear-gradient(135deg, #ab9ff2 0%, #ab9ff2 50%, #ab9ff2 100%);
}

#contact {
    background: transparent;
}

/* pourquoi me confier votre site */
.benefits {
    padding: 60px 0;
    background-color: transparent;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
    color: var(--text-color);
}

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

.benefit-card {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-icon {
    font-size: 50px;
    color: var(--primary-color);
    fill: var(--primary-color);
    margin-bottom: 20px;
}

.benefit-card h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.profil {
    display: block;
    margin: 0 auto;
    width: 50%;
    height: auto;
    border-radius: 25%;
}

a {
    text-decoration: none;
    color: var(--primary-color);

}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-description {
    opacity: 0.8;
    line-height: 1.5;
}

/* ==================== FLOATING ELEMENTS ==================== */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-circle {
    position: absolute;
    border-radius: 10%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    animation: float 6s ease-in-out infinite;
}

.floating-circle:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-circle:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-circle:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {

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

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes float-rotate {

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

    50% {
        transform: translateY(-15px) rotate(45deg);
    }
}


/* ==================== FOOTER ==================== */
.footer {
    /*background: rgba(255, 255, 255, 0.1);*/
    backdrop-filter: blur(20px);
    border-radius: 12px;
    margin: 30px auto 40px;
    padding: 25px 40px;
    max-width: 1000px;
    width: calc(100% - 60px);
    /*box-shadow: 
                0 20px 40px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);*/
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            #ab9ff2,
            transparent);
    transition: left 0.8s ease;
}

.footer:hover::before {
    left: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: white;
    position: relative;
    z-index: 2;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.footer-logo {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.footer-logo::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: logo-pulse 2s ease-in-out infinite;
}

.footer-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.footer-link:hover {
    color: white;
    transform: translateY(-1px);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.social-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-copy {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer {
        width: calc(100% - 30px);
        padding: 20px 25px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer {
        width: calc(100% - 20px);
        padding: 15px 20px;
    }

    .footer-links {
        gap: 15px;
    }
}

/* ==================== CONTACT FORM ==================== */
.contact-form {
    width: 800px;
    max-width: 90%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: white;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-input:focus,
.form-textarea:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.submit-btn {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px #9489d6;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: left 0.3s ease;
}

.submit-btn:hover::before {
    left: 0;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

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

@media (max-width: 768px) {
    .contact-form {
        padding: 30px 25px;
        margin: 0 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: 25px 20px;
        margin: 0 10px;
    }
}

/* section FAQ */
#faq {
    width: 90vw;
    max-width: 900px;
    margin: 5vh auto;
    padding: 2rem;
    background: transparent;
    backdrop-filter: blur(6px);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* TITRE */
#faq h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--background-color);
}

/* CONTENEUR */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* ITEM */
.faq-item {
    border: 1px solid hsla(249, 48%, 69%, 0.782);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    background: transparent;
}

/* QUESTION */
.faq-question {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--background-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: hsla(249, 48%, 69%, 0.782);
}

/* ICON */
.faq-question i {
    transition: transform 0.3s ease;
}

/* ANSWER */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    font-size: 1rem;
    color: whitesmoke;
    line-height: 1.6;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

/* ACTIF */
.faq-item.active .faq-answer {
    padding: 1rem 1.5rem 1.5rem;
    max-height: 500px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.custom-toast {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1000;
}

/* Animation 3D threejs */
#container3D {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s;
}

.loader .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid white;
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}



@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.dev-card {
    font-family: 'Segoe UI', system-ui, sans-serif;
    max-width: 400px;
    margin: 0 auto;
    background: linear-gradient(145deg, #1e1e2f 0%, #2d2d4e 100%);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: #f0f0f5;
    text-align: center;
}

.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.profile-img {
    margin-top: -87px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.dev-name {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-color), #4fc3f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dev-description {
    margin: 20px 20px;
    line-height: 1.6;
    font-size: 16px;
    color: #d1d1e0;
}

/* Responsive */
@media (max-width: 480px) {
    .dev-card {
        max-width: 320px;
        padding: 20px;
    }

    .profile-img {
        width: 120px;
        height: 120px;
    }

    .dev-name {
        font-size: 24px;
    }
}