/* Global Styles */
html, body {
    margin: 0;
    padding: 0;
    /* height: 100%; Supprimé pour corriger le sticky header */
    overflow: visible !important; /* Assurer que le défilement est visible */
    transform: none !important; /* Désactiver tout contexte d'empilement indésirable */
    perspective: none !important; /* Désactiver tout contexte d'empilement indésirable */
}
:root {
    --primary-color: #ED8D16; /* New primary color for buttons */
    --secondary-color: #2196F3; /* Blue from buttons - kept as is */
    --dark-color: #020817; /* Changed dark text color */
    --light-color: #f4f4f4;
    --white-color: #fff;
    --gray-color: #64748b; /* Changed gray text color */
    --text-dark: #020817;
    --text-light: #64748b; /* Changed light text color */
    --solution-green: #4CAF50; /* Green for heat pump icon */
    --solution-blue: #2196F3; /* Blue for solar panel icon */
    --solution-orange: #f57c00; /* Orange for insulation icon */
    /* Removed gradient variables as requested for solid background */
}

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

body {
    font-family: "system-ui", sans-serif; /* Changed to system-ui font */
    line-height: 1.6;
    color: var(--text-dark);
    background: #FBFCFD; /* Changed body background to match */
    /* display: flex; Supprimé pour corriger le sticky header */
    /* flex-direction: column; Supprimé pour corriger le sticky header */
    overflow: visible !important; /* Assurer que le défilement est visible */
    transform: none !important; /* Désactiver tout contexte d'empilement indésirable */
    perspective: none !important; /* Désactiver tout contexte d'empilement indésirable */
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px; /* Increased max-width for wider content */
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease; /* Changed to background-color */
    border: none;
}

.btn:hover {
    background-color: #d17c14;
}

.btn-primary {
    background: var(--primary-color); /* Use primary color */
    color: var(--white-color);
    border: none;
    padding: 10px 20px; /* Slightly increased vertical padding for more height */
    border-radius: 5px; /* Less rounded corners */
    font-weight: bold;
    font-size: 0.9em; /* Slightly smaller font size */
    /* line-height: 1; Removed as flexbox will handle vertical centering */
    display: flex; /* Enable flexbox for centering content */
    align-items: center; /* Vertically center content */
    justify-content: center; /* Horizontally center content */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #d17c14; /* Darker shade for hover */
    opacity: 1;
}

.btn-secondary {
    background: var(--white-color);
    color: var(--dark-color); /* Dark text */
    border: 1px solid var(--light-color); /* Light grey border */
    padding: 10px 30px; /* Increased horizontal padding for a longer button */
    border-radius: 5px;
    font-weight: normal; /* Less bold */
    font-size: 0.9em; /* Smaller font size */
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for default state */
}

.btn-secondary:hover {
    background-color: var(--primary-color); /* Orange background on hover */
    color: var(--white-color);
    border-color: var(--primary-color); /* Orange border on hover */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Slightly more pronounced shadow on hover */
}

h1,
h2,
h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
}

h2 {
    font-size: 48px; /* Set section titles to 48px */
    margin-bottom: 5px; /* Further reduced margin-bottom */
}

p {
    margin-bottom: 10px;
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 10px auto; /* Further reduced margin-bottom */
    color: var(--text-light);
    font-size: 20px; /* Set section subtitle font size to 20px */
}

/* Header Styles */
.header {
    background: #F0F7FE; /* New background color for header */
    padding: 10px 0; /* Further reduced vertical padding for less height */
    border-bottom: 1px solid var(--light-color);
    position: sticky; /* Rendre le header collant */
    top: 0; /* Le coller en haut */
    z-index: 1000; /* Assurer qu'il reste au-dessus des autres éléments */
    isolation: isolate; /* Crée un nouveau contexte d'empilement */
    margin-bottom: 0 !important; /* Assurer qu'il n'y a pas de marge en bas du header */
    display: block; /* Assurer que le header est un élément de bloc */
    width: 100%; /* Assurer que le header prend toute la largeur */
}

.header .container {
    display: flex;
    justify-content: space-between; /* Space out logo, nav, and button */
    align-items: center;
}

.header .logo img {
    height: 40px;
}

