/* JUSTES MESURES | justesmesures-bergerac.fr */
/* Design: Dark navy, gold, cream - Elegant precise architecture */

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

:root {
  --navy: #0c1829;
  --navy-mid: #142035;
  --navy-light: #1e2f47;
  --gold: #c5a44e;
  --gold-light: #d4b86a;
  --gold-pale: #e8d5a0;
  --cream: #faf5eb;
  --cream-mid: #f0e8d0;
  --white: #ffffff;
  --font-heading: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  --transition: 0.3s ease;
  --max-width: 1280px;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--navy);
  color: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--cream);
  letter-spacing: 0.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 300; letter-spacing: 0.04em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.8rem); font-weight: 300; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; font-weight: 500; }
p { margin-bottom: 1.2em; color: var(--cream-mid); }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
strong { color: var(--cream); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.section { padding: 6rem 0; }
.section-sm { padding: 3rem 0; }

/* HEADER */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(12,24,41,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(197,164,78,0.15);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.nav-logo img { height: 44px; width: auto; display: block; }
.nav-menu { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.nav-menu a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-mid);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--gold); }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.nav-cta {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.65rem 1.5rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  transition: all var(--transition);
}
.nav-cta:hover { background: var(--gold); color: var(--navy); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-hamburger span { display: block; width: 24px; height: 1px; background: var(--gold); }

/* VIDEO HERO */
.hero {
  position: relative;
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12,24,41,0.89);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: block;
}
.hero h1 { margin-bottom: 1.2rem; max-width: 700px; color: var(--cream); }
.hero-subtitle {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--gold-pale);
  font-style: italic;
  margin-bottom: 2.5rem;
  max-width: 560px;
}
.hero p { font-size: 1rem; max-width: 560px; color: var(--cream-mid); margin-bottom: 2.5rem; }
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--gold); color: var(--navy); font-weight: 600; }
.btn-primary:hover { background: var(--gold-light); color: var(--navy); }
.btn-outline { border: 1px solid var(--gold); color: var(--gold); background: transparent; }
.btn-outline:hover { background: var(--gold); color: var(--navy); }
.hero-scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 2;
  animation: scrollBounce 2s infinite;
}
.hero-scroll::after { content: ''; display: block; width: 1px; height: 40px; background: var(--gold); opacity: 0.5; }
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* INTRO */
.intro-section { background: var(--navy); }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.intro-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}
.intro-text h2 { margin-bottom: 1.5rem; }
.intro-text p { color: var(--cream-mid); }
.intro-image { position: relative; }
.intro-image img { width: 100%; height: 500px; object-fit: cover; display: block; }
.intro-image::before {
  content: '';
  position: absolute;
  top: -15px; left: -15px; right: 15px; bottom: 15px;
  border: 1px solid rgba(197,164,78,0.25);
  z-index: -1;
}
.stats-row { display: flex; gap: 3rem; margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid rgba(197,164,78,0.15); }
.stat-number { font-family: var(--font-heading); font-size: 2.8rem; font-weight: 300; color: var(--gold); display: block; }
.stat-label { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--cream-mid); }

/* BANNER */
.banner-section {
  position: relative;
  padding: 8rem 0;
  background-image: url('/images/vue-bergerac.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.banner-overlay { position: absolute; inset: 0; background: rgba(12,24,41,0.89); }
.banner-content { position: relative; z-index: 2; max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; text-align: center; }
.banner-content h2 { margin-bottom: 1rem; }
.banner-content p { max-width: 600px; margin: 0 auto 2rem; }

/* SERVICES */
.services-section { background: var(--navy-mid); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { max-width: 560px; margin: 0 auto; color: var(--cream-mid); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.service-card {
  padding: 2.5rem;
  border: 1px solid rgba(197,164,78,0.15);
  transition: border-color var(--transition), background var(--transition);
}
.service-card:hover { border-color: rgba(197,164,78,0.4); background: rgba(197,164,78,0.04); }
.service-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 300;
  color: rgba(197,164,78,0.2);
  display: block;
  margin-bottom: 1rem;
  line-height: 1;
}
.service-card h3 { margin-bottom: 1rem; font-size: 1.1rem; }
.service-card p { font-size: 0.9rem; color: var(--cream-mid); }

/* PROJECTS */
.projects-section { background: var(--navy); }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; }
.project-card { position: relative; overflow: hidden; aspect-ratio: 3/4; }
.project-card.large { grid-column: span 2; aspect-ratio: auto; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.project-card:hover img { transform: scale(1.04); }
.project-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,24,41,0.92) 0%, rgba(12,24,41,0.1) 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2rem; opacity: 0; transition: opacity var(--transition);
}
.project-card:hover .project-card-overlay { opacity: 1; }
.project-card-overlay h3 { margin-bottom: 0.3rem; }
.project-card-overlay span { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); }

