/* ========================================================
   Starter — Atelier Bois
   Template de démonstration Silex · Formule Repère
   Palette : bois, cuivre, lin
   ======================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  background: #faf6f0;
  color: #1e1610;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Layout --- */
.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

/* --- Typography --- */
h1, h2, h3, h4 { font-weight: 500; line-height: 1.1; }
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -0.025em; }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
h4 { font-family: system-ui, -apple-system, sans-serif; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
p { max-width: 62ch; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: #8b4513;
  color: #faf6f0;
}
.btn-primary:hover {
  background: #6f3610;
  box-shadow: 0 4px 20px rgba(139, 69, 19, 0.3);
}

.btn-light {
  background: #faf6f0;
  color: #1e1610;
}
.btn-light:hover {
  background: #fff;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
}

.btn-full { width: 100%; text-align: center; }

/* --- Section generics --- */
.section { padding: 5rem 0; }

.section-kicker {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a0622e;
  margin-bottom: 0.6rem;
}

.section-title { margin-bottom: 1.6rem; }

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30, 22, 16, 0.08);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.logo {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.logo span { color: #a0622e; }
.nav { display: flex; gap: 1.8rem; }
.nav-link {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #5a4a3a;
  position: relative;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #8b4513;
  transition: width 0.25s ease;
}
.nav-link:hover, .nav-link.active { color: #1e1610; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* --- Hero --- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 85vh;
  align-items: center;
  gap: 3rem;
  overflow: hidden;
}
.hero-inner { padding: 4rem 0; }
.hero-kicker {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a0622e;
  margin-bottom: 1.2rem;
}
.hero-title { margin-bottom: 1.4rem; }
.hero-sub {
  font-size: 1.1rem;
  color: #5a4a3a;
  margin-bottom: 2.2rem;
  max-width: 46ch;
}
.hero-visual {
  height: 100%;
  min-height: 500px;
  background: linear-gradient(160deg, #d4a76a 0%, #8b5e34 40%, #3d2010 100%);
  border-radius: 0 0 0 80px;
}

/* --- Savoir-faire --- */
.savoir-faire { background: #fff; }
.sf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 0.5rem;
}
.sf-card {
  background: #faf6f0;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sf-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(139, 69, 19, 0.1);
}
.sf-img {
  height: 220px;
  width: 100%;
}
.sf-card h3 {
  padding: 1.3rem 1.5rem 0;
  font-size: 1.25rem;
}
.sf-card p {
  padding: 0.5rem 1.5rem 1.6rem;
  font-size: 0.95rem;
  color: #5a4a3a;
  line-height: 1.55;
}

/* --- Realisations --- */
.realisations { background: #faf6f0; }
.real-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 0.5rem;
}
.real-card {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.real-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(30, 22, 16, 0.1);
}
.real-img { height: 200px; width: 100%; }
.real-body { padding: 1.2rem 1.3rem 1.5rem; }
.real-body h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.real-body p { font-size: 0.9rem; color: #6b5a4a; line-height: 1.5; }
.real-note {
  margin-top: 2rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.8rem;
  color: #9a8a7a;
  text-align: center;
}

/* --- A propos --- */
.apropos { background: #fff; }
.apropos-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 4rem;
  align-items: center;
}
.apropos-text p {
  color: #5a4a3a;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}
.apropos-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.stat {
  text-align: center;
  padding: 1.8rem;
  background: #faf6f0;
  border-radius: 12px;
  border: 1px solid rgba(160, 98, 46, 0.12);
}
.stat-number {
  display: block;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  color: #8b4513;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-label {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
  color: #7a6a5a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --- Temoignages --- */
.temoignages { background: #f3ece2; }
.temo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.temo-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem 1.8rem;
  border: none;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.temo-card::before {
  content: "\201C";
  position: absolute;
  top: 0.8rem;
  left: 1.4rem;
  font-size: 4rem;
  line-height: 1;
  color: rgba(160, 98, 46, 0.15);
  font-family: Georgia, serif;
}
.temo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(30, 22, 16, 0.07);
}
.temo-text {
  font-size: 1rem;
  font-style: italic;
  color: #3a2e24;
  line-height: 1.6;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
}
.temo-author strong {
  display: block;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
  font-style: normal;
}
.temo-author span {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.8rem;
  color: #9a8a7a;
  font-style: normal;
}
.temo-note {
  margin-top: 2rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.8rem;
  color: #9a8a7a;
  text-align: center;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, #3d2010, #1e1610);
  color: #faf6f0;
  padding: 4.5rem 0;
  text-align: center;
}
.cta-inner h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0.6rem;
}
.cta-inner p {
  max-width: 50ch;
  margin: 0 auto 2rem;
  color: rgba(250, 246, 240, 0.7);
  font-size: 1.05rem;
}

/* --- Footer --- */
.site-footer {
  background: #1e1610;
  color: #d4c8b8;
  padding-top: 3.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 0.8fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-logo {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #faf6f0;
}
.footer-logo span { color: #a0622e; }
.footer-tagline {
  font-size: 0.95rem;
  color: #9a8a7a;
  margin-top: 0.4rem;
}
.footer-demo {
  margin-top: 0.5rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.75rem;
  color: #6b5a4a;
}
.footer-col h4 {
  color: #faf6f0;
  margin-bottom: 0.9rem;
}
.footer-col p {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-nav a {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.88rem;
  color: #d4c8b8;
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: #faf6f0; }
.footer-bottom {
  border-top: 1px solid rgba(250, 246, 240, 0.08);
  padding: 1.2rem 0;
}
.footer-bottom p {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.78rem;
  color: #6b5a4a;
  text-align: center;
}

/* --- Contact page --- */
.contact-hero { padding-bottom: 2rem; }
.contact-intro {
  font-size: 1.1rem;
  color: #5a4a3a;
  max-width: 55ch;
}
.contact-body { padding-top: 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: start;
}
.contact-form-col h2 { margin-bottom: 1.5rem; }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.form-group label {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #5a4a3a;
}
.form-group input,
.form-group textarea,
.form-group select {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  border: 1px solid #d6c9b8;
  border-radius: 8px;
  background: #fff;
  color: #1e1610;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #a0622e;
  box-shadow: 0 0 0 3px rgba(160, 98, 46, 0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { cursor: pointer; }
.form-note {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.78rem;
  color: #9a8a7a;
  text-align: center;
  margin-top: 0.3rem;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.info-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.3rem 1.5rem;
  border: 1px solid rgba(160, 98, 46, 0.08);
}
.info-card h3 {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a0622e;
  margin-bottom: 0.5rem;
}
.info-card p {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.92rem;
  color: #3a2e24;
  line-height: 1.55;
}
.map-placeholder {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e8ddd0, #d4c4b0);
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-placeholder span {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
  color: #8a7a6a;
}

/* --- Animations on scroll (CSS only) --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-inner,
.sf-card,
.real-card,
.temo-card,
.stat,
.info-card {
  animation: fadeUp 0.6s ease both;
}
.sf-card:nth-child(2),
.real-card:nth-child(2),
.temo-card:nth-child(2) { animation-delay: 0.1s; }
.sf-card:nth-child(3),
.real-card:nth-child(3),
.temo-card:nth-child(3) { animation-delay: 0.2s; }
.real-card:nth-child(4) { animation-delay: 0.15s; }
.real-card:nth-child(5) { animation-delay: 0.25s; }
.real-card:nth-child(6) { animation-delay: 0.3s; }
.stat:nth-child(2) { animation-delay: 0.12s; }
.stat:nth-child(3) { animation-delay: 0.24s; }

/* --- Responsive --- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual {
    height: 350px;
    border-radius: 0;
    order: -1;
  }
  .hero-inner { padding: 2.5rem 0; }
  .sf-grid { grid-template-columns: 1fr; }
  .real-grid { grid-template-columns: repeat(2, 1fr); }
  .apropos-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .apropos-stats { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .stat { flex: 1; min-width: 140px; }
  .temo-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 600px) {
  .wrap { width: calc(100% - 2rem); }
  .section { padding: 3.5rem 0; }
  h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
  .hero-visual { height: 260px; }
  .real-grid { grid-template-columns: 1fr; }
  .apropos-stats { flex-direction: column; }
  .stat { min-width: auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .cta-banner { padding: 3rem 0; }
  .nav { gap: 1.2rem; }
}
