/* slmedias.com/automatisation/ : page statique, design calqué sur le site WordPress live.
   Tokens mesurés sur le site (kit Elementor post-7 + computed styles, 2026-07-09) :
   navy #122647 (fond), accent #264fab, accent-hi #5985e8, soft #d1e3ff, beige #f5f2eb.
   Fonts live : Swear Display (Bold, titres, weight demandé 500) + Overused Grotesk (Medium, texte).
   Boutons : pill radius 100px ; blanc sur navy, accent sur clair. Nav uppercase 14.4px #d1e3ff. */

@font-face {
  font-family: 'Overused Grotesk';
  src: url('fonts/OverusedGrotesk-Medium.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Swear Display';
  src: url('fonts/SwearDisplay-Bold.woff') format('woff');
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #122647;
  --navy-2: #0d1c36;
  --accent: #264fab;
  --accent-hi: #5985e8;
  --soft: #d1e3ff;
  --beige: #f5f2eb;
  --white: #ffffff;
  --ink: #122647;
  --body-ink: #333333;
  --muted: #5a6b85;
  --font-display: 'Swear Display', Georgia, serif;
  --font-body: 'Overused Grotesk', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --container: 1140px;
  --gutter: clamp(1.1rem, 4vw, 2.2rem);
  --sec-y: clamp(3.4rem, 8vw, 6.4rem);
  --r-card: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--navy);
  color: var(--body-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 .5em;
  text-wrap: balance;
}
p { margin: 0 0 1em; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  display: inline-block;
  font-weight: 500;
  font-size: .84rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.on-dark .eyebrow { color: var(--soft); }
.on-light .eyebrow { color: var(--accent); }

/* ---------- boutons (pills, comme le site live) ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: 100px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .16s ease, background .16s ease, color .16s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--soft); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost:hover { color: var(--soft); border-color: var(--soft); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: #1d3f8c; }
.btn:focus-visible { outline: 3px solid var(--accent-hi); outline-offset: 2px; }

/* ---------- header (navy, statique, uppercase comme le live) ---------- */
.site-header { background: var(--navy); }
.header-in {
  max-width: var(--container); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 46px; width: auto; display: block; }
.topnav { display: flex; align-items: center; gap: 1.5rem; }
.topnav > ul { display: flex; align-items: center; gap: 1.35rem; list-style: none; margin: 0; padding: 0; }
.topnav a.navlink {
  font-size: 14.4px; font-weight: 500; text-transform: uppercase;
  color: var(--soft); text-decoration: none; padding: 8px 0;
}
.topnav a.navlink:hover, .topnav a.navlink[aria-current="page"] { color: var(--white); }
.topnav a.navlink[aria-current="page"] { border-bottom: 2px solid var(--accent-hi); }

.has-sub { position: relative; }
.has-sub > a.navlink::after { content: " \25BE"; font-size: .7em; }
.sub {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--white); border-radius: 10px; box-shadow: 0 18px 40px rgba(9, 19, 38, .28);
  list-style: none; margin: 0; padding: .5rem 0; min-width: 240px;
  opacity: 0; visibility: hidden; transition: opacity .15s ease; z-index: 30;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; }
.sub a {
  display: block; padding: .55rem 1.1rem; color: var(--ink); text-decoration: none;
  font-size: .92rem; font-weight: 500;
}
.sub a:hover, .sub a[aria-current="page"] { background: var(--beige); color: var(--accent); }

.nav-toggle { display: none; }
.nav-burger { display: none; }

@media (max-width: 960px) {
  .nav-burger {
    display: inline-flex; flex-direction: column; gap: 5px; cursor: pointer;
    padding: 10px; border: 0; background: none;
  }
  .nav-burger span { width: 24px; height: 2px; background: var(--white); display: block; }
  .topnav {
    display: none; position: absolute; top: 74px; left: 0; right: 0;
    background: var(--navy); padding: 1rem var(--gutter) 1.6rem; z-index: 40;
    box-shadow: 0 24px 40px rgba(0, 0, 0, .35);
  }
  .nav-toggle:checked ~ .topnav { display: block; }
  .topnav > ul { flex-direction: column; align-items: flex-start; gap: .2rem; }
  .topnav > ul > li { width: 100%; }
  .topnav a.navlink { display: block; padding: 10px 0; }
  .sub {
    position: static; transform: none; opacity: 1; visibility: visible;
    background: transparent; box-shadow: none; padding: 0 0 .4rem 1rem; min-width: 0;
  }
  .sub a { color: var(--soft); font-size: .88rem; padding: .4rem 0; }
  .sub a:hover, .sub a[aria-current="page"] { background: transparent; color: var(--white); }
  .header-cta { display: none; }
  .site-header { position: relative; }
}

/* ---------- sections ---------- */
section { padding: var(--sec-y) 0; }
.on-dark { background: var(--navy); color: var(--white); }
.on-dark h2, .on-dark h3 { color: var(--white); }
.on-dark p { color: var(--soft); }
.on-light { background: var(--beige); color: var(--body-ink); }
.on-light h2, .on-light h3 { color: var(--ink); }
.on-white { background: var(--white); color: var(--body-ink); }
.on-white h2, .on-white h3 { color: var(--ink); }

.h-display { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.lede { font-size: 1.09rem; max-width: 46rem; }
.accent-word { color: var(--accent-hi); }
.on-light .accent-word, .on-white .accent-word { color: var(--accent); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3.6rem, 9vw, 6.5rem) 0 clamp(4rem, 9vw, 6.5rem); }
.hero .crumbs { font-size: .82rem; margin: 0 0 1.4rem; color: var(--soft); }
.hero .crumbs a { color: var(--soft); text-decoration: none; }
.hero .crumbs a:hover { color: var(--white); }
.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.6rem);
  color: var(--white);
  max-width: 20ch;
}
.hero .lede { color: var(--soft); max-width: 40rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.9rem; }
/* bande de vague pleine largeur, dans le flux : jamais par-dessus le texte ou les boutons */
.wave-band { display: block; width: 100%; height: auto; opacity: .7; pointer-events: none; margin-top: clamp(1.6rem, 4vw, 3rem); }
.hero { padding-bottom: 0; }
.cta-final { padding-bottom: 0; }
.cta-final .wave-band { margin-top: clamp(1.2rem, 3vw, 2.2rem); }
/* le bouton ghost sur fond navy a un fond plein pour que rien ne passe au travers */
.on-dark .btn-ghost { background: var(--navy); }

