/* ============================================================
   VDSYS — Feuille de style principale
   Charte reprise de vdsys.fr : marine #2c3384 / #384a95,
   accent corail #fc6f65, titres Jost, texte Assistant,
   boutons pilule. Polices auto-hébergées (fonts.css).
   ============================================================ */

:root {
  --navy: #2c3384;          /* base-2 vdsys.fr */
  --navy-2: #384a95;        /* base vdsys.fr */
  --navy-3: #4356a8;
  --brand: #26347e;         /* marine du logo */
  --blue: #384a95;          /* liens */
  --green: #d84b3e;         /* CTA (corail foncé accessible) */
  --green-hover: #c73c30;
  --green-light: #fc6f65;   /* accent corail vdsys.fr (fonds sombres) */
  --bg: #ffffff;
  --bg-alt: #f3f4f8;
  --bg-card: #ffffff;
  --text: #4a4a4a;          /* texte vdsys.fr */
  --muted: #6f6f6e;         /* texte secondaire vdsys.fr */
  --border: #e3e5ee;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(44, 51, 132, .08);
  --shadow-lift: 0 12px 28px rgba(44, 51, 132, .15);
  --font: 'Assistant', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: 'Jost', 'Assistant', -apple-system, "Segoe UI", Arial, sans-serif;
  --header-h: 68px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--green); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.18; color: var(--brand); letter-spacing: .002em; }
h1 { font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); margin: .3em 0 .4em; }
h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); margin: 1.2em 0 .6em; }
h3 { font-size: 1.17rem; margin: .8em 0 .4em; }
p { margin: .6em 0; }
.container { max-width: 1180px; margin-inline: auto; padding-inline: 20px; }
.container.narrow { max-width: 860px; }
.center { text-align: center; }
.note { font-size: .9rem; color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

/* ---------- Liens d'évitement (accessibilité) ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; padding: 11px 26px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn:focus-visible { outline: 3px solid var(--green-light); outline-offset: 2px; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-hover); color: #fff; }
.btn-ghost { border-color: var(--navy-2); color: var(--navy-2); background: transparent; }
.btn-ghost:hover { background: var(--navy-2); color: #fff; }
.hero .btn-ghost, .page-head .btn-ghost { border-color: #fff; color: #fff; }
.hero .btn-ghost:hover, .page-head .btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-ghost-light { border-color: #fff; color: #fff; background: transparent; }
.btn-ghost-light:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-lg { padding: 14px 28px; font-size: 1.06rem; }
.btn-block { display: block; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 18px;
}
.brand { color: var(--brand); display: flex; align-items: center; }
.logo-img { display: block; height: 36px; width: auto; }
.footer-logo { height: 32px; width: auto; margin-bottom: 10px; }
.main-nav { display: flex; align-items: center; gap: 20px; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--navy-2); text-decoration: none; font-weight: 600; font-size: .98rem;
}
.main-nav a:hover { background: var(--bg-alt); color: var(--navy); }
.main-nav a.active { color: var(--green); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.tel-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; color: var(--navy); text-decoration: none; white-space: nowrap;
}
.tel-link:hover { color: var(--green); }
.btn-nav { padding: 9px 18px; font-size: .95rem; white-space: nowrap; }
@media (max-width: 1150px) and (min-width: 961px) {
  .tel-link { display: none; }
  .main-nav a { padding: 8px 9px; font-size: .93rem; }
}
.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 10px;
  background: none; border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
}
.burger span { height: 3px; width: 100%; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 960px) {
  .burger { display: flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 8px;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 14px 20px 20px; box-shadow: var(--shadow-lift);
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 12px 14px; font-size: 1.05rem; }
  .nav-cta { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ---------- Fil d'Ariane ---------- */
.breadcrumb { background: var(--bg-alt); border-bottom: 1px solid var(--border); font-size: .88rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 9px 0; }
.breadcrumb li + li::before { content: "›"; margin: 0 7px; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--navy); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-3) 100%);
  color: #e8edf9; overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 44px;
  align-items: center; padding-block: 64px;
}
.hero h1 { color: #fff; margin-top: 0; }
.hero-kicker {
  display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--green-light); margin: 0 0 6px;
}
.hero-sub { font-size: 1.14rem; max-width: 56ch; color: #c9d4ee; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none;
  margin: 26px 0 0; padding: 0; font-size: .95rem; font-weight: 600; color: #b7c5e8;
}
.hero-visual {
  background: linear-gradient(180deg, #ffffff, #eef2fb);
  border-radius: 22px; padding: 26px; box-shadow: var(--shadow-lift);
  display: flex; justify-content: center;
}
.hero-visual img { max-height: 420px; width: auto; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; padding-block: 44px; }
  .hero-visual { max-width: 320px; margin-inline: auto; }
  .hero-visual img { max-height: 320px; }
}

