/* Atelier Habitat - feuille de style unique */

:root {
  --ah-rose-poudre: #e8c7c8;
  --ah-gris-clair: #f2f2f4;
  --ah-encre: #3a3436;
  --ah-secondaire: #736b6e;
  --ah-accent: #b56576;
  --ah-blanc-casse: #fbf9f9;
  --ah-blanc: #ffffff;
  --ah-radius: 18px;
  --ah-radius-lg: 32px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Century Gothic', 'Avenir Next', 'Segoe UI', 'Apple Gothic', sans-serif;
  color: var(--ah-encre);
  background: var(--ah-gris-clair);
  line-height: 1.65;
  font-size: 17px;
  letter-spacing: 0.2px;
}

img, svg {
  max-width: 100%;
}

a {
  color: var(--ah-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  color: var(--ah-encre);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.5px;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 0 0 0.4em;
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  margin: 0 0 0.6em;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.4em;
}

p {
  margin: 0 0 1.1em;
  color: var(--ah-encre);
}

.ah-muted {
  color: var(--ah-secondaire);
}

/* Layout ------------------------------------------------ */

.ah-wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.ah-section {
  padding: 78px 0;
}

.ah-section-tight {
  padding: 48px 0;
}

/* Header ------------------------------------------------ */

.ah-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 249, 249, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(181, 101, 118, 0.14);
}

.ah-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
  max-width: 1120px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.ah-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 1px;
  color: var(--ah-encre);
}

.ah-brand:hover {
  text-decoration: none;
}

.ah-brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.ah-nav-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ah-nav-links a {
  color: var(--ah-encre);
  font-size: 0.98rem;
  letter-spacing: 0.6px;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}

.ah-nav-links a:hover {
  text-decoration: none;
  border-bottom-color: var(--ah-rose-poudre);
}

.ah-nav-links a.is-active {
  border-bottom-color: var(--ah-accent);
}

/* Buttons ----------------------------------------------- */

.ah-btn {
  display: inline-block;
  background: var(--ah-accent);
  color: var(--ah-blanc);
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 1rem;
  letter-spacing: 0.6px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.ah-btn:hover {
  text-decoration: none;
  background: #a1566a;
  transform: translateY(-2px);
}

.ah-btn-ghost {
  background: transparent;
  color: var(--ah-accent);
  border: 2px solid var(--ah-rose-poudre);
}

.ah-btn-ghost:hover {
  background: var(--ah-rose-poudre);
  color: var(--ah-encre);
}

/* Hero -------------------------------------------------- */

.ah-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 88px;
  background: linear-gradient(160deg, var(--ah-blanc-casse) 0%, var(--ah-gris-clair) 100%);
}

.ah-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.ah-hero-kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.78rem;
  color: var(--ah-accent);
  margin-bottom: 18px;
  padding: 6px 16px;
  background: rgba(232, 199, 200, 0.4);
  border-radius: 999px;
}

.ah-hero p.ah-lead {
  font-size: 1.18rem;
  color: var(--ah-secondaire);
  max-width: 30em;
}

.ah-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* Hero decorative composition (formes geometriques CSS) */
.ah-hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
}

.ah-shape {
  position: absolute;
  border-radius: 20px;
}

.ah-shape-1 {
  width: 62%;
  height: 62%;
  right: 0;
  top: 6%;
  background: var(--ah-rose-poudre);
  border-radius: 28px;
}

.ah-shape-2 {
  width: 44%;
  height: 44%;
  left: 0;
  bottom: 4%;
  background: var(--ah-blanc);
  box-shadow: 0 20px 50px rgba(58, 52, 54, 0.12);
}

.ah-shape-3 {
  width: 34%;
  height: 34%;
  left: 26%;
  top: 0;
  background: var(--ah-accent);
  border-radius: 50%;
  opacity: 0.9;
}

.ah-shape-4 {
  width: 100%;
  height: 100%;
  border: 2px solid rgba(181, 101, 118, 0.25);
  border-radius: 32px;
  top: 0;
  left: 0;
}

