/* ================================================================
   style-projets.css — Science L@b22 — Page Projets (projets.html)
   
   Palette :
     Or COSMIC      : #A68628 / #c9a53b (hover)
     Gris texte     : #444444
     Blanc          : #ffffff
   
   Police principale : Plus Jakarta Sans (400 + 700)
   
   Structure :
     1. Réglages globaux
     2. Fond étoilé
     3. Barre de navigation
     4. Section COSMIC (héro)
     5. Autres projets
     6. Footer
     7. @media — Responsive
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;700&display=swap');
/* Note : les imports Sekuya, Space Mono, Sedgwick Ave, Luckiest Guy
   ont été retirés car non utilisés. Les réajouter si nécessaire. */


/* ── 1. RÉGLAGES GLOBAUX ─────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #444444;
    /* Pas de height fixe ici : laisse le contenu définir la hauteur naturellement */
}


/* ── 2. FOND ÉTOILÉ ──────────────────────────────────────────── */
/*
   Le conteneur est en position absolute (z-index: -1) pour ne pas
   bloquer les interactions. Le pseudo-élément ::after crée un dégradé
   blanc qui efface progressivement le fond étoilé vers le bas.
*/
.conteneur-fond-etoile {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: -1;
    pointer-events: none;
}

.fond-etoile {
    width: 100%;
    height: 950px;
    object-fit: cover;
    display: block;
}

/* Fondu vers le blanc en bas du fond étoilé */
.conteneur-fond-etoile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(255,255,255,0)    55%,
        rgba(255,255,255,0.05) 65%,
        rgba(255,255,255,0.15) 73%,
        rgba(255,255,255,0.30) 80%,
        rgba(255,255,255,0.50) 87%,
        rgba(255,255,255,0.70) 92%,
        rgba(255,255,255,0.88) 96%,
        rgba(255,255,255,1)    100%
    );
}


/* ── 3. BARRE DE NAVIGATION ──────────────────────────────────── */
/* Voir style.css pour les commentaires détaillés — comportement identique */
.barre-navigation {
    background-color: rgba(68, 68, 68, 0.4);
    position: fixed;
    padding: 25px 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    transition: background 0.5s;
    z-index: 100;
}

.barre-navigation.scrolled {
    background: white;
    box-shadow: 0 1px 10px -5px rgba(68,68,68,0.3);
}

