/* Poids Plume, page de vente.
   Fond clair pour la lecture, bandeaux sombres pour les captures :
   l'interface du logiciel est sombre, elle doit s'y poser sans rupture. */

:root {
  --encre: #101418;
  --encre-2: #171c22;
  --encre-3: #29313a;

  --papier: #ffffff;
  --papier-2: #f5f7f9;
  --papier-3: #eaeef2;
  --trait: #dde3e9;

  --texte: #1b2229;
  --texte-2: #55606c;
  --texte-3: #8b95a1;

  --vert: #2dd4a7;
  --vert-fonce: #0a7d63;
  --vert-pale: #e6faf4;
  --alerte: #b4531f;
  --alerte-pale: #fdf1e7;

  --largeur: 1120px;
  --rayon: 10px;
  --ombre: 0 1px 2px rgba(16, 20, 24, .06), 0 8px 24px rgba(16, 20, 24, .07);
  --ombre-forte: 0 2px 4px rgba(16, 20, 24, .1), 0 24px 60px rgba(16, 20, 24, .22);
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--texte);
  font: 17px/1.65 "Inter", system-ui, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--vert-fonce); text-decoration-thickness: 1px; text-underline-offset: 2px; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.022em; line-height: 1.14; }
h1 { font-size: clamp(34px, 5.2vw, 58px); }
h2 { font-size: clamp(27px, 3.6vw, 40px); }
h3 { font-size: clamp(21px, 2.2vw, 27px); letter-spacing: -0.018em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.enveloppe { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 24px; }
.etroit { max-width: 760px; }

.chiffre { font-variant-numeric: tabular-nums; }

/* ---------- barre du haut ---------- */

.barre {
  /* Sticky est un positionnement : la barre sert donc de repère au panneau
     déroulant du menu mobile, positionné en absolu juste en dessous. */
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--trait);
}
.barre .enveloppe { display: flex; align-items: center; gap: 24px; height: 64px; }
.marque { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; font-size: 18px; color: var(--texte); text-decoration: none; }
.marque .plume { width: 26px; height: 26px; flex: none; }
.barre nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.barre nav a { color: var(--texte-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.barre nav a:hover { color: var(--texte); }

/* Le bouton d'achat n'est pas un lien de menu : il garde sa propre couleur.
   Sans ces deux lignes, la règle .barre nav a l'emporterait par spécificité
   et le libellé passerait au gris, puis au noir sur fond noir au survol. */
.barre .achat-barre,
.barre .achat-barre:hover,
.barre .achat-barre:focus,
.barre .achat-barre:visited { color: #fff; }

/* ---------- bouton menu, mobile ---------- */

.menu-bouton {
  display: none; margin-left: 4px; width: 42px; height: 42px; flex: none;
  background: none; border: 1px solid var(--trait); border-radius: 8px;
  cursor: pointer; padding: 0; position: relative;
}
.menu-bouton:hover { border-color: #b9c3cd; }
/* Trois barres dessinées avec un seul élément et ses deux pseudo-éléments. */
.menu-bouton span,
.menu-bouton span::before,
.menu-bouton span::after {
  position: absolute; left: 50%; width: 20px; height: 2px; border-radius: 2px;
  background: var(--texte); transition: transform .18s ease, opacity .12s ease;
}
.menu-bouton span { top: 50%; transform: translate(-50%, -50%); }
.menu-bouton span::before, .menu-bouton span::after { content: ""; left: 0; }
.menu-bouton span::before { transform: translateY(-6px); }
.menu-bouton span::after { transform: translateY(6px); }
/* Ouvert : les barres deviennent une croix. */
.menu-bouton[aria-expanded="true"] span { background: transparent; }
.menu-bouton[aria-expanded="true"] span::before { transform: rotate(45deg); }
.menu-bouton[aria-expanded="true"] span::after { transform: rotate(-45deg); }

@media (max-width: 860px) {
  /* Les quatre liens ne tiennent pas sur une ligne à cette largeur, et une
     deuxième rangée mangerait un huitième de la hauteur d'écran en
     permanence. Ils passent donc derrière le bouton menu. Le bouton d'achat,
     lui, reste toujours visible. */
  .menu-bouton { display: block; }
  .barre .achat-barre { margin-left: auto; }

  .barre nav {
    position: absolute; top: 100%; left: 0; right: 0;
    margin: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--papier); border-bottom: 1px solid var(--trait);
    box-shadow: 0 12px 24px rgba(16, 20, 24, .1);
    padding: 6px 0;
    display: none;
  }
  .barre nav[data-ouvert="oui"] { display: flex; }
  .barre nav a {
    padding: 14px 24px; font-size: 16px; border-top: 1px solid var(--papier-3);
  }
  .barre nav a:first-child { border-top: 0; }
  .barre nav a:active { background: var(--papier-2); }
}
@media (max-width: 380px) {
  .marque { font-size: 16px; }
  .barre .enveloppe { gap: 12px; }
}

/* ---------- boutons ---------- */

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px; border-radius: 8px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 16px; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, background-color .12s ease, box-shadow .12s ease;
}
.bouton:active { transform: translateY(1px); }
.bouton-vert { background: var(--vert); color: #06251e; box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 6px 18px rgba(45, 212, 167, .35); }
.bouton-vert:hover { background: #25c39a; }
.bouton-encre { background: var(--encre); color: #fff; }
.bouton-encre:hover { background: #1d242c; }
.bouton-clair { background: transparent; color: #dfe6ee; border-color: #3a444f; }
.bouton-clair:hover { background: rgba(255,255,255,.06); }
.bouton-contour { background: var(--papier); color: var(--texte); border-color: var(--trait); }
.bouton-contour:hover { border-color: #b9c3cd; }
.bouton-petit { padding: 10px 16px; font-size: 15px; }

/* ---------- bandeau d'ouverture ---------- */

.heros { background: var(--encre); color: #e6eaef; padding: 84px 0 0; overflow: hidden; }
.heros .enveloppe { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 940px) { .heros .enveloppe { grid-template-columns: 1fr; gap: 36px; } .heros { padding-top: 56px; } }

.etiquette {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(45, 212, 167, .12); border: 1px solid rgba(45, 212, 167, .3);
  color: var(--vert); font-size: 13px; font-weight: 600; letter-spacing: .01em;
  margin-bottom: 22px;
}
.heros h1 { color: #fff; margin-bottom: 20px; }
.heros h1 em { font-style: normal; color: var(--vert); }
.heros .accroche { font-size: 19px; color: #b3bec9; max-width: 34em; margin-bottom: 28px; }
.heros .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.heros .petit { font-size: 14px; color: #7f8b98; }
.heros .petit b { color: #b3bec9; font-weight: 600; }

.preuve-heros {
  margin: 30px 0 0; padding: 18px 20px; border-radius: var(--rayon);
  background: var(--encre-2); border: 1px solid var(--encre-3);
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.preuve-heros .avant { font-size: 22px; font-weight: 700; color: #8792a0; text-decoration: line-through; text-decoration-color: #4a545f; }
.preuve-heros .fleche { color: #5d6874; }
.preuve-heros .apres { font-size: 30px; font-weight: 800; color: var(--vert); letter-spacing: -0.03em; }
.preuve-heros .detail { font-size: 14px; color: #8792a0; margin-left: auto; text-align: right; }

.visuel-heros { position: relative; }
.visuel-heros .capture { box-shadow: var(--ombre-forte); border-color: var(--encre-3); }

/* ---------- bandeau de réassurance ---------- */

.reassurance { background: var(--encre-2); border-top: 1px solid var(--encre-3); margin-top: 72px; }
.reassurance .enveloppe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding-top: 20px; padding-bottom: 20px; }
.reassurance div { display: flex; align-items: center; gap: 10px; color: #b3bec9; font-size: 15px; font-weight: 500; }
.reassurance svg { flex: none; color: var(--vert); }
@media (max-width: 860px) { .reassurance .enveloppe { grid-template-columns: 1fr 1fr; gap: 14px; } }
@media (max-width: 520px) { .reassurance .enveloppe { grid-template-columns: 1fr; } }

/* ---------- sections ---------- */

section { padding: 92px 0; }
section.serre { padding: 68px 0; }
.fond-gris { background: var(--papier-2); border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.fond-encre { background: var(--encre); color: #e6eaef; }
.fond-encre h2 { color: #fff; }

.sur-titre { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--vert-fonce); margin-bottom: 14px; }
.fond-encre .sur-titre { color: var(--vert); }
.intro { font-size: 19px; color: var(--texte-2); max-width: 40em; margin-top: 18px; }
.fond-encre .intro { color: #a6b1bd; }

/* ---------- problème ---------- */

.grille-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
@media (max-width: 860px) { .grille-3 { grid-template-columns: 1fr; } }

.carte {
  background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 26px; box-shadow: var(--ombre);
}
.carte h3 { font-size: 20px; margin-bottom: 10px; }
.carte p { color: var(--texte-2); font-size: 16px; }
.carte .symbole { font-family: var(--mono); font-size: 13px; color: var(--alerte); background: var(--alerte-pale); border: 1px solid #f2ddc9; border-radius: 6px; padding: 4px 8px; display: inline-block; margin-bottom: 14px; word-break: break-all; }

/* ---------- chiffres ---------- */

.grille-chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--encre-3); border: 1px solid var(--encre-3); border-radius: var(--rayon); overflow: hidden; margin-top: 46px; }
.grille-chiffres > div { background: var(--encre); padding: 30px 24px; }
.grille-chiffres .valeur { font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -0.035em; color: var(--vert); line-height: 1; margin-bottom: 12px; }
.grille-chiffres .quoi { font-size: 15px; color: #a6b1bd; line-height: 1.45; }
@media (max-width: 860px) { .grille-chiffres { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .grille-chiffres { grid-template-columns: 1fr; } }

.note-mesure { margin-top: 22px; font-size: 14px; color: #7f8b98; }

/* ---------- étapes ---------- */

.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; counter-reset: etape; }
@media (max-width: 860px) { .etapes { grid-template-columns: 1fr; } }
.etape { counter-increment: etape; }
.etape .num {
  width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center;
  background: var(--encre); color: var(--vert); font-weight: 700; font-size: 15px; margin-bottom: 16px;
}
.etape .num::before { content: counter(etape); }
.etape h3 { font-size: 21px; margin-bottom: 8px; }
.etape p { color: var(--texte-2); font-size: 16px; }

/* ---------- fonctions ---------- */

.fonction { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: center; padding: 62px 0; border-top: 1px solid var(--trait); }
.fonction:first-of-type { border-top: 0; padding-top: 10px; }
.fonction.inverse .texte { order: 2; }
@media (max-width: 940px) { .fonction { grid-template-columns: 1fr; gap: 30px; padding: 44px 0; } .fonction.inverse .texte { order: 0; } }

.fonction .sur-titre { margin-bottom: 12px; }
.fonction h3 { margin-bottom: 14px; }
.fonction p { color: var(--texte-2); }
.fonction ul { margin: 18px 0 0; padding: 0; list-style: none; }
.fonction li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--texte-2); font-size: 16px; }
.fonction li::before {
  content: ""; position: absolute; left: 2px; top: 9px; width: 9px; height: 9px;
  border-radius: 2px; background: var(--vert); box-shadow: 0 0 0 3px var(--vert-pale);
}

.capture { border-radius: 8px; border: 1px solid var(--trait); box-shadow: var(--ombre); overflow: hidden; background: var(--encre); }
.capture img { width: 100%; }

/* Les panneaux de réglages sont étroits par nature. Les étirer sur toute la
   colonne les rendrait flous : on les laisse à leur taille, centrés. */
.capture-etroite { max-width: 420px; margin: 0 auto; }
.capture-etroite img { width: 100%; }
.legende { font-size: 13px; color: var(--texte-3); margin-top: 10px; text-align: center; }

pre.code {
  margin: 0; padding: 20px 22px; border-radius: 8px; overflow-x: auto;
  background: var(--encre); border: 1px solid var(--encre-3);
  color: #cdd6e0; font-family: var(--mono); font-size: 13.5px; line-height: 1.6;
  box-shadow: var(--ombre);
}
pre.code .att { color: var(--vert); }
pre.code .bal { color: #7fb0ff; }
pre.code .val { color: #e8c17a; }

/* ---------- pour qui ---------- */

.grille-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 46px; }
@media (max-width: 940px) { .grille-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grille-4 { grid-template-columns: 1fr; } }
.profil { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 24px; }
.profil h3 { font-size: 18px; margin-bottom: 10px; }
.profil p { font-size: 15.5px; color: var(--texte-2); }

/* ---------- usage ---------- */

.usage { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
@media (max-width: 860px) { .usage { grid-template-columns: 1fr; gap: 28px; } }
.sites { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.sites span { padding: 7px 14px; border-radius: 999px; background: var(--encre-2); border: 1px solid var(--encre-3); color: #b3bec9; font-size: 14px; font-family: var(--mono); }

/* ---------- prix ---------- */

.offres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 50px; max-width: 860px; }
@media (max-width: 800px) { .offres { grid-template-columns: 1fr; } }

.offre {
  background: var(--papier); border: 1px solid var(--trait); border-radius: 14px;
  padding: 32px; display: flex; flex-direction: column; box-shadow: var(--ombre);
}
.offre.vedette { border-color: var(--encre); box-shadow: var(--ombre-forte); position: relative; }
.offre .ruban {
  position: absolute; top: -12px; left: 32px; padding: 4px 12px; border-radius: 999px;
  background: var(--vert); color: #06251e; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.offre h3 { font-size: 21px; margin-bottom: 6px; }
.offre .a-qui { color: var(--texte-2); font-size: 15.5px; margin-bottom: 22px; }
.offre .prix { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.offre .prix b { font-size: 46px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.offre .prix span { font-size: 16px; color: var(--texte-2); font-weight: 600; }
.offre .ht { font-size: 14px; color: var(--texte-3); margin-bottom: 24px; }
.offre ul { list-style: none; margin: 0 0 28px; padding: 0; }
.offre li { position: relative; padding-left: 27px; margin-bottom: 11px; font-size: 16px; color: var(--texte-2); }
.offre li::before {
  content: ""; position: absolute; left: 3px; top: 7px; width: 11px; height: 6px;
  border-left: 2px solid var(--vert-fonce); border-bottom: 2px solid var(--vert-fonce);
  transform: rotate(-45deg);
}
.offre .bouton { width: 100%; margin-top: auto; }

.rappel-tva { margin-top: 26px; font-size: 14.5px; color: var(--texte-2); max-width: 60em; }

/* ---------- formulaire d'achat ---------- */

dialog.achat {
  width: min(520px, calc(100vw - 32px)); border: 1px solid var(--trait); border-radius: 14px;
  padding: 0; box-shadow: var(--ombre-forte); color: var(--texte); position: relative;
}
dialog.achat::backdrop { background: rgba(16, 20, 24, .55); }
.achat header { padding: 24px 26px 0; }
.achat header h3 { font-size: 22px; margin-bottom: 6px; }
.achat header p { color: var(--texte-2); font-size: 15px; }
.achat form { padding: 20px 26px 26px; display: grid; gap: 14px; }
.achat label { display: grid; gap: 6px; font-size: 14.5px; font-weight: 600; }
.achat input[type="text"], .achat input[type="email"] {
  font: inherit; font-size: 16px; padding: 11px 13px; border: 1px solid var(--trait);
  border-radius: 8px; background: var(--papier); color: var(--texte);
}
.achat input:focus-visible { outline: 2px solid var(--vert-fonce); outline-offset: 1px; border-color: transparent; }
.achat .case { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-weight: 400; font-size: 14px; color: var(--texte-2); }
.achat .case input { margin-top: 3px; }
.achat .deux { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .achat .deux { grid-template-columns: 1fr; } }
.achat .moyens { display: grid; gap: 10px; margin-top: 4px; }
.achat .sep { display: flex; align-items: center; gap: 12px; color: var(--texte-3); font-size: 13px; }
.achat .sep::before, .achat .sep::after { content: ""; flex: 1; height: 1px; background: var(--trait); }
.achat .erreur { background: #fdecec; border: 1px solid #f4c4c4; color: #98282e; padding: 10px 12px; border-radius: 8px; font-size: 14.5px; }
.achat .fermer { position: absolute; top: 14px; right: 16px; background: none; border: 0; font-size: 24px; line-height: 1; color: var(--texte-3); cursor: pointer; }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; margin-top: 44px; }
.faq details { border-bottom: 1px solid var(--trait); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; font-size: 17.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 17px; font-size: 24px; font-weight: 400;
  color: var(--texte-3); line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--texte-2); font-size: 16.5px; padding-bottom: 20px; max-width: 62em; }

/* ---------- appel final ---------- */

.final { text-align: center; }
.final h2 { max-width: 16em; margin: 0 auto 18px; }
.final .intro { margin: 0 auto 30px; text-align: center; }
.final .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- pied ---------- */

footer { background: var(--encre); color: #8792a0; padding: 54px 0 40px; font-size: 15px; }
footer .enveloppe { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { footer .enveloppe { grid-template-columns: 1fr; gap: 26px; } }
footer h4 { color: #dfe6ee; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
footer a { color: #a6b1bd; text-decoration: none; display: block; margin-bottom: 8px; }
footer a:hover { color: var(--vert); }
footer .bas { border-top: 1px solid var(--encre-3); margin-top: 36px; padding-top: 22px; font-size: 13.5px; color: #6d7885; }

/* ---------- pages annexes ---------- */

.page-texte { max-width: 780px; margin: 0 auto; padding: 56px 24px 80px; }
.page-texte h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 12px; }
.page-texte h2 { font-size: 22px; margin: 40px 0 12px; }
.page-texte p, .page-texte li { color: var(--texte-2); font-size: 16.5px; }
.page-texte ul { padding-left: 22px; }
.page-texte .retour { display: inline-block; margin-bottom: 30px; font-size: 15px; }

.avertissement {
  background: #fff4e5; border: 2px dashed #d98324; color: #7a4408;
  padding: 16px 20px; border-radius: 8px; margin: 24px 0; font-size: 15px;
}
.avertissement b { color: #5d3406; }

/* ---------- page de remerciement ---------- */

.merci { max-width: 680px; margin: 0 auto; padding: 70px 24px 90px; text-align: center; }
.merci .pastille { width: 66px; height: 66px; border-radius: 999px; background: var(--vert-pale); color: var(--vert-fonce); display: grid; place-items: center; margin: 0 auto 26px; }
.merci h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.merci .intro { margin: 0 auto 30px; text-align: center; }
.cle {
  background: var(--encre); border: 1px solid var(--encre-3); border-radius: 10px;
  padding: 20px; margin: 24px 0; text-align: left;
}
.cle .titre { color: var(--vert); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.cle textarea {
  width: 100%; min-height: 110px; resize: vertical; background: #0b0e11; color: #cdd6e0;
  border: 1px solid var(--encre-3); border-radius: 6px; padding: 12px;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.5; word-break: break-all;
}
.attente { color: var(--texte-2); font-size: 16px; }
