.form-status-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 6px;
  text-align: center;
  border: 1px solid transparent;
  display: none; /* Initially hidden */
  word-wrap: break-word; /* Prevent long error messages breaking layout */
}
.form-status-message h4 {
  margin-top: 0;
  margin-bottom: 8px;
  font-weight: 600;
}
/* Style paragraph within status message */
.form-status-message p {
    margin-bottom: 0;
    line-height: 1.5;
}
.form-status-message.success {
  background-color: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
  display: block !important;
}
.form-status-message.success h4 {
  color: #0f5132;
}
.form-status-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
  display: block !important;
}
.form-status-message.error h4 {
  color: #58151c; /* Darker red for heading */
}

/* Your existing CSS ... */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* === GLOBAL & RESPONSIVE FIXES === */
html {
  overflow-x: hidden; /* Prevent horizontal scrollbars */
}

img {
  max-width: 100%; /* Ensure images are responsive */
  height: auto;    /* Maintain aspect ratio */
  display: block;  /* Fix potential bottom margin issues */
}

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

:root {
--primary-color: #003366;
--secondary-color: #0056b3;
--accent-color: #3498db;
--light-blue: #e0ecff;
--white: #ffffff;
--dark: #111827;
--gray: #f5f9ff;
--light-gray: #f9fafb;
--text-color: #374151;
--transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
--slider-transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.6s ease;
}

body {
font-family: 'Montserrat', 'Poppins', sans-serif;
line-height: 1.7;
color: var(--text-color);
overflow-x: hidden;
background-color: var(--white);
}

/* SECTION HERO */
.hero {
position: relative;
background: url('images/background.jpg') no-repeat center center/cover;
height: 100vh;
min-height: 600px;
color: var(--white);
z-index: 1;
overflow: hidden;
}

.overlay {
position: absolute; top: 0; left: 0; width: 100%; height: 100%;
background: linear-gradient(135deg, rgba(0, 41, 82, 0.703) 0%, rgba(0, 87, 179, 0.922) 100%);
z-index: 1;
}


.particles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: 2; }
.particles:before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: radial-gradient(white, rgba(255,255,255,.3) 2px, transparent 5px), radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 3px), radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 4px); background-size: 550px 550px, 350px 350px, 250px 250px; background-position: 0 0, 40px 60px, 130px 270px; animation: particles 15s linear infinite; opacity: 0.1; }
@keyframes particles { 0% { transform: translateY(0); } 100% { transform: translateY(-330px); } }


.navbar { position: fixed; top: 0; left: 0; width: 100%; padding: 10px 5% 10px 0; display: flex; justify-content: space-between; align-items: center; z-index: 9999; transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease; }
.navbar.white-bg.transparent { background-color: rgba(255, 255, 255, 0.9); box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.navbar.scrolled { padding: 8px 5% 8px 0; background-color: rgba(255, 255, 255, 0.98); box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1); }

.logo {
  position: relative;
  padding-left: 1%;
}
.logo img {
  height: 105px;
  transition: height 0.3s ease;
}
.navbar.scrolled .logo img {
  height: 80px;
}
.logo-slogan {
 display: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
  align-items: center;
}
.nav-link { position: relative; color: var(--primary-color); text-decoration: none; font-weight: 600; font-size: 16px;  padding: 10px 0; transition: var(--transition); display: inline-block; }
.nav-link span { position: relative; display: inline-block; transition: var(--transition); }
.nav-link span:before { content: attr(data-text); position: absolute; top: 0; left: 0; width: 0; color: var(--accent-color); white-space: nowrap; overflow: hidden; transition: width 0.3s ease-in-out; }
.nav-link:hover span:before { width: 100%; }
.nav-link:after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--accent-color); transition: width 0.3s ease; }
.nav-link.active-parent:after,
.nav-link:hover:after { width: 100%; }
.nav-link.active-parent span:before,
.nav-link.active-parent {
  color: var(--accent-color);
}


.nav-cta {
  display: none;
}