/* ---------- photos humaines ---------- */
.split-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(1.6rem, 4vw, 3.2rem); align-items: center; }
@media (max-width: 860px) { .split-head { grid-template-columns: 1fr; } }
.photo-card { margin: 0; }
.photo-card img {
  display: block; width: 100%; height: auto;
  border-radius: var(--r-card); box-shadow: 0 18px 44px rgba(18, 38, 71, .18);
}
.photo-card figcaption { font-size: .85rem; color: var(--muted); margin-top: .6rem; }
.on-dark .photo-card figcaption { color: var(--soft); }
@media (max-width: 860px) { .photo-card { max-width: 420px; } }
.faq-wrap { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(1.6rem, 4vw, 3rem); margin-top: 2.2rem; align-items: start; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } .faq-wrap .photo-card { max-width: 380px; } }
.faq-wrap .photo-card { position: sticky; top: 1.2rem; }
.faq-wrap .faq { margin: 0; max-width: none; }

/* ---------- 8 systèmes ---------- */
.sys-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; margin-top: 2.6rem; }
@media (max-width: 860px) { .sys-grid { grid-template-columns: 1fr; } }
.sys {
  display: grid; grid-template-columns: 42px 1fr; gap: 1.1rem;
  background: var(--white); border-radius: var(--r-card);
  padding: 1.7rem 1.5rem;
  box-shadow: 0 10px 26px rgba(18, 38, 71, .07);
}
.sys .no {
  display: block; font-family: var(--font-body); font-weight: 500; font-size: .74rem;
  letter-spacing: .1em; color: var(--accent-hi); margin-bottom: .2rem;
}
.sys h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.sys p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- heures ---------- */
.hours { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2.4rem; }
@media (max-width: 960px) { .hours { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .hours { grid-template-columns: 1fr; } }
.hour-row {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(209, 227, 255, .22);
  border-radius: 12px; padding: 1.2rem 1.3rem;
  display: flex; justify-content: space-between; align-items: center; gap: .9rem;
}
.hour-row span { color: var(--soft); font-size: .95rem; }
.hour-row b { color: var(--white); font-weight: 500; }
.hour-row .h { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; color: var(--accent-hi); white-space: nowrap; }

/* ---------- carousel d'apps (2 lignes, defilement auto, pause au survol) ---------- */
.marquee { position: relative; overflow: hidden; padding: 6px 0; margin-top: 1.1rem; }
.marquee:first-of-type { margin-top: 2.4rem; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 11%; min-width: 56px;
  z-index: 3; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--navy) 12%, transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--navy) 12%, transparent); }
