/* ==========================================================================
   Sonar Pay — feuille de style principale
   Migration Webflow -> statique. Design repris du site d'origine
   (www.sonarpay.fr, publié le 23/05/2025).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Polices
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Clash Grotesk";
  src: url("../fonts/ClashGrotesk-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Clash Grotesk";
  src: url("../fonts/ClashGrotesk-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Clash Grotesk";
  src: url("../fonts/ClashGrotesk-Semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Clash Grotesk";
  src: url("../fonts/ClashGrotesk-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HelveticaNeue Roman";
  src: url("../fonts/HelveticaNeue-Roman.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HelveticaNeue Medium";
  src: url("../fonts/HelveticaNeue-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Jetons de design
   -------------------------------------------------------------------------- */

:root {
  /* Couleurs */
  --dark: #0b1b04;          /* vert très sombre : barres, formulaire, boutons */
  --dark-soft: #12200b;     /* fond des champs de formulaire */
  --ink: #153407;           /* texte courant */
  --ink-strong: #07130d;
  --accent: #a7fc80;        /* vert clair : accent principal */
  --accent-bright: #5df915; /* vert vif : pastilles numérotées */
  --accent-pale: #ceffb8;   /* vert pâle : cercles décoratifs */
  --accent-mint: #c0ecb9;
  --surface: #ffffff;
  --surface-muted: #f5f5f5; /* fond des cartes */
  --border: #ebebeb;
  --border-soft: rgba(127, 120, 120, 0.44);

  /* Typographie */
  --font-display: "Clash Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-heading: "HelveticaNeue Medium", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "HelveticaNeue Roman", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Rythme */
  --shell: 1380px;          /* largeur maximale du contenu */
  --gutter: 40px;
  --radius: 30px;
  --radius-sm: 10px;

  /* Animation */
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

/* --------------------------------------------------------------------------
   3. Réinitialisation et base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--surface);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 10px;
  color: var(--dark);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

p {
  margin: 0 0 1em;
}

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

/* Blocs présents dans le HTML Webflow mais neutralisés par `display:none` dans
   son CSS. Ils sont conservés ici, stylés et prêts à servir : retirer la classe
   `is-hidden` sur l'élément concerné suffit à le réactiver.
   Voir la section 21 pour les styles de chacun. */
.is-hidden {
  display: none !important;
}

/* Cible de saut clavier */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 20px;
  background: var(--dark);
  color: var(--accent);
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   4. Conteneurs
   -------------------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--narrow {
  max-width: 1200px;
}

.shell--prose {
  max-width: 940px;
}

/* --------------------------------------------------------------------------
   5. Boutons
   -------------------------------------------------------------------------- */

/* Bouton principal : libellé qui défile vers le haut au survol.
   La griffe décorative est ancrée sur le conteneur .cta-wrap. */
.cta-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  /* Sans cela, le conteneur est étiré par les parents en flex-direction:column
     et la griffe décorative, ancrée sur sa droite, part très loin du bouton. */
  align-self: flex-start;
}

.closing__inner .cta-wrap,
.notfound .cta-wrap {
  align-self: center;
}

.cta {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.875rem;
  border-radius: 100px;
  background-color: var(--dark);
  color: #f2f8fa;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

.cta:hover {
  background-color: var(--accent);
  color: var(--dark);
}

.cta__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 1.875rem;
  overflow: hidden;
}

.cta__text span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.875rem;
  flex: none;
  transition: transform 0.4s var(--ease);
}

.cta:hover .cta__text span {
  transform: translateY(-1.875rem);
}

/* Griffe manuscrite chevauchant l'extrémité droite du bouton.
   Le SVG fait 87x101 : on garde sa taille naturelle, comme sur le site
   d'origine, sinon la mise à l'échelle en % le rend démesurément haut. */
.cta-wrap__scribble {
  position: absolute;
  z-index: 1;
  top: -15px;
  left: 72%;
  width: 87px;
  pointer-events: none;
  transform: scaleY(0.7) rotate(-13deg);
}

