/* v2 qui sommes nous */

* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    font-family: "Google Sans Code", monospace;
    overflow-x: hidden;
    color: #2c3e50;
    line-height: 1.8;
}



/* ------------------------- écart header ---------------------- */
header {
    height: 120px;
    width: 100%;
}

/* ----------------------- section présentation -------------------- */
.presentation {
    padding: 80px 60px;
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

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

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

.presentation-post {
    background: white;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.presentation-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.presentation-post h3 {
    color: #CC0303;
    font-size: 1.8em;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.presentation-post h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, #CC0303, #ff4444);
    border-radius: 2px;
}

.presentation-post p {
    font-size: 1.1em;
    line-height: 1.9;
    color: #34495e;
}

/* conteneur de l'intégration de carte */
.mapouter {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    background: white;
    padding: 20px;
}

.mapouter:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(204, 3, 3, 0.15);
}

.osm_canvas {
    overflow: hidden;
    background: none !important;
    height: 500px;
    width: 100%;
    border-radius: 20px;
}

.osm_canvas iframe {
    border-radius: 20px;
    width: 100% !important;
    height: 100% !important;
}

/* partie vidéo + texte */
.partie2 {
    padding: 80px 60px;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.partie2G {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    background: white;
    padding: 20px;
}

.partie2G:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(204, 3, 3, 0.2);
}

.iframe-partie2G {
    width: 100%;
    height: 350px;
    border-radius: 20px;
    border: none;
}

.partie2D {
    background: white;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.partie2D:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.partie2D h3 {
    color: #CC0303;
    font-size: 1.8em;
    margin-bottom: 10px;
    line-height: 1.4;
}

.partie2D ul {
    list-style: none;
    padding-left: 0;
}

.partie2D ul li {
    font-size: 1.05em;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    color: #34495e;
    line-height: 1.8;
}

.partie2D ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #CC0303;
    font-size: 1.3em;
    font-weight: bold;
}

/* partie 3 text et vidéo */
.partie3 {
    padding: 80px 60px;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.partie3G {
    background: white;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.partie3G:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.partie3G h3 {
    color: #CC0303;
    font-size: 1.8em;
    margin-bottom: 10px;
}

.partie3G ul {
    list-style: none;
    padding-left: 0;
}

.partie3G ul li {
    font-size: 1.05em;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    color: #34495e;
    line-height: 1.8;
}

.partie3G ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #CC0303;
    font-size: 1.3em;
    font-weight: bold;
}

.partie3G p {
    font-size: 1.1em;
    line-height: 1.9;
    color: #34495e;
    font-weight: 500;
}

.partie3D {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    background: white;
    padding: 20px;
    position: sticky;
    top: 140px;
}

.partie3D:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(204, 3, 3, 0.2);
}

/* section finale */
.partie4 {
    padding: 80px 60px 100px;
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.partie4a {
    background: linear-gradient(135deg, rgba(204, 3, 3, 0.05) 0%, rgba(255, 68, 68, 0.05) 100%);
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(204, 3, 3, 0.1);
    transition: all 0.4s ease;
}

.partie4a:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(204, 3, 3, 0.15);
    border-color: rgba(204, 3, 3, 0.3);
}

.partie4a h3 {
    color: #CC0303;
    font-size: 2em;
    margin-bottom: 20px;
    line-height: 1.5;
}

.partie4a p {
    font-size: 1.1em;
    line-height: 1.9;
    color: #34495e;
}

.partie4a ul {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.partie4a ul li {
    font-size: 1.1em;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    color: #34495e;
    line-height: 1.8;
}

.partie4a ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #CC0303;
    font-size: 1.3em;
    font-weight: bold;
}

/* media queries etc */
@media screen and (max-width: 1800px) {
    .navbar a {
        font-size: 1em;
    }

    .logo {
        width: 250px;
    }
}

@media screen and (max-width: 1500px) {
    .navbar a {
        font-size: 0.9em;
    }

    .navbar .nav-links ul {
        gap: 10px;
    }

    .navbar .nav-links ul li {
        margin: 0 8px;
    }
}

@media screen and (max-width: 1200px) {
    .presentation-grid,
    .partie2,
    .partie3 {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .partie3D {
        position: relative;
        top: 0;
    }

    .presentation,
    .partie2,
    .partie3,
    .partie4 {
        padding: 60px 40px;
    }

    .navbar {
        padding: 15px 30px;
    }

    .navbar .menu-hamburger {
        display: block;
        position: absolute;
        right: 30px;
        top: 50%;
        transform: translateY(-50%);
    }

    .logo {
        width: 200px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left: -100%;
        transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);


        .nav-links ul {
            flex-direction: column;
            gap: 20px;
        }

        .navbar .nav-links ul li {
            margin: 20px 0;
        }

        .navbar a {
            font-size: 1.8em;
            color: white;
        }

        .navbar a::after {
            background: linear-gradient(90deg, #fff, #CC0303);
        }

        .navbar a:hover {
            color: #ff4444;
        }

        .mobile-menu {
            margin-left: 0;
        }
    }

    @media screen and (max-width: 768px) {
        .presentation,
        .partie2,
        .partie3,
        .partie4 {
            padding: 40px 20px;
        }

        .presentation-post,
        .partie2D,
        .partie3G,
        .partie4a {
            padding: 30px;
        }

        .presentation-post h3,
        .partie2D h3,
        .partie3G h3,
        .partie4a h3 {
            font-size: 1.5em;
        }

        .presentation-post p,
        .partie2D ul li,
        .partie3G ul li,
        .partie4a p,
        .partie4a ul li {
            font-size: 1em;
        }

        .iframe-partie2G {
            height: 250px;
        }

        .osm_canvas {
            height: 350px;
        }
    }

    @media screen and (max-width: 600px) {
        .navbar {
            padding: 10px 20px;
        }

        .logo {
            width: 150px;
        }

        .navbar .menu-hamburger {
            right: 20px;
            width: 30px;
        }

        .presentation-post,
        .partie2D,
        .partie3G,
        .partie4a {
            padding: 25px;
            border-radius: 20px;
        }

        .mapouter,
        .partie2G,
        .partie3D {
            border-radius: 20px;
            padding: 15px;
        }
    }

    /* --------------------- scrolling manuel ------------------------- */
    html {
        scroll-behavior: smooth;
    }

    /* scrollbar personnalisée aux couleurs d'innovalo */
    ::-webkit-scrollbar {
        width: 10px;
    }

    ::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    ::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #CC0303, #ff4444);
        border-radius: 5px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, #990202, #CC0303);
    }