.ah-shape-arc {
  position: absolute;
  right: 8%;
  bottom: 10%;
  width: 46%;
  height: 46%;
  border: 14px solid var(--ah-rose-poudre);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(35deg);
}

/* Feature / prose blocks -------------------------------- */

.ah-panel {
  background: var(--ah-blanc);
  border-radius: var(--ah-radius-lg);
  padding: 44px;
  box-shadow: 0 24px 60px rgba(58, 52, 54, 0.07);
}

.ah-panel-rose {
  background: linear-gradient(150deg, var(--ah-rose-poudre) 0%, #f2d7d8 100%);
  box-shadow: none;
}

.ah-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.ah-eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.76rem;
  color: var(--ah-accent);
  margin-bottom: 14px;
}

/* Demarche steps (moodboard style) ---------------------- */

.ah-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 34px;
}

.ah-step {
  background: var(--ah-blanc);
  border-radius: var(--ah-radius);
  padding: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(58, 52, 54, 0.06);
}

.ah-step .ah-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--ah-rose-poudre);
  color: var(--ah-encre);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.ah-step p {
  margin-bottom: 0;
  color: var(--ah-secondaire);
}

/* Masonry-ish moodboard --------------------------------- */

.ah-moodboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 90px;
  gap: 16px;
  margin-top: 20px;
}

.ah-tile {
  border-radius: var(--ah-radius);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  color: var(--ah-encre);
  font-size: 0.95rem;
  letter-spacing: 0.4px;
}

.ah-tile.t-rose { background: var(--ah-rose-poudre); }
.ah-tile.t-accent { background: var(--ah-accent); color: var(--ah-blanc); }
.ah-tile.t-white { background: var(--ah-blanc); box-shadow: 0 12px 30px rgba(58,52,54,0.06); }
.ah-tile.t-ink { background: var(--ah-encre); color: var(--ah-blanc-casse); }
.ah-tile.t-soft { background: #f2d7d8; }

.ah-tile.s-wide { grid-column: span 2; }
.ah-tile.s-tall { grid-row: span 2; }
.ah-tile.s-big { grid-column: span 2; grid-row: span 2; }

/* FAQ --------------------------------------------------- */

.ah-faq {
  display: grid;
  gap: 14px;
  max-width: 820px;
}

.ah-faq details {
  background: var(--ah-blanc);
  border-radius: var(--ah-radius);
  padding: 6px 26px;
  box-shadow: 0 12px 30px rgba(58, 52, 54, 0.05);
  border-left: 4px solid var(--ah-rose-poudre);
}

.ah-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--ah-encre);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.ah-faq summary::-webkit-details-marker {
  display: none;
}

.ah-faq summary::after {
  content: '+';
  color: var(--ah-accent);
  font-size: 1.5rem;
  line-height: 1;
}

.ah-faq details[open] summary::after {
  content: '\2212';
}

.ah-faq details[open] summary {
  border-bottom: 1px solid rgba(181, 101, 118, 0.15);
}

.ah-faq p {
  padding: 16px 0 20px;
  color: var(--ah-secondaire);
  margin: 0;
}

/* Prestations prose ------------------------------------- */

.ah-prose-block {
  margin-bottom: 60px;
}

.ah-prose-block:last-child {
  margin-bottom: 0;
}

.ah-prose-block .ah-index {
  font-size: 0.85rem;
  letter-spacing: 3px;
  color: var(--ah-accent);
  display: block;
  margin-bottom: 10px;
}

.ah-prose-lead {
  font-size: 1.15rem;
  color: var(--ah-secondaire);
  max-width: 42em;
}

/* Realisations galerie ---------------------------------- */

.ah-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 34px;
}

