/* Le Martini Club · générateur de nom d'espion (espion.js) : formulaire civilité + pays, carte « dossier classifié ».
   Couleurs du thème (007.css) : --acc rouge 007, --fg crème/encre, --mut, --tn (teinte du texte en r,g,b), --disp Bodoni, --mono Courier. */
html body .esp{display:grid;gap:clamp(28px,4vw,44px);margin-bottom:clamp(40px,6vw,80px)}
html body .esp-f{display:grid;gap:26px;max-width:760px}
html body .esp-f fieldset{border:0;margin:0;padding:0;min-width:0}
html body .esp-f legend{padding:0;margin-bottom:12px;font:700 12px/1 var(--mono);letter-spacing:.28em;text-transform:uppercase;color:var(--acc)}
html body .esp-civ{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:480px}
html body .esp .esp-c{all:unset;box-sizing:border-box;cursor:pointer;display:grid;gap:6px;padding:18px 20px;border-radius:18px;
  background:rgba(var(--tn),.04);box-shadow:inset 0 0 0 1px rgba(var(--tn),.18);transition:box-shadow .25s,background .25s,translate .25s}
html body .esp .esp-c{text-transform:none!important;letter-spacing:0!important;text-align:left}
html body .esp .esp-c b{display:block;font:italic 700 clamp(32px,4vw,42px)/1.05 var(--disp)!important;letter-spacing:0!important;text-transform:none!important;color:var(--fg)}
html body .esp .esp-c span{display:block;font:700 11px/1.2 var(--mono)!important;letter-spacing:.24em!important;text-transform:uppercase;color:var(--mut)}
html body .esp .esp-c:hover{translate:0 -2px;box-shadow:inset 0 0 0 1px rgba(var(--accr),.6)}
html body .esp .esp-c[aria-pressed="true"]{background:rgba(var(--accr),.12);box-shadow:inset 0 0 0 2px var(--acc)}
html body .esp .esp-c[aria-pressed="true"] b{color:var(--acc)}
html body .esp-pays{display:flex;flex-wrap:wrap;gap:10px}
html body .esp .esp-p{all:unset;box-sizing:border-box;cursor:pointer;display:inline-flex;align-items:center;gap:10px;height:42px;padding:0 16px 0 12px;border-radius:999px;
  box-shadow:inset 0 0 0 1px rgba(var(--tn),.2);font:700 11px/1 var(--mono);letter-spacing:.18em;text-transform:uppercase;color:var(--fg);transition:box-shadow .25s,background .25s}
html body .esp .esp-p svg{flex:none;width:24px;height:16px;border-radius:3px;box-shadow:0 0 0 1px rgba(var(--tn),.25)}
html body .esp .esp-p:hover{box-shadow:inset 0 0 0 1px rgba(var(--accr),.6)}
html body .esp .esp-p[aria-pressed="true"]{background:var(--acc);color:var(--accfg);box-shadow:none}
html body .esp :is(.esp-c,.esp-p):focus-visible{outline:2px solid var(--acc);outline-offset:3px}
html body .esp .esp-go{justify-self:start}
html body .esp .esp-go:disabled{opacity:.45;cursor:not-allowed;filter:none}
html body .esp-hint{margin:-12px 0 0;min-height:1.2em;color:var(--mut);font-size:15px}

