/* =========================================================
   Aldaia — one-page vitrine
   Palette : blanc / crème / bleu marine / vert sauge / vert vif
   ========================================================= */

:root {
  /* Couleurs */
  --white: #ffffff;
  --cream: #F7F1EB;
  --cream-deep: #EFE6DC;
  --navy: #05172E;
  --navy-soft: #0B2544;
  --sage: #3F9978;
  --green: #47BE89;
  --green-soft: rgba(71, 190, 137, 0.12);
  --ink: #0A1A2F;
  --muted: #5B6B7E;
  --border: rgba(5, 23, 46, 0.10);

  /* Typographie */
  --font-serif: "Fraunces", "Iowan Old Style", "Georgia", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Rythme */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 4px 14px rgba(5, 23, 46, 0.06);
  --shadow: 0 20px 50px -20px rgba(5, 23, 46, 0.25);
  --shadow-lg: 0 30px 80px -30px rgba(5, 23, 46, 0.35);

  --container: 1200px;
  --nav-h: 76px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Reset léger */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
ul, ol { padding: 0; margin: 0; list-style: none; }

/* Typographie */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--navy);
}
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { margin: 0 0 1em; color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.1em;
}
.eyebrow-dark { color: var(--sage); }

.accent-underline {
  position: relative;
  display: inline-block;
  color: var(--sage);
}
.accent-underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.05em;
  height: 0.35em;
  background: var(--green-soft);
  z-index: -1;
  border-radius: 4px;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.section {
  padding: clamp(64px, 9vw, 120px) 0;
}
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-lede {
  font-size: 1.05rem;
  color: var(--muted);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ============ Header / Nav ============ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  background: rgba(255, 255, 255, 0);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.header-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  transition: color 0.3s var(--ease);
}
.site-header.scrolled .brand { color: var(--navy); }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--green);
  color: var(--navy);
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav { display: flex; align-items: center; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-menu a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--cream);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.site-header.scrolled .nav-menu a:not(.btn) { color: var(--navy); }

.nav-menu a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--green);
  transition: width 0.25s var(--ease);
}
.nav-menu a:not(.btn):hover { color: var(--green); }
.site-header.scrolled .nav-menu a:not(.btn):hover { color: var(--sage); }
.nav-menu a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease), background 0.25s var(--ease);
  border-radius: 2px;
}
.site-header.scrolled .nav-toggle span { background: var(--navy); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Boutons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: var(--navy);
  box-shadow: 0 12px 30px -12px rgba(71, 190, 137, 0.7);
}
.btn-primary:hover {
  background: var(--sage);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--cream);
}
.btn-ghost.btn-dark { color: var(--navy); }
.btn-ghost:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-ghost.btn-dark:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-nav {
  padding: 10px 18px;
  background: var(--green);
  color: var(--navy);
  border-radius: 999px;
}
.btn-nav:hover { background: var(--white); color: var(--navy); }
.site-header.scrolled .btn-nav { background: var(--navy); color: var(--white); }
.site-header.scrolled .btn-nav:hover { background: var(--sage); color: var(--white); }
.btn-nav::after { display: none !important; }
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 80px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 60%, #0d2b52 100%);
  color: var(--cream);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(71,190,137,0.18), transparent 60%),
    radial-gradient(500px 350px at 10% 90%, rgba(63,153,120,0.15), transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: min(80vh, 720px);
}

.hero .eyebrow { color: var(--green); }

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--white);
  margin-bottom: 24px;
  font-weight: 500;
}
.hero-title .accent-underline { color: var(--green); }
.hero-title .accent-underline::after { background: rgba(71,190,137,0.25); }

.hero-lede {
  color: rgba(247, 241, 235, 0.85);
  font-size: 1.15rem;
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-badges {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(247, 241, 235, 0.12);
}
.hero-badges li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-badges strong {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--green);
  font-weight: 500;
}
.hero-badges span {
  font-size: 0.85rem;
  color: rgba(247, 241, 235, 0.7);
}

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  margin-left: auto;
}
.hero-grid {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border-radius: 24px;
  opacity: 0.7;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  animation: float 10s ease-in-out infinite;
}
.orb-1 {
  width: 70%; height: 70%;
  top: 2%; left: 5%;
  background: radial-gradient(circle at 30% 30%, var(--green), var(--sage) 55%, transparent 78%);
  opacity: 0.95;
}
.orb-2 {
  width: 50%; height: 50%;
  bottom: 5%; right: 4%;
  background: radial-gradient(circle at 40% 40%, var(--cream), transparent 65%);
  opacity: 0.5;
  animation-delay: -3s;
}
.orb-3 {
  width: 35%; height: 35%;
  top: 40%; right: 22%;
  background: radial-gradient(circle at 50% 50%, rgba(71,190,137,0.85), transparent 70%);
  animation-delay: -6s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-14px, 18px) scale(1.03); }
  66% { transform: translate(18px, -12px) scale(0.98); }
}

