:root {
  --ink: #2f3336;
  --graphite: #4a4d50;
  --graphite-2: #666a6d;
  --red: #d80b0b;
  --red-2: #a90707;
  --green: #2f7d3c;
  --green-2: #5b9f27;
  --paper: #ffffff;
  --soft: #f7f7f7;
  --soft-2: #f1f2f2;
  --muted: #686f73;
  --line: #e1e3e4;
  --shadow: 0 16px 42px rgba(47, 51, 54, 0.13);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(216, 11, 11, 0.06), transparent 22rem),
    radial-gradient(circle at 96% 14%, rgba(47, 125, 60, 0.055), transparent 20rem),
    linear-gradient(180deg, #fbfbfb 0%, #fff 42%, #f6f6f6 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.58;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, a, span, li, button { overflow-wrap: anywhere; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(225, 227, 228, 0.95);
  backdrop-filter: blur(14px);
}
.site-header.scrolled { box-shadow: 0 12px 30px rgba(47, 51, 54, 0.08); }
.navbar {
  width: min(1160px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--graphite);
  font-weight: 850;
  letter-spacing: 0;
  perspective: 900px;
}
.brand-logo {
  width: 92px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 11, 11, 0.16);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(47, 51, 54, 0.13);
  overflow: hidden;
  transform-origin: center;
  animation: logo-swing 3.6s ease-in-out infinite;
}
.brand-logo img {
  width: 96%;
  height: 96%;
  object-fit: contain;
}
.brand:hover .brand-logo {
  animation-duration: 1.8s;
  box-shadow: 0 12px 28px rgba(216, 11, 11, 0.24);
}
.site-header .brand::before {
  content: "";
  position: absolute;
  left: 12px;
  top: calc(100% + 8px);
  z-index: 35;
  width: 54px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), transparent);
  opacity: 0;
  transform: translateY(-4px) scaleX(0.45);
  transform-origin: left;
  transition: opacity 0.24s ease, transform 0.24s ease;
  pointer-events: none;
}
.site-header .brand::after {
  content: "La qualité est notre credo  •  L'excellence notre quête";
  position: absolute;
  left: 0;
  top: calc(100% + 14px);
  z-index: 34;
  min-width: 0;
  width: max-content;
  max-width: min(330px, calc(100vw - 32px));
  padding: 10px 13px 10px 15px;
  border: 1px solid rgba(216, 11, 11, 0.18);
  border-left: 3px solid var(--red);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 247, 247, 0.96)),
    #fff;
  box-shadow: 0 24px 54px rgba(47, 51, 54, 0.18);
  color: var(--graphite);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.82rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  white-space: normal;
  opacity: 0;
  transform: translateY(-6px) rotateX(-8deg) scale(0.96);
  transform-origin: top left;
  transition: opacity 0.24s ease, transform 0.24s ease;
  pointer-events: none;
}
.site-header .brand:hover::before,
.site-header .brand:focus-visible::before {
  opacity: 1;
  transform: translateY(0) scaleX(1);
}
.site-header .brand:hover::after,
.site-header .brand:focus-visible::after {
  opacity: 1;
  transform: translateY(0) rotateX(0deg) scale(1);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--graphite);
  font-size: 0.92rem;
  font-weight: 760;
}
.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--red-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--red); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
  min-width: 94px;
  justify-content: center;
  padding: 9px 15px;
  border: 1px solid rgba(216, 11, 11, 0.48);
  border-radius: 0;
  background: #fff;
  color: var(--red) !important;
  box-shadow: none;
}
.nav-cta::after { content: none !important; }
.nav-cta:hover, .nav-cta.active {
  background: var(--red);
  color: #fff !important;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--graphite);
  border-radius: 999px;
}

