/**
 * Rénovation Haute-Savoie - Styles partagés
 * Palette haut de gamme artisanale alpine
 */

/* Animations d'entrée */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-in { opacity: 0; transition: opacity 1.2s ease; }
.fade-in.visible { opacity: 1; }

/* Header scrollé */
.header-scrolled { background: rgba(26,29,31,0.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 2px 30px rgba(0,0,0,0.35); }

/* Hover lift (cartes premium) */
.hover-lift { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease; }
.hover-lift:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(26,29,31,0.18); }

/* Menu mobile */
.mobile-menu { transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.mobile-menu.open { transform: translateX(0); }

/* Gradient texte or brossé */
.gradient-gold { background: linear-gradient(135deg, #B08A4F 0%, #D4B27B 50%, #B08A4F 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Ligne décorative */
.divider-gold { display: inline-block; width: 60px; height: 2px; background: linear-gradient(90deg, transparent, #B08A4F, transparent); }

/* Chiffres tabular */
.counter { font-variant-numeric: tabular-nums; }

/* Avant/Après slider */
.before-after { position: relative; overflow: hidden; border-radius: 12px; user-select: none; -webkit-user-select: none; touch-action: none; }
.before-after img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }
.before-after .after { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); transition: clip-path 0.1s linear; }
.before-after .slider { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; cursor: ew-resize; box-shadow: 0 0 20px rgba(0,0,0,0.5); transform: translateX(-50%); }
.before-after .slider-handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 64px; height: 64px; border-radius: 50%; background: #fff; color: #B08A4F; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 24px rgba(0,0,0,0.45), 0 0 0 3px rgba(176,138,79,0.85); pointer-events: none; }
.before-after .slider-handle-icon { width: 28px; height: 28px; }
@media (max-width: 1024px) { .before-after .slider-handle { width: 56px; height: 56px; box-shadow: 0 4px 18px rgba(0,0,0,0.45), 0 0 0 3px rgba(176,138,79,0.85); } .before-after .slider-handle-icon { width: 24px; height: 24px; } }
@media (max-width: 640px) { .before-after .slider-handle { width: 48px; height: 48px; } .before-after .slider-handle-icon { width: 20px; height: 20px; } }
@keyframes ba-hint-pulse { 0%, 100% { box-shadow: 0 6px 24px rgba(0,0,0,0.45), 0 0 0 3px rgba(176,138,79,0.85), 0 0 0 0 rgba(176,138,79,0.6); } 50% { box-shadow: 0 6px 24px rgba(0,0,0,0.45), 0 0 0 3px rgba(176,138,79,0.85), 0 0 0 16px rgba(176,138,79,0); } }
.before-after.is-hinting .slider-handle { animation: ba-hint-pulse 1.4s ease-out 2; }
.before-after .label { position: absolute; top: 20px; padding: 8px 16px; background: rgba(26,29,31,0.8); color: #F5F1EA; font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; border-radius: 4px; }
.before-after .label-before { left: 20px; }
.before-after .label-after { right: 20px; }

/* Parallaxe lente */
.parallax { transform: translateY(var(--parallax-y, 0)); transition: transform 0.1s linear; will-change: transform; }

/* Bouton premium */
.btn-premium { position: relative; overflow: hidden; transition: all 0.4s ease; }
.btn-premium::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transition: left 0.6s ease; }
.btn-premium:hover::before { left: 100%; }

/* Underline animé nav */
.nav-link { position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: #B08A4F; transition: width 0.3s ease; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Scroll indicator hero */
@keyframes scroll-hint { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }
.scroll-hint { animation: scroll-hint 2s ease-in-out infinite; }

/* Carte réalisation hover reveal */
.project-card { position: relative; overflow: hidden; }
.project-card img { transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.project-card:hover img { transform: scale(1.08); }
.project-card .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(26,29,31,0.95) 100%); }
.project-card .info { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; transform: translateY(20px); transition: transform 0.4s ease; }
.project-card:hover .info { transform: translateY(0); }

/* Timeline process */
.timeline-line { position: absolute; top: 50px; left: 50%; width: 2px; background: linear-gradient(180deg, #B08A4F 0%, transparent 100%); transform: translateX(-50%); }
