/* Accueil français : esprit éditorial, papier ivoire, bleu marine et rouge, filet tricolore */
:root {
  --bg: #faf7f1;
  --card: #ffffff;
  --text: #1b2433;
  --muted: #5f6878;
  --line: #e6dfd2;
  --bleu: #1d3a6e;
  --rouge: #c8323b;
  --accent: var(--bleu);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11161f;
    --card: #19202c;
    --text: #ece8df;
    --muted: #a3a9b5;
    --line: #2b3342;
    --accent: #8fb0e8;
  }
}
:root[data-theme="dark"] {
  --bg: #11161f;
  --card: #19202c;
  --text: #ece8df;
  --muted: #a3a9b5;
  --line: #2b3342;
  --accent: #8fb0e8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

.tricolore {
  height: 5px;
  background: linear-gradient(90deg, #1d3a6e 0 33.33%, #ffffff 33.33% 66.66%, #c8323b 66.66%);
  border-bottom: 1px solid var(--line);
}

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.topbar {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  font-size: 0.85rem;
}
.topbar a { color: var(--muted); text-decoration: none; }
.topbar a:hover { color: var(--accent); text-decoration: underline; }

.hero {
  text-align: center;
  padding: 28px 0 36px;
}
.logo { width: 76px; height: 76px; display: block; margin: 0 auto 18px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.1rem, 6vw, 3rem);
  letter-spacing: 0.01em;
  margin: 0;
}
.hero .devise {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 1.15rem;
  margin: 10px 0 0;
}
.ornement {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--rouge);
  margin-top: 22px;
  font-size: 0.9rem;
}
.ornement::before, .ornement::after {
  content: "";
  width: 64px;
  height: 1px;
  background: var(--line);
}

.section { margin-top: 34px; }
.section h2 {
  font-family: var(--serif);
  font-variant: small-caps;
  letter-spacing: 0.06em;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--accent);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .grid { grid-template-columns: 1fr 1fr; }
}

.tool {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.tool:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(29, 58, 110, 0.10);
}
.tool:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.tool-icon {
  font-size: 1.55rem;
  width: 46px;
  height: 46px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
}
.tool-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tool-title { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; }
.tool-desc { color: var(--muted); font-size: 0.86rem; line-height: 1.4; }

.blog {
  margin-top: 40px;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--rouge);
  background: var(--card);
  border-radius: 6px;
}
.blog h2 { font-family: var(--serif); font-size: 1.2rem; margin: 0 0 6px; }
.blog p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.blog a { color: var(--accent); font-weight: 600; }

.footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 40px;
  line-height: 1.8;
}
.footer a { color: inherit; }
