
@font-face {
    font-family: Grap_frut;
    src: url("/ressource/GrapeNuts-Regular.ttf") format('truetype');
    font-weight: bold;
}
@font-face {
    font-family: Jim_NightShade;
    src: url("/ressource/JimNightshade-Regular.ttf") format('truetype');
}
@font-face {
    font-family: against;
    src: url("/ressource/against regular.ttf") format('truetype');
}

@font-face {
    font-family: "Argel";
    src: url("/ressource/Argel-Font-Trial.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

header {
    background: #1F2A37;
}

.fondDark {
    background-image: url("/images/backgroundAccueil.webp");
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 100%;
    position: absolute;
}

.fondDark::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(46, 64, 87, 0.5); /* Bleu foncé semi-transparent */
    backdrop-filter: blur(10px); /* Ajoute du flou */
}

body {
    color: white;
    font-family: Arial, serif;
    background-color: #0F172A ;
}
main h1 {
    font-size: 120px;
    font-family: Argel, serif;
    margin-top: -2%;
}

footer {
    background: #1F2A37;
}

.logoSpartiate {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2
}

.background {
    height: 750px;
    position: relative;
    flex-direction: column;
    display: flex;
    align-items: center;
}


.icon {
    font-size: 60px;
    display: block;
    margin-left: 50%;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
}

.z-index2 {
    z-index: 2;
}

.logo-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 160px auto;
}

h2 {
    text-align: center;
    font-size: 50px;
}
h3 {
    font-size: 40px;
    text-align: center;
}

.row2Col {
    display: flex;
    align-items: center;
    justify-content: center;
}


.colone2 {
    flex: 50%;
}
.margin2Col {
    margin-left: 10%;
}

main p {
    max-width: 70%;
    margin: auto;
    padding: 8px;
    justify-content: center;
    line-height: 24px;
}

.bannerGame {
    position: relative;
    text-align: center;
    color: white;
}

.bannValo {
    height: 500px;
    transition: transform .5s; /* Animation */
    filter: blur(2px);
}
.bannValo:hover {
    transform: scale(1.05);
}

.centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    font-weight: bold;
}
a {
    color: white;
}

.famille {
    text-align: justify;
    margin-left: 14%
}

.roster-container {
    display: flex;
    justify-content: center;
    gap: 20px; /* espace entre les cases */
    margin: 20px 0;
}

.RosterLien {
    position: relative;
    overflow: hidden;
    color: white;
    text-decoration: none;
    padding: 20px;
    border-radius: 12px;
    width: 100%;
    text-align: center;
    border: 1px solid #E6ECF2;
    transition: 0.3s;
}

/* Image de fond + flou */
.RosterLien::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/images/drapeau.webp") center/cover no-repeat;
    z-index: -2;
}

/* Overlay bleu */
.RosterLien::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: -1;
}

.RosterLien:hover {
    transform: scale(1.05);
}

/* Hover : renforcer le bleu */
.RosterLien:hover::after {
    background: rgba(127, 179, 230, 0.5);
}

/***********************************************
            Header
****************************************** */

#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    color: white;
    background-color: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    padding-bottom: 20px;
}

#main-header.open {
    background: rgba(18, 30, 46, 0.8);
}
#main-header.scrolled {
    background-color: rgba(18, 30, 46, 0.8);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}


.navbar {
    font-size: 30px;
    margin: 0 auto;
    width: 100%;
    justify-content: center;
    display: none;
}
.navbar .pagsel {
    color: #589CD9;
}

.navbar a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}
#lien {
    font-size: 30px;
    margin: auto;
    display: none;
    background-color: rgba(18, 30, 46, 0.8);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);}
#lien.show {
    animation: erasein linear .5s;

}
#lien.hide {
    animation: eraseout linear .5s;

}
#lien .pagsel {
    color: #589CD9;
}

#lien a {
    color: white;
    text-decoration: none;
    display : block;
}
@keyframes erasein {
    from {
        margin-left: 100%;
        width: 300%;
        opacity: 0;
    }
    to {
        margin-left: 0;
        width: 100%;
        opacity: 1;
    }
}
@keyframes eraseout {
    from {

        margin-left: 0;
        width: 100%;
        opacity: 1;
    }
    to {
        margin-left: 100%;
        width: 300%;
        opacity: 0;
    }
}