.header .nav {
    /* flex-grow: 1; Uncomment if you want the nav to take up available space */
    justify-content: center; /* Center the navigation links within the nav element */
    display: flex; /* Make nav a flex container */
    align-items: center; /* Vertically align items */
    gap: 30px; /* Space between nav links and button */
}

.header .main-nav-links {
    display: flex; /* Show main nav links on desktop */
    gap: 20px;
}

.header .main-nav-links li a {
    color: var(--text-dark);
    font-weight: 400; /* Set font weight to 400 */
    font-size: 16px; /* Set font size to 16px */
    transition: color 0.3s ease;
}

.header .main-nav-links li a:hover {
    color: var(--primary-color);
}

.header .main-cta-button {
    display: flex; /* Show main CTA button on desktop */
    margin-left: 0; 
}

.mobile-menu-toggle,
.mobile-menu {
    display: none; /* Hide mobile menu elements on desktop by default */
}

.header .nav ul {
    display: flex;
    gap: 20px;
}

.header .nav .btn-primary {
    padding: 8px 15px; /* Smaller padding for reduced height in header */
    font-size: 0.85em; /* Smaller font size for header button */
    margin-left: 0; /* Remove margin-left as gap is used */
}

.header .nav .btn-primary i {
    margin-right: 8px; /* Space between icon and text */
}

/* Icon Overlay for Solution Cards */
.icon-overlay {
    position: absolute;
    top: 25px; /* Adjusted position, less centered */
    left: 25px; /* Adjusted position, less centered */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white-color);
    font-size: 1.8em;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 2; /* Ensure icon stays above the image */
}

.icon-overlay.green-bg {
    background-color: var(--solution-green);
}

.icon-overlay.blue-bg {
    background-color: var(--solution-blue);
}

.icon-overlay.orange-bg {
    background-color: var(--solution-orange);
}

