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

:root {
  --rouge: #C8161D;
  --rouge-fonce: #9B1015;
  --noir: #111111;
  --gris-fonce: #333333;
  --gris-clair: #F5F5F5;
  --gris-bordure: #E0E0E0;
  --blanc: #FFFFFF;
  --texte: #1A1A1A;
  --texte-clair: #666666;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Barlow', sans-serif;
  color: var(--texte);
  background: var(--blanc);
  overflow-x: hidden;
}

/* ======= NAVBAR ======= */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--blanc);
  border-bottom: 1px solid var(--gris-bordure);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; }
.nav-logo-box {
  background: var(--rouge);
  color: var(--blanc);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -1px;
  padding: 4px 10px;
  line-height: 1;
}
.nav-logo-text {
  color: var(--noir);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.4;
}
.nav-links { display: flex; align-items: center; list-style: none; }
.nav-links a {
  color: var(--gris-fonce);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  position: relative;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--rouge); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 1rem; right: 1rem;
  height: 2px;
  background: var(--rouge);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: var(--blanc);
  border: 1px solid var(--gris-bordure);
  border-top: 2px solid var(--rouge);
  min-width: 260px;
  list-style: none;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.09);
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a {
  display: block; padding: 0.75rem 1.2rem;
  border-bottom: 1px solid var(--gris-clair);
  color: var(--gris-fonce); font-size: 0.83rem;
}
.dropdown-menu li:last-child a { border-bottom: none; }
.dropdown-menu li a:hover { background: var(--gris-clair); color: var(--rouge); }
.dropdown-menu li a::after { display: none; }
.dropdown > a::before { content: '▾ '; font-size: 0.8rem; }

.nav-cta {
  background: var(--rouge) !important;
  color: var(--blanc) !important;
  padding: 0.55rem 1.4rem !important;
  font-weight: 700 !important;
  margin-left: 0.5rem;
}
.nav-cta:hover { background: var(--rouge-fonce) !important; }
.nav-cta::after { display: none !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--noir); transition: all 0.3s; }

@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none; flex-direction: column; align-items: stretch;
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--blanc);
    border-top: 1px solid var(--gris-bordure);
    padding: 0.5rem 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 1.2rem 2rem; font-size: 1rem; border-bottom: 1px solid var(--gris-bordure); }
  .nav-links > li:last-child > a.nav-cta { border-bottom: none; }
  .nav-links a::after { display: none; }
  .dropdown-menu {
    position: static; border: none; box-shadow: none;
    border-left: 3px solid var(--rouge); margin-left: 2rem;
  }
  .dropdown-menu li a { border-bottom: none; padding: 0.75rem 1.2rem; }
  .nav-cta { margin: 0.75rem 2rem 1rem !important; text-align: center; display: block; border-bottom: none !important; }
}

/* ======= HERO ======= */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: var(--gris-clair);
  border-bottom: 3px solid var(--rouge);
  padding-top: 70px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('assets/hero.jpg');
  background-size: cover; background-position: center;
  opacity: 0.1;
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 1280px; margin: 0 auto;
  padding: 5rem 2rem; width: 100%;
}
.hero-tag {
  display: inline-block;
  background: var(--rouge); color: var(--blanc);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.72rem;
  letter-spacing: 3px; text-transform: uppercase;
  padding: 5px 12px; margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.93;
  color: var(--noir);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
}
.hero h1 span { color: var(--rouge); }
.hero-sub {
  font-size: 1.1rem; font-weight: 400;
  color: var(--texte-clair);
  max-width: 560px; line-height: 1.75;
  margin-bottom: 2.5rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 3rem; flex-wrap: wrap;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--gris-bordure);
}
.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 2.5rem;
  color: var(--noir); line-height: 1;
}
.stat-num span { color: var(--rouge); }
.stat-label {
  font-size: 0.72rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--texte-clair); margin-top: 4px;
}

/* ======= BUTTONS ======= */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.88rem;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 0.85rem 1.8rem;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.2s ease;
}
.btn-rouge { background: var(--rouge); color: var(--blanc); }
.btn-rouge:hover { background: var(--rouge-fonce); }
.btn-outline { background: transparent; color: var(--noir); border: 2px solid var(--noir); }
.btn-outline:hover { border-color: var(--rouge); color: var(--rouge); }
.btn-blanc { background: var(--blanc); color: var(--rouge); font-weight: 800; }
.btn-blanc:hover { background: var(--gris-clair); }

