@import url('fonts.css');

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Exo 2", Verdana, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.6;
  color: #000;
  background: #fff;
}
img { max-width: 100%; height: auto; display: inline-block; }
a { color: #F67B47; text-decoration: none; }
a:hover { color: #32A86B; }
ul { margin-left: 1.5em; margin-bottom: 0.5em; }
li { margin-bottom: 0.3em; }

/* === Layout wrapper === */
.site-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === Fixed top (header + nav) === */
.site-top-fixed {
  position: sticky;
  top: 0;
  z-index: 200;
  background: url('../images/IMAG4999-small.webp') center 32% / cover no-repeat;
  border-radius: 0 0 0 50px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .site-top-fixed { background-image: url('../images/IMAG4999-medium.webp'); }
}
@media (min-width: 1400px) {
  .site-top-fixed { background-image: url('../images/IMAG4999-large.webp'); }
}
.site-top-fixed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.40);
  pointer-events: none;
}
.site-top-fixed > * {
  position: relative;
  z-index: 1;
}

/* === Header === */
.site-header {
  background: transparent;
  padding: 40px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  max-width: none;
  padding: 0 30px;
}
.header-logo img {
  max-width: 400px;
  height: auto;
}
.header-contact {
  text-align: right;
  font-size: 14px;
  line-height: 1.6;
  color: #fff;
}
.header-contact a { font-weight: bold; color: #fff; }
.header-contact a:hover { color: #FF3333; }
.header-contact .pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
}
.header-contact .pdf-link img {
  width: 20px;
  height: 20px;
}

/* === Navigation === */
.site-nav {
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.nav-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: none;
  padding: 0 30px;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 15px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s;
}
.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav-menu li { position: relative; }
.nav-menu > li > a {
  display: block;
  padding: 14px 18px;
  color: #fff;
  font-family: "Lato", "Open Sans", Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
  border-bottom: 3px solid transparent;
}
.nav-menu > li > a:hover {
  color: #FF3333;
  border-bottom-color: #FF3333;
}
.nav-menu > li > a.active {
  color: #FF3333;
  border-bottom-color: #FF3333;
}

/* Dropdown container */
.has-dropdown { display: flex; align-items: center; }
.has-dropdown > a { padding-right: 6px; }
.dropdown-toggle {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 14px 12px 14px 2px;
  font-size: 11px;
  line-height: 1;
  transition: color 0.2s;
}
.dropdown-toggle:hover { color: #F67B47; }

/* Dropdown menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #E2E2E2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 100;
  min-width: 220px;
  list-style: none;
  padding: 6px 0;
  margin: 0;
}
.dropdown-menu li a {
  display: block;
  padding: 9px 18px;
  color: #333;
  font-size: 13px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.dropdown-menu li a:hover {
  background: #f8f8f8;
  color: #F67B47;
}
.dropdown-menu li a.active {
  color: #F67B47;
  font-weight: bold;
}

/* Dropdown open state */
.has-dropdown.open .dropdown-menu { display: block; }

/* === Main content === */
.site-main {
  padding: 10px 0 40px;
  min-height: 400px;
}
.site-main h1 {
  font-size: 16px;
  font-family: "Exo 2", Verdana, Arial, sans-serif;
  color: #000;
  margin: 20px 0 10px;
}
.site-main h1:first-child { margin-top: 0; }
.site-main p { margin-bottom: 10px; }
.site-main hr {
  border: none;
  border-top: 1px solid #E2E2E2;
  margin: 25px 0;
}

/* === Page intro (index) === */
.page-intro {
  text-align: center;
  padding: 15px 20px 30px;
}
.page-intro h1 {
  font-size: 28px;
  font-weight: 600;
  color: #000;
  margin: 0 0 15px;
  font-family: "Exo 2", Arial, sans-serif;
}
.page-intro .lead {
  font-size: 32px;
  font-family: "Exo 2", sans-serif;
  font-style: italic;
  font-weight: 600;
  line-height: 1.7;
  color: #000;
  max-width: 900px;
  margin: 0 auto;
}

/* === Content bands (index) === */
.content-band {
  padding: 45px 0;
}
.content-band--alt {
  background: #F2F2F2;
  padding: 45px 0;
}

/* === Prestations grid (index) === */
.prestations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 100px;
  row-gap: 0;
  margin-top: 0;
}
.prestation {
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
}
.prestation .section-body {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
}
.prestation-extra {
  font-size: 16px;
  color: #000;
}
.key-points {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 25px;
  margin-top: 20px;
}
.key-points span {
  font-family: "Exo 2", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #FF3333;
  text-transform: uppercase;
}
.key-points span + span::before {
  content: "|";
  margin-right: 25px;
  color: #ccc;
  font-weight: 400;
}
.badge-50ans {
  display: block;
  width: 120px;
  height: auto;
  margin: 15px auto 0;
}
.section-icon {
  display: block;
  width: 60px;
  height: 60px;
  margin: 0 auto 10px;
  object-fit: contain;
}
.section-title.section-title--editorial {
  font-size: 42px;
  font-style: italic;
}

/* === Capability cards grid (pesage) === */
.capability-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 25px;
}
.capability-card {
  background: #fff;
  border: 1px solid #E2E2E2;
  border-radius: 6px;
  padding: 25px 30px;
}
.capability-card__title {
  font-family: "Exo 2", Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #FF3333;
  margin: 0 0 10px;
}
.capability-card__subtitle {
  font-size: 13px;
  font-style: italic;
  color: #555;
  margin: 0 0 10px;
}
.capability-card__list {
  list-style: disc;
  margin: 0;
  padding: 0 0 0 20px;
  font-size: 13px;
  color: #000;
}
.capability-card__list li {
  padding: 2px 0;
}
.capability-card--featured {
  border-left: 4px solid #FF3333;
}
.capability-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