.devis-navbar-btn {
background-color: var(--secondary-color);
color: var(--white);
padding: 10px 20px;
font-size: 15px;
font-weight: 600;
border-radius: 25px;
text-transform: none;
letter-spacing: 0.5px;
box-shadow: 0 2px 8px rgba(0, 86, 179, 0.2);
white-space: nowrap;
}

.devis-navbar-btn:hover {
background-color: var(--primary-color);
color: var(--white);
box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
transform: translateY(-2px) scale(1.03);
}

.nav-links .nav-cta-mobile {
  display: none;
}

.mobile-menu-btn { display: none; cursor: pointer; width: 30px; height: 22px; position: relative; z-index: 1002; background: none; border: none; padding: 0; }
.mobile-menu-btn span { display: block; width: 100%; height: 3px;  background-color: var(--primary-color); margin: 5px 0; border-radius: 1px; transition: var(--transition); }
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }


.nav-item-dropdown {
position: relative;
}

.nav-link.has-dropdown .dropdown-arrow {
margin-left: 5px;
font-size: 0.8em;
transition: transform 0.3s ease;
}
.nav-link.has-dropdown .lang-icon {
    margin-right: 5px;
    font-size: 1.1em;
}


.nav-item-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
display: none;
position: absolute;
top: 100%;
left: 0;
background-color: var(--white);
list-style: none;
padding: 10px 0;
margin: 5px 0 0 0;
min-width: 200px;
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
border-radius: 8px;
z-index: 1001;
opacity: 0;
visibility: hidden;
transform: translateY(10px);
transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}
.lang-switcher .dropdown-menu {
    min-width: 150px;
    left: auto;
    right: 0;
}


.nav-item-dropdown:hover > .dropdown-menu {
display: block;
opacity: 1;
visibility: visible;
transform: translateY(0);
}


.dropdown-menu li {
border: none;
}

.dropdown-link {
display: block;
padding: 10px 20px;
color: var(--primary-color);
text-decoration: none;
font-size: 15px;
font-weight: 500;
transition: background-color 0.3s ease, color 0.3s ease;
white-space: nowrap;
}
.dropdown-link.active-parent,
.dropdown-link:hover {
background-color: var(--light-gray);
color: var(--secondary-color);
}


.hero-content { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; z-index: 3; padding-top: 120px; }
.hero-text { text-align: center; max-width: 900px;  padding: 0 20px; }
.reveal-text { position: relative; overflow: hidden; opacity: 0; transform: translateY(30px); animation: reveal 1s ease-out forwards; }
.delay-1 { animation-delay: 0.3s; }
@keyframes reveal { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.hero-text h1 { font-size: clamp(50px, 10vw, 110px);  font-weight: 800; letter-spacing: -1px; margin-bottom: 5px; text-shadow: 2px 2px 8px rgba(0,0,0,0.3); background: linear-gradient(45deg, #ffffff, #d4e8ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-slogan { font-size: clamp(24px, 4vw, 40px); font-weight: 400; font-style: italic; color: var(--light-blue); text-shadow: 1px 1px 5px rgba(0,0,0,0.3); margin-top: 0; margin-bottom: 40px; }
.hero-buttons { display: flex; justify-content: center; gap: 25px; margin-bottom: 70px; opacity: 0; transform: translateY(30px); animation: reveal 1s ease-out 0.6s forwards; flex-wrap: wrap; }
.btn { padding: 15px 35px; border-radius: 50px; font-size: 16px; font-weight: 600; border: none; cursor: pointer; transition: var(--transition); text-transform: uppercase; letter-spacing: 1px; display: inline-block; text-align: center; }
.primary-btn { background-color: var(--white); color: var(--primary-color); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); }
.primary-btn:hover { background-color: var(--light-blue); transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); }
.secondary-btn { background-color: transparent; color: var(--white); border: 2px solid var(--white); }
.secondary-btn:hover { background-color: var(--white); color: var(--primary-color); transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); }

