/* ============================
   BEAUJOL'IA — style.css
   ============================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --terracotta: #C1694F;
  --terracotta-dark: #A8563E;
  --terracotta-light: #F2E8E4;
  --ocre: #D4943A;
  --encre: #1A1210;
  --encre-soft: #3D2B22;
  --beige: #F7F3EF;
  --beige-mid: #EDE6DF;
  --gris: #8A7B74;
  --gris-light: #C4B8B2;
  --blanc: #FFFFFF;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 2px 20px rgba(26,18,16,0.08);
  --max-w: 1080px;
  --transition: 0.22s ease;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--encre);
  background: var(--beige);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ============================
   NAV
   ============================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,243,239,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--beige-mid);
  padding: 0 2rem;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 2rem;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--encre-soft);
  letter-spacing: 0.02em;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--terracotta);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--terracotta); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--terracotta);
  color: var(--blanc);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--terracotta-dark);
  transform: translateY(-1px);
}

/* Burger mobile */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--encre);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================
   LAYOUT
   ============================ */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 5rem 0; }
section:first-child { padding-top: 0; }

/* ============================
   HERO
   ============================ */

.hero {
  padding: 6rem 0 5rem;
  background: var(--beige);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193,105,79,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--encre);
  margin-bottom: 1.25rem;
  max-width: 700px;
}

.hero h1 em {
  font-style: italic;
  color: var(--terracotta);
}

.hero-sub {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--encre);
  margin-bottom: 0.75rem;
  max-width: 600px;
}

.hero-body {
  font-size: 1rem;
  color: var(--gris);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ============================
   BOUTONS
   ============================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--blanc);
}
.btn-primary:hover {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(193,105,79,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--encre);
  border: 1.5px solid var(--beige-mid);
}
.btn-secondary:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}

/* ============================
   CHIFFRES CLÉS
   ============================ */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--beige-mid);
  border: 1px solid var(--beige-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 4rem;
}

.stat {
  background: var(--blanc);
  padding: 2rem 1.75rem;
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 13px;
  color: var(--gris);
  line-height: 1.5;
}

/* ============================
   SECTION TITRE
   ============================ */

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--encre);
  margin-bottom: 1rem;
}

.section-title em { font-style: italic; color: var(--terracotta); }

.section-body {
  font-size: 1rem;
  color: var(--gris);
  max-width: 560px;
  line-height: 1.75;
}

/* ============================
   CARTES SERVICES (home)
   ============================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--blanc);
  border: 1px solid var(--beige-mid);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-card:hover {
  border-color: var(--terracotta);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.service-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--terracotta-light);
  line-height: 1;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--encre);
}

.service-card p {
  font-size: 14px;
  color: var(--gris);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.service-price-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--terracotta);
  border: 1px solid rgba(193,105,79,0.3);
  padding: 4px 10px;
  border-radius: 3px;
}

/* ============================
   CTA BANDE
   ============================ */

.cta-band {
  background: var(--encre);
  padding: 5rem 0;
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--blanc);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.cta-band p {
  color: var(--gris-light);
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* ============================
   PAGE INTERNE — HERO
   ============================ */

.page-hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--beige-mid);
  margin-bottom: 4rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--encre);
  margin-bottom: 1rem;
  max-width: 700px;
}

.page-hero h1 em { font-style: italic; color: var(--terracotta); }

.page-hero p {
  font-size: 1.1rem;
  color: var(--gris);
  max-width: 560px;
  line-height: 1.75;
}

/* ============================
   TIMELINE (expertise)
   ============================ */

.timeline {
  position: relative;
  padding-left: 3rem;
  margin-top: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--beige-mid);
}

.tl-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.tl-dot {
  position: absolute;
  left: -2.7rem;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--terracotta);
  border: 2px solid var(--beige);
  box-shadow: 0 0 0 2px var(--terracotta);
}

.tl-year {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.4rem;
}

.tl-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--encre);
  margin-bottom: 0.4rem;
}