.hero {
  width: min(1160px, calc(100% - 32px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: 52px;
  padding: 58px 0 70px;
}
.hero-copy h1, .page-hero h1 {
  margin: 0 0 18px;
  color: var(--graphite);
  font-size: clamp(2.35rem, 5vw, 4.85rem);
  line-height: 1.02;
  letter-spacing: 0;
}
.hero-copy p, .page-hero p {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
}
.eyebrow {
  margin: 0 0 12px !important;
  color: var(--red) !important;
  font-size: 0.78rem !important;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-weight: 820;
}
.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-2));
  color: #fff;
  box-shadow: 0 12px 28px rgba(216, 11, 11, 0.24);
}
.btn-secondary {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--graphite);
}
.hero-media, .image-frame {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--soft);
  isolation: isolate;
}
.hero-media::after, .image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(216, 11, 11, 0.03), rgba(47, 51, 54, 0.15));
  box-shadow: inset 0 -70px 90px rgba(47, 51, 54, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  z-index: 1;
}
.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  object-position: 76% center;
  filter: saturate(1.08) contrast(1.05) brightness(0.99);
  transform: scale(1.02);
}
.image-frame {
  aspect-ratio: 4 / 3;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 76% center;
  filter: saturate(1.08) contrast(1.05) brightness(0.99);
  transform: scale(1.02);
}

.section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}
.section-muted {
  width: 100%;
  background: linear-gradient(180deg, var(--soft), var(--soft-2));
}
.section-muted > .section { padding-top: 80px; padding-bottom: 86px; }
.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}
.section-heading h2, .section-copy h2, .study-panel h2, .contact-card h2 {
  margin: 0 0 14px;
  color: var(--graphite);
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  line-height: 1.12;
}
.section-heading p, .section-copy p, .study-panel p, .contact-card p {
  color: var(--muted);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}