/* ======= LAYOUT ======= */
section { padding: 6rem 2rem; }
.container { max-width: 1280px; margin: 0 auto; }
.bg-gris { background: var(--gris-clair); }

.section-label {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.72rem;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--rouge); margin-bottom: 0.75rem;
}
.section-label::before { content: ''; display: block; width: 24px; height: 2px; background: var(--rouge); }

h2.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -1px;
  color: var(--noir);
  margin-bottom: 1.25rem;
}
h2.section-title span { color: var(--rouge); }

/* ======= SERVICES GRID ======= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.service-card {
  background: var(--blanc);
  border: 1px solid var(--gris-bordure);
  padding: 2.5rem 2rem;
  position: relative; overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  text-decoration: none; color: inherit; display: block;
}
.service-card::before {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--rouge);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.service-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.09); transform: translateY(-3px); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { font-size: 2rem; margin-bottom: 1.2rem; display: block; }
.service-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 1.3rem;
  text-transform: uppercase; letter-spacing: 0.3px;
  margin-bottom: 0.75rem; color: var(--noir);
}
.service-card p { font-size: 0.9rem; color: var(--texte-clair); line-height: 1.7; }
.service-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.78rem;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--rouge); margin-top: 1.2rem; text-decoration: none;
}

/* ======= TEAM ======= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem; margin-top: 3rem;
}
.team-card {
  background: var(--blanc);
  border: 1px solid var(--gris-bordure);
  display: flex; flex-direction: column; overflow: hidden;
}
.team-photo-placeholder {
  width: 100%; height: 260px;
  background: var(--gris-clair);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: var(--gris-bordure);
  border-bottom: 3px solid var(--rouge);
}
.team-body { padding: 2rem; flex: 1; }
.team-role {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.72rem;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--rouge); margin-bottom: 0.3rem;
}
.team-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 1.7rem;
  text-transform: uppercase; letter-spacing: -0.5px;
  margin-bottom: 1rem; color: var(--noir);
}
.team-bio { font-size: 0.9rem; line-height: 1.75; color: var(--texte-clair); margin-bottom: 1.5rem; }
.team-contacts {
  display: flex; flex-direction: column; gap: 0.5rem;
  border-top: 1px solid var(--gris-bordure); padding-top: 1rem;
}
.team-contact-item {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.88rem; color: var(--texte);
  text-decoration: none; transition: color 0.2s;
}
.team-contact-item:hover { color: var(--rouge); }
.team-contact-item span:first-child { color: var(--rouge); }

/* ======= CLIENTS BAND ======= */
.clients-band {
  background: var(--gris-clair);
  padding: 3rem 2rem; text-align: center;
  border-top: 1px solid var(--gris-bordure);
  border-bottom: 1px solid var(--gris-bordure);
}
.clients-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.72rem;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--texte-clair); margin-bottom: 2rem;
}
.clients-logos { display: flex; align-items: center; justify-content: center; gap: 4rem; flex-wrap: wrap; }
.client-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 1.8rem;
  letter-spacing: 3px; text-transform: uppercase;
  color: #bbb; transition: color 0.2s;
}
.client-logo:hover { color: var(--rouge); }

/* ======= CERTIF ======= */
.certif-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 2px solid var(--rouge);
  padding: 5px 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 0.82rem;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--rouge); margin-top: 0.75rem;
}

/* ======= PAGE HERO ======= */
.page-hero {
  background: var(--gris-clair);
  padding: 8rem 2rem 4rem;
  border-bottom: 3px solid var(--rouge);
}
.page-hero-content { max-width: 1280px; margin: 0 auto; }
.page-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--noir);
  text-transform: uppercase;
  letter-spacing: -2px; line-height: 0.95;
}
.page-hero h1 span { color: var(--rouge); }
.page-hero p {
  margin-top: 1rem; color: var(--texte-clair);
  font-size: 1rem; max-width: 580px; line-height: 1.75;
}
.breadcrumb {
  display: flex; gap: 0.5rem; align-items: center;
  margin-bottom: 1.5rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase;
}
.breadcrumb a { color: var(--texte-clair); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--rouge); }
.breadcrumb span { color: var(--gris-bordure); }
.breadcrumb .current { color: var(--rouge); }

