:root {
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, serif;

  --night: #10233F;
  --night-700: #1a314f;
  --night-600: #244264;
  --ocean: #3D5A73;
  --ocean-dark: #2c4659;
  --ocean-soft: #e4ecf3;
  --gold: #C2A05C;
  --gold-dark: #a8854a;
  --gold-soft: #F6F2EA;
  --ivory: #F6F2EA;
  --ivory-100: #fbf9f4;
  --ivory-200: #efe9dc;

  --ink-900: #10233F;
  --ink-800: #1a314f;
  --ink-700: #244264;
  --ink-600: #3D5A73;
  --ink-500: #5a7689;
  --ink-400: #8aa0b2;
  --ink-300: #b9c8d4;
  --ink-200: #dde6ee;
  --ink-100: #eef3f7;
  --ink-50: #f8fbfd;

  --accent: var(--ocean);
  --accent-dark: var(--ocean-dark);
  --accent-soft: var(--ocean-soft);
  --gold-accent: var(--gold);

  --success: #2f7d5b;
  --warning: #c98a2b;
  --error: #b44545;

  --bg: #ffffff;
  --bg-alt: var(--ivory);
  --bg-deep: var(--night);

  --shadow-sm: 0 1px 2px rgba(16, 35, 63, 0.06), 0 1px 3px rgba(16, 35, 63, 0.04);
  --shadow-md: 0 4px 12px rgba(16, 35, 63, 0.08), 0 2px 4px rgba(16, 35, 63, 0.04);
  --shadow-lg: 0 20px 48px rgba(16, 35, 63, 0.14), 0 8px 16px rgba(16, 35, 63, 0.06);

  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1160px;

  color: var(--ink-900);
  background-color: var(--bg);
  font-family: var(--font-body);
  line-height: 1.6;
  font-weight: 400;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
}

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

a { color: var(--ocean); text-decoration: none; }
a:hover { color: var(--ocean-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--night);
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--ink-200);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--night);
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--night); }

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--night), var(--ocean));
  color: var(--gold);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(194, 160, 92, 0.3);
}

.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name .top { font-size: 1.05rem; }
.brand-name .sub { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dark); font-family: var(--font-body); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--ink-700);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ocean); }

.nav-cta {
  background: var(--night);
  color: var(--ivory);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--ocean-dark); color: #fff; transform: translateY(-1px); }

.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--night);
}
.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 4px 0;
  transition: 0.25s;
}

/* ---------- Floating profile card ---------- */
.profile-float {
  position: fixed;
  top: 84px;
  right: 24px;
  width: 300px;
  z-index: 40;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 22px 20px;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.profile-float.hidden { transform: translateX(20px); opacity: 0; pointer-events: none; }
.profile-float.collapsed { width: 56px; padding: 8px; }
.profile-float.collapsed .profile-content { display: none; }
.profile-float.collapsed .profile-toggle { position: static; margin: 0; }

.profile-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--night), var(--ocean));
  color: var(--gold);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  border: 1px solid rgba(194, 160, 92, 0.35);
}
.profile-name { font-weight: 600; color: var(--night); font-size: 0.95rem; line-height: 1.2; }
.profile-role { font-size: 0.78rem; color: var(--ink-500); margin-top: 2px; }

.profile-list { list-style: none; padding: 0; margin: 0; }
.profile-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 0;
  border-top: 1px solid var(--ink-100);
  font-size: 0.84rem;
  color: var(--ink-700);
  line-height: 1.45;
}
.profile-list li:first-child { border-top: none; padding-top: 0; }
.profile-list .check {
  flex: 0 0 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--ivory-200);
  color: var(--gold-dark);
  display: grid;
  place-items: center;
  font-size: 0.66rem;
  margin-top: 1px;
}

.profile-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--ink-200);
  background: var(--ink-50);
  color: var(--ink-600);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}
.profile-toggle:hover { background: var(--ocean-soft); color: var(--ocean-dark); }

.profile-coords {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--ink-100);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.profile-coord {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--ink-700);
  transition: color 0.2s;
}
.profile-coord svg { width: 16px; height: 16px; color: var(--gold-dark); flex-shrink: 0; }
.profile-coord:hover { color: var(--ocean-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 88px;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(61, 90, 115, 0.12), transparent 60%),
    radial-gradient(900px 500px at 10% 10%, rgba(194, 160, 92, 0.10), transparent 55%),
    linear-gradient(180deg, var(--ivory), #ffffff);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
}
.hero-visual { display: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: var(--ivory-200);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  line-height: 1.08;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: italic;
  color: var(--ocean-dark);
  font-weight: 400;
}

.hero p.lead {
  font-size: 1.12rem;
  color: var(--ink-600);
  max-width: 540px;
  margin-bottom: 32px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.96rem;
  cursor: pointer;
  transition: all 0.22s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--night);
  color: var(--ivory);
}
.btn-primary:hover { background: var(--ocean-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  color: var(--night);
  border-color: var(--ink-300);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-dark); transform: translateY(-2px); }
.btn-gold {
  background: var(--gold);
  color: var(--night);
}
.btn-gold:hover { background: var(--gold-dark); color: var(--ivory); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn .arrow { transition: transform 0.22s; }
.btn:hover .arrow { transform: translateX(3px); }

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--ink-200);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--night);
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--ink-500);
  margin-top: 6px;
}

/* Hero visual (legacy, now empty) */
.hero-visual { display: none; }

