/* =========================================================
   CLEVERLINT — Feuille de style principale
   ========================================================= */

:root {
  /* Couleurs de marque */
  --ink: #1c1921;
  --ink-soft: #2c2733;
  --slate: #544d61;
  --slate-light: #7a7188;
  --slate-pale: #ece9ef;
  --mist: #6f6879;

  /* Neutres */
  --paper: #faf8f7;
  --surface: #ffffff;
  --surface-alt: #f3f0ee;
  --line: #e4e0e3;
  --line-dark: #3a3542;

  /* Accent */
  --gold: #a1803f;
  --gold-dark: #7f6631;
  --gold-pale: #f1e9d8;

  /* Texte */
  --text: var(--ink);
  --text-muted: #58515f;
  --text-on-dark: #f2f0ee;
  --text-on-dark-muted: #b7b1c0;

  /* Typo */
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "URW Palladio L",
    Georgia, "Source Serif Pro", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  /* Rythme */
  --radius: 4px;
  --radius-lg: 10px;
  --container: 1180px;
  --shadow-sm: 0 1px 2px rgba(28, 25, 33, 0.06);
  --shadow-md: 0 8px 24px rgba(28, 25, 33, 0.08);
  --shadow-lg: 0 20px 48px rgba(28, 25, 33, 0.14);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

button {
  font: inherit;
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Typographie ---------- */
h1,
h2,
h3,
h4,
.font-serif {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem);
  line-height: 1.12;
}

h2 {
  font-size: clamp(1.7rem, 1.4rem + 1.4vw, 2.5rem);
  line-height: 1.18;
}

h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  line-height: 1.3;
}

h4 {
  font-size: 1.1rem;
  line-height: 1.4;
}

.lede {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.6;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: clamp(56px, 6vw, 108px);
}

.section--tight {
  padding-block: clamp(40px, 4vw, 72px);
}

.section--alt {
  background: var(--surface-alt);
}

.section--dark {
  background: var(--ink);
  color: var(--text-on-dark);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--text-on-dark);
}

.section--dark p {
  color: var(--text-on-dark-muted);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.section-head + .section-head {
  margin-top: 0;
}

.section-head > .eyebrow {
  margin-bottom: 14px;
}

.section-head > h2 {
  margin-bottom: 16px;
}

.grid {
  display: grid;
  gap: 32px;
}

.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: 900px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  color: var(--text-on-dark);
}

.btn-primary:hover {
  background: var(--slate);
}

.btn-gold {
  background: var(--gold);
  color: #fff;
}

.btn-gold:hover {
  background: var(--gold-dark);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-on-dark);
}

.btn-ghost-light:hover {
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--slate);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), gap 0.2s var(--ease);
}

.btn-link:hover {
  color: var(--gold-dark);
  border-color: var(--gold);
  gap: 12px;
}

.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: 30px;
  width: auto;
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-primary > ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-primary a.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-primary a.nav-link:hover {
  background: var(--slate-pale);
  color: var(--slate);
}

.nav-item.has-sub {
  position: relative;
}

.nav-item.has-sub > .nav-link .chev {
  margin-left: 6px;
  transition: transform 0.2s var(--ease);
}

.nav-item.has-sub:hover > .nav-link .chev,
.nav-item.has-sub:focus-within > .nav-link .chev {
  transform: rotate(180deg);
}

.sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 340px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
  list-style: none;
}

.nav-item.has-sub:hover > .sub-menu,
.nav-item.has-sub:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border-radius: var(--radius);
  transition: background-color 0.2s var(--ease);
}

.sub-menu a:hover {
  background: var(--surface-alt);
}

.sub-menu a strong {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
}

.sub-menu a span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: var(--ink);
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
}

@media (max-width: 980px) {
  .nav-primary {
    position: fixed;
    top: 84px;
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 32px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.28s var(--ease);
  }

  body.nav-open .nav-primary {
    transform: translateX(0);
  }

  .nav-primary > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-item.has-sub > .nav-link .chev {
    transform: none;
  }

  .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    display: none;
    margin-top: 4px;
  }

  .nav-item.has-sub.open .sub-menu {
    display: block;
  }

  .nav-item.has-sub.open > .nav-link .chev {
    transform: rotate(180deg);
  }

  .header-cta {
    margin-top: 20px;
    flex-direction: column;
    align-items: stretch;
  }

  .header-cta .btn {
    width: 100%;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 120px) clamp(48px, 6vw, 90px);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  margin-bottom: 22px;
}

.hero-copy .lede {
  margin-bottom: 32px;
  max-width: 54ch;
}

.hero-media {
  position: relative;
}

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--ink);
}

.hero-stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .hero-media {
    order: -1;
  }
}

/* ---------- Cartes offre ---------- */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 980px) {
  .offer-grid {
    grid-template-columns: 1fr;
  }
}

