/* === Général === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Importation de polices modernes via Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Raleway:wght@400;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    background: linear-gradient(135deg, #2b7379, #67a9a9); /* Bleu-vert profond à moyen */
    color: #ffffff; /* Blanc pour contraste */
    position: relative;
}

h1, h2, h3 {
    font-family: 'Raleway', sans-serif;
    color: #edd09f; /* Beige doré */
    margin-bottom: 1.5rem;
}

/* === Barre de progression === */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: #edd09f; /* Beige doré */
    z-index: 2000;
    transition: width 0.3s ease-in-out;
}

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(43, 115, 121, 0.95); /* Bleu-vert profond semi-transparent */
    padding: 1rem 2rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid #edd09f; /* Bordure beige doré */
    transition: padding 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
    padding: 0.8rem 1.5rem;
    background: #2b7379; /* Bleu-vert profond plein */
}

.logo-img {
    height: 55px;
    animation: fly 2.5s infinite ease-in-out, softHighlight 4s infinite ease-in-out;
    transition: transform 0.4s ease;
}

.logo-img:hover {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    list-style: none;
    transition: transform 0.5s ease-in-out;
}

.nav-links li {
    margin-left: 1.2rem;
}

.nav-links a {
    color: #ffffff; /* Blanc pour contraste */
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.4rem 0.8rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    background: #edd09f;
    bottom: -3px;
    left: 0;
    transition: width 0.4s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #67a9a9;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: #ffffff;
    margin: 3px 0;
    transition: all 0.4s ease;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* === Hero Section === */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: url('image/fond.jpg') no-repeat center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    z-index: 2;
    padding: 0 1.5rem;
}

.hero-logo {
    width: 520px; /* Agrandi */
    max-width: 90%;
    height: auto;
    margin: 0 auto 1.5rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.4);
}

.hero p {
    font-size: 1.3rem;
    color: #ffffff; /* Blanc */
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.cta {
    display: inline-block;
    padding: 1.5rem 3.5rem; /* Plus visible */
    background: #2b7379; /* Bleu-vert profond */
    color: #ffffff; /* Blanc pour contraste */
    text-decoration: none;
    border-radius: 22px;
    font-weight: 700;
    font-size: 1.4rem; /* Plus visible */
    box-shadow: 0 3px 10px rgba(43, 115, 121, 0.5);
    transition: all 0.4s ease;
}

.cta:hover {
    transform: translateY(-5px) scale(1.05);
    background: #edd09f; /* Beige doré */
    color: #2b7379;
    box-shadow: 0 5px 15px rgba(237, 208, 159, 0.5);
}

.cta.secondary {
    background: transparent;
    border: 2px solid #2b7379;
    color: #ffffff;
}

.cta.secondary:hover {
    background: #2b7379;
    color: #ffffff;
}

.cta.small {
    padding: 0.7rem 1.8rem;
    font-size: 1rem;
}

/* === Sections === */
.section {
    padding: 4.5rem 1rem;
    text-align: center;
    background: #67a9a9; /* Bleu-vert moyen */
    margin: 1.8rem auto;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    position: relative;
}

.section h2 {
    font-size: 2.6rem;
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: #edd09f;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.4s ease;
}

.section h2:hover::after {
    width: 60px;
}

.section p {
    max-width: 750px;
    margin: 0 auto 1.2rem;
    font-size: 1.2rem;
    color: #ffffff; /* Blanc */
}

/* === Événements === */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
    margin-top: 2rem;
    justify-items: center;
}

.event-card {
    background: #67a9a9; /* Bleu-vert moyen */
    padding: 1.5rem;
    border-radius: 10px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    max-width: 340px; /* Ajusté pour présence */
    width: 100%;
}

.event-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.event-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: #edd09f;
}

.event-card p {
    font-size: 1rem;
    color: #ffffff; /* Blanc */
}

/* === Bioénergéticien === */
.bio-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.bio-img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #edd09f;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.bio-img:hover {
    transform: scale(1.05);
}

.bio-text {
    max-width: 450px;
    text-align: left;
    color: #ffffff; /* Blanc */
}

/* === FAQ === */
.faq-container {
    max-width: 650px;
    margin: 2rem auto;
    text-align: left;
}

.faq-item {
    margin-bottom: 1rem;
}

.faq-item input[type="checkbox"] {
    display: none;
}