.down-arrow { font-size: 24px; color: var(--white); cursor: pointer; width: 50px; height: 50px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.15); display: flex; justify-content: center; align-items: center; margin: 0 auto; transition: var(--transition); animation: float 2.5s ease-in-out infinite; opacity: 0; animation: reveal 1s ease-out 0.9s forwards, float 2.5s ease-in-out 2s infinite; }
.down-arrow i { transition: var(--transition); }
.down-arrow:hover { background-color: rgba(255, 255, 255, 0.3); animation-play-state: paused; transform: translateY(-5px); }
.down-arrow:hover i { transform: translateY(3px); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(12px); } }

.services-section, .why-choose-section, .careers-section, .contact-section {
padding: 100px 20px;
overflow: hidden;
position: relative;
z-index: 5;
}
.services-section { background: linear-gradient(to bottom, var(--gray) 0%, var(--white) 100%); min-height: 100vh; }
.why-choose-section { background-color: var(--white); }

.contact-section {
  background-color: var(--primary-color);
  padding-bottom: 60px;
}


#about p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.section-title {
color: var(--primary-color); font-size: clamp(32px, 5vw, 46px); text-align: center; margin-bottom: 80px; position: relative; font-weight: 700; opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.section-title:after {
content: ''; position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: linear-gradient(to right, var(--secondary-color), var(--accent-color)); border-radius: 2px;
}

.contact-section .section-title {
    color: var(--white);
}
.contact-section .section-title:after {
    background: var(--white);
}


.slider-wrapper { max-width: 1750px; margin: 0 auto; position: relative; }
.slider-track { display: flex; position: relative; overflow: visible; margin-bottom: 30px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
/* MODIFIED: Adjusted height for better visual balance */
.services-slider-wrapper { height: 850px; }
.services-slider { height: 100%; }
.slide-item { position: absolute; width: 100%; height: 100%; top: 0; left: 0; opacity: 0; transition: var(--slider-transition); visibility: hidden; z-index: 1; border-radius: 15px; overflow: hidden; }
.slide-item.active { opacity: 1; visibility: visible; z-index: 10; transform: translateX(0); }
.slide-item.slide-out-left { transform: translateX(-100%); opacity: 0; }
.slide-item.slide-out-right { transform: translateX(100%); opacity: 0; }
.slide-item.slide-in-left { transform: translateX(-100%); opacity: 0; }
.slide-item.slide-in-right { transform: translateX(100%); opacity: 0; }


.service-card { box-shadow: 0 15px 50px rgba(0, 41, 82, 0.1); background-color: var(--dark); cursor: pointer; }
.service-image { position: relative; width: 100%; height: 100%; }
.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-card.active .service-image img:hover { transform: scale(1.05); }
.service-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0, 41, 82, 0.1) 0%, rgba(0, 41, 82, 0.7) 60%, rgba(0, 41, 82, 0.9) 100%); }
.service-content { position: absolute; bottom: 0; width: 100%; padding: 40px 50px; color: var(--white); transform: translateY(20px); opacity: 0; transition: transform 0.5s ease 0.3s, opacity 0.5s ease 0.3s; }
.service-card.active .service-content { transform: translateY(0); opacity: 1; }
.service-content h3 { font-size: clamp(24px, 3.5vw, 32px); font-weight: 700; margin-bottom: 15px; text-shadow: 1px 1px 4px rgba(0,0,0,0.4); }
.service-description {
  font-size: clamp(15px, 2.5vw, 17px);
  font-weight: 300;
  max-width: 95%;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
  line-height: 1.6;
  max-height: 0;
  opacity: 0;
  margin: 0;
  overflow: hidden;
  transition: max-height 0.6s ease-in-out, opacity 0.5s ease-in-out, margin-top 0.6s ease-in-out;
}
.service-card.expanded .service-description {
  max-height: 2000px; /* Increased to prevent cutting off long text */
  opacity: 1;
  margin-top: 15px;
}


