:root {
  --green: #146c43;
  --green-dark: #0d4d2f;
  --gold: #d4a017;
  --ink: #121212;
  --muted: #5c5c5c;
  --paper: #f3f3f1;
  --white: #ffffff;
  --line: #e4e4e0;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Outfit, system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

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

a {
  color: var(--green-dark);
}

h1,
h2,
h3,
.brand span {
  font-family: Fraunces, Georgia, serif;
  letter-spacing: -0.02em;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.7rem;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 650;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(1180px, calc(100% - 2.4rem));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  padding: 0.5rem 0.8rem;
  z-index: 20;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 650;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.15rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}

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

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1.5rem; }
.gallery-photo { margin: 0; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.gallery-photo a { display: block; }
.gallery-photo a:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }
.gallery-photo img { width: 100%; height: auto; }
.gallery-photo figcaption { padding: 1rem 1.25rem; }
.gallery-empty { padding: clamp(2rem, 5vw, 4rem); text-align: center; background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); }
.gallery-empty svg { display: block; margin: 0 auto 1.25rem; color: var(--green); }
.gallery-empty p { margin: 0; color: var(--muted); }
.gallery-empty h2 { font-size: 1.2rem; }

.textile-intro { background: #f4f2eb; }
.textile-lead { font-size: 1.3rem; font-weight: 600; color: var(--green-dark); }
.textile-panel { background: white; padding: clamp(1.4rem, 4vw, 2.8rem); border-radius: var(--radius); border-top: 4px solid var(--gold); box-shadow: var(--shadow); }
.textile-panel .form-note { margin-top: 1.8rem; }
.textile-link { align-self: center; font-weight: 600; }
.textile-surfaces { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1.2rem; }
.textile-surfaces article { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.textile-surfaces img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.textile-surface-body { padding: 1.5rem; }
.textile-surfaces p { margin: 0; color: var(--muted); }
.textile-booking { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem; }
.textile-booking > div { flex: 1 1 400px; }
.price-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.price-table { width: 100%; border-collapse: collapse; text-align: left; }
.price-table caption { text-align: left; padding: 1.2rem; background: var(--green-dark); color: white; font-weight: 600; font-size: 1.15rem; }
.price-table th, .price-table td { padding: 1rem; border-bottom: 1px solid var(--line); }
.price-table thead { background: var(--paper); }
.price-table tbody tr:last-child > * { border-bottom: 0; }
.price-table strong { white-space: nowrap; color: var(--green-dark); }
.price-prefix { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 400; }
.price-note { margin-top: 0.8rem; }
[hidden] { display: none !important; }
#textile-dialog { width: min(580px, calc(100% - 2rem)); max-height: 90dvh; overflow-y: auto; border: 0; border-radius: var(--radius); padding: 1.5rem; color: var(--ink); }
#textile-dialog::backdrop { background: rgb(0 0 0 / 55%); }
.picker-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.picker-heading button { background: var(--paper); border: 0; border-radius: 50%; width: 40px; height: 40px; font-size: 1.5rem; cursor: pointer; flex-shrink: 0; }
.textile-picker { box-shadow: none; }
.textile-other-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1.2rem; margin-top: 2rem; }
.textile-price-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.price-amount { font-size: 2rem; color: var(--green-dark); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.booking-container { max-width: 850px; }
.booking-summary { margin: 0; padding: 1rem; border-left: 4px solid var(--green); background: var(--paper); font-weight: 600; }
.booking-form { margin-top: 1.5rem; }
.booking-form fieldset { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; display: grid; gap: 1rem; }
.booking-form legend { font-size: 1.3rem; font-weight: 600; margin-bottom: 1rem; }
.booking-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.65rem; }
.booking-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.slot-choice { position: relative; }
.slot-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.slot-choice span { display: block; text-align: center; padding: 0.8rem; border: 1px solid var(--green); border-radius: 8px; color: var(--green-dark); cursor: pointer; }
.slot-choice small { display: block; font-weight: 400; }
.slot-choice input:checked + span { background: var(--green); color: white; }
.slot-choice input:disabled + span { background: var(--paper); border-color: var(--line); color: var(--muted); cursor: not-allowed; }
.slot-choice input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.site-nav a.btn,
.site-nav a.btn:hover {
  color: #fff;
}

section[id] {
  scroll-margin-top: 100px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 6px;
  padding: 0.85rem 1.3rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover {
  background: var(--green-dark);
}

.btn-small {
  padding: 0.5rem 0.95rem;
  font-size: 0.92rem;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 0.6rem;
}

.hero {
  position: relative;
  min-height: 56.28vw;
  display: grid;
  align-items: center;
  color: #fff;
  background: #081610;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 22, 16, 0.9) 0%, rgba(8, 22, 16, 0.7) 38%, rgba(8, 22, 16, 0.12) 65%, rgba(8, 22, 16, 0.05) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 4rem;
  max-width: min(42rem, 48%);
}

.hero .eyebrow {
  color: var(--gold);
}

.lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.4rem 0 1.6rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.4rem;
  padding: 0;
  margin: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
}

.hero-points li::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--gold);
}

.section {
  padding: 4.8rem 0;
}

