/* Groupe Gestion TD — site vitrine. Palette tirée du logo (rouge/noir), rendue en aplats
   sobres plutôt qu'en reprenant l'effet métallique/biseauté du logo lui-même. */

:root {
  --red: #a32020;
  --red-dark: #7a1717;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --paper: #ffffff;
  --paper-soft: #f6f5f4;
  --border: #e2e0de;
  --radius: 6px;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

a {
  color: var(--red);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 48px;
  width: auto;
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.15;
}

.brand-name span {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

nav.main-nav {
  display: flex;
  gap: 28px;
}

nav.main-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--red);
  text-decoration: none;
}


/* Hero */
.hero {
  background: var(--paper-soft);
  border-bottom: 1px solid var(--border);
}

.hero .container {
  padding-top: 72px;
  padding-bottom: 72px;
}

.hero h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin: 0 0 16px;
  max-width: 700px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 0 28px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--red);
  margin: 0 0 12px;
}

/* Hero with photo background */
.hero-photo {
  position: relative;
  background-size: cover;
  background-position: center;
  border-bottom: none;
  overflow: hidden;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.6), rgba(10, 10, 10, 0.78));
}

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

.hero-photo .eyebrow {
  color: #fff;
}

.hero-photo h1 {
  color: #fff;
}

.hero-photo p.lead {
  color: rgba(255, 255, 255, 0.85);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-dark);
  text-decoration: none;
}

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

.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  text-decoration: none;
}

/* Sections */
section {
  padding: 64px 0;
}

section.alt {
  background: var(--paper-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

h2 {
  font-size: 1.8rem;
  margin: 0 0 12px;
}

.section-intro {
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 0 40px;
}

/* Cards / grid */
.grid {
  display: grid;
  gap: 24px;
}

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

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

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
}

.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 16px;
}

/* People */
.people {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.person {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.person .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.person h3 {
  margin: 0 0 4px;
}

.person .role {
  color: var(--red);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

/* Stat strip */
.stat-strip {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.stat {
  min-width: 160px;
}

.stat .num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}

.stat .label {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: 6px;
}

/* Biomovo callout */
.tool-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
}

.tool-callout h3 {
  margin: 0 0 6px;
  font-size: 1.3rem;
}

.tool-callout p {
  margin: 0;
  color: #cfcfcf;
  max-width: 480px;
}

.tool-callout .btn-primary {
  flex-shrink: 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-item {
  margin-bottom: 20px;
}

.contact-item .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.contact-item a,
.contact-item span {
  font-size: 1.05rem;
  font-weight: 600;
}

/* Contact form */
.contact-form .field {
  margin-bottom: 16px;
}

.contact-form label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form button {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.form-note {
  margin-top: 12px;
  font-size: 0.9rem;
}

.form-note.success {
  color: #1a7a3a;
}

.form-note.error {
  color: var(--red);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--paper-soft);
}

footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

footer .foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

footer .foot-brand img {
  height: 28px;
}

footer .foot-links {
  display: flex;
  gap: 24px;
  font-size: 0.9rem;
}

footer .foot-links a {
  color: var(--ink-soft);
}

/* Responsive */
@media (max-width: 860px) {
  .grid-3,
  .grid-2,
  .people,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .site-header .container {
    flex-direction: column;
    height: auto;
    padding-top: 16px;
    padding-bottom: 16px;
    gap: 12px;
  }

  nav.main-nav {
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero h1 {
    font-size: 1.9rem;
  }
}
