/* ============================================
   AMOI - Charpente, Couverture & Metallerie
   Site vitrine - Design System
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Didact+Gothic&family=Bebas+Neue&display=swap');

:root {
  --red: #CC2626; --red-dark: #A01E1E; --red-light: #E85555;
  --dark: #1A1A1A; --gray-900: #212121; --gray-700: #424242;
  --gray-500: #757575; --gray-300: #BDBDBD; --gray-100: #F5F5F5;
  --white: #FFFFFF; --black: #000000;
  --nav-height: 70px; --max-width: 1400px;
  --space-xs: 0.5rem; --space-sm: 1rem; --space-md: 2rem;
  --space-lg: 4rem; --space-xl: 6rem;
  --font-body: 'Didact Gothic', sans-serif;
  --font-heading: 'Bebas Neue', sans-serif;
  --radius: 4px; --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12); --transition: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body); color: var(--dark);
  background: var(--white); line-height: 1.6; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: 400;
  line-height: 1.1; letter-spacing: 0.02em;
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: 0.05em; }
h4 { font-size: 1rem; font-family: var(--font-body); font-weight: 700; }
strong { font-weight: 700; }

.section-label {
  color: var(--red); text-transform: uppercase;
  letter-spacing: 0.15em; font-size: 0.85rem; font-weight: 700;
  margin-bottom: var(--space-xs); display: block;
}
.section-title { margin-bottom: var(--space-md); position: relative; }
.section-title::after {
  content: ''; display: block; width: 60px; height: 3px;
  background: var(--red); margin-top: var(--space-xs);
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-md); }
.section { padding: var(--space-xl) 0; }
.section-gray { background: var(--gray-100); }
.section-dark { background: var(--gray-900); color: var(--white); }
.section-red { background: var(--red); color: var(--white); }

/* Navigation */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height);
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  z-index: 1000; border-bottom: 1px solid rgba(0,0,0,0.05);
}
.navbar.scrolled { box-shadow: var(--shadow); background: rgba(255,255,255,0.98); }
.navbar .container {
  display: flex; align-items: center; justify-content: space-between; height: 100%;
}
.nav-logo {
  display: flex; align-items: center; gap: var(--space-sm);
  font-family: var(--font-heading); font-size: 1.5rem; color: var(--red);
}
.nav-logo img { height: 45px; width: auto; display: block; }
.nav-links { display: flex; gap: var(--space-md); align-items: center; }
.nav-links a {
  font-weight: 700; font-size: 0.85rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--gray-700);
  position: relative; padding: var(--space-xs) 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--red); transition: width var(--transition);
}
.nav-links a:hover { color: var(--red); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--red); }
.nav-links a.active::after { width: 100%; }
.nav-phone {
  display: flex; align-items: center; gap: 6px;
  background: var(--red); color: var(--white);
  padding: 0.5rem 1.2rem; border-radius: 50px;
  font-weight: 700; font-size: 0.9rem;
}
.nav-phone:hover { background: var(--red-dark); color: var(--white); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 5px;
}
.nav-toggle span {
  display: block; width: 25px; height: 2px;
  background: var(--dark); transition: var(--transition);
}

/* Hero */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; background: var(--gray-900);
  overflow: hidden; margin-top: var(--nav-height);
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../images/hero-charpente.webp') center/cover no-repeat;
  filter: brightness(0.45); z-index: 0;
}
.hero-overlay {
  background: rgba(255,255,255,0.75); /* was dark overlay */
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(201,51,51,0.3) 0%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-logo { width: 80px; margin-bottom: var(--space-md); }
.hero h1 { color: #000; font-size: clamp(2.8rem, 6vw, 5rem); margin-bottom: var(--space-sm); }
.hero-subtitle {
  color: #222; font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-bottom: var(--space-lg); max-width: 550px;
}
.hero-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.85rem 2rem; border-radius: 50px;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em;
  transition: all var(--transition); cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(201,51,51,0.3); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--dark); transform: translateY(-2px); }