/* Bouton secondaire (articles du blog) */
.btn-ghost {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 22px;
  border-radius: 100px;
  background-color: var(--accent);
  color: #000;
  font-size: 20px;
  font-weight: 500;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn-ghost:hover {
  background-color: var(--accent-bright);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   6. Bandeau supérieur
   -------------------------------------------------------------------------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 24px;
  background-color: var(--dark);
  color: #fff;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
}

.topbar__tag {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 4px 12px;
  border-radius: 32px;
  background-color: var(--accent);
  color: #131313;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.topbar__link {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.25s var(--ease);
}

.topbar__link:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   7. En-tête de la page d'accueil
   -------------------------------------------------------------------------- */

.masthead {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 20px 30px 30px;
}

.masthead__logo img {
  width: 178px;
  max-width: 178px;
  height: auto;
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  background-color: var(--surface);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 0;
  display: flex;
  align-items: center;
  height: 100%;
  pointer-events: none;
}

.hero__bg img {
  width: 700px;
  max-width: 46vw;
  object-fit: contain;
}

.hero__shell {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-bottom: 40px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-inline: 30px;
}

.hero__copy {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 1100px;
}

.hero__title {
  max-width: 775px;
  margin: 0;
  color: var(--dark);
  font-size: 64px;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -4px;
  text-align: left;
  text-transform: none;
}

/* Surlignage manuscrit derrière un mot */
.marker {
  background-image: url("../img/64c370d44e1c7df81c8ee1f5_asset-17-1.svg");
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: contain;
  padding-inline: 10px;
}

.hero__sub {
  width: 90%;
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.2;
}

.hero__sub strong {
  font-weight: 500;
}

.hero__visual {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__visual img {
  width: 50%;
  min-width: 240px;
}

/* --------------------------------------------------------------------------
   9. Section « valeur » : titre + cartes numérotées
   -------------------------------------------------------------------------- */

.value {
  position: relative;
  padding-bottom: 60px;
  background-color: var(--surface);
}

.value__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 60px;
  padding-block: 8em 3em;
}

.value__head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  width: 70%;
  margin-inline: auto;
  text-align: center;
}

.value__title-wrap {
  position: relative;
}

.value__title {
  margin: 0;
  color: var(--dark);
  font-size: 64px;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -4px;
}

.value__lede {
  width: 100%;
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
}

/* Trait manuscrit sous le titre de section.
   Pas de z-index négatif ici : l'élément passerait derrière le fond blanc de
   la section et deviendrait invisible. */
.value__underline {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 46%;
  margin-top: -14px;
  transform: translateX(-50%) scaleX(1.2);
  pointer-events: none;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 20px;
  width: 100%;
  margin-top: 90px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-height: 400px;
  padding: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--surface-muted);
  color: #000;
  overflow: hidden;
}

.card__num {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-width: 48px;
  height: 48px;
  border-radius: 120px;
  background-color: var(--accent-bright);
  color: #161900;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
}

.card__title {
  position: relative;
  z-index: 2;
  margin: 24px 0 5px;
  color: var(--dark);
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.05;
}

/* Conteneur de la description : replié au repos, déplié au survol.
   Voir la règle `@media (hover: hover)` juste en dessous. */
.card__desc {
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.card__text {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1.35;
}

/* Sur le site Webflow, la description ne se dépliait qu'au survol de la carte,
   en même temps que les cercles verts remontaient — mais uniquement sur les
   écrans qui savent survoler : au doigt, le texte restait affiché.
   D'où le repli conditionné à `hover: hover` : sur mobile et tablette rien ne
   change, le texte est visible d'emblée. */
@media (hover: hover) and (pointer: fine) {
  .card__desc {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.6s var(--ease);
  }

  /* `min-height: 0` est indispensable : sans lui l'enfant impose sa hauteur
     de contenu et la ligne ne peut pas se replier à 0fr. */
  .card__desc > div {
    min-height: 0;
  }

  .card:hover .card__desc,
  .card:focus-within .card__desc {
    grid-template-rows: 1fr;
  }
}

/* Cercles qui remontent depuis le bas de la carte au survol */
.card__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-radius: var(--radius-sm);
  pointer-events: none;
  overflow: hidden;
}

