/* =============================================
   RAMELEC — Électricien La Réunion
   Feuille de styles principale
   ============================================= */

:root {
    --yellow: #C9A84C;       /* Or du logo RAMELEC */
    --yellow-light: #D4BA6A;
    --yellow-pale: rgba(201,168,76,0.15);
    --navy: #0A1628;
    --navy-mid: #1A2B4A;
    --blue: #1565C0;
    --white: #FFFFFF;
    --gray-light: #F8F9FA;
    --gray-mid: #E9ECEF;
    --gray-text: #666666;
    --dark: #222222;
    --green-wa: #25D366;
    --red-urgence: #C62828;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.14);
    --radius: 12px;
    --transition: all 0.28s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Poppins', sans-serif; color: var(--dark); line-height: 1.65; overflow-x: hidden; background: #fff; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- BOUTONS ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 30px; border-radius: 8px; font-weight: 700; font-size: 15px; transition: var(--transition); border: none; white-space: nowrap; }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: var(--yellow-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,168,76,0.5); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: #f0f0f0; transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline-white:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #0d1f3c; transform: translateY(-2px); }
.btn-wa { background: var(--green-wa); color: #fff; }
.btn-wa:hover { background: #1fb855; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,0.4); }
.btn-lg { padding: 16px 36px; font-size: 17px; }

/* ---- BANDE URGENCE ---- */
.urgence-band {
    background: var(--red-urgence);
    color: #fff;
    text-align: center;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.urgence-band a { color: var(--yellow); font-weight: 800; }

/* ---- HEADER / NAV ---- */
header {
    position: fixed;
    top: 32px; /* height of urgence band */
    width: 100%;
    background: var(--navy);
    z-index: 999;
    box-shadow: 0 3px 20px rgba(0,0,0,0.35);
}
nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: 1200px; margin: 0 auto; }

.logo { display: flex; align-items: center; }
.logo-img { height: 52px; width: auto; display: block; filter: brightness(1.05); }
.logo-img-sm { height: 42px; width: auto; display: block; }
/* Legacy — conservé pour compatibilité */
.logo-bolt { width: 38px; height: 38px; background: var(--yellow); border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.logo-name { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: 2.5px; }
.logo-name span { color: var(--yellow); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: rgba(255,255,255,0.88); font-size: 14px; font-weight: 500; padding-bottom: 3px; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: var(--yellow); border-bottom-color: var(--yellow); }
.nav-devis { background: var(--yellow) !important; color: var(--navy) !important; padding: 8px 22px !important; border-radius: 7px !important; border: none !important; font-weight: 700 !important; }
.nav-devis:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(255,193,7,0.5) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 3px; background: #fff; border-radius: 3px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---- HERO ---- */
.hero {
    background: linear-gradient(140deg, var(--navy) 0%, #1a3a6b 60%, #0d3b8a 100%);
    padding: 160px 24px 90px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 80px;
    background: #fff;
    clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; width: 100%; }

.hero-badge { display: inline-block; background: rgba(255,193,7,0.2); border: 1px solid rgba(255,193,7,0.4); color: var(--yellow); padding: 5px 16px; border-radius: 20px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 18px; }

.hero-title { font-size: clamp(34px, 4.5vw, 58px); font-weight: 800; color: #fff; line-height: 1.18; margin-bottom: 20px; }
.hero-title span { color: var(--yellow); }

.hero-desc { font-size: 17px; color: rgba(255,255,255,0.82); margin-bottom: 32px; line-height: 1.8; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.stat-num { font-size: 34px; font-weight: 800; color: var(--yellow); line-height: 1; }
.stat-lab { font-size: 12px; color: rgba(255,255,255,0.65); margin-top: 4px; line-height: 1.3; }

.hero-card {
    background: rgba(255,255,255,0.09);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 20px;
    padding: 36px 32px;
}
.hcard-icon { width: 72px; height: 72px; background: var(--yellow); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; margin-bottom: 18px; }
.hcard-title { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.hcard-sub { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 20px; }
.services-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.smi { background: rgba(255,255,255,0.1); border-radius: 8px; padding: 9px 12px; font-size: 13px; color: rgba(255,255,255,0.88); display: flex; align-items: center; gap: 7px; }
.smi i { color: var(--yellow); font-size: 12px; }

/* ---- SECTIONS COMMUNES ---- */
section { padding: 84px 0; }
.section-tag { display: inline-block; background: rgba(201,168,76,0.13); color: #7A5E1A; padding: 5px 14px; border-radius: 18px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 12px; }
.section-title { font-size: clamp(26px, 3.5vw, 38px); font-weight: 800; color: var(--navy); margin-bottom: 14px; line-height: 1.25; }
.section-title span { color: var(--blue); }
.section-desc { font-size: 16px; color: var(--gray-text); max-width: 580px; line-height: 1.75; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .section-desc { margin: 0 auto; }

/* ---- POURQUOI NOUS ---- */
.why-us { background: var(--gray-light); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card { background: #fff; padding: 38px 30px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; transition: var(--transition); border-bottom: 4px solid transparent; }
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-bottom-color: var(--yellow); }
.feat-icon { width: 68px; height: 68px; background: linear-gradient(135deg, #fff9c4, #fff3cd); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 18px; }
.feature-card h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--gray-text); line-height: 1.7; }

/* ---- APERÇU SERVICES ---- */
.services-preview { background: #fff; }
.services-grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.svc-card { background: var(--gray-light); padding: 26px; border-radius: var(--radius); transition: var(--transition); }
.svc-card:hover { background: var(--navy); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.svc-card:hover .svc-card-title, .svc-card:hover .svc-card-desc { color: #fff; }
.svc-icon { font-size: 28px; margin-bottom: 12px; }
.svc-card-title { font-size: 15px; font-weight: 700; color: var(--navy); transition: var(--transition); margin-bottom: 6px; }
.svc-card-desc { font-size: 13px; color: var(--gray-text); transition: var(--transition); line-height: 1.6; }
.services-cta { text-align: center; }

/* ---- TÉMOIGNAGES ---- */
.testimonials { background: var(--navy); }
.testimonials .section-tag { background: rgba(255,193,7,0.2); color: var(--yellow); }
.testimonials .section-title { color: #fff; }
.testimonials .section-desc { color: rgba(255,255,255,0.65); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.13); padding: 30px; border-radius: var(--radius); transition: var(--transition); }
.testi-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-4px); }
.testi-card.placeholder { border: 2px dashed rgba(255,255,255,0.2); background: transparent; display: flex; align-items: center; justify-content: center; min-height: 180px; text-align: center; flex-direction: column; gap: 10px; }
.testi-card.placeholder p { color: rgba(255,255,255,0.35); font-style: italic; font-size: 14px; }
.testi-stars { color: var(--yellow); font-size: 16px; letter-spacing: 3px; margin-bottom: 14px; }
.testi-text { font-size: 14px; color: rgba(255,255,255,0.82); font-style: italic; line-height: 1.75; margin-bottom: 18px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 42px; height: 42px; background: var(--yellow); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--navy); font-size: 15px; }
.testi-name { font-weight: 600; color: #fff; font-size: 14px; }
.testi-loc { font-size: 12px; color: rgba(255,255,255,0.5); }

/* ---- BANDE CTA ---- */
.cta-band { background: linear-gradient(120deg, var(--yellow) 0%, #FF8F00 100%); padding: 60px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-text h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.cta-text p { font-size: 15px; color: rgba(10,22,40,0.75); }
.cta-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- FOOTER ---- */
footer { background: #060e1c; padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-about p { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.75; margin: 16px 0 22px; }
.socials { display: flex; gap: 10px; }
.social-btn { width: 36px; height: 36px; background: rgba(255,255,255,0.08); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; transition: var(--transition); }
.social-btn:hover { background: var(--yellow); color: var(--navy); }
.footer-col h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.52); }
.footer-links a:hover { color: var(--yellow); }
.footer-contact-line { display: flex; gap: 10px; margin-bottom: 10px; align-items: flex-start; }
.footer-contact-line i { color: var(--yellow); font-size: 13px; margin-top: 3px; min-width: 14px; }
.footer-contact-line span, .footer-contact-line a { font-size: 13px; color: rgba(255,255,255,0.52); line-height: 1.5; }
.footer-contact-line a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12px; color: rgba(255,255,255,0.3); }

/* ---- WHATSAPP FLOTTANT ---- */
.wa-float { position: fixed; bottom: 28px; right: 28px; z-index: 998; }
.wa-float a { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; background: var(--green-wa); border-radius: 50%; color: #fff; font-size: 26px; box-shadow: 0 4px 20px rgba(37,211,102,0.45); transition: var(--transition); animation: wa-pulse 2.5s infinite; }
.wa-float a:hover { transform: scale(1.12); box-shadow: 0 6px 30px rgba(37,211,102,0.6); }
@keyframes wa-pulse { 0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); } 50% { box-shadow: 0 4px 32px rgba(37,211,102,0.8); } }

/* ---- PAGE HERO (pages internes) ---- */
.page-hero { background: linear-gradient(140deg, var(--navy) 0%, #1a3a6b 100%); padding: 130px 24px 56px; text-align: center; }
.page-hero h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; color: #fff; margin-bottom: 10px; }
.page-hero p { font-size: 17px; color: rgba(255,255,255,0.75); margin-bottom: 16px; }
.breadcrumb { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.breadcrumb a { color: var(--yellow); }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* ---- PAGE SERVICES ---- */
.services-full { background: var(--gray-light); }
.svc-category { margin-bottom: 64px; }
.svc-cat-header { display: flex; align-items: center; gap: 18px; padding-bottom: 16px; border-bottom: 3px solid var(--yellow); margin-bottom: 28px; }
.svc-cat-icon { width: 52px; height: 52px; background: var(--navy); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.svc-cat-header h2 { font-size: 22px; font-weight: 800; color: var(--navy); }
.svc-cat-header small { font-size: 13px; color: var(--gray-text); display: block; margin-top: 2px; }
.services-list-2col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.svc-item { background: #fff; padding: 26px; border-radius: var(--radius); box-shadow: var(--shadow); border-left: 4px solid transparent; transition: var(--transition); }
.svc-item:hover { border-left-color: var(--yellow); transform: translateX(4px); }
.svc-item h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; display: flex; align-items: center; gap: 9px; }
.svc-item h3 i { color: var(--yellow); }
.svc-item p { font-size: 13.5px; color: var(--gray-text); line-height: 1.7; margin-bottom: 10px; }
.svc-badge { display: inline-block; background: rgba(21,101,192,0.1); color: var(--blue); padding: 3px 10px; border-radius: 10px; font-size: 11px; font-weight: 700; }

/* ---- FORMULAIRE DEVIS ---- */
.quote-section { background: var(--navy); }
.quote-section .section-tag { background: rgba(255,193,7,0.2); color: var(--yellow); }
.quote-section .section-title { color: #fff; }
.quote-section .section-desc { color: rgba(255,255,255,0.65); }
.form-box { background: #fff; border-radius: 20px; padding: 44px; max-width: 720px; margin: 0 auto; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 11px 15px; border: 2px solid #e0e0e0; border-radius: 8px;
    font-size: 14px; font-family: inherit; color: var(--dark); background: #fafafa; transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--blue); background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(21,101,192,0.08);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit { width: 100%; padding: 15px; font-size: 16px; }
.success-msg { display: none; background: #e8f5e9; border: 2px solid #4caf50; border-radius: 10px; padding: 22px; text-align: center; margin-top: 18px; }
.success-msg.show { display: block; }
.success-msg i { font-size: 38px; color: #4caf50; margin-bottom: 10px; }
.success-msg h4 { color: #2e7d32; margin-bottom: 6px; font-size: 18px; }
.success-msg p { color: #388e3c; font-size: 14px; }

/* ---- PAGE RÉALISATIONS ---- */
.gallery-section { background: var(--gray-light); }
.gallery-filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn { padding: 8px 22px; border-radius: 24px; border: 2px solid #ddd; background: #fff; font-size: 13px; font-weight: 600; color: var(--gray-text); transition: var(--transition); }
.filter-btn:hover, .filter-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); background: #fff; }
.gallery-item:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.gallery-img-placeholder { height: 210px; background: linear-gradient(135deg, #e3f2fd, #bbdefb); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border-bottom: 2px dashed #90caf9; }
.gallery-img-placeholder i { font-size: 38px; color: #90caf9; }
.gallery-img-placeholder span { font-size: 12px; color: #90caf9; font-style: italic; }
.gallery-body { padding: 20px; }
.gallery-body h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 7px; }
.gallery-body p { font-size: 13px; color: var(--gray-text); line-height: 1.6; margin-bottom: 12px; }
.gallery-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.g-tag { background: rgba(255,193,7,0.15); color: #7b6000; padding: 3px 9px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.gallery-add-note { text-align: center; margin-top: 40px; padding: 32px; background: #fff; border-radius: var(--radius); border: 2px dashed #ddd; }

/* ---- PAGE CONTACT ---- */
.contact-section { background: var(--gray-light); }
.contact-2col { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.contact-info h2 { font-size: 28px; font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.contact-info > p { color: var(--gray-text); line-height: 1.7; margin-bottom: 30px; font-size: 15px; }
.cinfo-item { display: flex; gap: 16px; margin-bottom: 22px; align-items: flex-start; }
.cinfo-icon { width: 48px; height: 48px; background: var(--yellow); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.cinfo-text strong { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.cinfo-text a, .cinfo-text p { font-size: 15px; color: var(--gray-text); line-height: 1.5; }
.cinfo-text a:hover { color: var(--blue); }
.wa-big { display: flex; align-items: center; gap: 14px; background: var(--green-wa); color: #fff; padding: 16px 22px; border-radius: 12px; margin: 22px 0; transition: var(--transition); font-weight: 600; }
.wa-big:hover { background: #1fb855; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37,211,102,0.35); }
.wa-big i { font-size: 24px; }
.wa-big strong { display: block; font-size: 15px; }
.wa-big span { font-size: 12px; opacity: 0.85; }
.map-placeholder { background: linear-gradient(135deg, #e3f2fd, #bbdefb); border-radius: var(--radius); height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border: 2px dashed #90caf9; margin-top: 22px; }
.map-placeholder i { font-size: 44px; color: var(--blue); }
.map-placeholder p { color: var(--blue); font-weight: 600; font-size: 15px; }
.map-placeholder small { color: #90caf9; font-size: 12px; text-align: center; max-width: 200px; }
.contact-form-box { background: #fff; padding: 40px; border-radius: 20px; box-shadow: var(--shadow); }
.contact-form-box h3 { font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 24px; padding-bottom: 14px; border-bottom: 3px solid var(--yellow); }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-card { display: none; }
    .features-grid, .services-grid-6, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .services-list-2col { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-2col { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .hamburger { display: flex; }
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; width: 100%;
        background: var(--navy); flex-direction: column; padding: 18px 24px; gap: 14px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    }
    .nav-links.open { display: flex; }
    .nav-links a { border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; width: 100%; border-right: none !important; }
    .features-grid, .services-grid-6, .testimonials-grid, .gallery-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero { padding: 130px 18px 70px; }
    .hero-actions { flex-direction: column; }
    .cta-inner { flex-direction: column; text-align: center; }
    .cta-btns { justify-content: center; }
    .form-row-2 { grid-template-columns: 1fr; }
    .form-box { padding: 24px 18px; }
    .contact-form-box { padding: 24px 18px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* =============================================
   MISSION 8 — ANIMATIONS & MICRO-INTERACTIONS
   ============================================= */

/* -- Entrée en cascade du hero au chargement -- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeRight {
    from { opacity: 0; transform: translateX(46px); }
    to   { opacity: 1; transform: translateX(0); }
}
.hero-badge   { animation: fadeUp 0.7s ease 0.10s both; }
.hero-title   { animation: fadeUp 0.7s ease 0.22s both; }
.hero-desc    { animation: fadeUp 0.7s ease 0.34s both; }
.hero-actions { animation: fadeUp 0.7s ease 0.46s both; }
.hero-stats   { animation: fadeUp 0.7s ease 0.58s both; }
.hero-card    { animation: fadeRight 0.85s ease 0.5s both; }

/* -- Dégradé du hero qui ondule lentement -- */
.hero {
    background: linear-gradient(140deg, var(--navy) 0%, #1a3a6b 40%, #0d3b8a 65%, #12305e 100%);
    background-size: 220% 220%;
    animation: heroGradient 16s ease-in-out infinite;
}
@keyframes heroGradient {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* -- Reflet brillant qui balaie les boutons au survol -- */
.btn { position: relative; overflow: hidden; }
.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 45%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-22deg);
    pointer-events: none;
}
.btn:hover::before { animation: btnShine 0.65s ease; }
@keyframes btnShine {
    from { left: -80%; }
    to   { left: 135%; }
}

/* -- Icônes qui sautent au survol des cartes -- */
@keyframes iconPop {
    0%   { transform: scale(1); }
    45%  { transform: scale(1.28) rotate(-7deg); }
    100% { transform: scale(1); }
}
.svc-card:hover .svc-icon,
.feature-card:hover .feat-icon,
.cinfo-item:hover .cinfo-icon { animation: iconPop 0.45s ease; }

/* -- Photo d'équipe : léger zoom au survol -- */
.team-photo-wrap img { transition: transform 0.5s ease; }
.team-photo-wrap:hover img { transform: scale(1.06); }

/* -- Liens du menu : soulignement animé -- */
.nav-links a:not(.nav-devis) {
    position: relative;
    border-bottom: none;
}
.nav-links a:not(.nav-devis)::after {
    content: '';
    position: absolute;
    left: 0; bottom: -3px;
    width: 100%; height: 2px;
    background: var(--yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.nav-links a:not(.nav-devis):hover::after,
.nav-links a.active:not(.nav-devis)::after { transform: scaleX(1); }

/* -- Accessibilité : on coupe tout pour ceux qui préfèrent -- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* -- Extension des effets aux pages internes (services, réalisations, contact) -- */

/* Bandeau des pages internes : dégradé animé + entrée en cascade */
.page-hero {
    background: linear-gradient(140deg, var(--navy) 0%, #1a3a6b 45%, #0d3b8a 75%, #12305e 100%);
    background-size: 220% 220%;
    animation: heroGradient 16s ease-in-out infinite;
}
.page-hero h1         { animation: fadeUp 0.7s ease 0.10s both; }
.page-hero p          { animation: fadeUp 0.7s ease 0.25s both; }
.page-hero .breadcrumb { animation: fadeUp 0.7s ease 0.40s both; }

/* Icônes des catégories de services : pop au survol */
.svc-cat-header:hover .svc-cat-icon { animation: iconPop 0.45s ease; }
.svc-item:hover h3 i { display: inline-block; animation: iconPop 0.45s ease; }

/* Galerie réalisations : zoom doux de l'image au survol */
.gallery-item { overflow: hidden; }
.gallery-img-placeholder, .gallery-item img { transition: transform 0.5s ease; }
.gallery-item:hover .gallery-img-placeholder,
.gallery-item:hover img { transform: scale(1.05); }

/* Gros bouton WhatsApp de la page contact : reflet brillant aussi */
.wa-big { position: relative; overflow: hidden; }
.wa-big::before {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 45%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-22deg);
    pointer-events: none;
}
.wa-big:hover::before { animation: btnShine 0.65s ease; }

/* -- Galerie : vraies photos de chantier -- */
.gallery-img { width: 100%; height: 210px; object-fit: cover; display: block; }

/* -- Galerie : visionneuse plein écran (clic pour agrandir + zoom) -- */
.gallery-img { cursor: zoom-in; }
.lightbox {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(6,14,28,0.93);
    display: none; align-items: center; justify-content: center;
    padding: 30px; opacity: 0; transition: opacity .25s ease;
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox-img {
    max-width: 92vw; max-height: 82vh;
    object-fit: contain; border-radius: 8px;
    box-shadow: 0 12px 55px rgba(0,0,0,.6);
    cursor: zoom-in; transition: transform .3s ease; background: #000;
}
.lightbox-img.zoomed { cursor: zoom-out; transform: scale(1.9); }
.lb-cap {
    position: absolute; bottom: 20px; left: 0; right: 0;
    text-align: center; color: #fff; font-size: 15px; font-weight: 600;
    padding: 0 24px; text-shadow: 0 2px 10px rgba(0,0,0,.9); pointer-events: none;
}
.lb-btn {
    position: absolute; background: rgba(255,255,255,0.14); border: none;
    color: #fff; width: 48px; height: 48px; border-radius: 50%;
    font-size: 26px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s ease, transform .2s ease; z-index: 2;
}
.lb-btn:hover { background: var(--yellow); color: var(--navy); transform: scale(1.08); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; margin-top: -24px; }
.lb-next { right: 18px; top: 50%; margin-top: -24px; }
.lb-hint {
    position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.7); font-size: 12px; letter-spacing: .5px;
    pointer-events: none;
}
@media (max-width: 640px) {
    .lb-prev { left: 6px; } .lb-next { right: 6px; }
    .lightbox-img.zoomed { transform: scale(1.5); }
    .lb-hint { display: none; }
}