/* ============ Piliers ============ */
.piliers { background: var(--cream); }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.pillar::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sage), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.pillar:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.pillar:hover::before { transform: scaleX(1); }

.pillar-featured {
  background: var(--navy);
  color: var(--cream);
  border-color: transparent;
}
.pillar-featured::before { background: var(--green); transform: scaleX(1); }
.pillar-featured h3 { color: var(--white); }
.pillar-featured p { color: rgba(247, 241, 235, 0.8); }
.pillar-featured .pillar-list li { color: rgba(247, 241, 235, 0.85); }
.pillar-featured .pillar-list li::before { background: var(--green); }
.pillar-featured .pillar-icon { color: var(--green); background: rgba(71, 190, 137, 0.15); }

.pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 18px;
  background: var(--green-soft);
  color: var(--sage);
  margin-bottom: 24px;
}

.pillar-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pillar-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  color: var(--muted);
}
.pillar-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65em;
  width: 12px; height: 2px;
  background: var(--sage);
}

/* ============ Approche ============ */
.approche { background: var(--white); }

.approche-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.approche-intro { position: sticky; top: 100px; }
.approche-intro p { max-width: 420px; margin-bottom: 28px; }

.approche-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  counter-reset: step;
}
.approche-steps li {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 24px;
  align-items: start;
  padding: 28px;
  background: var(--cream);
  border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.approche-steps li:hover {
  background: var(--cream-deep);
  transform: translateX(6px);
}
.step-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--green);
  font-weight: 500;
  line-height: 1;
}
.approche-steps h3 { margin-bottom: 8px; }
.approche-steps p { margin: 0; font-size: 0.95rem; }

/* ============ Services ============ */
.services { background: var(--cream); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}
.service h3 { margin-bottom: 12px; }
.service p { font-size: 0.95rem; margin: 0; }
.service-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--sage);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.service-cta {
  background: var(--navy);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  border-color: transparent;
}
.service-cta h3 { color: var(--white); }
.service-cta p { color: rgba(247, 241, 235, 0.75); margin-bottom: 8px; }
.service-cta .btn { align-self: flex-start; margin-top: 8px; }
.service-cta .btn-ghost { color: var(--cream); border-color: var(--cream); }
.service-cta .btn-ghost:hover { background: var(--cream); color: var(--navy); border-color: var(--cream); }

/* ============ About ============ */
.about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.about-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 420px;
}
.portrait-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background: linear-gradient(160deg, var(--sage), var(--navy));
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15), transparent 60%);
}
.portrait-initials {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 10vw, 8rem);
  color: var(--cream);
  font-weight: 400;
  letter-spacing: -0.02em;
  z-index: 1;
}
.portrait-badge {
  position: absolute;
  bottom: -18px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--white);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}
.portrait-badge svg { color: var(--green); }

.about-lede {
  font-size: 1.1rem;
  color: var(--ink);
}
.about-content strong { color: var(--navy); font-weight: 600; }

