/* ==========================================================================
   Maintexpress — feuille de style moderne (2026)
   Charte graphique Grafity (février 2023) :
   turquoise #00959b · gris foncé #4d4d4c · gris #979797 · gris clair #a6a6a6
   Typographies : Poppins (texte) · Syncopate (accents, cf. charte)
   ========================================================================== */

:root {
  --teal: #00959b;
  --teal-dark: #007a7f;
  --teal-light: #e6f4f5;
  --ink: #2e2e2d;
  --gray-dark: #4d4d4c;
  --gray: #979797;
  --gray-light: #a6a6a6;
  --bg: #ffffff;
  --bg-soft: #f5f7f7;
  --line: #e4e8e8;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(46, 46, 45, .08);
  --shadow-lg: 0 20px 50px rgba(46, 46, 45, .14);
  --container: 1180px;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-accent: "Syncopate", var(--font-body);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-dark);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; }

a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal-dark); }

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 .6em;
  font-weight: 600;
}

h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: clamp(56px, 8vw, 96px); }
.section--soft { background: var(--bg-soft); }
.section--teal { background: var(--teal); color: #fff; }
.section--teal h2, .section--teal h3, .section--teal p, .section--teal cite { color: #fff; }

.section-head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head .eyebrow {
  font-family: var(--font-accent);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: .8em;
}
.section--teal .eyebrow { color: rgba(255, 255, 255, .85); }
.section-head h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: var(--teal);
  margin: .5em auto 0;
}
.section--teal .section-head h2::after { background: #fff; }

/* --------------------------------------------------------------------------
   En-tête / navigation
   -------------------------------------------------------------------------- */

.topbar {
  background: var(--gray-dark);
  color: #fff;
  font-size: .82rem;
}
.topbar__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px 32px;
  min-height: 38px;
  flex-wrap: wrap;
}
.topbar a { color: #fff; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: var(--teal-light); }
.topbar__contacts { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar svg { width: 14px; height: 14px; fill: currentColor; flex: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}
.brand img { display: block; width: 168px; height: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: block;
  padding: 10px 14px;
  color: var(--gray-dark);
  font-weight: 500;
  font-size: .95rem;
  border-radius: 8px;
}
.nav a:hover { color: var(--teal); background: var(--teal-light); }
.nav .is-active > a:first-child, .nav a.is-active { color: var(--teal); }

.nav__item { position: relative; }
.nav__item--dropdown > a::after {
  content: "";
  display: inline-block;
  margin-left: 7px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
}
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav__item--dropdown:hover .dropdown,
.nav__item--dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a { padding: 8px 12px; font-size: .88rem; font-weight: 400; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

@media (max-width: 991px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 12px 16px 20px;
    display: none;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--teal-light);
    border-radius: 0;
    margin-left: 14px;
    display: none;
  }
  .nav__item--dropdown.is-open .dropdown { display: block; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  font-family: var(--font-body);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-dark); color: #fff; }
.btn--outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn--outline:hover { background: var(--teal); color: #fff; }
.btn--light { background: #fff; color: var(--teal); }
.btn--light:hover { background: var(--teal-light); color: var(--teal-dark); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero { position: relative; overflow: hidden; background: #1e282a; }
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: clamp(90px, 16vw, 190px) 24px;
  max-width: 860px;
  margin-inline: auto;
}
.hero__content h1 { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
.hero__content p { text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
.hero__content .baseline { text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.hero__content .baseline {
  font-family: var(--font-accent);
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: clamp(.7rem, 1.4vw, .9rem);
  color: var(--teal-light);
  display: block;
  margin-bottom: 1.2em;
}
.hero__content p { font-size: 1.08rem; color: rgba(255, 255, 255, .9); }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* Hero « boutons seuls » : vidéo mise en avant, CTA ancrés en bas du bandeau */
.hero__content--actions {
  min-height: 64vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-block: 0 clamp(40px, 8vh, 76px);
}
.hero__content--actions .hero__actions { margin-top: 0; }

.page-hero {
  background: linear-gradient(120deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  text-align: center;
  padding: clamp(56px, 9vw, 110px) 24px;
}
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: rgba(255, 255, 255, .9); max-width: 640px; margin: 0 auto; }

/* --------------------------------------------------------------------------
   Grilles et cartes
   -------------------------------------------------------------------------- */

.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 991px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { font-size: 1.08rem; }
.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--teal-light);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card__icon svg { width: 26px; height: 26px; fill: currentColor; }

/* Deux colonnes texte / visuel */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split__media img {
  border-radius: var(--radius);
  display: block;
}
.split__media--shadow img { box-shadow: var(--shadow-lg); }

/* Listes à puces avec coche */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .32em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300959b'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/12px no-repeat;
}
.checklist--strong li { font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.section--teal .checklist li { color: #fff; }
.section--teal .checklist li::before {
  background-color: rgba(255, 255, 255, .2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Compteurs
   -------------------------------------------------------------------------- */

.stats { text-align: center; }
.stat__value {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}
.section--teal .stat__value { color: #fff; }
.stat__label { margin-top: 10px; font-size: .95rem; }

/* --------------------------------------------------------------------------
   Barres de progression
   -------------------------------------------------------------------------- */

.progress { margin-bottom: 22px; }
.progress__head {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  color: var(--ink);
  font-size: .92rem;
  margin-bottom: 8px;
}
.progress__track {
  height: 10px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.progress__fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  transition: width 1.2s cubic-bezier(.25, .8, .35, 1);
}

/* --------------------------------------------------------------------------
   Témoignages et logos clients
   -------------------------------------------------------------------------- */

.quote-card {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius);
  padding: 30px 28px;
  height: 100%;
}
.quote-card q { font-style: italic; }
.quote-card cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-weight: 600;
}
.quote-card .quote-card__org { font-size: .85rem; opacity: .85; }

.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(420px, 85%);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
  -webkit-overflow-scrolling: touch;
}
.carousel > * { scroll-snap-align: start; }
.carousel::-webkit-scrollbar { height: 8px; }
.carousel::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .25); border-radius: 4px; }

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 4vw, 44px);
}
.logo-strip img {
  height: 64px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .7;
  transition: filter .25s, opacity .25s;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
}
.logo-strip img:hover { filter: none; opacity: 1; }

/* --------------------------------------------------------------------------
   Formulaires
   -------------------------------------------------------------------------- */

.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.form label { font-weight: 500; color: var(--ink); font-size: .9rem; display: block; margin-bottom: 6px; }
.form input, .form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 149, 155, .15);
}
.form textarea { min-height: 150px; resize: vertical; }

/* --------------------------------------------------------------------------
   Tarifs
   -------------------------------------------------------------------------- */

.pricing-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pricing-card--featured { border: 2px solid var(--teal); box-shadow: var(--shadow-lg); }
.pricing-card .price { font-size: 2.4rem; font-weight: 700; color: var(--teal); line-height: 1; }
.pricing-card .price small { font-size: .9rem; font-weight: 400; color: var(--gray); display: block; margin-top: 8px; }
.pricing-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; text-align: left; }

/* --------------------------------------------------------------------------
   Galeries de captures d'écran
   -------------------------------------------------------------------------- */

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery--2 { grid-template-columns: repeat(2, 1fr); }
.gallery--1 { grid-template-columns: minmax(0, 560px); justify-content: center; }
.gallery a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.gallery a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   Captures d'écran encadrées (fenêtre navigateur)
   -------------------------------------------------------------------------- */

.webshot {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.webshot__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.webshot__bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d7dcdc;
}
.webshot__bar span:nth-child(1) { background: #ff5f57; }
.webshot__bar span:nth-child(2) { background: #febc2e; }
.webshot__bar span:nth-child(3) { background: #28c840; }
.webshot img { display: block; width: 100%; height: auto; }
.webshot--phone { max-width: 340px; margin-inline: auto; }

/* Zone média à hauteur fixe : aligne les titres des blocs GMAO Expert / Mobile */
.version-media {
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.version-media .webshot { max-width: 100%; display: inline-flex; flex-direction: column; }
.version-media .webshot img { max-height: 320px; max-width: 100%; width: auto; height: auto; }
.version-media .webshot--phone { max-width: none; }
@media (max-width: 640px) { .version-media { height: 300px; } .version-media .webshot img { max-height: 250px; } }

/* Deux captures côte à côte (bureau + téléphone) */
.shot-pair { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 760px) { .shot-pair { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Tableaux comparatifs Mobile / Expert
   -------------------------------------------------------------------------- */

.table-wrap { overflow-x: auto; }
.compare {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: .92rem;
}
.compare th, .compare td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.compare thead th {
  background: var(--gray-dark);
  color: #fff;
  font-weight: 600;
}
.compare thead th:nth-child(2), .compare thead th:nth-child(3),
.compare td:nth-child(2), .compare td:nth-child(3) {
  text-align: center;
  width: 110px;
}
.compare tbody tr:nth-child(even) { background: var(--bg-soft); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
}
.compare .opt { font-size: .8rem; font-weight: 600; color: var(--teal); white-space: nowrap; }

/* Sous-navigation d'ancres (page GMAO) */
.subnav {
  position: sticky;
  top: 76px;
  z-index: 90;
  background: #fff;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.subnav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 8px 24px;
  white-space: nowrap;
}
.subnav a {
  display: block;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 500;
  color: var(--gray-dark);
}
.subnav a:hover, .subnav a.is-current { background: var(--teal-light); color: var(--teal); }

/* Les sections ancrées ne doivent pas passer sous les barres collantes */
.anchor-section { scroll-margin-top: 140px; }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */

.site-footer { background: var(--gray-dark); color: rgba(255, 255, 255, .8); font-size: .92rem; }
.site-footer__main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-block: 56px;
}
@media (max-width: 900px) { .site-footer__main { grid-template-columns: 1fr; gap: 28px; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1em; }
.site-footer a { color: rgba(255, 255, 255, .8); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__logo img { width: 190px; margin-bottom: 16px; }
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding-block: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .84rem;
}
.social { display: flex; gap: 12px; }
.social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.social a:hover { background: var(--teal); }
.social svg { width: 16px; height: 16px; fill: #fff; }

/* --------------------------------------------------------------------------
   Animations d'apparition
   -------------------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

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

/* Utilitaires */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.avatar { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; }
