/* Styles personnalisés pour OrthoClap */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

/* Navigation Links */
.nav-link {
    color: #4b5563;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-link:hover {
    color: #4682B4;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FFD700;
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-nav-link {
    color: #4b5563;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.mobile-nav-link:hover {
    color: #4682B4;
    background-color: rgba(70, 130, 180, 0.05);
}

/* Header Scrolled */
.header-scrolled {
    background-color: white !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(45deg);
    }
    50% {
        transform: translateY(-10px) rotate(45deg);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-slide-in {
    animation: slideIn 0.5s ease-out;
}

/* Formes organiques */
.shape-blob {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.shape-organic {
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
}

/* Card Hover Effect */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Team Card */
.team-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Service Card */
.service-card {
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: scale(1.05);
    border-color: #e5e7eb;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Gradient Text */
.text-gradient {
    background: linear-gradient(to right, #4682B4, #A7E8BD);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #4682B4;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a6d96;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .team-card {
        margin-top: 0 !important;
    }
}

/* Form Focus */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #4682B4;
    box-shadow: 0 0 0 3px rgba(70, 130, 180, 0.1);
}

/* Button Hover */
button:hover, a.button:hover {
    transform: scale(1.05);
}

/* Fade In on Scroll */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4682B4;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

/* Success Message */
.success-message {
    background-color: #d1fae5;
    border: 2px solid #10b981;
    color: #065f46;
    padding: 1rem;
    border-radius: 0.75rem;
    text-align: center;
    animation: slideIn 0.5s ease-out;
}

/* Easter Egg Hint */
.easter-egg-hint {
    opacity: 0;
    transition: opacity 0.5s;
    cursor: pointer;
}

.easter-egg-hint:hover {
    opacity: 1;
}

/* ============================================ */
/* ANIMATIONS ILLUSTRATION FAMILLE */
/* ============================================ */

/* Animation des membres de la famille */
@keyframes bobbing {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.family-member {
    animation: bobbing 3s ease-in-out infinite;
    transform-origin: center;
}

.family-member:nth-child(1) {
    animation-delay: 0s;
}

.family-member:nth-child(2) {
    animation-delay: 0.3s;
}

.family-member:nth-child(3) {
    animation-delay: 0.6s;
}

.family-member:nth-child(4) {
    animation-delay: 0.9s;
}

.family-member:nth-child(5) {
    animation-delay: 1.2s;
}

/* Animation des bulles de parole */
@keyframes bubble-float {
    0% {
        transform: translateY(0px);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-5px);
        opacity: 0.8;
    }
    100% {
        transform: translateY(0px);
        opacity: 0.6;
    }
}

.bubble {
    animation: bubble-float 2s ease-in-out infinite;
}

.bubble:nth-child(2) {
    animation-delay: 0.3s;
}

.bubble:nth-child(3) {
    animation-delay: 0.6s;
}

/* Animation des coeurs */
@keyframes heart-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

.heart {
    animation: heart-pulse 2.5s ease-in-out infinite;
}

.heart:nth-child(2) {
    animation-delay: 1.25s;
}

/* Animation des étoiles */
@keyframes twinkle {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

.star {
    animation: twinkle 3s ease-in-out infinite;
}

.star:nth-child(2) {
    animation-delay: 1.5s;
}

/* Animation de l'illustration complète */
#family-illustration {
    animation: gentle-float 6s ease-in-out infinite;
}

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