 /* Global Styles */
:root {
    --primary-color: #1a237e;
    --secondary-color: #303f9f;
    --accent-color: #7986cb;
    --text-color: #333;
    --light-text: #fff;
    --background-color: #f5f5f5;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    transition: opacity 0.5s ease;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(26, 35, 126, 0.95);
    padding: 1rem 2rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    color: var(--light-text);
    font-size: 1.5rem;
    font-weight: 700;
}
.nav-brand img {
    max-width: 200px;
    height: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li a {
    color: var(--light-text);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.nav-menu li a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('../assets/images/pictures/hero.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.slogan {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.sub-slogan {
    font-size: 1.2rem;
    font-style: italic;
}

/* Sections */
section {
    padding: 2rem 0;
}

section h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/*About Us section*/

.about {
    padding: 4rem 0;
    background-color: #f8f9fa;
}
.about p {
    text-align: justify;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 4fr;
    gap: 1rem;
    align-items: center; /* Space between logo and description */
    margin: 0 auto; /* Center the container */
}


.logo-hk img {
    width: 100%;
}

.hklogo img{
    display: none;
}

/* Festival*/

.festival-card {
    display: flex;
    gap: 2rem;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.festival-image {
    flex: 1;
    min-width: 300px;
}

.festival-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.festival-description {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: justify;
}

.hidden {
    display: none;
}

.langToggle{
    text-decoration: none;
}

/* Optional: Add some smooth transition effect */
#festivalContent p {
    transition: opacity 0.3s ease-in-out;
}

.festival-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/images/pictures/festival.webp') center/cover no-repeat;;
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
}


/* Activities Section */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.activity-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

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

.activity-image {
    height: 200px;
    overflow: hidden;
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-card h3 {
    padding: 1rem;
    color: var(--primary-color);
}

.activity-card p {
    padding: 0 1rem 1rem;
}

.activity-card a {
    text-decoration: none;
    color: var(--primary-color);
}

/* News section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.news-card {
    background: #fff;
    overflow: hidden;
    transition: var(--transition);
    display: flex; 
}

/* Gallery Section */
.carousel {
    position: relative;
    display: flex;
    align-items: center;
}

.carousel-container {
    min-width: 100%;
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 (100% * 9 / 16) */
    overflow: hidden;
    margin: 0 auto;
    flex-grow: 1;
}

.carousel-container img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Contact Section */
.contact {
    background-color: var(--background-color);
}

.contact-content {
    text-align: center;
}

.email-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
}

.email-link i {
    margin-right: 0.5rem;
}

/* Team Section */
.team {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.team-card {
    display: flex;
    gap: 2rem;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.team-image {
    flex: 1;
    min-width: 300px;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-description {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-description h3 {
    margin-bottom: 1rem;
    color: #333;
}

.team-description p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #666;
}

.discover-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    width: fit-content;
    margin-top: 1rem;
}

.discover-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Donation Section */
.donation {
    text-align: center;
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.donate-button {
    display: inline-block;
    padding: 1rem 2rem;
    margin-top: 2rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.donate-button:hover {
    background-color: #0056b3;
}

/* Partners Section */
.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.partner-logos img {
    height: 85px;
    object-fit: contain;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 2rem 0;
}

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

.social-links a {
    color: var(--light-text);
    margin-left: 1rem;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent-color);
}

/* page style */
.container-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Deux colonnes de largeur égale */
    gap: 2rem;
}
    
.image-grid img {
    max-width: 100%; /* L'image ne dépasse pas la largeur de son conteneur */
    height: auto;
    display: block;
}
.text-grid p {
    text-align: justify;
}
  
/* Team Page Specific Styles */
.team-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/images/pictures/header-cover.webp');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.team-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.team-section {
    padding: 4rem 0;
}

.team-section:nth-child(even) {
    background-color: #f8f9fa;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-social-links a {
    color: var(--primary-text);
    margin-left: 1rem;
    font-size: 1.5rem;
    transition: var(--transition);
}

.team-social-links a:hover {
    color: var(--accent-color);
}

.member-image {
    height: 300px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    padding: 1.5rem;
}

.member-info h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.position {
    color: #007bff;
    font-weight: 500;
    margin-bottom: 1rem;
}

.bio {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.join-team {
    background-color: #007bff;
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: white;
    color: #007bff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

/*Concours page*/
.presentation, .reglement {
    padding: 4rem 0;
}

.presentation, .reglement h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

#presentation {
    text-align: center;
}

#reglement {
    border-top: 1px solid #eee; /* Ajout d'une bordure supérieure discrète */
    padding-top: 3rem; /* Ajout d'un espacement supérieur */
}

#reglement h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

#reglement ul {
    list-style-type: disc; /* Ajout du style de puce */
    padding-left: 20px; /* Ajout d'un retrait pour les puces */
    margin-bottom: 1.5rem;
}

#reglement li {
    margin-bottom: 0.5rem;
}

#reglement .couleurs-autorisees {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

#reglement .couleur-bloc {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 0.75rem;
}

#reglement .couleur-bloc[title="#FFFFFF"] {
    color: black;
    border: 1px solid #ddd;
}

.button-container {
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    margin: 0 1rem;
    background-color: var(--primary-color);
    color: var(--light-text);
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
}

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

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

.reglement-contenu {
    line-height: 1.7;
}

.couleurs-autorisees {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1rem;
}

.couleur-bloc {
    width: 80px; /* Largeur augmentée */
    height: 80px; /* Hauteur augmentée */
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white; /* Couleur du texte (code hex) */
    font-size: 0.8rem; /* Taille de la police du code hex */
}

.couleur-bloc[title="#FFFFFF"] {
    color: black; /* Code hex en noir pour le blanc */
    border: 1px solid #ddd; /* Ajout d'une bordure pour le blanc */
}
