/* styles.css */

/* Réinitialisation de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Polices */
body, h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
}

h1, h2, h3 {
    font-family: 'Cinzel', serif;
}

/* Corps */
body {
    background: #1a1a1a;
    color: #ffffff;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Loader */
#loader {
    position: fixed;
    inset: 0;
    background: #1a1a1a;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#loader p {
    margin-top: 0.5rem;
    color: #ffffff;
    font-size: 1rem;
}

#loader .animate-spin {
    border: 4px solid #FFD700;
    border-top-color: transparent;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Barre latérale */
.sidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    height: 100%;
    width: 85px;
    background: #1a1a1a;
    padding: 1rem;
    transition: width 0.4s ease-in-out;
    z-index: 1000;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.sidebar.active {
    width: 260px;
}

.sidebar-header {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
}

.sidebar-header img {
    width: 50px;
    border-radius: 50%;
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.8));
    display: block !important;
    opacity: 1 !important;
}

.sidebar-header h2 {
    color: #FFD700;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    display: block !important;
    opacity: 1 !important;
}

.sidebar-links {
    list-style: none;
    margin-top: 1.25rem;
    height: 60%;
    overflow-y: auto;
    display: block !important;
}

.scrollbar-none {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-none::-webkit-scrollbar {
    display: none;
}

.sidebar-links li {
    margin-bottom: 0.5rem;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #ffffff;
    font-weight: 500;
    white-space: nowrap;
    padding: 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.sidebar-links a:hover {
    color: #FFD700;
    background: rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.sidebar-links i {
    font-size: 1.25rem;
    min-width: 24px;
    text-align: center;
}

.social-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding: 1rem 0;
}

.nav-social {
    color: #FFD700;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.nav-social:hover {
    color: #ffaa00;
}

/* Bouton Hamburger */
.hamburger {
    display: none;
    position: fixed;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 1001;
    background: #FFD700;
    color: #000000;
    padding: 0.5rem;
    border-radius: 0.25rem;
    border: none;
    cursor: pointer;
}

.hamburger i {
    font-size: 1.25rem;
}

/* Contenu Principal */
main {
    margin-left: 85px;
    min-height: 100vh;
    position: relative;
    z-index: 10;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Sections Générales */
.section {
    padding: 8rem 1rem;
    background: #1a1a1a;
    position: relative;
    z-index: 10;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    margin-bottom: 4rem;
    display: block !important;
    opacity: 1 !important;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3.125rem;
    }
}

.highlight {
    position: relative;
    color: #FFD700;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 5px;
    background: #FFD700;
    transition: width 0.5s ease;
}

.highlight.highlighted::after {
    width: 100%;
}

/* Section Héros */
.hero {
    min-height: 100vh;
    display: flex !important;
    align-items: center;
    padding: 6rem 1rem;
    opacity: 1 !important;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
    display: block !important;
    opacity: 1 !important;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-tagline {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 1.25rem 0 2rem;
    display: block !important;
    opacity: 1 !important;
}

@media (min-width: 768px) {
    .hero-tagline {
        font-size: 1.5rem;
    }
}

.hero-logo {
    max-width: 350px;
    margin: 0 auto;
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.8));
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.cta-button {
    display: inline-block !important;
    background: #FFD700;
    color: #000000;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 1 !important;
}

.cta-button:hover {
    background: #ffaa00;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    transform: translateY(-0.25rem);
}

/* Section À Propos */
#about p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    display: block !important;
    opacity: 1 !important;
}

#about .italic {
    font-style: italic;
    color: #aaaaaa;
    font-size: 0.875rem;
}

/* Section Valeurs */
#valeurs {
    background: #121212;
}

#valeurs .grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    #valeurs .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.bg-bmf-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 215, 0, 0.6);
    color: rgba(255, 255, 255, 0.9);
    display: block !important;
    opacity: 1 !important;
}

.bg-bmf-card h3 {
    color: #FFD700;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.bg-bmf-card i {
    color: #FFD700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Section Activités */
#activites {
    background: #121212;
}

#activites .grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    #activites .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Section Territoire */
#zones .grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    #zones .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Section Destin */
#destin {
    background: #1f1f1f;
}

#destin .grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    #destin .grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

#destin .bg-bmf-card {
    padding: 2rem;
    border-radius: 0.75rem;
}

#destin h3 {
    color: #FFD700;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

#destin p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
}

#destin .italic {
    font-style: italic;
    color: #aaaaaa;
    font-size: 0.875rem;
}

@keyframes pulse-circle {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

#destin .relative {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.15);
    animation: pulse-circle 3s infinite;
}

#destin .absolute {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 200px;
    height: 200px;
    background: rgba(255, 215, 0, 0.3);
    border-radius: 50%;
}

/* Section Pré-requis */
#prerequis {
    background: #1a1a1a;
}

#prerequis .grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    #prerequis .grid {
        grid-template-columns: 1fr 1fr;
    }
}

#prerequis .bg-bmf-card {
    padding: 2rem;
    border-radius: 0.75rem;
}

#prerequis h3 {
    color: #FFD700;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

#prerequis ul {
    color: rgba(255, 255, 255, 0.9);
    list-style: none;
    space-y: 0.75rem;
}

#prerequis li {
    font-size: 1rem;
}

/* Section Règles */
#regles {
    background: #1f1f1f;
}

#regles .grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    #regles .grid {
        grid-template-columns: 1fr 1fr;
    }
}

#regles .bg-bmf-card {
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#regles h3 {
    color: #FFD700;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

#regles ul {
    color: rgba(255, 255, 255, 0.9);
    list-style: none;
    space-y: 0.75rem;
}

#regles li {
    font-size: 1.125rem;
}

/* Section Contact */
#contact .text-center {
    text-align: center;
}

/* Pied de Page */
footer {
    padding: 4rem 1rem;
    text-align: center;
    background: #1a1a1a;
    position: relative;
    z-index: 10;
}

.footer-logo {
    margin-bottom: 1rem;
    width: 60px;
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.8));
    display: block !important;
    opacity: 1 !important;
}

footer p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

footer .social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

/* CTA Fixe */
.sticky-cta {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    background: #FFD700;
    color: #000000;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sticky-cta:hover {
    background: #ffaa00;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    transform: translateY(-0.25rem);
}

/* Canvas Three.js */
#three-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1 !important;
}

/* Responsivité */
@media (max-width: 768px) {
    .sidebar {
        width: 0;
        overflow: hidden;
    }

    .sidebar.active {
        width: 260px;
    }

    main {
        margin-left: 0;
    }

    .hamburger {
        display: block !important;
    }

    .text-responsive {
        text-align: center !important;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

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

@media (min-width: 769px) {
    .text-responsive {
        text-align: left !important;
    }
}