/* ============================================
   JC ELECTRICITÉ — Dark Theme with Animated Shapes
   Colors: Blue #12a2fc, Black #100a0c,
           White #fbfcfb, Yellow #fccd32
   ============================================ */

:root {
    --blue: #12a2fc;
    --blue-dark: #0d7fd4;
    --blue-glow: rgba(18, 162, 252, 0.15);
    --blue-glow-strong: rgba(18, 162, 252, 0.25);
    --black: #100a0c;
    --black-card: #1a1318;
    --black-card-hover: #221a1f;
    --black-lighter: #2a2228;
    --white: #fbfcfb;
    --white-soft: rgba(251, 252, 251, 0.85);
    --white-muted: rgba(251, 252, 251, 0.6);
    --white-faint: rgba(251, 252, 251, 0.35);
    --yellow: #fccd32;
    --yellow-dark: #e5b800;
    --yellow-glow: rgba(252, 205, 50, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.4);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
    --shadow-glow-blue: 0 0 40px rgba(18, 162, 252, 0.2);
    --shadow-glow-yellow: 0 0 40px rgba(252, 205, 50, 0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--white);
    background: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }

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

.highlight {
    color: var(--blue);
}

/* ====================================================
   ANIMATED BACKGROUND SHAPES
   ==================================================== */
.bg-shapes {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-shape {
    position: absolute;
    opacity: 0;
    animation: shapeFloat 20s ease-in-out infinite, shapeFadeIn 2s ease forwards;
}

/* --- Triangles --- */
.bg-shape.triangle {
    width: 0;
    height: 0;
    border-left: 70px solid transparent;
    border-right: 70px solid transparent;
    border-bottom: 120px solid currentColor;
}
.bg-shape.triangle.yellow { color: var(--yellow); opacity: 0.07; }
.bg-shape.triangle.blue   { color: var(--blue);   opacity: 0.08; }
.bg-shape.triangle.white  { color: var(--white);  opacity: 0.04; }

/* --- Diagonals (rotated bars) --- */
.bg-shape.diagonal {
    width: 300px;
    height: 6px;
    border-radius: 3px;
    transform: rotate(-35deg);
}
.bg-shape.diagonal.yellow { background: var(--yellow); opacity: 0.09; }
.bg-shape.diagonal.blue   { background: var(--blue);   opacity: 0.09; }
.bg-shape.diagonal.white  { background: var(--white);  opacity: 0.04; }

/* --- Circles --- */
.bg-shape.circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}
.bg-shape.circle.yellow { background: var(--yellow); opacity: 0.08; }
.bg-shape.circle.blue   { background: var(--blue);   opacity: 0.08; }
.bg-shape.circle.white  { background: var(--white);  opacity: 0.04; }

/* --- Diamonds --- */
.bg-shape.diamond {
    width: 55px;
    height: 55px;
    transform: rotate(45deg);
}
.bg-shape.diamond.yellow { background: var(--yellow); opacity: 0.07; }
.bg-shape.diamond.blue   { background: var(--blue);   opacity: 0.08; }
.bg-shape.diamond.white  { background: var(--white);  opacity: 0.04; }

/* Individual timing offsets — stagger all shapes for variety */
.bg-shape:nth-child(odd)  { animation-duration: 22s, 2s; }
.bg-shape:nth-child(even) { animation-duration: 28s, 2s; }
.bg-shape:nth-child(3n)   { animation-duration: 25s, 2s; }
.bg-shape:nth-child(5n)   { animation-duration: 30s, 2s; }
.bg-shape:nth-child(7n)   { animation-duration: 19s, 2s; }

