/* Le Loquet — outil gratuit « fiche de bienvenue + QR code Wi-Fi » (fiche-de-bienvenue-airbnb.php, 23/11/2026). Chargé par cette page seule, APRÈS outils.css
   (hub, formulaire, aperçu, encadré, textes : communs à tous les outils gratuits). Ici : FICHE A4 (commun puis 4 modèles nettement différents :
   ville = bandeau moderne, maison = classique encadré, montagne = chalet sombre, mer = clair et aéré) · impression (seule la fiche, A4, une page). */

/* ---------- FICHE A4 : commun ---------- */
.fb-a4 { width: 210mm; height: 296mm;   /* même taille à l'écran et à l'impression (296 et non 297 mm : jamais de 2e page) */
  background: #fff; color: #1d2421; overflow: hidden; --k: 1; --fc: #2f5d50;
  font: 500 calc(15px * var(--k))/1.45 IN, system-ui, sans-serif; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.a4-in { height: 100%; padding: calc(46px * var(--k)) 54px 44px; display: flex; flex-direction: column; gap: calc(22px * var(--k)); position: relative; }
.a4-in > * { flex-shrink: 0; }   /* jamais écrasé : un bloc qui ne tient pas fait déborder la page, et la taille du texte baisse (ajuster()) */
.fb-a4 h2, .fb-a4 h3, .fb-a4 p, .fb-a4 ul { margin: 0; }
.a4-bv { font: 700 calc(15px * var(--k)) IN, system-ui, sans-serif; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fc); }
.a4-nom { font: 700 calc(44px * var(--k))/1.05 SG, system-ui, sans-serif; letter-spacing: -0.02em; margin-top: 6px !important; overflow-wrap: anywhere; }
.a4-vide { opacity: 0.35; }
.a4-adr { margin-top: 8px !important; color: #5b6863; }
.a4-msg p { font-size: calc(16px * var(--k)); }
.a4-sig { margin-top: 8px !important; font-weight: 600; color: var(--fc); }
.a4-ligne { display: grid; grid-template-columns: 1.25fr 1fr; gap: calc(18px * var(--k)) 26px; }
.a4-ligne > section:only-child { grid-column: 1 / -1; }
.fb-a4 h3 { font: 700 calc(19px * var(--k))/1.2 SG, system-ui, sans-serif; margin: 0 0 calc(10px * var(--k)); color: var(--fc); }
.fb-a4 ul { padding: 0; list-style: none; display: grid; gap: calc(6px * var(--k)); }
.fb-a4 li { position: relative; padding-left: 20px; }
.fb-a4 li::before { content: ''; position: absolute; left: 2px; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--fc); }
.fb-a4 .a4-cases li::before { top: 0.28em; width: 11px; height: 11px; border-radius: 3px; background: none; border: 2px solid var(--fc); left: 0; }
.a4-wifi-in { display: flex; gap: 18px; align-items: center; }
.fb-qr { width: calc(150px * var(--k)); height: calc(150px * var(--k)); flex: none; display: block; }
.fb-qr-vide { border: 2px dashed #c9d0ca; border-radius: 8px; }
.a4-scan { font-size: calc(13.5px * var(--k)); color: #5b6863; }
.a4-k { margin-top: calc(8px * var(--k)) !important; display: flex; flex-direction: column; }
.a4-k span { font-size: calc(11.5px * var(--k)); letter-spacing: 0.12em; text-transform: uppercase; color: #5b6863; }
.a4-k b { font: 600 calc(17px * var(--k))/1.25 IN, system-ui, sans-serif; overflow-wrap: anywhere; }
.a4-mdp { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace !important; letter-spacing: 0.02em; }
.a4-tel { font: 700 calc(22px * var(--k)) SG, system-ui, sans-serif; }
.a4-contact p + p { margin-top: 4px !important; }
.a4-note { color: #5b6863; font-size: calc(14px * var(--k)); }
.a4-heure { margin-bottom: calc(10px * var(--k)) !important; }
.a4-heure b { font: 700 calc(22px * var(--k)) SG, system-ui, sans-serif; color: var(--fc); }
.a4-urg { margin-top: auto; }
.a4-num { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.a4-num p { border: 1.5px solid #d8ddd8; border-radius: 10px; padding: calc(8px * var(--k)) 10px; display: flex; align-items: baseline; gap: 8px; }
.a4-num b { font: 700 calc(26px * var(--k)) SG, system-ui, sans-serif; color: #b3261e; }
.a4-num span { font-size: calc(12.5px * var(--k)); line-height: 1.2; color: #3b4440; }
.a4-hop { margin-top: calc(10px * var(--k)) !important; font-size: calc(14px * var(--k)); }
.a4-hop span { font-weight: 700; }
.a4-avis p { font-size: calc(14.5px * var(--k)); }
.a4-avis b { color: var(--fc); }
.a4-mention { position: absolute; right: 54px; bottom: 16px; font-size: 10.5px; color: #8a948f; letter-spacing: 0.04em; }

/* ---------- modèle 1 : APPARTEMENT EN VILLE — bandeau de couleur, cartes teintées ---------- */
.st-ville .a4-in { padding-top: 0; }
.st-ville .a4-tete { margin: 0 -54px; padding: calc(44px * var(--k)) 54px calc(30px * var(--k)); background: var(--fc); color: #fff; }
.st-ville .a4-bv { color: rgba(255, 255, 255, 0.85); }
.st-ville .a4-adr { color: rgba(255, 255, 255, 0.85); }
.st-ville .a4-wifi, .st-ville .a4-contact { background: color-mix(in srgb, var(--fc) 9%, #fff); border-radius: 14px; padding: calc(18px * var(--k)) 20px; }
.st-ville .a4-wifi .fb-qr { background: #fff; padding: 6px; border-radius: 8px; }

/* ---------- modèle 2 : MAISON AVEC JARDIN — classique, papier crème, double filet, titres à empattements ---------- */
.st-maison { background: #fbf8f1; }
.st-maison .a4-in { margin: 22px; height: calc(100% - 44px); border: 1.5px solid var(--fc); outline: 1px solid var(--fc); outline-offset: 5px; padding: calc(40px * var(--k)) 44px calc(34px * var(--k)); }
.st-maison .a4-tete { text-align: center; }
.st-maison .a4-nom, .st-maison h3, .st-maison .a4-tel, .st-maison .a4-heure b { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; letter-spacing: 0; }
.st-maison .a4-nom { font-size: calc(46px * var(--k)); font-style: italic; color: var(--fc); }
.st-maison .a4-tete::after { content: '❦'; display: block; color: var(--fc); font-size: calc(22px * var(--k)); margin-top: calc(8px * var(--k)); }
.st-maison .a4-msg { text-align: center; font-style: italic; padding: 0 20px; }
.st-maison h3 { font-size: calc(21px * var(--k)); border-bottom: 1px solid color-mix(in srgb, var(--fc) 40%, transparent); padding-bottom: 6px; }
.st-maison .a4-num p { background: #fff; }
.st-maison .a4-mention { right: 30px; bottom: 10px; }

/* ---------- modèle 3 : CHALET À LA MONTAGNE — en-tête sombre plein, cartes à filet de couleur ---------- */
.st-montagne { background: #f4f1ec; }
.st-montagne .a4-in { padding-top: 0; }
.st-montagne .a4-tete { margin: 0 -54px; padding: calc(50px * var(--k)) 54px calc(78px * var(--k)); color: #fff;
  background: linear-gradient(160deg, color-mix(in srgb, var(--fc) 55%, #101614) 0%, #121815 100%); position: relative; overflow: hidden; }
.st-montagne .a4-tete::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: calc(40px * var(--k)); background: #f4f1ec;
  clip-path: polygon(0 100%, 0 70%, 14% 30%, 24% 62%, 38% 8%, 52% 58%, 63% 32%, 78% 74%, 90% 40%, 100% 66%, 100% 100%); }
.st-montagne .a4-bv { color: color-mix(in srgb, var(--fc) 35%, #fff); }
.st-montagne .a4-nom { font-size: calc(48px * var(--k)); text-transform: uppercase; letter-spacing: 0.02em; }
.st-montagne .a4-adr { color: rgba(255, 255, 255, 0.78); }
.st-montagne .a4-ligne > section, .st-montagne .a4-urg, .st-montagne .a4-avis { background: #fff; border-radius: 6px; border-left: 5px solid var(--fc); padding: calc(16px * var(--k)) 18px; }
.st-montagne h3 { font: 700 calc(13.5px * var(--k)) IN, system-ui, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; }
.st-montagne .a4-urg { margin-top: auto; }
.st-montagne .a4-num p { border-color: #e4e0d8; }

/* ---------- modèle 4 : BORD DE MER — clair et aéré, grands cercles, titres en pastille ---------- */
.st-mer .a4-in::before { content: ''; position: absolute; top: -120px; right: -110px; width: 360px; height: 360px; border-radius: 50%; background: color-mix(in srgb, var(--fc) 16%, #fff); z-index: 0; }
.st-mer .a4-in::after { content: ''; position: absolute; top: 40px; right: 120px; width: 70px; height: 70px; border-radius: 50%; background: color-mix(in srgb, var(--fc) 34%, #fff); z-index: 0; }
.st-mer .a4-in > * { position: relative; z-index: 1; }
.st-mer .a4-nom { font-size: calc(50px * var(--k)); color: var(--fc); max-width: 78%; }
.st-mer .a4-bv { color: #1d2421; }
.st-mer h3 { display: inline-block; background: var(--fc); color: #fff; border-radius: 999px; padding: 5px 14px; font-size: calc(15px * var(--k)); }
.st-mer .a4-wifi { background: color-mix(in srgb, var(--fc) 10%, #fff); border-radius: 26px; padding: calc(18px * var(--k)) 20px; }
.st-mer .a4-wifi .fb-qr { background: #fff; padding: 6px; border-radius: 12px; }
.st-mer li::before { background: none; border: 2px solid var(--fc); }
.st-mer .a4-num p { border-radius: 999px; justify-content: center; }
.st-mer .a4-mention { position: absolute; }

/* ---------- impression : seule la fiche, A4, une page ---------- */
#fb-impr { position: absolute; left: -10000px; top: 0; visibility: hidden; pointer-events: none; }   /* mis en page hors écran : sert à mesurer */
@page { size: A4; margin: 0; }
@media print {
  html, body.site { background: #fff !important; margin: 0 !important; padding: 0 !important; }
  body.site > *:not(#fb-impr) { display: none !important; }
  #fb-impr { display: block !important; position: static; visibility: visible; }
  #fb-impr .fb-a4 { transform: none !important; box-shadow: none; page-break-after: avoid; break-after: avoid; }
}
