/* ========================================
   PROELYS Bâtiment
   /css/style.css?v=1
   ======================================== */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Segoe UI', Arial, sans-serif; color: #1e2a3a; background: #f1f5f9; line-height: 1.7; }

/* Variables */
:root {
  --navy: #0f172a;
  --navy-mid: #1e293b;
  --blue: #3b82f6;
  --blue-dark: #2563eb;
  --light: #f1f5f9;
  --white: #ffffff;
  --gray-light: #e2e8f0;
  --gray-text: #64748b;
  --shadow: 0 4px 20px rgba(15,23,42,0.14);
  --radius: 8px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.25; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
p { margin-bottom: 1.1em; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
ul, ol { padding-left: 1.5em; margin-bottom: 1em; }
li { margin-bottom: .4em; }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--navy);
  border-bottom: 3px solid var(--blue);
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px;
}
.site-logo img { height: 52px; width: auto; display: block; }
.site-nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.site-nav a {
  color: #e2e8f0; font-weight: 600; padding: 8px 14px; border-radius: var(--radius);
  transition: background .2s, color .2s; font-size: .95rem; letter-spacing: .02em;
}
.site-nav a:hover, .site-nav a.active { background: var(--blue); color: #fff; text-decoration: none; }
.nav-toggle { display: none; background: none; border: 2px solid var(--blue); color: #e2e8f0; padding: 8px 12px; border-radius: var(--radius); cursor: pointer; font-size: 1.2rem; }

/* VIDEO HERO */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg,rgba(15,23,42,0.88) 0%,rgba(30,40,60,0.45) 50%,rgba(15,23,42,0.92) 100%); z-index: 1; }
.hero-video { background-color: #0f172a; }
.hero-video-bg { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; transform: translate(-50%,-50%); object-fit: cover; z-index: 0; opacity: 0.45; pointer-events: none; }
.hero-content { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 0 24px; color: #fff; }
.hero-content h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.8rem); margin-bottom: 1.2rem; max-width: 700px; }
.hero-content h1 span { color: var(--blue); }
.hero-content p { color: #cbd5e1; font-size: 1.15rem; max-width: 560px; margin-bottom: 2rem; }
.hero-badge { display: inline-block; background: var(--blue); color: #fff; font-size: .85rem; font-weight: 700; padding: 6px 14px; border-radius: 20px; margin-bottom: 1.5rem; letter-spacing: .05em; text-transform: uppercase; }

/* Standard Hero (inner pages) */
.page-hero {
  background: var(--navy); color: #e2e8f0;
  padding: 80px 24px; text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 1rem; }
.page-hero p { color: #94a3b8; font-size: 1.15rem; max-width: 640px; margin: 0 auto; }

/* Banner with CSS background */
.banner-section {
  position: relative; padding: 100px 24px; text-align: center; overflow: hidden;
  background-image: url('/images/vue-colomiers.jpg');
  background-size: cover; background-position: center; background-attachment: fixed;
}
.banner-section::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(15,23,42,.82); z-index: 0;
}
.banner-section > * { position: relative; z-index: 1; }
.banner-section h2, .banner-section p { color: #e2e8f0; }
.banner-section p { max-width: 640px; margin: 0 auto 2rem; font-size: 1.1rem; color: #94a3b8; }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 32px; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; cursor: pointer; border: 2px solid transparent;
  transition: all .2s; text-decoration: none !important; letter-spacing: .03em;
}
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-white { background: #fff; color: var(--navy); border-color: #fff; }
.btn-white:hover { background: #e2e8f0; }
.btn-lg { padding: 18px 40px; font-size: 1.1rem; }
.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--gray-light); }
.section-dark { background: var(--navy); color: #e2e8f0; }
.section-dark h2, .section-dark h3 { color: #fff; }

/* Section headers */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { margin-bottom: .8rem; }
.section-header p { color: var(--gray-text); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.section-divider { width: 60px; height: 4px; background: var(--blue); margin: 16px auto 0; border-radius: 2px; }

/* 2-col grid */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 380px; object-fit: cover; }
@media(max-width:900px){ .two-col { grid-template-columns: 1fr; } .two-col img { height: 260px; } .two-col.reverse { direction: ltr; } }

/* Services grid */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.service-card {
  background: var(--white); border-radius: var(--radius); padding: 36px 28px;
  box-shadow: var(--shadow); border-top: 4px solid var(--blue);
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(15,23,42,.2); }
.service-icon { font-size: 2.4rem; margin-bottom: 1rem; }
.service-card h3 { margin-bottom: .7rem; font-size: 1.2rem; }
.service-card p { color: var(--gray-text); font-size: .95rem; margin: 0; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.stat-item { text-align: center; padding: 32px 16px; }
.stat-number { font-size: 3rem; font-weight: 800; color: var(--blue); line-height: 1; }
.stat-label { color: var(--gray-text); margin-top: .5rem; font-size: .95rem; }
.section-dark .stat-label { color: #94a3b8; }

/* CTA section with image */
.cta-image-section {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 420px; overflow: hidden;
}
.cta-image-half { position: relative; overflow: hidden; }
.cta-image-half img { width: 100%; height: 100%; object-fit: cover; }
.cta-content-half {
  background: var(--blue); color: #fff;
  display: flex; flex-direction: column; justify-content: center; padding: 60px 48px;
}
.cta-content-half h2 { color: #fff; margin-bottom: 1rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-content-half p { color: rgba(255,255,255,.88); margin-bottom: 2rem; font-size: 1.05rem; }
@media(max-width:900px){ .cta-image-section { grid-template-columns: 1fr; } .cta-image-half { height: 260px; } .cta-content-half { padding: 40px 28px; } }

/* Blog grid */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.blog-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(15,23,42,.16); }
.blog-card-img { height: 200px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 24px; }
.blog-card-date { font-size: .82rem; color: var(--blue); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5rem; }
.blog-card-body h3 { font-size: 1.1rem; margin-bottom: .6rem; }
.blog-card-body p { font-size: .9rem; color: var(--gray-text); margin-bottom: 1rem; }

/* Article page */
.article-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; }
.article-content h2 { margin: 2rem 0 .8rem; color: var(--navy); }
.article-content h3 { margin: 1.5rem 0 .6rem; color: var(--navy); }
.article-content img { border-radius: var(--radius); margin: 1.5rem 0; width: 100%; max-height: 480px; object-fit: cover; }
.article-meta { display: flex; gap: 20px; align-items: center; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 2px solid var(--gray-light); flex-wrap: wrap; }
.article-meta time { color: var(--blue); font-weight: 600; font-size: .9rem; }
.article-tag { background: var(--gray-light); color: var(--navy); padding: 4px 12px; border-radius: 20px; font-size: .82rem; font-weight: 600; }
.sidebar-widget { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 28px; }
.sidebar-widget h3 { font-size: 1.1rem; margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--blue); }
.sidebar-links a { display: block; padding: 8px 0; border-bottom: 1px solid var(--gray-light); color: var(--navy); font-size: .9rem; }
.sidebar-links a:last-child { border: none; }
.sidebar-links a:hover { color: var(--blue); }
@media(max-width:1024px){ .article-layout { grid-template-columns: 1fr; } }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-form { background: var(--white); padding: 44px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-info h3 { margin-bottom: 1.5rem; }
.contact-detail { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 1.2rem; }
.contact-detail-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: .1rem; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 2px solid var(--gray-light);
  border-radius: var(--radius); font-size: 1rem; font-family: inherit;
  transition: border-color .2s; background: var(--light);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--blue); }
.form-group textarea { height: 140px; resize: vertical; }
@media(max-width:900px){ .contact-grid { grid-template-columns: 1fr; } .contact-form { padding: 28px; } }

/* Breadcrumb */
.breadcrumb { background: var(--gray-light); padding: 12px 0; border-bottom: 1px solid #cbd5e1; }
.breadcrumb-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; font-size: .88rem; color: var(--gray-text); }
.breadcrumb-inner a { color: var(--blue); }
.breadcrumb-inner span { margin: 0 6px; }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.testimonial-card { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); border-left: 4px solid var(--blue); }
.testimonial-text { font-style: italic; color: var(--gray-text); margin-bottom: 1.2rem; font-size: .98rem; }
.testimonial-author { font-weight: 700; color: var(--navy); font-size: .9rem; }
.testimonial-location { font-size: .82rem; color: var(--gray-text); }
.stars { color: #f59e0b; font-size: 1.1rem; margin-bottom: .8rem; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--gray-light); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; padding: 20px 0;
  font-size: 1.05rem; font-weight: 600; color: var(--navy); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-question:hover { color: var(--blue); }
.faq-arrow { flex-shrink: 0; transition: transform .2s; font-size: .9rem; color: var(--blue); }
.faq-answer { padding-bottom: 16px; color: var(--gray-text); display: none; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }

/* Zones */
.zones-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.zone-tag { background: var(--navy); color: #e2e8f0; padding: 8px 18px; border-radius: 20px; font-size: .9rem; font-weight: 600; }

/* Footer */
.site-footer { background: var(--navy); color: #94a3b8; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-brand img { height: 44px; margin-bottom: 1rem; }
.footer-brand p { font-size: .9rem; line-height: 1.6; }
.footer-col h4 { color: #e2e8f0; font-size: 1rem; margin-bottom: 1rem; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { color: #94a3b8; font-size: .9rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--blue); text-decoration: none; }
.footer-bottom { border-top: 1px solid #1e293b; margin-top: 48px; padding: 20px 24px; max-width: 1200px; margin-left: auto; margin-right: auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: .82rem; }
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: var(--blue); }
@media(max-width:900px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:600px){ .footer-grid { grid-template-columns: 1fr; } }

/* 404 */
.error-page { text-align: center; padding: 120px 24px; min-height: 60vh; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.error-page .error-code { font-size: 8rem; font-weight: 800; color: var(--blue); line-height: 1; }
.error-page h1 { font-size: 2rem; margin: 1rem 0; }
.error-page p { color: var(--gray-text); margin-bottom: 2rem; }

/* Sitemap */
.sitemap-section h2 { color: var(--navy); font-size: 1.4rem; margin: 2.5rem 0 1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--blue); }
.sitemap-section ul { list-style: none; padding: 0; }
.sitemap-section ul li { padding: 6px 0; border-bottom: 1px solid var(--gray-light); }
.sitemap-section ul li a { color: var(--navy); font-size: .95rem; }
.sitemap-section ul li a:hover { color: var(--blue); }

/* Utilities */
.text-center { text-align: center; }
.text-blue { color: var(--blue); }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.highlighted-link { background: rgba(59,130,246,.08); padding: 2px 6px; border-radius: 4px; font-weight: 600; }

/* Responsive nav */
@media(max-width:768px){
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-top: 12px; padding-bottom: 8px; }
  .site-nav.open { display: flex; }
  .site-nav a { text-align: center; padding: 12px; }
  .header-inner { flex-wrap: wrap; }
}
