* {
    box-sizing: border-box;
    text-decoration: None;
}

body {
    font-size: 14px;
    font-family: Merriweather;
}

.page {
    width: 100%;
    background: rgba(255, 255, 255, 1);
}

.top_extension {
    width: 100%;
    overflow: hidden;
}

.join_us_box {
    width: 230px;
    height: auto;
    margin: 100px 0 100px 63%;
    padding: 15px 10px;
    background: rgba(255, 255, 255, 1);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    overflow: hidden;
}

.text_join_us {
    padding: 10px 10px;
}

#rejoins_nous, #Le_cité, #collectif_d_initiative {
    display: block; /* Each span will occupy its own line */
    color: rgba(0, 38, 84, 1);
}

#rejoins_nous {
    font-size: 15px;
}

#Le_cité {
    font-size: 40px;
}

#collectif_d_initiative {
    font-size: 12px;
}

.join_us_buttons {
    margin: 10px;
    display: flex; /* Align buttons side by side */
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px; /* Space between buttons */
}

.contact_button, .member_button {
    padding: 6px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    cursor: pointer; /* Add pointer for interactivity */
}

.contact_button {
    border: 1px black solid;
}

.member_button {
    background: rgba(0, 38, 84, 1);
}

#contact_us, #become_member {
    color: rgba(199, 199, 199, 1);
    font-size: 10px;
}

#triangle {
    width: 100%;
    aspect-ratio: 1920/110;
    vertical-align: bottom;
}

.map_div {
    background: url("../images/v27_28.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    margin: 5% 15%;
    overflow: hidden;
}

#a_la_une {
    color: rgba(0, 38, 84, 1);
    top: 0px;
    font-size: 45px;
    opacity: 1;
}

.poster {
    aspect-ratio: 1340/768;
    background: url("../images/video.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    margin-top: 25px;
    border-radius: 10px;
}

#principes_promesses {
    display: block;
    margin-top: 60px;
    color: rgba(0, 38, 84, 1);
    font-size: 40px;
    text-align: center;
}

#convaincu_necessite {
    display: block;
    width: 70%;
    margin-left: 15%;
    margin-top: 20px;
    color: rgba(0, 38, 84, 1);
    font-size: 20px;
    text-align: center;
}

.grid_container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
    padding: 20px;
}

.grid_item {
    text-align: center;
    position: relative;
    overflow: hidden; /* Ensure content stays within bounds */
}

.grid_item img {
    width: 100%;
    max-width: 100px; /* Adjust image size as needed */
    border-radius: 8px;
    transition: transform 0.3s ease;
    margin-top: 10px;
}

.grid_item img:hover {
    transform: scale(1.1); /* Slight zoom effect on hover */
}

.item_text {
    margin-top: 10px;
    font-size: 16px;
    color: #333;
}

.hover_popup {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    margin: 2% 10%;
    height: 70%;
    background-color: rgba(255, 255, 255, 1); /* Dark overlay */
    color: rgba(0, 38, 84, 1);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transform: scale(0.9); /* Slightly smaller initially */
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-size: 10px;
    z-index: 1;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5); /* Shadow */
}

.grid_item:hover .hover_popup {
    opacity: 1;
    transform: scale(1); /* Scale up smoothly */
}

.make_a_gift {
    background: rgba(221, 221, 221, 1);
    padding: 40px 0;
}

.gift_top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    width: 70%;
}

.gift_text {
    width: 70%;
    padding-right: 20px;
}

#make_a_gift {
    color: rgba(0, 38, 84, 1);
    font-size: 40px;
    margin-bottom: 20px;
    display: block;
}

#give_us_money,
#we_live_in_a_society {
    color: rgba(0, 38, 84, 1);
    font-size: 20px;
    line-height: 1.2;
    margin-top: 10px;
    display: block;
}

.gift_image {
    width: 25%;
    aspect-ratio: 1;
    background: url("../images/v27_27.png") no-repeat center center;
    background-size: cover;
    border-radius: 10px;
}

.button_gift {
    display: block;
    margin: 20px auto 0 auto;
    padding: 15px 30px;
    background-color: rgba(0, 38, 84, 1);
    color: #fff;
    font-size: 24px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    width: fit-content;
    transition: background-color 0.3s ease;
}

.button_gift:hover {
    background-color: #002450;
}

#Le_collectif {
    width: 100%;
}

.text_collec {
    width: 60%;
    margin: 70px 20%;
}

#bureau {
    width: 100%;
    color: rgba(0, 38, 84, 1);
    font-size: 44px;
    display: block;
    text-align: center;
}

#renouv {
    width: 100%;
    margin-top: 20px;
    color: rgba(0, 38, 84, 1);
    font-size: 24px;
    display: block;
}

.members {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70%;
    margin: 40px auto;
    gap: 20px; /* Space between images */
}

.member {
    width: 100%;
    aspect-ratio: 1340/507;
    background-repeat: no-repeat;
    background-size: contain;
}

#Terence {
    background-image: url("../images/conseil/terence.png");
}

#Alexandre {
    background-image: url("../images/conseil/alexandre.png");
}

#Ethan {
    background-image: url("../images/conseil/ethanol.png");
}

#Paco {
    background-image: url("../images/conseil/pacopasbien.png");
}

.carousel {
    position: relative;
    width: 80%;
    margin: auto auto 40px auto;
    overflow: hidden;
    text-align: center;
}

.carousel-header {
    font-size: 30px;
    margin-bottom: 1rem;
    color: rgba(0, 38, 84, 1);
    text-align: center;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px; /* Space between slides */
}

.carousel-item {
    flex: 0 0 auto;
    height: 200px; /* Height of the item */
    aspect-ratio: 1; /* Ensures square aspect ratio */
    background-size: contain; /* Ensures the entire image is visible */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents repeating the image */
    transition: transform 0.5s ease-in-out;
}

.carousel-control {
    position: absolute;
    top: 63%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    z-index: 10;
}

.carousel-control.prev {
    left: 10px;
}

.carousel-control.next {
    right: 10px;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.7);
}

#people_1 {
    background-image: url("../images/people/1.png");
}

#people_2 {
    background-image: url("../images/people/2.png");
}

#people_3 {
    background-image: url("../images/people/3.png");
}

#people_4 {
    background-image: url("../images/people/4.png");
}

#people_5 {
    background-image: url("../images/people/5.png");
}

#people_6 {
    background-image: url("../images/people/6.png");
}

#people_7 {
    background-image: url("../images/people/7.png");
}

#people_8 {
    background-image: url("../images/people/8.png");
}