/* Styles généraux */
:root {
    --primary-color: #000; /* Couleur principale (noir) */
    --secondary-color: white; /* Couleur secondaire (blanc) */
    --text-color: #333; /* Couleur du texte (gris foncé) */
    --light-bg: #f9f9f9; /* Couleur de fond claire (gris très clair) */
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* En-tête */
.header {
    background: var(--secondary-color);
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.3rem;
    text-decoration: none;
    color: var(--primary-color);
}

.nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 400;
    margin-left: 25px;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #888;
}

/* Section principale (Hero) */
.hero-section {
    background: url('https://via.placeholder.com/1920x1080') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--secondary-color);
}

.hero-content {
    background: rgba(0, 0, 0, 0.4);
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero-content p {
    font-size: 1.2rem;
}

.btn {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #ddd;
}

/* Sections de contenu */
.content-section {
    padding: 60px 0;
    text-align: center;
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.service-item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* Pied de page */
.footer {
    background: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 1.5rem 0; /* Réduction du padding pour un rendu plus compact */
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--secondary-color);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #aaa;
}

/* Styles pour les animations */
.nav a {
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.nav a.active {
    font-weight: 700;
}

/* Animations pour les sections */
.content-section h2, .content-section p, .service-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.content-section.fade-in h2, .content-section.fade-in p, .content-section.fade-in .service-item {
    opacity: 1; /* Rendre les éléments visibles */
    transform: translateY(0);
}

/* Styles pour les pages de contenu */
.page-content {
    padding-top: 50px; /* Pour éviter que le contenu ne soit caché par l'en-tête fixe */
    min-height: calc(100vh - 100px); /* Pour que le pied de page reste en bas */
    text-align: center;
}

.page-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.logo img {
    height: 40px; /* Ajustez la hauteur selon vos besoins */
    width: auto;
}

/* --- */
/* Styles de la page Tarifs */
.pricing-section {
    padding-top: 120px; /* Espace pour l'en-tête fixe */
    text-align: center;
}

.pricing-section h1 {
    font-size: 1.9rem;
    margin-bottom: 20px; /* Espace entre le titre et le paragraphe */
    padding-bottom: 20px; /* Ajoute de l'espace en bas de la section */
}

.pricing-section p {
    font-size: 1.1rem; /* Taille de police légèrement augmentée */
    color: #666;
    margin-bottom: 30px; /* Espace entre le titre et les cartes */
}

.pricing-cards-container {
    display: flex;
    justify-content: center;
    gap: 30px; /* Espace entre les cartes */
    flex-wrap: wrap; /* Permet aux cartes de passer à la ligne sur les petits écrans */
}

.pricing-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 15px; /* Bords arrondis */
    padding: 10px; /* Réduction du padding pour un look plus compact */
    text-align: center;
    width: 270px; /* Largeur fixe pour un alignement uniforme */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Ombre subtile */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animation au survol */
    position: relative; /* Pour positionner le badge */
    overflow: hidden; /* Pour éviter que le badge ne dépasse */
}

.pricing-card:hover {
    transform: translateY(-10px); /* Légère élévation au survol */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.pricing-card.recommended {
    background-color: #f0f8ff; /* Une couleur de fond qui la distingue */
    border-color: black;
    transform: scale(1.05); /* Légère mise en avant */
}

.pricing-card.recommended:hover {
    transform: translateY(-10px) scale(1.05);
}

.badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background-color: black;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.card-header h2 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.card-header p {
    font-size: 1.5rem;
    color: #888;
    margin-bottom: 20px;
}

.price-value {
    font-size: 2.3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.price-period {
    font-size: 1.2rem;
    color: #888;
}

.card-body {
    text-align: left;
    margin: 30px 0;
}

.card-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-body li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text-color);
}

.check-icon {
    color: #28a745;
    margin-right: 10px;
    font-weight: bold;
}

.btn-primary {
    background-color: black;
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background-color: black;
}

.btn-secondary {
    background-color: #f0f0f0;
    color: var(--primary-color);
    border: 1px solid #ccc;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

/* --- */
/* Styles de la page Contact */
.contact-section {
    padding-top: 120px;
    text-align: center;
}

.contact-section h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.contact-section p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
}

/* --- */
/* Améliorations du formulaire de contact */

.form-container {
    max-width: 700px;
    /* ... le reste des styles est le même */
}

.contact-form .form-row {
    display: flex;
    gap: 20px;
}

.contact-form .form-row .form-group {
    flex: 1;
}

.contact-form label {
    font-size: 0.9rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form input,
.contact-form textarea {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #007bff; /* Couleur de la bordure au focus */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3); /* Ajout d'une ombre légère */
}

.contact-form .btn-primary {
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-form .btn-primary:hover {
    background-color: gray; /* Couleur plus foncée au survol */
    transform: translateY(-2px);
}
/* --- */
/* Styles de la page À propos */
.about-section {
    padding-top: 120px;
    text-align: center;
}

.about-section h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.about-content p {
    margin-bottom: 25px;
}

/* Souligne les mots-clés pour les faire ressortir */
.about-content p strong {
    color: var(--primary-color);
}

/* --- */
/* Styles pour la page Contactez-nous améliorée */

.contact-section {
    padding-top: 120px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

/* Section d'informations de contact */
.contact-info {
    text-align: left;
}

.contact-info h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-info .intro-text {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

.contact-details {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.contact-details h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.contact-details ul {
    list-style: none;
    padding: 0;
}

.contact-details li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #333;
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: black;
}

/* Conteneur du formulaire */
.form-container {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-form .btn-primary:hover {
    background-color: black;
    transform: translateY(-2px);
}

.privacy-note {
    font-size: 0.9rem;
    color: #888;
    text-align: center;
    margin-bottom: 20px;
}

.privacy-note a {
    color: black;
    text-decoration: none;
}

/* Styles pour le texte de la section principale */
/* Section principale (Hero) */
/* Section principale (Hero) */
.hero-section {
    background: black;
    /* Cette propriété est cruciale. Elle définit la hauteur de la section à 100% de la fenêtre. */
    min-height: 100vh; 
    
    /* Le display flex permet de centrer le contenu horizontalement et verticalement */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Conteneur du contenu (titre, texte, bouton) */
.hero-content {
    text-align: center;
    color: white; /* Assurez-vous que le texte est lisible */
    background: rgba(0, 0, 0, 0.4); /* Surcouche pour un meilleur contraste */
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero-content p {
    font-size: 1.2rem;
}

/* Styles pour la grille de fonctionnalités */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    text-align: left;
}

.feature-item h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.feature-item p {
    color: #555;
    line-height: 1.6;
}

.link-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.link-more:hover {
    color: #007bff;
}

/* Styles pour la section de statistiques */
.stats-section {
    padding-top: 100px;
    padding-bottom: 60px; /* Réduction de l'espace en bas de cette section */
    background-color: var(--secondary-color);
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-item {
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 1rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animations d'entrée pour les nouvelles sections */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.content-section.fade-in .fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

.content-section.fade-in .fade-in-up.delay-1 { transition-delay: 0.3s; }
.content-section.fade-in .fade-in-up.delay-2 { transition-delay: 0.6s; }
.content-section.fade-in .fade-in-up.delay-3 { transition-delay: 0.9s; }

/* Styles de la section d'appel à l'action */
.call-to-action {
    background-color: var(--light-bg);
    padding: 300px 0; 
    text-align: center;
    
    /* Centrage parfait du contenu */
    display: flex;
    align-items: center;
    justify-content: center;
}

.call-to-action .container {
    max-width: 800px;
    margin: 0 auto;
}

.call-to-action h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--text-color); /* Assurez-vous que cette couleur est foncée pour la lisibilité */
}

.call-to-action p {
    font-size: 1.0rem;
    color: #555;
    margin: 0 auto 30px;
}

.call-to-action .btn-primary {
    font-size: 1.1rem;
    padding: 15px 30px;
}

/* --- */
/* Styles pour la nouvelle section d'informations */
.info-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--secondary-color); /* Pour qu'elle soit distincte des autres sections */
}

.info-section h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.info-section p {
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

/* --- */
/* Styles pour la page de demande de devis */
.demande-devis-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
}

.demande-devis-section h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.demande-devis-section p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
}

.demande-devis-form {
    width: 100%;
    max-width: 600px;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    text-align: left;
}

.demande-devis-form .form-group {
    margin-bottom: 20px;
}

.demande-devis-form .form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.demande-devis-form .form-group input,
.demande-devis-form .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.demande-devis-form .form-group input:focus,
.demande-devis-form .form-group textarea:focus {
    border-color: #007bff;
    outline: none;
}

.demande-devis-form .btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: black;
    color: white;
    transition: background-color 0.3s ease;
}

.demande-devis-form .btn-primary:hover {
    background-color: black;
}

/* --- */
/* Styles pour la page de demande de devis (uniquement) */
.devis-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh; /* Permet de centrer verticalement le contenu */
    text-align: center;
}

.devis-section h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.devis-section p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
}

/* Le reste du style du formulaire est le même */
.form-container {
    width: 100%;
    max-width: 600px;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    text-align: left;
}

/* Media Queries pour la réactivité */

@media (max-width: 992px) {
    .pricing-cards-container {
        flex-direction: column; /* Les cartes s'affichent les unes en dessous des autres */
        align-items: center; /* Centrage des cartes */
    }

    .pricing-card {
        width: 100%; /* La carte prend la largeur complète */
        max-width: 400px; /* Limite la largeur pour que ça ne soit pas trop grand */
        margin-bottom: 20px; /* Espace entre les cartes */
    }

    .contact-grid {
        grid-template-columns: 1fr; /* Le formulaire et le texte passent sur une seule colonne */
    }
}