/* Auxi-Dev : feuille de style unique. Aucune police téléchargée : police du système. */

:root {
  color-scheme: light dark;
  --fond: #ffffff;
  --surface: #f3f6fb;
  --bordure: #c9d3e1;
  --texte: #14213d;
  --texte-doux: #3b4658;
  --principal: #0a4a94;
  --principal-fonce: #083a73;
  --sur-principal: #ffffff;
  --lien: #0a4a94;
  --focus: #b3400a;
  --bandeau: #0b2447;
  --sur-bandeau: #ffffff;
  --sur-bandeau-doux: #d4def0;
  --rayon: 1rem;
  --accent: #b3400a;
  --ombre: 0 1px 2px rgba(11, 36, 71, 0.06), 0 8px 24px rgba(11, 36, 71, 0.08);
  --largeur: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #ffb870;
    --ombre: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.45);
    --fond: #0e1624;
    --surface: #16223a;
    --bordure: #33445f;
    --texte: #eaf0f8;
    --texte-doux: #bcc8da;
    --principal: #8fb8f5;
    --principal-fonce: #b5d0fa;
    --sur-principal: #0e1624;
    --lien: #9cc2f7;
    --focus: #ffb870;
    --bandeau: #0a1220;
    --sur-bandeau: #eaf0f8;
    --sur-bandeau-doux: #bcc8da;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--lien);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.12em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 0.2rem;
}

.lien-evitement {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--principal);
  color: var(--sur-principal);
  font-weight: 700;
  border-radius: 0 0 var(--rayon) var(--rayon);
}

.lien-evitement:focus {
  top: 0;
}

.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 1rem;
}

/* En-tête */

.entete {
  border-bottom: 1px solid var(--bordure);
  background: var(--fond);
}

.entete .conteneur {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--texte);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.marque {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.signature {
  margin: 0;
  padding-left: 2.85rem;
  color: var(--texte-doux);
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}

.logo svg {
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
}

.logo .logo-dev {
  color: var(--principal);
}

.navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* zone cliquable élargie : au moins 24 pixels de haut et de large, en vue des WCAG 2.2 */
.navigation a {
  display: inline-block;
  padding: 0.45rem 0.4rem;
  color: var(--texte);
  text-decoration: none;
  font-weight: 600;
}

/* même indice visuel au survol, au focus clavier et sur la page courante : couleur et soulignement */
.navigation a:hover,
.navigation a:focus-visible,
.navigation a[aria-current="page"] {
  color: var(--principal);
  text-decoration: underline;
}

/* Sections */

main {
  display: block;
}

.section {
  padding: 4.5rem 0;
}

.section-alternee {
  background: var(--surface);
}

h1,
h2,
h3,
h4 {
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);
  margin: 0 0 1.25rem;
  max-width: 22em;
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  margin: 0 0 1.25rem;
}

h3 {
  font-size: 1.35rem;
  margin: 2.25rem 0 0.9rem;
  color: var(--principal);
}

/* premier sous-titre d'une section : pas d'espace en trop sous le titre de niveau 2 */
h2 + h3 {
  margin-top: 0;
}

h4 {
  font-size: 1.2rem;
  margin: 0 0 0.6rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
  max-width: 44em;
}

.surtitre {
  margin: 0 0 0.75rem;
  color: var(--principal);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}

.accroche {
  padding: 4rem 0 3.5rem;
  background: var(--bandeau);
  color: var(--sur-bandeau);
}

.accroche .surtitre {
  color: var(--sur-bandeau-doux);
}

.accroche p {
  font-size: 1.2rem;
  color: var(--sur-bandeau-doux);
  max-width: 40em;
}

.bouton {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: var(--principal);
  color: var(--sur-principal);
  font-weight: 700;
  text-decoration: none;
}

.bouton:hover {
  background: var(--principal-fonce);
  text-decoration: underline;
}

.accroche .bouton {
  background: #ffffff;
  color: #0b2447;
}

.accroche .bouton:hover {
  background: #dbe7fb;
}

.accroche :focus-visible {
  outline-color: #ffb870;
}

/* Cartes */

.cartes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: none;
}

.carte {
  padding: 1.75rem;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  background: var(--fond);
  box-shadow: var(--ombre);
}

