/* ==========================================================================
   Allo Serrurier Paris 9 — style.css
   Mobile-first • Premium Design • Performant
   ========================================================================== */

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

:root {
  --primary: #1abc9c;
  --primary-dark: #16a085;
  --primary-glow: rgba(26,188,156,.15);
  --secondary: #34495e;
  --secondary-light: #4a6278;
  --accent: #f39c12;
  --accent-light: #fdebd0;
  --light: #f8f9fa;
  --white: #ffffff;
  --gray: #6c757d;
  --gray-light: #e9ecef;
  --text: #2c3e50;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 4px 20px rgba(0,0,0,.06);
  --shadow-md: 0 6px 24px rgba(0,0,0,.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.14);
  --shadow-glow: 0 8px 32px rgba(26,188,156,.2);
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.75;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--primary-dark); }

ul { list-style: none; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   HEADER (fixe, glassmorphism)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  z-index: 1000;
  height: 80px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-link { display: flex; align-items: center; }
.logo-link img { height: 70px; width: auto; }

.header-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(26,188,156,.3);
}
.header-phone:hover {
  background: linear-gradient(135deg, var(--primary-dark), #128c7e);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(26,188,156,.4);
}
.header-phone svg { flex-shrink: 0; }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.main-nav {
  background: var(--secondary);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.nav-list a {
  display: block;
  padding: 15px 24px;
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .3px;
  transition: all var(--transition);
  position: relative;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
  transition: all var(--transition);
}

.nav-list a:hover::after,
.nav-list a.active::after {
  left: 12px; right: 12px;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--white);
  background: rgba(255,255,255,.05);
}

/* --- Spacer pour header fixe --- */
.header-spacer { height: 80px; }

/* ==========================================================================
   HERO — premium gradient + pattern
   ========================================================================== */
.hero {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(26,188,156,.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(26,188,156,.1) 0%, transparent 50%),
    linear-gradient(160deg, #2c3e50 0%, var(--secondary) 40%, #1a2530 100%);
  color: var(--white);
  padding: 70px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,.015) 40px,
    rgba(255,255,255,.015) 80px
  );
  pointer-events: none;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 18px;
  line-height: 1.25;
  position: relative;
  letter-spacing: -.5px;
}

.hero .highlight {
  color: var(--primary);
}

.hero p {
  font-size: 1.15rem;
  opacity: .9;
  margin-bottom: 28px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

/* ==========================================================================
   BOUTONS CTA — avec effet glow
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  letter-spacing: .3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(26,188,156,.3);
}
.btn-primary:hover {
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(26,188,156,.45);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.6);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--secondary);
  border-color: var(--white);
}

.btn-lg {
  padding: 18px 44px;
  font-size: 1.15rem;
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-pulse {
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(26,188,156,.3); }
  50% { box-shadow: 0 4px 28px rgba(26,188,156,.55); }
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding: 60px 0; }
.section-alt { background: var(--light); }

.section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 8px;
  text-align: center;
  letter-spacing: -.3px;
}

.section-subtitle {
  color: var(--gray);
  text-align: center;
  margin-bottom: 44px;
  font-size: 1.05rem;
}

/* Petit trait décoratif sous les titres */
.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 4px;
  margin: 14px auto 0;
}

/* ==========================================================================
   GRILLE
   ========================================================================== */
.grid {
  display: grid;
  gap: 28px;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

/* ==========================================================================
   CARTES SERVICES — design premium
   ========================================================================== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  text-align: center;
  border: 1px solid rgba(0,0,0,.04);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card:hover::before { opacity: 1; }

.card-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-glow);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all var(--transition);
}

.card:hover .card-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.card-icon svg { width: 28px; height: 28px; color: var(--primary); transition: color var(--transition); }
.card:hover .card-icon svg { color: var(--white); }

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--secondary);
}

.card p { font-size: .93rem; color: var(--gray); line-height: 1.65; }

/* ==========================================================================
   BADGES RASSURANTS — style premium
   ========================================================================== */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 30px 0;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  padding: 14px 22px;
  border-radius: 50px;
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: .9rem;
  color: var(--secondary);
  border: 1px solid rgba(26,188,156,.12);
  transition: all var(--transition);
}

.badge-item:hover {
  box-shadow: var(--shadow-glow);
  border-color: rgba(26,188,156,.3);
}

.badge-item svg { color: var(--primary); flex-shrink: 0; }

/* ==========================================================================
   ETOILES (notation visuelle)
   ========================================================================== */
.stars {
  display: inline-flex;
  gap: 3px;
  margin-bottom: 12px;
}

.stars svg { width: 22px; height: 22px; fill: var(--accent); }

/* ==========================================================================
   FAQ — accordion style
   ========================================================================== */
.faq-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,.04);
  transition: all var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(26,188,156,.15);
}

