/* PH ENDUITS — site artisanal
   Palette : pierre, argile, beige chaud, terracotta douce, olive / charcoal */

:root {
  --stone: #8b7355;
  --clay: #c4a484;
  --beige: #f3ebe0;
  --cream: #faf6f0;
  --terracotta: #b56a4c;
  --terracotta-deep: #8f4e36;
  --olive: #4a5c3a;
  --charcoal: #2c2a26;
  --ink: #3a342c;
  --muted: #6b6358;
  --border: #d9cfc0;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(44, 42, 38, 0.08);
  --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 960px;
  --narrow: 640px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

a {
  color: var(--terracotta-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--olive);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.wrap.narrow {
  width: min(100% - 2rem, var(--narrow));
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.85rem 0;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--charcoal);
  text-decoration: none;
}

.logo:hover {
  color: var(--terracotta-deep);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

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

/* Hero */
.hero {
  background:
    linear-gradient(160deg, var(--beige) 0%, #e8d9c4 55%, #dcc9b0 100%);
  border-bottom: 1px solid var(--border);
  padding: 4.5rem 0 4rem;
}

.hero-inner {
  max-width: 36rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--olive);
  font-weight: 600;
}

.hero h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--charcoal);
}

.tagline {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-style: italic;
  color: var(--stone);
}

.hero-lead {
  margin: 0 0 1.75rem;
  color: var(--ink);
  max-width: 32rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background: var(--terracotta);
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--terracotta-deep);
  color: var(--white);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.15rem);
  color: var(--charcoal);
  border-bottom: 2px solid var(--clay);
  padding-bottom: 0.4rem;
  display: inline-block;
}

.section-intro {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.section-intro code {
  font-size: 0.9em;
  background: var(--beige);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

.about {
  background: var(--white);
}

.about p {
  margin: 0 0 1rem;
}

.about p:last-child {
  margin-bottom: 0;
}

/* Services */
.services {
  background: var(--beige);
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 560px) {
  .service-list { grid-template-columns: 1fr; }
}

.service-list li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--olive);
}

.service-list h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--charcoal);
}

.service-list p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--muted);
}

/* Gallery */
.gallery {
  background: var(--cream);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.gallery-grid figure {
  margin: 0;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--beige);
}

@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* Contact */
.contact {
  background: var(--white);
}

.contact-details {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contact-details .label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 0.15rem;
}

.contact-details .value {
  font-size: 1.1rem;
  color: var(--charcoal);
}

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: #d9cfc0;
  padding: 2rem 0;
}

.footer-inner {
  text-align: center;
}

.site-footer p {
  margin: 0 0 0.35rem;
}

.site-footer .credit {
  font-size: 0.9rem;
  opacity: 0.85;
}

.site-footer strong {
  color: var(--cream);
}

/* Responsive tweaks */
@media (max-width: 560px) {
  .hero {
    padding: 3rem 0 2.75rem;
  }

  .section {
    padding: 2.75rem 0;
  }

  .nav {
    gap: 0.25rem 0.85rem;
  }
}
