/*
Theme Name: ruraldash 
Theme URI: http://example.com
Author: Richard PICHET
Author URI: http://example.com
Description: Thème optimisé pour RuralDash.
Version: 0.0
*/

/* Variables globales */
:root {
    --primary-color: #207c3a;
    --primary-hover-color: #207f3b;
    --secondary-color: #28a745;
    --secondary-hover-color: #218838;
    --text-color: #000000;
    --background-color: #ffffff;
    --card-border-color: #d7d8d7;
    --light-gray: #f9f9f9;
    --header-background: #f8f9fa;
    --header-border: #ddd;
    --link-hover-color: #ffffff;
}

/* Styles globaux */
body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-color);
}

/* Boutons */
button, .btn {
    font-family: inherit;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    padding: 10px 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-success, .btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-success:hover, .btn-primary:hover {
    background-color: var(--primary-hover-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
}

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

/* Cartes */
.card {
    border: 1px solid var(--card-border-color);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
/*    transition: transform 0.3s ease, box-shadow 0.3s ease;*/
}

.card:hover {
/*    transform: scale(1.05);*/
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card .card-img-top {
    max-width: 100%;
    height: auto;
    padding: 5px;
    margin: 0 auto;
    display: block;
}

/* Images */
.img-fluid.rounded {
    border: 5px solid var(--primary-color);
    border-radius: 15px;
    padding: 5px;
}

/* Statistiques */
.stat-card {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.stat-card i {
    display: block;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.stat-card h3 {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 10px 0;
}

/* Style du bandeau */

/* Menu Principal */
.menu-container {
  position: relative;
}

#site-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  padding: 10px 0;
}

#primary-menu {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

#primary-menu li {
  position: relative;
}

#primary-menu li a {
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  padding: 10px 15px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#primary-menu li a:hover {
  background-color: #ff4900;
  color: white;
  border-radius: 5px;
}

/* Sous-menus */
#primary-menu ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  list-style: none;
  padding: 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 999;
  border-radius: 5px;
}

#primary-menu li:hover > ul {
  display: block;
}

#primary-menu ul li a {
  color: #333;
  padding: 8px 12px;
}

#primary-menu ul li a:hover {
  background-color: #ff4900;
  color: white;
}


/* Styles pour le menu burger */
#menu-burger {
  display: none; /* Masqué par défaut */
  font-size: 24px; /* Taille de l'icône */
  cursor: pointer;
  background-color: transparent;
  border: none;
  color: #333;
}

#menu-burger:focus {
  outline: none; /* Supprimez le focus par défaut */
}

/* Menu burger déplié */
#primary-menu.show {
  display: flex; /* Réaffichez le menu */
  flex-direction: column; /* Organisez les éléments verticalement */
  position: absolute;
  top: 100%; /* Juste en dessous du header */
  left: 0;
  width: 100%; /* Occupe toute la largeur */
  background-color: white;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* Fin du Header*/

/* Menu burger pour petits écrans */
.menu-toggle {
    display: none;
    background-color: white;
    border: none;
    color: #207c3a;
    font-size: 1.5rem;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
}

.menu-toggle:focus {
    outline: none;
}



/* Masquer le menu sur mobile */
@media (max-width: 768px) {
	 .site-branding .custom-logo {
        max-height: 80px; /* Réduction supplémentaire pour petits écrans */
    }
    .site-header {
        padding: 5px 0; /* Espacement réduit */
    }
    .menu {
        display: none;
        flex-direction: column;
        gap: 10px;
        background-color: rgba(255, 255, 255, 0.9);
        position: absolute;
        top: 60px;
        right: 10px;
        width: 200px;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 15px;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    }

    .menu-toggle {
        display: block;
    }

    .menu.show {
        display: flex;
    }
}


/* Recherche et Réseaux sociaux */
.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    margin-right: 20px;
}

.site-search input[type="search"] {
    padding: 5px 10px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    outline: none;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.site-search input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.site-search input[type="search"]:focus {
    border-color: white;
    background-color: rgba(255, 255, 255, 0.3);
}

.social-icons a {
    color: white;
    font-size: 1.2rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: #ffd700;
    transform: scale(1.1);
}
/* Fin du Header*/



#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-media video,
.hero-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* S'assure que la vidéo ou l'image remplit toute la section */
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1; /* Place le contenu au-dessus de la vidéo ou de l'image */
    max-width: 700px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Fond semi-transparent pour améliorer la lisibilité */
    border-radius: 8px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}

.btn-hero {
    padding: 10px 20px;
    font-size: 1.1rem;
    color: white;
    background-color: #28a745;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-hero:hover {
    background-color: #1c6a33;
}



/* Section des dernières actualités */
.latest-news {
    padding: 40px 20px;
    background-color: #f9f9f9;
}

.latest-news .section-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.news-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; /* Assure que chaque élément a la même hauteur */
}