.faq-question {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.faq-question::before {
  content: '?';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  background: var(--primary-glow);
  color: var(--primary);
  border-radius: 50%;
  font-weight: 800;
  font-size: .85rem;
  flex-shrink: 0;
}

.faq-answer {
  color: var(--gray);
  font-size: .95rem;
  line-height: 1.75;
  padding-left: 38px;
}

/* ==========================================================================
   CONTENU TEXTE
   ========================================================================== */
.content-block { max-width: 800px; margin: 0 auto; }

.content-block h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--secondary);
  margin: 36px 0 14px;
  letter-spacing: -.3px;
}

.content-block h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 28px 0 10px;
}

.content-block p { margin-bottom: 16px; }

.content-block ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 16px;
}

.content-block ul li {
  margin-bottom: 8px;
  padding-left: 24px;
  position: relative;
}

.content-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

/* ==========================================================================
   CTA BANNER — premium glow
   ========================================================================== */
.cta-banner {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(255,255,255,.12) 0%, transparent 50%),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #128c7e 100%);
  color: var(--white);
  text-align: center;
  padding: 48px 32px;
  border-radius: var(--radius-lg);
  margin: 40px 0;
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -100%; right: -50%;
  width: 200%; height: 300%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 30px,
    rgba(255,255,255,.03) 30px,
    rgba(255,255,255,.03) 60px
  );
  pointer-events: none;
}

.cta-banner h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
}

.cta-banner p {
  opacity: .92;
  margin-bottom: 24px;
  font-size: 1.05rem;
  position: relative;
}

.cta-banner .btn {
  background: var(--white);
  color: var(--primary-dark);
  font-weight: 700;
  position: relative;
}
.cta-banner .btn:hover {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}

/* ==========================================================================
   SECTION PARTENAIRES
   ========================================================================== */
.partners {
  text-align: center;
  padding: 40px 0;
}

.partners p {
  font-size: .95rem;
  color: var(--gray);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

.partners a {
  font-weight: 700;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 2px;
  transition: all var(--transition);
}

.partners a:hover {
  color: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* ==========================================================================
   CONTACT INFO BLOCK
   ========================================================================== */
.contact-info {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid rgba(0,0,0,.04);
}

.contact-info h2,
.contact-info h3 {
  color: var(--secondary);
  margin-bottom: 20px;
  font-weight: 800;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  padding: 14px;
  background: var(--white);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.contact-detail:hover {
  box-shadow: var(--shadow);
}

.contact-detail svg {
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 3px;
}

.zone-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.zone-tag {
  background: var(--primary-glow);
  color: var(--primary-dark);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.zone-tag:hover {
  border-color: rgba(26,188,156,.3);
  background: rgba(26,188,156,.2);
}

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */
.breadcrumb {
  padding: 14px 0;
  font-size: .85rem;
  color: var(--gray);
}

.breadcrumb a { color: var(--primary); font-weight: 500; }
.breadcrumb span { margin: 0 8px; opacity: .5; }

/* ==========================================================================
   FOOTER — premium dark
   ========================================================================== */
.site-footer {
  background: linear-gradient(180deg, var(--secondary) 0%, #1a2530 100%);
  color: rgba(255,255,255,.75);
  padding: 50px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 30px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}

.footer-col p, .footer-col a {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  line-height: 1.85;
}

.footer-col a:hover { color: var(--primary); }

.footer-nav a {
  display: block;
  padding: 4px 0;
  transition: all var(--transition);
}

.footer-nav a:hover { padding-left: 6px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

/* ==========================================================================
   PHONE STICKY MOBILE — glow effect
   ========================================================================== */
.phone-sticky {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  text-align: center;
  padding: 16px;
  font-weight: 700;
  font-size: 1.1rem;
  z-index: 999;
  box-shadow: 0 -4px 20px rgba(26,188,156,.3);
}
.phone-sticky:hover { color: var(--white); background: linear-gradient(135deg, var(--primary-dark), #128c7e); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (min-width: 600px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .hero h1 { font-size: 2.8rem; }
  .hero { padding: 90px 0 80px; }
  .section { padding: 70px 0; }
  .section-title { font-size: 2.1rem; }

  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }

  .site-header { height: 90px; }
  .header-inner { height: 90px; }
  .header-spacer { height: 90px; }
  .logo-link img { height: 80px; }
}

@media (max-width: 599px) {
  .phone-sticky { display: block; }
  body { padding-bottom: 58px; }

  .header-phone span { display: none; }
  .header-phone { padding: 12px 16px; border-radius: 50%; }

  .nav-list { flex-direction: column; }
  .nav-list a { padding: 13px 24px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-list a::after { display: none; }

  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 1rem; }
  .hero { padding: 50px 0 40px; }
  .btn-lg { padding: 14px 30px; font-size: 1rem; }

  .section { padding: 40px 0; }

  .faq-item { padding: 18px 20px; }
  .faq-answer { padding-left: 0; }
}

/* ==========================================================================
   UTILITAIRES
   ========================================================================== */
.text-center { text-align: center; }
.mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
