/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

header.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: url('dance.jpg') no-repeat center center/cover;
}

header.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

header.hero .content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 5;
    color: white;
    text-align: center;
    pointer-events: none; /* Permet de cliquer à travers ce conteneur pour accéder au carrousel */
}

header.hero .content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

header.hero .content p {
    font-size: 1.5rem;
    color: #f4f4f4;
    margin-bottom: 20px;
}

header.hero .btn {
    background-color: #72685f;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2rem;
}

section {
    padding: 50px;
    text-align: center;
}

#about, #courses, #contact {
    background: #f4f4f4;
    margin: 50px 0;
}

#about {
    position: relative;
    padding: 80px 20px;
    color: #fff;
    background-image: url('Background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

#about > * {
    display: flex;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

#about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.description-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.description-text, .more-text {
    line-height: 1.8;
    margin-bottom: 20px;
}

.toggle-btn {
    display: block;
    margin: 20px auto 0;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #fff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.course-list {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.course-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 200px;
}

form input, form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
}

form button {
    background-color: #ac9b8d;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

/* Image derrière le titre */
.title-background {
    background: rgba(0, 0, 0, 0);
    padding: 30px 20px;
    border-radius: 15px;
    max-width: 90%;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    
}

.title-background h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .title-background h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .title-background {
        padding: 25px 20px;
    }
}

/* Grille de photos pour les stages */
#gallery {
    padding: 50px;
    text-align: center;
}

#gallery h2 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

#gallery h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #e67e22;
}

/* Ajustements pour les écrans mobiles */
@media (max-width: 768px) {
    #gallery h2 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    #gallery h2::after {
        height: 2px;
        bottom: -8px;
    }
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 4/3;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

/* Ajustements pour les écrans mobiles */
@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
        padding: 15px;
    }
    
    #gallery {
        padding: 30px 15px;
    }
}

/* Conteneur pour la description */
.description-container {
    position: relative;
    max-width: 600px;
    margin: auto;
    text-align: center;
}

/* Initialement, seule une partie du texte est visible */
.more-text {
    display: none;
    margin-top: 20px;
}

/* Bouton pour dérouler le texte */
.toggle-btn {
    background-color: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-top: 10px;
}

/* PDF Preview */
.pdf-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 25px;
    padding: 10px;
    background-color: #f4f4f4;
    
    cursor: pointer;
    transition: transform 0.3s ease;
    border-bottom: 1px solid black;
    border-top: 1px solid black;
    width: 40%;
    margin-left: auto;
  margin-right: auto;

}

/* Style de l'image PDF */
.pdf-preview img {
    width: 40px;
    height: auto;
    margin-right: 10px;
    
}

/* Transition de zoom au survol du PDF */
.pdf-preview:hover {
    transform: scale(1.05);
}

/* PDF file: caché au début */
.pdf-file {
    display: none;
    width: 100%;
    height: 500px;
    margin-top: 20px;
    border: none;
}

.info-banner {
    background-color: rgba(87, 83, 83, 0.5);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.info-banner p {
    margin: 8px 0;
    color: #333;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.info-banner .icon-location-pin,
.info-banner .icon-calendar {
    color: #e74c3c;
    font-size: 1.2em;
}

/* Styles pour le carrousel */
.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: background 0.3s ease;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Ajustement du contenu par-dessus le carrousel */
.title-background, .info-banner, h1 {
    pointer-events: auto;
}

/* Styles pour les bulles d'information */
.info-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.info-bubble {
    background: rgba(248, 160, 87, 0.511); /* Orange plus visible */
    border-radius: 50px; /* Forme ovale */
    padding: 15px 30px;
    display: flex;
    align-items: center;
    max-width: 350px;
    width: 100%;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-bubble:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.info-bubble i {
    font-size: 24px;
    margin-right: 15px;
    color: white;
}

.info-content h3 {
    margin: 0 0 5px 0;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.info-content p {
    margin: 0;
    line-height: 1.4;
    color: white;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Ajustements pour les écrans plus petits */
@media (max-width: 768px) {
    .info-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .info-bubble {
        max-width: 100%;
        padding: 12px 25px;
    }
    
    .info-bubble i {
        font-size: 20px;
    }
    
    .info-content h3 {
        font-size: 1rem;
    }
    
    .info-content p {
        font-size: 0.85rem;
    }
}

/* Ajustement du fond du titre */
.title-background {
    background: rgba(0, 0, 0, 0);
    padding: 30px 20px;
    border-radius: 15px;
    max-width: 90%;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* New Info Section Styles */
.info-section {
    background-color: #f8f9fa;
    padding: 40px 20px;
    margin: 0;
}

.info-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    max-width: 500px;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.info-item i {
    font-size: 2rem;
    color: #72685f;
    margin-top: 5px;
}

.info-content h3 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1.4rem;
}

.info-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .info-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .info-item {
        width: 100%;
        max-width: 100%;
    }
}

/* Styles pour la mind map */
.mindmap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.mindmap-item {
    background: #D2B48C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #333;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Taille des cercles */
.mindmap-item.main {
    width: 150px;
    height: 150px;
    background: #8B4513;
    color: white;
    font-size: 1.2rem;
    margin: 20px;
}

.mindmap-item:not(.main) {
    width: 120px;
    height: 120px;
    margin: 10px;
}

.mindmap-item.small {
    width: 100px;
    height: 100px;
    background: #F5DEB3;
    font-size: 0.9rem;
}

/* Animation au survol */
.mindmap-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .mindmap {
        gap: 15px;
    }
    
    .mindmap-item.main {
        width: 120px;
        height: 120px;
        font-size: 1rem;
    }
    
    .mindmap-item:not(.main) {
        width: 100px;
        height: 100px;
    }
    
    .mindmap-item.small {
        width: 80px;
        height: 80px;
        font-size: 0.8rem;
    }
}

.about-description {
    max-width: 800px;
    margin: 40px auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
}
