/* =====================================================
   BASE 
===================================================== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f4f8;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    background-color: #f0f8ff;
}

/* =====================================================
   HEADER & NAVBAR
===================================================== */
header {
    background: url('../bandeau/bandeau.jpg') center 11% / cover no-repeat;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.navbar {
    transition: background-color 0.3s, box-shadow 0.3s;
    background-color: transparent !important;
}

.navbar .nav-link {
    color: #ffffff;
    transition: color 0.3s;
}

.navbar .nav-link:hover {
    color: #ffd700;
}

.navbar .nav-link.active-section {
    font-weight: bold;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    color: #ffd700;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar.scrolled .nav-link {
    color: #003366;
}

.navbar.scrolled .nav-link:hover {
    color: #001a33;
}

.navbar.scrolled .nav-link.active-section {
    color: #003366;
}

.navbar-toggler {
    border-color: #003366;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0,51,102,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}


/* =====================================================
   CONTAINERS & SECTIONS
===================================================== */
.main-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 15px;
}

.section-wrapper {
    width: 100%;
    padding: 2rem 0;
}

section {
    margin-bottom: 0;
}

section h2 {
    padding-top: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.section-bg-global { 
    background-color: #f0f8ff; 
    color: #000000; 
}

.section-bg-bandeau { 
    background-color: #003366; 
    color: #ffffff; 
}

/* =====================================================
   PUNCHLINES
===================================================== */
.punchline-full {
    width: 100%;
    text-align: center;
    padding: 2rem 0;
    font-size: 1.8rem;
    font-weight: bold;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0;
}

.punchline-bleu {
    background-color: #003366;
    color: #fff;
}

/* =====================================================
   CARDS & CONTENU
===================================================== */
.card, .article-card, .apropos-card {
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    background-color: #fff;
}

.card:hover, .article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.card-body, .article-card .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body p, .article-card p {
    margin-bottom: 1rem;
}

.article-card {
    margin-bottom: 2rem;
    text-align: center;
    padding: 1.5rem;
}

.article-card h5 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.article-images {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.article-images img {
    width: 100%;
    max-width: calc(33.33% - 6.66px);
    cursor: pointer;
    border-radius: 8px;
    object-fit: cover;
}

.apropos-card {
    border: 3px solid #003366; 
    border-radius: 20px;
    background-color: #ffffff;
    padding: 30px;
}

.apropos-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #003366;
}

.apropos-separation {
    width: 3px;
    background-color: #003366;
    height: 100%;
    min-height: 250px;
    border-radius: 3px;
}

.text-section {
    padding: 0 10px;
}

/* =====================================================
   FOOTER
===================================================== */

.footer-link {
    font-weight: bold;
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.footer-link:hover {
    color: #003366;
}

.footer-link img {
    width: 16px;
    height: 16px;
    display: inline-block;
}

.social-icons-footer {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-icons-footer a {
    display: inline-block;
}

.social-icons-footer img {
    display: block;
    width: 40px;
    height: 50px;
    transition: transform 0.2s;
}

.social-icons-footer img:hover {
    transform: scale(1.1);
}


/* =====================================================
   BUTTONS
===================================================== */
.btn-add {
    background-color: #003366;
    color: #fff;
    border: none;
}

.btn-add:hover {
    background-color: #002244;
    color: #fff;
}

button[data-bs-toggle="collapse"] {
    padding: 0.5rem 1rem;
    font-weight: bold;
    border-radius: 0.3rem;
    border: none;
    color: white;
    transition: background-color 0.3s;
}

button.btn-venir {
    background-color: #ffc107;
    color: #000;
}

button.btn-venir:hover {
    background-color: #e6ac00;
}

button.btn-passe {
    background-color: #0d6efd;
    color: #fff;
}

button.btn-passe:hover {
    background-color: #0b5ed7;
}

.btn-instagram {
    background-color: #e4405f;
    color: #fff;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

.btn-instagram:hover {
    background-color: #c1355b;
}

#toggleGalleryBtn {
    background-color: #003366;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1.2rem;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* =====================================================
   GALLERY & MODAL 
===================================================== */
#galleryVisible, #galleryHidden {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    flex: 1 1 calc(33.333% - 1rem);
    aspect-ratio: 1/1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.gallery-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

#galleryModal.modal {
    color: #000;
    z-index: 1055;
}

#galleryModal .modal-body {
    padding: 0;
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #f0f8ff;
}

#galleryModal .carousel-inner {
	max-width: 100%;
	max-height: 100%;

}

#galleryModal .carousel-item {
    text-align: center;

padding: 10px 10px 0px 10px;

}

#galleryModal .carousel-item img {
    max-height: 80vh;
    max-width: 100%;
    object-fit: contain;
    display: inline-block;
    background: transparent;
}

