/* ==========================================
   PORTAIL BXL — Artisan indépendant
   Mobile-first, urgence-first
   ========================================== */

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

:root {
  --orange:      #f97316;
  --orange-dark: #ea580c;
  --orange-glow: rgba(249,115,22,.25);
  --black:       #0a0a0a;
  --dark:        #111827;
  --dark-card:   #1a2332;
  --grey:        #f4f4f5;
  --text:        #1e293b;
  --muted:       #64748b;
  --white:       #ffffff;
  --green:       #22c55e;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow:      0 4px 20px rgba(0,0,0,.08);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.14);
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --max-w:       1160px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: var(--font); }
strong { font-weight: 700; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ---------- Section base ---------- */
.section { padding: 4.5rem 0; }
.section--grey { background: var(--grey); }
.section--dark { background: var(--dark); color: var(--white); }
.section--contact { background: var(--black); color: var(--white); }

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: .6rem;
  line-height: 1.2;
}
.section-sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

/* ==========================================
   TOP BAR
   ========================================== */
.topbar {
  background: var(--orange);
  color: var(--white);
  font-size: .82rem;
  font-weight: 600;
  text-align: center;
  padding: .55rem 1rem;
  letter-spacing: .02em;
  transition: opacity .3s, max-height .3s;
}
.topbar.hidden { opacity: 0; max-height: 0; overflow: hidden; padding: 0; }
.topbar-inner { display: flex; align-items: center; justify-content: center; gap: .5rem; }
.avail-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--white);
  border-radius: 50%;
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity:1; }
  50%      { opacity:.3; }
}

/* ==========================================
   HERO
   ========================================== */
.hero {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 80% 60%, rgba(249,115,22,.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 10%, rgba(249,115,22,.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .9rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px; height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.hero h1 {
  font-size: clamp(2.2rem, 8vw, 3.8rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
  color: var(--white);
}
.hero h1 em {
  font-style: normal;
  color: var(--orange);
  display: block;
}

.hero-desc {
  color: rgba(255,255,255,.7);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2rem;
}
.hero-desc strong { color: var(--white); }

/* CTA Phone */
.cta-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--orange);
  color: var(--white);
  padding: .8rem 1.4rem;
  border-radius: var(--radius);
  transition: background .2s, transform .15s, box-shadow .2s;
  width: fit-content;
  box-shadow: 0 4px 16px var(--orange-glow);
  margin-bottom: 1rem;
  cursor: pointer;
  border: none;
}
.cta-phone:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(249,115,22,.35);
}
.cta-phone:active { transform: translateY(0); }
.cta-phone-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .8;
  margin-bottom: .1rem;
}
.cta-phone-number {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1;
}
/* Big variant — section "Pourquoi Bernard" et footer */
.cta-phone--big { padding: 1rem 1.75rem; border-radius: var(--radius-lg); box-shadow: 0 6px 24px var(--orange-glow); }
.cta-phone--big .cta-phone-number { font-size: 1.8rem; font-weight: 900; }

