/*
 * Co-marquage Ma Commune Live : affichage des contenus service-public.fr.
 *
 * Composants inspirés des usages des sites publics (tuiles, onglets,
 * accordéons, mises en avant, alertes, étapes, cartes), sans l'identité de
 * l'État : pas de police Marianne, pas de bloc marque, pas de bleu-blanc-rouge.
 * Le site garde sa police et sa couleur de texte ; une couleur principale
 * réglable (--mcl-sp-primary, Réglages > Co-marquage) décline les nuances.
 *
 * Classes produites par le rendu du backend (SpRenderer, SpPages), par le
 * plugin (Content) et par son script, toutes préfixées.
 */

/* Jetons ------------------------------------------------------------------ */
.mcl-comarquage {
  --mcl-sp-primary: #000091;
  --mcl-sp-primary-strong: color-mix(in srgb, var(--mcl-sp-primary) 80%, #000);
  --mcl-sp-primary-soft: color-mix(in srgb, var(--mcl-sp-primary) 8%, #fff);
  --mcl-sp-primary-line: color-mix(in srgb, var(--mcl-sp-primary) 30%, #fff);
  --mcl-sp-surface: #f6f6f6;
  --mcl-sp-surface-strong: #eee;
  --mcl-sp-border: #ddd;
  --mcl-sp-border-strong: #929292;
  --mcl-sp-muted: #666;
  --mcl-sp-heading: #161616;
  --mcl-sp-warning: #b34000;
  --mcl-sp-warning-soft: #fff4f3;
  --mcl-sp-info: #0063cb;
  --mcl-sp-info-soft: #e8edff;
  --mcl-sp-radius: 4px;
  --mcl-sp-space: 1.5rem;

  font-size: max(1em, 1rem);
  line-height: 1.6;
  max-width: 1424px;
  margin-inline: auto;
  overflow-wrap: break-word;
}
.mcl-comarquage *, .mcl-comarquage *::before, .mcl-comarquage *::after { box-sizing: border-box; }

/* Icônes : dessinées par masque, elles prennent la couleur du texte. */
.mcl-comarquage {
  --mcl-sp-i-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --mcl-sp-i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --mcl-sp-i-external: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E");
  --mcl-sp-i-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7.5v.01'/%3E%3C/svg%3E");
  --mcl-sp-i-warning: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 2.4 17.6A2 2 0 0 0 4.1 20.6h15.8a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0zM12 9v4M12 17h.01'/%3E%3C/svg%3E");
  --mcl-sp-i-bulb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.5 10.9c.6.5 1 1.2 1 2.1h5c0-.9.4-1.6 1-2.1A6 6 0 0 0 12 3z'/%3E%3C/svg%3E");
  --mcl-sp-i-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
  --mcl-sp-i-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E");
  --mcl-sp-i-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E");
  --mcl-sp-i-globe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15 15 0 0 1 0 20M12 2a15 15 0 0 0 0 20'/%3E%3C/svg%3E");
  --mcl-sp-i-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
  --mcl-sp-i-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  --mcl-sp-i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* Remise à plat : les thèmes (Divi, Elementor...) ajoutent marges et
   retraits aux balises ; le co-marquage pose les siens. ------------------- */
.mcl-comarquage p,
.mcl-comarquage ul,
.mcl-comarquage ol,
.mcl-comarquage h2,
.mcl-comarquage h3,
.mcl-comarquage h4,
.mcl-comarquage figure,
.mcl-comarquage fieldset,
.mcl-comarquage details,
.mcl-comarquage table { margin: 0; padding: 0; }
.mcl-comarquage p { margin-bottom: 1em; }
.mcl-comarquage ul, .mcl-comarquage ol { margin-bottom: 1em; padding-left: 1.5em; line-height: inherit; }
.mcl-comarquage ul { list-style: disc; }
.mcl-comarquage ol { list-style: decimal; }
.mcl-comarquage li { margin: 0 0 .4em; padding: 0; }
.mcl-comarquage li::marker { color: var(--mcl-sp-primary); }
.mcl-comarquage li > p:last-child, .mcl-comarquage li > ul:last-child { margin-bottom: 0; }
.mcl-comarquage li > ul { margin-top: .4em; }
.mcl-comarquage :where(div, section, details, li, td, th) > :last-child { margin-bottom: 0; }
.mcl-comarquage h2, .mcl-comarquage h3, .mcl-comarquage h4 {
  font-weight: 700; line-height: 1.3; letter-spacing: normal; text-transform: none;
}
.mcl-comarquage img { max-width: 100%; height: auto; }
.mcl-comarquage strong, .mcl-comarquage b { font-weight: 700; }

.mcl-sp-sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.mcl-comarquage [hidden] { display: none !important; }

/* Liens et focus --------------------------------------------------------- */
.mcl-comarquage a {
  color: var(--mcl-sp-primary); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: .2em; transition: text-decoration-thickness .1s;
}
.mcl-comarquage a:hover { text-decoration-thickness: 2px; color: var(--mcl-sp-primary-strong); }
.mcl-comarquage :focus-visible { outline: 2px solid var(--mcl-sp-primary); outline-offset: 2px; border-radius: 2px; }

/* Lien vers un autre site : pictogramme « nouvelle fenêtre » */
.mcl-sp-service-titre a[target="_blank"]::after,
.mcl-sp-list-links a[target="_blank"]::after,
.mcl-sp-annuaire a::after,
.mcl-sp-web a::after,
.mcl-sp-source a::after,
.mcl-sp-ousadresser a[target="_blank"]::after,
.mcl-sp-annexe a[target="_blank"]::after {
  content: ""; display: inline-block; width: .9em; height: .9em; margin-left: .3em; vertical-align: -.05em;
  background: currentColor; -webkit-mask: var(--mcl-sp-i-external) center / contain no-repeat; mask: var(--mcl-sp-i-external) center / contain no-repeat;
}

/* Boutons ------------------------------------------------------------------ */
.mcl-sp-button,
.mcl-sp-search-row button,
.mcl-sp-commune-search button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 2.5rem; padding: .5em 1.25em; margin: 0;
  border: 1px solid var(--mcl-sp-primary); border-radius: var(--mcl-sp-radius);
  background: var(--mcl-sp-primary); color: #fff !important;
  font: inherit; font-weight: 600; line-height: 1.4; text-decoration: none !important; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.mcl-sp-button:hover,
.mcl-sp-search-row button:hover,
.mcl-sp-commune-search button:hover { background: var(--mcl-sp-primary-strong); border-color: var(--mcl-sp-primary-strong); }
.mcl-sp-button[target="_blank"]::after {
  content: ""; width: 1em; height: 1em; background: currentColor;
  -webkit-mask: var(--mcl-sp-i-external) center / contain no-repeat; mask: var(--mcl-sp-i-external) center / contain no-repeat;
}

/* Étiquettes : type de service, de résultat, surtitre d'actualité */
.mcl-comarquage .mcl-sp-service-type,
.mcl-comarquage .mcl-sp-resultat-type,
.mcl-comarquage .mcl-sp-news-surtitle,
.mcl-comarquage .mcl-sp-ousadresser > .mcl-sp-encadre-titre {
  display: inline-block; margin: 0 0 .6em; padding: .15em .6em;
  border-radius: 1em; background: var(--mcl-sp-primary-soft); color: var(--mcl-sp-primary-strong);
  font-size: .75em; font-weight: 700; line-height: 1.5; letter-spacing: .02em; text-transform: uppercase;
}

/* Messages du plugin ------------------------------------------------------- */
.mcl-comarquage-admin-notice {
  border-left: 4px solid #d63638; background: #fcf0f1; color: #3c1013;
  padding: .75em 1em; margin: 1em 0; font-size: .9em;
}
.mcl-comarquage-unavailable {
  padding: 1em 1.25em; border: 1px solid var(--mcl-sp-border); border-left: 4px solid var(--mcl-sp-info);
  background: var(--mcl-sp-info-soft); border-radius: var(--mcl-sp-radius);
}

/* Fil d'Ariane ------------------------------------------------------------ */
.mcl-comarquage .mcl-sp-breadcrumb { margin: 0 0 2rem; font-size: .8125em; color: var(--mcl-sp-muted); }
.mcl-comarquage .mcl-sp-breadcrumb ol:not(#mcl-sp) { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .25em 0; }
.mcl-comarquage .mcl-sp-breadcrumb li { margin: 0; display: inline-flex; align-items: center; }
.mcl-comarquage .mcl-sp-breadcrumb li + li::before {
  content: ""; width: 1em; height: 1em; margin: 0 .35em; background: currentColor; opacity: .7;
  -webkit-mask: var(--mcl-sp-i-chevron) center / contain no-repeat; mask: var(--mcl-sp-i-chevron) center / contain no-repeat;
  transform: rotate(-90deg);
}
.mcl-comarquage .mcl-sp-breadcrumb a { color: inherit; }
.mcl-comarquage .mcl-sp-breadcrumb [aria-current] { color: var(--mcl-sp-heading); font-weight: 600; }

/* Barre de recherche ------------------------------------------------------ */
.mcl-sp-search, .mcl-sp-commune-search { margin: 0 0 2rem; }
.mcl-sp-search label, .mcl-sp-commune-search label { display: block; font-weight: 600; margin-bottom: .5em; }
.mcl-sp-search-row { display: flex; flex-wrap: nowrap; gap: 0; }
.mcl-comarquage .mcl-sp-search-row button { flex: none; }
.mcl-comarquage .mcl-sp-search-row input {
  flex: 1 1 10em; min-width: 0; min-height: 2.5rem; margin: 0; padding: .5em 1em;
  border: 0; border-bottom: 2px solid var(--mcl-sp-primary); border-radius: var(--mcl-sp-radius) 0 0 0;
  background: var(--mcl-sp-surface-strong); color: inherit; font: inherit; box-shadow: none;
}
.mcl-comarquage .mcl-sp-search-row input:focus-visible { outline-offset: 0; }
.mcl-comarquage .mcl-sp-search-row button { border-radius: 0 var(--mcl-sp-radius) 0 0; }
.mcl-comarquage .mcl-sp-search-row button::before {
  content: ""; width: 1.1em; height: 1.1em; background: currentColor;
  -webkit-mask: var(--mcl-sp-i-search) center / contain no-repeat; mask: var(--mcl-sp-i-search) center / contain no-repeat;
}
.mcl-sp-commune-result { margin-top: 1em; }

/* Tuiles : sommaire et « Comment faire si » ------------------------------- */
.mcl-comarquage .mcl-sp-cards:not(#mcl-sp) {
  list-style: none; margin: 0 0 var(--mcl-sp-space); padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 1.5rem;
}
.mcl-comarquage .mcl-sp-card { margin: 0; }
.mcl-comarquage .mcl-sp-card-link {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: .75em; height: 100%;
  padding: 1.75em 1.25em 2.25em; text-align: center; text-decoration: none;
  background: #fff; color: var(--mcl-sp-heading);
  border: 1px solid var(--mcl-sp-border); border-bottom: 4px solid var(--mcl-sp-primary); border-radius: var(--mcl-sp-radius);
  transition: background-color .15s, box-shadow .15s;
}
.mcl-comarquage .mcl-sp-card-link:hover { background: var(--mcl-sp-primary-soft); box-shadow: 0 6px 18px rgba(0, 0, 0, .08); color: var(--mcl-sp-heading); }
.mcl-comarquage .mcl-sp-card-link::after {
  content: ""; position: absolute; right: .9em; bottom: .8em; width: 1.1em; height: 1.1em; background: var(--mcl-sp-primary);
  -webkit-mask: var(--mcl-sp-i-arrow) center / contain no-repeat; mask: var(--mcl-sp-i-arrow) center / contain no-repeat;
}
.mcl-sp-card-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 4rem; height: 4rem;
  border-radius: 50%; background: var(--mcl-sp-primary-soft); color: var(--mcl-sp-primary);
}
.mcl-sp-card-icon svg { width: 2.25rem; height: 2.25rem; }
.mcl-sp-card-title { font-weight: 700; line-height: 1.35; }

/* Fiche : titres, chapô, chapitres ---------------------------------------- */
.mcl-comarquage-fiche-title { margin: 0 0 1em; }
.mcl-comarquage .mcl-sp-fiche h2.mcl-sp-titre { font-size: 1.5em; margin: 2.5rem 0 1rem; }
.mcl-comarquage .mcl-sp-fiche h3.mcl-sp-titre { font-size: 1.25em; margin: 2rem 0 .75rem; }
.mcl-comarquage .mcl-sp-fiche h4 { font-size: 1.1em; margin: 1.5rem 0 .5rem; }
.mcl-comarquage .mcl-sp-intro { font-size: 1.125em; line-height: 1.65; margin-bottom: 2rem; }
.mcl-comarquage .mcl-sp-chapitre { margin-bottom: 1.5rem; }
.mcl-comarquage .mcl-sp-titre-flottant { margin: 1.5em 0 .5em; }

/* Étapes numérotées */
.mcl-sp-fiche, .mcl-sp-situation { counter-reset: mcl-sp-chap; }
.mcl-sp-numerote { counter-increment: mcl-sp-chap; position: relative; padding-left: 3.25rem; }
.mcl-comarquage .mcl-sp-numerote > .mcl-sp-titre::before {
  content: counter(mcl-sp-chap); position: absolute; left: 0; margin-top: -.1em;
  display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem;
  border-radius: 50%; background: var(--mcl-sp-primary); color: #fff; font-size: 1rem; font-weight: 700;
}
.mcl-sp-numerote + .mcl-sp-numerote::before {
  content: ""; position: absolute; left: calc(1.125rem - 1px); top: -1.5rem; height: calc(1.5rem + .25rem);
  border-left: 2px solid var(--mcl-sp-primary-line);
}
/* Suite du trait dans l'étape du dessus, de sa pastille jusqu'au bas du bloc */
.mcl-sp-numerote:has(+ .mcl-sp-numerote)::after {
  content: ""; position: absolute; left: calc(1.125rem - 1px); top: 2.75rem; bottom: 0;
  border-left: 2px solid var(--mcl-sp-primary-line);
}
.mcl-sp-numerote + .mcl-sp-numerote:has(+ .mcl-sp-numerote)::after { top: 3.25rem; }
.mcl-comarquage .mcl-sp-numerote > h3.mcl-sp-titre { margin-top: 0; padding-top: .2em; }
.mcl-comarquage .mcl-sp-numerote + .mcl-sp-numerote { padding-top: .5rem; }

/* Chapitre mis en avant */
.mcl-comarquage .mcl-sp-chapitre-important {
  padding: 1.25em 1.5em; border-left: 4px solid var(--mcl-sp-primary); background: var(--mcl-sp-primary-soft);
}
.mcl-comarquage .mcl-sp-chapitre-important > h3.mcl-sp-titre { margin-top: 0; }

.mcl-sp-valeur, .mcl-sp-expression { font-weight: 700; }
.mcl-sp-variable { font-style: italic; background: var(--mcl-sp-surface); padding: 0 .3em; border-radius: 3px; }
.mcl-comarquage abbr[title], .mcl-comarquage .mcl-sp-definition {
  text-decoration: underline dotted; text-underline-offset: .2em; cursor: help; font-style: normal;
}
.mcl-sp-file-info { font-size: .85em; font-weight: 400; color: var(--mcl-sp-muted); }
.mcl-comarquage .mcl-sp-checklist:not(#mcl-sp) { list-style: none; padding-left: 0; }
.mcl-comarquage .mcl-sp-checklist li { position: relative; padding-left: 2em; }
.mcl-comarquage .mcl-sp-checklist li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 1.25em; height: 1.25em;
  border: 2px solid var(--mcl-sp-primary); border-radius: 3px;
}

/* Dossier : navigation entre les fiches d'un même sujet -------------------- */
.mcl-comarquage .mcl-sp-dossier { margin: 1.5rem 0; }
/* Page /sp/ de la fiche : dossier ouvert, en encadré */
.mcl-comarquage-page .mcl-sp-dossier {
  margin: 0 0 2rem; padding: 1.25em 1.5em; background: var(--mcl-sp-surface); border-radius: var(--mcl-sp-radius);
}
.mcl-comarquage .mcl-sp-dossier-titre { margin: 0 0 .75em; font-size: 1.05em; font-weight: 700; }
.mcl-comarquage .mcl-sp-dossier-titre a { color: var(--mcl-sp-heading); text-decoration: none; }
.mcl-comarquage .mcl-sp-dossier-titre a:hover { text-decoration: underline; }
.mcl-comarquage .mcl-sp-sous-dossier { margin: .75em 0 .4em; font-size: .8em; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--mcl-sp-muted); }
.mcl-comarquage .mcl-sp-dossier ul:not(#mcl-sp) { list-style: none; padding: 0; margin: 0 0 .25em; columns: 2 16rem; column-gap: 2rem; }
.mcl-comarquage .mcl-sp-dossier li { margin: 0; padding: .3em 0 .3em .9em; border-left: 2px solid transparent; break-inside: avoid; }
.mcl-comarquage .mcl-sp-dossier a { text-decoration: none; }
.mcl-comarquage .mcl-sp-dossier li a:hover { text-decoration: underline; }
.mcl-comarquage .mcl-sp-dossier [aria-current] { font-weight: 700; color: var(--mcl-sp-primary); }
.mcl-comarquage .mcl-sp-dossier li:has([aria-current]) { border-left-color: var(--mcl-sp-primary); }

/* Onglets : situations (En France / À l'étranger) et cas ------------------ */
.mcl-comarquage .mcl-sp-tablist {
  display: flex; flex-wrap: wrap; gap: .25em; margin: 0; padding: 0; position: relative; z-index: 1;
}
.mcl-comarquage .mcl-sp-tab {
  margin: 0 0 -1px; padding: .6em 1.1em; min-height: 2.5rem;
  background: var(--mcl-sp-primary-soft); color: var(--mcl-sp-heading);
  border: 1px solid transparent; border-top: 2px solid transparent; border-radius: 0;
  font: inherit; font-weight: 600; line-height: 1.4; cursor: pointer; text-align: left;
}
.mcl-comarquage .mcl-sp-tab:hover { background: color-mix(in srgb, var(--mcl-sp-primary) 14%, #fff); }
.mcl-comarquage .mcl-sp-tab[aria-selected="true"] {
  background: #fff; color: var(--mcl-sp-primary); border-color: var(--mcl-sp-border); border-bottom-color: #fff; border-top-color: var(--mcl-sp-primary);
}
.mcl-comarquage .mcl-sp-tabs-ready > .mcl-sp-tabpanel {
  padding: 1.5em; border: 1px solid var(--mcl-sp-border); background: #fff; margin-bottom: var(--mcl-sp-space);
}
.mcl-comarquage .mcl-sp-tabs-ready > .mcl-sp-tabpanel > .mcl-sp-chapitre:first-of-type > h3.mcl-sp-titre { margin-top: 0; }
.mcl-sp-tab-inactive { display: none; }
.mcl-sp-tabs-ready > .mcl-sp-tabpanel > .mcl-sp-tab-heading {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
}
.mcl-comarquage .mcl-sp-tabs:not(.mcl-sp-tabs-ready) > .mcl-sp-tabpanel + .mcl-sp-tabpanel,
.mcl-comarquage .mcl-sp-situations:not(.mcl-sp-tabs-ready) > .mcl-sp-situation + .mcl-sp-situation {
  margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--mcl-sp-border);
}

/* Accordéons : cas, compléments, aide, « Qui peut m'aider ? » ------------- */
.mcl-comarquage details { margin: 0; border: 0; border-top: 1px solid var(--mcl-sp-border); background: none; }
.mcl-comarquage details:last-of-type { border-bottom: 1px solid var(--mcl-sp-border); }
.mcl-comarquage details + :not(details) { margin-top: 1.25em; }
.mcl-comarquage :not(details) + details { margin-top: .5em; }
.mcl-comarquage summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1em;
  min-height: 3rem; padding: .7em 1em; margin: 0; list-style: none; cursor: pointer;
  color: var(--mcl-sp-primary); font-weight: 600; line-height: 1.4;
}
.mcl-comarquage summary::-webkit-details-marker { display: none; }
.mcl-comarquage summary::marker { content: ""; }
.mcl-comarquage summary::after {
  content: ""; flex: none; width: 1.1em; height: 1.1em; background: currentColor; transition: transform .2s;
  -webkit-mask: var(--mcl-sp-i-chevron) center / contain no-repeat; mask: var(--mcl-sp-i-chevron) center / contain no-repeat;
}
.mcl-comarquage summary:hover { background: var(--mcl-sp-surface); }
.mcl-comarquage details[open] > summary { background: var(--mcl-sp-primary-soft); }
.mcl-comarquage details[open] > summary::after { transform: rotate(180deg); }
.mcl-sp-case-body, .mcl-sp-complement-body, .mcl-sp-qui-body,
.mcl-comarquage details > :not(summary) { padding: 1em 1em .5em; }
.mcl-comarquage details > :not(summary):last-child { padding-bottom: 1.25em; }
.mcl-comarquage details details > :not(summary) { padding-left: 1em; padding-right: 1em; }

/* « En savoir plus » : complément replié, plus discret */
.mcl-comarquage .mcl-sp-complement > summary { font-weight: 600; }
.mcl-comarquage .mcl-sp-complement > summary::before {
  content: ""; flex: none; width: 1.1em; height: 1.1em; margin-right: -.4em; background: currentColor; order: -1;
  -webkit-mask: var(--mcl-sp-i-info) center / contain no-repeat; mask: var(--mcl-sp-i-info) center / contain no-repeat;
}
.mcl-comarquage .mcl-sp-complement > summary { justify-content: flex-start; }
.mcl-comarquage .mcl-sp-complement > summary::after { margin-left: auto; }

/* Petites listes repliées dans une carte : horaires, aide */
.mcl-comarquage details.mcl-sp-horaires, .mcl-comarquage details.mcl-sp-aide { border: 0; margin: .5em 0 0; }
.mcl-comarquage .mcl-sp-horaires > summary, .mcl-comarquage .mcl-sp-aide > summary {
  min-height: 0; padding: .3em 0; justify-content: flex-start; gap: .4em; font-size: .9em; background: none;
}
.mcl-comarquage .mcl-sp-horaires > summary::after, .mcl-comarquage .mcl-sp-aide > summary::after { width: .9em; height: .9em; }
.mcl-comarquage .mcl-sp-horaires > summary::before {
  content: ""; width: 1em; height: 1em; background: currentColor;
  -webkit-mask: var(--mcl-sp-i-clock) center / contain no-repeat; mask: var(--mcl-sp-i-clock) center / contain no-repeat;
}
.mcl-comarquage .mcl-sp-horaires[open] > summary, .mcl-comarquage .mcl-sp-aide[open] > summary { background: none; }
.mcl-comarquage .mcl-sp-horaires > ul:not(#mcl-sp), .mcl-comarquage .mcl-sp-aide > :not(summary) { padding: .25em 0 .25em 1.4em; font-size: .9em; }

/* Mises en avant et alertes ---------------------------------------------- */
.mcl-comarquage .mcl-sp-encadre,
.mcl-comarquage .mcl-sp-avertissement {
  position: relative; margin: 1.5em 0; padding: 1.1em 1.5em 1.1em 3.5em;
  border-left: 4px solid var(--mcl-sp-primary); background: var(--mcl-sp-primary-soft); border-radius: 0 var(--mcl-sp-radius) var(--mcl-sp-radius) 0;
}
.mcl-comarquage .mcl-sp-encadre::before,
.mcl-comarquage .mcl-sp-avertissement::before {
  content: ""; position: absolute; left: 1.15em; top: 1.2em; width: 1.4em; height: 1.4em; background: var(--mcl-sp-primary);
  -webkit-mask: var(--mcl-sp-i-info) center / contain no-repeat; mask: var(--mcl-sp-i-info) center / contain no-repeat;
}
.mcl-comarquage .mcl-sp-encadre-titre { margin: 0 0 .35em; font-weight: 700; color: var(--mcl-sp-heading); }

/* À savoir, Exemple : conseil */
.mcl-comarquage .mcl-sp-asavoir::before, .mcl-comarquage .mcl-sp-exemple::before { -webkit-mask-image: var(--mcl-sp-i-bulb); mask-image: var(--mcl-sp-i-bulb); }
.mcl-comarquage .mcl-sp-exemple { border-left-color: var(--mcl-sp-border-strong); background: var(--mcl-sp-surface); }
.mcl-comarquage .mcl-sp-exemple::before { background: var(--mcl-sp-muted); }

/* Attention : alerte */
.mcl-comarquage .mcl-sp-attention { border-left-color: var(--mcl-sp-warning); background: var(--mcl-sp-warning-soft); }
.mcl-comarquage .mcl-sp-attention::before { background: var(--mcl-sp-warning); -webkit-mask-image: var(--mcl-sp-i-warning); mask-image: var(--mcl-sp-i-warning); }
.mcl-comarquage .mcl-sp-attention .mcl-sp-encadre-titre { color: var(--mcl-sp-warning); }

/* Avertissement en tête de fiche (réforme en cours...) : bandeau d'information */
.mcl-comarquage .mcl-sp-avertissement { border: 1px solid var(--mcl-sp-info); border-left-width: 4px; background: var(--mcl-sp-info-soft); border-radius: var(--mcl-sp-radius); }
.mcl-comarquage .mcl-sp-avertissement::before { background: var(--mcl-sp-info); }
.mcl-comarquage .mcl-sp-avertissement .mcl-sp-encadre-titre { color: var(--mcl-sp-info); }

/* Cartes de service : où s'adresser, services en ligne, liens commentés --- */
.mcl-comarquage .mcl-sp-ousadresser,
.mcl-comarquage .mcl-sp-service-en-ligne,
.mcl-comarquage .mcl-sp-lien-commente {
  position: relative; margin: 1.5em 0; padding: 1.25em 1.5em;
  background: #fff; border: 1px solid var(--mcl-sp-border); border-bottom: 3px solid var(--mcl-sp-primary); border-radius: var(--mcl-sp-radius);
}
.mcl-comarquage .mcl-sp-services > .mcl-sp-service-en-ligne { margin: 1em 0; }
.mcl-comarquage .mcl-sp-ousadresser { background: var(--mcl-sp-surface); border-color: transparent; border-bottom-color: var(--mcl-sp-primary); }
.mcl-comarquage .mcl-sp-ousadresser > .mcl-sp-encadre-titre::before {
  content: ""; display: inline-block; width: 1em; height: 1em; margin-right: .35em; vertical-align: -.15em; background: currentColor;
  -webkit-mask: var(--mcl-sp-i-pin) center / contain no-repeat; mask: var(--mcl-sp-i-pin) center / contain no-repeat;
}
.mcl-comarquage .mcl-sp-ousadresser-nom { font-size: 1.05em; margin-bottom: .5em; color: var(--mcl-sp-heading); }
.mcl-comarquage .mcl-sp-service-titre { font-size: 1.1em; font-weight: 700; line-height: 1.4; margin-bottom: .4em; }
.mcl-comarquage .mcl-sp-service-titre a { text-decoration: none; }
.mcl-comarquage .mcl-sp-service-titre a:hover { text-decoration: underline; }
.mcl-sp-cerfa { display: block; font-weight: 400; font-size: .85em; color: var(--mcl-sp-muted); }
.mcl-comarquage .mcl-sp-service-type .mcl-sp-cerfa { display: inline; margin-left: .4em; font-size: 1em; text-transform: none; letter-spacing: normal; color: inherit; }
.mcl-comarquage .mcl-sp-service-type .mcl-sp-cerfa::before { content: "· "; }
.mcl-comarquage .mcl-sp-source-service { margin: .75em 0 0; font-size: .85em; color: var(--mcl-sp-muted); }
.mcl-comarquage .mcl-sp-connexion { margin: .5em 0; font-size: .9em; }
.mcl-sp-franceconnect { font-size: .9em; font-style: italic; }
.mcl-comarquage .mcl-sp-annexe { margin: .75em 0 0; padding: .6em .9em; background: var(--mcl-sp-surface); border-radius: var(--mcl-sp-radius); font-size: .9em; }
.mcl-comarquage .mcl-sp-lien-web { margin: 1.5em 0 .5em; }

/* Services locaux (résultat d'« Où s'adresser » et de « Qui peut m'aider ») */
.mcl-comarquage .mcl-sp-services-locaux:not(#mcl-sp) {
  list-style: none; padding: 0; margin: 1em 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}
.mcl-comarquage .mcl-sp-service-local {
  margin: 0; padding: 1.1em 1.25em; background: #fff; border: 1px solid var(--mcl-sp-border); border-radius: var(--mcl-sp-radius); font-size: .95em;
}
.mcl-comarquage .mcl-sp-service-local p { margin-bottom: .4em; }
.mcl-comarquage .mcl-sp-service-nom { color: var(--mcl-sp-heading); line-height: 1.4; margin-bottom: .6em !important; }
.mcl-comarquage .mcl-sp-adresse,
.mcl-comarquage .mcl-sp-tel,
.mcl-comarquage .mcl-sp-mail,
.mcl-comarquage .mcl-sp-web,
.mcl-comarquage .mcl-sp-annuaire { position: relative; padding-left: 1.6em; }
.mcl-comarquage .mcl-sp-adresse::before,
.mcl-comarquage .mcl-sp-tel::before,
.mcl-comarquage .mcl-sp-mail::before,
.mcl-comarquage .mcl-sp-web::before {
  content: ""; position: absolute; left: 0; top: .25em; width: 1.05em; height: 1.05em; background: var(--mcl-sp-primary);
  -webkit-mask: var(--mcl-sp-i-pin) center / contain no-repeat; mask: var(--mcl-sp-i-pin) center / contain no-repeat;
}
.mcl-comarquage .mcl-sp-tel::before { -webkit-mask-image: var(--mcl-sp-i-phone); mask-image: var(--mcl-sp-i-phone); }
.mcl-comarquage .mcl-sp-mail::before { -webkit-mask-image: var(--mcl-sp-i-mail); mask-image: var(--mcl-sp-i-mail); }
.mcl-comarquage .mcl-sp-web::before { -webkit-mask-image: var(--mcl-sp-i-globe); mask-image: var(--mcl-sp-i-globe); }
.mcl-comarquage .mcl-sp-annuaire { padding-left: 0; font-size: .85em; margin-top: .6em; }
.mcl-sp-distance, .mcl-sp-horaires-note, .mcl-sp-dossier-nom, .mcl-sp-ref-complement { font-size: .85em; font-weight: 400; color: var(--mcl-sp-muted); }
.mcl-comarquage .mcl-sp-services-vide { color: var(--mcl-sp-muted); font-style: italic; }

/* Ressources R : caractéristiques ------------------------------------------ */
.mcl-comarquage .mcl-sp-caracteristique {
  display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr; gap: .5em 1.5em; padding: .75em 0; border-bottom: 1px solid var(--mcl-sp-border);
}
.mcl-comarquage .mcl-sp-caracteristique > * { margin: 0; }
.mcl-comarquage .mcl-sp-caracteristique-label { font-weight: 700; color: var(--mcl-sp-heading); }

/* Sections de fin : services, références, voir aussi, questions-réponses -- */
.mcl-comarquage .mcl-sp-section { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--mcl-sp-border); }
.mcl-comarquage .mcl-sp-fiche .mcl-sp-section > h2.mcl-sp-titre { font-size: 1.25em; margin: 0 0 1rem; }
.mcl-comarquage .mcl-sp-list-links:not(#mcl-sp) { list-style: none; padding: 0; }
.mcl-comarquage .mcl-sp-list-links > li { position: relative; margin: 0; padding: .55em 0 .55em 1.75em; border-bottom: 1px solid var(--mcl-sp-border); }
.mcl-comarquage .mcl-sp-list-links > li:first-child { border-top: 1px solid var(--mcl-sp-border); }
.mcl-comarquage .mcl-sp-list-links > li::before {
  content: ""; position: absolute; left: 0; top: .85em; width: 1em; height: 1em; background: var(--mcl-sp-primary);
  -webkit-mask: var(--mcl-sp-i-arrow) center / contain no-repeat; mask: var(--mcl-sp-i-arrow) center / contain no-repeat;
}
.mcl-comarquage .mcl-sp-list-links a { text-decoration: none; font-weight: 600; }
.mcl-comarquage .mcl-sp-list-links a:hover { text-decoration: underline; }
.mcl-comarquage .mcl-sp-references .mcl-sp-list-links a { font-weight: 400; }
.mcl-comarquage .mcl-sp-ref-complement, .mcl-comarquage .mcl-sp-list-links .mcl-sp-dossier-nom { display: block; margin-top: .15em; }
.mcl-comarquage .mcl-sp-sous-dossier-section { margin-bottom: 2rem; }
.mcl-comarquage .mcl-sp-fiche .mcl-sp-sous-dossier-section > h2.mcl-sp-titre { font-size: 1.25em; margin: 2rem 0 1rem; }

/* Fiche précédente / suivante */
.mcl-comarquage .mcl-sp-prev-next { display: flex; justify-content: space-between; gap: 1em; flex-wrap: wrap; margin-top: 2.5rem; }
.mcl-comarquage .mcl-sp-prev-next a {
  display: inline-flex; align-items: center; gap: .5em; padding: .5em 1em; border: 1px solid var(--mcl-sp-primary);
  border-radius: var(--mcl-sp-radius); text-decoration: none; font-weight: 600;
}
.mcl-comarquage .mcl-sp-prev-next a:hover { background: var(--mcl-sp-primary-soft); }
.mcl-comarquage .mcl-sp-next { margin-left: auto; }

/* Source */
.mcl-comarquage .mcl-sp-source {
  margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--mcl-sp-border); font-size: .8125em; color: var(--mcl-sp-muted);
}
.mcl-comarquage .mcl-sp-source a { color: inherit; }
.mcl-comarquage .mcl-sp-credits { font-size: .8125em; color: var(--mcl-sp-muted); }

/* Recherche guidée --------------------------------------------------------- */
.mcl-comarquage .mcl-sp-arbre:not(#mcl-sp) { list-style: none; padding: 0; margin: 0 0 var(--mcl-sp-space); border-top: 1px solid var(--mcl-sp-border); }
.mcl-comarquage .mcl-sp-arbre > li { margin: 0; border-bottom: 1px solid var(--mcl-sp-border); }
.mcl-comarquage .mcl-sp-arbre > li > details { border: 0; margin: 0; }
.mcl-comarquage .mcl-sp-arbre ul:not(#mcl-sp) { list-style: none; margin: 0; padding: 0 0 .5em 1.25em; }
.mcl-comarquage .mcl-sp-arbre ul > li { margin: 0; }
.mcl-comarquage .mcl-sp-arbre a {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1em;
  padding: .75em 1em; font-weight: 600; text-decoration: none;
}
.mcl-comarquage .mcl-sp-arbre a::after {
  content: ""; flex: none; width: 1.1em; height: 1.1em; background: currentColor;
  -webkit-mask: var(--mcl-sp-i-arrow) center / contain no-repeat; mask: var(--mcl-sp-i-arrow) center / contain no-repeat;
}
.mcl-comarquage .mcl-sp-arbre a:hover { background: var(--mcl-sp-primary-soft); }
.mcl-comarquage .mcl-sp-arbre ul a { font-weight: 400; padding-block: .5em; }

/* Questionnaire (fiche dont le contenu dépend de la situation) -------------- */
.mcl-comarquage .mcl-sp-questionnaire {
  margin: 0 0 2rem; padding: 1.5em; background: var(--mcl-sp-surface); border-radius: var(--mcl-sp-radius);
  border-top: 4px solid var(--mcl-sp-primary);
}
.mcl-comarquage .mcl-sp-question { border: 0; margin: 0 0 1.25em; padding: 0; min-width: 0; }
.mcl-comarquage .mcl-sp-question:last-child { margin-bottom: 0; }
.mcl-comarquage .mcl-sp-question legend { float: left; width: 100%; margin: 0 0 .75em; padding: 0; font-size: 1.1em; font-weight: 700; color: var(--mcl-sp-heading); }
.mcl-comarquage .mcl-sp-question legend + * { clear: both; }
.mcl-comarquage .mcl-sp-choix {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: .25em .75em;
  margin: 0 0 .5em; padding: .65em 1em; background: #fff; border: 1px solid var(--mcl-sp-border); border-radius: var(--mcl-sp-radius);
}
.mcl-comarquage .mcl-sp-choix:hover { border-color: var(--mcl-sp-primary); }
.mcl-comarquage .mcl-sp-choix:has(input:checked) { border-color: var(--mcl-sp-primary); box-shadow: inset 0 0 0 1px var(--mcl-sp-primary); background: var(--mcl-sp-primary-soft); }
.mcl-comarquage .mcl-sp-choix input { width: 1.25em; height: 1.25em; margin: 0; flex: none; accent-color: var(--mcl-sp-primary); cursor: pointer; }
.mcl-comarquage .mcl-sp-choix label { flex: 1 1 0; min-width: 0; margin: 0; cursor: pointer; font-weight: 600; }
.mcl-comarquage .mcl-sp-choix label::after { content: ""; position: absolute; inset: 0; }
.mcl-comarquage .mcl-sp-choix-retenu { flex-basis: 100%; margin: 0 0 0 2em; font-style: italic; font-size: .9em; }

/* Tableaux ------------------------------------------------------------------ */
.mcl-comarquage .mcl-sp-table-wrapper { overflow-x: auto; margin: 1.5em 0; }
.mcl-comarquage .mcl-sp-table { border-collapse: collapse; width: 100%; font-size: .95em; background: #fff; }
.mcl-comarquage .mcl-sp-table caption { caption-side: top; text-align: left; font-weight: 700; padding: 0 0 .75em; color: var(--mcl-sp-heading); }
.mcl-comarquage .mcl-sp-table th, .mcl-comarquage .mcl-sp-table td { border: 0; border-bottom: 1px solid var(--mcl-sp-border); padding: .75em 1em; vertical-align: top; text-align: left; }
.mcl-comarquage .mcl-sp-table thead th { background: var(--mcl-sp-primary-soft); border-bottom: 2px solid var(--mcl-sp-primary); color: var(--mcl-sp-heading); font-weight: 700; }
.mcl-comarquage .mcl-sp-table tbody tr:nth-child(even) { background: var(--mcl-sp-surface); }
.mcl-comarquage .mcl-sp-table tbody th { font-weight: 700; }
.mcl-comarquage .mcl-sp-table p { margin: 0 0 .35em; }

/* Images, vidéos, contenus illustrés ----------------------------------------- */
.mcl-comarquage .mcl-sp-figure { margin: 1.5em 0; }
.mcl-comarquage .mcl-sp-figure img { display: block; border-radius: var(--mcl-sp-radius); }
.mcl-sp-figure figcaption, .mcl-sp-video figcaption { font-size: .85em; color: var(--mcl-sp-muted); margin-top: .5em; }
.mcl-comarquage .mcl-sp-video { margin: 1.5em 0; }
.mcl-sp-video-frame { position: relative; aspect-ratio: 16 / 9; max-width: 50rem; }
.mcl-sp-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--mcl-sp-radius); }
.mcl-sp-illustre { display: flex; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap; margin: 1.5em 0; }
.mcl-sp-illustre-gauche { flex-direction: row; }
.mcl-sp-illustre-droite { flex-direction: row-reverse; }
.mcl-comarquage .mcl-sp-illustre > .mcl-sp-figure { flex: 0 1 16rem; margin: 0; }
.mcl-sp-illustre-contenu { flex: 1 1 20rem; }

/* Actualités : cartes ------------------------------------------------------- */
.mcl-comarquage .mcl-sp-news-list:not(#mcl-sp) { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 1.5rem; }
.mcl-sp-actualites-horizontal .mcl-sp-news-list:not(#mcl-sp) { grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.mcl-comarquage .mcl-sp-news {
  position: relative; display: flex; flex-direction: column; margin: 0; overflow: hidden;
  background: #fff; border: 1px solid var(--mcl-sp-border); border-bottom: 3px solid var(--mcl-sp-primary); border-radius: var(--mcl-sp-radius);
  transition: box-shadow .15s, background-color .15s;
}
.mcl-comarquage .mcl-sp-news:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .08); background: var(--mcl-sp-primary-soft); }
.mcl-sp-actualites-vertical .mcl-sp-news { flex-direction: row; }
.mcl-sp-news-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.mcl-sp-actualites-vertical .mcl-sp-news-image { width: 14rem; flex: none; aspect-ratio: 4 / 3; }
.mcl-comarquage .mcl-sp-news-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 1.25em 1.5em 1.5em; }
.mcl-comarquage .mcl-sp-news-title { font-size: 1.125em; margin: 0 0 .5em; line-height: 1.35; }
.mcl-comarquage .mcl-sp-news-title a { color: var(--mcl-sp-heading); text-decoration: none; }
.mcl-comarquage .mcl-sp-news-title a::after { content: ""; position: absolute; inset: 0; }
.mcl-comarquage .mcl-sp-news:hover .mcl-sp-news-title a { text-decoration: underline; color: var(--mcl-sp-primary); }
.mcl-comarquage .mcl-sp-news:focus-within { outline: 2px solid var(--mcl-sp-primary); outline-offset: 2px; }
.mcl-comarquage .mcl-sp-news-title a:focus-visible { outline: none; }
.mcl-comarquage .mcl-sp-news-date { order: 5; margin: auto 0 0; padding-top: .75em; font-size: .8125em; color: var(--mcl-sp-muted); }
.mcl-comarquage .mcl-sp-news-desc { margin: 0; font-size: .95em; }
.mcl-comarquage .mcl-sp-news-all { text-align: right; }
.mcl-comarquage .mcl-sp-news-all a, .mcl-comarquage .mcl-sp-news-all a:hover {
  display: inline-flex; align-items: center; gap: .5em; padding: .5em 1em; border: 1px solid var(--mcl-sp-primary);
  border-radius: var(--mcl-sp-radius); font-weight: 600; text-decoration: none;
}
.mcl-comarquage .mcl-sp-news-all a:hover { background: var(--mcl-sp-primary-soft); }
.mcl-comarquage .mcl-sp-news-all a::after {
  content: ""; width: 1em; height: 1em; background: currentColor;
  -webkit-mask: var(--mcl-sp-i-arrow) center / contain no-repeat; mask: var(--mcl-sp-i-arrow) center / contain no-repeat;
}

/* Actualité ouverte (fiche A) */
.mcl-comarquage .mcl-sp-fiche > .mcl-sp-news-surtitle:first-child { margin-bottom: 1em; }

/* Résultats de recherche ---------------------------------------------------- */
.mcl-comarquage .mcl-sp-resultats-nombre { font-weight: 700; margin-bottom: 1em; color: var(--mcl-sp-heading); }
.mcl-comarquage .mcl-sp-resultats:not(#mcl-sp) { list-style: none; padding: 0; border-top: 1px solid var(--mcl-sp-border); }
.mcl-comarquage .mcl-sp-resultats > li { margin: 0; padding: 1.25em 0; border-bottom: 1px solid var(--mcl-sp-border); }
.mcl-comarquage .mcl-sp-resultat-type { margin-bottom: .5em; }
.mcl-comarquage .mcl-sp-resultat-titre { font-weight: 700; font-size: 1.125em; line-height: 1.4; margin-bottom: .35em; }
.mcl-comarquage .mcl-sp-resultat-titre a { text-decoration: none; }
.mcl-comarquage .mcl-sp-resultat-titre a:hover { text-decoration: underline; }
.mcl-comarquage .mcl-sp-resultat-desc { margin: 0; color: var(--mcl-sp-muted); font-size: .95em; }

/* Petits écrans --------------------------------------------------------------- */
@media (max-width: 48em) {
  .mcl-comarquage { --mcl-sp-space: 1rem; }
  .mcl-comarquage .mcl-sp-cards:not(#mcl-sp) { grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .75rem; }
  .mcl-comarquage .mcl-sp-card-link { padding: 1.25em .75em 2em; }
  .mcl-sp-card-icon { width: 3.25rem; height: 3.25rem; }
  .mcl-sp-card-icon svg { width: 1.85rem; height: 1.85rem; }
  .mcl-comarquage .mcl-sp-tabs-ready > .mcl-sp-tabpanel { padding: 1em; }
  .mcl-comarquage .mcl-sp-tablist { flex-direction: column; gap: 0; }
  .mcl-comarquage .mcl-sp-tab { margin: 0; border-top-width: 1px; border-left: 3px solid transparent; }
  .mcl-comarquage .mcl-sp-tab[aria-selected="true"] { border-color: var(--mcl-sp-border); border-left-color: var(--mcl-sp-primary); border-top-color: var(--mcl-sp-border); }
  .mcl-comarquage .mcl-sp-tablist + .mcl-sp-tabpanel, .mcl-comarquage .mcl-sp-tabs-ready > .mcl-sp-tabpanel { margin-top: .5em; }
  /* Étapes : le numéro reste à côté du titre, le texte reprend toute la largeur */
  .mcl-sp-numerote { padding-left: 0; }
  .mcl-sp-numerote + .mcl-sp-numerote::before, .mcl-sp-numerote::after { display: none; }
  .mcl-comarquage .mcl-sp-numerote > h3.mcl-sp-titre { position: relative; padding-left: 2.5rem; min-height: 2rem; }
  .mcl-comarquage .mcl-sp-numerote > .mcl-sp-titre::before { width: 1.85rem; height: 1.85rem; font-size: .9rem; margin-top: 0; top: 0; }
  .mcl-comarquage .mcl-sp-encadre, .mcl-comarquage .mcl-sp-avertissement { padding: 1em 1em 1em 3em; }
  .mcl-comarquage .mcl-sp-encadre::before, .mcl-comarquage .mcl-sp-avertissement::before { left: .9em; }
  .mcl-comarquage .mcl-sp-ousadresser, .mcl-comarquage .mcl-sp-service-en-ligne, .mcl-comarquage .mcl-sp-lien-commente,
  .mcl-comarquage .mcl-sp-questionnaire, .mcl-comarquage-page .mcl-sp-dossier { padding: 1em; }
  .mcl-sp-actualites-vertical .mcl-sp-news { flex-direction: column; }
  .mcl-sp-actualites-vertical .mcl-sp-news-image { width: 100%; aspect-ratio: 16 / 9; }
  .mcl-comarquage .mcl-sp-caracteristique { grid-template-columns: 1fr; gap: .25em; }
  .mcl-comarquage .mcl-sp-search-row button { padding-inline: .9em; }
}

@media (prefers-reduced-motion: reduce) {
  .mcl-comarquage *, .mcl-comarquage *::before, .mcl-comarquage *::after { transition: none !important; }
}

/* Mode contraste élevé de Windows : les fonds disparaissent, les bordures restent */
@media (forced-colors: active) {
  .mcl-comarquage .mcl-sp-tab[aria-selected="true"] { border: 2px solid CanvasText; }
  .mcl-comarquage .mcl-sp-card-icon, .mcl-comarquage .mcl-sp-numerote > .mcl-sp-titre::before { border: 1px solid CanvasText; }
}

/* Impression : tout déplier, rien d'interactif --------------------------------- */
@media print {
  .mcl-sp-tablist, .mcl-sp-search, .mcl-sp-commune-search, .mcl-sp-questionnaire { display: none !important; }
  .mcl-sp-tab-inactive { display: block !important; }
  .mcl-sp-tabs-ready > .mcl-sp-tabpanel > .mcl-sp-tab-heading { position: static !important; width: auto; height: auto; margin: 0; clip: auto; }
  .mcl-comarquage details > :not(summary) { display: block !important; }
  .mcl-comarquage summary::after { display: none; }
  .mcl-comarquage .mcl-sp-tabs-ready > .mcl-sp-tabpanel { border: 0; padding: 0; }
  .mcl-comarquage .mcl-sp-card-link, .mcl-comarquage .mcl-sp-news { box-shadow: none; }
}
