/* EmploiZen — interface (site public, espace membre, éditeur). */
:root {
  --leaf: #22c55e; --leaf-600: #16a34a; --leaf-700: #15803d; --leaf-100: #dcfce7; --mint: #ecfdf3; --mint-2: #f6fef9;
  --moss: #0b3d2a; --ink: #12261b; --mute: #557063; --line: #d5ebdd; --line-2: #e8f3ec; --paper: #ffffff;
  --amber: #f59e0b; --coral: #ef4444; --sky: #0ea5e9;
  --r-sm: 8px; --r: 14px; --r-lg: 22px;
  --shadow: 0 1px 2px rgba(11, 61, 42, .06), 0 8px 24px -12px rgba(11, 61, 42, .18);
  --f-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--paper); overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: var(--leaf-700); }
a:hover { color: var(--moss); }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.12; margin: 0 0 .5em; color: var(--moss); letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--mute); }
.small { font-size: .875rem; }
.center { text-align: center; }
.hide { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Boutons & formulaires ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 700 1rem/1 var(--f-body); padding: .85em 1.35em; border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--leaf); color: #052e16; }
.btn-primary:hover { background: var(--leaf-600); color: #fff; }
.btn-dark { background: var(--moss); color: #fff; }
.btn-dark:hover { background: #062a1c; color: #fff; }
.btn-ghost { background: transparent; color: var(--moss); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--leaf); color: var(--moss); background: var(--mint); }
.btn-danger { background: #fff; color: #b91c1c; border-color: #fecaca; }
.btn-danger:hover { background: #fef2f2; color: #991b1b; }
.btn-sm { padding: .55em .95em; font-size: .875rem; }
.btn-lg { padding: 1em 1.7em; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn .spin { width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.field { margin-bottom: 14px; }
.field label, .lbl { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--moss); }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]), .field select, .field textarea, textarea.input, select.input {
  width: 100%; font: inherit; font-size: 1rem; padding: .72em .85em; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
textarea { resize: vertical; min-height: 90px; }
.hint { font-size: .82rem; color: var(--mute); margin-top: 4px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.check input { margin-top: .25em; accent-color: var(--leaf-600); width: 18px; height: 18px; flex: none; }

.alert { padding: 12px 16px; border-radius: var(--r-sm); margin: 0 0 16px; font-size: .95rem; border: 1px solid; }
.alert-success { background: var(--mint); border-color: #bbf7d0; color: var(--moss); }
.alert-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-info { background: #f0f9ff; border-color: #bae6fd; color: #075985; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--leaf-100); color: var(--moss); }
.badge-pro { background: var(--moss); color: var(--leaf); }
.badge-warn { background: #fef3c7; color: #92400e; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-gray { background: #eef2f0; color: var(--mute); }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line-2); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; color: var(--moss); text-decoration: none; letter-spacing: -.02em; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--leaf); display: grid; place-items: center; }
.logo-mark svg { width: 20px; height: 20px; }
.logo b { color: var(--leaf-600); font-weight: 800; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a.is-active { background: var(--mint); color: var(--moss); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; font-size: .8rem; font-weight: 700; }
.lang-switch a { padding: 5px 10px; text-decoration: none; color: var(--mute); }
.lang-switch a.on { background: var(--moss); color: #fff; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--moss); }
.burger svg { width: 26px; height: 26px; }
.user-menu { position: relative; }
.user-menu > button { display: flex; align-items: center; gap: 8px; background: var(--mint); border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 4px; font: 600 .9rem var(--f-body); color: var(--moss); cursor: pointer; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--leaf); color: #052e16; display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); min-width: 220px; padding: 6px; display: none; }
.user-menu.open .dropdown { display: block; }
.dropdown a { display: block; padding: 9px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); font-weight: 500; }
.dropdown a:hover { background: var(--mint); }
.dropdown hr { border: 0; border-top: 1px solid var(--line-2); margin: 6px 0; }
@media (max-width: 920px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 10px 16px 18px; border-bottom: 1px solid var(--line); margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .header-actions .hide-m { display: none; }
}

/* ---------- Hero + scanner ATS ---------- */
.hero { background: linear-gradient(180deg, var(--mint) 0%, #fff 100%); padding: 48px 0 56px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: start; }
.hero h1 { margin-top: 6px; }
.hero-lead { font-size: 1.18rem; color: var(--mute); max-width: 34em; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; font-size: .92rem; color: var(--moss); font-weight: 600; }
.hero-proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof svg { width: 18px; height: 18px; color: var(--leaf-600); }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } }

.scan-stage { position: relative; margin-top: 30px; height: 360px; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.scan-paper { position: absolute; left: 0; top: 0; width: 210mm; transform-origin: top left; border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(11, 61, 42, .45), 0 0 0 1px var(--line); overflow: hidden; background: #fff; }
.scan-paper.p2 { opacity: .55; filter: saturate(.6); }
.scan-beam { position: absolute; left: 0; right: 0; height: 70px; background: linear-gradient(180deg, transparent, rgba(34, 197, 94, .28), transparent); border-bottom: 2px solid var(--leaf); animation: beam 3.6s ease-in-out infinite; pointer-events: none; z-index: 3; }
@keyframes beam { 0% { top: -70px; } 60%, 100% { top: 100%; } }
.scan-paper mark.kw { background: rgba(34, 197, 94, .35); color: inherit; border-radius: 2px; transition: background .4s; }
@media (max-width: 980px) { .scan-stage { display: none; } }

.ats-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); position: relative; }
.ats-card h2 { font-size: 1.45rem; margin-bottom: 4px; }
.ats-tabs { display: flex; gap: 6px; margin: 16px 0 10px; background: var(--mint); padding: 4px; border-radius: 999px; }
.ats-tabs button { flex: 1; border: 0; background: transparent; padding: 8px 10px; border-radius: 999px; font: 600 .88rem var(--f-body); color: var(--mute); cursor: pointer; }
.ats-tabs button.on { background: #fff; color: var(--moss); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.dropzone { border: 2px dashed var(--line); border-radius: var(--r); padding: 22px 16px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; background: var(--mint-2); }
.dropzone:hover, .dropzone.drag { border-color: var(--leaf); background: var(--mint); }
.dropzone svg { width: 34px; height: 34px; color: var(--leaf-600); margin: 0 auto 6px; }
.dropzone strong { color: var(--moss); }
.dropzone .file-ok { color: var(--leaf-700); font-weight: 700; }

.ats-result { margin-top: 18px; }
.score-ring { --v: 0; --col: var(--leaf); width: 132px; height: 132px; border-radius: 50%; background: conic-gradient(var(--col) calc(var(--v) * 1%), var(--line-2) 0); display: grid; place-items: center; margin: 0 auto; }
.score-ring > div { width: 104px; height: 104px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; }
.score-ring b { font: 800 2.4rem/1 var(--f-display); color: var(--moss); display: block; }
.score-ring small { color: var(--mute); font-size: .8rem; }
.checks { list-style: none; margin: 16px 0; padding: 0; }
.checks li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: .92rem; }
.checks .bar { grid-column: 1 / -1; height: 6px; background: var(--line-2); border-radius: 6px; overflow: hidden; }
.checks .bar i { display: block; height: 100%; background: var(--leaf); border-radius: 6px; }
.issues { list-style: none; padding: 0; margin: 0; }
.issues li { padding: 10px 12px 10px 38px; border-radius: var(--r-sm); margin-bottom: 8px; position: relative; font-size: .92rem; background: #fafafa; }
.issues li::before { content: ""; position: absolute; left: 14px; top: 15px; width: 10px; height: 10px; border-radius: 50%; }
.issues li.high { background: #fef2f2; } .issues li.high::before { background: var(--coral); }
.issues li.med { background: #fffbeb; } .issues li.med::before { background: var(--amber); }
.issues li.low { background: #f8fafc; } .issues li.low::before { background: #94a3b8; }
.kw-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kw-chips span { font-size: .82rem; padding: 3px 10px; border-radius: 999px; background: var(--leaf-100); color: var(--moss); font-weight: 600; }
.kw-chips.miss span { background: #fee2e2; color: #991b1b; }
.blur-lock { position: relative; }
.blur-lock > .locked { filter: blur(5px); user-select: none; pointer-events: none; }
.blur-lock > .unlock { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 16px; }
.unlock-box { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); max-width: 340px; }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--mint-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.section-head { max-width: 640px; margin-bottom: 34px; }
.section-head p { color: var(--mute); font-size: 1.08rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; }
.step { position: relative; padding-top: 58px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 12px; background: var(--leaf); color: #052e16; font: 800 1.2rem/42px var(--f-display); text-align: center; }
.step p { color: var(--mute); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px; }
.feature svg { width: 30px; height: 30px; color: var(--leaf-600); margin-bottom: 10px; }
.feature p { color: var(--mute); margin: 0; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.promise { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.promise ul { list-style: none; padding: 0; margin: 0; }
.promise li { padding: 12px 0 12px 34px; position: relative; border-bottom: 1px solid var(--line-2); }
.promise li::before { content: ""; position: absolute; left: 0; top: 15px; width: 20px; height: 20px; border-radius: 50%; background: var(--leaf-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.promise li.no::before { background: #fee2e2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b91c1c' stroke-width='3'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center/11px no-repeat; }
@media (max-width: 820px) { .promise { grid-template-columns: 1fr; } }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--moss); font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--leaf-600); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--mute); }
.cta-band { background: var(--moss); color: #fff; border-radius: var(--r-lg); padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { color: #b7e4c7; margin: 6px 0 0; }

/* ---------- Galerie de modèles ---------- */
.tpl-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tpl-filters button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font: 600 .88rem var(--f-body); color: var(--moss); cursor: pointer; }
.tpl-filters button.on { background: var(--moss); color: #fff; border-color: var(--moss); }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; }
.tpl-card { display: flex; flex-direction: column; gap: 10px; }
.tpl-thumb { position: relative; aspect-ratio: 210 / 297; border-radius: var(--r); overflow: hidden; background: #fff; border: 1.5px solid var(--line); transition: border-color .15s, box-shadow .2s; }
.tpl-card:hover .tpl-thumb { border-color: var(--leaf); box-shadow: 0 20px 40px -24px rgba(11, 61, 42, .45); }
.tpl-thumb .cv { position: absolute; top: 0; left: 0; transform-origin: top left; pointer-events: none; }
.tpl-thumb .tpl-hover { position: absolute; inset: auto 0 0 0; padding: 14px; background: linear-gradient(transparent, rgba(255,255,255,.95) 40%); display: flex; justify-content: center; opacity: 0; transition: opacity .15s; }
.tpl-card:hover .tpl-hover, .tpl-card:focus-within .tpl-hover { opacity: 1; }
@media (hover: none) { .tpl-thumb .tpl-hover { opacity: 1; } }
.tpl-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tpl-meta h3 { margin: 0; font-size: 1.05rem; }
.tpl-swatches { display: flex; gap: 6px; }
.tpl-swatches button { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.tpl-swatches button.on { box-shadow: 0 0 0 2px var(--moss); }
.tpl-lock { position: absolute; top: 10px; right: 10px; z-index: 2; }

/* ---------- Tarifs ---------- */
.billing-toggle { display: inline-flex; background: var(--mint); border: 1.5px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 30px; }
.billing-toggle button { border: 0; background: transparent; border-radius: 999px; padding: 8px 18px; font: 700 .92rem var(--f-body); color: var(--mute); cursor: pointer; }
.billing-toggle button.on { background: var(--moss); color: #fff; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }
.plan { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 26px 22px; display: flex; flex-direction: column; position: relative; }
.plan.featured { border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(34, 197, 94, .14), var(--shadow); }
.plan.featured .ribbon { position: absolute; top: -13px; left: 22px; }
.plan h3 { font-size: 1.3rem; margin-bottom: 2px; }
.plan .desc { color: var(--mute); font-size: .92rem; min-height: 3em; }
.plan .price { font: 800 2.4rem/1 var(--f-display); color: var(--moss); margin: 14px 0 4px; }
.plan .price small { font: 500 .95rem var(--f-body); color: var(--mute); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; font-size: .93rem; }
.plan li::before { content: ""; position: absolute; left: 0; top: 10px; width: 16px; height: 16px; border-radius: 50%; background: var(--leaf-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3.5'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/10px no-repeat; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--moss); color: #cfe9d9; padding: 56px 0 28px; margin-top: 40px; }
.site-footer a { color: #e7f6ec; text-decoration: none; }
.site-footer a:hover { color: var(--leaf); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; line-height: 2; }
.site-footer .logo { color: #fff; }
.foot-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Publicités (jamais intrusives) ---------- */
.ez-ad { position: relative; margin: 28px auto; max-width: 970px; border-radius: var(--r); overflow: hidden; background: var(--mint-2); border: 1px solid var(--line-2); }
.ez-ad__label { position: absolute; top: 8px; left: 8px; z-index: 2; font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--mute); }
.ez-ad__media { display: block; position: relative; text-decoration: none; color: var(--moss); }
.ez-ad__media img, .ez-ad__media video { width: 100%; height: auto; max-height: 260px; object-fit: cover; }
.ez-ad__hl { display: block; padding: 10px 14px; font-weight: 700; background: #fff; }
.ez-ad__code { padding: 26px 10px 10px; min-height: 90px; display: flex; justify-content: center; }
.ez-ad--dashboard_side { max-width: 300px; margin: 0 0 16px; }
.ez-ad--templates_grid { margin: 0; max-width: none; aspect-ratio: 210/297; display: flex; align-items: center; }
.ez-ad--templates_grid .ez-ad__media img { max-height: none; height: 100%; }

/* ---------- Auth ---------- */
.auth { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 40px 16px; background: linear-gradient(160deg, var(--mint), #fff 60%); }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.8rem; }
.auth-alt { text-align: center; margin-top: 16px; font-size: .93rem; color: var(--mute); }

/* ---------- Espace membre ---------- */
.app-page { padding: 32px 0 60px; background: var(--mint-2); min-height: calc(100vh - 68px); }
.app-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.app-head h1 { font-size: 2rem; margin: 0; }
.app-grid { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
@media (max-width: 980px) { .app-grid { grid-template-columns: 1fr; } }
.panel { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 22px; margin-bottom: 20px; }
.panel h2 { font-size: 1.25rem; }
.cv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.cv-tile { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.cv-tile:hover { border-color: var(--leaf); }
.cv-tile .tpl-thumb { border: 0; border-radius: 0; border-bottom: 1px solid var(--line-2); }
.cv-tile-body { padding: 12px 14px; }
.cv-tile-body h3 { font-size: 1rem; margin: 0 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-tile-actions { display: flex; gap: 6px; padding: 0 14px 14px; flex-wrap: wrap; }
.cv-tile-new { border-style: dashed; display: grid; place-items: center; text-align: center; padding: 20px; min-height: 300px; cursor: pointer; background: var(--mint-2); color: var(--moss); font-weight: 700; }
.cv-tile-new svg { width: 40px; height: 40px; color: var(--leaf-600); margin: 0 auto 8px; }
.progress { height: 10px; background: var(--line-2); border-radius: 10px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--leaf); border-radius: 10px; transition: width .4s; }
.trial-card { background: var(--moss); color: #dff5e7; border-radius: var(--r-lg); padding: 20px; margin-bottom: 20px; }
.trial-card h3 { color: #fff; }
.trial-card .progress { background: rgba(255,255,255,.15); margin: 12px 0; }
.kv { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: .93rem; }
.quota { font-size: .88rem; }
.quota div { display: flex; justify-content: space-between; padding: 5px 0; }

/* Profil */
.profile-form fieldset { border: 0; padding: 0; margin: 0 0 8px; }
.profile-form legend { font: 700 1.1rem var(--f-display); color: var(--moss); margin-bottom: 12px; }

/* ---------- Modale & toasts ---------- */
.modal { position: fixed; inset: 0; z-index: 200; background: rgba(6, 33, 22, .45); display: none; align-items: flex-start; justify-content: center; padding: 5vh 16px; overflow-y: auto; }
.modal.open { display: flex; }
.modal-box { background: #fff; border-radius: var(--r-lg); width: 100%; max-width: 640px; padding: 24px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.4); position: relative; }
.modal-box.wide { max-width: 1000px; }
.modal-close { position: absolute; top: 12px; right: 12px; background: var(--mint); border: 0; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; color: var(--moss); }
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--moss); color: #fff; padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow); animation: tin .2s ease-out; }
.toast.err { background: #b91c1c; }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Éditeur (builder) ---------- */
body.builder-body { background: #e9f3ed; overflow: hidden; }
.builder { display: grid; grid-template-columns: 420px 1fr; height: calc(100vh - 60px); }
.bl-top { height: 60px; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: #fff; border-bottom: 1px solid var(--line); }
.bl-top .title-input { border: 1.5px solid transparent; border-radius: var(--r-sm); font: 700 1rem var(--f-body); padding: 6px 8px; color: var(--moss); min-width: 0; width: 260px; background: transparent; }
.bl-top .title-input:hover, .bl-top .title-input:focus { border-color: var(--line); outline: none; }
.bl-top .spacer { flex: 1; }
.save-state { font-size: .82rem; color: var(--mute); white-space: nowrap; }
.bl-panel { background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.bl-tabs { display: flex; border-bottom: 1px solid var(--line); padding: 0 6px; overflow-x: auto; flex: none; }
.bl-tabs button { border: 0; background: none; padding: 13px 12px; font: 700 .86rem var(--f-body); color: var(--mute); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.bl-tabs button.on { color: var(--moss); border-bottom-color: var(--leaf); }
.bl-tabs svg { width: 16px; height: 16px; }
.bl-scroll { overflow-y: auto; padding: 16px; flex: 1; }
.bl-pane { display: none; }
.bl-pane.on { display: block; }
.blk { border: 1.5px solid var(--line); border-radius: var(--r); margin-bottom: 12px; background: #fff; }
.blk-head { display: flex; align-items: center; gap: 8px; padding: 11px 12px; cursor: pointer; user-select: none; }
.blk-head h3 { font-size: .98rem; margin: 0; flex: 1; font-family: var(--f-body); }
.blk-head .count { font-size: .75rem; color: var(--mute); }
.handle { cursor: grab; color: #9bb5a6; display: grid; place-items: center; padding: 2px; touch-action: none; }
.handle svg { width: 18px; height: 18px; }
.blk-body { padding: 0 12px 12px; display: none; }
.blk.open .blk-body { display: block; }
.blk .chev { transition: transform .15s; width: 18px; height: 18px; color: var(--mute); }
.blk.open .chev { transform: rotate(180deg); }
.icon-btn { border: 0; background: transparent; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; color: var(--mute); display: grid; place-items: center; flex: none; }
.icon-btn:hover { background: var(--mint); color: var(--moss); }
.icon-btn svg { width: 17px; height: 17px; }
.item { border: 1px solid var(--line-2); border-radius: var(--r-sm); margin-bottom: 8px; background: var(--mint-2); }
.item-head { display: flex; align-items: center; gap: 6px; padding: 8px 8px; cursor: pointer; }
.item-head .t { flex: 1; font-weight: 600; font-size: .9rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-head .t small { color: var(--mute); font-weight: 400; }
.item-body { padding: 4px 10px 10px; display: none; }
.item.open .item-body { display: block; }
.item.is-hidden .t { opacity: .45; text-decoration: line-through; }
.field-sm label { font-size: .8rem; margin-bottom: 3px; }
.field-sm { margin-bottom: 9px; }
.field-sm input, .field-sm textarea, .field-sm select { font-size: .92rem !important; padding: .55em .65em !important; }
.add-item { width: 100%; border: 1.5px dashed var(--line); background: #fff; border-radius: var(--r-sm); padding: 9px; font: 700 .86rem var(--f-body); color: var(--leaf-700); cursor: pointer; }
.add-item:hover { border-color: var(--leaf); background: var(--mint); }
.ai-inline { font-size: .78rem; font-weight: 700; color: var(--leaf-700); background: var(--leaf-100); border: 0; border-radius: 999px; padding: 3px 9px; cursor: pointer; }
.lvl { display: flex; gap: 4px; }
.lvl button { width: 26px; height: 26px; border-radius: 6px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-size: .75rem; font-weight: 700; color: var(--mute); padding: 0; }
.lvl button.on { background: var(--leaf); border-color: var(--leaf); color: #052e16; }

.tpl-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tpl-pick .tp { border: 2px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; background: #fff; padding: 0; text-align: left; position: relative; }
.tpl-pick .tp.on { border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.tpl-pick .tp .tpl-thumb { border: 0; border-radius: 0; }
.tpl-pick .tp .tp-name { display: block; padding: 5px 7px; font-size: .78rem; font-weight: 700; color: var(--moss); }
.tpl-pick .tp .badge { position: absolute; top: 5px; right: 5px; z-index: 2; font-size: .62rem; padding: 2px 6px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.swatches button { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; padding: 0; }
.swatches button.on { box-shadow: 0 0 0 2.5px var(--moss); }
.swatches input[type=color] { width: 34px; height: 34px; border: 0; padding: 0; background: none; cursor: pointer; }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; flex-wrap: wrap; }
.seg button { border: 0; background: #fff; padding: 7px 11px; font: 600 .84rem var(--f-body); cursor: pointer; color: var(--mute); }
.seg button.on { background: var(--moss); color: #fff; }
.range-row { display: flex; align-items: center; gap: 10px; }
.range-row input { flex: 1; accent-color: var(--leaf-600); }
.range-row output { font-size: .85rem; font-weight: 700; width: 48px; text-align: right; color: var(--moss); }
.layout-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.layout-col { background: var(--mint-2); border: 1.5px dashed var(--line); border-radius: var(--r-sm); padding: 8px; min-height: 120px; }
.layout-col h4 { font: 700 .78rem var(--f-body); color: var(--mute); margin: 0 0 6px; }
.chip { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; margin-bottom: 6px; font-size: .85rem; font-weight: 600; cursor: grab; touch-action: none; }
.chip.off { opacity: .45; }
.chip .icon-btn { width: 24px; height: 24px; margin-left: auto; }

.bl-stage { overflow: auto; position: relative; display: flex; flex-direction: column; align-items: center; padding: 28px 20px 80px; }
.bl-zoom { position: fixed; right: 18px; bottom: 18px; z-index: 5; display: flex; gap: 4px; background: #fff; border-radius: 999px; padding: 4px; box-shadow: var(--shadow); }
.paper-wrap { position: relative; flex: none; }
#paper { position: absolute; top: 0; left: 0; transform-origin: top left; }
.paper-wrap .cv { box-shadow: 0 30px 60px -30px rgba(11, 61, 42, .5), 0 0 0 1px rgba(11, 61, 42, .06); }
.page-break { position: absolute; left: -14px; right: -14px; height: 0; border-top: 2px dashed #f59e0b; z-index: 9; pointer-events: none; }
.page-break span { position: absolute; right: 0; top: -11px; background: #f59e0b; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 6px; }
.mobile-switch { display: none; }
@media (max-width: 980px) {
  body.builder-body { overflow: auto; }
  .builder { grid-template-columns: 1fr; height: auto; }
  .bl-panel { min-height: calc(100vh - 120px); border-right: 0; }
  .bl-stage { display: none; padding: 16px 8px 90px; min-height: calc(100vh - 120px); }
  .builder.show-preview .bl-panel { display: none; }
  .builder.show-preview .bl-stage { display: flex; }
  .mobile-switch { display: flex; position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 60; background: var(--moss); border-radius: 999px; padding: 4px; box-shadow: var(--shadow); }
  .mobile-switch button { border: 0; background: transparent; color: #cfe9d9; font: 700 .9rem var(--f-body); padding: 10px 18px; border-radius: 999px; }
  .mobile-switch button.on { background: var(--leaf); color: #052e16; }
  .bl-top .title-input { width: 130px; }
  .bl-top .hide-m { display: none; }
}

/* Propositions IA */
.prop { border: 1.5px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 12px; }
.prop-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.prop-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prop-cols > div { background: var(--mint-2); border-radius: var(--r-sm); padding: 10px; font-size: .88rem; white-space: pre-wrap; }
.prop-cols > div:first-child { background: #f8fafc; color: var(--mute); }
.prop .warn { margin-top: 8px; font-size: .82rem; color: #92400e; background: #fffbeb; padding: 6px 10px; border-radius: 8px; }
@media (max-width: 700px) { .prop-cols { grid-template-columns: 1fr; } }

/* Impression : page dédiée */
.print-body { background: #e9f3ed; margin: 0; }
.print-bar { position: sticky; top: 0; z-index: 10; background: var(--moss); color: #fff; padding: 12px 16px; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; font-size: .92rem; }
.print-sheet { display: flex; justify-content: center; padding: 24px 0; }
@media print { .print-bar { display: none !important; } .print-sheet { padding: 0; display: block; } .print-body { background: #fff; } }

.legal { max-width: 780px; }
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table th { font-size: .8rem; color: var(--mute); font-weight: 700; background: var(--mint-2); }
.modal-box h2 { font-size: 1.4rem; padding-right: 40px; } .modal-box h3 { font-size: 1.05rem; margin-top: 16px; }
.nav-m { display: none; }
@media (max-width: 920px) { .nav .nav-m { display: block; } }
@media (max-width: 480px) {
  .site-header .wrap { gap: 10px; }
  .logo { font-size: 1.15rem; }
  .header-actions .btn-primary { display: none; }
  .header-actions { gap: 6px; }
}
@media (max-width: 980px) {
  .builder { grid-template-columns: minmax(0, 1fr); }
  .bl-panel, .bl-stage { min-width: 0; }
  .bl-zoom { bottom: 76px; }
}

.ez-ad--slim { margin: 0 0 22px; max-width: none; }
.ez-ad--slim .ez-ad__media img, .ez-ad--slim .ez-ad__media video { max-height: 140px; }

.promo-band { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: #fffbeb; border: 1.5px solid #fde68a; border-radius: var(--r); padding: 14px 18px; margin-bottom: 18px; }
.promo-band b { display: block; color: var(--moss); }
.promo-band span { font-size: .9rem; color: var(--mute); }
.promo-band--on { background: var(--moss); border-color: var(--moss); }
.promo-band--on b { color: #fff; } .promo-band--on span { color: #b7e4c7; }
.promo-band--on .btn-dark { background: var(--leaf); color: #052e16; }

.ats-mailbox { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: #ecfdf3; border: 1px solid #bbf7d0; }
.ats-mailbox-ic { font-size: 1.6rem; line-height: 1; }