/* CTA group (phone + whatsapp) */
.cta-group {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.cta-group .cta-phone { margin-bottom: 0; }

.cta-whatsapp {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #25d366;
  color: var(--white);
  padding: .8rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.cta-whatsapp:hover { background: #1ebe5d; transform: translateY(-1px); }

/* Trust pills */
.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.trust-pill {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.8);
  font-size: .8rem;
  font-weight: 600;
  padding: .35rem .8rem;
  border-radius: 100px;
}

/* Hero card (right side) */
.hero-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(8px);
}
.hcard-avatar {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}
.avatar-circle {
  width: 72px; height: 72px;
  background: rgba(249,115,22,.15);
  border: 2px solid rgba(249,115,22,.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
}
.online-badge {
  position: absolute;
  bottom: 4px; right: 4px;
  width: 14px; height: 14px;
  background: var(--green);
  border-radius: 50%;
  border: 2px solid var(--dark);
  animation: blink 2s ease-in-out infinite;
}
.hcard-info { margin-bottom: 1.25rem; }
.hcard-info strong {
  display: block;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: .15rem;
}
.hcard-info span {
  display: block;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}
.hcard-zone { font-size: .8rem !important; margin-top: .25rem; }

.hcard-stats {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hstat { text-align: center; }
.hstat b {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--orange);
}
.hstat span { font-size: .72rem; color: rgba(255,255,255,.5); }

.hcard-types {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.hcard-types span {
  background: rgba(249,115,22,.12);
  border: 1px solid rgba(249,115,22,.25);
  color: #fdba74;
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .65rem;
  border-radius: 100px;
}

/* ==========================================
   SOCIAL PROOF BAR
   ========================================== */
.social-proof-bar {
  background: var(--grey);
  border-top: 1px solid rgba(0,0,0,.06);
  border-bottom: 1px solid rgba(0,0,0,.06);
  padding: 1.5rem 1.25rem;
}
.spb-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}
.spb-sep { width: 100%; height: 1px; background: rgba(0,0,0,.08); }
.spb-item { }
.spb-stars { color: #f59e0b; font-size: 1rem; display: block; margin-bottom: .2rem; }
.spb-item p { font-size: .88rem; color: var(--text); line-height: 1.5; margin-bottom: .2rem; }
.spb-item strong { font-size: .78rem; color: var(--muted); font-weight: 600; }

/* ==========================================
   PANNES
   ========================================== */
.pannes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.panne-card {
  background: var(--white);
  border: 1.5px solid rgba(0,0,0,.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  box-shadow: var(--shadow);
}
.panne-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,.1);
}
.panne-card--urgent {
  border-color: var(--orange);
  background: linear-gradient(135deg, #fff7ed 0%, var(--white) 60%);
  position: relative;
}

.panne-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
}
.panne-icon { font-size: 1.5rem; line-height: 1; }
.panne-badge {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  background: var(--orange);
  color: var(--white);
  padding: .2rem .6rem;
  border-radius: 100px;
}

.panne-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .4rem;
  color: var(--text);
}
.panne-card p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: .75rem;
}
.panne-price {
  font-size: .85rem;
  font-weight: 600;
  color: var(--orange);
}
.panne-price strong { font-size: 1rem; }

/* ==========================================
   À PROPOS (dark)
   ========================================== */
.apropos-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
.apropos-text h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 2rem;
  line-height: 1.2;
  color: var(--white);
}
.apropos-text h2 em {
  color: var(--orange);
  font-style: normal;
}

.apropos-points { display: flex; flex-direction: column; gap: 1.75rem; }

.ap {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.ap-num {
  font-size: .8rem;
  font-weight: 800;
  color: var(--orange);
  border: 1.5px solid rgba(249,115,22,.35);
  border-radius: 6px;
  padding: .25rem .5rem;
  flex-shrink: 0;
  letter-spacing: .04em;
  line-height: 1.4;
}
.ap strong {
  display: block;
  font-size: .95rem;
  color: var(--white);
  margin-bottom: .3rem;
}
.ap p {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
}

/* CTA block aside */
.apropos-cta-block {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
}
.acb-label {
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.5);
}
.acb-hours {
  font-size: .82rem;
  color: rgba(255,255,255,.4);
  margin-top: -.25rem;
}

/* ==========================================
   TYPES DE PORTES
   ========================================== */
.types-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.type-item {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  background: var(--white);
  border: 1.5px solid rgba(0,0,0,.07);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  transition: border-color .2s, transform .2s;
}
.type-item:hover { border-color: var(--orange); transform: translateX(4px); }
.type-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1.4;
  color: var(--orange);
}
.type-item strong {
  display: block;
  font-size: .97rem;
  margin-bottom: .2rem;
  color: var(--text);
}
.type-item p { font-size: .85rem; color: var(--muted); margin: 0; }

/* ==========================================
   ZONES
   ========================================== */
.communes-wrap { }
.communes {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .4rem .75rem;
}
.communes li {
  font-size: .88rem;
  color: var(--muted);
  padding-left: 1rem;
  position: relative;
}
.communes li::before { content: '→'; position: absolute; left: 0; color: var(--orange); font-size: .75rem; line-height: 1.6; }

/* ==========================================
   AVIS
   ========================================== */
.avis-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.avis-card {
  background: var(--white);
  border: 1.5px solid rgba(0,0,0,.07);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}