.offer-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
  height: 100%;
}

.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.offer-card .offer-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
}

.offer-card .offer-number {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--gold-dark);
  margin-bottom: 10px;
  display: block;
}

.offer-card h3 {
  margin-bottom: 6px;
}

.offer-card .offer-tagline {
  color: var(--slate);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.offer-card p.offer-desc {
  color: var(--text-muted);
  margin-bottom: 20px;
  flex: 1;
}

.offer-card ul.offer-points {
  list-style: none;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.offer-card ul.offer-points li {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.offer-card ul.offer-points li svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--gold);
}

/* ---------- Cartes génériques ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: var(--slate);
}

/* ---------- Contraste (probleme / offre) ---------- */
.contrast-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (max-width: 760px) {
  .contrast-block {
    grid-template-columns: 1fr;
  }
}

.contrast-block > div {
  padding: 32px;
}

.contrast-no {
  background: var(--surface-alt);
}

.contrast-yes {
  background: var(--ink);
  color: var(--text-on-dark);
}

.contrast-block .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.contrast-no .tag {
  background: #e7e2e6;
  color: var(--mist);
}

.contrast-yes .tag {
  background: var(--gold);
  color: #fff;
}

.contrast-block blockquote {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.45;
  margin: 0;
}

.contrast-yes blockquote {
  color: #fff;
}

/* ---------- Étapes / méthode ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

@media (max-width: 980px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  position: relative;
  padding-top: 8px;
}

.step .step-index {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--slate-pale);
  -webkit-text-stroke: 1.5px var(--slate-light);
  color: transparent;
  display: block;
  margin-bottom: 12px;
  line-height: 1;
}

.step h4 {
  margin-bottom: 8px;
}

.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Valeurs ---------- */
.value-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 760px) {
  .value-list {
    grid-template-columns: 1fr;
  }
}

.value-item h4 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.value-item .value-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.value-item p {
  color: var(--text-muted);
}

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 4px;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  color: var(--ink);
}

.faq-question .faq-plus {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
}

.faq-question .faq-plus::before,
.faq-question .faq-plus::after {
  content: "";
  position: absolute;
  background: var(--slate);
  transition: transform 0.25s var(--ease);
}

.faq-question .faq-plus::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.faq-question .faq-plus::after {
  left: 50%;
  top: 0;
  height: 100%;
  width: 2px;
  transform: translateX(-50%);
}

.faq-item.open .faq-plus::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
}

.faq-answer p {
  padding: 0 4px 22px;
  color: var(--text-muted);
  max-width: 68ch;
}

/* ---------- Bandeau logos secteurs ---------- */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
}

.logo-strip span {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--mist);
  letter-spacing: 0.02em;
}

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--text-on-dark);
  padding: clamp(36px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 10px;
}

.cta-band p {
  color: var(--text-on-dark-muted);
  max-width: 46ch;
}

.cta-band-text {
  position: relative;
  z-index: 1;
}

.cta-band .btn-row {
  position: relative;
  z-index: 1;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--text-on-dark-muted);
  padding-block: 64px 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}

@media (max-width: 860px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

.footer-brand img {
  height: 28px;
  margin-bottom: 18px;
}

.footer-brand p {
  max-width: 34ch;
  font-size: 0.92rem;
}

.footer-col h5 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 0.92rem;
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumb a:hover {
  color: var(--slate);
}

.breadcrumb .sep {
  margin: 0 8px;
  color: var(--line);
}

/* ---------- Page hero (offres/à propos) ---------- */
.page-hero {
  padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 64px);
}

.page-hero .eyebrow {
  margin-bottom: 16px;
}

.page-hero h1 {
  max-width: 18ch;
  margin-bottom: 20px;
}

.page-hero .lede {
  max-width: 62ch;
}

/* ---------- Bloc texte + image alterné ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split.reverse .split-media {
    order: -1;
  }
}

.split.reverse .split-media {
  order: 2;
}

.split-copy ul.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.check-list li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--gold);
  margin-top: 2px;
}

/* ---------- Formulaire ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field textarea,
.field select {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s var(--ease);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--slate);
  outline: none;
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ---------- Coordonnées contact ---------- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info .info-item {
  display: flex;
  gap: 16px;
}

.contact-info .info-item svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info .info-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--mist);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

/* ---------- Utilitaires ---------- */
.text-center {
  text-align: center;
}

.mx-auto {
  margin-inline: auto;
}

.mt-0 {
  margin-top: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius);
  z-index: 200;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Legal pages ---------- */
.prose h2 {
  margin-top: 40px;
  margin-bottom: 14px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--text-muted);
  margin-bottom: 14px;
}

.prose ul {
  padding-left: 20px;
  list-style: disc;
}

.prose a {
  color: var(--slate);
  text-decoration: underline;
  text-underline-offset: 2px;
}
