/* Easy Biznis — page d'accueil (racine du site) */
@font-face { font-family: "Archivo"; src: url(fonts/archivo-latin.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(fonts/source-sans-3-latin.woff2) format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(fonts/plex-mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(fonts/plex-mono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --encre: #262b38;
  --ardoise: #4a4f61;
  --gris: #6c7183;
  --papier: #f1f2ee;
  --blanc: #fbfbf9;
  --filet: #d3d6cd;
  --vert: #1b6b57;
  --vert-fonce: #14513f;
  --mangue: #e2951f;
  --titre: "Archivo", "Arial Narrow", Arial, sans-serif;
  --texte: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Plex Mono", "Courier New", monospace;
  --page: min(1160px, 100% - 48px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--papier); color: var(--encre); font-family: var(--texte); font-size: 1.125rem; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--titre); font-stretch: 108%; color: var(--encre); margin: 0; }
.wrap { width: var(--page); margin-inline: auto; }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--vert); outline-offset: 3px; }
::selection { background: var(--mangue); color: var(--encre); }

/* En-tête */
.nav { border-bottom: 1px solid var(--filet); background: var(--papier); position: sticky; top: 0; z-index: 10; }
.nav .wrap { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--titre); font-stretch: 112%; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.brand img { width: 38px; height: 38px; }
.nav nav { margin-left: auto; display: flex; align-items: center; gap: 28px; font-size: 1rem; }
.nav nav a { text-decoration: none; color: var(--ardoise); }
.nav nav a:hover { color: var(--encre); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.nav nav a.btn { color: var(--blanc); }
@media (max-width: 780px) { .nav nav a.hide-sm { display: none; } .nav nav { gap: 18px; } .nav .wrap { gap: 16px; } }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--encre); border-radius: 4px; padding: 11px 22px; font: 600 1rem/1.2 var(--texte); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--encre); color: var(--blanc); }
.btn-primary:hover { background: var(--vert); border-color: var(--vert); }
.btn-ghost { background: transparent; color: var(--encre); }
.btn-ghost:hover { background: var(--encre); color: var(--blanc); }
.btn-lg { padding: 15px 28px; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* Accueil */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { font-weight: 800; font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.02; letter-spacing: -.025em; }
.hero h1 span { display: block; }
.hero h1 span + span { color: var(--vert); }
.lead { font-size: clamp(1.15rem, 1.8vw, 1.32rem); color: var(--ardoise); max-width: 31em; margin: 28px 0 0; }
.hero .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin: 34px 0 18px; }
.hero .cta .lien { font-weight: 600; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.hero .assure { font-size: .98rem; color: var(--gris); margin: 0; }

/* La fiche de vente : l'objet que produit le logiciel */
.fiche-zone { display: flex; justify-content: center; filter: drop-shadow(0 18px 22px rgba(38, 43, 56, .14)) drop-shadow(0 2px 3px rgba(38, 43, 56, .12)); }
.fiche { position: relative; width: min(100%, 360px); background: var(--blanc); padding: 26px 26px 38px; font-family: var(--mono); font-size: .86rem; line-height: 1.5; color: var(--encre);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 8px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 8px repeat-x; }
.fiche header { text-align: center; padding-bottom: 14px; border-bottom: 1px dashed var(--gris); }
.fiche .raison { font-family: var(--titre); font-stretch: 112%; font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; }
.fiche header p { margin: 2px 0 0; color: var(--ardoise); font-size: .8rem; }
.fiche table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.fiche td { padding: 3px 0; vertical-align: top; }
.fiche td:nth-child(2) { text-align: center; color: var(--ardoise); padding: 3px 8px; white-space: nowrap; }
.fiche td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fiche .sommes { border-top: 1px dashed var(--gris); padding-top: 10px; }
.fiche .sommes div { display: flex; justify-content: space-between; gap: 12px; color: var(--ardoise); font-variant-numeric: tabular-nums; }
.fiche .sommes .total { margin-top: 8px; color: var(--encre); font-weight: 500; font-size: 1.15rem; }
.fiche .sommes .total b { font-family: var(--titre); font-stretch: 108%; font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; }
.fiche .change { margin: 6px 0 0; text-align: right; font-size: .78rem; color: var(--gris); }
.fiche footer { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--gris); font-size: .76rem; color: var(--gris); text-align: center; }
.fiche .zone-cachet { position: relative; height: 62px; }
.fiche .cachet { position: absolute; left: 4px; top: 12px; padding: 4px 12px 3px; border: 2.5px solid var(--mangue); border-radius: 3px; color: #b86e00; font-family: var(--titre); font-stretch: 112%; font-weight: 800; font-size: 1.25rem; letter-spacing: .06em; transform: rotate(-9deg); background: rgba(251, 251, 249, .6); }
.fiche .cachet small { display: block; font-family: var(--mono); font-weight: 500; font-size: .62rem; letter-spacing: .04em; text-align: center; margin-top: -1px; }

/* Un seul mouvement sur la page : la fiche s'imprime à l'ouverture */
@media (prefers-reduced-motion: no-preference) {
  .fiche { animation: impression 1.6s steps(24, end) .25s both; }
  .fiche .cachet { animation: tampon .22s ease-out 1.95s both; }
}
@keyframes impression { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 -20px 0); } }
@keyframes tampon { from { opacity: 0; transform: rotate(-9deg) scale(1.5); } to { opacity: 1; transform: rotate(-9deg) scale(1); } }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .fiche-zone { justify-content: flex-start; }
}

