/* Notre caisse : la feuille de style de la maquette (checkout/maquette/index.html, copiée le 2026-11-09, la maquette
   n'est pas modifiée), puis ce que la vraie page ajoute (en bas). */
@font-face { font-family: Lato; font-weight: 400; font-style: normal; font-display: swap; src: url("polices/Lato-Regular.woff2") format("woff2"); }
@font-face { font-family: Lato; font-weight: 600; font-style: normal; font-display: swap; src: url("polices/Lato-Semibold.woff2") format("woff2"); }
@font-face { font-family: Lato; font-weight: 700; font-style: normal; font-display: swap; src: url("polices/Lato-Bold.woff2") format("woff2"); }

:root {
  --vert: #6d7f20;
  --vert-survol: #515e18;
  --vert-fonce: #394211;
  --vert-pale: #f1f3e1;
  --texte: #2b2b2b;
  --gris: #767676;
  --bord: #dedede;
  --fond: #f7f8fb;
  --bleu: #1a85ff;
  --ombre: rgba(176, 176, 176, .2) 0 1px 1px 0, #f0f0f0 0 0 0 1px;
  /* marge intérieure des blocs et écart entre deux blocs : plus serrés sur téléphone */
  --marge: 13.3333px;
  --ecart: 25px;
}
@media (min-width: 768px) {
  :root { --marge: 20px; --ecart: 40px; }
}

*, *::before, *::after { box-sizing: border-box; }
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: Lato, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
h4, h5, h6, p { margin: 0; }
h4, h5, h6 { font-weight: 700; line-height: 1.2; }
h6 { font-size: 1rem; }
img { vertical-align: middle; }
a { color: var(--vert); text-decoration: none; }
a:hover { color: var(--vert-fonce); }

.conteneur { width: 100%; max-width: 989px; margin: 0 auto; padding: 0 15px; }
@media (min-width: 1200px) {
  .conteneur { max-width: 990px; }
}

