/* ===================================================================
   Carson Sand & Gravel — feuille de style principale
   Palette : orange brûlé / beige sable / gris anthracite
   =================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --orange: #e67e22;
  --orange-dark: #c8690f;
  --orange-light: #f0a55c;
  --beige: #f5f0e6;
  --beige-mid: #ece3d0;
  --beige-dark: #ddd0af;
  --anthracite: #24292f;
  --anthracite-2: #333b44;
  --anthracite-3: #454f5b;
  --ink: #1a1d21;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(36, 41, 47, 0.12);
  --shadow-lg: 0 20px 50px rgba(36, 41, 47, 0.22);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, sans-serif;
  color: var(--ink);
  background: var(--beige);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--anthracite);
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

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

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: "Oswald", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-dark);
  background: rgba(230, 126, 34, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Oswald", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(230, 126, 34, 0.35);
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(230, 126, 34, 0.45);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--anthracite);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--ink);
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(36, 41, 47, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(230, 126, 34, 0.25);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  height: 42px;
  width: 42px;
  border-radius: 10px;
}
.brand span {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  font-size: 1.05rem;
  line-height: 1.15;
}
.brand small {
  display: block;
  font-family: "Inter", sans-serif;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.7rem;
  color: var(--orange-light);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.78);
  font-family: "Oswald", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(230, 126, 34, 0.18);
}
.nav-links a.active {
  color: var(--orange-light);
}

.nav-cta {
  margin-left: 10px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background: linear-gradient(180deg, rgba(24, 27, 31, 0.55) 0%, rgba(24, 27, 31, 0.72) 55%, rgba(24, 27, 31, 0.94) 100%), url("/assets/img/hero-quarry.jpg") center/cover no-repeat;
}
.hero .container {
  padding-top: 60px;
  padding-bottom: 60px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  max-width: 780px;
}
.hero h1 em {
  font-style: normal;
  color: var(--orange-light);
}
.hero p.lead {
  max-width: 620px;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.86);
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.page-hero {
  position: relative;
  padding: 150px 0 70px;
  color: var(--white);
  background: linear-gradient(160deg, var(--anthracite) 0%, #1c2126 100%);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(230, 126, 34, 0.28), transparent 55%);
}
.page-hero .container {
  position: relative;
}
.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
}
.page-hero p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.08rem;
}

/* ---------- Sections ---------- */
section {
  padding: 90px 0;
}
.section-alt {
  background: var(--white);
}
.section-dark {
  background: var(--anthracite);
  color: rgba(255, 255, 255, 0.85);
}
.section-dark h2 {
  color: var(--white);
}

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1.visible { transition-delay: 0.08s; }
.reveal-delay-2.visible { transition-delay: 0.16s; }
.reveal-delay-3.visible { transition-delay: 0.24s; }
.reveal-delay-4.visible { transition-delay: 0.32s; }

/* ---------- Grids / cards ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(36, 41, 47, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 18px;
  border: 2px solid var(--beige-dark);
}
.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.card p {
  color: var(--anthracite-3);
  font-size: 0.96rem;
  margin-bottom: 0;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-dark);
  background: rgba(230, 126, 34, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 50px;
}
.stat b {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 2.1rem;
  color: var(--orange);
}
.stat span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Values ---------- */
.value-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid var(--beige-dark);
}
.value-row:last-child { border-bottom: none; }
.value-num {
  font-family: "Oswald", sans-serif;
  font-size: 1.4rem;
  color: var(--orange);
  min-width: 46px;
}

/* ---------- Team ---------- */
.team-lead {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: center;
  background: var(--white);
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow);
}
.team-lead img {
  border-radius: 16px;
  border: 3px solid var(--orange);
}
.team-lead .role {
  color: var(--orange-dark);
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 26px;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  align-items: center;
}
.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--anthracite);
  color: var(--orange-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Oswald", sans-serif;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.team-card .role {
  color: var(--orange-dark);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: "Oswald", sans-serif;
}

/* ---------- Organigramme ---------- */
.orgchart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.org-box {
  background: var(--white);
  border: 2px solid var(--anthracite);
  border-radius: 12px;
  padding: 18px 26px;
  text-align: center;
  min-width: 220px;
  box-shadow: var(--shadow);
  position: relative;
}
.org-box.top {
  border-top: 6px solid var(--orange);
}
.org-box .role {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  color: var(--orange-dark);
  margin-bottom: 4px;
}
.org-box .name {
  font-weight: 600;
  font-size: 1.05rem;
}
.org-box-lead {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  padding: 14px 30px 14px 14px;
}
.org-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--orange);
  flex-shrink: 0;
}
.org-connector {
  width: 2px;
  height: 36px;
  background: var(--anthracite-3);
}
.org-row {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: center;
}
.org-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Timeline (Présentation - histoire) ---------- */
.timeline {
  position: relative;
  margin-left: 12px;
  padding-left: 32px;
  border-left: 3px solid var(--beige-dark);
}
.timeline-item {
  position: relative;
  padding-bottom: 36px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -41px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid var(--beige);
  box-shadow: 0 0 0 2px var(--orange);
}
.timeline-item .year {
  font-family: "Oswald", sans-serif;
  color: var(--orange-dark);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-row {
  margin-bottom: 20px;
}
.form-row label {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--anthracite);
  margin-bottom: 8px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--beige-dark);
  background: var(--beige);
  font-family: "Inter", sans-serif;
  font-size: 0.96rem;
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--white);
}
.form-status {
  margin-top: 16px;
  font-size: 0.92rem;
  font-weight: 600;
  min-height: 1.2em;
}
.form-status.ok { color: #1e8a4c; }
.form-status.err { color: #c0392b; }

/* ---------- Partner benefits ---------- */
.benefit {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.benefit-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(230, 126, 34, 0.14);
  color: var(--orange-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--orange-dark), var(--orange));
  border-radius: 24px;
  padding: 56px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin-bottom: 8px; }
.cta-banner p { color: rgba(255, 255, 255, 0.9); margin: 0; max-width: 480px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
  padding: 56px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-grid a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  padding: 5px 0;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}
.footer-grid a:hover { color: var(--orange-light); }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-brand img { height: 38px; width: 38px; border-radius: 8px; }
.footer-brand span {
  font-family: "Oswald", sans-serif;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-bottom {
  padding-top: 22px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Recruitment list ---------- */
.job-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 30px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.job-card h3 { margin-bottom: 6px; font-size: 1.1rem; }
.job-card .job-meta {
  font-size: 0.85rem;
  color: var(--anthracite-3);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  margin-bottom: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .team-lead { grid-template-columns: 1fr; text-align: center; }
  .team-lead img { margin: 0 auto; width: 200px; }
  .team-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--anthracite);
    flex-direction: column;
    padding: 12px 24px 24px;
    gap: 4px;
    border-bottom: 1px solid rgba(230, 126, 34, 0.25);
  }
  .nav-cta { margin-left: 0; margin-top: 8px; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .org-row { flex-direction: column; align-items: center; }
  .cta-banner { padding: 36px; flex-direction: column; text-align: center; }
  .form-card { padding: 26px; }
  section { padding: 64px 0; }
}