/* Hero Section Styles */
.hero {
    background: #1D3F5E; /* Solid color as requested */
    color: var(--white-color);
    padding: 100px 0;
    text-align: center;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-tagline {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.hero h1 {
    color: var(--white-color);
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2em;
    max-width: 800px;
    margin-bottom: 30px;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-features div {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
}

.hero-features i {
    font-size: 1.5em;
    color: var(--primary-color); /* Use primary color */
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
    max-width: 900px; 
    margin: 50px auto; /* Default margin for hero-stats, centered */
}

.hero-stats div {
    text-align: center;
}

.hero-stats span {
    display: block;
    font-size: 2.5em;
    font-weight: bold;
    color: var(--white-color);
}

/* Stats Banner Section Styles */
.stats-banner {
    background: #1D3F5E; /* Blue background */
    color: var(--white-color);
    padding: 60px 0; /* Padding inside the banner */
    text-align: center;
    margin: 80px 0; /* Centered with vertical margin */
    width: 100vw; /* Pleine largeur de l'écran */
    margin-left: calc(50% - 50vw); /* Centrer la section sur la pleine largeur */
    /* max-width: 1400px; Supprimé pour pleine largeur */
    border-radius: 15px; /* Rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}

.stats-banner .hero-stats {
    /* Override margin to be specific for the banner if needed, but 0 auto already applied above */
    margin-top: 0; /* Ensure no extra top margin within the banner */
    margin-bottom: 0; /* Ensure no extra bottom margin within the banner */
}

/* Solutions Section Styles */
.solutions {
    padding: 80px 0;
    text-align: center;
    background: var(--white-color); /* Changed to white background */
}

.solutions h2 {
    font-size: 48px; /* Set section title to 48px */
    margin-bottom: 5px; /* Further reduced margin-bottom */
}

.solutions .section-description {
    font-size: 20px; /* Set section subtitle font size to 20px */
    max-width: 800px; /* Slightly wider for better readability with larger text */
    margin: 0 auto 10px auto; /* Further reduced margin-bottom */
    color: var(--text-light);
}

.solution-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.solution-cards .card {
    background: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* Slightly more prominent default shadow */
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Add box-shadow to transition */
    position: relative; /* Needed for absolute positioning of icons */
    overflow: hidden; /* Ensure content outside rounded corners is hidden */
}

.solution-cards .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); /* More prominent shadow on hover */
}

.solution-cards .card img {
    width: 100%; /* Make image take full width of the card */
    height: 180px; /* Set a fixed height for panoramic effect */
    object-fit: cover; /* Ensure the image covers the area */
    border-radius: 8px 8px 0 0; /* Apply border-radius only to top corners */
    margin-bottom: 0; /* Remove margin-bottom from image */
    transition: transform 0.3s ease; /* Smooth transition for zoom effect */
}

.solution-cards .card:hover img {
    transform: scale(1.1); /* Zoom effect on hover */
}

.solution-cards .card .card-content {
    padding: 30px; /* Apply padding to the content area */
    padding-top: 20px; /* Adjust top padding for better spacing below image */
}

.solution-cards .card h3 {
    font-size: 20px; /* Set card title font size to 20px */
    margin-top: 0; /* Reset margin-top as padding is now on card-content */
    margin-bottom: 10px; /* Reduced margin-bottom */
    color: var(--dark-color); /* Changed title color to dark */
}

.solution-cards .card .card-content p {
    font-size: 14px; /* Set description paragraph font size to 14px */
    color: var(--text-light);
    margin: 0 0 20px 0; /* Standard margins, no !important */
    padding: 0; /* Standard paddings, no !important */
    text-align: left; /* Ensure left alignment, no !important */
}

.solution-cards .card ul {
    margin-bottom: 15px; /* Reduced margin-bottom for the list */
}

.solution-cards .card ul li {
    margin-bottom: 8px; /* Reduced margin-bottom for list items */
    color: var(--text-light);
    font-size: 14px; /* Set list item font size to 14px */
    position: relative;
    padding-left: 20px; /* Adjusted padding-left for dot */
}

.solution-cards .card ul li::before {
    content: '•'; /* Changed to a simple dot */
    font-family: 'Arial', sans-serif; /* Use a standard font for the dot */
    font-weight: normal; /* Normal weight for the dot */
    color: var(--solution-green); /* Green color for the dot */
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2em; /* Slightly larger dot */
    line-height: 1; /* Align dot vertically */
}

.solution-cards .card .btn-secondary {
    width: 100%; /* Make button take full width */
    display: block; /* Ensure it behaves as a block element */
    text-align: center; /* Center text within the button */
    padding: 8px 20px; /* Reduced vertical padding for less height */
    font-size: 0.9em; /* Smaller font size as requested */
    margin-top: 20px;
}

/* CTA Section Styles */
.cta-banner {
    background: #1D3F5E; /* Solid color as requested */
    color: var(--white-color);
    padding: 60px 20px; /* Added horizontal padding to align content */
    text-align: center;
    margin: 80px 0; /* Centered with vertical margin, no auto for horizontal */
    width: 100vw; /* Pleine largeur de l'écran */
    margin-left: calc(50% - 50vw); /* Centrer la section sur la pleine largeur */
    /* max-width: 1400px; Supprimé pour pleine largeur */
    border-radius: 15px; /* Rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
}

.cta-banner h2 {
    color: var(--white-color);
    font-size: 2.2em;
    margin-bottom: 15px;
}

.cta-banner p {
    font-size: 1.1em;
    margin-bottom: 30px;
}

.cta-banner .btn-primary {
    background: var(--primary-color); /* Orange background by default */
    color: var(--white-color); /* White text */
    border: none;
    padding: 10px 30px; /* Reduced padding for smaller width and height */
    border-radius: 5px; /* Slightly rounded corners */
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease; /* Ensure smooth transition */
    display: inline-flex; /* Make it inline-flex to reduce width */
    align-items: center; /* Vertically center content */
    justify-content: center; /* Horizontally center content */
}

.cta-banner .btn-primary:hover {
    background-color: #d17c14; /* Darker orange on hover */
    color: var(--white-color);
}

/* Why Choose Us Section Styles */
.why-choose-us {
    padding: 80px 0;
    text-align: center;
    background: #FBFCFD; /* New background color */
}

.why-choose-us h2 {
    font-size: 48px; /* Set section title to 48px */
    margin-bottom: 5px; /* Further reduced margin-bottom */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns with equal width */
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 3em;
    color: var(--primary-color); /* Use primary color */
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95em;
}

/* Testimonials Section Styles */
.testimonials {
    padding: 80px 0;
    text-align: center;
    background: var(--white-color); /* Changed back to white background */
}

.testimonials h2 {
    font-size: 48px; /* Set section title to 48px */
    margin-bottom: 5px; /* Further reduced margin-bottom */
}

.testimonial-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    position: relative;
}

