/* ==============================================
   Artisan Bâtisseur — Architectural Editorial
   ============================================== */

:root {
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --color-bg: #faf8f5;
  --color-surface: #ffffff;
  --color-surface-alt: #f2ede6;
  --color-text: #1a1815;
  --color-text-muted: #6b6560;
  --color-accent: #d4743b;
  --color-accent-hover: #e0844f;
  --color-accent-dark: #b85d2e;
  --color-border: #e5e0d8;
  --color-dark: #1e1c19;
  --color-dark-text: #c4bfb6;
  --max-width: 1280px;
  --header-h: 72px;
  --radius: 4px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.12);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(212,116,59,.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(212,116,59,.02) 0%, transparent 50%);
}

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.05; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.75rem, 6vw, 5rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.625rem); }

a { color: var(--color-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-accent-hover); }

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

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,248,245,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-h);
}
.header-inner {
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 2rem; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: .75rem;
  color: var(--color-text); text-decoration: none;
}
.logo:hover { color: var(--color-accent); }
.logo-icon { color: var(--color-accent); display: flex; }
.logo-text {
  font-family: var(--font-display); font-size: 1.5rem;
  letter-spacing: 0.02em; text-transform: uppercase;
}

/* ---- Nav ---- */
.main-nav { position: relative; }
.nav-toggle { display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-text); transition: .3s; }

.nav-list { display: flex; list-style: none; gap: .25rem; align-items: center; }
.nav-list > li > a {
  display: block; padding: .5rem 1rem;
  font-family: var(--font-body); font-size: .925rem; font-weight: 500;
  color: var(--color-text); border-radius: var(--radius);
  transition: background .2s, color .2s;
}
.nav-list > li > a:hover { background: var(--color-surface-alt); color: var(--color-accent); }
.nav-list > li > a.active { color: var(--color-accent); }

.has-submenu { position: relative; }
.submenu-trigger::after { content: ' ▾'; font-size: .7rem; }
.submenu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  min-width: 200px; list-style: none; padding: .5rem 0; z-index: 200;
}
.has-submenu:hover .submenu { display: block; }
.submenu li a {
  display: block; padding: .5rem 1.25rem;
  font-size: .9rem; color: var(--color-text);
  transition: background .15s, color .15s;
}
.submenu li a:hover { background: var(--color-surface-alt); color: var(--color-accent); }

/* ---- Footer ---- */
.site-footer {
  background: var(--color-dark); color: var(--color-dark-text);
  padding: 4rem 2rem 2rem; margin-top: 6rem;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 2.5rem; }
