/* =====================================================================
   TOUT LE STYLE DU SITE PART DE CES VARIABLES.
   Change une couleur ici, et elle change partout sur le site.
===================================================================== */
:root {
  --wood-dark:   #241a10;   /* brun châtaigne profond - charpentes, bois brûlé */
  --wood-mid:    #6b4a31;   /* bois clair, portes anciennes de Bonifacio */
  --maquis:      #566a45;   /* vert maquis corse */
  --maquis-dark: #3c4c32;
  --limestone:   #f2ede0;   /* blanc calcaire des falaises de Bonifacio */
  --stone-line:  #d8cfb8;
  --rust:        #a85a30;   /* tuiles / accent rare */
  --ink:         #241d15;
  --paper:       #faf8f2;

  --font-display: "Fraunces", serif;
  --font-body: "Work Sans", sans-serif;

  --radius: 2px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-weight: 400;
  line-height: 1.6;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--maquis-dark);
  font-weight: 600;
  margin: 0 0 10px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0 0 0.5em;
  color: var(--wood-dark);
}

h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  margin-bottom: 0.6em;
}

.btn {
  display: inline-block;
  padding: 14px 34px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-primary {
  background: var(--rust);
  color: var(--paper);
}
.btn-primary:hover { background: var(--wood-dark); }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 242, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--stone-line);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-logo { width: 42px; height: 42px; object-fit: contain; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--wood-dark);
  letter-spacing: 0.01em;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--rust); }
.nav-phone {
  border: 1px solid var(--wood-dark);
  padding: 8px 16px;
  border-radius: var(--radius);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--wood-dark);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--paper);
}
.hero-media, .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36,26,16,0.55) 0%, rgba(36,26,16,0.72) 60%, rgba(36,26,16,0.88) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 120px 28px 90px;
}
.hero-logo {
  width: 92px;
  margin: 0 auto 22px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.35));
}
.hero-content h1 {
  color: var(--paper);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  margin-bottom: 0.15em;
}
.hero-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--limestone);
  margin-bottom: 26px;
}
.hero-intro {
  font-size: 1rem;
  color: #ece6d8;
  margin-bottom: 34px;
}
.cliff-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 70px;
  fill: var(--paper);
  z-index: 2;
}

/* ============ SERVICES ============ */
.services { padding: 100px 0 90px; text-align: center; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 50px;
  text-align: center;
}
.service-card {
  background: var(--limestone);
  padding: 50px 34px 44px;
  border-radius: var(--radius);
  border-top: 3px solid var(--maquis);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.service-icon {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin: 0 auto 26px;
}
.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5em;
}
.service-card p {
  color: #4a4235;
  font-size: 0.98rem;
  margin: 0;
  max-width: 30ch;
}

/* ============ HISTOIRE ============ */
.histoire {
  background: var(--wood-dark);
  color: var(--limestone);
  padding: 100px 0;
}
.histoire-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: start;
}
.histoire-quote {
  position: sticky;
  top: 110px;
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--rust);
  line-height: 1;
  margin: 0;
}
.quote-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1.4;
  color: var(--limestone);
  border-left: 2px solid var(--maquis);
  padding-left: 24px;
}
.histoire .eyebrow { color: #cdbf9e; }
.histoire h2 { color: var(--limestone); }
.histoire-subtitle {
  font-style: italic;
  font-weight: 400;
  font-size: 1.15rem;
  color: #d8cfb8;
  margin-bottom: 1em;
}
.histoire-body p {
  color: #d8d0bf;
  font-size: 0.98rem;
  margin-bottom: 1.1em;
}

/* ============ PROJETS ============ */
.projets { padding: 100px 0; text-align: center; }
.section-intro {
  max-width: 560px;
  margin: 0 auto 50px;
  color: #4a4235;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery-item {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 15, 9, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 34px;
  background: none;
  border: none;
  color: var(--paper);
  font-size: 2.4rem;
  cursor: pointer;
  line-height: 1;
}

/* ============ CONTACT ============ */
.contact { background: var(--limestone); padding: 100px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
}
.contact-logo { width: 74px; margin: 18px 0 26px; }
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-list li {
  padding: 14px 0;
  border-top: 1px solid var(--stone-line);
  font-size: 1rem;
}
.contact-list li:last-child { border-bottom: 1px solid var(--stone-line); }
.contact-list span {
  display: block;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--maquis-dark);
  margin-bottom: 3px;
  font-weight: 600;
}
.contact-list a { color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--rust); }

.contact-form {
  background: var(--paper);
  padding: 40px;
  border-radius: var(--radius);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  color: var(--maquis-dark);
  font-weight: 600;
}
.form-field input, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--stone-line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus {
  outline: 2px solid var(--maquis);
  outline-offset: 1px;
}
.contact-form .btn { border: none; width: 100%; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--wood-dark);
  color: #cdbf9e;
  padding: 50px 0 30px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.footer-logo { width: 54px; opacity: 0.9; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}
.footer-links a {
  color: #cdbf9e;
  text-decoration: none;
  font-size: 0.8rem;
}
.footer-links a:hover { color: var(--paper); }
.footer-phone { color: var(--paper); text-decoration: none; font-family: var(--font-display); font-size: 1.1rem; }
.footer-copy { font-size: 0.75rem; color: #8a7c5e; margin: 10px 0 0; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .service-grid { grid-template-columns: 1fr; }
  .histoire-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .histoire-quote { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 28px 26px;
    gap: 18px;
    display: none;
    border-bottom: 1px solid var(--stone-line);
  }
  .main-nav.open { display: flex; }
  .gallery { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery-item img { transition: none; }
}
