/* ============================================================
   AUDIT STACK — Shell (styles communs)
   ============================================================ */

:root{
  --bg:#fff;--panel:#fff;--surface:#f8f8f8;--ink:#171717;--muted:#667085;
  --line:#d9dde8;--brand:#4A1C22;--accent:#34445b;--ok:#5B8A6B;--warn:#B7935B;--danger:#8A4545;
  --transition:180ms ease;
  --font-serif:'Charis SIL','Charis SIL Compact',Georgia,'Times New Roman',serif;
  --font-sans:Arial,Helvetica,sans-serif;
}

*{box-sizing:border-box}
html,body{margin:0;font-family:var(--font-sans);background:var(--bg);color:var(--ink);height:100%}
button,input,select,textarea{font:inherit}

/* ============================================================
   HEADER SHELL
   ============================================================ */
.shell-header{
  height:64px;display:flex;align-items:center;gap:24px;
  padding:0 24px;background:#111;color:#fff;
  position:sticky;top:0;z-index:100;
}
.shell-brand{cursor:pointer;flex:0 0 auto}
.shell-brand-name{font-size:16px;font-weight:700;letter-spacing:-.04em}

.shell-nav{display:flex;gap:28px;flex:1;justify-content:center;overflow-x:auto}
.shell-nav-btn{
  position:relative;background:transparent;border:0;border-radius:0;
  color:#eee;padding:22px 0 12px;font-size:12px;font-weight:700;
  letter-spacing:.06em;cursor:pointer;white-space:nowrap;transition:color .18s;
}
.shell-nav-btn::after{
  content:"";position:absolute;left:0;bottom:5px;height:1.5px;width:0;
  background:#c9a9a6;transition:width .32s ease;
}
.shell-nav-btn:hover{color:#fff}
.shell-nav-btn:hover::after{width:100%}
.shell-nav-btn.active{color:#fff}
.shell-nav-btn.active::after{width:100%}

.shell-actions{display:flex;gap:8px;flex:0 0 auto}
.shell-btn{
  border:1px solid #4b4b4b;border-radius:10px;background:transparent;color:#fff;
  padding:9px 13px;font-weight:700;font-size:11px;cursor:pointer;transition:.2s;
}
.shell-btn:hover{border-color:#c9a9a6;background:rgba(201,169,166,.12)}
.shell-toggle{
  width:38px;padding:0;text-align:center;border:1px solid #4b4b4b;
  border-radius:10px;background:transparent;color:#fff;cursor:pointer;font-size:14px;
}

/* ============================================================
   PAGE D'ACCUEIL
   ============================================================ */
.shell-home{
  position:relative;
  min-height:calc(100vh - 64px);
  --home-bg:#f8f9fb;
  --home-surface:#f1f4f8;
  --home-card:#ffffff;
  --home-ink:#171717;
  --home-muted:#5f6368;
  --home-line:#e4e8ee;
  --home-accent:#4A1C22;
  background:var(--home-bg);
  color:var(--home-ink);
}
body.theme-dark .shell-home{
  --home-bg:#0b0d10;
  --home-surface:#131820;
  --home-card:#151a21;
  --home-ink:#f3f5f7;
  --home-muted:#a8b0ba;
  --home-line:#1e232b;
  --home-accent:#c9a9a6;
}
.shell-home[hidden]{display:none}

/* ============================================================
   HERO — 2 colonnes + stats pleine largeur
   ============================================================ */
.shell-hero{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  grid-template-rows:auto auto;
  gap:72px 80px;
  padding:80px 6vw 0;
  border-bottom:1px solid var(--home-line);
  align-items:center;
}

.shell-hero-copy{
  grid-column:1;
  grid-row:1;
  max-width:640px;
}

.shell-hero h1{
  font-family:var(--font-serif);
  font-weight:600;
  font-size:clamp(38px,4.4vw,64px);
  line-height:1.08;
  letter-spacing:-.02em;
  margin:18px 0 22px;
  color:var(--home-ink);
}
.shell-hero p{
  color:var(--home-muted);
  line-height:1.75;
  font-size:16px;
  max-width:620px;
  margin:0;
}
.shell-eyebrow,.shell-kicker{
  font-size:10px;
  letter-spacing:.25em;
  color:var(--home-accent);
  font-weight:700;
  text-transform:uppercase;
}

/* Bouton DÉMARRER — statique */
.shell-hero-actions{display:flex;gap:10px;margin-top:32px}
.shell-hero-btn{
  border:1px solid var(--home-ink);
  border-radius:10px;
  background:transparent;
  color:var(--home-ink);
  padding:13px 20px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  cursor:pointer;
}
.shell-hero-btn.primary{
  background:#4A1C22;
  border-color:#4A1C22;
  color:#fff;
}

/* ============================================================
   CITATION (colonne droite du hero)
   ============================================================ */
.shell-hero-quote{
  grid-column:2;
  grid-row:1;
  margin:0;
  padding:8px 0 8px 32px;
  border-left:2px solid var(--home-accent);
  align-self:center;
}
.shell-hero-quote p{
  font-family:var(--font-serif);
  font-style:italic;
  font-weight:500;
  font-size:clamp(20px,2.1vw,26px);
  line-height:1.45;
  letter-spacing:-.01em;
  color:var(--home-ink);
  margin:0;
  max-width:100%;
}
.shell-hero-quote cite{
  display:block;
  margin-top:22px;
  font-family:var(--font-sans);
  font-style:normal;
  font-size:10.5px;
  font-weight:700;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--home-muted);
}

/* ============================================================
   CHIFFRES CLÉS — pleine largeur sous le hero
   ============================================================ */
.shell-hero-stats{
  grid-column:1 / -1;
  grid-row:2;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  margin:0 -6vw;
  padding:0 6vw;
  border-top:1px solid var(--home-line);
}

.shell-hero-stats .shell-stat{
  padding:64px 40px 64px 0;
  border-right:1px solid var(--home-line);
}
.shell-hero-stats .shell-stat:last-child{
  border-right:0;
  padding-right:0;
}
.shell-hero-stats .shell-stat:not(:first-child){
  padding-left:48px;
}

.shell-hero-stats .shell-stat-num{
  font-family:var(--font-serif);
  font-weight:600;
  font-size:clamp(38px,4.8vw,62px);
  line-height:1;
  letter-spacing:-.03em;
  color:var(--home-ink);
  margin-bottom:16px;
  font-variant-numeric:tabular-nums;
}

.shell-hero-stats .shell-stat-label{
  font-size:11px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--home-muted);
  font-weight:700;
}

/* ============================================================
   SECTION APPROCHE
   ============================================================ */
.shell-approach{
  padding:120px 6vw;
  background:var(--home-bg);
  display:flex;
  flex-direction:column;
  gap:120px;
}
.shell-approach-block{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:80px;
  align-items:center;
}
.shell-approach-block.reverse .shell-approach-media{order:2}
.shell-approach-block.reverse .shell-approach-copy{order:1}

.shell-approach-media{
  position:relative;
  aspect-ratio:4/3;
  border-radius:14px;
  overflow:hidden;
  box-shadow:
    0 30px 60px -30px rgba(15,23,35,.30),
    0 12px 24px -12px rgba(15,23,35,.12);
  transition:transform .5s ease;
}
.shell-approach-media img{
  width:100%;height:100%;
  object-fit:cover;
  display:block;
  transition:transform .9s ease;
}
.shell-approach-block:hover .shell-approach-media img{
  transform:scale(1.04);
}

.shell-approach-copy h2{
  font-family:var(--font-serif);
  font-weight:600;
  font-size:clamp(26px,2.6vw,40px);
  line-height:1.14;
  letter-spacing:-.02em;
  margin:16px 0 22px;
  color:var(--home-ink);
}
.shell-approach-copy p{
  color:var(--home-muted);
  font-size:15.5px;
  line-height:1.8;
  max-width:480px;
  margin:0;
}

.shell-chapter{
  font-family:var(--font-serif);
  font-style:italic;
  font-weight:600;
  letter-spacing:0;
  color:var(--home-accent);
  margin-right:12px;
  font-size:13px;
  opacity:.75;
}

/* ============================================================
   SECTION OUTILS
   ============================================================ */
.shell-home-section{
  padding:110px 6vw;
  background:var(--home-surface);
  border-top:1px solid var(--home-line);
}
.shell-home-section h2{
  font-family:var(--font-serif);
  font-weight:600;
  font-size:clamp(28px,3vw,42px);
  letter-spacing:-.02em;
  line-height:1.12;
  margin:10px 0 40px;
  color:var(--home-ink);
}

.shell-tools-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}
.shell-tool-card{
  min-height:180px;
  border:1px solid var(--home-line);
  border-radius:14px;
  padding:26px 24px 30px;
  background:var(--home-card);
  transition:.18s;
  cursor:pointer;
  position:relative;
  color:var(--home-ink);
  display:flex;
  flex-direction:column;
}
.shell-tool-card:hover{
  transform:translateY(-5px);
  border-color:var(--home-accent);
  box-shadow:0 18px 40px rgba(74,28,34,.18);
}
.shell-tool-card .shell-kicker{
  margin-bottom:auto;
  font-size:9px;
}
.shell-tool-card h3{
  margin:32px 0 8px;
  font-size:17px;
  font-family:var(--font-serif);
  font-weight:600;
  letter-spacing:-.01em;
  color:var(--home-ink);
}
.shell-tool-card p{
  color:var(--home-muted);
  font-size:12.5px;
  margin:0;
  line-height:1.55;
  max-width:90%;
}
.shell-tool-card .arrow{
  position:absolute;
  right:22px;
  bottom:24px;
  font-size:16px;
  color:var(--home-accent);
  transition:transform .2s;
}
.shell-tool-card:hover .arrow{transform:translateX(4px)}

