/* ══════════════════════════════════════════
   SERVICE BOIS — style.css
   ══════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --bois:           #5C4A32;
  --bois-clair:     #8A7055;
  --bois-pale:      #F2E9DC;
  --bois-tres-pale: #FAF6F0;
  --ardoise:        #2C2C2A;
  --ardoise-mid:    #4A4845;
  --blanc-casse:    #FEFCFA;
  --accent:         #5C4A32;
  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Karla', sans-serif;
}

/* ── RESET ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--blanc-casse);
  color: var(--ardoise);
  font-size: 16px;
  line-height: 1.7;
}

/* ── NAVIGATION ── */
body > nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4vw;
  height: 70px;
  background: rgba(254,252,250,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(92,74,50,0.12);
  transition: box-shadow 0.3s;
}

.nav-logo {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none;
}

/* L'image : on crop l'espace blanc en affichant juste l'emblème */
.nav-logo img {
  height: 44px;
  width: 44px;
  object-fit: cover;
  object-position: center 28%;
  display: block;
  border-radius: 50%;
}

/* Texte à côté du logo */
.nav-logo-text {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bois);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex; gap: 2.5rem; list-style: none; align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ardoise-mid);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--bois); }

.nav-cta {
  background: var(--bois) !important;
  color: var(--blanc-casse) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 2px;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--bois-clair) !important; color: white !important; }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 70px;
  overflow: hidden;
}

.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 6vw 5vw 6vw 8vw;
  background: var(--blanc-casse);
  position: relative;
}

.hero-left::before {
  content: '';
  position: absolute;
  top: 60px; left: 8vw;
  width: 40px; height: 2px;
  background: var(--bois);
}

.hero-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--bois);
  font-weight: 500; margin-bottom: 1.4rem; margin-top: 1rem;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.18; color: var(--ardoise);
  margin-bottom: 1.5rem; font-weight: 400;
}

.hero-title em { font-style: italic; color: var(--bois); }

.hero-desc {
  font-size: 1rem; color: var(--ardoise-mid);
  max-width: 420px; margin-bottom: 2.5rem;
  font-weight: 300; line-height: 1.8;
}

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

.btn-primary {
  display: inline-block; background: var(--bois); color: white;
  text-decoration: none; font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.9rem 2rem; border-radius: 2px;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover { background: var(--bois-clair); transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; font-weight: 500;
  color: var(--ardoise-mid); text-decoration: none;
  letter-spacing: 0.06em; transition: color 0.2s;
}

.btn-secondary::after { content: '→'; font-size: 1rem; }
.btn-secondary:hover { color: var(--bois); }

.hero-right {
  position: relative; overflow: hidden;
  background: var(--blanc-casse);
  display: flex; align-items: center; justify-content: center;
}

.hero-right img {
  width: 100%; height: 100%;
  object-fit: contain; display: block;
  min-height: 480px;
}

.hero-badge {
  position: absolute; bottom: 2.5rem; left: -1.5rem;
  background: var(--ardoise); color: white;
  padding: 1.2rem 2rem;
  border-radius: 2px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-align: center;
  min-width: 140px;
}

.hero-badge strong {
  display: block; font-size: 2rem;
  font-family: var(--serif); color: #C4A882;
  line-height: 1; margin-bottom: 0.4rem;
}

/* ── SECTIONS ── */
section { padding: 7rem 8vw; }

.section-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--bois-clair);
  font-weight: 500; margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400; color: var(--ardoise);
  line-height: 1.2; margin-bottom: 1.2rem;
}

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

.section-lead {
  font-size: 1rem; font-weight: 300;
  color: var(--ardoise-mid); max-width: 560px; line-height: 1.85;
}

/* ── PRESTATIONS ── */
#prestations {
  background: var(--bois-tres-pale);
  position: relative;
}

#prestations::before {
  content: ''; position: absolute; top: 0; left: 8vw; right: 8vw;
  height: 1px; background: rgba(92,74,50,0.15);
}

.prestations-header { margin-bottom: 4rem; }