/* ======= CONTENT BLOCKS ======= */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center; margin-bottom: 5rem;
}
.content-block.reverse { direction: rtl; }
.content-block.reverse > * { direction: ltr; }
.content-img-placeholder {
  width: 100%; aspect-ratio: 4/3;
  background: var(--gris-clair);
  border: 1px solid var(--gris-bordure);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 1rem; color: #ccc; font-size: 3rem;
}
.content-img-placeholder p { font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: #bbb; }
@media (max-width: 768px) {
  .content-block { grid-template-columns: 1fr; gap: 2rem; }
  .content-block.reverse { direction: ltr; }
}

/* ======= FEATURE LIST ======= */
.feature-list { list-style: none; margin: 1.5rem 0; display: flex; flex-direction: column; gap: 0.75rem; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.93rem; line-height: 1.6; color: var(--texte);
}
.feature-list li::before { content: '▸'; color: var(--rouge); font-size: 0.9rem; margin-top: 2px; flex-shrink: 0; }

/* ======= HIGHLIGHT BOX ======= */
.highlight-box {
  border-left: 4px solid var(--rouge);
  padding: 1.25rem 1.75rem;
  background: var(--gris-clair); margin: 2rem 0;
}
.highlight-box p { font-size: 0.95rem; line-height: 1.8; font-style: italic; color: var(--texte); }

/* ======= MACHINES GRID ======= */
.machines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px; background: var(--gris-bordure); margin: 2rem 0;
}
.machine-item { background: var(--blanc); padding: 1.75rem; text-align: center; }
.machine-item h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 0.8rem;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--rouge); margin-bottom: 0.5rem;
}
.machine-item p { font-size: 0.85rem; color: var(--texte-clair); line-height: 1.6; }

/* ======= CONTACT ======= */
.contact-section { background: var(--gris-clair); padding: 6rem 2rem; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem; margin-top: 3rem;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: 3rem; } }

.contact-info-block { display: flex; flex-direction: column; gap: 2rem; }
.contact-info-item h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 0.78rem;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--rouge); margin-bottom: 0.5rem;
}
.contact-info-item p, .contact-info-item a {
  font-size: 0.93rem; color: var(--texte-clair);
  text-decoration: none; line-height: 1.8; display: block; transition: color 0.2s;
}
.contact-info-item a:hover { color: var(--rouge); }

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.72rem;
  letter-spacing: 2px; text-transform: uppercase; color: var(--texte-clair);
}
.form-group input, .form-group textarea, .form-group select {
  background: var(--blanc);
  border: 1px solid var(--gris-bordure);
  color: var(--texte);
  padding: 0.85rem 1rem;
  font-family: 'Barlow', sans-serif;
  font-size: 0.93rem;
  outline: none; transition: border-color 0.2s; width: 100%;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--rouge); }
.form-group textarea { resize: vertical; min-height: 140px; }

.map-container { width: 100%; height: 360px; overflow: hidden; }
.map-container iframe { width: 100%; height: 100%; border: none; }

/* ======= FOOTER ======= */
footer {
  background: var(--blanc);
  border-top: 3px solid var(--rouge);
  padding: 4rem 2rem 2rem;
}
.footer-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-logo-box { display: inline-flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-brand {
  background: var(--rouge); color: var(--blanc);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 1.4rem; padding: 3px 8px;
}
.footer-brand-text {
  color: var(--noir);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600; font-size: 0.68rem;
  letter-spacing: 2px; text-transform: uppercase; line-height: 1.5;
}
.footer-desc { color: var(--texte-clair); font-size: 0.88rem; line-height: 1.8; }
.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 0.72rem;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--rouge); margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a {
  color: var(--texte-clair); text-decoration: none;
  font-size: 0.88rem; transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--rouge); }
