@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("/static/fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("/static/fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("/static/fonts/poppins-latin-600-normal.woff2") format("woff2"); }
/* Jetons repris de rdv.robertnoel.com */
:root {
  --fond: #F5F4F4; --carte: #FFFFFF; --encre: #0F392A; --encre-fonce: #0B3527;
  --texte: #3A403D; --doux: #6A6156; --bord: #E5DFD6; --bord-champ: #BFB2A1;
  --pale: #E5DFD6; --sable: #D4C7B9; --taupe: #BFB2A1; --gris-fond: #ECE8E2;
  --erreur: #8C2215; --erreur-fond: #FDE7E4;
  --ok: #1E6B3A; --ok-fond: #E3F2E8;
  --jaune-fond: #FFF4CC; --jaune-texte: #6B4F00;
  --rayon: 16px;
  /* alias */
  --marine: var(--encre); --marine-2: var(--encre-fonce); --or: var(--sable); --or-pale: var(--gris-fond);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font: 16px/1.6 Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--encre); }
h1, h2 { line-height: 1.2; color: var(--encre); font-weight: 400; }

.entete { background: var(--encre); color: var(--sable); }
.entete-int { max-width: 1120px; margin: 0 auto; padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.marque { display: flex; flex-direction: column; text-decoration: none; color: #fff; }
.marque img { display: block; height: 52px; width: auto; }
.entete-contact { display: flex; gap: 6px 24px; flex-wrap: wrap; align-items: center; }
.entete-contact a { display: inline-flex; gap: 8px; align-items: center; color: var(--sable); text-decoration: none; font-size: 15px; }
.entete-contact a:hover { color: #fff; }
.marque-nom { font-weight: 600; font-size: 1.1rem; }
.marque-sous { color: var(--sable); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.entete-lien { color: var(--sable); text-decoration: none; font-size: 15px; }
.entete-lien:hover { text-decoration: underline; }

.contenu { max-width: 960px; margin: 0 auto; padding: 20px 16px 40px; }
.page-lucie .contenu, .page-lucie .entete-int, .page-lucie .pied-int { max-width: 1200px; }

.intro h1 { margin: 6px 0 10px; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -0.02em; }
.intro p { margin: 0 0 12px; max-width: 70ch; }
.partage { display: grid; grid-template-columns: 1fr 3fr; gap: 6px; margin: 16px 0 4px; border-radius: var(--rayon); overflow: hidden; }
.partage-bloc { padding: 12px 16px; display: flex; flex-direction: column; color: #fff; font-size: .9rem; }
.partage-ref { background: var(--marine); color: #fff; }
.partage-ref .pct { font-size: 1.5rem; }
.partage-bloc span:last-child { font-weight: 500; }
.partage-ag { background: var(--pale); color: var(--encre); }
.pct { font-size: 1.6rem; font-weight: 600; line-height: 1.1; }
.petit { font-size: .85rem; color: var(--doux); }

.carte { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 18px; margin: 18px 0; }
fieldset.carte { min-width: 0; }
legend { font-weight: 500; font-size: 1.15rem; color: var(--marine); padding: 0 6px; display: flex; align-items: center; gap: 8px; }
legend small { font-weight: 400; color: var(--doux); }
.etape { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; background: var(--encre); color: #fff; font-size: 14px; font-weight: 500; }

.grille { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.champ { display: flex; flex-direction: column; margin: 8px 0; min-width: 0; }
.champ.large { grid-column: 1 / -1; }
.champ label, .libelle { font-weight: 500; font-size: .92rem; margin-bottom: 4px; }
.req { color: var(--erreur); }
.facultatif { font-weight: 400; color: var(--doux); }
input[type=text], input[type=email], input[type=tel], select, textarea {
  font: inherit; width: 100%; padding: 10px 12px; border: 1px solid var(--bord-champ); border-radius: 10px; background: #fff; color: var(--texte);
}
input:focus, select:focus, textarea:focus, button:focus-visible, .choix-case:focus-within {
  outline: 3px solid rgba(15,57,42,.25); outline-offset: 1px; border-color: var(--encre);
}
[data-permis] { text-transform: uppercase; letter-spacing: .08em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.aide { margin: 4px 0 0; font-size: .82rem; color: var(--doux); }
.erreur { margin: 4px 0 0; font-size: .85rem; color: var(--erreur); font-weight: 500; }
.en-erreur input, .en-erreur select, .en-erreur textarea { border-color: var(--erreur); background: #fffbfa; }

.choix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choix-case { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border: 1px solid var(--bord); border-radius: var(--rayon); cursor: pointer; font-weight: 500; color: var(--encre); text-align: center; background: #fff; transition: border-color .15s, background .15s; }
.choix-case:hover { border-color: var(--taupe); }
.choix-case input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.choix-case span { pointer-events: none; }
.choix-case:has(input:checked) { border-color: var(--encre); background: #fff; box-shadow: inset 0 0 0 1px var(--encre); }
.choix-case:has(input:checked) .choix-icone { background: #fff; }
.choix-case:has(input:checked) .choix-icone-fond { background: var(--encre); }
.choix-icone-fond { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--pale); }
.choix-icone { width: 24px; height: 24px; background: var(--encre); -webkit-mask: var(--ic) center/contain no-repeat; mask: var(--ic) center/contain no-repeat; }
.choix-acheter { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 2 11h3v9h6v-6h2v6h6v-9h3z'/%3E%3C/svg%3E"); }
.choix-vendre { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2h2v20H4zM7 3h13l-3 4 3 4H7z'/%3E%3C/svg%3E"); }
.choix-les_deux { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7h11l-3-3 1.4-1.4L22 8l-5.6 5.4L15 12l3-3H7zM17 17H6l3 3-1.4 1.4L2 16l5.6-5.4L9 12l-3 3h11z'/%3E%3C/svg%3E"); }

.agence { background: var(--gris-fond); border-radius: 12px; padding: 10px 14px; margin-bottom: 6px; }
.agence p { margin: 0; }

.modalites { border: 1px solid var(--bord); border-radius: 12px; padding: 12px 16px; margin-bottom: 12px; background: #FAF9F7; }
.modalites summary { cursor: pointer; font-weight: 500; color: var(--encre); }
.modalites h3, .consentement h3 { margin: 14px 0 4px; font-size: 1rem; color: var(--encre); }
.modalites h3:first-of-type { margin-top: 10px; }
.modalites p { margin: 0 0 8px; font-size: .92rem; }
.modalites ul { margin: 0 0 8px; padding-left: 20px; font-size: .92rem; }
.consentement { border: 1px solid var(--bord); border-radius: 12px; padding: 4px 16px 8px; background: #fff; }
.consentement.en-erreur { border-color: var(--erreur); }
.consentement.en-erreur .case span { color: var(--erreur); }
.simple { margin: 8px 0 16px; }
.partage-zone { margin: 0 0 20px; }
.partage-zone .partage { margin-top: 0; }
.consentement .puce { display: block; position: relative; padding-left: 16px; margin-bottom: 4px; }
.consentement .puce::before { content: "•"; position: absolute; left: 2px; color: var(--encre); }
.consentement .puce .req { display: inline; }
.simple h2 { margin: 0 0 10px; font-size: 1.15rem; color: var(--encre); }
.simple-etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.simple-etapes li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 14px 16px; }
.simple-num { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--marine); color: #fff; font-weight: 600; }
.simple-etapes strong { color: var(--encre); }
.simple-etapes p { margin: 4px 0 0; font-size: .92rem; }
.modalites dl { margin: 10px 0 0; display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; font-size: .92rem; }
.modalites dt { font-weight: 500; color: var(--encre); }
.modalites dd { margin: 0; }
.case { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; cursor: pointer; }
.case input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--marine); }
.case.en-erreur span { color: var(--erreur); }

.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.envoi { text-align: center; margin-top: 10px; }
.bouton { display: inline-flex; gap: 8px; align-items: center; justify-content: center; min-height: 48px; font: inherit; font-weight: 600; border: 0; border-radius: 10px; padding: 0 20px; background: var(--encre); color: #fff; cursor: pointer; text-decoration: none; }
.bouton:hover { background: var(--encre-fonce); }
.bouton:disabled { opacity: .6; cursor: progress; }
.bouton.secondaire { background: #fff; color: var(--encre); border: 1px solid var(--encre); }
#envoyer { min-width: 280px; min-height: 52px; padding: 0 28px; font-size: 1.05rem; }
.statut-envoi { min-height: 1.5em; color: var(--doux); }
.alerte { background: var(--erreur-fond); color: var(--erreur); border: 1px solid #F3C4BD; border-radius: 12px; padding: 12px 16px; font-weight: 500; margin: 14px 0; }
.succes { background: var(--ok-fond); color: var(--ok); border: 1px solid #BFE0CA; border-radius: 12px; padding: 10px 16px; font-weight: 500; }

.merci { text-align: center; padding: 30px 20px; }
.merci-icone { width: 64px; height: 64px; border-radius: 50%; background: var(--encre); color: #fff; font-size: 2rem; display: grid; place-items: center; margin: 0 auto 8px; }
.suite { text-align: left; max-width: 520px; margin: 14px auto; }
.actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 18px 0 8px; }

.pied { background: var(--encre-fonce); color: var(--sable); font-size: 14px; }
.pied-int { max-width: 1120px; margin: 0 auto; padding: 20px 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pied a { color: var(--sable); }
.pied a:hover { color: #fff; }

/* ---------- Entente ---------- */
.barre-impr { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.entente { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 32px 36px; font-size: .95rem; }
.ent-tete { border-bottom: 2px solid var(--encre); margin-bottom: 14px; }
.ent-tete h1 { margin: 0 0 4px; font-size: 1.4rem; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; }
.ent-num { margin: 0 0 10px; color: var(--doux); font-size: .88rem; }
.entente h2 { font-size: 1.05rem; margin: 20px 0 6px; }
.entente p { margin: 0 0 8px; }
.tableau-defile { overflow-x: auto; }
.ent-table, .liste { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: .9rem; }
.ent-table th, .ent-table td { border: 1px solid var(--taupe); padding: 6px 8px; text-align: left; vertical-align: top; }
.ent-table thead th { background: var(--encre); color: #fff; font-weight: 500; }
.ent-table tbody th { background: var(--gris-fond); white-space: nowrap; font-weight: 500; }
.ent-table td.vide { color: var(--taupe); text-align: center; }
.signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; margin-top: 30px; }
.sig .ligne { border-bottom: 1px solid #333; height: 44px; }
.sig p { margin: 4px 0 0; font-size: .88rem; }
.ent-code { text-align: right; font-size: .78rem; color: var(--doux); margin-top: 24px; }

/* ---------- Réception ---------- */
.onglets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.onglets a { padding: 6px 14px; border-radius: 999px; text-decoration: none; background: var(--gris-fond); color: var(--doux); font-weight: 500; font-size: 14px; }
.onglets a.actif { background: var(--encre); color: #fff; }
.pastille { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: #fff; color: var(--encre); font-size: .78rem; text-align: center; }
.pastille.rouge { background: var(--erreur); color: #fff; }
.liste { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); overflow: hidden; }
.liste th { background: var(--encre); color: #fff; text-align: left; padding: 10px 8px; font-size: .85rem; font-weight: 500; }
.liste td { border-top: 1px solid var(--bord); padding: 8px; vertical-align: top; }
.liste tr:hover td { background: #FAF9F7; }
.etiquette { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 500; white-space: nowrap; }
.st-recue { background: var(--erreur-fond); color: var(--erreur); }
.st-attribuee { background: var(--jaune-fond); color: var(--jaune-texte); }
.st-signee { background: var(--pale); color: var(--encre); }
.st-conclue { background: var(--ok-fond); color: var(--ok); }
.st-annulee { background: var(--gris-fond); color: var(--doux); }
.fiche { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.fiche .carte:last-child { grid-column: 1 / -1; }
.fiche h2 { margin: 0 0 10px; font-size: 1.15rem; font-weight: 500; }
.dl { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; margin: 0; }
.dl dt { font-weight: 500; color: var(--doux); }
.dl dd { margin: 0; overflow-wrap: anywhere; }
.multiligne { white-space: pre-line; }
.suivi { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.suivi .actions { grid-column: 1 / -1; justify-content: flex-start; }

@media (max-width: 640px) {
  .grille, .fiche, .suivi { grid-template-columns: 1fr; }
  .choix { grid-template-columns: 1fr; }
  .choix-case { flex-direction: row; justify-content: flex-start; padding: 12px 14px; }
  .choix-icone-fond { width: 36px; height: 36px; border-radius: 10px; }
  .choix-icone { width: 20px; height: 20px; }
  .marque img { height: 40px; }
  .entete-contact { font-size: 14px; }
  .partage { grid-template-columns: 1fr; }
  .simple-etapes { grid-template-columns: 1fr; }
  .modalites dl, .dl { grid-template-columns: 1fr; }
  .modalites dt { margin-top: 6px; }
  .intro h1 { font-size: 1.5rem; }
  .entente { padding: 20px 16px; }
  .signatures { grid-template-columns: 1fr; }
  #envoyer { width: 100%; min-width: 0; }
}

@media print {
  @page { size: letter; margin: 14mm; }
  body { background: #fff; font-size: 11pt; }
  .entete, .pied, .no-print { display: none !important; }
  .ent-table thead th, .ent-table tbody th { color: #000; }
  .contenu { padding: 0; max-width: none; }
  .entente { border: 0; padding: 0; font-size: 10pt; }
  .ent-table thead th { background: #fff !important; color: #000; border-bottom: 2px solid #000; }
  .ent-table tbody th { background: #fff !important; }
  .signatures { grid-template-columns: 1fr 1fr; break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}

.form-lien { display: inline; margin: 0; }
.lien-bouton { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* Promotion : codes QR */
.promo-actions { margin: 12px 0 18px; }
.promo-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-bottom: 18px; }
.promo-carte { text-align: center; margin: 0; }
.promo-carte img { display: block; margin: 0 auto 8px; width: 160px; height: 160px; }
.promo-carte h2 { margin: 4px 0; font-size: 1.05rem; }
.promo-carte p { margin: 4px 0; }
.promo-autre { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.promo-autre label { flex-basis: 100%; }