.about-credentials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.about-credentials li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cred-num {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--sage);
  font-weight: 500;
  line-height: 1;
}
.cred-label {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ============ Secteurs ============ */
.sectors { background: var(--cream); }

.sector-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}
.sector-list li {
  padding: 20px 24px;
  background: var(--white);
  border-radius: var(--radius);
  text-align: center;
  font-weight: 500;
  color: var(--navy);
  border: 1px solid var(--border);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.sector-list li:hover {
  transform: translateY(-3px);
  border-color: var(--green);
  color: var(--sage);
}

/* ============ FAQ ============ */
.faq { background: var(--white); }

.link-inline {
  color: var(--sage);
  font-weight: 600;
  border-bottom: 1.5px solid var(--green-soft);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.link-inline:hover { color: var(--green); border-color: var(--green); }

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.faq-item { border-bottom: 1px solid var(--border); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 500;
  color: var(--navy);
  text-align: left;
  line-height: 1.35;
  transition: color 0.2s var(--ease);
}
.faq-question:hover { color: var(--sage); }
.faq-question span:first-child { flex: 1; }

.faq-chevron {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cream);
  color: var(--navy);
  transition: transform 0.35s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.faq-question:hover .faq-chevron {
  background: var(--green);
  color: var(--navy);
}
.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  background: var(--green);
  color: var(--navy);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.faq-answer-inner {
  min-height: 0;
  overflow: hidden;
}
.faq-answer-inner p {
  margin: 0 0 20px;
  padding: 0 60px 4px 4px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}
.faq-answer-inner strong { color: var(--navy); font-weight: 600; }

.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }

@media (max-width: 560px) {
  .faq-question { padding: 20px 2px; font-size: 1.05rem; }
  .faq-answer-inner p { padding-right: 40px; font-size: 0.95rem; }
  .faq-chevron { flex-basis: 34px; width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .faq-answer { transition: none; }
  .faq-chevron { transition: background 0.2s ease, color 0.2s ease; }
}

/* ============ CTA Banner ============ */
.cta-banner {
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: var(--cream);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 80% 50%, rgba(71,190,137,0.15), transparent);
}
.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-inner h2 { color: var(--white); margin-bottom: 8px; }
.cta-inner p { color: rgba(247,241,235,0.8); margin: 0; max-width: 560px; }

/* ============ Contact ============ */
.contact { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-info p { max-width: 460px; }
.contact-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
}
.contact-list a {
  color: var(--navy);
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.contact-list a:hover { color: var(--sage); }

/* Form */
.contact-form {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}
.form-row label span { color: var(--green); margin-left: 2px; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-family: inherit;
  font-size: 1rem;
  color: var(--navy);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}
.form-row.has-error input,
.form-row.has-error textarea,
.form-row.has-error select {
  border-color: #d64545;
  background: #fff5f5;
}
.form-error {
  color: #d64545;
  font-size: 0.82rem;
  min-height: 1em;
}
.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  text-align: center;
}
.form-success {
  padding: 14px 18px;
  background: var(--green-soft);
  color: var(--sage);
  border-radius: var(--radius);
  font-weight: 500;
  text-align: center;
  margin: 0;
}

/* ============ Footer ============ */
.site-footer {
  background: var(--navy);
  color: rgba(247, 241, 235, 0.75);
  padding: 60px 0 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-brand .brand-name {
  color: var(--white);
  font-size: 1.6rem;
  display: inline-block;
  margin-bottom: 12px;
}
.footer-brand p { color: rgba(247, 241, 235, 0.65); max-width: 340px; margin: 0; }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: rgba(247, 241, 235, 0.75);
  font-size: 0.95rem;
  transition: color 0.2s var(--ease);
}
.footer-nav a:hover { color: var(--green); }

.footer-meta {
  text-align: right;
  font-size: 0.9rem;
}
.footer-meta p { margin: 0 0 6px; color: rgba(247, 241, 235, 0.6); }

/* ============ Reveal animations ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; min-height: 0; }
  .hero-visual { max-width: 340px; margin: 0 auto; }
  .pillar-grid { grid-template-columns: 1fr; }
  .approche-grid { grid-template-columns: 1fr; gap: 40px; }
  .approche-intro { position: static; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-portrait { max-width: 320px; }
  .sector-list { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-meta { text-align: left; }
}

@media (max-width: 720px) {
  :root { --nav-h: 68px; }

  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 20px 24px 32px;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    transition: transform 0.35s var(--ease);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-menu.is-open { transform: translateY(0); }
  .nav-menu li { width: 100%; }
  .nav-menu a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.05rem;
  }
  .nav-menu a:not(.btn)::after { display: none; }
  .nav-menu .btn-nav {
    margin-top: 12px;
    text-align: center;
    border-bottom: 0;
    padding: 14px 18px;
  }

  .hero { padding-top: calc(var(--nav-h) + 24px); padding-bottom: 60px; }
  .hero-badges { gap: 20px; }
  .hero-cta .btn { flex: 1; }

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

  .contact-form { padding: 28px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }

  .about-credentials { grid-template-columns: 1fr; gap: 12px; }
  .about-credentials li { flex-direction: row; align-items: baseline; gap: 12px; }
}

@media (max-width: 420px) {
  .container { padding-inline: 20px; }
  .btn { padding: 12px 18px; font-size: 0.9rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}

/* =========================================================
   Onboarding quiz
   ========================================================= */

/* --- Invite bubble --- */
.quiz-invite {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  width: min(340px, calc(100vw - 40px));
  display: flex;
  gap: 14px;
  padding: 18px 18px 18px 16px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 20px 50px -12px rgba(5, 23, 46, 0.25);
  border: 1px solid var(--border);
  transform: translateY(24px) scale(0.96);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}
.quiz-invite.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.quiz-invite[hidden] { display: none; }

.quiz-invite-avatar {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--sage), var(--navy));
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.01em;
}
.quiz-invite-body { flex: 1; min-width: 0; }
.quiz-invite-title {
  font-family: var(--font-serif);
  color: var(--navy);
  font-size: 1.1rem;
  margin: 0 0 4px;
  font-weight: 500;
}
.quiz-invite-text {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.4;
}
.btn-invite {
  padding: 9px 16px;
  font-size: 0.88rem;
}
.quiz-invite-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px; height: 26px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.quiz-invite-close:hover { background: var(--cream); color: var(--navy); }