.testimonial-card .rating {
    color: #FFD700; /* Gold color for stars */
    margin-bottom: 15px;
    font-size: 1.2em;
}

.testimonial-card .quote {
    font-size: 1.1em;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.testimonial-card .solution-tag {
    display: inline-block;
    background: #e0f7fa;
    color: var(--secondary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.testimonial-card .client-info {
    display: flex;
    flex-direction: column;
    margin-top: 15px;
}

.testimonial-card .client-name {
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.testimonial-card .client-location {
    font-size: 0.9em;
    color: var(--gray-color);
}

.average-rating {
    margin-top: 50px;
    font-size: 1.2em;
    color: var(--text-light);
}

/* Contact Section Styles */
.contact {
    padding: 0 0 80px 0; /* Padding-top à 0, conserve le padding-bottom */
    background: #FBFCFD; /* Changed background color as requested */
}

.contact h2 {
    text-align: center;
    font-size: 48px; /* Set section title to 48px */
    margin-bottom: 5px; /* Further reduced margin-bottom */
}

.contact .section-description {
    margin-bottom: 10px; /* Further reduced margin-bottom */
}

.contact-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; /* Deux colonnes égales */
    gap: 30px !important; /* Espace entre les colonnes */
    margin-top: 50px;
    align-items: start !important;
}

/* Assurer que les informations de contact sont dans la deuxième colonne */
.contact-info {
    grid-column: 2 !important;
}

.contact-form h3 {
    color: var(--primary-color); /* Changé en couleur primaire orange */
    text-align: center; /* Centrer le texte */
    margin-bottom: 30px; /* Add margin-bottom for spacing below the title */
    font-weight: 700; /* Set font weight to 700 */
}

.contact-form {
    grid-column: 1 !important;
    background: var(--white-color);
    padding: 40px; /* Ample padding inside the card */
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); /* More pronounced shadow */
    margin-top: 0; /* No margin-top needed as title is inside */
    width: 100% !important;
    max-width: none !important;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 0; /* Removed gap as requested */
}

.form-group {
    margin-bottom: 24px; /* Space between form groups (adjusted to 24px) */
}

.form-group label {
    display: block;
    font-weight: 500; /* Set font weight to 500 */
    margin-bottom: 8px; /* Space between label and input */
    color: var(--dark-color);
    font-size: 14px; /* Set font size to 14px */
}

.form-group-inline {
    display: flex;
    gap: 20px;
    margin-bottom: 24px; /* Space after inline form groups (adjusted to 24px) */
}

.form-group-inline .form-group {
    flex: 1;
    margin-bottom: 0; /* Remove bottom margin from nested form-groups */
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1; /* Lighter border color */
    border-radius: 8px; /* More rounded corners */
    font-size: 14px; /* Set font size to 14px */
    color: var(--text-dark); /* Ensure text color is dark */
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23000000%22%20d%3D%22M287%2C114.7L158.4%2C243.3c-2.3%2C2.3-5.3%2C3.5-8.3%2C3.5s-6.1-1.2-8.3-3.5L5.3%2C114.7c-4.7-4.7-4.7-12.3%2C0-17l17-17c4.7-4.7%2C12.3-4.7%2C17%2C0l113.1%2C113.1L253%2C80.7c4.7-4.7%2C12.3-4.7%2C17%2C0l17%2C17C291.7%2C102.4%2C291.7%2C110%2C287%2C114.7z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding-right: 30px;
}

.contact-form .btn-primary.contact-submit-btn {
    padding: 18px 25px; /* Further increased padding for more height */
    font-size: 1em; /* Adjust font size if necessary */
    margin-top: 10px; /* Space above the button */
}

.form-disclaimer {
    font-size: 0.85em;
    color: var(--gray-color);
    margin-top: 10px;
}

.contact-info {
    /* flex-basis: calc(50% - 15px); Environ la moitié avec un gap de 30px */
    display: grid !important;
    grid-template-columns: 1fr !important; /* Une seule colonne pour les cartes contact */
    gap: 20px !important; /* Espace entre les cartes de contact */
    width: 100% !important;
    max-width: none !important;
    grid-column: 2 !important;
}

.contact-item {
    display: flex;
    align-items: flex-start; /* Align items to the start for better visual with padding */
    gap: 15px;
    background: var(--white-color); /* Default white background for cards */
    padding: 25px; /* Added padding */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); /* Subtle shadow */
}

/* Specific style for the first contact item (Appelez-nous) */
.contact-item:first-child {
    background: #1D3F5E; /* Solid color as requested */
    color: var(--white-color); /* White text for contrast */
}

.contact-item:first-child i,
.contact-item:first-child h4,
.contact-item:first-child p,
.contact-item:first-child span {
    color: var(--white-color); /* Ensure all text inside is white */
}

.contact-item i {
    font-size: 1.8em;
    color: var(--primary-color); /* Default icon color */
    margin-bottom: 0; /* Reset margin if any */
}

.contact-item:first-child i {
    color: var(--white-color); /* White icon for the first item */
}

.contact-item h4 {
    font-size: 18px; /* Set title font size to 18px */
    margin-bottom: 5px;
    color: var(--dark-color); /* Default dark text */
}

.contact-item p {
    margin-bottom: 0;
    color: var(--text-light);
    font-size: 14px; /* Set text font size to 14px */
}

.contact-item span {
    font-size: 14px; /* Set text font size to 14px */
    color: var(--gray-color); /* Default gray text */
}

.certifications-guarantees {
    background: var(--white-color); /* Changer le fond en blanc */
    color: var(--dark-color); /* Texte sombre pour un fond blanc */
    padding: 25px; /* Added padding */
    border-radius: 10px;
    margin-top: 0; /* Pas de marge en haut car fait partie de la grille */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); /* Subtle shadow */
    /* color: var(--white-color); Supprimé car le texte est sombre maintenant */
    grid-column: span 1; /* Assurer qu'il ne prend qu'une seule colonne */
    display: grid; /* Use grid for internal layout */
    grid-template-columns: repeat(2, 1fr); /* Two columns for items */
    gap: 15px; /* Gap between certification items */
    text-align: left; /* Align text left */
}

