/* =========================================================
   VALCOM Protect – Feuille de style principale
   Palette : anthracite / rouge suisse / bleu
   ========================================================= */

:root {
  --c-ink:        #0f172a;   /* titres, fond sombre */
  --c-ink-2:      #1e293b;
  --c-text:       #334155;
  --c-muted:      #64748b;
  --c-line:       #e2e8f0;
  --c-bg:         #ffffff;
  --c-bg-alt:     #f6f8fb;
  --c-red:        #e30613;   /* rouge suisse – accent principal */
  --c-red-dark:   #b8050f;
  --c-blue:       #0ea5e9;   /* bleu – accent secondaire */
  --c-blue-dark:  #0369a1;
  --c-ok:         #15803d;
  --c-ok-bg:      #dcfce7;
  --c-err:        #b91c1c;
  --c-err-bg:     #fee2e2;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .14);
  --container: 1160px;
  --topbar-h: 38px;
  --header-h: 84px;
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--c-ink); line-height: 1.15; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.muted { color: var(--c-muted); }
.lead { font-size: 1.12rem; color: var(--c-muted); }
.accent { color: var(--c-red); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--c-ink); color: #fff; padding: .6rem 1rem; z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: .2s ease;
  text-decoration: none !important; white-space: nowrap;
}
.btn--primary { background: var(--c-red); color: #fff; }
.btn--primary:hover { background: var(--c-red-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(227,6,19,.25); }
.btn--ghost { background: transparent; color: var(--c-ink); border-color: var(--c-line); }
.btn--ghost:hover { border-color: var(--c-ink); }
.btn--light { background: #fff; color: var(--c-ink); }
.btn--light:hover { background: #f1f5f9; }
.btn--sm { padding: .55rem 1.1rem; font-size: .85rem; }

/* ---------- Barre supérieure ---------- */
.topbar { background: var(--c-ink); color: #cbd5e1; font-size: .8rem; height: var(--topbar-h); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1rem; }
.topbar a { color: inherit; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: #fff; text-decoration: none; }
.topbar__contact { display: flex; gap: 1.4rem; }
.topbar__group { display: flex; gap: 1.2rem; letter-spacing: .04em; font-weight: 500; }

/* ---------- En-tête ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.brand img { width: 190px; height: auto; }
.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a { color: var(--c-ink); font-weight: 600; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--c-red); text-decoration: none; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: .5rem; cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--c-ink); border-radius: 2px; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(14,165,233,.22), transparent 60%),
    radial-gradient(600px 400px at 10% 90%, rgba(227,6,19,.10), transparent 60%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(15,23,42,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(15,23,42,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero__inner {
  position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center;
  gap: 3rem; padding: 5rem 0 4rem; min-height: 560px;
}
.hero h1 { margin-bottom: 1rem; }
.hero .lead { max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-size: .88rem; color: var(--c-muted); font-weight: 500; }
.hero__badges li { display: flex; align-items: center; gap: .45rem; }
.hero__badges li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-red); flex: none;
}
.hero__visual { display: flex; justify-content: center; }
.hero__visual img { width: min(100%, 420px); filter: drop-shadow(0 30px 40px rgba(15,23,42,.18)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-red); margin-bottom: .8rem;
}

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section--alt { background: var(--c-bg-alt); }
.section--dark { background: var(--c-ink); color: #cbd5e1; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { max-width: 640px; margin-bottom: 3rem; }
.section__head--light .eyebrow { color: var(--c-blue); }

.grid { display: grid; gap: 1.6rem; }
.grid > *, .split > * { min-width: 0; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); gap: 3rem; }

/* Cartes de services */
.card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 2rem;
  transition: .25s ease; position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--c-red), var(--c-blue)); transform: scaleX(0); transform-origin: left; transition: .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::after { transform: scaleX(1); }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1.2rem;
  background: rgba(227,6,19,.08); color: var(--c-red);
}
.card__icon svg { width: 26px; height: 26px; }
.card p { margin: 0; color: var(--c-muted); }

/* Bloc texte + image */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: center; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-list { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.feature-list li { display: grid; gap: .2rem; padding-left: 1.6rem; position: relative; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: .5rem; width: 10px; height: 10px; border-radius: 50%;
  background: var(--c-red); box-shadow: 0 0 0 4px rgba(227,6,19,.15);
}
.feature-list strong { color: var(--c-ink); }
.feature-list span { color: var(--c-muted); }

/* Étapes PME */
.step { padding: 2rem; border-radius: var(--radius); background: var(--c-bg-alt); }
.step__num {
  display: inline-block; font-size: 2.6rem; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--c-red), var(--c-blue)); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 1rem;
}
.step p { margin: 0; color: var(--c-muted); }

/* Approche */
.prose p { font-size: 1.02rem; }
.prose--narrow { max-width: 760px; }
.prose h2 { margin-top: 2rem; font-size: 1.4rem; }
.callouts { display: grid; gap: 1.2rem; }
.callout {
  background: var(--c-ink-2); border-left: 4px solid var(--c-red); border-radius: var(--radius-sm);
  padding: 1.5rem 1.6rem;
}
.callout h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.callout p { margin: 0; font-size: .96rem; }

/* CTA */
.cta { background: linear-gradient(120deg, var(--c-red) 0%, #ff4d57 60%, var(--c-blue) 140%); color: #fff; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 3.5rem 0; }
.cta h2 { color: #fff; margin-bottom: .3rem; }
.cta p { margin: 0; opacity: .92; max-width: 560px; }

/* Contact */
.split--contact { grid-template-columns: .8fr 1.2fr; align-items: start; }
.contact-info { display: grid; gap: 1.4rem; }
.contact-info__item { display: grid; gap: .15rem; font-size: 1.05rem; }
.contact-info__label { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); font-weight: 700; }
.contact-info a { color: var(--c-ink); font-weight: 600; }

.form { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.form__row { display: grid; gap: .35rem; margin-bottom: 1.1rem; }
.form label { font-weight: 600; font-size: .9rem; color: var(--c-ink); }
.form label span { color: var(--c-red); }
.form input, .form textarea {
  font: inherit; padding: .75rem .9rem; border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  background: #fff; color: var(--c-ink); transition: .15s; width: 100%;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--c-blue); box-shadow: 0 0 0 3px rgba(14,165,233,.18); }
.form input.is-invalid, .form textarea.is-invalid { border-color: var(--c-err); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: .8rem; color: var(--c-muted); margin: 1rem 0 0; }

.alert { padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 2rem; font-weight: 500; }
.alert--ok { background: var(--c-ok-bg); color: var(--c-ok); }
.alert--error { background: var(--c-err-bg); color: var(--c-err); }

/* Page interne */
.page-head { background: var(--c-bg-alt); padding: 3.5rem 0 2.5rem; border-bottom: 1px solid var(--c-line); }
.page-head h1 { margin: 0; font-size: clamp(2rem, 4vw, 2.8rem); }

/* ---------- Pied de page ---------- */
.footer { background: var(--c-ink); color: #94a3b8; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding: 4rem 0 3rem; }
.footer__logo { width: 180px; background: #fff; padding: .5rem .7rem; border-radius: 6px; margin-bottom: 1rem; }
.footer__tagline { color: #fff; font-weight: 700; margin-bottom: .4rem; }
.footer__title { color: #fff; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer__list { display: grid; gap: .5rem; }
.footer a { color: #cbd5e1; }
.footer a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.2rem 0; font-size: .8rem; }
.footer__bottom p { margin: 0; }

.to-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem; width: 44px; height: 44px; border-radius: 50%;
  background: var(--c-ink); color: #fff; display: grid; place-items: center; font-size: 1.2rem;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 40; text-decoration: none !important;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }

/* ---------- Animations d'apparition ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__visual img { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; padding: 3.5rem 0 3rem; min-height: 0; }
  .hero .lead { margin-inline: auto; }
  .hero__actions, .hero__badges { justify-content: center; }
  .hero__visual img { width: min(70%, 320px); }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .grid--2, .split, .split--contact { grid-template-columns: 1fr; gap: 2rem; }
  .split__media { order: -1; }
  .split__media img { width: min(100%, 420px); margin-inline: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cta__inner { flex-direction: column; text-align: center; }
}
@media (max-width: 720px) {
  .topbar__group { display: none; }
  .topbar__contact { gap: 1rem; font-size: .78rem; }
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: #fff; border-bottom: 1px solid var(--c-line); flex-direction: column; align-items: stretch;
    gap: 0; padding: .5rem 1.25rem 1rem; display: none; box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--c-line); }
  .nav .btn { margin-top: .8rem; border: 0; }
  .section { padding: 3.5rem 0; }
  .grid--3 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .form { padding: 1.4rem; }
}
@media (max-width: 420px) {
  .topbar__contact a:last-child { display: none; }
  .brand img { width: 150px; }
}
