/*
Theme Name: TraceDetect
Theme URI: https://example.com/tracedetect
Author: TraceDetect
Author URI: https://example.com
Description: Theme WordPress vitrine pour la detection de reseaux souterrains.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: tracedetect
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #1a2a3a;
    font-family: "Segoe UI", Roboto, sans-serif;
}

:root {
    --primary: #0B3B5B;
    --primary-light: #1a4f73;
    --secondary: #F39C12;
    --secondary-dark: #e67e22;
    --accent: #5D6D7E;
    --light: #F8F9F9;
    --success: #2ECC71;
    --text-dark: #2C3E50;
    --gray-light: #ecf0f1;
}

.site-wrapper {
    max-width: 1400px;
    margin: 30px auto;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.header {
    background: var(--primary);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid var(--secondary);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary), #f1c40f);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.logo-text h1 {
    color: white;
    font-size: 24px;
    font-weight: 800;
}

.logo-text span {
    color: var(--secondary);
    font-size: 11px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--secondary);
}

.btn-devis {
    background: var(--secondary);
    color: var(--primary) !important;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 700;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide1 {
    background-image: linear-gradient(rgba(11, 59, 91, 0.6), rgba(11, 59, 91, 0.6)), url("https://images.unsplash.com/photo-1581094288338-2314dddb7ece?w=1400&h=600&fit=crop");
    background-size: cover;
    background-position: center;
}

.slide2 {
    background-image: linear-gradient(rgba(11, 59, 91, 0.6), rgba(11, 59, 91, 0.6)), url("https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?w=1400&h=600&fit=crop");
    background-size: cover;
    background-position: center;
}

.slide3 {
    background-image: linear-gradient(rgba(11, 59, 91, 0.6), rgba(11, 59, 91, 0.6)), url("https://images.unsplash.com/photo-1541888946425-d81bb19240f5?w=1400&h=600&fit=crop");
    background-size: cover;
    background-position: center;
}

.slide4 {
    background-image: linear-gradient(rgba(11, 59, 91, 0.6), rgba(11, 59, 91, 0.6)), url("https://images.unsplash.com/photo-1581091226033-d5c48150dbaa?w=1400&h=600&fit=crop");
    background-size: cover;
    background-position: center;
}

.slide-content {
    position: absolute;
    bottom: 25%;
    left: 10%;
    color: white;
    max-width: 550px;
}

.slide-content h2 {
    font-size: 48px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.slide-btn {
    background: var(--secondary);
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.3s;
}

.slide-btn:hover {
    transform: scale(1.05);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    transition: background 0.3s;
    z-index: 10;
}

.slider-btn:hover {
    background: var(--secondary);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.dot.active {
    background: var(--secondary);
    width: 30px;
    border-radius: 10px;
}

.services {
    padding: 80px 40px;
    background: var(--light);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 38px;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title h2:after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: var(--secondary);
    margin: 15px auto 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(11, 59, 91, 0.15);
}

.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-content {
    padding: 25px;
}

.service-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--secondary);
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--accent);
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    margin: 15px 0;
}

.service-features li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.service-features i {
    color: var(--success);
}

.service-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}

.stats {
    background: var(--primary);
    padding: 60px 40px;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--secondary);
}

.gallery {
    padding: 80px 40px;
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
    cursor: pointer;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px;
    color: white;
}

.realisations {
    padding: 80px 40px;
    background: var(--light);
}

.realisations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.realisation-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.realisation-card:hover {
    transform: translateY(-5px);
}

.realisation-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.realisation-content {
    padding: 20px;
}

.realisation-badge {
    display: inline-block;
    background: var(--success);
    color: white;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
}

.testimonials {
    padding: 80px 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.stars {
    color: #ffd700;
    margin: 15px 0;
    font-size: 18px;
}

.cta {
    padding: 80px 40px;
    background: var(--secondary);
    text-align: center;
}

.cta h2 {
    font-size: 42px;
    color: var(--primary);
    margin-bottom: 20px;
}

.btn-cta {
    background: var(--primary);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    margin-top: 20px;
    transition: transform 0.3s;
}

.btn-cta:hover {
    transform: scale(1.05);
}

.forms-section {
    padding: 80px 40px;
    background: var(--light);
}

.forms-section-contact {
    background: white;
}

.forms-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.form-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.site-form {
    display: block;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-field label {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid #d7dee5;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    color: var(--text-dark);
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.2);
}

.form-submit {
    margin-top: 20px;
    background: var(--secondary);
    color: var(--primary);
    border: none;
    border-radius: 999px;
    padding: 14px 28px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.form-submit:hover {
    transform: translateY(-2px);
    background: var(--secondary-dark);
    color: white;
}

.form-alert {
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-weight: 600;
}

.form-alert-success {
    background: rgba(46, 204, 113, 0.15);
    color: #1e8e50;
    border: 1px solid rgba(46, 204, 113, 0.45);
}

.form-alert-error {
    background: rgba(231, 76, 60, 0.12);
    color: #b9382b;
    border: 1px solid rgba(231, 76, 60, 0.4);
}

.footer {
    background: #1E2B3A;
    color: #95A5A6;
    padding: 60px 40px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #95A5A6;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .services-grid,
    .realisations-grid,
    .testimonials-grid,
    .stats-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .header {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu,
    .nav-menu ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .slider-container {
        height: 450px;
    }

    .slide-content h2 {
        font-size: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .forms-section {
        padding: 60px 20px;
    }

    .form-card {
        padding: 22px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}