.section-alternee .carte {
  background: var(--fond);
}

.carte ul {
  padding-left: 1.2rem;
}

.carte p:last-child,
.carte ul:last-child {
  margin-bottom: 0;
}

/* titre d'une carte : pas de décalage ni de couleur de sous-titre */
.carte h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: inherit;
}

.pictogramme {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.9rem;
  color: var(--principal);
}

.prix {
  font-weight: 800;
  color: var(--principal);
}

.liste-etapes {
  padding-left: 1.4rem;
}

.liste-etapes li {
  margin-bottom: 0.75rem;
}

.encadre {
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--principal);
  border-radius: 0 var(--rayon) var(--rayon) 0;
  background: var(--surface);
  max-width: 44em;
}

.section-alternee .encadre {
  background: var(--fond);
}

.note {
  color: var(--texte-doux);
  font-size: 0.95rem;
}

/* Tableaux de données */

/* sur écran étroit, le tableau défile dans son cadre, pas la page ; le cadre est atteignable au clavier */
.tableau-defilant {
  max-width: 44em;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.tableau-defilant table {
  margin-bottom: 0;
}

table {
  width: 100%;
  max-width: 44em;
  margin: 0 0 1.5rem;
  border-collapse: collapse;
}

caption {
  margin-bottom: 0.6rem;
  text-align: left;
  font-weight: 700;
}

th,
td {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--bordure);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--surface);
}

tbody th {
  font-weight: 700;
  white-space: nowrap;
}

.contact dl {
  margin: 0 0 1rem;
}

.contact dt {
  font-weight: 700;
}

.contact dd {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

/* Pages de texte */

.page-texte {
  padding: 3rem 0;
}

.page-texte h2 {
  margin-top: 2.25rem;
  font-size: 1.5rem;
}

/* Pied de page */

.pied {
  padding: 2rem 0;
  background: var(--bandeau);
  color: var(--sur-bandeau-doux);
  font-size: 0.95rem;
}

.pied p {
  margin: 0 0 0.5rem;
}

.pied a {
  display: inline-block;
  padding: 0.25rem 0;
  color: var(--sur-bandeau);
}

/* la couleur douce des notes est prévue pour un fond clair : dans le pied de page, garder la couleur du pied */
.pied .note {
  margin-top: 1rem;
  color: inherit;
}

.pied :focus-visible {
  outline-color: #ffb870;
}

.pied ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

@media (prefers-reduced-motion: no-preference) {
  .bouton,
  .navigation a {
    transition: background-color 0.15s ease, color 0.15s ease;
  }
}

@media print {
  .lien-evitement,
  .navigation {
    display: none;
  }

  .accroche,
  .pied {
    background: none;
    color: #000000;
  }
}

.cartes-deux {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
}

.cartes + .note {
  margin-top: 1rem;
}

.cartes + .encadre {
  margin: 1.75rem 0 1rem;
}

.encadre h3,
.encadre h4 {
  margin-top: 0;
}

/* Étapes et parcours */

.cartes + .bouton,
.note + .bouton {
  margin-top: 1.5rem;
}

.etapes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: etape;
  max-width: none;
}

.etapes li {
  counter-increment: etape;
  padding: 1.25rem;
  border-top: 4px solid var(--principal);
  border-radius: var(--rayon);
  background: var(--surface);
}

.etapes li::before {
  content: counter(etape);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.6rem;
  border-radius: 50%;
  background: var(--principal);
  color: var(--sur-principal);
  font-weight: 800;
}

.etapes h4 {
  font-size: 1.1rem;
  color: inherit;
}

.etapes p {
  margin: 0;
}

.titre-parcours {
  margin-top: 2rem;
}

/* questions fréquentes : chaque question est un titre de niveau 2 sur sa page */
.page-texte h2 + p {
  margin-top: 0;
}

/* Prix des cartes */

.accroche .contact-rapide {
  margin: 1rem 0 0;
  font-size: 1.05rem;
}

.accroche .contact-rapide a {
  color: var(--sur-bandeau);
  font-weight: 700;
}

.prix-carte {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--principal);
}

