/* =============================================
   VOLTPRO — Style électricien
   Esthétique : Coloré & énergique · jaune/orange/blanc
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --yellow:      #fbbf24;
    --yellow-dark: #f59e0b;
    --orange:      #f97316;
    --orange-dark: #ea580c;
    --bg:          #fffbf0;
    --bg-dark:     #1a1400;
    --bg-section:  #fff8e6;
    --surface:     #ffffff;
    --text:        #1a1400;
    --text-muted:  #6b5c2e;
    --border:      rgba(251,191,36,0.25);

    --grad-main:  linear-gradient(135deg, #fbbf24, #f97316);
    --grad-dark:  linear-gradient(135deg, #1a1400, #2d1f00);
    --grad-hero:  linear-gradient(135deg, #fbbf24 0%, #f97316 50%, #ef4444 100%);

    --font-display: 'Barlow Condensed', sans-serif;
    --font-body:    'Nunito', sans-serif;

    --radius: 14px;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* =============================================
   HEADER
   ============================================= */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 60px;
    transition: all 0.35s;
}

header.scrolled {
    background: rgba(255,251,240,0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(251,191,36,0.12);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 1.7em;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.logo-bolt { font-size: 1em; filter: drop-shadow(0 0 8px #fbbf24); }
.logo-text  { color: var(--text); }

nav { display: flex; gap: 32px; }

nav a {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s;
    letter-spacing: 0.02em;
}

nav a:hover { color: var(--orange); }

.nav-cta {
    background: var(--grad-main);
    color: white;
    font-weight: 700;
    font-size: 0.88em;
    padding: 10px 24px;
    border-radius: 50px;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 4px 20px rgba(249,115,22,0.35);
}

.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }

/* =============================================
   HERO
   ============================================= */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 60px 80px;
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

/* Formes géométriques décoratives */
.hero-shapes { position: absolute; inset: 0; pointer-events: none; }

.shape {
    position: absolute;
    border-radius: 50%;
}

.shape-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(251,191,36,0.22) 0%, transparent 70%);
    top: -200px; right: -100px;
    animation: shapePulse 8s ease-in-out infinite;
}

.shape-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(249,115,22,0.15) 0%, transparent 70%);
    bottom: -100px; right: 200px;
    animation: shapePulse 8s 2.5s ease-in-out infinite;
}

.shape-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(251,191,36,0.1) 0%, transparent 70%);
    top: 200px; left: -50px;
    animation: shapePulse 8s 5s ease-in-out infinite;
}

@keyframes shapePulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.15); }
}

.hero-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 640px;
    animation: fadeUp 0.8s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(251,191,36,0.15);
    border: 1px solid rgba(251,191,36,0.4);
    color: var(--orange-dark);
    font-size: 0.82em;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5em, 7vw, 6em);
    font-weight: 900;
    line-height: 0.95;
    color: var(--text);
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}

.hero-title em {
    font-style: normal;
    background: var(--grad-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.05em;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 40px;
    line-height: 1.75;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
    display: inline-block;
    background: var(--grad-main);
    color: white;
    font-family: var(--font-display);
    font-size: 1.1em;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 16px 36px;
    border-radius: 50px;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 30px rgba(249,115,22,0.35);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(249,115,22,0.5);
}

.btn-secondary {
    display: inline-block;
    background: var(--surface);
    color: var(--text);
    font-family: var(--font-display);
    font-size: 1.1em;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 50px;
    border: 2px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.btn-secondary:hover {
    border-color: var(--yellow);
    box-shadow: 0 4px 20px rgba(251,191,36,0.2);
}

/* Hero badges */
.hero-badge-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-shrink: 0;
    animation: fadeUp 0.8s 0.25s ease both;
}

.hero-badge {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 32px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(251,191,36,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero-badge:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(251,191,36,0.2);
}

.hero-badge.accent {
    background: var(--grad-main);
    border-color: transparent;
    box-shadow: 0 6px 30px rgba(249,115,22,0.3);
}

.hero-badge.accent .badge-num,
.hero-badge.accent .badge-label { color: white; }

.badge-num {
    font-family: var(--font-display);
    font-size: 2.4em;
    font-weight: 900;
    color: var(--orange);
    line-height: 1;
}

.badge-label {
    font-size: 0.8em;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 600;
}

/* =============================================
   SHARED
   ============================================= */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(251,191,36,0.12);
    border: 1px solid rgba(251,191,36,0.35);
    color: var(--orange-dark);
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-tag.light {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.9);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.2em, 4.5vw, 3.5em);
    font-weight: 900;
    line-height: 1.05;
    color: var(--text);
    margin-bottom: 50px;
    letter-spacing: -0.01em;
}

