/* ==========================================================================
   SELMI SOFT INFORMATIQUE â€” Feuille de style principale
   Refonte statique HTML / CSS / JS â€” responsive & moderne
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables & base
   -------------------------------------------------------------------------- */
:root {
  /* --- Couleurs de marque (logo Selmi Soft : charbon + orange) --------- */
  --navy-950: #141518;
  --navy-900: #1f2126;
  --navy-800: #2b2e35;
  --navy-700: #3a3e47;

  /* Tokens d'accent â€” Â« blue Â» = orange Selmi (nom historique conservÃ©) */
  --blue: #dd7a0a;        /* orange : icÃ´nes, bordures, fonds d'accent */
  --blue-600: #a85507;    /* orange foncÃ© : textes, liens, boutons (AA) */
  --blue-100: #fdeeda;    /* teinte orange trÃ¨s claire */
  --cyan: #fbb63c;        /* ambre clair : accents sur fond sombre */
  --amber: #f5a623;
  --green: #16a34a;

  --ink: #15171b;
  --body: #4a4f5a;
  --muted: #6e6a66;
  --line: #e7e4e0;
  --bg: #f7f6f4;
  --card: #ffffff;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(31, 33, 38, 0.08);
  --shadow-lg: 0 24px 60px rgba(31, 33, 38, 0.16);

  --max: 1180px;
  --header-h: 74px;

  --font-head: "Oswald", "Segoe UI", Arial, sans-serif;
  --font-body: "Open Sans", "Segoe UI", Roboto, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--navy-900);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.2rem; }
li { margin-bottom: 0.35em; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

::selection {
  background: var(--blue-600);
  color: #fff;
}

/* --------------------------------------------------------------------------
   2. Utilitaires
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 22px;
}

.section {
  padding: 84px 0;
}

.section-tight {
  padding: 56px 0;
}

.section-alt {
  background: #fff;
}

.section-dark {
  background: linear-gradient(140deg, var(--navy-950) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: #d3d0cb;
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #fff;
}

.center { text-align: center; }

.section-head {
  max-width: 760px;
  margin: 0 auto 46px;
  text-align: center;
}

.section-head.left {
  margin-inline: 0;
  text-align: left;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-dark .eyebrow {
  color: var(--cyan);
  background: rgba(251, 182, 60, 0.16);
}

.section-head p {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 0;
}

.section-dark .section-head p { color: #b6b1ab; }

.lead {
  font-size: 1.08rem;
  color: var(--muted);
}

.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.tag-ar {
  direction: rtl;
  unicode-bidi: embed;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   3. Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-head);
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  padding: 13px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  text-align: center;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 10px 24px rgba(168, 85, 7, 0.3);
}
.btn-primary:hover {
  background: var(--navy-900);
  color: var(--cyan);
  box-shadow: 0 14px 30px rgba(31, 33, 38, 0.35);
}

.btn-light {
  background: #fff;
  color: var(--navy-900);
  box-shadow: var(--shadow);
}
.btn-light:hover { color: var(--blue-600); }

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue-600);
}

.btn-block { width: 100%; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* --------------------------------------------------------------------------
   4. Header / Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 24px rgba(31, 33, 38, 0.08);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.brand:hover { color: var(--ink); }

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--navy-900) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0.04em;
  flex: none;
  box-shadow: 0 8px 18px rgba(168, 85, 7, 0.32);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--font-head);
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  color: var(--navy-900);
  font-weight: 600;
}

.brand-text span {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  font-family: var(--font-head);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 9px 15px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
  background: var(--blue-100);
  color: var(--blue-600);
}

.main-nav a.active {
  background: var(--navy-900);
  color: #fff;
}

.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { padding: 10px 22px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.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); }

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--navy-950);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/img01.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(20, 21, 24, 0.95) 8%, rgba(20, 21, 24, 0.78) 45%, rgba(31, 33, 38, 0.5) 100%),
    linear-gradient(to top, rgba(20, 21, 24, 0.9) 0%, rgba(20, 21, 24, 0) 45%);
}

.hero .container { position: relative; z-index: 2; }

.hero-content { max-width: 680px; padding: 120px 0 96px; }

.hero h1 {
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}

.hero h1 em {
  font-style: normal;
  color: var(--cyan);
}

.hero .eyebrow {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero p {
  font-size: 1.12rem;
  color: #e2ded9;
  max-width: 580px;
}

.hero .btn-group { margin-top: 34px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 46px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-meta div strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.9rem;
  color: #fff;
  line-height: 1;
}

.hero-meta div span {
  font-size: 0.85rem;
  color: #b6b1ab;
  letter-spacing: 0.05em;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 3;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
}

.scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 3px;
  background: #fff;
  animation: cue 1.6s infinite;
}

@keyframes cue {
  0%   { opacity: 0; transform: translateY(0); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* Hero intÃ©rieur des sous-pages */
.page-hero {
  position: relative;
  background:
    radial-gradient(1000px 400px at 15% -10%, rgba(251, 182, 60, 0.18), transparent 60%),
    linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 70%, var(--navy-700) 100%);
  color: #d3d0cb;
  padding: 74px 0 66px;
  overflow: hidden;
}

