/* ============================================
   PLÂTRERIE GÉNÉRALE SERRA — Styles
   Mobile First · 375px minimum
   ============================================ */

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

:root {
  --charbon: #1C1C1E;
  --cuivre: #C67D4A;
  --cuivre-hover: #B06A3A;
  --blanc: #FFFFFF;
  --gris-clair: #F5F5F5;
  --gris-texte: #6B6B6B;
  --footer-bg: #141414;
  --section-gap: 64px;
  --content-max: 1200px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--charbon);
  background: var(--blanc);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- TOP BAR --- */
.topbar {
  background: var(--charbon);
  color: var(--blanc);
  padding: 10px 0;
  font-size: 14px;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar-location {
  color: var(--gris-texte);
  font-size: 13px;
}

.topbar-phone a {
  color: var(--cuivre);
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color var(--transition);
}

.topbar-phone a:hover {
  color: var(--blanc);
}

/* --- NAVIGATION --- */
.navbar {
  background: var(--blanc);
  border-bottom: 1px solid #E5E5E5;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 16px;
}

.navbar-brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--charbon);
  line-height: 1.2;
}

.navbar-brand span {
  color: var(--cuivre);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charbon);
  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 {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--blanc);
  border-bottom: 1px solid #E5E5E5;
  padding: 16px 20px;
  flex-direction: column;
  gap: 16px;
}

.nav-menu.active {
  display: flex;
}

.nav-menu a {
  font-size: 16px;
  font-weight: 500;
  color: var(--charbon);
  padding: 8px 0;
  transition: color var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--cuivre);
}

/* --- HERO --- */
.hero {
  position: relative;
  background: var(--charbon);
  color: var(--blanc);
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2C2C2E 0%, #1C1C1E 50%, #0D0D0E 100%);
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="rgba(198,125,74,0.03)" width="100" height="100"/><rect x="20" y="20" width="1" height="60" fill="rgba(255,255,255,0.02)"/><rect x="50" y="10" width="1" height="80" fill="rgba(255,255,255,0.015)"/><rect x="80" y="30" width="1" height="40" fill="rgba(255,255,255,0.02)"/></svg>');
  background-size: 200px;
}

.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero-badge {
  display: inline-block;
  background: rgba(198, 125, 74, 0.15);
  color: var(--cuivre);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 4px;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
  max-width: 600px;
}

.hero h1 strong {
  color: var(--cuivre);
  font-weight: 800;
}

.hero-subtitle {
  font-size: 18px;
  color: #A0A0A0;
  margin-bottom: 36px;
  max-width: 500px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--cuivre);
  color: var(--blanc);
}

.btn-primary:hover {
  background: var(--cuivre-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(198, 125, 74, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--blanc);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  border-color: var(--blanc);
  background: rgba(255, 255, 255, 0.05);
}

.btn-dark {
  background: var(--charbon);
  color: var(--blanc);
}

.btn-dark:hover {
  background: #2C2C2E;
  transform: translateY(-2px);
}

/* --- BANDEAU CONFIANCE --- */
.trust-bar {
  background: var(--gris-clair);
  padding: 24px 0;
  border-bottom: 1px solid #E5E5E5;
}

.trust-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.trust-item {
  font-size: 15px;
  font-weight: 600;
  color: var(--charbon);
}

.trust-item span {
  color: var(--cuivre);
  font-weight: 700;
}

/* --- SECTIONS COMMUNES --- */
.section {
  padding: var(--section-gap) 0;
}

.section-header {
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--cuivre);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--charbon);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--gris-texte);
  max-width: 600px;
  line-height: 1.6;
}

.section-dark {
  background: var(--charbon);
  color: var(--blanc);
}

.section-dark .section-title {
  color: var(--blanc);
}

.section-dark .section-subtitle {
  color: #A0A0A0;
}

.section-light {
  background: var(--gris-clair);
}

/* --- SERVICES GRID --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.service-card {
  background: var(--gris-clair);
  padding: 32px 24px;
  border-radius: 8px;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.service-card:hover {
  border-color: var(--cuivre);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  background: var(--cuivre);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--blanc);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 15px;
  color: var(--gris-texte);
  line-height: 1.6;
  margin-bottom: 16px;
}

.service-card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--cuivre);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.service-card-link:hover {
  gap: 10px;
}

/* --- RÉALISATIONS GRID --- */
.realisations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.realisation-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: #2C2C2E;
}