.footer-logo { display: flex; align-items: center; gap: .5rem; color: #f0ede6; margin-bottom: 1rem; }
.footer-logo span { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0.02em; }
.footer-logo:hover { color: var(--color-accent); }
.footer-desc { font-size: .9rem; line-height: 1.6; color: var(--color-dark-text); }
.footer-heading { font-size: 1rem; margin-bottom: 1rem; color: #f0ede6; letter-spacing: 0.04em; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { color: var(--color-dark-text); font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: var(--color-accent); }
.footer-contact address { font-style: normal; }
.footer-contact address p { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; font-size: .9rem; }
.footer-contact address svg { flex-shrink: 0; opacity: .6; }
.footer-contact a { color: var(--color-dark-text); }
.footer-contact a:hover { color: var(--color-accent); }

.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: var(--color-dark-text); font-size: .85rem; }
.footer-legal a:hover { color: var(--color-accent); }
.footer-copy { font-size: .85rem; opacity: .6; }

/* ---- Hero ---- */
.hero {
  position: relative; overflow: hidden;
  background: var(--color-dark);
  min-height: calc(100vh - var(--header-h));
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .65;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(30,28,25,.85) 0%, rgba(30,28,25,.4) 50%, rgba(30,28,25,.2) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: var(--max-width); margin: 0 auto;
  padding: 4rem 2rem; width: 100%;
}
.hero-tag {
  display: inline-block; font-family: var(--font-body);
  font-size: .8rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--color-accent);
  border: 1px solid rgba(212,116,59,.4);
  padding: .35rem 1rem; border-radius: 2px; margin-bottom: 1.5rem;
}
.hero h1 {
  color: #f0ede6; max-width: 10em;
  margin-bottom: 1.25rem;
}
.hero-lead {
  font-size: 1.2rem; color: rgba(240,237,230,.75);
  max-width: 32em; margin-bottom: 2rem;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 2rem; font-family: var(--font-display);
  font-size: 1.1rem; letter-spacing: 0.04em; text-transform: uppercase;
  border-radius: var(--radius); border: none; cursor: pointer;
  transition: background .25s, transform .2s, box-shadow .25s;
  text-decoration: none; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--color-accent); color: #fff;
  box-shadow: 0 4px 16px rgba(212,116,59,.35);
}
.btn-primary:hover { background: var(--color-accent-hover); color: #fff; }
.btn-outline {
  background: transparent; color: #f0ede6;
  border: 2px solid rgba(240,237,230,.3);
}
.btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ---- Sections ---- */
.section {
  padding: 5rem 2rem;
  max-width: var(--max-width); margin: 0 auto;
}
.section-header {
  text-align: center; margin-bottom: 3.5rem;
}
.section-tag {
  font-family: var(--font-body); font-size: .75rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-accent); margin-bottom: .75rem;
}
.section-header h2 { margin-bottom: .75rem; }
.section-header p {
  font-size: 1.1rem; color: var(--color-text-muted); max-width: 34em; margin: 0 auto;
}

/* ---- Services Grid ---- */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.service-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card-img {
  aspect-ratio: 16/10; overflow: hidden;
}
.service-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.service-card-body h3 { margin-bottom: .5rem; }
.service-card-body p { color: var(--color-text-muted); font-size: .95rem; flex: 1; margin-bottom: 1rem; }
.service-card-link {
  font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--color-accent);
  display: inline-flex; align-items: center; gap: .35rem;
}
.service-card-link:hover { gap: .65rem; }

/* ---- About / Stats ---- */
.about-section {
  background: var(--color-dark); color: #f0ede6;
  padding: 5rem 2rem;
}
.about-inner { max-width: var(--max-width); margin: 0 auto; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.about-content h2 { margin-bottom: 1.25rem; }
.about-content p { color: var(--color-dark-text); font-size: 1.05rem; margin-bottom: 1.5rem; }
.stats-row { display: flex; gap: 3rem; margin-top: 2rem; }
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-display); font-size: 3rem; color: var(--color-accent);
  line-height: 1; margin-bottom: .25rem;
}
.stat-label { font-size: .85rem; color: var(--color-dark-text); text-transform: uppercase; letter-spacing: 0.06em; }

.about-image { position: relative; }
.about-image img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: var(--radius);
}
.about-image::after {
  content: ''; position: absolute; inset: -12px -12px 12px 12px;
  border: 2px solid var(--color-accent); border-radius: var(--radius);
  z-index: -1;
}

/* ---- CTA Banner ---- */
.cta-banner {
  background: var(--color-surface-alt); text-align: center;
  padding: 4rem 2rem;
}
.cta-banner-inner { max-width: 40em; margin: 0 auto; }
.cta-banner h2 { margin-bottom: .75rem; }
.cta-banner p { color: var(--color-text-muted); margin-bottom: 1.5rem; font-size: 1.1rem; }