/* ---------- En-tête ---------- */
.entete { position: relative; z-index: 1; margin-bottom: 30px; padding: 15px 0; background: #fff; }
.entete img { display: block; max-width: 100%; max-height: 55px; margin: 0 auto 8px; }
@media (min-width: 576px) {
  .entete img { margin: 0; }
}

/* ---------- Les deux colonnes ---------- */
.colonnes { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.colonne-formulaire { order: 2; flex: 0 0 100%; max-width: 100%; padding: 0 15px; }
.colonne-resume { order: 1; flex: 0 0 100%; max-width: 100%; padding: 0 15px; }
@media (min-width: 768px) {
  .colonne-formulaire { order: 1; flex: 1 0 0; min-width: 0; }
  .colonne-resume { order: 2; flex: 0 0 41.6667%; max-width: 41.6667%; }
}

/* ---------- Blocs ---------- */
.section { margin-bottom: var(--ecart); }
.bloc { padding: var(--marge) var(--marge) 0; border-radius: 6px; background: #fff; box-shadow: var(--ombre); }
.bloc h6 { margin-bottom: 8px; }

/* ---------- Champs ---------- */
.rangee { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.rangee > * { width: 100%; padding: 0 10px; }
@media (min-width: 576px) {
  .rangee > .moitie-sm { width: 50%; }
}
@media (min-width: 768px) {
  .rangee > .moitie { width: 50%; }
}

.champ { position: relative; margin-bottom: var(--marge); }
.champ.pays { margin-bottom: 1rem; }
.champ input,
.champ select {
  display: block;
  width: 100%;
  margin: 0;
  padding: 1.35rem .75rem .5rem;
  border: 1px solid var(--bord);
  border-radius: 6px;
  background-color: #fff;
  color: var(--texte);
  font: inherit;
  line-height: 1.5;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  -webkit-appearance: none;
  appearance: none;
}
.champ input:focus,
.champ select:focus { border-color: var(--bleu); outline: 0; box-shadow: 0 0 0 1px var(--bleu); }
.champ select {
  padding-right: 1.875rem;
  background: #fff url('data:image/svg+xml,%3Csvg width="16" height="19" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%23C5C5C5" fill-rule="evenodd"%3E%3Cpath d="M0 0h1v19H0zM6 8h10l-5 5z"/%3E%3C/g%3E%3C/svg%3E') no-repeat center right .45rem / 14px 16px;
  text-overflow: ellipsis;
  cursor: pointer;
}
/* l'étiquette : en grand dans le champ vide, en petit au-dessus dès qu'on clique ou qu'on écrit */
.champ label {
  position: absolute;
  z-index: 10;
  top: 5px;
  right: .75rem;
  left: .75rem;
  overflow: hidden;
  color: var(--gris);
  font-size: .7518796992rem;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: text;
  pointer-events: none;
  transition: all .2s;
}
.champ input:placeholder-shown:not(:focus) + label { top: 1rem; font-size: 1rem; }
.champ input::placeholder { color: var(--gris); opacity: 1; transition: all .2s; }
.champ input:placeholder-shown:not(:focus)::placeholder { opacity: 0; }
.champ label.obligatoire::after { content: "*"; margin-left: 3px; color: rgb(255, 132, 132); }
.champ label.facultatif::after { content: "(Facultatif)"; position: relative; top: -.24em; margin-left: .55em; opacity: .8; font-size: .6em; }

/* ---------- Paiement ---------- */
.paiement { padding: var(--marge); border: 1px solid transparent; border-radius: 6px; background: #fff; box-shadow: var(--ombre); }
.paiement-tete { display: flex; align-items: center; min-height: 25.9px; }
.paiement-tete h6 { flex: 1; }
.paiement-logos { display: flex; align-items: center; gap: 4px; }
.paiement-logos img { display: block; width: 30px; height: auto; }
.champ-carte {
  display: flex;
  align-items: center;
  height: 50px;
  margin-top: 15px;
  padding: 0 12px;
  border: 1px solid var(--bord);
  border-radius: 6px;
  background: #fff;
  color: #757575;
  cursor: default;
  user-select: none;
}
.champ-carte svg { flex: none; width: 24px; height: 16px; margin-right: 12px; }
.champ-carte .numero { flex: 1; white-space: nowrap; }
.champ-carte .fin { margin-left: 12px; white-space: nowrap; }
.champ-carte .fin + .fin { margin-left: 22px; }
@media (max-width: 359.98px) {
  .champ-carte .fin { display: none; }
}
.securise { margin-top: 8px; color: var(--gris); font-size: .88rem; text-align: center; }
.securise svg { width: 11.26px; height: 11.26px; margin-right: 1px; transform: translateY(-.02em); fill: #579a0b; }

/* ---------- Titre des order bumps ---------- */
.titre-bumps { font-size: calc(1.275rem + .3vw); }
@media (min-width: 1200px) {
  .titre-bumps { font-size: 1.5rem; }
}

/* ---------- Order bump ---------- */
.bump {
  display: block;
  position: relative;
  overflow: hidden;
  padding: var(--marge);
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--ombre);
  cursor: pointer;
  transition: all .2s ease;
}
.bump:hover { box-shadow: var(--vert-fonce) 0 1px 1px 0, var(--vert-fonce) 0 0 0 1px; }
.bump-image {
  display: block;
  width: calc(100% + 2 * var(--marge));
  max-width: none;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: calc(-1 * var(--marge)) calc(-1 * var(--marge)) var(--marge);
}
.bump-case { display: block; position: relative; width: 108%; min-height: 1.5rem; padding-left: 35px; }
.bump-case input { position: absolute; left: 0; z-index: -1; width: 1rem; height: 1.25rem; opacity: 0; }
.bump-titre {
  display: inline-block;
  position: relative;
  padding: 0 55px 12px 0;
  color: var(--vert);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4em;
  vertical-align: top;
}
.bump-titre::before,
.bump-titre::after { content: ""; display: block; position: absolute; top: .2em; left: -1.75em; width: 1.25rem; height: 1.25rem; }
.bump-titre::before {
  border: 1px solid #959595;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, .8);
  pointer-events: none;
  transition: background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.bump-titre::after { background: 50% / 50% 50% no-repeat; }
.bump-case input:checked + .bump-titre::before { border-color: var(--vert); background-color: var(--vert); }
.bump-case input:checked + .bump-titre::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23ffffff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
}
.bump-case input:focus + .bump-titre::before { box-shadow: 0 0 0 1px var(--fond), 0 0 0 3px var(--bleu); }
.bump-case input:focus:not(:checked) + .bump-titre::before { border-color: var(--bleu); }
.bump-prix { position: absolute; top: 13.3333px; right: 13.3333px; font-size: .88rem; }
.bump-prix span { display: inline-block; padding: .15em .55em; border-radius: 6px; background: var(--vert); color: #fff; font-weight: 700; }
.bump-texte { display: block; margin: 4px 0 -7px; padding-left: calc(2em - 4px); font-size: .88rem; }
.bump-texte .paragraphe { display: block; margin-bottom: 7px; color: var(--texte); font-size: 18px; line-height: 1.4em; }

/* ---------- Fin de commande ---------- */
.total-telephone {
  display: flex;
  align-items: center;
  margin-bottom: var(--ecart);
  padding: 15px var(--marge);
  border-radius: 6px;
  background: var(--vert-pale);
  color: var(--vert);
  box-shadow: var(--ombre);
}
@media (min-width: 576px) {
  .total-telephone { display: none; }
}
.libelle-total { flex: 1; }
.montant { margin-left: 1rem; font-size: calc(1.3rem + .6vw); font-weight: 700; line-height: 1.2; }
@media (min-width: 1200px) {
  .montant { font-size: 1.75rem; }
}
.bouton {
  display: block;
  position: relative;
  top: 0;
  width: 100%;
  padding: 14px 2.2rem;
  border: 0;
  border-radius: 8px;
  background: var(--vert);
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 2px 5px 0 rgba(163, 163, 163, .1);
}
.bouton:hover { top: -2px; background: var(--vert-survol); box-shadow: 0 4px 10px 1px rgba(57, 57, 57, .1); }
.bouton svg { width: 10.5px; height: 12px; margin-left: 2px; fill: currentColor; }
/* La ligne de la caisse de secours, lien compris (souligné), dans la couleur du titre « Ta commande (total …) : » (Jeff, 9 nov.
   vers 20h ; avant : en gris, le lien en vert). */
.secours, .secours a { color: var(--texte); }

/* ---------- Résumé de la commande ---------- */
.resume { display: flex; flex-wrap: wrap; margin-bottom: var(--ecart); border-radius: 6px; box-shadow: var(--ombre); }
.resume-image { flex: 0 0 100%; max-width: 100%; }
.resume-image img { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 6px 6px 0 0; }
.resume-contenu { flex: 0 0 100%; max-width: 100%; }
.resume-texte { padding: var(--marge); background: #fff; }
.resume-texte h5 { margin-bottom: 8px; font-size: 1.125rem; }
.resume-texte p { color: #474747; }
.resume-total { display: flex; align-items: center; padding: 15px var(--marge); border-radius: 0 0 6px 6px; background: var(--vert-pale); color: var(--vert); }
@media (min-width: 576px) and (max-width: 767.98px) {
  .resume-image { flex: 0 0 33.3333%; max-width: 33.3333%; padding-right: 1rem; }
  .resume-image img { border-radius: 6px; }
  .resume-contenu { flex: 1 0 0; min-width: 0; }
}

/* ---------- Pied de page ---------- */
.pied { margin-top: 48px; margin-bottom: 24px; color: var(--gris); font-size: .88rem; text-align: center; }
.pied .pied-prix { max-width: 540px; margin: 8px auto 0; font-size: .75rem; line-height: 1.5; opacity: .75; }
.pied .pied-prix + .pied-prix { margin-top: 2px; }

/* ---------- Ajouts de la vraie page (2026-11-09) ---------- */

/* le champ de carte de Stripe (Payment Element) prend la place du dessin */
.champ-stripe { margin-top: 15px; min-height: 50px; }

/* Te revoilà : seulement si la personne a coché « Se souvenir de moi » à un achat précédent */
.revoila { display: flex; align-items: center; gap: 12px; margin-bottom: var(--marge); padding: 12px var(--marge);
  border-radius: 6px; background: var(--vert-pale); color: var(--vert-fonce); }
.revoila[hidden] { display: none; }
.revoila p { flex: 1; font-weight: 600; }
.revoila button { padding: 4px 10px; border: 1px solid var(--vert); border-radius: 6px; background: #fff; color: var(--vert);
  font: inherit; font-size: .88rem; cursor: pointer; }
.revoila button:hover { background: var(--vert); color: #fff; }

/* les cases simples (refus des emails, se souvenir de moi) */
.case { display: flex; gap: 10px; align-items: flex-start; margin-bottom: var(--marge); font-size: .94rem; line-height: 1.4; cursor: pointer; }
.case input { flex: none; width: 1.1rem; height: 1.1rem; margin: .12rem 0 0; accent-color: var(--vert); cursor: pointer; }
.case small { display: block; color: var(--gris); font-size: .8rem; }

/* le texte de consentement pour garder la carte, et l'information sous le formulaire */
.mention { margin-top: 12px; color: var(--gris); font-size: .8rem; line-height: 1.45; }
.brouillon { display: inline-block; margin-right: 4px; padding: 0 5px; border-radius: 4px; background: #fff3cd; color: #7a5b00; font-size: .72rem; font-weight: 700; }

/* les messages d'erreur */
.erreur { display: none; margin-bottom: var(--marge); padding: 10px var(--marge); border-radius: 6px; background: #fdecea; color: #8a1c13; font-size: .94rem; }
.erreur.visible { display: block; }
.champ input.a-revoir, .champ select.a-revoir { border-color: #d93025; box-shadow: 0 0 0 1px #d93025; }

/* Le numéro de TVA vérifié d'avance (Jeff, 16 nov.) : un petit message sous le champ, en petit comme les mentions ; vert
   (celui du survol du bouton, lisible en petit) quand VIES le reconnaît, la couleur des messages d'erreur sinon. Rien quand
   VIES ne répond pas (le message reste caché). */
.tva-message { margin: 6px 2px 0; font-size: .8rem; line-height: 1.45; }
.tva-message.reconnu { color: var(--vert-survol); }
.tva-message.a-verifier { color: #8a1c13; }

/* le bouton pendant le paiement */
.bouton[disabled] { top: 0; opacity: .7; cursor: progress; }

/* le bandeau de l'essai (seulement en mode essai) */
.bandeau-essai { padding: 6px 15px; background: #2b2b2b; color: #fff; font-size: 13px; text-align: center; }

/* les pages simples : fermée, introuvable, merci */
.page-simple { max-width: 640px; margin: 0 auto 40px; padding: var(--marge) var(--marge) calc(var(--marge) + 4px);
  border-radius: 6px; background: #fff; box-shadow: var(--ombre); }
.page-simple h4 { margin-bottom: 12px; font-size: 1.4rem; }
.page-simple p + p { margin-top: 10px; }
.page-simple ul { margin: 10px 0 0; padding-left: 1.2rem; }

/* Le compte à rebours, comme la page de vente (outil des manuels : bandeau du dernier jour #EAF1C9, temps surligné #FFF3C0) */
.bandeau-rebours { background-color: #EAF1C9; padding: 12px 20px; text-align: center; font-weight: bold; font-size: 16px;
  line-height: 1.4; position: sticky; top: 0; z-index: 11; }
.reste { font-variant-numeric: tabular-nums; white-space: nowrap; }
.reste.surligne { background-color: #FFF3C0; }
.resume-texte .echeance { margin: 10px 0 0; }
.resume-texte .echeance-reste { margin: 4px 0 0; }

/* ---------- Les pages d'upsell (étape 4, 2026-11-09) : d'après le bloc « upsell » de Spiffy (mise en page « video »),
   dans le style de notre page de paiement ; texte en #474747 comme le CSS de Jeff chez Spiffy (« Upsell text color »). */
.upsell { max-width: 720px; margin: 0 auto 40px; padding: calc(var(--marge) + 6px) var(--marge) calc(var(--marge) + 8px);
  border-radius: 6px; background: #fff; box-shadow: var(--ombre); }
.upsell-titre { margin: 0 0 18px; font-size: calc(1.35rem + .9vw); font-weight: 700; line-height: 1.2; text-align: center; }
@media (min-width: 1200px) { .upsell-titre { font-size: 2.1rem; } }
.upsell-texte { color: #474747; font-size: 18px; line-height: 1.5; }
.upsell-texte p, .upsell-texte .paragraphe { display: block; margin: 0 0 14px; }
.upsell-image { margin: 6px 0 22px; }
.upsell-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 6px; }
.upsell .bouton { margin-top: 4px; }
.upsell a.bouton { text-decoration: none; }
.upsell a.bouton[hidden] { display: none; }
.bouton-non { display: block; width: 100%; margin-top: 14px; padding: 8px; border: 0; background: none; color: var(--gris);
  font: inherit; font-size: .94rem; text-decoration: underline; cursor: pointer; }
.bouton-non:hover { color: var(--texte); }
.bouton-non[disabled] { opacity: .6; cursor: progress; }
.lien-support { display: inline-block; margin-top: 16px; }

/* Retouches de Jeff du 9 nov. : plus d'air sous « Se souvenir de moi » ; la case de refus des emails en petit sous les mentions */
.case-souvenir { margin-top: 4px; margin-bottom: 0; padding-bottom: 20px; }   /* padding : une marge basse sortait du bloc (fusion des marges, .bloc sans padding en bas) */
.case-discrete { margin: 10px 0 0; color: var(--gris); font-size: .8rem; line-height: 1.45; gap: 8px; }
.case-discrete input { width: .9rem; height: .9rem; margin-top: .1rem; }

/* Le droit de rétractation (9 nov. au soir ; Jeff : « plus discret ») : la case de renonciation en petit comme celle du refus
   des emails, mais juste au-dessus du bouton (page de paiement et offres en un clic) ; en rouge si on clique sans l'avoir
   cochée. L'information avant le paiement (affichée seulement si son texte n'est pas vide), en petit au-dessus. */
.case-renonciation { margin: 0 0 12px; }
.case-renonciation.a-revoir { color: #8a1c13; }
.case-renonciation.a-revoir input { outline: 2px solid #d93025; outline-offset: 1px; }
.info-retractation { margin: 0 0 8px; color: var(--gris); font-size: .8rem; line-height: 1.45; }
/* La ligne de la caisse de secours, juste sous le bouton (Jeff, 9 nov. vers 19h25), avant les deux petits textes et la case
   de refus des emails (avant : dans sa propre section, après eux). */
.secours-sous-bouton { margin: 18px 0 24px; }   /* dessous : le double d'avant (12px, la marge du texte qui suit ; Jeff, 9 nov. vers 20h) */

/* Le refus des emails (Jeff, 9 nov. vers 19h20) : un lien en petit sous les deux textes (à la place de la case), et sa
   petite fenêtre (<dialog>), qui tient dans un écran de téléphone : jamais plus large que l'écran moins 16px de chaque côté,
   ni plus haute (elle défile alors), les boutons l'un sous l'autre. Le fond (::backdrop) : un clic dessus la ferme. */
.refus-emails { margin: 10px 0 0; color: var(--gris); font-size: .8rem; line-height: 1.45; }
.refus-emails a { color: var(--gris); text-decoration: underline; }
.refus-emails a:hover { color: var(--texte); }
.refus-emails [hidden] { display: none; }
/* Le refus de la pub (Jeff, 9 nov. vers 20h15) : le même lien, juste sous celui des emails. */
.refus-emails.refus-pub { margin-top: 4px; }
.fenetre { width: min(440px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); margin: auto; padding: 0;
  border: 0; border-radius: 8px; background: #fff; color: var(--texte); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); overflow: auto; }
.fenetre::backdrop { background: rgba(30, 30, 30, .45); }
/* Un navigateur sans <dialog> (le repli de caisse.js, attribut open) : fermée = cachée, comme dans les autres (relecture du
   9 nov. au soir ; sans cette ligne, son texte et ses boutons restaient toujours affichés). */
.fenetre:not([open]) { display: none; }
.fenetre-contenu { padding: 22px 20px 16px; }
.fenetre-contenu p { margin: 0 0 18px; font-size: 1rem; line-height: 1.5; }
.fenetre-boutons .bouton { width: 100%; }
.fenetre-boutons .bouton-non { margin-top: 8px; }
/* « Tu as déjà acheté ce guide » (Jeff, sam. 21 nov.) : la même petite fenêtre ; la première ligne en gras et un peu plus
   grande, les lignes plus serrées entre elles, la ligne de l'ancien titre cachée sans ancien titre. */
.fenetre-deja .fenetre-contenu p { margin-bottom: 12px; }
.fenetre-deja .fenetre-contenu p:last-of-type { margin-bottom: 20px; }
.fenetre-deja .deja-titre { font-size: 1.125rem; line-height: 1.4; }
.fenetre-deja [hidden] { display: none; }

/* Le compte à rebours au dessin du « urgency tag » de Spiffy (ses coupons), demandé par Jeff le 9 nov. : une pastille rouge
   sur rose, accrochée au coin haut droit du résumé (Spiffy : .order-summary__urgency-tag, .urgency-tag). */
.resume { position: relative; }
.tag-urgence { position: absolute; z-index: 5; top: -11px; right: -7px; padding: 3px 9px 3px 8px; border-radius: 100px;
  background-color: #ffdfdf; color: #ff3737; font-size: 12px; font-weight: bold; line-height: 1.4; white-space: nowrap; }
.tag-urgence svg { width: 1em; height: 1em; margin-right: 2px; vertical-align: -0.12em; fill: currentColor; }

/* Un order bump que l'adresse a déjà disparaît (Jeff, 21 nov.) : sa section cachée par caisse.js (attribut hidden). */
.section[hidden] { display: none; }