/* BLOG */
.blog-section { background: var(--navy-mid); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.blog-card { background: var(--navy); overflow: hidden; }
.blog-card-img { overflow: hidden; aspect-ratio: 16/10; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: 1.8rem; }
.blog-card-meta { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.8rem; }
.blog-card h3 { font-size: 1.1rem; font-weight: 400; margin-bottom: 0.8rem; }
.blog-card h3 a { color: var(--cream); }
.blog-card h3 a:hover { color: var(--gold); }
.blog-card p { font-size: 0.87rem; color: var(--cream-mid); margin-bottom: 1.2rem; }
.read-more { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid transparent; transition: all var(--transition); }
.read-more:hover { border-bottom-color: var(--gold); }

/* CTA */
.cta-section { background: var(--navy); }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.cta-image img { width: 100%; height: 480px; object-fit: cover; display: block; }
.cta-content { padding: 2rem 0; }
.cta-content h2 { margin-bottom: 1.5rem; }
.cta-content p { margin-bottom: 2rem; color: var(--cream-mid); }

/* ARTICLE */
.article-hero { position: relative; height: 500px; display: flex; align-items: flex-end; }
.article-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.article-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,24,41,0.95) 0%, rgba(12,24,41,0.4) 100%); }
.article-hero-content { position: relative; z-index: 2; padding: 3rem 2rem; max-width: var(--max-width); margin: 0 auto; width: 100%; }
.article-hero-meta { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.article-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.8rem); max-width: 780px; }
.article-body { max-width: 820px; margin: 0 auto; padding: 4rem 2rem; }
.article-body h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; }
.article-body h3 { font-size: 1.3rem; margin: 2rem 0 0.8rem; }
.article-body p { color: var(--cream-mid); margin-bottom: 1.5rem; line-height: 1.85; }
.article-body a { color: var(--gold); border-bottom: 1px solid rgba(197,164,78,0.3); }
.article-body a:hover { color: var(--gold-light); }
.article-img { width: 100%; margin: 2.5rem 0; }
.article-img img { width: 100%; height: 400px; object-fit: cover; }

/* PAGE HERO */
.page-hero { padding: 10rem 0 5rem; background: var(--navy-mid); border-bottom: 1px solid rgba(197,164,78,0.1); }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero p { max-width: 560px; color: var(--cream-mid); }
.breadcrumb { font-size: 0.72rem; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--gold); }
.breadcrumb span { margin: 0 0.5rem; opacity: 0.5; }

/* BLOG INDEX */
.blog-index-hero { padding: 10rem 0 5rem; background: var(--navy); border-bottom: 1px solid rgba(197,164,78,0.1); }
.blog-grid-full { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: start; }
.contact-info h3 { margin-bottom: 2rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-item-icon { width: 2px; height: 40px; background: var(--gold); flex-shrink: 0; opacity: 0.6; margin-top: 0.1rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.form-group input, .form-group textarea, .form-group select {
  background: var(--navy-mid);
  border: 1px solid rgba(197,164,78,0.2);
  color: var(--cream);
  padding: 0.9rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

/* SITEMAP */
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.sitemap-col h3 { font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.5rem; padding-bottom: 0.8rem; border-bottom: 1px solid rgba(197,164,78,0.2); font-family: var(--font-body); }
.sitemap-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.sitemap-col ul li a { font-size: 0.9rem; color: var(--cream-mid); }
.sitemap-col ul li a:hover { color: var(--gold); }

/* 404 */
.error-section { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.error-code { font-family: var(--font-heading); font-size: clamp(6rem, 15vw, 12rem); font-weight: 300; color: rgba(197,164,78,0.12); line-height: 1; display: block; margin-bottom: -2rem; }
.error-section h2 { margin-bottom: 1rem; }
.error-section p { color: var(--cream-mid); margin-bottom: 2rem; }

/* FOOTER */
footer { background: #070f1a; padding: 4rem 0 2rem; border-top: 1px solid rgba(197,164,78,0.1); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand img { height: 38px; margin-bottom: 1.2rem; display: block; }
.footer-brand p { font-size: 0.85rem; color: var(--cream-mid); line-height: 1.7; opacity: 0.8; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; font-weight: 500; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li a { font-size: 0.87rem; color: rgba(250,245,235,0.6); }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid rgba(197,164,78,0.08); font-size: 0.78rem; color: rgba(250,245,235,0.4); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .intro-grid, .cta-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card.large { grid-column: span 1; }
  .services-grid, .blog-grid, .blog-grid-full { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sitemap-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-menu { display: none; position: fixed; top: 73px; left: 0; right: 0; background: var(--navy); flex-direction: column; padding: 2rem; gap: 1.5rem; border-bottom: 1px solid rgba(197,164,78,0.1); }
  .nav-menu.open { display: flex; }
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }
  .hero-video { display: none; }
  .hero { background-image: url('/images/hero-archi.jpg'); background-size: cover; }
  .banner-section { background-attachment: scroll; }
  .services-grid, .blog-grid, .blog-grid-full { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .stats-row { flex-direction: column; gap: 1.5rem; }
  .sitemap-grid { grid-template-columns: 1fr; }
}
