/* Définition des variables */

:root {
    /* Couleurs */
    --couleur-primaire: #4A7AAC;
    --couleur-secondaire: #0F2440;
    --couleur-accent: #C4FF3E;
    --texte-principal: #0F2440;
    --texte-secondaire: #333;
    --white: #ffffff;
    --fond-beige: #E9EDDE;
    
    /* Espacements */
    --espace-xs: 0.25rem; /*4px*/
    --espace-s: 0.5rem; /*8px*/
    --espace-m: 1rem; /*16px*/
    --espace-l: 2rem; /*32px*/
    --espace-xl: 4rem; /*64px*/
    --espace-xxl: 5rem; /*80px*/
    
    /* Typographie */
    --police-principale: 'poppins', sans-serif;
    --police-titre: 'Montserrat', sans-serif;

    --h1-size: clamp(2.5rem, calc(2rem + 3vw), 5rem);
    --h2-size: clamp(2.2rem, calc(1.8rem + 2.5vw), 3.5rem);
    --h3-size: clamp(1.8rem, calc(1.5rem + 2vw), 2.8rem);
    --h4-size: clamp(1.5rem, calc(1.2rem + 1.5vw), 2.2rem);
    --h5-size: clamp(1.2rem, calc(1rem + 1vw), 1.8rem);
    --h6-size: clamp(1rem, calc(0.9rem + 0.8vw), 1.5rem);
    
    /* Texte courant */
    --p-size: clamp(1rem, calc(0.9rem + 0.5vw), 1.5rem);
    --xs-text: clamp(0.75rem, calc(0.7rem + 0.3vw), 0.9rem);
    --xxs-text: clamp(0.65rem, calc(0.6rem + 0.25vw), 0.8rem);
    
    /* Navigation */
    --navlinks: clamp(0.9rem, calc(0.8rem + 0.8vw), 1.2rem);
    --navlinks-s: clamp(0.8rem, calc(0.75rem + 0.5vw), 1rem);
}

/* Réinitialisation simple */
*, *::before, *::after { 
	box-sizing: border-box; 
	margin: 0; 
	padding: 0; 
}

/* Définition des styles globaux */
html {
    scroll-behavior: smooth; 
    font-size: 16px;
}

body {
    font-family: 'poppins', sans-serif;
    font-size: var(--p-size);
    color: var(--texte-principal);
    font-weight: 400;
    margin: 0 auto;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--police-titre);
    color: var(--texte-principal);
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 800;
    line-height: 1.2;
}

h1 {
    font-size: var(--h1-size);
    font-weight: 700;
}

h2 {
    font-size: var(--h2-size);
    margin-bottom: var(--espace-m);
    text-transform: uppercase;
}

h3 {
    font-size: var(--h3-size);
}

h4 {
    font-size: var(--h4-size);
}

h5 {
    font-size: var(--h5-size);
}

p {
    font-size: var(--p-size);
    color: var(--texte-principal);
    line-height: 1.5;
}

.xs-text {
    font-size: var(--xs-text);
}

.strong {
    font-weight: 600;
}


/* structure */
.main-container-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.left-content {
    display: flex;
    flex-direction: column;
    gap: var(--espace-l);
    justify-content: center;
}

.flex-col-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--espace-xl);
}

.pg-container {
    padding: 50px 20px;
}

h2 + span {
    font-size: var(--h4-size);
    font-weight: 200;
}

.bg-beige {
    background-color: var(--fond-beige);
}

.bg-accent {
    background-color: var(--couleur-accent);
}

.bg-sec {
    background-color: var(--couleur-secondaire);
}

.bg-prim {
    background-color: var(--couleur-primaire);
}

.bg-bluegradient {
    background: rgb(74,122,172);
    background: radial-gradient(circle, rgba(74,122,172,1) 20%, rgba(15,36,64,1) 100%); 
}

.lt-border {
    border-left: 10px solid var(--couleur-accent);
    padding-left: 20px;
}

.border {
    border: 1px solid var(--couleur-secondaire);
}

/* Accessibilité et UX */
img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button, .btn {
    cursor: pointer;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    background-color: transparent;
    display: flex;
    color: var(--white);
    align-items: center;
}

[role=button] {
    cursor: pointer;
  } 

.btn:has(i), button:has(i) {
    gap: var(--espace-s);
}

.btn-primary {
    background-color: var(--couleur-primaire);
}

