/* =========================================================
   TASAI Consulting — feuille de style principale
   Palette dérivée du logo (cuivre + bleu marine circuit)
   ========================================================= */

/* ---------- Polices hébergées localement (SIL OFL, via Fontsource) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/space-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/space-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/space-mono-latin-700-normal.woff2") format("woff2"); }

:root {
  /* Couleurs de marque */
  --ink:          #12293F;   /* bleu nuit — texte principal / sections sombres */
  --navy:         #1B3C68;
  --navy-600:     #24507F;
  --copper:       #B65D24;   /* accent principal (unique) */
  --copper-bright:#D6853C;
  --copper-soft:  #F0E3D6;

  --paper:        #F6F7F9;   /* fond général (proche du fond du logo) */
  --white:        #FFFFFF;
  --line:         #E3E7EE;   /* filets fins */
  --blue-mist:    #A8BFDD;   /* bleu doux de la bannière */
  --slate:        #566473;   /* texte secondaire */

  /* Typographie */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;
  --font-mono:    "Space Mono", ui-monospace, monospace;

  /* Mesures */
  --wrap: 1120px;
  --radius: 14px;
  --radius-sm: 9px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--copper); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; color: var(--ink); margin: 0 0 .4em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }

/* Étiquette « eyebrow » qui rappelle les nœuds du circuit */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--copper);
  display: inline-flex;
  align-items: center;
  gap: .55em;
  margin: 0 0 1.1em;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 0 3px var(--copper-soft);
}

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--copper);
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-display);
  font-weight: 500; font-size: .98rem;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--bg);
  color: #fff;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
  text-decoration: none;
}
.btn:hover { background: #A0501E; transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(182,93,36,.6); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--white); border-color: var(--navy); box-shadow: none; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--copper); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,247,249,.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--ink); letter-spacing: -.01em; }
.brand__name b { color: var(--copper); font-weight: 700; }
.brand:hover { text-decoration: none; }

.nav__links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  color: var(--ink); font-size: .96rem; font-weight: 500;
  padding: 9px 14px; border-radius: 8px;
}
.nav__links a:hover { background: rgba(27,60,104,.07); text-decoration: none; }
.nav__links a[aria-current="page"] { color: var(--copper); }
.nav__cta { margin-left: 8px; }

