/* ============================================================
   CP Chris Peinture Sàrl — Global Styles
   ============================================================ */

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

:root {
  --black:   #0e0e0e;
  --white:   #f5f5f0;
  --green:   #be185d;
  --green-l: #db2777;
  --accent:  #f0b429;
  --gray:    #6b6b6b;
  --bg:      #f8f7f4;
  --border:  #e2e0da;

  --ff-head: 'Playfair Display', serif;
  --ff-body: 'Inter', sans-serif;

  --ease: cubic-bezier(.4, 0, .2, 1);
  --transition: .35s var(--ease);
}

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

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--black);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* --- Utility --- */
.container { width: 92%; max-width: 1200px; margin: 0 auto; }
.section-label {
  font-family: var(--ff-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--ff-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 1.5rem;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 600px;
  line-height: 1.8;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 2rem;
  border-radius: 2px;
  font-family: var(--ff-body);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .05em;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn-primary {
  background: var(--green);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-l); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(190,24,93,.25); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.5);
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); transform: translateY(-2px); }
.btn-dark {
  background: var(--black);
  color: var(--white);
}
.btn-dark:hover { background: #1f1f1f; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.4rem 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(14,14,14,.96);
  backdrop-filter: blur(12px);
  padding: .9rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nav-logo-name {
  font-family: var(--ff-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .02em;
  line-height: 1.1;
}
.nav-logo-tag {
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a {
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .05em;
  color: rgba(255,255,255,.75);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta { font-size: .82rem !important; padding: .65rem 1.4rem !important; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--ff-head);
  font-size: 2rem;
  color: var(--white);
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .btn { font-size: 1rem; padding: 1rem 2.5rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/IMG_6721.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.hero-bg.loaded { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 60%, rgba(0,0,0,.1) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 8rem 0 4rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(240,180,41,.15);
  border: 1px solid rgba(240,180,41,.35);
  color: var(--accent);
  padding: .4rem 1rem;
  border-radius: 30px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--ff-head);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1rem;
}
.hero-title span { color: var(--accent); }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.75);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.5);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  z-index: 1;
  animation: bounce 2s infinite;
}
.hero-scroll::after {
  content: '';
  width: 1px; height: 40px;
  background: rgba(255,255,255,.3);
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--green);
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-item {}
.stat-number {
  font-family: var(--ff-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-top: .35rem;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: 7rem 0;
  background: var(--bg);
}
.services-header { text-align: center; margin-bottom: 4rem; }
.services-header .section-sub { margin: 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2.5rem 2rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--green);
  transition: height var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.1); border-color: var(--green); }
.service-card:hover::before { height: 100%; }
.service-icon {
  width: 52px; height: 52px;
  background: rgba(190,24,93,.08);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: background var(--transition);
}
.service-card:hover .service-icon { background: var(--green); }
.service-icon svg { width: 26px; height: 26px; stroke: var(--green); transition: stroke var(--transition); }
.service-card:hover .service-icon svg { stroke: var(--white); }
.service-title {
  font-family: var(--ff-head);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: .75rem;
}
.service-desc { font-size: .9rem; color: var(--gray); line-height: 1.75; }

/* ============================================================
   INFO / AVANTAGES
   ============================================================ */
.info {
  padding: 7rem 0;
  background: var(--black);
  position: relative;
  overflow: hidden;
}
.info::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(190,24,93,.25) 0%, transparent 70%);
  pointer-events: none;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.info-img-wrap {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}