.realisation-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.realisation-item:hover img {
  transform: scale(1.05);
}

.realisation-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 28, 30, 0.8) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition);
}

.realisation-item:hover .realisation-overlay {
  opacity: 1;
}

.realisation-overlay span {
  color: var(--blanc);
  font-size: 15px;
  font-weight: 600;
}

.realisations-cta {
  text-align: center;
  margin-top: 40px;
}

/* --- ATOUTS --- */
.atouts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.atout-item {
  text-align: center;
  padding: 24px;
}

.atout-number {
  font-size: 40px;
  font-weight: 800;
  color: var(--cuivre);
  margin-bottom: 8px;
  line-height: 1;
}

.atout-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.atout-text {
  font-size: 15px;
  color: var(--gris-texte);
  line-height: 1.5;
}

/* --- ZONE INTERVENTION --- */
.zone-communes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.zone-communes span {
  background: var(--blanc);
  border: 1px solid #E5E5E5;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--charbon);
  transition: all var(--transition);
}

.zone-communes span:hover {
  border-color: var(--cuivre);
  color: var(--cuivre);
}

/* --- CTA FINAL --- */
.cta-section {
  background: var(--charbon);
  color: var(--blanc);
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 16px;
  color: #A0A0A0;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-phone {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--cuivre);
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.cta-phone:hover {
  color: var(--blanc);
}

/* --- FOOTER --- */
.footer {
  background: var(--footer-bg);
  color: #A0A0A0;
  padding: 48px 0 24px;
}

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

.footer-col h4 {
  color: var(--blanc);
  font-size: 16px;
  margin-bottom: 16px;
}

.footer-col p,
.footer-col a {
  font-size: 14px;
  color: #A0A0A0;
  line-height: 1.8;
}

.footer-col a {
  display: block;
  transition: color var(--transition);
}

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

.footer-phone {
  color: var(--cuivre) !important;
  font-weight: 600;
  font-size: 16px !important;
}

.footer-bottom {
  border-top: 1px solid #2C2C2E;
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
}

/* --- STICKY PHONE BAR (Mobile) --- */
.sticky-phone {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--cuivre);
}

.sticky-phone a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--blanc);
  font-weight: 700;
  font-size: 16px;
  padding: 16px;
  text-align: center;
}

.sticky-phone a:first-child {
  background: var(--cuivre);
}

.sticky-phone a:last-child {
  background: var(--charbon);
}

.sticky-phone svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* padding bottom pour compenser la sticky bar */
body {
  padding-bottom: 56px;
}

/* --- LIGHTBOX --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--blanc);
  font-size: 32px;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--blanc);
  font-size: 24px;
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* ============================================
   RESPONSIVE — TABLET (768px+)
   ============================================ */
@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  .hero-actions {
    flex-direction: row;
  }

  .trust-items {
    flex-direction: row;
    justify-content: center;
    gap: 48px;
  }

  .section-title {
    font-size: 36px;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .realisations-grid {
    grid-template-columns: 1fr 1fr;
  }

  .atouts-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

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

  .cta-section h2 {
    font-size: 36px;
  }

  .cta-phone {
    font-size: 36px;
  }
}

/* ============================================
   RESPONSIVE — DESKTOP (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
    position: static;
    flex-direction: row;
    gap: 32px;
    padding: 0;
    border: none;
    background: transparent;
  }

  .nav-menu a {
    font-size: 15px;
    padding: 0;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero .container {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }

  .realisations-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

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

  .sticky-phone {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

/* ============================================
   PAGES INTERNES — STYLES COMMUNS
   ============================================ */
.page-header {
  background: var(--charbon);
  color: var(--blanc);
  padding: 80px 0 48px;
}

.page-header h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 16px;
  color: #A0A0A0;
  max-width: 600px;
}

@media (min-width: 768px) {
  .page-header h1 {
    font-size: 44px;
  }
}

/* --- FORMULAIRE --- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--charbon);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #E5E5E5;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--charbon);
  background: var(--blanc);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--cuivre);
  box-shadow: 0 0 0 3px rgba(198, 125, 74, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ============================================
   ANIMATIONS SUBTILES
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .service-card,
  .realisation-item,
  .atout-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .service-card.visible,
  .realisation-item.visible,
  .atout-item.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card,
  .realisation-item,
  .atout-item {
    opacity: 1;
    transform: none;
  }
}
