/* ============================================================
   Vitrier Bourg-en-Bresse - Professional Glazier Website Styles
   Mobile-first, responsive, modern design
   ============================================================ */

/* --- CSS Variables & Reset --- */
:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --primary-light: #e8f0fe;
  --white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-gray: #f0f2f5;
  --text-dark: #1a1a2e;
  --text-gray: #5f6368;
  --text-light: #9aa0a6;
  --border: #dadce0;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --max-width: 1200px;
  --header-height: 60px;
  --phone-bar-height: 48px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

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

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

body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: calc(var(--header-height) + var(--phone-bar-height));
}

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 { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* --- Phone Bar (Sticky Top) --- */
.phone-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--phone-bar-height);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.phone-bar a {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.5px;
}

.phone-bar .phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  font-size: 16px;
}

.phone-bar .phone-text {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.9;
  display: none;
}

@media (min-width: 480px) {
  .phone-bar .phone-text { display: inline; }
}

/* --- Main Header / Navigation --- */
.main-header {
  position: fixed;
  top: var(--phone-bar-height);
  left: 0;
  right: 0;
  z-index: 999;
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
}

.logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.logo span { color: var(--primary); }

/* --- Navigation --- */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-menu {
  position: fixed;
  top: calc(var(--header-height) + var(--phone-bar-height));
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  padding: 16px 20px;
  max-height: calc(100vh - var(--header-height) - var(--phone-bar-height));
  overflow-y: auto;
}

.nav-menu.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-menu a {
  display: block;
  padding: 10px 0;
  color: var(--text-dark);
  font-weight: 500;
  border-bottom: 1px solid var(--bg-gray);
  font-size: 0.95rem;
}

.nav-menu a:last-child { border-bottom: none; }
.nav-menu a:hover,
.nav-menu a.active { color: var(--primary); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-menu {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    max-height: none;
    overflow: visible;
  }
  .nav-menu a {
    padding: 8px 14px;
    border-bottom: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: background var(--transition), color var(--transition);
  }
  .nav-menu a:hover,
  .nav-menu a.active {
    background: var(--primary-light);
    color: var(--primary);
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(26,115,232,0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(26,115,232,0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.btn-phone {
  background: #25d366;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(37,211,102,0.3);
}

.btn-phone:hover {
  background: #1da851;
  color: var(--white);
  transform: translateY(-1px);
}

.btn-lg { padding: 18px 36px; font-size: 1.1rem; }

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

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: var(--white);
  padding: 60px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.9);
}

.hero h1 {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero h1 .highlight { color: #4da6ff; }

.hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.hero-actions .btn { min-width: 240px; }

.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.hero-features span {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
}

@media (min-width: 480px) {
  .hero h1 { font-size: 2.2rem; }
  .hero-actions { flex-direction: row; justify-content: center; }
}

@media (min-width: 768px) {
  .hero { padding: 80px 0 60px; }
  .hero h1 { font-size: 2.8rem; }
  .hero p { font-size: 1.1rem; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 3.2rem; }
}

/* --- Section Common --- */
.section {
  padding: 50px 0;
}

.section-alt { background: var(--bg-light); }
.section-gray { background: var(--bg-gray); }

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto 36px;
  font-size: 1rem;
}

@media (min-width: 768px) {
  .section { padding: 70px 0; }
  .section-title { font-size: 2rem; }
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

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

.service-card .icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-bottom: 16px;
  flex: 1;
}

.service-card .btn { align-self: flex-start; }

@media (min-width: 600px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Cities Grid --- */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
}

.city-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

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

.city-card .city-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.city-card .city-info h3 { font-size: 1rem; margin-bottom: 4px; }
.city-card .city-info p { font-size: 0.85rem; color: var(--text-gray); }
.city-card .city-arrow { margin-left: auto; color: var(--text-light); font-size: 1.2rem; }

@media (min-width: 600px) {
  .cities-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .cities-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Why Us Section --- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-item .fi-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-item h4 { font-size: 1rem; margin-bottom: 4px; }
.feature-item p { font-size: 0.88rem; color: var(--text-gray); }

@media (min-width: 600px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 50px 20px;
}

.cta-banner h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-secondary {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.cta-banner .btn-secondary:hover {
  background: rgba(255,255,255,0.15);
}

@media (min-width: 768px) {
  .cta-banner { padding: 70px 20px; }
  .cta-banner h2 { font-size: 2rem; }
}

/* --- Contact / Info Section --- */
.info-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  text-align: center;
}

.info-card .ic-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 12px;
}

.info-card h3 { font-size: 1rem; margin-bottom: 6px; }
.info-card p, .info-card a { font-size: 0.9rem; color: var(--text-gray); }
.info-card a { color: var(--primary); font-weight: 500; }

@media (min-width: 600px) {
  .info-cards { grid-template-columns: repeat(3, 1fr); }
}

/* --- Page Content (inner pages) --- */
.page-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
  color: var(--white);
  padding: 40px 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 1.6rem;
  font-weight: 800;
}

.page-hero p {
  color: rgba(255,255,255,0.8);
  margin-top: 8px;
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .page-hero { padding: 50px 0; }
  .page-hero h1 { font-size: 2.2rem; }
}

.content-section {
  padding: 40px 0;
}

.content-section h2 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  margin-top: 32px;
}

.content-section h2:first-child { margin-top: 0; }

.content-section p {
  color: var(--text-gray);
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.content-section ul {
  margin-bottom: 20px;
  padding-left: 0;
}

.content-section ul li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--text-gray);
  font-size: 0.95rem;
}

.content-section ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

@media (min-width: 768px) {
  .content-section { padding: 60px 0; }
  .content-section h2 { font-size: 1.5rem; }
}

/* --- Contact Page Specific --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item .ci-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-item h4 { font-size: 0.95rem; margin-bottom: 2px; }
.contact-item p, .contact-item a { font-size: 0.9rem; color: var(--text-gray); }
.contact-item a { color: var(--text-dark); font-weight: 500; }
.contact-item a:hover { color: var(--primary); }

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  background: var(--bg-light);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}

.breadcrumbs a { color: var(--text-gray); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span { color: var(--text-light); }
.breadcrumbs .sep { margin: 0 8px; color: var(--text-light); }

/* --- Footer --- */
.main-footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.7);
  padding: 40px 0 0;
}

.main-footer .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 14px;
  font-weight: 600;
}

.footer-col p { font-size: 0.88rem; line-height: 1.7; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.88rem; display: block; padding: 4px 0; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 30px;
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

@media (min-width: 600px) {
  .main-footer .container { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .main-footer .container { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-30 { margin-top: 30px; }
.mb-30 { margin-bottom: 30px; }

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

/* --- Print Styles --- */
@media print {
  .phone-bar, .main-header, .nav-menu, .btn, .cta-banner { display: none !important; }
  body { padding-top: 0; }
}
