/* Stagyy app : éditeur « Mon CV » (interface) et feuilles de CV (9 modèles). */

/* ================================================================ interface */
.boot-inline{padding:48px 0;text-align:center;color:var(--muted)}
.msg.warn-soft{background:color-mix(in srgb,var(--sun) 28%,transparent);border-color:transparent;color:var(--text);margin:0}

/* écran de départ */
.start{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.9fr);gap:clamp(20px,4vw,48px);align-items:center;overflow:hidden}
.start-copy h2{font-size:clamp(28px,3.4vw,40px);letter-spacing:-.03em}
.start-opt{display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:14px 16px;border:2px solid var(--line);border-radius:20px;background:var(--surface);cursor:pointer;transition:border-color .15s,transform .15s,box-shadow .15s}
.start-opt:hover{border-color:var(--edge);transform:translateY(-2px);box-shadow:0 6px 0 -2px var(--edge)}
.start-opt.primary{background:var(--cobalt);border-color:var(--edge);color:#fff;box-shadow:4px 4px 0 var(--edge)}
.start-opt.primary:hover{box-shadow:6px 6px 0 var(--edge);transform:translate(-2px,-2px)}
.start-opt .grow{display:grid;gap:2px;min-width:0}
.start-opt .grow b{font-size:17px}
.start-opt .grow span{font-size:14px;opacity:.78}
.start-opt.primary .grow span{opacity:1}
.start-opt>svg{width:20px;height:20px;flex:none;opacity:.7}
.start-ic{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:var(--soft);flex:none}
.start-ic svg{width:22px;height:22px}
.start-opt.primary .start-ic{background:rgba(255,255,255,.18)}
.start-fan{position:relative;height:clamp(250px,32vw,360px);min-width:0}
.fan-card{position:absolute;bottom:0;width:44%;aspect-ratio:794/1123;border-radius:6px;overflow:hidden;background:#fff;box-shadow:0 14px 34px rgba(15,26,58,.22),0 0 0 1px rgba(15,26,58,.08);transition:transform .35s cubic-bezier(.3,.7,.2,1)}
.fan-card.f0{left:2%;transform:rotate(-7deg) translateY(10px);z-index:1}
.fan-card.f1{left:28%;transform:translateY(-6px);z-index:3}
.fan-card.f2{right:2%;transform:rotate(7deg) translateY(10px);z-index:2}
.start:hover .fan-card.f0{transform:rotate(-10deg) translate(-8px,6px)}
.start:hover .fan-card.f2{transform:rotate(10deg) translate(8px,6px)}

/* barre d'état */
.cv-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin-top:-8px}
.cv-bar .pdf-hint{flex:1;min-width:200px}
.save-state{white-space:nowrap;flex:none;display:inline-flex;align-items:center;gap:8px;border:0;background:var(--soft);color:var(--text);border-radius:999px;padding:7px 14px 7px 12px;font-weight:600;font-size:14px;cursor:pointer}
.save-state::before{content:"";width:9px;height:9px;border-radius:50%;background:var(--ok)}
.save-state[data-s="dirty"]::before,.save-state[data-s="saving"]::before{background:var(--sun);box-shadow:0 0 0 0 color-mix(in srgb,var(--sun) 60%,transparent);animation:pulse 1.2s ease-out infinite}
.save-state[data-s="error"]{background:color-mix(in srgb,var(--coral) 16%,transparent);color:var(--coral)}
.save-state[data-s="error"]::before{background:var(--coral)}
@keyframes pulse{70%{box-shadow:0 0 0 7px transparent}100%{box-shadow:0 0 0 0 transparent}}
.cv-tabs{display:none;min-width:220px}

/* mise en page éditeur + aperçu */
.cv-layout{display:grid;grid-template-columns:minmax(0,500px) minmax(0,1fr);gap:28px;align-items:start}
.cv-editor{display:grid;gap:14px;min-width:0}
.cv-previewcol{position:sticky;top:16px;display:grid;gap:10px;min-width:0}
.cv-stage{position:relative;background:var(--soft);border-radius:24px;padding:clamp(12px,2vw,22px);overflow:auto;max-height:calc(100vh - 110px)}
.cv-stage:focus-visible{outline:3px solid var(--cobalt);outline-offset:2px}
.cv-stage.zoomed{overflow:auto;cursor:grab;scrollbar-width:none;overscroll-behavior:contain}
.cv-stage.zoomed::-webkit-scrollbar{display:none}
.cv-stage.panning,.cv-stage.panning *{cursor:grabbing;user-select:none}
.pan-hint{margin:0 0 0 auto;align-self:center}
.pan-hint[hidden]{display:none}
.cv-box{position:relative;width:100%;margin:0 auto;box-shadow:0 18px 40px rgba(15,26,58,.2),0 0 0 1px rgba(15,26,58,.07);background:#fff;border-radius:3px;overflow:hidden}
.cv-box>.cv-sheet{position:absolute;left:0;top:0;transform-origin:0 0}
.page-mark{position:absolute;left:clamp(12px,2vw,22px);right:clamp(12px,2vw,22px);border-top:2px dashed var(--coral);pointer-events:none}
.zoom-btn{margin-left:auto}
.pan-hint:not([hidden])~.zoom-btn{margin-left:12px}

/* apparence */
.cv-look h2{font-size:21px}
.tpls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.tpl{position:relative;display:grid;gap:8px;justify-items:center;cursor:pointer}
.tpl input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.tpl-mini{display:block;width:100%;border-radius:8px;border:2px solid var(--line);background:var(--soft);padding:6px;transition:border-color .15s,transform .15s,box-shadow .15s}
.tpl:hover .tpl-mini{transform:translateY(-2px)}
.tpl input:checked~.tpl-mini{border-color:var(--edge);box-shadow:3px 3px 0 var(--shadow)}
.tpl input:focus-visible~.tpl-mini{outline:3px solid var(--cobalt);outline-offset:2px}
.tpl-name{font-weight:700;font-size:14.5px}
.tpl-tag{position:absolute;top:4px;right:4px;background:var(--sun);color:#0F1A3A;font-weight:800;font-size:11px;line-height:1;padding:4px 7px;border-radius:999px;pointer-events:none}
.tpl.locked .tpl-mini{opacity:.78}
.tpl-tag[hidden],.tpl .sr-only[hidden]{display:none}
.tpl.locked{cursor:pointer}
.tpl input:checked~.tpl-name{color:var(--link)}
.cv-mini{position:relative;width:100%;aspect-ratio:794/1123;background:#fff;overflow:hidden;border-radius:2px;pointer-events:none}
.cv-mini>.cv-sheet{position:absolute;left:0;top:0;transform-origin:0 0}
.swatches{display:flex;flex-wrap:wrap;gap:10px}
.sw{position:relative;display:inline-block}
.sw input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.sw-dot{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;border:3px solid var(--surface);box-shadow:0 0 0 2px var(--line);background:var(--c);color:#fff;transition:box-shadow .15s,transform .15s}
.sw-dot svg{width:16px;height:16px;opacity:0;transform:scale(.6);transition:.15s}
.sw:hover .sw-dot{transform:scale(1.08)}
.sw input:checked~.sw-dot{box-shadow:0 0 0 3px var(--edge)}
.sw input:checked~.sw-dot svg{opacity:1;transform:none}
.sw input:focus-visible~.sw-dot{outline:3px solid var(--cobalt);outline-offset:3px}
.sw[data-c="cobalt"]{--c:#3342F5}.sw[data-c="ink"]{--c:#1B2340}.sw[data-c="wine"]{--c:#7A1F3D}.sw[data-c="forest"]{--c:#1F5C4A}.sw[data-c="gold"]{--c:#C98F14}
.photo-row{display:flex;gap:16px;align-items:center}
.photo-thumb{width:84px;height:84px;flex:none;border-radius:50%;overflow:hidden;background:var(--soft);display:grid;place-items:center;color:var(--muted);border:2px dashed var(--line)}
.photo-thumb img{width:100%;height:100%;object-fit:cover}
.photo-thumb svg{width:30px;height:30px}
.photo-thumb:has(img){border:3px solid var(--surface);box-shadow:0 0 0 2px var(--edge)}
.photo-actions{min-width:0}

/* sections repliables */
details.acc{padding:0;overflow:hidden}
details.acc>summary,details.entry>summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;min-height:56px;padding:0 18px;font-weight:700}
details.acc>summary::-webkit-details-marker,details.entry>summary::-webkit-details-marker{display:none}
.acc-t{font:800 20px/1 var(--display);font-variation-settings:"wdth" 84;letter-spacing:-.02em;flex:1}
.acc-n{background:var(--sun);color:#0F1A3A;border-radius:999px;font-size:12.5px;font-weight:800;padding:3px 9px}
.acc-c{display:grid;place-items:center;color:var(--muted);transition:transform .2s}
.acc-c svg{width:18px;height:18px}
details[open]>summary .acc-c{transform:rotate(180deg)}
.acc-b{padding:4px 18px 20px}
details.entry{border:1.5px solid var(--line);border-radius:16px;background:var(--paper)}
details.entry>summary{min-height:50px;font-size:15.5px}
.entry-t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.entry-b{padding:4px 14px 14px}
.entry-actions{justify-content:flex-start}
.entry-actions .push{margin-left:auto}
.add-entry{justify-self:start}
.lang-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:10px;align-items:end}
.tagbox{display:flex;flex-wrap:wrap;gap:8px}
.tagbox:empty{display:none}
.tagbox li{display:inline-flex;align-items:center;gap:4px;background:var(--soft);border-radius:999px;padding:4px 4px 4px 12px;font-weight:600;font-size:14.5px;max-width:100%}
.tagbox li span{overflow:hidden;text-overflow:ellipsis}
.tagbox button{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;border:0;background:transparent;cursor:pointer;color:var(--muted)}
.tagbox button:hover{background:var(--surface);color:var(--coral)}
.tagbox button svg{width:13px;height:13px}
.tag-add{display:flex;gap:8px}
.tag-add input{flex:1;min-width:0}

/* import */
.drop{display:grid;justify-items:center;gap:6px;text-align:center;padding:30px 18px;border:2.5px dashed var(--line);border-radius:22px;background:var(--paper);cursor:pointer;transition:border-color .15s,background .15s}
.drop svg{width:34px;height:34px;color:var(--cobalt)}
.drop:hover,.drop.over,.drop:focus-within{border-color:var(--cobalt);background:var(--soft)}
.drop.has{border-style:solid;border-color:var(--ok)}
.drop.has svg{color:var(--ok)}
.drop b{overflow-wrap:anywhere}
.dlg-actions .push{margin-right:auto}

/* cadrage photo */
.crop-wrap{display:grid;place-items:center}
.crop-canvas{width:min(280px,100%);aspect-ratio:1;border-radius:50%;background:var(--soft);cursor:grab;touch-action:none;box-shadow:0 0 0 3px var(--edge)}
.crop-canvas:active{cursor:grabbing}
input[type=range]{width:100%;accent-color:var(--cobalt);min-height:32px}

/* ================================================================ feuille de CV */
.cv-sheet{--fs:13px;--ink:#1d2236;--soft:#5b6380;--ac:#3342F5;--ac2:#ECEEFB;
  box-sizing:border-box;width:794px;min-height:1123px;background:#fff;color:var(--ink);text-align:left;
  font:400 var(--fs)/1.5 "Figtree",system-ui,sans-serif;-webkit-print-color-adjust:exact;print-color-adjust:exact;font-variant-numeric:lining-nums}
.cv-sheet[data-accent="cobalt"]{--ac:#3342F5;--ac2:#ECEEFB}
.cv-sheet[data-accent="ink"]{--ac:#1B2340;--ac2:#EDEFF5}
.cv-sheet[data-accent="wine"]{--ac:#7A1F3D;--ac2:#F7ECEF}
.cv-sheet[data-accent="forest"]{--ac:#1F5C4A;--ac2:#E8F3EE}
.cv-sheet[data-accent="gold"]{--ac:#8A5F07;--ac2:#FBF1DA}
.cv-sheet *,.cv-sheet *::before,.cv-sheet *::after{box-sizing:border-box}
.cv-sheet h1,.cv-sheet h2,.cv-sheet p,.cv-sheet ul,.cv-sheet article,.cv-sheet section,.cv-sheet header,.cv-sheet aside{margin:0;padding:0;list-style:none}
.cv-sheet svg{display:block;width:1em;height:1em;flex:none}
.cv-sheet img{display:block;width:100%;height:100%;object-fit:cover}
.cv-sheet .cv-name{font:800 2.55em/1.02 "Bricolage Grotesque","Figtree",sans-serif;font-variation-settings:"wdth" 88;letter-spacing:-.025em;overflow-wrap:anywhere}
.cv-sheet .cv-job{margin-top:.4em;font-weight:600;font-size:1.2em;color:var(--ac)}
.cv-sheet .cv-sec{margin-top:1.55em}
.cv-sheet .cv-sec h2{font:800 1.05em/1.1 "Bricolage Grotesque","Figtree",sans-serif;font-variation-settings:"wdth" 88;letter-spacing:.01em;margin-bottom:.7em}
.cv-sheet .cv-item{break-inside:avoid;margin-top:.95em}
.cv-sheet .cv-item:first-of-type{margin-top:0}
.cv-sheet .cv-item-top{display:flex;justify-content:space-between;align-items:baseline;gap:1em}
.cv-sheet .cv-role{font-weight:700;font-size:1.06em;overflow-wrap:anywhere}
.cv-sheet .cv-dates{color:var(--soft);font-size:.92em;white-space:nowrap;font-weight:500}
.cv-sheet .cv-sub{color:var(--soft);margin-top:.05em}
.cv-sheet .cv-det,.cv-sheet .cv-sum,.cv-sheet .cv-int{margin-top:.2em;overflow-wrap:anywhere;white-space:pre-line}
.cv-sheet .cv-sum{margin-top:0}
.cv-sheet .cv-bul{margin-top:.4em;display:grid;gap:.22em}
.cv-sheet .cv-bul li{position:relative;padding-left:1.1em;overflow-wrap:anywhere}
.cv-sheet .cv-bul li::before{content:"";position:absolute;left:.12em;top:.62em;width:.36em;height:.36em;border-radius:50%;background:var(--ac)}
.cv-sheet .cv-contact{display:flex;flex-wrap:wrap;gap:.45em 1.3em;color:var(--soft)}
.cv-sheet .cv-contact li{display:flex;align-items:center;gap:.5em;min-width:0}
.cv-sheet .cv-contact span{overflow-wrap:anywhere}
.cv-sheet .cv-contact svg{box-sizing:content-box;width:1em;height:1em;padding:.36em;border-radius:50%;background:var(--ac2);color:var(--ac)}
.cv-sheet .cv-langs{display:grid;gap:.3em}
.cv-sheet .cv-langs li{display:flex;justify-content:space-between;gap:.8em}
.cv-sheet .cv-langs span{color:var(--soft)}
.cv-sheet .cv-chips{display:flex;flex-wrap:wrap;gap:.4em .45em}

/* cv-templates-v23 : 9 modèles, chacun avec sa propre place pour la photo */
.cv-sheet[data-accent="teal"]{--ac:#0B737C;--ac2:#E1F3F4}
.cv-sheet[data-accent="coral"]{--ac:#B53A25;--ac2:#FCEAE5}
.sw[data-c="teal"]{--c:#0E7C86}.sw[data-c="coral"]{--c:#D4553E}
.cv-sheet img{object-position:50% 28%}
.cv-sheet .cv-photo{flex:none;background:var(--ac2)}

/* ---- 1. Classique : bandeau fin, photo ronde à double filet, dates en pastilles ---- */
.cv-sheet.t-classic{padding:0 0 2.6em}
.cv-sheet.t-classic::before{content:"";display:block;height:.8em;background:var(--ac)}
.t-classic .cv-head{display:flex;align-items:center;justify-content:space-between;gap:2em;padding:2.4em 3.8em 1.5em}
.t-classic .cv-id{min-width:0}
.t-classic .cv-name{font-size:2.7em}
.t-classic .cv-job{font-size:1.25em}
.t-classic .cv-contact{margin-top:1.05em}
.t-classic .cv-photo{width:8.6em;height:8.6em;border-radius:50%;overflow:hidden;box-shadow:0 0 0 .2em #fff,0 0 0 .34em var(--ac),0 .5em 1.1em rgba(15,26,58,.14)}
.t-classic>.cv-sec,.t-classic>.cv-cols{margin-left:3.8em;margin-right:3.8em}
.t-classic .cv-sec{margin-top:1.45em}
.t-classic .cv-sec h2{display:flex;align-items:center;gap:.8em;color:var(--ac);font:800 .92em/1.1 "Figtree",sans-serif;letter-spacing:.15em;text-transform:uppercase;margin-bottom:.85em}
.t-classic .cv-sec h2::after{content:"";flex:1;height:1px;background:var(--ac);opacity:.32}
.t-classic .cv-role{font-size:1.08em}
.t-classic .cv-dates{background:var(--ac2);color:var(--ac);padding:.14em .75em;border-radius:99px;font-weight:700;font-size:.84em}
.t-classic .cv-cols{display:grid;grid-template-columns:1fr 1fr;gap:0 2.8em}
.t-classic .cv-cols .cv-sec{margin-left:0;margin-right:0}
.t-classic .cv-chips li{background:var(--ac2);color:var(--ac);padding:.24em .8em;border-radius:99px;font-weight:600;font-size:.96em}

/* ---- 2. Moderne : colonne colorée, portrait pleine largeur qui se fond dans la couleur ---- */
.cv-sheet.t-modern{display:grid;grid-template-columns:17em minmax(0,1fr)}
.t-modern .cv-side{position:relative;overflow:hidden;background:var(--ac);color:#fff;padding:3em 1.7em 2.6em;display:grid;gap:0;align-content:start}
.t-modern.has-photo .cv-side{padding-top:0}
.t-modern .cv-side::before{content:"";position:absolute;right:-5.5em;bottom:9em;width:13em;height:13em;border-radius:50%;background:rgba(255,255,255,.08)}
.t-modern .cv-side::after{content:"";position:absolute;left:-7em;bottom:-7em;width:15em;height:15em;border-radius:50%;background:rgba(255,255,255,.07)}
.t-modern .cv-side>*{position:relative;z-index:1}
.t-modern .cv-photo{margin:0 -1.7em 1.7em;aspect-ratio:1/1.12;border-radius:0;overflow:hidden;background:rgba(255,255,255,.18)}
.t-modern .cv-photo img{position:absolute;inset:0}
.t-modern .cv-photo::after{content:"";position:absolute;left:0;right:0;bottom:0;height:36%;background:linear-gradient(to top,var(--ac),transparent)}
.t-modern .cv-side .cv-sec{margin-top:1.9em}
.t-modern .cv-side .cv-sec:first-child{margin-top:0}
.t-modern .cv-side .cv-sec h2{position:relative;font:800 .8em/1 "Figtree",sans-serif;letter-spacing:.16em;text-transform:uppercase;color:rgba(255,255,255,.82);padding-bottom:1em;margin-bottom:1em}
.t-modern .cv-side .cv-sec h2::after{content:"";position:absolute;left:0;bottom:0;width:2.2em;height:.2em;border-radius:.2em;background:#fff}
.t-modern .cv-side .cv-contact{display:grid;gap:.7em;color:#fff}
.t-modern .cv-side .cv-contact svg{background:rgba(255,255,255,.18);color:#fff}
.t-modern .cv-side .cv-langs span{color:rgba(255,255,255,.82)}
.t-modern .cv-side .cv-chips li{background:rgba(255,255,255,.18);padding:.2em .75em;border-radius:99px;font-size:.94em;font-weight:600}
.t-modern .cv-side .cv-bul li::before{background:#fff}
.t-modern .cv-side .cv-int{color:#fff}
.t-modern .cv-main{padding:3em 2.8em 2.6em 2.6em;min-width:0}
.t-modern .cv-head{padding-bottom:.5em}
.t-modern .cv-name{font-size:2.8em}
.t-modern .cv-job{font-size:1.28em;margin-top:.5em}
.t-modern .cv-main .cv-sec h2{display:flex;align-items:center;gap:.65em;color:var(--ink);font-size:1.15em}
.t-modern .cv-main .cv-sec h2::before{content:"";width:.85em;height:.85em;border-radius:.28em;background:var(--ac)}
.t-modern .cv-main .cv-item{position:relative;padding-left:1.3em;border-left:.15em solid var(--ac2);margin-left:.35em}
.t-modern .cv-main .cv-item::before{content:"";position:absolute;left:-.43em;top:.32em;width:.7em;height:.7em;border-radius:50%;background:#fff;border:.18em solid var(--ac)}
.t-modern .cv-dates{color:var(--ac);font-weight:700;font-size:.88em}

/* ---- 3. Élégant : en-tête teinté, serif, photo en arche à double filet ---- */
.t-elegant .cv-head{position:relative;display:flex;align-items:flex-end;gap:2.3em;padding:3.2em 4em 2.2em;background:var(--ac2)}
.t-elegant .cv-head::after{content:"";position:absolute;left:4em;right:4em;bottom:0;height:1px;background:var(--ac);opacity:.35}
.t-elegant .cv-photo{width:8.6em;height:10.8em;border-radius:4.3em 4.3em .55em .55em;overflow:hidden;background:#fff;box-shadow:0 0 0 .24em var(--ac2),0 0 0 .34em var(--ac),0 .7em 1.3em rgba(15,26,58,.13);margin:.4em .4em 0}
.t-elegant .cv-id{min-width:0;flex:1}
.t-elegant .cv-name{font:600 3em/1 "Fraunces",Georgia,serif;letter-spacing:-.015em;font-variation-settings:normal}
.t-elegant .cv-job{font:italic 400 1.38em/1.2 "Fraunces",Georgia,serif;color:var(--ac);margin-top:.35em}
.t-elegant .cv-contact{margin-top:1.15em}
.t-elegant .cv-body{display:grid;grid-template-columns:minmax(0,1fr) 16.4em}
.t-elegant .cv-main{padding:1em 2.4em 2.8em 4em;min-width:0}
.t-elegant .cv-side{align-self:start;margin:1.9em 3em 2em 0;padding:.3em 1.5em 1.5em;background:var(--ac2);border-radius:1.2em;min-width:0}
.t-elegant .cv-sec h2{font:600 1.5em/1.1 "Fraunces",Georgia,serif;color:var(--ac);font-variation-settings:normal;letter-spacing:0;display:flex;align-items:center;gap:.5em}
.t-elegant .cv-sec h2::after{content:"";width:2.2em;height:2px;background:var(--ac);opacity:.5}
.t-elegant .cv-side .cv-sec h2{font-size:1.3em}
.t-elegant .cv-side .cv-sec h2::after{display:none}
.t-elegant .cv-item-top{align-items:flex-start;flex-direction:column;gap:0}
.t-elegant .cv-dates{order:2;font-size:.9em;font-style:italic}
.t-elegant .cv-role{font-size:1.1em}
.t-elegant .cv-chips{flex-direction:column;gap:.35em}
.t-elegant .cv-chips li{position:relative;padding-left:1.05em}
.t-elegant .cv-chips li::before{content:"";position:absolute;left:.1em;top:.55em;width:.4em;height:.4em;background:var(--ac);transform:rotate(45deg)}

/* ---- 4. Affiche : grand bandeau, photo en carré arrondi qui déborde sur le blanc ---- */
.cv-sheet.t-bold{padding:0}
.t-bold .cv-head{position:relative;display:flex;align-items:center;gap:2em;padding:3em 3.6em 3em;background:radial-gradient(circle at 94% -8%,rgba(255,255,255,.13) 0 9em,transparent 9.05em),radial-gradient(circle at 66% 125%,rgba(255,255,255,.09) 0 6.5em,transparent 6.55em),var(--ac);color:#fff;border-radius:0 0 2.4em 2.4em}
.t-bold.has-photo .cv-id{padding-right:11.6em}
.t-bold .cv-id{min-width:0}
.t-bold .cv-name{font-size:3.15em;line-height:.98;color:#fff}
.t-bold .cv-job{color:rgba(255,255,255,.94);font-size:1.3em;margin-top:.45em}
.t-bold .cv-contact{margin-top:1.2em;color:#fff}
.t-bold .cv-contact svg{background:rgba(255,255,255,.2);color:#fff}
.t-bold .cv-photo{position:absolute;right:3.6em;bottom:-3.9em;width:9.6em;height:11.4em;overflow:hidden;border-radius:1.5em;border:.32em solid #fff;box-shadow:.5em .5em 0 var(--ac2),0 .8em 1.4em rgba(15,26,58,.16)}
.t-bold .cv-body{display:grid;grid-template-columns:minmax(0,1fr) 15.6em;gap:0 2.4em;padding:2.2em 3.6em 2.6em}
.t-bold.has-photo .cv-side{margin-top:3.9em}
.t-bold .cv-main,.t-bold .cv-side{min-width:0}
.t-bold .cv-side{background:var(--ac2);border-radius:1.2em;padding:.5em 1.5em 1.7em;align-self:start}
.t-bold .cv-sec h2{display:inline-block;background:var(--ac);color:#fff;padding:.32em .85em;border-radius:.4em;font-size:.9em;letter-spacing:.07em;text-transform:uppercase}
.t-bold .cv-side .cv-sec h2{background:none;color:var(--ac);padding:0;font-size:1.1em;letter-spacing:.02em;text-transform:none}
.t-bold .cv-dates{background:var(--ac2);color:var(--ac);padding:.1em .7em;border-radius:99px;font-weight:700;font-size:.86em}
.t-bold .cv-side .cv-chips li{background:#fff;color:var(--ac);border:1.5px solid var(--ac);border-radius:.45em;padding:.12em .6em;font-weight:600}

/* ---- 5. Épuré : grille suisse, la photo tient dans la colonne des titres ---- */
.cv-sheet.t-minimal{padding:3.8em 4em 3em}
.t-minimal .cv-head{display:grid;grid-template-columns:9em minmax(0,1fr);column-gap:1.8em;align-items:start;padding-bottom:2em}
.t-minimal .cv-photo{grid-column:1;grid-row:1;width:9em;height:11.6em;border-radius:.35em;overflow:hidden;outline:1px solid var(--ac);outline-offset:.4em;margin:.4em 0 0 .4em;width:8.2em}
.t-minimal .cv-id{grid-column:2;grid-row:1;min-width:0}
.t-minimal.has-photo .cv-id{display:flex;flex-direction:column;min-height:12.4em}
.t-minimal.has-photo .cv-contact{margin-top:auto;padding-top:1.2em}
.t-minimal .cv-name{font:300 3.05em/1 "Bricolage Grotesque","Figtree",sans-serif;font-variation-settings:"wdth" 100;letter-spacing:-.035em}
.t-minimal .cv-job{font-weight:500;font-size:1.15em;color:var(--soft);margin-top:.55em}
.t-minimal .cv-contact{margin-top:1.2em;font-size:.95em}
.t-minimal .cv-sec{display:grid;grid-template-columns:9em minmax(0,1fr);column-gap:1.8em;margin-top:0;padding:1.3em 0;border-top:1px solid #dfe2ea}
.t-minimal .cv-sec>h2{grid-column:1;grid-row:1;font:700 .8em/1.7 "Figtree",sans-serif;letter-spacing:.15em;text-transform:uppercase;color:var(--ac);margin:0}
.t-minimal .cv-sec>:not(h2){grid-column:2}
.t-minimal .cv-chips{gap:0}
.t-minimal .cv-chips li{font-weight:500}
.t-minimal .cv-chips li:not(:last-child)::after{content:"\00a0\00a0/\00a0\00a0";color:var(--ac);font-weight:700}
.t-minimal .cv-langs{grid-template-columns:repeat(2,minmax(0,1fr));gap:.3em 2em}
.t-minimal .cv-dates{font-variant-numeric:tabular-nums}

/* ---- 6. Palace : symétrique, serif, filet doré, photo ronde à double anneau ---- */
.cv-sheet.t-palace{padding:3.2em 3.8em 2.8em;background:#FFFEFB;box-shadow:inset 0 0 0 .55em #FFFEFB,inset 0 0 0 .62em var(--ac)}
.t-palace .cv-head{display:grid;justify-items:center;text-align:center;gap:.5em;padding-bottom:.6em}
.t-palace .cv-photo{width:8em;height:8em;border-radius:50%;overflow:hidden;box-shadow:0 0 0 .2em #FFFEFB,0 0 0 .3em var(--ac),0 0 0 .62em #FFFEFB,0 0 0 .68em color-mix(in srgb,var(--ac) 45%,transparent);margin:.7em 0 .9em}
.t-palace .cv-name{font:500 2.55em/1.05 "Fraunces",Georgia,serif;letter-spacing:.07em;text-transform:uppercase;font-variation-settings:normal}
.t-palace .cv-job{font:italic 400 1.3em/1.2 "Fraunces",Georgia,serif;color:var(--ac);margin-top:0}
.t-palace .cv-orn{display:flex;align-items:center;gap:.7em;width:55%;margin:.45em 0 .25em}
.t-palace .cv-orn i{flex:1;height:1px;background:var(--ac);opacity:.55}
.t-palace .cv-orn b{width:.5em;height:.5em;background:var(--ac);transform:rotate(45deg)}
.t-palace .cv-contact{justify-content:center}
.t-palace .cv-sec{margin-top:1.4em}
.t-palace .cv-sec h2{display:flex;align-items:center;gap:1em;font:600 1em/1 "Fraunces",Georgia,serif;letter-spacing:.22em;text-transform:uppercase;color:var(--ac);margin-bottom:.9em;font-variation-settings:normal}
.t-palace .cv-sec h2::before,.t-palace .cv-sec h2::after{content:"";flex:1;height:1px;background:var(--ac);opacity:.45}
.t-palace .cv-sum{text-align:center;font:italic 400 1.1em/1.55 "Fraunces",Georgia,serif;padding:0 1.6em}
.t-palace .cv-role{font-family:"Fraunces",Georgia,serif;font-weight:600;font-size:1.1em}
.t-palace .cv-chips{justify-content:center;gap:.25em .2em}
.t-palace .cv-chips li:not(:last-child)::after{content:"";display:inline-block;width:.38em;height:.38em;background:var(--ac);transform:rotate(45deg);margin:0 .75em .12em .85em}
.t-palace .cv-langs{display:flex;flex-wrap:wrap;justify-content:center;gap:.3em 2em}
.t-palace .cv-langs li{gap:.5em}
.t-palace .cv-int{text-align:center}
.t-palace .cv-sec>.cv-bul{display:flex;flex-wrap:wrap;justify-content:center;gap:.2em 1.8em}
.t-palace .cv-sec>.cv-bul li{padding-left:0}
.t-palace .cv-sec>.cv-bul li::before{display:none}

/* ---- 7. Éditorial : portrait collé au coin de la page, grand nom, filet teinté en L ---- */
.cv-sheet.t-editorial{display:flex;flex-direction:column;padding:0}
.t-editorial .cv-head{display:grid;grid-template-columns:15.4em minmax(0,1fr);background:var(--ac2);min-height:19.4em}
.t-editorial .cv-photo{position:relative;width:15.4em;background:var(--ac);overflow:hidden}
.t-editorial .cv-photo img{position:absolute;inset:0}
.t-editorial .cv-id{align-self:center;padding:2.2em 3.4em 2.2em 2.8em;min-width:0}
.t-editorial.no-photo .cv-head{grid-template-columns:minmax(0,1fr);min-height:0}
.t-editorial.no-photo .cv-id{padding:3.2em 3.6em 2.4em}
.t-editorial .cv-name{font:800 3.35em/.97 "Bricolage Grotesque","Figtree",sans-serif;font-variation-settings:"wdth" 82;letter-spacing:-.03em}
.t-editorial .cv-job{font-size:1.3em;margin-top:.55em}
.t-editorial .cv-contact{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5em 1.6em;margin-top:1.3em}
.t-editorial .cv-body{flex:1;display:grid;grid-template-columns:15.4em minmax(0,1fr)}
.t-editorial .cv-side{background:var(--ac2);padding:1.5em 1.6em 2.6em 1.9em;min-width:0}
.t-editorial .cv-main{padding:2.1em 3.4em 2.6em 2.8em;min-width:0}
.cv-sheet.t-editorial .cv-side>.cv-sec:first-child,.cv-sheet.t-editorial .cv-main>.cv-sec:first-child{margin-top:0}
.t-editorial .cv-side .cv-sec h2{font:800 .78em/1.2 "Figtree",sans-serif;letter-spacing:.17em;text-transform:uppercase;color:var(--ac);margin-bottom:.9em}
.t-editorial .cv-main .cv-sec h2{display:flex;align-items:center;gap:.7em;font-size:1.18em;color:var(--ink)}
.t-editorial .cv-main .cv-sec h2::before{content:"";width:1.7em;height:.3em;background:var(--ac)}
.t-editorial .cv-dates{color:var(--ac);font-weight:700;font-size:.88em;font-variant-numeric:tabular-nums}
.t-editorial .cv-side .cv-chips{display:grid;gap:0}
.t-editorial .cv-side .cv-chips li{padding:.28em 0;border-bottom:1px solid color-mix(in srgb,var(--ac) 22%,transparent);font-weight:500}
.t-editorial .cv-side .cv-chips li:last-child{border-bottom:0}
.t-editorial .cv-side .cv-bul li::before{border-radius:0}

/* ---- 8. Horizon : bandeau de couleur, la photo ronde chevauche la frontière avec le blanc ---- */
.cv-sheet.t-horizon{padding:0 0 2.6em}
.t-horizon .cv-head{display:grid;grid-template-columns:10.6em minmax(0,1fr);column-gap:2.2em;padding:0 3.6em 1.4em;align-items:start}
.t-horizon .cv-band{grid-column:1/-1;grid-row:1;margin:0 -3.6em;padding:2.8em 3.6em 2.6em 16.4em;min-height:9.8em;display:flex;flex-direction:column;justify-content:center;background:radial-gradient(circle at 97% -5%,rgba(255,255,255,.13) 0 8em,transparent 8.05em),radial-gradient(circle at 58% 135%,rgba(255,255,255,.09) 0 7em,transparent 7.05em),var(--ac);color:#fff}
.t-horizon.no-photo .cv-band{padding-left:3.6em}
.t-horizon .cv-name{font-size:2.9em;line-height:1;color:#fff}
.t-horizon .cv-job{color:rgba(255,255,255,.94);font-size:1.25em;margin-top:.4em}
.t-horizon .cv-photo{grid-column:1;grid-row:1/3;position:relative;z-index:2;margin-top:3em;width:10.6em;height:10.6em;border-radius:50%;overflow:hidden;border:.32em solid #fff;box-shadow:0 .6em 1.3em rgba(15,26,58,.2)}
.t-horizon .cv-head>.cv-contact{grid-column:2;grid-row:2;padding-top:1.15em}
.t-horizon.no-photo .cv-head{grid-template-columns:minmax(0,1fr)}
.t-horizon.no-photo .cv-head>.cv-contact{grid-column:1}
.t-horizon .cv-body{display:grid;grid-template-columns:10.6em minmax(0,1fr);column-gap:2.2em;padding:.6em 3.6em 0}
.t-horizon .cv-side,.t-horizon .cv-main{min-width:0}
.cv-sheet.t-horizon .cv-side>.cv-sec:first-child,.cv-sheet.t-horizon .cv-main>.cv-sec:first-child{margin-top:0}
.t-horizon .cv-sec h2{display:flex;align-items:center;gap:.6em;font:800 1.12em/1.1 "Bricolage Grotesque","Figtree",sans-serif;color:var(--ac);margin-bottom:.8em}
.t-horizon .cv-sec h2::before{content:"";width:.62em;height:.62em;border-radius:50%;background:var(--ac)}
.t-horizon .cv-side .cv-sec h2{font-size:1em}
.t-horizon .cv-side .cv-chips{display:grid;gap:.3em}
.t-horizon .cv-side .cv-chips li{padding-left:.9em;position:relative;font-weight:500}
.t-horizon .cv-side .cv-chips li::before{content:"";position:absolute;left:0;top:.62em;width:.4em;height:.4em;border-radius:50%;background:var(--ac)}
.t-horizon .cv-side .cv-langs li{display:grid;gap:0;justify-content:stretch}
.t-horizon .cv-dates{color:var(--ac);font-weight:700;font-size:.88em}

/* ---- 9. Cartes : fond doux, une carte par rubrique, photo en carré arrondi avec ombre pleine ---- */
.cv-sheet.t-cards{padding:2.2em;background:color-mix(in srgb,var(--ac2) 55%,#F6F7FB)}
.t-cards .cv-head{display:flex;align-items:center;gap:2.2em;padding:1.9em 2.2em;background:#fff;border-radius:1.5em;box-shadow:0 0 0 1px rgba(15,26,58,.07),0 .5em 1.3em -.7em rgba(15,26,58,.2)}
.t-cards .cv-photo{width:9.4em;height:9.4em;border-radius:2.4em;overflow:hidden;box-shadow:.45em .45em 0 var(--ac);margin:0 .45em .45em 0}
.t-cards .cv-id{min-width:0}
.t-cards .cv-name{font-size:2.65em}
.t-cards .cv-job{font-size:1.2em}
.t-cards .cv-contact{margin-top:1.1em;gap:.5em .6em}
.t-cards .cv-contact li{background:var(--ac2);border-radius:99px;padding:.22em .85em .22em .3em;color:var(--ink);font-size:.94em}
.t-cards .cv-contact svg{background:var(--ac);color:#fff}
.t-cards .cv-body{display:grid;grid-template-columns:minmax(0,1fr) 15.2em;gap:0 1em;margin-top:1em;align-items:start}
.t-cards .cv-main,.t-cards .cv-side{display:grid;gap:var(--cgap,1em);min-width:0}
.t-cards .cv-sec{margin-top:0;background:#fff;border-radius:1.25em;padding:1.2em 1.5em 1.4em;box-shadow:0 0 0 1px rgba(15,26,58,.07)}
.t-cards .cv-sec h2{display:inline-block;background:var(--ac2);color:var(--ac);padding:.32em .9em;border-radius:99px;font:800 .86em/1.1 "Figtree",sans-serif;letter-spacing:.04em;margin-bottom:.95em}
.t-cards .cv-dates{color:var(--ac);font-weight:700;font-size:.88em;font-variant-numeric:tabular-nums}
.t-cards .cv-chips li{background:#fff;border:1.5px solid color-mix(in srgb,var(--ac) 38%,#fff);color:var(--ink);border-radius:.6em;padding:.12em .6em;font-weight:600}
.t-cards .cv-side .cv-langs li{display:grid;gap:0;justify-content:stretch}

/* ---- Réglages de l'apparence : forme de la photo (remplace la forme propre au modèle) ---- */
.cv-sheet[data-shape="round"] .cv-photo{border-radius:50%}
.cv-sheet[data-shape="soft"] .cv-photo{border-radius:1.3em}
.cv-sheet[data-shape="square"] .cv-photo{border-radius:.25em}
.t-elegant[data-shape] .cv-photo,.t-bold[data-shape] .cv-photo{width:9em;height:9em}
.t-bold[data-shape] .cv-photo{bottom:-3.5em}
.t-bold.has-photo[data-shape] .cv-side{margin-top:3.5em}
.t-minimal[data-shape] .cv-photo{width:8.2em;height:8.2em}
.t-minimal[data-shape] .cv-id{min-height:9.4em}
.t-cards[data-shape] .cv-photo{box-shadow:.45em .45em 0 var(--ac)}
.t-modern[data-shape] .cv-photo{margin:3em auto 1.7em;width:9.8em;aspect-ratio:1;box-shadow:0 0 0 .22em #fff,0 0 0 .46em rgba(255,255,255,.3)}
.t-modern[data-shape] .cv-photo::after{display:none}
.t-editorial[data-shape] .cv-photo{align-self:start;margin:2.2em 0 0 2.4em;width:10.6em;height:10.6em}
.t-editorial[data-shape] .cv-id{align-self:center}

/* ---- Réglages de l'apparence : espacement ---- */
.cv-sheet[data-density="compact"]{line-height:1.4}
.cv-sheet[data-density="compact"]:not(.t-minimal):not(.t-cards) .cv-sec{margin-top:1.05em}
.cv-sheet[data-density="compact"] .cv-item{margin-top:.65em}
.cv-sheet[data-density="compact"].t-minimal .cv-sec{padding:.9em 0}
.cv-sheet.t-cards[data-density="compact"]{--cgap:.65em}
.cv-sheet[data-density="airy"]{line-height:1.62}
.cv-sheet[data-density="airy"]:not(.t-minimal):not(.t-cards) .cv-sec{margin-top:2em}
.cv-sheet[data-density="airy"] .cv-item{margin-top:1.25em}
.cv-sheet[data-density="airy"].t-minimal .cv-sec{padding:1.7em 0}
.cv-sheet.t-cards[data-density="airy"]{--cgap:1.35em}

/* ================================================================ adaptation écran */
@media (max-width:900px){
  .start{grid-template-columns:minmax(0,1fr)}
  .start-fan{height:260px;max-width:420px;width:100%;margin:0 auto}
  .cv-layout{grid-template-columns:minmax(0,1fr)}
  .cv-tabs{display:grid;order:-1;flex:1 0 100%;min-width:0}
  .cv-layout[data-tab="edit"] .cv-previewcol{display:none}
  .cv-layout[data-tab="preview"] .cv-editor{display:none}
  .cv-previewcol{position:static}
  .cv-stage{max-height:none}
  .cv-bar .pdf-hint{display:none}
}
@media (max-width:560px){
  .lang-row{grid-template-columns:minmax(0,1fr) auto}
  .lang-row .field:nth-child(2){grid-column:1 / 2}
  .photo-row{align-items:flex-start}
  .start-opt{padding:12px}
  .acc-b{padding:4px 14px 18px}
  .tpls{gap:8px}
  .tpl-mini{padding:4px}
}

/* ================================================================ impression du CV */
@media print{
  @page cv{size:A4;margin:0}
  #print.cv-print{page:cv;white-space:normal;padding:0;font:inherit;color:inherit}
  #print.cv-print .cv-sheet{width:210mm;min-height:297mm;margin:0;box-shadow:none}
}

/* ---------- langues du CV (une version complète par langue) ---------- */
.lang-seg{display:inline-grid;min-width:170px}
.lang-seg button{position:relative;min-height:38px;padding:0 14px}
.lang-seg button.has::after{content:"";position:absolute;top:8px;right:8px;width:7px;height:7px;border-radius:50%;background:var(--ok)}
.lang-seg button[aria-pressed="true"].has::after{background:#fff}
.chip.has span::after{content:"";width:7px;height:7px;border-radius:50%;background:var(--ok);margin-left:9px}
.chip.has input:checked+span::after{background:#0F1A3A}

/* ---------- CV sur mesure : le CV complet réécrit ---------- */
.tcv{display:grid;gap:18px}
.tcv-tpls{display:flex;flex-wrap:wrap;gap:8px}
.tcv-tpl{min-height:38px;padding:0 15px;border-radius:999px;border:1.5px solid var(--line);background:var(--surface);color:var(--text);font:600 14.5px/1 var(--body);cursor:pointer;transition:background .15s,border-color .15s}
.tcv-tpl:hover{border-color:var(--muted)}
.tcv-tpl .tpl-tag-inline{margin-left:8px;background:var(--sun);color:#0F1A3A;font-weight:800;font-size:11px;line-height:1;padding:4px 7px;border-radius:999px}
.tcv-tpl[aria-pressed="true"]{background:var(--sun);border-color:var(--sun);color:#0F1A3A}
.tcv-tpl:focus-visible{outline:3px solid var(--cobalt);outline-offset:2px}
.tcv-prev{width:100%;max-width:600px;margin-inline:auto;background:var(--soft);border-radius:20px;padding:clamp(10px,2vw,18px)}
