/* ══════════════════════════════════════════
   Tremplin — style.css
   Palette : pin profond + bleu-vert (teal) + sable chaud
   Typo : Bitter (titres) + Karla (texte)
   Préfixe de classes : tr-
══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

:root{
  --paper:      #efe8d8;
  --card:       #ffffff;
  --line:       #ddd3ba;
  --ink:        #1c3630;
  --ink-dark:   #122622;
  --ink-soft:   #4a5f57;
  --teal:       #2f5f68;
  --teal-dark:  #22474e;
  --teal-light: #6ba3aa;
  --ok:         #2f7a52;
}
html{ scroll-behavior:smooth; }
html,body{ margin:0; padding:0; }
body{ font-family:'Karla',sans-serif; background: var(--paper); color: var(--ink); line-height:1.7; -webkit-font-smoothing:antialiased; }
h1,h2,h3,.tr-serif{ font-family:'Bitter',Georgia,serif; }
a{ color: var(--teal); text-decoration:none; }
a:hover{ text-decoration:underline; }
img{ max-width:100%; display:block; }
.tr-container{ max-width:900px; margin:0 auto; padding:0 22px; }

/* Disclaimer + Header */
.tr-disclaimer-bar{ background: var(--ink-dark); color:#e6ede9; text-align:center; font-size:12px; padding:8px 16px; letter-spacing:.02em; }
.tr-site-header{ background: var(--card); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:50; }
.tr-header-inner{ display:flex; align-items:center; gap:18px; padding:14px 22px; }
.tr-logo{ display:inline-flex; align-items:center; gap:6px; font-family:'Bitter',serif; font-size:22px; line-height:1; }
.tr-logo-mark{ display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; border-radius:6px; background: var(--teal); color:#fff; font-size:15px; font-weight:700; }
.tr-logo-text{ color: var(--ink); font-weight:700; }
.tr-header-nav{ display:flex; gap:16px; margin-left:auto; flex-wrap:wrap; }
.tr-header-nav a{ font-size:12.5px; color: var(--ink-soft); font-weight:600; }
.tr-btn-header-cta{ background: var(--ink); color:#fff !important; font-weight:700; font-size:13px; padding:10px 18px; border-radius:8px; white-space:nowrap; }
.tr-btn-header-cta:hover{ background: var(--ink-dark); text-decoration:none; }
@media(max-width:760px){ .tr-header-nav{ display:none; } }

/* Boutons */
.tr-btn-primary{
  display:inline-flex; align-items:center; gap:8px;
  background: var(--teal); color:#fff !important; font-weight:700; font-size:15px;
  padding:13px 24px; border-radius:8px; text-decoration:none !important; border:none; cursor:pointer;
  transition:background .2s ease;
}
.tr-btn-primary:hover{ background: var(--teal-dark); }

/* Hero : citation d'abord, puis titre */
.tr-hero{ padding:44px 0 10px; }
.tr-hero-quote{ background: var(--ink); color:#eef3f1; border-radius:16px; padding:30px 28px; margin-bottom:28px; position:relative; }
.tr-hero-quote p{ font-family:'Bitter',serif; font-size:1.3rem; font-weight:600; line-height:1.45; margin:0; }
.tr-hero-quote cite{ display:block; margin-top:14px; font-size:.78rem; color:#a9c2bc; font-style:normal; }
.tr-kicker{ display:inline-flex; gap:7px; font-size:12px; letter-spacing:.08em; text-transform:uppercase; color: var(--teal-dark); font-weight:700; margin:0 0 14px; }
.tr-hero h1{ font-weight:700; font-size:2rem; line-height:1.22; margin:0 0 16px; color: var(--ink); }
.tr-hero-lead{ font-size:1.06rem; color:#33453e; margin:0 0 18px; }
.tr-meta{ font-size:12.5px; color: var(--ink-soft); margin-bottom:6px; padding-bottom:22px; border-bottom:1px solid var(--line); display:flex; gap:12px; flex-wrap:wrap; }

/* Article */
article{ font-size:1.02rem; }
article p{ margin:0 0 18px; }
article h2{ font-size:1.5rem; margin:34px 0 14px; color: var(--ink); }
.tr-banner{ margin:20px 0 8px; border-radius:10px; overflow:hidden; }
.tr-banner img{ width:100%; aspect-ratio:1400/933; object-fit:cover; }
.tr-cap{ font-size:13px; color: var(--ink-soft); font-style:italic; margin:0 0 24px; }

/* Auto-diagnostic (checklist) */
.tr-check-card{ background: var(--card); border:1px solid var(--line); border-radius:12px; padding:24px 26px; margin:28px 0; }
.tr-check-card h3{ margin:0 0 6px; font-size:1.15rem; }
.tr-check-list{ list-style:none; padding:0; margin:16px 0 0; }
.tr-check-list li{ padding:10px 0; border-bottom:1px solid var(--line); display:flex; gap:10px; align-items:flex-start; }
.tr-check-list li:last-child{ border-bottom:none; }
.tr-check-list input{ margin-top:3px; flex-shrink:0; width:18px; height:18px; accent-color: var(--teal); }
.tr-check-list label{ font-size:.96rem; }
.tr-check-note{ margin-top:16px; padding:14px 16px; background:#e6f0ec; border-left:3px solid var(--teal); border-radius:0 8px 8px 0; font-size:.94rem; color: var(--ink); }

/* Bloc méthode (3 cartes) */
.tr-method{ margin:40px 0; }
.tr-method-head{ margin-bottom:22px; }
.tr-method-head span{ display:inline-block; font-size:12px; letter-spacing:.06em; text-transform:uppercase; color: var(--teal-dark); font-weight:700; margin-bottom:8px; }
.tr-method-head h2{ margin:0; }
.tr-method-grid{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:20px; }
.tr-method-card{ background: var(--card); border-radius:10px; padding:20px 18px; border:1px solid var(--line); }
.tr-method-num{ width:30px; height:30px; border-radius:50%; background: var(--teal); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-family:'Bitter',serif; margin-bottom:12px; }
.tr-method-card h3{ font-size:1.05rem; margin:0 0 8px; }
.tr-method-card p{ font-size:.92rem; color: var(--ink-soft); margin:0; }
@media(max-width:760px){ .tr-method-grid{ grid-template-columns:1fr; } }

/* Tableau avant / après */
.tr-shift{ margin:30px 0; border:1px solid var(--line); border-radius:10px; overflow:hidden; }
.tr-shift-row{ display:grid; grid-template-columns:1fr 1fr; }
.tr-shift-row:not(:last-child){ border-bottom:1px solid var(--line); }
.tr-shift-head{ font-weight:700; font-size:.9rem; padding:12px 16px; background:#e2dcc7; }
.tr-shift-head.tr-after{ background: var(--teal); color:#fff; }
.tr-shift-cell{ padding:14px 16px; font-size:.92rem; background: var(--card); border-right:1px solid var(--line); }
.tr-shift-cell.tr-after{ background:#e6f0ec; border-right:none; font-weight:600; }
@media(max-width:640px){
  .tr-shift-row{ grid-template-columns:1fr; }
  .tr-shift-cell{ border-right:none; border-bottom:1px solid var(--line); }
}

/* CTA */
.tr-cta{ background: var(--ink); color:#eef3f1; border-radius:14px; padding:30px 28px; margin:36px 0; text-align:center; }
.tr-cta h3{ color:#fff; margin:0 0 10px; font-size:1.3rem; }
.tr-cta p{ color:#c9dbd4; margin:0 0 18px; max-width:520px; margin-left:auto; margin-right:auto; }
.tr-cta .tr-btn-primary{ background: var(--teal-light); color: var(--ink-dark) !important; }
.tr-cta .tr-btn-primary:hover{ background:#82b6bb; }
.tr-legal-note{ font-size:12px; color:#9fb8b1; margin:14px 0 0 !important; }
.tr-cta-final{ background: var(--teal-dark); }

/* Footer */
.tr-site-footer{ background: var(--ink); color:#d9e3d5; margin-top:20px; }
.tr-footer-disclaimer{ background: var(--ink-dark); padding:20px 0; }
.tr-footer-disclaimer p{ max-width:900px; margin:0 auto; padding:0 22px; font-size:.85rem; color:#a9c2bc; line-height:1.6; }
.tr-footer-grid{ display:grid; grid-template-columns:1fr 1fr 1.3fr; gap:28px; padding:34px 22px; }
.tr-footer-col h4{ font-size:.78rem; text-transform:uppercase; letter-spacing:.06em; color:#8fada2; margin:0 0 12px; font-family:'Karla',sans-serif; font-weight:700; }
.tr-footer-col a{ display:block; font-size:.86rem; color:#dbe4dc; margin-bottom:8px; }
.tr-footer-col p{ font-size:.83rem; color:#9fb8b1; margin:0; }
.tr-footer-cta-link{ color: var(--teal-light) !important; font-weight:700; }
@media(max-width:700px){ .tr-footer-grid{ grid-template-columns:1fr; } }
.tr-footer-bottom{ border-top:1px solid #2b4a44; }
.tr-footer-bottom-inner{ display:flex; justify-content:space-between; align-items:center; padding:16px 22px; flex-wrap:wrap; gap:10px; }
.tr-footer-bottom-inner p{ font-size:.78rem; margin:0; color:#8fada2; }
.tr-footer-badge{ font-size:.72rem; color:#8fada2 !important; border:1px solid #2b4a44; padding:4px 10px; border-radius:20px; }

/* Bandeau cookies */
.tr-cookie-banner{ position:fixed; left:0; right:0; bottom:0; background: var(--ink-dark); color:#e6ede9; padding:16px 20px; display:none; z-index:999; }
.tr-cookie-banner.show{ display:block; }
.tr-cookie-inner{ max-width:920px; margin:0 auto; display:flex; flex-wrap:wrap; gap:14px; align-items:center; justify-content:space-between; }
.tr-cookie-inner p{ font-size:.82rem; margin:0; flex:1 1 320px; color:#c7d7d0; }
.tr-cookie-actions{ display:flex; gap:8px; }
.tr-cookie-btn{ border:none; border-radius:6px; padding:9px 16px; font-size:.82rem; font-weight:700; cursor:pointer; }
.tr-cookie-btn-accept{ background: var(--teal); color:#fff; }
.tr-cookie-btn-decline{ background:transparent; color:#e6ede9; border:1px solid #2b4a44; }

/* Pages légales */
.tr-legal-page{ padding:40px 0 60px; }
.tr-legal-page h1{ color: var(--ink); }
.tr-legal-page h2{ font-size:1.1rem; margin-top:26px; color: var(--ink); }
.tr-legal-page table{ width:100%; font-size:13px; border-collapse:collapse; margin-top:10px; }
.tr-legal-page th, .tr-legal-page td{ padding:8px 10px; border:1px solid var(--line); text-align:left; }
.tr-legal-page th{ background:#e2dcc7; }

/* Accessibilité focus */
a:focus-visible, button:focus-visible, input:focus-visible{ outline:2px solid var(--teal-dark); outline-offset:2px; }

@media(max-width:560px){
  .tr-hero h1{ font-size:1.5rem; }
  .tr-hero-quote p{ font-size:1.1rem; }
  .tr-cta{ padding:24px 20px; }
}
