/* ==========================================================================
   ECBI — Feuille de styles principale
   ========================================================================== */

/* -------- Variables -------- */
:root {
  --primary: #597a8d;
  --primary-dark: #314355;
  --dark: #161f2c;
  --accent: #f58220;
  --accent-dark: #d96d10;
  --cream: #f9f3ed;
  --cream-2: #efe1d3;
  --light: #f7f7f7;
  --white: #ffffff;
  --text: #1f2a36;
  --muted: #6a7a86;
  --border: #e2e7ea;
  --radius: 14px;
  --container: 1200px;
  --shadow: 0 10px 30px rgba(22, 31, 44, .08);
  --shadow-lg: 0 20px 40px rgba(22, 31, 44, .12);
}

/* -------- Reset & base -------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color .2s ease;
}

a:hover {
  color: var(--accent);
}

h1, h2, h3, h4, h5 {
  font-family: 'Roboto', -apple-system, sans-serif;
  font-weight: 600;
  color: var(--dark);
  margin: 0 0 .6em;
  letter-spacing: -.01em;
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.55rem); }

p { margin: 0 0 1em; }

ul { padding-left: 1.2rem; }

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

.section {
  padding: 90px 0;
}

.section--cream {
  background: var(--cream);
}

.section--light {
  background: var(--light);
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.section-head .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(1.3rem, 1.8vw, 1.7rem);
  font-weight: 600;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* -------- Header -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Roboto', -apple-system, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--dark);
  text-decoration: none;
}

.logo img {
  height: 52px;
  width: auto;
  display: block;
}

.site-footer .logo img {
  height: 48px;
}

.site-header { height: auto; }
.header-inner { height: 80px; }

/* Nav */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  margin: 5px auto;
  transition: transform .3s ease, opacity .3s ease;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 500;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  transition: background .2s ease, color .2s ease;
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a {
  color: var(--primary);
  background: transparent;
}

.nav-menu > li.active > a {
  position: relative;
}

.nav-menu > li.active > a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--primary);
}

.nav-menu .caret {
  font-size: .65rem;
  opacity: .7;
  transition: transform .2s ease;
}

.has-dropdown {
  position: relative;
}

.has-dropdown.open > a .caret,
.has-dropdown:hover > a .caret {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.has-dropdown:hover > .dropdown,
.has-dropdown.open > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: .92rem;
  font-weight: 500;
}

.dropdown li a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.dropdown li a:hover {
  background: var(--cream);
  color: var(--primary);
}

/* -------- Hero (home) -------- */
.hero {
  position: relative;
  padding: 90px 0 110px;
  background: linear-gradient(135deg, #1c2837 0%, #314355 100%);
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(245, 130, 32, .25), transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 880px;
}

.hero .tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(245, 130, 32, .15);
  color: #ffd6a8;
  border: 1px solid rgba(245, 130, 32, .3);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  margin-bottom: 22px;
}

.hero h1 .accent { color: var(--accent); }

.hero p.lead {
  font-size: 1.2rem;
  color: #cdd7df;
  max-width: 720px;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* -------- Page hero (sub-pages) -------- */
.page-hero {
  position: relative;
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #1c2837 0%, #314355 100%);
  color: var(--white);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(245, 130, 32, .22), transparent 55%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  max-width: 820px;
}

.breadcrumbs {
  font-size: .88rem;
  color: #b9c2cb;
  margin-bottom: 18px;
}

.breadcrumbs a {
  color: #b9c2cb;
}

.breadcrumbs a:hover { color: var(--white); }

.breadcrumbs .sep { margin: 0 8px; opacity: .5; }

.breadcrumbs .current { color: var(--accent); font-weight: 500; }

.page-hero h1 {
  color: var(--white);
  margin-bottom: 14px;
}

.page-hero p.subtitle {
  font-size: 1.1rem;
  color: #cdd7df;
  max-width: 720px;
  margin: 0;
}

/* -------- Buttons -------- */
.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(245, 130, 32, .35);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(245, 130, 32, .45);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--dark);
}

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

