/* ==========================
   RESET & BASE STYLES
========================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

/* ==========================
   UTILITIES & ANIMATIONS
========================== */
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-20px); }
    10% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-20px); }
}

@keyframes popIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ==========================
   HEADER & NAVIGATION
========================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 70px;
    height: 80px;
    margin-right: 10px;
    border-radius: 50%;
    object-fit: cover;
}

.logo h1 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    font-size: 17px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #e74c3c;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cta-button1, .cta-button {
    color: #fff;
    padding: 10px 16px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button1 {
    background-color: rgba(255, 166, 0, 0.76);
    font-size: 14px;
}

.cta-button {
    background-color: #e74c3c;
}

.cta-button:hover {
    background-color: #c0392b;
    transform: scale(1.05);
}

/* ==========================
   BANNIERE
========================== */
.banner {
    margin-top: 100px;
}

.banner h1 {
    margin: 0;
    color: #00bfff;
    padding: 40px 0 10px;
    font-size: 36px;
    font-weight: bold;
    text-align: center;
}

/* ==========================
   FORMULAIRE PRINCIPAL
========================== */
.form-container {
    max-width: 1300px;
    margin: 30px auto;
    padding: 0 20px;
}

.form-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.form-left, .form-right {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-height: 950px;
    overflow-y: auto;
}

.form-right .image-container img {
    max-width: 900px;
    width: 100%;
    height: 440px;
    margin: 20px auto;
}


.form-left {
    background: #00bfff;
    color: #2c3e50;
}

.form-left h2 {
    font-size: 26px;
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 10px;
}

.form-group--fullwidth {
    flex: 1 0 100%;
    max-width: 100%;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: auto;
}

.submit-btn {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 14px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
    margin: 20px auto 0;
    display: block;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #1a252f;
}

.form-right {
    background: #fff;
}

.form-right h3 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 15px;
}

.form-right p {
    font-size: 17px;
    line-height: 1.6;
}

/* ==========================
   SECTION CONTACT
========================== */
.contact-section {
    padding: 30px 5%;
    background-color: #fff;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-title {
    font-size: 2.5rem;
    color: #115da9;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}

.contact-p {
    text-align: center;
    font-size: 20px;
    margin-bottom: 40px;
}

.contact-container {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-info p {
    color: #555;
    line-height: 1.6;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.info-icon {
    width: 40px;
    height: 40px;
    margin-right: 20px;
    margin-top: 5px;
}

.info-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.info-text p:first-child {
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.info-text p:last-child {
    color: #555;
    margin: 5px 0 0;
}

/* Formulaire de contact */
.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    font-size: 25px;
    margin-bottom: 20px;
}

.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.contact-form .form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-button {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    margin: 20px auto 0;
}

.submit-button:hover {
    background-color: #c0392b;
}

/* ==========================
   MODALE
========================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.6);
}

.modal-content {
    position: relative;
    max-width: 650px;
    margin: 5% auto;
    padding: 25px 30px;
    background: #fff;
    border-radius: 12px;
    line-height: 1.6;
    text-align: left;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    animation: popIn 0.3s ease;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    transition: 0.2s;
}

.close:hover {
    color: #333;
}

.modal-content h2 {
    text-align: center;
    color: #0c5ca8;
    margin-bottom: 20px;
}

.modal-content p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

.modal-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.modal-content ul li {
    margin-bottom: 10px;
    list-style: none;
    position: relative;
}

.modal-content ul li::before {
    content: "✔";
    color: #28a745;
    position: absolute;
    left: -20px;
}

.btn-devis {
    display: block;
    margin: 25px auto 0;
    background: #e74c3c;
    color: #fff;
    padding: 12px 28px;
    border-radius: 25px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
    font-size: 16px;
}

.btn-devis:hover {
    background: #c0392b;
    transform: scale(1.05);
}

/* ==========================
   FOOTER
========================== */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #fff;
}

.footer-column p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
    color: #bdc3c7;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    color: #fff;
    font-size: 20px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #00bfff;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    padding-top: 20px;
    margin-top: 20px;
}

/* ==========================
   RESPONSIVE DESIGN
========================== */
@media (max-width: 900px) {
    /* Header */
    header {
        flex-direction: column;
        gap: 15px;
        padding: 10px 3%;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    nav ul li {
        margin: 0;
    }

    /* Formulaire */
    .form-content {
        flex-direction: column;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .form-group {
        min-width: 100%;
        margin-bottom: 15px;
    }

    /* Contact */
    .contact-container {
        flex-direction: column;
    }
    .contact-form {
        margin-top: 30px;
    }

    /* Modale */
    .modal-content {
        margin: 10px;
        padding: 20px;
    }
}

@media (max-width: 600px) {
    /* Header */
    .logo img {
        width: 50px;
        height: 60px;
    }
    .logo h1 {
        font-size: 20px;
    }
    nav ul li a {
        font-size: 15px;
    }

    /* Bannière */
    .banner h1 {
        font-size: 28px;
    }

    /* Formulaire */
    .form-left, .form-right {
        padding: 15px;
    }
    .submit-btn {
        padding: 12px;
        font-size: 15px;
    }

    /* Contact */
    .contact-title {
        font-size: 2rem;
    }
    .contact-p {
        font-size: 18px;
    }
}
