/* apercu.css — page « apercu.html » (aperçus en direct)
 * Page chrome : palette de marque du site (bleu #1F3A6B, jaune #F2C230).
 * Les aperçus eux-mêmes reprennent les couleurs des VRAIS modèles vendus :
 * vert des modèles Word (cartes, menus, listes de prix), bleu marine des
 * factures Excel, rouge et marine de la lettre du Père Noël.
 * Zéro dépendance, zéro police téléchargée. */

/* ---------- Mise en page formulaire + aperçu ---------- */
.apercu-mise {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  margin-top: 1.2rem;
}

.panneau-form,
.panneau-apercu {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: 10px;
  box-shadow: var(--ombre);
  padding: 1.1rem 1.2rem;
  min-width: 0;
}
.panneau-form h2,
.panneau-apercu h2 { margin-top: 0; }
.panneau-form .sous-titre-form {
  font-size: 0.92rem;
  color: var(--texte-doux);
  margin: 0 0 0.6rem;
}

.champ-apercu { margin: 0.7rem 0; }
.champ-apercu label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}
.champ-apercu input[type="text"],
.champ-apercu input[type="email"],
.champ-apercu input[type="tel"],
.champ-apercu select {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--bordure-form);
  border-radius: 8px;
  background: var(--surface);
  color: var(--texte);
  font-size: 1rem;
}

/* Rangées « plat + prix » / « service + prix » */
.rangee {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 0.5rem;
  margin: 0.35rem 0;
}
.rangee .rangee-num {
  font-size: 0.82rem;
  color: var(--texte-doux);
  margin: 0 0 0.1rem;
}

/* Choix de style (cartes d'affaires) et tranche d'âge (lettre) :
 * le libellé reste À CÔTÉ du bouton radio. */
.choix-style { margin: 0.3rem 0; }
.choix-style label {
  display: inline;
  font-weight: 400;
  font-size: 0.95rem;
  margin: 0.25rem 0;
}

.note-privee {
  font-size: 0.88rem;
  color: var(--texte-doux);
  border-top: 1px solid var(--bordure);
  padding-top: 0.6rem;
  margin-top: 0.9rem;
}

/* ---------- Cadre d'aperçu + filigrane ---------- */
.cadre-apercu {
  position: relative;
  overflow: hidden;
  border: 1px dashed var(--bordure);
  border-radius: 8px;
  background: #f5f3ee;
  padding: 1.2rem 1rem;
  container-type: inline-size;
}

.filigrane {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
}
.filigrane span {
  transform: rotate(-22deg);
  font-size: clamp(1.4rem, 9cqi, 2.9rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  color: rgba(31, 58, 107, 0.15);
  border: 4px solid rgba(31, 58, 107, 0.15);
  border-radius: 10px;
  padding: 0.2rem 1.1rem;
  user-select: none;
  white-space: nowrap;
}

/* Le rendu occupe toute la largeur du cadre et centre le modèle,
 * pour que width:min(100%, …) des modèles ne se referme pas sur
 * leur propre contenu. */
#rendu {
  width: 100%;
  display: flex;
  justify-content: center;
}

.note-apercu {
  font-size: 0.88rem;
  color: var(--texte-doux);
  margin: 0.6rem 0 0;
}

.actions-apercu { margin-top: 1rem; }
.note-commande {
  font-size: 0.92rem;
  color: var(--texte-doux);
  margin: 0.6rem 0 0;
}

/* ---------- Choix de produit (slug inconnu ou absent) ---------- */
.zone-choix ul { padding-left: 1.2rem; }
.zone-choix li { margin: 0.35rem 0; }

/* ============================================================
   MODÈLE 1 — Carte d'affaires (3,5 × 2 po, vert des modèles)
   ============================================================ */