/* ---------- Section base ---------- */
section { padding: 88px 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-tag {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 16px;
}
.section-head p { color: var(--ink-600); font-size: 1.05rem; }

/* ---------- Services ---------- */
.services { background: var(--bg-alt); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--ocean));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--ink-300); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--ocean-soft);
  color: var(--ocean-dark);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.service-card p { color: var(--ink-600); font-size: 0.96rem; margin-bottom: 18px; }
.service-list { list-style: none; padding: 0; margin: 0; }
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--ink-700);
}
.service-list li::before {
  content: "—";
  color: var(--gold);
  font-weight: 600;
  flex-shrink: 0;
}

/* ---------- Approach ---------- */
.approach-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.approach-text h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.approach-text p { color: var(--ink-600); font-size: 1.05rem; }
.approach-quote {
  margin-top: 28px;
  padding: 22px 24px;
  background: var(--ivory);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-style: italic;
  color: var(--night);
  line-height: 1.5;
}

.steps { display: flex; flex-direction: column; gap: 14px; }
.step {
  display: flex;
  gap: 20px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  transition: transform 0.25s, box-shadow 0.25s;
}
.step:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.step-num {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--night);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.step-body h4 { font-size: 1.08rem; margin-bottom: 4px; font-family: var(--font-body); font-weight: 600; color: var(--night); }
.step-body p { margin: 0; color: var(--ink-600); font-size: 0.93rem; }

/* ---------- Team ---------- */
.team { background: var(--bg-deep); color: var(--ink-100); }
.team .section-head h2 { color: #fff; }
.team .section-head p { color: var(--ink-300); }
.team .section-tag { color: var(--gold); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.team-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: background 0.3s, transform 0.3s, border-color 0.3s;
}
.team-card:hover { background: rgba(255,255,255,0.07); transform: translateY(-4px); border-color: rgba(194,160,92,0.4); }
.team-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--ivory);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border: 1px solid rgba(194,160,92,0.5);
}
.team-card h4 { color: #fff; font-family: var(--font-body); font-weight: 600; font-size: 1rem; margin-bottom: 4px; }
.team-card .role { font-size: 0.85rem; color: var(--gold); }
.team-card .desc { font-size: 0.82rem; color: var(--ink-300); margin-top: 12px; line-height: 1.5; }

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--night), var(--ocean-dark));
  color: #fff;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194,160,92,0.25), transparent 70%);
}
.cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 10px; }
.cta-inner p { color: var(--ink-300); margin: 0; max-width: 520px; }
.cta-band .btn-gold { background: var(--gold); color: var(--night); }
.cta-band .btn-gold:hover { background: var(--ivory); color: var(--night); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.contact-info h3 { font-size: 1.3rem; margin-bottom: 18px; }
.contact-info p { color: var(--ink-600); }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--ink-200);
}
.contact-list li:first-child { border-top: none; padding-top: 0; }
.contact-list .ci-icon {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--ocean-soft);
  color: var(--ocean-dark);
  display: grid; place-items: center;
}
.contact-list .ci-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-500); }
.contact-list .ci-value { font-weight: 500; color: var(--night); font-size: 0.98rem; }
.contact-list a { color: var(--night); }
.contact-list a:hover { color: var(--ocean-dark); }

.form {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--ink-700); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--ink-300);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--night);
  background: var(--ivory-100);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(194,160,92,0.18);
}
.field textarea { resize: vertical; min-height: 110px; }
.form .btn-primary { width: 100%; justify-content: center; margin-top: 4px; }
.form-note { font-size: 0.8rem; color: var(--ink-500); margin-top: 12px; text-align: center; }
.form-success {
  display: none;
  background: #ecf6f0;
  border: 1px solid #bfe3d0;
  color: var(--success);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 0.92rem;
}
.form-success.show { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--night);
  color: var(--ink-300);
  padding: 48px 0 32px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-grid .brand { color: #fff; }
.footer-grid .brand-mark { background: linear-gradient(135deg, var(--ocean), var(--night)); }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--ink-300); font-size: 0.88rem; }
.footer-links a:hover { color: var(--gold); }
.footer-legal {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem;
  color: var(--ink-400);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Reveal animation ---------- */
/* Le contenu reste visible si le JS est absent/désactivé (SEO + accessibilité).
   L'animation ne s'applique que lorsque <html class="js"> est présent. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.in { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .profile-float { width: 270px; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { min-height: 80px; }
  .approach-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .profile-float { display: none; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--ink-200);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open a { padding: 10px 0; }
  .menu-btn { display: block; }
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 64px 0 56px; }
  section { padding: 64px 0; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .form-row { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .brand-name .sub { display: none; }
}

@media (max-width: 420px) {
  .team-grid { grid-template-columns: 1fr; }
  .hero-badge.b1, .hero-badge.b2 { display: none; }
}

/* ---------- Accessibilité : lien d'évitement ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--night);
  color: var(--ivory);
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-size: 0.9rem;
  font-weight: 500;
}
.skip-link:focus {
  left: 0;
  color: var(--ivory);
}

/* Focus visible homogène (accessibilité clavier) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Formulaire : anti-spam + erreur ---------- */
.hp-field { position: absolute !important; left: -9999px !important; }

.form-error {
  display: none;
  background: #fbecec;
  border: 1px solid #eecccc;
  color: var(--error);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 0.92rem;
}
.form-error.show { display: block; }
.form-error a { color: var(--error); text-decoration: underline; }

/* La balise blockquote reprend le style de l'ancienne citation */
blockquote.approach-quote { margin: 28px 0 0; }
