/* === Atelier Peinture Dubois — CSS === */

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

:root {
  --brown: #3d2b1f;
  --brown-mid: #5c3d2e;
  --terracotta: #c17b50;
  --terra-light: #d4916a;
  --beige: #f5e6d3;
  --beige-mid: #e8d5c0;
  --beige-dark: #d4c4b0;
  --white: #ffffff;
  --cream: #faf6f1;
  --gray: #7c6f64;
  --text: #2c1e15;
  --border: #e0cfc0;
  --shadow: 0 4px 20px rgba(61,43,31,.1);
  --shadow-lg: 0 12px 48px rgba(61,43,31,.18);
  --radius: 12px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); line-height: 1.65; background: var(--white); overflow-x: hidden; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 8px; font-weight: 700;
  font-size: .9rem; cursor: pointer; transition: var(--transition);
  border: 2px solid transparent;
}
.btn-primary { background: var(--terracotta); color: var(--white); }
.btn-primary:hover { background: var(--brown-mid); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(193,123,80,.35); }
.btn-secondary { background: var(--beige); color: var(--brown); border-color: var(--beige-dark); }
.btn-secondary:hover { background: var(--beige-mid); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* NAVBAR */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--brown);
  box-shadow: 0 2px 20px rgba(61,43,31,.3);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-size: 1.15rem; font-weight: 800; color: var(--white); display: flex; align-items: center; gap: 10px; }
.logo-atelier {
  width: 36px; height: 36px; background: var(--terracotta); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: .9rem; color: var(--white);
}
.logo-text em { color: var(--terra-light); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,.7); font-weight: 500; font-size: .875rem;
  padding: 8px 14px; border-radius: 6px; transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--beige); background: rgba(255,255,255,.08); }
.nav-cta { background: var(--terracotta) !important; color: var(--white) !important; font-weight: 700 !important; padding: 9px 20px !important; border-radius: 20px !important; }
.nav-cta:hover { background: var(--terra-light) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* HERO */
.hero {
  min-height: 100vh; padding-top: 68px;
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown-mid) 60%, var(--terracotta) 100%);
  position: relative; overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1562259949-e8e7689d7828?auto=format&fit=crop&w=1920&q=50') center/cover;
  opacity: .18;
}
.hero .container {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  position: relative; z-index: 1;
  padding-top: 60px; padding-bottom: 60px;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); color: var(--beige);
  border: 1px solid rgba(255,255,255,.2); border-radius: 100px;
  padding: 6px 16px; font-size: .8rem; font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 900; color: var(--white);
  line-height: 1.15; letter-spacing: -.02em; margin-bottom: 20px;
}
.hero h1 em { color: var(--terra-light); font-style: normal; }
.hero-sub { font-size: 1rem; color: rgba(255,255,255,.78); margin-bottom: 36px; line-height: 1.75; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-features { display: flex; flex-direction: column; gap: 12px; }
.hero-feature { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.75); font-size: .875rem; }
.hero-feature i { color: var(--terra-light); font-size: 1rem; flex-shrink: 0; }

/* Hero right — before/after or image stack */
.hero-visual {
  position: relative; display: flex; justify-content: center;
}
.img-stack { position: relative; width: 360px; height: 400px; }
.img-stack .img-main {
  width: 300px; height: 360px; border-radius: 20px; overflow: hidden;
  position: absolute; top: 0; left: 0;
  box-shadow: var(--shadow-lg);
}
.img-stack .img-accent {
  width: 200px; height: 240px; border-radius: 16px; overflow: hidden;
  position: absolute; bottom: 0; right: 0;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
}
.img-stack img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge-float {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--terracotta); color: var(--white);
  border-radius: 100px; padding: 8px 18px;
  font-size: .8rem; font-weight: 700;
  box-shadow: 0 4px 16px rgba(193,123,80,.4);
  white-space: nowrap;
}

/* SECTIONS */
.section { padding: 88px 0; }
.bg-cream { background: var(--cream); }
.bg-beige { background: var(--beige); }
.bg-brown { background: var(--brown); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--brown); margin-bottom: 12px; letter-spacing: -.02em; }
.section-header h2.light { color: var(--white); }
.section-header p { color: var(--gray); font-size: .95rem; line-height: 1.7; }
.section-header p.light { color: rgba(255,255,255,.65); }
.section-label {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; color: var(--terracotta); display: block; margin-bottom: 10px;
}
.section-label.light { color: var(--terra-light); }

/* SERVICES */
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.service-card {
  border-radius: 18px; overflow: hidden;
  background: var(--white); box-shadow: var(--shadow);
  transition: var(--transition); border: 1.5px solid var(--border);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--terracotta); }
.service-img { height: 180px; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.service-card:hover .service-img img { transform: scale(1.06); }
.service-body { padding: 24px; }
.service-body h3 { font-weight: 800; color: var(--brown); margin-bottom: 10px; }
.service-body p { font-size: .875rem; color: var(--gray); line-height: 1.65; margin-bottom: 16px; }
.service-link { font-size: .875rem; font-weight: 700; color: var(--terracotta); display: flex; align-items: center; gap: 6px; transition: gap var(--transition); }
.service-card:hover .service-link { gap: 10px; }

/* GALERIE */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}
.gallery-item {
  border-radius: 14px; overflow: hidden; position: relative;
  background: var(--beige-mid); cursor: pointer;
}
.gallery-item:first-child { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; min-height: 200px; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(61,43,31,.7) 0%, transparent 50%);
  display: flex; align-items: flex-end; padding: 16px;
  opacity: 0; transition: opacity var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-label { color: var(--white); font-weight: 700; font-size: .875rem; }