.barre-navigation .identitee {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.barre-navigation.scrolled .identitee {
    color: #444444;
}

.barre-navigation .identitee .logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.barre-navigation .identitee .Science-lab22 {
    font-size: 22px;
    font-weight: 700;
}

.barre-navigation .navigation {
    display: flex;
    align-items: center;
    gap: 55px;
}

.barre-navigation .navigation a {
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.barre-navigation.scrolled .navigation:not(.mobile-menu) a {
    color: #444444;
}

.barre-navigation .navigation a:hover {
    opacity: 0.5;
}

.barre-navigation .btn-contact {
    display: inline-flex;
    align-items: center;
    padding: 9px 20px;
    background: #444444;
    color: white;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.barre-navigation .btn-contact:hover {
    background: #333333;
}

.barre-navigation .menu-ham {
    width: 35px;
    position: absolute;
    right: 35px;
    display: none;
}

.barre-navigation .menu-ham-2 {
    width: 35px;
    position: absolute;
    right: 35px;
    display: none;
}


/* ── 4. SECTION COSMIC ───────────────────────────────────────── */
/*
   Héro de la page projets, occupant toute la hauteur de l'écran.
   Grid 2 colonnes : titre COSMIC | texte + bouton.
   La fusée SVG est positionnée en absolu, entre les deux colonnes,
   légèrement inclinée (rotate 15deg).
*/
.projet-cosmic {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 8% 60px;
    margin-bottom: 100px;
}

/* Fusée décorative */
.fusee {
    position: absolute;
    height: 400px;
    z-index: -1;
    top: 300px;
    left: 550px;
    transform: rotate(15deg);
    pointer-events: none;
}

/* Grille principale titre + contenu */
.projet-1 {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Titre "Projet COSMIC" */
.titre-projet-cosmic {
    padding-top: 90px;
    font-size: clamp(35px, 5vw, 60px);
    color: #A68628;
    font-weight: 400;
    line-height: 1;
}

.titre-projet-cosmic .COSMIC {
    display: block;
    font-size: clamp(65px, 9vw, 115px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 0.9;
    margin-top: 5px;
}

/* Bloc de droite */
.contenu-droite {
    display: flex;
    flex-direction: column;
    gap: 35px;
    justify-content: center;
}

/* Texte en blanc car sur fond étoilé sombre */
.descr-projet-cosmic {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    line-height: 1.7;
    text-align: justify;
}

.projet-actions {
    padding-top: 10px;
}

/* Bouton or */
.projet-actions .btn-principal {
    display: inline-flex;
    padding: 14px 28px;
    background-color: #A68628;
    color: white;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.2s, background-color 0.2s;
}

.projet-actions .btn-principal:hover {
    background-color: #c9a53b;
    transform: translateY(-2px);
}


/* ── 5. AUTRES PROJETS ───────────────────────────────────────── */
/*
   Liste de projets en alternance gauche/droite.
   Chaque .projet est un flex row avec 3 éléments :
     [image] [texte] [titre]  ou  [titre] [texte] [image]
   selon l'ordre dans le HTML.
   
   .espace = placeholder rectangulaire gris à remplacer par une image.
*/
.projets {
    color: #444444;
}

.projets .projet {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 100px 80px;
    gap: 60px;
}

/* Séparateur visuel entre projets */
.projets .projet + .projet {
    border-top: 1px solid #e8e8e8;
}

.projets .projet .descr-projet {
    max-width: 500px;
    line-height: 1.7;
    font-size: 16px;
}

.projets .projet .titre {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.projets .projet .titre .titre-projet-1 {
    font-size: clamp(30px, 4vw, 55px);
    font-weight: 400;
}

.projets .projet .titre .titre-projet-2 {
    font-size: clamp(55px, 8vw, 110px);
    font-weight: 900;
    line-height: 0.9;
}

/* Placeholder image — à remplacer par <img> */
.projets .projet .espace {
    width: 200px;
    height: 200px;
    background-color: #e0e0e0;
    border-radius: 12px;
    flex-shrink: 0;
}


/* ── 6. FOOTER ───────────────────────────────────────────────── */
.footer {
    background-color: #444444;
    height: 200px;
    display: flex;
    padding: 80px;
    gap: 60px;
    color: white;
    justify-content: space-around;
    align-items: center;
}

.footer .identitee {
    display: flex;
    align-items: center;
    color: white;
    gap: 20px;
}

.footer .identitee .logo {
    height: 60px;
}

.footer .identitee .Science-lab22 {
    font-size: 25px;
    width: 60px;
}

.footer .adresses {
    color: white;
}

.footer .reseaux img {
    width: 28px;
    height: 28px;
}


/* ══════════════════════════════════════════════════════════════
   7. RESPONSIVE — @media
   
   Breakpoints :
     < 1100px : menu hamburger + section COSMIC en colonne
     < 900px  : projets en colonne
     < 600px  : mobile
══════════════════════════════════════════════════════════════ */

/* ── < 1100px ────────────────────────────────────────────────── */
@media screen and (max-width: 1100px) {

    /* Hamburger */
    .barre-navigation .identitee { z-index: 10; }
    .barre-navigation .btn-contact { display: none; }
    .barre-navigation .menu-ham { display: block; z-index: 10; }

    .barre-navigation .navigation {
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        flex-direction: column;
        position: absolute;
        align-items: flex-start;
        top: 0;
        right: 0;
        width: 100vw;
        background: rgba(17, 17, 17, 0.88);
        padding: 120px 0 100vh 35px;
        gap: 35px;
        z-index: 5;
        transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .barre-navigation .navigation.mobile-menu {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .barre-navigation .navigation.mobile-menu a { color: white; font-size: 20px; }
    .barre-navigation.scrolled .menu-ham { display: none; }
    .barre-navigation.scrolled .menu-ham-2 { display: block; z-index: 10; }
    .barre-navigation.scrolled.menu-ouvert .identitee { color: white; }
    .barre-navigation.scrolled.menu-ouvert .menu-ham { display: block; }
    .barre-navigation.scrolled.menu-ouvert .menu-ham-2 { display: none; }

    .barre-navigation .navigation.mobile-menu .btn-contact {
        display: inline-flex;
        position: absolute;
        top: 400px;
        left: 35px;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        color: #444444;
        background-color: white;
        z-index: 6;
    }

    /* Section COSMIC : 1 colonne centrée */
    .projet-1 {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .contenu-droite {
        align-items: center;
    }

    .descr-projet-cosmic {
        text-align: center;
    }

    /* Cache la fusée sur tablette (position absolue cassée en 1 colonne) */
    .fusee {
        display: none;
    }

    /* Projets */
    .projets .projet {
        padding: 60px 40px;
        gap: 40px;
    }
}


/* ── < 900px : Tablette ──────────────────────────────────────── */
@media screen and (max-width: 900px) {

    /* Projets : layout colonne */
    .projets .projet {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 60px 30px;
    }

    /* Remet .espace après le titre quand l'ordre HTML est inversé */
    .projets .projet .espace {
        width: 100%;
        max-width: 400px;
        height: 180px;
        order: 3;
    }

    .projets .projet .titre {
        order: 1;
    }

    .projets .projet .descr-projet {
        order: 2;
        max-width: 100%;
    }
}


/* ── < 600px : Mobile ────────────────────────────────────────── */
@media screen and (max-width: 600px) {

    .projet-cosmic {
        padding: 100px 5% 40px;
        min-height: auto;
    }

    .descr-projet-cosmic {
        font-size: 15px;
    }

    .footer {
        flex-direction: column;
        height: auto;
        padding: 40px 20px;
        gap: 20px;
        text-align: center;
    }
}