.certifications-guarantees h4 {
    color: var(--dark-color); /* Titre sombre */
    margin-bottom: 25px; /* Add margin-bottom for spacing */
    text-align: center;
    grid-column: span 2; /* Make title span two columns */
    font-size: 18px; /* Set title font size to 18px */
}

.cert-item {
    padding: 0; /* Remove padding */
    border-bottom: none; /* Remove border */
    font-size: 14px; /* Set text font size to 14px */
    color: var(--text-light); /* Texte gris clair */
    text-align: center; /* Center text within each cert item */
    display: flex; /* Use flexbox to stack content */
    flex-direction: column; /* Stack vertically */
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
}

.cert-item strong {
    font-weight: bold; /* Make title bold */
    font-size: 16px; /* Set title font size */
    margin-bottom: 5px; /* Space between title and description */
}

.cert-item span {
    font-size: 14px; /* Set description font size */
    line-height: 1.4; /* Improve readability */
}

.cert-item:first-of-type {
    text-align: center;
    border-right: 1px dashed rgba(0, 0, 0, 0.2); /* Ligne de séparation plus foncée */
    padding-right: 15px;
}

.cert-item:nth-of-type(2) {
    text-align: center;
    padding-left: 15px;
}

.cert-item:nth-of-type(3) {
    text-align: center;
    border-right: 1px dashed rgba(0, 0, 0, 0.2);
    padding-right: 15px;
}

.cert-item:nth-of-type(4) {
    text-align: center;
    padding-left: 15px;
}

.cert-item:last-child {
    border-bottom: none;
}

/* Realisations Section Styles */
.realisations {
    padding: 80px 0; /* Only vertical padding */
    text-align: center;
    background: #FBFCFD; /* Light background for the section */
}