.why-choose-container { max-width: 1100px; margin: 0 auto; }
/* MODIFICATION: Use min-height instead of fixed height for flexibility */
.reasons-slider { min-height: 380px; background-color: var(--gray); border-radius: 15px; box-shadow: 0 10px 40px rgba(0, 51, 102, 0.08); }
.reason-card { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; text-align: center; opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reason-card.slide-out-left, .reason-card.slide-out-right,
.reason-card.slide-in-left, .reason-card.slide-in-right,
.reason-card.active { transition: var(--slider-transition); }
.reason-icon { font-size: 55px; color: var(--accent-color); margin-bottom: 25px; transition: transform 0.4s ease; }
.reason-card.active .reason-icon { transform: scale(1.1); }
.reason-content h3 { font-size: clamp(22px, 3.5vw, 28px); color: var(--primary-color); margin-bottom: 15px; font-weight: 600; }
.reason-content p { font-size: clamp(16px, 2.5vw, 18px); color: var(--text-color); max-width: 500px; margin: 0 auto; line-height: 1.7; }

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 20px;
    cursor: pointer;
    z-index: 20;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.slider-arrow:hover { background-color: var(--white); color: var(--secondary-color); transform: translateY(-50%) scale(1.1); }
.prev-slide { left: 15px; }
.next-slide { right: 15px; }
.services-container .prev-slide { left: -20px; }
.services-container .next-slide { right: -20px; }
.why-choose-container .prev-slide { left: 20px; }
.why-choose-container .next-slide { right: 20px; }


.slider-indicators { display: flex; justify-content: center; gap: 12px; margin-top: 25px; position: relative; z-index: 15; }
.indicator { width: 10px; height: 10px; border-radius: 50%; background-color: rgba(0, 41, 82, 0.3); cursor: pointer; transition: var(--transition); }
.indicator.active { background-color: var(--accent-color); width: 25px; border-radius: 5px; }
.indicator:hover { background-color: var(--secondary-color); }

.career-subsection { max-width: 900px; margin: 0 auto 60px auto; padding: 40px; background-color: var(--light-gray); border-radius: 10px; box-shadow: 0 5px 25px rgba(0, 51, 102, 0.07); opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s; }
.careers-section .section-title { margin-bottom: 60px; }
.subsection-title { color: var(--primary-color); font-size: clamp(24px, 4vw, 30px); margin-bottom: 15px; text-align: center; font-weight: 600; }
.subsection-description { text-align: center; margin-bottom: 40px; color: var(--text-color); font-size: 16px; max-width: 600px; margin-left: auto; margin-right: auto; }

.career-form .form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 30px; margin-bottom: 30px; }
.form-group { display: flex; flex-direction: column; }
.form-group-full { grid-column: 1 / -1; }
.career-form label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 15px; color: var(--dark); }
.required { color: #e74c3c; margin-left: 2px; }
.career-form input[type="text"],
.career-form input[type="tel"],
.career-form input[type="email"],
.career-form select,
.career-form textarea { width: 100%; padding: 12px 15px; border: 1px solid #ccc; border-radius: 6px; font-size: 16px; font-family: inherit; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.career-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23374151' width='18px' height='18px'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 18px;
  padding-right: 40px;
}
.career-form input:focus,
.career-form select:focus,
.career-form textarea:focus { border-color: var(--secondary-color); box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15); outline: none; }
.career-form textarea { resize: vertical; }

