/* ============================================================
   Courant Belfortain – feuille de style commune du site (v2, sobre)
   1 seul fichier : une modification ici s'applique à toutes les pages
   ============================================================ */

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

:root {
  --navy: #1a1a2e;
  --blue: #1a3a5c;
  --yellow: #e8b400;
  --text: #222;
  --muted: #555;
  --line: #e3e3ea;
  --soft: #f7f8fb;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }

/* ── En-tête : logo centré + menu ── */
.site-header { text-align: center; padding: 22px 16px 0; }
.site-header .logo img { height: 96px; width: auto; display: inline-block; }

nav.site-nav {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 4px;
  margin: 14px auto 0;
  padding: 6px 10px;
  border-top: 1px solid var(--line);
  max-width: 980px;
}
nav.site-nav a, nav.site-nav button.nav-toggle {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
  background: none; border: 0; cursor: pointer;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 4px;
}
nav.site-nav a:hover, nav.site-nav button.nav-toggle:hover { background: var(--soft); color: var(--navy); }
nav.site-nav a.active, nav.site-nav button.nav-toggle.active { color: var(--navy); box-shadow: inset 0 -3px 0 var(--yellow); border-radius: 0; }
.nav-dropdown { position: relative; }
.nav-dropdown > button.nav-toggle::after { content: " ▾"; font-size: 11px; }
.nav-dropdown-menu {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: #fff;
  min-width: 270px;
  z-index: 99;
  border: 1px solid var(--line);
  border-top: 3px solid var(--yellow);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  text-align: left;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
@media (hover: hover) and (min-width: 701px) {
  .nav-dropdown:hover .nav-dropdown-menu { display: block; }
}
nav.site-nav .nav-dropdown-menu a { display: block; padding: 10px 16px; border-radius: 0; font-weight: 500; border-bottom: 1px solid var(--line); }
nav.site-nav .nav-dropdown-menu a:last-child { border-bottom: 0; }

/* ── Titre de page ── */
.page-head { background: var(--navy); color: #fff; padding: 46px 20px 40px; text-align: center; margin-top: 0; }
.page-head > * { max-width: 860px; margin-left: auto; margin-right: auto; }
.page-head h1 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 16px;
}
.page-head h1 strong { color: var(--yellow); }
.page-head p { color: #cfd6e4; max-width: 680px; margin: 0 auto 24px; font-size: 1.05rem; }
.page-head .price-line { font-family: Arial, Helvetica, sans-serif; color: #fff; font-size: 1.15rem; margin: -6px auto 24px; }
.page-head .price-line strong { font-size: 1.45rem; color: var(--yellow); }
.page-head .price-line small { display: block; font-size: .85rem; color: #cfd6e4; margin-top: 4px; }
.page-head .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.page-head .btn-secondary:hover { background: rgba(255,255,255,.1); }
.page-head .badge { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }

.btn-group { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 4px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary { background: var(--yellow); color: #111; border-color: var(--yellow); }
.btn-primary:hover { background: #d4a500; border-color: #d4a500; }
.btn-secondary, .btn-dark { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-secondary:hover, .btn-dark:hover { background: var(--soft); }

.badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.badge {
  font-family: Arial, Helvetica, sans-serif; font-size: 13px;
  color: var(--blue); background: var(--soft); border: 1px solid var(--line);
  padding: 5px 12px; border-radius: 3px;
}

/* ── Contenu ── */
.container { max-width: 860px; margin: 0 auto; padding: 0 20px; }
section { padding: 36px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }
section.tight { padding: 20px 0; }

h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--yellow);
  display: inline-block;
}
h3 { font-family: Arial, Helvetica, sans-serif; font-size: 1.05rem; color: var(--blue); margin: 24px 0 8px; }
h3:first-child { margin-top: 0; }
p { margin-bottom: 12px; }
ul { padding-left: 22px; margin-bottom: 12px; }
ul li { margin-bottom: 6px; }
.small { font-size: .92rem; color: var(--muted); }

/* ── Tuiles (sans icône) ── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 18px; }
.card { border: 1px solid var(--line); border-radius: 4px; padding: 18px 18px 16px; background: #fff; }
.card .icon { display: none; }
.card h3 { margin-top: 0; font-size: 1rem; }
.card p { font-size: .95rem; margin: 0; }
.card ul { font-size: .95rem; margin: 0; }
.card a.card-link { display: inline-block; margin-top: 10px; font-family: Arial, Helvetica, sans-serif; font-size: .9rem; font-weight: 700; color: var(--blue); text-decoration: none; }
.card a.card-link:hover { text-decoration: underline; }

.grid-2 { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: start; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }

/* ── Étapes ── */
.steps { counter-reset: step; margin-top: 16px; }
.step { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.step-num {
  counter-increment: step;
  background: var(--navy); color: #fff;
  font-family: Arial, Helvetica, sans-serif; font-weight: 700; font-size: .95rem;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-num::before { content: counter(step); }
.step-body strong { display: block; font-family: Arial, Helvetica, sans-serif; margin-bottom: 2px; color: var(--navy); }

/* ── Encadrés ── */
.irve-box, .dark-box, .info {
  background: var(--soft); border: 1px solid var(--line); border-left: 4px solid var(--navy);
  border-radius: 0 4px 4px 0; padding: 18px 20px; margin: 18px 0;
}
.irve-box h3, .dark-box h3 { margin-top: 0; color: var(--navy); }
.irve-box p:last-child, .dark-box p:last-child, .info p:last-child { margin-bottom: 0; }
.warn { background: #fff8e1; border-left: 4px solid var(--yellow); padding: 14px 18px; border-radius: 0 4px 4px 0; font-size: .95rem; margin-top: 16px; }

/* ── Bandeau marques ── */
.brands { margin-top: 28px; text-align: center; }
.brands-title { font-family: Arial, Helvetica, sans-serif; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.brands-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 28px; padding: 16px 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brands-row img { height: 30px; width: auto; max-width: 120px; object-fit: contain; filter: grayscale(1); opacity: .7; }
.brands-row img:hover { filter: none; opacity: 1; }
.brands-row img.tall { height: 52px; }

/* ── Galerie photo ── */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 14px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); background: #fff; cursor: zoom-in; }
.gallery figure { margin: 0; }
.gallery figcaption { font-family: Arial, Helvetica, sans-serif; font-size: .8rem; color: var(--muted); text-align: center; margin-top: 6px; }
.gallery--2 { grid-template-columns: repeat(2, 1fr); max-width: 620px; }
.gallery--3 { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

/* ── Lightbox ── */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.8); display: none; align-items: center; justify-content: center; padding: 18px; z-index: 99999; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 96vw); max-height: 90vh; border-radius: 4px; background: #fff; }
.lightbox-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: var(--navy); font-size: 24px; font-weight: 700; cursor: pointer; line-height: 40px; }

/* ── FAQ ── */
details { border-bottom: 1px solid var(--line); padding: 12px 0; }
summary { font-family: Arial, Helvetica, sans-serif; font-weight: 600; font-size: .98rem; cursor: pointer; color: var(--navy); list-style: none; padding-left: 22px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; position: absolute; left: 0; top: -1px; color: var(--yellow); font-size: 1.2rem; font-weight: 700; }
details[open] summary::before { content: "–"; }
details p, details ul { margin-top: 10px; font-size: .95rem; padding-left: 22px; }
details ul { padding-left: 42px; }

/* ── Avis ── */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 16px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 16px; }
.review .stars { color: #e8a000; font-size: 15px; letter-spacing: 1px; }
.review p { margin: 8px 0; font-style: italic; font-size: .95rem; }
.review .who { font-family: Arial, Helvetica, sans-serif; font-size: .85rem; font-weight: 700; color: var(--blue); font-style: normal; margin: 0; }
.review-link { display: inline-block; font-family: Arial, Helvetica, sans-serif; font-weight: 700; font-size: .92rem; color: var(--blue); margin-top: 12px; }
.review-link .stars { color: #e8a000; letter-spacing: 1px; }

/* ── Contact ── */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 18px; }
.contact-cards .card a { font-weight: 700; text-decoration: none; }
.contact-cards .card a:hover { text-decoration: underline; }
.map { margin-top: 16px; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 320px; border: 0; }

/* ── Zone ── */
.zone-img { margin-top: 16px; }
.zone-img img { max-width: 100%; border-radius: 4px; border: 1px solid var(--line); cursor: zoom-in; }

/* ── Appel à l'action bas de page ── */
.cta-section { background: var(--soft); border-top: 1px solid var(--line); padding: 40px 20px; text-align: center; margin-top: 10px; }
.cta-section h2 { display: block; border: none; padding: 0; }
.cta-section p { max-width: 560px; margin: 0 auto 20px; color: var(--muted); }

/* ── Pied de page ── */
footer {
  background: #f2f2f2;
  color: #444;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  text-align: center;
  padding: 24px 20px 90px;
  border-top: 1px solid var(--line);
}
footer img { height: 40px; vertical-align: middle; margin: 0 8px; }
footer a { color: var(--blue); }
footer .legal { font-size: 12px; color: #666; margin-top: 10px; line-height: 1.6; }
footer .motto { font-style: italic; color: #555; max-width: 760px; margin: 0 auto 12px; }
@media (min-width: 701px) { footer { padding-bottom: 24px; } }

/* ── Barre d'appel fixe (mobile) ── */
.sticky-call { display: none; }
@media (max-width: 700px) {
  .sticky-call {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
    background: var(--navy); color: #fff; text-align: center; padding: 14px;
    font-family: Arial, Helvetica, sans-serif; font-weight: 700; font-size: 17px; text-decoration: none;
    box-shadow: 0 -2px 10px rgba(0,0,0,.2);
  }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Mobile ── */
@media (max-width: 700px) {
  body { font-size: 16px; }
  .site-header .logo img { height: 72px; }
  nav.site-nav { display: block; padding: 0; margin-top: 12px; }
  nav.site-nav > a, nav.site-nav .nav-dropdown { display: block; width: 100%; }
  nav.site-nav > a, nav.site-nav button.nav-toggle { display: block; width: 100%; padding: 12px 10px; font-size: 15px; border-radius: 0; border-bottom: 1px solid var(--line); }
  nav.site-nav a.active, nav.site-nav button.nav-toggle.active { box-shadow: inset 4px 0 0 var(--yellow); }
  .nav-dropdown-menu { position: static; min-width: 0; box-shadow: none; border: 0; background: var(--soft); text-align: center; }
  nav.site-nav .nav-dropdown-menu a { padding: 11px 10px; font-size: 14px; }
  .page-head { padding-top: 30px; }
  .brands-row { gap: 14px 24px; }
  .brands-row img { height: 26px; max-width: 110px; }
  .brands-row img.tall { height: 36px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  section { padding: 28px 0; }
}