.btn-outline.on-dark {
  color: var(--white);
  border-color: var(--white);
}

.btn-outline.on-dark:hover {
  background: var(--white);
  color: var(--dark);
}

/* -------- Card -------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.cards-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.cards-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

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

.card {
  position: relative;
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity .25s ease;
}

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

.card:hover::before { opacity: 1; }

.card .icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 22px;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.card p {
  color: var(--muted);
  font-size: .96rem;
  margin-bottom: 18px;
}

.card .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: .92rem;
}

.card .more::after {
  content: '→';
  transition: transform .2s ease;
}

.card .more:hover::after {
  transform: translateX(4px);
}

/* -------- Tech card (numbered) -------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}

.tech-card {
  position: relative;
  background: var(--white);
  padding: 44px 28px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.tech-card .badge {
  position: absolute;
  top: -16px;
  left: 24px;
  background: var(--accent);
  color: var(--white);
  font-family: 'Roboto', -apple-system, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(245, 130, 32, .35);
  letter-spacing: .03em;
}

.tech-card h3 {
  margin-top: 6px;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.tech-card p {
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 0;
}

.tech-card ul {
  padding: 0;
  list-style: none;
  margin: 14px 0 0;
}

.tech-card ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: var(--text);
  font-size: .94rem;
}

.tech-card ul li::before {
  content: '';
  position: absolute;
  left: 0; top: .55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* -------- Advantages list -------- */
.advantages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.advantages li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--white);
  padding: 20px 22px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease;
}

.advantages li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.advantages li::before {
  content: '✓';
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .95rem;
  margin-top: 2px;
}

.advantages li strong {
  display: block;
  color: var(--dark);
  font-weight: 600;
  margin-bottom: 2px;
}

.advantages li span {
  color: var(--muted);
  font-size: .92rem;
}

/* -------- Callout -------- */
.callout {
  background: var(--cream);
  border-left: 4px solid var(--accent);
  padding: 22px 26px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 500;
  color: var(--text);
  margin: 36px 0;
}

.callout strong {
  color: var(--accent-dark);
}

/* -------- Timeline -------- */
.timeline {
  position: relative;
  list-style: none;
  padding: 0 0 0 36px;
  margin: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--cream-2);
}

.timeline li {
  position: relative;
  margin-bottom: 32px;
}

.timeline li:last-child { margin-bottom: 0; }

.timeline li::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid var(--white);
  box-shadow: 0 0 0 4px var(--cream);
}

.timeline .year {
  display: block;
  font-family: 'Roboto', -apple-system, sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.timeline p {
  color: var(--muted);
  margin: 0;
  font-size: .96rem;
}

/* -------- Real image frame (with <img>) -------- */
.media-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--cream);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.media-frame:hover img { transform: scale(1.04); }
.media-frame--sq { aspect-ratio: 1; }
.media-frame--4-3 { aspect-ratio: 4 / 3; }
.media-frame--16-9 { aspect-ratio: 16 / 9; }
.media-frame--3-4 { aspect-ratio: 3 / 4; }
.media-frame--4-5 { aspect-ratio: 4 / 5; }

.media-frame .overlay-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(22, 31, 44, .85);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Stack effect for real images */
.media-stack {
  position: relative;
}
.media-stack .media-frame {
  position: relative;
  z-index: 2;
}
.media-stack::before {
  content: '';
  position: absolute;
  inset: -16px -16px 16px 16px;
  background: var(--cream-2);
  border-radius: var(--radius);
  z-index: 1;
}
.media-stack::after {
  content: '';
  position: absolute;
  inset: -32px 16px 32px -16px;
  background: var(--cream);
  border-radius: var(--radius);
  z-index: 0;
}

