* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Urbanist", sans-serif;
    text-decoration: none;
    scroll-behavior: smooth;
}

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    overflow-y: scroll;
}

section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: 100vh;
    width: 100%;
}

body.no-scroll {
    overflow: hidden;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.10);
}

.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 6rem;
    list-style: none;
}

.nav-links a {
    color: #03045E;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #D92935;
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #D92935;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Burger Menu */
.burger-menu {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.burger-icon {
    width: 30px;
    height: 20px;
    position: relative;
}

.burger-icon span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #03045E;
    transition: 0.3s ease-in-out;
}

.burger-icon span:nth-child(1) { top: 0; }
.burger-icon span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.burger-icon span:nth-child(3) { bottom: 0; }

.burger-menu.active .burger-icon span:nth-child(1) {
    transform: rotate(45deg);
    top: 50%;
}

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

.burger-menu.active .burger-icon span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 40%;
}

/* ===== SOCIAL MENU SIDEBAR ===== */
.social-menu {
    position: fixed;
    right: -180px;
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16.5px);
    border-radius: 30px 0 0 30px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    transition: all 0.3s ease-in-out;
    padding: 3rem;
    z-index: 1000;
}

.social-menu:hover {
    transform: translate3d(-160px, -50%, 0);
}

.social-title {
    position: absolute;
    left: 50px;
    top: 66%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left center;
    font-weight: 800;
    color: #03045E;
    font-size: 1.2rem;
    white-space: nowrap;
    letter-spacing: 1px;
}

