/* ===== RESET ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    color: #1f2937;
    background: #f8fafc;
    line-height: 1.6;
}

/* ===== CONTAINER ===== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* ===== LINKS ===== */

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===== HEADER ===== */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
}

.logo img {
    height: 55px;
    width: auto;
}

.navigation ul {
    display: flex;
    align-items: center;
    gap: 35px;
}

.navigation a {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    transition: 0.3s;
}

.navigation a:hover {
    color: #2563eb;
}

/* ===== HERO ===== */

.hero {
    padding: 100px 0;
    background: linear-gradient(
        135deg,
        #2563eb 0%,
        #1d4ed8 100%
    );
    color: white;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero p {
    font-size: 19px;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.9);
}

/* ===== BUTTONS ===== */

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-primary {
    background: #22c55e;
    color: white;
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.25);
}

.btn-primary:hover {
    background: #16a34a;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #2563eb;
    color: white;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

.btn-secondary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.btn-primary,
.btn-secondary {
    width: 100%;
}

/* ===== SECTION TITLES ===== */

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 15px;
}

.section-title p {
    color: #6b7280;
    max-width: 700px;
    margin: auto;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {

    .header .container {
        flex-direction: column;
        padding: 20px;
    }

    .navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .hero {
        padding: 70px 0;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 17px;
    }

}
/* ===== DEVIS SECTION ===== */

.devis-section {
    padding: 90px 0;
    background: #ffffff;
}

/* ===== FORM ===== */

.devis-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

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

.full-width {
    grid-column: 1 / -1;
}

/* ===== LABELS ===== */

.form-group label {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
}

/* ===== INPUTS ===== */

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    font-size: 15px;
    color: #111827;
    transition: all 0.3s ease;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* ===== PLACEHOLDER ===== */

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

/* ===== CHECKBOXES ===== */

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    cursor: pointer;
    transition: 0.3s;
}

.checkbox-item:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #2563eb;
}

/* ===== AUTOCOMPLETE ===== */

.autocomplete-results {
    position: absolute;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    margin-top: 5px;
}

.autocomplete-item {
    padding: 14px 18px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: 0.2s;
}

.autocomplete-item:hover {
    background: #eff6ff;
    color: #2563eb;
}

.form-group {
    position: relative;
}

/* ===== RESULT BOX ===== */

.result-box {
    grid-column: 1 / -1;
    padding: 30px;
    border-radius: 18px;
    background: linear-gradient(
        135deg,
        #eff6ff,
        #ffffff
    );
    border: 2px solid #bfdbfe;
    text-align: center;
}

.result-box h3 {
    font-size: 24px;
    color: #111827;
    margin-bottom: 15px;
}

#estimatedPrice {
    font-size: 38px;
    font-weight: 800;
    color: #22c55e;
    margin-bottom: 10px;
}

.result-box small {
    color: #6b7280;
    display: block;
}

/* ===== DISCLAIMER ===== */

.disclaimer {
    text-align: center;
    margin-top: 15px;
    color: #6b7280;
    font-size: 14px;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 992px) {

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

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: auto;
    }

}

@media (max-width: 768px) {

    .devis-form {
        padding: 25px;
    }

    #estimatedPrice {
        font-size: 30px;
    }

}
/* ===== SERVICES SECTION ===== */

.services-section {
    padding: 90px 0;
    background: #f8fafc;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: #ffffff;
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.10);
}

.service-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 15px;
}

.service-card p {
    color: #6b7280;
    font-size: 15px;
}

/* ===== FAQ ===== */

.faq-section {
    padding: 90px 0;
    background: #ffffff;
}

.faq-container {
    max-width: 850px;
    margin: auto;
}

.faq-item {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: #2563eb;
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 25px;
    text-align: left;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    cursor: pointer;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 25px 25px;
    color: #6b7280;
    line-height: 1.7;
}

/* ===== FOOTER ===== */

.footer {
    background: #111827;
    color: #ffffff;
    padding-top: 70px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-column p,
.footer-column a,
.footer-column li {
    color: #d1d5db;
    margin-bottom: 12px;
    line-height: 1.7;
    transition: 0.3s;
}

.footer-column a:hover {
    color: #22c55e;
}

.footer-column ul {
    list-style: none;
}

.footer-bottom {
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 0;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

/* ===== ANIMATIONS ===== */

.service-card,
.faq-item,
.devis-form,
.result-box {
    animation: fadeUp 0.6s ease;
}

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/* ===== RESPONSIVE ===== */

@media (max-width: 1200px) {

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 992px) {

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 768px) {

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

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .faq-question {
        font-size: 16px;
        padding: 20px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .service-icon {
        font-size: 42px;
    }

}

@media (max-width: 480px) {

    .footer {
        padding-top: 50px;
    }

    .footer-bottom {
        font-size: 13px;
    }

}
.final-devis-box {

    display: flex;
    flex-direction: column;
    gap: 15px;

    margin-top: 20px;
    padding: 25px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 12px;

    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.final-devis-box h3 {

    margin: 0;
    color: #1f2937;
}

.final-devis-box p {

    margin: 0;
    color: #6b7280;
}

.final-devis-box input {

    width: 100%;

    padding: 14px;

    border: 1px solid #d1d5db;
    border-radius: 8px;

    font-size: 16px;

    box-sizing: border-box;
}

.final-devis-box input:focus {

    outline: none;

    border-color: #2563eb;

    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.final-devis-box .btn-primary {

    width: 100%;
}