/* -------- Image frame placeholder (legacy emoji) -------- */
.image-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.image-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, .04) 0,
    rgba(255, 255, 255, .04) 2px,
    transparent 2px,
    transparent 12px
  );
  pointer-events: none;
}

.image-frame .ico {
  font-size: 6rem;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, .25));
  position: relative;
}

/* -------- Two-column layout -------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* -------- CTA banner -------- */
.cta-banner {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(135deg, var(--dark), var(--primary-dark));
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(245, 130, 32, .25), transparent 60%);
  pointer-events: none;
}

.cta-banner-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 14px;
}

.cta-banner p.lead {
  color: #cdd7df;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/* -------- Contact page -------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}

.contact-info {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 36px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(106, 122, 134, .15);
}

.contact-info-item:last-child { border-bottom: 0; }

.contact-info-item .ico {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.contact-info-item .label {
  display: block;
  font-family: 'Roboto', -apple-system, sans-serif;
  font-size: 1.05rem;
  color: var(--dark);
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-info-item .value {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.5;
}

.contact-info-item .value a { color: var(--primary-dark); font-weight: 500; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.form-field label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: .96rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(89, 122, 141, .15);
}

/* -------- Footer -------- */
.site-footer {
  background: var(--dark);
  color: #c5cad2;
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col p,
.footer-col li {
  color: #c5cad2;
  font-size: .94rem;
  line-height: 1.65;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #c5cad2;
  transition: color .2s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand p.tagline {
  color: #97a0aa;
  max-width: 320px;
}

.footer-contact-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  color: #c5cad2;
  font-size: .94rem;
}

.footer-contact-line .ico { color: var(--accent); flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: .85rem;
  color: #97a0aa;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-legal-links a {
  color: #97a0aa;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: #fff;
}

/* -------- Utilities -------- */
.text-center { text-align: center; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ==========================================================================
   DESIGN ENRICHI — composants additionnels
   ========================================================================== */

/* -------- Hero composition (home) -------- */
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-visual .image-frame {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #41617a, #1c2837);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}

.hero-visual .image-frame::before {
  background: repeating-linear-gradient(
    45deg,
    rgba(245, 130, 32, .08) 0,
    rgba(245, 130, 32, .08) 2px,
    transparent 2px,
    transparent 14px
  );
}

.hero-visual .image-frame .ico {
  font-size: 7rem;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .4));
}

.hero-visual .badge-float {
  position: absolute;
  background: var(--white);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 3;
}

.hero-visual .badge-float .ico-pill {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--cream);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.hero-visual .badge-float .num {
  font-family: 'Roboto', -apple-system, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--dark);
  line-height: 1;
  display: block;
}

.hero-visual .badge-float .label {
  display: block;
  font-size: .78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 3px;
}

.hero-visual .badge-float--tl { top: 8%; left: -32px; }
.hero-visual .badge-float--br { bottom: 12%; right: -32px; }

/* -------- Decorative blobs -------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.blob--orange { background: rgba(245, 130, 32, .35); }
.blob--blue { background: rgba(89, 122, 141, .35); }
.blob--cream { background: rgba(239, 225, 211, .8); }

/* -------- Dot grid pattern -------- */
.dot-grid-bg {
  position: relative;
}
.dot-grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(89, 122, 141, .15) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}
.dot-grid-bg > * { position: relative; z-index: 1; }

/* -------- Stats -------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 20px;
  box-shadow: var(--shadow);
}

.stat {
  text-align: center;
  padding: 10px;
  border-right: 1px solid var(--border);
}

.stat:last-child { border-right: 0; }

.stat .num {
  font-family: 'Roboto', -apple-system, sans-serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 10px;
}

.stat .label {
  color: var(--muted);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
}

/* When .stats sits "floating" over a hero divider */
.stats--float {
  margin-top: -60px;
  position: relative;
  z-index: 5;
}

/* -------- Process steps -------- */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
}

.process::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 2px;
  background: linear-gradient(90deg, var(--cream-2), var(--accent), var(--cream-2));
  z-index: 0;
}

