/* ============================================================
   cyrildesousacardoso.fr — feuille de style unique
   Site statique, lisible sans JavaScript.
   ============================================================ */

:root {
  --paper: #faf7f1;
  --paper-deep: #f2ede3;
  --ink: #1c2230;
  --ink-soft: #4a5266;
  --navy: #101b33;
  --accent: #1f45c2;
  --accent-dark: #16327f;
  --rule: #ddd5c6;
  --max: 44rem;
  --max-wide: 62rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- En-tête ---------- */

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.site-header .inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .6rem 2rem;
}

.brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: .01em;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.4rem;
  font-family: ui-sans-serif, system-ui, "Helvetica Neue", Arial, sans-serif;
  font-size: .85rem;
  letter-spacing: .02em;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: .2rem 0;
  border-bottom: 2px solid transparent;
}

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

.site-nav a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* ---------- Corps de page ---------- */

main { display: block; }

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4.5rem;
}

.page-wide {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4.5rem;
}

h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2rem, 5.5vw, 2.9rem);
  line-height: 1.12;
  color: var(--navy);
  letter-spacing: -.01em;
  margin-bottom: .5rem;
}

.subtitle {
  font-family: ui-sans-serif, system-ui, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  color: var(--ink-soft);
  letter-spacing: .01em;
  margin-bottom: 2.2rem;
}

h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 1.25;
  color: var(--navy);
  margin: 2.8rem 0 .9rem;
}

h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--navy);
  margin: 1.8rem 0 .4rem;
}

p { margin-bottom: 1.1rem; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }

strong { color: var(--navy); }

ul, ol { margin: 0 0 1.1rem 1.4rem; }
li { margin-bottom: .45rem; }

blockquote {
  margin: 2rem 0;
  padding: .3rem 0 .3rem 1.4rem;
  border-left: 3px solid var(--accent);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.22rem;
  line-height: 1.5;
  color: var(--navy);
}

blockquote footer {
  margin-top: .7rem;
  font-family: ui-sans-serif, system-ui, "Helvetica Neue", Arial, sans-serif;
  font-size: .85rem;
  color: var(--ink-soft);
}

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 3rem 0;
}

/* ---------- Accueil ---------- */

.hero {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 5rem 1.5rem 3.5rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4rem);
  margin-bottom: .6rem;
}

.hero .role {
  font-family: ui-sans-serif, system-ui, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.02rem;
  letter-spacing: .04em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-bottom: 2.4rem;
}

.hero blockquote {
  max-width: 40rem;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  margin: 0 0 2.4rem;
}

.hero .intro {
  max-width: 40rem;
  margin-bottom: 0;
}

.entries {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.2rem;
  list-style: none;
}

.entries li { margin: 0; }

.entry-card {
  display: block;
  height: 100%;
  padding: 1.6rem 1.5rem 1.4rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s ease, transform .15s ease;
}

.entry-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: var(--ink);
}

.entry-card h2 {
  margin: 0 0 .5rem;
  font-size: 1.25rem;
}

.entry-card p {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--ink-soft);
}

.entry-card .go {
  font-family: ui-sans-serif, system-ui, "Helvetica Neue", Arial, sans-serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--accent);
  text-transform: uppercase;
}

.news {
  max-width: var(--max-wide);
  margin: 0 auto 4.5rem;
  padding: 0 1.5rem;
}

.news .box {
  background: var(--navy);
  color: #eef1f8;
  border-radius: 10px;
  padding: 1.5rem 1.7rem;
}

.news .box .label {
  font-family: ui-sans-serif, system-ui, "Helvetica Neue", Arial, sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #aab8e0;
  margin-bottom: .6rem;
}

.news .box p { margin: 0 0 .5rem; font-size: 1.02rem; }
.news .box p:last-child { margin-bottom: 0; }
.news .box strong { color: #fff; }

/* ---------- Exergue (définition citable) ---------- */

.exergue {
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 1.5rem 1.7rem;
  margin: 2.2rem 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--navy);
}

/* ---------- Critères ---------- */

.criteres { list-style: none; margin: 1.5rem 0 0; counter-reset: crit; }

.criteres > li {
  counter-increment: crit;
  margin-bottom: 1.6rem;
  padding-left: 3rem;
  position: relative;
}

.criteres > li::before {
  content: counter(crit);
  position: absolute;
  left: 0;
  top: .1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* ---------- FAQ ---------- */

.faq dt {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  color: var(--navy);
  font-size: 1.1rem;
  margin-top: 1.6rem;
}

.faq dd { margin: .35rem 0 0; }

/* ---------- Lexique ---------- */

.lexique {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  margin: 1rem 0 0;
}

.lexique li {
  margin: 0;
  font-family: ui-sans-serif, system-ui, "Helvetica Neue", Arial, sans-serif;
  font-size: .85rem;
  color: var(--navy);
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: .3rem .85rem;
}

/* ---------- Livres ---------- */

.book {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.1rem;
}

.book h2 {
  margin: 0 0 .3rem;
  font-size: 1.25rem;
}

.book .meta {
  font-family: ui-sans-serif, system-ui, "Helvetica Neue", Arial, sans-serif;
  font-size: .85rem;
  color: var(--ink-soft);
  margin-bottom: .7rem;
}

.book p:last-child { margin-bottom: 0; font-size: 1.02rem; }

.a-paraitre {
  background: var(--paper-deep);
  border: 1px dashed var(--rule);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  margin-top: 1.4rem;
}

.a-paraitre p:last-child { margin-bottom: 0; }

/* ---------- Thèmes de conférence ---------- */

.theme {
  margin-bottom: 1.7rem;
}

.theme h3 { margin-top: 0; }

/* ---------- Faits / listes de référence ---------- */

.facts li { margin-bottom: .6rem; }

/* ---------- Bio encadrée ---------- */

.bio-block {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.3rem;
}

.bio-block h2 { margin-top: 0; font-size: 1.2rem; }
.bio-block p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */

.contact-card {
  background: var(--navy);
  color: #eef1f8;
  border-radius: 10px;
  padding: 1.6rem 1.7rem;
  margin-top: 2rem;
}

.contact-card h2 { color: #fff; margin: 0 0 .8rem; }
.contact-card a { color: #b9c8f2; }
.contact-card a:hover { color: #fff; }
.contact-card p:last-child { margin-bottom: 0; }

/* ---------- Pied de page ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--paper);
}

.site-footer .inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  font-family: ui-sans-serif, system-ui, "Helvetica Neue", Arial, sans-serif;
  font-size: .85rem;
  color: var(--ink-soft);
}

.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--accent); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; }

/* ---------- Divers ---------- */

.lead { font-size: 1.2rem; }

@media (max-width: 40rem) {
  .hero { padding-top: 3.2rem; }
  .page, .page-wide { padding-top: 2.6rem; }
}
