/* Variables */
:root {
    --primary-color: #579459;
    --secondary-color: #ffffff;
    --accent-color: #e67e22;
    --text-dark: #333;
    --hover-color: #c56613;
}

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

/* Style général */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    overflow-x: hidden;
}

/* === HEADER === */

/* .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
} */

/* === LOGO === */
/* .logo a {
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    color: var(--secondary-color);
}
.logo span {
    color: var(--accent-color);
} */

/* === MENU === */
/* .menu {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.menu li {
    display: inline-block;
}

.menu a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: var(--hover-color);
} */

/* === SUBMENU === */
/* .has-submenu {
    position: relative;
}

.has-submenu > a {
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    padding: 12px 15px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.has-submenu > a:hover {
    color: var(--secondary-color);
}

.has-submenu i {
    transition: transform 0.3s ease;
}

.submenu {
    display: none;
    position: absolute;
    background: white;
    list-style: none;
    padding: 10px 0;
    margin-top: 5px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 10;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-align: center;
}

.submenu li {
    border-bottom: 1px solid #ddd;
}
.submenu li:last-child {
    border-bottom: none;
}
.submenu li a {
    display: block;
    padding: 10px 15px;
    color: black;
    text-decoration: none;
    font-size: 0.95em;
    transition: background 0.3s ease;
}
.submenu li a:hover {
    background: var(--primary-color);
    color: white;
    border-radius: 5px;
}

.has-submenu:hover .submenu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.has-submenu:hover i {
    transform: rotate(180deg);
} */






/*Css de la page d'accueil */

.main-home{
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 12px;
}
.main-home h3{
    padding-left: 10px;
    padding-right: 10px;

}

@media (max-width: 768px) {
    .main-home{
        max-width: 480px;
        padding: 0 10px;
    }
}

/*Le style du carousel*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
}



.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-content {
    text-align: center;
    color: white;
    padding: 20px;
    max-width: 800px;
    z-index: 2;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 3;
}

.carousel-arrow {
    cursor: pointer;
    color: white;
    font-size: 3rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-arrow:hover {
    opacity: 1;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .carousel-arrow {
        font-size: 2rem;
        padding: 0 1rem;
    }

    .slide-content h2 {
        font-size: 2em;
    }

    .slide-content p {
        font-size: 1em;
    }
}

/*Le style de la section about*/
.container-guinee-about {
    margin: 10px auto;
    padding: 20px;
    display: flex;
    gap: 40px;
    align-items: center;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;

    max-width: 1200px;
    padding: 40px 20px;
    gap: 50px;
}



.container-guinee-about .title{color: var(--primary-color);}
.container-guinee-about .title::after {
    content: '';
    display: block;
    width: 200px;
    height: 3px;
    background: var(--primary-color);
    margin: 15px 0;
}
.content-section {
    flex: 1;
    padding-right: 40px;
}

.image-section {
    flex: 1;
    border-left: 2px solid var(--primary-color);
    padding-left: 20px;
    height: 500px;
    position: relative;
}

.title {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 25px;
}

.description {
    font-size: 1.1em;
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
}