.process-step {
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.process-step .num-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto', -apple-system, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 auto 22px;
  box-shadow: 0 10px 22px rgba(245, 130, 32, .4);
  border: 5px solid var(--white);
}

.process-step h4 {
  font-family: 'Roboto', -apple-system, sans-serif;
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.process-step p {
  color: var(--muted);
  font-size: .94rem;
  margin: 0;
}

/* -------- Quote block -------- */
.quote-block {
  position: relative;
  background: var(--white);
  padding: 60px 50px 50px;
  border-radius: var(--radius);
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.quote-block::before {
  content: '"';
  position: absolute;
  top: -28px;
  left: 36px;
  font-family: 'Roboto', -apple-system, sans-serif;
  font-size: 9rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  opacity: .15;
}

.quote-block p.quote {
  font-family: 'Roboto', -apple-system, sans-serif;
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  color: var(--dark);
  margin-bottom: 24px;
  line-height: 1.5;
}

.quote-block .source {
  display: inline-block;
  color: var(--muted);
  font-size: .92rem;
  letter-spacing: .04em;
}

.quote-block .source strong {
  color: var(--primary-dark);
  display: block;
  font-family: 'Roboto', -apple-system, sans-serif;
  font-size: 1rem;
  margin-bottom: 2px;
}

/* -------- Gallery grid -------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  cursor: default;
  transition: transform .25s ease, box-shadow .25s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, .05) 0,
    rgba(255, 255, 255, .05) 2px,
    transparent 2px,
    transparent 12px
  );
}

.gallery-item .ico {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .3));
}

.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform .6s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item.has-image::before {
  background: linear-gradient(to top, rgba(22, 31, 44, .55), rgba(22, 31, 44, .15) 50%, transparent);
  z-index: 2;
}

.gallery-item.has-image .label {
  z-index: 3;
}

.gallery-item .label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 24px;
  background: linear-gradient(to top, rgba(22, 31, 44, .85), transparent);
  z-index: 2;
}

.gallery-item .label h4 {
  font-family: 'Roboto', -apple-system, sans-serif;
  color: var(--white);
  font-size: 1.15rem;
  margin: 0 0 4px;
}

.gallery-item .label p {
  color: #cdd7df;
  font-size: .85rem;
  margin: 0;
}

.gallery-item.alt {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.gallery-item.dark {
  background: linear-gradient(135deg, var(--dark), var(--primary-dark));
}

/* -------- Card with image-frame -------- */
.card--image {
  padding: 0;
  overflow: hidden;
}

.card--image .card-image-frame {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card--image .card-image-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.card--image:hover .card-image-frame img {
  transform: scale(1.05);
}

.card--image .card-image-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, .05) 0,
    rgba(255, 255, 255, .05) 2px,
    transparent 2px,
    transparent 12px
  );
}

.card--image .card-image-frame .ico {
  font-size: 4.5rem;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .25));
}

.card--image .card-image-frame.cream {
  background: linear-gradient(135deg, var(--cream), var(--cream-2));
  color: var(--accent);
}
.card--image .card-image-frame.cream::before {
  background: repeating-linear-gradient(
    45deg,
    rgba(89, 122, 141, .06) 0,
    rgba(89, 122, 141, .06) 2px,
    transparent 2px,
    transparent 12px
  );
}

