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

body {
    font-size: 16px; /* Base font size */
    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, #collectif_d_initiative {
    display: block; /* Each span will occupy its own line */
    color: rgba(0, 38, 84, 1);
    font-size: 16px;
}

#logo_cite_banner {
    display: block;
    width: 50%;
    margin-top: 5px;
    margin-bottom: 5px;
}

.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: 16px;
}

#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: visible;
}

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

.container {
    aspect-ratio: 1340/768;
    margin-top: 25px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.blue_square {
    background: rgba(0, 38, 84, 1);
    position: absolute;
    width: 15%;
    height: 25%;
}

#blue_1 {
    top: 0;
    left: 0;
    border-bottom-right-radius: 10px;
}

#blue_2 {
    bottom: 0;
    right: 0;
    border-top-left-radius: 10px;
}

.poster {
    position: absolute;
    top: 5px;
    right: 5px;
    bottom: 5px;
    left: 5px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 1);
    /* background: url("../../images/Logo_Consultation_2026_bleu.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover; */
    border-radius: 8px;
    z-index: 2;
}

#poster-image {
    width: 100%;
    height: auto;
}

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

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

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

.grid_item {
    text-align: center;
    position: relative;
    overflow: visible; /* Allow popup to be seen */
}

.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: 100%;
    height: auto;
    min-height: 100%;
    background-color: rgba(255, 255, 255, 1);
    color: rgba(0, 38, 84, 1);
    padding: 1em;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    z-index: 10;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    overflow-y: auto;
}

.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; /* Heading size */
    margin-bottom: 20px;
    display: block;
}

#give_us_money,
#we_live_in_a_society {
    color: rgba(0, 38, 84, 1);
    font-size: 24px; /* Subheading size */
    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; /* Subheading size */
    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: 40px; /* Heading size */
    display: block;
    text-align: center;
}

#renouv {
    width: 100%;
    margin-top: 20px;
    color: rgba(0, 38, 84, 1);
    font-size: 24px; /* Subheading size */
    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: 40px; /* Heading size */
    margin-bottom: 1rem;
    color: rgba(0, 38, 84, 1);
    text-align: center;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
    display: flex;
    margin-top: 30px;
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.carousel-track {
    display: flex;
    gap: 20px; /* Space between slides */
    animation: scroll 40s linear infinite;
}

.carousel-track-container:hover .carousel-track {
    animation-play-state: paused;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-220px * 8)); /* 200px item width + 20px gap */
    }
}

.carousel-item {
    flex: 0 0 200px; /* Fixed width for items */
    height: 200px; /* Height of the item */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
    position: relative;
    cursor: pointer;
    border-radius: 8px;
}

.carousel-item:hover {
    transform: scale(1.05);
}

.carousel-item:hover .person-name {
    opacity: 1;
}

.person-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 38, 84, 0.8);
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.carousel-control {
    display: none; /* Hide control buttons */
}

.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"); }


/* Add media query for mobile responsiveness */
@media (max-width: 640px) {
    .join_us_box {
        width: 80%;
        margin: 50px auto;
        padding: 20px;
        text-align: center;
    }

    #rejoins_nous, #collectif_d_initiative {
        font-size: 15px; /* Increased from 8px */
    }
}

/* Additional responsive styles for mobile */
@media (max-width: 768px) {
    #a_la_une, #bureau, #principes_promesses {
        font-size: 28px;
    }
    
    #convaincu_necessite, #renouv, #give_us_money, #we_live_in_a_society {
        font-size: 18px;
        width: 90%;
        margin-left: 5%;
    }
    
    .container {
        margin-top: 15px;
    }
    
    .join_us_box {
        margin: 50px auto;
        width: 80%;
    }
    
    #logo_cite_banner {
        width: 50%;
        margin: 10px auto;
    }

    .grid_container {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        padding: 10px;
    }
    
    .gift_top {
        flex-direction: column;
        margin: 0 5%;
        width: auto;
    }
    
    .gift_text {
        width: 100%;
        text-align: center;
        margin: 0 auto;
    }
    
    .gift_image {
        width: 35%;
        margin: 20px auto;
    }

    .text_collec {
        width: 90%;
        margin: 40px auto;
        text-align: center;
    }
    
    .members {
        width: 90%;
    }
    
    .member {
        background-size: contain;
        margin-bottom: 10px;
    }
    .map_div {
        margin: 5%;
    }
    .carousel-header {
        font-size: 32px;
    }
}
