/* PFS Studio Techs — Charte graphique officielle */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bleu-nuit: #0A1F36;
  --cyan-electrique: #00E0E0;
  --cyan-moyen: #00A5A5;
  --cyan-pale: #7FFFD4;
  --blanc: #FFFFFF;

  /* TrustBuild-ia — charte graphique produit (v1.0) */
  --tb-graphite: #2A3040;
  --tb-calcaire: #FAF7F2;
  --tb-sable: #E8E2D6;
  --tb-ocre: #C2410C;
  --tb-ciment: #6B7280;

  --font-main: 'Montserrat', sans-serif;

  --header-height: 84px;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(10, 31, 54, 0.12);
  --transition: 0.25s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--bleu-nuit);
  background: var(--blanc);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Intro overlay ---------- */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--blanc);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.intro-overlay video {
  max-width: 100%;
  max-height: 100vh;
  display: block;
}

.intro-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

body.intro-active {
  overflow: hidden;
}

.intro-skip {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(10, 31, 54, 0.06);
  border: 1px solid rgba(10, 31, 54, 0.15);
  color: var(--bleu-nuit);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition);
}

.intro-skip:hover {
  background: rgba(10, 31, 54, 0.12);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blanc);
  border-bottom: 1px solid rgba(10, 31, 54, 0.08);
}

.site-header .container {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--bleu-nuit);
}

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

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

.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--bleu-nuit);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--cyan-moyen);
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--cyan-electrique);
  transition: width var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--bleu-nuit);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary {
  background: var(--bleu-nuit);
  color: var(--blanc);
  box-shadow: 0 0 0 rgba(0, 224, 224, 0);
}

.btn-primary:hover {
  background: var(--cyan-moyen);
  box-shadow: 0 0 24px rgba(0, 224, 224, 0.45);
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1.5px solid var(--bleu-nuit);
  color: var(--bleu-nuit);
}

.btn-ghost:hover {
  border-color: var(--cyan-moyen);
  color: var(--cyan-moyen);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(0, 224, 224, 0.10), transparent 55%),
              linear-gradient(180deg, #FFFFFF 0%, #F4FBFB 100%);
  padding: 100px 0 120px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-moyen);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-electrique);
  box-shadow: 0 0 12px var(--cyan-electrique);
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero h1 span {
  color: var(--cyan-moyen);
}

.accent {
  color: var(--cyan-moyen);
}

.hero p.lead {
  font-size: 1.1rem;
  color: #3C4D5E;
  max-width: 46ch;
  margin-bottom: 36px;
}

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

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual img {
  width: 100%;
  max-width: 420px;
  filter: drop-shadow(0 20px 40px rgba(10, 31, 54, 0.15));
}

/* ---------- Section base ---------- */
section {
  padding: 96px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head .eyebrow {
  justify-content: center;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-head p {
  color: #3C4D5E;
}

/* ---------- Cards grid (irritants / méthode) ---------- */
.grid {
  display: grid;
  gap: 28px;
}

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

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

.card {
  background: var(--blanc);
  border: 1px solid rgba(10, 31, 54, 0.08);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(0, 224, 224, 0.4);
}

.card .num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan-moyen);
  margin-bottom: 12px;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.card p {
  color: #3C4D5E;
  font-size: 0.95rem;
}

/* ---------- Méthode (steps) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.step {
  text-align: center;
}

.step .step-index {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--bleu-nuit);
  color: var(--cyan-electrique);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.step p {
  font-size: 0.88rem;
  color: #3C4D5E;
}

/* ---------- TrustBuild-ia section (charte produit TrustBuild-ia) ---------- */
.trustbuild {
  background: var(--tb-graphite);
  color: var(--tb-calcaire);
  position: relative;
  overflow: hidden;
}

.trustbuild::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(194, 65, 12, 0.20), transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(232, 226, 214, 0.10), transparent 45%);
}

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

.trustbuild .section-head p {
  color: rgba(250, 247, 242, 0.72);
}

.trustbuild .section-head .eyebrow {
  color: var(--tb-ocre);
}

.actors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.actor {
  background: rgba(250, 247, 242, 0.05);
  border: 1px solid rgba(250, 247, 242, 0.12);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: background var(--transition), border-color var(--transition);
}

.actor:hover {
  background: rgba(194, 65, 12, 0.12);
  border-color: rgba(194, 65, 12, 0.5);
}

.actor-icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(250, 247, 242, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}

.actor-icon-wrap img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.actor .actor-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--tb-ocre);
  margin-bottom: 8px;
}

.actor p {
  font-size: 0.9rem;
  color: rgba(250, 247, 242, 0.8);
}

