/* Styles personnalisés pour le site KID */

/* Variables CSS personnalisées */
:root {
    --kid-orange: #FF6B35;
    --kid-dark: #1a1a1a;
    --kid-black: #000000;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
}

/* Liens actifs dans la navigation */
.nav-link.active {
    color: var(--kid-orange) !important;
    font-weight: 600;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Classes d'animation */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

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

/* Animations au scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animate-fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Header styles */
#header {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

/* Hero section styles */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    overflow: hidden;
}

/* Hero background avec image */
.hero-background {
    z-index: 0;
}

.hero-background img {
    transition: opacity 0.3s ease;
}

.hero-overlay {
    z-index: 1;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(45, 45, 45, 0.80) 100%);
    transition: background 0.4s ease;
}

/* Effet de révélation au survol - Image beaucoup plus visible */
.hero-reveal-active .hero-overlay {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.2) 0%, rgba(45, 45, 45, 0.15) 100%);
}

/* Cercle de révélation qui suit la souris */
.reveal-circle {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
    background: radial-gradient(circle,
        rgba(255, 150, 100, 0.8) 0%,
        rgba(255, 107, 53, 0.6) 15%,
        rgba(255, 107, 53, 0.4) 30%,
        rgba(255, 107, 53, 0.2) 50%,
        transparent 75%
    );
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(30px);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 107, 53, 0.08) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

/* Cartes avec effet hover */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Boutons personnalisés */
.btn-primary {
    background: linear-gradient(135deg, var(--kid-orange) 0%, #ff8557 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--kid-orange);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--kid-orange);
    cursor: pointer;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.btn-secondary:hover {
    background: var(--kid-orange);
    color: white;
}

/* Ajustements responsive pour les boutons */
@media (max-width: 640px) {
    .btn-primary,
    .btn-secondary {
        padding: 0.65rem 1.25rem;
        height: 44px;
        font-size: 0.9rem;
    }
}

/* Timeline verticale */
.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--kid-orange);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3.5rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: var(--kid-orange);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    background: rgba(255, 107, 53, 0.1);
    color: var(--kid-orange);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--kid-orange) 0%, #ff8557 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Carte avec bordure animée */
.border-animated {
    position: relative;
    background: white;
    border-radius: 1rem;
    padding: 2rem;
}

.border-animated::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 1rem;
    padding: 2px;
    background: linear-gradient(135deg, var(--kid-orange), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.border-animated:hover::before {
    opacity: 1;
}

/* Loader */
.loader {
    border: 3px solid rgba(255, 107, 53, 0.1);
    border-top: 3px solid var(--kid-orange);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Section avec fond ondulé */
.wave-section {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.wave-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23ffffff'/%3E%3C/svg%3E") no-repeat;
    background-size: cover;
    transform: translateY(-99px);
}

/* Responsive */
@media (max-width: 768px) {
    .timeline {
        padding-left: 2rem;
    }

    .timeline-item::before {
        left: -2.5rem;
    }

    .hero-section {
        min-height: auto;
        padding: 5rem 0;
    }
}

/* Galerie photo */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    aspect-ratio: 1/1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Map container */
#map {
    height: 400px;
    border-radius: 1rem;
    overflow: hidden;
}

/* Formulaire */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--kid-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Scroll to top button */
#scroll-to-top {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#scroll-to-top:hover {
    transform: scale(1.1);
}

/* Sélection de texte personnalisée */
::selection {
    background: var(--kid-orange);
    color: white;
}

::-moz-selection {
    background: var(--kid-orange);
    color: white;
}