.info-img-wrap img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 4px;
  transition: transform .6s var(--ease);
}
.info-img-wrap:hover img { transform: scale(1.03); }
.info-img-badge {
  position: absolute;
  bottom: 2rem; left: 2rem;
  background: var(--green);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 4px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;
}
.info-content .section-title { color: var(--white); }
.info-content .section-sub { color: rgba(255,255,255,.6); max-width: 100%; }
.info-points { margin: 2.5rem 0; display: flex; flex-direction: column; gap: 1.25rem; }
.info-point {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.info-point-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: rgba(190,24,93,.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: .1rem;
}
.info-point-icon svg { width: 16px; height: 16px; stroke: var(--accent); }
.info-point-text strong {
  display: block;
  color: var(--white);
  font-weight: 600;
  margin-bottom: .2rem;
}
.info-point-text span { font-size: .9rem; color: rgba(255,255,255,.55); }

/* ============================================================
   DEVIS BANNER
   ============================================================ */
.devis {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-l) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.devis::before {
  content: '';
  position: absolute;
  inset: 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.04'%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");
}
.devis .section-title { color: var(--white); position: relative; }
.devis .section-sub { color: rgba(255,255,255,.8); margin: 0 auto 2.5rem; position: relative; }
.devis-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; position: relative; }
.btn-white { background: var(--white); color: var(--green); font-weight: 700; }
.btn-white:hover { background: var(--bg); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 7rem 0;
  background: var(--bg);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: var(--transition);
}
.contact-item:hover { border-color: var(--green); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.contact-item-icon {
  width: 44px; height: 44px;
  background: rgba(190,24,93,.08);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item-icon svg { width: 20px; height: 20px; stroke: var(--green); }
.contact-item-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .3rem;
}
.contact-item-value { font-size: 1rem; color: var(--black); font-weight: 500; }
.contact-item-value a { transition: color var(--transition); }
.contact-item-value a:hover { color: var(--green); }
.contact-map {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 420px;
}
.contact-map iframe { width: 100%; height: 100%; border: none; }
.contact-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--black);
  padding: 3.5rem 0 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .nav-logo-name { font-size: 1.3rem; margin-bottom: .3rem; }
.footer-desc { font-size: .85rem; color: rgba(255,255,255,.45); margin-top: .75rem; line-height: 1.7; }
.footer-heading {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: .65rem; }
.footer-links a { font-size: .88rem; color: rgba(255,255,255,.5); transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-contact-list { display: flex; flex-direction: column; gap: .75rem; }
.footer-contact-list li { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: rgba(255,255,255,.5); }
.footer-contact-list svg { width: 14px; height: 14px; stroke: var(--accent); flex-shrink: 0; }
.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy { font-size: .78rem; color: rgba(255,255,255,.3); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: .78rem; color: rgba(255,255,255,.3); transition: color var(--transition); }
.footer-legal a:hover { color: rgba(255,255,255,.6); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding: 10rem 0 5rem;
  background: var(--black);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--accent), var(--green));
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .25;
}
.page-hero-content { position: relative; }
.page-hero-title {
  font-family: var(--ff-head);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: .75rem;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}
.breadcrumb a { color: var(--accent); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,.4); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-intro {
  padding: 7rem 0;
  background: var(--bg);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-img-stack { position: relative; }
.about-img-main {
  width: 100%;
  height: 540px;
  object-fit: cover;
  border-radius: 4px;
}
.about-img-accent {
  position: absolute;
  bottom: -2.5rem; right: -2.5rem;
  width: 200px; height: 200px;
  object-fit: cover;
  border-radius: 4px;
  border: 5px solid var(--bg);
  box-shadow: 0 16px 40px rgba(0,0,0,.15);
}
.values-section {
  padding: 7rem 0;
  background: var(--white);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}
.value-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--bg);
  border-radius: 4px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.value-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.07); border-color: var(--green); }
.value-num {
  font-family: var(--ff-head);
  font-size: 3rem;
  font-weight: 700;
  color: var(--green);
  opacity: .2;
  line-height: 1;
  margin-bottom: .5rem;
}
.value-title { font-weight: 600; font-size: 1rem; margin-bottom: .5rem; }
.value-desc { font-size: .85rem; color: var(--gray); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .info-grid,
  .contact-grid,
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .burger { display: flex; }
  .info-img-wrap img { height: 360px; }
  .about-img-stack { display: none; }
}

@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-ctas { flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .contact-map { height: 300px; }
  .about-img-accent { display: none; }
}