.card--image .card-image-frame.alt {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.card--image .card-image-frame.dark {
  background: linear-gradient(135deg, var(--dark), var(--primary-dark));
}

.card--image .card-body {
  padding: 28px 28px 32px;
}

.card--image .card-body h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.card--image .card-body p {
  color: var(--muted);
  font-size: .96rem;
  margin-bottom: 18px;
}

/* -------- Why ECBI list -------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.why-item {
  position: relative;
  padding: 32px 28px;
  text-align: center;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.why-item::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: background .25s ease, width .25s ease;
}

.why-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.why-item:hover::before {
  background: var(--accent);
  width: 44px;
}

.why-item h4 {
  margin-top: 18px;
}

.why-item .ico-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  font-size: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  box-shadow: 0 12px 26px rgba(89, 122, 141, .35);
}

.why-item.accent .ico-circle {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 12px 26px rgba(245, 130, 32, .35);
}

.why-item h4 {
  font-family: 'Roboto', -apple-system, sans-serif;
  font-size: 1.2rem;
  color: var(--dark);
  margin: 0 0 10px;
}

.why-item p {
  color: var(--muted);
  font-size: .94rem;
  margin: 0;
  line-height: 1.6;
}

/* -------- Image-frame variants -------- */
.image-frame--sq { aspect-ratio: 1; }
.image-frame--wide { aspect-ratio: 16 / 9; }
.image-frame--tall { aspect-ratio: 3 / 4; }

.image-frame.alt {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}
.image-frame.dark {
  background: linear-gradient(135deg, var(--dark), var(--primary-dark));
}
.image-frame.cream {
  background: linear-gradient(135deg, var(--cream), var(--cream-2));
  color: var(--accent);
}
.image-frame.cream::before {
  background: repeating-linear-gradient(
    45deg,
    rgba(89, 122, 141, .07) 0,
    rgba(89, 122, 141, .07) 2px,
    transparent 2px,
    transparent 12px
  );
}

/* Compose multiple frames into a grid */
.image-mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 100%;
  min-height: 460px;
}
.image-mosaic .image-frame:nth-child(1) {
  grid-row: span 2;
  aspect-ratio: auto;
}
.image-mosaic .image-frame {
  aspect-ratio: auto;
}

/* -------- Floating image-frame card -------- */
.image-frame-stack {
  position: relative;
}
.image-frame-stack .image-frame {
  position: relative;
  z-index: 2;
}
.image-frame-stack::before {
  content: '';
  position: absolute;
  inset: -20px -20px 20px 20px;
  background: var(--cream-2);
  border-radius: var(--radius);
  z-index: 1;
}
.image-frame-stack::after {
  content: '';
  position: absolute;
  inset: -40px 20px 40px -20px;
  background: var(--cream);
  border-radius: var(--radius);
  z-index: 0;
}

/* -------- Map placeholder (region) -------- */
.map-placeholder {
  position: relative;
  aspect-ratio: 16 / 11;
  background: linear-gradient(135deg, var(--cream), var(--cream-2));
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(89, 122, 141, .12) 1px, transparent 1px);
  background-size: 16px 16px;
}

.map-area {
  position: absolute;
  border: 2px dashed var(--primary);
  border-radius: 60% 50% 55% 45% / 50% 60% 40% 50%;
  width: 60%;
  height: 70%;
  top: 15%;
  left: 20%;
  background: rgba(89, 122, 141, .07);
}

.map-pin {
  position: absolute;
  top: 48%;
  left: 45%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid var(--white);
  box-shadow: 0 6px 16px rgba(245, 130, 32, .5);
  z-index: 3;
  transform: translate(-50%, -50%);
}

.map-pin::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .4;
  z-index: -1;
  animation: mapPulse 2.4s ease-out infinite;
}

@keyframes mapPulse {
  0% { transform: scale(1); opacity: .4; }
  100% { transform: scale(2.8); opacity: 0; }
}

.map-label {
  position: absolute;
  background: var(--white);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary-dark);
  box-shadow: var(--shadow);
  white-space: nowrap;
}

.map-label--main {
  top: 40%;
  left: 50%;
  transform: translate(20px, -8px);
  z-index: 4;
}

.map-label--main::before {
  content: '📍';
  margin-right: 6px;
}