.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p { max-width: 640px; margin-bottom: 0; font-size: 1.06rem; color: #b6b1ab; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-head);
}

.breadcrumb a { color: var(--cyan); }
.breadcrumb li { color: #9d9891; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #5c5852; }

/* --------------------------------------------------------------------------
   6. Cartes & grilles
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 26px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #f2ddc2;
}

.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 8px;
}

.icon-box {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--blue-100);
  color: var(--blue-600);
  margin-bottom: 18px;
  flex: none;
}

.icon-box svg { width: 26px; height: 26px; }

.icon-box.dark {
  background: rgba(251, 182, 60, 0.18);
  color: var(--cyan);
}

.icon-box.amber { background: #fef3c7; color: #b45309; }
.icon-box.green { background: #dcfce7; color: #15803d; }

/* Fiche produit / logiciel */
.product {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy-900);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product:hover .product-thumb img { transform: scale(1.07); }

.product-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(20, 21, 24, 0.85);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.product-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-body h3 { font-size: 1.18rem; margin-bottom: 8px; }
.product-body p { font-size: 0.96rem; color: var(--muted); }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  font-size: 0.93rem;
  color: var(--body);
}

.feature-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 7px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

details.product-more {
  margin-top: 14px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

details.product-more summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  display: flex;
  align-items: center;
  gap: 8px;
}

details.product-more summary::-webkit-details-marker { display: none; }

details.product-more summary::after {
  content: "+";
  font-size: 1.1rem;
  line-height: 1;
}

details.product-more[open] summary::after { content: "\2013"; }

/* --------------------------------------------------------------------------
   7. Bloc Ã  propos
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.split-media {
  position: relative;
}

.split-media > img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.float-badge {
  position: absolute;
  right: -18px;
  bottom: -22px;
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 270px;
}

.float-badge strong {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--navy-900);
  display: block;
  line-height: 1.1;
}

.float-badge span { font-size: 0.85rem; color: var(--muted); }

.check-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 26px;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  color: var(--body);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-100);
  border: 1px solid #f4d9b8;
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--blue-600);
  border-bottom: 2px solid var(--blue-600);
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   8. Bandeau / stats / CTA
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.stat {
  text-align: center;
  padding: 26px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}

.stat span {
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b6b1ab;
}

.cta-band {
  background: linear-gradient(115deg, var(--navy-950) 0%, var(--navy-800) 55%, var(--blue-600) 145%);
  color: #fff;
  border-radius: 22px;
  padding: 52px 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  box-shadow: 0 26px 60px rgba(20, 21, 24, 0.35);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(251, 182, 60, 0.35), transparent 70%);
}

.cta-band > * { position: relative; z-index: 1; }

.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; color: #e3ded8; }

/* --------------------------------------------------------------------------
   9. Ã‰quipe / actualitÃ©s
   -------------------------------------------------------------------------- */
.member {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.member:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.member img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--blue-100);
  flex: none;
}

.member h3 { font-size: 1.1rem; margin-bottom: 4px; }
.member .role {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 10px;
}
.member p { font-size: 0.94rem; color: var(--muted); margin: 0; }

