* {
  box-sizing: border-box;
}

html {
  background-color: #dcd6c4;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 14px 10px 28px;
  background-color: #dcd6c4;
  background-image: repeating-linear-gradient(
    135deg,
    #dcd6c4 0,
    #dcd6c4 8px,
    #d3ccb8 8px,
    #d3ccb8 16px
  );
  color: #111820;
  font-family: Verdana, Tahoma, Geneva, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

a:link {
  color: #003366;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:visited {
  color: #1a2d52;
}

a:hover {
  color: #7a1c00;
  background-color: #fff3b0;
}

a:focus-visible {
  outline: 3px solid #002244;
  outline-offset: 2px;
  background-color: #ffd100;
  color: #002244;
}

.evitement {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.evitement:focus {
  width: auto;
  height: auto;
  margin: 0;
  padding: 8px 12px;
  overflow: visible;
  clip: auto;
  clip-path: none;
  background: #ffd100;
  color: #002244;
  font-weight: bold;
  border: 2px solid #003366;
  z-index: 20;
}

#page {
  max-width: 1020px;
  margin: 0 auto;
  background: #ffffff;
  border: 2px solid #003366;
  box-shadow: 4px 4px 0 #8f8875;
}

#guichet-top {
  background: #002244;
  color: #ffd100;
  padding: 5px 16px;
  font-size: 12px;
  font-weight: bold;
  border-bottom: 1px solid #00152b;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
}

#guichet-top span {
  color: #ffffff;
  font-weight: normal;
}

#banner {
  padding: 16px 20px;
  background: linear-gradient(180deg, #ffe34d 0%, #ffd100 68%, #e6b800 100%);
  border-bottom: 4px double #003366;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.banner-identite {
  display: flex;
  align-items: center;
  gap: 14px;
}

.banner-vignette {
  flex: none;
  width: 60px;
  height: 60px;
  background: #ffffff url("/favicon-96x96.png") center / 48px 48px no-repeat;
  border: 2px outset #fff3b0;
  box-shadow: 1px 1px 0 #003366;
}

.banner-texte p {
  margin: 0;
}

.banner-titre {
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  font-size: 27px;
  font-weight: bold;
  line-height: 1.15;
  color: #002244;
  text-shadow: 1px 1px 0 #fff7c2;
}

.banner-titre a,
.banner-titre a:visited {
  color: #002244;
  text-decoration: none;
}

.banner-titre a:hover {
  text-decoration: underline;
  background: transparent;
}

.banner-sous-titre {
  font-size: 13px;
  color: #002244;
  margin-top: 4px;
  font-weight: bold;
}

.cachet-postal {
  background: #fffbe0;
  border: 2px dashed #003366;
  padding: 8px 12px;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  line-height: 1.35;
  color: #002244;
  font-weight: bold;
  text-align: center;
}

.cachet-postal p {
  margin: 0;
}

#topnav {
  background: #003366;
  border-bottom: 2px solid #001d3d;
  padding: 4px 6px;
}

#topnav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

#topnav li {
  margin: 0;
  padding: 0;
}

#topnav a,
#topnav a:visited {
  display: block;
  padding: 7px 13px;
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  font-size: 13px;
  font-weight: bold;
  color: #002244;
  background: #e6edf5;
  border: 2px outset #ffffff;
  text-decoration: none;
}

#topnav a:hover {
  background: #fff3b0;
  color: #002244;
  border-color: #ffd100;
}

#topnav a[aria-current="page"] {
  background: #ffd100;
  color: #002244;
  border: 2px inset #b38600;
}

#fil-ariane {
  background: #f4f1e6;
  border-bottom: 1px solid #c2baa6;
  padding: 6px 20px;
  font-size: 12px;
  color: #2b3540;
}

#fil-ariane ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#fil-ariane li + li::before {
  content: ">";
  margin-right: 6px;
  color: #003366;
  font-weight: bold;
}

#layout {
  display: flex;
  align-items: stretch;
}

#side {
  flex: none;
  width: 245px;
  padding: 16px 14px;
  background: #f0f4f8;
  border-right: 2px solid #003366;
}

.box {
  background: #ffffff;
  border: 2px solid #003366;
  padding: 12px;
  margin: 0 0 16px;
}

.box:last-child {
  margin-bottom: 0;
}

.box > :first-child {
  margin-top: 0;
}

.box > :last-child {
  margin-bottom: 0;
}

.box-titre {
  margin: 0 0 8px;
  padding: 5px 8px;
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  font-size: 13px;
  font-weight: bold;
  color: #ffd100;
  background: #003366;
  border-bottom: 2px solid #ffd100;
}

.box-jaune {
  background: #fffdf0;
  border-color: #b38600;
}

.box-jaune .box-titre {
  background: #ffd100;
  color: #002244;
  border-bottom: 2px solid #003366;
}

#side ul {
  margin: 0;
  padding: 0 0 0 18px;
  list-style: square;
  font-size: 13px;
  line-height: 1.45;
}

#side li {
  margin: 0 0 6px;
}

#side li:last-child {
  margin-bottom: 0;
}

#side li::marker {
  color: #003366;
}

