/* ==========================================================================
   SOS Serrurerie Et Services — style.css
   Charte graphique : fond #231F20 / principal #002F5B / secondaire #B6B6B6 / tertiaire #366694
   ========================================================================== */

:root {
  --bg: #231F20;
  --primary: #002F5B;
  --primary-light: #043e73;
  --secondary: #B6B6B6;
  --tertiary: #366694;
  --tertiary-light: #4d84b8;
  --white: #ffffff;
  --error: #ff6b6b;
  --success: #4caf82;
  --danger: #e5342a;
  --danger-light: #ff4b3f;

  --font-title: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 16px 40px rgba(54, 102, 148, 0.45);

  --transition: 0.25s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 1rem;
}
p { margin: 0 0 1rem; color: var(--secondary); }
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
section { padding: 5rem 0; }

/* ---------- Accessibilité ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--tertiary);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 2000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--tertiary-light);
  outline-offset: 2px;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.btn-call {
  background: var(--tertiary);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(54, 102, 148, 0.5);
}
.btn-call:hover, .btn-call:focus-visible {
  background: var(--tertiary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.btn-call:active { transform: translateY(0) scale(0.98); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}
.btn-danger {
  background: var(--danger);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(229, 52, 42, 0.5);
}
.btn-danger:hover, .btn-danger:focus-visible {
  background: var(--danger-light);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(229, 52, 42, 0.45);
}
.btn-danger:active { transform: translateY(0) scale(0.98); }
.btn-lg { padding: 1.05rem 2.1rem; font-size: 1.05rem; }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(0, 47, 91, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}
.navbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}
.navbar-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}
.navbar-brand-text {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--white);
}
.navbar-brand-text small { color: var(--secondary); font-weight: 500; font-size: 0.78em; }

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
}
.navbar-links {
  display: flex;
  gap: 1.5rem;
}
.nav-link {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--white);
  position: relative;
  padding: 0.4rem 0;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--tertiary-light);
  transition: width var(--transition);
}
.nav-link:hover, .nav-link:focus-visible { color: var(--tertiary-light); }
.nav-link:hover::after, .nav-link:focus-visible::after { width: 100%; }

.navbar-call { padding: 0.65rem 1.3rem; font-size: 0.9rem; }
.navbar-call .icon { width: 16px; height: 16px; }

.navbar-urgent {
  padding: 0.6rem 1.15rem;
  font-size: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.navbar-urgent-short { display: none; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.burger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: transform var(--transition), opacity var(--transition);
  margin: 0 auto;
}
.burger.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: url('assets/banniere-serrurier-et-services.jpg') center 55% / cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(35,31,32,0.55) 0%, rgba(0,47,91,0.75) 55%, rgba(35,31,32,0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  color: var(--white);
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--white);
  opacity: 0.92;
  max-width: 640px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* ---------- Groupes de boutons génériques (call + contact) ---------- */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ==========================================================================
   REASSURANCE STRIP
   ========================================================================== */
.reassurance {
  background: var(--primary);
  padding: 2.75rem 0;
}
.reassurance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.reassurance-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.reassurance-item p { color: var(--white); font-family: var(--font-title); font-weight: 600; font-size: 0.95rem; margin: 0; }
.icon-lg { width: 40px; height: 40px; fill: var(--tertiary-light); }

/* ==========================================================================
   SECTION TITLES (shared)
   ========================================================================== */
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--white);
  text-align: center;
  max-width: 780px;
  margin: 0 auto 1rem;
}
.section-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}
.about-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  width: 100%;
  height: auto;
}
.about-text h2 { color: var(--white); font-size: clamp(1.5rem, 2.8vw, 2.1rem); }

/* ==========================================================================
   CARDS GRID (prestations)
   ========================================================================== */
.services-overview { background: linear-gradient(180deg, var(--bg) 0%, #1b1718 100%); }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.card {
  background: var(--primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.card img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { color: var(--white); font-size: 1.15rem; }
.card-body p { flex: 1; font-size: 0.95rem; }
.card-link {
  color: var(--tertiary-light);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color var(--transition);
}
.card-link:hover { color: var(--white); }

/* ==========================================================================
   SERVICE DETAIL SECTIONS
   ========================================================================== */
.service-detail-alt { background: #1b1718; }
.service-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}
.service-detail-grid-reverse .service-image { order: 2; }
.service-detail-grid-reverse .service-text { order: 1; }
.service-text h2 { color: var(--white); font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.service-text h3 { color: var(--white); font-size: 1.2rem; margin-top: 1.5rem; }
.service-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  width: 100%;
  height: auto;
}
.service-list { margin-bottom: 1.5rem; }
.service-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
  color: var(--secondary);
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--tertiary-light);
}

/* ==========================================================================
   NOS TARIFS
   ========================================================================== */
.pricing { background: #1b1718; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 820px;
  margin: 0 auto;
}
.pricing-card {
  background: linear-gradient(160deg, var(--primary) 0%, #001d3b 100%);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition);
}
.pricing-card:hover { transform: translateY(-6px); }
.pricing-card h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 0.75rem; }
.pricing-price {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 2.75rem;
  color: var(--tertiary-light);
  margin: 0 0 0.75rem;
}
.pricing-card p:last-child { margin: 0; font-size: 0.92rem; }
.pricing-note {
  text-align: center;
  max-width: 720px;
  margin: 2rem auto 0;
  font-size: 0.88rem;
}
.pricing-cta { justify-content: center; margin-top: 2rem; }

/* ==========================================================================
   ZONE D'INTERVENTION
   ========================================================================== */
.zone { background: var(--primary); }
.zone-subtitle {
  color: var(--white);
  text-align: center;
  font-size: 1.15rem;
  margin: 2.5rem 0 1.25rem;
}
.city-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  max-width: 950px;
  margin: 0 auto;
}
.city-tags li {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
  font-size: 0.88rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  transition: background var(--transition), transform var(--transition);
}
.city-tags li:hover { background: var(--tertiary); transform: translateY(-2px); }
.zone-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

