/* ==============================================
   CUSTOM CSS OPTIMISÉ - OLIVIER LEVAL
   Taille cible : <15KB (au lieu de 49.9KB)
   ============================================== */

/* Comportement global */
html {
  scroll-behavior: smooth;
}

/* ==============================================
   ANIMATIONS ESSENTIELLES
   ============================================== */

/* Carrousel projets - Animation optimisée */
@keyframes project-slideshow {
    0%, 16.67% { opacity: 1; visibility: visible; }
    20%, 100% { opacity: 0; visibility: hidden; }
}

.project-carousel .project-slide:nth-child(1) { animation: project-slideshow 18s ease-in-out infinite 0s; }
.project-carousel .project-slide:nth-child(2) { animation: project-slideshow 18s ease-in-out infinite 3s; }
.project-carousel .project-slide:nth-child(3) { animation: project-slideshow 18s ease-in-out infinite 6s; }
.project-carousel .project-slide:nth-child(4) { animation: project-slideshow 18s ease-in-out infinite 9s; }
.project-carousel .project-slide:nth-child(5) { animation: project-slideshow 18s ease-in-out infinite 12s; }
.project-carousel .project-slide:nth-child(6) { animation: project-slideshow 18s ease-in-out infinite 15s; }

.project-slide {
    position: absolute !important;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; visibility: hidden; z-index: 1;
    transition: opacity 2s ease-in-out;
}

.project-carousel:hover .project-slide { animation-play-state: paused; }

/* Animations flottantes */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-delayed { animation: float 6s ease-in-out infinite; animation-delay: 2s; }
.animate-float-delayed-2 { animation: float 6s ease-in-out infinite; animation-delay: 4s; }
.animate-pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }

/* ==============================================
   STYLES HERO SECTION
   ============================================== */

.hero-container { padding: 4rem 0; }

.intro-layer-title {
    display: inline-block;
    background: rgba(171, 192, 222, 0.42);
    backdrop-filter: blur(2px);
    border-radius: 30px;
    padding: 2rem;
    max-width: 730px;
    text-align: left;
}

.intro_featured_word {
    font-size: 50px;
    font-weight: 100;
    line-height: 0.8;
    text-shadow: 0 6px 20px rgba(31, 39, 50, 0.5);
    letter-spacing: 0.05em;
}

.intro_featured_word.name { font-weight: 600; letter-spacing: 1px; }

/* ==============================================
   COULEURS & UTILITAIRES
   ============================================== */

.text-custom-blue { color: #69A1BF; }
.color-main { color: #269CA8 !important; }
.gradient-span {
    background: linear-gradient(90deg, #269cb7 0%, #ac87eb 66.7%);
    -webkit-background-clip: text;
    color: transparent;
    font-weight: 600;
}

/* ==============================================
   ÉTOILES GOOGLE & REVIEWS
   ============================================== */

.star-shine { animation: shine 2s infinite; }
.star-delay-1 { animation-delay: 0.1s; }
.star-delay-2 { animation-delay: 0.2s; }
.star-delay-3 { animation-delay: 0.3s; }
.star-delay-4 { animation-delay: 0.4s; }
.star-delay-5 { animation-delay: 0.5s; }

@keyframes shine {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; filter: brightness(1.2); }
}

/* ==============================================
   LISTES PERSONNALISÉES
   ============================================== */

.list-custom {
    list-style: none !important;
    padding-left: 0;
    margin: 0 0 26px 0;
}

.list-custom li {
    font-weight: 400;
    color: #3d3939;
}

.list-custom i.fa-circle-check,
.list-crea i.fa-circle-check {
    color: #5f95b6;
    margin-right: 8px;
}

/* ==============================================
   FORMULAIRES
   ============================================== */

.form-control {
    font-family: 'Inter', sans-serif;
    font-size: 1em;
    color: #25314a;
    background-color: #fff;
    border: 1.5px solid #e5eaf0;
    border-radius: 7px;
    padding: 14px 16px;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: #aec6e8;
    background-color: #f7fafc;
    outline: none;
}

::placeholder {
    color: #b7bcc6 !important;
    opacity: 1;
}

/* ==============================================
   RESPONSIVE
   ============================================== */

@media (max-width: 768px) {
    .hero-container { padding: 3rem 0; }
    .intro-layer-title { padding: 1.5rem; max-width: 100%; }
    .intro_featured_word { font-size: 40px; line-height: 1.1; }
}

@media (max-width: 480px) {
    .intro_featured_word { font-size: 32px; }
}

/* ==============================================
   OPTIMISATIONS PERFORMANCE
   ============================================== */

/* GPU Acceleration */
.carousel-container,
.star-shine {
    will-change: transform;
    transform: translateZ(0);
}

/* Réduction du mouvement */
@media (prefers-reduced-motion: reduce) {
    .star-shine,
    .animate-float,
    .animate-float-delayed,
    .animate-float-delayed-2 { animation: none; }
}