.tl-item p {
  font-size: 15px;
  color: var(--gris);
  line-height: 1.7;
}

/* ============================
   SERVICE PAGE
   ============================ */

.service-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--beige-mid);
}

.service-section:last-of-type { border-bottom: none; }

.service-tag-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--terracotta);
  border: 1px solid rgba(193,105,79,0.3);
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 1.25rem;
}

.service-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--encre);
  margin-bottom: 1rem;
  max-width: 640px;
}

.service-section p {
  font-size: 1rem;
  color: var(--gris);
  max-width: 620px;
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.price-from {
  font-size: 15px;
  color: var(--gris);
  margin-top: 1.25rem;
}

.price-from strong {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--encre);
}

/* ============================
   TARIFS
   ============================ */

.tarif-group {
  margin-bottom: 3rem;
}

.tarif-group-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tarif-group-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--beige-mid);
}

.tarif-table {
  width: 100%;
  border-collapse: collapse;
}

.tarif-table tr {
  border-bottom: 1px solid var(--beige-mid);
}

.tarif-table tr:last-child { border-bottom: none; }

.tarif-table td {
  padding: 1rem 0;
  font-size: 15px;
}

.tarif-table td:first-child { color: var(--encre-soft); }
.tarif-table td:last-child {
  text-align: right;
  font-weight: 500;
  color: var(--encre);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.tarif-note {
  font-size: 13px;
  color: var(--gris);
  margin-top: 0.5rem;
  font-style: italic;
}

.devis-box {
  background: var(--terracotta-light);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  margin: 3rem 0;
}

.devis-box p {
  font-size: 1rem;
  color: var(--encre-soft);
  line-height: 1.7;
  margin-bottom: 0;
}

.json-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blanc);
  border: 1px solid var(--beige-mid);
  border-radius: var(--radius);
  padding: 8px 16px;
  font-size: 13px;
  color: var(--gris);
  margin-top: 1.5rem;
}

.json-note span { color: var(--terracotta); font-weight: 500; }

/* ============================
   CONTACT FORM
   ============================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--encre);
}

.contact-info p {
  font-size: 15px;
  color: var(--gris);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.contact-info a {
  color: var(--terracotta);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gris);
}

.form-group input,
.form-group textarea,
.form-group select {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1.5px solid var(--beige-mid);
  border-radius: var(--radius);
  background: var(--blanc);
  color: var(--encre);
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--terracotta);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A7B74' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

.form-submit {
  width: 100%;
  justify-content: center;
}

.form-mention {
  font-size: 12px;
  color: var(--gris);
  margin-top: 0.75rem;
  text-align: center;
}

/* ============================
   MENTIONS LÉGALES
   ============================ */

.ml-content {
  max-width: 720px;
}

.ml-content h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--encre);
  margin: 2rem 0 0.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--beige-mid);
}

.ml-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.ml-content p {
  font-size: 15px;
  color: var(--gris);
  line-height: 1.75;
}

.ml-content a { color: var(--terracotta); }

/* ============================
   FOOTER
   ============================ */

.footer {
  background: var(--encre);
  padding: 3rem 0 2rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-logo img { height: 36px; width: auto; opacity: 0.9; }

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--gris-light);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--blanc); }

.footer-copy {
  font-size: 12px;
  color: var(--gris);
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--beige);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--beige-mid);
    z-index: 99;
  }

  .nav-links.open + .nav-cta {
    display: block;
    margin: 0 2rem 2rem;
    position: fixed;
    left: 0;
    right: 0;
    top: calc(72px + 2rem + 5 * 1.5rem + 5 * 1rem);
    z-index: 99;
  }

  .stats { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }

  section { padding: 3rem 0; }
  .hero { padding: 3rem 0 2.5rem; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

/* ============================
   ANIMATIONS ENTRÉE
   ============================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.6s ease both;
}

.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }
.fade-up-4 { animation-delay: 0.45s; }