.bg-shape:nth-child(1)  { animation-delay: 0s, 0.1s; }
.bg-shape:nth-child(2)  { animation-delay: 1.2s, 0.2s; }
.bg-shape:nth-child(3)  { animation-delay: 0.4s, 0.3s; }
.bg-shape:nth-child(4)  { animation-delay: 2.1s, 0.15s; }
.bg-shape:nth-child(5)  { animation-delay: 0.8s, 0.25s; }
.bg-shape:nth-child(6)  { animation-delay: 3.0s, 0.35s; }
.bg-shape:nth-child(7)  { animation-delay: 1.5s, 0.1s; }
.bg-shape:nth-child(8)  { animation-delay: 0.3s, 0.4s; }
.bg-shape:nth-child(9)  { animation-delay: 2.5s, 0.2s; }
.bg-shape:nth-child(10) { animation-delay: 1.0s, 0.45s; }
.bg-shape:nth-child(11) { animation-delay: 3.5s, 0.5s; }
.bg-shape:nth-child(12) { animation-delay: 0.6s, 0.15s; }
.bg-shape:nth-child(13) { animation-delay: 2.0s, 0.55s; }
.bg-shape:nth-child(14) { animation-delay: 4.0s, 0.1s; }
.bg-shape:nth-child(15) { animation-delay: 1.3s, 0.6s; }
.bg-shape:nth-child(16) { animation-delay: 0.1s, 0.25s; }
.bg-shape:nth-child(17) { animation-delay: 2.8s, 0.3s; }
.bg-shape:nth-child(18) { animation-delay: 1.7s, 0.65s; }
.bg-shape:nth-child(19) { animation-delay: 3.2s, 0.1s; }
.bg-shape:nth-child(20) { animation-delay: 0.5s, 0.35s; }
.bg-shape:nth-child(n+21) { animation-delay: 0.9s, 0.2s; }
.bg-shape:nth-child(n+26) { animation-delay: 2.3s, 0.4s; }
.bg-shape:nth-child(n+31) { animation-delay: 1.1s, 0.15s; }
.bg-shape:nth-child(n+36) { animation-delay: 3.7s, 0.5s; }
.bg-shape:nth-child(n+41) { animation-delay: 0.2s, 0.3s; }
.bg-shape:nth-child(n+46) { animation-delay: 2.6s, 0.45s; }

@keyframes shapeFloat {
    0%   { transform: translate(0, 0) rotate(0deg); }
    25%  { transform: translate(30px, -20px) rotate(15deg); }
    50%  { transform: translate(-15px, -40px) rotate(-10deg); }
    75%  { transform: translate(20px, -15px) rotate(8deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* Override transform for diamonds (keep 45deg base) */
.bg-shape.diamond {
    animation-name: shapeDiamondFloat, shapeFadeIn;
}

@keyframes shapeDiamondFloat {
    0%   { transform: rotate(45deg) translate(0, 0); }
    25%  { transform: rotate(60deg) translate(25px, -15px); }
    50%  { transform: rotate(35deg) translate(-10px, -30px); }
    75%  { transform: rotate(55deg) translate(15px, -10px); }
    100% { transform: rotate(45deg) translate(0, 0); }
}

/* Override for diagonals (keep -35deg base) */
.bg-shape.diagonal {
    animation-name: shapeDiagonalFloat, shapeFadeIn;
}

@keyframes shapeDiagonalFloat {
    0%   { transform: rotate(-35deg) translate(0, 0); }
    25%  { transform: rotate(-25deg) translate(20px, -25px); }
    50%  { transform: rotate(-40deg) translate(-20px, -35px); }
    75%  { transform: rotate(-30deg) translate(10px, -15px); }
    100% { transform: rotate(-35deg) translate(0, 0); }
}

@keyframes shapeFadeIn {
    from { opacity: 0; }
    to   { opacity: var(--final-opacity, 0.08); }
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-family: inherit;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

.btn-primary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(18, 162, 252, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white-soft);
    border-color: var(--white-faint);
}

.btn-outline:hover {
    border-color: var(--blue);
    color: var(--blue);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ============ NAVIGATION ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(16, 10, 12, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    border-bottom-color: rgba(255,255,255,0.06);
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo img {
    height: 48px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white-muted);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue);
    border-radius: 1px;
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--blue) !important;
    color: var(--white) !important;
    padding: 10px 24px !important;
    border-radius: var(--radius-xl) !important;
    font-weight: 600 !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
    background: var(--blue-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(18, 162, 252, 0.3) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 72px;
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--blue-glow);
    color: var(--blue);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    margin-bottom: 24px;
    border: 1px solid rgba(18, 162, 252, 0.2);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--white-muted);
    max-width: 500px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    display: inline;
}

.stat-suffix {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--yellow);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--white-faint);
    font-weight: 500;
    margin-top: 2px;
}