.card__glow span {
  position: absolute;
  bottom: -300px;
  width: 300px;
  height: 300px;
  border-radius: 150px;
  transition: transform 0.7s var(--ease);
}

.card__glow span:first-child {
  z-index: 1;
  background-color: var(--accent);
}

.card__glow span:last-child {
  z-index: 0;
  background-color: var(--accent-pale);
}

.card:hover .card__glow span:first-child {
  transform: translateY(-150px);
}

.card:hover .card__glow span:last-child {
  transform: translateY(-230px);
}

/* --------------------------------------------------------------------------
   10. Sections alternées texte / image
   -------------------------------------------------------------------------- */

.split {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding-block: 0;
  background-color: var(--surface);
  overflow: hidden;
}

.split__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}

.split__copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.split__title {
  position: relative;
  margin: 0;
  color: var(--dark);
  font-size: 70px;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -5px;
}

.split__text {
  width: 100%;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.45;
}

.split__text strong,
.split__title strong {
  font-weight: 500;
}

.split__media {
  position: relative;
  border-radius: var(--radius);
}

.split__media img {
  position: relative;
  z-index: 2;
  width: 100%;
  border-radius: var(--radius);
}

/* Pastille ronde derrière un pourcentage */
.badge-round {
  background-image: url("../img/64c3705a8e3559214fe33945_asset_round.svg");
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 10px;
}

/* Trait manuscrit sous un fragment de titre */
.title-underline {
  position: relative;
  display: inline-block;
}

.title-underline__mark {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  margin-top: -8px;
  transform: scaleY(0.35);
  transform-origin: top center;
  pointer-events: none;
}

/* Étoile posée au-dessus d'un titre */
.title-star {
  position: relative;
}

.title-star__mark {
  position: absolute;
  top: -46px;
  left: -34px;
  width: 64px;
  pointer-events: none;
}

/* Liste à puces « bénéfices commerçant » */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
}

.checklist img {
  width: 15px;
  flex: none;
  transform: scaleY(0.6);
}

/* --------------------------------------------------------------------------
   11. Formulaire de contact
   -------------------------------------------------------------------------- */

.contact {
  padding-block: 100px;
  background-color: var(--surface);
  overflow: hidden;
}

.contact__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 90%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 70px 70px 70px 80px;
  border-radius: 16px;
  background-color: var(--dark);
  overflow: hidden;
}

.contact__intro {
  width: 40%;
  max-width: 360px;
}

.contact__title {
  margin: 0 0 24px;
  color: #fff;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.contact__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.56;
}

.contact__form {
  width: 50%;
}

.field {
  width: 100%;
  height: 60px;
  margin-bottom: 10px;
  padding: 16px 22px;
  border: 0.2px solid rgba(112, 112, 108, 0.3);
  border-radius: 8px;
  background-color: var(--dark-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.56;
  transition: border-color 0.25s var(--ease);
}

.field::placeholder {
  color: rgba(167, 252, 128, 0.75);
}

.field:hover,
.field:focus {
  border-color: var(--accent);
  outline: none;
}

textarea.field {
  height: auto;
  min-height: 120px;
  margin-bottom: 32px;
  resize: vertical;
}

select.field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a7fc80' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  padding-right: 48px;
}

.form-submit {
  width: 100%;
  padding-block: 15px;
  border: 0;
  border-radius: 9px;
  background-color: var(--dark-soft);
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.56;
  transition: all 0.325s var(--ease);
}

.form-submit:hover {
  background-color: var(--accent);
  color: var(--dark);
}

.form-note {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.4;
}

.form-note[data-state="ok"] {
  color: var(--accent);
}

.form-note[data-state="error"] {
  color: #ff9c8a;
}

.form-note:empty {
  margin-top: 0;
}

/* Pot de miel du formulaire : présent dans le DOM pour les robots, jamais à
   l'écran ni dans le parcours clavier (tabindex=-1 sur le champ). */