/* --- Overlay + modal --- */
.quiz-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(5, 23, 46, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.quiz-overlay.is-open { opacity: 1; }
.quiz-overlay[hidden] { display: none; }

.quiz-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--white);
  border-radius: 28px;
  padding: 40px 40px 28px;
  box-shadow: 0 40px 100px -20px rgba(5, 23, 46, 0.5);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.35s var(--ease);
}
.quiz-overlay.is-open .quiz-modal {
  transform: translateY(0) scale(1);
}

.quiz-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px; height: 36px;
  border: 0;
  background: var(--cream);
  color: var(--navy);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s var(--ease);
  z-index: 2;
}
.quiz-close:hover { background: var(--cream-deep); }

/* --- Progress --- */
.quiz-progress {
  height: 4px;
  background: var(--cream);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 28px;
}
.quiz-progress-bar {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--sage), var(--green));
  border-radius: 999px;
  transition: width 0.4s var(--ease);
}

/* --- Steps --- */
.quiz-steps { position: relative; }
.quiz-step {
  display: none;
  animation: quizFade 0.35s var(--ease);
}
.quiz-step.is-active { display: block; }

@keyframes quizFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.quiz-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 12px;
}
.quiz-question {
  font-family: var(--font-serif);
  color: var(--navy);
  font-size: clamp(1.5rem, 3.2vw, 1.85rem);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 8px;
}
.quiz-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 24px;
}

/* --- Chip options --- */
.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.quiz-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 16px 18px;
  background: var(--cream);
  border: 1.5px solid transparent;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  line-height: 1.3;
}
.quiz-chip span {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}
.quiz-chip:hover {
  background: var(--white);
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.quiz-chip.is-selected {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.quiz-chip.is-selected span { color: rgba(247, 241, 235, 0.7); }

/* --- Form step --- */
.quiz-form { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.quiz-form .form-row { gap: 6px; }
.quiz-form-error {
  color: #d64545;
  font-size: 0.85rem;
  min-height: 1em;
}

/* --- Thanks step --- */
.quiz-thanks { text-align: center; padding: 12px 0; }
.quiz-thanks-icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
}
.quiz-thanks .quiz-question { margin-top: 8px; }
.quiz-thanks .btn { margin-top: 16px; }

/* --- Nav (back / skip) --- */
.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.quiz-back,
.quiz-skip {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 8px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.quiz-back:hover,
.quiz-skip:hover { color: var(--navy); background: var(--cream); }
.quiz-back { margin-right: auto; }
.quiz-skip { margin-left: auto; }

/* --- Responsive --- */
@media (max-width: 560px) {
  .quiz-invite { bottom: 12px; right: 12px; left: 12px; width: auto; }
  .quiz-modal {
    padding: 32px 22px 22px;
    border-radius: 22px;
    max-height: calc(100vh - 24px);
  }
  .quiz-options { grid-template-columns: 1fr; }
  .quiz-close { top: 10px; right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .quiz-invite, .quiz-overlay, .quiz-modal, .quiz-step { transition: none; animation: none; }
}

