/* =====================================================================
   Style sobre : blanc / noir + touches de bleu
   Titres en serif, corps de texte en sans-serif lisible
   ===================================================================== */

/* ---- Variables (faciles à modifier) ---- */
:root {
  --accent: #1d4ed8;          /* bleu (confiance) */
  --accent-dark: #1e3a8a;     /* bleu foncé */
  --text: #111111;            /* presque noir */
  --muted: #5b6068;           /* gris texte secondaire */
  --bg: #ffffff;              /* fond blanc */
  --card-bg: #ffffff;         /* cartes blanches */
  --border: #e5e7eb;          /* gris clair pour les traits */

  --font-serif: Georgia, Cambria, "Times New Roman", Times, serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
               Arial, sans-serif;
}

/* ---- Base ---- */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);   /* paragraphes : sans-serif lisible */
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
}

/* Tous les titres en serif */
h1, h2, h3 {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--text);
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

/* ---- En-tête ---- */
.hero {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  margin: 0;
  font-size: 2.6rem;
  font-weight: 700;
}

/* fin trait bleu sous le titre, discret et rassurant */
.hero h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--accent);
  margin: 0.9rem auto 0;
}

.hero .tagline {
  margin: 1rem 0 0;
  font-size: 1.15rem;
  color: var(--muted);
}

/* Titre du site cliquable (retour accueil) sans apparence de lien */
.hero-link {
  color: inherit;
  text-decoration: none;
}
.hero-link:hover { color: var(--accent); }

/* ---- Intro ---- */
.intro {
  padding: 2.5rem 0 1rem;
}

.intro h2,
.intro h3 {
  color: var(--text);
  font-size: 1.5rem;
  margin-top: 1.5rem;
}

.intro p { margin: 1rem 0; }

.intro ul {
  padding-left: 1.3rem;
}
.intro li { margin: 0.4rem 0; }
.intro li::marker { color: var(--accent); }

/* ---- Section prestataires ---- */
.prestataires {
  padding-top: 1rem;
  margin-bottom: 4rem;
}

/* ---- Boutons de filtre ---- */
.filtres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.filtre {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.filtre:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filtre.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.aucun-resultat {
  color: var(--muted);
  font-style: italic;
}

/* ---- Grille de prestataires ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  border-color: #cdd3da;
  box-shadow: 0 6px 18px rgba(17, 17, 17, 0.06);
}

/* Force le masquage des cartes filtrées (sinon display:flex l'emporterait). */
.card[hidden] { display: none; }

.card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.3rem;
}

.card .ville {
  margin: 0 0 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card .desc {
  margin: 0 0 1.1rem;
  color: var(--muted);
  flex-grow: 1;
  font-size: 0.98rem;
}

.card .link {
  text-decoration: none;
  font-weight: 600;
}
.card .link::after { content: " \2192"; }  /* flèche → */
.card .link:hover { text-decoration: underline; }

/* ---- Pied de page ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
}

.site-footer p { margin: 0.3rem 0; }
.muted { color: var(--muted); font-size: 0.9rem; }

/* ---- Formulaire (page contact) ---- */
.form {
  margin-top: 2rem;
  max-width: 520px;
}

.champ {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}

.champ label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.requis { color: var(--accent); }

.champ input,
.champ select,
.champ textarea {
  font: inherit;
  font-size: 1rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
}

.champ input:focus,
.champ select:focus,
.champ textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

.champ textarea { resize: vertical; }

.btn-envoyer {
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-envoyer:hover { background: var(--accent-dark); }

.form-note {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---- Petits écrans ---- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 2.5rem 0 2rem; }
  .hero h1 { font-size: 2rem; }
}
