/* ============================================================
   GÉNÉRALE CONSULTING EN GÉNIE CIVIL — Global Stylesheet
   ============================================================ */

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

/* ── CSS Custom Properties ── */
:root {
  --orange: #E86024;
  --orange-light: #FF7A40;
  --orange-glow: rgba(232, 96, 36, 0.18);
  --anthracite: #2B2D42;
  --anthracite-80: rgba(43, 45, 66, 0.80);
  --gray-soft: #F4F4F6;
  --gray-mid: #DCDDE3;
  --gray-text: #6C6F85;
  --white: #FFFFFF;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.45);

  --font-body: 'Inter', sans-serif;
  --font-heading: 'Montserrat', sans-serif;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 4px 24px rgba(43, 45, 66, 0.08);
  --shadow-hover: 0 12px 40px rgba(232, 96, 36, 0.22);
  --shadow-glass: 0 8px 32px rgba(43, 45, 66, 0.12);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--anthracite);
  background: var(--white);
  line-height: 1.7;
  animation: pageFadeIn 0.5s ease both;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ── Typography Helpers ── */
.section-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--anthracite);
  line-height: 1.2;
  margin-bottom: 1.1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-text);
  max-width: 560px;
  margin-bottom: 2.8rem;
}

/* ── Layout Utilities ── */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 2rem;
}

.section {
  padding: 96px 0;
}

.section--gray {
  background: var(--gray-soft);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-transform: uppercase;
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.btn--primary:hover {
  background: var(--orange-light);
  border-color: var(--orange-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(232, 96, 36, 0.42);
}

.btn--outline {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
}

.btn--outline:hover {
  background: var(--orange);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(232, 96, 36, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover {
  background: var(--white);
  color: var(--orange);
  transform: translateY(-3px);
}

/* ── HEADER (static, top only) ── */
.site-header {
  position: relative;
  width: 100%;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-mid);
  box-shadow: 0 2px 20px rgba(43, 45, 66, 0.09);
  transition: var(--transition);
  /* Prevent nav dropdown from creating a horizontal scrollbar on mobile */
  overflow: hidden;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 2rem;
}

/* Logo */
.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  line-height: 1.15;
  text-decoration: none;
}
.logo__img {
  height: 30px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.logo__text {
  display: flex;
  flex-direction: column;
}

.logo__main {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--anthracite);
  letter-spacing: -0.01em;
}

.logo__sub {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  position: relative;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--anthracite);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2.5px;
  background: var(--orange);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--orange);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: calc(100% - 1.7rem);
}

/* Mobile Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: transparent;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--anthracite);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── PAGE BANNER (shared) ── */
.page-banner {
  padding: 72px 2rem 64px;
  background: linear-gradient(135deg, var(--anthracite) 0%, #3d3f5c 100%);
  background-size: cover;
  background-position: center 40%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 6, 3, 0.18) 0%, rgba(10, 7, 3, 0.40) 55%, rgba(6, 4, 2, 0.65) 100%);
}

.page-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(232, 96, 36, 0.14) 0%, transparent 60%);
  pointer-events: none;
}

.page-banner__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
  position: relative;
}

.page-banner__title span {
  color: var(--orange);
}

.page-banner__breadcrumb {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.06em;
  position: relative;
}

.page-banner__breadcrumb a {
  color: var(--orange);
}

/* ── PROJECT CARD ── */
.project-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.project-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--gray-mid) 0%, #c8c9d2 100%);
  position: relative;
  overflow: hidden;
}

.project-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card__thumb img {
  transform: scale(1.06);
}

.project-card__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(43, 45, 66, 0.35) 0%, transparent 60%);
}

.project-card__thumb-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 0.25;
  z-index: 1;
}

.project-card__body {
  padding: 1.4rem 1.6rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card__cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.4rem;
}

.project-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--anthracite);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.project-card__desc {
  font-size: 0.86rem;
  color: var(--gray-text);
  line-height: 1.6;
}

/* Flexible spacer — absorbs leftover height, pins button to card bottom */
.project-card__spacer {
  flex: 1;
  min-height: 1.2rem;
}

/* ── SERVICE CARD ── */
.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2.4rem 2rem;
  box-shadow: var(--shadow-card);
  border: 1.5px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--orange);
  border-radius: 0 0 4px 0;
  transition: height 0.4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--orange-glow);
}

