:root {
  color-scheme: light;
  --bg: #ede7de;
  --surface: #ede7de;
  --fg: #1a1512;
  --accent: #c1440e;
  --border: rgba(26, 21, 18, 0.15);
  --muted: #6b6259;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, .site-title {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

header nav a {
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--fg);
}

header nav a:hover { color: var(--accent); }

header nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
}

.nav-dropdown summary::-webkit-details-marker { display: none; }

.nav-dropdown summary::after {
  content: " ▾";
  color: var(--muted);
}

.nav-dropdown summary:hover { color: var(--accent); }

.nav-dropdown .dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  min-width: 180px;
  z-index: 10;
}

.nav-dropdown .dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.nav-dropdown .dropdown-menu a:last-child { border-bottom: none; }

.nav-dropdown[open] summary::after { content: " ▴"; }

.site-title {
  font-size: 1.3rem;
  color: var(--fg);
  text-decoration: none;
  line-height: 0;
}

.site-title img {
  display: block;
  height: 32px;
  width: auto;
}

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.hero {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 2.5rem;
}

h1 {
  font-size: 2.6rem;
  margin: 0 0 1rem;
}

article h1 { font-size: 2.1rem; }

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--accent); }

.breadcrumb span[aria-hidden] { margin: 0 0.4rem; }

.breadcrumb span[aria-current] { color: var(--fg); }

article .cover {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 2rem;
}

article img:not(.cover):not(.crm-logo) {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem 0;
}

.crm-logo {
  height: 1.3em;
  width: auto;
  vertical-align: -0.25em;
  margin: 0 0.5rem 0 0;
  border: none;
  display: inline-block;
}

article table {
  margin-bottom: 2.5rem;
}

table .crm-logo {
  height: 1.6rem;
}

/* Ajuste la taille de chaque logo indépendamment ici. */
.crm-logo-pipedrive { height: 2em; }
.crm-logo-hubspot { height: 1.3em; }
.crm-logo-salesforce { height: 2.5em; }
.crm-logo-nocrm { height: 2.5em; }
.crm-logo-zoho { height: 1.8em; }

table .crm-logo-pipedrive { height: 1.3rem; }
table .crm-logo-hubspot { height: 1.3rem; }
table .crm-logo-salesforce { height: 2.5rem; }
table .crm-logo-nocrm { height: 2.5rem; }
table .crm-logo-zoho { height: 1.8rem; }

a {
  color: var(--fg);
  text-decoration-color: var(--border);
}

a:hover { color: var(--accent); }

.article-featured {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding: 2.5rem;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
}

.article-featured:hover { background: #a83a0c; color: var(--bg); }

.featured-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.featured-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.9rem;
  line-height: 1.25;
}

.article-featured p {
  margin: 0;
  max-width: 40rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.featured-cta {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-section {
  font-size: 1.4rem;
  margin: 5rem 0 0;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
  .article-featured { grid-template-columns: 1fr; }
  .article-featured img { border-right: none; border-bottom: 1px solid var(--border); }
}

.article-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.article-list li {
  border: 1px solid var(--border);
}

.article-list a {
  text-decoration: none;
  display: block;
  color: var(--fg);
}

.article-list img {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.article-list span {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  padding: 1.25rem 1.5rem;
}

.article-list a:hover span { color: var(--accent); }

@media (max-width: 640px) {
  .article-list { grid-template-columns: 1fr; }
}

footer {
  max-width: 1000px;
  margin: 3rem auto 0;
  padding: 2.5rem 1.5rem 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-heading {
  margin: 0 0 0.2rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1rem;
  color: var(--fg);
}

.footer-tagline {
  margin: 0;
  font-size: 0.85rem;
}

.footer-copyright {
  margin: 0;
  font-size: 0.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

footer a:hover { color: var(--accent); }

@media (max-width: 640px) {
  .footer-columns { grid-template-columns: 1fr; gap: 1.5rem; }
}