.avis-card:hover { border-color: #f59e0b; box-shadow: 0 8px 30px rgba(0,0,0,.09); }
.avis-stars { color: #f59e0b; font-size: 1.1rem; margin-bottom: .75rem; letter-spacing: .05em; }
.avis-card p {
  font-size: .92rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: .9rem;
  font-style: italic;
}
.avis-card footer strong { font-size: .85rem; color: var(--text); }
.avis-card footer time { font-size: .78rem; color: var(--muted); }
.avis-card footer { display: flex; align-items: center; gap: .5rem; }
.reviews-legal {
  margin-top: 1.5rem;
  font-size: .75rem;
  color: var(--muted);
  text-align: center;
  opacity: .7;
}

.avis-card footer::before {
  content: '';
  display: inline-block;
  width: 18px; height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

/* ==========================================
   FAQ
   ========================================== */
.faq-container { max-width: 760px; }
.faq {
  border: 1.5px solid rgba(0,0,0,.09);
  border-radius: var(--radius);
  background: var(--white);
  margin-bottom: .6rem;
  overflow: hidden;
  transition: border-color .2s;
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
}
.faq[open] { border-color: var(--orange); }
.faq summary {
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background .15s;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--orange);
  flex-shrink: 0;
  line-height: 1;
  transition: transform .2s;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { background: var(--grey); }
.faq p {
  padding: 0 1.25rem 1.1rem;
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ==========================================
   CONTACT FINAL
   ========================================== */
.contact-final {
  text-align: center;
  max-width: 560px;
}
.contact-final h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: .5rem;
}
.contact-final > p {
  color: rgba(255,255,255,.55);
  font-size: 1rem;
  margin-bottom: 2rem;
}
.cta-phone--center { align-items: center; margin-inline: auto; }
.contact-hours {
  margin-top: 1.25rem;
  font-size: .85rem;
  color: rgba(255,255,255,.4);
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
  background: #050a12;
  color: rgba(255,255,255,.5);
  padding: 2rem 1.25rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: var(--max-w);
  margin-inline: auto;
}
.footer-name { font-size: .9rem; font-weight: 700; color: var(--white); margin-bottom: .15rem; }
.footer-tagline { font-size: .78rem; }

.site-footer nav { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; }
.site-footer nav a { font-size: .82rem; color: rgba(255,255,255,.4); transition: color .15s; }
.site-footer nav a:hover { color: var(--orange); }

.footer-copy { font-size: .78rem; }
.footer-copy a { color: rgba(255,255,255,.3); transition: color .15s; }
.footer-copy a:hover { color: var(--orange); }

/* ==========================================
   STICKY MOBILE BAR
   ========================================== */
.sticky-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  display: flex;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 -4px 20px rgba(0,0,0,.2);
}
.sticky-bar.is-visible { transform: translateY(0); }
.sticky-call {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1.1rem;
  background: var(--orange);
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -.01em;
  transition: background .15s;
}
.sticky-call:hover { background: var(--orange-dark); }
.sticky-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1.1rem 1.25rem;
  background: #25d366;
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  transition: background .15s;
  border-left: 1px solid rgba(255,255,255,.2);
}
.sticky-whatsapp:hover { background: #1ebe5d; }

/* Floating WhatsApp (desktop only) */
.float-whatsapp {
  display: none;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  z-index: 998;
  transition: transform .2s, box-shadow .2s;
}
.float-whatsapp:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,.55);
}

/* ==========================================
   REVEAL ANIMATION
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .45s ease, transform .45s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.panne-card:nth-child(2).reveal { transition-delay: .06s; }
.panne-card:nth-child(3).reveal { transition-delay: .12s; }
.panne-card:nth-child(4).reveal { transition-delay: .18s; }
.panne-card:nth-child(5).reveal { transition-delay: .24s; }
.panne-card:nth-child(6).reveal { transition-delay: .30s; }
.avis-card:nth-child(2).reveal  { transition-delay: .08s; }
.avis-card:nth-child(3).reveal  { transition-delay: .16s; }
.avis-card:nth-child(4).reveal  { transition-delay: .24s; }

/* ==========================================
   RESPONSIVE — Tablet 640px+
   ========================================== */
@media (min-width: 640px) {
  .pannes-grid      { grid-template-columns: 1fr 1fr; }
  .types-list       { grid-template-columns: 1fr 1fr; }
  .avis-grid        { grid-template-columns: 1fr 1fr; }
  .communes         { grid-template-columns: 1fr 1fr 1fr; }
  .spb-inner        { flex-direction: row; align-items: center; }
  .spb-sep          { width: 1px; height: 48px; flex-shrink: 0; }
  .spb-item         { flex: 1; }
}

/* ==========================================
   RESPONSIVE — Desktop 960px+
   ========================================== */
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .sticky-bar { display: none; }
  .float-whatsapp { display: flex; }

  .hero { padding: 5rem 0 6rem; }
  .hero-inner { grid-template-columns: 1.1fr .9fr; gap: 4rem; }

  .pannes-grid  { grid-template-columns: repeat(3, 1fr); }
  .types-list   { grid-template-columns: repeat(4, 1fr); }
  .avis-grid    { grid-template-columns: repeat(2, 1fr); }
  .communes     { grid-template-columns: repeat(4, 1fr); }

  .apropos-wrap { grid-template-columns: 1fr 380px; gap: 5rem; align-items: start; }

  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 1100px) {
  .avis-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