@media (max-width: 40rem) {
  .accroche {
    padding: 2.25rem 0 2.5rem;
  }

  .section {
    padding: 2.25rem 0;
  }
}

/* Haut de page : sanction, source et solution */

.accroche h1 {
  font-size: clamp(1.65rem, 1.15rem + 2.1vw, 2.6rem);
  max-width: 26em;
}

.accroche .source-sanction {
  margin: -0.5rem 0 1.25rem;
  font-size: 0.95rem;
}

.accroche .solution {
  color: var(--sur-bandeau);
  font-weight: 700;
}

.section-alternee .etapes li {
  background: var(--fond);
}

.page-texte .bouton {
  margin-top: 1rem;
}

.lien-questions {
  margin-top: 1.5rem;
  font-weight: 600;
}

/* Menu adaptatif, sans JavaScript : liste en ligne sur écran large, bouton « Menu » sur écran étroit */

.menu-etroit {
  display: none;
}

.navigation .menu-large {
  display: flex;
}

@media (max-width: 64rem) {
  .entete .conteneur {
    flex-wrap: nowrap;
    align-items: flex-start;
  }

  .navigation {
    flex: 0 0 auto;
    text-align: right;
  }

  .navigation .menu-large {
    display: none;
  }

  .menu-etroit {
    display: block;
  }

  .menu-etroit summary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 2px solid var(--principal);
    border-radius: 999px;
    color: var(--texte);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
  }

  .menu-etroit summary::-webkit-details-marker {
    display: none;
  }

  .menu-etroit summary::after {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-0.15rem);
  }

  .menu-etroit[open] summary::after {
    transform: rotate(-135deg) translateY(-0.1rem);
  }

  .menu-etroit ul {
    display: block;
    margin: 0.75rem 0 0;
    text-align: left;
  }

  .menu-etroit li + li {
    border-top: 1px solid var(--bordure);
  }

  .menu-etroit a {
    display: block;
    padding: 0.6rem 0.25rem;
  }
}

@media (max-width: 64rem) {
  .entete {
    position: relative;
  }

  .menu-etroit ul {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 20;
    margin: 0;
    padding: 0.25rem 1rem 0.75rem;
    background: var(--fond);
    border-bottom: 1px solid var(--bordure);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  }
}

@media (min-width: 64.0625rem) {
  .navigation {
    flex: 1 1 auto;
  }

  .navigation .menu-large {
    justify-content: flex-end;
    gap: 0.25rem 1.1rem;
  }
}

.navigation ul {
  max-width: none;
}

/* Modernisation du 20 septembre 2026 : respiration, accent, relief léger. Aucun script, aucune police téléchargée. */

/* filet d'accent sous chaque titre de section */
.section h2::after,
.page-texte h1::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 0.25rem;
  margin-top: 0.9rem;
  border-radius: 999px;
  background: var(--accent);
}

.page-texte h1::after {
  margin-bottom: 1.5rem;
}

/* l'accroche garde son filet, en clair sur le fond sombre */
.accroche h1::after {
  content: none;
}

/* cartes : léger relief au survol, sans mouvement pour qui le refuse */
.carte {
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

@media (prefers-reduced-motion: reduce) {
  .carte {
    transition: none;
  }
}

.carte:hover {
  border-color: var(--principal);
  box-shadow: 0 2px 4px rgba(11, 36, 71, 0.08), 0 14px 32px rgba(11, 36, 71, 0.14);
}

@media (prefers-reduced-motion: no-preference) {
  .carte:hover {
    transform: translateY(-2px);
  }
}

/* prix des cartes : mis en valeur par l'accent */
.prix-carte {
  color: var(--accent);
}

/* accroche : fond plat, pour que les contrastes restent calculables par tout outil ; bouton plus affirmé */
.accroche .bouton {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

/* encadré : coins entièrement arrondis, plus d'air */
.encadre {
  padding: 1.75rem 2rem;
  border-radius: var(--rayon);
}

/* étapes et listes : un peu plus d'air entre les éléments */
.cartes {
  gap: 1.5rem;
}

.liste-etapes li {
  margin-bottom: 1rem;
}

/* pied de page : séparation nette */
.pied {
  padding: 3rem 0 2.5rem;
}