.footer-bottom {
  max-width: 1280px; margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--gris-bordure);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { color: #aaa; font-size: 0.8rem; }
.footer-bottom a { color: #aaa; text-decoration: none; font-size: 0.8rem; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--rouge); }

/* ======= VALEURS ======= */
.valeurs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--gris-bordure); margin-top: 3rem;
}
@media (max-width: 700px) { .valeurs-grid { grid-template-columns: 1fr; } }
.valeur-item {
  padding: 2.5rem; background: var(--blanc); position: relative;
}
.valeur-item:nth-child(even) { background: var(--gris-clair); }
.valeur-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 3.5rem;
  color: rgba(200,22,29,0.07); line-height: 1;
  position: absolute; top: 1rem; right: 1.5rem;
}
.valeur-item h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 1.15rem;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 0.6rem; color: var(--noir);
}
.valeur-item p { font-size: 0.88rem; color: var(--texte-clair); line-height: 1.7; }

/* ======= TIMELINE ======= */
.timeline { margin-top: 3rem; position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--gris-bordure); }
.timeline-item { position: relative; padding-bottom: 2.5rem; padding-left: 2rem; }
.timeline-item::before {
  content: ''; position: absolute;
  left: -2rem; top: 6px;
  width: 12px; height: 12px;
  background: var(--rouge); border-radius: 50%;
}
.timeline-year {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 0.78rem;
  letter-spacing: 2px; color: var(--rouge); margin-bottom: 0.2rem;
}
.timeline-item h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 1.05rem; color: var(--noir); margin-bottom: 0.3rem;
}
.timeline-item p { font-size: 0.88rem; color: var(--texte-clair); line-height: 1.65; }

/* ======= CTA BAND ======= */
.cta-band { background: var(--rouge); padding: 5rem 2rem; text-align: center; }
.cta-band h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: clamp(2rem, 5vw, 3rem);
  color: var(--blanc); text-transform: uppercase;
  letter-spacing: -1px; margin-bottom: 1rem;
}
.cta-band p {
  color: rgba(255,255,255,0.88); font-size: 1rem;
  margin-bottom: 2rem; max-width: 500px;
  margin-left: auto; margin-right: auto;
}

/* ======= SCROLL REVEAL ======= */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.65s ease forwards; }
.delay-1 { animation-delay: 0.15s; opacity: 0; }
.delay-2 { animation-delay: 0.3s; opacity: 0; }
.delay-3 { animation-delay: 0.45s; opacity: 0; }

/* ======= MISC ======= */
.text-rouge { color: var(--rouge); }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
strong { font-weight: 600; }
p { line-height: 1.8; text-align: justify !important; }

/* ======= TEXTE JUSTIFIÉ – exceptions ======= */
/* On ne justifie pas les éléments d'interface */
.nav-links a, .btn, .section-label, h1, h2, h3, h4,
.hero-tag, .team-role, .team-name, .footer-col ul a,
.footer-bottom p, .footer-bottom a, .footer-desc,
.clients-title, .client-logo, .certif-badge,
.chantier-num, .chantier-tags, .tag,
.timeline-year, .breadcrumb, .stat-label,
.machine-item h4, .valeur-item h3,
.cta-band h2, .cta-band p,
.contact-info-item h4,
.form-group label { text-align: left; }

.cta-band p { text-align: center !important; }
.clients-title { text-align: center !important; }
.machine-item p { text-align: center !important; }
.page-hero p { text-align: left !important; }
.hero-sub { text-align: left !important; }
.footer-bottom p { text-align: left !important; }
.footer-desc { text-align: left !important; }
.content-img-placeholder p { text-align: center !important; }