.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   12. Bloc de clôture
   -------------------------------------------------------------------------- */

.closing {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  background-color: var(--surface);
  overflow: hidden;
}

.closing__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: var(--shell);
  padding-block: 5rem;
  text-align: center;
}

.closing__sun {
  position: absolute;
  top: 4%;
  left: -6%;
  z-index: 5;
  width: 120px;
  pointer-events: none;
}

.closing__title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--dark);
  font-size: 80px;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -5px;
}

.closing__text {
  width: 80%;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.45;
}

.closing__text strong {
  font-weight: 600;
}

.closing__mail {
  margin-top: 16px;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -1px;
}

.closing__mail a {
  color: rgba(21, 52, 7, 0.75);
  transition: color 0.25s var(--ease);
}

.closing__mail a:hover {
  color: var(--dark);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   13. Pied de page
   -------------------------------------------------------------------------- */

.footer {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 5em;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 0 var(--gutter) 40px;
}

.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background-color: var(--ink);
  color: #fff;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.social-link:hover {
  background-color: var(--accent);
  color: #000;
}

.footer__logo img {
  width: 191px;
}

.footer__bottom {
  width: 100%;
}

.footer__divider {
  width: 100%;
  height: 1px;
  margin-bottom: 40px;
  background-color: rgba(53, 53, 53, 0.1);
}

.footer__copyright {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  text-align: center;
  letter-spacing: 0;
}

.footer__copyright a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   14. En-tête du blog
   -------------------------------------------------------------------------- */

.blognav {
  position: relative;
  z-index: 20;
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding: 20px var(--gutter);
}

.blognav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.blognav__logo img {
  width: 223px;
}

