/* ClairPDF V1.3 — refonte visuelle du parcours d'accueil et des outils.
   Surcharge non destructive, chargée après les styles existants. */
:root{
  --bg:#f6f9fd;
  --soft:#f0f5fb;
  --line:#dce5f1;
  --text:#182a43;
  --muted:#536780;
  --primary:#2459d9;
  --primary2:#1748b5;
  --shadow:0 16px 44px rgba(31,58,99,.08);
  --wrap:1190px;
}
body.dark{
  --bg:#0d1727;
  --soft:#14243c;
  --line:#34435a;
  --text:#edf4ff;
  --muted:#b6c4d9;
  --primary:#86aaff;
  --primary2:#b2c7ff;
}
body{font-size:15px}
.wrap{width:min(var(--wrap),calc(100% - 40px))}
.topbar{background:#142743;color:#d4e1f5}
.topbar-inner{min-height:27px;font-size:11px}
.topbar-inner b{font-weight:650}
.header{background:color-mix(in srgb,var(--surface) 95%,transparent);box-shadow:0 3px 16px rgba(25,53,85,.05)}
.header-inner{height:64px}
.brand{font-size:20px;letter-spacing:-.45px}
.brand-logo{width:37px;height:37px;border-radius:11px}
.head-actions .btn{min-height:41px;padding:10px 15px}
.header nav>a{font-size:13px}
/* Accueil : les actions doivent être immédiatement repérables, même sur écran peu haut. */
.home-v13-hero.home-hero{
  padding:32px 0 33px;
  background:
    radial-gradient(ellipse at 15% 15%,rgba(45,101,226,.09),transparent 53%),
    radial-gradient(ellipse at 96% 89%,rgba(12,165,151,.09),transparent 49%),
    linear-gradient(180deg,#f5f8ff,#f8fbff);
  border-bottom:1px solid #e7edf6;
}
body.dark .home-v13-hero.home-hero{background:linear-gradient(180deg,#132239,#111c2f);border-bottom-color:var(--line)}
.home-v13-hero .home-hero-grid{
  grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);
  gap:clamp(25px,4.5vw,65px);
  align-items:center;
}
.home-v13-hero .home-hero-copy{min-width:0}
.home-v13-kicker{
  display:inline-flex;align-items:center;gap:9px;
  padding:7px 12px;border-radius:999px;
  font-size:12px;font-weight:750;color:#24476a;
  background:#fff;border:1px solid #dbe6f6;
}
.home-v13-kicker .home-proof-dot{flex:0 0 7px;width:7px;height:7px;box-shadow:0 0 0 4px rgba(19,160,132,.09)}
.home-v13-kicker-sep{color:#9caac1}
body.dark .home-v13-kicker{background:#1c2c44;color:#dae7f5}
.home-v13-hero h1{
  color:var(--text);font-size:clamp(37px,3.4vw,53px);
  line-height:1.06;letter-spacing:-2.2px;font-weight:850;
  margin:16px 0 14px;max-width:680px;
}
.home-v13-hero h1 span{
  background:none;color:#2459d9;-webkit-text-fill-color:currentColor;
}
body.dark .home-v13-hero h1 span{color:#98baff}
.home-v13-hero .home-lead{
  font-size:15px;line-height:1.6;max-width:580px;margin:0;
  color:var(--muted);
}
.home-v13-shortcut-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:21px 0 10px}
.home-v13-shortcut-head b{font-size:14px;font-weight:800}
.home-v13-shortcut-head span{font-size:11px;color:var(--muted)}
.home-v13-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.home-v13-action{
  display:flex;align-items:center;gap:11px;min-width:0;
  background:var(--surface);border:1px solid var(--line);
  border-radius:15px;padding:12px 13px;min-height:72px;
  box-shadow:0 4px 13px rgba(20,54,98,.035);
  transition:border-color .16s,box-shadow .16s,transform .16s;
}
.home-v13-action:hover,.home-v13-action:focus-visible{border-color:#94b2f3;box-shadow:0 12px 25px rgba(28,66,130,.1);transform:translateY(-1px)}
.home-v13-action:first-child{border-color:#b2c7f7}
.home-v13-action-icon{
  display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;
  border:1px solid #e1eaff;border-radius:12px;background:#eff4ff;
  color:#2459d9;font-size:21px;font-weight:800;
}
.home-v13-action:nth-child(2) .home-v13-action-icon{background:#ecf9f5;color:#168e79;border-color:#cee8df}
.home-v13-action:nth-child(3) .home-v13-action-icon{background:#f0f0ff;color:#6452c8;border-color:#e2e0f9}
.home-v13-action:nth-child(4) .home-v13-action-icon{background:#fff5eb;color:#bd742e;border-color:#f4e3ce}
.home-v13-action-copy{display:flex;flex-direction:column;min-width:0;gap:3px}
.home-v13-action-copy b{font-size:14px;line-height:1.2;color:var(--text)}
.home-v13-action-copy small{font-size:11px;color:var(--muted);line-height:1.3}
.home-v13-action-arrow{margin-left:auto;color:#708bb1;font-size:15px;align-self:center}
.home-v13-all-link{display:inline-flex;gap:8px;align-items:center;margin-top:14px;color:var(--primary);font-size:13px;font-weight:800}
.home-v13-all-link:hover{text-decoration:underline;text-underline-offset:4px}
/* Le sélecteur conserve les mêmes attributs : son JS V22 fonctionne sans modification. */
.home-v13-hero .home-launcher{
  padding:20px 21px 17px;border:1px solid #dfe8f4;border-radius:20px;
  background:var(--surface);box-shadow:0 20px 45px rgba(21,54,100,.095);
  backdrop-filter:none;
}
.home-v13-hero .home-launcher:before{display:none}
.home-v13-hero .home-launcher-head{align-items:center;margin:0 0 6px}
.home-v13-hero .home-launcher .mini{font-size:10px;color:var(--primary)}
.home-v13-hero .home-launcher-head h2{font-size:21px;line-height:1.2;letter-spacing:-.65px;margin:4px 0 0}
.home-v13-hero .home-ready{font-size:11px;padding:6px 10px;white-space:nowrap}
.home-v13-launcher-hint{font-size:12px;color:var(--muted);line-height:1.4;margin:2px 0 13px}
.home-v13-hero .home-format-grid{gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}
.home-v13-hero .home-format-choice{
  background:var(--soft);border:1px solid var(--line);border-radius:12px;
  min-height:60px;padding:9px 11px;
}
.home-v13-hero .home-format-choice.active{border-color:#89a9f0;background:#ecf2ff;box-shadow:inset 0 0 0 1px rgba(36,89,217,.15)}
body.dark .home-v13-hero .home-format-choice.active{background:#243c64}
.home-v13-hero .home-format-choice span{font-size:12px;font-weight:850}
.home-v13-hero .home-format-choice small{font-size:11px;margin-top:2px;line-height:1.25}
.home-v13-hero .home-launcher-results{margin-top:11px}
.home-v13-hero .home-format-tools{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.home-v13-hero .home-format-tools a{
  min-width:0;min-height:67px;padding:10px;
  border-radius:12px;gap:9px;background:var(--surface);
}
.home-v13-hero .home-tool-mini-icon{flex:0 0 37px;width:37px;height:37px;font-size:11px}
.home-v13-hero .home-format-tools a>span:nth-child(2){padding-right:5px}
.home-v13-hero .home-format-tools b{font-size:12px;line-height:1.25}
.home-v13-hero .home-format-tools small{font-size:10px;line-height:1.28;margin-top:2px;-webkit-line-clamp:2}
.home-v13-hero .home-format-tools em{font-size:13px;right:7px;top:9px;transform:none}
.home-v13-hero .home-launcher-footer{font-size:11px;padding-top:11px;margin-top:11px}
.home-v13-hero .home-launcher-footer button{font-size:12px}
/* Trois repères discrets, puis le catalogue : éviter les répétitions monumentales. */
.home-stat-band{background:var(--surface);border-color:var(--line)}
.home-stat-grid{padding:10px 0}
.home-stat-grid>div{padding:5px 13px}
.home-stat-grid b{font-size:13px}
.home-stat-grid span:not(.home-stat-symbol){font-size:11px}
.home-stat-symbol{height:31px;flex-basis:31px;font-size:15px}
.home-essential-section{padding:43px 0 48px}
.home-section-head{margin-bottom:18px}
.home-section-head h2{font-size:clamp(25px,2.7vw,34px);letter-spacing:-1px}
.home-section-head p{margin-top:6px;font-size:13px}
.home-essential-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.home-essential-card{min-height:88px;border-radius:15px;padding:13px;gap:11px}
.home-essential-copy b{font-size:14px}
.home-essential-copy small{font-size:11px}
.home-essential-icon{width:40px;height:40px;flex-basis:40px}
.home-categories-v22{padding:46px 0}
.home-category-card{min-height:186px}
.home-category-top{margin-bottom:15px}
.home-catalogue{padding:48px 0}
.home-tool-card{border-radius:14px}
.home-tool-card .tool-copy small{font-size:12px}
.home-why{padding:48px 0}
/* Pages outils : déposer le fichier doit être l'action centrale. */
.tool-page>.breadcrumb{padding-top:13px}
.tool-hero{padding:19px 0 20px;background:linear-gradient(165deg,var(--soft),var(--bg));}
.tool-hero-grid{grid-template-columns:minmax(0,1.4fr) minmax(0,.6fr);gap:20px;align-items:center}
.tool-title-row{gap:12px}
.tool-title-row h1{font-size:clamp(28px,3vw,39px);letter-spacing:-1px}
.tool-big-icon{width:54px;height:54px;flex-basis:54px;border-radius:14px}
.tool-page .lead{font-size:15px;line-height:1.5;margin:10px 0 0}
.tool-page .checks{margin-top:11px;gap:7px 13px}
.tool-hero-actions{margin-top:12px}
.tool-hero-actions .btn{min-height:42px}
.privacy-box{padding:14px 16px;background:var(--surface)}
.privacy-box b{font-size:13px}
.privacy-box p{font-size:12px;line-height:1.5;margin-top:5px}
.tool-page .tool-work{padding-top:18px}
.tool-page .workspace{padding:23px 24px;border-radius:19px}
.tool-page .workspace-head h2{font-size:22px}
.file-drop{min-height:170px;padding:16px;border-radius:15px}
.file-drop .up{font-size:23px;margin-bottom:4px}
.file-drop>b{font-size:19px}
.file-drop .drop-secondary{font-size:13px}
/* Responsive : les quatre raccourcis restent clairs et le choix fonctionne au doigt. */
@media(max-width:1100px){
  .home-v13-hero .home-hero-grid{gap:20px}
  .home-v13-hero h1{font-size:clamp(36px,4.6vw,49px)}
  .home-v13-action{padding:10px;gap:8px}
  .home-v13-action-icon{flex-basis:36px;width:36px;height:36px}
}
@media(max-width:900px){
  .home-v13-hero .home-hero-grid{grid-template-columns:1fr;gap:20px}
  .home-v13-hero .home-hero-copy{max-width:none}
  .home-v13-hero h1{font-size:clamp(39px,6vw,52px)}
  .home-v13-hero .home-launcher{max-width:none}
  .home-essential-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tool-hero-grid{grid-template-columns:1fr}
  .privacy-box{max-width:none}
}
@media(max-width:620px){
  .wrap{width:min(var(--wrap),calc(100% - 26px))}
  .topbar-inner{justify-content:center;text-align:center}
  .topbar-inner b{font-size:10px}
  .header-inner{height:58px}
  .brand{font-size:18px}
  .brand-logo{width:32px;height:32px}
  .home-v13-hero.home-hero{padding:23px 0 25px}
  .home-v13-kicker{font-size:10px;gap:7px;padding:7px 10px}
  .home-v13-hero h1{font-size:clamp(35px,9vw,44px);letter-spacing:-1.55px;margin:13px 0 10px}
  .home-v13-hero .home-lead{font-size:14px;line-height:1.52}
  .home-v13-shortcut-head{margin:18px 0 9px}
  .home-v13-shortcut-head b{font-size:13px}
  .home-v13-action-grid{gap:8px}
  .home-v13-action{min-height:71px;gap:8px;padding:9px;border-radius:12px}
  .home-v13-action-icon{width:35px;height:35px;flex-basis:35px;font-size:18px;border-radius:10px}
  .home-v13-action-copy b{font-size:12px}
  .home-v13-action-copy small{font-size:10px}
  .home-v13-action-arrow{display:none}
  .home-v13-all-link{font-size:12px}
  .home-v13-hero .home-launcher{padding:16px;border-radius:17px}
  .home-v13-hero .home-launcher-head h2{font-size:19px}
  .home-v13-hero .home-format-grid,.home-v13-hero .home-format-tools{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-v13-hero .home-format-choice{min-height:65px;padding:10px}
  .home-v13-hero .home-format-choice span{font-size:12px}
  .home-v13-hero .home-format-choice small{font-size:10px}
  .home-v13-hero .home-format-tools a{min-height:77px;padding:10px}
  .home-v13-hero .home-format-tools b{font-size:11px}
  .home-v13-hero .home-format-tools small{font-size:10px}
  .home-v13-hero .home-launcher-footer{display:flex;align-items:center;flex-direction:row;flex-wrap:wrap}
  .home-stat-grid{padding:7px 0}
  .home-stat-grid>div{padding:8px 0}
  .home-essential-section{padding:35px 0}
  .home-essential-grid{grid-template-columns:1fr}
  .tool-hero{padding:14px 0}
  .tool-page .workspace{padding:16px}
  .tool-page .lead{font-size:14px}
  .file-drop{min-height:158px}
}
@media(max-width:370px){
  .home-v13-kicker{font-size:9px}
  .home-v13-action-grid{grid-template-columns:1fr}
  .home-v13-action{min-height:58px}
  .home-v13-hero .home-format-tools{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){.home-v13-action{transition:none}}