/* ---- Page Hero (inner) ---- */
.page-hero {
  background: var(--color-dark); position: relative; overflow: hidden;
  padding: 4rem 2rem;
}
.page-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .35;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(30,28,25,.8), rgba(30,28,25,.6));
}
.page-hero-content {
  position: relative; z-index: 2;
  max-width: var(--max-width); margin: 0 auto;
  text-align: center;
}
.page-hero-content h1 { color: #f0ede6; margin-bottom: .75rem; }
.page-hero-content p { color: rgba(240,237,230,.7); font-size: 1.1rem; max-width: 32em; margin: 0 auto; }

/* ---- Content Section ---- */
.content-section { padding: 4rem 2rem; max-width: 820px; margin: 0 auto; }
.content-section h2 { margin: 2.5rem 0 1rem; }
.content-section h2:first-child { margin-top: 0; }
.content-section h3 { margin: 1.75rem 0 .5rem; font-family: var(--font-display); }
.content-section p { margin-bottom: 1rem; color: var(--color-text-muted); }
.content-section ul, .content-section ol { margin: 0 0 1.5rem 1.5rem; color: var(--color-text-muted); }
.content-section li { margin-bottom: .5rem; }
.content-section ul { list-style: square; }

/* ---- Service Detail ---- */
.service-hero {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 60vh;
  background: var(--color-dark);
}
.service-hero-img { position: relative; overflow: hidden; }
.service-hero-img img {
  width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0;
}
.service-hero-body {
  display: flex; align-items: center; padding: 3rem 2.5rem;
  color: #f0ede6;
}
.service-hero-body h1 { margin-bottom: 1rem; }
.service-hero-body p { color: rgba(240,237,230,.7); font-size: 1.1rem; margin-bottom: 1.5rem; }
.service-detail-section { padding: 4rem 2rem; max-width: 820px; margin: 0 auto; }
.service-detail-section h2 { margin-bottom: 1rem; }

/* ---- Contact Page ---- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  max-width: var(--max-width); margin: 0 auto; padding: 4rem 2rem;
}
.contact-info h2 { margin-bottom: 1rem; }
.contact-info > p { color: var(--color-text-muted); margin-bottom: 2rem; }
.contact-detail {
  display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem;
}
.contact-detail-icon {
  width: 48px; height: 48px; background: var(--color-surface-alt);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--color-accent);
}
.contact-detail-text h3 { font-size: .85rem; letter-spacing: .05em; margin-bottom: .15rem; color: var(--color-text-muted); text-transform: uppercase; }
.contact-detail-text p { font-size: 1.05rem; }

.contact-form-wrapper {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.contact-form-wrapper h2 { margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: .85rem; font-weight: 600;
  margin-bottom: .35rem; color: var(--color-text);
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .75rem 1rem;
  font-family: var(--font-body); font-size: 1rem;
  border: 1px solid var(--color-border); border-radius: var(--radius);
  background: var(--color-bg); color: var(--color-text);
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(212,116,59,.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-disclosure { font-size: .85rem; color: var(--color-text-muted); margin: .5rem 0 1.25rem; }
.form-disclosure a { text-decoration: underline; }

/* ---- Thank You ---- */
.thank-you-section {
  text-align: center; padding: 6rem 2rem; max-width: 36em; margin: 0 auto;
}
.thank-you-icon {
  width: 80px; height: 80px; background: #e8f5e9; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 2rem; color: #4caf50;
}
.thank-you-section h1 { margin-bottom: 1rem; }
.thank-you-section p { color: var(--color-text-muted); margin-bottom: 2rem; font-size: 1.1rem; }

/* ---- 404 ---- */
.error-section {
  text-align: center; padding: 6rem 2rem; max-width: 30em; margin: 0 auto;
}
.error-section h1 { font-size: 6rem; color: var(--color-accent); margin-bottom: .5rem; }
.error-section p { color: var(--color-text-muted); margin-bottom: 2rem; font-size: 1.1rem; }

/* ---- Cookie Consent ---- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--color-surface); border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 24px rgba(0,0,0,.1);
  padding: 1.25rem 0;
  transform: translateY(100%); transition: transform .4s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-inner {
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 2rem; display: flex; align-items: center;
  justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.cookie-text { font-size: .9rem; color: var(--color-text-muted); flex: 1; min-width: 240px; }
.cookie-text a { text-decoration: underline; }
.cookie-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.btn-sm {
  padding: .55rem 1.25rem; font-family: var(--font-display);
  font-size: .9rem; letter-spacing: .04em; text-transform: uppercase;
  border-radius: var(--radius); cursor: pointer; border: none;
  transition: background .2s;
}
.btn-accept { background: var(--color-accent); color: #fff; }
.btn-accept:hover { background: var(--color-accent-hover); }
.btn-settings { background: var(--color-surface-alt); color: var(--color-text); }
.btn-settings:hover { background: var(--color-border); }
.btn-reject { background: transparent; color: var(--color-text-muted); border: 1px solid var(--color-border); }
.btn-reject:hover { background: var(--color-surface-alt); }

/* ---- Cookie Settings Modal ---- */
.cookie-modal {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.5); display: none;
  align-items: center; justify-content: center; padding: 2rem;
}
.cookie-modal.open { display: flex; }
.cookie-modal-content {
  background: var(--color-surface); border-radius: var(--radius);
  max-width: 520px; width: 100%; padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.cookie-modal-content h3 { margin-bottom: 1rem; }
.cookie-modal-content p { font-size: .9rem; color: var(--color-text-muted); margin-bottom: 1rem; }
.cookie-option { display: flex; justify-content: space-between; align-items: center; padding: .75rem 0; border-bottom: 1px solid var(--color-border); }
.cookie-option-label { font-size: .9rem; }
.cookie-option-label strong { display: block; font-size: .95rem; }
.toggle-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; background: var(--color-border);
  border-radius: 12px; cursor: pointer; transition: .3s;
}
.toggle-slider::before {
  content: ''; position: absolute; height: 18px; width: 18px;
  left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: .3s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--color-accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ---- Breadcrumbs ---- */
.breadcrumbs {
  max-width: var(--max-width); margin: 0 auto; padding: 1rem 2rem 0;
  font-size: .85rem; color: var(--color-text-muted);
}
.breadcrumbs a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--color-accent); }
.breadcrumbs span { color: var(--color-text); }