.ah-case {
  background: var(--ah-blanc);
  border-radius: var(--ah-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(58, 52, 54, 0.08);
}

.ah-case-visuals {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.ah-case-visuals figure {
  margin: 0;
  position: relative;
}

.ah-case-visuals figure svg {
  display: block;
  width: 100%;
  height: auto;
}

.ah-case-label {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(251, 249, 249, 0.92);
  color: var(--ah-encre);
  font-size: 0.74rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.ah-case-body {
  padding: 26px 30px 32px;
}

.ah-case-body h3 {
  margin-bottom: 8px;
}

.ah-case-body p {
  color: var(--ah-secondaire);
  margin-bottom: 0;
}

.ah-note {
  display: inline-block;
  background: rgba(232, 199, 200, 0.45);
  color: var(--ah-encre);
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 0.94rem;
  margin-top: 8px;
}

/* Contact ----------------------------------------------- */

.ah-contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.ah-form {
  display: grid;
  gap: 18px;
}

.ah-field {
  display: grid;
  gap: 7px;
}

.ah-field label {
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  color: var(--ah-encre);
  font-weight: 700;
}

.ah-field input,
.ah-field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ah-encre);
  background: var(--ah-blanc);
  border: 1.5px solid rgba(115, 107, 110, 0.25);
  border-radius: 12px;
  padding: 13px 16px;
}

.ah-field input:focus,
.ah-field textarea:focus {
  outline: none;
  border-color: var(--ah-accent);
  box-shadow: 0 0 0 3px rgba(232, 199, 200, 0.5);
}

.ah-field textarea {
  min-height: 150px;
  resize: vertical;
}

.ah-form-note {
  font-size: 0.9rem;
  color: var(--ah-secondaire);
  margin: 0;
}

.ah-contact-card {
  background: linear-gradient(150deg, var(--ah-rose-poudre) 0%, #efd4d5 100%);
  border-radius: var(--ah-radius-lg);
  padding: 40px;
}

.ah-contact-card a {
  color: var(--ah-encre);
  font-weight: 700;
}

/* Callout / CTA band ------------------------------------ */

.ah-cta {
  background: var(--ah-encre);
  color: var(--ah-blanc-casse);
  border-radius: var(--ah-radius-lg);
  padding: 56px;
  text-align: center;
}

.ah-cta h2 {
  color: var(--ah-blanc);
}

.ah-cta p {
  color: rgba(251, 249, 249, 0.78);
  max-width: 40em;
  margin-left: auto;
  margin-right: auto;
}

/* Footer ------------------------------------------------ */

.ah-footer {
  background: var(--ah-blanc-casse);
  border-top: 1px solid rgba(181, 101, 118, 0.14);
  padding: 46px 0 40px;
  margin-top: 20px;
}

.ah-footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.ah-footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ah-footer-links a {
  color: var(--ah-secondaire);
  font-size: 0.95rem;
}

.ah-footer small {
  color: var(--ah-secondaire);
  font-size: 0.86rem;
  display: block;
  margin-top: 16px;
}

/* Page intro (interior pages) --------------------------- */

.ah-page-head {
  padding: 74px 0 30px;
  background: linear-gradient(160deg, var(--ah-blanc-casse) 0%, var(--ah-gris-clair) 100%);
}

.ah-page-head p {
  max-width: 40em;
  font-size: 1.12rem;
  color: var(--ah-secondaire);
}

/* Legal ------------------------------------------------- */

.ah-legal h2 {
  font-size: 1.3rem;
  margin-top: 38px;
}

.ah-legal p {
  color: var(--ah-secondaire);
  max-width: 46em;
}

/* Responsive -------------------------------------------- */

@media (max-width: 880px) {
  .ah-hero-grid,
  .ah-split,
  .ah-contact-grid,
  .ah-gallery,
  .ah-steps {
    grid-template-columns: 1fr;
  }

  .ah-hero-art {
    max-width: 380px;
    margin: 0 auto;
  }

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

  .ah-panel,
  .ah-cta,
  .ah-contact-card {
    padding: 32px;
  }

  .ah-section {
    padding: 56px 0;
  }
}

@media (max-width: 560px) {
  .ah-nav-links {
    gap: 16px;
  }

  .ah-nav-links a {
    font-size: 0.9rem;
  }

  .ah-case-visuals {
    grid-template-columns: 1fr;
  }
}