.realisations h2 {
    font-size: 48px;
    margin-bottom: 5px;
}

.realisations .section-description {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 30px auto; /* More space below description for this section */
    color: var(--text-light);
}

.realisations-carousel {
    display: flex; /* Changed to flex for horizontal scrolling */
    overflow-x: auto; /* Enable horizontal scrolling */
    white-space: nowrap; /* Keep cards on a single line */
    gap: 30px; /* Space between cards */
    padding-top: 0; /* Remove top padding if any */
    padding-bottom: 20px; /* Add some padding for scrollbar if needed */
    padding-left: 20px; /* Padding for content on the left */
    padding-right: 20px; /* Padding for content on the right */
    width: 100vw; /* Take full viewport width */
    margin-left: calc(50% - 50vw); /* Center the full-width carousel */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none;  /* Hide scrollbar for IE and Edge */
    margin-top: 50px;
}

.realisations-carousel::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, and Opera */
}

.realisation-card {
    flex: 0 0 auto; /* Prevent cards from shrinking */
    width: 350px; /* Fixed width for each card */
    max-width: 90%; /* Ensure responsiveness on smaller screens */
    background: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.realisation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.realisation-card img {
    width: 100%;
    height: 220px; /* Fixed height for panoramic images */
    object-fit: cover; /* Cover the area, cropping if necessary */
    border-radius: 10px 10px 0 0;
}

.realisation-card .card-content {
    padding: 25px;
}

.realisation-card h3 {
    font-size: 22px; /* Title size for realization cards */
    color: var(--dark-color);
    margin-bottom: 10px;
    line-height: 1.3; /* Improve line spacing for multi-line titles */
    white-space: normal; /* Allow title to wrap to multiple lines */
}

.realisation-card p {
    font-size: 14px; /* Description text size */
    color: var(--text-light);
    line-height: 1.6;
}

/* Team Photo Section - Simple Image */
.team-photo-section-simple {
    width: 100%;
    margin: 0 0 50px 0; /* Supprime l'espace au-dessus de la photo de l'équipe */
    /* overflow: hidden; S'assurer que l'image ne déborde pas */
}

.team-photo-section-simple img {
    display: block; /* Élimine l'espace sous l'image */
    width: 100%; /* L'image prend toute la largeur du conteneur */
    height: auto; /* Maintient le ratio de l'image */
    object-fit: cover; /* Recouvre la zone sans déformer, tronque si nécessaire */
    max-height: 500px; /* Optionnel: Limite la hauteur pour les très grandes images */
}

/* Footer Styles */
.footer {
    background: var(--dark-color);
    color: var(--white-color);
    padding: 60px 0;
    font-size: 0.9em;
}

.footer .container {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr); /* 5 colonnes, la première est 1.5 fois plus large */
    gap: 30px;
}

.footer-col .logo img {
    height: 40px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Make logo white */
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-col h4 {
    color: var(--white-color);
    font-size: 1.2em;
    margin-bottom: 20px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color); /* Use primary color */
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-col ul li i {
    margin-right: 10px;
    color: var(--primary-color); /* Use primary color */
}

.social-icons a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.2);
    margin-right: 10px;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    color: var(--white-color);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color); /* Use primary color */
}

