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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 6rem 0; 
    margin-bottom: 2rem; 
    border-bottom: 1px solid #eee;
}

section:last-child {
    border-bottom: none;
}

/* Section Hero */
.hero {
    position: relative;
    background: url('../img/diagnostic-electricite-1.jpg') no-repeat center center/cover;
    color: #fff;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-bottom: 0; 
    border-bottom: none; 
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInDown 1s ease-out;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.5s;
}

.hero .btn {
    background: #e74c3c;
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
    animation: fadeInUp 1s ease-out 1s;
}

.hero .btn:hover {
    background: #ff6f61;
    transform: scale(1.05);
}

/* Overlay pour assombrir l'image de fond */
.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Overlay sombre */
    z-index: 1;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

/* Section Services */
.services {
    padding: 6rem 0;
    text-align: center;
    background: #fff;
}

.services h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #333;
}

.service-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.service-item {
    flex: 1 1 30%;
    max-width: 350px;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.service-item:hover i {
    color: #e74c3c;
}

.service-item i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #333;
}

.service-item p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .service-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Section À propos */
.about {
    background: #fff; 
    padding: 6rem 0; 
    text-align: center;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #333;
}

/* Sous-section : Présentation de l'entreprise */
.about-entreprise {
    display: flex;
    align-items: center;
    gap: 3rem; 
    margin-bottom: 4rem;
}

.about-text {
    flex: 1;
    text-align: left;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #333;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    max-height: 335px;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Sous-section : Nos atouts */
.about-atouts {
    margin-bottom: 4rem;
}

/* Atouts masqués par défaut */
.hidden-atout {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Atouts affichés avec animation */
.show-atout {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Bouton toggle élégant */
.toggle-atouts-btn {
    margin-top: 2rem;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: #e74c3c;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.toggle-atouts-btn:hover {
    background: #e65a50;
    transform: scale(1.05);
}


.about-atouts h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
    color: #333;
}

.atouts-list {
    display: flex;
    justify-content: center;
    gap: 2rem; 
    flex-wrap: wrap;
}

.atout-item {
    flex: 1 1 30%;
    max-width: 350px;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.atout-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.atout-item:hover i {
    color: #e74c3c;
}

.atout-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333
}

.atout-item h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #333;
}

.atout-item p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Bouton de contact */
.about-contact {
    margin-top: 3rem;
}

.about-contact .btn {
    background: #e74c3c;
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
}

.about-contact .btn:hover {
    background: #e65a50; 
    transform: scale(1.05); 
}

/* Responsive */
@media (max-width: 768px) {
    .about-entreprise {
        flex-direction: column;
        text-align: center;
    }

    .about-text {
        text-align: center;
    }

    .atout-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Section Contact */
.contact {
    padding: 6rem 0;
    background: #f9f9f9; 
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #333;
    text-align: center;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    margin-bottom: 3rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Formulaire de contact */
.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form .form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.contact-form .form-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 1rem;
}

.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 40px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form .form-group textarea {
    height: 150px;
    resize: none;
    padding: 10px;
}

.contact-form .form-group input:focus,
.contact-form .form-group select:focus,
.contact-form .form-group textarea:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
    outline: none;
}

.contact-form .btn {
    background: #e74c3c;
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.contact-form .btn:hover {
    background: #e65a50;
    transform: scale(1.05);
}

/* Conteneur du spinner */
.spinner-container {
    display: none; /* Caché par défaut */
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Animation du spinner */
.spinner {
    width: 30px;
    height: 30px;
    border: 4px solid rgba(231, 76, 60, 0.2);
    border-top: 4px solid #e74c3c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animation rotation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


/* Informations de contact */
.contact-info {
    background: #fff;
    padding: 2rem;
    padding-top: 0;
    border-radius: 10px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #333;
}

.contact-info .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-info .info-item i {
    font-size: 1.5rem;
    color: #333;
    margin-right: 1rem;
}

.contact-info .info-item p {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

.contact-info .info-item a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info .info-item a:hover {
    color: #e74c3c;
}

.contact-info .social-links {
    display: flex;
    gap: 1rem;
}

.contact-info .social-links a {
    color: #333;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.contact-info .social-links a:hover {
    color: #e74c3c;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }
}

