/* ==========================================================================
   1. GENERAL & ROOT STYLES
   ========================================================================== */
@font-face {
    font-family: 'Herculanum';
    src: url('../fonts/HerculanumLTStd.woff2') format('woff2'),
         url('../fonts/HerculanumLTStd.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kalam';
    src: url('../fonts/Kalam-Regular.woff2') format('woff2'),
         url('../fonts/Kalam-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #8B5A3C;
    --secondary: #E6B89C;
    --accent: #FF4D01;
    --light: #F7F3E9;
    --dark: #2C1810;
    --gradient: linear-gradient(135deg, #E6B89C 0%, #FF4D01 100%);
    --shadow: 0 10px 30px rgba(139, 90, 60, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.content-centered {
    text-align: center;
}


/* ==========================================================================
   2. NAVIGATION
   ========================================================================== */
#navbar {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  border-radius: 50px;
  padding: 0.5rem 1rem;
  background: rgba(33, 37, 41, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  max-width: 800px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center; /* Centrer le menu */
    align-items: center;
    padding: 0 2rem;
    position: relative; /* Pour positionner le hamburger */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--light);
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0.2rem;
    overflow: hidden;
    font-family: 'Herculanum', sans-serif;
    font-size: 1.1rem;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent);
}


/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--gradient);
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    text-align: center;
}

.hero-stack {
    display: grid;
    place-items: center;
    width: 60vw;
    max-width: 80vh; 
}

.hero-stack > * {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    width: 100%; 
    border-radius: 50%;
    object-fit: cover;
}

.hero-title {
    font-family: 'Herculanum', sans-serif;
    font-size: 5rem;
    color: var(--light);
    text-shadow: 0 5px 20px rgba(0, 0, 0, 1);
    z-index: 2;
}

.hero-subtitle {
    font-family: 'Kalam', sans-serif;
    font-size: 2rem;
    color: var(--light);
    margin-top: 2rem;
}

.hero-subtitle span:not(:last-child)::after {
    content: " • ";
    white-space: pre;
}

.hero-location {
    font-size: 1.2rem;
    color: var(--light);
    opacity: 0.9;
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}


/* ==========================================================================
   4. GENERAL SECTION & CONTENT STYLES
   ========================================================================== */
.section {
    padding: 3rem 0;
    scroll-margin-top: 20px;
}

.section-title {
    font-family: 'Herculanum', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.text-content h3 {
    font-family: 'Kalam', sans-serif;
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.intro-text {
    font-size: 1.2rem;
    color: var(--accent);
    font-style: italic;
    margin-bottom: 1.5rem;
}


/* ==========================================================================
   5. SPECIFIC SECTIONS
   ========================================================================== */

/* La Voie du Rythme */
.organic-shape {
    width: 300px;
    height: 300px;
    background: var(--gradient);
    border-radius: 50% 40% 60% 30%;
    margin: 0 auto;
    animation: morph 8s ease-in-out infinite;
    position: relative;
}

.organic-shape-img {
    width: 70%;
    height: 70%;
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.contact-info {
    display: flex;
    align-items: end;
    gap: 0.5rem;
}

.contact-info a {
    height: 40px;
    display: flex;
    align-items: end;
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--accent);
}

/* ateliers de Transformation */
.ateliers-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
}

.ateliers-note{
    margin-top:4rem;
    text-align: center;
}

/* Stages */
.stage-intro-content {
    max-width: 800px;
    margin: 0 auto 4rem auto;
    text-align: center;
    font-size: 1.1rem;
}

#prochain-stage {
    padding-top: 2rem;
    position: relative;
}

#prochain-stage::before {
    content: '';
    position: absolute;
    background: var(--gradient);
    border-radius: 60% 30% 50% 40%;
    animation: morph 8s ease-in-out infinite;
    z-index: -1;
    top: -4rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    height: calc(100% + 4rem);
}

.subsection-title {
    font-family: 'Kalam', sans-serif;
    font-size: 2.8rem;
    color: var(--light);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}


.stage-content {
    max-width: 800px;
    margin: 0 auto;
    background: transparent;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    color: var(--light);
    font-size: 1.1rem;
}

.stage-info h4 {
    font-family: 'Herculanum', sans-serif;
    font-size: 1.8rem;
    color: var(--light);
    margin-bottom: 0.5rem;
}

