@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;600;700&display=swap');

/* theme de base*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* fond */
body {
    margin: 0;
    padding: 0;
    background-color: #0069e3;
    min-height: 100vh;
    width: 100%;
    font-family: "Open Sans", sans-serif;
    overflow-y: auto;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin-bottom: 100px;
}

/* navbar */
/* version ordinateur */
@media (min-width: 769px) {
    .sidebar {
        position: fixed;
        border-top-right-radius: 20px;
        top: 0;
        left: 0;
        padding: 0 17px;
        height: 100%;
        width: 78px;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        background: #3391F0;
        transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 99999;
    }

    .sidebar.active {
        width: 300px;
    }

    .logo_content {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        position: relative;
        margin-top: 20px;
        margin-left: 3px;
        transition: width 0.5s ease;
    }

    .logo_content img {
        width: 33px;
        height: 33px;
        color: #fff;
        cursor: pointer;
    }

    .sidebar.active .logo_content {
        width: 100%;
        justify-content: flex-end;
        padding-right: 15px;
        margin-left: 0;
    }

    .sidebar ul {
        margin-top: 60px;
        line-height: 50px;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .sidebar ul li {
        list-style: none;
        height: 55px;
        width: 100%;
        position: relative;
        margin: 0;
        line-height: 55px;
    }

    .sidebar.active .links_name {
        opacity: 1;
        margin-left: 10px;
        font-size: 19px;
        pointer-events: auto;
        transition: all 0.5s ease;
    }

    .sidebar .links_name {
        opacity: 0;
        pointer-events: none;
    }

    .sidebar ul li a {
        color: #fff;
        display: flex;
        align-items: center;
        text-decoration: none;
        border-radius: 12px;
        line-height: 55px;
        white-space: nowrap;
    }

    /* Transition douce */
    .nav_list li a {
        transition: background-color 0.3s;
    }

    /* Appliquer le hover UNIQUEMENT quand la sidebar est ouverte (classe .active) */
    .sidebar.active .nav_list li:hover a {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .sidebar ul li a i {
        height: 50px;
        min-width: 50px;
        line-height: 50px;
        text-align: center;
        margin-left: 0;
        font-size: 17px;
    }

    /* tooltip */
    .sidebar ul li .tooltip {
        position: absolute;
        left: 180px;
        top: 0;
        transform: translate(-50%, -50%);
        border-radius: 6px;
        height: 35px;
        width: 220px;
        background: #fff;
        line-height: 35px;
        text-align: center;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        opacity: 0;
        pointer-events: none;
        display: block;
    }

    .sidebar.active ul li .tooltip {
        display: none;
    }

    .sidebar ul li:hover .tooltip {
        transition: all 0.5s ease;
        top: 50%;
        opacity: 1;
    }
}

/* Version mobile */
@media (max-width: 768px) {
    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 80px !important;
        padding: 0 !important;
        margin: 0 !important;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        background-color: #3391F0;
        transition: height 0.3s ease !important;
        overflow: hidden !important;
        z-index: 1000 !important;
        border-bottom-right-radius: 20px !important;
        border-bottom-left-radius: 20px !important;
        border-top-right-radius: 0;
    }

    .sidebar.active {
        height: 450px !important;
    }

    .logo_content {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 25px !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        padding: 40px 20px !important;
        z-index: 1001 !important;
        transition: none !important;
    }

    .logo_content img {
        width: 30px !important;
        height: 30px !important;
        position: static !important;
        transform: none !important;
        transition: none !important;
    }

    .sidebar ul {
        margin-top: 80px !important;
        padding: 0 !important;
        width: 100% !important;
        overflow-y: auto !important;
    }

    .sidebar ul {
        margin-top: 60px;
        line-height: 50px;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .sidebar ul li {
        list-style: none;
        height: 55px;
        width: 100%;
        position: relative;
        margin: 0;
        line-height: 55px;
    }

    .sidebar.active .links_name {
        opacity: 1;
        margin-left: 10px;
        font-size: 19px;
        pointer-events: auto;
        transition: all 0.5s ease;
    }

    .sidebar .links_name {
        opacity: 0;
        pointer-events: none;
    }

    .sidebar ul li a {
        color: #fff;
        display: flex;
        align-items: center;
        text-decoration: none;
        border-radius: 12px;
        line-height: 55px;
        white-space: nowrap;
    }

    .sidebar ul li a i {
        height: 50px;
        min-width: 50px;
        line-height: 50px;
        text-align: center;
        margin-left: 0;
        font-size: 17px;
    }

    .tooltip {
        display: none !important;
    }
}

/* Pour les très petits écrans */
@media (max-width: 480px) {
    .container {
        padding: 15px;
        margin: 12vh 20px;
    }

    body:not([data-scrolled="true"]) .container {
        margin: 12vh calc(78px + 15px) 0 calc(78px + 15px);
    }

    h1 {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 1rem;
    }
}

/* interieur page d'accueil */

.box {
    width: calc(100% - 94px);
    margin-left: 94px;
    max-width: 900px;
    margin-top: 50px;
    margin-right: 16px;
    border-radius: 12px;
    display: flex;
    background-color: transparent;
    flex-direction: column;
    gap: 2rem;
}


@media (max-width: 768px) {
    .box {
        margin-top: 100px;
        margin-left: 16px;
        margin-right: 16px;
    }
}




h2 {
    margin-bottom: 1rem;
    font-size: 24px;
    font-weight: 400;
    color: #ffffff;
}

.glass-panel {
    border-radius: 12px;
    padding: 2rem;
    background-color: #3391F0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.map-container {
    width: 100%;
    overflow: hidden;
}

.map-container iframe {
    border-radius: calc(var(--radius) - 0.5rem);
    width: 100%;
    height: 400px;
}

.address {
    text-align: center;
    color: #ffffff;
}

.phone a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
    margin-top: 0.5rem;
    display: inline-block;
}

.phone a:hover {
    color: var(--accent);
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.schedule-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.2));
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}


