/* Fichier: css/style.css */

/* --- RESET & GÉNÉRAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif; /* Corps de texte */
    line-height: 1.7;
    color: #333;
    background-color: #f8f9fa; /* Fond légèrement gris clair */
}

main {
    padding-top: 80px; /* Espace pour le header fixe */
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif; /* Titres */
    color: #1a1a1a;
    margin-bottom: 15px;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.6em; }

a {
    text-decoration: none;
    color: #2196F3; /* Bleu de la carte de visite */
    transition: color 0.3s ease;
}

a:hover {
    color: #1976D2; /* Bleu plus foncé au survol */
}

ul {
    list-style: none;
}

/* --- HEADER & NAVIGATION --- */
header {
    background: #ffffff;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.sticky {
    padding: 10px 5%;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2em;
    font-weight: 700;
    color: #E53935; /* Rouge de la carte de visite */
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: #333;
    font-weight: 600;
    padding: 10px 0;
    display: block;
}

nav ul li a:hover {
    color: #E53935; /* Rouge au survol */
}

.cta-button-nav {
    background-color: #2196F3; /* Bleu de la carte de visite */
    color: white !important;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button-nav:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
}

/* --- SECTIONS GÉNÉRALES --- */
section {
    padding: 80px 5%; /* Plus d'aération */
    max-width: 1200px;
    margin: 0 auto;
}

.section-intro {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555;
}

/* Animation au défilement */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- HERO CLEAN (Nouvelle Devanture) --- */
.hero-clean {
    background-color: #ffffff; /* Fond blanc pour un look épuré */
    text-align: center;
    padding: 120px 5% 80px 5%; /* Plus d'espace vertical */
    border-bottom: 5px solid #2196F3; /* Bordure bleue, plus institutionnelle */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 0;
}