/* Sections */
section { padding: clamp(56px, 8vw, 104px) 0; }
section + section { border-top: 1px solid var(--filet); }
.entete { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 80px); }
.entete h2 { font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.06; letter-spacing: -.02em; }
.entete > div > p { color: var(--ardoise); margin: 18px 0 0; max-width: 24em; font-size: 1.05rem; }
@media (max-width: 900px) { .entete { grid-template-columns: 1fr; gap: 28px; } }

/* Fonctions : lignes d'un grand livre */
.livre { margin: 0; }
.livre > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 8px 32px; padding: 22px 0; border-top: 1px solid var(--filet); }
.livre > div:first-child { border-top: 1.5px solid var(--encre); }
.livre > div:last-child { border-bottom: 1px solid var(--filet); }
.livre dt { font-family: var(--titre); font-stretch: 106%; font-weight: 700; font-size: 1.12rem; line-height: 1.25; }
.livre dd { margin: 0; color: var(--ardoise); }
@media (max-width: 700px) { .livre > div { grid-template-columns: 1fr; } }

/* Démarrage : une vraie suite d'étapes */
.etapes { list-style: none; margin: 0; padding: 0; counter-reset: e; }
.etapes li { counter-increment: e; display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 0 12px; padding: 20px 0; border-top: 1px solid var(--filet); }
.etapes li:first-child { border-top: 1.5px solid var(--encre); }
.etapes li:last-child { border-bottom: 1px solid var(--filet); }
.etapes li::before { content: counter(e); grid-row: span 2; font-family: var(--titre); font-stretch: 112%; font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--vert); }
.etapes h3 { font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.etapes p { margin: 4px 0 0; color: var(--ardoise); }

/* Tarifs */
.tarifs-tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: 36px; }
.tarifs-tete h2 { font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.06; letter-spacing: -.02em; }
.tarifs-tete p { margin: 14px 0 0; color: var(--ardoise); }
.toggle { display: inline-flex; border: 1.5px solid var(--encre); border-radius: 4px; padding: 3px; gap: 3px; }
.toggle button { border: 0; background: transparent; border-radius: 2px; padding: 8px 18px; font: 600 .98rem/1.2 var(--texte); color: var(--encre); cursor: pointer; }
.toggle button small { font-weight: 400; color: inherit; opacity: .75; }
.toggle button.on { background: var(--encre); color: var(--blanc); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1.5px solid var(--encre); background: var(--blanc); }
.plan { position: relative; padding: 34px 30px 30px; display: flex; flex-direction: column; border-left: 1px solid var(--filet); }
.plan:first-child { border-left: 0; }
.plan.pop { background: #fff; box-shadow: inset 0 5px 0 var(--vert); }
.plan .badge { position: absolute; top: 18px; right: 24px; font: 500 .74rem/1 var(--mono); color: var(--vert); border: 1px solid var(--vert); padding: 4px 8px; border-radius: 2px; }
.plan h3 { font-weight: 800; font-size: 1.35rem; letter-spacing: -.01em; }
.plan .muted { color: var(--ardoise); font-size: 1rem; margin: 6px 0 0; min-height: 3.1em; }
.plan .prix { font-family: var(--titre); font-stretch: 108%; font-weight: 800; font-size: 3rem; line-height: 1; letter-spacing: -.03em; margin: 22px 0 0; font-variant-numeric: tabular-nums; }
.plan .prix small { font: 500 1rem/1 var(--texte); letter-spacing: 0; color: var(--gris); }
.plan ul { list-style: none; margin: 22px 0 28px; padding: 18px 0 0; border-top: 1px dashed var(--filet); flex: 1; }
.plan li { position: relative; padding: 4px 0 4px 20px; font-size: 1.02rem; }
.plan li::before { content: ""; position: absolute; left: 0; top: .9em; width: 8px; height: 8px; background: var(--vert); }
.plan li.no { color: var(--gris); }
.plan li.no::before { background: none; height: 2px; top: 1.05em; width: 8px; background: var(--gris); }
@media (max-width: 880px) {
  .plans { grid-template-columns: 1fr; }
  .plan { border-left: 0; border-top: 1px solid var(--filet); }
  .plan:first-child { border-top: 0; }
  .plan .muted { min-height: 0; }
}

/* Questions */
.faq { margin: 0; }
.faq details { border-top: 1px solid var(--filet); }
.faq details:first-child { border-top: 1.5px solid var(--encre); }
.faq details:last-child { border-bottom: 1px solid var(--filet); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; font-family: var(--titre); font-stretch: 104%; font-weight: 600; font-size: 1.08rem; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--mono); font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--vert); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 22px; max-width: 40em; color: var(--ardoise); }
.contact { margin-top: 22px; font-size: 1rem; color: var(--ardoise); }
.contact a { font-weight: 600; text-underline-offset: 4px; }

/* Appel final */
.final { background: var(--encre); color: var(--blanc); border-top: 0; }
.final .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.final h2 { color: var(--blanc); font-weight: 800; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.04; letter-spacing: -.02em; max-width: 14em; }
.final p { margin: 14px 0 0; color: #c3c7d3; }
.final .btn-primary { background: var(--blanc); color: var(--encre); border-color: var(--blanc); }
.final .btn-primary:hover { background: var(--mangue); border-color: var(--mangue); color: var(--encre); }

footer.pied { padding: 28px 0 36px; font-size: 1rem; color: var(--ardoise); }
footer.pied .wrap { display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: space-between; }
footer.pied a { text-underline-offset: 4px; }

/* Petits écrans : l'en-tête reste sur une ligne */
.brand span, .nav nav a { white-space: nowrap; }
@media (max-width: 480px) {
  :root { --page: min(1160px, 100% - 32px); }
  .nav .wrap { gap: 10px; height: 60px; }
  .brand { gap: 8px; font-size: 1rem; }
  .brand img { width: 30px; height: 30px; }
  .nav nav { gap: 12px; font-size: .95rem; }
  .nav nav a.btn { padding: 9px 14px; }
  .plan { padding: 28px 22px 24px; }
}