.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: 8px;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--ink);
  position: relative; transition: transform .2s var(--ease), opacity .2s var(--ease);
  margin-inline: auto;
}
.nav__toggle span::before { position: absolute; top: -7px; }
.nav__toggle span::after  { position: absolute; top: 7px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span::after  { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--paper); }
.hero__circuit { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__inner { position: relative; padding: 96px 0 88px; max-width: 720px; }
.hero__logo { width: 78px; height: 78px; margin-bottom: 26px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.hero h1 .accent { color: var(--copper); }
.hero__lead { font-size: 1.2rem; color: var(--slate); max-width: 56ch; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* animation des traces (respecte prefers-reduced-motion plus bas) */
.trace { stroke-dasharray: 6 220; animation: dash 9s linear infinite; }
.trace.t2 { animation-duration: 12s; animation-delay: -3s; }
.trace.t3 { animation-duration: 14s; animation-delay: -6s; }
@keyframes dash { to { stroke-dashoffset: -452; } }

/* ---------- Bandeau de stats / repères ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.pillar:hover { border-color: var(--blue-mist); transform: translateY(-3px); }
.pillar__k { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--copper); }
.pillar h3 { font-size: 1.18rem; margin: 12px 0 8px; }
.pillar p { color: var(--slate); margin: 0; font-size: .96rem; }

/* ---------- Séparateur « circuit » ---------- */
.divider { display: flex; align-items: center; gap: 14px; color: var(--line); }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.divider span { width: 8px; height: 8px; border-radius: 50%; background: var(--copper); box-shadow: 0 0 0 4px var(--copper-soft); }

/* ---------- Section sombre ---------- */
.dark { background: var(--ink); color: #D8E0EA; }
.dark h2, .dark h3 { color: #fff; }
.dark .lede { color: #B9C6D4; }
.dark .feature-list li { color: #B9C6D4; }
.dark .feature-list strong { color: #fff; }
.dark .eyebrow { color: var(--copper-bright); }
.dark .eyebrow::before { background: var(--copper-bright); box-shadow: 0 0 0 3px rgba(214,133,60,.18); }

/* ---------- Grille de contenu ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.lede { font-size: 1.15rem; color: var(--slate); }
.feature-list { list-style: none; margin: 1.4em 0 0; padding: 0; display: grid; gap: 14px; }
.feature-list li { position: relative; padding-left: 30px; color: var(--slate); }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--copper); box-shadow: 0 0 0 4px var(--copper-soft);
}
.feature-list strong { color: var(--ink); font-weight: 600; }

.media-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(18,41,63,.4); }

/* ---------- Bandeau CTA ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--ink); }
.cta-band__bg { position: absolute; inset: 0; opacity: .16; object-fit: cover; width: 100%; height: 100%; }
.cta-band__inner { position: relative; text-align: center; padding: 76px 0; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-band p { color: #C3CEDB; max-width: 52ch; margin: 0 auto 1.8em; }

/* ---------- Formulaire de contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-info dl { margin: 0; display: grid; gap: 22px; }
.contact-info dt { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--copper); margin-bottom: 4px; }
.contact-info dd { margin: 0; font-size: 1.05rem; color: var(--ink); }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field label .req { color: var(--copper); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(182,93,36,.16); background: #fff;
}
.field textarea { min-height: 150px; resize: vertical; }
.field .error-msg { display: none; color: #B4231F; font-size: .84rem; margin-top: 6px; }
.field.has-error input, .field.has-error textarea { border-color: #B4231F; }
.field.has-error .error-msg { display: block; }

/* pot de miel anti-spam : masqué visuellement et aux lecteurs d'écran */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: .85rem; color: var(--slate); margin-top: 4px; }
.form-status { display: none; padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .95rem; }
.form-status.ok  { display: block; background: #E7F3EC; color: #1C6B3E; border: 1px solid #B9DFC7; }
.form-status.ko  { display: block; background: #FBEAEA; color: #9C2723; border: 1px solid #F1C4C2; }

/* ---------- Page « références » à venir ---------- */
.placeholder-card {
  text-align: center; background: var(--white); border: 1px dashed var(--blue-mist);
  border-radius: var(--radius); padding: 64px 32px;
}
.placeholder-card .eyebrow { justify-content: center; }
.ref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 20px; margin-top: 36px; }
.ref-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.ref-card__logo { height: 46px; display: grid; place-items: center; color: var(--blue-mist); font-family: var(--font-mono); font-size: .8rem; border-bottom: 1px solid var(--line); margin-bottom: 16px; padding-bottom: 16px; }
.ref-card h3 { font-size: 1.05rem; }
.ref-card p { color: var(--slate); font-size: .92rem; margin: 0; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #AEBCCB; padding: 60px 0 34px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { width: 38px; height: 38px; }
.footer-brand span { font-family: var(--font-display); font-weight: 700; color: #fff; }
.site-footer h4 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-bright); margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #AEBCCB; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: #7E8EA0; }

/* ---------- Révélation au défilement ---------- */
/* Masqué uniquement si JS actif (classe .js) : sans JS, tout reste visible */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav__links {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px; transform: translateY(-140%);
    transition: transform .28s var(--ease); box-shadow: 0 20px 30px -24px rgba(18,41,63,.4);
  }
  .nav.is-open .nav__links { transform: none; }
  .nav__links a { padding: 13px 12px; }
  .nav__toggle { display: block; }
  .split, .contact-grid, .pillars, .footer-top { grid-template-columns: 1fr; }
  .pillars { gap: 16px; }
  .split { gap: 32px; }
  .contact-grid { gap: 36px; }
  .section { padding: 60px 0; }
  .hero__inner { padding: 64px 0 56px; }
}

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

.nav__links a[href="references.html"] { display: none; }
#demarche { scroll-margin-top: 90px; }
.site-footer a[href="references.html"],
.site-footer li:has(> a[href="references.html"]) { display: none; }

/* ---------- Pages légales ---------- */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.legal h2 { font-size: 1.25rem; margin-top: 2.2em; }
.legal p, .legal li { color: var(--slate); }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: .35em; }
.legal strong { color: var(--ink); }
.legal__updated { font-family: var(--font-mono); font-size: .8rem; }
.footer-bottom a { color: inherit; font-size: inherit; }
.footer-bottom a:hover, .footer-bottom a[aria-current="page"] { color: #fff; }

/* ---------- Carte contact par e-mail ---------- */
.mail-card h2 { font-size: 1.4rem; }
.mail-card > p { color: var(--slate); }
.mail-card .feature-list { margin: 0 0 26px; }
.mail-card__btn { width: 100%; justify-content: center; }
.mail-card .form-note { margin-top: 14px; }
.mail-card__addr { font-family: var(--font-mono); color: var(--ink); user-select: all; }
.mail-card__copy {
  margin-left: 6px; padding: 3px 10px; font: inherit; font-size: .8rem; cursor: pointer;
  color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
}
.mail-card__copy:hover { border-color: var(--navy); }

/* ---------- Signature (page À propos) ---------- */
.signature { display: flex; align-items: center; gap: 18px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); position: relative; }
.signature::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 2px; background: var(--copper); }
.signature__photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--white), 0 0 0 4px var(--line); flex-shrink: 0; }
.signature__name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--ink); margin: 0 0 2px; }
.signature__role { font-size: .92rem; color: var(--slate); margin: 0; }