.file-input { width: 0.1px; height: 0.1px; opacity: 0; overflow: hidden; position: absolute; z-index: -1; }
.file-input + .file-input-label { display: inline-block; padding: 12px 20px; border: 1px dashed #ccc; border-radius: 6px; cursor: pointer; transition: border-color 0.3s ease, background-color 0.3s ease; background-color: #fff; color: #666; width: 100%; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; }
.file-input + .file-input-label::before { content: attr(data-placeholder); }
.file-input.has-file + .file-input-label::before { content: ''; }
.file-input:focus + .file-input-label,
.file-input:hover + .file-input-label { border-color: var(--secondary-color); }
.file-input:hover + .file-input-label { background-color: #f8f8f8;}

.form-submit-btn { display: block; margin: 20px auto 0 auto; min-width: 200px; }
.form-submit-btn:disabled { background-color: #ccc; cursor: not-allowed; transform: none; box-shadow: none; }
.form-submit-btn:disabled:hover { background-color: #ccc; transform: none; box-shadow: none; }

.backend-notice { font-size: 13px; color: #888; text-align: center; margin-top: 25px; font-style: italic; }
.backend-notice i { margin-right: 5px; color: #f39c12; }

.job-list { margin-top: 30px; }
.job-offer-card { background-color: var(--white); padding: 25px 30px; border-radius: 8px; margin-bottom: 25px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06); transition: transform 0.3s ease, box-shadow 0.3s ease; border-left: 5px solid var(--accent-color); }
.job-offer-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); }
.job-offer-card h4 { color: var(--primary-color); font-size: 20px; margin-bottom: 10px; }
.job-meta { font-size: 14px; color: #666; margin-bottom: 15px; }
.job-meta i { margin-right: 5px; color: var(--secondary-color); }
.job-meta .separator { margin: 0 10px; }
.job-description { font-size: 15px; line-height: 1.6; margin-bottom: 20px; color: var(--text-color); }
.apply-btn { padding: 8px 20px; font-size: 14px; }
.no-jobs-message { text-align: center; font-style: italic; color: #777; padding: 30px; background-color: #f9f9f9; border-radius: 6px; }

.modal-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; z-index: 10050; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; padding: 20px; }
.modal-container.open { opacity: 1; visibility: visible; }
.modal-content { background-color: var(--white); padding: 30px 40px; border-radius: 10px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2); max-width: 700px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; transform: scale(0.9); transition: transform 0.3s ease; }
.modal-container.open .modal-content { transform: scale(1); }
.close-modal-btn { position: absolute; top: 10px; right: 10px; background: none; border: none; font-size: 28px; line-height: 1; color: #888; cursor: pointer; transition: color 0.2s ease; padding: 5px; }
.close-modal-btn:hover { color: var(--dark); }

#modal-job-title { color: var(--primary-color); font-size: 22px; margin-bottom: 30px; text-align: center; padding-right: 30px; }

.devis-modal-content { max-width: 750px; padding: 35px 45px; }
#devis-modal-title { color: var(--primary-color); font-size: 26px; margin-bottom: 30px; text-align: center; padding-right: 30px; }
#devis-form textarea { min-height: 100px; }
.devis-submit-btn { margin-top: 10px; }


/* === MODIFICATION START: Contact Icon Styles with Larger Size === */
.contact-container { max-width: 1000px; margin: 40px auto 0; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 40px 35px; }
.contact-item { text-align: center; opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s; }
.contact-item a { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--text-color); transition: var(--transition); padding: 10px; }
.contact-item a:hover { color: var(--accent-color); transform: translateY(-5px); }
.contact-icon {
  font-size: 50px; /* Increased from 42px */
  color: var(--white);
  transition: color 0.3s ease;
}
.fab.fa-whatsapp {
  color: var(--white);
}
.fab.fa-instagram {
    color: var(--white);
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: initial;
}
.contact-item a:hover .fab.fa-whatsapp,
.contact-item a:hover .fas.fa-envelope,
.contact-item a:hover .fab.fa-linkedin,
.contact-item a:hover .fas.fa-phone {
    color: var(--accent-color);
}
.contact-text { display: none; }
/* === MODIFICATION END === */


.site-footer { text-align: center; margin-top: 80px; padding-top: 30px; border-top: 1px solid #e5e7eb; color: #6b7280; font-size: 14px; }

.revealed { opacity: 1 !important; transform: translateY(0) !important; }
.section-title, .service-card, .reason-card, .contact-item, .career-subsection, .references-content { opacity: 0; transform: translateY(30px); }
.slide-item.active.revealed { opacity: 1 !important; transform: translateX(0) !important; }


@media (max-width: 1200px) {
.nav-links { gap: 20px; }
.nav-link { font-size: 15px; }
.services-slider-wrapper { height: 520px; }
.why-choose-container { max-width: 95%; }
.reasons-slider { height: auto; min-height: 360px; padding-bottom: 20px; }
}

@media (max-width: 991px) {
.nav-links { gap: 25px; }
.nav-link { font-size: 16px; }
.service-content p { max-width: 100%; font-size: 16px; }
.service-content { padding: 30px 40px; }
.services-slider-wrapper { height: 500px; }
.why-choose-container .slider-arrow { width: 40px; height: 40px; font-size: 18px; }
.why-choose-container .prev-slide { left: 15px; }
.why-choose-container .next-slide { right: 15px; }
.reasons-slider { min-height: 340px; }
.contact-container { flex-direction: row; align-items: center; gap: 40px; }

.logo img { height: 90px; }
.navbar.scrolled .logo img { height: 75px; }
}

@media (max-width: 768px) {
.navbar, .navbar.scrolled {
  padding-left: 1.5%;
}
.logo img {
  height: 100px; /* <--- THIS IS THE INITIAL SIZE ON MOBILE */
}
.navbar.scrolled .logo img {
  height: 75px; /* <--- THIS IS THE SIZE AFTER SCROLLING ON MOBILE */
}
.hero-buttons { gap: 15px; margin-bottom: 50px; }
.btn { padding: 12px 28px; width: auto; max-width: 280px; }

.nav-links {
  position: fixed; top: 0; right: -100%; width: 75%; max-width: 320px; height: 100vh; background: rgba(255, 255, 255, 0.98);
  flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
  transition: right 0.5s cubic-bezier(0.65, 0, 0.35, 1); box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 9999; padding-top: 80px; overflow-y: auto;
  margin-left: 0;
}
.nav-links li { width: 100%; }
.nav-link { display: block; padding: 15px 20px; font-size: 18px; text-align: left; border-bottom: 1px solid var(--light-blue); }
.nav-link:hover:after, .nav-link:hover span:before { width: 0; }
.nav-link.active-parent:after { width: 0; }
.nav-link.active-parent { color: var(--secondary-color); }


.nav-links.active { right: 0; }
.mobile-menu-btn { display: block; z-index: 10001; }

.nav-cta { display: none; }
.nav-links .nav-cta-mobile { display: block; padding: 15px 20px; border-bottom: 1px solid var(--light-blue); }
.nav-links .nav-cta-mobile .devis-navbar-btn { width: 100%; text-align: center; font-size: 16px; padding: 12px 20px; background-color: var(--secondary-color); color: var(--white); }
.nav-links .nav-cta-mobile .devis-navbar-btn:hover { background-color: var(--primary-color); }

.nav-item-dropdown { width: 100%; }
.nav-link.has-dropdown { display: flex; justify-content: space-between; align-items: center; }
.nav-link.has-dropdown .dropdown-arrow { display: inline-block; transition: transform 0.3s ease; }
.nav-item-dropdown.open .nav-link.has-dropdown .dropdown-arrow { transform: rotate(180deg); }
.dropdown-menu {
  position: static; display: none; width: 100%; box-shadow: none; border-radius: 0; background-color: var(--light-gray);
  padding: 0; margin-top: 0; opacity: 1; visibility: visible; transform: none; transition: none; border-top: none;
}
.lang-switcher .dropdown-menu {
    min-width: 100%;
    left: 0;
    right: auto;
}
.nav-item-dropdown.open > .dropdown-menu { display: block; }
.dropdown-link { font-size: 16px; padding: 12px 20px 12px 40px; color: var(--secondary-color); border-bottom: 1px solid var(--light-blue); }
.dropdown-menu li:last-child .dropdown-link { border-bottom: none; }
.dropdown-link:hover, .dropdown-link.active-parent { background-color: var(--light-blue); }

.section-title { font-size: 30px; margin-bottom: 60px; }
.section-title:after { width: 70px; height: 3px; bottom: -15px; }
.services-section, .why-choose-section, .careers-section, .contact-section { padding: 80px 15px; }

.services-slider-wrapper { height: 500px; }
.service-card { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); }

.service-content { padding: 25px 30px; }
.service-content h3 { font-size: clamp(22px, 4vw, 26px); }
.service-description { font-size: clamp(14px, 3vw, 15px); }

/* FIX: Add scrolling to long service descriptions on mobile */
.service-card.expanded .service-description {
  max-height: 250px; /* Constrain height to fit inside the card */
  overflow-y: auto;   /* Add scrollbar if content is taller */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  padding-right: 10px; /* Space for the scrollbar */
}

.slider-arrow {
    display: flex !important;
    width: 40px; height: 40px; font-size: 18px;
    background-color: rgba(0, 41, 82, 0.5);
    color: var(--white);
}
.slider-arrow:hover {
    background-color: rgba(0, 41, 82, 0.8);
    color: var(--white);
}
.services-container .prev-slide, .why-choose-container .prev-slide { left: 10px; }
.services-container .next-slide, .why-choose-container .next-slide { right: 10px; }


.slider-indicators { margin-top: 20px; gap: 10px; }
.indicator { width: 8px; height: 8px; }
.indicator.active { width: 20px; }

/* FIX: Make the "Why Choose Us" slider responsive on mobile */
.reasons-slider {
    height: auto; /* Let height adapt to content */
    min-height: 320px; /* A sensible minimum height for aesthetics */
    padding: 30px 20px; /* Add vertical and horizontal padding */
}
.reason-card {
    padding: 20px 10px; /* Reduce padding on mobile to give content more space */
}
.reason-icon { font-size: 45px; margin-bottom: 20px; }
.reason-content p { max-width: 90%; }

.career-form .form-grid { grid-template-columns: 1fr; gap: 15px; }
.career-subsection { padding: 30px 20px; }
.job-offer-card { padding: 20px; }

.devis-modal-content, .modal-content {
  max-width: 95%; width: 95%; padding: 25px 20px; max-height: 90vh;
}
#devis-modal-title, #modal-job-title { font-size: 22px; margin-bottom: 20px; }

.close-modal-btn { top: 5px; right: 5px; font-size: 24px; }

.contact-icon { font-size: 45px; } /* Increased from 38px for tablet view */
.contact-container { gap: 25px; }

.logo img { height: 90px; }
.navbar.scrolled .logo img { height: 65px; }
}

@media (max-width: 480px) {
  .logo img { height: 80px; }
  .navbar.scrolled .logo img { height: 50px; }
  .section-title { font-size: 26px; }
  /* MODIFIED: Increased height on small mobile for better view */
  .services-slider-wrapper { height: 520px; }
  .service-content { padding: 20px 25px; }
  .reasons-slider { padding-bottom: 20px; }
  .reason-content { padding: 0 10px; }
  .contact-container { gap: 20px; }
  .contact-icon { font-size: 42px; } /* Increased from 35px for mobile view */
  .site-footer { font-size: 12px; }
  .devis-modal-content, .modal-content { padding: 20px 15px; }
  #devis-modal-title, #modal-job-title { font-size: 18px; }
  .nav-links { max-width: 280px; }
}
/* Styles for Demande de Besoin Page */
.besoin-page {
  padding: 150px 20px 80px 20px;
  background-color: var(--gray);
  min-height: 100vh;
}

.besoin-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 51, 102, 0.1);
}

.besoin-title {
  color: var(--primary-color);
  font-size: clamp(28px, 5vw, 42px);
  text-align: center;
  margin-bottom: 10px;
  font-weight: 700;
}

.besoin-subtitle {
  text-align: center;
  color: var(--text-color);
  margin-bottom: 40px;
  font-size: 18px;
}



@media (max-width: 768px) {
  .besoin-page {
    padding: 120px 15px 60px 15px;
  }
  .besoin-container {
    padding: 30px 20px;
  }
  .tab-btn {
    padding: 15px;
    font-size: 14px;
    flex-grow: 1; /* Make buttons take up equal space */
  }
}
/* === CAREERS PAGE & ACCORDION STYLES === */
.careers-main {
  padding-top: 120px;
  background-color: var(--light-gray);
}
.careers-section {
  padding-bottom: 80px;
}
.accordion {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}
.accordion-item {
  background-color: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.accordion-item:hover {
  box-shadow: 0 4px 15px rgba(0, 51, 102, 0.08);
}
.accordion-header {
  width: 100%;
  background-color: transparent;
  border: none;
  padding: 20px 25px;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}
.accordion-header:hover {
  background-color: #f9fafb;
}
.job-location-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-color);
  margin-left: 20px;
}
.accordion-icon {
  font-size: 16px;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}
