/* ===================================================
   CETE INGENIERIE — Site vitrine (v2)
   =================================================== */

:root {
  --teal: #6E9689;
  --blue: #4A8FB2;
  --olive: #B3CB84;
  --orange: #F0A83E;

  --dark: #1F2B2E;
  --dark-soft: #33454A;
  --text: #2A3538;
  --text-muted: #5C6B6E;
  --bg: #FBFBF9;
  --bg-alt: #F1F3F0;
  --white: #FFFFFF;
  --border: #E3E7E2;

  --radius: 6px;
  --radius-lg: 16px;
  --shadow: 0 4px 18px rgba(31, 43, 46, 0.08);
  --shadow-hover: 0 10px 28px rgba(31, 43, 46, 0.14);
  --shadow-float: 0 24px 60px rgba(20, 28, 30, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --max-width: 1180px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; color: var(--dark); }
p { margin: 0 0 1em; }

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

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.6em;
}

.section {
  padding: 96px 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-header {
  max-width: 680px;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.22s var(--ease);
}
.btn-primary {
  background: var(--dark);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-outline {
  background: transparent;
  border-color: var(--dark);
  color: var(--dark);
}
.btn-outline:hover { background: var(--dark); color: var(--white); transform: translateY(-2px); }
.btn-light {
  background: var(--white);
  color: var(--dark);
}
.btn-light:hover { background: var(--olive); transform: translateY(-2px); box-shadow: var(--shadow-hover); }

/* ---------- Reveal on scroll (progressive enhancement) ----------
   Hidden state only applies when JS is active (.js on <html>), so the
   whole page stays visible if the script fails to load. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.js .reveal-group.is-visible > * { transition-delay: calc(var(--i, 0) * 0.08s); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 251, 249, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { height: 60px; width: auto; }

.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(--dark);
  display: block;
}

.main-nav ul {
  display: flex;
  gap: 34px;
  align-items: center;
}
.main-nav a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.25s var(--ease);
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--blue);
}
.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}
.main-nav .btn { margin-left: 8px; }

/* ---------- Hero v2 (home) ---------- */
.hero-v2 {
  position: relative;
  background: var(--dark);
  color: var(--white);
  overflow: hidden;
}
.hero-v2-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  min-height: 620px;
}
.hero-v2-copy {
  position: relative;
  z-index: 3;
  padding: 90px 56px 90px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-v2-copy .eyebrow { color: var(--olive); }
.hero-v2-copy h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 0.45em;
}
.hero-v2-copy .lead {
  font-size: 1.12rem;
  color: rgba(255,255,255,0.8);
  max-width: 500px;
}
.hero-v2-cta {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.hero-v2-media {
  position: relative;
  overflow: hidden;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0% 100%);
  margin-left: -110px;
}
.hero-v2-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}
.hero-v2-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(155deg, rgba(31,43,46,0.15) 0%, rgba(74,143,178,0.4) 55%, rgba(110,150,137,0.55) 100%),
    linear-gradient(90deg, rgba(31,43,46,0.85) 0%, rgba(31,43,46,0) 30%);
  mix-blend-mode: multiply;
}
.stat-float-wrap {
  position: relative;
  z-index: 5;
  margin-top: -64px;
}
.stat-float {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.stat-float .stat {
  padding: 30px 26px;
  border-top: 3px solid var(--border);
  position: relative;
}
.stat-float .stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: var(--border);
}
.stat-float .stat:nth-child(1) { border-top-color: var(--teal); }
.stat-float .stat:nth-child(2) { border-top-color: var(--blue); }
.stat-float .stat:nth-child(3) { border-top-color: var(--olive); }
.stat-float .stat:nth-child(4) { border-top-color: var(--orange); }
.stat-float strong {
  display: block;
  font-size: 1.9rem;
  color: var(--dark);
  font-weight: 800;
}
.stat-float span {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* ---------- Intro / About v2 ---------- */
.about-v2-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}
.about-v2-copy p { color: var(--text-muted); }
.about-v2-visual {
  position: relative;
}
.about-v2-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/2;
}
.about-v2-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.about-v2-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(110,150,137,0.38), rgba(74,143,178,0.22) 55%, rgba(31,43,46,0.1));
  mix-blend-mode: multiply;
}
.about-v2-visual:hover .about-v2-photo img { transform: scale(1.05); }
.about-v2-badge {
  position: absolute;
  left: -26px;
  bottom: -26px;
  z-index: 2;
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-float);
  min-width: 168px;
}
.about-v2-badge strong { display: block; font-size: 1.7rem; font-weight: 800; color: var(--olive); }
.about-v2-badge span { font-size: 0.82rem; color: rgba(255,255,255,0.75); }

.quote-block {
  border-left: 3px solid var(--blue);
  padding-left: 18px;
  margin: 22px 0;
  font-style: italic;
  color: var(--dark-soft);
}

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  margin-bottom: 18px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 25px 25px;
  transition: transform 0.3s var(--ease);
}
.card:hover .card-icon { transform: rotate(-6deg) scale(1.06); }
.card h3 { font-size: 1.08rem; margin-bottom: 0.5em; }
.card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0; }
.card ul { margin-top: 12px; }
.card ul li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  margin-bottom: 6px;
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
}