/* ==========================================================================
   POURQUOI NOUS CHOISIR
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.why-card {
  background: linear-gradient(160deg, var(--primary) 0%, #001d3b 100%);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition);
}
.why-card:hover { transform: translateY(-6px); }
.why-card h3 { color: var(--white); font-size: 1.1rem; margin: 1rem 0 0.6rem; }
.why-card p { font-size: 0.92rem; margin: 0; }
.why-card .icon-lg { margin: 0 auto; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  background: var(--primary);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: transparent;
  border: none;
  color: var(--white);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
}
.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--tertiary);
  font-size: 1.2rem;
  transition: transform var(--transition);
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding var(--transition);
  padding: 0 1.5rem;
}
.faq-answer p { margin: 0 0 1.25rem; font-size: 0.95rem; }
.faq-item.is-open .faq-answer { max-height: 300px; }
.faq-cta { text-align: center; margin-top: 3rem; justify-content: center; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 3rem;
  align-items: start;
}
.contact-form-wrap .section-title,
.contact-form-wrap .section-intro { text-align: left; margin-left: 0; }
.form-group { margin-bottom: 1.35rem; }
.form-group label {
  display: block;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  margin-bottom: 0.45rem;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(182,182,182,0.3);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition), background var(--transition);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--secondary); }
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--tertiary-light);
  background: rgba(255,255,255,0.08);
}
.form-group input.has-error, .form-group textarea.has-error {
  border-color: var(--error);
  background: rgba(255,107,107,0.08);
}
.form-error {
  display: block;
  color: var(--error);
  font-size: 0.82rem;
  margin-top: 0.4rem;
  min-height: 1.1em;
}
.btn-submit { width: 100%; margin-top: 0.5rem; }
.form-success {
  margin-top: 1rem;
  color: var(--success);
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 1.2em;
}

.contact-info {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.contact-info h3 { color: var(--white); font-size: 1.2rem; }
.contact-phone-btn { width: 100%; margin: 1rem 0; }
.contact-availability {
  color: var(--tertiary-light);
  font-weight: 600;
  font-family: var(--font-title);
}
.contact-info a[href^="mailto"] { color: var(--white); text-decoration: underline; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #17141a;
  padding: 4rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.4fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.footer-brand img { width: 64px; height: 64px; border-radius: 50%; }
.footer-brand p { font-family: var(--font-title); font-weight: 700; color: var(--white); margin: 0; }
.footer-col h3 { color: var(--white); font-size: 1rem; margin-bottom: 1rem; }
.footer-col p { font-size: 0.9rem; }
.footer-col a:hover { color: var(--tertiary-light); }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { font-size: 0.9rem; color: var(--secondary); transition: color var(--transition); }
.footer-links a:hover { color: var(--tertiary-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.footer-bottom p { margin: 0; font-size: 0.82rem; }
.footer-bottom a { font-size: 0.82rem; color: var(--secondary); text-decoration: underline; }
.footer-bottom a:hover { color: var(--tertiary-light); }

/* ==========================================================================
   STICKY MOBILE CTA BAR
   ========================================================================== */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1500;
  background: var(--primary);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}
.mobile-cta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
}
.mobile-cta-call { background: var(--tertiary); }
.mobile-cta-arrive { background: var(--danger); }
.mobile-cta-btn .icon { width: 18px; height: 18px; fill: currentColor; }
.mobile-cta-btn:active { filter: brightness(0.9); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .about-grid, .service-detail-grid, .contact-grid { grid-template-columns: 1fr; }
  .service-detail-grid-reverse .service-image,
  .service-detail-grid-reverse .service-text { order: initial; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .reassurance-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .navbar-inner { gap: 0.6rem; padding: 0.6rem 1rem; }
  .navbar-urgent { padding: 0.55rem 0.9rem; font-size: 0.8rem; }
  .navbar-menu {
    position: fixed;
    top: 68px;
    left: 0; right: 0;
    background: var(--primary);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.5rem 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
  }
  .navbar-menu.is-open { transform: translateY(0); opacity: 1; }
  .navbar-links { flex-direction: column; gap: 0; }
  .navbar-links li { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-link { display: block; padding: 0.9rem 0; }
  .navbar-call { margin-top: 1rem; justify-content: center; }
  .navbar-contact-quick { margin-top: 0.75rem; justify-content: center; }
  .burger { display: flex; }

  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 60px; }

  .cards-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { align-items: flex-start; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .cta-group { flex-direction: column; align-items: stretch; }
}

@media (max-width: 430px) {
  .navbar-brand-text small { display: none; }
  .navbar-logo { width: 38px; height: 38px; }
  .navbar-urgent-full { display: none; }
  .navbar-urgent-short { display: inline; }
  .navbar-urgent { padding: 0.5rem 0.75rem; }
}