/* Responsive Styles */
@media (max-width: 960px) {
    .header .nav {
        display: none; /* Hide main navigation on mobile */
    }
    .header .main-nav-links,
    .header .main-cta-button {
        display: none; /* Explicitly hide desktop nav elements on mobile */
    }

    .mobile-menu-toggle {
        display: block; /* Show burger icon on mobile */
        font-size: 1.8em;
        color: var(--dark-color);
        cursor: pointer;
    }

    .mobile-menu {
        display: none; /* Hidden by default */
        position: absolute;
        top: 60px; /* Adjust based on header height */
        left: 0;
        width: 100%;
        background: #F0F7FE; /* Same as header background */
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        flex-direction: column; /* Stack items vertically */
        align-items: center;
        gap: 20px;
        z-index: 999;
    }

    .mobile-menu.open {
        display: flex; /* Show when open */
    }

    .mobile-menu .mobile-nav-links {
        display: flex;
        flex-direction: column;
        gap: 15px;
        text-align: center;
        width: 100%;
    }

    .mobile-menu .mobile-nav-links li a {
        color: var(--dark-color);
        font-weight: bold;
        padding: 10px 0;
        display: block;
        transition: background 0.3s ease;
    }

    .mobile-menu .mobile-nav-links li a:hover {
        background: var(--light-color);
    }

    .mobile-menu .mobile-cta-button {
        width: 80%; /* Make CTA button wider in mobile menu */
        margin-top: 20px;
        padding: 12px 25px;
        font-size: 1em;
        border-radius: 30px; /* Keep the original btn-primary border-radius */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Removed redundant rules */
    /* .header .nav ul { display: none; } */
    /* .header .nav { display: flex; justify-content: flex-end; width: 100%; } */

    .hero h1 {
        font-size: 2.8em;
    }

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

    .contact-info {
        margin-top: 30px;
    }

    .form-group-inline {
        flex-direction: column;
        gap: 0;
    }

    .form-group-inline input {
        margin-bottom: 20px;
    }

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

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-icons {
        justify-content: center;
        display: flex;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr !important; /* Une seule colonne sur mobile seulement */
    }
    .contact-form,
    .contact-info {
        flex-basis: 100%; /* Prennent toute la largeur sur mobile/tablette */
        width: 100%;
    }
    .contact-info {
        background: transparent; /* Arrière-plan transparent */
        box-shadow: none; /* Pas d'ombre */
    }
    .certifications-guarantees {
        background: transparent; /* Arrière-plan transparent */
        box-shadow: none; /* Pas d'ombre */
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2em;
    }

    .hero-features {
        flex-direction: column;
        gap: 15px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

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

    h2 {
        font-size: 2em;
    }
}

/* Formulaires: styles des erreurs et succès */
.error-message {
    color: #e74c3c; /* Rouge pour les erreurs */
    font-size: 0.85em;
    margin-top: 5px;
    display: block;
}

.form-group input.input-error,
.form-group select.input-error,
.form-group textarea.input-error {
    border-color: #e74c3c; /* Bordure rouge pour les champs en erreur */
}

.form-success-message {
    color: #27ae60; /* Vert pour les succès */
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background-color: #e8f8f5; /* Fond léger */
    border-radius: 8px;
    border: 1px solid #27ae60;
}

.form-card.success-message-card {
    text-align: center;
    padding: 50px 30px;
}

.form-card.success-message-card h3 {
    color: #27ae60;
    margin-bottom: 20px;
}

.form-card.success-message-card p {
    font-size: 1.1em;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.form-card.success-message-card .btn-primary {
    display: inline-block;
    margin-top: 20px;
}

/* Article Page Styles */
.article-page {
    padding: 80px 0;
    background: var(--white-color);
}

.article-page .container {
    max-width: 900px; /* Largeur maximale pour le contenu de l'article */
}

.article-page h1 {
    font-size: 3em;
    color: var(--dark-color);
    margin-bottom: 20px;
    text-align: center;
}

.article-page h2 {
    font-size: 2em;
    color: var(--dark-color);
    margin-top: 40px;
    margin-bottom: 15px;
}

.article-page p {
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.article-page figure {
    margin: 30px 0;
    text-align: center;
}

.article-page figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.article-page figcaption {
    font-size: 0.9em;
    color: var(--gray-color);
    margin-top: 10px;
}

.article-page ul,
.article-page ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.article-page ul li,
.article-page ol li {
    font-size: 1.05em;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.article-page ul li::before {
    content: "\2022"; /* Bullet point */
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.article-meta {
    text-align: center;
    color: var(--gray-color);
    font-size: 0.9em;
    margin-bottom: 30px;
}

.cta-article {
    text-align: center;
    margin-top: 40px;
}

.cta-article .btn-primary {
    padding: 15px 30px;
    font-size: 1.1em;
}

@media (max-width: 768px) {
    .article-page h1 {
        font-size: 2.2em;
    }

    .article-page h2 {
        font-size: 1.6em;
    }

    .article-page p,
    .article-page ul li,
    .article-page ol li {
        font-size: 1em;
    }
}