.btn-cta {
    background-color: var(--couleur-accent);
    color: var(--couleur-secondaire);
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-cta:hover {
    background-color: #f8fafc;
}

input {
    padding: 10px;
    width: 100%;
}

input[type=submit] {
    border: none;
    padding: 10px;
}

.form-label {
    display: block;
    font-size: var(--xxs-text);
    color: var(--texte-secondaire);
    text-align: left;
  }
  
  .form-input {
    display: block;
    margin-bottom: 15px;
    padding: 10px;
    width: 100%;
  }

.separator {
    border-top: 1px solid black;
    width: 100%;
}

/* --------- HEADER --------- */

header {
    min-width: 100%;
}

.navbar__home {
    position: absolute;
    z-index: 2;
}

.navbar {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar__logo {
    color: var(--white);           
    font-size: 2rem;
}

.navbar__links {
    display: flex;
    gap: var(--espace-l);
    color: var(--white);
    font-size: var(--navlinks);
    cursor: pointer;
}

.navbar__links a:hover {
    color: var(--couleur-accent);
}

.navbar__btn {
    display: flex;
    gap: var(--espace-m);
}

.burger-menu__icon {
    color: var(--couleur-accent);
    display: none;
}

.burger-menu__icon:hover {
    color: var(--white);
}

/* BURGER MENU */

.burger-menu {
    position: absolute;
    top: 80px;
    right: 0;
    width: 100%;
    gap: var(--espace-xs);
    background: rgba(15,36,64,0.5);
    backdrop-filter: blur(10px);
    padding: 20px 80px;
    display: none;
}

.burger-menu .navbar__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1rem;
}

/* RESPONSIVE HEADER */

@media screen and (max-width: 991px) {

    header .navbar__links, .navbar__btns .blue-btn {
        display: none;
    }

    .burger-menu__icon {
        display: block;
        font-size: 2rem;
    }

    .burger-menu.open {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--espace-l);
    }
}


/* --------- FOOTER --------- */
.footer__grid {
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto auto auto;
    grid-template-areas:
    "nav nav nav newsletter newsletter social"
    "sep sep sep sep sep sep"
    "legal legal legal legal copyright copyright";
    align-items: center;
    padding: 20px 50px;
    row-gap: 30px;
}

.footer__nav {
    display: flex;
    flex-direction: column;
    gap: var(--espace-s);
    grid-area: nav;
}

.footer__nav .logo {
    color: var(--white);         
    font-size: 1.5rem;
}

.footer__nav .navbar__links ul {
    display: flex;
    gap: var(--espace-l);
    font-size: var(--p-size);
}

.footer__newsletter {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--espace-s);
    color: var(--white);
    grid-area: newsletter;
}

.footer__newsletter h5 {
    font-size: var(--h5-size);
    color: var(--couleur-primaire);
}

.footer__newsletter form {
    display: flex;
    min-width: 300px;
}

.footer__newsletter span {
    font-size: var(--xs-text);
}

.footer__social {
    display: flex;
    justify-content: flex-end;
    gap: var(--espace-m);
    grid-area: social;
}

.footer__social i {
    font-size: 32px;
    color: var(--couleur-primaire);
    margin-left: 20px;
}

.footer__social i:hover {
    color: var(--couleur-accent);
    cursor: pointer;
}

.footer-separator {
    grid-area: sep;
    height: 2px;
    background-color: var(--white);
}

.footer__legal-links {
    grid-column: legal;
    display: flex;
    gap: 80px;
    font-size: var(--xs-text);
    color: var(--white);
}

.footer__copyright{
    grid-area: copyright;
    font-size: 0.75rem;
    color: var(--white);
    text-align: right;
}

/*RESPONSIVE FOOTER*/

@media screen and (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "nav"
            "newsletter"
            "social"
            "sep"
            "legal"
            "copyright";
        text-align: center;
        justify-items: center;
        padding: 40px 50px;
    }
}

/* ===================== HOMEPAGE ===================== */

/* --------- MAIN --------- */


/* --------- HERO --------- */
.main-hero {
    background-image:
    linear-gradient(90deg, rgba(15,36,64,1) 0%, rgba(74,122,172,0.5) 100%),
    url('assets/close-up-ice-hockey-stick-ice-rink-position-hit-hockey-puck.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    width: 100%;
    position: relative;
    z-index: 1;
}

.main-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    gap: var(--espace-l);
}

