/*
 * Site de présentation de MaTourneeFacile : une page statique, sans script.
 * Même thème clair et sobre que le site d'administration.
 */
:root {
  color-scheme: light;
  --fond: #ffffff;
  --fond-alterne: #f8f8f9;
  --bordure: #e0e3e7;
  --texte: #0f141a;
  --texte-doux: #5f6b7a;
  --accent: #0972d3;
  --bouton-principal: #0f141a;
  --rayon: 12px;
  --statut-fait: #2bb673;
  --statut-refus: #f0647a;
  --statut-repasse: #f2c230;
  --statut-boite: #5aa9f0;
  --statut-a-faire: #b4bcc6;
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--texte);
  background: var(--fond);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.evitement {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--bouton-principal);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  z-index: 10;
}
.evitement:focus {
  left: 0.5rem;
}

.largeur {
  width: min(72rem, 100% - 2.5rem);
  margin-inline: auto;
}

/* --- En-tête -------------------------------------------------------------------------- */
.bandeau-haut {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgb(255 255 255 / 95%);
  border-bottom: 1px solid var(--bordure);
}
.entete {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4rem;
}
.marque {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--texte);
  text-decoration: none;
}
.logo {
  width: 2rem;
  height: 2rem;
}
.logo rect {
  fill: var(--bouton-principal);
}
.logo path {
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  fill: none;
}
.entete nav,
.entete > .marque + .bouton {
  margin-left: auto;
}
.menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu a {
  color: var(--texte);
  text-decoration: none;
  font-weight: 500;
}
.menu a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* --- Boutons -------------------------------------------------------------------------- */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 1px solid #424650;
  border-radius: 999px;
  padding: 0.45rem 1.2rem;
  min-height: 40px;
  color: var(--texte);
  background: var(--fond);
  text-decoration: none;
  white-space: nowrap;
}
.bouton:hover {
  background: #f3f3f7;
}
.bouton.principal {
  background: var(--bouton-principal);
  border-color: var(--bouton-principal);
  color: #fff;
}
.bouton.principal:hover {
  background: #2b3542;
}
.bouton.grand {
  min-height: 48px;
  padding: 0.6rem 1.6rem;
  font-size: 1.05rem;
}

/* --- Accroche ------------------------------------------------------------------------- */
.accroche {
  padding: 4.5rem 0 4rem;
  background: linear-gradient(180deg, #f3f7fc 0%, var(--fond) 100%);
}
.accroche-grille {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.surtitre {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
}
h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.15;
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}
.chapeau {
  font-size: 1.15rem;
  color: #2d3640;
  margin: 0 0 1.75rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.aide {
  color: var(--texte-doux);
  font-size: 0.95rem;
  margin: 0;
}

.illustration {
  margin: 0;
}
.illustration svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 24px rgb(15 20 26 / 12%));
}
.carte-fond {
  fill: #eef1f4;
}
.rue {
  fill: none;
  stroke: #ffffff;
  stroke-width: 10;
}
.secteur {
  stroke-width: 2;
  fill-opacity: 0.18;
}
.s1 {
  fill: #e53935;
  stroke: #e53935;
}
.s2 {
  fill: #1e88e5;
  stroke: #1e88e5;
}
.s3 {
  fill: #43a047;
  stroke: #43a047;
}
.s4 {
  fill: #fb8c00;
  stroke: #fb8c00;
}
.epingles circle {
  stroke: #ffffff;
  stroke-width: 2.5;
}
.fait {
  fill: var(--statut-fait);
}
.repasse {
  fill: var(--statut-repasse);
}
.refus {
  fill: var(--statut-refus);
}
.boite {
  fill: var(--statut-boite);
}
.afaire {
  fill: var(--statut-a-faire);
}
.panneau {
  fill: #ffffff;
  stroke: var(--bordure);
}
.panneau-titre {
  fill: var(--texte-doux);
  font-size: 11px;
  font-weight: 600;
}
.panneau-chiffre {
  fill: var(--texte);
  font-size: 16px;
  font-weight: 700;
}

/* --- Sections ------------------------------------------------------------------------- */
.section {
  padding: 4.5rem 0;
}
.section.alterne {
  background: var(--fond-alterne);
  border-top: 1px solid var(--bordure);
  border-bottom: 1px solid var(--bordure);
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
.intro {
  max-width: 46rem;
  color: #2d3640;
  font-size: 1.08rem;
  margin: 0 0 2.25rem;
}
h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}
.sous-titre {
  margin: 2rem 0 1rem;
  font-size: 1.2rem;
}