/* ======= MOBILE GLOBAL ======= */
@media (max-width: 768px) {
  section { padding: 4rem 1.25rem; }
  .container { padding: 0; }

  /* Hero */
  .hero { min-height: auto; padding-top: 70px; }
  .hero-content { padding: 3rem 1.25rem; }
  .hero h1 { letter-spacing: -1px; margin-bottom: 1rem; }
  .hero-sub { font-size: 1rem; margin-bottom: 1.5rem; }
  .hero-stats { gap: 1.5rem; margin-top: 2.5rem; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }

  /* Page hero */
  .page-hero { padding: 6rem 1.25rem 3rem; }
  .page-hero h1 { letter-spacing: -1px; }

  /* Content blocks */
  .content-block { grid-template-columns: 1fr !important; gap: 2rem; direction: ltr !important; }
  .content-block.reverse { direction: ltr !important; }
  .content-block > * { direction: ltr !important; }
  .content-block img { width: 100% !important; }

  /* Sections padding inline */
  section[style*="padding"] { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
  div[style*="padding: 6rem 2rem"], div[style*="padding: 5rem 2rem"],
  div[style*="padding: 4rem 2rem"] {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  /* Grilles inline 2 colonnes → 1 colonne */
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1.2fr"],
  div[style*="grid-template-columns: 1fr 1.4fr"],
  div[style*="grid-template-columns: 1fr 1.5fr"],
  div[style*="grid-template-columns: 2fr 1fr"],
  div[style*="grid-template-columns: 1fr 2fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    direction: ltr !important;
  }

  /* Grilles de références clients */
  div[style*="grid-template-columns: repeat(auto-fit, minmax(220px"] {
    grid-template-columns: 1fr !important;
  }

  /* Timeline 2 colonnes */
  div[style*="grid-template-columns: 1fr 1fr"][style*="gap: 5rem"] {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  /* Chantiers */
  .chantier-inner { grid-template-columns: 1fr !important; gap: 2rem !important; direction: ltr !important; }
  .chantier-inner.reverse { direction: ltr !important; }
  .photo-grid.triple { grid-template-columns: 1fr !important; }
  .photo-grid.triple img[style*="grid-column:1/-1"] { grid-column: auto !important; }
  div[style*="grid-template-columns:1fr 1fr"][style*="gap:0.75rem"] {
    grid-template-columns: 1fr !important;
  }

  /* Team */
  .team-grid { grid-template-columns: 1fr !important; }

  /* Valeurs */
  .valeurs-grid { grid-template-columns: 1fr !important; }

  /* Formulaire accueil */
  .contact-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

  /* CTA band */
  .cta-band { padding: 3.5rem 1.25rem; }
  .cta-band h2 { font-size: 2rem; }

  /* Clients logos */
  .clients-logos { gap: 2rem; }

  /* Mentions légales */
  .mentions-content { padding: 3rem 1.25rem 3rem; }

  /* Stats band entreprise */
  div[style*="grid-template-columns: repeat(auto-fit, minmax(160px"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem !important;
  }

  /* Références clients inline */
  div[style*="display:flex"][style*="gap:2rem"] {
    flex-wrap: wrap;
    gap: 1rem !important;
  }

  /* Machines grid */
  .machines-grid { grid-template-columns: 1fr 1fr !important; }

  /* Boutons pleine largeur dans CTA */
  .cta-band .btn { width: auto; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.6rem; }
  .page-hero h1 { font-size: 2.2rem; }
  h2.section-title { font-size: 1.8rem; }
  .machines-grid { grid-template-columns: 1fr !important; }
  div[style*="grid-template-columns: repeat(auto-fit, minmax(160px"] {
    grid-template-columns: 1fr !important;
  }
  .chantier-title { font-size: 1.8rem; }
  .stat-num { font-size: 2rem; }
}

@media (max-width: 768px) {
  .two-col-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }
}

/* Photo grids chantiers responsive */
@media (max-width: 768px) {
  .photo-grid-real {
    grid-template-columns: 1fr !important;
  }
  .photo-grid-real img[style*="grid-column:1/-1"],
  .photo-grid-real img[style*="grid-column: 1/-1"] {
    grid-column: auto !important;
    aspect-ratio: 4/3 !important;
  }
}

/* ======= TIMELINE MOBILE ======= */
@media (max-width: 768px) {
  /* Le padding-top:4rem du bloc certif devient 0 sur mobile */
  .two-col-grid > div[style*="padding-top: 4rem"] {
    padding-top: 0 !important;
  }

  /* Timeline lisibilité */
  .timeline { padding-left: 1.5rem; }
  .timeline-item { padding-left: 1.5rem; padding-bottom: 2rem; }
  .timeline-item::before { left: -1.5rem; width: 10px; height: 10px; }
  .timeline-item h4 { font-size: 1rem; }
  .timeline-item p { font-size: 0.86rem; }
  .timeline-year { font-size: 0.75rem; letter-spacing: 1.5px; }

  /* Séparation visuelle entre les deux blocs empilés */
  .two-col-grid > div + div {
    border-top: 1px solid var(--gris-bordure);
    padding-top: 2.5rem;
  }
}
