@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --primary-color: #166ca5; /* Bleu */
    --secondary-color: rgb(243, 247, 87); /* Jaune */
}

p {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 14px;
    text-align: justify;
}

h1, h2, h3, h4, h5, h6, li {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.table-primary {
    --bs-table-bg: var(--primary-color);
    --bs-table-color: white;
}

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

.btn-primary:hover {
    background-color: #125a88;
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: rgb(223, 227, 77);
    border-color: rgb(223, 227, 77);
}


/*************
    NAVBAR
*************/

nav {
    background-color: var(--primary-color);
    height: 60px;
    position: relative;
    z-index: 999;
}

.nav-link {
    font-size: 14px;
}

.logo-overlap {
    height: 140px;
    position: relative;
    z-index: 9999;
}

nav a {
    font-size: 14px;
}

@media (max-width: 992px) {
    .logo-overlap {
        position: absolute;
        top: 70px;
        left: 50%;
        transform: translate(-50%, -50%);
        margin-right: auto;
        height: 110px;
    }

    .navbar-collapse {
        margin-left: 0;
        position: absolute;
        top: 100%;
        width: 100%;
        left: 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .navbar-toggler {
        background-color: white;
    }

    .navbar-nav {
        background-color: white;
        z-index: 10;
    }

    li {
        padding-left: 10px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

.logo-navbar {
    position: absolute;
    top: 10px;
    right: 20px;
}

@media (min-width: 992px) {
    .test {
        max-width: 992px;
    }

    .navbar-collapse {
        flex-grow: 0;
    }

    .logo-overlap {
        position: absolute;
    }

    .nav-link {
        color: white;
    }

    .btn-boutique {
        margin-left: 30px;
    }
}

.btn-boutique {
    font-size: 14px;
    color: var(--primary-color)!important;
    background-color: var(--secondary-color)!important;
}

/*************
    INDEX
*************/

/* en tête */

.header-photos {
    position: relative;
    background-image: url('/images/panneau_de_basket.jpg');
    background-size: cover;
    background-position: center;
    height: 300px;
    width: 100%;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
    overflow: hidden;
}

.header-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 123, 255, 0.4);
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
    z-index: 1;
}

.title {
    position: absolute;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-weight: bold;
    font-size: 2.5rem;
    z-index: 2;
}

/* Score */

.widget-container {
    max-height: 500px;
    overflow: auto;
}

.widget-box {
    background: #F2F5F9;
    max-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-transform: uppercase;
    font-family: sans-serif;
    font-weight: bolder;
    gap: 9px;
    color: #1E457B;
    overflow: auto;
}

.ldsdr {
    display: inline-block;
    width: 80px;
    height: 80px;
}

.ldsdr:after {
    content: " ";
    display: block;
    width: 64px;
    height: 64px;
    margin: 8px;
    border-radius: 50%;
    border: 6px solid #1E457B;
    border-color: #1E457B transparent;
    animation: ldsdr 1.2s linear infinite;
}

@keyframes ldsdr {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/*************
    Admin
*************/

/* Connexion */

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: auto;
}

/* Dashboard */

.dashboard-card {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    aspect-ratio: 1 / 1; /* Carré */
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.25rem;
    transition: background-color 0.3s ease;
}
.dashboard-card:hover {
    background-color: #e2e6ea;
}

/* évenements */

.img-evenement-admin {
    width: 200px;
}

.trix-editor-custom {
    min-height: 300px;
}

/* Club */

.img-admin-coach, .img-admin-commission {
    height: 250px;
    object-fit: cover;
    width: 100%;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}

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

footer {
    background-color: var(--primary-color);
}

.social-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

/** Autre **/

.sections img {
    width: 100%;
    max-width: 624px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    object-fit: cover;
    position: relative;
}