.modele-carte {
  width: min(100%, 360px);
  aspect-ratio: 35 / 20;
  border-radius: 6px;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  background: #ffffff;
  font-size: 0.85rem;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.modele-carte p { margin: 0.12rem 0.4rem; }
.c-nom { font-weight: 700; font-size: 1.12rem; color: #26323a; }
.c-metier { font-style: italic; color: #46504a; font-size: 0.85rem; }
.c-contact { font-size: 0.76rem; color: #3a423d; }
.c-site { font-size: 0.76rem; color: #3a423d; }

/* Style 1 — sobre : centré, encadré discret */
.style-sobre { border: 1.5px solid #2D5A3D; text-align: center; }
.style-sobre .c-nom { font-family: Georgia, "Times New Roman", serif; }

/* Style 2 — bande verte en haut */
.style-bande { border: 1px solid #ccd6cc; padding: 0; justify-content: flex-start; }
.style-bande .c-bande {
  background: #2D5A3D;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.08rem;
  padding: 0.5rem 0.9rem;
  margin: 0;
}
.style-bande .c-corps {
  padding: 0.55rem 0.9rem 0.7rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}
.style-bande .c-metier { font-style: normal; }

/* Style 3 — fond pâle, esprit « métier » */
.style-pale {
  background: #E7EFE7;
  border: none;
  text-align: center;
}
.style-pale .c-nom { font-size: 1.08rem; }
.style-pale .c-service { color: #2D5A3D; font-weight: 700; font-size: 0.82rem; }

/* ============================================================
   MODÈLES 2 et 3 — Menu et liste de prix (papier Lettre, serif)
   ============================================================ */
.modele-menu,
.modele-prix {
  width: min(100%, 400px);
  background: #ffffff;
  border: 1px solid #d9d5cc;
  border-radius: 4px;
  padding: 1.1rem 1.2rem 1.25rem;
  font-family: Georgia, "Times New Roman", serif;
  color: #23211e;
}
.m-titre {
  text-align: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid #2D5A3D;
  overflow-wrap: anywhere;
}
.m-section {
  color: #2D5A3D;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0.85rem 0 0.25rem;
}
.m-ligne {
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
  font-size: 0.9rem;
  margin: 0.16rem 0;
}
.m-ligne .m-nom { overflow-wrap: anywhere; }
.m-ligne .m-prix {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   MODÈLE 4 — Facture TPS/TVQ (bleu marine, cellules jaunes)
   ============================================================ */
.modele-facture {
  width: min(100%, 520px);
  background: #ffffff;
  border: 1px solid #c9ccd4;
  border-radius: 4px;
  overflow: hidden;
  font-size: 0.9rem;
  color: #23211e;
}
.f-entete {
  background: #1F3A6B;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.5rem 0.9rem;
}
.f-infos {
  padding: 0.5rem 0.9rem 0;
  font-size: 0.85rem;
  color: #4a4f57;
}
.f-infos p { margin: 0.1rem 0; }
.f-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 0.3rem;
}
.f-table th {
  text-align: left;
  font-size: 0.8rem;
  color: #333a42;
  padding: 0.3rem 0.9rem;
}
.f-table td { padding: 0.3rem 0.9rem; }
.f-table th:nth-child(2),
.f-table td:nth-child(2) { text-align: right; white-space: nowrap; }
.f-a-remplir { background: #FBEEB8; }
.f-montant { text-align: right; font-variant-numeric: tabular-nums; }
.f-totaux { padding: 0.5rem 0.9rem 0.85rem; }
.f-ligne {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.24rem 0.2rem;
  color: #4a4f57;
}
.f-ligne .f-valeur { font-variant-numeric: tabular-nums; white-space: nowrap; }
.f-ligne.f-total {
  background: #DCE6F5;
  color: #1c2c4e;
  font-weight: 700;
  padding: 0.4rem 0.5rem;
  border-radius: 3px;
}
.f-note {
  font-size: 0.75rem;
  color: #5b616b;
  padding: 0 0.9rem 0.8rem;
  margin: 0;
}

/* ============================================================
   MODÈLE 5 — Lettre du Père Noël (cadre rouge double, serif)
   ============================================================ */
.modele-lettre {
  width: min(100%, 470px);
  background: #ffffff;
  border: 1px solid #b03a2e;
  padding: 5px;
}
.l-cadre {
  border: 1px solid #b03a2e;
  padding: 1.5rem 1.3rem 1rem;
  position: relative;
  font-family: Georgia, "Times New Roman", serif;
  color: #2a2a2a;
}
.l-decor {
  position: absolute;
  top: 0.45rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  justify-content: space-between;
  color: #D9A930;
  font-size: 0.85rem;
}
.l-lieu {
  text-align: center;
  color: #1F3A6B;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
}
.l-occasion {
  text-align: center;
  font-style: italic;
  color: #7a7a7a;
  font-size: 0.75rem;
  margin: 0.1rem 0 0.7rem;
}
.l-corps p { margin: 0.45rem 0; font-size: 0.85rem; line-height: 1.5; }
.l-corps .l-salutation { margin-top: 0; }
.l-suite {
  text-align: center;
  letter-spacing: 0.35em;
  color: #9a9a9a;
  margin: 0.6rem 0;
}
.l-signature { font-style: italic; margin-bottom: 0; }
.l-signature strong { font-style: normal; }
.l-pied {
  text-align: center;
  color: #2D5A3D;
  font-size: 0.8rem;
  letter-spacing: 0.5em;
  margin: 0.7rem 0 0;
}

/* ============================================================
   APERÇUS PREMIUM (0g) — discours, expressions, relance,
   carton hommage, page web, fiche Google.
   ============================================================ */

/* ---- Discours sur mesure : trame vivante ---- */
.modele-discours {
  width: min(100%, 470px);
  background: #FBF8F1;
  border: 1px solid #d8cba8;
  padding: 1.4rem 1.4rem 1.1rem;
  font-family: Georgia, "Times New Roman", serif;
  color: #33291f;
}
.d-kicker { text-align:center; font-family:'Segoe UI',Arial,sans-serif; font-size:.72rem;
  letter-spacing:.3em; color:#B08D3C; margin:0 0 .5rem; }
.d-titre { text-align:center; font-size:1.3rem; color:#5C2333; margin:0 0 .5rem; }
.d-filet { display:flex; align-items:center; gap:.5rem; margin:.4rem 0 .9rem; }
.d-filet span { flex:1; height:1px; background:#C9B87F; }
.d-filet i { color:#B08D3C; font-style:normal; font-size:.7rem; }
.d-corps { font-size:.86rem; line-height:1.55; margin:.5rem 0; }
.d-corps em { color:#6b5a41; }
.d-chute { color:#5C2333; font-weight:700; }
.d-note { font-size:.72rem; color:#8a7a5c; border-top:1px dashed #d8cba8; padding-top:.5rem; margin:.8rem 0 0; }

/* ---- Expressions : recherche dans les 50 entrées ---- */
.modele-expr {
  width: min(100%, 470px);
  background: #fff;
  border: 1px solid #e4dbc2;
  border-radius: 10px;
  padding: 1.2rem 1.3rem;
  font-family: Georgia, serif;
  color: #33291f;
}
.e-titre { font-size:1.1rem; color:#1B3358; font-weight:700; margin:0 0 .5rem; }
.e-compte { font-family:'Segoe UI',Arial,sans-serif; font-size:.75rem; color:#8a7a5c; margin:0 0 .6rem; }
.e-entree { border-top:1px dashed #E4DBC2; padding:.5rem 0; }
.e-mot { font-weight:700; color:#1B3358; margin:.15rem 0; }
.e-sens { font-size:.82rem; color:#5d5344; margin:.1rem 0; }
.e-equiv { font-family:'Segoe UI',Arial,sans-serif; font-size:.72rem; color:#8a8478; margin:.1rem 0 0; }
.e-vide { font-size:.85rem; color:#5d5344; font-style:italic; margin:.4rem 0; }

/* ---- Relance d'impayé (kit) ---- */
.modele-relance {
  width: min(100%, 470px);
  background: #fff;
  border: 1px solid #c9ccd4;
  padding: 1.3rem 1.4rem 1rem;
  font-family: Georgia, serif;
  color: #2d3339;
}
.r-nom { font-family:'Segoe UI',Arial,sans-serif; font-weight:700; color:#16324F; margin:0; }
.r-dest { font-size:.78rem; color:#54616d; margin:.15rem 0 .5rem; }
.r-filet { height:2px; background:#16324F; margin-bottom:.15rem; }
.r-objet { font-size:.8rem; color:#16324F; margin:.6rem 0; }
.r-corps { font-size:.84rem; line-height:1.55; margin:.45rem 0; }
.r-sign { font-style:italic; margin:.7rem 0 0; }
.r-note { font-size:.72rem; color:#8a94a2; border-top:1px solid #dde3e8; padding-top:.5rem; margin-top:.9rem; }

/* ---- Cartons-titres hommage ---- */
.h-carton {
  width: min(100%, 500px);
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}
.h-ivoire { background: linear-gradient(165deg,#FBF8F1,#F0E7D2); border:1px solid #C9B87F; color:#4c4034; }
.h-nuit { background: radial-gradient(ellipse at 50% 120%, #2A4470 0%, #1B2C45 46%, #10192B 100%); color:#DCE4F2; }
.h-aube { background: linear-gradient(180deg,#2A4470 0%, #7E93B4 36%, #E9C9A8 72%, #F6DCC0 100%); color:#2b3346; }
.h-etoiles { position:absolute; top:.5rem; right:.7rem; color:#DCE6F5; font-size:1.4rem; opacity:.8; }
.h-ciel { position:absolute; inset:0; pointer-events:none; }
.h-ciel span { position:absolute; color:#DCE6F5; font-size:1rem; opacity:.85; }
.h-lune { position:absolute; top:9%; right:10%; width:56px; height:56px; border-radius:50%;
  background:#E8E2CE; opacity:.92;
  box-shadow:0 0 0 10px rgba(232,226,206,.12), 0 0 26px 4px rgba(232,226,206,.22); }
.h-fin { font-family:'Segoe UI',Arial,sans-serif; letter-spacing:.3em; font-size:.72rem;
  color:#5b4a3c; margin-top:.5rem; }
.h-mention { position:absolute; bottom:1.7rem; left:1rem; right:1rem; text-align:center;
  font-family:'Segoe UI',Arial,sans-serif; font-size:.62rem; color:#7d8aa5; margin:0; }
.h-ivoire .h-mention { color:#a09070; }
.sv-compteur { display:block; font-family:'Segoe UI',Arial,sans-serif; font-size:.7rem;
  color:#8a94a2; text-align:right; margin-top:.15rem; }
.sv-aide-masque { font-size:.78rem; color:#7d8aa5; font-style:italic; margin:.2rem 0 0; }
.h-kicker { font-family:'Segoe UI',Arial,sans-serif; font-size:.66rem; letter-spacing:.42em; margin:0; color:#B08D3C; }
.h-nuit .h-kicker { color:#C9A94F; }
.h-aube .h-kicker { color:#4a5a7a; }
.h-nom { font-size:1.7rem; font-weight:600; margin:.35rem 0 .2rem; color:#5C2333; }
.h-nuit .h-nom { color:#FDFBF5; }
.h-aube .h-nom { font-size:1.05rem; color:#333d54; }
.h-dates { font-family:'Segoe UI',Arial,sans-serif; font-size:.8rem; letter-spacing:.3em; color:#8a7a5c; }
.h-nuit .h-dates { color:#9FB0CB; }
.h-cite { font-style:italic; font-size:1.02rem; line-height:1.4; margin:.3rem 1rem; color:#333d54; }
.h-spec { position:absolute; bottom:.4rem; right:.6rem; font-family:'Segoe UI',Arial,sans-serif;
  font-size:.6rem; letter-spacing:.06em; color:#a09070; }
.h-nuit .h-spec { color:#7d8aa5; }
.h-aube .h-spec { color:#5f6a80; }

/* ---- Page web réduit ---- */
.modele-pageweb {
  width: min(100%, 460px);
  background: #fff;
  border: 1px solid #c9ccd4;
  border-radius: 8px;
  overflow: hidden;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #2d3339;
}
.w-heros { background:#1B2430; color:#fff; text-align:center; padding:1.1rem 1rem .9rem; }
.w-photo { margin:.6rem 1.2rem 0; border:2px dashed #8a94a2; border-radius:8px; padding:1.1rem .8rem;
  text-align:center; font-family:'Segoe UI',Arial,sans-serif; font-size:.75rem; color:#54616d;
  background:#F4F7FA; }
.w-nom { font-family:Georgia,serif; font-size:1.25rem; font-weight:600; margin:0 0 .15rem; overflow-wrap:anywhere; }
.w-metier { font-size:.78rem; opacity:.85; margin:0 0 .5rem; }
.w-cta { display:inline-block; background:#F28A1F; color:#fff; font-weight:700; font-size:.75rem;
  padding:.35rem .9rem; border-radius:999px; }
.w-zone { padding:.8rem 1.2rem .9rem; }
.w-section { font-family:Georgia,serif; color:#1B2430; font-size:.95rem; font-weight:600;
  border-bottom:2px solid #F28A1F; display:inline-block; margin:0 0 .4rem; padding-bottom:.15rem; }
.w-ligne { display:flex; justify-content:space-between; gap:.8rem; font-size:.8rem; padding:.3rem 0;
  border-bottom:1px dashed #d5dde5; }
.w-ligne .w-prix { font-weight:700; color:#1B2430; white-space:nowrap; }
.w-note { font-size:.66rem; color:#8a94a2; margin:.6rem 0 0; }

/* ---- Fiche Google réduit ---- */
.modele-fiche {
  width: min(100%, 440px);
  background: #fff;
  border: 1px solid #c9ccd4;
  border-radius: 10px;
  overflow: hidden;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #2d3339;
}
.g-photos { display:flex; height:110px; }
.g-ph { flex:1; }
.g-ph.a { background:linear-gradient(140deg,#5C2D3E,#3c4854); }
.g-ph.b { background:linear-gradient(140deg,#5b6c7d,#2d3339); }
.g-ph.c { background:linear-gradient(140deg,#8a94a2,#54616d); }
.g-corps { padding:1rem 1.2rem .9rem; }
.g-nom { font-family:Georgia,serif; font-size:1.15rem; font-weight:600; color:#23211E; margin:0 0 .1rem; overflow-wrap:anywhere; }
.g-cat { font-size:.8rem; color:#1a73e8; margin:.05rem 0 .4rem; }
.g-actions { display:flex; gap:.4rem; margin:.4rem 0; }
.g-actions span { flex:1; text-align:center; border:1px solid #dadce0; border-radius:999px;
  font-size:.68rem; color:#1a73e8; font-weight:600; padding:.3rem 0; }
.g-adresse { font-size:.74rem; color:#54616d; margin:.3rem 0 0; }
.g-desc { font-size:.78rem; color:#3c4854; line-height:1.45; margin:.45rem 0 0; }
.g-note { font-size:.64rem; color:#8a94a2; border-top:1px solid #e4e7eb; padding-top:.4rem; margin:.6rem 0 0; }

/* ---------- Écrans plus larges ---------- */
@media (min-width: 46rem) {
  .apercu-mise { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .panneau-apercu { align-self: start; }
}