.section-title.white { color: white; }

.highlight {
    background: var(--grad-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-white {
    text-decoration: underline;
    text-decoration-color: var(--yellow);
    text-underline-offset: 6px;
}

/* =============================================
   SERVICES
   ============================================= */
#services {
    padding: 120px 60px;
    background: var(--bg-section);
}

.services-header {
    text-align: center;
    margin-bottom: 0;
}

.services-header .section-title { margin-bottom: 60px; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s, border-color 0.3s;
}

.service-card:nth-child(2).visible { transition-delay: 0.1s; }
.service-card:nth-child(3).visible { transition-delay: 0.2s; }
.service-card:nth-child(4).visible { transition-delay: 0.3s; }

.service-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 50px rgba(249,115,22,0.15);
    border-color: rgba(251,191,36,0.5);
}

.service-card.featured {
    background: var(--grad-main);
    border-color: transparent;
    box-shadow: 0 10px 40px rgba(249,115,22,0.3);
}

.service-card.featured h3,
.service-card.featured p,
.service-card.featured .service-price { color: white; }

.service-card.featured .service-price {
    background: rgba(255,255,255,0.25);
    color: white;
}

.service-icon {
    font-size: 2em;
    margin-bottom: 16px;
    display: block;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.4em;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: 0.01em;
}

.service-card p {
    font-size: 0.92em;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.service-price {
    display: inline-block;
    background: rgba(251,191,36,0.12);
    border: 1px solid rgba(251,191,36,0.3);
    color: var(--orange-dark);
    font-family: var(--font-display);
    font-size: 1.2em;
    font-weight: 900;
    padding: 6px 18px;
    border-radius: 50px;
}

/* =============================================
   TRUST
   ============================================= */
#trust {
    padding: 120px 60px;
    background: var(--grad-dark);
    position: relative;
    overflow: hidden;
}

#trust::before {
    content: '⚡';
    position: absolute;
    font-size: 30em;
    opacity: 0.03;
    top: -100px;
    right: -100px;
    pointer-events: none;
    line-height: 1;
}

.trust-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 80px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.trust-text-block { flex: 1; min-width: 280px; }
.trust-text-block .section-title { margin-bottom: 24px; }

.trust-desc {
    font-size: 1em;
    color: rgba(255,255,255,0.65);
    line-height: 1.8;
    max-width: 480px;
    margin-bottom: 32px;
}

.trust-certifs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.certif {
    background: rgba(251,191,36,0.1);
    border: 1px solid rgba(251,191,36,0.3);
    color: var(--yellow);
    font-size: 0.85em;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
}

.trust-stats {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex-shrink: 0;
}

.stat-item {
    text-align: right;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.stat-item:last-child { border-bottom: none; }

.stat-item.visible { opacity: 1; transform: translateX(0); }
.stat-item:nth-child(2) { transition-delay: 0.15s; }
.stat-item:nth-child(3) { transition-delay: 0.3s; }

.stat-num {
    font-family: var(--font-display);
    font-size: 3.5em;
    font-weight: 900;
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-lbl {
    font-size: 0.85em;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}

/* =============================================
   GALLERY
   ============================================= */
#gallery {
    padding: 120px 60px;
    background: var(--bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-section);
    aspect-ratio: 4/3;
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: unset;
}

.gallery-item.visible { opacity: 1; transform: scale(1); }
.gallery-item:nth-child(2).visible { transition-delay: 0.1s; }
.gallery-item:nth-child(3).visible { transition-delay: 0.2s; }
.gallery-item:nth-child(4).visible { transition-delay: 0.3s; }

.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 12px 16px;
    background: linear-gradient(transparent, rgba(26,20,0,0.75));
    color: white;
    font-size: 0.85em;
    font-weight: 600;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* =============================================
   REVIEWS
   ============================================= */
#reviews {
    padding: 100px 60px;
    background: var(--bg-section);
    text-align: center;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.review-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    transform: translateY(16px);
}