.prestations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5px;
  background: rgba(92,74,50,0.12);
  border: 1.5px solid rgba(92,74,50,0.12);
}

.prestation-card {
  background: var(--blanc-casse);
  padding: 2rem 1.8rem;
  transition: background 0.2s;
  cursor: default;
}

.prestation-card:hover { background: var(--bois-pale); }

.prestation-icon {
  width: 36px; height: 36px;
  margin-bottom: 1rem; color: var(--bois-clair);
}

.prestation-num {
  font-family: var(--serif); font-style: italic;
  font-size: 0.75rem; color: var(--bois-clair);
  margin-bottom: 0.5rem; display: block;
}

.prestation-name {
  font-size: 0.95rem; font-weight: 500;
  color: var(--ardoise); letter-spacing: 0.01em; line-height: 1.35;
}

.prestation-desc {
  font-size: 0.82rem; font-weight: 300;
  color: var(--ardoise-mid); line-height: 1.6;
  margin-top: 0.6rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.prestation-card:hover .prestation-desc {
  max-height: 80px;
  opacity: 1;
  transform: translateY(0);
}

/* ── À PROPOS ── */
#apropos {
  display: grid;
  grid-template-columns: 30fr 70fr;
  gap: 8vw; align-items: center;
}

#apropos img {
  width: 100%;
  height: 500px;
  object-fit: contain;
  object-position: center 15%;
  border-radius: 2px;
  display: block;
}

.apropos-content { padding-right: 2vw; }

.apropos-quote {
  font-family: var(--serif); font-style: italic;
  font-size: 1.2rem; color: var(--bois); line-height: 1.6;
  border-left: 2px solid var(--bois);
  padding-left: 1.5rem; margin: 2rem 0;
}

.apropos-body {
  font-size: 0.96rem; font-weight: 300;
  color: var(--ardoise-mid); line-height: 1.9; margin-bottom: 1.5rem;
}

.engagements {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-top: 2.5rem;
}

.engagement {
  padding: 1.2rem 1.4rem;
  background: var(--bois-tres-pale);
  border-left: 2px solid var(--bois-pale);
  transition: border-color 0.2s;
}

.engagement:hover { border-color: var(--bois); }

.engagement-label {
  font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--bois);
  font-weight: 500; margin-bottom: 0.3rem;
}

.engagement-text {
  font-size: 0.88rem; color: var(--ardoise-mid); font-weight: 300;
}

/* ── RÉALISATIONS ── */
#realisations { background: var(--ardoise); }

#realisations .section-eyebrow { color: #C4A882; }
#realisations .section-title   { color: var(--blanc-casse); }
#realisations .section-lead    { color: rgba(254,252,250,0.55); }

.realisations-header { margin-bottom: 3.5rem; }

.realisations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.real-card {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
  border-radius: 2px;
  min-height: 260px;
}

.real-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.real-card:hover img { transform: scale(1.05); }

.real-card-label {
  position: relative; z-index: 2;
  padding: 1.2rem 1.4rem; width: 100%;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
}

.real-card-label span {
  font-size: 0.78rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: rgba(255,255,255,0.8); font-weight: 500;
}

.real-card-label p {
  font-family: var(--serif); color: white;
  font-size: 0.96rem; margin-top: 0.2rem;
}

/* ── LIGHTBOX GALERIE ── */
.real-card { cursor: pointer; }

.real-card-photos-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 3;
  background: rgba(0,0,0,0.55);
  color: white;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.7rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.real-card-photos-badge svg {
  width: 13px; height: 13px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20,18,16,0.94);
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-content {
  max-width: 86vw;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 86vw;
  max-height: 74vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-caption {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(254,252,250,0.85);
  font-family: var(--serif);
  font-size: 1rem;
}

.lightbox-caption #lightbox-counter {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: rgba(254,252,250,0.5);
  letter-spacing: 0.05em;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  background: none; border: none;
  color: white;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.18); }
.lightbox-prev { left: 2rem; }
.lightbox-next { right: 2rem; }