.day {
    font-weight: 400;
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.activity {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #0069e3;
}

.time {
    font-weight: 400;
    color: #0069e3;
}

.schedule-note {
    font-style: italic;
    color: #ffffff;
    font-size: 0.9rem;
    text-align: center;
}


/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .glass-panel {
        padding: 1.5rem;
    }

    .schedule-grid {
        grid-template-columns: 1fr;
    }
}



/* Footer */
/* Styles du footer pour la version ordinateur */

/* Footer styles */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f8f9fa;
    z-index: 1;
    transition: all 0.4s ease;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
    max-height: 60px;
    overflow: hidden;
}

/* Expanded state */
.footer.expanded {
    max-height: 85vh;
    overflow-y: auto;
}

/* Toggle button */
.footer-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 20px;
    cursor: pointer;
    position: relative;
    font-weight: 500;
    color: #ffffff;
    gap: 10px;
    background-color: #0069e3;
}

.footer-toggle span {
    font-size: 16px;
}

#arrow {
    z-index: 1000;
    margin-top: 4px;
    margin-left: 0;
    transition: transform 0.3s ease;
}

#arrow.rotate {
    transform: rotate(90deg);
}

/* Main content container - only visible when expanded */
.footer-content {
    padding: 0 20px 20px;
    max-width: 1200px;
    margin-left: 78px;
    margin: 0 auto;
}

/* Social media section */
.footer-social {
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.footer-social h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #0069e3;
    /* Primary color */
    color: white;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.social-icon:hover {
    background-color: #3391F0;
    /* Secondary color */
    transform: scale(1.1);
}

/* Legal navigation */
.legal-navigation {
    padding: 20px 0;
}

.legal-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.legal-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background-color: #f1f1f1;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.legal-button:hover,
.legal-button.active {
    background-color: #0069e3;
    /* Primary color */
    color: white;
}

.legal-button.active {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.legal-button span {
    font-size: 12px;
}

/* Tab content */
.tab-content-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 10px;
    margin-left: 78px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tab-content {
    animation: fadeIn 0.3s ease;
}

.tab-content h3 {
    margin-bottom: 15px;
    color: #0069e3;
    /* Primary color */
    font-size: 18px;
}

.tab-content p {
    margin-bottom: 15px;
    line-height: 1.5;
    color: #555;
}

.tab-content ul {
    list-style: none;
    padding-left: 0;
}

.tab-content li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #555;
}

.tab-content i {
    margin-top: 3px;
    color: #3391F0;
    /* Secondary color */
}

/* Credits */
.credits {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    font-size: 12px;
    color: #888;
}

.credits p {
    margin: 5px 0;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .legal-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .footer.expanded {
        max-height: 90vh;
    }
}