.social-content {
    margin-left: 60px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-card {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 1rem;
    background: #F7F7FB;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid #03045E;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.social-card:hover {
    transform: translateX(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px 0 rgba(3, 4, 94, 0.2);
}

.icon-wrapper {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.platform-name {
    font-weight: 600;
    font-size: 1rem;
    color: #03045E;
}

.fa-github { color: #333; }
.fa-linkedin-in { color: #0077B5; }

/* ===== COMMON SECTIONS ===== */
.screen-container {
    width: 90%;
    max-width: 1400px;
    height: 85vh;
    min-height: 600px;
    margin: 0 auto;
}

.monitor-content {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #03045E;
    margin: 60px;
    text-align: center;
    font-weight: 600;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #666;
    font-weight: 400;
    margin-bottom: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== ABOUT SECTION ===== */
.about {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.about-container {
    display: flex;
    gap: 60px;
    height: 100%;
}

.image-container {
    flex: 0 0 45%;
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.image-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 120px;
    transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

.info-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
    padding-right: 20px;
}

.headline {
    font-size: 1.5rem;
    color: #03045E;
    font-weight: 600;
    margin-bottom: 20px;
}

.quote {
    font-style: italic;
    color: #666;
    border-left: 3px solid #D92935;
    padding-left: 20px;
    margin: 20px 0;
}

.text-content {
    color: #666;
    line-height: 1.6;
}

.text-content p {
    margin-bottom: 16px;
}

.btn-download {
    background-color: #03045E;
    color: white;
    padding: 12px 24px;
    border-radius: 28px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(3, 4, 94, 0.2);
}

/* ===== WORKS SECTION ===== */
.works {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

.works-container {
    width: 100%;
    text-align: center;
}

.partners-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    margin-top: 60px;
    align-items: center;
    justify-items: center;
}

.partner-logo-item {
    width: 100%;
    max-width: 200px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #F7F7FB;
    border-radius: 16px;
    transition: transform 0.1s ease-out;
}

.partner-logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(50%);
    transition: all 0.3s ease;
}

.trust-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 1rem;
    padding-top: 1rem;
}

.stat-box {
    text-align: center;
    min-width: 120px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #03045E;
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

/* ===== SKILLS SECTION ===== */
.skills {
    padding: 40px 0;
}

/* ===== PROJECTS SECTION ===== */
.projects {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

.projects-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
    margin-bottom: 60px;
    align-items: stretch;
    justify-items: center;
}

.project-card {
    width: 100%;
    max-width: 350px;
    background: #F7F7FB;
    border: 2px solid #03045E;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(3, 4, 94, 0.1);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(3, 4, 94, 0.2);
}

.project-name {
    font-size: 1.4rem;
    color: #03045E;
    font-weight: 600;
    margin: 0;
}

.project-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.view-all-btn {
    background: #03045E;
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: 20px;
}

.view-all-btn:hover {
    background: #02034a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(3, 4, 94, 0.3);
}

.view-all-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.view-all-btn:hover i {
    transform: translateX(5px);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    position: relative;
    padding: 2rem;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    padding: 4rem;
    box-shadow: 0px 141px 200px -80px rgba(20, 32, 72, 0.3);
    border: 2px solid #03045E;
    display: flex;
    gap: 4rem;
    position: relative;
    min-height: 600px;
}

.contact-content {
    flex: 1;
    max-width: 50%;
    display: flex;
    flex-direction: column;
}

.title {
    font-size: 3rem;
    margin-bottom: 2.5rem;
    color: #03045E;
    line-height: 1.2;
}

.title span {
    color: #D92935;
}

.contact-description {
    text-align: justify;
    line-height: 1.6;
    margin: 20px 0 30px 0;
    color: #666;
    font-size: 16px;
    max-width: 100%;
}

.contact-info {
    margin-top: auto;
    padding-top: 2rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-text span {
    font-size: 0.9rem;
    color: #666;
    display: block;
    margin-bottom: 0.2rem;
}

.info-text p {
    font-size: 1rem;
    color: #000;
    font-weight: 500;
}

.info-text a {
    color: #000;
}

.social-links {
    display: flex;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #03045E;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    padding: 8px 16px;
    border-radius: 8px;
    background-color: #F7F7FB;
    transition: all 0.3s ease;
    border: 0.5px solid #03045E;
}

.social-item:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.social-item i {
    font-size: 20px;
}

.social-item span {
    font-size: 14px;
}

.illustration-container {
    flex: 1;
    max-width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.illustration-container img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

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

/* ===== MOBILE RESPONSIVE - VERSION MINIMALISTE ===== */

/* DÉSACTIVATION SCROLL SNAP SUR MOBILE */
@media (max-width: 768px) {
    html {
        scroll-snap-type: none;
    }
    
    section {
        scroll-snap-align: none;
        min-height: auto;
        padding: 60px 0 40px 0;
    }
}

/* BURGER MENU MOBILE */
@media (max-width: 768px) {
    .burger-menu {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgb(255, 255, 255);
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        width: 100%;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        display: block;
        padding: 1rem;
    }
}

/* SUPPRESSION MENU SOCIAL LATÉRAL SUR MOBILE */
@media (max-width: 768px) {
    .social-menu {
        display: none;
    }
}

/* SECTION WORKS - MOBILE */
@media (max-width: 768px) {
    .works {
        padding: 40px 16px;
    }
    
    .screen-container {
        width: 100%;
        height: auto;
        min-height: auto;
    }
    
    .monitor-content {
        border-radius: 0;
        padding: 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin: 20px 0;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    /* GRID PARTENAIRES - 2 COLONNES */
    .partners-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-top: 30px;
    }
    
    .partner-logo-item {
        height: 80px;
        max-width: 100%;
        padding: 10px;
        /* DÉSACTIVATION EFFET PARALLAXE SUR MOBILE */
        transform: none !important;
    }
    
    /* STATISTIQUES - 2x2 */
    .trust-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 30px;
        padding: 20px 10px;
    }
    
    .stat-box {
        min-width: auto;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
}

/* SECTION SKILLS - MOBILE */
@media (max-width: 768px) {
    .skills {
        padding: 40px 0;
    }
    
    .skills .partners-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .skills .partner-logo-item span {
        font-size: 0.9rem !important;
    }
    
    .skills .partner-logo-item i {
        font-size: 2rem !important;
    }
}

@media (max-width: 768px) {
    .about {
        padding: 40px 16px;
    }
    
    .about-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .image-container {
        display: none;
    }
    
    .info-box {
        padding-right: 0;
        gap: 20px;
    }
    
    .headline {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .quote {
        font-size: 0.95rem;
        padding-left: 15px;
        margin: 15px 0;
    }
    
    .text-content {
        font-size: 1rem;
        text-align: justify;
    }
    
    .download-cv {
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }
    
    .btn-download {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .projects {
        padding: 40px 16px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
        margin-bottom: 30px;
    }
    
    .project-card {
        max-width: 100%;
        padding: 24px;
        transform: none !important;
    }
    
    .project-name {
        font-size: 1.3rem;
    }
    
    .project-description {
        font-size: 0.9rem;
    }
    
    .view-all-btn {
        width: 100%;
        max-width: 300px;
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 40px 16px;
    }
    
    .contact-container {
        flex-direction: column;
        padding: 30px 20px;
        border-radius: 16px;
        min-height: auto;
        gap: 30px;
    }
    
    .contact-content {
        max-width: 100%;
        width: 100%;
    }
    
    .title {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .contact-description {
        font-size: 0.95rem;
        text-align: center;
        margin: 15px 0;
    }
    
    .illustration-container {
        display: none;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 20px;
        padding-top: 20px;
    }
    
    .info-item {
        justify-content: center;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .info-item i {
        font-size: 1.5rem;
    }
    
    .social-links {
        flex-direction: column;
        width: 100%;
        padding-top: 20px;
    }
    
    .social-item {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .divider {
        height: 2rem !important;
    }
    
    .project-card:hover,
    .partner-logo-item:hover,
    .social-item:hover {
        transform: none;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .logo img {
        height: 35px;
    }
}

@media (max-width: 768px) {

@media (max-width: 768px) {
    .works .partners-showcase .partner-logo-item:nth-child(3),
    .works .partners-showcase .partner-logo-item:nth-child(4),
    .works .partners-showcase .partner-logo-item:nth-child(7),
    .works .partners-showcase .partner-logo-item:nth-child(8) {
        display: none;
    }
    
    .works .partners-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .skills .partners-showcase:nth-of-type(2) {
        display: none;
    }
    
    .skills .partners-showcase:nth-of-type(1) {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

}