/* =========================================================
   LTT Services Comptables — gabarit professionnel
   Palette « registre comptable » : vert-encre + laiton
   ========================================================= */

:root{
  --ink:        #16231F;   /* fond des zones sombres (en-tête, pied, bandeaux) */
  --ink-soft:   #223B32;   /* dégradé / survol sur fond sombre */
  --paper:      #EDF1E7;   /* fond principal, papier de registre */
  --paper-line: #CBD8C4;   /* lignes de registre, bordures discrètes */
  --card:       #FFFFFF;
  --brass:      #AD8130;   /* accent, liens, boutons */
  --brass-dark: #8C6621;   /* survol des boutons/liens */
  --ash:        #46564C;   /* texte de soutien */
  --white:      #FFFFFF;

  --font-head: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1120px;
  --radius: 4px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
}

h1,h2,h3{
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 600;
}
h1{ font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); font-weight: 600; }
h2{ font-size: clamp(1.5rem, 1.3rem + 0.9vw, 2.1rem); }
h3{ font-size: 1.2rem; }

p{ margin: 0 0 1em; max-width: 62ch; }
p.intro{ font-size: 1.15rem; color: var(--ash); max-width: 58ch; }

a{ color: var(--brass-dark); }
a:hover{ color: var(--brass); }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Skip link */
.skip-link{
  position: absolute; left: -999px; top: auto;
  background: var(--brass); color: var(--ink); padding: 10px 16px;
  z-index: 100; border-radius: var(--radius);
}
.skip-link:focus{ left: 16px; top: 16px; }

:focus-visible{ outline: 3px solid var(--brass); outline-offset: 2px; }