.btn-outline-dark { background: transparent; color: var(--dark); border-color: var(--dark); }
.btn-outline-dark:hover { background: var(--dark); color: var(--white); }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; border-radius: 4px; }

/* Services Grid */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.service-card {
  background: var(--white); padding: var(--space-lg) var(--space-md);
  text-align: center; border-radius: 8px; box-shadow: var(--shadow);
  transition: all var(--transition); border-top: 3px solid var(--red);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-number { font-family: var(--font-heading); font-size: 3rem; color: var(--gray-300); margin-bottom: var(--space-sm); }
.service-card h3 { color: var(--dark); margin-bottom: var(--space-sm); }
.service-card p { color: var(--gray-500); font-size: 0.95rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); }
.gallery-4 { grid-template-columns: repeat(4, 1fr); }
.gallery img { width: 100%; height: 280px; object-fit: cover; border-radius: 4px; transition: transform var(--transition); }
.gallery img:hover { transform: scale(1.03); }

/* Trust Badges */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); text-align: center; }
.trust-item { padding: var(--space-lg); background: var(--white); border-radius: 8px; box-shadow: var(--shadow); transition: transform var(--transition); }
.trust-item:hover { transform: translateY(-2px); }
.trust-item img { width: 60px; height: 60px; margin: 0 auto var(--space-md); object-fit: contain; }
.trust-item h4 { font-size: 1.1rem; color: var(--red); }

/* Social Section */
.social-section { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.social-fb { background: var(--gray-100); padding: var(--space-xl) var(--space-lg); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.social-fb img { width: 64px; margin-bottom: var(--space-md); }
.social-google { background: var(--red); padding: var(--space-xl) var(--space-lg); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: var(--white); }
.social-google img { width: 64px; margin-bottom: var(--space-md); }

/* Partners */
.partners-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); align-items: center; justify-items: center; }
.partners-grid img { max-height: 60px; width: auto; filter: grayscale(100%); opacity: 0.6; transition: all var(--transition); }
.partners-grid img:hover { filter: grayscale(0%); opacity: 1; }

/* Schedule */
.schedule-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-md); text-align: center; }
.schedule-day { padding: var(--space-md); background: rgba(255,255,255,0.1); border-radius: 8px; }
.schedule-day .day { font-weight: 700; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.05em; margin-bottom: 4px; }
.schedule-day .hours { font-size: 0.85rem; opacity: 0.8; }

/* Contact Form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: start; }
.form-group { margin-bottom: var(--space-md); }
.form-group label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; color: var(--gray-700); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.85rem 1rem; border: 1px solid var(--gray-300);
  border-radius: var(--radius); font-family: var(--font-body);
  font-size: 1rem; transition: border-color var(--transition); background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(201,51,51,0.1);
}
.form-group textarea { min-height: 150px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.form-check { display: flex; align-items: flex-start; gap: var(--space-sm); margin-bottom: var(--space-md); }
.form-check input { margin-top: 3px; }
.form-check label { font-size: 0.85rem; color: var(--gray-500); }
.form-check a { color: var(--red); text-decoration: underline; }
.legal-notice { font-size: 0.8rem; color: var(--gray-500); margin-top: var(--space-md); line-height: 1.5; }
.contact-info { display: flex; flex-direction: column; gap: var(--space-md); }
.contact-info-item { display: flex; gap: var(--space-md); align-items: flex-start; }
.contact-info-icon {
  width: 48px; height: 48px; background: var(--red); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); flex-shrink: 0;
}
.contact-info-text h4 {
  font-family: var(--font-body); font-size: 0.85rem; color: var(--gray-500);
  margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.05em;
}
.contact-info-text p, .contact-info-text a { font-weight: 700; font-size: 1rem; }
.map-container { width: 100%; height: 350px; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); margin-top: var(--space-md); }
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* Page Header (secondary pages) */
.page-header {
  min-height: 40vh; display: flex; align-items: center;
  background: var(--gray-900); position: relative;
  margin-top: var(--nav-height); overflow: hidden;
}
.page-header-bg {
  position: absolute; inset: 0;
  background: url('../images/hero-charpente.webp') center/cover no-repeat;
  filter: brightness(0.35);
}
.page-header .container { position: relative; z-index: 2; text-align: center; }
.page-header h1 { color: var(--white); font-size: clamp(2.2rem, 4vw, 3.5rem); margin-bottom: var(--space-sm); }
.page-header .subtitle { color: rgba(255,255,255,0.7); font-size: 1.1rem; }