.stat-google-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.1);
}

.hero-visual {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.08);
    max-height: 500px;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(18, 162, 252, 0.1), transparent);
    z-index: 1;
    pointer-events: none;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--yellow);
    font-size: 0.8rem;
    font-weight: 500;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ============ SECTION HEADERS ============ */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--blue-glow);
    color: var(--blue);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(18, 162, 252, 0.15);
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--white);
}

.section-header p {
    font-size: 1.05rem;
    color: var(--white-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============ SERVICES ============ */
.services {
    position: relative;
    z-index: 1;
    padding: 120px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.service-card {
    flex: 0 1 calc(33.333% - 16px);
    min-width: 280px;
}

.service-card {
    background: var(--black-card);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.06);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--blue);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow-blue);
    border-color: rgba(18, 162, 252, 0.15);
    background: var(--black-card-hover);
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Featured card (Panneaux solaires) */
.service-card.featured {
    background: linear-gradient(135deg, var(--black-card), rgba(18, 162, 252, 0.08));
    border-color: rgba(18, 162, 252, 0.2);
}

.service-card.featured::before {
    background: var(--yellow);
    transform: scaleX(1);
}

.service-card.featured .service-icon {
    background: var(--yellow-glow);
    color: var(--yellow);
}

.service-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--yellow);
    color: var(--black);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-glow);
    color: var(--blue);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--white-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-features li {
    font-size: 0.85rem;
    color: var(--white-faint);
    padding-left: 20px;
    position: relative;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--blue);
    font-weight: 600;
}

.service-card.featured .service-features li::before {
    color: var(--yellow);
}

/* ============ RÉALISATIONS ============ */
.realisations {
    position: relative;
    z-index: 1;
    padding: 120px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    border: 1px solid rgba(255,255,255,0.06);
}

.gallery-item.gallery-large {
    grid-column: span 2;
    aspect-ratio: 2/1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(16, 10, 12, 0.9), transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-tag {
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 6px 14px;
    background: rgba(18, 162, 252, 0.25);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(18, 162, 252, 0.2);
}

/* ============ À PROPOS ============ */
.about {
    position: relative;
    z-index: 1;
    padding: 120px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(18, 162, 252, 0.03);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content h2 {
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white);
}

.about-content p {
    color: var(--white-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.about-feature-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-glow);
    color: var(--blue);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(18, 162, 252, 0.15);
}

.about-feature strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
    color: var(--white);
}

.about-feature span {
    font-size: 0.85rem;
    color: var(--white-faint);
}

.about-visual {
    position: relative;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.08);
}

.about-image img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.about-badge-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--yellow);
    color: var(--black);
    padding: 20px 28px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-glow-yellow);
}

.badge-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
}

.badge-text {
    font-size: 0.8rem;
    font-weight: 600;
}

/* ============ CONTACT ============ */
.contact {
    position: relative;
    z-index: 1;
    padding: 120px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info h2 {
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--white);
}

.contact-info > p {
    color: var(--white-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 36px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-glow);
    color: var(--blue);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(18, 162, 252, 0.15);
}

.contact-item strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
    color: var(--white);
}

.contact-item a,
.contact-item span {
    font-size: 0.9rem;
    color: var(--white-muted);
}

.contact-item a:hover {
    color: var(--blue);
}

/* Form */
.contact-form-wrapper {
    background: var(--black-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white-soft);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--white);
    background: rgba(255,255,255,0.04);
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--white-faint);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--blue);
    background: rgba(18, 162, 252, 0.05);
    box-shadow: 0 0 0 3px var(--blue-glow);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23fbfcfb' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' opacity='0.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group select option {
    background: var(--black-card);
    color: var(--white);
}

