/*
Theme Name: Comment Savoir
Theme URI: https://comment-savoir.fr
Description: Thème sur mesure pour Comment Savoir, l'almanach des réponses. Base de connaissances éditoriale, légère, sans page builder.
Author: Comment Savoir
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: comment-savoir
*/

:root{
  --navy:#1b2a4a;
  --navy-2:#26385c;
  --navy-ink:#233149;
  --gold:#be8f37;
  --gold-d:#9c7226;
  --gold-soft:#efe3c8;
  --parch:#f6f1e6;
  --parch-2:#efe7d6;
  --paper:#fffdf7;
  --ink:#26303f;
  --muted:#71798a;
  --line:#e6dcc8;
  --line-2:#ddd0b6;
  --radius:12px;
  --radius-lg:18px;
  --shadow-sm:0 2px 10px rgba(27,42,74,.06);
  --shadow:0 16px 40px rgba(27,42,74,.13);
  --shadow-lg:0 28px 64px rgba(27,42,74,.2);
  --wrap:1180px;
  --font-head:'Spectral',Georgia,serif;
  --font-body:'Inter',system-ui,-apple-system,sans-serif;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--parch);color:var(--ink);font-family:var(--font-body);font-size:17px;line-height:1.7;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--gold-d);text-decoration:none}
h1,h2,h3,h4{font-family:var(--font-head);color:var(--navy);line-height:1.16;margin:0;font-weight:700}
p{margin:0 0 1em}

.cs-container{width:100%;max-width:var(--wrap);margin:0 auto;padding:0 24px}
.cs-container--narrow{max-width:760px}
.cs-kicker{display:inline-block;font-family:var(--font-body);font-weight:700;font-size:.76rem;text-transform:uppercase;letter-spacing:.16em;color:var(--gold-d)}
.cs-dot{margin:0 7px;color:var(--gold)}