/**********************
        animation
************************ */

.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/*******************************************
        Footer
********************************************** */

.colone2 ul {
    list-style: none;
    padding: 0;
}

.social-container {
    display: flex;
    gap: 20px;
    padding-top: 30px;
    margin-left: 10%;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 22px;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background-color: #589CD9;
    color: #0f1012;
    transform: scale(1.1);
}

.rejoindre {
    flex : 40%;
    text-decoration: none
}
.rejoindre:hover {
    transform: scale(1.05);
    color: #589CD9;
}
.Menu:hover {
    transform: scale(1.05);
    color: #4D5C6C;
}

/*************************************
    Formulaire Contact
********************************** */

.contact-form {
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    max-width: 800px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row input,
.form-row select,
.form-row textarea {
    flex: 1;
    padding: 15px;
    font-size: 16px;
    background-color: #ffffff;
    border: 2px solid #202D3C;
    border-radius: 16px;
    color: black;
}

.form-row textarea {
    width: 100%;
    resize: vertical;
}

.form-row select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23000" viewBox="0 0 140 140" xmlns="http://www.w3.org/2000/svg"><polygon points="70,100 100,40 40,40"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
}

.form-submit {
    text-align: center;
    margin-top: 20px;
}

.form-submit button {
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 16px;
    padding: 12px 30px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-submit button span {
    margin-left: 10px;
}

.form-submit button:hover {
    background-color: #7FB3E6;
    color: black;
}

.note {
    font-size: 12px;
    margin-top: 15px;
}
.team-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px;
    max-width: calc((200px * 4) + (30px * 3)); /* 4 membres + 3 gaps */
    margin: 0 auto;
}

.member {
    background: linear-gradient(135deg, #589CD9, #0F172A);
    border-radius: 20px;
    padding: 20px;
    width: 150px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.member i {
    width: 100px;
    height: 100px;
    border-radius: 20px 20px 5px 5px;
    padding: 10px;
    object-fit: cover;
}

.member h3 {
    margin: 10px 0 5px 0;
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.member p {
    margin: 0 auto;
    color: #99afc5;
    font-size: 14px;
}


/***********************************************
        Partenaire
**********************************************/

/* Grille des partenaires */
.partenaire-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    width: 90%;
    margin: 40px auto;
}

/* Carte partenaire */
.partenaire-card {
    background: #0f1a2d;
    border-radius: 16px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transition: 0.3s ease;
    border: 1px solid #2c3e50;
}

.partenaire-card:hover {
    transform: scale(1.03);
}

.partenaireImg {
    width: 100%;
    max-width: 350px;
    height: 320px;         /* ← Même taille que vos images */
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
}

/* Contenu de la carte */
.partenaire-content {
    text-align: center;
    color: white;
}

.partenaire-content h3 {
    margin-bottom: 10px;
}

.partenaire-content p {
    color: #9CA3AF;
    line-height: 1.5;
}

/* Bouton */
.btnPartenaire {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #2E4057;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.3s ease;
    border: 1px solid #E6ECF2;
}

.btnPartenaire:hover {
    background: #7FB3E6;
}

.imageMarque {
margin-left: 2rem;
    max-height: 400px;
}
.TextMarque {
    margin-left: 3rem;
    margin-right: 3rem;
    text-align: left;
}
.retourMarque {
    margin-left: 8rem;
    margin-bottom: 2rem;
    font-size: 2rem
}
.flexMarque {
    display : flex;
    align-items: center;
    margin-left: 8rem
}

/*****************************************************
    Effectif
*******************************************************/
.gallery-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: nowrap;
    width: 100%;
    padding: 20px 0;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10+ */
    user-select: none; /* Standard */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* ← AJOUT */
}
.gallery-container.sliding {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Cartes de joueurs - 2 VISIBLES */
.player-card {
    flex: 0 0 400px;
    height: 350px;
    background: linear-gradient(135deg, #202D3C, #2a3a4d);
    border-radius: 20px;
    position: relative;
    /*overflow: hidden;*/
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #3a4a5d;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10+ */
    user-select: none; /* Standard */
}

.player-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-color: #8AA0B5;
}

.player-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: invert(100%);
    transition: transform 0.5s ease;
}

.player-card:hover img {
    transform: scale(1.1);
}

.player-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 30px 20px 20px;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
}

