/* ==========================================================
   ilcodicefiscale.com — Home
   ========================================================== */

:root {
  --navy-900: #0a1f44;
  --navy-800: #0b2a5b;
  --navy-700: #12367a;
  --blue-600: #1f5fd6;
  --blue-500: #2d6cdf;
  --blue-50: #eef4fd;
  --ink: #0e1b33;
  --text: #2a3650;
  --muted: #5b6780;
  --line: #e3e8f1;
  --line-2: #d4dbe7;
  --bg: #f5f8fc;
  --white: #fff;
  --green: #16a34a;
  --green-50: #e7f7ee;
  --it-green: #0a9d4a;
  --it-red: #d7263d;
  --red-50: #fdecee;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(14, 27, 51, .05), 0 1px 1px rgba(14, 27, 51, .03);
  --shadow: 0 10px 30px -12px rgba(14, 27, 51, .18), 0 2px 6px rgba(14, 27, 51, .05);
  --shadow-lg: 0 24px 60px -20px rgba(14, 27, 51, .28);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.15; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.ic {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.ic-xs { width: 14px; height: 14px; }
.mono { font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px;
  border-radius: 8px; border: 1px solid transparent;
  font-weight: 600; font-size: 14px; white-space: nowrap;
  cursor: pointer; transition: background .2s, border-color .2s, color .2s, box-shadow .2s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy-800); color: #fff; box-shadow: 0 6px 16px -8px rgba(11, 42, 91, .7); }
.btn-primary:hover { background: var(--navy-700); }
.btn-outline { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--navy-800); }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; }
.btn-xl { height: 52px; padding: 0 28px; font-size: 15px; border-radius: 10px; }
.btn-xl .ic { transition: transform .2s; }
.btn-xl:hover .ic { transform: translateX(3px); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn-lang { background: #fff; border-color: var(--line-2); color: var(--ink); padding: 0 12px; gap: 6px; }

.flag-fr, .flag-it, .flag-en { width: 18px; height: 13px; border-radius: 2px; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.flag-fr { background: linear-gradient(90deg, #1e3a8a 33.3%, #fff 33.3% 66.6%, #e11d2a 66.6%); }
.flag-it { background: linear-gradient(90deg, var(--it-green) 33.3%, #fff 33.3% 66.6%, var(--it-red) 66.6%); }
.flag-en { background: linear-gradient(#fff 0 0) center/100% 3px no-repeat, linear-gradient(#fff 0 0) center/3px 100% no-repeat, linear-gradient(#c8102e 0 0) center/100% 5px no-repeat, #012169; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-flag { width: 40px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 21px; font-weight: 700; color: var(--navy-900); letter-spacing: -.02em; }
.brand-text small { font-size: 11px; color: var(--muted); font-weight: 500; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  height: 40px; padding: 0 12px; border: 0; background: none;
  font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; border-radius: 8px;
}
.nav-link:hover { color: var(--blue-600); }
.nav-actions-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: 16px; }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.dropdown-right { left: auto; right: 0; min-width: 170px; }
.dropdown::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.dropdown a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--ink); }
.dropdown a:hover { background: var(--blue-50); color: var(--navy-800); }
.dropdown a .ic { color: var(--blue-600); }
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown,
.has-dropdown.open > .dropdown { opacity: 1; visibility: visible; transform: none; }

.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.burger .ic { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 90% at 0% 0%, rgba(31, 95, 214, .30), transparent 70%),
    radial-gradient(ellipse 50% 70% at 45% 10%, rgba(45, 108, 223, .16), transparent 70%),
    linear-gradient(180deg, #d4e3fc 0%, #e3edfd 60%, var(--bg) 100%);
  padding: 46px 0 120px;
}
.hero-bg {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(64%, 1060px);
  background: url("../img/hero-colosseo.jpg") right center / cover no-repeat;
  /* multiply : le ciel blanc/gris de la photo prend la teinte bleue du fond */
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%), linear-gradient(180deg, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 38%), linear-gradient(180deg, #000 78%, transparent 100%);
  mask-composite: intersect;
}
.hero-inner { position: relative; z-index: 1; }

.kicker {
  display: inline-flex; align-items: center; gap: 16px;
  font-size: 13px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--ink);
  margin-bottom: 14px;
}
.kicker-flag { display: inline-flex; gap: 6px; }
.kicker-flag i { width: 28px; height: 3px; border-radius: 2px; background: var(--it-green); }
.kicker-flag i:nth-child(2) { background: #fff; box-shadow: 0 0 0 1px var(--line-2); }
.kicker-flag i:nth-child(3) { background: var(--it-red); }

.hero h1 {
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 700; letter-spacing: -.025em; line-height: 1.12;
  max-width: 640px;
}
.hero h1 .accent { color: var(--blue-600); }
.hero-lead { margin-top: 18px; font-size: clamp(15px, 1.35vw, 18px); color: var(--text); max-width: 560px; line-height: 1.5; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 14px 34px; margin-top: 24px; }
.hero-checks li { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); font-size: 15px; }
.chk { width: 22px; height: 22px; border-radius: 50%; background: var(--green-50); color: var(--green); display: grid; place-items: center; flex: none; }
.chk svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Tool card ---------- */
.tool-section { position: relative; z-index: 2; margin-top: -88px; }
.tool-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 12px 12px 26px;
}
.tabs {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px;
  background: #f6f8fb; border-radius: 12px; padding: 4px;
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent;
  font-weight: 600; font-size: 15px; color: var(--ink); cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s;
}
.tab .ic { width: 20px; height: 20px; }
.tab:hover { background: #eaf0f8; }
.tab.is-active { background: var(--navy-800); color: #fff; box-shadow: 0 8px 18px -10px rgba(11, 42, 91, .9); }

.panel { padding: 22px 14px 0; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.panel-title { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.panel-sub { margin-top: 4px; font-size: 14px; color: var(--muted); }

.form-row { display: grid; gap: 14px; align-items: end; margin-top: 16px; }
.form-calc { grid-template-columns: 1fr 1fr 1fr .62fr 1.32fr auto; }
.form-single { grid-template-columns: 1fr auto; }
.form-card { grid-template-columns: 1fr 1fr 1.4fr auto; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lbl { font-size: 13px; font-weight: 600; color: var(--ink); }
.lbl em { color: var(--it-red); font-style: normal; }
.field input, .field select, .form-mass textarea {
  width: 100%; height: 46px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 8px; background: #fff;
  font-size: 14px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .form-mass textarea::placeholder { color: #8a94a8; text-transform: none; letter-spacing: 0; font-family: var(--font); }
.field input:focus, .field select:focus, .form-mass textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(45, 108, 223, .15); }
.field.invalid input, .field.invalid select { border-color: var(--it-red); box-shadow: 0 0 0 3px rgba(215, 38, 61, .1); }
.field input[type="date"] { padding-right: 10px; }
.field input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .75; }

.select-wrap { position: relative; display: block; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer; font-weight: 600; }
.select-wrap .ic { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }

.input-icon { position: relative; }
.input-icon input { padding-right: 40px; }
.input-icon > .ic { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--ink); pointer-events: none; }

.suggest {
  position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0;
  max-height: 260px; overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px;
}
.suggest li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 7px; cursor: pointer; font-size: 14px; }
.suggest li small { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.suggest li:hover, .suggest li.active { background: var(--blue-50); }
.suggest .empty { color: var(--muted); cursor: default; }

.btn-submit { min-width: 150px; }

/* Masse */
.form-mass { margin-top: 16px; display: grid; gap: 12px; }
.form-mass textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.mass-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.file-btn { height: 46px; }

/* Results */
.result:empty { display: none; }
.result { margin: 18px 0 0; }
.res-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
  border-radius: 12px; padding: 16px 18px;
  background: var(--blue-50); border: 1px solid #d6e3fa;
  animation: fade .25s ease;
}
.res-box.ok { background: var(--green-50); border-color: #bfe8cf; }
.res-box.ko { background: var(--red-50); border-color: #f5c3ca; }
.res-box .res-ic { width: 26px; height: 26px; flex: none; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.res-box.ok .res-ic { stroke: var(--green); }
.res-box.ko .res-ic { stroke: var(--it-red); }
.res-code { font-family: var(--mono); font-size: clamp(20px, 2.6vw, 28px); font-weight: 700; letter-spacing: .1em; color: var(--navy-900); word-break: break-all; }
.res-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.res-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.res-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.res-msg { font-weight: 600; color: var(--ink); }
.res-msg span { display: block; font-weight: 400; color: var(--text); font-size: 14px; }

.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; width: 100%; }
.kv div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.kv dt, .kv .k { font-size: 12px; color: var(--muted); font-weight: 500; }
.kv b { display: block; color: var(--ink); font-size: 15px; }

.omo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; width: 100%; }
.omo-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 8px 8px 8px 12px;
  font-family: var(--mono); font-weight: 600; letter-spacing: .06em; color: var(--navy-900);
}
.omo-list li .n { font-family: var(--font); font-size: 11px; color: var(--muted); letter-spacing: 0; margin-right: auto; padding-left: 8px; }
.icon-btn { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 7px; background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--navy-800); flex: none; }
.icon-btn:hover { border-color: var(--navy-800); }
.icon-btn .ic { width: 15px; height: 15px; }

.mass-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; max-height: 340px; }
.mass-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mass-table th, .mass-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mass-table th { position: sticky; top: 0; background: #f6f8fb; font-weight: 600; color: var(--ink); }
.mass-table td.mono { font-weight: 600; }
.mass-table tr:last-child td { border-bottom: 0; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.tag.ok { background: var(--green-50); color: var(--green); }
.tag.ko { background: var(--red-50); color: var(--it-red); }
.mass-summary { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; width: 100%; }

.card-preview { width: 100%; max-width: 520px; border-radius: 14px; box-shadow: var(--shadow); background: #fff; }

/* ---------- Features ---------- */
.features { padding: 46px 0 30px; }
.section-title { display: flex; align-items: center; gap: 14px; font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; letter-spacing: -.02em; }
.title-flag { width: 40px; height: 26px; flex: none; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.feature {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px; box-shadow: var(--shadow-sm);
  font-size: 13.5px; color: var(--text); line-height: 1.45;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #cddaf0; }
.feature strong { display: block; font-size: 15.5px; color: var(--ink); margin-bottom: 4px; font-weight: 600; }
.f-ic { width: 50px; height: 50px; border-radius: 12px; background: var(--blue-50); color: var(--navy-800); display: grid; place-items: center; flex: none; }
.f-ic .ic { width: 26px; height: 26px; stroke-width: 1.8; }

/* ---------- Manage ---------- */
.manage { padding: 34px 0 30px; overflow: hidden; }
.manage-inner { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: 0; }
.manage-visual { position: relative; min-height: 380px; display: flex; align-items: center; justify-content: center; padding-right: 40px; border-right: 1px solid var(--line-2); }
.plant {
  position: absolute; left: -90px; bottom: 6px; width: 210px; height: auto;
  mix-blend-mode: multiply; filter: blur(1.2px) saturate(1.05); opacity: .95;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 55%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 55%, #000 62%, transparent 100%);
}

/* Ordinateur : tout l'écran est en em, mis à l'échelle via la largeur du conteneur (cqw) */
.laptop { position: relative; width: min(100%, 540px); margin-left: 60px; container-type: inline-size; }
.laptop::after {
  content: ""; position: absolute; left: -6%; right: -6%; bottom: -16px; height: 22px; z-index: -1;
  background: radial-gradient(closest-side, rgba(14, 27, 51, .22), transparent);
}
.laptop-lid {
  position: relative;
  background: #0e1014;
  padding: 2.6cqw 2.2cqw 2.4cqw;
  border-radius: 3.4cqw 3.4cqw 1cqw 1cqw;
  box-shadow: inset 0 0 0 1px #2c3039, inset 0 0 0 3px #15181d, 0 18px 40px -18px rgba(14, 27, 51, .45);
}
.laptop-cam { position: absolute; top: 1cqw; left: 50%; width: .9cqw; height: .9cqw; transform: translateX(-50%); border-radius: 50%; background: #262a33; box-shadow: inset 0 0 0 .2cqw #1a1d23; }
.laptop-base {
  position: relative; height: 2.6cqw; margin: 0 -7%;
  background: linear-gradient(180deg, #f4f6f9 0%, #dde1e7 35%, #c4c9d2 75%, #a9afba 100%);
  border-radius: .3cqw .3cqw 50% 50% / .3cqw .3cqw 100% 100%;
  box-shadow: inset 0 1px 0 #fff;
}
.laptop-base span { position: absolute; left: 50%; top: 0; width: 15%; height: 40%; transform: translateX(-50%); background: linear-gradient(180deg, #b9bfc9, #d3d7de); border-radius: 0 0 1.2cqw 1.2cqw; }

.app {
  display: grid; grid-template-columns: 29% 1fr;
  aspect-ratio: 16 / 10; overflow: hidden;
  background: #fff; border-radius: .6cqw;
  font-size: 1.72cqw; line-height: 1.3; color: var(--ink);
}
.app svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.app-side { background: #f4f7fb; border-right: 1px solid var(--line); padding: 1.1em .8em; }
.app-logo { display: flex; align-items: center; gap: .4em; font-weight: 700; color: var(--navy-900); margin: 0 .3em 1.1em; white-space: nowrap; }
.app-logo svg { width: 1.9em; height: 1.1em; stroke: none; }
.app-side li { display: flex; align-items: center; gap: .6em; padding: .42em .6em; border-radius: .5em; color: var(--text); font-weight: 500; white-space: nowrap; }
.app-side li.on { background: var(--navy-800); color: #fff; }

.app-main { padding: 1em 1.2em; display: flex; flex-direction: column; gap: .8em; min-width: 0; background: #fbfcfe; }
.app-top { display: flex; align-items: center; gap: .8em; }
.app-h { font-weight: 700; font-size: 1.35em; margin-right: auto; white-space: nowrap; }
.app-search { display: flex; align-items: center; gap: .45em; padding: .4em .8em; width: 11em; overflow: hidden; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: #8a94a8; font-size: .85em; white-space: nowrap; }
.app-avatar { width: 2.2em; height: 2.2em; border-radius: 50%; background: var(--navy-800); color: #fff; display: grid; place-items: center; font-size: .75em; font-weight: 700; flex: none; }

.app-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7em; }
.app-stats div { position: relative; background: #fff; border: 1px solid var(--line); border-radius: .7em; padding: .6em .8em; }
.app-stats span { display: block; font-size: .8em; color: var(--muted); font-weight: 600; white-space: nowrap; }
.app-stats b { font-size: 1.4em; color: var(--navy-900); }
.app-stats em { position: absolute; right: .7em; bottom: .75em; font-style: normal; font-size: .72em; font-weight: 700; color: var(--green); background: var(--green-50); padding: .1em .45em; border-radius: 99px; }

.app-card { background: #fff; border: 1px solid var(--line); border-radius: .7em; overflow: hidden; }
.app-th { display: flex; align-items: baseline; justify-content: space-between; font-weight: 700; padding: .55em .8em; border-bottom: 1px solid var(--line); }
.app-th small { font-size: .78em; font-weight: 500; color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: .9em; height: 7.6em; padding: .6em .9em .5em; }
.bars i { flex: 1; height: var(--h); border-radius: .35em .35em .1em .1em; background: #d9e5fb; }
.bars i.hi { background: var(--navy-800); }
.app-tr { display: grid; grid-template-columns: 1.3em 1.35fr 1fr; align-items: center; gap: .7em; padding: .42em .8em; border-bottom: 1px solid var(--line); }
.app-tr:last-child { border-bottom: 0; }
.app-tr i { width: 1.25em; height: 1.25em; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; }
.app-tr i svg { width: .8em; height: .8em; stroke-width: 3.5; }
.app-tr code { font-family: var(--mono); font-size: .88em; font-weight: 600; letter-spacing: .02em; }
.app-tr span { font-size: .88em; color: var(--text); white-space: nowrap; }

.manage-text { padding-left: 48px; }
.manage-text h2 { font-size: clamp(24px, 2.5vw, 32px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.ticks { margin: 22px 0 28px; display: grid; gap: 12px; }
.ticks li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; color: var(--text); font-weight: 500; }
.ticks .ic { color: var(--blue-600); stroke-width: 2.6; width: 18px; height: 18px; }

/* ---------- Trust ---------- */
.trust { padding: 20px 0 46px; }
.trust-bar {
  display: grid; grid-template-columns: 1fr 1.2fr 1fr;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 20px 10px;
}
.trust-item { display: flex; align-items: center; gap: 16px; padding: 4px 22px; }
.trust-item + .trust-item { border-left: 1px solid var(--line-2); }
.trust-item .ic { width: 34px; height: 34px; color: var(--navy-800); stroke-width: 1.6; }
.trust-item p { font-size: 13px; color: var(--text); line-height: 1.4; }
.trust-item strong { display: block; font-size: 15px; color: var(--ink); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #c9d3e6; padding: 46px 0 0; }
.footer-top { display: grid; grid-template-columns: 320px 1fr; gap: 0; padding-bottom: 36px; }
.footer-brand { padding-right: 40px; border-right: 1px solid rgba(255,255,255,.14); }
.brand-light strong { color: #fff; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.footer-brand p { margin-top: 18px; font-size: 14px; line-height: 1.6; color: #d2dbec; }
.socials { display: flex; gap: 18px; margin-top: 24px; }
.socials a { color: #fff; opacity: .92; transition: opacity .2s, transform .2s; }
.socials a:hover { opacity: 1; transform: translateY(-2px); }
.socials svg { width: 22px; height: 22px; fill: currentColor; }
.socials svg.stroke { fill: none; stroke: currentColor; stroke-width: 2; }

.footer-cols { display: grid; grid-template-columns: auto auto auto auto; justify-content: space-between; gap: 24px; padding-left: 40px; }
.footer-cols h3 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.footer-cols a { display: block; font-size: 13px; color: #c9d3e6; padding: 3px 0; transition: color .2s; white-space: nowrap; }
.footer-cols a:hover { color: #fff; }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; padding-bottom: 26px; }
.footer-bottom p { font-size: 13px; color: #c9d3e6; }

.payments { display: flex; flex-wrap: wrap; gap: 12px; }
.pay { height: 34px; min-width: 60px; padding: 0 10px; background: #fff; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 2px; font-weight: 700; color: #111; font-size: 15px; }
.pay-visa { color: #1a1f71; font-style: italic; font-weight: 800; letter-spacing: .02em; font-size: 17px; }
.pay-mc i { width: 20px; height: 20px; border-radius: 50%; background: #eb001b; display: block; }
.pay-mc i + i { background: #f79e1b; margin-left: -8px; mix-blend-mode: multiply; }
.pay-amex span { background: #1f72cd; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 5px 6px; border-radius: 3px; font-style: italic; }
.pay-apple svg { width: 17px; height: 17px; fill: #000; margin-top: -3px; }
.pay-apple { font-weight: 600; font-size: 16px; }
.pay-gpay { font-weight: 500; color: #3c4043; font-size: 16px; gap: 3px; }
.pay-gpay b { font-weight: 700; background: conic-gradient(from -45deg, #ea4335 0 25%, #4285f4 25% 50%, #34a853 50% 75%, #fbbc05 75% 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--navy-900); color: #fff; padding: 11px 18px; border-radius: 10px;
  font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg);
  transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1180px) {
  .form-calc { grid-template-columns: repeat(3, 1fr); }
  .form-calc .btn-submit { grid-column: 3; }
  .form-calc .field-place { grid-column: span 2; }
  .tab { font-size: 14px; padding: 0 12px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, 1fr); justify-content: stretch; }
  .footer-cols a { white-space: normal; }
}

@media (max-width: 1080px) {
  .hide-md { display: none; }
  /* backdrop-filter ferait du header le bloc conteneur du menu fixed */
  .site-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .burger { display: inline-flex; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; padding: 16px 24px 32px; overflow-y: auto;
    transform: translateX(100%); transition: transform .25s ease; visibility: hidden;
  }
  .main-nav.open { transform: none; visibility: visible; }
  .nav-link { width: 100%; height: 50px; font-size: 16px; justify-content: space-between; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 4px; }
  .main-nav .has-dropdown .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 8px; display: none; }
  .main-nav .has-dropdown.open .dropdown { display: block; }
  .nav-actions-mobile { display: grid; gap: 10px; margin-top: 20px; }
  .nav-actions-mobile .btn { height: 48px; }
  .header-actions { margin-left: auto; }

  .hero { padding: 36px 0 110px; }
  .hero-bg { width: 70%; opacity: .6; }

  .manage-inner { grid-template-columns: 1fr; gap: 36px; }
  .manage-visual { border-right: 0; padding-right: 0; min-height: 0; }
  .manage-text { padding-left: 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
  .ticks { text-align: left; }

  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { border-right: 0; padding-right: 0; }
  .footer-cols { padding-left: 0; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  body { font-size: 14px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .brand-flag { width: 34px; height: 20px; }
  .brand-text strong { font-size: 17px; }
  .brand-text small { display: none; }
  .btn-lang { padding: 0 10px; }

  .hero { padding: 28px 0 280px; }
  .hero-bg { top: auto; height: 300px; width: 100%; opacity: 1; background-position: 70% center; }
  .hero-bg {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 40%, #000 80%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 40%, #000 80%, transparent 100%);
  }
  .br-lg { display: none; }
  .hero-checks { gap: 10px 22px; }
  .kicker { letter-spacing: .24em; font-size: 12px; }

  .tool-section { margin-top: -70px; }
  .tool-card { padding: 8px 8px 20px; border-radius: 16px; }
  .tabs { display: flex; }
  .tab { flex: none; height: 42px; font-size: 14px; }
  .panel { padding: 18px 8px 0; }
  .panel-title { font-size: 19px; }
  .form-calc, .form-single, .form-card { grid-template-columns: 1fr 1fr; }
  .form-calc .field-place, .form-calc .btn-submit, .form-single .field-grow, .form-single .btn-submit,
  .form-card .field-grow, .form-card .btn-submit { grid-column: 1 / -1; }
  .form-calc .field:nth-child(3) { grid-column: 1 / 2; }
  .field input, .field select { font-size: 16px; } /* évite le zoom iOS */
  .form-mass textarea { font-size: 16px; }
  .mass-actions .btn { flex: 1; }
  .res-actions { margin-left: 0; width: 100%; }
  .res-actions .btn { flex: 1; }

  .feature-grid { grid-template-columns: 1fr; gap: 10px; }
  .feature { padding: 14px; }
  .f-ic { width: 44px; height: 44px; }

  .plant { display: none; }
  .laptop { margin-left: 0; width: 92%; }

  .trust-bar { grid-template-columns: 1fr; padding: 6px 4px; }
  .trust-item { padding: 14px 16px; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }

  .footer-cols { grid-template-columns: 1fr 1fr; gap: 26px 16px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .payments { gap: 8px; }
  .pay { height: 30px; min-width: 52px; padding: 0 8px; font-size: 14px; }
}

@media (max-width: 380px) {
  .footer-cols { grid-template-columns: 1fr; }
  .hero-checks li { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  body * { visibility: hidden; }
  #printArea, #printArea * { visibility: visible; }
  #printArea { position: absolute; left: 0; top: 0; width: 86mm; }
}