/* ---------- HEADER ---------- */
.cs-header{position:sticky;top:0;z-index:60;background:rgba(246,241,230,.92);backdrop-filter:saturate(180%) blur(10px);border-bottom:1px solid var(--line);transition:.25s ease}
.cs-header.is-stuck{box-shadow:var(--shadow-sm);background:rgba(248,244,234,.98)}
.cs-header__inner{display:flex;align-items:center;gap:22px;min-height:80px}
.cs-brand{display:flex;align-items:center;gap:13px;flex:0 0 auto}
.cs-brand__mark svg{width:46px;height:46px;display:block}
.cs-brand__text{display:flex;flex-direction:column;line-height:1.05}
.cs-brand__name{font-family:var(--font-head);font-weight:700;font-size:1.5rem;color:var(--navy);letter-spacing:-.01em}
.cs-brand__tag{font-size:.72rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--gold-d)}
.cs-nav-wrap{margin-left:auto}
.cs-nav{display:flex;align-items:center;gap:0;list-style:none;margin:0;padding:0}
.cs-nav a{display:inline-block;padding:8px 10px;border-radius:8px;color:var(--navy-ink);font-weight:600;font-size:.9rem;white-space:nowrap;transition:.15s ease}
.cs-nav a:hover{background:var(--gold-soft);color:var(--navy)}
.cs-nav .current-cat>a,.cs-nav .current-menu-item>a{color:var(--gold-d)}
.cs-nav .sub-menu{display:none}
.cs-search-toggle{flex:0 0 auto;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;border:1px solid var(--line-2);background:var(--paper);color:var(--navy);cursor:pointer;transition:.15s ease}
.cs-search-toggle:hover{background:var(--navy);color:#fff;border-color:var(--navy)}
.cs-burger{display:none;flex-direction:column;gap:5px;width:44px;height:44px;border:1px solid var(--line-2);border-radius:10px;background:var(--paper);cursor:pointer;align-items:center;justify-content:center}
.cs-burger span{width:20px;height:2.4px;background:var(--navy);border-radius:2px;transition:.2s}
body.cs-nav-open .cs-burger span:nth-child(1){transform:translateY(7.4px) rotate(45deg)}
body.cs-nav-open .cs-burger span:nth-child(2){opacity:0}
body.cs-nav-open .cs-burger span:nth-child(3){transform:translateY(-7.4px) rotate(-45deg)}

.cs-searchbar{max-height:0;overflow:hidden;background:var(--navy);transition:max-height .3s ease}
.cs-searchbar.is-open{max-height:120px}
.cs-searchbar form{display:flex;gap:10px;padding:16px 0}
.cs-searchbar input{flex:1;padding:13px 18px;border:1px solid rgba(255,255,255,.2);border-radius:10px;font:inherit;background:rgba(255,255,255,.08);color:#fff}
.cs-searchbar input::placeholder{color:rgba(255,255,255,.6)}
.cs-searchbar input:focus{outline:2px solid var(--gold);border-color:var(--gold)}
.cs-searchbar button{padding:0 24px;border:0;border-radius:10px;background:var(--gold);color:var(--navy);font-weight:700;cursor:pointer}

/* ---------- TAG / BTN ---------- */
.cs-tag{display:inline-block;padding:4px 12px;border-radius:6px;background:var(--gold-soft);color:var(--gold-d);font-weight:700;font-size:.76rem;letter-spacing:.02em;border:1px solid rgba(190,143,55,.25)}
.cs-tag--float{position:absolute;top:14px;left:14px;background:var(--navy);color:#fff;border-color:transparent;box-shadow:0 4px 12px rgba(0,0,0,.2)}
.cs-btn{display:inline-flex;align-items:center;gap:8px;padding:12px 24px;border-radius:10px;background:var(--navy);color:#fff;font-weight:600;border:0;cursor:pointer;transition:.18s ease}
.cs-btn:hover{background:var(--navy-2);transform:translateY(-2px);box-shadow:var(--shadow-sm)}
.cs-seeall{display:inline-flex;align-items:center;gap:7px;font-family:var(--font-head);font-weight:600;font-size:1.05rem;color:var(--navy);white-space:nowrap}
.cs-seeall:hover{color:var(--gold-d);gap:11px}

/* ---------- HERO ---------- */
.cs-hero{padding:52px 0 60px}
.cs-hero__grid{display:grid;grid-template-columns:1.15fr .85fr;gap:48px;align-items:center}
.cs-hero__title{font-size:clamp(2.2rem,4.4vw,3.4rem);line-height:1.08;margin:.28em 0 .34em;letter-spacing:-.015em}
.cs-hero__sub{font-size:1.12rem;color:var(--muted);max-width:520px;margin:0 0 26px}
.cs-hero__search{display:flex;align-items:center;gap:8px;background:var(--paper);border:1px solid var(--line-2);border-radius:14px;padding:7px 7px 7px 16px;box-shadow:var(--shadow-sm);max-width:540px}
.cs-hero__search:focus-within{border-color:var(--gold);box-shadow:0 0 0 3px rgba(190,143,55,.16)}
.cs-hero__search-ic{color:var(--gold-d);display:grid;place-items:center;flex:0 0 auto}
.cs-hero__search input{flex:1;border:0;background:transparent;font:inherit;font-size:1.04rem;padding:10px 4px;color:var(--ink)}
.cs-hero__search input:focus{outline:none}
.cs-hero__search button{flex:0 0 auto;padding:12px 22px;border:0;border-radius:10px;background:var(--navy);color:#fff;font-weight:600;cursor:pointer;transition:.15s ease}
.cs-hero__search button:hover{background:var(--gold);color:var(--navy)}
.cs-hero__chips{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-top:18px;font-size:.9rem;color:var(--muted)}
.cs-hero__chips>span{font-weight:600}
.cs-hero__chips a{padding:5px 13px;border-radius:999px;background:var(--parch-2);border:1px solid var(--line);color:var(--navy-ink);font-weight:600;transition:.15s ease}
.cs-hero__chips a:hover{background:var(--navy);color:#fff;border-color:var(--navy)}

.cs-hero__feature{position:relative;display:flex;flex-direction:column;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow);transition:.2s ease}
.cs-hero__feature:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg)}
.cs-hero__feature-ribbon{position:absolute;top:16px;left:16px;z-index:2;background:var(--gold);color:var(--navy);font-family:var(--font-head);font-weight:700;font-size:.82rem;padding:5px 14px;border-radius:6px;box-shadow:0 4px 12px rgba(0,0,0,.15)}
.cs-hero__feature-media{aspect-ratio:16/10;overflow:hidden;background:var(--navy)}
.cs-hero__feature-media img{width:100%;height:100%;object-fit:cover;transition:.5s ease}
.cs-hero__feature:hover .cs-hero__feature-media img{transform:scale(1.04)}
.cs-hero__feature-body{display:flex;flex-direction:column;align-items:flex-start;gap:11px;padding:22px 24px 24px}
.cs-hero__feature-title{font-family:var(--font-head);font-weight:700;font-size:1.42rem;line-height:1.22;color:var(--navy)}
.cs-hero__feature:hover .cs-hero__feature-title{color:var(--gold-d)}
.cs-hero__feature-meta{color:var(--muted);font-weight:600;font-size:.9rem}

/* ---------- SECTIONS ---------- */
.cs-section{padding:66px 0}
.cs-section--paper{background:var(--paper);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.cs-section__head{max-width:640px;margin:0 0 36px}
.cs-section__head h2{font-size:clamp(1.8rem,3vw,2.4rem);margin:.28em 0 .3em}
.cs-section__head p{color:var(--muted);margin:0}
.cs-section__head--row{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;max-width:none}
.cs-section__head--row h2{margin:.16em 0 0}

/* ---------- DOMAINES ---------- */
.cs-domains{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.cs-domain{position:relative;display:flex;flex-direction:column;gap:6px;padding:22px 22px 20px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-sm);transition:.18s ease;overflow:hidden}
.cs-domain::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--gold);transform:scaleY(0);transform-origin:top;transition:.2s ease}
.cs-domain:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:var(--line-2)}
.cs-domain:hover::before{transform:scaleY(1)}
.cs-domain__num{position:absolute;top:16px;right:18px;font-family:var(--font-head);font-weight:700;font-size:1.1rem;color:var(--gold-soft)}
.cs-domain__ic{font-size:1.7rem;line-height:1}
.cs-domain__name{font-family:var(--font-head);font-weight:700;font-size:1.24rem;color:var(--navy)}
.cs-domain:hover .cs-domain__name{color:var(--gold-d)}
.cs-domain__count{color:var(--muted);font-size:.86rem;font-weight:600}

/* ---------- CARDS ---------- */
.cs-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.cs-card{display:flex;flex-direction:column;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-sm);transition:.2s ease}
.cs-card:hover{transform:translateY(-5px);box-shadow:var(--shadow);border-color:var(--line-2)}
.cs-card__media{position:relative;display:block;aspect-ratio:16/10;overflow:hidden;background:var(--navy)}
.cs-card__media img{width:100%;height:100%;object-fit:cover;transition:.5s ease}
.cs-card:hover .cs-card__media img{transform:scale(1.05)}
.cs-card__ph{display:grid;place-items:center;width:100%;height:100%;font-size:3rem;background:linear-gradient(135deg,var(--navy),var(--navy-2))}
.cs-card__body{display:flex;flex-direction:column;gap:9px;padding:20px 22px 22px}
.cs-card__title{font-size:1.24rem;line-height:1.26}
.cs-card__title a{color:var(--navy)}
.cs-card:hover .cs-card__title a{color:var(--gold-d)}
.cs-card__excerpt{color:var(--ink);opacity:.78;font-size:.95rem;margin:0}
.cs-card__meta{margin-top:auto;padding-top:6px;color:var(--muted);font-size:.84rem;font-weight:600;display:flex;align-items:center}