.track {
  display: flex; gap: .9rem; width: max-content; will-change: transform;
  animation: marq 46s linear infinite;
}
.track.rev { animation-direction: reverse; animation-duration: 54s; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .track [aria-hidden="true"] { display: none; }
  .marquee::before, .marquee::after { display: none; }
}
.app-cell {
  display: flex; align-items: center; gap: .7rem; flex: 0 0 auto;
  background: var(--white); border-radius: 12px; padding: .8rem 1.1rem;
  color: var(--ink); font-weight: 500; font-size: .93rem; white-space: nowrap;
}
.app-cell img { width: 24px; height: 24px; flex: 0 0 24px; object-fit: contain; }

/* ---------- badges d'icones sur les cartes ---------- */
.ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 11px; flex: 0 0 42px;
  background: rgba(38, 79, 171, .09); color: var(--accent);
}
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card { position: relative; }
.card .ico { margin-bottom: .9rem; }
.card .tag {
  position: absolute; top: 1.15rem; right: 1.15rem; margin: 0;
  background: rgba(38, 79, 171, .09); padding: .28rem .8rem;
}

/* ---------- calculateur d'heures ---------- */
.calc { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.6rem; margin-top: 2.6rem; align-items: start; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
.calc-tasks { display: grid; gap: .8rem; }
.calc-row {
  background: var(--beige); border-radius: 12px; padding: 1rem 1.2rem;
  display: grid; grid-template-columns: 1fr auto; gap: .4rem .9rem; align-items: center;
}
.calc-row label { font-weight: 500; color: var(--ink); font-size: .97rem; }
.calc-row output {
  font-family: var(--font-display); font-weight: 500; color: var(--accent);
  font-size: 1.05rem; white-space: nowrap; text-align: right; min-width: 4.6rem;
}
.calc-row input[type="range"] {
  grid-column: 1 / -1; width: 100%; accent-color: var(--accent); height: 22px; margin: 0;
}
.calc-rate { background: var(--beige); border-radius: 12px; padding: 1rem 1.2rem; }
.calc-rate label { font-weight: 500; color: var(--ink); font-size: .97rem; display: block; margin-bottom: .5rem; }
.calc-rate .rate-in { display: flex; align-items: center; gap: .5rem; }
.calc-rate input[type="number"] {
  font-family: var(--font-body); font-size: 1.1rem; font-weight: 500; color: var(--ink);
  width: 7rem; padding: .55rem .8rem; border: 1px solid #dfe6f1; border-radius: 9px; background: var(--white);
}
.calc-rate input[type="number"]:focus-visible { outline: 3px solid var(--accent-hi); outline-offset: 1px; }
.calc-rate .unit { font-weight: 500; color: var(--muted); }
.calc-out {
  background: var(--navy); color: var(--white); border-radius: var(--r-card);
  padding: 1.9rem 1.7rem; position: sticky; top: 1.2rem;
}
.calc-out .line { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid rgba(209, 227, 255, .18); }
.calc-out .line span { color: var(--soft); font-size: .93rem; }
.calc-out .line b { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; color: var(--white); white-space: nowrap; }
.calc-out .big { margin-top: 1.2rem; }
.calc-out .big span { display: block; color: var(--soft); font-size: .93rem; margin-bottom: .2rem; }
.calc-out .big b {
  font-family: var(--font-display); font-weight: 500; color: var(--accent-hi);
  font-size: clamp(2rem, 4.5vw, 2.9rem); line-height: 1.1; display: block;
}
.calc-out .note { color: var(--soft); font-size: .9rem; margin: 1.1rem 0 1.2rem; }
.calc-out .btn { width: 100%; text-align: center; }

/* ---------- cartes génériques ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-top: 2.6rem; }
.cards.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .cards, .cards.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards, .cards.cols-4 { grid-template-columns: 1fr; } }
.card {
  background: var(--white); border-radius: var(--r-card);
  padding: 1.7rem 1.5rem;
  box-shadow: 0 10px 26px rgba(18, 38, 71, .07);
}
.on-white .card { background: var(--beige); box-shadow: none; }
.card .tag {
  display: inline-block; font-size: .74rem; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
  background: rgba(38, 79, 171, .09); border-radius: 100px;
  padding: .28rem .8rem; margin-bottom: .9rem;
}
.card h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 50rem; margin: 2.2rem auto 0; }
.faq details {
  background: var(--white); border-radius: 12px;
  padding: 0; margin-bottom: .8rem;
  box-shadow: 0 8px 20px rgba(18, 38, 71, .06);
}
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 500; font-size: 1.12rem; color: var(--ink);
  padding: 1.1rem 3rem 1.1rem 1.3rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
  font-family: var(--font-body); font-size: 1.4rem; color: var(--accent);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 1.3rem 1.2rem; margin: 0; color: var(--body-ink); font-size: .98rem; }

/* ---------- CTA final ---------- */
.cta-final { text-align: center; }
.cta-final .lede { margin-left: auto; margin-right: auto; }
.cta-final .hero-ctas { justify-content: center; }
.cta-tel { display: block; margin-top: 1.3rem; }
.cta-tel a { color: var(--soft); text-decoration: none; font-size: 1.02rem; }
.cta-tel a:hover { color: var(--white); }

/* ---------- footer (navy, comme le live) ---------- */
footer { background: var(--navy-2); color: var(--soft); padding: clamp(2.8rem, 6vw, 4.2rem) 0 1.6rem; }
.foot-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.2rem; }
@media (max-width: 820px) { .foot-cols { grid-template-columns: 1fr; } }
.foot-brand img { height: 40px; width: auto; margin-bottom: 1rem; }
.foot-slogan { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; color: var(--soft); margin: 0 0 1.1rem; }
.foot-social { display: flex; gap: .7rem; }
.foot-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(209, 227, 255, .12); color: var(--soft);
}
.foot-social a:hover { background: var(--accent); color: var(--white); }
.foot-social svg { width: 17px; height: 17px; fill: currentColor; }
footer .foot-h {
  font-family: var(--font-body); font-size: .82rem; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase; color: var(--white); margin: 0 0 .9rem;
}
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links a {
  display: inline-block; padding: .28rem 0; color: var(--soft);
  text-decoration: none; font-size: .93rem;
}
.foot-links a:hover { color: var(--white); }
.legal {
  border-top: 1px solid rgba(209, 227, 255, .16); margin-top: 2.4rem; padding-top: 1.3rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem;
  font-size: .85rem;
}
.legal a { color: var(--soft); }

/* ---------- reveals (progressive enhancement, état initial = état final sans JS) ---------- */
html.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
html.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .rv { opacity: 1; transform: none; transition: none; }
}

/* ---------- banner de consentement ---------- */
.consent {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90;
  max-width: 34rem; margin: 0 auto;
  background: var(--white); color: var(--body-ink);
  border-radius: 14px; box-shadow: 0 22px 60px rgba(9, 19, 38, .4);
  padding: 1.2rem 1.3rem;
  display: none;
}
.consent.show { display: block; }
.consent p { margin: 0 0 .9rem; font-size: .92rem; }
.consent .consent-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.consent button {
  font-family: var(--font-body); font-size: .9rem; font-weight: 500;
  border-radius: 100px; padding: 9px 22px; cursor: pointer; border: 1px solid var(--accent);
}
.consent .c-accept { background: var(--accent); color: var(--white); }
.consent .c-refuse { background: var(--white); color: var(--accent); }
.consent a { font-size: .84rem; }
