/* =========================================================================
   TrustMyContent — Site vitrine
   Feuille de style principale (design épuré & élégant)
   ========================================================================= */

/* ---------- Tokens de design ---------- */
:root {
  /* Couleurs */
  --bg:           #080B14;
  --bg-soft:      #0E1322;
  --bg-elevated:  #131A2C;
  --surface:      rgba(255, 255, 255, 0.035);
  --surface-2:    rgba(255, 255, 255, 0.06);
  --border:       rgba(255, 255, 255, 0.09);
  --border-soft:  rgba(255, 255, 255, 0.06);

  --accent:       #34D399;  /* vert TrustMyContent */
  --accent-2:     #10B981;
  --accent-soft:  rgba(52, 211, 153, 0.12);

  --text:         #F1F5F9;
  --text-muted:   #95A2B8;
  --text-faint:   #6B7689;

  /* Typo */
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Mise en page */
  --maxw:    1180px;
  --radius:  18px;
  --radius-sm: 12px;
  --header-h: 76px;

  --shadow:  0 24px 60px -20px rgba(0, 0, 0, 0.55);
  --shadow-accent: 0 20px 50px -18px rgba(16, 185, 129, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Halo lumineux d'arrière-plan */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 78% -8%, rgba(16, 185, 129, 0.14), transparent 60%),
    radial-gradient(800px 600px at 10% 0%, rgba(59, 130, 246, 0.08), transparent 55%);
  pointer-events: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 0.5em;
}

p { margin: 0 0 1rem; color: var(--text-muted); }

a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }

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

::selection { background: var(--accent-soft); color: var(--accent); }

/* ---------- Utilitaires de mise en page ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }

.text-accent { color: var(--accent); }
.text-gradient {
  background: linear-gradient(110deg, #fff 10%, var(--accent) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

.section-title { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 16px; }
.section-intro { max-width: 640px; font-size: 1.06rem; color: var(--text-muted); }
.center { text-align: center; }
.center .section-intro { margin-left: auto; margin-right: auto; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.97rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #05210F;
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn--ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover { background: var(--surface-2); border-color: var(--accent); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(8, 11, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border-soft);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 11px; }
.brand__icon { width: 38px; height: 38px; flex: none; }
.brand__text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
}
.brand__text .t1 { color: var(--accent); }
.brand__text .t2 { color: var(--text); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__link {
  font-size: 0.96rem;
  font-weight: 450;
  color: var(--text-muted);
  padding: 9px 15px;
  border-radius: 10px;
  transition: all 0.2s var(--ease);
}
.nav__link:hover { color: var(--text); background: var(--surface); }
.nav__link.active { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 14px; }

/* Sélecteur de langue */
.lang-switch {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}
.lang-switch button {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 12px;
  border-radius: 999px;
  transition: all 0.2s var(--ease);
}
.lang-switch button.active { background: var(--accent); color: #05210F; }

/* Burger mobile */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.burger span {
  width: 24px; height: 2px; background: var(--text); border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 90px) 0 90px;
  overflow: hidden;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 70% 20%, #000 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(circle at 70% 20%, #000 0%, transparent 65%);
  opacity: 0.5;
  pointer-events: none;
}
.hero__content { position: relative; max-width: 760px; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 600;
  margin-bottom: 22px;
}
.hero__lead {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 34px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Bandeau de confiance / piliers */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 64px;
  position: relative;
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
}
.pillar__icon { color: var(--accent); width: 24px; height: 24px; margin-bottom: 12px; }
.pillar h4 { font-size: 1.02rem; margin-bottom: 4px; }
.pillar p { font-size: 0.92rem; margin: 0; }

/* ---------- Cartes ---------- */
.cards {
  display: grid;
  gap: 22px;
}
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.35);
  background: var(--surface-2);
}
.card__num {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 20px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.card p { font-size: 0.97rem; margin-bottom: 0; }
.card ul { margin: 14px 0 0; padding: 0; list-style: none; }
.card ul li {
  position: relative;
  padding-left: 24px;
  font-size: 0.93rem;
  color: var(--text-muted);
  margin-bottom: 9px;
}
.card ul li::before {
  content: "";
  position: absolute; left: 2px; top: 9px;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--accent);
}

/* Numérotation discrète géante */
.card__bignum {
  position: absolute;
  top: -10px; right: 14px;
  font-family: var(--font-head);
  font-size: 6rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
  pointer-events: none;
}