/* ============ FOOTER ============ */
.footer {
    position: relative;
    z-index: 1;
    padding: 80px 0 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.3);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-logo {
    height: 56px;
    width: auto;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--white-faint);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.06);
    color: var(--white-muted);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(18, 162, 252, 0.3);
}

.footer-links h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li,
.footer-links a {
    font-size: 0.85rem;
    color: var(--white-faint);
}

.footer-links a:hover {
    color: var(--blue);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--white-faint);
}

/* ============ GOOGLE REVIEWS ============ */
.reviews-section {
    position: relative;
    z-index: 1;
    padding: 120px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
}

/* Score global Google */
.google-score-badge {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    background: var(--black-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 18px 32px;
    margin-top: 28px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    cursor: pointer;
}

.google-score-badge:hover {
    border-color: rgba(66, 133, 244, 0.35);
    box-shadow: 0 8px 30px rgba(66, 133, 244, 0.12);
    transform: translateY(-2px);
}

.google-g-logo {
    flex-shrink: 0;
}

.google-score-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.google-score-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.google-score-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.google-score-stars {
    color: var(--yellow);
    font-size: 1.25rem;
    letter-spacing: 2px;
    line-height: 1;
}

.google-score-count {
    font-size: 0.8rem;
    color: var(--white-faint);
    font-weight: 500;
}

/* Bandeau défilant */
.reviews-ticker-outer {
    margin-top: 64px;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.reviews-ticker {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: reviewsTicker 50s linear infinite;
}

.reviews-ticker:hover {
    animation-play-state: paused;
}

@keyframes reviewsTicker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Carte d'avis */
.review-card {
    width: 320px;
    flex-shrink: 0;
    background: var(--black-card);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-lg);
    padding: 28px 26px;
    position: relative;
    transition: border-color var(--transition);
}

.review-card:hover {
    border-color: rgba(18, 162, 252, 0.2);
}

.review-card::before {
    content: '\201C';
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 5rem;
    line-height: 1;
    color: var(--blue);
    opacity: 0.12;
    font-family: Georgia, serif;
    pointer-events: none;
}

.review-stars {
    color: var(--yellow);
    font-size: 1.05rem;
    letter-spacing: 3px;
    margin-bottom: 14px;
}

.review-text {
    font-size: 0.875rem;
    color: var(--white-muted);
    line-height: 1.65;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-author::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--blue-glow);
    border: 1px solid rgba(18, 162, 252, 0.25);
    flex-shrink: 0;
}

/* ============ ANIMATIONS ============ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .service-card {
        flex: 0 1 calc(50% - 12px);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-visual {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #100a0c;
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        transform: translateX(100%);
        transition: var(--transition);
        padding: 40px;
        z-index: 999;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.2rem;
        color: var(--white-soft);
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero-visual {
        display: none;
    }

    .hero-scroll {
        display: none;
    }

    .service-card {
        flex: 0 1 100%;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-item.gallery-large {
        grid-column: span 2;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .reviews-section {
        padding: 80px 0;
    }

    .google-score-badge {
        padding: 14px 22px;
        gap: 14px;
    }

    .google-score-number {
        font-size: 1.8rem;
    }

    .reviews-ticker {
        animation-duration: 35s;
    }

    .review-card {
        width: 270px;
        padding: 22px 20px;
    }

    /* Reduce shapes on mobile for performance */
    .bg-shape:nth-child(n+20) {
        display: none;
    }
    .bg-shape.triangle { border-left-width: 45px; border-right-width: 45px; border-bottom-width: 78px; }
    .bg-shape.diagonal { width: 180px; }
    .bg-shape.circle { width: 35px; height: 35px; }
    .bg-shape.diamond { width: 35px; height: 35px; }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item.gallery-large {
        grid-column: span 1;
        aspect-ratio: 16/9;
    }

    .about-badge-card {
        right: 10px;
        bottom: -10px;
    }
}
