/* ==========================================================================
   Carte de visite virtuelle — Le guide comparatif 2026
   Independent comparison guide (French market).
   Design: editorial, warm paper, serif display, hairlines — not templated SaaS.
   ========================================================================== */

:root {
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --accent:      #2a43c8;   /* deep cobalt-indigo, used sparingly */
  --accent-weak: #eef0fb;
  --accent-line: #cfd6f3;

  --ink:   #1a1813;         /* warm near-black */
  --ink-2: #4b483f;         /* body text */
  --ink-3: #8b8579;         /* muted / meta */

  --paper: #f6f4ee;         /* warm soft section */
  --bg:    #ffffff;
  --line:  #e6e2d7;         /* warm hairline */
  --line-2:#efece3;

  --maxw: 1120px;

  --ic-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1813' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --ic-dash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bdb8ab' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E");
  --ic-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b8893f'%3E%3Cpath d='M12 2l2.9 5.9 6.5.9-4.7 4.6 1.1 6.5L12 17.8 6.2 20.8l1.1-6.5L2.6 9.7l6.5-.9z'/%3E%3C/svg%3E");
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink-2);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--accent); color: #fff; }

h1, h2 {
  font-family: var(--display); font-weight: 500; color: var(--ink);
  line-height: 1.08; letter-spacing: -0.005em; margin: 0;
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4rem); }
h2 { font-size: clamp(2rem, 3.7vw, 2.85rem); }
h3 { font-family: var(--sans); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--ink); margin: 0; }
h4 { font-family: var(--sans); font-weight: 700; font-size: 1.02rem; color: var(--ink); margin: 0; }
p { margin: 0 0 1rem; }

.icon { width: 24px; height: 24px; display: inline-block; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 760px; }

.section { padding: 96px 0; }
.section--tight { padding: 40px 0; }
.section--soft { background: var(--paper); }
.section + .section--soft, .section--soft + .section { border-top: 1px solid var(--line); }