.map-cities {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.map-cities span {
  position: absolute;
  font-size: .72rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.map-cities span::before {
  content: '•';
  color: var(--primary);
  margin-right: 4px;
  font-size: 1.2rem;
  vertical-align: middle;
}

/* -------- Reveal animation on load -------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal { animation: fadeUp .8s cubic-bezier(.2, .8, .2, 1) both; }
.reveal.delay-1 { animation-delay: .08s; }
.reveal.delay-2 { animation-delay: .16s; }
.reveal.delay-3 { animation-delay: .24s; }
.reveal.delay-4 { animation-delay: .32s; }
.reveal.delay-5 { animation-delay: .40s; }

/* -------- Eyebrow (extracted utility) -------- */
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .82rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}

.eyebrow.on-dark { color: #ffd6a8; }

/* -------- Badge tag (small inline) -------- */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--accent-dark);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* -------- Section dark variant -------- */
.section--dark {
  background: linear-gradient(135deg, var(--dark), var(--primary-dark));
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section--dark .section-head p {
  color: #cdd7df;
}

.section--dark .eyebrow {
  color: #ffd6a8;
}

/* -------- Bullet inline -------- */
.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bullet-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  color: var(--text);
}

.bullet-list li::before {
  content: '';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .8rem;
  margin-top: 3px;
  background-image: radial-gradient(var(--accent) 35%, transparent 35%);
  background-size: 100% 100%;
  background-position: center;
}

.bullet-list li strong {
  color: var(--dark);
  font-weight: 600;
}

/* ==========================================================================
   SECTOR CARDS (logos secteurs, références)
   ========================================================================== */

.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sector-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}

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

.sector-card-img {
  position: relative;
  aspect-ratio: 1;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-bottom: 1px solid var(--border);
}

.sector-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .4s ease;
}

.sector-card:hover .sector-card-img img {
  transform: scale(1.05);
}

.sector-card-body {
  padding: 22px 24px 26px;
}

.sector-card-body h4 {
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 8px;
}

.sector-card-body p {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 880px) {
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .sector-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   HERO LIGHT (style éditorial — slider)
   ========================================================================== */

.hero--light {
  position: relative;
  background:
    radial-gradient(circle at 90% 30%, rgba(214, 220, 224, .8), transparent 55%),
    radial-gradient(circle at 10% 80%, rgba(255, 255, 255, .7), transparent 55%),
    linear-gradient(135deg, var(--cream) 0%, var(--cream-2) 60%, #d6dce0 100%);
  color: var(--dark);
  padding: 0 0 80px;
  overflow: hidden;
  isolation: isolate;
}

.hero--light::before {
  content: '';
  position: absolute;
  width: 110%;
  height: 70%;
  top: -25%;
  left: -5%;
  background: rgba(255, 255, 255, .55);
  border-radius: 0 0 60% 50% / 0 0 35% 25%;
  transform: rotate(-6deg);
  pointer-events: none;
  z-index: 0;
}

.hero--light::after {
  content: '';
  position: absolute;
  width: 60%;
  height: 60%;
  bottom: -30%;
  right: -10%;
  background: rgba(89, 122, 141, .08);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero--light .container {
  position: relative;
  z-index: 2;
}

.hero-slogan {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary);
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: clamp(1.05rem, 1.8vw, 1.55rem);
  margin: 70px 0 50px;
  line-height: 1.4;
}

.hero-slider-wrap {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  position: relative;
}

.hero-slider {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  width: 50%;
  background: rgba(249, 243, 237, .9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 50px 44px 40px;
  min-height: 380px;
  box-shadow: 0 12px 40px rgba(22, 31, 44, .08);
  z-index: 2;
}

.slider-track {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
}

.slider-slide {
  grid-row: 1;
  grid-column: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease;
}

.slider-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.slider-slide h1,
.slider-slide h2 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  color: var(--primary);
  text-transform: uppercase;
  margin: 0 0 18px;
  line-height: 1.1;
  letter-spacing: -.005em;
  font-weight: 700;
}

.slider-slide p {
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.6;
}

.slider-slide ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  color: var(--text);
}

.slider-slide ul li {
  padding: 4px 0;
  line-height: 1.6;
}

.hero-image-side {
  grid-column: 1;
  grid-row: 1;
  width: 72%;
  justify-self: end;
  position: relative;
  z-index: 1;
}

.hero-image-side img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(22, 31, 44, .18));
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
  position: relative;
  z-index: 2;
}

