:root {
    --accent: #ffa07a;
    --accent-dark: #3c0752;
    --bg: #f7f8fa;
    --card: #ffffff;
    --text: #1f1f1f;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: large;
}

.projet {
    width: min(1800px, 98%);
    margin: 0 auto;
    padding: 0 60px;
    box-sizing: border-box;
}

main>div {
    background: var(--card);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    padding: 30px 40px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

/* Bar de navigation */
nav {
    margin-bottom: 70px;
    background: linear-gradient(90deg,
            var(--accent) 0%,
            var(--accent) 25%,
            var(--accent-dark) 70%);
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #eaeaea;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

nav>a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    margin: 30px 0 30px 50px;
}

/* boutons */
.bouton {
    background-color: rgba(255, 255, 255, 0.18);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    border-radius: 12px;
    padding: 5px 7px;
}

.bouton:hover {
    background-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

/* textes */
h1,
h2 {
    text-align: center;
    color: var(--accent-dark);
}

p {
    margin: 16px auto;
    max-width: 900px;
    text-align: left;
    color: #2b2b2b;
}

.projet p {
    font-size: 1.05rem;
}

/* Liens */
.lien {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.lien a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--accent-dark);
}

.lien a:hover {
    color: var(--accent);
}

/* Images */
img {
    border-radius: 10px;
}

.pasrond {
    border-radius: 0;
}

.icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.projet>div>p {
    margin-top: 30px;
    margin-bottom: 30px;
}

.projet-section {
    margin: 50px 0;
}

/* Gallerie d'image */
.galerie {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 20px;
    max-width: 900px;
    margin: 20px auto;
}



/* Image simple */
.projet img:not(.galerie img) {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
}

/* Zoom images */
.zoomable {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.zoomable:hover {
    transform: scale(1.04);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* PDF */
embed {
    display: block;
    margin: 20px auto;
    max-width: 100%;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.lightbox.active {
    display: flex;
}

/* Schéma relationnel */
.schema {
    max-width: 800px;
    margin: 0 auto;
}

.schema p {
    text-align: left;
}

/* Responsivité */
@media (max-width: 1024px) {

    main>div {
        padding: 0 25px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    nav>a {
        margin: 10px;
    }

    .section {
        flex-direction: column;
        text-align: center;
    }

    .galerie {
        grid-template-columns: 1fr;
    }

    p {
        font-size: 1rem;
        max-width: 90%;
    }
}

@media (max-width: 600px) {

    main {
        font-size: medium;
    }

    main>div {
        padding: 0 15px;
        width: 100%;
    }

    nav {
        flex-direction: column;
        align-items: center;
        margin-bottom: 30px;
        background: linear-gradient(180deg,
                var(--accent) 0%,
                var(--accent) 20%,
                var(--accent-dark) 100%);
    }

    nav>a {
        margin: 8px 0;
    }

    .bouton {
        width: 100%;
        text-align: center;
    }

    .galerie {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .zoomable:hover {
        transform: none;
    }

    embed {
        height: 300px;
    }

    h1 {
        font-size: 1.4rem;
    }

    h2 {
        font-size: 1.2rem;
    }
}