.stage-dates {
    font-family: 'Kalam', sans-serif;
    font-size: 1.5rem;
    color: var(--light);
    margin: 1rem 0;
}

.stage-details ul {
    list-style: none;
    margin: 2rem 0;
}

.stage-details li, .stage-details strong{
    margin: 0.5rem 0;
    color: var(--dark);
}

/* Calendrier */
.calendar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.calendar-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-item .atelier-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-top: 0;
}

.info-item-content p {
    margin: 0;
}

.info-item-content p:first-of-type {
    font-family: 'Kalam', sans-serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    height: 450px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}




/* ==========================================================================
   6. COMPONENTS
   ========================================================================== */

/* atelier Card */
.atelier-card {
    flex: 0 0 calc(33% - 1.33rem);
    max-width: 350px;
    border: 10px solid transparent;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    background: linear-gradient(white, white) padding-box, 
                var(--gradient) border-box;
}

.atelier-card:hover {
    transform: translateY(-10px);
}

.atelier-card.active {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 40px rgba(155, 126, 217, 0.2);
}

.atelier-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.atelier-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.atelier-card h3 {
    font-family: 'Kalam', sans-serif;
    color: var(--dark);
    margin-bottom: 1rem;
}

/* Details Toggle & Content */
.details-toggle-container {
    text-align: right;
    margin-top: 1.5rem;
}

.details-toggle {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.details-toggle:hover {
    color: var(--primary);
}

.details-content {
    height: 0;
    overflow: hidden;
    background: rgba(139, 90, 60, 0.05);
    border-radius: 10px;
    margin-top: 2rem;
}

.details-content-inner {
    opacity: 0;
    padding: 1.5rem;
    background-color: var(--light);
}

.atelier-card .details-content {
    margin-top: 1rem;
}

#ateliers-details-wrapper {
    text-align: left;
}

.details-panel {
    display: none;
}

.details-panel h4 {
    font-family: 'Herculanum', sans-serif;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}


/* ==========================================================================
   7. ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes morph {
    0%, 100% { border-radius: 50% 40% 60% 30%; }
    50% { border-radius: 30% 60% 40% 50%; }
}

/* Mobile Menu - /* Mobile Menu - Hamburger */
.hamburger {
    display: none;
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1100;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    border-radius: 4px;
}

.hamburger .bar {
    width: 22px;
    height: 2px;
    background-color: var(--dark);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
    margin: 2px 0;
}

/* Animation vers croix */
.hamburger.is-open .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.hamburger.is-open .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.is-open .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.hamburger:focus {
    outline: none;
}

.hamburger .bar {
    width: 100%;
    height: 3px;
    background-color: var(--dark);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
}

/* Mobile Menu - Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--gradient);
    backdrop-filter: blur(10px);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.mobile-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    text-align: center;
}

.mobile-nav-menu li {
    margin: 1.5rem 0;
}

.mobile-nav-menu a {
    text-decoration: none;
    color: var(--light);
    font-family: 'Herculanum', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.mobile-nav-menu a:hover {
    color: var(--accent);
}

.close-menu {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    background: none;
    border: none;
    color: var(--dark);
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

/* ==========================================================================
   8. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    .hero-subtitle { 
        font-size: 1.5rem;
        margin-top: 1.5rem;
    }
    .hero-stack {
        width: 100vw;
    }
    .hero-logo { width: 100% } 
    .content-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }

    /* Afficher le hamburger et masquer le menu desktop */
    .hamburger { display: flex; } 
    #navbar    { display: none;  } 

    .nav-menu {
        display: none;
    }

    /* Ajustements généraux pour mobile */
    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .subsection-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 1.4rem;
    }

    .hero-subtitle span:not(:last-child)::after {
        content: "";
    }

    .image-placeholder {
        grid-row: 1;
    }

    .text-content {
        text-align: center;
        grid-row: 2;
    }

    .stage-content {
        padding: 2rem;
    }

    .organic-shape {
        width: 200px;
        height: 200px;
        margin-top: 2rem;
    }

    .atelier-card {
        padding: 1.5rem;
    }

    .ateliers-grid {
        flex-direction: column;
        align-items: center;
    }

    .calendar-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}