.assistants {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.assistant {
  background: rgba(250, 247, 242, 0.04);
  border: 1px solid rgba(250, 247, 242, 0.1);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.assistant-avatar {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.assistant .assistant-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--tb-ocre);
  margin-bottom: 4px;
}

.assistant .assistant-role {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(250, 247, 242, 0.55);
  margin-bottom: 14px;
}

.assistant p.desc {
  font-size: 0.92rem;
  color: rgba(250, 247, 242, 0.78);
}

/* ---------- TrustBuild-ia splash animation ---------- */
.tb-splash {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin: 0 auto 56px;
  padding: 44px 24px;
  max-width: 380px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(250, 247, 242, 0.08);
  border-radius: var(--radius);
}

.tb-splash-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.tb-triangle-svg {
  width: 68px;
  height: 58px;
  overflow: visible;
}

.tb-triangle-path {
  fill: none;
  stroke: var(--tb-calcaire);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
}

.tb-splash.in-view .tb-triangle-path {
  animation: tbDrawTriangle 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.tb-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.tb-line {
  height: 4px;
  border-radius: 2px;
  background: var(--tb-ocre);
  transform-origin: center;
  transform: scaleX(0);
}

.tb-splash.in-view .tb-line:nth-child(1) { width: 46px; animation: tbGrowLine 0.4s cubic-bezier(0.4, 0, 0.2, 1) 1.0s forwards; }
.tb-splash.in-view .tb-line:nth-child(2) { width: 32px; animation: tbGrowLine 0.4s cubic-bezier(0.4, 0, 0.2, 1) 1.25s forwards; }
.tb-splash.in-view .tb-line:nth-child(3) { width: 18px; animation: tbGrowLine 0.4s cubic-bezier(0.4, 0, 0.2, 1) 1.5s forwards; }

.tb-brand-name {
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 0.01em;
  line-height: 1;
  opacity: 0;
  transform: translateY(10px);
}

.tb-splash.in-view .tb-brand-name {
  animation: tbRiseIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.7s forwards;
}

.tb-trust-build {
  color: var(--tb-calcaire);
}

.tb-ia {
  color: var(--tb-ocre);
  font-weight: 400;
  font-style: italic;
}

.tb-tagline {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: rgba(250, 247, 242, 0.45);
  font-style: italic;
  opacity: 0;
  transform: translateY(6px);
}

.tb-splash.in-view .tb-tagline {
  animation: tbRiseIn 0.6s ease 2.2s forwards;
}

@keyframes tbDrawTriangle {
  to { stroke-dashoffset: 0; }
}

@keyframes tbGrowLine {
  to { transform: scaleX(1); }
}

@keyframes tbRiseIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.member {
  text-align: center;
}

.member .avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: var(--blanc);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 0 4px rgba(0, 224, 224, 0.15);
}

.member .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.member .role {
  font-size: 0.85rem;
  color: var(--cyan-moyen);
  font-weight: 600;
  margin-bottom: 12px;
}

.member p.bio {
  font-size: 0.9rem;
  color: #3C4D5E;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--cyan-moyen), var(--cyan-electrique));
  border-radius: 20px;
  padding: 56px;
  text-align: center;
  color: var(--bleu-nuit);
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 16px;
}

.cta-band p {
  margin-bottom: 28px;
  max-width: 52ch;
  margin-inline: auto;
  color: rgba(10, 31, 54, 0.8);
}

.cta-band .btn-primary {
  background: var(--bleu-nuit);
}

/* ---------- Contact ---------- */
.contact-section {
  padding-top: 40px;
}

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

.contact-info h2 {
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(10, 31, 54, 0.08);
}

.contact-list .label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cyan-moyen);
}

.contact-list a,
.contact-list span:not(.label) {
  font-size: 1.02rem;
  color: var(--bleu-nuit);
}

.contact-list a:hover {
  color: var(--cyan-moyen);
}

.contact-form {
  background: var(--blanc);
  border: 1px solid rgba(10, 31, 54, 0.08);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-row {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bleu-nuit);
}

.form-row input,
.form-row textarea {
  font-family: var(--font-main);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1.5px solid rgba(10, 31, 54, 0.15);
  border-radius: 8px;
  color: var(--bleu-nuit);
  background: var(--blanc);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--cyan-moyen);
  box-shadow: 0 0 0 3px rgba(0, 224, 224, 0.15);
}

.form-row textarea {
  resize: vertical;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-form .btn {
  border: none;
  cursor: pointer;
  width: 100%;
}

.form-feedback {
  margin-top: 16px;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.form-feedback.success {
  color: var(--cyan-moyen);
}

.form-feedback.error {
  color: #C0392B;
}

@media (max-width: 820px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Legal pages ---------- */
.legal-section {
  padding-top: 24px;
}

.legal-content {
  max-width: 820px;
  margin: 0 auto;
}

.legal-meta {
  color: #6B7C8C;
  font-size: 0.85rem;
  margin-bottom: 32px;
}

.legal-content h2 {
  color: var(--cyan-moyen);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 36px 0 14px;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p {
  margin: 0 0 14px;
  color: #2A3A4A;
  font-size: 0.97rem;
}

.legal-content ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-content li {
  margin-bottom: 8px;
  font-size: 0.97rem;
  color: #2A3A4A;
}

.legal-content a {
  color: var(--cyan-moyen);
  text-decoration: underline;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 0 0 20px;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.legal-content th {
  background: var(--bleu-nuit);
  color: var(--blanc);
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
}

.legal-content td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(10, 31, 54, 0.08);
  vertical-align: top;
}

.legal-content tr:nth-child(even) td {
  background: #F5FBFB;
}

.placeholder {
  color: #C0392B;
  font-weight: 700;
  background: #FDF0E9;
  padding: 1px 6px;
  border-radius: 4px;
}

.legal-note {
  background: #F0FBFB;
  border-left: 3px solid var(--cyan-moyen);
  padding: 14px 18px;
  border-radius: 8px;
  margin: 20px 0;
  font-size: 0.88rem;
  font-style: italic;
  color: #2A3A4A;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  margin-top: 20px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: var(--cyan-electrique);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bleu-nuit);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 28px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blanc);
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-brand img {
  height: 36px;
}

.footer-col h4 {
  color: var(--blanc);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--cyan-electrique);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

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

  .grid-3,
  .team-grid,
  .assistants {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--blanc);
    border-bottom: 1px solid rgba(10, 31, 54, 0.08);
    transform: translateY(-150%);
    transition: transform var(--transition);
  }

  .main-nav.open {
    transform: translateY(0);
  }

  .main-nav ul {
    flex-direction: column;
    padding: 24px;
    gap: 20px;
  }

  .nav-toggle {
    display: flex;
  }

  .grid-4,
  .steps,
  .actors {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 40px 24px;
  }
}