/* ---------- résultat ---------- */
html body .esp-out{scroll-margin-top:90px;display:grid;gap:18px;max-width:860px}
html body .esp-from{margin:0;color:var(--fg2)}
html body .esp-from a{color:var(--acc);font-weight:600}
html body .esp-card{position:relative;isolation:isolate;overflow:hidden;padding:clamp(26px,5vw,52px);border-radius:30px;color:#f2ede3;
  background:radial-gradient(110% 60% at 0% 0%,color-mix(in srgb,color-mix(in srgb,var(--acc),#000 20%) 38%,transparent),transparent 62%),radial-gradient(90% 55% at 100% 100%,color-mix(in srgb,color-mix(in srgb,var(--acc),#000 45%) 34%,transparent),transparent 62%),#070506;
  box-shadow:inset 0 0 0 1px rgba(242,237,227,.1),0 40px 90px -40px rgba(0,0,0,.9);animation:espIn .6s cubic-bezier(.16,.84,.24,1) both}
@keyframes espIn{from{opacity:0;translate:0 22px}to{opacity:1;translate:0 0}}
/* anneaux du canon en filigrane */
html body .esp-card::before{content:"";position:absolute;z-index:-1;width:620px;aspect-ratio:1;right:-300px;top:-300px;border-radius:50%;pointer-events:none;
  background:repeating-radial-gradient(circle,transparent 0 26px,rgba(242,237,227,.05) 26px 27px)}
html body .esp-flag{display:flex;margin-bottom:18px}
html body .esp-flag svg{display:block;width:42px;height:28px;border-radius:4px;box-shadow:0 0 0 1px rgba(242,237,227,.25)}
html body .esp-k{margin:0 0 clamp(22px,4vw,40px);font:700 11px/1.5 var(--mono);letter-spacing:.24em;text-transform:uppercase;color:#a39b8e}
html body .esp-intro{margin:0;font:italic 500 clamp(20px,2.6vw,28px)/1 var(--disp);color:#f2ede3}
html body .esp-card .esp-name{margin:.18em 0 0;font:italic 700 clamp(44px,8vw,96px)/.98 var(--disp)!important;letter-spacing:-.01em;color:#f2ede3;text-shadow:0 8px 40px rgba(0,0,0,.6);overflow-wrap:anywhere}
html body .esp-card .esp-name{text-transform:none}
html body .esp-name .n1{display:block;color:var(--acc)!important}
html body .esp-name .n2{display:block;font-weight:600;font-size:.72em;color:#f2ede3!important}
html body .esp-mat{display:flex;align-items:baseline;gap:16px;margin:clamp(22px,4vw,36px) 0 clamp(22px,4vw,34px)}
html body .esp-mat small{font:700 12px/1 var(--mono);letter-spacing:.28em;text-transform:uppercase;color:var(--acc)}
html body .esp-mat b{font:700 clamp(48px,7vw,80px)/1 var(--disp);color:#f2ede3;font-variant-numeric:lining-nums}
html body .esp-dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 28px;margin:0;padding-top:24px;border-top:1px solid rgba(242,237,227,.16)}
html body .esp-dl dt{font:700 11px/1 var(--mono);letter-spacing:.24em;text-transform:uppercase;color:var(--acc);margin-bottom:8px}
html body .esp-dl dd{margin:0;font:500 17px/1.45 var(--cond,Jost,system-ui,sans-serif);color:#f2ede3}
@media (max-width:600px){html body .esp-dl{grid-template-columns:1fr}}
html body .esp-act{display:flex;flex-wrap:wrap;gap:10px}
html body .esp-act .btn{font-size:15px;padding:14px 20px}
html body .esp-act .btn[aria-pressed="true"]{background:rgba(var(--accr),.14);color:var(--acc);border-color:var(--acc)}
html body .esp-msg{margin:0;min-height:1.3em;color:var(--fg2);font-size:15px}
@media (max-width:600px){html body .esp-act{display:grid;grid-template-columns:1fr 1fr}html body .esp-act .btn{font-size:12.5px;letter-spacing:.06em;padding:14px 8px;white-space:nowrap}html body .esp-act .btn:is([data-a="share"],[data-a="img"]){grid-column:1/-1}}
@media (prefers-reduced-motion:reduce){html body .esp-card{animation:none}html body .esp .esp-c{transition:none}}

/* ---------- Une seule page, sans défiler (2026-11) ----------
   En-tête compacté ; sur ordinateur, formulaire à gauche et dossier à droite (un dossier « scellé » garde la place
   tant qu'aucun nom n'est tiré : rien ne bouge quand il s'ouvre) ; sur téléphone, le formulaire se replie
   en une ligne une fois le dossier ouvert. Les tailles suivent la hauteur de l'écran (vh). */
html body #main .esp-pg{padding-top:clamp(10px,2.4vh,26px)}
html body #main .esp-pg .phd{display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:18px;padding-block:clamp(8px,1.6vh,18px) clamp(12px,2.2vh,22px);margin-bottom:clamp(14px,2.6vh,28px)}
html body #main .esp-pg .phd > *{grid-column:1/-1}
html body #main .esp-pg .phd .h1{grid-column:1;margin:clamp(4px,1vh,10px) 0 0;font-size:clamp(34px,min(5.4vw,7.4vh),68px)!important;line-height:1!important}
html body #main .esp-pg .phd .bx-file{grid-column:2;justify-self:start;margin:clamp(4px,1vh,10px) 0 0}
html body #main .esp-pg .phd .intro{margin:clamp(6px,1.2vh,12px) 0 0;max-width:none;font-size:clamp(14px,1.9vh,17px)!important;line-height:1.45}
html body #main .esp-pg .strip{display:none}
html body #main .esp-pg .esp{margin-bottom:clamp(20px,4vh,48px)}
html body .esp-sum{display:none}

/* Dossier scellé (avant le premier tirage) */
html body .esp-card.is-vide{animation:none}
/* texte caviardé : des bandes à la place des lettres */
html body .esp-card.is-vide :is(.esp-name .n1,.esp-name .n2,.esp-mat b,.esp-dl dd){width:fit-content;color:transparent!important;text-shadow:none;border-radius:4px;
  background:rgba(242,237,227,.1);-webkit-box-decoration-break:clone;box-decoration-break:clone}
html body .esp-card.is-vide .esp-name .n1{background:rgba(var(--accr),.28)}
html body .esp-card.is-vide .esp-name .n2{margin-top:.12em}
html body .esp-card.is-vide .esp-seal{position:absolute;right:clamp(18px,3vw,34px);top:clamp(18px,3vw,34px);rotate:-8deg;padding:8px 14px;border:2px solid var(--acc);border-radius:6px;
  font:700 12px/1 var(--mono);letter-spacing:.3em;text-transform:uppercase;color:var(--acc);opacity:.85}
html body .esp-out.is-vide .esp-act{visibility:hidden}
html body .esp-out.is-vide .esp-msg{display:none}

/* Apparition douce : opacité et translation seulement (pas de saut de mise en page, fluide sur Safari) */
@keyframes espUp{from{opacity:0;transform:translate3d(0,14px,0)}to{opacity:1;transform:none}}
html body #main .esp-pg .esp > *{animation:espUp .7s cubic-bezier(.16,.84,.24,1) both}
html body #main .esp-pg .esp > .esp-f{animation-delay:.08s}
html body #main .esp-pg .esp > .esp-out{animation:none}
html body #main .esp-pg .esp-out > *{animation:espUp .7s cubic-bezier(.16,.84,.24,1) .2s both}
html body #main .esp-pg .esp-k{font-size:11px!important}
html body #main .esp-pg :is(.esp-msg,.esp-hint){font-size:14px!important}
html body .esp-card{will-change:auto}
html body .esp-name{min-height:1.9em}

/* Ordinateur et tablette en largeur : côte à côte */
@media (min-width:900px){
  /* le dossier occupe toute la colonne de droite ; ses boutons passent sous le formulaire, à gauche */
  html body #main .esp-pg .esp{grid-template-columns:minmax(300px,380px) minmax(0,1fr);grid-template-rows:auto auto auto auto 1fr;column-gap:clamp(28px,4vw,56px);row-gap:0;align-items:start}
  html body #main .esp-pg .esp-out{display:contents}
  html body #main .esp-pg .esp-f{grid-column:1;grid-row:1}
  html body #main .esp-pg .esp-card{grid-column:2;grid-row:1/-1}
  html body #main .esp-pg .esp-from{grid-column:1;grid-row:2;margin-top:clamp(14px,2.4vh,24px)!important}
  html body #main .esp-pg .esp-act{grid-column:1;grid-row:3;margin-top:clamp(14px,2.4vh,24px);padding-top:clamp(14px,2.4vh,24px);border-top:1px solid rgba(var(--tn),.14);display:grid;grid-template-columns:1fr 1fr;gap:8px}
  html body #main .esp-pg .esp-msg{grid-column:1;grid-row:4;margin-top:8px!important}
  html body #main .esp-pg .esp-out.is-vide .esp-act{display:none}
  html body #main .esp-pg .esp-f{gap:clamp(12px,2.2vh,22px)}
  html body #main .esp-pg .esp-f legend{margin-bottom:clamp(6px,1.1vh,12px)}
  html body #main .esp-pg .esp .esp-c{padding:clamp(8px,1.4vh,14px) 16px;gap:4px;border-radius:16px}
  html body #main .esp-pg .esp .esp-c b{font-size:clamp(24px,3.6vh,34px)!important}
  html body #main .esp-pg .esp-pays{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  html body #main .esp-pg .esp .esp-p{height:clamp(36px,4.6vh,42px)}
  html body #main .esp-pg .esp-hint{margin:-6px 0 0}
  html body #main .esp-pg .esp-out{gap:clamp(10px,1.6vh,16px);max-width:none}
  html body #main .esp-pg .esp-card{padding:clamp(20px,3.2vh,34px) clamp(24px,2.6vw,38px);border-radius:26px}
  html body #main .esp-pg .esp-flag{margin-bottom:clamp(8px,1.4vh,14px)}
  html body #main .esp-pg .esp-k{margin-bottom:clamp(10px,2vh,22px)}
  html body #main .esp-pg .esp-intro{font-size:clamp(17px,2.4vh,24px)!important}
  html body #main .esp-pg .esp-card .esp-name{font-size:clamp(34px,min(4.4vw,7vh),70px)!important}
  html body #main .esp-pg .esp-mat{margin:clamp(10px,1.8vh,20px) 0 clamp(10px,1.8vh,20px)}
  html body #main .esp-pg .esp-mat b{font-size:clamp(34px,5.4vh,58px)!important}
  html body #main .esp-pg .esp-dl{gap:clamp(10px,1.6vh,16px) 24px;padding-top:clamp(12px,2vh,20px)}
  html body #main .esp-pg .esp-dl dt{margin-bottom:6px}
  html body #main .esp-pg .esp-dl dd{font-size:clamp(14px,1.9vh,16px)!important;line-height:1.35}
  html body #main .esp-pg .esp-act .btn{font-size:12px!important;letter-spacing:.06em!important;padding:clamp(9px,1.4vh,12px) 6px!important;text-align:center;justify-content:center;white-space:nowrap}
  html body #main .esp-pg .esp-from{font-size:14px!important}
}

/* Téléphone : tout serré ; le formulaire se replie en une ligne une fois le dossier ouvert */
@media (max-width:899.98px){
  html body #main .esp-pg .phd{column-gap:12px}
  html body #main .esp-pg .phd .h1{font-size:clamp(28px,8.4vw,40px)!important}
  html body #main .esp-pg .phd .bx-file{padding:5px 9px;font-size:10px!important}
  html body #main .esp-pg .phd .intro{font-size:13.5px!important;line-height:1.4}
  html body #main .esp-pg .esp{gap:14px}
  html body #main .esp-pg .esp-f{gap:14px}
  html body #main .esp-pg .esp-f legend{margin-bottom:8px;font-size:11px!important}
  html body #main .esp-pg .esp-civ{gap:8px;max-width:none}
  html body #main .esp-pg .esp .esp-c{padding:8px 14px;gap:2px;border-radius:14px}
  html body #main .esp-pg .esp .esp-c b{font-size:26px!important}
  html body #main .esp-pg .esp .esp-c span{font-size:9.5px!important}
  html body #main .esp-pg .esp-pays{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  html body #main .esp-pg .esp .esp-p{height:36px;padding:0 6px;gap:6px;justify-content:center;font-size:9.5px!important;letter-spacing:.06em}
  html body #main .esp-pg .esp .esp-p svg{width:18px;height:12px}
  html body #main .esp-pg .esp .esp-go{justify-self:stretch;text-align:center;justify-content:center}
  html body #main .esp-pg .esp-hint{margin:-8px 0 0;font-size:13px!important}
  html body #main .esp-pg .esp-out.is-vide{display:none}
  html body #main .esp-pg .esp-out{gap:10px;scroll-margin-top:70px}
  html body #main .esp-pg .esp-from{font-size:13px!important}
  html body #main .esp-pg .esp-card{padding:18px 18px 20px;border-radius:22px}
  html body #main .esp-pg .esp-card::before{width:420px;right:-220px;top:-220px}
  html body #main .esp-pg .esp-flag{margin-bottom:10px}
  html body #main .esp-pg .esp-flag svg{width:33px;height:22px}
  html body #main .esp-pg .esp-k{margin-bottom:12px;font-size:9.5px!important;letter-spacing:.18em}
  html body #main .esp-pg .esp-intro{font-size:17px!important}
  html body #main .esp-pg .esp-card .esp-name{font-size:clamp(30px,9.6vw,40px)!important}
  html body #main .esp-pg .esp-mat{margin:10px 0 12px;gap:12px}
  html body #main .esp-pg .esp-mat small{font-size:10px!important}
  html body #main .esp-pg .esp-mat b{font-size:34px!important}
  html body #main .esp-pg .esp-dl{grid-template-columns:1fr 1fr;gap:10px 16px;padding-top:12px}
  html body #main .esp-pg .esp-dl dt{font-size:9.5px!important;letter-spacing:.18em;margin-bottom:4px}
  html body #main .esp-pg .esp-dl dd{font-size:13px!important;line-height:1.3}
  html body #main .esp-pg .esp-act{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  html body #main .esp-pg .esp-act .btn{font-size:10px!important;letter-spacing:.04em;padding:10px 4px;white-space:normal;line-height:1.15;text-align:center;justify-content:center}
  html body #main .esp-pg .esp-act .btn:is([data-a="share"],[data-a="img"]){grid-column:auto}
  html body #main .esp-pg .esp-msg{font-size:13px!important}
  /* repli du formulaire */
  html body #main .esp-pg .esp.is-open .esp-f{display:none}
  html body #main .esp-pg .esp.is-open .esp-sum{all:unset;box-sizing:border-box;cursor:pointer;display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:999px;
    box-shadow:inset 0 0 0 1px rgba(var(--tn),.2);font:700 10.5px/1 var(--mono);letter-spacing:.16em;text-transform:uppercase;color:var(--fg)}
  html body #main .esp-pg .esp-sum svg{flex:none;width:20px;height:13px;border-radius:2px}
  html body #main .esp-pg .esp-sum em{margin-left:auto;font-style:normal;color:var(--acc)}
  html body #main .esp-pg .esp-sum:focus-visible{outline:2px solid var(--acc);outline-offset:3px}
}
@media (prefers-reduced-motion:reduce){html body #main .esp-pg :is(.esp > *,.esp-out > *){animation:none!important}}
@media (max-width:899.98px){
  html body #main .esp-pg .phd{grid-template-columns:1fr auto}
  html body #main .esp-pg .phd .ariane{grid-column:1;grid-row:1}
  html body #main .esp-pg .phd .bx-file{grid-column:2;grid-row:1;margin:0}
  html body #main .esp-pg .phd .h1{grid-column:1/-1;white-space:nowrap}
  html body #main .esp-pg:has(.esp.is-open) .phd .intro{display:none}
}
html body #main .esp-pg .phd .crumbs{margin:0}
@media (max-width:899.98px){
  html body #main .esp-pg .phd .crumbs{font-size:10.5px!important;letter-spacing:.14em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  html body #main .esp-pg .esp .esp-p{font-size:9.5px!important;letter-spacing:.05em!important}
  html body #main .esp-pg .esp-act .btn{font-size:10px!important;letter-spacing:.03em!important;padding:9px 4px!important;min-height:0!important;height:auto!important}
}
@media (min-width:900px){
  html body #main .esp-pg .esp .esp-p{height:clamp(34px,4.6vh,42px)!important;min-height:0!important;padding-block:0!important}
  html body #main .esp-pg .esp-act .btn{height:clamp(34px,4.4vh,42px)!important;min-height:0!important;padding-block:0!important;display:inline-flex;align-items:center}
  html body #main .esp-pg .esp .esp-go{min-height:0!important;padding-block:clamp(10px,1.6vh,14px)!important}
}
@media (max-width:899.98px){
  html body #main .esp-pg .phd .crumbs{display:none}
  html body #main .esp-pg .phd .h1{grid-column:1;grid-row:1;font-size:clamp(24px,7vw,34px)!important;margin:0}
  html body #main .esp-pg .phd .bx-file{grid-row:1}
  html body #main .esp-pg .phd{padding-block:6px 14px;margin-bottom:14px}
  html body #main .esp-pg .esp .esp-p{height:34px!important;min-height:0!important;padding-block:0!important}
  html body #main .esp-pg .esp-act .btn{height:40px!important;display:inline-flex;align-items:center}
  html body #main .esp-pg .esp-card .esp-name{font-size:clamp(28px,8.6vw,36px)!important}
  html body #main .esp-pg .esp-intro{font-size:15px!important}
  html body #main .esp-pg .esp-mat b{font-size:30px!important}
}
@media (max-width:899.98px){
  html body #main .esp-pg .phd{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
  html body #main .esp-pg .phd .h1{white-space:normal}
  html body #main .esp-pg .phd .intro{flex-basis:100%}
}
