/* animations.css - Animations complètes pour MoroccoNaut */

/* Basic fade animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
  
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
  
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
  
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
  
/* Bubble animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}
  
@keyframes floatSideways {
    0% {
        transform: translateX(0px);
    }
    50% {
        transform: translateX(5px);
    }
    100% {
        transform: translateX(0px);
    }
}
  
/* Apply bubble animations to make them move like real bubbles */
.bubble.bubble-lg {
    animation: float 4s ease-in-out infinite;
}
  
.bubble.bubble-md {
    animation: float 5s ease-in-out infinite, floatSideways 7s ease-in-out infinite;
}
  
.bubble.bubble-sm {
    animation: float 6s ease-in-out infinite;
}
  
/* Stagger bubble animations */
.bubble:nth-child(1) {
    animation-delay: 0s;
}
  
.bubble:nth-child(2) {
    animation-delay: 0.7s;
}
  
.bubble:nth-child(3) {
    animation-delay: 1.4s;
}
  
.bubble:nth-child(4) {
    animation-delay: 2.1s;
}
  
.bubble:nth-child(5) {
    animation-delay: 2.8s;
}
  
/* Step animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
}
  
.step-circle:hover, .step-h:hover .step-circle {
    animation: pulse 1.5s infinite;
}
  
/* Accordion animations */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 300px;
        transform: translateY(0);
    }
}
  
.accordion-content {
    display: none;
    overflow: hidden;
}
  
.accordion-button[aria-expanded="true"] + .accordion-content {
    display: block;
    animation: slideDown 0.3s ease-out forwards;
}
  
/* Footer animations */
@keyframes footerFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
  
footer {
    animation: footerFadeIn 0.8s ease-out;
}
  
.footer-column {
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
}
  
.footer-column:nth-child(1) {
    animation-delay: 0.1s;
}
  
.footer-column:nth-child(2) {
    animation-delay: 0.3s;
}
  
.footer-column:nth-child(3) {
    animation-delay: 0.5s;
}

/* Nouvelles animations pour les composants du footer */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100%;
        opacity: 1;
    }
}

@keyframes fadeRotate {
    from {
        opacity: 0;
        transform: rotate(-10deg);
    }
    to {
        opacity: 1;
        transform: rotate(0);
    }
}

/* Appliquer les animations aux éléments du footer */
.terms {
    opacity: 0;
    animation: expandWidth 0.8s ease-out 0.7s forwards;
}

.copyright {
    opacity: 0;
    animation: slideUpFade 0.6s ease-out 0.9s forwards;
}

.legal-links {
    opacity: 0;
    animation: slideUpFade 0.6s ease-out 1.1s forwards;
}

.legal-links a {
    opacity: 0;
    animation: fadeRotate 0.4s ease-out forwards;
}

.legal-links a:nth-child(1) {
    animation-delay: 1.2s;
}

.legal-links a:nth-child(2) {
    animation-delay: 1.3s;
}

.legal-links a:nth-child(3) {
    animation-delay: 1.4s;
}

/* Social icon hover effect */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}
  
.social-icon:hover {
    animation: bounce 0.5s ease infinite;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Animation pour les items du footer */
@keyframes wiggle {
    0%, 100% {
        transform: rotate(-3deg);
    }
    50% {
        transform: rotate(3deg);
    }
}

.footer-column ul li:hover {
    animation: wiggle 0.5s ease;
}

.footer-column ul li::before {
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-column ul li:hover::before {
    transform: scale(1.5);
    color: var(--accent-color);
}

/* Animations pour les boutons */
@keyframes buttonPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Animation pour le bouton primaire */
.btn-primary:hover {
    animation: buttonPulse 1s infinite;
    box-shadow: 0 5px 15px rgba(0, 96, 100, 0.3);
}

/* Animation pour le bouton secondaire */
.btn-secondary:hover {
    animation: buttonPulse 1s infinite;
    box-shadow: 0 5px 15px rgba(240, 61, 71, 0.3);
}

/* Animation pour les boutons outline */
.btn-outline:hover {
    border-color: var(--primary-color);
    animation: buttonPulse 1s infinite;
}

/* Animation au chargement de la page pour les sections principales */
.hero > div:first-child {
    animation: fadeInRight 1s ease-out;
}

.hero > div:last-child {
    animation: fadeInLeft 1s ease-out;
}

.activities-container {
    animation: fadeInUp 1s ease-out;
}
  
/* Scroll animations - these will be applied via JS */
.reveal {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}
  
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
  
.reveal-left {
    transform: translateX(-50px);
}
  
.reveal-right {
    transform: translateX(50px);
}
  
.reveal-up {
    transform: translateY(50px);
}
  
/* Fix for the vertical scrollbar issue */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}
  
.container {
    overflow-x: visible !important;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}
  
/* Make sure hero section doesn't cause horizontal scrollbar */
.hero {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 60px 0;
}