/* === Logos grid (index) === */
.logos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
  align-items: center;
}
.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
}
.logo-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.logo-item img {
  max-height: 60px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.logo-item--sgt {
  background: none;
}
.logo-item--sgt img {
  background: #3e3e3e;
  border-radius: 6px;
  padding: 3px;
}
.logo-item--sep img {
  background: #BD2F27;
  border-radius: 6px;
  padding: 3px;
}

.content-band--cta {
  background: #F67B47;
  text-align: center;
  padding: 40px 0;
}
.content-band--cta p {
  font-size: 18px;
  line-height: 1.6;
  color: #fff;
  font-weight: 600;
  font-family: "Exo 2", Arial, sans-serif;
  max-width: 800px;
  margin: 0 auto 20px;
}
.section-title {
  font-size: 26px;
  font-weight: 600;
  color: #000;
  font-family: "Exo 2", Arial, sans-serif;
  margin: 0 0 15px;
  padding: 0;
  text-align: center;
}
.section-body {
  font-size: 16px;
  line-height: 1.8;
  color: #000;
}
.section-body > p {
  text-align: center;
}
.section-logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 15px;
}
.section-body-cols {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}
.section-body-cols ul { flex: 1; }
.section-photo {
  width: auto;
  height: 180px;
  border-radius: 8px;
  opacity: 0.85;
  object-fit: cover;
}
.section-body ul {
  list-style: disc;
  margin: 10px 0 0;
  padding: 0 0 0 20px;
  color: #000;
  font-size: 13px;
}
.section-body ul ul {
  margin-top: 2px;
}
.section-body ul li {
  padding: 1px 0;
  margin: 0;
}

/* === Tagline banner (legacy) === */
.content-band--cta .pdf-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #F67B47;
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.content-band--cta .pdf-button:hover {
  background: #333;
  color: #fff;
}
.content-band--cta .pdf-button img {
  width: 22px;
  height: 22px;
}

/* === Image gallery (realisations) === */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 15px;
}
.image-gallery img { width: 100%; height: auto; cursor: pointer; object-fit: cover; }
#gallery .image-gallery a { display: block; }
.image-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
}
.image-pair img { max-width: 320px; cursor: pointer; }
#gallery .image-pair a,
#gallery > p > a { display: inline-block; }

/* === Two-column layout === */
.two-col {
  display: flex;
  gap: 40px;
  align-items: center;
}
.two-col--reverse { flex-direction: row-reverse; }
.two-col--vcenter { align-items: center; }
.two-col > .col-text { flex: 1; }
.two-col > .col-image { flex-shrink: 0; max-width: 50%; }
.two-col > .col-image img { width: 100%; height: auto; border-radius: 6px; }

/* === Lazy loading LQIP blur-up === */
img.lazy {
  filter: blur(8px);
  transition: filter 0.4s ease-out;
}
img.loaded {
  filter: blur(0);
}

/* === Footer === */
.site-footer {
  border-top: 1px solid #E2E2E2;
  padding: 15px 0;
  text-align: center;
  font-size: 11px;
  color: #777;
}
.site-copyright {
  text-align: center;
  font-size: 11px;
  color: #777;
  margin-top: 30px;
}

/* ================================
   Responsive
   ================================ */

/* Tablet (768px+): desktop nav visible by default (already is) */

/* Desktop (1024px+): dropdown on hover */
@media (min-width: 1024px) {
  .has-dropdown:hover .dropdown-menu { display: block; }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  /* Header */
  .header-inner {
    flex-direction: column;
    text-align: center;
  }
  .header-contact { text-align: center; }
  .header-logo img { max-width: 250px; }

  /* Nav hamburger */
  .nav-inner { padding: 0 15px; }
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a {
    padding: 12px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: none;
  }
  .has-dropdown { flex-wrap: wrap; }
  .has-dropdown > a { flex: 1; }
  .dropdown-toggle { padding: 12px 15px; }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: rgba(0, 0, 0, 0.25);
    width: 100%;
  }
  .dropdown-menu li a { padding-left: 30px; color: #fff; }

  /* Content */
  .two-col { flex-direction: column; }
  .two-col--reverse { flex-direction: column; }
  .two-col > .col-image { order: -1; max-width: 100%; }
  .image-gallery { grid-template-columns: repeat(2, 1fr); }
  .image-pair img { max-width: 100%; }
  .site-main img { max-width: 100%; }
  .section-body-cols { flex-direction: column; }
  .section-photo { width: 100%; max-width: 250px; }

  /* Capability cards */
  .capability-grid { grid-template-columns: 1fr; }

  /* Index sections */
  .page-intro { padding: 25px 10px 20px; }
  .page-intro .lead { font-size: 17px; }
  .content-band { padding: 30px 0; }
  .content-band--alt { padding: 40px 0 50px; }
  .prestations-grid { grid-template-columns: 1fr; column-gap: 0; row-gap: 30px; }
  .logos-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .prestation { grid-row: auto; grid-template-rows: auto; display: block; }
  .prestation .section-body { display: block; }
  .content-band--cta { padding: 25px 0; }
  .content-band--cta p { font-size: 15px; }
  .section-title { font-size: 22px; }
}