/* ---------- NEWSLETTER (bandeau fin) ---------- */
.cs-nl{padding:0 0 66px}
.cs-nl__inner{display:flex;align-items:center;justify-content:space-between;gap:26px;background:var(--navy);border-radius:var(--radius-lg);padding:24px 34px;box-shadow:var(--shadow);position:relative;overflow:hidden}
.cs-nl__inner::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 88% -30%,rgba(190,143,55,.28),transparent 45%)}
.cs-nl__text{position:relative;display:flex;align-items:center;gap:14px;color:#eef1f6;font-size:1rem;max-width:560px}
.cs-nl__text strong{color:#fff;font-family:var(--font-head);font-weight:600}
.cs-nl__ic{font-size:1.5rem;flex:0 0 auto}
.cs-nl__form{position:relative;display:flex;gap:9px;flex:0 0 auto}
.cs-nl__form input{width:250px;max-width:44vw;padding:13px 16px;border:1px solid rgba(255,255,255,.22);border-radius:10px;font:inherit;background:rgba(255,255,255,.1);color:#fff}
.cs-nl__form input::placeholder{color:rgba(255,255,255,.6)}
.cs-nl__form input:focus{outline:2px solid var(--gold);border-color:var(--gold)}
.cs-nl__form button{padding:0 22px;border:0;border-radius:10px;background:var(--gold);color:var(--navy);font-weight:700;cursor:pointer;white-space:nowrap;transition:.15s ease}
.cs-nl__form button:hover{background:#d5a54c}

/* ---------- ARCHIVE ---------- */
.cs-archive-head{padding:52px 0 10px;max-width:760px}
.cs-archive-ic{font-size:2.4rem;display:block;margin-bottom:6px}
.cs-archive-head h1{font-size:clamp(2rem,4vw,2.7rem)}
.cs-archive-desc{color:var(--muted);margin-top:10px}
.cs-empty{padding:60px 0;color:var(--muted)}
.cs-pagination{margin:50px 0 10px}
.cs-pagination .nav-links{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.cs-pagination .page-numbers{display:grid;place-items:center;min-width:44px;height:44px;padding:0 10px;border-radius:10px;border:1px solid var(--line-2);background:var(--paper);color:var(--navy);font-weight:700}
.cs-pagination .page-numbers.current{background:var(--navy);color:#fff;border-color:var(--navy)}
.cs-pagination a.page-numbers:hover{background:var(--gold-soft);border-color:var(--gold)}

/* ---------- SINGLE ---------- */
.cs-single{padding:40px 0 0}
.cs-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:.86rem;font-weight:600;color:var(--muted);margin-bottom:18px}
.cs-breadcrumb a{color:var(--muted)}
.cs-breadcrumb a:hover{color:var(--gold-d)}
.cs-sep{color:var(--line-2)}
.cs-article-head{margin-bottom:24px}
.cs-article-head .cs-tag{margin-bottom:14px}
.cs-article-head h1{font-size:clamp(2rem,4.4vw,3rem);line-height:1.12;letter-spacing:-.01em}
.cs-article-meta{margin-top:14px;color:var(--muted);font-weight:600;font-size:.92rem;display:flex;align-items:center}
.cs-article-cover{margin:8px auto 34px;max-width:1000px;border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow)}
.cs-article-cover img{width:100%}

.cs-article-body{font-size:1.1rem;line-height:1.82;color:#2f3947}
.cs-article-body>*{margin-bottom:1.25em}
.cs-article-body h2{font-family:var(--font-head);font-size:1.72rem;margin:1.7em 0 .5em;color:var(--navy);padding-bottom:.22em;border-bottom:2px solid var(--gold-soft)}
.cs-article-body h3{font-family:var(--font-head);font-size:1.36rem;margin:1.5em 0 .4em;color:var(--navy)}
.cs-article-body a{color:var(--gold-d);text-decoration:underline;text-decoration-color:var(--gold-soft);text-underline-offset:3px;text-decoration-thickness:2px}
.cs-article-body a:hover{text-decoration-color:var(--gold)}
.cs-article-body img{border-radius:var(--radius);margin:1.4em auto;box-shadow:var(--shadow-sm)}
.cs-article-body figure{margin:1.6em 0}
.cs-article-body figcaption{text-align:center;color:var(--muted);font-size:.86rem;margin-top:.7em}
.cs-article-body ul,.cs-article-body ol{padding-left:1.3em}
.cs-article-body li{margin-bottom:.5em}
.cs-article-body ul li::marker{color:var(--gold)}
.cs-article-body blockquote{margin:1.6em 0;padding:6px 24px;border-left:4px solid var(--gold);background:var(--parch);border-radius:0 var(--radius) var(--radius) 0;font-family:var(--font-head);font-style:italic;font-size:1.16rem;color:var(--navy)}

/* Callout .cs-callout */
.cs-callout{position:relative;margin:1.8em 0;padding:22px 24px 22px 26px;background:var(--parch);border:1px solid var(--gold-soft);border-left:5px solid var(--gold);border-radius:0 var(--radius) var(--radius) 0}
.cs-callout__label,.cs-callout>strong:first-child{display:block;font-family:var(--font-head);font-weight:700;color:var(--gold-d);margin-bottom:.4em;font-size:1.06rem}
.cs-callout p:last-child{margin-bottom:0}

.cs-article-foot{margin:34px 0 10px}
.cs-tags{display:flex;flex-wrap:wrap;gap:8px}
.cs-tags a{display:inline-block;padding:6px 14px;border-radius:8px;background:var(--parch-2);border:1px solid var(--line);color:var(--navy-ink);font-weight:600;font-size:.83rem}
.cs-tags a:hover{background:var(--navy);color:#fff;border-color:var(--navy)}
.cs-page .cs-article-body{margin-top:8px}

/* ---------- RELATED (questions / FAQ) ---------- */
.cs-related{padding:20px 0 72px}
.cs-related__panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);overflow:hidden}
.cs-related__head{display:flex;align-items:center;gap:14px;padding:22px 28px;background:var(--navy);color:#fff}
.cs-related__badge{display:grid;place-items:center;width:38px;height:38px;flex:0 0 auto;border-radius:50%;background:var(--gold);color:var(--navy);font-family:var(--font-head);font-weight:700;font-size:1.4rem}
.cs-related__head h2{color:#fff;font-size:1.4rem;margin:0}
.cs-related__list{list-style:none;margin:0;padding:0}
.cs-related__list li{border-top:1px solid var(--line)}
.cs-related__list li:first-child{border-top:0}
.cs-related__list a{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 28px;transition:.15s ease}
.cs-related__list a:hover{background:var(--parch)}
.cs-related__q{font-family:var(--font-head);font-weight:600;font-size:1.14rem;color:var(--navy);line-height:1.3}
.cs-related__list a:hover .cs-related__q{color:var(--gold-d)}
.cs-related__meta{display:flex;align-items:center;gap:14px;flex:0 0 auto}
.cs-related__cat{font-size:.76rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.cs-related__arrow{color:var(--gold-d);font-size:1.2rem;transition:.15s ease}
.cs-related__list a:hover .cs-related__arrow{transform:translateX(4px)}

/* ---------- 404 ---------- */
.cs-404{text-align:center;padding:80px 0}
.cs-404__mark{display:grid;place-items:center;width:88px;height:88px;margin:0 auto 22px;border-radius:50%;background:var(--navy);color:var(--gold);font-family:var(--font-head);font-weight:700;font-size:2.6rem;border:2px solid var(--gold)}
.cs-404 h1{font-size:clamp(1.8rem,4vw,2.6rem)}
.cs-404 p{color:var(--muted);max-width:460px;margin:.6em auto 1.6em}
.cs-404__search{display:flex;gap:10px;max-width:440px;margin:0 auto 20px}
.cs-404__search input{flex:1;padding:13px 18px;border:1px solid var(--line-2);border-radius:10px;font:inherit;background:var(--paper)}
.cs-404__search input:focus{outline:2px solid var(--gold);border-color:var(--gold)}
.cs-404__search button{padding:0 22px;border:0;border-radius:10px;background:var(--navy);color:#fff;font-weight:600;cursor:pointer}

/* ---------- FOOTER ---------- */
.cs-footer{background:var(--navy);color:#c3ccdb;padding:58px 0 30px}
.cs-footer__top{display:grid;grid-template-columns:1.7fr 1fr 1fr 1fr;gap:36px;padding-bottom:34px;border-bottom:1px solid rgba(255,255,255,.1)}
.cs-footer__name{display:block;font-family:var(--font-head);font-weight:700;font-size:1.5rem;color:#fff;margin-bottom:14px}
.cs-footer__brand p{color:#9aa6bb;font-size:.95rem;max-width:340px;margin:0}
.cs-footer__col h4{font-family:var(--font-head);color:var(--gold);font-size:1.06rem;margin-bottom:14px;font-weight:600}
.cs-footer__col ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
.cs-footer__col a{color:#b3bdd0;font-weight:500;font-size:.94rem}
.cs-footer__col a:hover{color:#fff}
.cs-footer__bottom{display:flex;justify-content:space-between;align-items:center;gap:14px;padding-top:22px;color:#7f8ba3;font-size:.86rem;flex-wrap:wrap}

/* ========== v1.1 : header 2 niveaux + hero recherche + annuaire ========== */
.cs-topbar{display:flex;align-items:center;gap:24px;min-height:78px}
.cs-topsearch{margin-left:auto;flex:1;max-width:460px;display:flex;align-items:center;gap:8px;background:var(--paper);border:1px solid var(--line-2);border-radius:12px;padding:5px 5px 5px 14px;transition:.15s ease}
.cs-topsearch:focus-within{border-color:var(--gold);box-shadow:0 0 0 3px rgba(190,143,55,.15)}
.cs-topsearch__ic{color:var(--gold-d);display:grid;place-items:center;flex:0 0 auto}
.cs-topsearch input{flex:1;min-width:0;border:0;background:transparent;font:inherit;padding:9px 2px;color:var(--ink)}
.cs-topsearch input:focus{outline:none}
.cs-topsearch button{flex:0 0 auto;border:0;border-radius:8px;background:var(--navy);color:#fff;font-weight:600;padding:9px 16px;cursor:pointer;transition:.15s ease}
.cs-topsearch button:hover{background:var(--gold);color:var(--navy)}
.cs-domainbar{border-top:1px solid var(--line);background:rgba(255,253,247,.55)}
.cs-domainbar__inner{overflow-x:auto;scrollbar-width:none}
.cs-domainbar__inner::-webkit-scrollbar{display:none}
.cs-domnav{display:flex;gap:2px;list-style:none;margin:0;padding:0;white-space:nowrap}
.cs-domnav a{display:inline-block;padding:12px 14px;color:var(--navy-ink);font-weight:600;font-size:.92rem;border-bottom:2px solid transparent;transition:.15s ease}
.cs-domnav a:hover{color:var(--gold-d);border-bottom-color:var(--gold)}
.cs-domnav .current-cat>a,.cs-domnav .current-menu-item>a{color:var(--gold-d);border-bottom-color:var(--gold)}
.cs-domnav .sub-menu{display:none}

.cs-portal{padding:60px 0 52px;text-align:center;background:radial-gradient(circle at 50% -20%,#fff8e8,transparent 62%)}
.cs-portal__inner{max-width:760px;margin:0 auto}
.cs-portal__title{font-size:clamp(2.2rem,4.6vw,3.4rem);margin:.3em 0 .34em;letter-spacing:-.015em}
.cs-portal__sub{font-size:1.12rem;color:var(--muted);margin:0 auto 28px;max-width:560px}
.cs-portal__sub strong{color:var(--navy);font-weight:700}
.cs-portal__search{display:flex;align-items:center;gap:8px;background:var(--paper);border:1px solid var(--line-2);border-radius:16px;padding:8px 8px 8px 18px;box-shadow:var(--shadow);max-width:620px;margin:0 auto}
.cs-portal__search:focus-within{border-color:var(--gold);box-shadow:0 0 0 4px rgba(190,143,55,.18)}
.cs-portal__search-ic{color:var(--gold-d);display:grid;place-items:center;flex:0 0 auto}
.cs-portal__search input{flex:1;min-width:0;border:0;background:transparent;font:inherit;font-size:1.1rem;padding:12px 4px;color:var(--ink)}
.cs-portal__search input:focus{outline:none}
.cs-portal__search button{flex:0 0 auto;padding:13px 26px;border:0;border-radius:11px;background:var(--navy);color:#fff;font-weight:600;font-size:1rem;cursor:pointer;transition:.15s ease}
.cs-portal__search button:hover{background:var(--gold);color:var(--navy)}
.cs-portal__chips{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:9px;margin-top:20px;font-size:.9rem;color:var(--muted)}
.cs-portal__chips>span{font-weight:600}
.cs-portal__chips a{padding:5px 13px;border-radius:999px;background:var(--parch-2);border:1px solid var(--line);color:var(--navy-ink);font-weight:600}
.cs-portal__chips a:hover{background:var(--navy);color:#fff;border-color:var(--navy)}

.cs-directory{padding:24px 0 64px}
.cs-directory__intro{max-width:640px;margin:0 0 28px}
.cs-directory__intro h2{font-size:clamp(1.7rem,3vw,2.2rem);margin:0 0 .3em}
.cs-directory__intro p{color:var(--muted);margin:0}
.cs-index{columns:2;column-gap:32px}
.cs-index__block{break-inside:avoid;-webkit-column-break-inside:avoid;margin:0 0 28px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-lg);padding:20px 22px 10px;box-shadow:var(--shadow-sm)}
.cs-index__head{display:flex;align-items:center;gap:11px;padding-bottom:12px;margin-bottom:6px;border-bottom:2px solid var(--gold-soft)}
.cs-index__ic{font-size:1.4rem;line-height:1}
.cs-index__name{font-size:1.3rem;margin:0}
.cs-index__count{display:inline-grid;place-items:center;min-width:26px;height:22px;padding:0 7px;border-radius:999px;background:var(--navy);color:#fff;font-size:.75rem;font-weight:700;font-family:var(--font-body)}
.cs-index__all{margin-left:auto;font-size:.82rem;font-weight:700;color:var(--gold-d);white-space:nowrap;font-family:var(--font-body)}
.cs-index__all:hover{color:var(--navy)}
.cs-index__list{list-style:none;margin:0;padding:0}
.cs-index__list li{border-top:1px solid var(--line)}
.cs-index__list li:first-child{border-top:0}
.cs-index__list a{display:flex;align-items:baseline;gap:8px;padding:10px 2px;color:var(--navy-ink);transition:.12s ease}
.cs-index__list a:hover{color:var(--gold-d)}
.cs-index__q{font-family:var(--font-head);font-weight:500;font-size:1.02rem;line-height:1.3}
.cs-index__dots{flex:1;border-bottom:1px dotted var(--line-2);align-self:center;margin:0 2px}
.cs-index__time{flex:0 0 auto;color:var(--muted);font-size:.8rem;font-weight:600;font-family:var(--font-body)}

/* ---------- RESPONSIVE ---------- */
@media(max-width:980px){
  .cs-hero__grid{grid-template-columns:1fr;gap:34px}
  .cs-domains{grid-template-columns:repeat(3,1fr)}
  .cs-grid{grid-template-columns:repeat(2,1fr)}
  .cs-footer__top{grid-template-columns:1fr 1fr;gap:28px}
  .cs-footer__brand{grid-column:1 / -1}
  .cs-nav-wrap{position:fixed;inset:80px 0 auto 0;background:var(--parch);border-bottom:1px solid var(--line);box-shadow:var(--shadow);max-height:0;overflow:hidden;transition:max-height .3s ease;margin:0}
  .cs-nav{flex-direction:column;align-items:stretch;padding:14px 24px 22px;gap:2px}
  .cs-nav a{padding:12px 14px;border-radius:10px;font-size:1rem;white-space:normal}
  .cs-burger{display:flex}
  .cs-search-toggle{margin-left:auto}
}
@media(max-width:760px){
  body{font-size:16px}
  .cs-brand__tag{display:none}
  .cs-index{columns:1}
  .cs-topbar{flex-wrap:wrap;gap:12px;padding-top:14px;padding-bottom:14px;min-height:0}
  .cs-topsearch{order:3;flex-basis:100%;max-width:none;margin:0}
  .cs-portal{padding:44px 0 40px}
  .cs-portal__search{flex-wrap:wrap}
  .cs-portal__search button{width:100%}
  .cs-section{padding:48px 0}
  .cs-section__head--row{flex-direction:column;align-items:flex-start;gap:8px}
  .cs-nl__inner{flex-direction:column;align-items:flex-start;gap:16px;padding:24px}
  .cs-nl__form{width:100%}
  .cs-nl__form input{flex:1;width:auto;max-width:none}
}
@media(max-width:560px){
  .cs-domains{grid-template-columns:1fr 1fr;gap:12px}
  .cs-grid{grid-template-columns:1fr}
  .cs-hero__search{flex-wrap:wrap}
  .cs-hero__search button{width:100%}
  .cs-related__list a{flex-direction:column;align-items:flex-start;gap:8px}
}

/* ---- Composants de contenu enrichi (ajoutés 2026-09-02) ---- */

/* Chiffres clés en tête d'article */
.cs-keyfacts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1px;
  background:var(--line);border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;margin:1.8em 0}
.cs-keyfacts__item{background:var(--paper);padding:16px 18px 18px}
.cs-keyfacts__n{font-family:var(--font-head);font-size:1.72rem;font-weight:700;color:var(--gold-d);
  line-height:1.1;font-variant-numeric:tabular-nums}
.cs-keyfacts__l{font-family:var(--font-body);font-size:.84rem;color:var(--muted);
  line-height:1.4;margin-top:6px;display:block}

/* Parcours en étapes numérotées */
.cs-steps{list-style:none;counter-reset:cs-step;padding:0;margin:1.8em 0}
.cs-steps li{counter-increment:cs-step;position:relative;padding:0 0 20px 52px;margin:0;
  border-left:2px solid var(--gold-soft);margin-left:15px}
.cs-steps li:last-child{border-left-color:transparent;padding-bottom:0}
.cs-steps li::before{content:counter(cs-step);position:absolute;left:-16px;top:-2px;
  width:32px;height:32px;border-radius:50%;background:var(--navy);color:#fff;
  font-family:var(--font-head);font-weight:700;font-size:.98rem;
  display:flex;align-items:center;justify-content:center}
.cs-steps strong{display:block;color:var(--navy);font-family:var(--font-head);
  font-size:1.1rem;margin-bottom:.2em}

/* Variante alerte du callout */
.cs-callout--warn{background:var(--navy);border:1px solid var(--navy-2);border-left:5px solid var(--gold);color:var(--parch)}
.cs-callout--warn .cs-callout__label,.cs-callout--warn>strong:first-child{color:var(--gold)}
.cs-callout--warn strong{color:#fff}
.cs-callout--warn a{color:var(--gold-soft);text-decoration-color:var(--gold)}
.cs-callout--warn a:hover{text-decoration-color:var(--gold-soft)}

/* Tableau : défilement horizontal sur mobile */
.cs-article-body td{font-variant-numeric:tabular-nums}

@media(max-width:640px){
  .cs-steps li{padding-left:46px}
  .cs-keyfacts__n{font-size:1.5rem}
}

/* ---------- TABLEAUX (refonte 2026-09-04) ---------- */
.cs-article-body .cs-tablewrap{
  margin:1.9em 0;
  background-color:var(--paper);
  border:1px solid var(--line-2);
  border-radius:var(--radius);
  box-shadow:0 14px 34px rgba(27,42,74,.13), 0 3px 8px rgba(27,42,74,.07);
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  scrollbar-color:var(--line-2) transparent;
}
.cs-article-body .cs-tablewrap:has(tbody tr:nth-child(13)){max-height:min(70vh,640px)}
.cs-article-body .cs-tablewrap::-webkit-scrollbar{height:9px;width:9px}
.cs-article-body .cs-tablewrap::-webkit-scrollbar-track{background:transparent}
.cs-article-body .cs-tablewrap::-webkit-scrollbar-thumb{background:var(--line-2);border-radius:9px;border:2px solid var(--paper)}
.cs-article-body .cs-tablewrap::-webkit-scrollbar-thumb:hover{background:var(--gold)}
.cs-article-body .cs-tablewrap::-webkit-scrollbar-corner{background:transparent}

.cs-article-body .cs-tablewrap table{
  width:100%;min-width:540px;margin:0;
  border-collapse:separate;border-spacing:0;
  background:transparent;border-radius:0;box-shadow:none;
  font-size:.94rem;line-height:1.52;
  font-variant-numeric:tabular-nums;
}

.cs-article-body thead th{
  position:sticky;top:0;z-index:2;
  background:var(--navy);color:#fff;
  font-family:var(--font-head);font-weight:600;
  font-size:1rem;line-height:1.4;
  text-align:left;padding:19px 18px;
  border-bottom:2px solid var(--gold);
  text-wrap:balance;
}
.cs-article-body thead th+th{border-left:1px solid rgba(255,255,255,.15)}

.cs-article-body tbody td{
  padding:13px 18px;vertical-align:top;
  background:var(--paper);
  border-top:1px solid var(--line);
}
.cs-article-body tbody td+td{border-left:1px solid var(--line)}
.cs-article-body tbody tr:nth-child(even) td{background:#faf6ec}
.cs-article-body tbody td:first-child{font-weight:600;color:var(--navy);background:#f8f4e9}
.cs-article-body tbody tr:nth-child(even) td:first-child{background:#f3eee0}
.cs-article-body tbody tr:hover td,
.cs-article-body tbody tr:hover td:first-child{background:var(--gold-soft)}
.cs-article-body tbody td p{margin:0}
.cs-article-body tbody td p+p{margin-top:.5em}

@media(max-width:640px){
  .cs-article-body .cs-tablewrap table{min-width:460px;font-size:.88rem}
  .cs-article-body thead th{padding:15px 13px;font-size:.94rem}
  .cs-article-body tbody td{padding:11px 13px}
}
