/* ============================================================
   SwipeJob — Landing page
   Palette : blanc, bleu #00a3d3, rouge #f10720, encre #101828
   ============================================================ */

:root {
  --blue: #00a3d3;
  --blue-dark: #007fa6;
  --blue-soft: #e6f6fc;
  --red: #f10720;
  --red-dark: #c40519;
  --red-soft: #fee9eb;
  --ink: #101828;
  --ink-soft: #475467;
  --line: #eaecf0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --dark: #0b1220;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(16, 24, 40, 0.08);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.accent-blue { color: var(--blue); }
.accent-red { color: var(--red); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(0, 163, 211, .35); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(241, 7, 32, .30); }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-outline-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-outline-light:hover { border-color: var(--blue); color: var(--blue); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-xl { padding: 18px 34px; font-size: 17px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(16, 24, 40, .08); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 34px; width: auto; }
.brand-name { font-size: 20px; font-weight: 800; color: var(--blue); letter-spacing: -.02em; }
.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a { font-weight: 500; font-size: 15px; color: var(--ink-soft); transition: color .15s; }
.main-nav a:hover { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 70px;
  background: linear-gradient(180deg, var(--blue-soft) 0%, #fff 70%);
  position: relative;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; }

/* ---------- Blobs décoratifs (parallaxe) ---------- */
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: .35; z-index: 1;
  pointer-events: none; will-change: transform;
}
.blob-blue { width: 420px; height: 420px; background: var(--blue); top: -120px; right: -100px; }
.blob-red { width: 340px; height: 340px; background: var(--red); bottom: -140px; left: -120px; opacity: .22; }
.blob-blue.small { width: 180px; height: 180px; top: 55%; left: 42%; opacity: .18; }

/* ---------- Flottement doux ---------- */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.float-slow { animation: floatY 6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .float-slow { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; }
.lead { font-size: 18px; color: var(--ink-soft); margin: 22px 0 30px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--ink-soft); }

/* ---------- Emplacements d'images ---------- */
.media-slot {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}
.media-slot.empty {
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
  border: 2px dashed #c8d2dd;
  background: repeating-linear-gradient(45deg, #fbfcfe, #fbfcfe 14px, #f3f6fa 14px, #f3f6fa 28px);
  box-shadow: none;
  position: relative;
}
.media-slot.empty::after {
  content: '📷  ' attr(data-label);
  font-size: 13px; color: #7d8aa0; text-align: center;
  padding: 0 24px; max-width: 90%;
}
.media-slot.dark.empty { border-color: #33415c; background: repeating-linear-gradient(45deg, #101a2e, #101a2e 14px, #15203a 14px, #15203a 28px); }
.media-slot.dark.empty::after { color: #8fa0bd; }
.phone-frame.empty { min-height: 480px; max-width: 320px; margin: 0 auto; border-radius: 36px; }

/* ---------- Phrase forte ---------- */
.statement { padding: 90px 0; text-align: center; }
.statement p {
  font-size: clamp(22px, 3vw, 30px); font-weight: 500;
  color: var(--ink-soft); max-width: 820px; margin: 0 auto; line-height: 1.45;
}
.statement strong { color: var(--ink); font-weight: 700; }

/* ---------- Fonctionnalités ---------- */
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; text-align: center; margin-bottom: 24px; }
.features { padding: 40px 0 30px; }
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 70px;
  align-items: center; padding: 60px 0;
}
.feature-row.reverse .feature-media { order: 2; }
.feature-row.reverse .feature-text { order: 1; }
.feature-tag {
  display: inline-block; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.tag-blue { background: var(--blue-soft); color: var(--blue-dark); }
.tag-red { background: var(--red-soft); color: var(--red-dark); }
.feature-text h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 14px; line-height: 1.2; }
.feature-text p { color: var(--ink-soft); font-size: 16.5px; }

/* ---------- Bande sécurité ---------- */
.security-band { background: var(--dark); color: #fff; padding: 90px 0; }
.security-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; }
.security-text h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; margin-bottom: 22px; }
.security-list { list-style: none; margin-bottom: 30px; }
.security-list li {
  padding: 9px 0 9px 34px; position: relative; color: #c3cbd9; font-size: 15.5px;
}
.security-list li::before {
  content: ''; position: absolute; left: 0; top: 14px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center/contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center/contain no-repeat;
}

/* ---------- Piliers ---------- */
.pillars { padding: 100px 0; background: var(--bg-alt); }
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.pillar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .2s, box-shadow .2s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 18px;
}
.pillar-icon.blue { background: var(--blue-soft); }
.pillar-icon.red { background: var(--red-soft); }
.pillar h3 { font-size: 18px; margin-bottom: 8px; }
.pillar p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Partenaires (marquee) ---------- */
.partners { padding: 90px 0 100px; overflow: hidden; }
.partners-lead { text-align: center; color: var(--ink-soft); max-width: 560px; margin: 0 auto 50px; }
.marquee {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 70px;
  width: max-content;
  animation: marquee 32s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img {
  height: 56px; width: auto; max-width: 170px; object-fit: contain;
  filter: grayscale(1); opacity: .65;
  transition: filter .25s, opacity .25s, transform .25s;
}
.marquee-track img:hover { filter: none; opacity: 1; transform: scale(1.08); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; } }

/* ---------- Carte logo TRAGUER AI ---------- */
.about-logo-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 50px 40px;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.about-logo-card img { max-height: 160px; width: auto; object-fit: contain; }
.about-logo-card .about-typo { max-height: 42px; }

/* ---------- Téléchargement ---------- */
.download-band { padding: 100px 0; }
.download-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: center; }
.download-text h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 14px; letter-spacing: -.02em; }
.download-text > p { color: var(--ink-soft); margin-bottom: 28px; font-size: 17px; }
.install-steps { margin-top: 36px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 30px; }
.install-steps h4 { font-size: 16px; margin-bottom: 12px; }
.install-steps ol { padding-left: 20px; color: var(--ink-soft); font-size: 15px; }
.install-steps li { margin: 8px 0; }
.install-steps .small { font-size: 13px; color: #98a2b3; margin-top: 12px; }

/* ---------- À propos ---------- */
.about { padding: 90px 0; background: var(--bg-alt); }
.about-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }
.about-text h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; margin-bottom: 18px; letter-spacing: -.02em; }
.about-text p { color: var(--ink-soft); font-size: 16.5px; margin-bottom: 16px; }