.news-item {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.news-item time {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.news-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.news-item p { font-size: 0.94rem; margin: 0; color: var(--body); }

/* --------------------------------------------------------------------------
   10. Filtres (page logiciels)
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--header-h) + 10px);
  z-index: 40;
  margin-bottom: 34px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  font-family: var(--font-head);
  font-size: 0.86rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover { border-color: var(--blue); color: var(--blue-600); }

.filter-btn.active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
}

.search-field {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 320px;
}

.search-field input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.search-field input:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
}

.search-field svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.result-count {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.product.is-hidden { display: none; }

.empty-state {
  display: none;
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

.empty-state.show { display: block; }

/* --------------------------------------------------------------------------
   11. Ã‰tapes / processus
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px 26px;
  box-shadow: var(--shadow);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-head);
  font-size: 2.4rem;
  color: #fbcfa0;
  position: absolute;
  top: 14px;
  right: 20px;
  line-height: 1;
}

.step h3 { font-size: 1.08rem; margin-bottom: 8px; position: relative; }
.step p { font-size: 0.94rem; color: var(--muted); margin: 0; }

/* --------------------------------------------------------------------------
   12. Bloc contact / formulaire
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: start;
}

.info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  transition: transform 0.2s ease;
}

.info-card:hover { transform: translateX(4px); }

.info-card .icon-box { width: 46px; height: 46px; margin: 0; border-radius: 13px; }
.info-card .icon-box svg { width: 22px; height: 22px; }
.info-card h3 { font-size: 1rem; margin-bottom: 3px; }
.info-card p { margin: 0; font-size: 0.96rem; color: var(--muted); }
.info-card a { color: var(--body); }
.info-card a:hover { color: var(--blue-600); }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.83rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 7px;
}

.field .req { color: #dc2626; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.field textarea { resize: vertical; min-height: 140px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(221, 122, 10, 0.16);
}

.field.invalid input,
.field.invalid textarea,
.field.invalid select {
  border-color: #dc2626;
  background: #fef2f2;
}

.field .error-msg {
  display: none;
  font-size: 0.83rem;
  color: #dc2626;
  margin-top: 6px;
}

.field.invalid .error-msg { display: block; }

.form-note {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 14px;
}

.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  color: #15803d;
  font-size: 0.95rem;
}

.form-status.show { display: block; }

/* Champ anti-robots (honeypot) â€” invisible pour l'utilisateur */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

button[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

.map-frame {
  border: 0;
  width: 100%;
  height: 320px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--line);
}

/* --------------------------------------------------------------------------
   13. TÃ©lÃ©chargement
   -------------------------------------------------------------------------- */
.download-box {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}

.download-box img { width: 74px; height: auto; }
.download-box .dl-body { flex: 1; min-width: 240px; }
.download-box h3 { margin-bottom: 6px; }
.download-box p { margin: 0; font-size: 0.95rem; color: var(--muted); }

.badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--blue-100);
  color: var(--blue-600);
  padding: 4px 11px;
  border-radius: 999px;
  margin-left: 8px;
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-950);
  color: #b0aca6;
  padding: 66px 0 0;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 46px;
}

.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.site-footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 2px;
  background: var(--cyan);
}

.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text span { color: #948f88; }
.footer-brand p { margin-top: 18px; }

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer ul li { margin-bottom: 10px; }

.site-footer ul a { color: #b0aca6; }
.site-footer ul a:hover { color: var(--cyan); }

.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.footer-contact svg { width: 18px; height: 18px; color: var(--cyan); flex: none; margin-top: 4px; }

.socials { display: flex; gap: 10px; margin-top: 20px; }

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
  color: #d3d0cb;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.socials a:hover {
  background: var(--blue-600);
  color: #fff;
  transform: translateY(-3px);
}

.socials svg { width: 18px; height: 18px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.87rem;
  color: #948f88;
}

.footer-bottom a { color: var(--cyan); }

/* Bouton retour en haut */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--navy-900);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s ease;
  z-index: 90;
}

.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--blue-600); }
.to-top svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   15. Animations d'apparition
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .float-badge { right: 10px; }
}

@media (max-width: 960px) {
  :root { --header-h: 66px; }

  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 22px 26px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(31, 33, 38, 0.14);
    transform: translateY(-140%);
    transition: transform 0.3s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .main-nav.open { transform: translateY(0); }

  .main-nav a {
    padding: 13px 16px;
    font-size: 1.02rem;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid var(--line);
  }

  .main-nav a:last-child { border-bottom: 0; }
  .header-cta .btn { display: none; }

  .split,
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 30px;
  }

  .section { padding: 62px 0; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }

  .grid-2,
  .grid-3,
  .grid-4,
  .steps,
  .stats,
  .footer-grid,
  .form-row { grid-template-columns: 1fr; }

  .hero-content { padding: 92px 0 84px; }
  .hero { min-height: auto; }
  .hero-meta { gap: 20px; }
  .hero-meta div strong { font-size: 1.6rem; }

  .float-badge { position: static; margin-top: 18px; max-width: none; }
  .form-card { padding: 26px 20px; }
  .card { padding: 24px 22px; }
  .filter-bar { position: static; }
  .search-field { max-width: none; }
  .scroll-cue { display: none; }
  .member { flex-direction: column; }
}