/* department color accents + real icon glyphs (no more empty color squares) */
.card.c-teal { border-top: 3px solid var(--teal); }
.card.c-blue { border-top: 3px solid var(--blue); }
.card.c-olive { border-top: 3px solid var(--olive); }
.card.c-orange { border-top: 3px solid var(--orange); }

.card.c-teal .card-icon {
  background-color: var(--teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='14' rx='1'/%3E%3Cpath d='M5 9h14M9 3v14M15 3v14'/%3E%3Cpath d='M2 21l2.5-3 2.5 3 2.5-3 2.5 3 2.5-3 2.5 3 2.5-3'/%3E%3C/svg%3E");
}
.card.c-blue .card-icon {
  background-color: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 4 14h6l-1 8 9-12h-6l1-8Z'/%3E%3C/svg%3E");
}
.card.c-olive .card-icon {
  background-color: var(--olive);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5 12 4l9 7.5'/%3E%3Cpath d='M5.5 10v10h13V10'/%3E%3Cpath d='M9.5 20v-6h5v6'/%3E%3C/svg%3E");
}
.card.c-orange .card-icon {
  background-color: var(--orange);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v3M12 19v3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M2 12h3M19 12h3M4.9 19.1l2.1-2.1M17 7l2.1-2.1'/%3E%3C/svg%3E");
}

/* ---------- Compétences bento (home) ---------- */
.poles-bento {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
}
.poles-bento .card { display: flex; flex-direction: column; justify-content: center; }
.poles-bento .pole--1 { grid-column: 1; grid-row: 1 / 3; background: linear-gradient(165deg, rgba(110,150,137,0.08), var(--white) 60%); }
.poles-bento .pole--2 { grid-column: 2; grid-row: 1; }
.poles-bento .pole--3 { grid-column: 3; grid-row: 1; }
.poles-bento .pole--4 { grid-column: 2 / 4; grid-row: 2; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 20px; }
.poles-bento .pole--4 .card-icon { margin-bottom: 0; }
.poles-bento .pole--1 .card-icon { width: 62px; height: 62px; background-size: 30px 30px; }
.poles-bento .pole--1 h3 { font-size: 1.3rem; }
.poles-bento .pole--1 p { font-size: 1rem; }

/* ---------- Sectors tag cloud ---------- */
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list li {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 9px 16px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark-soft);
}

/* ---------- Mission types ---------- */
.mission-strip { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
.mission-strip span {
  background: var(--dark);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- References / Projects ---------- */
.ref-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
  display: flex;
  flex-direction: column;
}
.ref-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.ref-media {
  height: 170px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  flex: 1 0 auto;
  transition: transform 0.5s var(--ease);
}
.ref-card:hover .ref-media { transform: scale(1.06); }
.ref-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.ref-media::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.85;
  z-index: 1;
}
.ref-media.m1::before { background: linear-gradient(135deg, var(--teal), var(--blue)); }
.ref-media.m2::before { background: linear-gradient(135deg, var(--blue), var(--dark)); }
.ref-media.m3::before { background: linear-gradient(135deg, var(--olive), var(--teal)); }
.ref-media.m4::before { background: linear-gradient(135deg, var(--orange), var(--olive)); }
.ref-media.has-photo::before {
  opacity: 1;
  background: linear-gradient(180deg, rgba(20,28,30,0) 35%, rgba(20,28,30,0.75) 100%);
}
.ref-tag {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.92);
  color: var(--dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.ref-body { padding: 20px 22px 24px; }
.ref-body h3 { font-size: 1.02rem; margin-bottom: 6px; }
.ref-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 10px; }
.ref-meta strong { color: var(--dark-soft); }
.ref-body p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0; }

