/* TESODE – Style partagé des articles d'expertise */

:root {
  --navy:        #1a2e6c;
  --navy-deep:   #0f1e4a;
  --green:       #2e7d32;
  --green-mid:   #388e3c;
  --green-light: #e8f5e9;
  --sand:        #c9a84c;
  --sand-light:  #f5f0e8;
  --orange:      #e8732c;
  --red:         #d33;
  --white:       #ffffff;
  --grey-light:  #f4f6f9;
  --grey-mid:    #e2e8f0;
  --text:        #1a2238;
  --text-muted:  #5a6a8a;
  --radius:      12px;
  --shadow:      0 4px 24px rgba(26,46,108,0.10);
  --shadow-lg:   0 12px 48px rgba(26,46,108,0.16);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--white); line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--green); }
h1, h2, h3 { font-family: 'Playfair Display', serif; color: var(--navy); line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; margin-top: 3rem; margin-bottom: 1.2rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 600; margin-top: 1.6rem; margin-bottom: .6rem; }
p { margin-bottom: 1.1rem; font-size: clamp(.97rem, 1.5vw, 1.05rem); color: var(--text); }
ul, ol { margin: 1rem 0 1.5rem 1.5rem; }
li { margin-bottom: .5rem; }
strong { color: var(--navy); }

/* NAV */
nav.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: #ffffff; border-bottom: 1px solid var(--grey-mid); }
.nav-inner { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1rem,4vw,3rem); display: flex; align-items: center; justify-content: space-between; height: 70px; }
.nav-logo { display:flex; align-items:center; gap:.7rem; }
.nav-logo img { height:58px; width:auto; display:block; }
.nav-logo-textwrap { display:flex; flex-direction:column; line-height:1; }
.nav-logo-text { font-family:'Playfair Display',serif; font-size:1.55rem; font-weight:700; color:var(--navy); letter-spacing:.04em; line-height:1; }
.nav-logo-sub { font-size:.65rem; color:var(--green); font-weight:500; letter-spacing:.12em; text-transform:uppercase; margin-top:.25rem; line-height:1; }
.nav-links { display:flex; gap:2rem; list-style:none; margin:0; }
.nav-links li { margin: 0; }
.nav-links a { font-size:.88rem; font-weight:500; color:var(--text-muted); }
.nav-links a:hover { color:var(--navy); }
.nav-cta { background:var(--navy)!important; color:var(--white)!important; padding:.5rem 1.2rem; border-radius:6px; }
.nav-cta:hover { background:var(--navy-deep)!important; color:var(--white)!important; }

/* ARTICLE LAYOUT */
.article-wrap { max-width: 820px; margin: 0 auto; padding: 7rem clamp(1rem, 5vw, 2rem) 4rem; }
.breadcrumb { font-size:.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb span { margin: 0 .4rem; }
.article-eyebrow { display:inline-block; background: var(--green-light); color: var(--green); font-weight:600; font-size:.78rem; letter-spacing:.12em; text-transform:uppercase; padding:.4rem 1rem; border-radius:999px; margin-bottom:1rem; }
.article-meta { color: var(--text-muted); font-size:.9rem; margin: 1rem 0 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--grey-mid); }
.article-meta strong { color: var(--navy); }
.lede { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--text-muted); font-style: italic; margin: 1.5rem 0 2.5rem; padding-left: 1.2rem; border-left: 4px solid var(--green); }

/* CARDS / VISUALS */
.duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; }
.duo-card { padding: 1.6rem 1.4rem; border-radius: var(--radius); color: var(--white); }
.duo-card.finance { background: var(--navy); }
.duo-card.rse { background: var(--green); }
.duo-card .duo-label { font-size: .78rem; font-weight: 700; letter-spacing: .25em; opacity: .9; margin-bottom: .8rem; }
.duo-card h3 { color: var(--white); margin: 0 0 .4rem; font-size: 1.1rem; }
.duo-card p { color: rgba(255,255,255,.85); font-size: .9rem; margin: 0; }

.four-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.8rem 0; }
.four-card { background: var(--white); border-top: 4px solid var(--green); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.four-card .num { display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:50%; background: var(--navy); color: var(--white); font-weight:700; margin-bottom:.8rem; font-size:.95rem; }
.four-card:nth-child(2) { border-top-color: var(--green); }
.four-card:nth-child(2) .num { background: var(--green); }
.four-card:nth-child(3) { border-top-color: var(--orange); }
.four-card:nth-child(3) .num { background: var(--orange); }
.four-card:nth-child(4) { border-top-color: var(--navy); }
.four-card h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.four-card p { margin: 0; font-size: .92rem; color: var(--text-muted); }

.three-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.8rem 0; }
.three-card { padding: 1.5rem; border-radius: var(--radius); color: var(--white); }
.three-card h3 { color: var(--white); margin: 0 0 .4rem; font-size: 1rem; }
.three-card p { color: rgba(255,255,255,.85); font-size: .88rem; margin: 0; }
.three-card.t-navy { background: var(--navy); }
.three-card.t-green { background: var(--green); }
.three-card.t-orange { background: var(--orange); }

