/*
 * Mise en page des guides générés par outils/publier-article.php.
 * Couleurs reprises des visuels du site (bannières « rubrique », épingles) :
 * bleu nuit, turquoise, pastille orange.
 */
.guide {
  --g-nuit: #14213d;
  --g-nuit-2: #1d2d50;
  --g-turquoise: #1ba085;
  --g-turquoise-clair: #2ec4a5;
  --g-orange: #f0a63f;
  --g-fond: #f5f7fb;
  --g-bord: #e3e8f0;
  color: #1f2937;
  line-height: 1.7;
}

/* Bandeau de titre */
.guide-hero {
  position: relative;
  overflow: hidden;
  background: var(--g-nuit);
  color: #fff;
  border-radius: 18px;
  padding: 2.2rem 2rem 2rem;
  margin-bottom: 2rem;
}
.guide-hero::before {            /* la pastille orange des visuels */
  content: "";
  position: absolute;
  top: 1.2rem; right: 1.4rem;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--g-orange);
}
.guide-hero::after {             /* les cercles turquoise */
  content: "";
  position: absolute;
  right: -90px; bottom: -110px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--g-turquoise-clair) 0 38%, var(--g-turquoise) 38% 62%, var(--g-nuit-2) 62% 100%);
  opacity: .9;
}
.guide-hero h1 {
  position: relative;
  z-index: 1;
  color: #fff;
  font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.2;
  max-width: 34ch;
  margin: 0 0 1rem;
}
.guide-verif {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(46, 196, 165, .16);
  color: var(--g-turquoise-clair);
  border: 1px solid rgba(46, 196, 165, .45);
  border-radius: 999px;
  padding: .25rem .8rem;
  font-size: .85rem;
  font-weight: 600;
}
.guide-image {
  margin: 0 0 2rem;
}
.guide-image img,
.guide figure img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(20, 33, 61, .12);
}
.guide figure { margin: 1.8rem 0; }
.guide figcaption { font-size: .85rem; color: #6b7280; margin-top: .5rem; text-align: center; }

/* En bref */
.guide-bref {
  background: linear-gradient(135deg, #ecfbf7, #f5f7fb);
  border-left: 5px solid var(--g-turquoise);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  margin: 0 0 2rem;
  font-size: 1.04rem;
}
.guide-bref p { margin: 0; }

/* Intertitres */
.guide h2 {
  color: var(--g-nuit);
  font-weight: 800;
  font-size: 1.5rem;
  margin: 3rem 0 1rem;
  padding-bottom: .5rem;
  position: relative;
}
.guide h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 56px; height: 4px;
  border-radius: 4px;
  background: var(--g-turquoise);
}
.guide h3 { color: var(--g-nuit); font-weight: 700; font-size: 1.2rem; margin: 2rem 0 .8rem; }
.guide h4 { color: var(--g-turquoise); font-weight: 700; font-size: 1.05rem; margin: 1.6rem 0 .6rem; }

/* Listes */
.guide ul { padding-left: 1.2rem; }
.guide ul li { margin-bottom: .45rem; }
.guide ul li::marker { color: var(--g-turquoise); }
.guide ol li::marker { color: var(--g-turquoise); font-weight: 700; }

/* Tableaux */
.guide-table {
  border: 1px solid var(--g-bord);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(20, 33, 61, .06);
  margin: 1.4rem 0 1.8rem;
  overflow-x: auto;
}
.guide-table table { margin: 0; min-width: 560px; font-size: .94rem; }
.guide-table thead th {
  background: var(--g-nuit);
  color: #fff;
  font-weight: 700;
  border: 0;
  padding: .85rem 1rem;
  vertical-align: middle;
}
.guide-table tbody td { padding: .8rem 1rem; border-color: var(--g-bord); vertical-align: top; }
.guide-table tbody tr:nth-child(even) td { background: var(--g-fond); }
.guide-table tbody td:first-child { font-weight: 700; color: var(--g-nuit); }

/* Liens */
.guide a { color: var(--g-turquoise); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.guide a:hover { color: var(--g-nuit); }
.guide-hero a { color: #fff; }

/* FAQ en accordéon */
.guide-faq {
  border: 1px solid var(--g-bord);
  border-radius: 12px;
  margin-bottom: .7rem;
  background: #fff;
  overflow: hidden;
}
.guide-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 3rem 1rem 1.2rem;
  font-weight: 700;
  color: var(--g-nuit);
  position: relative;
}
.guide-faq summary::-webkit-details-marker { display: none; }
.guide-faq summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--g-turquoise);
}
.guide-faq[open] summary::after { content: "−"; }
.guide-faq[open] summary { background: var(--g-fond); }
.guide-faq p { padding: .9rem 1.2rem 1rem; margin: 0; }

/* Sources */
.guide-sources {
  background: var(--g-fond);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-top: 2.5rem;
}
.guide-sources summary { cursor: pointer; font-weight: 700; color: var(--g-nuit); }
.guide-sources ul { margin: .8rem 0 0; }

@media (max-width: 576px) {
  .guide-hero { padding: 1.6rem 1.2rem 1.4rem; border-radius: 14px; }
  .guide-hero::after { width: 170px; height: 170px; right: -70px; bottom: -80px; }
  .guide h2 { font-size: 1.3rem; }
}

/* Logos : petits, sans ombre */
.guide figure.guide-logo { margin: .6rem 0 1rem; }
.guide figure.guide-logo img { max-width: 220px; box-shadow: none; border-radius: 0; }

/* Images du texte : centrées, pas plus larges qu'une colonne de lecture confortable */
.guide figure:not(.guide-logo) img { display: block; max-width: 640px; margin: 0 auto; }
