@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Exo 2', sans-serif;
    margin: 0;
}

h1 {
    font-size: 7vw;
}

main {
    flex: 1; /* prend tout l'espace restant */
    display: flex;
    flex-direction: column;
}


.background-fumee {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;

    background-color: #000;


    background-image:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    background-blend-mode: lighten;
}
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}


.scroll-zone {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}

.scroll-content {
    width: 100%;
    height: 500%;
    background: url('../Images/nuage.jpg') center top repeat-y;
    background-size: 100% auto;

    border: 6px solid #ffffff;

    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);


    background-color: rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
}

.scroll-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    /* backdrop-filter: blur(15px); */
    pointer-events: none;
}

main section {
    max-width: 70vw;
    margin: 0 auto;
    padding: 100px 0;
    text-align: center;
}

main section p {
    color: #fff;
    font-size: 24px;
}

canvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -2;
}

.cards-container {
    max-width: 85vw;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 30px;
    padding-bottom: 50px;
}

.card-image {
    flex: 1; 
    width: 100%;
    height: 100%; /* Il va remplir les 400px restants */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
}

.card-image img {
    max-width: 100%;
    max-height: 100%;
    
    object-fit: contain;
    
    width: auto;
    height: auto;
    
    display: block;
    opacity: 0.9;
}

.btn-register,
.btn-login,
.btn-logout {
    display: inline-block;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #ffffff;
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 25px;
    font-family: 'Exo 2', sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}
.titre-section-parcours {
    color: #fff;
    text-align: center;
    font-size: 3rem;
    margin: 50px 0 30px;
    text-transform: uppercase;
    letter-spacing: 4px;
    width: 100%;
}
.card {
    width: calc(40% - 15px);
    min-width: 300px;
    max-height: 400px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 15px;
    overflow: hidden;
    color: #fff;
    text-align: center;
    margin: 0;
    border: 1px solid #ffffff;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.card-text {
    flex: 0 0 auto;
    margin-bottom: 20px;
    /* On retire le max-height ou on l'augmente pour ne pas couper le texte agrandi */
    max-height: none; 
    overflow: visible;
}

.card:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: scale(1.03);
}

.hero-card {
    display: flex;
    flex-direction: column; /* colonne pour le titre centré */
    align-items: center;
    justify-content: center;
    margin-top: 100px; /* espace depuis le haut */
    margin-bottom: 60px;
    text-align: center;
}

.hero-card .info {
    position: relative;
    text-align: center;

}

.hero-card h1 {
    color: #fff;
    font-weight: 200;
    line-height: 0.9;
    letter-spacing: 2px;
}

.hero-card .last-name {
    font-weight: 400;
    opacity: 0.3;
}

.hero-card .index {
    position: absolute;
    bottom: 0;
    right: -40px;
    font-size: 2vw;
    color: rgba(255, 255, 255, 0.1);
    font-weight: 200;
}

.index {
    display: block;
    font-size: 5vw;
    color: rgba(255, 255, 255, 0.15);
    font-weight: 200;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-align: right;
}

.navbar {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 50px;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar a {
    text-decoration: none;
    color: white;
    border: 1px solid white;
    padding: 8px 14px;
    border-radius: 25px;
    transition: 0.3s;
    font-weight: 500;
}

.navbar a:hover {
    background: white;
    color: black;
}

footer {
    margin-top: auto;
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    width: 100%;
    font-family: 'Exo 2', sans-serif;
    font-size: 20px;
    border-top: 1px solid white;
    border-bottom: 1px solid white;
    z-index: 10;
    position: relative; /* ne plus utiliser fixed */
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-divider {
    width: 1px;
    height: 20px;
    background-color: white;
}


.hero-card .photo-scenik img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
}


.card-center {
    align-self: center;
    margin-left: auto;
    margin-right: auto;
    width: 60%;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 15px;
    color: #fff;
    text-align: center;
    margin: 20px;
    border: 2px solid #ffffff;
}

.btn-scenik {
    display: inline-block;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #ffffff;
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: 'Exo 2', sans-serif;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.4s ease;
    box-shadow:
        0 0 5px #ffffff,
        0 0 10px #ffffff,
        0 0 20px #ffffff;
}

.btn-scenik a {
    color: inherit;
    text-decoration: none;
}

.btn-scenik:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: scale(1.05);
    box-shadow:
        0 0 10px #ffffff,
        0 0 20px #ffffff,
        0 0 40px #ffffff;
}