/* Flèches de navigation */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #8AA0B5;
    color: white;
    font-size: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow:hover {
    background: #8AA0B5;
    color: #121E2E;
    transform: translateY(-50%) scale(1.1);
}

.arrow.left {
    left: 10px;
}

.arrow.right {
    right: 10px;
}

.arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Modal overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contenu du modal */
.modal-content {
    display: flex;
    gap: 50px;
    max-width: 1200px;
    width: 90%;
    animation: slideIn 0.4s ease;
    position: relative;
}

/* Carte dans le modal */
.modal-card {
    flex: 0 0 450px;
    height: 600px;
    background: linear-gradient(135deg, #202D3C, #2a3a4d);
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid #8AA0B5;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.modal-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: invert(100%);
}

/* Informations du joueur */
.player-info {
    flex: 1;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 600px;
    overflow-y: auto;
}

.player-info h2 {
    font-size: 48px;
    color: #8AA0B5;
    margin: 0;
    text-align: left;
}

.info-section {
    background: rgba(32, 45, 60, 0.5);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #8AA0B5;
}

.info-section h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #8AA0B5;
}

.info-section p {
    line-height: 1.8;
    color: #b8c4d4;
    text-align: center;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat-item {
    background: rgba(138, 160, 181, 0.1);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.stat-label {
    font-size: 14px;
    color: #8AA0B5;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
}

/* Bouton fermer */
.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    background: #8AA0B5;
    border: none;
    color: #121E2E;
    font-size: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: white;
    transform: rotate(90deg);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive des modals */
@media (max-width: 1024px) {
    .modal-content {
        flex-direction: column;
        overflow-y: auto;
        max-height: 90vh;
        padding: 20px;
    }

    .modal-card {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
        height: 350px;
        margin: 0 auto;
    }

    .player-card {
        flex: 0 0 300px;
        height: 450px;
    }

    .gallery-wrapper {
        padding: 0 60px;
    }

    .close-btn {
        top: -30px;
        right: 10px;
    }
}

@media (max-width: 768px) {
    /* MOBILE : 1 seule carte visible dans la galerie */
    .gallery-container {
        justify-content: center;
        align-items: center;
    }

    .player-card {
        flex: 0 0 90%;
        max-width: 350px;
        height: 480px;
    }

    .arrow {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .gallery-wrapper {
        padding: 0 60px;
    }

    /* MODAL MOBILE - Solution optimale */
    .modal-overlay {
        padding: 0;
        align-items: flex-start;
        overflow-y: auto;
    }

    .modal-overlay.active {
        display: block; /* Change de flex à block */
    }

    .modal-content {
        display: flex;
        flex-direction: column;
        gap: 0;
        max-width: 100%;
        width: 100%;
        min-height: 100vh;
        padding: 0;
        margin: 0;
        position: relative;
        background: #121E2E;
    }

    /* Bouton fermer - FIXE en haut */
    .close-btn {
        position: fixed;
        top: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 28px;
        z-index: 1001;
        background: #8AA0B5;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }

    /* Zone de l'image - Scrollable si besoin */
    .modal-card {
        width: 100%;
        height: auto;
        min-height: 200px;
        max-height: none;
        margin: 0;
        padding: 50px 20px 20px 20px; /* Espace pour la croix */
        border-radius: 0;
        overflow: visible;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #202D3C, #2a3a4d);
        border: none;
        border-bottom: 3px solid #8AA0B5;
    }

    .modal-card img {
        width: 100%;
        height: auto;
        max-width: 320px;
        object-fit: contain;
        filter: invert(100%);
        display: block;
    }

    /* Informations - Prend le reste de l'espace */
    .player-info {
        width: 100%;
        max-height: none;
        gap: 15px;
        padding: 20px 15px;
        background: #121E2E;
        flex: 1;
    }

    .player-info h2 {
        font-size: 32px;
        text-align: center;
        margin: 0 0 20px 0;
    }

    .info-section {
        padding: 15px;
        margin: 0 0 15px 0;
        max-width: 100%; /* Ne dépasse pas */
        box-sizing: border-box; /* Inclut le padding dans la largeur */
    }

    .info-section h3 {
        font-size: 20px;
        text-align: center;
        margin-bottom: 10px;
    }

    .info-section p {
        font-size: 14px;
        line-height: 1.6;
        text-align: center;
        margin: 8px 0;
        word-wrap: break-word; /* Force le retour à la ligne */
        overflow-wrap: break-word; /* Compatibilité */
        max-width: 100%; /* Ne dépasse pas le conteneur */
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-item {
        padding: 12px 8px;
    }

    .stat-label {
        font-size: 12px;
    }

    .stat-value {
        font-size: 20px;
    }
}

/* Très petits écrans (< 480px) */
@media (max-width: 480px) {
    .modal-card {
        padding: 50px 10px 15px 10px;
    }

    .modal-card img {
        max-width: 280px;
    }

    .close-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .player-info {
        padding: 15px 10px;
    }

    .player-info h2 {
        font-size: 28px;
    }

    .info-section {
        padding: 12px;
    }

    .info-section h3 {
        font-size: 18px;
    }

    .info-section p {
        font-size: 13px;
    }

    .stat-item {
        padding: 10px 6px;
    }

    .stat-value {
        font-size: 18px;
    }

    .stat-label {
        font-size: 11px;
    }
}
/***************************************
        Produits
***************************************/

.image-containerProd {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.image-containerProd img {
    width: 100%;
    height: 300px;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0); /* transparent par défaut */
    transition: background 0.3s ease;
}

.article-card:hover .overlay {
    background: rgba(88, 156, 217, 0.5);
}

.carousel {
    position: relative;
    width: 100%;
    height: auto;
}

.carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-img.active {
    opacity: 1;
    position: relative;
}

.produitMain {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}
.produit-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

.product-img {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
}

.product-img img {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 100%;
    height: 100%;
    object-fit: contain;     /* montre l’image entière */
    object-position: center; /* centre au milieu */
    transition: opacity 0.4s ease;
    z-index: 1;              /* au-dessus du fond flou */
}
.product-img::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;     /* reprend l’image */
    background-size: cover;
    background-position: center;
    filter: blur(15px);
    transform: scale(1.2);   /* évite les bords */
    z-index: 0;              /* derrière les images */
    opacity: 0.7;
}

/* image avant visible */
.product-img .front {
    opacity: 1;
}

/* image arrière invisible */
.product-img .back {
    opacity: 0;
}

/* au hover → on inverse */
.article-card:hover .front {
    opacity: 0;
}
.article-card:hover .back {
    opacity: 1;
}

.article-card {
    position: relative;
    width: 45%; /* 2 par ligne */
    max-width: 380px;
    text-align: center;
    text-decoration: none;
    color: white;
    overflow: hidden;
    padding-bottom: 20px;
    transition: transform 0.3s ease;
}

/* fond flou drapeau */
.article-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/images/drapeau.webp") center/cover no-repeat;
    filter: blur(2px);
    opacity: 0.5;
    z-index: -2;
}

.article-card:hover {
    transform: scale(1.05);
    background: rgba(88, 156, 217, 0.5);
}

.title {
    font-size: 24px;
    margin-top: 10px;
}

.price {
    color: #9CA3AF;
    font-size: 20px;
    font-weight: bold;
}
@media (max-width: 800px) {
    .article-card {
        width: 90%; /* 1 par ligne sur mobile */
    }
}

/******************************************************
            STREAM
****************************************************** */
.stream-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding-inline: 10%;
    padding-block: 4%;
    box-sizing: border-box;
}

/* Wrapper pour conserver le ratio 16:9 */
.stream-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    background: #1F2A37;
    border-radius: 12px;
    overflow: hidden;
}

/* Embed Twitch (iframe ou div) */
.stream-wrapper iframe,
.stream-wrapper #twitch-embed1,
.stream-wrapper #twitch-embed2 {
    width: 100%;
    height: 100%;
}