/* ---------- Bloc “activités” en colonnes alternées ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.feature-row + .feature-row { margin-top: 88px; }
.feature-row--rev .feature-row__media { order: -1; }
.feature-row__media {
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 280px;
  display: grid;
  place-items: center;
  padding: 40px;
  box-shadow: var(--shadow);
}

/* ---------- Bandeau de logos / standards ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.badge {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
}
.badge span { color: var(--accent); }

/* ---------- Section CTA ---------- */
.cta-band {
  position: relative;
  text-align: center;
  background: linear-gradient(150deg, rgba(16, 185, 129, 0.14), rgba(16, 185, 129, 0.02));
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 26px;
  padding: 64px 32px;
  overflow: hidden;
}
.cta-band h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.cta-band p { max-width: 520px; margin: 0 auto 28px; }

/* ---------- Actualités ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.news-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.news-card:hover { transform: translateY(-4px); border-color: rgba(52, 211, 153, 0.32); }
.news-card.featured { grid-column: 1 / -1; }
.news-card.featured .news-card__body { padding: 38px; }
.news-card.featured h3 { font-size: 1.55rem; }

.news-card__media {
  aspect-ratio: 16 / 8;
  background: linear-gradient(150deg, var(--bg-elevated), var(--bg-soft));
  position: relative;
  overflow: hidden;
}
.news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.news-card__media--placeholder { display: grid; place-items: center; color: var(--accent); }
.news-card__media--placeholder svg { width: 48px; height: 48px; opacity: 0.5; }

.news-card__body { padding: 26px 28px; display: flex; flex-direction: column; flex: 1; }
.news-card__meta {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.news-card__tag {
  background: var(--accent-soft);
  padding: 4px 11px; border-radius: 999px;
  color: var(--accent);
}
.news-card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.news-card p { font-size: 0.95rem; margin-bottom: 16px; }
.news-card__link {
  margin-top: auto;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
}
.news-card__link:hover { gap: 10px; }
.news-card__link svg { width: 15px; height: 15px; }

/* ---------- Équipe ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.member {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.member:hover { transform: translateY(-4px); border-color: rgba(52, 211, 153, 0.32); }
.member__avatar {
  width: 96px; height: 96px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--accent);
  background: linear-gradient(150deg, var(--accent-soft), rgba(16, 185, 129, 0.04));
  border: 1px solid rgba(52, 211, 153, 0.25);
  overflow: hidden;
}
.member__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.member h3 { font-size: 1.2rem; margin-bottom: 4px; }
.member__role {
  font-family: var(--font-head);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 14px;
}
.member p { font-size: 0.92rem; margin: 0; }
.member__links { margin-top: 16px; display: flex; justify-content: center; gap: 10px; }
.member__links a {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.member__links a:hover { color: var(--accent); border-color: var(--accent); }
.member__links svg { width: 17px; height: 17px; }

/* ---------- Pages légales (texte) ---------- */
.legal { padding-top: calc(var(--header-h) + 64px); }
.legal__doc { max-width: 780px; }
.legal__doc h2 {
  font-size: 1.35rem;
  margin: 40px 0 12px;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
}
.legal__doc h2:first-of-type { border-top: none; padding-top: 0; }
.legal__doc p, .legal__doc li { color: var(--text-muted); font-size: 1rem; }
.legal__doc ul { padding-left: 20px; }
.legal__doc a { color: var(--accent); }
.legal__updated { color: var(--text-faint); font-size: 0.9rem; margin-top: 8px; }
.legal__note {
  background: var(--accent-soft);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 24px 0;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-soft);
  padding: 64px 0 32px;
  margin-top: 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 0.95rem; max-width: 320px; margin-top: 16px; }
.footer-col h5 {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 11px;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.86rem;
  color: var(--text-faint);
  flex-wrap: wrap;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.footer-social a:hover { color: var(--accent); border-color: var(--accent); }
.footer-social svg { width: 18px; height: 18px; }

/* ---------- Animations au scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Mobile menu drawer ---------- */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  background: rgba(8, 11, 20, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 30px 24px;
  gap: 6px;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
}
.mobile-nav.open { transform: none; }
.mobile-nav a {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text);
  padding: 14px 4px;
  border-bottom: 1px solid var(--border-soft);
}
.mobile-nav a.active { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .nav, .header-actions .lang-switch { display: none; }
  .burger { display: flex; }
  .header-actions { gap: 8px; }
  .feature-row { grid-template-columns: 1fr; gap: 28px; }
  .feature-row--rev .feature-row__media { order: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .cards--2, .cards--3, .news-grid, .team-grid, .pillars { grid-template-columns: 1fr; }
  .news-card.featured { grid-column: auto; }
  .footer-top { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--header-h) + 50px); }
}

/* Affiche le menu de langue dans le drawer mobile */
.mobile-nav .lang-switch { display: inline-flex; margin-top: 24px; align-self: flex-start; }
