/* style.css */

/* Configuration des polices */
body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    background-color: #f8faf9;
}

h1, h2, h3, .font-organic {
    font-family: 'Quicksand', sans-serif;
}

/* Couleurs personnalisées */
.bg-sage { background-color: #88a48b; }
.text-sage { color: #88a48b; }
.bg-light-green { background-color: #a7c957; }
.bg-earth { background-color: #bc8a5f; }
.bg-sky-muted { background-color: #a2d2ff; }

/* Navigation */
.nav-pill {
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

/* Animation Navbar au scroll */
.nav-scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background-color: rgba(255, 255, 255, 0.95);
    width: 100% !important;
    max-width: 100% !important;
    top: 0 !important;
    border-radius: 0 !important;
}

.nav-link-anim {
    position: relative;
}

.nav-link-anim::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #88a48b;
    transition: width 0.3s ease;
}

.nav-link-anim:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-gradient {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.2)), url('./images/accueil1.png');
    background-size: cover;
    background-position: center;
}

.rounded-organic {
    border-radius: 3rem;
}

/* Transitions de pages */
.section-active { display: block; animation: fadeIn 0.5s ease-out; }
.section-hidden { display: none; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Styles Calendrier */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
    min-height: 100px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.calendar-day:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

/* Animation pour le flash info */
.ping-slow {
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Modification : Partenaires Statiques et Centrés */
.partners-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 2rem 1rem;
}


/* Bouton remonter en haut */
#back-to-top {
    pointer-events: none;
    z-index: 999;
}

#back-to-top.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    cursor: pointer;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

#back-to-top.visible:hover {
    animation: float 2s ease-in-out infinite;
}

/* Bannière Cookies */
#cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.text-light-green { color: #a7c957; }
.text-earth { color: #bc8a5f; }

/* Bordures custom */
.border-sage { border-color: #88a48b; }
.border-earth { border-color: #bc8a5f; }
.border-light-green { border-color: #a7c957; }
.border-sage\/20 { border-color: rgba(136, 164, 139, 0.2); }
.border-sage\/10 { border-color: rgba(136, 164, 139, 0.1); }

/* Fonds avec opacité custom */
.bg-sage\/5 { background-color: rgba(136, 164, 139, 0.05); }
.bg-sage\/10 { background-color: rgba(136, 164, 139, 0.1); }
.bg-earth\/10 { background-color: rgba(188, 138, 95, 0.1); }
.bg-light-green\/10 { background-color: rgba(167, 201, 87, 0.1); }

/* Hover custom */
.hover\:bg-earth\/90:hover { background-color: rgba(188, 138, 95, 0.9); }
.hover\:text-sage\/80:hover { color: rgba(136, 164, 139, 0.8); }

/* ==============================
   MENU HAMBURGER MOBILE
   ============================== */
#hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    position: relative;
    z-index: 60;
    background: none;
    border: none;
    padding: 0;
}

#hamburger-btn.active span {
    background-color: #88a48b;
}

#hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #88a48b;
    border-radius: 2px;
    transition: all 0.3s ease;
}

#hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}
#hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

#mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 45;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.8rem;
    padding-top: 4rem;
    padding-bottom: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#mobile-menu.open {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

#mobile-menu a {
    font-size: 1.4rem;
    font-weight: 600;
    color: #555;
    transition: color 0.2s ease;
    text-decoration: none;
}

#mobile-menu a:hover,
#mobile-menu a.text-sage {
    color: #88a48b;
}

/* ==============================
   RESPONSIVE GENERAL
   ============================== */
@media (max-width: 767px) {
    /* Hamburger visible sur mobile */
    #hamburger-btn {
        display: flex;
    }

    /* Cacher les liens desktop et le bouton FB */
    .nav-links-desktop,
    .nav-fb-desktop {
        display: none !important;
    }

    /* Nav : compacte, juste logo + hamburger */
    #main-nav {
        width: 90%;
        top: 0.75rem;
    }

    #nav-container {
        padding: 0.5rem 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Logo fixe sur mobile */
    #nav-container > .flex-shrink-0 {
        width: auto;
    }

    /* Nav scrolled mobile */
    .nav-scrolled #nav-container {
        padding: 0.5rem 1rem;
    }

    /* Hero : titres plus petits */
    .hero-gradient h1 {
        font-size: 2.2rem !important;
    }

    /* Calendrier : grille adaptée */
    .calendar-grid {
        grid-template-columns: repeat(7, 1fr);
        font-size: 0.7rem;
    }

    .calendar-day {
        min-height: 50px;
        padding: 2px;
    }

    /* Images hauteurs fixes réduites */
    .h-\[500px\] {
        height: 300px;
    }

    /* Partenaires : empilés verticalement */
    .partners-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Footer : liens empilés */
    footer .flex.justify-center.gap-6 {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    /* Bouton adhésion : texte plus petit */
    .text-2xl.tracking-wide {
        font-size: 1.1rem;
    }

    /* Bulles organiques Activités */
    .round-bubble {
        min-height: auto;
        padding: 1.5rem 1.2rem;
    }

    /* Section contact arrondie */
    .rounded-\[3rem\] {
        border-radius: 1.5rem;
    }

    /* Iframe calendrier */
    iframe[title="Calendar"] {
        min-height: 500px !important;
    }
}

@media (max-width: 480px) {
    /* Très petit écran */
    .hero-gradient h1 {
        font-size: 1.8rem !important;
    }

    .hero-gradient p {
        font-size: 0.95rem !important;
    }

    .text-4xl {
        font-size: 1.75rem;
    }

    .text-3xl {
        font-size: 1.4rem;
    }

    .py-24 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .py-36 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .py-28 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    /* Cookie banner pleine largeur */
    #cookie-banner {
        left: 0.5rem;
        bottom: 0.5rem;
        width: calc(100% - 1rem);
        max-width: none;
    }
}