.btn-scenik:active {
    transform: scale(0.97);
    box-shadow:
        0 0 5px #ffffff,
        0 0 10px #ffffff;
}
h3 {
    font-size: 2.2rem;
    /* Environ 35px, plus dynamique que le pixel fixe */
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.2;
}

.description-raw {
    font-size: 18px;
    /* Passage de 14px à 18px pour la lisibilité */
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.description-raw p {
    font-size: 18px !important;
    margin-bottom: 10px;
}
.logos img {
    width: 25%;
    max-width: 120px;
    height: auto;
    margin: 10px;
    transition: transform 0.3s ease;
}

.logos img:hover {
    transform: scale(1.05);
}

.titre-section {
    font-size: 2rem;
    text-align: center;
    color: #fff;
    margin: 20px 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- Responsive (tablettes et petits écrans) --- */
@media (max-width: 1024px) {
    h1 {
        font-size: 10vw;
    }

    .hero-card {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        margin-left: 0;
        text-align: center;
    }

    .titre-section {
        font-size: 1.8rem;
    }

    .hero-card .photo-scenik img {
        width: 100%;
        max-width: 300px;
        height: auto;
    }

    .hero-card .info {
        text-align: center;
    }

    .cards-container {
        max-width: 90vw;
    }

    .card-center {
        width: 80%;
    }

    .scroll-zone {
        width: 90vw;
    }
}

/* --- Responsive mobile (smartphones) --- */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 12vw;
    }

    .titre-section {
        font-size: 1.5rem;
    }

    .hero-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        margin-left: 0;
        margin-top: 80px;
    }

    .hero-card .photo-scenik img {
        width: 100%;
        max-width: 250px;
    }

    .cards-container {
        flex-direction: column;
        align-items: center;
    }

    .card, .card.card-horizontal, .card.right, .card.left {
        width: 95%;      /* Reprend toute la largeur */
        min-width: auto;
    }
    .card-center {
        width: 95%;
        padding: 15px;
        margin: 10px auto;
    }

    .card-center p {
        font-size: 18px;
    }
h3 {
        font-size: 1.8rem;
    }

    .description-raw {
        font-size: 16px;
    }

    .scroll-zone {
        width: 95vw;
    }

    footer {
        font-size: 16px;
        padding: 20px 10px;
    }

    .footer-content {
        flex-direction: column;
        gap: 10px;
    }

    .footer-divider {
        display: none;
    }

    .btn-scenik {
        font-size: 16px;
        padding: 10px 22px;
    }
}

/* --- Ultra petits écrans (≤480px) --- */
@media (max-width: 480px) {
    h1 {
        font-size: 14vw;
    }

    .card-center {
        width: 100%;
        border-radius: 10px;
    }

    .card {
        width: 90%;
    }


    .hero-card .photo-scenik img {
        max-width: 200px;
    }

    .titre-section {
        font-size: 1.2rem;
    }

    .btn-scenik {
        font-size: 14px;
        padding: 8px 18px;
    }

    .footer-content span {
        display: block;
    }
}

.image-projet {
    width: 100%;
    height: auto;
    max-width: 700px;
    display: block;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
    transition: transform 0.3s ease;
}

.image-projet:hover {
    transform: scale(1.03);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .image-projet {
        width: 100%;
        max-width: 100%;
        margin: 10px auto;
    }
}