#galleryModal .preview-zone {
    width: 100%;
}

#galleryModal .preview-row {
    max-height: 110px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 8px 4px;
    display: flex;
    gap: 0.5rem;
}

#galleryModal .preview-row::-webkit-scrollbar {
    height: 8px;
}

#galleryModal .preview-row::-webkit-scrollbar-thumb {
    background: #aaa;
    border-radius: 10px;
}

#galleryModal .preview-thumb {
    width: 80px;
    height: 80px;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 6px;
    opacity: 0.6;
    transition: 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
}

#galleryModal .preview-thumb:hover {
    opacity: 1;
}

#galleryModal .preview-thumb.active-thumb {
    border-color: #0d6efd;
    opacity: 1;
}

#galleryModal .carousel-control-prev,
#galleryModal .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    opacity: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1060;
}

#galleryModal .carousel-control-prev {
    left: -70px;
}

#galleryModal .carousel-control-next {
    right: -70px;
}

#galleryModal .carousel-control-prev-icon,
#galleryModal .carousel-control-next-icon {
    filter: invert(1) brightness(0);
    width: 40px;
    height: 40px;
}



/* =====================================================
   LISTS
===================================================== */
.list-group-item a {
    word-break: break-word;
}

/* =====================================================
   SCROLL TOP
===================================================== */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: none;
    background-color: #003366;
    color: #fff;
    border: none;
    padding: 5px 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: background 0.3s;
}

.scroll-top:hover {
    background-color: #276fad;
}

/* =====================================================
   BULLES D'ACTIVITES 
===================================================== */
.activites-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-around;
}

.activity-item {
    flex: 1 1 150px;
    max-width: 200px;
    text-align: center;
    cursor: pointer;
}

.activity-bubble {
    width: 100%;
    padding-top: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 2px solid #000;
    background-color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 0.5rem;
}

.activity-bubble img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 70%;
    max-height: 70%;
}

.activity-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.activity-item p {
    margin-top: 0.5rem;
    font-weight: bold;
    font-size: 1rem;
}

/* =====================================================
   MEDIA QUERIES
===================================================== */
@media (max-width: 768px) {
    .apropos-separation {
        display: none;
    }

    .activity-item {
        flex: 1 1 45%;
    }

    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.95);
    }

    .navbar-collapse .nav-link {
        color: #003366;
    }

    .navbar-collapse .nav-link:hover {
        color: #001a33;
    }

    .navbar.scrolled .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.95);
    }

    .navbar-toggler {
        background-color: #ffffff;
        border: 1px solid #003366;
    }
}

@media (max-width: 480px) {
    .activity-item {
        flex: 1 1 90%;
    }

    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.95);
    }

    .navbar-collapse .nav-link {
        color: #003366;
    }

    .navbar-collapse .nav-link:hover {
        color: #001a33;
    }

    .navbar.scrolled .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.95);
    }

    .navbar-toggler {
        background-color: #ffffff;
        border: 1px solid #003366;
    }
}


