/*
Theme Name: VitalRenov
Theme URI: https://vitalrenov.fr
Author: VitalRenov
Description: Theme professionnel VitalRenov - Renovation et Travaux Val-d-Oise
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: vitalrenov
*/

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Arial, sans-serif; color: #222; }

/* MATERIAL ICONS */
.material-icons { font-family: 'Material Icons'; font-weight: normal; font-style: normal; font-size: 24px; display: inline-block; line-height: 1; text-transform: none; letter-spacing: normal; word-wrap: normal; white-space: nowrap; direction: ltr; -webkit-font-smoothing: antialiased; }

/* NAV */
nav { background: #1a1a1a; display: flex; align-items: center; justify-content: space-between; padding: 0 40px; height: 65px; position: sticky; top: 0; z-index: 999; }
.nav-logo { color: #fff; font-size: 1.4rem; font-weight: 700; text-decoration: none; }
.nav-logo span { color: #f0a500; }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { color: #ccc; text-decoration: none; font-size: .95rem; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: #f0a500; border-bottom: 2px solid #f0a500; padding-bottom: 2px; }
.nav-phone { color: #f0a500; font-weight: 700; font-size: 1rem; text-decoration: none; display: flex; align-items: center; gap: 6px; }
.nav-phone .material-icons { font-size: 18px; }

/* HERO */
.hero { min-height: 520px; background: url('images/hero.jpg') center/cover no-repeat; display: flex; align-items: center; padding: 60px; }
.hero-content { max-width: 600px; }
.hero h1 { font-size: 2.8rem; color: #fff; font-weight: 800; line-height: 1.2; }
.hero h2 { font-size: 1.6rem; color: #f0a500; font-style: italic; margin: 10px 0 15px; font-weight: 500; }
.hero p { color: #ddd; font-size: 1rem; margin-bottom: 30px; line-height: 1.7; }
.btn-primary { background: #f0a500; color: #fff; padding: 14px 28px; font-weight: 700; font-size: .9rem; text-transform: uppercase; text-decoration: none; letter-spacing: 1px; display: inline-block; margin-right: 15px; border: none; cursor: pointer; transition: background .2s; }
.btn-primary:hover { background: #d4920a; color: #fff; }
.btn-secondary { background: transparent; color: #fff; padding: 13px 28px; border: 2px solid #fff; font-weight: 700; font-size: .9rem; text-transform: uppercase; text-decoration: none; display: inline-block; cursor: pointer; transition: background .2s; }
.btn-secondary:hover { background: rgba(255,255,255,.1); }

/* BADGES */
.badges { background: #f8f8f8; display: flex; justify-content: stretch; box-shadow: 0 6px 30px rgba(0,0,0,.07); }
.badge-item { display: flex; align-items: center; gap: 16px; padding: 30px 35px; flex: 1; justify-content: center; background: #fff; border-right: 1px solid #f0f0f0; position: relative; overflow: hidden; }
.badge-item:last-child { border-right: none; }
.badge-item::before { content: ''; position: absolute; left: 0; top: 20%; height: 60%; width: 3px; border-radius: 0 3px 3px 0; }
.badge-orange::before { background: linear-gradient(to bottom, #f0a500, #e08800); }
.badge-green::before  { background: linear-gradient(to bottom, #3a9e48, #2d8a30); }
.badge-blue::before   { background: linear-gradient(to bottom, #2558a8, #1a3a6b); }
.badge-mixed::before  { background: linear-gradient(to bottom, #3a9e48, #1a3a6b); }
.badge-icon { width: 50px; height: 50px; border-radius: 50%; background: #f0a500; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.badge-icon .material-icons { color: #fff; font-size: 24px; }
.badge-text strong { display: block; font-size: .95rem; color: #1a1a1a; font-weight: 700; margin-bottom: 3px; }
.badge-text span { font-size: .82rem; color: #888; font-weight: 400; }

/* SECTIONS */
.section { padding: 70px 60px; }
.section-alt { background: #f5f5f5; }
.section-title { text-align: center; font-size: 2rem; font-weight: 800; margin-bottom: 10px; color: #1a1a1a; }
.section-title span { color: #f0a500; }
.section-subtitle { text-align: center; color: #666; margin-bottom: 50px; font-size: 1rem; }

/* SERVICES */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 25px; max-width: 1100px; margin: 0 auto; }
.service-card { background: #fff; border-radius: 8px; padding: 30px 20px; text-align: center; box-shadow: 0 2px 15px rgba(0,0,0,.07); border-top: 4px solid #f0a500; text-decoration: none; display: block; color: inherit; }
.service-card .material-icons { font-size: 2.8rem; color: #f0a500; margin-bottom: 15px; }
.service-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: #1a1a1a; }
.service-card p { font-size: .85rem; color: #666; line-height: 1.6; }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; max-width: 1100px; margin: 0 auto; }
.about-img { border-radius: 10px; background: #ddd; height: 380px; overflow: hidden; }
.about-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-text h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 15px; color: #1a1a1a; }
.about-text h2 span { color: #f0a500; }
.about-text p { color: #555; line-height: 1.8; margin-bottom: 15px; font-size: .95rem; }
.about-list { list-style: none; margin: 20px 0 25px; }
.about-list li { padding: 7px 0 7px 30px; color: #444; font-size: .95rem; position: relative; }
.about-list li .material-icons { position: absolute; left: 0; top: 7px; font-size: 18px; color: #f0a500; }

/* REVIEWS */
.reviews { background: linear-gradient(135deg, #111 0%, #1a1a2e 100%); padding: 80px 60px; text-align: center; position: relative; overflow: hidden; }
.reviews::before { content: ''; position: absolute; top: -80px; right: -80px; width: 300px; height: 300px; background: radial-gradient(circle, rgba(240,165,0,.12) 0%, transparent 70%); border-radius: 50%; }
.reviews::after { content: ''; position: absolute; bottom: -80px; left: -80px; width: 250px; height: 250px; background: radial-gradient(circle, rgba(240,165,0,.08) 0%, transparent 70%); border-radius: 50%; }
.reviews h2 { color: #fff; font-size: 2rem; font-weight: 800; margin-bottom: 8px; position: relative; z-index: 1; }
.reviews .sub { color: #888; font-size: .95rem; margin-bottom: 40px; position: relative; z-index: 1; }
.google-badge { display: inline-flex; align-items: center; gap: 24px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 20px; padding: 28px 40px; margin: 0 auto 40px; backdrop-filter: blur(10px); position: relative; z-index: 1; box-shadow: 0 8px 40px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.08); }
.google-logo { width: 52px; height: 52px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 900; color: #4285f4; font-family: Arial, sans-serif; flex-shrink: 0; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.google-info { text-align: left; }
.google-info .score { font-size: 2.4rem; font-weight: 800; color: #fff; line-height: 1; margin-bottom: 6px; }
.google-stars { color: #f0a500; font-size: 1.3rem; letter-spacing: 4px; margin-bottom: 4px; filter: drop-shadow(0 0 6px rgba(240,165,0,.5)); }
.google-info .label { font-size: .78rem; color: #666; text-transform: uppercase; letter-spacing: 1px; }
.review-cards { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.review-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 24px 28px; max-width: 380px; text-align: left; backdrop-filter: blur(6px); }
.review-card-stars { color: #f0a500; font-size: 1rem; letter-spacing: 2px; margin-bottom: 12px; }
.review-card p { color: #ccc; font-size: .9rem; line-height: 1.7; font-style: italic; margin-bottom: 16px; }
.review-card-author { display: flex; align-items: center; gap: 10px; }
.review-card-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #f0a500, #e08800); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .9rem; flex-shrink: 0; }
.review-card-author span { color: #aaa; font-size: .85rem; font-weight: 600; }
.review-card-author small { color: #666; font-size: .78rem; display: block; }

/* GALLERY */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 1100px; margin: 0 auto 30px; }
.gallery-item { border-radius: 8px; overflow: hidden; height: 200px; background: #ccc; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; max-width: 1200px; margin: 0 auto; }
.gallery-page-item { border-radius: 8px; overflow: hidden; background: #e0e0e0; }
.gallery-page-item a { display: block; text-decoration: none; }
.gallery-page-item img { width: 100%; height: 220px; object-fit: cover; display: block; }
.gallery-caption { background: #1a1a1a; color: #fff; padding: 10px 14px; font-size: .85rem; }
.gallery-group { margin-bottom: 60px; max-width: 1200px; margin-left: auto; margin-right: auto; margin-bottom: 60px; }
.gallery-group-header { display: flex; align-items: center; gap: 12px; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 2px solid #f0f0f0; position: relative; }
.gallery-group-header::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 60px; height: 2px; background: #f0a500; }
.gallery-group-header .material-icons { color: #f0a500; font-size: 1.6rem; }
.gallery-group-header h2 { font-size: 1.3rem; font-weight: 700; color: #1a1a1a; margin: 0; }
.gallery-group-count { margin-left: auto; background: #f5f5f5; color: #888; font-size: .78rem; padding: 4px 12px; border-radius: 20px; font-weight: 600; }

/* CTA */
.cta { background: linear-gradient(135deg, #f0a500, #e08800); padding: 60px; text-align: center; }
.cta h2 { color: #fff; font-size: 2rem; font-weight: 800; margin-bottom: 10px; }
.cta p { color: rgba(255,255,255,.9); margin-bottom: 25px; font-size: 1rem; }
.cta .btn-secondary { margin-right: 20px; }
.cta-phone { color: #fff; font-weight: 700; font-size: 1.1rem; text-decoration: none; vertical-align: middle; display: inline-flex; align-items: center; gap: 6px; }
.cta-phone .material-icons { font-size: 20px; }

/* FOOTER */
footer { background: #111; color: #aaa; padding: 40px 60px 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 30px; }
.footer-col h4 { color: #fff; margin-bottom: 15px; font-size: 1rem; }
.footer-col p { font-size: .85rem; line-height: 1.9; color: #aaa; }
.footer-col a { font-size: .85rem; line-height: 1.9; color: #aaa; text-decoration: none; display: block; }
.footer-col a:hover { color: #f0a500; }
.footer-col .material-icons { font-size: 15px; vertical-align: middle; margin-right: 4px; color: #f0a500; }
.footer-bottom { border-top: 1px solid #333; padding-top: 20px; text-align: center; font-size: .8rem; color: #555; }
.footer-bottom a { color: #555; text-decoration: none; }
.footer-bottom a:hover { color: #f0a500; }

/* SERVICE DETAIL PAGE */
.service-hero { min-height: 420px; background: #1a1a1a center/cover no-repeat; display: flex; align-items: flex-end; padding: 0; position: relative; }
.service-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 60%, rgba(0,0,0,.1) 100%); }
.service-hero-content { position: relative; z-index: 2; padding: 50px 60px; width: 100%; }
.service-hero-content .service-tag { display: inline-flex; align-items: center; gap: 8px; background: #f0a500; color: #fff; padding: 6px 16px; border-radius: 30px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.service-hero-content .service-tag .material-icons { font-size: 16px; }
.service-hero-content h1 { font-size: 3rem; color: #fff; font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.service-hero-content p { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 650px; line-height: 1.7; }
.service-body { max-width: 1100px; margin: 0 auto; padding: 70px 60px; display: grid; grid-template-columns: 1fr 380px; gap: 60px; align-items: start; }
.service-body-text h2 { font-size: 1.6rem; font-weight: 800; color: #1a1a1a; margin-bottom: 20px; }
.service-body-text h2 span { color: #f0a500; }
.service-body-text p { color: #555; line-height: 1.9; font-size: 1rem; margin-bottom: 20px; }
.service-features { margin: 30px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.service-feature { display: flex; align-items: flex-start; gap: 12px; background: #f9f9f9; border-radius: 8px; padding: 14px 16px; border-left: 3px solid #f0a500; }
.service-feature .material-icons { color: #f0a500; font-size: 20px; margin-top: 1px; flex-shrink: 0; }
.service-feature p { color: #444; font-size: .88rem; line-height: 1.5; margin: 0; }
.service-feature strong { display: block; color: #1a1a1a; font-size: .9rem; margin-bottom: 3px; }
.service-sidebar { position: sticky; top: 85px; }
.service-sidebar-img { border-radius: 12px; overflow: hidden; height: 280px; background: #ddd; margin-bottom: 24px; }
.service-sidebar-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-sidebar-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; color: #bbb; font-size: .85rem; gap: 8px; }
.service-sidebar-img-placeholder .material-icons { font-size: 3rem; color: #ccc; }
.service-cta-card { background: #1a1a1a; border-radius: 12px; padding: 28px; text-align: center; }
.service-cta-card h3 { color: #fff; font-size: 1.1rem; margin-bottom: 10px; }
.service-cta-card p { color: #aaa; font-size: .88rem; line-height: 1.6; margin-bottom: 20px; }
.service-cta-card .btn-primary { display: block; margin-bottom: 12px; text-align: center; }
.service-cta-card a.phone { color: #f0a500; font-weight: 700; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .95rem; }
.service-cta-card a.phone .material-icons { font-size: 17px; }
@media(max-width:900px) {
    .service-body { grid-template-columns: 1fr; padding: 40px 20px; }
    .service-hero-content { padding: 30px 20px; }
    .service-hero-content h1 { font-size: 2rem; }
    .service-features { grid-template-columns: 1fr; }
    .service-sidebar { position: static; }
}

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; max-width: 1000px; margin: 0 auto; }
.contact-label { display: block; margin-bottom: 5px; font-size: .85rem; color: #444; font-weight: 600; }
.contact-input { padding: 12px; border: 1px solid #ddd; border-radius: 4px; font-size: .95rem; width: 100%; margin-bottom: 18px; font-family: inherit; color: #222; background: #fff; transition: border-color .2s; }
.contact-input:focus { outline: none; border-color: #f0a500; }
.contact-submit { background: #f0a500; color: #fff; padding: 15px; width: 100%; border: none; font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; border-radius: 4px; transition: background .2s; font-family: inherit; }
.contact-submit:hover { background: #d4920a; }
.contact-info-block { margin-bottom: 22px; }
.contact-info-block h3 { font-size: 1rem; margin-bottom: 6px; color: #1a1a1a; display: flex; align-items: center; gap: 8px; }
.contact-info-block h3 .material-icons { font-size: 20px; color: #f0a500; }
.contact-info-block p, .contact-info-block a { color: #666; font-size: .9rem; text-decoration: none; line-height: 1.6; display: block; }
.contact-info-block a { color: #f0a500; font-weight: 700; font-size: 1.1rem; }
.contact-box { background: #f5f5f5; padding: 20px; border-radius: 8px; border-left: 4px solid #f0a500; }
.contact-box p { color: #444; font-size: .9rem; line-height: 1.7; }
.alert-success { background: #d4edda; color: #155724; padding: 15px 20px; border-radius: 6px; margin-bottom: 25px; font-size: .95rem; }
.alert-error { background: #f8d7da; color: #721c24; padding: 15px 20px; border-radius: 6px; margin-bottom: 25px; font-size: .95rem; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 30px; }
    .about-img { height: 260px; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    nav { padding: 12px 20px; flex-wrap: wrap; height: auto; gap: 10px; }
    .nav-links { gap: 12px; font-size: .85rem; }
    .hero { padding: 40px 20px; min-height: 380px; }
    .hero h1 { font-size: 1.9rem; }
    .hero h2 { font-size: 1.1rem; }
    .badges { flex-direction: column; }
    .badge-item { border-right: none; border-bottom: 1px solid #e0e0e0; padding: 16px 20px; }
    .section { padding: 45px 20px; }
    .footer-grid { grid-template-columns: 1fr; }
    footer { padding: 30px 20px 15px; }
    .cta { padding: 40px 20px; }
    .reviews { padding: 40px 20px; }
    .google-badge { padding: 15px 20px; gap: 14px; }
}

/* =============================================
   ANIMATIONS — SCROLL & CHARGEMENT
   ============================================= */

/* États initiaux — éléments cachés avant animation */
.badge-item,
.service-card,
.about-img,
.about-text,
.about-list li,
.review-card,
.gallery-item,
.cta h2, .cta p, .cta .btn-secondary, .cta .cta-phone,
.section-title, .section-subtitle {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

/* Hero — état initial */
.hero-content > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Classe déclenchée par JS */
.vr-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Hero — délais en cascade */
.hero-content h1 { transition-delay: 0.15s; }
.hero-content h2 { transition-delay: 0.30s; }
.hero-content p  { transition-delay: 0.45s; }
.hero-content .btn-primary  { transition-delay: 0.60s; }
.hero-content .btn-secondary { transition-delay: 0.70s; }

/* Badges — cascade */
.badge-item:nth-child(1) { transition-delay: 0.00s; }
.badge-item:nth-child(2) { transition-delay: 0.10s; }
.badge-item:nth-child(3) { transition-delay: 0.20s; }
.badge-item:nth-child(4) { transition-delay: 0.30s; }

/* Services — cascade */
.service-card:nth-child(1) { transition-delay: 0.00s; }
.service-card:nth-child(2) { transition-delay: 0.07s; }
.service-card:nth-child(3) { transition-delay: 0.14s; }
.service-card:nth-child(4) { transition-delay: 0.21s; }
.service-card:nth-child(5) { transition-delay: 0.28s; }
.service-card:nth-child(6) { transition-delay: 0.35s; }
.service-card:nth-child(7) { transition-delay: 0.42s; }

/* About — slide depuis les côtés */
.about-img {
    transform: translateX(-36px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.about-text {
    transform: translateX(36px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.about-img.vr-visible,
.about-text.vr-visible {
    transform: translateX(0) !important;
}

/* About list — cascade */
.about-list li:nth-child(1) { transition-delay: 0.10s; }
.about-list li:nth-child(2) { transition-delay: 0.20s; }
.about-list li:nth-child(3) { transition-delay: 0.30s; }
.about-list li:nth-child(4) { transition-delay: 0.40s; }
.about-list li:nth-child(5) { transition-delay: 0.50s; }
.about-list li:nth-child(6) { transition-delay: 0.60s; }

/* Review cards */
.review-card:nth-child(1) { transition-delay: 0.00s; }
.review-card:nth-child(2) { transition-delay: 0.15s; }

/* Gallery items — cascade */
.gallery-item:nth-child(1) { transition-delay: 0.00s; }
.gallery-item:nth-child(2) { transition-delay: 0.07s; }
.gallery-item:nth-child(3) { transition-delay: 0.14s; }
.gallery-item:nth-child(4) { transition-delay: 0.21s; }
.gallery-item:nth-child(5) { transition-delay: 0.28s; }
.gallery-item:nth-child(6) { transition-delay: 0.35s; }

/* CTA — cascade */
.cta h2        { transition-delay: 0.10s; }
.cta p         { transition-delay: 0.20s; }
.cta .btn-secondary { transition-delay: 0.30s; }
.cta .cta-phone     { transition-delay: 0.40s; }

/* Hover service cards */
.service-card {
    transition: opacity 0.55s ease, transform 0.55s ease,
                box-shadow 0.25s ease;
}
.service-card.vr-visible:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 28px rgba(0,0,0,0.13);
}

/* Gallery items hover */
.gallery-item {
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.gallery-item.vr-visible img {
    transition: transform 0.4s ease;
}
.gallery-item.vr-visible:hover img {
    transform: scale(1.05);
}

/* Accessibilité — désactive tout si l'utilisateur le préfère */
@media (prefers-reduced-motion: reduce) {
    .hero-content > *,
    .badge-item, .service-card, .about-img, .about-text,
    .about-list li, .review-card, .gallery-item,
    .cta h2, .cta p, .cta .btn-secondary, .cta .cta-phone,
    .section-title, .section-subtitle {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}