.hero-content-clean .tagline {
    font-size: 0.9em;
    color: #E53935; /* Rouge pour mettre en évidence la localisation */
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.hero-content-clean h1 {
    font-size: 3.5em;
    color: #333; 
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content-clean .summary-text {
    font-size: 1.2em;
    color: #555;
    max-width: 800px;
    margin: 0 auto 40px;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.cta-button-primary-alt {
    background-color: #E53935; /* Rouge pour l'action principale (l'urgence IT) */
    color: white !important;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cta-button-primary-alt:hover {
    background-color: #C62828; 
    transform: translateY(-2px);
}

.cta-button-secondary-alt {
    background-color: transparent;
    color: #2196F3 !important; /* Texte bleu */
    border: 2px solid #2196F3;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    transition: all 0.3s ease;
}

.cta-button-secondary-alt:hover {
    background-color: #2196F3;
    color: white !important;
    transform: translateY(-2px);
}

.cta-button-primary-alt i, .cta-button-secondary-alt i {
    margin-right: 10px;
}

.diagnostic-tag-clean {
    background-color: #FFC107; /* Jaune/orange */
    color: #333;
    font-weight: 700;
    padding: 10px 25px;
    border-radius: 5px;
    display: inline-block;
    font-size: 1em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.diagnostic-tag-clean i {
    margin-right: 8px;
    color: #E53935;
}


/* --- SECTION SERVICES INTERMÉDIAIRE --- */
.services-intermediate {
    background-color: #f8f9fa; /* Fond légèrement gris pour séparer du blanc du Hero */
    text-align: center;
    padding: 40px 5%; /* Moins de padding que les autres sections */
}

.services-intermediate h2 {
    color: #2196F3;
    margin-bottom: 30px;
    font-size: 1.8em;
}

/* Règle générale des services-overview */
.services-overview {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; 
}

/* Style des cartes d'icônes dans cette section */
.service-icon-card {
    background: white; /* Fond blanc pour cette version */
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    color: #333;
    width: 230px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.service-icon-card:hover {
    transform: translateY(-4px);
    background-color: #f0f0f0;
}

.service-icon-card i {
    font-size: 3em; 
    margin-bottom: 15px;
    color: #E53935; /* Icônes en rouge */
}

.service-icon-card p {
    font-weight: 600;
    font-size: 1em;
    line-height: 1.3;
}


/* --- SECTION QUI SOMMES-NOUS (Présentation) --- */
.presentation-section {
    text-align: center;
    background-color: #ffffff;
    padding: 80px 5%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.presentation-section h2 {
    color: #2196F3; /* Bleu */
    margin-bottom: 20px;
}

.card-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: white;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    flex: 1;
    text-align: left;
    border-top: 4px solid #FFC107; /* Bordure jaune/orange */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card i {
    font-size: 2.5em;
    color: #E53935; /* Rouge */
    margin-bottom: 20px;
    display: block;
    text-align: center;
}

.card h3 {
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.card p {
    font-size: 0.95em;
    color: #555;
    text-align: center;
}

/* --- SECTION APPEL À L'ACTION --- */
.call-to-action {
    background: linear-gradient(45deg, #99ccf9, #389cff); /* Dégradé bleu */
    color: white;
    text-align: center;
    padding: 80px 5%;
    border-radius: 10px;
    margin-top: 50px;
}

.call-to-action h2 {
    color: white;
    margin-bottom: 25px;
    font-size: 2.5em;
}

.call-to-action p {
    font-size: 1.2em;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-email-large {
    display: inline-block;
    background-color: #E53935; /* Rouge */
    color: white;
    padding: 18px 45px;
    font-size: 1.5em;
    font-weight: 700;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.cta-email-large:hover {
    background-color: #C62828; /* Rouge plus foncé */
    transform: translateY(-3px);
}

.cta-email-large i {
    margin-right: 15px;
}

/* --- PAGES SERVICES & WEB (Styles Génériques) --- */
.page-header-alt {
    text-align: center;
    background: linear-gradient(45deg, #99ccf9, #389cff); /* Dégradé jaune/orange */
    color: white;
    padding: 80px 5%;
    margin: -60px auto 40px;
    border-bottom: 5px solid #E53935; /* Bordure rouge */
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-header-alt h1 {
    color: white;
    font-size: 3em;
}

.page-header-alt p {
    font-size: 1.2em;
    max-width: 900px;
    margin: 20px auto 0;
}

.service-category, .process-section {
    background-color: #ffffff;
    padding: 60px 5%;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.service-category h2, .process-section h2 {
    color: #2196F3; /* Bleu */
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-section-title {
    font-size: 1em;
    margin-right: 15px;
    color: #E53935; /* Rouge pour l'icône */
}

.service-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
    gap: 30px;
    margin-top: 30px;
}

.service-item {
    flex: 1;
    min-width: 300px; 
    max-width: 350px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
    border-left: 5px solid #E53935; /* Bordure rouge */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-item:hover {
    transform: translateY(-7px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.service-icon-card-small {
    font-size: 3em;
    color: #FFC107; /* Jaune/orange */
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.service-item:hover .service-icon-card-small {
    color: #E53935; /* Rouge au survol */
}

.service-item h3 {
    color: #333;
    font-size: 1.4em;
    margin-bottom: 15px;
}

.service-item p {
    font-size: 0.95em;
    color: #555;
}


.cta-email-service {
    display: block;
    width: fit-content;
    margin: 60px auto 0; 
    text-align: center;
    background-color: #E53935; /* Rouge */
    color: white;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 1.3em;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cta-email-service:hover {
    background-color: #C62828; /* Rouge plus foncé */
    transform: translateY(-3px);
}

.cta-email-service i {
    margin-right: 10px;
}


/* Process Steps for Web Page */
.process-step {
    display: flex;
    align-items: center; 
    margin-bottom: 30px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
    border-left: 5px solid #2196F3; /* Bordure bleue */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.step-icon {
    font-size: 3em;
    color: #FFC107; /* Jaune/orange */
    margin-right: 30px;
    min-width: 60px; 
    text-align: center;
    transition: color 0.3s ease;
}
.process-step:hover .step-icon {
    color: #E53935; /* Rouge au survol */
}

.step-content h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.5em;
}

.step-content p {
    font-size: 1em;
    color: #555;
}


/* --- FOOTER --- */
footer {
    background: #333;
    color: white;
    padding: 40px 5%;
    font-size: 0.9em;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.contact-info p {
    margin: 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
}

.contact-info i {
    margin-right: 10px;
    color: #FFC107; /* Jaune/orange pour les icônes */
}

.contact-info a {
    color: white;
    text-decoration: underline;
}

.contact-info a:hover {
    color: #FFC107;
}

.copyright {
    margin-top: 20px;
    font-size: 0.85em;
    color: #bbb;
}


/* --- MEDIA QUERIES --- */
@media (max-width: 992px) {
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.4em; }

    header {
        flex-direction: column;
        text-align: center;
        padding: 10px 5%;
    }
    .logo {
        margin-bottom: 10px;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    nav ul li {
        margin: 5px 10px;
    }
    
    /* Responsive Hero Clean */
    .hero-content-clean h1 {
        font-size: 2.5em;
    }
    .hero-content-clean .summary-text {
        font-size: 1.1em;
    }
    .hero-cta-group {
        flex-direction: column;
        gap: 15px;
    }
    .cta-button-primary-alt, .cta-button-secondary-alt {
        width: 80%;
        max-width: 350px;
        margin: 0 auto;
    }
    
    /* Responsive Sections */
    .card-container, .services-overview {
        flex-direction: column;
        gap: 25px;
        align-items: center;
    }

    .card, .service-item, .service-icon-card {
        max-width: 100%;
        width: 90%; 
    }
    .process-step {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .step-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    .cta-email-large, .cta-email-service {
        width: 100%;
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .contact-info p {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .contact-info i {
        margin-right: 0;
        margin-bottom: 5px;
    }
}

@media (max-width: 576px) {
    h1 { font-size: 1.8em; }
    h2 { font-size: 1.5em; }
    .hero-content-clean h1 {
        font-size: 2em;
    }
    .diagnostic-tag-clean {
        font-size: 1em;
        padding: 10px 20px;
    }
    .page-header-alt h1 {
        font-size: 2em;
    }
}

/* --- STYLES SPÉCIFIQUES AU FORMULAIRE DE DEVIS (devis-web.html) --- */

.form-container {
    padding: 50px 5%; /* Plus de padding */
    max-width: 900px;
    margin: 40px auto;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); /* Ombre plus marquée */
}

.devis-form fieldset {
    border: 1px solid #ddd;
    padding: 35px;
    margin-bottom: 35px;
    border-radius: 10px;
    background-color: #fcfcfc;
}

.devis-form legend {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em; /* Plus grand */
    font-weight: 700;
    color: #2196F3; /* Bleu pour le titre de section */
    padding: 0 15px;
    margin-left: -5px; /* Pour un meilleur alignement visuel */
}

.devis-form legend i {
    color: #E53935; /* Rouge pour l'icône */
    margin-right: 10px;
}

.form-group {
    margin-bottom: 25px;
    padding: 10px 0;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 1.05em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 14px; /* Plus grand */
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    background-color: white;
}

.form-group textarea {
    min-height: 120px;
}

/* Styles pour les groupes Radio/Checkbox */
.radio-group, .checkbox-group {
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 6px;
    background-color: #f7f7f7;
}
.radio-group > div, .checkbox-group > div {
    margin-bottom: 10px;
}
.radio-group label, .checkbox-group label {
    font-weight: 400; /* Moins de gras pour les options */
    margin-left: 5px;
}

.form-group input[type="radio"],
.form-group input[type="checkbox"] {
    margin-right: 5px;
    transform: scale(1.1);
    accent-color: #E53935; /* Couleur d'accent rouge */
}

.small-label {
    display: block;
    font-size: 0.9em;
    font-style: italic;
    color: #666;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 400 !important;
}

/* Bouton de Soumission */
.form-actions {
    text-align: center;
    margin-top: 50px;
}

.cta-submit {
    background-color: #FFC107; /* Jaune/Orange */
    color: #333;
    padding: 18px 45px; /* Plus grand et plus visible */
    border: none;
    border-radius: 8px;
    font-size: 1.3em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cta-submit:hover {
    background-color: #FFAB00;
    transform: translateY(-2px);
}

.cta-submit i {
    margin-right: 10px;
    color: #E53935; /* Icône rouge */
}

/* Message de Succès */
.hidden {
    display: none;
}

.success-message {
    text-align: center;
    padding: 40px;
    border: 2px solid #28a745; /* Bordure verte */
    background-color: #e6ffe6; /* Fond vert très clair */
    border-radius: 10px;
}

.success-message h2 {
    color: #28a745;
    font-size: 2em;
}

.success-message i {
    margin-right: 10px;
}

.success-message p {
    font-size: 1.1em;
    margin: 20px 0;
}
.small-instruction {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 30px !important;
}
.primary-back {
    background-color: #2196F3;
    color: white;
    margin-top: 20px;
}
.primary-back:hover {
    background-color: #1976D2;
}

/* Media Queries pour le formulaire */
@media (max-width: 768px) {
    .form-container {
        padding: 30px 4%;
    }
    .devis-form legend {
        font-size: 1.3em;
    }
    .cta-submit {
        font-size: 1.1em;
        padding: 14px 30px;
        width: 100%;
    }
}