/* ===========================================================
   DÉMO — Artisan électricien "Lefebvre Électricité"
   Archétype VOLONTAIREMENT différent des deux autres démos :
   "service pro" avec CARTE D'ACTION PERSISTANTE (rail sticky à
   droite, contenu à gauche), bandeaux de réassurance pleine
   largeur, grille de services à icônes. Palette navy + ambre
   électrique, typo industrielle (Barlow). But : prouver qu'on
   ne plaque pas un template unique d'un métier à l'autre.
   =========================================================== */

:root {
  --a-navy:    #0f1b2d;
  --a-navy2:   #16263d;
  --a-bg:      #f3f6fa;
  --a-paper:   #ffffff;
  --a-ink:     #15202e;
  --a-soft:    #5a6b7e;
  --a-amber:   #f5a623;
  --a-amber-dk:#d98c0d;
  --a-urgent:  #e63946;
  --a-urgent-dk:#c92d3a;
  --a-line:    #e1e8f0;
  --a-head:    "Barlow Semi Condensed", "Barlow", sans-serif;
  --a-sans:    "Barlow", -apple-system, sans-serif;
}

body.artisan {
  margin: 0;
  background: var(--a-bg);
  color: var(--a-ink);
  font-family: var(--a-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.artisan h1, body.artisan h2, body.artisan h3 {
  font-family: var(--a-head);
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
}
body.artisan p { margin: 0 0 1rem; }
/* Les liens héritent de la couleur du texte — SAUF ceux stylés en bouton, qui
   gardent la couleur de leur variante (.a-btn--light, --urgent…). Sinon cette
   règle, plus spécifique, écrasait la couleur du bouton (texte blanc invisible). */
body.artisan a:not(.a-btn) { color: inherit; }

/* ── Boutons ──────────────────────────────────────────────── */
.a-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  cursor: pointer;
  font-family: var(--a-sans);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.a-btn--lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.a-btn--full { width: 100%; }
.a-btn--amber { background: var(--a-amber); color: var(--a-navy); }
.a-btn--amber:hover { background: var(--a-amber-dk); transform: translateY(-2px); }
.a-btn--urgent { background: var(--a-urgent); color: #fff; }
.a-btn--urgent:hover { background: var(--a-urgent-dk); transform: translateY(-2px); }
.a-btn--ghost { background: transparent; color: var(--a-ink); border: 1.5px solid var(--a-line); }
.a-btn--ghost:hover { border-color: var(--a-navy); }
.a-btn--light { background: #fff; color: var(--a-navy); }
.a-btn--light:hover { transform: translateY(-2px); }

/* ── Header ───────────────────────────────────────────────── */
.a-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1.2rem, 5vw, 3rem);
  background: var(--a-navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.a-logo { font-family: var(--a-head); font-size: 1.4rem; font-weight: 600; text-decoration: none; color: #fff; }
.a-logo strong { color: var(--a-amber); }
.a-logo__mark { color: var(--a-amber); }
.a-header__right { display: flex; align-items: center; gap: 1rem; }
.a-header__phone { font-weight: 700; text-decoration: none; color: #fff; }
.a-header__phone:hover { color: var(--a-amber); }

/* ── Hero ─────────────────────────────────────────────────── */
.a-hero {
  background-image:
    linear-gradient(120deg, rgba(15,27,45,0.94) 0%, rgba(15,27,45,0.78) 60%, rgba(15,27,45,0.6) 100%),
    var(--hero);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: clamp(3rem, 9vw, 6rem) clamp(1.2rem, 5vw, 3rem);
}
.a-hero__inner { max-width: 760px; }
.a-hero__eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--a-amber);
  background: rgba(245,166,35,0.12);
  border: 1px solid rgba(245,166,35,0.4);
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  margin: 0 0 1.2rem;
}
.a-hero h1 { font-size: clamp(2.2rem, 6.5vw, 4rem); margin-bottom: 1rem; }
.a-hero__lead { font-size: 1.15rem; color: rgba(255,255,255,0.88); max-width: 620px; margin-bottom: 1.8rem; }
.a-hero__cta { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.a-hero .a-btn--ghost { color: #fff; border-color: rgba(255,255,255,0.55); }
.a-hero .a-btn--ghost:hover { background: #fff; color: var(--a-navy); }
.a-hero__note { font-size: 0.92rem; color: rgba(255,255,255,0.8); margin: 0; }

/* ── Bandeau réassurance ──────────────────────────────────── */
.a-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  justify-content: center;
  align-items: center;
  background: var(--a-navy2);
  padding: 1rem clamp(1.2rem, 5vw, 3rem);
}
.a-trust__badge {
  font-size: 0.88rem;
  font-weight: 600;
  color: #dce6f2;
  letter-spacing: 0.01em;
}

/* ── Layout 2 colonnes : contenu + rail ───────────────────── */
.a-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.2rem, 5vw, 2rem);
}
.a-block { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.a-block:last-child { margin-bottom: 0; }
.a-h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1.6rem;
  position: relative;
  padding-bottom: 0.6rem;
}
.a-h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; background: var(--a-amber); border-radius: 2px; }

/* ── Services ─────────────────────────────────────────────── */
.a-services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.a-service {
  background: var(--a-paper);
  border: 1px solid var(--a-line);
  border-radius: 12px;
  padding: 1.4rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.a-service:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -20px rgba(15,27,45,0.4); border-color: var(--a-amber); }
.a-service__icon {
  display: inline-flex;
  width: 2.6rem; height: 2.6rem;
  align-items: center; justify-content: center;
  font-size: 1.3rem;
  background: var(--a-bg);
  border-radius: 10px;
  margin-bottom: 0.8rem;
}
.a-service__title { font-size: 1.15rem; margin-bottom: 0.4rem; }
.a-service__desc { color: var(--a-soft); font-size: 0.92rem; margin: 0; }

/* ── Réalisations ─────────────────────────────────────────── */
.a-realis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.a-realis__item { margin: 0; background: var(--a-paper); border: 1px solid var(--a-line); border-radius: 12px; overflow: hidden; }
.a-realis__img { height: 150px; background-size: cover; background-position: center; background-color: var(--a-line); }
.a-realis__item figcaption { padding: 0.8rem 1rem; display: flex; flex-direction: column; gap: 0.15rem; }
.a-realis__item figcaption strong { font-size: 0.98rem; }
.a-realis__item figcaption span { font-size: 0.82rem; color: var(--a-soft); }

/* ── Avis ─────────────────────────────────────────────────── */
.a-reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.a-review { margin: 0; background: var(--a-paper); border: 1px solid var(--a-line); border-radius: 12px; padding: 1.4rem; }
.a-review__stars { color: var(--a-amber); letter-spacing: 0.12em; margin: 0 0 0.6rem; }
.a-review blockquote { margin: 0 0 0.8rem; font-size: 1rem; line-height: 1.5; }
.a-review figcaption { font-size: 0.85rem; font-weight: 600; color: var(--a-soft); }

/* ── Rail d'action persistant ─────────────────────────────── */
.a-rail { position: sticky; top: 84px; }
.a-rail__card {
  background: var(--a-paper);
  border: 1px solid var(--a-line);
  border-top: 4px solid var(--a-amber);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 20px 44px -28px rgba(15,27,45,0.5);
}
.a-rail__kicker { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--a-amber-dk); margin: 0 0 0.4rem; }
.a-rail__title { font-size: 1.3rem; margin-bottom: 1rem; }
.a-rail__phone { display: block; text-align: center; font-family: var(--a-head); font-size: 1.5rem; font-weight: 700; color: var(--a-navy); text-decoration: none; margin: 0.9rem 0 0.3rem; }
.a-rail__phone:hover { color: var(--a-amber-dk); }
.a-rail__resp { text-align: center; font-size: 0.82rem; color: var(--a-soft); margin: 0 0 1.1rem; }
.a-rail__urgent { background: #fff4f4; border: 1px solid #f5c6cb; border-radius: 10px; padding: 0.9rem; margin-bottom: 1.1rem; }
.a-rail__urgent-title { font-weight: 700; color: var(--a-urgent-dk); margin: 0 0 0.6rem; font-size: 0.95rem; }
.a-rail__hours { list-style: none; margin: 0 0 1rem; padding: 0; }
.a-rail__hours li { display: flex; justify-content: space-between; gap: 0.8rem; padding: 0.4rem 0; border-bottom: 1px solid var(--a-line); font-size: 0.88rem; }
.a-rail__hours li span:first-child { color: var(--a-soft); }
.a-rail__zone { font-size: 0.9rem; font-weight: 600; margin: 0; }

/* ── Bande dépannage urgent ───────────────────────────────── */
.a-urgent { background: var(--a-urgent); color: #fff; }
.a-urgent__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.2rem, 5vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.a-urgent__kicker { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,0.85); margin: 0 0 0.4rem; }
.a-urgent h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); color: #fff; }
.a-urgent__sub { margin: 0.5rem 0 0; color: rgba(255,255,255,0.9); }

/* ── Footer ───────────────────────────────────────────────── */
.a-foot { background: var(--a-navy); color: #b9c6d6; text-align: center; padding: 2.4rem 1.2rem; }
.a-foot__name { font-family: var(--a-head); font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 0.3rem; }
.a-foot__name span { color: var(--a-amber); }

/* ── Barre d'action mobile (cachée en desktop) ────────────── */
.a-bottombar { display: none; }

/* ── Pastille de validation (modale) ──────────────────────── */
.a-check {
  width: 64px; height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--a-amber);
  color: var(--a-navy);
  font-size: 2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  animation: a-pop 0.3s ease;
}

/* ===========================================================
   Assistant de devis (modale simulée, multi-étapes)
   =========================================================== */
.dv[hidden] { display: none; }
.dv {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.dv__overlay { position: absolute; inset: 0; background: rgba(15,27,45,0.6); backdrop-filter: blur(3px); }
.dv__panel {
  position: relative;
  background: var(--a-bg);
  border-radius: 16px;
  padding: clamp(1.6rem, 5vw, 2.4rem);
  width: 100%;
  max-width: 460px;
  box-shadow: 0 30px 70px -20px rgba(15,27,45,0.6);
  animation: a-pop 0.25s ease;
  max-height: 92vh;
  overflow-y: auto;
}
@keyframes a-pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.dv__x { position: absolute; top: 0.7rem; right: 1rem; border: none; background: none; font-size: 1.9rem; line-height: 1; color: var(--a-soft); cursor: pointer; }

.dv__steps { display: flex; gap: 0.4rem; margin-bottom: 1.2rem; }
.dv__dot { width: 28px; height: 5px; border-radius: 3px; background: var(--a-line); transition: background 0.2s; }
.dv__dot.is-on { background: var(--a-amber); }

.dv__step[hidden] { display: none; }
.dv__kicker { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--a-amber-dk); margin: 0 0 0.3rem; }
.dv__title { font-size: 1.5rem; margin-bottom: 1.1rem; }

.dv__choices { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.dv__choice {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem;
  text-align: left;
  background: var(--a-paper);
  border: 1.5px solid var(--a-line);
  border-radius: 10px;
  padding: 0.9rem;
  cursor: pointer;
  font-family: var(--a-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--a-ink);
  transition: all 0.15s;
}
.dv__choice:hover { border-color: var(--a-amber); transform: translateY(-2px); }
.dv__choice-icon { font-size: 1.4rem; }

.dv__label { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: var(--a-soft); margin: 1rem 0 0.6rem; }
.dv__pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.dv__pill {
  border: 1.5px solid var(--a-line);
  background: var(--a-paper);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-family: var(--a-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--a-ink);
  transition: all 0.15s;
}
.dv__pill:hover { border-color: var(--a-amber); }
.dv__pill.is-sel { background: var(--a-navy); color: #fff; border-color: var(--a-navy); }

.dv__fields { display: flex; flex-direction: column; gap: 0.7rem; }
.dv__input {
  border: 1.5px solid var(--a-line);
  background: var(--a-paper);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-family: var(--a-sans);
  font-size: 1rem;
  color: var(--a-ink);
}
.dv__input:focus { outline: none; border-color: var(--a-amber); }

.dv__nav { display: flex; justify-content: space-between; gap: 0.8rem; margin-top: 1.4rem; }
.dv [data-dv-step="done"] { text-align: center; }
.dv__confirm { font-size: 1.05rem; margin: 0.6rem 0 1rem; line-height: 1.5; }
.dv__note { font-size: 0.84rem; color: var(--a-soft); margin-bottom: 1.4rem; }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 900px) {
  .a-layout { grid-template-columns: 1fr; }
  /* En mobile, le rail passe sous le contenu et n'est plus collant ;
     l'action principale est reprise par la barre du bas. */
  .a-rail { position: static; order: -1; }       /* carte d'action remontée en haut */
  .a-rail__urgent, .a-rail__hours, .a-rail__zone { display: none; } /* allégé : déjà dans la page */
  .a-bottombar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 60;
    gap: 0.6rem;
    padding: 0.7rem;
    background: rgba(255,255,255,0.96);
    border-top: 1px solid var(--a-line);
    backdrop-filter: blur(6px);
  }
  .a-bottombar a, .a-bottombar button {
    flex: 1;
    text-align: center;
    border: none;
    cursor: pointer;
    font-family: var(--a-sans);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem;
    border-radius: 8px;
    text-decoration: none;
  }
  .a-bottombar__call { background: var(--a-bg); color: var(--a-navy); border: 1.5px solid var(--a-line) !important; }
  .a-bottombar__devis { background: var(--a-amber); color: var(--a-navy); }
  body.artisan { padding-bottom: 4.5rem; } /* laisse la place à la barre du bas */
}

@media (max-width: 480px) {
  .a-header__phone { display: none; }       /* le tel reste accessible via la barre du bas */
  .dv__choices { grid-template-columns: 1fr; }
}