.service-card:hover::before {
  height: 100%;
}

.service-card__icon {
  width: 56px;
  height: 56px;
  background: var(--orange-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.4rem;
  transition: var(--transition);
}

.service-card:hover .service-card__icon {
  background: var(--orange);
  transform: scale(1.1);
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--anthracite);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.service-card__list {
  padding: 0;
}

.service-card__list li {
  font-size: 0.875rem;
  color: var(--gray-text);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--gray-soft);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.service-card__list li:last-child {
  border-bottom: none;
}

.service-card__list li::before {
  content: '›';
  color: var(--orange);
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.6;
}

/* ── TEAM CARD ── */
.team-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem 1.6rem;
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: var(--transition);
  border-top: 4px solid var(--gray-mid);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-top-color: var(--orange);
}

.team-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--orange-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.2rem;
  transition: var(--transition);
}

.team-card:hover .team-card__icon {
  background: var(--orange);
}

.team-card__name {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--anthracite);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

/* ── CONTACT FORM ── */
.form-group {
  margin-bottom: 1.6rem;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 0;
  border: none;
  border-bottom: 2px solid var(--gray-mid);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--anthracite);
  outline: none;
  transition: border-color 0.3s ease;
  border-radius: 0;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-bottom-color: var(--orange);
}

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

/* ── FOOTER ── */
.site-footer {
  background: var(--anthracite);
  color: rgba(255, 255, 255, 0.65);
  padding: 56px 0 0;
  display: block;
  /* ensures no extra space below */
}

.footer-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand {}

.logo__img--footer {
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-brand .logo__main {
  color: var(--white);
  font-size: 1.1rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.2rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.25s;
}

.footer-nav a:hover {
  color: var(--orange);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact-info p {
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-contact-info span {
  color: var(--orange);
  flex-shrink: 0;
}

.footer-bottom {
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin-inline: auto;
  margin-top: 3rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

.social-icons {
  display: flex;
  gap: 0.7rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.social-icon:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

/* ── FILTER BUTTONS (projets.html) ── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.55rem 1.5rem;
  border-radius: 50px;
  border: 2px solid var(--gray-mid);
  background: transparent;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-text);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.filter-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

/* Card filtering animation */
.project-card {
  transition: var(--transition), opacity 0.35s ease, transform 0.35s ease;
}

/* ── GRIDS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 2rem;
}

.team-dept-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ── STATS STRIP ── */
.stats-strip {
  background: var(--orange);
  padding: 3.5rem 0;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 2rem;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.stat__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.4rem;
}

/* ── INFO BOX (contact) ── */
.info-box {
  background: var(--anthracite);
  border-radius: var(--radius-md);
  padding: 2.8rem;
  color: var(--white);
  height: 100%;
}

.info-box__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: var(--white);
}

.info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-item__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(232, 96, 36, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--orange);
  flex-shrink: 0;
}

.info-item__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.2rem;
}

.info-item__value {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

/* ── CONTACT GRID ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* ── ORG CHART ── */
.org-top {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.org-connector {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.org-connector::before {
  content: '';
  width: 2px;
  height: 36px;
  background: linear-gradient(to bottom, var(--orange), var(--gray-mid));
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--gray-soft);
}

::-webkit-scrollbar-thumb {
  background: var(--orange);
  border-radius: 3px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .team-dept-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .hamburger {
    display: flex;
  }

  .site-nav {
    display: none;
    position: fixed;
    top: 74px;
    left: 0;
    width: 100%;
    max-width: 100vw;
    background: var(--white);
    flex-direction: column;
    padding: 1rem 2rem 1.5rem;
    border-bottom: 1px solid var(--gray-mid);
    box-shadow: 0 8px 24px rgba(43, 45, 66, 0.1);
    gap: 0.2rem;
    z-index: 200;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.7rem 0 0.7rem 0.8rem;
    width: 100%;
    border-radius: 6px;
  }

  /* Clear "current page" indicator in the mobile dropdown —
     the desktop centered underline is too subtle in a stacked list */
  .site-nav a::after {
    display: none;
  }

  .site-nav a.active {
    background: rgba(232, 96, 36, 0.08);
    border-left: 3px solid var(--orange);
    padding-left: 0.65rem;
  }

  .team-dept-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 500px) {
  .team-dept-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .page-banner {
    padding: 52px 1.5rem 44px;
  }
}