/**
 * Styles principaux du site Movimento à Vida
 * Formação nas Novas Constelações
 */

/* Variables globales */
:root {
    --primary-color: #9b7cb5;
    --secondary-color: #1dbfb3;
    --accent-color: #ff9a8d;
    --light-color: #fef8e7;
    --dark-color: #443266;
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #f8f9fa;
    position: relative;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--dark-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

/* Classes utilitaires */
.bg-primary-custom {
    background-color: var(--primary-color);
    color: white;
}

.bg-secondary-custom {
    background-color: var(--secondary-color);
    color: white;
}

.bg-accent-custom {
    background-color: var(--accent-color);
}

.bg-light-custom {
    background-color: var(--light-color);
}

.bg-dark-custom {
    background-color: var(--dark-color);
    color: white;
}

.text-primary-custom {
    color: var(--primary-color);
}

.text-secondary-custom {
    color: var(--secondary-color);
}

.text-accent-custom {
    color: var(--accent-color);
}

.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transition: all var(--transition-speed) ease;
}

.btn-primary-custom:hover {
    background-color: var(--dark-color);
    border-color: var(--dark-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary-custom {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transition: all var(--transition-speed) ease;
}

.btn-secondary-custom:hover {
    background-color: #18a398;
    border-color: #18a398;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-accent-custom {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transition: all var(--transition-speed) ease;
}

.btn-accent-custom:hover {
    background-color: #ff8573;
    border-color: #ff8573;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.navbar {
    transition: all var(--transition-speed) ease;
    padding: 15px 0;
}

.navbar-brand img {
    height: 40px;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all var(--transition-speed) ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-dark .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    padding: 10px 0;
    background-color: var(--primary-color) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Section Hero */
.hero-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

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

.circle-decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.2;
    z-index: 0;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background-color: white;
    bottom: -100px;
    left: -100px;
}

.circle-2 {
    width: 200px;
    height: 200px;
    background-color: var(--accent-color);
    top: -50px;
    right: 10%;
}

.shape-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.shape-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

.shape-divider .shape-fill {
    fill: var(--light-color);
}

/* Cards et sections */
.card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed) ease;
    border: none;
    margin-bottom: 30px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    padding: 20px;
}

.card::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: all var(--transition-speed) ease;
    opacity: 0;
}

.card:hover::before {
    opacity: 1;
}

.divider {
    display: block;
    height: 5px;
    width: 100px;
    margin-bottom: 30px;
    background-color: var(--secondary-color);
}

/* Facilitateurs */
.facilitator-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) ease;
}

.facilitator-img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Modules */
.module-card {
    border-left: 5px solid var(--primary-color);
    margin-bottom: 20px;
    transition: all var(--transition-speed) ease;
}

.module-card:hover {
    border-left-color: var(--accent-color);
    transform: translateX(5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* Témoignages */
.testimonial-card {
    height: 100%;
    transition: all var(--transition-speed) ease;
    border-radius: 15px;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
}

.testimonial-text {
    font-style: italic;
    position: relative;
}

.testimonial-text::before {
    content: '\201C';
    font-size: 60px;
    font-family: Georgia, serif;
    color: rgba(155, 124, 181, 0.2);
    position: absolute;
    left: -20px;
    top: -20px;
}

.testimonial-rating .fas {
    color: #ffc107;
}

/* Compteur à rebours */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    min-width: 100px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-top: 5px;
}

/* Bouton d'inscription */
.btn-inscription {
    display: block;
    width: 100%;
    padding: 20px;
    font-size: 24px;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    background-color: var(--dark-color);
    color: white;
    border: none;
    text-align: center;
    text-decoration: none;
    margin: 40px 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.btn-inscription:hover {
    background-color: var(--accent-color);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: white;
}

.btn-inscription::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.btn-inscription:hover::before {
    left: 100%;
}

/* Formulaires */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all var(--transition-speed) ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(155, 124, 181, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

footer a {
    color: white;
    transition: all var(--transition-speed) ease;
}

footer a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.logo-footer {
    max-width: 150px;
    margin-bottom: 20px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.2rem;
    margin: 0 5px;
    transition: all var(--transition-speed) ease;
}

.social-icon:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

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

.animate-fadeIn {
    animation: fadeIn 1s ease forwards;
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fadeInDown {
    animation: fadeInDown 0.8s ease forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* Styles pour l'animation du menu */

/* Logo plus grand dans la navigation */
.logo-nav {
    height: 55px;
    width: auto;
    transition: all 0.3s ease;
}

/* Ajustement du logo quand la navbar est scrollée */
.navbar.scrolled .logo-nav {
    height: 45px;
}

/* Conteneur pour le menu avec position relative pour l'indicateur */
.nav-menu-container {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 5px; /* Espace pour l'indicateur */
}

/* Style des liens de navigation */
.navbar-dark .navbar-nav .nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px 5px 0 0; /* Coins arrondis seulement en haut */
    transition: all var(--transition-speed) ease;
    z-index: 2; /* Pour être au-dessus de l'indicateur */
}

/* Indicateur de menu actif */
.nav-indicator {
    position: absolute;
    bottom: 0;
    height: 4px;
    width: 0; /* Commencer avec une largeur de 0 */
    background-color: var(--accent-color); /* Couleur d'accent (rose) */
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Animation fluide avec rebond */
    z-index: 1;
    opacity: 0;
    left: 0; /* Position initiale à gauche */
}

/* Style adapté des liens de navigation quand actifs */
.navbar-dark .navbar-nav .nav-link.active:not(.btn) {
    color: white;
    font-weight: 600;
}

/* Responsive pour la barre de navigation */
@media (max-width: 991.98px) {
    .logo-nav {
        height: 45px;
    }
    
    .navbar-dark .navbar-nav .nav-link {
        margin-bottom: 5px;
        border-radius: 5px; /* Coins arrondis partout sur mobile */
    }
    
    .navbar-collapse {
        background-color: var(--primary-color);
        border-radius: 10px;
        padding: 15px;
        margin-top: 10px;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .nav-indicator {
        display: none; /* Masquer l'indicateur sur mobile */
    }
    
    /* Style actif sur mobile */
    .navbar-dark .navbar-nav .nav-link.active {
        background-color: rgba(255, 255, 255, 0.2);
        border-left: 4px solid var(--accent-color);
        padding-left: 11px; /* Compenser la bordure */
    }
}