/* ============================================================
   iSharePDF, feuille de style partagée (charte crème/orange)
   ============================================================ */
:root{
  --cream:#FBF7F0;
  --cream-2:#F4ECDD;
  --surface:#ffffff;
  --ink:#241A10;
  --ink-soft:#7A6E5F;
  --line:#EAE0CF;
  --line-soft:#F0E8D9;
  --primary:#EE5A24;
  --primary-ink:#C4400F;
  --r-card:16px;

  --org:#2D6BE3;  --org-bg:#E9F0FF;
  --opt:#1E9E5A;  --opt-bg:#E4F6EC;
  --con:#7A4FE0;  --con-bg:#F0EAFF;
  --edi:#E0820C;  --edi-bg:#FFF1DA;
  --sec:#DD455E;  --sec-bg:#FFE8EC;

  --shadow-sm:0 1px 2px rgba(36,26,16,.05), 0 2px 6px rgba(36,26,16,.04);
  --shadow-md:0 10px 30px rgba(36,26,16,.10);
  --maxw:1180px;
}
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0; background:var(--cream); color:var(--ink);
  font-family:'Hanken Grotesk', system-ui, sans-serif; font-size:16px; line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{ font-family:'Bricolage Grotesque', system-ui, sans-serif; font-weight:700; line-height:1.05; margin:0; letter-spacing:-.01em; }
a{ color:inherit; text-decoration:none; }
.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 24px; }
.eyebrow{ font-size:13px; font-weight:700; letter-spacing:.13em; text-transform:uppercase; color:var(--primary-ink); }