.accordion-item.active .accordion-header .accordion-icon {
  transform: rotate(45deg);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
  padding: 0 25px;
}
.accordion-item.active .accordion-content {
  padding: 0 25px 30px 25px;
  max-height: 1200px; /* Large enough for form */
  transition: max-height 0.8s ease-in, padding 0.8s ease-in;
}
.accordion-content .job-description {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #e5e7eb;
}
/* Center the status message container */
#form-status-container {
    max-width: 900px;
    margin: 20px auto;
}
/* === STYLES FOR REFERENCE PAGE === */
.references-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}
.references-intro {
  text-align: center;
  margin-bottom: 50px;
}
.references-intro h3 {
  font-size: clamp(22px, 4vw, 28px);
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 600;
}
.references-intro p {
  font-size: clamp(16px, 2.5vw, 18px);
  color: var(--text-color);
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
}
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 40px 30px;
  align-items: center;
  justify-items: center;
  margin-bottom: 60px;
}
.logo-grid img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.logo-grid img:hover {
  transform: scale(1.05);
}
.company-list-title {
  text-align: center;
  font-size: clamp(20px, 3vw, 24px);
  color: var(--primary-color);
  margin-bottom: 25px;
  font-weight: 600;
}
.company-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px 25px;
  list-style: none;
  padding: 0;
}
.company-list li {
  background-color: var(--white);
  border: 1px solid #e5e7eb;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-color);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/*
=====================================================
== CUSTOM MODIFICATIONS FOR DISPLAY & RESPONSIVENESS ==
=====================================================
*/

/* 1. DESKTOP SCALING: Scale the website to 80% on large screens and fix overflow */
@media screen and (min-width: 1440px) {
  body {
    /* This works well for Chrome/Edge/Safari and is generally preferred */
    zoom: 0.8;
  }

  /* Firefox-specific fix for scaling and overflow */
  @-moz-document url-prefix() {
    body {
      /* Reset zoom for Firefox in case it ever gets implemented differently */
      zoom: 1;
      /* Apply transform and adjust width to compensate for layout issues */
      transform: scale(0.8);
      transform-origin: top left;
      /* This is the key to fixing the overflow: (100% / 0.8 scale = 125%) */
      width: 125%;
    }
  }
}
/* ================================================== */
/* ===         MODERN REFERENCES PAGE STYLES        === */
/* ================================================== */

.references-section {
  padding-bottom: 80px;
}

.references-intro {
  max-width: 900px;
  margin: 0 auto 60px auto;
  padding: 30px 40px;
  background-color: var(--light-gray);
  border-left: 5px solid var(--accent-color);
  border-radius: 8px;
  text-align: center;
}

.references-intro h3 {
  color: var(--primary-color);
  font-size: clamp(22px, 4vw, 28px);
  margin-bottom: 15px;
}

.references-intro p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-color);
}

.client-showcase-title {
  text-align: center;
  font-size: clamp(24px, 5vw, 32px);
  color: var(--primary-color);
  margin-bottom: 40px;
  font-weight: 600;
}

.client-showcase-grid {
  display: grid;
  /* This creates a responsive grid that adjusts the number of columns automatically */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.client-card {
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 25px rgba(0, 51, 102, 0.07);
  padding: 30px 25px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.client-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 40px rgba(0, 51, 102, 0.12);
}

.client-logo {
  height: 90px; /* Fixed height container for logos */
  margin: 0 auto 25px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo img {
  max-height: 100%;
  max-width: 180px;
  object-fit: contain; /* Ensures logos of any shape fit perfectly */
}

.client-info h4 {
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .references-intro {
    padding: 25px;
  }
  .client-showcase-grid {
    gap: 20px;
  }
}