.section-alt {
  background: var(--paper);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.card {
  transition: transform 180ms ease, box-shadow 180ms ease;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.card-body {
  padding: 1.15rem 1.15rem 1.3rem;
}

.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 0.45rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.photo-frame {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.photo-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

#methode .photo-frame img {
  aspect-ratio: auto;
  object-fit: contain;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.1rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding-left: 3rem;
  position: relative;
}

.steps strong {
  display: block;
  margin-bottom: 0.25rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.checklist {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.checklist li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  margin-right: 0.5rem;
}

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

.stats article {
  padding: 1.4rem;
  border-top: 3px solid var(--gold);
  background: var(--paper);
}

.section-contact {
  background: #f7f8f6;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.contact-list span {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.contact-list p {
  margin: 0;
}

.form {
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.85rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.form-heading {
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.field-error,
.field-help {
  margin: 0;
  font-size: 0.85rem;
}

.field-error { color: #8a1c1c; }
.field-help { color: var(--muted); }
.form [aria-invalid="true"] { border-color: #8a1c1c; }
.form textarea { resize: vertical; }
.form input, .form select, .form textarea { width: 100%; min-width: 0; }

.form input,
.form select,
.form textarea {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

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

.hp {
  position: absolute;
  left: -9999px;
}

.alert {
  margin: 0;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
}

.alert-success {
  background: #e5f6ec;
  color: var(--green-dark);
}

.alert-error {
  background: #fde8e8;
  color: #8a1c1c;
}

.site-footer {
  padding: 1.6rem 0;
  background: #111;
  color: #ddd;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-inner p {
  margin: 0.2rem 0 0;
}

@media (max-width: 980px) {
  .cards,
  .split,
  .stats {
    grid-template-columns: 1fr 1fr;
  }
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 150ms ease, background 150ms ease;
}

.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before,
.nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-open .nav-toggle-bar { background: transparent; }
.nav-open .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 720px) {
  section[id] { scroll-margin-top: 76px; }

  .section { padding: 3.2rem 0; }

  /* En-tête compact : logo + bouton menu ; la navigation s'ouvre en dessous. */
  .header-inner {
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    padding: 0.6rem 0;
    min-height: 0;
  }

  .site-nav {
    justify-content: flex-start;
    width: 100%;
  }

  .has-nav-toggle .nav-toggle { display: inline-flex; }
  .has-nav-toggle .site-nav { display: none; }

  .has-nav-toggle.nav-open .site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 0.4rem;
    max-height: calc(100dvh - 70px);
    overflow-y: auto;
  }

  .has-nav-toggle.nav-open .site-nav a:not(.btn) {
    padding: 0.85rem 0;
    border-top: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .has-nav-toggle.nav-open .site-nav .btn { margin-top: 0.7rem; padding: 0.85rem 1rem; }

  .cards,
  .split,
  .stats,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Accueil : la photo entière au-dessus, le texte en dessous (plus de texte posé sur la photo). */
  .hero {
    display: block;
    min-height: 0;
  }

  .hero-bg {
    position: static;
    height: auto;
  }

  .hero::after { display: none; }

  .hero-copy {
    padding: 1.8rem 0 2.4rem;
    max-width: 100%;
  }

  .hero h1 { font-size: 2.05rem; }
  .lead { font-size: 1.02rem; }
  .hero-actions { margin: 1.2rem 0 1.4rem; }
  .hero-actions .btn { flex: 1 1 100%; }

  /* Textiles : vignette à gauche, texte à droite, pour une liste compacte. */
  .textile-surfaces { gap: 0.8rem; }
  .textile-surfaces article { display: grid; grid-template-columns: 110px 1fr; }
  .textile-surfaces img { height: 100%; min-height: 110px; aspect-ratio: auto; }
  .textile-surface-body { padding: 0.9rem 1rem; }
  .textile-surface-body h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
  .textile-surfaces p { font-size: 0.92rem; line-height: 1.45; }

  /* Tarifs : une ligne par textile, prix sous le nom, bouton à droite. */
  .price-table,
  .price-table tbody,
  .price-table caption { display: block; }
  .price-table caption { padding: 1rem; font-size: 1.05rem; }
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .price-table tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 1rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--line);
  }
  .price-table tbody tr:last-child { border-bottom: 0; }
  .price-table tbody th,
  .price-table tbody td { padding: 0; border: 0; }
  .price-table tbody td:nth-of-type(1) { grid-column: 1; }
  .price-table tbody td:nth-of-type(2) { grid-column: 2; grid-row: 1 / span 2; }
  .price-table .price-prefix { display: inline; margin-right: 0.3rem; }
  .price-table tbody td:nth-of-type(2) a {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--green);
    border-radius: 999px;
    color: var(--green-dark);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
  }

  /* Galerie : deux colonnes de vignettes ; un appui ouvre la photo entière. */
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .gallery-photo img { aspect-ratio: 3 / 4; object-fit: cover; }
  .gallery-photo figcaption { padding: 0.6rem 0.75rem; font-size: 0.85rem; line-height: 1.3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
  .card:hover { transform: none; }
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
}

.footer-nav a {
  color: inherit;
}
