﻿/* Style jeu vidÃ©o pour le site */
/* Ã‰sthÃ©tique visÃ©e: Chillwave */

/* ================ ParamÃ¨tres dÃ©faut =============================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Press Start 2P', cursive;
    color: #ffffff;
    background: linear-gradient(180deg, #120458 0%, #3a0ca3 45%, #ff0088 100%);
    letter-spacing: 1px;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.04),
        rgba(255,255,255,0.04) 2px,
        transparent 2px,
        transparent 4px
    );
    opacity: 0.25;
    mix-blend-mode: overlay;
}

body::after {
    content: "";
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 36%;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(300px) rotateX(70deg);
    transform-origin: bottom;
    opacity: 0.28;
}

.scanline {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.05) 50%, transparent 100%);
    background-size: 100% 8px;
    animation: scan 8s linear infinite;
    opacity: 0.3;
}

@keyframes scan {
    from { transform: translateY(-100%); }
    to { transform: translateY(100%); }
}

/* ================= Couleurs principales =======================*/
:root {
    --couleur-principale: #ff4fd8;
    --couleur-secondaire: #00e5ff;
    --couleur-tertiaire: #d0d0d0;
    --couleur-fond: rgba(12, 12, 32, 0.88);
}

/* ==================== Header ================================ */
.entete {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: clamp(0.75rem, 3vw, 1.25rem);
    background-color: rgba(26, 26, 46, 0.92);
    border-bottom: 4px solid #00e5ff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.entete h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #ff4fd8;
    text-shadow: 0 0 18px rgba(255, 79, 216, 0.35);
}

.logo{
    color: #00e5ff;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.2rem;
}

/* =================== Navigation ================================*/
.nav-toggle{
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.burger{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    color: #ffffff;
    background-color: rgba(0, 229, 255, 0.15);
    border: 2px solid rgba(255, 79, 216, 0.55);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.15);
}

.burger:hover{
    color: var(--couleur-secondaire);
    background-color: var(--couleur-principale);
}

.nav-principale {
   position: fixed;
   inset: 4.5rem 0 0 auto;
   width: min(100vw - 2rem, 20rem);
   background-color: rgba(9, 9, 31, 0.96);
   border: 2px solid rgba(0,229,255,0.24);
   box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
   flex-direction: column;
   gap: 0.75rem;
   padding: 1rem;
   transform: translateX(100%);
   opacity: 0;
   pointer-events: none;
   transition: transform 280ms ease, opacity 220ms ease;
   z-index: 25;
}

.nav-principale a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.05rem;
    padding: 0.65rem 0.9rem;
    background-color: rgba(255,255,255,0.06);
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 0.75rem;
    transition: background 200ms ease, color 200ms ease, transform 200ms ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
}

.nav-principale a:hover, 
.nav-principale a:focus-visible {
    background-color: rgba(0,229,255,0.18);
    color: #ffffff;
    transform: translateY(-1px);
}

.nav-principale a:active{
    transform: scale(0.95);
    background-color: var(--couleur-principale);
    color: var(--couleur-fond);
}

.nav-toggle:checked ~ .nav-principale {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

/* ==================== Contenu principal ================================ */
#contenu-principale {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    scroll-margin-top: 6.5rem;
}

section {
    scroll-margin-top: 8rem;
}

.carte {
    background-color: rgba(10, 10, 36, 0.92);
    border: 6px solid rgba(255, 79, 216, 0.35);
    
    padding: 1.75rem;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.35);
}

.carte h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #ffffff;
    text-shadow: 0 0 16px rgba(255, 79, 216, 0.25);
    margin-bottom: 1rem;
}

.carte p {
    font-size: 1rem;
    color: rgba(208, 208, 208, 0.95);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.carte ul li {
    margin-bottom: 2rem;
}

.carte ul li:last-child {
    margin-bottom: 2rem;
    
}

.carte ul li p{
    line-height: 2;
}

.carte ul li h2{
    line-height: 2;
}



.carte-adaptative img {
  width: min(14rem, 100%);
  max-width: 12rem;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.18);
  box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.18);
}


/* ==================== Footer ================================ */
#contacts {
    background-color: black;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem auto 1.5rem;
    max-width: 36rem;
}

.social-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.social-button:hover,
.social-button:focus-visible {
    transform: translateY(-2px);
    background: rgba(0, 229, 255, 0.16);
    border-color: rgba(0, 229, 255, 0.3);
}

.social-button .material-icons {
    font-size: 1rem;
}

/* ==================== Adaptative ================================ */

/* Mobile */
@media (max-width: 767px){
  .entete {
    justify-content: flex-start;
  }

  .nav-principale {
    top: auto;
    bottom: 0;
    inset: auto 0 0 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0 0 0.5rem 0.5rem;
  }

  .nav-principale a {
    padding: 0.75rem 0.9rem;
  }

  .carte h1,
  .carte h2 {
    font-size: clamp(1.2rem, 4vw, 1.4rem);
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .carte ul {
    gap: 0.75rem;
  }

  .carte ul li {
    flex: 1 1 45%;
    min-width: 6rem;
  }
}

/* Tablet */
@media (min-width: 768px) {
    .nav-principale{
        position: static !important;
        width: auto !important;
        max-width: 100% !important;
        flex-direction: row;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        background: transparent;
        border: none;
        padding: 0;
    }

    .burger{
        display: none !important;
    }

    .nav-toggle {
        display: none !important;
    }

    .nav-principale a{
        background-color: rgba(0, 229, 255, 0.14);
        margin-right: 0.5rem;
    }

    .nav-principale a:last-child {
        margin-right: 0;
    }

    .carte img{
        width: auto;
        margin: 0 auto;
    }
}

.carrousel-conteneur {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.carrousel-adaptative {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
}

.carte-adaptative {
    display: flex;
    justify-content: center;
    align-items: center;
    width: min(14rem, 100%);
}

.carte-adaptative figure {
    margin: 0;
    width: 100%;
}

.carte-adaptative img {
    width: 100%;
    height: auto;
}

#createurs {
    text-align: center;
}

#createurs .carrousel-conteneur {
    margin-bottom: 2rem;
}

#createurs h2,
#createurs h3,
#createurs h4 {
    margin-top: 1rem;
    margin-bottom: 0;
    text-align: center;
}

#createurs h3 {
    color: rgba(208, 208, 208, 0.9);
    font-size: 1rem;
}

#createurs h4 {
    color: rgba(208, 208, 208, 0.75);
    font-size: 0.9rem;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

/* Desktop */
@media (min-width: 1440px){
    main{
        padding: clamp(1.25rem, 2vw, 2rem);
    }

    .carte {
        padding: 1.75rem;
    }
}

@media (min-width: 1920px){
    body{
        font-size: 1.05rem;
    }
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    padding: 0.75rem 1rem;
    background: rgba(0, 229, 255, 0.95);
    color: #0b0b23;
    border-radius: 0.75rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    z-index: 100;
}