/* Home: bento layout for the 3 featured references */
.ref-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 26px;
}
.ref-bento .ref-card--featured { grid-column: 1 / 3; grid-row: 1 / 3; }
.ref-bento .ref-card:not(.ref-card--featured) { grid-column: 3; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-btn {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 9px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s;
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.active { background: var(--dark); border-color: var(--dark); color: var(--white); }

/* ---------- Quick-contact icons ---------- */
.quick-icon { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; background-repeat: no-repeat; background-position: center; background-size: 20px 20px; }
.quick-icon--phone { background-color: var(--teal); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.127.96.362 1.903.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.907.338 1.85.573 2.81.7A2 2 0 0 1 22 16.92Z'/%3E%3C/svg%3E"); }
.quick-icon--mail { background-color: var(--blue); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m2 7 10 6 10-6'/%3E%3C/svg%3E"); }
.quick-icon--pin { background-color: var(--orange); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }

/* ---------- Locations ---------- */
.loc-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease); }
.loc-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.loc-card .loc-flag { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--blue); margin-bottom: 10px; }
.loc-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.loc-card p { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 4px; }
.loc-card .loc-line { display: flex; gap: 8px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; color: var(--dark-soft); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--text);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--blue); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 14px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 60%, #2c4a49 100%);
  color: var(--white);
  padding: 70px 0;
  text-align: center;
  overflow: hidden;
}
.cta-band::before, .cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}
.cta-band::before { width: 320px; height: 320px; background: var(--orange); top: -140px; right: -60px; }
.cta-band::after { width: 260px; height: 260px; background: var(--blue); bottom: -120px; left: -60px; }
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); margin-bottom: 0.3em; }
.cta-band p { color: rgba(255,255,255,0.75); max-width: 520px; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.65); padding: 56px 0 26px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand img { height: 68px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 0.87rem; }
.footer-col h4 { color: var(--white); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.65); transition: color 0.15s; }
.footer-col a:hover { color: var(--olive); }
.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; color: rgba(255,255,255,0.45); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--dark); color: var(--white); padding: 64px 0 50px; position: relative; overflow: hidden; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.page-hero p { color: rgba(255,255,255,0.78); max-width: 560px; margin-bottom: 0; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: var(--olive); }

/* Floating white card overlapping a page-hero (mirrors the home stat-float motif) */
.hero-float-wrap { position: relative; z-index: 5; margin-top: -46px; }
.hero-float {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  padding: 28px 32px;
}
.hero-float .filters { margin-bottom: 0; }
.hero-float-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
}
.hero-float-row .item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--dark-soft);
}
.hero-float-row a.item { transition: color 0.15s; }
.hero-float-row a.item:hover { color: var(--blue); }
.filter-count { font-size: 0.85rem; color: var(--text-muted); margin: 14px 0 0; }

/* ---------- Compétences: pôles detail bento ---------- */
.poles-grid-detail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.poles-grid-detail .pole-wide {
  grid-column: 1 / 4;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 30px;
  align-items: start;
  padding: 34px 36px;
  background: linear-gradient(165deg, rgba(110,150,137,0.08), var(--white) 55%);
}
.poles-grid-detail .pole-wide .card-icon { width: 60px; height: 60px; background-size: 30px 30px; margin-bottom: 0; }
.poles-grid-detail .pole-wide h3 { font-size: 1.25rem; }
.poles-grid-detail .pole-wide ul { columns: 2; column-gap: 32px; margin-top: 14px; }
.poles-grid-detail .pole-wide ul li { break-inside: avoid; }

/* ---------- Filter transition (realisations) ---------- */
@keyframes filterIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.filter-in { animation: filterIn 0.45s var(--ease); }

.hero-blocks { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-blocks span { position: absolute; display: block; border-radius: 50%; filter: blur(50px); opacity: 0.32; }
.hero-blocks .b1 { width: 280px; height: 280px; background: var(--teal); right: -60px; top: -80px; }
.hero-blocks .b2 { width: 220px; height: 220px; background: var(--blue); right: 220px; top: 40px; }
.hero-blocks .b3 { width: 200px; height: 200px; background: var(--olive); right: -40px; bottom: -80px; }
.hero-blocks .b4 { width: 140px; height: 140px; background: var(--orange); right: 320px; bottom: -20px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .about-v2-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-bar .container { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }

  .hero-v2-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-v2-copy { padding: 70px 0 40px; }
  .hero-v2-media { clip-path: none; margin-left: 0; height: 280px; order: -1; }
  .stat-float { grid-template-columns: repeat(2, 1fr); }
  .stat-float-wrap { margin-top: 28px; }

  .poles-bento { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .poles-bento .pole--1 { grid-column: 1 / 3; grid-row: auto; }
  .poles-bento .pole--2, .poles-bento .pole--3 { grid-column: span 1; grid-row: auto; }
  .poles-bento .pole--4 { grid-column: 1 / 3; grid-row: auto; }

  .ref-bento { grid-template-columns: 1fr; grid-template-rows: auto; }
  .ref-bento .ref-card--featured { grid-column: 1; grid-row: auto; }
  .ref-bento .ref-card:not(.ref-card--featured) { grid-column: 1; }
  .ref-bento .ref-card--featured .ref-media { min-height: 240px; }
  .ref-bento .ref-card:not(.ref-card--featured) .ref-media { height: 170px; min-height: 0; }

  .about-v2-badge { left: 16px; bottom: -20px; }

  .hero-float-wrap { margin-top: 24px; }
  .poles-grid-detail { grid-template-columns: 1fr; }
  .poles-grid-detail .pole-wide { grid-column: 1; grid-template-columns: 1fr; }
  .poles-grid-detail .pole-wide ul { columns: 1; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 82px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: none;
    padding: 10px 0;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0; }
  .main-nav ul li { width: 100%; }
  .main-nav a { display: block; padding: 14px 24px; border-bottom: 1px solid var(--border); }
  .main-nav a::after { display: none; }
  .main-nav .btn { margin: 14px 24px; }

  .section { padding: 60px 0; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
