/* Importer la police Days One */
@import url('https://fonts.googleapis.com/css2?family=Days+One&display=swap');

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Days One', sans-serif;
    color: #FFFFFF;
    background-color: #1C1646;
    line-height: 1.6;
    text-align: center;
}

/* Header Styles */
.site-header {
    background-color: #1C1646;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid #FFD700;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1500px;
    margin: 0 auto;
}

.user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #FFD700;
    transition: transform 0.3s ease;
    margin-left: 50px;
}

.user-avatar:hover {
    transform: scale(0.9);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-navigation {
    flex-grow: 1;
    margin: 0 30px;
}

.nav-menu {
    display: flex;
    justify-content: center;
    gap: 100px;
    font-size: 1.4em;
    font-weight: 500;
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.nav-menu li {
    list-style-type: none;
}

.nav-menu a {
    color: #FFFFFF;
    text-decoration: none;
    padding: 0px 2px;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: #FFD700;
    background-color: rgba(255, 215, 0, 0.1);
}

.current-menu-item a {
    color: #FFD700;
    border: 2px solid #FFD700;
    border-radius: 5px;
}

.header-logo img {
    width: 120px;
    height: auto;
    transition: filter 0.3s ease;
    margin-right: 50px;
}

.header-logo img:hover {
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

/* Hero Section */
.hero-logo img {
    width: 180px;
    margin-top: 20px;
}

.hero-section {
    position: relative;
    background-image: url('http://localhost/BoostArena/wp-content/themes/BoostArenaTheme/img_fond.png');
    background-size: cover;
    background-position: center;
    padding: 80px 20px;
    color: #FFF;
    text-align: center;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.4;
}

.cta-button {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 30px;
    font-size: 1.2em;
    color: #1C1646;
    background-color: #FFD700;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #FFC107;
}

/* Page d'inscription */
.signup-page {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
}

.signup-container {
    background-color: #1C1646;
    padding: 40px;
    border-radius: 10px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.signup-logo img {
    width: 100px;
    margin-bottom: 20px;
}

.signup-container h1 {
    font-size: 2em;
    color: #FFD700;
    margin-bottom: 30px;
}

.signup-form .form-group {
    margin-bottom: 15px;
}

.signup-form input[type="text"],
.signup-form input[type="email"],
.signup-form input[type="password"] {
    width: 100%;
    padding: 12px;
    font-size: 1em;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #333;
    color: #FFF;
}

.signup-form .form-buttons {
    margin-top: 20px;
}

.signup-form .submit-button {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    font-weight: bold;
    color: #1C1646;
    background-color: #FFD700;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.signup-form .submit-button:hover {
    background-color: #FFC107;
}

.already-registered {
    margin-top: 20px;
    font-size: 1em;
    color: #CCCCCC;
}

.already-registered p {
    margin-bottom: 10px;
}

.already-registered a.signup-button {
    color: #FFD700;
    font-weight: bold;
    text-decoration: none;
    background-color: #1C1646;
    padding: 10px 20px;
    border: 2px solid #FFD700;
    border-radius: 5px;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.already-registered a.signup-button:hover {
    background-color: #FFD700;
    color: #1C1646;
}

/* Page de connexion */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
    min-height: 100vh;
}

.login-container {
    background-color: #1C1646;
    padding: 40px;
    border-radius: 10px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.login-logo img {
    width: 100px;
    margin-bottom: 20px;
}

.login-container h1 {
    font-size: 2em;
    color: #FFD700;
    margin-bottom: 30px;
}

.login-form .form-group {
    margin-bottom: 15px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px;
    font-size: 1em;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #333;
    color: #FFF;
}

.login-form .form-buttons {
    margin-top: 20px;
}

.login-form .submit-button {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    font-weight: bold;
    color: #1C1646;
    background-color: #FFD700;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-form .submit-button:hover {
    background-color: #FFC107;
}

.form-google {
    margin-top: 20px;
    text-align: center;
}

.form-google button.google-button {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    font-weight: bold;
    color: #1C1646;
    background-color: #FFFFFF;
    border: 1px solid #DDD;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.form-google button.google-button:hover {
    background-color: #F1F1F1;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.form-google img {
    width: 20px;
    height: 20px;
}

.already-registered {
    margin-top: 20px;
    font-size: 1em;
    color: #CCCCCC;
}

.already-registered p {
    margin-bottom: 10px;
}

.already-registered a.signup-button {
    color: #FFD700;
    font-weight: bold;
    text-decoration: none;
    background-color: #1C1646;
    padding: 10px 20px;
    border: 2px solid #FFD700;
    border-radius: 5px;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.already-registered a.signup-button:hover {
    background-color: #FFD700;
    color: #1C1646;
}

/* Page Equipe Styles */
.teams-page h1,
.create-team-section h2 {
    font-size: 2.5em;
    color: #FFD700;
    margin-bottom: 20px;
}

.teams-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.team-item {
    background-color: #333;
    border-radius: 8px;
    padding: 15px;
    width: 200px;
    text-align: center;
    color: #FFF;
}

.team-item img {
    max-width: 50px;
    height: auto;
    margin-bottom: 10px;
}

.join-button {
    display: inline-block;
    background-color: #FFD700;
    color: #1C1646;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.create-team-section {
    margin-top: 40px;
    text-align: center;
}

.create-team-button {
    display: inline-block;
    background-color: #FFD700;
    color: #1C1646;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
}

/* Page Création Equipe Styles */
.create-team-page h1 {
    font-size: 2.5em;
    color: #FFD700;
    margin-bottom: 20px;
}

.create-team-form {
    max-width: 500px;
    margin: 0 auto;
    background-color: #333;
    padding: 20px;
    border-radius: 8px;
}

.create-team-form .form-group {
    margin-bottom: 15px;
}

.create-team-form label {
    display: block;
    color: #FFD700;
    margin-bottom: 5px;
}

.create-team-form input[type="text"],
.create-team-form input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #1C1646;
    color: #FFFFFF;
}

.submit-button {
    width: 100%;
    padding: 10px;
    background-color: #00AEEF;
    color: #FFF;
    font-size: 1.2em;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.submit-button:hover {
    background-color: #008bbf;
}

/* Styles pour la page de profil */
.profile-page {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
}

.profile-container {
    background-color: #1C1646;
    padding: 40px;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    color: #FFFFFF;
}

.profile-header h1 {
    font-size: 2.5em;
    color: #FFD700;
    margin-bottom: 30px;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.profile-avatar {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 10px;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.edit-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: #FFD700;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.edit-icon img {
    width: 16px;
    height: 16px;
}

.profile-name h2 {
    font-size: 1.8em;
    font-weight: bold;
}

.profile-team {
    margin: 20px 0;
}

.profile-team h3 {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 10px;
}

.team-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #333;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 1.2em;
}

.team-badge img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.profile-actions {
    margin-top: 20px;
}

.logout-button {
    background-color: #FFD700;
    color: #1C1646;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.logout-button:hover {
    background-color: #FFC107;
}

/* Stats Section */
.stats-section {
    display: flex;
    justify-content: space-around;
    padding: 60px 20px;
    background-color: #1C1646;
    color: #FFF;
}

.stat-box {
    width: 20%;
    text-align: center;
}

.stat-box h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.stat-box p {
    font-size: 1em;
}

/* Upcoming Matches Section */
.upcoming-matches-section {
    padding: 40px 20px;
    background-color: #1C1646;
    color: #FFF;
    text-align: center;
}

.upcoming-matches-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.match-card {
    background-color: #333;
    padding: 20px;
    margin: 10px auto;
    border-radius: 8px;
    width: 70%;
    color: #FFF;
    font-size: 1.2em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.match-info {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.team-name {
    width: 40%;
    text-align: center;
}

.vs {
    color: #FFD700;
    font-size: 1.8em;
    font-weight: bold;
    text-align: center;
    width: 100px;
}

.date-time {
    font-size: 0.9em;
    color: #CCCCCC;
}

/* Page Match Styles - START */
.match-page {
    padding: 40px 0;
}

.match-page h1 {
    font-size: 2.5em;
    color: #FFD700;
    margin-bottom: 20px;
}

.competition-image {
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    margin: 20px 0;
}

.description {
    color: #CCCCCC;
    margin: 15px;
}

.upcoming-matches,
.match-results {
    padding: 40px;
}

.date-circle {
    background-color: #FFD700;
    color: #1C1646;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto;
    font-size: 1.2em;
}

.match-card,
.result-card {
    background-color: #333;
    margin: 20px auto;
    padding: 15px;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    color: #FFF;
}

.match-details,
.result-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5em;
}

.match-time,
.match-date {
    color: #CCCCCC;
    font-size: 0.9em;
}

.score {
    font-weight: bold;
    color: #FFD700;
}

/* Responsive Adjustments for Match Page */
@media (max-width: 768px) {

    .match-card,
    .result-card {
        width: 90%;
    }
}

/* Bouton "Voir tous les matchs" */
.view-all-matches-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1.1em;
    color: #1C1646;
    background-color: #FFD700;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.view-all-matches-button:hover {
    background-color: #FFC107;
}

.single-equipe-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
    color: #FFFFFF;
    background-color: #1C1646;
}

.team-title {
    font-size: 2.8em;
    color: #FFD700;
    margin-bottom: 20px;
}

.team-logo img {
    width: 80px;
    border-radius: 50%;
}

.team-name {
    font-size: 1.5em;
    color: #FFD700;
    margin-top: 10px;
}

.team-players {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.player {
    text-align: center;
}

.player img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.team-stats {
    margin: 20px 0;
    font-size: 1.2em;
}

.win-lose {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 15px;
}

.stat {
    background-color: #FFD700;
    color: #1C1646;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1.5em;
    font-weight: bold;
}

.team-recent-matches {
    margin-top: 30px;
}

.team-recent-matches h2 {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
}

.match-card {
    background-color: #333;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
}

.match-info {
    display: flex;
    justify-content: space-between;
    font-size: 1.1em;
    color: #CCCCCC;
}

/* Footer Styles */
.site-footer {
    background-color: #1C1646;
    padding: 50px 0 30px;
    color: #FFFFFF;
    border-top: 3px solid #FFD700;
    display: flex;
    justify-content: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 30px;
    margin-left: -150px;
}

.social-icons a {
    display: inline-block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icons img {
    width: 70px;
    height: 70px;
    filter: brightness(0.9);
}

.social-icons a:hover {
    transform: translateY(-5px);
}

.social-icons a:hover img {
    filter: brightness(1.2);
}

.footer-logo {
    margin-right: 50px;
    transition: filter 0.3s ease;
}

.footer-logo img {
    width: 200px;
    height: auto;
}

.footer-logo img:hover {
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.legal-links {
    font-size: 1.4em;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.legal-links a {
    color: #CCCCCC;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 5px 10px;
}

.legal-links a:hover {
    color: #FFD700;
}

/* Legal Page Styles */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #1C1646;
    color: #FFFFFF;
    line-height: 1.8;
}

.legal-page h1 {
    font-size: 2.8em;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: #FFD700;
}

.legal-page h2 {
    font-size: 2em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #FFD700;
}

.legal-page h3 {
    font-size: 1.6em;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #FFD700;
}

.legal-page p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #CCCCCC;
    text-align: justify;
}

.legal-page ul {
    list-style-type: disc;
    padding-left: 40px;
    color: #CCCCCC;
}

.legal-page li {
    margin-bottom: 10px;
}

/* Contact Page Specific Styles */
.contact-page .contact-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #333;
    border-radius: 8px;
}

.contact-page .contact-form label {
    display: block;
    font-size: 1.1em;
    color: #FFD700;
    margin-bottom: 5px;
}

.contact-page .contact-form input,
.contact-page .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #1C1646;
    color: #FFFFFF;
    font-size: 1em;
}

.contact-page .contact-form button {
    padding: 10px 20px;
    font-size: 1.1em;
    color: #1C1646;
    background-color: #FFD700;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-page .contact-form button:hover {
    background-color: #FFC107;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .social-icons img {
        width: 35px;
        height: 35px;
    }

    .footer-logo img {
        width: 150px;
    }

    .legal-links {
        font-size: 0.9em;
        gap: 10px;
    }
}

@media (min-width: 1024px) {
    .hero-section {
        padding: 100px 60px;
    }

    .hero-content h1 {
        font-size: 3em;
    }

    .hero-content p {
        font-size: 1.4em;
    }

    .date-range {
        font-size: 1.8em;
    }

    .footer-container {
        flex-direction: row;
        justify-content: space-around;
        width: 80%;
        margin: 0 auto;
    }
}