.blognav__menu {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blognav__link {
  padding: 5px 10px;
  color: #1a1b1f;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.25px;
  line-height: 20px;
  transition: color 0.25s var(--ease);
}

.blognav__link:hover,
.blognav__link[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.blognav__divider {
  width: 1px;
  height: 22px;
  margin-inline: 15px;
  background-color: #e4ebf3;
}

.blognav__cta {
  padding: 12px 25px;
  border-radius: 100px;
  background-color: var(--dark);
  color: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  line-height: 20px;
  text-transform: uppercase;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.blognav__cta:hover {
  background-color: var(--accent);
  color: var(--dark);
}

/* Bouton hamburger — visible sous 991px uniquement */
.blognav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.blognav__toggle span {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background-color: #1a1b1f;
  transition: background-color 0.2s var(--ease);
}

.blognav__toggle span::before,
.blognav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background-color: #1a1b1f;
  transition: transform 0.25s var(--ease);
}

.blognav__toggle span::before {
  top: -7px;
}

.blognav__toggle span::after {
  top: 7px;
}

.blognav__toggle[aria-expanded="true"] span {
  background-color: transparent;
}

.blognav__toggle[aria-expanded="true"] span::before {
  transform: translateY(7px) rotate(45deg);
}

.blognav__toggle[aria-expanded="true"] span::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   15. Blog — index
   -------------------------------------------------------------------------- */

.blog-intro {
  padding: 40px var(--gutter) 0;
}

.blog-intro__inner {
  max-width: 1140px;
  margin-inline: auto;
}

.blog-intro__title {
  margin: 0 0 10px;
  font-size: 70px;
  font-weight: 500;
  letter-spacing: -4px;
}

.blog-intro__subtitle {
  margin: 0 0 24px;
  color: var(--ink);
  font-size: 35px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -1.5px;
}

.blog-intro__text {
  padding: 20px;
  border: 1px solid #c6c4c4;
  color: #282424;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.5;
}

.blog-list {
  padding: 60px var(--gutter);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin-inline: auto;
}

.post-card {
  display: flex;
  flex-direction: column;
  padding: 15px 10px 10px;
  border: 1px solid var(--border-soft);
  background-color: var(--surface);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(11, 27, 4, 0.1);
}

.post-card__media img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.post-card__title {
  margin: 16px 0 8px;
  padding-inline: 10px;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -1px;
}

.post-card__title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-card__excerpt {
  flex: 1;
  margin: 0 0 8px;
  padding-inline: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.45;
}

.post-card__cta {
  align-self: flex-start;
  margin-inline: 10px;
}

/* --------------------------------------------------------------------------
   16. Blog — article
   -------------------------------------------------------------------------- */

.article-head {
  padding: 20px var(--gutter) 40px;
}

.article-head__inner {
  max-width: 940px;
  margin-inline: auto;
}

.breadcrumb {
  margin-bottom: 24px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
}

.breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb span {
  opacity: 0.5;
  padding-inline: 6px;
}

.article-head__title {
  margin: 0 0 16px;
  font-size: 56px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -2.5px;
}

.article-head__lede {
  margin: 0;
  color: #585151;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.5;
}

.article-hero {
  max-width: 940px;
  margin: 0 auto 40px;
  padding-inline: var(--gutter);
}

.article-hero img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.article-body {
  max-width: 900px;
  margin-inline: auto;
  padding: 0 var(--gutter) 60px;
  color: #100f0f;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.65;
}

.article-body h2 {
  margin: 48px 0 16px;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -1.5px;
}

.article-body h3 {
  margin: 40px 0 14px;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -1px;
}

.article-body h2:first-child,
.article-body h3:first-child {
  margin-top: 0;
}

.article-body p {
  margin: 0 0 1.2em;
}

/* Webflow exporte des paragraphes ne contenant qu'un caractère invisible
   (U+200C) comme espaceur : on les neutralise. */
.article-body p:empty {
  display: none;
}

.article-body strong {
  font-weight: 600;
  color: var(--dark);
}

.article-body ol,
.article-body ul {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}

.article-body li {
  margin-bottom: 0.6em;
}

.article-body a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Les articles sont rédigés en Markdown : ces balises ne servent nulle part
   aujourd'hui, mais un auteur peut les produire dès demain sans rien toucher
   ici. Voir le convertisseur dans inc/markdown.php. */

.article-body h4 {
  margin: 32px 0 12px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.article-body em {
  font-style: italic;
}

.article-body blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--accent-bright);
  color: var(--ink);
  font-style: italic;
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

.article-body code {
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85em;
}

.article-body pre {
  overflow-x: auto;
  margin: 0 0 1.2em;
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  background: var(--dark);
  color: var(--surface);
}

.article-body pre code {
  padding: 0;
  background: none;
  color: inherit;
}

.article-body hr {
  height: 1px;
  margin: 48px 0;
  border: 0;
  background: var(--border);
}

.article-body img {
  max-width: 100%;
  height: auto;
  margin: 32px 0;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   17. Bandeau promotionnel réutilisé (blog + articles)
   -------------------------------------------------------------------------- */

.promo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 16px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 30px;
}

.promo__copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.promo__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo__visual img {
  width: 60%;
  min-width: 220px;
}

/* --------------------------------------------------------------------------
   18. Page 404
   -------------------------------------------------------------------------- */

.notfound {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 60vh;
  padding: 80px var(--gutter);
  text-align: center;
}

.notfound__code {
  margin: 0;
  font-size: 96px;
  font-weight: 500;
  letter-spacing: -5px;
}

/* --------------------------------------------------------------------------
   19. Animations d'apparition
   -------------------------------------------------------------------------- */

/* Révélation au défilement — l'état initial n'est appliqué que si JS est
   actif, pour ne rien masquer en cas d'échec du script. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Apparition mot à mot des grands titres */
.js [data-letters] .word {
  display: inline-block;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(0.35em);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: calc(var(--i) * 38ms);
}

.js [data-letters].is-visible .word {
  opacity: 1;
  transform: none;
}

/* Les fonds décoratifs (surlignage, pastille) vivent sur le span parent :
   sans cela ils resteraient visibles alors que leur texte est encore masqué. */
.js [data-letters] .marker,
.js [data-letters] .badge-round {
  opacity: 0;
  transition: opacity 0.55s var(--ease) 0.25s;
}

.js [data-letters].is-visible .marker,
.js [data-letters].is-visible .badge-round {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal],
  .js [data-letters] .word {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   20. Points de rupture
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
  :root {
    --gutter: 24px;
  }

  .hero {
    min-height: 0;
  }

  .hero__bg {
    display: none;
  }

  .hero__shell {
    padding-block: 20px 60px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .hero__copy {
    align-items: center;
  }

  .hero__copy .cta-wrap,
  .split__copy .cta-wrap,
  .promo__copy .cta-wrap {
    align-self: center;
  }

  .hero__title,
  .hero__sub {
    text-align: center;
  }

  .hero__visual img {
    width: 70%;
  }

  .value__inner {
    padding-top: 4em;
  }

  .value__head {
    width: auto;
  }

  .cards {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  .card {
    min-height: 0;
  }

  .split {
    min-height: 0;
    padding-block: 40px;
  }

  .split__grid {
    grid-template-columns: 1fr;
  }

  /* L'image repasse toujours sous le texte en pile mobile */
  .split__media {
    order: 2;
  }

  .split__copy {
    order: 1;
    align-items: center;
    text-align: center;
  }

  .split__title,
  .split__text {
    text-align: center;
  }

  .split__title {
    font-size: 49px;
    letter-spacing: -3px;
  }

  .checklist {
    align-items: center;
  }

  .title-star__mark {
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
  }

  .contact__card {
    flex-direction: column;
    padding: 70px 40px;
  }

  .contact__intro,
  .contact__form {
    width: 100%;
    max-width: 500px;
    text-align: center;
  }

  .contact__form {
    text-align: left;
  }

  .closing__title {
    font-size: 64px;
    letter-spacing: -4px;
  }

  .blog-intro__title {
    font-size: 52px;
  }

  .blog-intro__subtitle {
    font-size: 28px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .article-head__title {
    font-size: 40px;
    letter-spacing: -1.5px;
  }

  .promo {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .promo__copy {
    align-items: center;
  }

  /* Menu du blog en panneau déroulant */
  .blognav__toggle {
    display: flex;
  }

  .blognav__menu {
    position: absolute;
    top: calc(100% - 10px);
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 20px;
    border-radius: 20px;
    background-color: #fff;
    box-shadow: 0 8px 50px rgba(0, 0, 0, 0.12);
  }

  .blognav__menu[hidden] {
    display: none;
  }

  .blognav__link {
    display: block;
    padding-block: 10px;
  }

  .blognav__divider {
    width: 100%;
    height: 1px;
    margin: 10px 0;
  }

  .blognav__cta {
    display: block;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .hero__title {
    max-width: none;
  }

  .closing__sun {
    display: none;
  }

  .split__title {
    font-size: 44px;
  }

  .closing__title {
    font-size: 45px;
    letter-spacing: -3px;
  }

  .closing__text {
    width: auto;
  }

  .contact__title {
    font-size: 28px;
    letter-spacing: -1px;
  }

  .contact__card {
    width: 90%;
  }

  .footer {
    gap: 3em;
  }

  .footer__copyright {
    font-size: 14px;
  }

  .closing__mail {
    font-size: 16px;
  }

  .blog-intro__title {
    font-size: 40px;
    letter-spacing: -2px;
  }

  .article-head__title {
    font-size: 34px;
  }

  .article-body {
    font-size: 18px;
  }

  .article-body h2 {
    font-size: 30px;
  }

  .article-body h3 {
    font-size: 24px;
  }
}

@media (max-width: 479px) {
  :root {
    --gutter: 20px;
  }

  .masthead {
    padding: 16px 20px 20px;
  }

  /* Le CTA de la barre supérieure disparaît, celui du hero le remplace */
  .masthead .cta-wrap {
    display: none;
  }

  .hero__title {
    font-size: 49px;
    letter-spacing: -3px;
  }

  .hero__sub {
    width: 100%;
    font-size: 20px;
  }

  .value__title {
    font-size: 49px;
    letter-spacing: -3px;
  }

  .value__lede {
    font-size: 19px;
  }

  .value__underline {
    display: none;
  }

  .value__inner {
    margin-bottom: 0;
    padding-block: 3em 1em;
  }

  .card {
    padding: 24px;
  }

  .card__title {
    font-size: 24px;
  }

  .card__text {
    font-size: 19px;
  }

  .card__glow {
    display: none;
  }

  .split__title {
    font-size: 41px;
    letter-spacing: -2px;
  }

  .split__text {
    font-size: 19px;
  }

  .checklist li {
    font-size: 16px;
  }

  .title-underline__mark {
    display: none;
  }

  .contact {
    padding-block: 60px;
  }

  .contact__card {
    padding: 60px 20px;
  }

  .contact__title {
    font-size: 32px;
  }

  .contact__text {
    font-size: 16px;
  }

  .field {
    font-size: 16px;
    padding-inline: 14px;
  }

  .closing__title {
    font-size: 38px;
    letter-spacing: -2px;
  }

  .closing__text {
    font-size: 19px;
  }

  .footer {
    gap: 2em;
  }

  .cta-wrap__scribble {
    display: none;
  }

  .blog-intro__title {
    font-size: 34px;
  }

  .blog-intro__subtitle {
    font-size: 22px;
  }

  .blog-intro__text {
    font-size: 17px;
  }

  .post-card__title {
    font-size: 24px;
  }

  .article-head__title {
    font-size: 28px;
    letter-spacing: -1px;
  }

  .notfound__code {
    font-size: 64px;
  }
}

/* --------------------------------------------------------------------------
   21. Blocs masqués repris de Webflow
   --------------------------------------------------------------------------
   Chacun porte la classe `is-hidden` dans le HTML, exactement comme le CSS
   Webflow les neutralisait. Les styles ci-dessous sont complets : retirer
   `is-hidden` sur l'élément suffit à obtenir un rendu fini, sans autre
   modification.
   -------------------------------------------------------------------------- */

/* --- Menu principal de la page d'accueil ---------------------------------- */

.masthead__nav {
  display: flex;
  align-items: center;
}

.masthead__menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.masthead__link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 100px;
  color: var(--dark);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.25s var(--ease);
}

.masthead__link:hover {
  background-color: var(--surface-muted);
}

/* Sous-menu « Resources » */
.nav-dropdown {
  position: relative;
}

.nav-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 0;
  border-radius: 100px;
  background: transparent;
  color: var(--dark);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.25s var(--ease);
}

.nav-dropdown__toggle:hover {
  background-color: var(--surface-muted);
}

.nav-dropdown__toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.25s var(--ease);
}

.nav-dropdown__toggle[aria-expanded="true"]::after {
  transform: translateY(1px) rotate(-135deg);
}

.nav-dropdown__list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  min-width: 210px;
  margin: 0;
  padding: 10px;
  border-radius: 14px;
  background-color: #fff;
  box-shadow: 0 12px 40px rgba(11, 27, 4, 0.14);
}

.nav-dropdown__list[hidden] {
  display: none;
}

.nav-dropdown__list a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--dark);
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.25s var(--ease);
}

.nav-dropdown__list a:hover {
  background-color: var(--surface-muted);
}

/* --- Lien « Learn more » des cartes numérotées ---------------------------- */

.card__more {
  position: relative;
  z-index: 2;
  margin-top: 14px;
  color: var(--dark);
  font-size: 18px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Liens légaux du pied de page ---------------------------------------- */

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.footer__legal a {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  transition: color 0.25s var(--ease);
}

.footer__legal a:hover {
  color: var(--dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 991px) {
  /* Une fois réactivé, le menu passe sous le logo plutôt que de comprimer le
     bandeau. Pour un vrai menu burger, reprendre le motif de .blognav.
     `flex-wrap` seul suffit : tant que le menu est masqué, logo et bouton
     tiennent sur une ligne et gardent leur alignement d'origine. */
  .masthead {
    flex-wrap: wrap;
  }

  .masthead__nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }
}