.news-thumbnail {
    height: 200px; /* Hauteur fixe pour l'image */
    overflow: hidden;
    position: relative;
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Assure une image proportionnelle */
}

.news-title {
    font-size: 18px;
    font-weight: bold;
    margin: 15px 10px 10px;
    flex-grow: 0;
    text-align: center;
}

.news-excerpt {
    margin: 0 10px 15px;
    font-size: 14px;
    color: #555;
    text-align: justify;
    flex-grow: 1; /* Remplit l'espace restant */
}


/* Liens dans les titres (orange, gras, non souligné) */
.news-card .card-title a {
    color: #FF8C00; /* Orange */
    font-weight: bold;
    text-decoration: none; /* Pas de soulignement */
}

.news-card .card-title a:hover {
    color: #FFA733; /* Orange plus clair au survol */
}

/* Liens ailleurs dans l'interface (orange, non gras, non souligné) */
a {
    color: #FF8C00; /* Orange */
    font-weight: normal;
    text-decoration: none; /* Pas de soulignement */
}

a:hover {
    color: #FFA733; /* Orange plus clair au survol */
    text-decoration: underline; /* Soulignement uniquement au survol */
}

.results-matches-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.results-block,
.matches-block {
    flex: 1 1 calc(50% - 10px);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.results-block h2,
.matches-block h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.results-list,
.matches-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.result-card,
.match-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.result-card:hover,
.match-card:hover {
    transform: scale(1.02);
}

.category {
    text-align: center;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team {
    display: flex;
    align-items: center;
    gap: 10px;
}

.team img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
}

.team span {
    font-size: 0.9rem;
    font-weight: bold;
}

.score {
    font-size: 1.2rem;
    color: #444;
}

.match-date,
.match-info {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
}

@media (max-width: 768px) {
    .results-block,
    .matches-block {
        flex: 1 1 100%; /* Les blocs prennent toute la largeur */
    }
}

.ssb-alert {
    font-weight: bold; /* Texte en gras */
    color: #1a712a;    /* Vert correspondant à vos couleurs */
}
#playersTable tr.selected {
  background-color: #cce5ff;
  color: #004085;
}

/* Styles pour les widgets */
.widget {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.widget-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #207c3a;
    margin-bottom: 10px;
}


.club-about {
    padding: 50px 15px;
    background-color: #f9f9f9;
    text-align: center;
    border-top: 2px solid #ddd;
}

.club-about .about-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.club-about .about-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}



.footer-map {
    text-align: center;
    margin: 20px 0;
}

.footer-map h2 {
    margin-bottom: 10px;
    font-size: 18px;
}

#map {
    border: 1px solid #ddd; /* Bordure autour de la carte */
    border-radius: 5px;
}


/* les articles */
/* Style général */
.article-page {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* En-tête de l'article */
.article-header {
    background: #f5f5f5;
    padding: 20px 0;
    text-align: center;
}

.article-title {
    font-size: 2.5rem;
    color: #222;
}

.article-meta {
    font-size: 0.9rem;
    color: #666;
}

.article-meta span {
    margin-right: 15px;
}

/* Image mise en avant */
.featured-image img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

/* Contenu principal */
.article-content h2 {
    font-size: 1.8rem;
    color: #444;
    margin-top: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

/* Partage social */
.article-actions {
    background: #f5f5f5;
    padding: 10px 0;
    text-align: center;
}

.social-share a {
    display: inline-block;
    margin: 0 10px;
    font-size: 1rem;
    color: #333;
    text-decoration: none;
}

.social-share a:hover {
    color: #ff6600;
}

/* Commentaires */
.comments-section {
    margin-top: 30px;
    padding: 20px 0;
    background: #fafafa;
    border-top: 1px solid #ddd;
}

.comments-section h3 {
    font-size: 1.5rem;
    color: #222;
    margin-bottom: 15px;
}

.comments p {
    margin-bottom: 10px;
    color: #555;
}

.comment-form textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
}

.comment-form button {
    padding: 10px 20px;
    background: #ff6600;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.comment-form button:hover {
    background: #e55d00;
}

.related-posts {
    padding: 30px 15px;
    background-color: #f9f9f9;
    border-top: 1px solid #ddd;
}

.related-posts h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.related-posts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.related-post-card {
    flex: 1 1 calc(33.333% - 20px); /* 3 articles par ligne */
    max-width: 300px;
    text-align: center;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-5px);
}

.related-post-thumbnail {
    width: 100%;
    height: auto;
    display: block;
}

.related-post-title {
    font-size: 1.2rem;
    margin: 15px 10px;
    color: #007acc;
    text-decoration: none;
    font-weight: bold;
}

.related-post-title:hover {
    color: #005fa3;
}


@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }

    .article-meta {
        text-align: center;
    }

    .social-share a {
        font-size: 0.9rem;
    }

    .comments-section h3 {
        font-size: 1.3rem;
    }
}

