/* Péage Malin — site public (GitHub Pages)
   Direction : signalisation autoroutière française.
   Panneaux bleus à liseré blanc, typo condensée, accent orange télépéage. */

:root {
  --bleu-sign: #10357f;   /* bleu panneau autoroute */
  --bleu-nuit: #0a2258;
  --blanc-sign: #f7f8f6;  /* blanc signalétique, légèrement chaud */
  --orange-t: #e97810;    /* orange télépéage */
  --vert-eco: #1f7a4d;
  --encre: #172038;
  --encre-douce: #4a5470;
  --filet: #d8dce6;
  --panneau-radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: "Atkinson Hyperlegible", -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--encre);
  background: var(--blanc-sign);
}

.display, h1, h2, h3, .nav a, .chip {
  font-family: "Saira SemiCondensed", "Arial Narrow", sans-serif;
}

/* ---------- Liseré de panneau (signature) ---------- */
.panneau {
  position: relative;
  background: var(--bleu-sign);
  color: #fff;
  border-radius: var(--panneau-radius);
}
.panneau::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2.5px solid rgba(255, 255, 255, 0.92);
  border-radius: calc(var(--panneau-radius) - 6px);
  pointer-events: none;
}

/* ---------- En-tête ---------- */
header.site {
  background: var(--bleu-nuit);
  padding: 0.65rem 1.25rem;
}
header.site .inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.marque {
  color: #fff;
  font-family: "Saira SemiCondensed", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
}
.marque .eco { color: #f5b26b; } /* orange télépéage clair */
.nav { margin-left: auto; display: flex; gap: 0.5rem; }
.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.nav a:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.nav a[aria-current="page"] { background: #fff; color: var(--bleu-nuit); border-color: #fff; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--orange-t);
  outline-offset: 2px;
}

/* ---------- Mise en page ---------- */
main { max-width: 960px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
main.etroit { max-width: 720px; }

/* ---------- Héros (accueil) ---------- */
.hero {
  padding: 2.75rem 2.5rem;
  margin-bottom: 2.5rem;
  animation: lever 0.6s ease both;
}
@keyframes lever {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  line-height: 1.05;
}
.hero .tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  margin-top: 0.6rem;
  color: rgba(255, 255, 255, 0.88);
}
.hero .destinations {
  list-style: none;
  margin-top: 1.75rem;
  display: grid;
  gap: 0.45rem;
  font-family: "Saira SemiCondensed", sans-serif;
  font-weight: 600;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
}
.hero .destinations li::before {
  content: "→ ";
  color: var(--orange-t);
  -webkit-text-stroke: 0.5px var(--orange-t);
}
.hero .badge-t {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem; height: 2.1rem;
  background: var(--orange-t);
  color: #fff;
  border-radius: 7px;
  font-family: "Saira SemiCondensed", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  margin-right: 0.6rem;
  vertical-align: -0.35rem;
}

/* ---------- Cartes (accueil) ---------- */
.cartes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.carte {
  background: #fff;
  border: 1.5px solid var(--filet);
  border-radius: 12px;
  padding: 1.4rem 1.5rem;
}
.carte h3 {
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--bleu-sign);
  margin-bottom: 0.5rem;
}
.carte p { color: var(--encre-douce); font-size: 0.98rem; }

.note-store {
  margin-top: 2.5rem;
  padding: 1.1rem 1.4rem;
  background: #fff;
  border-left: 5px solid var(--vert-eco);
  border-radius: 0 10px 10px 0;
  color: var(--encre-douce);
}

/* ---------- Pages de contenu (confidentialité, support) ---------- */
.entete-page { margin-bottom: 2.25rem; }
.entete-page h1 {
  display: inline-block;
  padding: 0.75rem 1.5rem 0.85rem;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.entete-page .maj {
  display: block;
  margin-top: 0.9rem;
  color: var(--encre-douce);
  font-size: 0.92rem;
}

article h2 {
  display: inline-block;
  margin: 2.4rem 0 0.9rem;
  padding: 0.32rem 0.9rem 0.4rem;
  font-size: 1.12rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--bleu-sign);
  color: #fff;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.85), inset 0 0 0 3.5px var(--bleu-sign);
}
article h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bleu-sign);
}
article p, article li { margin-bottom: 0.7rem; }
article ul { padding-left: 1.3rem; }
article a { color: var(--bleu-sign); }

.essentiel {
  background: #fff;
  border: 1.5px solid var(--filet);
  border-radius: 12px;
  padding: 1.3rem 1.5rem;
  margin-bottom: 0.5rem;
}
.essentiel h2:first-child { margin-top: 0; }
.essentiel ul { list-style: none; padding: 0; }
.essentiel li { padding-left: 1.6rem; position: relative; }
.essentiel li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--vert-eco);
  font-weight: 700;
}

table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.55rem 0.8rem; border-bottom: 1px solid var(--filet); vertical-align: top; }
th { font-family: "Saira SemiCondensed", sans-serif; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.04em; color: var(--bleu-sign); }

/* ---------- Pied de page ---------- */
footer.site {
  border-top: 1.5px solid var(--filet);
  padding: 1.5rem 1.25rem 2.5rem;
  color: var(--encre-douce);
  font-size: 0.92rem;
}
footer.site .inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: baseline;
}
footer.site a { color: var(--bleu-sign); }
footer.site .copy { margin-left: auto; }

@media (max-width: 600px) {
  .hero { padding: 2rem 1.5rem; }
  .nav { margin-left: 0; }
  footer.site .copy { margin-left: 0; }
}
