/* ==========================================================================
   ATLAS AQUATHERM SYSTEM - Standalone Clean CSS (Vanilla CSS3)
   100% Independent from WordPress, Elementor & Plugins
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@400;600;700&family=Poppins:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap');

/* CSS Variables / Theme Tokens */
:root {
  --primary-color: #092c4c;
  --secondary-color: #222222;
  --accent-color: #c2612b;
  --yellow-color: #ffda56;
  --yellow-hover: #f5c423;
  --text-grey: #666666;
  --light-bg: #f7f7f7;
  --border-color: #eeeeee;
  --font-heading: 'Josefin Sans', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

/* Reset & Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--secondary-color);
  background-color: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container Utility */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ==========================================================================
   HEADER LAYOUT (100% Full Width Bar, 1400px Topbar, 1200px Navbar)
   ========================================================================== */
header.site-header {
  width: 100%;
  background-color: #ffffff;
  position: relative;
  z-index: 999;
}

/* 1st Top Bar Header (1400px Centered, 1 Single Line) */
.header-topbar {
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid #eeeeee;
  padding: 8px 0;
}

.header-topbar .container-topbar {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 13px;
}

.topbar-item img,
.topbar-item svg {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.topbar-item .label {
  font-weight: 700;
  color: #2b2b2b;
}

.topbar-item .value {
  color: #777777;
  font-weight: 400;
}

/* 2nd Main Navigation Bar (1200px Centered) */
.header-navbar {
  width: 100%;
  background-color: #ffffff;
  padding: 12px 0;
}

.header-navbar .container-navbar {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.site-logo img {
  max-width: 160px;
  height: auto;
}

/* Navigation Links */
.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.main-navigation ul li a {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  color: #444444;
  letter-spacing: 0.5px;
  padding: 8px 0;
}

.main-navigation ul li a:hover,
.main-navigation ul li.active a {
  color: var(--accent-color);
}

/* Rendez-vous Header Button */
.btn-rendezvous {
  background-color: var(--yellow-color);
  color: #333333;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 28px;
  border-radius: 2px;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn-rendezvous:hover {
  background-color: var(--yellow-hover);
  color: #000000;
}

/* Mobile Menu Burger Button & Panel */
.btn-menu-mobile {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--primary-color);
  cursor: pointer;
}

/* ==========================================================================
   HERO SLIDER SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 550px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  transition: background-image 0.8s ease-in-out;
  color: #ffffff;
  padding: 80px 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 30px;
}

.btn-devis {
  background-color: var(--yellow-color);
  color: #333333;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 16px 36px;
  display: inline-block;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

.btn-devis:hover {
  background-color: var(--yellow-hover);
}

/* ==========================================================================
   ABOUT / MISSION / VISION SECTION
   ========================================================================== */
.about-section {
  padding: 70px 0;
  background-color: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text h6 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.about-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.info-card {
  background: var(--light-bg);
  padding: 30px 20px;
  border-radius: 6px;
  text-align: center;
}

.info-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
}

/* ==========================================================================
   SERVICES SECTION (Homepage Cards Matching User Screenshot Exactly)
   ========================================================================== */
.services-section {
  background-color: #f7f7f7;
  padding: 60px 0;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 30px 0;
}

.service-card {
  width: 31.8%;
  max-width: 31.8%;
  flex: 0 0 31.8%;
  background-color: #ffffff;
  border: none;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.service-card-img {
  width: 100%;
  margin-bottom: 0;
  position: relative;
}

.service-card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.service-card-icon {
  position: absolute;
  top: 170px;
  left: 20px;
  background-color: #ffffff;
  padding: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
}

.service-card-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.service-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #222222;
  text-align: center;
  margin-top: 36px;
  margin-bottom: 12px;
}

.service-card-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: #777777;
  text-align: center;
  padding: 0 22px 24px 22px;
}

.service-card-btn {
  margin-top: auto;
  width: 100%;
  padding: 0;
}

.service-card-btn a {
  display: block;
  width: 100%;
  background-color: #f2f2f2;
  color: #333333;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  padding: 16px 0;
  border-radius: 0;
  border: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.service-card-btn a:hover {
  background-color: #e5e5e5;
  color: #000000;
}

/* ==========================================================================
   PARTNERS SECTION (Single Row, 5 Logos)
   ========================================================================== */
.partners-section {
  padding: 50px 0;
  background-color: #ffffff;
  text-align: center;
}

.partners-grid {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.partner-logo img {
  max-height: 65px;
  width: auto;
  object-fit: contain;
}

/* ==========================================================================
   CONTACT FORM SECTION (2 Columns, Yellow Button, No Captcha)
   ========================================================================== */
.contact-section {
  padding: 70px 0;
  background-color: var(--light-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 15px;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid #cccccc;
  border-radius: 4px;
  background-color: #ffffff;
  color: #333333;
  outline: none;
}

.form-field input,
.form-field select {
  height: 44px;
}

.form-field textarea {
  min-height: 110px;
  resize: vertical;
}

.form-field.span-2 {
  grid-column: 1 / -1;
}

.hp-check {
  display: none !important;
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-alert {
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
  display: none;
  animation: fadeInFormAlert 0.3s ease;
}

@keyframes fadeInFormAlert {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-alert.success {
  background-color: #eafaf1;
  color: #1e7e34;
  border: 1px solid #c3e6cb;
  border-left: 5px solid #28a745;
}

.form-alert.error {
  background-color: #fdf3f2;
  color: #c0392b;
  border: 1px solid #f5c6cb;
  border-left: 5px solid #dc3545;
}

.btn-submit {
  background-color: var(--yellow-color);
  color: #222222;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 40px;
  border: 1px solid #d4a917;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
}

.btn-submit:hover:not(:disabled) {
  background-color: var(--yellow-hover);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  filter: grayscale(20%);
}


/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
footer.site-footer {
  background-color: #38373C;
  color: #ffffff;
  padding: 40px 0 20px 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.footer-logo img {
  max-width: 150px;
}

.footer-copy {
  font-size: 14px;
  color: #aaaaaa;
}

.footer-copy a {
  color: var(--yellow-color);
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
  .header-topbar .container-topbar {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .service-card {
    width: 48%;
    max-width: 48%;
    flex: 0 0 48%;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .btn-menu-mobile {
    display: block;
  }

  .main-navigation {
    display: none;
  }

  .service-card {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ABOUT CARDS SECTION (3 Colored Cards: Missions, Engagements, Vision)
   Exact match with User Screenshot
   ========================================================================== */
.about-cards-grid {
  display: flex !important;
  justify-content: space-between !important;
  align-items: stretch !important;
  gap: 25px !important;
  margin-top: 50px !important;
}

.about-cards-grid .info-card {
  flex: 1 1 31.5% !important;
  padding: 40px 30px !important;
  border-radius: 4px !important;
  text-align: left !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Card 1: NOS MISSIONS (Teal / Turquoise) */
.about-cards-grid .info-card:nth-child(1) {
  background-color: #09aeb8 !important;
  color: #ffffff !important;
}
.about-cards-grid .info-card:nth-child(1) h4 {
  color: #ffffff !important;
  font-family: 'Josefin Sans', sans-serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  margin-bottom: 20px !important;
  letter-spacing: 0.5px !important;
}
.about-cards-grid .info-card:nth-child(1) p {
  color: #ffffff !important;
  font-size: 14.5px !important;
  line-height: 1.7 !important;
  margin: 0 !important;
}

/* Card 2: NOS ENGAGEMENTS (Bright Gold Yellow) */
.about-cards-grid .info-card:nth-child(2) {
  background-color: #ffd154 !important;
  color: #2b2b2b !important;
}
.about-cards-grid .info-card:nth-child(2) h4 {
  color: #2b2b2b !important;
  font-family: 'Josefin Sans', sans-serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  margin-bottom: 20px !important;
  letter-spacing: 0.5px !important;
}
.about-cards-grid .info-card:nth-child(2) p {
  color: #333333 !important;
  font-size: 14.5px !important;
  line-height: 1.7 !important;
  margin: 0 !important;
}

/* Card 3: NOTRE VISION (Warm Orange) */
.about-cards-grid .info-card:nth-child(3) {
  background-color: #f39c38 !important;
  color: #ffffff !important;
}
.about-cards-grid .info-card:nth-child(3) h4 {
  color: #ffffff !important;
  font-family: 'Josefin Sans', sans-serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  margin-bottom: 20px !important;
  letter-spacing: 0.5px !important;
}
.about-cards-grid .info-card:nth-child(3) p {
  color: #ffffff !important;
  font-size: 14.5px !important;
  line-height: 1.7 !important;
  margin: 0 !important;
}

@media (max-width: 991px) {
  .about-cards-grid {
    flex-direction: column !important;
  }
  .about-cards-grid .info-card {
    width: 100% !important;
    flex: 1 1 100% !important;
  }
}
