/* Feuille de style commune — pensée d'abord pour le mobile. Les couleurs viennent de config/site.php. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #1f2933;
  background: #f4f6f8;
}
img { max-width: 100%; height: auto; }
a { color: var(--couleur-fonce); }
h1, h2, h3 { line-height: 1.25; color: #102a43; }
h1 { font-size: 1.7rem; margin: .4em 0 .6em; }
h2 { font-size: 1.3rem; margin-top: 1.8em; }
h3 { font-size: 1.1rem; }

.conteneur { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* En-tête */
.entete { background: var(--couleur); position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
.logo img { display: block; max-height: 44px; width: auto; }
.entete .bouton-entete { display: none; }

/* Mise en page */
.mise-en-page { padding-top: 12px; padding-bottom: 40px; }
main { background: #fff; padding: 16px; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.colonne { display: none; }
.fil { font-size: .85rem; color: #52606d; }
.fil a { color: #52606d; }

/* Boutons */
.bouton-devis {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 20px;
  border: 0;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
}
.bouton-devis:hover, .bouton-devis:focus { filter: brightness(1.08); }
.bouton-secondaire { background: #e4e7eb; border: 0; border-radius: 8px; padding: 12px 20px; font-size: 1rem; cursor: pointer; }
.cta-centre { text-align: center; margin: 1.5em 0; }

/* Bloc de demande de devis */
.bloc-devis {
  border: 2px solid var(--couleur);
  border-radius: 10px;
  padding: 16px;
  margin: 1.2em 0 1.5em;
  background: #fbfdff;
  scroll-margin-top: 70px;
}
.bloc-devis h2 { margin-top: 0; color: var(--couleur-fonce); }
.atouts { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .95rem; }
.atouts li::before { content: "✓ "; color: #2f9e44; font-weight: 700; }
.widget-devis { min-height: 320px; }

/* Textes */
.chapeau p { font-size: 1.05rem; }
.chapeau .photo { display: block; border-radius: 8px; margin-bottom: 12px; }
.panneau { margin: 1.5em 0; text-align: center; }
.contenu-redige { margin-top: 1em; }

/* Prix */
.tableau-prix { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tableau-prix th, .tableau-prix td { padding: 10px; border-bottom: 1px solid #e4e7eb; text-align: left; vertical-align: top; }
.tableau-prix th { background: #f0f4f8; }
.tableau-prix td:last-child { white-space: nowrap; font-weight: 600; }
.note-prix { font-size: .85rem; color: #52606d; }

/* FAQ */
.bloc-faq details { border-bottom: 1px solid #e4e7eb; padding: 10px 0; }
.bloc-faq summary { cursor: pointer; font-weight: 600; }

/* Listes de liens */
.grille-liens { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px 14px; }
.grille-liens a { display: block; padding: 6px 0; }

/* Contact */
.formulaire-contact label { display: block; margin-bottom: 12px; font-weight: 600; }
.formulaire-contact input, .formulaire-contact textarea { display: block; width: 100%; margin-top: 4px; padding: 10px; font: inherit; border: 1px solid #cbd2d9; border-radius: 6px; }
.formulaire-contact .piege { position: absolute; left: -9999px; }
.message-formulaire { padding: 12px; background: #f0f4f8; border-radius: 6px; }

/* Pied de page */
.pied { background: #102a43; color: #d9e2ec; padding: 20px 0 90px; font-size: .9rem; }
.pied a { color: #fff; }
.pied img { vertical-align: middle; margin-right: 10px; }

/* Bouton fixe sur mobile */
.cta-mobile {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30;
  background: var(--accent); color: #fff; text-align: center; font-weight: 700;
  padding: 14px; border-radius: 10px; text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  transition: transform .2s, opacity .2s;
}
.cta-mobile.cache { transform: translateY(120%); opacity: 0; pointer-events: none; }

/* Bandeau cookies */
.bandeau-cookies {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: #fff; padding: 14px 16px; box-shadow: 0 -2px 12px rgba(0,0,0,.2);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: center;
}
.bandeau-cookies[hidden] { display: none; }
.bandeau-cookies p { margin: 0; flex: 1 1 300px; font-size: .9rem; }

/* Ordinateur */
@media (min-width: 960px) {
  h1 { font-size: 2rem; }
  .entete .bouton-entete { display: inline-block; }
  .mise-en-page { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
  main { padding: 28px 32px; }
  .colonne { display: block; position: sticky; top: 80px; }
  .carte-cta { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.08); border-top: 4px solid var(--accent); }
  .carte-cta .bouton-devis { width: 100%; }
  .carte-cta-titre { font-weight: 700; font-size: 1.15rem; margin-top: 0; }
  .cta-mobile { display: none; }
  .pied { padding-bottom: 20px; }
}

/* Données locales et guides */
.bloc-local { margin-top: 1.5em; }
.tableau-reperes { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1em 0 .4em; }
.tableau-reperes th, .tableau-reperes td { padding: 8px; border-bottom: 1px solid #e4e7eb; text-align: right; }
.tableau-reperes th:first-child, .tableau-reperes td:first-child { text-align: left; }
.tableau-reperes th { background: #f0f4f8; }
.grille-liens .detail { display: block; font-size: .8rem; color: #52606d; margin-top: -4px; }
.bloc-guides ul { padding-left: 1.2em; }
.bloc-guides li { margin: .3em 0; }
.contenu-redige table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.contenu-redige th, .contenu-redige td { padding: 8px; border-bottom: 1px solid #e4e7eb; text-align: left; }
.contenu-redige th { background: #f0f4f8; }
