/* ==========================================================
   TPT INVESTISSEMENT — feuille de style
   Couleur de marque : #0070C0 (papier à en-tête)
   ========================================================== */

:root {
  --blue: #0070C0;
  --blue-dark: #005A9C;
  --blue-light: #5BC0FF;
  --navy: #0A1F3C;
  --navy-2: #102B52;
  --ink: #13263F;
  --muted: #57677B;
  --line: #DCE6F0;
  --tint: #EEF5FB;
  --white: #FFFFFF;

  --radius: 16px;
  --shadow: 0 1px 2px rgba(10, 31, 60, .06), 0 12px 32px -12px rgba(10, 31, 60, .18);
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; border-radius: 6px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid var(--blue);
  background: var(--blue); color: #fff; font: inherit; font-weight: 700; font-size: 1rem;
  cursor: pointer; transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(0, 112, 192, .7); }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; }
.btn-sm { padding: 10px 20px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; box-shadow: none; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { height: 52px; width: auto; }
.brand-text { font-size: 1.05rem; font-weight: 600; letter-spacing: .06em; line-height: 1; }
.brand-text strong { color: var(--blue); font-weight: 800; margin-right: .2em; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--ink); font-weight: 600; font-size: .98rem; position: relative; padding: 6px 0; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:not(.btn):hover { text-decoration: none; color: var(--blue); }
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--blue); }
.nav .nav-cta, .nav a.nav-cta.active { color: #fff; }

.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; border-radius: 10px; }
.burger span { display: block; height: 2.5px; background: var(--navy); border-radius: 2px; margin: 5px 0; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(91, 192, 255, .28), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(0, 112, 192, .12), transparent 60%),
    linear-gradient(180deg, #F6FAFE 0%, #fff 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; padding-block: clamp(56px, 9vw, 112px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }

.hero h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); margin-bottom: 24px; }
.hero h1 span { color: var(--blue); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 54ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { position: relative; justify-self: center; width: min(100%, 460px); aspect-ratio: 1; }
.hero-svg { width: 100%; height: 100%; filter: drop-shadow(0 30px 40px rgba(0, 112, 192, .22)); animation: float 9s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

.chip {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px;
  box-shadow: var(--shadow); font-size: .85rem; line-height: 1.3; color: var(--muted);
}
.chip svg { color: var(--blue); flex: none; }
.chip strong { display: block; color: var(--ink); font-size: .92rem; }
.chip-a { top: 8%; left: -2%; }
.chip-b { bottom: 8%; right: -2%; }

/* ---------- Chiffres clés ---------- */
.facts { background: var(--navy); color: #fff; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-grid > div { padding: 28px 24px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid rgba(255, 255, 255, .12); }
.facts-grid > div:first-child { border-left: 0; padding-left: 0; }
.fact-label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-light); font-weight: 600; }
.fact-value { font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-tint { background: var(--tint); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.sub { color: var(--muted); font-size: 1.1rem; margin-top: 16px; margin-bottom: 0; }

/* À propos */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.about-grid p { color: var(--muted); }
.ticks { list-style: none; margin-top: 24px; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 36px; font-weight: 600; color: var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* Cartes */
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.cards .card { grid-column: span 2; }
.cards .card:nth-child(n+4) { grid-column: span 3; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { font-size: 1.2rem; margin: 22px 0 10px; }
.card p { color: var(--muted); font-size: 1rem; margin: 0; }

.icon {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-light), var(--blue)); color: #fff;
}
.icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.icon-sm svg { width: 22px; height: 22px; }

/* ZES */
.section-dark { background: radial-gradient(800px 400px at 100% 0, rgba(0, 112, 192, .35), transparent 60%), var(--navy); color: #fff; }
.section-dark .eyebrow { color: var(--blue-light); }
.section-dark .sub { color: #B7C6DA; }
.zes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255, 255, 255, .15); }
.zes-item { padding: 32px 28px 8px 0; }
.zes-item + .zes-item { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .15); }
.zes-num { display: block; font-size: .85rem; font-weight: 700; letter-spacing: .12em; color: var(--blue-light); margin-bottom: 18px; }
.zes-item h3 { font-size: 1.2rem; margin-bottom: 10px; }
.zes-item p { color: #B7C6DA; font-size: 1rem; }

/* Approche */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; position: relative; }
.steps li { position: relative; padding-top: 8px; }
.steps li::before {
  content: ""; position: absolute; top: 28px; left: 64px; right: -24px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
}
.steps li:last-child::before { display: none; }
.step-n {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #fff; border: 2px solid var(--blue); color: var(--blue); font-weight: 800; font-size: 1.2rem; margin-bottom: 20px;
}
.steps h3 { font-size: 1.2rem; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 1rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-list { list-style: none; display: grid; gap: 22px; margin: 36px 0 28px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list strong { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-list address { font-style: normal; }
.contact-list a { color: var(--ink); font-weight: 600; }
.contact-list a:hover { color: var(--blue); }
.maplink { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }

.form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 112, 192, .15); }
.field.invalid input, .field.invalid textarea { border-color: #C0392B; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; font-weight: 600; min-height: 1.5em; font-size: .98rem; }
.form-status.ok { color: #1B7F4B; }
.form-status.err { color: #C0392B; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy); color: #B7C6DA; padding-top: 64px; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; padding-bottom: 48px; }
.footer-logo { display: inline-block; background: #fff; border-radius: 14px; padding: 8px 14px; margin-bottom: 18px; }
.footer-logo img { height: 64px; width: auto; }
.footer-brand p { max-width: 38ch; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: #B7C6DA; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; }
.footer-bottom p { margin: 0; }

/* ---------- Animations d'apparition ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.cards .reveal:nth-child(3n+2), .steps .reveal:nth-child(2), .zes-grid .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3n), .steps .reveal:nth-child(3), .zes-grid .reveal:nth-child(3) { transition-delay: .16s; }
.steps .reveal:nth-child(4), .zes-grid .reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-svg { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards .card, .cards .card:nth-child(n+4) { grid-column: auto; }
  .cards .card:last-child { grid-column: 1 / -1; }
  .zes-grid { grid-template-columns: repeat(2, 1fr); }
  .zes-item:nth-child(3) { padding-left: 0; border-left: 0; }
  .zes-item:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 24px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps li::before { display: none; }
}

@media (max-width: 860px) {
  .burger { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
    box-shadow: 0 20px 30px -20px rgba(10, 31, 60, .3);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .nav-cta { margin-top: 16px; }

  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { width: min(100%, 340px); order: -1; margin-bottom: 0; }
  .chip-a { left: 0; }
  .chip-b { right: 0; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-grid > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts-grid > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .brand img { height: 44px; }
  .brand-text { font-size: .92rem; }
  .cards, .steps, .zes-grid { grid-template-columns: 1fr; }
  .cards .card:last-child { grid-column: auto; }
  .zes-item, .zes-item + .zes-item { padding-left: 0; border-left: 0; }
  .zes-item + .zes-item { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 24px; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .hero-actions .btn { width: 100%; }
  .chip { font-size: .78rem; padding: 10px 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