.grid-3, .grid-4 {
  display: grid;
  gap: 20px;
}
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card, .contact-card {
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(47, 51, 54, 0.07);
}
.card {
  border-top: 3px solid var(--red);
}
.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 74% center;
  border-radius: var(--radius);
  margin-bottom: 18px;
  filter: saturate(1.1) contrast(1.06) brightness(0.98);
  box-shadow: 0 12px 28px rgba(47, 51, 54, 0.12);
  transition: transform 0.25s ease, filter 0.25s ease;
}
.card:hover img {
  transform: translateY(-2px) scale(1.015);
  filter: saturate(1.15) contrast(1.08) brightness(1);
}
.card h3 {
  margin: 0 0 10px;
  color: var(--graphite);
  font-size: 1.2rem;
}
.card p { margin: 0 0 14px; color: var(--muted); }
.card ul, .check-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.card li, .check-list li {
  position: relative;
  margin: 9px 0;
  padding-left: 24px;
  color: #50565a;
}
.card li::before, .check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--red);
}
.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: -32px;
}
.metric {
  position: relative;
  min-height: 148px;
  padding: 28px 24px 24px;
  border: 1px solid rgba(225, 227, 228, 0.95);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 246, 246, 0.95)),
    #fff;
  color: var(--graphite);
  border-left: 0;
  box-shadow: 0 18px 38px rgba(47, 51, 54, 0.1);
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}
.metric::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--red), var(--graphite));
}
.metric::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -24px;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(216, 11, 11, 0.13), transparent 66%);
  animation: metric-glow 3.8s ease-in-out infinite;
}
.metric:hover {
  transform: translateY(-6px);
  border-color: rgba(216, 11, 11, 0.22);
  box-shadow: 0 24px 48px rgba(47, 51, 54, 0.14);
}
.metric strong {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--red);
  font-size: 2.35rem;
  line-height: 1;
  letter-spacing: 0;
}
.metric span {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 13rem;
  margin-top: 12px;
  color: var(--muted) !important;
  font-weight: 720;
}
.page-hero {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0 42px;
}
.page-hero h1 { max-width: 900px; }
.study-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: center;
  padding: 34px 34px 34px 42px;
  border: 1px solid rgba(225, 227, 228, 0.95);
  border-radius: 8px;
  background:
    linear-gradient(100deg, rgba(216, 11, 11, 0.075), transparent 36%),
    radial-gradient(circle at 100% 0%, rgba(216, 11, 11, 0.1), transparent 19rem),
    repeating-linear-gradient(135deg, rgba(74, 77, 80, 0.04) 0 1px, transparent 1px 13px),
    #fff;
  box-shadow: 0 18px 42px rgba(47, 51, 54, 0.09);
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}
.study-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(180deg, var(--red), var(--graphite));
}
.study-panel::after {
  content: "";
  position: absolute;
  top: -70%;
  left: -20%;
  width: 34%;
  height: 240%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
  transform: rotate(18deg);
  animation: panel-sheen 5.8s ease-in-out infinite;
}
.study-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 54px rgba(47, 51, 54, 0.13);
}
.study-panel h2 {
  margin-bottom: 10px;
}
.study-panel > * {
  position: relative;
  z-index: 1;
}
.study-panel-aside {
  display: grid;
  gap: 10px;
  align-content: center;
}
.study-panel-aside span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(225, 227, 228, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--graphite);
  font-weight: 820;
  box-shadow: 0 10px 24px rgba(47, 51, 54, 0.06);
}
.study-panel-aside span::after {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--red);
}
.timeline {
  display: grid;
  gap: 14px;
}
.timeline article {
  padding: 22px;
  border-left: 4px solid var(--red);
  background: var(--paper);
  border-radius: var(--radius);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.contact-card a { color: var(--red); font-weight: 850; }
.map-placeholder {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 24px;
  border-radius: var(--radius);
  color: var(--graphite);
  text-align: center;
  background: linear-gradient(135deg, rgba(216, 11, 11, 0.08), rgba(241, 242, 242, 0.95));
  border: 1px solid var(--line);
}
.footer {
  margin-top: 30px;
  background: #2b2f31;
  color: rgba(255, 255, 255, 0.82);
}
.footer-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 30px;
}
.footer .brand { color: #fff; }
.footer .brand-logo {
  animation-duration: 14s;
  box-shadow: none;
}
.footer h2 { margin: 0 0 12px; color: #fff; font-size: 1rem; }
.footer a { display: block; margin: 8px 0; }
.footer a:hover { color: #ff5b5b; }
.copyright {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes logo-swing {
  0%, 100% {
    transform: rotateY(-18deg) translateX(-2px);
  }
  50% {
    transform: rotateY(18deg) translateX(2px);
  }
}

@keyframes metric-glow {
  0%, 100% {
    opacity: 0.55;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes panel-sheen {
  0%, 68% {
    transform: translateX(-140%) rotate(18deg);
  }
  100% {
    transform: translateX(480%) rotate(18deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo,
  .metric::after,
  .study-panel::after {
    animation: none;
  }
}

@media (max-width: 980px) {
  .hero, .split, .contact-grid, .study-panel { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 44px; }
  .grid-4, .grid-3, .metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .study-panel-aside {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: grid; }
  .nav-links a { min-height: 42px; }
  .nav-cta { width: 100%; }
  .site-header .brand::after {
    width: auto;
    min-width: 0;
    max-width: calc(100vw - 24px);
    font-size: 0.78rem;
  }
}

@media (max-width: 640px) {
  .navbar, .hero, .section, .page-hero, .footer-inner { width: min(100% - 24px, 1160px); }
  .brand-logo {
    width: 74px;
    height: 46px;
  }
  .hero-copy h1, .page-hero h1 { font-size: 2.35rem; }
  .hero-media img { min-height: 270px; }
  .grid-4, .grid-3, .metric-strip { grid-template-columns: 1fr; }
  .study-panel {
    padding: 28px 22px 28px 26px;
  }
  .study-panel-aside {
    grid-template-columns: 1fr;
  }
  .footer-inner { grid-template-columns: 1fr; }
  .copyright { grid-column: auto; }
  .section { padding: 56px 0; }
}
