:root {
  color-scheme: light;
  font: 100%/1.55 system-ui, sans-serif;
  color: #20213a;
  background: #f7f7fc;
  --accent: #5127a2;
  --muted: #55566d;
  --border: #ddddec;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.top { background: #fff; border-bottom: 1px solid var(--border); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; font-weight: 700; text-decoration: none; }
.brand img { object-fit: contain; }
.lien-evitement { position: absolute; top: .5rem; left: .5rem; padding: .65rem; background: #fff; transform: translateY(-200%); }
.lien-evitement:focus { transform: none; }
a { color: var(--accent); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #3164b4; outline-offset: 3px; }
.intro { padding-block: clamp(1.5rem, 5vw, 3.25rem) 1.25rem; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.1; letter-spacing: -.04em; }
h2 { font-size: 1.3rem; line-height: 1.25; }
h3 { font-size: 1.05rem; }
p { color: var(--muted); }
.intro p, .panel p { margin-top: .6rem; }
.layout, .entreprises { display: grid; gap: 1rem; }
.layout { align-items: start; }
.layout > * { min-width: 0; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 1rem; padding: clamp(1rem, 3vw, 1.6rem); }
form { display: grid; gap: .65rem; margin-top: 1rem; }
label { font-weight: 650; }
input, button { font: inherit; }
input { width: 100%; min-width: 0; min-height: 46px; padding: .55rem .75rem; border: 1px solid #81829a; border-radius: .45rem; }
button { min-height: 44px; border: 1px solid transparent; border-radius: .5rem; padding: .55rem .85rem; font-weight: 650; cursor: pointer; }
button:disabled { opacity: .72; cursor: wait; }
.primary { color: #fff; background: var(--accent); }
.primary:hover:not(:disabled) { background: #402080; }
.secondary { color: var(--accent); background: #f2edff; }
.secondary:hover:not(:disabled) { background: #e8dfff; }
#validation button { margin-top: .75rem; }
.message:not(:empty) { margin: .75rem 0; padding: .75rem 1rem; background: #eeecfa; border-radius: .5rem; }
.message[data-ton="erreur"]:not(:empty) { color: #862235; background: #fff0f2; }
.aide h2 { margin-bottom: .65rem; }
details + details { border-top: 1px solid var(--border); }
summary { padding: .65rem 0; min-height: 44px; cursor: pointer; font-weight: 600; }
.aide details p { margin: 0 0 .75rem; }
.support { display: inline-flex; align-items: center; min-height: 44px; margin-top: .5rem; font-weight: 650; }
.etat { display: inline-block; padding: .2rem .6rem; margin-bottom: .6rem; border-radius: .45rem; background: #eee9fb; color: #472884; font-weight: 650; }
.services { padding: 0; margin: .85rem 0 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .7rem; }
.services a { display: block; min-height: 44px; padding: .75rem; background: #f7f5fc; border: 1px solid var(--border); border-radius: .6rem; }
.services a:hover { background: #eee9fb; }
.services span { display: block; margin-top: .2rem; font-size: .875rem; color: var(--muted); }
.footer { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin-top: 2rem; border-top: 1px solid var(--border); }
.footer a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 48rem) {
  .layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  form .primary { justify-self: start; }
}
.outil-indisponible {
  padding: .75rem;
  background: #faf9fd;
  border: 1px solid var(--border);
  border-radius: .6rem;
}
.panneau-demo { margin-top: .6rem; }
.panneau-demo summary { color: var(--accent); }
.panneau-demo h4 { margin: .65rem 0 .25rem; }
.panneau-demo button { max-width: 100%; overflow-wrap: anywhere; }
.panneau-demo > button { margin-top: .65rem; }
.services:has(.panneau-demo[open]) { grid-template-columns: minmax(0, 1fr); }
.form-demo label { display: grid; gap: .25rem; min-width: 0; }
.form-demo textarea {
  width: 100%;
  min-height: 5rem;
  padding: .55rem .75rem;
  border: 1px solid #81829a;
  border-radius: .45rem;
  font: inherit;
  resize: vertical;
}
.resultats-demo { padding-left: 1.15rem; margin-block: .65rem; overflow-wrap: anywhere; }
.resultats-demo li + li { margin-top: .55rem; }

.section-rappels, .lignes-reception { margin-top: 1.25rem; }
.services-kebek { margin-block: 1.25rem; }
.grille-services-kebek { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .75rem; list-style: none; padding: 0; }
.carte-service-kebek { display: grid; align-content: start; gap: .35rem; padding: .9rem; border: 1px solid var(--border); border-radius: .65rem; }
.carte-service-kebek h4, .carte-service-kebek p { margin: 0; }
.carte-service-kebek button, .ouvrir-service-kebek { margin-top: .25rem; min-height: 44px; }
.ouvrir-service-kebek { display: flex; align-items: center; font-weight: 650; }
.lignes-reception .ligne-rappel { overflow-wrap: anywhere; }
.renvoi-reception { margin-top: .7rem; }
.renvoi-reception summary { cursor: pointer; font-weight: 650; }
.formulaire-renvoi { display: grid; gap: .45rem; margin-block: .65rem; }
.formulaire-renvoi label, .formulaire-renvoi input { display: block; }
.formulaire-renvoi input { width: 100%; min-height: 44px; margin-top: .25rem; }
.filtre-rappels { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.filtre-rappels select { min-height: 44px; max-width: 100%; padding: .35rem .6rem; border: 1px solid var(--border); border-radius: .45rem; background: white; color: inherit; font: inherit; }
.annonce-rappels:empty { margin: 0; }
.liste-rappels { display: grid; gap: .6rem; margin: .75rem 0 0; padding: 0; list-style: none; }
.ligne-rappel { display: grid; gap: .6rem; padding: .75rem; border: 1px solid var(--border); border-radius: .6rem; }
.ligne-rappel[hidden] { display: none; }
.ligne-rappel p { margin: .2rem 0; }
.statut-rappel { font-weight: 650; }
.ligne-rappel button { width: 100%; margin-top: .25rem; }
@media (min-width: 32rem) {
  .ligne-rappel { grid-template-columns: 1fr auto; align-items: center; }
}

.accueil-courriel {
  margin-top: 1rem;
  padding: clamp(.8rem, 3vw, 1.25rem);
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: #f8f6ff;
}
.accueil-courriel summary { min-height: 44px; line-height: 1.5; padding-block: .65rem; font-weight: 750; color: var(--accent); cursor: pointer; }
.etapes-courriel { padding-inline-start: 1.5rem; margin-block: 1rem; }
.etapes-courriel li { padding: .65rem 0 .85rem .35rem; }
.etapes-courriel li + li { border-top: 1px solid var(--border); }
.etapes-courriel li::marker { color: var(--accent); font-weight: 750; }
.etapes-courriel h4 { margin: 0; }
.etapes-courriel dl { background: #fff; padding: .75rem; border-radius: .65rem; overflow-wrap: anywhere; }
.etapes-courriel dt { font-weight: 700; }
.etapes-courriel dd { margin: 0 0 .55rem; color: var(--muted); }
.etapes-courriel dd:last-child { margin-bottom: 0; }
.accueil-courriel > a { display: inline-flex; align-items: center; min-height: 44px; }
.carte-service-kebek > button.secondary { margin-top: .6rem; }
.accueil-courriel > button { margin-top: .75rem; }
.reglages-dns { background: #fff; padding: .75rem; border-radius: .65rem; overflow-wrap: anywhere; }
.reglages-dns dt { font-weight: 700; }
.reglages-dns dd { margin: 0 0 .55rem; }
.reglages-dns dd:last-child { margin-bottom: 0; }