/* ============================================================
   FOOTER
   ============================================================ */
.shell-footer{
  padding:28px 24px;
  text-align:center;
  font-size:11px;
  letter-spacing:.05em;
  color:var(--home-muted);
  background:var(--home-bg);
  border-top:1px solid var(--home-line);
}

/* ============================================================
   WORKSPACE
   ============================================================ */
.shell-workspace{height:calc(100vh - 64px);overflow:hidden;background:var(--bg)}
.tool-container{height:100%;overflow:auto}

/* ============================================================
   MODE NUIT
   ============================================================ */
body.theme-dark{
  --bg:#0d0d0d;--panel:#141414;--surface:#1a1a1a;--ink:#f5f3f0;--muted:#a8b0ba;
  --line:#2c323b;--accent:#76a9ff;
  background:#0d0d0d;
  color:#f5f3f0;
  color-scheme:dark;
}
body.theme-dark .shell-workspace{background:#0d0d0d;color:#f5f3f0}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:1000px){
  .shell-tools-grid{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:900px){
  .shell-hero{
    grid-template-columns:1fr;
    grid-template-rows:auto auto auto;
    gap:48px;
    padding:60px 6vw 0;
  }
  .shell-hero-copy{grid-column:1;grid-row:1;max-width:100%}
  .shell-hero-quote{grid-column:1;grid-row:2;padding-left:24px}
  .shell-hero-stats{grid-row:3}

  .shell-hero-stats .shell-stat{
    padding:48px 24px 48px 0;
  }
  .shell-hero-stats .shell-stat:not(:first-child){
    padding-left:32px;
  }
  .shell-hero-stats .shell-stat-num{
    font-size:clamp(36px,7vw,52px);
  }

  .shell-approach{padding:80px 6vw;gap:80px}
  .shell-approach-block{grid-template-columns:1fr;gap:36px}
  .shell-approach-block.reverse .shell-approach-media{order:0}
  .shell-approach-block.reverse .shell-approach-copy{order:0}
  .shell-approach-media{aspect-ratio:16/10}
  .shell-approach-copy p{font-size:15px}
  .shell-home-section{padding:80px 6vw}
}

@media(max-width:600px){
  .shell-header{flex-wrap:wrap;height:auto;padding:12px}
  .shell-nav{order:3;width:100%;margin-top:8px}
  .shell-tools-grid{grid-template-columns:1fr}

  .shell-hero{padding:45px 22px 0;gap:36px}

  .shell-hero-stats{
    grid-template-columns:1fr;
    margin:0 -22px;
    padding:0 22px;
  }
  .shell-hero-stats .shell-stat{
    padding:28px 0;
    border-right:0;
    border-bottom:1px solid var(--home-line);
  }
  .shell-hero-stats .shell-stat:last-child{
    border-bottom:0;
  }
  .shell-hero-stats .shell-stat:not(:first-child){
    padding-left:0;
  }
  .shell-hero-stats .shell-stat-num{
    font-size:40px;
    margin-bottom:10px;
  }

  .shell-hero-quote{
    padding-left:20px;
  }
  .shell-hero-quote p{
    font-size:18px;
  }

  .shell-home-section{padding:60px 22px}
  .shell-approach{padding:60px 22px;gap:60px}
}