@media (max-width: 700px) {
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-prev { left: 0.8rem; }
  .lightbox-next { right: 0.8rem; }
  .lightbox-close { top: 1rem; right: 1.2rem; font-size: 1.8rem; }
}

/* ── CONTACT ── */
#contact {
  background: var(--bois-pale);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw; align-items: center;
}

.contact-info .section-eyebrow { color: var(--bois); }
.contact-info .section-title   { font-size: 2rem; }

.contact-details {
  margin-top: 2.5rem; display: flex;
  flex-direction: column; gap: 1.5rem;
}

.contact-item { display: flex; gap: 1rem; align-items: flex-start; }

.contact-item-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--blanc-casse); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
}

.contact-item-icon svg { width: 18px; height: 18px; color: var(--bois); }

.contact-item-label {
  font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--bois-clair); font-weight: 500;
}

.contact-item-value {
  font-size: 0.95rem; color: var(--ardoise);
  font-weight: 400; margin-top: 0.1rem;
}

.form-title {
  font-family: var(--serif);
  font-size: 1.8rem; font-weight: 400;
  color: var(--ardoise); margin-bottom: 2rem;
}

.form-group { margin-bottom: 1.2rem; }

.form-group label {
  display: block; font-size: 0.75rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bois); font-weight: 500; margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; background: var(--blanc-casse);
  border: 1px solid rgba(92,74,50,0.25);
  border-radius: 2px; padding: 0.75rem 1rem;
  font-family: var(--sans); font-size: 0.95rem;
  color: var(--ardoise); outline: none;
  transition: border-color 0.2s; appearance: none;
}

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

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

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

.form-rgpd {
  margin-top: 0.5rem;
}

.rgpd-label {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--ardoise-mid);
  line-height: 1.6;
  cursor: pointer;
}

.rgpd-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 2px;
  accent-color: var(--bois);
  cursor: pointer;
}

.rgpd-label a {
  color: var(--bois);
  text-decoration: underline;
}

.btn-submit {
  width: 100%; background: var(--ardoise); color: white;
  border: none; cursor: pointer; padding: 1rem;
  font-family: var(--sans); font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 2px; transition: background 0.2s; margin-top: 0.5rem;
}

.btn-submit:hover { background: var(--bois); }

/* ── FOOTER ── */
footer {
  background: var(--ardoise);
  padding: 2.5rem 8vw;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}

.footer-logo {
  font-family: var(--serif); color: var(--blanc-casse); font-size: 1rem;
}

.footer-logo em { font-style: italic; color: #C4A882; }

.footer-mention {
  font-size: 0.78rem; color: rgba(254,252,250,0.35); letter-spacing: 0.05em;
}

.footer-links { display: flex; gap: 1.5rem; }

.footer-links a {
  font-size: 0.75rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(254,252,250,0.45);
  text-decoration: none; transition: color 0.2s;
}

.footer-links a:hover { color: #C4A882; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow { animation: fadeUp 0.6s ease both; }
.hero-title   { animation: fadeUp 0.6s 0.12s ease both; }
.hero-desc    { animation: fadeUp 0.6s 0.22s ease both; }
.hero-actions { animation: fadeUp 0.6s 0.32s ease both; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  #hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 4rem 6vw 3rem; }
  .hero-right img { min-height: 320px; }
  .hero-badge { left: 1rem; bottom: 1.5rem; }

  .prestations-grid { grid-template-columns: repeat(2, 1fr); }

  #apropos { grid-template-columns: 1fr; }
  #apropos img { height: 380px; object-position: center; }

  #contact { grid-template-columns: 1fr; }

  .realisations-grid {
    grid-template-columns: 1fr 1fr;
  }
  .real-card { min-height: 220px; }

  section { padding: 5rem 6vw; }
  .nav-links { display: none; }
  .engagements { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .prestations-grid { grid-template-columns: repeat(2, 1fr); }
  .realisations-grid { grid-template-columns: 1fr; }
  .real-card { min-height: 240px; }
  .form-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; align-items: flex-start; }
}