.review-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s;
}

.review-card:nth-child(2).visible { transition-delay: 0.12s; }
.review-card:nth-child(3).visible { transition-delay: 0.24s; }

.review-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 40px rgba(251,191,36,0.15);
}

.review-stars {
    color: var(--yellow);
    font-size: 1.2em;
    margin-bottom: 14px;
    letter-spacing: 2px;
}

.review-card p {
    font-size: 0.95em;
    color: var(--text-muted);
    line-height: 1.75;
    font-style: italic;
    margin-bottom: 16px;
}

.review-author {
    font-size: 0.85em;
    font-weight: 700;
    color: var(--orange-dark);
}

/* =============================================
   CONTACT
   ============================================= */
#contact {
    padding: 120px 60px;
    background: var(--bg);
}

.contact-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 80px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.contact-left { flex: 1; min-width: 260px; }
.contact-left .section-title { margin-bottom: 36px; }

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cd-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    opacity: 0;
    transform: translateX(-12px);
}

.cd-item.visible {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.cd-item:nth-child(2) { transition-delay: 0.08s; }
.cd-item:nth-child(3) { transition-delay: 0.16s; }
.cd-item:nth-child(4) { transition-delay: 0.24s; }

.cd-icon {
    font-size: 1.3em;
    width: 40px; height: 40px;
    background: rgba(251,191,36,0.12);
    border: 1px solid rgba(251,191,36,0.3);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.cd-item strong {
    display: block;
    font-size: 0.78em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text);
    margin-bottom: 2px;
}

.cd-item p {
    font-size: 0.92em;
    color: var(--text-muted);
}

/* FORM */
.contact-right { flex: 1; min-width: 280px; }

form { display: flex; flex-direction: column; gap: 18px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group { display: flex; flex-direction: column; gap: 7px; }

.form-group label {
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

form input,
form textarea,
form select {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 14px 18px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95em;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
    width: 100%;
    appearance: none;
}

form input::placeholder,
form textarea::placeholder { color: rgba(107,92,46,0.4); }

form input:focus,
form textarea:focus,
form select:focus {
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(251,191,36,0.15);
}

form textarea { min-height: 140px; resize: vertical; }

form .btn-primary {
    align-self: flex-start;
    border: none;
    cursor: pointer;
    font-size: 1.05em;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    background: var(--bg-dark);
    padding: 50px 60px 28px;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 24px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.6em;
    font-weight: 900;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-nav { display: flex; gap: 28px; }

.footer-nav a {
    font-size: 0.88em;
    color: rgba(255,255,255,0.5);
    transition: color 0.2s;
}

.footer-nav a:hover { color: var(--yellow); }

.footer-social { display: flex; gap: 20px; }

.footer-social a {
    font-size: 0.85em;
    font-weight: 600;
    color: rgba(255,255,255,0.45);
    transition: color 0.2s;
}

.footer-social a:hover { color: var(--yellow); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.82em;
    color: rgba(255,255,255,0.3);
}

.footer-bottom a {
    color: rgba(255,255,255,0.4);
    transition: color 0.2s;
}

.footer-bottom a:hover { color: var(--yellow); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
    header { padding: 16px 24px; }
    nav { display: none; }

    #home { padding: 110px 24px 60px; }
    .hero-inner { flex-direction: column; }
    .hero-badge-group { flex-direction: row; flex-wrap: wrap; }
    .hero-badge { flex: 1; min-width: 120px; }

    #services, #trust, #gallery, #reviews, #contact { padding: 80px 24px; }

    .trust-container { flex-direction: column; gap: 48px; }
    .trust-stats { width: 100%; }
    .stat-item { text-align: left; }

    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .gallery-item.large { grid-column: span 2; aspect-ratio: 4/3; }

    .contact-wrapper { flex-direction: column; gap: 48px; }
    .form-row { grid-template-columns: 1fr; }

    footer { padding: 40px 24px 24px; }
    .footer-top { flex-direction: column; align-items: flex-start; }
    .footer-nav { flex-wrap: wrap; gap: 16px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item.large { grid-column: span 1; }
}