/* Site HomePing — mêmes couleurs que l'appli */
:root {
  --bleu-nuit: #0d1a36;
  --bleu-nuit-clair: #1c2d52;
  --orange: #f7931e;
  --orange-clair: #fff1e3;
  --blanc: #ffffff;
  --gris-clair: #f1f3f6;
  --gris-bordure: #dde2ea;
  --gris-texte: #5e6878;
  --texte: #0d1a36;
  --largeur: 1080px;
  --rayon: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--texte);
  background: var(--blanc);
  line-height: 1.6;
  font-size: 17px;
}

a { color: inherit; }

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

/* En-tête */
.entete {
  background: var(--bleu-nuit);
  color: var(--blanc);
  position: sticky;
  top: 0;
  z-index: 10;
}
.entete .conteneur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.marque {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.3px;
}
.marque img { width: 40px; height: 40px; border-radius: 10px; }
.marque .ping, .ping { color: var(--orange); }
.menu { display: flex; gap: 20px; flex-wrap: wrap; }
.menu a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  opacity: 0.85;
}
.menu a:hover, .menu a[aria-current="page"] { opacity: 1; color: var(--orange); }

/* Bandeau d'accueil */
.bandeau {
  background: var(--bleu-nuit);
  color: var(--blanc);
  padding: 56px 0 72px;
  overflow: hidden;
}
.bandeau .conteneur {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 40px;
}
.bandeau h1 {
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.05;
  margin: 0 0 8px;
  font-weight: 900;
}
.slogan {
  color: var(--orange);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  margin: 0 0 20px;
}
.bandeau p.intro { color: #c9d3e3; font-size: 18px; max-width: 520px; }
.bandeau .radar { width: 100%; max-width: 380px; justify-self: center; border-radius: 28%; }
.badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.badge {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 15px;
}
.badge small { display: block; font-weight: 500; opacity: 0.7; font-size: 12px; }

/* Sections */
section { padding: 64px 0; }
section.gris { background: var(--gris-clair); }
h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 12px; line-height: 1.15; }
.sous-titre { color: var(--gris-texte); max-width: 640px; margin: 0 0 32px; }

.grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.carte {
  background: var(--blanc);
  border: 1px solid var(--gris-bordure);
  border-radius: var(--rayon);
  padding: 24px;
}
.carte h3 { margin: 8px 0; font-size: 19px; }
.carte p { margin: 0; color: var(--gris-texte); font-size: 16px; }
.numero {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: var(--blanc);
  font-weight: 800;
}
.icone { font-size: 28px; }

/* Section agences */
.agences {
  background: var(--bleu-nuit);
  color: var(--blanc);
}
.agences .sous-titre { color: #c9d3e3; }
.agences .carte {
  background: var(--bleu-nuit-clair);
  border-color: rgba(255, 255, 255, 0.12);
}
.agences .carte p { color: #c9d3e3; }

.bouton {
  display: inline-block;
  background: var(--orange);
  color: var(--blanc);
  text-decoration: none;
  font-weight: 800;
  padding: 14px 24px;
  border-radius: 12px;
  margin-top: 28px;
}
.bouton:hover { filter: brightness(1.07); }

/* Pages de texte (légal, contact) */
.page { padding: 48px 0 64px; }
.page .conteneur { max-width: 820px; }
.page h1 { font-size: clamp(30px, 5vw, 42px); margin: 0 0 8px; }
.page h2 { font-size: 22px; margin: 32px 0 8px; }
.page p, .page li { color: #2b3547; }
.maj { color: var(--gris-texte); font-size: 14px; margin-bottom: 32px; }
.a-venir {
  background: var(--orange-clair);
  border-left: 4px solid var(--orange);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  color: var(--bleu-nuit);
}
/* Fiche d'identité (mentions légales) */
.fiche {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  border: 1px solid var(--gris-bordure);
  border-radius: var(--rayon);
  overflow: hidden;
  margin: 24px 0;
}
.fiche dt, .fiche dd {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gris-bordure);
}
.fiche dt { background: var(--gris-clair); font-weight: 700; color: var(--bleu-nuit); }
.fiche dt:last-of-type, .fiche dd:last-of-type { border-bottom: 0; }

/* Tableau des données (confidentialité) */
.tableau { width: 100%; border-collapse: collapse; margin: 16px 0 8px; font-size: 15px; }
.tableau th, .tableau td {
  text-align: left;
  vertical-align: top;
  padding: 12px;
  border-bottom: 1px solid var(--gris-bordure);
}
.tableau th { background: var(--bleu-nuit); color: var(--blanc); font-size: 14px; }
.tableau th:first-child { border-top-left-radius: 10px; }
.tableau th:last-child { border-top-right-radius: 10px; }
.tableau td:first-child { font-weight: 600; color: var(--bleu-nuit); }
.encadre {
  background: var(--gris-clair);
  border-radius: var(--rayon);
  padding: 16px 20px;
  margin: 16px 0;
}
.page ul { padding-left: 22px; }
.page li { margin-bottom: 6px; }

@media (max-width: 760px) {
  .fiche { grid-template-columns: 1fr; }
  .fiche dt { border-bottom: 0; padding-bottom: 4px; }
  /* Sur téléphone, chaque ligne du tableau devient une petite fiche. */
  .tableau thead { display: none; }
  .tableau, .tableau tbody, .tableau tr, .tableau td { display: block; width: 100%; }
  .tableau tr {
    border: 1px solid var(--gris-bordure);
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 4px 0;
  }
  .tableau td { border-bottom: 0; padding: 6px 14px; }
  .tableau td::before {
    content: attr(data-libelle);
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--gris-texte);
    text-transform: uppercase;
    letter-spacing: 0.4px;
  }
  .tableau td:first-child::before { display: none; }
}

.contact-carte {
  background: var(--gris-clair);
  border-radius: var(--rayon);
  padding: 28px;
  margin-top: 24px;
}
.contact-carte a.courriel {
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 800;
  color: var(--bleu-nuit);
  word-break: break-word;
}

/* Pied de page */
.pied {
  background: var(--bleu-nuit);
  color: #c9d3e3;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 36px 0;
  font-size: 14px;
}
.pied .liens { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.pied .liens a { text-decoration: none; color: var(--blanc); font-weight: 600; }
.pied .liens a:hover { color: var(--orange); }
.pied .editeur { margin: 0; }

/* Téléphones */
@media (max-width: 760px) {
  .bandeau { padding: 36px 0 48px; }
  .bandeau .conteneur { grid-template-columns: 1fr; }
  .bandeau .radar { max-width: 220px; grid-row: 1; justify-self: start; }
  .menu { gap: 14px; }
  .menu a { font-size: 14px; }
  .entete .conteneur { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  section { padding: 44px 0; }
}