.slider-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 0;
  background: rgba(89, 122, 141, .3);
  cursor: pointer;
  padding: 0;
  transition: background .2s ease, transform .2s ease;
}

.slider-dot.is-active {
  background: var(--primary);
  transform: scale(1.4);
}

.slider-dot:hover {
  background: var(--primary);
}

/* Hero CTAs in light theme */
.hero--light .hero-cta {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero--light .btn-outline {
  color: var(--primary-dark);
  border-color: var(--primary);
}

.hero--light .btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* When header is over hero--light: keep transparent feel */
.hero--light + .site-header,
body:has(.hero--light) .site-header {
  background: transparent;
  border-bottom: 0;
}

/* Responsive hero slider */
@media (max-width: 980px) {
  .hero-slider-wrap {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .hero-image-side {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    order: 1;
    justify-self: auto;
  }

  .hero-slider {
    width: 100%;
    order: 2;
    padding: 36px 28px;
    min-height: 360px;
  }
}

@media (max-width: 540px) {
  .hero-slogan { margin: 50px 0 32px; }
  .hero-slider { padding: 28px 22px; min-height: 380px; }
}


/* -------- Responsive -------- */
@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 80vw);
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 90px 24px 32px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: -10px 0 40px rgba(22, 31, 44, .12);
    overflow-y: auto;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-menu > li > a {
    width: 100%;
    padding: 14px 16px;
    justify-content: space-between;
    font-size: 1rem;
  }

  .has-dropdown .dropdown {
    position: static;
    box-shadow: none;
    border: 0;
    background: var(--cream);
    margin: 6px 0 6px 12px;
    padding: 6px;
    transform: none;
    opacity: 1;
    visibility: visible;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
    padding-top: 0;
    padding-bottom: 0;
  }

  .has-dropdown.open .dropdown {
    max-height: 400px;
    padding: 6px;
  }

  .has-dropdown.open > a .caret {
    transform: rotate(180deg);
  }

  .cards-grid--4,
  .cards-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }

  .hero-visual .badge-float--tl { left: -16px; }
  .hero-visual .badge-float--br { right: -16px; }

  .stats { grid-template-columns: repeat(2, 1fr); padding: 30px 16px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); padding-bottom: 24px; }
  .stat:nth-child(3), .stat:nth-child(4) { padding-top: 24px; }
  .stat { border-right: 1px solid var(--border); }
  .stat:nth-child(2), .stat:nth-child(4) { border-right: 0; }

  .process { grid-template-columns: 1fr; }
  .process::before { display: none; }

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

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
  .gallery-item.wide { grid-column: span 2; }
  .gallery-item.tall { grid-row: span 1; }
}

@media (max-width: 880px) {
  .cards-grid--4,
  .cards-grid--3,
  .cards-grid--2 {
    grid-template-columns: 1fr;
  }

  .section { padding: 70px 0; }
  .hero { padding: 70px 0 90px; }
}

@media (max-width: 540px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-outline {
    width: 100%;
  }

  .contact-form { padding: 26px; }
  .contact-info { padding: 26px; }

  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0 !important; border-bottom: 1px solid var(--border); padding: 20px 0 !important; }
  .stat:last-child { border-bottom: 0; }

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

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }
  .gallery-item.wide { grid-column: span 1; }

  .quote-block { padding: 50px 26px 36px; }
  .quote-block::before { font-size: 6rem; left: 16px; top: -12px; }
}
