/* Import de la police Atkinson Hyperlegible depuis /fonts/ */
@font-face {
  font-family: 'Atkinson';
  src: url('Atkinson-Hyperlegible-Regular-102a.woff2') format('woff2'),
       url('Atkinson-Hyperlegible-Regular-102.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* Global */
body {
  font-family: 'Atkinson', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  color: #2b2b2b;
  background-color: #f8f6f2;
}

/* Wrapper principal */
header, main, footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Header : logo + sous-titre */
header {
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.site-title {
  font-size: 2rem;
  font-weight: bold;
  color: inherit;
  text-decoration: none;
}

.site-title:hover {
  text-decoration: underline;
  color: #000;
}

.sous-titre {
  font-size: 1.2rem;
  font-style: italic;
  color: #333;
  margin-bottom: 0.5em;
}

/* Lien de retour dans le header */
.retour-accueil {
  margin-top: 0.5em;
  font-size: 0.9rem;
  text-align: center;
}

.retour-accueil a {
  color: #666;
  text-decoration: none;
}

.retour-accueil a:hover {
  color: #000;
  text-decoration: underline;
}

/* Titre principal */
h1 {
  font-size: 1.6rem;
  margin-bottom: 0.5em;
}

/* Accroche d’introduction */
.accroche {
  font-size: clamp(1.125rem, 1rem + 0.9vw, 1.35rem);
  line-height: 1.55;
  font-weight: 500;
  color: var(--text);
  max-width: var(--measure);
  margin: 1rem auto 1.25rem;
  padding: 0.9em 1em;
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: 0.4rem;
}

/* Liens de la home */
.liens-principaux {
  display: block;
  margin: 1.5rem 0;
  font-weight: 500;
  color: #005577;
  text-decoration: none;
}

.liens-principaux:hover {
  color: #000;
  text-decoration: underline;
}

main a {
  text-decoration: none;
  color: #2b2b2b;
  font-weight: 500;
}

main a:hover {
  text-decoration: underline;
  color: #000;
}

a:focus, button:focus {
  outline: 2px solid #004466;
  outline-offset: 2px;
}

/* Liens intégrés dans le texte */
.intext-link {
  color: #005577; /* bleu discret mais visible */
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.intext-link:hover {
  color: #000;
  text-decoration-thickness: 1.5px;
}

/* Lien "vers la suite" dans le corps */
.suite {
  margin-top: 3rem;
  text-align: right;
  font-size: 1.05rem;
}

.suite a {
  font-weight: 500;
  color: #004466;
  text-decoration: none;
}

.suite a:hover {
  color: #000;
  text-decoration: underline;
}

/* Footer */
footer {
  text-align: center;
  font-size: 0.85rem;
  color: #666;
  border-top: 1px solid #eee;
  margin-top: 3rem;
  padding-top: 1.5rem;
}

footer a {
  color: #555;
  text-decoration: none;
}

footer a:hover {
  color: #000;
  text-decoration: underline;
}

/* Citation extérieure, flottante et sobre */
blockquote.quote {
  margin: 2.5rem 2rem;
  padding: 0.5rem 1rem;
  font-style: italic;
  background-color: #fdfdfd;
  border: 1px solid #eee;
  color: #444;
  font-size: 1.05rem;
  position: relative;
}

blockquote.quote::after {
  content: attr(data-author);
  display: block;
  margin-top: 0.8rem;
  text-align: right;
  font-style: normal;
  font-size: 0.9rem;
  color: #777;
}

/* Phrase d'emphase personnelle, centrée et tendue */
blockquote.emphasis {
  margin: 2.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid #222;
  font-style: italic;
  color: #222;
  font-size: 1.1rem;
}

/* Appels à l'action doux dans le corps du texte */
.cta, .cta-final {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
  color: #333;
  text-align: left;
  line-height: 1.5;
}

.cta a, .cta-final a {
  font-weight: bold;
  color: #004466;
  text-decoration: none;
}

.cta a:hover, .cta-final a:hover {
  color: #000;
  text-decoration: underline;
}

/* Rubriques en accordéon */
details {
  margin: 1.5rem 0;
  padding: 0.8rem 1rem;
  background-color: #fdfdfd;
  border: 1px solid #ddd;
  border-radius: 0.4rem;
  transition: background-color 0.3s ease;
}

details[open] {
  background-color: #f8f6f2;
}

summary {
  font-weight: 600;
  cursor: pointer;
  position: relative;
  padding-right: 1.5rem;
  list-style: none;
}

summary::marker {
  display: none; /* retire le triangle natif si nécessaire */
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "▶";
  position: absolute;
  right: 0;
  top: 0;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

details[open] summary::after {
  transform: rotate(90deg);
}

details p {
  margin-top: 0.75rem;
}