:root {
  --blue: #00205b; /* Bleu Versailles */
  --ink: #111;
  --muted: #556;
  --border: #e5e7eb;
  --open: #f6f8ff; /* Couleur d'arrière-plan souhaitée pour ouvert/survol */
  --radius: 10px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.8;
  background: #fff;
  font-size: 1.8rem;
}
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 18px;
}

/* Liens génériques (au cas où) */
a {
  color: #0a4bdc;
  text-decoration: none;
  /* --- MODIFICATION DEMANDÉE : rend tous les liens en gras --- */
  font-weight: bold;
}
a:hover {
  text-decoration: underline;
}

/* phrase d'aide */
.lead {
  margin: 4px 0 14px;
  color: var(--muted);
}
mark,
.mark {
  padding: 0.2em;
  background-color: #fcf8e3;
}
/* —— NIVEAU 1 : THÉMATIQUES (details.theme) —— */
details.theme {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  margin: 14px 0;
  overflow: hidden;
  transition: background-color 0.3s ease;
}
/* Applique la couleur au survol de la souris */
details.theme:hover {
  background: var(--open);
}
/* Applique la couleur lorsque la rubrique est ouverte */
details.theme[open] {
  background: var(--open);
}
summary.theme {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 16px;
  font-weight: 800;
  color: var(--blue);
  font-size: 2.2rem;
}
summary.theme::-webkit-details-marker {
  display: none;
}

/* conteneur des sous-thèmes - prêt à être animé */
.subwrap {
  padding: 8px 14px 14px;
  overflow: hidden;
  max-height: 0;
}
.subwrap p,
li {
  margin: 1em 0;
  font-size: 1.8rem;
  text-align: justify;
}

/* —— NIVEAU 2 : SOUS-THÉMATIQUES (details.sub) —— */
details.sub {
  margin: 10px 0;
  border: 1px solid #eef0f4;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

summary.sub {
  padding: 12px 14px;
}
summary.sub,
h4 {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-weight: 700;
  color: var(--blue);
  font-size: 2rem;
}
h5 {
  color: var(--blue);
  font-size: 1.8rem;
  margin-bottom: -1.8rem;
}
summary.sub::-webkit-details-marker {
  display: none;
}
details.sub[open] {
  background: #f6f8ff;
}

/* —— FLÈCHES SVG PIVOTANTES —— */
summary .arrow {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  transition: transform 0.25s ease;
}
details[open] > summary .arrow {
  transform: rotate(90deg);
}
/* Réinitialise les marqueurs de <summary> */
summary {
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}

/* —— NIVEAU 3 : CONTENU —— */
.content {
  padding: 10px 16px 14px;
  font-size: 1.8rem;
  color: #1a1a1a;
  overflow: hidden;
  max-height: 0;
}
.content p {
  margin: 1rem 0;
}
.content ul {
  margin: 0.3rem 0 0.6rem;
  padding-left: 20px;
}
.section {
  margin: 10px 0 14px;
}
.section-title {
  font-weight: 800;
  color: var(--blue);
  font-size: 1.8rem;
  margin-bottom: 6px;
}
.section-title::before {
  content: "“";
}
.section-title::after {
  content: "”";
}
.note {
  background: #fff7e0;
  border: 1px solid #fde3a7;
  border-radius: 8px;
  padding: 10px;
  margin-top: 8px;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.warn {
  background: #fff7e0;
  border: 1px solid #fde3a7;
  border-radius: 6px;
  padding: 9px 11px;
  margin-top: 6px;
}
.select-label {
  display: block;
  margin-bottom: 8px;
}

/* ----------------------------------------------------- */
/* STYLES DE CENTRAGE ET FLÈCHE DU SÉLECTEUR D'ACTE    */
/* ----------------------------------------------------- */

/* Centrage du formulaire pour la demande d'acte */
#acte-form {
  display: flex;
  margin-top: 10px;
  align-items: center;
}

/* Conteneur pour le sélecteur d'acte (permet le centrage et la flèche) */
.select-wrapper {
  position: relative;
  width: 35rem; /* Largeur définie pour le centrage */
  margin: 0 1rem 0px; /* Centrage et petite marge en bas */
  text-align: left;
}

/* Flèche personnalisée (chevron) pour le sélecteur d'actes */
.select-wrapper::after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  right: 14px; /* Positionnement à droite */
  transform: translateY(-50%);
  pointer-events: none;

  /* Création du triangle CSS */
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--blue);
}

/* Style de l'élément select */
.select-acte,
#pacs-select {
  width: 35rem;
  padding: 10px 14px;
  font-size: 1.8rem;
  line-height: 1.4;
  color: var(--ink);
  background: #f7f7f7;
  border: 1px solid #ccc;
  border-radius: 2rem;
  /* Masque la flèche native du navigateur */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  /* Espace pour la flèche personnalisée */
  padding-right: 40px;
  cursor: pointer;
  transition: border-color 0.2s ease;
  text-align: center;
}

.select-acte:hover,
#pacs-select:hover {
  border-color: #999;
}

.select-acte:focus,
#pacs-select:focus {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-color: var(--blue);
}

/* Style du bouton "Demander en ligne" */
.btn-demarche {
  /* Définit la même largeur et centre le bouton */
  display: block;
  width: 35rem;
  margin: 10px auto; /* Centrage du bouton */

  padding: 12px 20px;
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background-color: var(--blue);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-demarche:hover {
  background-color: #003680;
}

/* ----------------------------------------------------- */
/* FIN DES MODIFICATIONS SPÉCIFIQUES                    */
/* ----------------------------------------------------- */

/* Style des adresses */
.address-style {
  font-style: normal;
  line-height: 1.4;
  font-size: 1.8rem;
  text-align: center;
}
.centered-address {
  text-align: center;
}

/* Focus */
summary:focus {
  outline: none;
}
summary:focus-visible {
  outline: 3px solid #ffd86b;
  outline-offset: 2px;
  border-radius: 6px;
}
/* Bandeau du bas */
.footer {
  margin: 18px 0 6px;
  padding: 12px;
  text-align: center;
  font-weight: 800;
  background: var(--blue);
  color: #fff;
  border-radius: 8px;
}

/* Mobile */
@media (max-width: 560px) {
  /* Assure que les éléments s'ajustent bien sur mobile */
  .select-wrapper,
  .select-acte,
  .btn-demarche {
    width: 100%; /* Reprend la largeur maximale disponible */
  }

  summary.theme {
    font-size: 1.8rem;
  }
  summary.sub {
    font-size: 2.2rem;
  }
  .content {
    font-size: 1.4rem;
  }
}

/* Style de la section Mariage qui doit rester ouverte */
.static-theme {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--open);
  margin: 14px 0;
  padding: 16px;
}

.static-theme h3 {
  display: flex;
  align-items: center;
  margin: 0 0 16px;
  font-size: 1.1rem;
  font-weight: bold;
}

.static-theme h3 svg {
  margin-right: 10px;
  transform: rotate(
    90deg
  ); /* L'icône de la flèche sera tournée pour pointer vers le bas */
}

.btn-contacte {
  display: block; /* Important pour que l'a se comporte comme la div */
  text-decoration: none; /* Enlève le soulignement typique des liens */
  cursor: pointer; /* Indique qu'il s'agit d'un élément cliquable */
  margin: 18px 0 6px;
  padding: 12px;
  text-align: center;
  font-weight: 800;
  background: var(--blue);
  color: #fff;
  border-radius: 6px;
}