#side dl {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

#side dt {
  font-weight: bold;
  color: #002244;
  margin: 0 0 2px;
}

#side dd {
  margin: 0 0 8px;
}

#side dd:last-child {
  margin-bottom: 0;
}

#side p {
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 8px;
}

#side p:last-child {
  margin-bottom: 0;
}

#contenu {
  flex: 1;
  min-width: 0;
}

#content {
  padding: 20px 24px 26px;
}

#content > :first-child {
  margin-top: 0;
}

#content > :last-child {
  margin-bottom: 0;
}

#content h1 {
  margin: 0 0 18px;
  padding: 0 0 10px;
  text-align: center;
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  font-size: 26px;
  line-height: 1.25;
  color: #002244;
  border-bottom: 3px double #003366;
}

#content h2 {
  margin: 26px 0 16px;
  padding: 6px 12px;
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.3;
  color: #002244;
  background: linear-gradient(180deg, #fff5bf 0%, #ffe666 100%);
  border: 1px solid #b38600;
  border-left: 8px solid #003366;
}

#content h3 {
  margin: 20px 0 8px;
  padding: 0 0 4px;
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.3;
  color: #003366;
  border-bottom: 1px dotted #003366;
}

#content p {
  margin: 0 0 16px;
}

#content ul,
#content ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

#content li {
  margin: 0 0 6px;
}

#content li:last-child {
  margin-bottom: 0;
}

#content ul {
  list-style: square;
}

#content li::marker {
  color: #003366;
  font-weight: bold;
}

#content .encadre {
  background: #f4f7fb;
  border: 1px solid #003366;
  border-left: 7px solid #003366;
  padding: 14px 16px;
  margin: 16px 0;
}

#content .encadre > :first-child {
  margin-top: 0;
}

#content .encadre > :last-child {
  margin-bottom: 0;
}

#content .encadre-titre {
  margin: 0 0 6px;
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: #002244;
}

#content .alerte-guichet {
  background: #fff9db;
  border: 1px solid #b38600;
  border-left: 7px solid #ffd100;
  padding: 14px 16px;
  margin: 16px 0;
}

#content .alerte-guichet > :first-child {
  margin-top: 0;
}

#content .alerte-guichet > :last-child {
  margin-bottom: 0;
}

#content .grille-dossiers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
}

#content .carte-dossier {
  background: #fffef7;
  border: 1px solid #003366;
  border-left: 6px solid #ffd100;
  padding: 14px 16px;
}

#content .carte-dossier > :first-child {
  margin-top: 0;
}

#content .carte-dossier > :last-child {
  margin-bottom: 0;
}

#content .carte-dossier .carte-titre {
  margin: 0 0 6px;
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  font-size: 15px;
  font-weight: bold;
}

#content .carte-dossier p:last-child {
  margin: 0;
  font-size: 13.5px;
}

.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
}

table.grille-poste {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  background: #ffffff;
  border: 2px solid #003366;
}

table.grille-poste caption {
  caption-side: bottom;
  text-align: left;
  padding: 6px 2px 0;
  font-size: 12px;
  color: #334150;
}

table.grille-poste th,
table.grille-poste td {
  border: 1px solid #73889e;
  padding: 7px 9px;
  text-align: left;
  vertical-align: top;
}

table.grille-poste thead th {
  background: #003366;
  color: #ffffff;
  font-weight: bold;
}

table.grille-poste tbody tr:nth-child(even) {
  background: #fffdf2;
}

table.grille-poste tbody th {
  background: #eef3f8;
  color: #002244;
  font-weight: bold;
}

table.grille-poste td.prix,
table.grille-poste th.prix {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

table.grille-poste td.reperes {
  background: #fff6bf;
  color: #002244;
  font-weight: bold;
}

figure.illustration {
  margin: 16px auto;
  padding: 12px;
  background: #faf8f0;
  border: 1px solid #b8b09c;
  text-align: center;
}

figure.illustration > :first-child {
  margin-top: 0;
}

figure.illustration > :last-child {
  margin-bottom: 0;
}

figure.illustration img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border: 1px solid #003366;
}

figure.illustration figcaption {
  margin-top: 8px;
  font-size: 12.5px;
  color: #2b3540;
  font-weight: bold;
}

#pied {
  background: #002244;
  color: #ffffff;
  border-top: 4px solid #ffd100;
  padding: 14px 20px;
  font-size: 12.5px;
}

#pied p {
  margin: 0 0 6px;
}

#pied p:last-child {
  margin-bottom: 0;
}

#pied ul {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

#pied a,
#pied a:visited {
  color: #ffd100;
  text-decoration: underline;
}

#pied a:hover {
  color: #002244;
  background: #ffd100;
}

@media (max-width: 820px) {
  body {
    padding: 6px 4px 16px;
  }

  #layout {
    flex-direction: column;
  }

  #side {
    width: 100%;
    border-right: 0;
    border-top: 2px solid #003366;
    order: 2;
  }

  #contenu {
    order: 1;
  }

  #content {
    padding: 16px 14px 20px;
  }

  #content .grille-dossiers {
    grid-template-columns: 1fr;
  }
}