/* ---------- Bandeau chiffres ---------- */
.stats { background: var(--navy); color: #fff; }
.stats-inline { background: var(--navy-2); }
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px; padding-block: 34px; text-align: center;
}
.stat p { margin: 4px 0 0; color: #b7c5e8; font-size: .95rem; }
.stat-num, .stat-num-sm {
  font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em;
  color: #fff; font-variant-numeric: tabular-nums;
}
.stat-num-sm { font-size: 1.7rem; }
.stat-plus { font-size: 1.5rem; font-weight: 800; color: var(--green-light); margin-left: 2px; }

/* ---------- Sections ---------- */
.section { padding-block: 58px; }
.section-alt { background: var(--bg-alt); }
.section-intro { max-width: 72ch; color: var(--muted); font-size: 1.06rem; margin-bottom: 1.6em; }
.page-head {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #c9d4ee; padding-block: 46px 40px;
}
.page-head h1 { color: #fff; margin: 0 0 8px; max-width: 26ch; }
.page-head .hero-kicker { margin-bottom: 4px; }
.page-sub { font-size: 1.13rem; max-width: 66ch; margin: 0; }

/* ---------- Cartes ---------- */
.cards-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  margin-block: 26px;
}
.cards-grid.two-cols { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.cards-grid.three-cols { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
a.card { text-decoration: none; color: inherit; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
a.card:focus-visible { outline: 3px solid var(--green-light); outline-offset: 2px; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-body h3, .card-body h2 { margin: 0 0 4px; }
.card-body p { margin: 0; color: var(--muted); font-size: .97rem; flex: 1; }
.card-link { margin-top: 12px; font-weight: 700; color: var(--green); font-size: .97rem; }
a.card:hover .card-link { text-decoration: underline; }
.product-card img {
  height: 230px; width: 100%; object-fit: contain;
  background: linear-gradient(180deg, #fbfcff, #eef2fb); padding: 18px;
}
.product-card.horizontal { flex-direction: row; align-items: stretch; }
.product-card.horizontal img { width: 38%; min-width: 150px; height: auto; }
@media (max-width: 620px) {
  .product-card.horizontal { flex-direction: column; }
  .product-card.horizontal img { width: 100%; height: 200px; }
}
.solution-card { padding: 24px 22px; gap: 6px; }
.solution-card h3 { margin: 6px 0 2px; }
.solution-card p { color: var(--muted); font-size: .96rem; margin: 0; }
.solution-ico { font-size: 1.9rem; line-height: 1; }
.solution-card.big { padding: 0; }
.solution-card.big img { height: 210px; width: 100%; object-fit: cover; }
.teaser-card { padding: 26px 24px; }
.teaser-card h3 { margin-top: 0; }
.teaser-card .btn { margin-top: 14px; align-self: flex-start; }
.case-card { padding: 24px 22px; }
.case-metric { font-size: 1.35rem; font-weight: 800; color: var(--green); margin: 4px 0 8px; }

/* ---------- Split (texte + visuel) ---------- */
.split, .split-40-60 {
  display: grid; gap: 44px; align-items: start;
  grid-template-columns: 1.1fr .9fr;
}
.split-40-60 { grid-template-columns: .9fr 1.1fr; }
.split-visual {
  margin: 0; background: linear-gradient(180deg, #fbfcff, #eef2fb);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
}
.split-visual img { border-radius: 8px; margin-inline: auto; max-height: 460px; width: auto; }
.split-visual figcaption { font-size: .88rem; color: var(--muted); margin-top: 12px; text-align: center; }
@media (max-width: 860px) { .split, .split-40-60 { grid-template-columns: 1fr; } }

/* ---------- Listes ---------- */
.check-list { list-style: none; margin: 1em 0; padding: 0; }
.check-list li { padding-left: 30px; position: relative; margin-bottom: 12px; }
.check-list li::before {
  content: "✔"; position: absolute; left: 0; top: 1px;
  color: var(--green); font-weight: 800;
}
.steps-list { counter-reset: step; list-style: none; margin: 1.4em 0; padding: 0; max-width: 74ch; }
.steps-list li { counter-increment: step; position: relative; padding-left: 54px; margin-bottom: 20px; }
.steps-list li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Images pleine largeur ---------- */
.schema-img, .clients-img {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; padding: 16px; margin-inline: auto;
}

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; margin-block: 20px; }
table { border-collapse: collapse; width: 100%; font-size: .97rem; background: #fff; }
th, td { border: 1px solid var(--border); padding: 11px 14px; text-align: left; vertical-align: top; }
thead th { background: var(--navy); color: #fff; }
tbody tr:nth-child(even) { background: var(--bg-alt); }
.spec-table th[scope="row"] { width: 30%; background: var(--bg-alt); color: var(--navy); }

/* ---------- Tarifs / forfaits ---------- */
.pricing-grid {
  display: grid; gap: 24px; margin-block: 26px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.price-card {
  position: relative; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow);
}
.price-card.featured { border: 2px solid var(--green); }
.price-card .badge {
  position: absolute; top: -13px; left: 22px;
  background: var(--green); color: #fff; font-size: .8rem; font-weight: 700;
  padding: 3px 12px; border-radius: 999px;
}
.price-card h3 { margin-top: 0; }
.price { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin: 6px 0 14px; }
.price-card ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: .96rem; }
.price-card li { margin-bottom: 6px; }

/* ---------- Formulaires ---------- */
.devis-card {
  background: #fff; border: 2px solid var(--green); border-radius: var(--radius);
  padding: 30px 30px 24px; box-shadow: var(--shadow-lift);
}
.devis-card h3 { margin-top: 0; font-size: 1.3rem; }
.devis-note { color: var(--muted); font-size: .95rem; margin-top: -4px; }
.form-devis label { display: block; font-weight: 600; font-size: .93rem; color: var(--navy-2); margin-bottom: 14px; }
.form-devis input, .form-devis select, .form-devis textarea {
  display: block; width: 100%; margin-top: 5px; padding: 11px 13px;
  border: 1px solid var(--border); border-radius: 9px;
  font: inherit; color: var(--text); background: #fff;
}
.form-devis input:focus, .form-devis select:focus, .form-devis textarea:focus {
  outline: 3px solid rgba(252, 111, 101, .45); border-color: var(--green);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-devis button { margin-top: 6px; }
.rgpd-note { font-size: .82rem; color: var(--muted); margin-top: 12px; }
.hp { position: absolute !important; left: -9999px !important; height: 0; width: 0; opacity: 0; }
.form-full { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }

/* ---------- FAQ ---------- */
.faq h2 { margin-bottom: .8em; }
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 700; color: var(--navy);
  list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--green); transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { background: var(--bg-alt); }
.faq-item summary:focus-visible { outline: 3px solid var(--green-light); outline-offset: -3px; }
.faq-body { padding: 0 20px 16px; color: var(--text); }
.faq-body p { margin-top: 0; }

/* ---------- Bandeau CTA ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy-2), var(--navy));
  color: #c9d4ee; padding-block: 46px;
}
.cta-band-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; max-width: 56ch; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Pages produit ---------- */
.product-head { padding-bottom: 34px; }
.product-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: start; }
@media (max-width: 860px) { .product-grid { grid-template-columns: 1fr; } }
.product-visual {
  margin: 0; position: sticky; top: calc(var(--header-h) + 20px);
  background: linear-gradient(180deg, #fbfcff, #eef2fb);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
}
.product-visual img { max-height: 440px; width: auto; margin-inline: auto; }
@media (max-width: 860px) { .product-visual { position: static; } }
.badges-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; justify-content: center; }
.badges-row span {
  background: var(--navy); color: #fff; font-size: .82rem; font-weight: 600;
  padding: 5px 12px; border-radius: 999px;
}
.product-info h2 { margin-top: 1.4em; }
.product-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* ---------- Divers ---------- */
.info-box {
  background: var(--bg-alt); border-left: 4px solid var(--green);
  border-radius: 0 10px 10px 0; padding: 18px 20px; margin-top: 26px;
}
.info-box h3 { margin-top: 0; }
.contact-block { font-style: normal; line-height: 1.7; }
.contact-list { list-style: none; padding: 0; }
.contact-list li { margin-bottom: 8px; }
.mission {
  font-size: 1.35rem; font-weight: 700; color: var(--navy);
  border-left: 4px solid var(--green); margin: 1.2em 0; padding: 8px 0 8px 22px;
}
.legal h2 { font-size: 1.25rem; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy); color: #b7c5e8; margin-top: 40px; font-size: .95rem; }
.footer-grid {
  display: grid; gap: 34px; padding-block: 48px 24px;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
}
.footer-title { color: #fff; font-size: 1.02rem; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #b7c5e8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.7; margin-bottom: 12px; }
.footer-badges {
  display: flex; flex-wrap: wrap; gap: 10px; padding-block: 8px 22px;
}
.footer-badges span {
  border: 1px solid rgba(183, 197, 232, .35); border-radius: 999px;
  padding: 4px 14px; font-size: .82rem;
}
.footer-bottom { border-top: 1px solid rgba(183, 197, 232, .2); padding-block: 16px; font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* ---------- Barre CTA mobile ---------- */
.mobile-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: rgba(38, 52, 126, .97); padding: 10px 14px;
  gap: 10px; box-shadow: 0 -4px 16px rgba(38, 52, 126, .3);
}
.mobile-cta .btn { flex: 1; padding: 11px 8px; font-size: .95rem; }
@media (max-width: 760px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 66px; }
}

/* ---------- Blog ---------- */
.article-meta { font-size: .88rem; color: var(--muted); margin: 4px 0 0; }
.page-head .article-meta { color: #b7c5e8; }
.article-body h2 { margin-top: 1.6em; }
.article-body > p:first-child { font-size: 1.12rem; }
.h3-like { font-size: 1.17rem; margin: .5em 0 .3em; }
.teaser-card .article-meta { margin: 0 0 2px; }

/* ---------- Réseaux sociaux (footer) ---------- */
.footer-social { display: flex; gap: 14px; margin-top: 14px !important; }
.footer-social li { margin: 0; }
.footer-social a {
  display: inline-block; padding: 4px 14px; border: 1px solid rgba(183, 197, 232, .35);
  border-radius: 999px; font-size: .85rem;
}
.footer-social a:hover { border-color: #fff; text-decoration: none; }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