/* Content Sections */
.content-section { padding: var(--space-xl) 0; }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: center; }
.content-grid img { border-radius: 8px; box-shadow: var(--shadow-lg); }
.content-list { margin: var(--space-md) 0; padding-left: var(--space-md); }
.content-list li { position: relative; padding-left: 1.5rem; margin-bottom: var(--space-sm); color: var(--gray-700); }
.content-list li::before { content: ''; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; background: var(--red); border-radius: 50%; }

/* Articles */
.articles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); margin: var(--space-lg) 0; }
.article-card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); transition: transform var(--transition); }
.article-card:hover { transform: translateY(-2px); }
.article-card img { width: 100%; height: 220px; object-fit: cover; }
.article-card .article-content { padding: var(--space-md); }
.article-card h4 { font-size: 1rem; margin-bottom: var(--space-xs); }
.article-card .read-more { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 700; font-size: 0.9rem; margin-top: var(--space-sm); }

/* CTA Section */
.cta-section { background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%); color: var(--white); text-align: center; padding: var(--space-xl) 0; }
.cta-section .section-label { color: rgba(255,255,255,0.8); }
.cta-section h2 { color: var(--white); }
.cta-section .section-title::after { background: var(--white); }

/* Footer */
.footer { background: var(--gray-900); color: var(--white); padding: var(--space-xl) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--space-xl); padding-bottom: var(--space-xl); }
.footer-col h4 { color: var(--red); margin-bottom: var(--space-md); text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col ul li { margin-bottom: var(--space-xs); }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--white); }
.footer-contact li { display: flex; gap: var(--space-sm); margin-bottom: var(--space-sm); color: rgba(255,255,255,0.8); }
.footer-contact li a { color: rgba(255,255,255,0.8); }
.footer-logo { width: 60px; margin-bottom: var(--space-md); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: var(--space-md) 0; font-size: 0.85rem; color: rgba(255,255,255,0.4); }
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: var(--white); }

/* Scroll to top */
.scroll-top {
  position: fixed; bottom: 2rem; right: 2rem; width: 48px; height: 48px;
  background: var(--red); color: var(--white); border: none; border-radius: 50%;
  cursor: pointer; font-size: 1.2rem; box-shadow: var(--shadow);
  z-index: 999; opacity: 0; transform: translateY(20px);
  transition: all var(--transition); display: flex;
  align-items: center; justify-content: center;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--red-dark); }

/* Cookie Banner */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--gray-900); color: var(--white);
  padding: var(--space-md); z-index: 9999; display: none;
}

/* Responsive */
@media (max-width: 992px) {
  :root { --space-xl: 4rem; --space-lg: 2.5rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-4 { grid-template-columns: repeat(2, 1fr); }
  .schedule-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .social-section { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --space-xl: 3rem; --space-lg: 2rem; --space-md: 1.5rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: var(--nav-height); left: 0; right: 0; background: var(--white);
    padding: var(--space-md); box-shadow: var(--shadow-lg); gap: var(--space-sm);
  }
  .nav-toggle { display: flex; }
  .services-grid, .trust-grid, .footer-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .partners-grid, .schedule-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row, .articles-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
}