/* AVANT / APRES */
.avantapres-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 32px; }
.aa-card { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.aa-imgs { display: grid; grid-template-columns: 1fr 1fr; }
.aa-img { position: relative; height: 200px; overflow: hidden; }
.aa-img img { width: 100%; height: 100%; object-fit: cover; }
.aa-label {
  position: absolute; bottom: 8px; left: 8px;
  background: rgba(0,0,0,.6); color: var(--white);
  font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 4px;
}
.aa-info { background: var(--white); padding: 18px 20px; }
.aa-info h4 { font-weight: 700; color: var(--brown); margin-bottom: 5px; }
.aa-info p { font-size: .825rem; color: var(--gray); }

/* AVIS */
.avis-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.avis-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 16px; padding: 28px; transition: var(--transition);
}
.avis-card:hover { border-color: var(--terracotta); box-shadow: 0 6px 24px rgba(193,123,80,.12); }
.stars { color: var(--terracotta); margin-bottom: 14px; letter-spacing: 2px; }
.avis-text { font-size: .875rem; color: var(--gray); line-height: 1.7; font-style: italic; margin-bottom: 18px; }
.avis-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--beige); color: var(--terracotta);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; flex-shrink: 0;
  border: 2px solid var(--beige-dark);
}
.author-name { font-weight: 700; font-size: .875rem; }
.author-loc { font-size: .78rem; color: var(--gray); }

/* PROCESS */
.process-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; }
.p-step { text-align: center; position: relative; }
.p-step::after {
  content: ''; position: absolute; top: 28px; left: 50%;
  width: calc(100% + 28px); height: 2px;
  background: var(--beige-dark);
  z-index: 0;
}
.p-step:last-child::after { display: none; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--terracotta); color: var(--white);
  font-size: 1.25rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; position: relative; z-index: 1;
}
.p-step h4 { font-weight: 700; color: var(--brown); margin-bottom: 6px; }
.p-step p { font-size: .825rem; color: var(--gray); line-height: 1.6; }

/* CTA */
.cta-band { background: linear-gradient(135deg, var(--brown), var(--brown-mid)); padding: 64px 0; text-align: center; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 900; color: var(--white); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.7); margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* PAGE HERO */
.page-hero {
  background: linear-gradient(135deg, var(--brown), var(--brown-mid));
  padding: 120px 0 60px; text-align: center;
}
.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 900; color: var(--white); margin-bottom: 12px; }
.page-hero h1 em { color: var(--terra-light); font-style: normal; }
.page-hero p { color: rgba(255,255,255,.7); max-width: 560px; margin: 0 auto; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; font-size: .8rem; color: rgba(255,255,255,.4); }
.breadcrumb a { color: rgba(255,255,255,.4); }
.breadcrumb a:hover { color: var(--terra-light); }
.breadcrumb span { color: var(--terra-light); }

/* CONTACT */
.contact-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; align-items: start; }
.contact-sidebar h2 { font-size: 1.6rem; font-weight: 800; color: var(--brown); margin-bottom: 16px; }
.contact-sidebar p { color: var(--gray); line-height: 1.7; margin-bottom: 28px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.info-icon { width: 44px; height: 44px; background: var(--beige); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--terracotta); flex-shrink: 0; }
.info-item strong { display: block; font-weight: 700; margin-bottom: 3px; }
.info-item span { font-size: .875rem; color: var(--gray); }
.contact-form-box { background: var(--white); border-radius: 20px; padding: 40px; box-shadow: var(--shadow-lg); border: 1.5px solid var(--border); }
.cf-group { margin-bottom: 18px; }
.cf-group label { display: block; font-size: .78rem; font-weight: 700; color: var(--brown); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.cf-group input,
.cf-group select,
.cf-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: .875rem; color: var(--text);
  background: var(--cream); transition: var(--transition);
}
.cf-group input:focus, .cf-group select:focus, .cf-group textarea:focus { outline: none; border-color: var(--terracotta); background: var(--white); box-shadow: 0 0 0 3px rgba(193,123,80,.12); }
.cf-group textarea { resize: vertical; min-height: 120px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* FOOTER */
.footer { background: var(--brown); color: rgba(255,255,255,.5); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 24px; }
.footer-brand p { margin-top: 14px; font-size: .875rem; max-width: 250px; line-height: 1.65; }
.footer-col h4 { color: var(--white); font-weight: 700; margin-bottom: 16px; font-size: .9rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: .875rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--terra-light); }
.footer-contact p { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px; font-size: .875rem; }
.footer-contact i { color: var(--terracotta); margin-top: 3px; flex-shrink: 0; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .78rem; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .avis-grid { grid-template-columns: repeat(2,1fr); }
  .process-steps { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero .container { grid-template-columns: 1fr; }
  .img-stack { display: none; }
  .services-grid, .avis-grid, .avantapres-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:first-child { grid-column: span 2; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: fixed; top: 0; right: -100%; bottom: 0; width: 260px;
    background: var(--brown); flex-direction: column;
    padding: 90px 24px 40px; gap: 6px;
    transition: right var(--transition);
    box-shadow: -8px 0 30px rgba(0,0,0,.3);
  }
  .nav-links.open { right: 0; }
  .nav-links li { width: 100%; }
  .nav-links a { padding: 12px 8px; display: block; border-bottom: 1px solid rgba(255,255,255,.06); }
  .hamburger { display: flex; }
  .cf-row { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .p-step::after { display: none; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
}
