@import url('https://fonts.googleapis.com/css2?family=Chewy&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Mansalva&display=swap');

/* =============================================
   VARIABLES
   ============================================= */
:root {
    --jaune: #FFC107;
    --vert: #24D56D;
    --bleu: #2226F7;
    --rose: #FF3797;
    --noir: #01011C;
    --chewy: "Chewy", cursive;
    --mansalva: "Mansalva", cursive;
}

/* =============================================
   RESET / BASE
   ============================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    width: 100%;
    overflow-x: hidden;
    background: var(--noir);
    font-family: var(--mansalva);
}

h1,
h2,
h3 {
    margin: 0;
}

img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* HEADER / NAVBAR */

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 30;
}

.navbar {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 24px 40px;
    background: transparent;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: opacity 0.25s ease;
}

.nav-links a:hover {
    opacity: 0.75;
}

/* =============================================
   COULEURS DE FOND
   ============================================= */
.bg-green {
    width: 100%;
    min-height: 100vh;
    background-image: url(img/cyberpunk-green.png);
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: scroll;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 40px 20px;
}

.bg-pink {
    width: 100%;
    min-height: 100vh;
    background-image: url(img/cyberpunk-pink.png);
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: scroll;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 40px 20px;
}

.bg-blue {
    width: 100%;
    min-height: 100vh;
    background-image: url(img/cyberpunk-blue.png);
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: scroll;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 40px 20px;
}

.teaser {
    width: 100%;
    position: relative;
}

.background-img {
    width: 100%;
    min-height: 100vh;
    background-image: url(img/cyberpunk.webp);
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: scroll;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 40px 20px;
}

.background-img h1 {
    font-family: var(--chewy);
    font-size: clamp(48px, 8vw, 120px);
    color: var(--jaune);
    text-align: center;
    letter-spacing: 4px;
    text-shadow:
        0 0 30px rgba(255, 193, 7, 0.5),
        0 4px 0 rgba(0, 0, 0, 0.5);
}

