/* ==========================================================================
   Automation Consulting — Thème global (sombre & tech)
   Palette inspirée des logos : acier métallique, fond ardoise, accents cyan
   ========================================================================== */

:root {
  --bg:        #0a121c;   /* fond principal très sombre */
  --bg-2:      #0e1b27;   /* fond alternatif */
  --panel:     #122433;   /* cartes / panneaux */
  --panel-2:   #162c3e;   /* panneau survolé */
  --line:      #21384c;   /* bordures discrètes */
  --steel:     #8aa0b4;   /* gris acier */
  --text:      #e6edf4;   /* texte principal */
  --muted:     #9fb3c5;   /* texte secondaire */
  --cyan:      #2bd4e6;   /* accent principal */
  --cyan-2:    #19a7c4;   /* accent foncé */
  --cyan-soft: rgba(43, 212, 230, 0.12);
  --shadow:    0 18px 45px rgba(0, 0, 0, 0.45);
  --radius:    14px;
  --maxw:      1180px;
  --font:      "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typographie ---------- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.section { padding: 92px 0; }
.section--alt { background: var(--bg-2); }
.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section__head p { margin-top: 14px; font-size: 1.05rem; }

.accent { color: var(--cyan); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.97rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  color: #04141a;
  box-shadow: 0 10px 26px rgba(43, 212, 230, 0.25);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(43, 212, 230, 0.38); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 18, 28, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav__logo img { height: 46px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav__links a {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.15s ease;
  position: relative;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -26px;
  height: 2px;
  background: var(--cyan);
}
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 100px;
  background:
    radial-gradient(900px 500px at 78% -10%, rgba(43, 212, 230, 0.16), transparent 60%),
    radial-gradient(700px 500px at 10% 110%, rgba(25, 167, 196, 0.10), transparent 60%),
    var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(43, 212, 230, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 212, 230, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 760px; }
.hero h1 { margin-bottom: 22px; }
.hero p { font-size: 1.18rem; max-width: 620px; margin-bottom: 34px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Bandeau confiance ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.trust__row { display: flex; flex-wrap: wrap; gap: 40px 64px; justify-content: center; padding: 34px 0; }
.trust__item { text-align: center; }
.trust__item .num { font-size: 1.9rem; font-weight: 800; color: var(--text); }
.trust__item .lbl { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* ---------- Grille de cartes ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--cyan-2); background: var(--panel-2); }
.card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--cyan-soft);
  border: 1px solid rgba(43, 212, 230, 0.25);
  margin-bottom: 20px;
}
.card__icon svg { width: 26px; height: 26px; stroke: var(--cyan); fill: none; stroke-width: 1.8; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.97rem; }
.card .cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}
.card__link { display: inline-block; margin-top: 18px; color: var(--cyan); font-weight: 600; font-size: 0.92rem; }
.card__link:hover { color: var(--text); }

/* ---------- Liste à puces tech ---------- */
.ticks { list-style: none; display: grid; gap: 12px; margin-top: 8px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); }
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 16px; height: 16px;
  border-radius: 4px;
  background: var(--cyan-soft);
  border: 1px solid var(--cyan);
}
.ticks li::after {
  content: "";
  position: absolute; left: 5px; top: 11px;
  width: 5px; height: 9px;
  border: solid var(--cyan);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- Bloc offre détaillée ---------- */
.offer { padding: 70px 0; border-bottom: 1px solid var(--line); }
.offer:last-child { border-bottom: none; }
.offer__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.offer--rev .offer__grid { direction: rtl; }
.offer--rev .offer__grid > * { direction: ltr; }
.offer__visual {
  background: linear-gradient(160deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  min-height: 280px;
  display: grid;
  place-items: center;
}
.offer__visual svg { width: 120px; height: 120px; stroke: var(--cyan); fill: none; stroke-width: 1.4; opacity: 0.9; }
.offer h2 { margin-bottom: 16px; }
.offer .tag {
  display: inline-block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 12px;
}

/* ---------- Étapes / méthode ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; grid-template-columns: repeat(4, 1fr); }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-size: 1.5rem; font-weight: 800; color: var(--cyan); display: block; margin-bottom: 12px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.92rem; }

/* ---------- Pills (domaines d'expertise) ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.pill:hover { border-color: var(--cyan); background: var(--panel-2); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }

/* ---------- CTA bandeau ---------- */
.cta-band {
  background:
    radial-gradient(600px 300px at 80% 20%, rgba(43, 212, 230, 0.18), transparent 60%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 54px 48px;
  text-align: center;
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { max-width: 560px; margin: 0 auto 26px; }

/* ---------- Page header (pages internes) ---------- */
.page-hero {
  padding: 80px 0 60px;
  background:
    radial-gradient(700px 360px at 85% -20%, rgba(43, 212, 230, 0.14), transparent 60%),
    var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { margin-bottom: 12px; }
.page-hero p { font-size: 1.1rem; max-width: 640px; margin-top: 14px; }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--cyan); }

/* ---------- À propos ---------- */
.values { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.value h3 { margin-bottom: 8px; color: var(--text); }
.value .v-num { font-size: 0.85rem; font-weight: 700; color: var(--cyan); letter-spacing: 0.1em; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact__info p { margin-bottom: 22px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.info-item svg { width: 22px; height: 22px; stroke: var(--cyan); fill: none; stroke-width: 1.7; flex-shrink: 0; margin-top: 3px; }
.info-item .label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.info-item .val { color: var(--text); font-weight: 500; }

.form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.86rem; margin-bottom: 7px; color: var(--text); font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-soft);
}
.field textarea { resize: vertical; min-height: 130px; }
.form__note { font-size: 0.82rem; color: var(--muted); margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 56px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
.footer__brand img { height: 44px; margin-bottom: 16px; }
.footer__brand p { font-size: 0.92rem; max-width: 280px; }
.footer h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--steel); margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a { font-size: 0.92rem; color: var(--muted); }
.footer a:hover { color: var(--cyan); }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.85rem; color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .grid--3, .steps, .values { grid-template-columns: 1fr 1fr; }
  .offer__grid, .contact__grid, .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .offer--rev .offer__grid { direction: ltr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: block; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column;
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 20px 24px; gap: 18px;
  }
  .nav__links a.is-active::after { display: none; }
  .grid--3, .grid--2, .steps, .values { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
}