.main-hero__content h1 span {
    display: block;
}

.main-hero__content p {
    color: var(--white);
    max-width: 50%;
    min-width: 300px;
}

.main-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--espace-l);
}

/*RESPONSIVE HERO*/

/* --------- TOP EVENTS --------- */

.top-event {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: var(--espace-l);
}

.top-event .left-content h2 {
    color: var(--couleur-accent);
    text-transform: uppercase;
}

.top-event span {
    color: var(--white);
}

.top-event p {
    border: 1px solid var(--white);
    padding: 20px;
    color: var(--white);
    width: 90%;
}

/*RESPONSIVE TOP EVENTS*/
@media screen and (max-width: 1024px) {
}

/* slider */

.slider {
    position: relative;
    width: 100%;
    margin: auto;
    height: 600px;
    overflow: hidden;
}

.slides {
    width: 100%;
    height: 100%;
}

.slide-title {
    position: absolute;
    bottom: 5%;
    right: 0;
    padding: 10px 10px;
}

.slide-title span {
    color: var(--couleur-secondaire);
    font-weight: 500;
}

.slider img {
    width: 100%;
    height: 100%;
    display: none;
}

img.displaySlide {
    display: block;
}

.slider-nav {
    background-color: var(--couleur-accent);
    font-size: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: absolute;
    top: 50%;
    border-radius: 0;
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

/* --------- UPCOMING EVENTS --------- */


/* --------- TOP PLAYERS --------- */
.top-players {
    display: flex;
    width: 100%;
    justify-content: space-around;
}

.top-players h3 {
    color: var(--white);
}

.top-player-card {
    width: 30%;
    gap: 10px;
    padding: 30px;
    border-radius: 10px 50px;
}

.tpc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);
    border-radius: 20px;
    padding: 15px 10px;
}

.simul-img {
    background-color: #666666;
    border-radius: 50%;
    width: 80px;
    height: 80px;
}

.tpc-header-infos {
    align-items: flex-start;
}

.tpc-body {
    gap: 10px;
}

.tpc-body-items {
    display: flex;
    justify-content: space-between;
    background-color: var(--white);
    border-radius: 20px;
    padding: 15px 10px;
}

.tpc-header span, .tpc-body-items span {
    font-family: 'poppins', sans-serif;
    font-weight: 400;
    font-size: var(--p-size);
}

.tpc-header span {
    font-weight: 700;
}

.tpc-body-items:hover {
    background-color: var(--couleur-primaire);
    color: var(--white);
}

/* --------- RESULTS--------- */

.result {
    width: 100%;
    margin: 0 auto;
}

.result-card {
    width: 100%;
    padding: 15px 15px;
    border: 1px solid var(--couleur-primaire);
    display:flex;
    justify-content: space-between;
    margin: 10px auto;
    border-radius: 20px 20px 0 0;
}

.result-card:hover {
    transition: transform 0.3s ease;
    transform: scale(1.1);
}

.result-card span {
    font-weight: 400;
    font-size: var(--h6-size);
    color: var(--white);
}

.card-pts span{
    color: #C4FF3E;
}


/* ===================== LOGIN PAGE ===================== */

.login__img {
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.login__content {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--espace-l);
}

.login__content h1 {
    font-size: var(--h4-size);
}

.login__content form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--espace-m);
}

.login__content button {
    width: auto;
    display: flex;
    gap: var(--espace-m);
    justify-content: center;
    border-radius: none;
}

@media screen and (min-width: 576px) {

    .login__img {
        mask-image: none;
    }

    .login__img img {
        height: 100%;
    }

    .login__content {
        padding: 30px 20px;
        justify-content: center;
    }
    
}

@media screen and (min-width: 992px) {


    .login {
        height: 100vh;
        display: flex;
        align-items: center;

    }
    
    .main-container-grid {
        border: 1px solid var(--couleur-secondaire);
        height: 80vh;
        width: 50vw;
    }
}

/* ===================== SUBSCRIBE PAGE ===================== */

@media screen and (min-width: 992px) {

    .subscribe {
        display: flex;
        align-items: center;
        padding: 80px 0;
        

    }
    
    .subscribe .main-container-grid {
        border: 1px solid var(--couleur-secondaire);
        height: 100%;
        width: 50vw;
    }
}