video {
    width: 100%;
    max-width: 900px;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* =============================================
   SÉPARATEUR CYBERPUNK
   ============================================= */
.separator {
    position: relative;
    width: 100%;
    height: 70px;
    background: var(--noir);
    clip-path: polygon(0% 15%, 14% 15%, 15% 5%, 31% 5%,
            32% 14%, 100% 15%, 100% 67%, 88% 67%,
            79% 76%, 69% 76%, 65% 68%, 0 68%);
    z-index: 10;
    margin-top: -20px;
}

/* =============================================
   GRID COMMUNE AUX SECTIONS
   ============================================= */
.grid-left,
.grid-right {
    margin: 0 auto;
    width: 90%;
    min-height: 80vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 40px 0;
}

/* =============================================
   SECTION 2 — DISTRIBUTEUR (grille gauche)
   ============================================= */
.left-visual {
    grid-column: 1;
    grid-row: 1 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.about-text {
    margin: 5px;
}

/* Contient le modèle 3D ou l'image */
.left-visual model-viewer,
.left-visual canvas,
.left-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.right-infos {
    grid-column: 2;
    grid-row: 1 / 3;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 16px;
}

.title {
    padding: 20px 24px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
}

.about-soustitre {
    font-family: var(--chewy);
    font-size: clamp(36px, 5vw, 64px);
    color: #fff;
    margin: 0;
    line-height: 1.1;
    letter-spacing: 1px;
}

.texts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-content: start;
}

.text1,
.text2,
.text3,
.text4,
.text5,
.text6 {
    border-radius: 10px;
    padding: 20px;
    min-height: 120px;
    font-family: var(--mansalva);
    font-size: 20px;
    line-height: 1.6;
    color: rgb(255, 255, 255);
}

.text1 {
    background: rgba(0, 0, 0, 0.2);
}

.text2 {
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

/* =============================================
   SECTION 3 — CUP (grille droite = miroir)
   ============================================= */
.left-infos {
    grid-column: 1;
    grid-row: 1 / 3;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 16px;
}

.right-visual {
    grid-column: 2;
    grid-row: 1 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.right-visual model-viewer,
.right-visual canvas,
.right-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Textes section cup */
.text3 {
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
}

.text4 {
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
}

/* =============================================
   SECTION 4 — TEAM (grille gauche + image)
   ============================================= */
.team-visual {
    grid-column: 1;
    grid-row: 1 / 3;
    border-radius: 12px;
    overflow: hidden;
    min-height: 400px;
}

.team-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.team-infos {
    grid-column: 2;
    grid-row: 1 / 3;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 16px;
}

.text5 {
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
}

.text6 {
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
}

/* =============================================
   SECTION 5 — FORMULAIRE DE CONTACT
   ============================================= */
.contact-form {
    background: var(--noir);
    padding: 48px 48px 20px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.contact-form h2 {
    font-family: var(--chewy);
    font-size: clamp(36px, 5vw, 64px);
    color: var(--jaune);
    text-align: center;
    letter-spacing: 2px;
}

.form-inner {
    width: 100%;
    max-width: 720px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-inner input,
.form-inner textarea {
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 14px 18px;
    color: #fff;
    font-family: var(--mansalva);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
}

.form-inner input:focus,
.form-inner textarea:focus {
    border-color: var(--jaune);
}

.form-inner input::placeholder,
.form-inner textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-inner .field-full {
    grid-column: 1 / -1;
}

.form-inner textarea {
    resize: vertical;
    min-height: 140px;
}

.btn-submit {
    grid-column: 1 / -1;
    justify-self: center;
    background: var(--jaune);
    color: var(--noir);
    font-family: var(--chewy);
    font-size: 22px;
    letter-spacing: 1px;
    padding: 14px 48px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3);
}

.btn-submit:active {
    transform: translateY(1px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

/* =============================================
   FOOTER
   ============================================= */
.about-footer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    padding-bottom: 30px;
}

.icon-footer {
    width: 50px;
}

/* =============================================
   RESPONSIVE — TABLETTE / MOBILE
   ============================================= */
@media (max-width: 900px) {

    .grid-left,
    .grid-right {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        min-height: unset;
    }

    .left-visual,
    .right-visual,
    .team-visual {
        grid-column: 1;
        grid-row: 1;
        min-height: 280px;
    }

    .right-infos,
    .left-infos,
    .team-infos {
        grid-column: 1;
        grid-row: 2;
    }

    .texts,
    .form-inner {
        grid-template-columns: 1fr;
    }

    .form-inner .field-full {
        grid-column: 1;
    }

    .form-inner .btn-submit {
        grid-column: 1;
    }
}

@media (max-width: 600px) {
    .background-img {
        padding: 30px 16px;
    }

    .grid-left,
    .grid-right {
        width: 95%;
        padding: 24px 0;
    }

    .about-soustitre {
        font-size: 32px;
    }

    .title {
        padding: 14px 16px;
    }

    .contact-form {
        padding: 48px 5%;
    }
}

/* PRESENTATION */

.body{
    margin: auto;
}


.galerie-grid {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0 auto;
}

.galerie-item {
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.piluleees{
    display: flex;
    flex-direction: row;
}

.galerie-item:hover {
    transform: scale(1.02);
    border-color: rgba(255, 193, 7, 0.4);
}

/* Zone images — plusieurs images côte à côte */
.galerie-item .imgs {
    display: flex;
    flex-direction: row;
    flex: 1;
}

.galerie-item .imgs img {
    flex: 1;
    min-width: 0;
    object-fit: cover;
    display: block;
    aspect-ratio: 4 / 3;
}
.galerie-item > img {
    width: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 4 / 3;
}

.galerie-titre {
    font-family: var(--chewy);
    font-size: clamp(20px, 2.5vw, 32px);
    color: var(--jaune);
    text-align: center;
    padding: 14px 16px;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.3);
    margin: 0;
}