/* ---------- header ---------- */
header.nav{ position:sticky; top:0; z-index:40; background:rgba(251,247,240,.86); backdrop-filter:blur(10px); border-bottom:1px solid var(--line); }
.nav-in{ display:flex; align-items:center; gap:26px; height:70px; }
.logo{ display:flex; align-items:center; gap:10px; font-family:'Bricolage Grotesque'; font-weight:800; font-size:22px; letter-spacing:-.02em; }
.logo .mark{ width:34px; height:34px; border-radius:10px; background:var(--primary); color:#fff; display:grid; place-items:center; font-size:18px; box-shadow:var(--shadow-sm); }
.logo b{ color:var(--primary); font-weight:800; }
nav.links{ display:flex; flex-wrap:nowrap; gap:20px; font-weight:500; font-size:15px; color:var(--ink-soft); }
nav.links a{ white-space:nowrap; }
nav.links a:hover{ color:var(--ink); }
.nav-right{ margin-left:auto; display:flex; align-items:center; gap:14px; }
.lang{ font-weight:600; font-size:14px; color:var(--ink-soft); white-space:nowrap; }
.btn{ font-family:'Bricolage Grotesque'; font-weight:700; font-size:15px; border-radius:999px; padding:10px 20px; cursor:pointer; border:none; display:inline-flex; align-items:center; gap:8px; transition:.16s; text-decoration:none; }
.btn-primary{ background:var(--primary); color:#fff; box-shadow:0 4px 14px rgba(238,90,36,.32); }
.btn-primary:hover{ background:var(--primary-ink); transform:translateY(-1px); }
.btn-ghost{ background:transparent; color:var(--ink); border:1.5px solid var(--line); }
.btn-ghost:hover{ border-color:var(--ink); }

/* ---------- hero ---------- */
.hero{ position:relative; overflow:hidden; padding:64px 0 48px; text-align:center; }
.hero::before{ content:""; position:absolute; inset:0; background:
    radial-gradient(60% 60% at 50% -10%, rgba(238,90,36,.10), transparent 70%),
    radial-gradient(40% 40% at 85% 20%, rgba(45,107,227,.07), transparent 70%); z-index:0; }
.hero-in{ position:relative; z-index:1; }
.hero h1{ font-size:clamp(38px,5.4vw,68px); font-weight:800; margin:14px auto 16px; max-width:14ch; }
.hero h1 .hl{ color:var(--primary); }
.hero .sub{ font-size:clamp(17px,2vw,20px); color:var(--ink-soft); max-width:620px; margin:0 auto 30px; }

.dropzone{ position:relative; max-width:560px; margin:0 auto; background:var(--surface); border:2px dashed var(--primary); border-radius:22px; padding:34px 30px 28px; box-shadow:var(--shadow-md); transition:.18s; }
.dropzone.over{ background:#FFF6F1; transform:scale(1.01); }
.dz-icon{ width:64px; height:64px; margin:0 auto 12px; border-radius:18px; background:#FFF0E9; color:var(--primary); display:grid; place-items:center; }
.dz-icon svg{ width:30px; height:30px; }
.dz-title{ font-family:'Bricolage Grotesque'; font-weight:700; font-size:24px; }
.dz-note{ color:var(--ink-soft); font-size:14px; margin:4px 0 18px; }
.dz-actions{ display:flex; gap:12px; justify-content:center; align-items:center; flex-wrap:wrap; }
.dz-file{ display:none; margin-top:14px; font-weight:600; color:var(--opt); font-size:14px; }
.dz-file.show{ display:block; }
.privacy-badge{ display:inline-flex; align-items:center; gap:8px; margin-top:18px; padding:8px 16px; border-radius:999px; background:var(--opt-bg); color:#15703f; font-weight:600; font-size:13.5px; }
.privacy-badge svg{ width:16px; height:16px; }

.pop-label{ margin:28px 0 12px; font-size:14px; color:var(--ink-soft); font-weight:600; }
.pop-chips{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; }
.chip{ display:inline-flex; align-items:center; gap:8px; padding:8px 15px 8px 9px; border-radius:999px; background:var(--surface); border:1px solid var(--line); font-weight:600; font-size:14px; box-shadow:var(--shadow-sm); transition:.16s; }
.chip:hover{ transform:translateY(-2px); box-shadow:var(--shadow-md); }
.chip-ic{ width:26px; height:26px; border-radius:8px; display:grid; place-items:center; }
.chip-ic svg{ width:16px; height:16px; }

/* ---------- trust strip ---------- */
.trust{ border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:var(--cream-2); }
.trust-in{ display:flex; flex-wrap:wrap; gap:14px 48px; justify-content:center; align-items:center; padding:18px 0; }
.trust-item{ display:flex; align-items:center; gap:10px; font-size:14px; color:var(--ink-soft); font-weight:500; }
.trust-item b{ font-family:'Bricolage Grotesque'; color:var(--ink); font-size:19px; font-weight:700; }
.stars{ color:#F5A623; letter-spacing:1px; }

/* ---------- section base ---------- */
section.sec{ padding:64px 0; }
.sec-head{ text-align:center; max-width:680px; margin:0 auto 36px; }
.sec-head h2{ font-size:clamp(30px,4vw,44px); font-weight:800; }
.sec-head p{ color:var(--ink-soft); font-size:18px; margin-top:10px; }

/* category nav */
.cat-nav{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-bottom:34px; }
.fpill{ font-family:'Bricolage Grotesque'; font-weight:600; font-size:15px; padding:9px 18px; border-radius:999px; background:var(--surface); border:1px solid var(--line); cursor:pointer; transition:.14s; }
.fpill:hover{ border-color:var(--ink); }
.fpill[aria-pressed="true"]{ background:var(--ink); color:var(--cream); border-color:var(--ink); }

/* category blocks */
.cat-block{ margin-bottom:40px; scroll-margin-top:90px; }
.cat-head{ display:flex; align-items:center; gap:12px; margin-bottom:18px; }
.cat-head h3{ font-size:24px; font-weight:700; }
.cat-dot{ width:12px; height:12px; border-radius:50%; }
.cat-tag{ color:var(--ink-soft); font-size:14px; }
.cat-count{ margin-left:auto; font-family:'Bricolage Grotesque'; font-weight:700; font-size:13px; color:var(--ink-soft); background:var(--cream-2); border:1px solid var(--line); border-radius:999px; padding:2px 11px; }

.grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(218px,1fr)); gap:16px; }
.tool{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-card); padding:18px; display:flex; flex-direction:column; gap:12px; transition:.16s; }
.tool:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:transparent; }
.tool .ic{ width:48px; height:48px; border-radius:13px; display:grid; place-items:center; }
.tool .ic svg{ width:26px; height:26px; }
.tool-name{ font-family:'Bricolage Grotesque'; font-weight:700; font-size:17px; display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.tool-desc{ font-size:13.5px; color:var(--ink-soft); line-height:1.4; }
body.hide-desc .tool-desc{ display:none; }
/* badge cloud (outils serveur EU, pas 100% local) */
.tag-cloud{ font-family:'Hanken Grotesk'; font-weight:700; font-size:10px; letter-spacing:.03em; text-transform:uppercase; color:var(--con); background:var(--con-bg); border:1px solid #D9CCF5; border-radius:999px; padding:1px 7px; line-height:1.6; }
.chip .tag-cloud{ margin-left:2px; }

/* category color tokens */
.ic.organiser,.chip-ic.organiser,.cat-dot.organiser{ background:var(--org-bg); color:var(--org); } .cat-dot.organiser{ background:var(--org); }
.ic.optimiser,.chip-ic.optimiser,.cat-dot.optimiser{ background:var(--opt-bg); color:var(--opt); } .cat-dot.optimiser{ background:var(--opt); }
.ic.convertir,.chip-ic.convertir,.cat-dot.convertir{ background:var(--con-bg); color:var(--con); } .cat-dot.convertir{ background:var(--con); }
.ic.editer,.chip-ic.editer,.cat-dot.editer{ background:var(--edi-bg); color:var(--edi); } .cat-dot.editer{ background:var(--edi); }
.ic.securiser,.chip-ic.securiser,.cat-dot.securiser{ background:var(--sec-bg); color:var(--sec); } .cat-dot.securiser{ background:var(--sec); }

/* ---------- privacy band ---------- */
.privacy-band{ background:var(--ink); color:#F4ECDD; }
.privacy-band .wrap{ padding-top:64px; padding-bottom:64px; }
.pb-top{ display:grid; grid-template-columns:1.1fr 1fr; gap:48px; align-items:center; }
.pb-top .eyebrow{ color:#FFB48F; }
.pb-top h2{ color:#fff; font-size:clamp(28px,3.6vw,40px); font-weight:800; margin:12px 0 14px; }
.pb-top p{ color:#CDBFAC; font-size:17px; }
.pb-shield{ width:100%; max-width:280px; margin:0 auto; aspect-ratio:1; border-radius:28px; background:linear-gradient(160deg, rgba(238,90,36,.25), rgba(45,107,227,.18)); border:1px solid rgba(255,255,255,.12); display:grid; place-items:center; }
.pb-shield svg{ width:96px; height:96px; color:#FFB48F; }
.pb-steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:46px; }
.pb-step{ background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.10); border-radius:16px; padding:22px; }
.pb-step .num{ font-family:'Bricolage Grotesque'; font-weight:800; font-size:15px; color:var(--ink); background:#FFB48F; width:30px; height:30px; border-radius:50%; display:grid; place-items:center; margin-bottom:12px; }
.pb-step h4{ color:#fff; font-size:18px; margin-bottom:6px; }
.pb-step p{ color:#BBAE9B; font-size:14px; margin:0; }

/* ---------- why 3up ---------- */
.why{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.why-card{ background:var(--surface); border:1px solid var(--line); border-radius:18px; padding:28px; }
.why-card .ic{ width:52px; height:52px; border-radius:14px; background:#FFF0E9; color:var(--primary); display:grid; place-items:center; margin-bottom:16px; }
.why-card .ic svg{ width:28px; height:28px; }
.why-card h3{ font-size:21px; margin-bottom:8px; }
.why-card p{ color:var(--ink-soft); font-size:15px; margin:0; }

/* ---------- premium ---------- */
.premium{ background:linear-gradient(135deg, #FFF0E9, #FCE6DA); border:1px solid #F4CBB7; border-radius:24px; padding:40px; display:flex; gap:36px; align-items:center; flex-wrap:wrap; }
.premium .txt{ flex:1; min-width:280px; }
.badge-pro{ display:inline-block; font-family:'Bricolage Grotesque'; font-weight:800; font-size:12px; letter-spacing:.1em; color:#fff; background:var(--primary); padding:5px 12px; border-radius:999px; }
.premium h2{ font-size:clamp(26px,3.2vw,36px); font-weight:800; margin:14px 0 10px; }
.premium p{ color:var(--ink-soft); font-size:16px; margin:0 0 20px; }
.premium ul{ list-style:none; margin:0 0 22px; padding:0; display:flex; flex-wrap:wrap; gap:10px 22px; }
.premium li{ font-weight:600; font-size:14.5px; display:flex; align-items:center; gap:8px; }
.premium li::before{ content:"✓"; color:var(--primary); font-weight:800; }

/* ---------- editorial ---------- */
.editorial{ max-width:760px; margin:0 auto; }
.editorial h2{ font-size:clamp(26px,3.4vw,38px); font-weight:800; margin-bottom:18px; }
.editorial h3{ font-size:20px; margin:26px 0 8px; }
.editorial p{ color:#5C5345; font-size:16.5px; margin:0 0 14px; }
.editorial a.inline{ color:var(--primary-ink); font-weight:600; border-bottom:1px solid currentColor; }

/* ---------- FAQ ---------- */
.faq{ max-width:780px; margin:0 auto; }
.faq-item{ background:var(--surface); border:1px solid var(--line); border-radius:14px; margin-bottom:12px; overflow:hidden; }
.faq-q{ width:100%; text-align:left; background:none; border:none; cursor:pointer; padding:20px 22px; font-family:'Bricolage Grotesque'; font-weight:700; font-size:18px; color:var(--ink); display:flex; justify-content:space-between; align-items:center; gap:14px; }
.faq-q .pm{ flex:none; width:26px; height:26px; border-radius:50%; background:var(--cream-2); display:grid; place-items:center; font-size:18px; color:var(--primary); transition:.2s; }
.faq-item.open .faq-q .pm{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .26s ease; }
.faq-item.open .faq-a{ max-height:240px; }
.faq-a p{ padding:0 22px 20px; margin:0; color:var(--ink-soft); font-size:15.5px; }

/* ---------- footer ---------- */
footer{ background:var(--ink); color:#C7BAA8; padding:56px 0 30px; }
.foot-grid{ display:grid; grid-template-columns:1.5fr repeat(5,1fr); gap:30px; }
.foot-brand .logo{ color:#fff; margin-bottom:14px; }
.foot-brand .logo b{ color:#FFB48F; }
.foot-brand p{ font-size:14px; max-width:240px; color:#9E927F; }
.fcol h4{ color:#fff; font-size:15px; margin-bottom:14px; font-family:'Bricolage Grotesque'; }
.fcol ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:9px; }
.fcol a{ font-size:13.5px; color:#9E927F; }
.fcol a:hover{ color:#fff; }
.foot-bottom{ border-top:1px solid rgba(255,255,255,.1); margin-top:40px; padding-top:22px; display:flex; flex-wrap:wrap; gap:14px; justify-content:space-between; font-size:13px; color:#8C8071; }

/* ---------- tweak panel ---------- */
#tweakPanel{ position:fixed; right:18px; bottom:18px; width:268px; background:var(--surface); border:1px solid var(--line); border-radius:16px; box-shadow:0 18px 50px rgba(36,26,16,.22); padding:16px; z-index:90; display:none; font-size:14px; }
#tweakPanel.open{ display:block; }
.tw-head{ display:flex; justify-content:space-between; align-items:center; font-family:'Bricolage Grotesque'; font-weight:700; font-size:16px; margin-bottom:12px; }
.tw-head button{ border:none; background:var(--cream-2); width:26px; height:26px; border-radius:8px; cursor:pointer; color:var(--ink-soft); }
.tw-sec{ font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-soft); margin:14px 0 8px; }
.tw-swatches{ display:flex; gap:10px; }
.tw-swatches button{ width:34px; height:34px; border-radius:10px; border:2px solid transparent; cursor:pointer; box-shadow:inset 0 0 0 2px #fff; }
.tw-swatches button.on{ border-color:var(--ink); }
.tw-seg{ display:flex; gap:6px; flex-wrap:wrap; }
.tw-seg button{ flex:1; padding:8px 6px; border-radius:9px; border:1px solid var(--line); background:var(--cream); font-weight:600; font-size:13px; cursor:pointer; font-family:'Hanken Grotesk'; }
.tw-seg button.on{ background:var(--ink); color:var(--cream); border-color:var(--ink); }
.tw-toggle{ display:flex; align-items:center; gap:9px; margin-top:14px; font-weight:500; cursor:pointer; }

/* ---------- breadcrumb (shared) ---------- */
.crumbs{ font-size:13.5px; color:var(--ink-soft); padding:18px 0 0; display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.crumbs a:hover{ color:var(--ink); }
.crumbs .sep{ opacity:.5; }

@media (max-width:880px){
  nav.links, .nav-right .btn-ghost{ display:none; }
  .pb-top{ grid-template-columns:1fr; } .pb-shield{ order:-1; max-width:200px; }
  .pb-steps,.why,.foot-grid{ grid-template-columns:1fr 1fr; }
  .foot-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:560px){
  .pb-steps,.why,.foot-grid{ grid-template-columns:1fr; }
  .grid{ grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); }
}

/* ---------- derniers articles (home) ---------- */
.latest-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:16px; }
.post-card{ display:flex; flex-direction:column; gap:8px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-card); padding:22px; transition:.16s; }
.post-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:transparent; }
.post-card .post-date{ font-size:12.5px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--primary-ink); }
.post-card .post-title{ font-family:'Bricolage Grotesque'; font-weight:700; font-size:18px; line-height:1.25; color:var(--ink); }
.post-card .post-cta{ margin-top:auto; font-weight:700; font-size:14px; color:var(--primary-ink); }

/* ---------- menu burger (mobile) ---------- */
.burger{ display:none; width:42px; height:42px; border-radius:10px; border:1px solid var(--line); background:var(--surface); cursor:pointer; padding:0; align-items:center; justify-content:center; }
.burger svg{ width:22px; height:22px; color:var(--ink); }
header.nav.menu-open .burger svg .b1{ transform:translateY(7px) rotate(45deg); }
header.nav.menu-open .burger svg .b2{ opacity:0; }
header.nav.menu-open .burger svg .b3{ transform:translateY(-7px) rotate(-45deg); }
.burger svg line{ stroke:currentColor; stroke-width:2; stroke-linecap:round; transform-origin:center; transition:.2s; }
@media (max-width:900px){
  .burger{ display:inline-flex; order:99; }
  header.nav nav.links{
    display:none; position:absolute; top:70px; left:0; right:0;
    background:var(--cream); border-bottom:1px solid var(--line);
    flex-direction:column; gap:0; padding:14px 24px 18px;
    box-shadow:0 8px 24px rgba(36,26,16,.08);
  }
  header.nav.menu-open nav.links{ display:flex; }
  header.nav nav.links a{ padding:14px 0; border-bottom:1px solid var(--line-soft); font-size:17px; }
  header.nav nav.links a:last-child{ border-bottom:none; }
  header.nav .nav-right{ gap:8px; }
  header.nav .nav-right .btn{ font-size:13px; padding:8px 14px; white-space:nowrap; }
}
@media (max-width:560px){
  header.nav .nav-right .lang{ display:none; }
  header.nav .nav-right .btn-primary{ display:none; }
  header.nav .nav-in{ gap:12px; }
}