/* ---------- Contact ---------- */
.contact { padding: 100px 0; }
.contact-lead { text-align: center; color: var(--ink-soft); max-width: 560px; margin: 0 auto 40px; }
.contact-form { max-width: 680px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; display: flex; flex-direction: column; }
.form-field label { font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font); font-size: 15px; color: var(--ink);
  padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 163, 211, .12);
}
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; }
.contact-status { max-width: 680px; margin: 0 auto 20px; }
.contact-status .alert {
  padding: 14px 18px; border-radius: 12px; font-size: 15px; font-weight: 500;
}
.alert-ok { background: #e8f7ee; color: #157347; border: 1px solid #b7e4c7; }
.alert-err { background: var(--red-soft); color: var(--red-dark); border: 1px solid #f5b5bc; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #c3cbd9; padding: 70px 0 0; }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .brand-logo { height: 30px; margin-bottom: 10px; }
.footer-brand .brand-name { font-size: 18px; }
.footer-brand p { font-size: 14px; margin-top: 10px; color: #8fa0bd; }
.footer-col h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14.5px; padding: 5px 0; color: #c3cbd9; transition: color .15s; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom { padding: 24px; text-align: center; font-size: 13px; color: #8fa0bd; }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.visible { opacity: 1; transform: none; }

/* Apparition en cascade des piliers */
.pillar-grid .pillar:nth-child(1) { transition-delay: 0s; }
.pillar-grid .pillar:nth-child(2) { transition-delay: .12s; }
.pillar-grid .pillar:nth-child(3) { transition-delay: .24s; }
.pillar-grid .pillar:nth-child(4) { transition-delay: .36s; }

/* Les visuels des fonctionnalités glissent latéralement */
.feature-row .feature-media { opacity: 0; transform: translateX(-40px); transition: opacity .8s ease, transform .8s ease; }
.feature-row.reverse .feature-media { transform: translateX(40px); }
.feature-row.visible .feature-media { opacity: 1; transform: none; }

/* Parallaxe douce sur les visuels (pilotée en JS via data-parallax) */
[data-parallax] { will-change: transform; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner, .security-inner, .download-inner, .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .feature-row { grid-template-columns: 1fr; gap: 30px; padding: 40px 0; }
  .feature-row.reverse .feature-media { order: 0; }
  .feature-row.reverse .feature-text { order: 1; }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .main-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 10px 24px 16px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .pillar-grid, .footer-inner, .form-row { grid-template-columns: 1fr; }
  .hero { padding: 50px 0 40px; }
  .btn-xl { width: 100%; justify-content: center; }
  .header-actions .btn-primary { padding: 10px 16px; font-size: 13.5px; }
}
