/* Baytomation — site vitrine statique (thème clair) */

@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 400; font-display: swap; src: url("../fonts/roboto-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 500; font-display: swap; src: url("../fonts/roboto-500-normal.woff2") format("woff2"); }

:root {
  --navy: #0A2540;
  --navy-hover: #143B66;
  --accent: #0077C8;        /* bleu lisible sur blanc */
  --cyan: #00C2FF;          /* décor uniquement */
  --accent-soft: #E8F4FC;
  --yellow: #FCB900;
  --ink: #0F1B2A;
  --text: #4A5A6E;
  --muted: #7C8A9B;
  --line: #E6EBF1;
  --bg: #FFFFFF;
  --bg-soft: #F6F8FB;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(10, 37, 64, .05), 0 6px 20px rgba(10, 37, 64, .06);
  --shadow-lg: 0 2px 4px rgba(10, 37, 64, .04), 0 24px 48px rgba(10, 37, 64, .10);
  --max: 1160px;
  --head: "Poppins", system-ui, sans-serif;
  --body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 104px 0; }
.section--soft { background: var(--bg-soft); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--cyan); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head h2 { margin: 14px 0 16px; }
.section-head p { font-size: 18px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 600; font-size: 15px; padding: 14px 24px; border-radius: 10px; transition: transform .15s, background .15s, box-shadow .15s, color .15s; cursor: pointer; border: 0; }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-hover); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(10, 37, 64, .18); }
.btn--ghost { color: var(--navy); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-hover); }