/* kicker label (replaces pill eyebrow) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: .76rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); display: inline-block; }

.section-head { max-width: 720px; margin: 0 0 46px; }
.section-head p { color: var(--ink-3); font-size: 1.1rem; margin-top: 16px; }
.lead { font-size: 1.18rem; color: var(--ink-2); }

.stars {
  display: inline-block; width: 78px; height: 14px; background-image: var(--ic-star);
  background-size: 15.6px 14px; background-repeat: repeat-x; background-position: left center; vertical-align: -2px;
}

/* slim modern button (mostly unused — editorial page) */
.btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; padding: 13px 22px; border-radius: 8px; background: var(--ink); color: #fff; border: 1px solid var(--ink); cursor: pointer; transition: background .15s ease; }
.btn:hover { background: #000; text-decoration: none; }

/* ==========================================================================
   Navbar — editorial masthead
   ========================================================================== */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.nav--scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0; background: var(--ink); display: grid; place-items: center; color: #fff; }
.brand-mark .icon { width: 21px; height: 21px; }
.brand-stack { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text { font-family: var(--sans); font-weight: 700; font-size: 1.04rem; letter-spacing: -0.02em; color: var(--ink); }
.brand-text .tld { color: var(--ink-3); font-weight: 600; }
.brand-sub { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-top: 1px; }
.nav-meta { font-size: .8rem; font-weight: 500; letter-spacing: .04em; color: var(--ink-3); white-space: nowrap; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: 84px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: 60px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .tagline { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 1.5rem; color: var(--ink); margin-bottom: 18px; line-height: 1.3; }
.hero .sub { font-size: 1.08rem; color: var(--ink-2); max-width: 520px; margin: 0; }

/* hero visual: paper card behind a phone */
.hero-visual { position: relative; min-height: 460px; display: flex; align-items: center; justify-content: center; }
.paper-card {
  position: absolute; left: 0; bottom: 40px; z-index: 1; width: 226px; height: 134px; transform: rotate(-8deg);
  background: #efece3; border: 1px solid var(--line); border-radius: 8px; padding: 18px;
  box-shadow: 0 18px 30px -16px rgba(26,24,19,.25);
}
.paper-card::after { content: ""; position: absolute; inset: 0; border-radius: 8px; background: linear-gradient(115deg, rgba(0,0,0,0) 47%, rgba(0,0,0,.05) 50%, rgba(0,0,0,0) 53%); }
.paper-card .pp-tag { font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.paper-card .pp-name { font-family: var(--display); font-size: 1.05rem; color: #6f6a5f; margin-top: 10px; }
.paper-card .pp-line { height: 6px; width: 70%; background: #d8d4c8; border-radius: 3px; margin-top: 9px; }
.paper-card .pp-line.short { width: 45%; }

.phone { position: relative; z-index: 2; width: 262px; background: var(--ink); border-radius: 38px; padding: 10px; box-shadow: 0 34px 64px -26px rgba(26,24,19,.45); transform: translateX(16%); }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 108px; height: 23px; background: var(--ink); border-radius: 0 0 12px 12px; z-index: 4; }
.phone-screen { background: #fff; border-radius: 29px; overflow: hidden; }
.card-cover { height: 100px; background: var(--accent); }
.card-body { padding: 0 20px 20px; margin-top: -40px; position: relative; }
.card-avatar { width: 80px; height: 80px; border-radius: 50%; border: 4px solid #fff; background: var(--ink); display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 500; font-size: 1.7rem; }
.card-name { font-family: var(--display); font-size: 1.3rem; font-weight: 500; color: var(--ink); margin: 12px 0 2px; }
.card-role { color: var(--ink-3); font-size: .88rem; }
.card-qr { display: block; width: 96px; height: 96px; margin: 16px auto 0; padding: 6px; background: #fff; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); }
.card-save { margin-top: 16px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 12px; border-radius: 9px; font-weight: 600; font-size: .88rem; }
.card-save .icon { width: 15px; height: 15px; stroke-width: 2.3; }

/* ==========================================================================
   Educational
   ========================================================================== */
.answer-box {
  border-left: 2px solid var(--accent); padding: 4px 0 4px 26px; margin: 0 0 16px;
  font-family: var(--display); font-size: 1.32rem; line-height: 1.5; color: var(--ink); font-weight: 400;
}
.sub-h3 { font-family: var(--sans); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; color: var(--ink); margin: 54px 0 24px; }

/* process steps */
.proc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.proc-step { background: var(--bg); padding: 30px 26px; }
.proc-num { font-family: var(--display); font-size: 2.2rem; font-weight: 500; color: var(--accent); line-height: 1; margin-bottom: 14px; }
.proc-step h4 { margin-bottom: 9px; }
.proc-step p { margin: 0; color: var(--ink-2); font-size: .96rem; }

/* advantages */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 38px; }
.adv { display: flex; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line); }
.adv .adv-ico { color: var(--accent); flex-shrink: 0; line-height: 0; margin-top: 2px; }
.adv .adv-ico .icon { width: 26px; height: 26px; stroke-width: 1.6; }
.adv h4 { font-size: 1.02rem; margin-bottom: 5px; }
.adv p { margin: 0; color: var(--ink-2); font-size: .92rem; }

/* who uses */
.who-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 26px; }
.who { text-align: center; padding: 22px 10px; border: 1px solid var(--line); border-radius: 12px; }
.who .ico { width: 46px; height: 46px; margin: 0 auto; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.who .ico .icon { width: 23px; height: 23px; }
.who span { display: block; margin-top: 13px; font-size: .82rem; font-weight: 600; color: var(--ink); }

/* ==========================================================================
   Comparison table — clean, monochrome
   ========================================================================== */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); -webkit-overflow-scrolling: touch; }
table.cmp { width: 100%; min-width: 820px; border-collapse: collapse; font-size: .95rem; }
.cmp th, .cmp td { padding: 16px 16px; text-align: center; border-bottom: 1px solid var(--line-2); }
.cmp thead th { font-family: var(--sans); font-weight: 700; font-size: 1rem; color: var(--ink); vertical-align: bottom; padding-bottom: 18px; padding-top: 20px; }
.cmp th.feat, .cmp td.feat { text-align: left; font-weight: 500; color: var(--ink-2); min-width: 250px; position: sticky; left: 0; background: var(--bg); z-index: 2; }
.cmp tbody tr:last-child td { border-bottom: none; }
.cmp tbody tr:hover td { background: #faf9f5; }
.cmp tbody tr:hover td.feat { background: #f4f2ea; }

.cmp .col-spreadly { background: var(--accent-weak); }
.cmp thead .col-spreadly { color: var(--accent); border-top-left-radius: 10px; border-top-right-radius: 10px; }
.cmp tbody .col-spreadly { color: var(--ink); font-weight: 600; }
.cmp tbody tr:hover td.col-spreadly { background: #e6eafb; }
.cmp tbody tr:last-child .col-spreadly { border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; }

.cmp-prov { display: inline-flex; flex-direction: column; align-items: center; gap: 9px; font-family: var(--sans); font-weight: 700; color: inherit; }
.cmp-prov:hover { text-decoration: none; }
.cmp-prov:hover .cmp-name { text-decoration: underline; }
.cmp-name { font-weight: 700; }
.cmp-logo { display: flex; align-items: center; justify-content: center; height: 30px; }
.cmp-logo img { max-height: 26px; max-width: 104px; width: auto; height: auto; object-fit: contain; display: block; }
.cmp-tag { display: block; font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 11px; }
.cmp .price { font-weight: 600; font-size: .9rem; color: var(--ink); }
.cmp .muted { color: var(--ink-3); font-weight: 500; }

.yes, .no { display: inline-block; width: 22px; height: 22px; background-position: center; background-repeat: no-repeat; vertical-align: middle; }
.yes { background-image: var(--ic-check); background-size: 19px; }
.no  { background-image: var(--ic-dash);  background-size: 18px; }

.disclaimer { font-size: .86rem; color: var(--ink-3); margin: 20px 0 0; max-width: 760px; }

/* ==========================================================================
   Differentiators
   ========================================================================== */
.diff-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 56px; }
.dash { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg); box-shadow: 0 30px 50px -34px rgba(26,24,19,.3); }
.dash-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
.dash-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d8d3c6; }
.dash-bar .url { margin-left: 10px; font-size: .73rem; color: var(--ink-3); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; }
.dash-body { display: grid; grid-template-columns: 60px 1fr; }
.dash-side { background: var(--paper); border-right: 1px solid var(--line); padding: 16px 0; display: grid; gap: 13px; justify-items: center; }
.dash-side span { width: 24px; height: 24px; border-radius: 7px; background: #e2ddd0; }
.dash-side span:first-child { background: var(--accent); }
.dash-main { padding: 18px; }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.dash-stat { border: 1px solid var(--line); border-radius: 9px; padding: 12px; }
.dash-stat b { display: block; font-family: var(--display); font-weight: 500; font-size: 1.35rem; color: var(--ink); }
.dash-stat small { font-size: .66rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.dash-chart { display: flex; align-items: flex-end; gap: 9px; height: 92px; padding: 12px; background: var(--paper); border-radius: 9px; }
.dash-chart i { flex: 1; background: var(--accent); border-radius: 3px 3px 0 0; }

.diff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.diff { background: var(--bg); padding: 34px 32px; }
.diff-ico { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; color: var(--accent); margin-bottom: 18px; }
.diff-ico .icon { width: 23px; height: 23px; }
.diff h3 { font-size: 1.22rem; margin-bottom: 11px; }
.diff > p { color: var(--ink-2); font-size: .97rem; }

.check-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; color: var(--ink-2); }
.check-list li::before { content: ""; flex-shrink: 0; width: 19px; height: 19px; margin-top: 2px; background-image: var(--ic-check); background-repeat: no-repeat; background-position: center; background-size: 17px; }

/* ==========================================================================
   Trust strip
   ========================================================================== */
.trust-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 34px; padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust { display: inline-flex; align-items: center; gap: 9px; font-size: .9rem; font-weight: 500; color: var(--ink-3); }
.trust .icon { width: 17px; height: 17px; color: var(--ink-2); }
.trust .stars { width: 60px; height: 12px; background-size: 12px 11px; }

/* ==========================================================================
   FAQ — divided list
   ========================================================================== */
.faq-wrap { max-width: 780px; border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); background: none; }
.faq summary { list-style: none; cursor: pointer; padding: 24px 6px; font-family: var(--sans); font-weight: 600; font-size: 1.08rem; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 1.5rem; font-weight: 300; color: var(--accent); flex-shrink: 0; line-height: 1; transition: transform .2s ease; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 6px 26px; color: var(--ink-2); font-size: 1rem; max-width: 660px; }
.faq-answer p { margin: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--ink); color: #a8a294; padding: 60px 0 38px; }
.footer .brand { color: #fff; }
.footer .brand-mark { background: #fff; color: var(--ink); }
.footer .brand-text { color: #fff; }
.footer .brand-text .tld { color: #948e80; }
.footer .brand-sub { color: #c9b07a; }
.footer-about { max-width: 460px; }
.footer-about p { font-size: .92rem; color: #8b8578; margin-top: 16px; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .84rem; color: #7c766a; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .section { padding: 68px 0; }
  .hero-grid, .diff-intro { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; min-height: 400px; }
  .proc { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr 1fr; }
  .who-grid { grid-template-columns: repeat(3, 1fr); }
  .diff-grid { grid-template-columns: 1fr; }
  .nav-meta { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .section { padding: 54px 0; }
  .hero { padding: 56px 0 60px; }
  .hero .tagline { font-size: 1.3rem; }
  .adv-grid, .who-grid { grid-template-columns: 1fr 1fr; }
  .diff { padding: 28px 24px; }
}

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