.pillars { margin: 2rem 0; }
.pillar { display: flex; align-items: stretch; gap: 1rem; margin-bottom: .8rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.pillar-num { display:flex; align-items:center; justify-content:center; min-width:60px; background: var(--white); color: var(--navy); font-family:'Playfair Display',serif; font-size:1.6rem; font-weight:700; }
.pillar-body { flex:1; padding: 1.1rem 1.3rem; color: var(--white); }
.pillar-body h3 { color: var(--white); margin: 0 0 .25rem; font-size: 1.05rem; }
.pillar-body p { margin: 0; color: rgba(255,255,255,.9); font-size: .92rem; }
.pillar.p1 { background: var(--navy-deep); } .pillar.p1 .pillar-num { color: var(--navy-deep); }
.pillar.p2 { background: var(--navy); } .pillar.p2 .pillar-num { color: var(--navy); }
.pillar.p3 { background: var(--green); } .pillar.p3 .pillar-num { color: var(--green); }
.pillar.p4 { background: var(--orange); } .pillar.p4 .pillar-num { color: var(--orange); }
.pillar.p5 { background: var(--sand); } .pillar.p5 .pillar-num { color: var(--sand); }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; }
.compare-col { padding: 1.5rem; border-radius: var(--radius); }
.compare-col.bad { background: #fff5f5; border: 1px solid #fcc; }
.compare-col.good { background: var(--green-light); border: 1px solid #a5d6a7; }
.compare-col h3 { margin: 0 0 1rem; font-size: 1rem; letter-spacing: .15em; text-transform: uppercase; }
.compare-col.bad h3 { color: #c33; }
.compare-col.good h3 { color: var(--green); }
.compare-col ul { list-style: none; padding: 0; margin: 0; }
.compare-col li { padding: .5rem 0; font-size: .93rem; display: flex; gap: .6rem; align-items: flex-start; }
.compare-col.bad li::before { content: '✕'; color: #c33; font-weight: 700; }
.compare-col.good li::before { content: '✓'; color: var(--green); font-weight: 700; }

.questions, .infobox { background: var(--grey-light); padding: 2rem; border-radius: var(--radius); margin: 2.5rem 0; }
.questions h3, .infobox h3 { margin-top: 0; }
.question-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--grey-mid); }
.question-item:last-child { border-bottom: none; }
.question-num { min-width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.question-item:nth-child(3) .question-num { background: var(--green); }
.question-item:nth-child(4) .question-num { background: var(--orange); }

.key-quote { background: var(--navy); color: var(--white); padding: 2rem; border-radius: var(--radius); margin: 2rem 0; text-align: center; font-family: 'Playfair Display', serif; font-size: 1.3rem; line-height: 1.5; }
.key-quote em { color: var(--sand); font-style: normal; }

.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin: 2rem 0; }
.stat-card { background: var(--grey-light); border-radius: var(--radius); padding: 1.5rem; text-align: center; border-top: 4px solid var(--green); }
.stat-card.alt { border-top-color: var(--navy); }
.stat-card .stat-num { font-family: 'Playfair Display', serif; font-size: 2.3rem; font-weight: 700; color: var(--navy); line-height: 1; margin-bottom: .4rem; }
.stat-card .stat-num.green { color: var(--green); }
.stat-card .stat-label { font-size: .85rem; color: var(--text-muted); }

.criteria-list { margin: 2rem 0; padding: 0; list-style: none; }
.criteria-list li { display: flex; gap: 1rem; padding: 1rem 1.3rem; background: var(--grey-light); border-left: 4px solid var(--orange); border-radius: 8px; margin-bottom: .8rem; align-items: flex-start; }
.criteria-list li::before { content: ''; }
.criteria-list .crit-num { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: var(--white); font-weight: 700; font-size: .85rem; flex-shrink: 0; }

.cta-box { background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%); color: var(--white); padding: 2.5rem; border-radius: var(--radius); margin: 3rem 0 1rem; text-align: center; }
.cta-box h3 { color: var(--white); margin-top: 0; }
.cta-box p { color: rgba(255,255,255,.8); }
.cta-box .btn { display: inline-block; background: var(--green); color: var(--white); padding: .85rem 2rem; border-radius: 8px; font-weight: 600; margin: .5rem; }
.cta-box .btn:hover { background: var(--green-mid); color: var(--white); }
.cta-box .btn-outline { background: transparent; border: 2px solid rgba(255,255,255,.4); }
.cta-box .btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

.source-link { text-align: center; padding: 1.5rem; background: var(--sand-light); border-radius: var(--radius); margin: 2rem 0; font-size: .9rem; color: var(--text-muted); }
.source-link a { color: var(--navy); font-weight: 600; }
.source-link.multi p { margin: .4rem 0; }

.author-box { display: flex; gap: 1.2rem; align-items: center; padding: 1.5rem; background: var(--grey-light); border-radius: var(--radius); margin-top: 3rem; }
.author-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.4rem; flex-shrink: 0; }
.author-info p { margin: 0; font-size: .9rem; color: var(--text-muted); }
.author-info strong { color: var(--navy); display: block; font-size: 1rem; margin-bottom: .2rem; }

/* FOOTER */
footer.site-footer { background: var(--navy-deep); padding: 2.5rem 0; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1rem,4vw,3rem); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer-logo { display:flex; align-items:center; gap:.8rem; }
.footer-logo img { height:54px; width:auto; background:var(--white); padding:6px; border-radius:10px; }
.footer-logo-textwrap { display:flex; flex-direction:column; line-height:1.1; }
.footer-logo-text { font-family:'Playfair Display',serif; font-size:1.25rem; font-weight:700; color:var(--white); }
.footer-logo-sub { font-size:.65rem; color:#81c784; font-weight:500; letter-spacing:.12em; text-transform:uppercase; margin-top:.2rem; }
.footer-copy { font-size:.78rem; color:rgba(255,255,255,.5); text-align:center; }
.footer-copy a { color:rgba(255,255,255,.7); }
.footer-copy a:hover { color:var(--white); }

/* MOBILE */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .duo-grid, .four-grid, .compare, .three-grid { grid-template-columns: 1fr; }
}