.faq-item label {
    display: block;
    padding: 1rem;
    background: #2b7379;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff; /* Blanc pour contraste */
    transition: background 0.3s ease;
}

.faq-item label:hover {
    background: #67a9a9;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    background: #67a9a9;
    padding: 0 1rem;
    border-radius: 0 0 8px 8px;
    transition: max-height 0.5s ease, padding 0.3s ease;
    color: #ffffff; /* Blanc */
}

.faq-item input[type="checkbox"]:checked ~ .faq-content {
    max-height: 200px;
    padding: 1rem;
}

/* === Contact === */
.contact-info {
    max-width: 650px;
    margin: 2rem auto;
    text-align: left;
    background: #67a9a9;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.contact-info a {
    color: #ffffff; /* Blanc */
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #edd09f;
}

.social-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 1.2rem 0;
}

.social-links a {
    color: #ffffff; /* Blanc */
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #edd09f;
}

/* === Footer === */
footer {
    background: #2b7379; /* Bleu-vert profond */
    padding: 2rem 1rem;
    text-align: center;
    color: #edd09f;
    font-size: 1rem;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.15);
}

footer a {
    color: #edd09f;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #67a9a9;
}

.legal {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #ffffff; /* Blanc */
}

.contact-info i {
    margin-right: 0.5rem;
    color: #edd09f;
}

/* === Bouton retour en haut === */
.back-button {
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: #2b7379;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.back-button.show {
    opacity: 1;
    visibility: visible;
}

.back-button:hover {
    transform: scale(1.1);
    background: #edd09f;
}

.back-button::before {
    content: "Top";
    color: #edd09f;
    font-size: 0.9rem;
    font-weight: bold;
}

/* === Responsive Design === */
@media (max-width: 1024px) {
    .navbar {
        padding: 0.9rem 1.5rem;
    }

    .logo-img {
        height: 50px;
    }

    .nav-links li {
        margin-left: 1rem;
    }

    .hero h1 {
        font-size: 2.6rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .section {
        padding: 3.5rem 1rem;
    }

    .section h2 {
        font-size: 2.3rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 1rem;
    }

    .logo-img {
        height: 45px;
    }

    .nav-links {
        position: fixed;
        top: 54px;
        left: 0;
        width: 100%;
        background: #2b7379;
        flex-direction: column;
        padding: 1rem 0;
        height: calc(100vh - 54px);
        transform: translateX(-100%);
        transition: transform 0.5s ease-in-out;
    }

    .section-img {
        width: 95%;
        max-width: 100%;
        height: auto;
        margin: 1.5rem auto;
        display: block;
        border-radius: 10px;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        margin: 0.8rem 0;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 0.3rem 0.6rem;
    }

    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }

    .section {
        padding: 3rem 0.8rem;
        margin: 1.5rem auto;
    }

    .section h2 {
        font-size: 2rem;
    }

    .section p {
        font-size: 1rem;
    }

    .parallax {
        background-attachment: scroll;
    }

    .bio-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .bio-img {
        width: 180px;
        height: 180px;
    }

    .event-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .event-card {
        padding: 1.2rem;
        max-width: 300px;
    }

    .map-container iframe {
        height: 180px;
    }

    footer {
        padding: 1.5rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.6rem 0.8rem;
    }

    .logo-img {
        height: 40px;
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 0.2rem 0.4rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .cta {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .section h2 {
        font-size: 1.7rem;
    }

    .section p {
        font-size: 0.9rem;
    }

    .bio-img {
        width: 150px;
        height: 150px;
    }

    .event-card h3 {
        font-size: 1.5rem;
    }

    .event-card p {
        font-size: 0.85rem;
    }

    .map-container iframe {
        height: 160px;
    }

    footer {
        font-size: 0.85rem;
    }
}

/* === Animations === */
@keyframes fly {
    0% { transform: translateY(0) rotate(-2deg); }
    25% { transform: translateY(-8px) rotate(2deg); }
    50% { transform: translateY(-12px) rotate(0deg); }
    75% { transform: translateY(-8px) rotate(-2deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

@keyframes softHighlight {
    0% { box-shadow: 0 0 3px rgba(237, 208, 159, 0.1); }
    50% { box-shadow: 0 0 6px rgba(237, 208, 159, 0.3); }
    100% { box-shadow: 0 0 3px rgba(237, 208, 159, 0.1); }
}