.grille {
  display: grid;
  gap: 1.25rem;
}
.grille.trois {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grille.deux {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.carte {
  background: #ffffff;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgb(0 7 22 / 6%);
}
.carte p {
  margin: 0;
  color: #2d3640;
}

.liste-fonctions {
  list-style: none;
  margin: 0;
  padding: 0;
}
.liste-fonctions li {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: #ffffff;
  border: 1px solid var(--bordure);
  border-left: 4px solid var(--accent);
  border-radius: var(--rayon);
  padding: 1.1rem 1.25rem;
}
.liste-fonctions span {
  color: #2d3640;
}

.etapes {
  list-style: none;
  margin: 0;
  padding: 0;
}
.numero {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--bouton-principal);
  color: #fff;
  font-weight: 800;
  margin-bottom: 0.9rem;
}

.appel {
  background: var(--bouton-principal);
  color: #fff;
}
.appel-contenu {
  text-align: center;
}
.appel p {
  color: #d7dce2;
  font-size: 1.1rem;
  margin: 0 0 1.75rem;
}
.appel .bouton.principal {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--bouton-principal);
}
.appel .bouton.principal:hover {
  background: #e9ecef;
}

/* --- Aperçu (captures d'écran) -------------------------------------------------------- */
figure {
  margin: 0;
}
figcaption {
  margin-top: 0.75rem;
  color: var(--texte-doux);
  font-size: 0.95rem;
  text-align: center;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
.apercu-mobile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3.5rem;
}
.telephones {
  display: flex;
  gap: 1.5rem;
}
.telephone img {
  width: 15.5rem;
  border: 8px solid #1b2129;
  border-radius: 28px;
  box-shadow: 0 16px 32px rgb(15 20 26 / 18%);
}
.apercu-texte p {
  color: #2d3640;
  margin: 0 0 1rem;
  max-width: 32rem;
}
.ecran img {
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  box-shadow: 0 12px 28px rgb(15 20 26 / 12%);
}
.ecran.large {
  margin-bottom: 2rem;
}
.ecrans {
  gap: 2rem;
}

/* --- Pied de page --------------------------------------------------------------------- */
.pied {
  padding: 2rem 0;
  border-top: 1px solid var(--bordure);
}
.pied-contenu {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}
.pied p {
  margin: 0;
}
.liens-legaux {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.liens-legaux a {
  color: var(--texte-doux);
}
.liens-legaux a[aria-current='page'] {
  color: var(--texte);
  font-weight: 600;
}
.pied-mention {
  flex-basis: 100%;
}

/* --- Pages légales -------------------------------------------------------------------- */
.page-legale {
  max-width: 48rem;
  padding: 3rem 0 4rem;
}
.page-legale h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.3rem);
  margin-bottom: 0.5rem;
}
.page-legale h2 {
  font-size: 1.3rem;
  margin: 2.25rem 0 0.75rem;
}
.page-legale p,
.page-legale li {
  color: #2d3640;
}
.page-legale ul {
  padding-left: 1.25rem;
}
.page-legale li + li {
  margin-top: 0.4rem;
}
.a-completer {
  background: #fff4cc;
  color: #6b4e00;
  padding: 0 0.2rem;
  border-radius: 4px;
}
.defilement {
  overflow-x: auto;
}
.tableau-legal {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 0.5rem 0 1rem;
}
.tableau-legal th,
.tableau-legal td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem;
  border-bottom: 1px solid var(--bordure);
}
.tableau-legal thead th {
  border-bottom-color: #c6c6cd;
}

/* --- Petits écrans -------------------------------------------------------------------- */
@media (max-width: 60rem) {
  .accroche-grille,
  .grille.deux,
  .grille.trois {
    grid-template-columns: 1fr;
  }
  .illustration {
    max-width: 30rem;
  }
  .apercu-mobile {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .telephone img {
    width: min(15.5rem, 42vw);
  }
}
@media (max-width: 40rem) {
  .entete nav {
    display: none;
  }
  .entete {
    justify-content: space-between;
  }
  .accroche {
    padding-top: 3rem;
  }
}