/* En-tête */
.header { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(255, 255, 255, .85); backdrop-filter: blur(12px); transition: box-shadow .25s; }
.header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(10, 37, 64, .04); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font-family: var(--head); font-weight: 700; font-size: 20px; letter-spacing: .08em; color: var(--navy); display: flex; align-items: center; gap: 10px; }
.logo__mark { width: 30px; height: 30px; border-radius: 8px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 16px; letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--text); font-size: 15px; font-weight: 500; white-space: nowrap; transition: color .15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); }
.nav .btn { color: #fff; padding: 10px 18px; }
.lang { display: flex; gap: 2px; padding: 3px; border-radius: 9px; background: var(--bg-soft); }
.nav .lang a { font-size: 13px; font-weight: 600; padding: 4px 9px; border-radius: 6px; color: var(--muted); }
.nav .lang a[aria-current] { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(10, 37, 64, .12); }
.menu-btn { display: none; background: none; border: 0; color: var(--navy); padding: 8px; cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }

/* Hero */
.hero { position: relative; background: #fff; padding: 160px 0 110px; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(10, 37, 64, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 37, 64, .05) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 75% 40%, #000 10%, transparent 70%); }
.hero::after { content: ""; position: absolute; width: 620px; height: 620px; right: -140px; top: 20px; z-index: -1; background: radial-gradient(circle, rgba(0, 194, 255, .14), transparent 65%); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); font-weight: 700; margin: 20px 0 24px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { font-size: 19px; max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__visual img { width: min(340px, 78%); filter: drop-shadow(0 30px 40px rgba(10, 37, 64, .25)); animation: float 6s ease-in-out infinite; }
.hero__tag { position: absolute; background: #fff; box-shadow: var(--shadow-lg); color: var(--ink); font-size: 14px; font-weight: 500; padding: 10px 14px; border-radius: 10px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.hero__tag svg { width: 16px; height: 16px; color: var(--accent); }
.hero__tag--a { top: 14%; left: 0; }
.hero__tag--b { bottom: 18%; right: 0; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* Hero accueil : plan technique */
.hero__plan { margin: 0; position: relative; border-radius: var(--radius); background: #fff; padding: 16px; box-shadow: var(--shadow-lg); }
.hero__plan img { filter: invert(1) grayscale(1) contrast(1.1); opacity: .9; border-radius: 6px; }
.hero__plan figcaption { position: absolute; top: -14px; left: 20px; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 500; padding: 5px 12px; border-radius: 999px; box-shadow: var(--shadow); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22B573; box-shadow: 0 0 0 3px rgba(34, 181, 115, .18); }
.hero .hero__grid:has(.hero__plan) { grid-template-columns: 1.05fr .95fr; }
.hero__grid:has(.hero__plan) h1 { font-size: clamp(36px, 4.6vw, 52px); }

/* Bandeau compétences / chiffres */
.stats { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-family: var(--head); font-size: 24px; font-weight: 700; color: var(--navy); }
.stat span { font-size: 15px; color: var(--muted); }

/* Cartes */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card h3 { margin: 18px 0 8px; }
.card p { font-size: 16px; }
.icon { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.icon svg { width: 22px; height: 22px; }

/* Produit / spécialité */
.product { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.product__logo { height: 26px; width: auto; margin: 16px 0 22px; }
.product__text h2 { margin-bottom: 18px; }
.checklist { list-style: none; padding: 0; margin: 28px 0 34px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.blueprint { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; padding: 12px; }
.blueprint img { width: 100%; filter: invert(1) grayscale(1) contrast(1.1); border-radius: 6px; }
.blueprint figcaption { position: absolute; left: 24px; bottom: 22px; font-size: 13px; font-weight: 500; color: var(--navy); background: #fff; padding: 6px 10px; border-radius: 8px; box-shadow: var(--shadow); }

/* Atouts (liste avec icônes) */
.why { display: grid; gap: 14px; }
.why__item { display: flex; gap: 18px; align-items: flex-start; background: var(--bg-soft); border-radius: var(--radius); padding: 22px; }
.why__item .icon { flex: none; background: #fff; }
.why__item strong { display: block; font-family: var(--head); color: var(--ink); margin-bottom: 2px; }
.why__item span { font-size: 15px; }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding: 30px; border-radius: var(--radius); background: var(--bg-soft); }
.step--white { background: #fff; box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--head); font-weight: 700; font-size: 44px; color: var(--line); position: absolute; right: 24px; top: 14px; }
.step h3 { margin: 18px 0 8px; }
.step p { font-size: 16px; }

/* Encart produit */
.teaser { display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 32px; background: linear-gradient(135deg, #EEF7FD 0%, #F6F8FB 100%); border: 1px solid var(--line); border-radius: 24px; padding: 48px 56px; overflow: hidden; position: relative; transition: transform .2s, box-shadow .2s; }
.teaser:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.teaser__logo { height: 30px; width: auto; margin: 16px 0 18px; }
.teaser__text p { max-width: 520px; font-size: 18px; }
.teaser__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-family: var(--head); font-weight: 600; color: var(--accent); }
.teaser__link svg { width: 18px; height: 18px; transition: transform .15s; }
.teaser:hover .teaser__link svg { transform: translateX(4px); }
.teaser__img { width: 220px; justify-self: center; margin: -20px 0 -90px; transform: rotate(-12deg); filter: drop-shadow(0 30px 30px rgba(10, 37, 64, .22)); }

/* À propos */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about__text p + p { margin-top: 16px; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.value { padding: 22px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.value strong { display: block; font-family: var(--head); color: var(--ink); margin-bottom: 4px; }
.value span { font-size: 15px; }

/* Contact */
.cta { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 24px; padding: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.cta h2 { margin: 14px 0 16px; }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.contact-list a, .contact-list span { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 500; }
.contact-list a:hover { color: var(--accent); }
.contact-list svg { width: 20px; height: 20px; color: var(--accent); }
.form { display: grid; gap: 14px; background: #fff; border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink); }
.form input, .form textarea, .form select { font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #D5DDE6; border-radius: 10px; padding: 12px 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 119, 200, .12); }
.form textarea { min-height: 120px; resize: vertical; }
.form .btn { justify-self: start; margin-top: 6px; }
.form .btn:disabled { opacity: .6; cursor: wait; }
.form__status { font-size: 15px; min-height: 1px; }
.form__status:empty { display: none; }
.form__status.is-ok { color: #138A55; background: #E9F8F0; padding: 12px 14px; border-radius: 10px; }
.form__status.is-error { color: #B42318; background: #FDECEA; padding: 12px 14px; border-radius: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Pied de page */
.footer { padding: 56px 0 40px; font-size: 15px; border-top: 1px solid var(--line); }
.footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer__tagline { margin-top: 10px; color: var(--muted); }
.footer nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer nav a:hover { color: var(--navy); }
.footer__legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 14px; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__visual img { animation: none; }
}

/* Tablette */
@media (max-width: 960px) {
  .section { padding: 80px 0; }
  .hero { padding: 128px 0 80px; }
  .hero__grid, .hero .hero__grid:has(.hero__plan), .product, .about, .cta, .teaser { grid-template-columns: 1fr; }
  .steps--4 { grid-template-columns: 1fr 1fr; }
  .teaser { padding: 40px; }
  .teaser__img { margin: 0 0 -80px; width: 180px; }
  .hero__visual { margin-top: 12px; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cta { padding: 44px; }
}

/* Menu replié */
@media (max-width: 1060px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 76px 0 auto; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; display: none; box-shadow: 0 20px 30px rgba(10, 37, 64, .1); border-top: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; justify-content: center; border: 0; }
  .header.menu-open { background: #fff; }
  .nav .lang { order: 1; align-self: flex-start; margin-top: 16px; }
  .nav .lang a { padding: 6px 14px; border-bottom: 0; }
}

/* Mobile */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .cards, .steps, .steps--4, .services, .values, .form .row { grid-template-columns: 1fr; }
  .teaser { padding: 32px 20px; }
  .hero__tag { display: none; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .cta { padding: 28px 16px; border-radius: 18px; }
  .form { padding: 20px; }
  .stat { padding: 22px 16px; }
  .stat strong { font-size: 19px; }
  .stat span { font-size: 14px; }
}

/* Gamme ScanTrack */
.range { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.range__item { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.range__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.range__img { background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 0; }
.range__img img { display: block; width: 100%; height: auto; }
.range__body { padding: 22px 26px 28px; }
.range__body h3 { margin: 14px 0 2px; }
.range__form { display: block; font-family: var(--head); font-size: 14px; color: var(--accent); margin-bottom: 10px; }
.range__body p { font-size: 16px; }
.badge { display: inline-block; font-family: var(--head); font-weight: 600; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.badge--ok { background: #E9F8F0; color: #138A55; }
.badge--custom { background: var(--accent-soft); color: var(--accent); }
.badge--soon { background: #FFF5D6; color: #8A6200; }
.range__more { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 1060px) { .range { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .range { grid-template-columns: 1fr; } }

/* Contacts de l'équipe */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: 28px; }
.person { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: grid; gap: 4px; font-size: 15px; overflow-wrap: anywhere; }
.person strong { font-family: var(--head); color: var(--ink); font-size: 16px; }
.person__role { color: var(--accent); font-size: 14px; line-height: 1.4; margin-bottom: 6px; }
.person a { color: var(--ink); }
.person a:hover { color: var(--accent); }
