/* Tools 360 : identité La Solution 360. Mobile d'abord, aucun style en ligne (compatible avec la CSP). */

@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/plus-jakarta-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/plus-jakarta-sans-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-600-normal.woff2) format("woff2"); }

:root {
  --navy: #030F25;
  --blue: #0089E6;
  --blue-ink: #0068B0;      /* bleu foncé pour le texte et les icônes (≥ 4,5:1) */
  --muted: #5B6478;
  --bg: #F6F8FC;
  --dot: #D3DAE6;
  --tint: #E2F0FF;
  --line: rgba(3, 15, 37, .09);
  --field-line: #7C869B;    /* 3,66:1 sur blanc */
  --danger: #B42318;
  --r-lg: 28px; --r: 20px; --r-sm: 14px;
  --shadow-1: 0 1px 2px rgba(3, 15, 37, .05), 0 10px 28px -10px rgba(3, 15, 37, .12);
  --shadow-2: 0 2px 4px rgba(3, 15, 37, .06), 0 28px 56px -20px rgba(3, 15, 37, .28);
  --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; color-scheme: light; scroll-padding-top: 16px; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
  color: var(--navy);
  font: 400 16px/1.55 var(--font-body);
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
a { color: var(--blue-ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
code { font: 500 .9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--tint); padding: .1em .35em; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font: 500 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- En-tête et pied de page ---------- */
.site-head { padding-block: 14px; }
.site-head-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); min-height: 44px; }
.brand img { display: block; height: 28px; width: auto; }
.brand-tool { font: 800 15px/1 var(--font-head); color: var(--muted); padding-inline-start: 12px; border-inline-start: 2px solid var(--dot); white-space: nowrap; }
.head-link { font-weight: 600; font-size: 14px; color: var(--navy); text-decoration: none; padding: 10px 4px; }
.head-link:hover { color: var(--blue-ink); text-decoration: underline; }
.site-foot { padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
.site-foot-in { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 20px; }
.site-foot a { color: var(--muted); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: var(--r-sm); border: 1px solid transparent;
  font: 600 16px/1.2 var(--font-body); text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .15s, box-shadow .15s, transform .06s;
  -webkit-tap-highlight-color: transparent;
}
.btn .ic { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover:not([disabled]) { background: #0B2350; }
.btn-secondary { background: #fff; color: var(--navy); border-color: #C9D1DF; }
.btn-secondary:hover { background: #F0F4FA; }
.btn-tint { background: var(--tint); color: var(--navy); }
.btn-tint:hover { background: #D2E8FF; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: rgba(3, 15, 37, .05); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.icon-btn { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg); color: var(--navy); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--tint); }
.icon-btn .ic { width: 22px; height: 22px; }

/* ---------- Introduction ---------- */
.hero { padding: 24px 0 20px; }
.eyebrow { font: 700 12px/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--blue-ink); margin-bottom: 14px; }
.hero h1 { font: 800 clamp(28px, 6vw, 46px)/1.1 var(--font-head); letter-spacing: -.02em; max-width: 18ch; text-wrap: balance; }
.hero .lead { margin-top: 14px; color: var(--muted); font-size: clamp(16px, 2.4vw, 18px); max-width: 52ch; }

/* ---------- Panneaux et formulaire ---------- */
.panel { background: #fff; border-radius: var(--r); box-shadow: var(--shadow-1); padding: 20px; min-width: 0; }
.panel + .panel { margin-top: 24px; }
.form-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset + fieldset { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
legend { padding: 0; margin-bottom: 14px; font: 800 19px/1.2 var(--font-head); letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
legend .num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--tint); color: var(--blue-ink); font-size: 14px; }
.fields { display: grid; gap: 16px; }
.row2 { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .label { font: 600 14px/1.3 var(--font-body); }
.req { color: var(--danger); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="url"] {
  width: 100%; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid var(--field-line); border-radius: var(--r-sm);
  background: #fff; color: var(--navy); font: 400 16px/1.2 var(--font-body);
}
.field input::placeholder { color: #7A8397; opacity: 1; }
.field input:focus { outline: none; border-color: var(--blue-ink); box-shadow: 0 0 0 4px rgba(0, 137, 230, .22); }
.field.has-error input { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(180, 35, 24, .12); }
.err { color: var(--danger); font-size: 13.5px; line-height: 1.35; min-height: 0; }
.err:empty { display: none; }
.hint { color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; cursor: pointer; min-height: 44px; padding-block: 6px; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--navy); }
.photo-field { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.photo-thumb { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--tint); display: grid; place-items: center; overflow: hidden; font: 800 22px var(--font-head); color: var(--navy); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-actions { display: grid; gap: 8px; min-width: 0; }
.photo-actions .btn-row { gap: 8px; }

/* ---------- Disposition du générateur ---------- */
.gen-grid { display: grid; gap: 24px; align-items: start; }
.preview-col { display: none; }
.phone { max-width: 392px; margin-inline: auto; padding: 14px; border-radius: 44px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.phone .vc { box-shadow: none; border: 1px solid var(--line); border-radius: 32px; }
.phone-sheet { box-shadow: none; border: 0; padding: 0; background: transparent; }
.preview-label { text-align: center; margin-bottom: 14px; }

/* ---------- Zone de partage ---------- */
.share-panel { scroll-margin-top: 12px; }
.share-panel h2 { font: 800 clamp(22px, 4vw, 28px)/1.15 var(--font-head); letter-spacing: -.01em; }
.share-panel h3 { font: 700 16px/1.3 var(--font-head); margin-bottom: 10px; }
.locked { margin-top: 12px; padding: 16px; border-radius: var(--r-sm); background: var(--bg); border: 1px dashed #B5BECE; color: var(--muted); display: grid; gap: 4px; }
.share-cols { display: grid; gap: 28px; margin-top: 18px; }
.stack { display: grid; gap: 14px; align-content: start; }
.linkrow { display: flex; gap: 8px; }
.linkrow-input { flex: 1; min-width: 0; height: 48px; padding: 0 12px; border: 1px solid var(--field-line); border-radius: var(--r-sm); background: #fff; color: var(--navy); font: 500 13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-overflow: ellipsis; }
.linkrow-input:focus { outline: none; border-color: var(--blue-ink); box-shadow: 0 0 0 4px rgba(0, 137, 230, .22); }
.share-grid { display: grid; gap: 10px; }
.qrbox { display: grid; gap: 12px; justify-items: center; text-align: center; }
.qrbox-img svg { display: block; width: min(260px, 72vw); height: auto; border-radius: 16px; border: 1px solid var(--dot); }
.dedicated { margin-top: 28px; padding: 20px; border-radius: var(--r); background: var(--tint); display: grid; gap: 12px; }
.dedicated h3 { margin: 0; }
.qrmini { display: flex; gap: 16px; align-items: center; }
.qrmini-img { flex: none; width: 112px; }
.qrmini-img svg { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--dot); }
.qrmini-tx { display: grid; gap: 8px; min-width: 0; }
.slugrow { display: flex; align-items: center; gap: 6px; }
.slugrow input { flex: 1; min-width: 0; height: 48px; padding: 0 12px; border: 1px solid var(--field-line); border-radius: var(--r-sm); font: 500 16px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.slugrow input:focus { outline: none; border-color: var(--blue-ink); box-shadow: 0 0 0 4px rgba(0, 137, 230, .22); }
.slugpre { color: var(--muted); font: 500 15px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.steps { padding-inline-start: 20px; display: grid; gap: 4px; color: var(--muted); }

/* ---------- Barre mobile ---------- */
.mbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 20; display: flex; gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(246, 248, 252, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.mbar .btn { flex: 1; }
.page-gen { padding-bottom: 88px; }

/* ---------- Fenêtres ---------- */
.sheet { border: 0; padding: 0; width: min(100%, 520px); max-width: 100%; max-height: min(90vh, 90dvh); margin: auto auto 0; border-radius: 24px 24px 0 0; background: #fff; color: var(--navy); box-shadow: var(--shadow-2); overflow: auto; animation: sheet-in .22s ease-out; overscroll-behavior: contain; }
.sheet::backdrop { background: rgba(3, 15, 37, .55); }
.sheet-wide { width: min(100%, 640px); }
.sheet-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 8px 20px; background: #fff; }
.sheet-title { font: 800 20px/1.2 var(--font-head); }
.sheet-body { display: grid; gap: 16px; padding: 8px 20px 24px; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.cropper { display: grid; gap: 16px; justify-items: center; }
.cropper-cv { width: min(300px, 100%); height: auto; aspect-ratio: 1; border-radius: 20px; touch-action: none; cursor: grab; background: #fff; border: 1px solid var(--dot); }
.cropper-cv:active { cursor: grabbing; }
.cropper-zoom { display: flex; align-items: center; gap: 12px; width: min(300px, 100%); font-weight: 600; font-size: 14px; }
.cropper-zoom input { flex: 1; accent-color: var(--navy); min-height: 44px; }

.toast { position: fixed; z-index: 1000; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 12px); max-width: min(92vw, 440px); padding: 12px 18px; border-radius: 999px; background: var(--navy); color: #fff; font: 600 14.5px/1.35 var(--font-body); box-shadow: var(--shadow-2); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.page-gen .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }

/* ---------- Carte de visite ---------- */
.page-card { padding-block: 8px 24px; }
.vc-page { width: 100%; max-width: 440px; margin: 0 auto; padding: 16px var(--gutter) 24px; }
.vc { position: relative; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-2); overflow: hidden; }
.vc-cover {
  height: 112px;
  background:
    radial-gradient(120% 150% at 100% 0%, rgba(0, 137, 230, .62) 0%, rgba(0, 137, 230, 0) 58%),
    radial-gradient(rgba(255, 255, 255, .11) 1.2px, transparent 1.5px) 0 0 / 16px 16px,
    linear-gradient(160deg, #030F25 0%, #061C42 100%);
}
.vc-body { padding: 0 20px 24px; text-align: center; }
.vc-avatar { position: relative; width: 104px; height: 104px; margin: -52px auto 12px; padding: 4px; border-radius: 50%; background: #fff; box-shadow: 0 8px 18px -6px rgba(3, 15, 37, .32); }
.vc-photo, .vc-initials { display: flex; width: 100%; height: 100%; border-radius: 50%; }
.vc-photo { object-fit: cover; }
.vc-initials { align-items: center; justify-content: center; background: var(--tint); color: var(--navy); font: 800 32px/1 var(--font-head); letter-spacing: .02em; }
.vc-name { font: 800 26px/1.15 var(--font-head); letter-spacing: -.01em; text-wrap: balance; overflow-wrap: anywhere; }
.vc-title { margin-top: 6px; font-weight: 600; font-size: 16px; line-height: 1.35; }
.vc-org { margin-top: 2px; color: var(--muted); font-size: 15px; }
.vc-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 20px 0 14px; }
.vc-quick[data-n="1"] { grid-template-columns: minmax(0, 150px); justify-content: center; }
.vc-quick[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vc-quick[data-n="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vc-q { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 2px 12px; border-radius: 18px; background: var(--tint); color: var(--navy); text-decoration: none; font: 600 12.5px/1.2 var(--font-body); -webkit-tap-highlight-color: transparent; transition: background-color .15s, transform .06s; }
.vc-q:hover { background: #D2E8FF; }
.vc-q:active { transform: scale(.97); }
.vc-q-ic { display: grid; place-items: center; color: var(--blue-ink); }
.vc-q-ic .ic { width: 26px; height: 26px; }
.vc-q-tx { max-width: 100%; white-space: nowrap; }
.vc-section { margin-top: 24px; text-align: start; }
.vc-h { margin-bottom: 8px; font: 700 12px/1 var(--font-head); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.vc-list { list-style: none; padding: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.vc-list li + li { border-top: 1px solid var(--line); }
.vc-row { display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 10px 14px; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.vc-row:hover { background: #F6F9FE; }
.vc-row-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--tint); display: grid; place-items: center; color: var(--blue-ink); }
.vc-row-ic .ic { width: 20px; height: 20px; }
.vc-row-tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.vc-row-tx small { color: var(--muted); font-size: 12.5px; }
.vc-row-tx b { font-weight: 600; font-size: 15.5px; overflow-wrap: anywhere; }
.vc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; background: #fff; border: 1px solid #C9D1DF; color: var(--navy); text-decoration: none; font: 600 14px/1 var(--font-body); }
.chip:hover { background: #F0F4FA; }
.chip .ic { width: 20px; height: 20px; color: var(--blue-ink); }
.vc .btn-block { margin-top: 4px; }
.vc.is-placeholder :is(.vc-name, .vc-title, .vc-org, .vc-quick, .btn, .vc-section) { opacity: .5; }
.vc.ghost-name .vc-name { opacity: .4; }
.vc-below { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.vc-foot { margin-top: 24px; text-align: center; font-size: 13px; color: var(--muted); }
.vc-foot a { color: var(--muted); text-underline-offset: 3px; }
.vc-foot a:hover { color: var(--navy); }
.vc-msg { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-2); padding: 32px 24px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.vc-msg h1 { font: 800 24px/1.2 var(--font-head); }
.vc-msg p { color: var(--muted); max-width: 32ch; }

/* ---------- Page d'accueil Tools 360 ---------- */
.tool-card { display: grid; gap: 18px; padding: 24px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-2); max-width: 640px; }
.tool-ic { width: 56px; height: 56px; border-radius: 18px; background: var(--navy); color: #fff; display: grid; place-items: center; }
.tool-ic .ic { width: 28px; height: 28px; }
.tool-card h2 { font: 800 24px/1.2 var(--font-head); letter-spacing: -.01em; }
.tool-card p { color: var(--muted); }
.values { display: grid; gap: 14px; margin-top: 40px; padding: 0; list-style: none; }
.values li { display: flex; gap: 14px; align-items: flex-start; }
.values .ic { flex: none; width: 24px; height: 24px; color: var(--blue-ink); margin-top: 2px; }
.values b { display: block; font: 700 16px/1.3 var(--font-head); }
.values span { color: var(--muted); font-size: 15px; }
.soon { margin-top: 28px; color: var(--muted); font-size: 15px; }

/* ---------- Pages de texte ---------- */
.prose { max-width: 68ch; padding-block: 8px 24px; }
.prose h1 { font: 800 clamp(28px, 5vw, 38px)/1.15 var(--font-head); letter-spacing: -.02em; margin-bottom: 18px; }
.prose h2 { font: 800 21px/1.25 var(--font-head); margin: 28px 0 8px; }
.prose p, .prose ul { margin-top: 10px; }
.prose ul { padding-inline-start: 22px; display: grid; gap: 6px; }

/* ---------- Grands écrans ---------- */
@media (min-width: 560px) {
  .row2 { grid-template-columns: 1fr 1fr; }
  .share-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .values { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .sheet { margin: auto; border-radius: 24px; }
  .panel { padding: 28px; }
}
@media (min-width: 860px) {
  .share-cols { grid-template-columns: 1.25fr 1fr; gap: 40px; }
}
@media (min-width: 1024px) {
  .gen-grid { grid-template-columns: minmax(0, 1fr) 420px; gap: 32px; }
  .preview-col { display: block; position: sticky; top: 20px; }
  .mbar { display: none; }
  .page-gen { padding-bottom: 0; }
  .page-gen .toast { bottom: 24px; }
}
@media (max-width: 520px) {
  .site-head .head-link { display: none; }
}
@media (max-width: 380px) {
  .vc-q { font-size: 12px; }
  .vc-name { font-size: 23px; }
  .linkrow { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