.btn-savoir-plus {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.btn-savoir-plus:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
/* Version desktop */
@media (min-width: 768px) {
    .container-guinee-about {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      gap: 40px;
      align-items: center;
      padding: 20px;
    }

    .content-section {
      flex: 1;
    }

    .image-section {
      flex: 1;
    }
  }

  /* Version mobile */
  @media (max-width: 767px) {
    .container-guinee-about {
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding: 25px 15px;
    }


    .image-section img {
      width: 100%;
      height: auto;
      max-width: 500px; /* Ajustez selon vos besoins */
      margin: 0 auto;
    }

    .title {
      font-size: 1.8rem; /* Taille réduite pour mobile */
    }

    .description {
      font-size: 0.95rem;
      line-height: 1.5;
    }

    .btn-savoir-plus {
      width: 100%;
      max-width: 300px;
      display: block;
      margin: 20px auto 0;
      padding: 12px;
    }
  }

/*Style Musee*/

.container-musee {
    max-width: 1200px;
    margin: 10px auto;
    padding: 10px;
}

.main-title {
    text-align: center;
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.content-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
}

.image-container {
    width: 100%;
    height: 100%;
    position: relative;
}


.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.image-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.text-overlay {
    position: absolute;
    bottom: 10px;
    right: 20px;
    width: 70%;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.text-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.text-content {
    font-size: 1.1em;
    line-height: 1.6;
    color: #666;
    padding-bottom: 15px;
}

@media (max-width: 768px) {
    .content-wrapper {
        height: auto;
    }

    .text-overlay {
        position: relative;
        width: 100%;
        right: 0;
        bottom: 0;
        margin-top: 20px;
    }

    .image-container {
        height: 300px;
    }
}
.btn-container {
    text-align: center;
    margin-top: 50px;
}

.btn-savoir-plus {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 40px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1em;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-savoir-plus:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--primary-color);
}

@media (max-width: 768px) {
    .btn-savoir-plus {
        padding: 12px 30px;
        font-size: 1em;
    }
}

/*Le style de la section services*/
.container-home-service {
    padding-top: 50px;
    max-width: 1200px;
    margin: 50px auto;

}
.container-home-service h2{
    color: var(--primary-color);
}

.container-home-service .titre-section {
    text-align: center;
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.container-home-service .cards-wrapper {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.container-home-service .card {
    flex: 1;
    max-width: 350px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: all 0.4s ease;
}

.container-home-service .card-content {
    position: relative;
    height: 400px;
}

.container-home-service .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.container-home-service .card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 20px;
    margin: 0;
    transition: all 0.3s ease;
}

.container-home-service .card-description {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px;
    color: white;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s ease;
    z-index: 2;
}

.container-home-service .card:hover {
    transform: translateY(-10px);
}

.container-home-service .card:hover .card-content::before {
    background: var(--primary-color);
}
.container-home-service .card:hover .card-description {
    opacity: 1;
    transform: translateY(0);
}

.container-home-service .card:hover .card-title {
    opacity: 0;
}

.container-home-service .card-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0);
    transition: all 0.4s ease;
    z-index: 1;
}

@media (max-width: 768px) {
    .container-home-service .cards-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .container-home-service .card {
        max-width: 100%;
    }
}



/*Le style de la section EVENEMENTS*/
/* .container {
    max-width: 1200px;
    margin: 5px auto;
    padding: 5px;
} */

.titre-section-events {
    text-align: center;
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

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

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

.event-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-content {
    padding: 20px;
}

.event-title {
    font-size: 1.3em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.event-description {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.event-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.location-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
}

.views-info {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
}

.event-footer {
    background: var(--primary-color);
    padding: 15px;
    text-align: center;
    cursor: pointer;
}


.add-icon {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    opacity: 0;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }

}

/* Footer */
footer {
    background-color: var(--primary-color);
    /* color: var(--text-light); */

}




/* Centrage de l'input-container sur la page */
.subscriber {
    padding-top: 10px;
}

.newsletter {
    background: linear-gradient(135deg, #2c3e50, var(--primary-color));
    color: white;
    text-align: center;
    padding: 20px;
}

.newsletter-content {
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.newsletter h2 {
    font-size: 2em;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--secondary-color);
}

.newsletter p {
    font-size: 1.1em;
    padding-bottom: 10px;
    opacity: 0.9;
    max-width: 900px;
    margin: 0 auto;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.newsletter-form input {
    padding: 15px 25px;
    border: none;
    border-radius: 30px;
    width: 350px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 5px var(--accent-color);
    border-color: var(--accent-color);
}

.newsletter-form button {
    padding: 15px 35px;
    border: none;
    border-radius: 30px;
    background: var(--accent-color);
    color: white;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.newsletter-form button:hover {
    background: var(--color-hover);
    transform: translateY(-2px);
}

.newsletter-form button:active {
    transform: translateY(1px);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-links a {
    color: white;
    font-size: 1.5em;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
    opacity: 1;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 80%;
        max-width: 350px;
    }

    .newsletter h2 {
        font-size: 2em;
    }

    .newsletter p {
        font-size: 1em;
        margin-bottom: 20px;
    }
}


/* BANNER HERO */

.bann-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* S'assure que l'image couvre toute la zone sans distorsion */
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1; /* Place l'image derrière le texte */
}
