/* Dégradé de fond principal de l'application */
.bg-app-gradient {
    background: linear-gradient(135deg, #2D5A4A 0%, #1e3d32 100%);
}

/* Police Nunito pour les titres */
h1, h2, h3, h4, h5, h6,
.font-heading,
[class*="font-bold"],
[class*="font-semibold"],
[class*="font-extrabold"],
[class*="font-black"] {
    font-family: 'Nunito', 'Inter', system-ui, sans-serif;
}

/* Correction du problème de scroll */
html,
body {
    overflow-x: hidden;
}

body {
    position: relative;
}

/* Scroll fluide natif avec animations */
html {
    scroll-behavior: smooth;
}

/* Suppression des animations sur les liens de navigation du menu et footer */
nav a[href^="#"],
footer a[href^="#"] {
    transition: none !important;
    transform: none !important;
}

nav a[href^="#"]:hover,
footer a[href^="#"]:hover {
    transform: none !important;
}

nav a[href^="#"]:active,
footer a[href^="#"]:active {
    transform: none !important;
}

nav a[href^="#"]::before,
footer a[href^="#"]::before {
    display: none !important;
}

.phone-mockup {
    max-width: 280px;
    width: 100%;
}

.phone-body {
    position: relative;
    background: linear-gradient(145deg, #000, #000);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.phone-screen {
    position: relative;
    background: #000;
    overflow: hidden;
}

.phone-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    z-index: 1;
}

.status-bar {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.phone-mockup:hover .phone-body {
    transform: translateY(-5px);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.phone-body {
    transition: all 0.3s ease;
}

/* Animation pour les barres de signal */
.status-bar .flex div {
    animation: signal 2s ease-in-out infinite;
}

.status-bar .flex div:nth-child(2) {
    animation-delay: 0.2s;
}

.status-bar .flex div:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes signal {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/* Animations pour la section témoignages */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Toujours afficher la barre de navigation au-dessus du contenu */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999999; /* très haut mais sans !important */
}

/* Éviter que le contenu passe sous la nav fixe */
body {
    padding-top: 64px;
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.1;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(1.1);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.testimonial-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:nth-child(1) {
    animation-delay: 0.1s;
}

.testimonial-card:nth-child(2) {
    animation-delay: 0.2s;
}

.testimonial-card:nth-child(3) {
    animation-delay: 0.3s;
}

.star-animate {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px) scale(1.02);
    transition: all 0.3s ease;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
    border-radius: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

/* Animation des éléments de fond */
.bg-dark-900 .absolute:nth-child(2) {
    animation: pulse-glow 3s ease-in-out infinite;
    pointer-events: none;
}

.bg-dark-900 .absolute:nth-child(3) {
    animation: pulse-glow 3s ease-in-out infinite;
    animation-delay: 1.5s;
    pointer-events: none;
}

/* S'assurer que les sections ont la bonne hauteur (sans créer de nouveau contexte d'empilement) */
section {
    position: relative;
}

/* S'assurer que les sections ciblées par les liens de navigation sont accessibles */
section[id] {
    scroll-margin-top: 80px;
}

/* S'assurer que les ancres fonctionnent même sans JavaScript */
a[href^="#"] {
    cursor: pointer;
}

/* ===== HERO SECTION ANIMATIONS ===== */

/* Animations d'entrée pour les éléments du hero */
.hero-logo {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-title-1 {
    animation: slideInLeft 1s ease-out 0.4s both;
}

.hero-title-2 {
    animation: slideInRight 1s ease-out 0.6s both;
}

.hero-subtitle {
    animation: fadeInUp 1s ease-out 0.8s both;
}

.hero-btn-ios {
    animation: fadeInUp 1s ease-out 1s both;
}

.hero-btn-android {
    animation: fadeInUp 1s ease-out 1.1s both;
}


.hero-feature-card {
    animation: fadeInUp 1s ease-out 1.4s both;
}

/* Animations des boutons */
.hero-btn-ios,
.hero-btn-android {
    transition: all 0.3s ease;
    transform: translateY(0);
}

.hero-btn-ios:hover,
.hero-btn-android:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Animation des cartes de features */
.hero-feature-card {
    transition: all 0.3s ease;
}

.hero-feature-card:hover {
    transform: translateY(-10px);
}


/* Keyframes pour les animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Styles pour la section interactive */
.interactive-checkbox input[type="checkbox"]:checked + div .checkbox-indicator {
    background-color: #2D5A4A;
    border-color: #2D5A4A;
}

.interactive-checkbox input[type="checkbox"]:checked + div .checkbox-indicator i {
    opacity: 1;
    color: #FFFFFF;
}

.checkbox-indicator {
    transition: all 0.2s ease;
}

.interactive-checkbox:hover .checkbox-indicator {
    border-color: #2D5A4A;
}

/* Animation pour les cartes de moments */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
    opacity: 0;
}

/* Style pour l'icône du calendrier dans les champs date */
input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1;
}

/* Pour Firefox */
input[type="date"] {
    color-scheme: light;
}

input[type="date"]::-moz-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1;
}