/* ---------- Topbar ---------- */
.topbar{ background: var(--ink); color: #DCE4DC; font-size: 0.85rem; }
.topbar .container{
  display: flex; justify-content: flex-end; gap: 22px;
  padding-top: 8px; padding-bottom: 8px;
}
.topbar a{ color: #DCE4DC; text-decoration: none; }
.topbar a:hover{ color: var(--brass); }
.topbar a.cta{
  color: var(--ink); background: var(--brass);
  padding: 4px 14px; border-radius: 999px; font-weight: 600;
}
.topbar a.cta:hover{ background: var(--brass-dark); color: var(--white); }

/* ---------- Header / nav ---------- */
.site-header{ background: var(--paper); border-bottom: 1px solid var(--paper-line); }
.site-header .container{ padding-top: 18px; padding-bottom: 18px; display:flex; align-items:center; }
.logo{ height: 56px; width: auto; display: block; }

.main-nav{ background: var(--card); border-bottom: 1px solid var(--paper-line); position: sticky; top: 0; z-index: 40; }
.main-nav .container{ display: flex; align-items: center; justify-content: space-between; }
.main-nav ul{ list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.main-nav a{
  display: block; padding: 16px 14px; text-decoration: none;
  color: var(--ink); font-weight: 500; border-bottom: 3px solid transparent;
}
.main-nav a:hover{ color: var(--brass-dark); }
.main-nav a.active{ border-bottom-color: var(--brass); color: var(--brass-dark); }

.nav-toggle{
  display:none; background:none; border:none; cursor:pointer; padding: 12px;
}
.nav-toggle svg{ width: 26px; height: 26px; stroke: var(--ink); }

@media (max-width: 760px){
  .nav-toggle{ display:block; }
  .main-nav ul{
    display:none; flex-direction: column; width: 100%;
    position:absolute; left:0; top: 100%; background: var(--card);
    border-bottom: 1px solid var(--paper-line);
  }
  .main-nav ul.open{ display:flex; }
  .main-nav{ position: relative; }
  .topbar .container{ justify-content: center; flex-wrap: wrap; gap: 12px; }
}

/* ---------- Hero ---------- */
.hero{
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 43px, rgba(220,228,220,0.06) 43px, rgba(220,228,220,0.06) 44px);
  pointer-events: none;
}
.hero .container{
  position: relative;
  padding: 92px 24px 84px;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center;
}
.hero h1{ color: var(--white); max-width: 20ch; }
.hero p.lead{ color: #C9D3C7; font-size: 1.15rem; max-width: 42ch; }
.hero .hero-actions{ display:flex; gap:14px; margin-top: 26px; flex-wrap: wrap; }

.hero-figure{ display:flex; justify-content:center; }
.hero-figure svg{ width: 100%; max-width: 320px; height: auto; }

@media (max-width: 860px){
  .hero .container{ grid-template-columns: 1fr; padding: 64px 24px; }
  .hero-figure{ order: -1; max-width: 220px; margin: 0 auto; }
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-block; font-family: var(--font-body); font-weight: 600;
  text-decoration:none; padding: 13px 26px; border-radius: var(--radius);
  background: var(--brass); color: var(--ink); border: 1px solid var(--brass);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover{ background: var(--brass-dark); border-color: var(--brass-dark); color: var(--white); }
.btn.btn-outline{
  background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.6);
}
.btn.btn-outline:hover{ background: rgba(255,255,255,0.1); color: var(--white); border-color: var(--white); }
.btn.btn-ink{ background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn.btn-ink:hover{ background: var(--ink-soft); border-color: var(--ink-soft); }

/* ---------- Sections ---------- */
.section{ padding: 76px 0; background: var(--paper); }
.section.dark{
  background: var(--ink); color: #DCE4DC;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 43px, rgba(220,228,220,0.05) 43px, rgba(220,228,220,0.05) 44px);
}
.section.dark h2{ color: var(--white); }
.section.dark p{ color: #C9D3C7; }
.section.tight{ padding: 56px 0; }

.section-head{ max-width: 62ch; margin-bottom: 40px; }
.eyebrow{ color: var(--brass-dark); font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; display:block; }

.two-col{
  display:grid; grid-template-columns: 1.3fr 0.9fr; gap: 56px; align-items: start;
}
@media (max-width: 820px){ .two-col{ grid-template-columns: 1fr; } }

.stat{
  border-left: 3px solid var(--brass);
  padding: 4px 0 4px 20px;
  margin-top: 8px;
}
.stat .num{ font-family: var(--font-head); font-size: 2.6rem; font-weight: 600; display:block; }
.stat .label{ color: var(--ash); font-size: 0.95rem; }
.stat-group{ display:grid; gap: 26px; }

/* ---------- Reasons list ---------- */
.reasons{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; }
@media (max-width: 700px){ .reasons{ grid-template-columns: 1fr; } }
.reasons li{
  position: relative; padding-left: 30px; color: inherit;
}
.reasons li::before{
  content:""; position:absolute; left:0; top: 0.35em;
  width: 14px; height: 14px; border: 2px solid var(--brass);
  border-left: none; border-top: none;
  transform: rotate(45deg); translate: 0 -4px;
}

/* ---------- Services grid ---------- */
.services-grid{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px; margin-top: 44px;
}
.service-card{
  background: var(--card); border: 1px solid var(--paper-line);
  border-top: 3px solid var(--brass);
  padding: 26px 24px; border-radius: var(--radius);
}
.service-card h3{ margin-bottom: 8px; }
.service-card p{ color: var(--ash); margin-bottom: 0; font-size: 0.97rem; }
.service-icon{
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper); display:flex; align-items:center; justify-content:center;
  margin-bottom: 16px;
}
.service-icon svg{ width: 24px; height: 24px; stroke: var(--brass-dark); color: var(--brass-dark); }

.cta-center{ text-align:left; margin-top: 46px; }

/* ---------- Assistant fiscal ---------- */
.assistant-card{
  background: var(--card); border: 1px solid var(--paper-line);
  border-left: 4px solid var(--brass);
  border-radius: var(--radius);
  padding: 40px;
  display:grid; grid-template-columns: 1fr auto; gap: 32px; align-items:center;
}
@media (max-width: 760px){ .assistant-card{ grid-template-columns: 1fr; text-align:left; } }
.assistant-card h2{ margin-bottom: 10px; }
.assistant-card ul{ margin: 18px 0 0; padding-left: 20px; color: var(--ash); }
.assistant-card ul li{ margin-bottom: 6px; }
.assistant-note{ font-size: 0.85rem; color: var(--ash); margin-top: 14px; }

/* ---------- CTA band ---------- */
.cta-band{ background: var(--brass); color: var(--ink); padding: 54px 0; text-align:left; }
.cta-band .container{ display:flex; align-items:center; justify-content:space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2{ color: var(--ink); margin:0; }

/* ---------- Contact page ---------- */
.contact-wrap{ display:grid; grid-template-columns: 0.9fr 1.4fr; gap: 44px; margin-top: 36px; }
@media (max-width: 820px){ .contact-wrap{ grid-template-columns: 1fr; } }

.contact-panel{
  background: var(--ink); color: var(--white); border-radius: var(--radius);
  padding: 32px; height: fit-content;
}
.contact-panel h2{ color: var(--white); font-size: 1.2rem; }
.contact-detail a{ color: var(--white); text-decoration: none; }
.contact-detail a:hover{ color: var(--brass); }
.contact-detail div{ padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.contact-detail div:last-child{ border-bottom: none; }

.contact-form{
  background: var(--card); border: 1px solid var(--paper-line); border-radius: var(--radius);
  padding: 32px; display:flex; flex-direction:column; gap: 6px;
}
.contact-form label{ font-weight: 600; font-size: 0.92rem; margin-top: 12px; }
.contact-form input, .contact-form textarea{
  font-family: var(--font-body); font-size: 1rem;
  padding: 11px 13px; border: 1px solid var(--paper-line); border-radius: var(--radius);
  background: var(--paper);
}
.contact-form input:focus, .contact-form textarea:focus{ outline: 2px solid var(--brass); border-color: var(--brass); }
.contact-form .btn{ margin-top: 20px; align-self:flex-start; cursor:pointer; }
.honeypot{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.form-note{ font-size: 0.85rem; color: var(--ash); margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--ink); color: #B9C4B9; padding: 40px 0; }
.site-footer .container{
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap: wrap; gap: 12px; font-size: 0.9rem;
}
.footer-links a{ color: #B9C4B9; }
.footer-links a:hover{ color: var(--brass); }

/* ---------- About page ---------- */
.about-copy{ max-width: 74ch; }

/* ---------- Blog ---------- */
.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

.blog-filters{ display:flex; flex-wrap:wrap; gap: 10px; margin-top: 32px; }
.filter-btn{
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 600;
  padding: 8px 18px; border-radius: 999px; cursor: pointer;
  background: var(--card); color: var(--ink); border: 1px solid var(--paper-line);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.filter-btn:hover{ border-color: var(--brass); color: var(--brass-dark); }
.filter-btn[aria-pressed="true"]{ background: var(--ink); color: var(--white); border-color: var(--ink); }

.blog-grid{
  display:grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px; margin-top: 32px;
}
.post-card{
  background: var(--card); border: 1px solid var(--paper-line);
  border-top: 3px solid var(--brass); border-radius: var(--radius);
  display:flex; flex-direction:column; overflow:hidden;
}
.post-card[hidden]{ display:none; }

.post-thumb{
  display:block; aspect-ratio: 16 / 9; position:relative; overflow:hidden;
  background: var(--ink);
  background-image: repeating-linear-gradient(0deg, transparent, transparent 21px, rgba(220,228,220,0.07) 21px, rgba(220,228,220,0.07) 22px);
}
.post-thumb img{ width:100%; height:100%; object-fit:cover; display:block; transition: transform 0.3s ease; }
.post-card:hover .post-thumb img{ transform: scale(1.03); }
.post-thumb-label{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 600; color: #D9B26B;
}

.post-body{ padding: 22px 24px 24px; display:flex; flex-direction:column; flex:1; }
.post-meta{ display:flex; align-items:center; gap: 12px; font-size: 0.85rem; color: var(--ash); margin-bottom: 10px; flex-wrap: wrap; }
.post-badge{
  display:inline-flex; align-items:center; gap: 6px; font-weight: 600; color: var(--ink);
  background: var(--paper); padding: 3px 10px; border-radius: 999px;
}
.post-badge::before{ content:""; width:8px; height:8px; border-radius:50%; background: var(--brass); }
.post-badge--facebook::before{ background:#1877F2; }
.post-badge--youtube::before{ background:#E62117; }
.post-badge--tiktok::before{ background:#16231F; box-shadow: 1px 0 0 #25F4EE, -1px 0 0 #FE2C55; }

.post-title{ font-size: 1.2rem; margin-bottom: 8px; }
.post-title a{ color: var(--ink); text-decoration: none; }
.post-title a:hover{ color: var(--brass-dark); }
.post-body p{ color: var(--ash); font-size: 0.97rem; margin-bottom: 16px; }
.post-link{ margin-top:auto; font-weight: 600; text-decoration: none; color: var(--brass-dark); }
.post-link:hover{ color: var(--brass); text-decoration: underline; }

.blog-empty{
  margin-top: 36px; background: var(--card); border: 1px solid var(--paper-line);
  border-left: 4px solid var(--brass); border-radius: var(--radius); padding: 36px;
}
.blog-empty h2{ font-size: 1.4rem; }
.blog-empty p{ color: var(--ash); margin:0; }
