/* =========================================================
   digidev — feuille de style
   Palette : #71a1bd (bleu)  ·  #353734 (charbon)
   Police  : Montserrat
   ========================================================= */

:root {
  --blue: #71a1bd;
  --blue-dark: #4d7f9c;
  --blue-darker: #35617a;
  --blue-tint: #eef4f7;
  --blue-tint-2: #dfebf1;
  --charcoal: #353734;
  --charcoal-soft: #4a4d49;
  --ink: #2a2c2a;
  --muted: #6b6f6b;
  --line: #e4e8e7;
  --bg: #ffffff;
  --bg-alt: #f6f8f8;
  --white: #ffffff;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(53, 55, 52, .06), 0 1px 2px rgba(53, 55, 52, .04);
  --shadow-md: 0 10px 30px rgba(53, 55, 52, .08), 0 2px 8px rgba(53, 55, 52, .05);
  --shadow-lg: 0 24px 60px rgba(53, 55, 52, .12);

  --container: 1140px;
  --container-narrow: 760px;
  --pad-section: clamp(64px, 9vw, 112px);

  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.15;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  margin: 0;
}

h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-darker); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}
.container-narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--pad-section); }
.section-alt { background: var(--bg-alt); }

.section-dark {
  background: var(--charcoal);
  color: #dfe1df;
}
.section-dark h2 { color: #fff; }
.section-dark .section-sub { color: #b7bab7; }

.section-head {
  max-width: 680px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}
.section-sub {
  margin-top: 14px;
  font-size: 1.06rem;
  color: var(--muted);
}

.eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-darker);
  margin: 0 0 12px;
}
.eyebrow-light { color: var(--blue); }

/* ---------- Boutons ---------- */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  line-height: 1;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(113, 161, 189, .35); }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 12px 26px rgba(113, 161, 189, .42); }

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

.section-dark .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .28); }
.section-dark .btn-ghost:hover { border-color: #fff; color: #fff; }

.btn-sm { padding: 10px 18px; font-size: .875rem; }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--charcoal);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 40px; height: 40px; }
.brand-name { font-size: 1.35rem; }

.main-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.main-nav a {
  color: var(--charcoal-soft);
  font-weight: 600;
  font-size: .95rem;
  padding: 6px 0;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width .2s ease;
}
.main-nav a:hover { color: var(--charcoal); text-decoration: none; }
.main-nav a:hover::after { width: 100%; }

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  margin-inline: auto;
  background: var(--charcoal);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px clamp(20px, 5vw, 40px) 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.mobile-nav a {
  padding: 12px 8px;
  font-weight: 600;
  color: var(--charcoal);
  border-radius: 8px;
}
.mobile-nav a:hover { background: var(--bg-alt); text-decoration: none; }
.mobile-nav .btn { margin-top: 8px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(72px, 12vw, 140px);
  background: linear-gradient(180deg, var(--blue-tint) 0%, #fff 72%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(113, 161, 189, .35) 1px, transparent 0);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 20%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse 80% 60% at 70% 20%, #000 0%, transparent 70%);
  opacity: .7;
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 780px; }

.hero-title {
  font-size: clamp(2.9rem, 8vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--charcoal);
  margin: 0 0 22px;
}
.hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--charcoal-soft);
  max-width: 620px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-weight: 600;
  font-size: .95rem;
  color: var(--charcoal-soft);
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 9px;
}
.hero-points li::before {
  content: "";
  width: 18px; height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 14px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Trust band ---------- */
.trust {
  background: var(--charcoal);
  color: #dfe1df;
  padding-block: clamp(44px, 7vw, 72px);
}
.trust-title {
  text-align: center;
  color: #fff;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  margin-bottom: 40px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.trust-item {
  text-align: center;
  padding: 0 8px;
}
.trust-num {
  display: block;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--blue);
  line-height: 1;
}
.trust-num .unit { font-size: .42em; font-weight: 700; color: #fff; }
.trust-label {
  display: block;
  margin-top: 12px;
  font-size: .92rem;
  color: #b7bab7;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  gap: 24px;
}
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-tint-2);
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: .96rem; color: var(--muted); }

.card-icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  font-size: 26px;
  border-radius: 14px;
  background: var(--blue-tint);
  margin-bottom: 18px;
}

.card-product { display: flex; flex-direction: column; }
.card-tag {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue-darker);
  margin-bottom: 12px !important;
}
.card-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 9px;
}
.card-list li {
  position: relative;
  padding-left: 24px;
  font-size: .9rem;
  color: var(--charcoal-soft);
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--blue-tint-2);
  box-shadow: inset 0 0 0 4px var(--blue);
}

/* ---------- Steps / méthode ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.step-num {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: .02em;
  margin-bottom: 14px;
}
.step h3 { color: #fff; margin-bottom: 8px; }
.step p { font-size: .92rem; color: #b7bab7; }

/* ---------- Pricing ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.price-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.price-card-featured {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}
.price-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-name { font-size: 1.35rem; margin-bottom: 4px; }
.price-meta {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.price-amount {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.price-amount strong {
  font-size: 2rem;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}
.price-amount span { font-size: .85rem; }
.price-desc {
  font-size: .95rem;
  color: var(--charcoal-soft);
  margin: 10px 0 20px;
}
.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  gap: 11px;
  flex-grow: 1;
}
.price-features li {
  position: relative;
  padding-left: 26px;
  font-size: .92rem;
  color: var(--charcoal-soft);
}
.price-features li::before {
  content: "";
  position: absolute;
  left: 0; top: .3em;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' 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;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' 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;
}
.pricing-note {
  margin-top: 32px;
  text-align: center;
  font-size: .98rem;
  color: var(--muted);
}
.pricing-note strong { color: var(--charcoal); }

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 12px;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  padding: 4px 20px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details[open] {
  border-color: var(--blue-tint-2);
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 700;
  color: var(--charcoal);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--blue);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding: 0 0 18px;
  font-size: .96rem;
  color: var(--muted);
}

/* ---------- Contact form ---------- */
.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 8px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.contact-form label {
  display: grid;
  gap: 7px;
  font-size: .88rem;
  font-weight: 600;
  color: #cfd2cf;
}
.contact-form input,
.contact-form textarea {
  font-family: var(--font);
  font-size: 1rem;
  color: #fff;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  transition: border-color .2s ease, background-color .2s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #8b8f8b; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(255, 255, 255, .1);
}
.contact-form textarea { resize: vertical; }
.contact-form .btn { margin-top: 6px; justify-self: start; }
.contact-form .btn:disabled { opacity: .6; cursor: progress; transform: none; }
.form-alt { font-size: .92rem; color: #b7bab7; }
.form-alt a { color: #fff; text-decoration: underline; }

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  margin: 0;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-weight: 600;
}
.form-status.is-ok {
  background: rgba(113, 161, 189, .18);
  border: 1px solid var(--blue);
  color: #eaf2f6;
}
.form-status.is-error {
  background: rgba(214, 120, 120, .16);
  border: 1px solid #d67878;
  color: #f4dede;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #2b2d2a;
  color: #a9aca9;
  padding-block: 48px 28px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.site-footer .brand-name { color: #fff; }
.footer-tagline { margin: 8px 0 0; font-size: .9rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { color: #cfd2cf; font-weight: 600; font-size: .9rem; }
.footer-nav a:hover { color: #fff; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding-top: 22px;
  font-size: .82rem;
}
.footer-legal a { color: #a9aca9; }
.footer-legal a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .pricing { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .price-card-featured { transform: none; order: -1; }
}

@media (max-width: 820px) {
  .main-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .cards-4, .cards-3, .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