/* ---- Testimonials ---- */
.testimonials { background: var(--color-surface-alt); padding: 5rem 2rem; }
.testimonials-inner { max-width: var(--max-width); margin: 0 auto; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.testimonial-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 2rem;
}
.testimonial-stars { color: var(--color-accent); font-size: .9rem; margin-bottom: .75rem; letter-spacing: .1em; }
.testimonial-text { font-size: .95rem; color: var(--color-text-muted); font-style: italic; margin-bottom: 1rem; line-height: 1.6; }
.testimonial-author { font-weight: 600; font-size: .9rem; }
.testimonial-role { font-size: .8rem; color: var(--color-text-muted); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-image { max-width: 400px; }
  .service-hero { grid-template-columns: 1fr; min-height: auto; }
  .service-hero-img { aspect-ratio: 16/9; position: relative; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-list {
    display: none; position: absolute; top: 100%; right: 0;
    background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: var(--radius); box-shadow: var(--shadow-md);
    flex-direction: column; min-width: 220px; padding: .5rem 0;
  }
  .nav-list.open { display: flex; }
  .submenu { position: static; box-shadow: none; border: none; padding-left: 1rem; }
  .has-submenu:hover .submenu { display: none; }
  .has-submenu.open .submenu { display: block; }

  .services-grid { grid-template-columns: 1fr; }
  .section { padding: 3rem 1.25rem; }
  .hero-content { padding: 3rem 1.25rem; }
  .hero h1 { font-size: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { flex-direction: column; gap: .75rem; align-items: center; }
  .stats-row { gap: 1.5rem; flex-wrap: wrap; }
  .stat-number { font-size: 2.25rem; }
  .cookie-inner { flex-direction: column; text-align: center; }
  .contact-form-wrapper { padding: 1.5rem; }
  .content-section { padding: 2.5rem 1.25rem; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
}
