/* ==========================================================================
   Boutique du rembourreur — feuille de style
   ========================================================================== */

:root {
  --orange: #b95a31;
  --orange-dark: #9e4a26;
  --brown: #914626;
  --beige: #c0bbac;
  --cream: #f4efe6;
  --charcoal: #333333;
  --ink: #111111;
  --white: #ffffff;
  --star: #fbbc04;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Segoe UI", Arial, sans-serif;

  --container: 1040px;
  --radius: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --header-h: 110px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--brown);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--charcoal);
  color: var(--white);
  border-radius: 5px;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- Mise en page ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: 80px;
}

.bg-orange { background: var(--orange); }
.bg-brown { background: var(--brown); }
.bg-beige { background: var(--beige); }

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 28px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  background: var(--orange);
  border: 0;
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn:hover {
  background: var(--orange-dark);
}
.btn:active {
  transform: translateY(1px);
}
.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}
.btn svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.btn-block {
  width: 100%;
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--orange);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.site-header .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.logo img {
  width: 100px;
  height: auto;
}

.nav ul {
  display: flex;
  gap: 44px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--beige);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav a:hover {
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--cream);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Accueil (hero) ---------- */
.hero {
  padding-block: 48px 80px;
}

.hero .grid-2 {
  align-items: center;
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 3.75rem);
  line-height: 1.05;
  color: var(--beige);
}

.hero-tagline {
  margin: 18px 0 28px;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

/* ---------- Formulaires ---------- */
.form-card {
  padding: 28px 24px 24px;
  color: var(--white);
  background: var(--charcoal);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-card h2 {
  margin-bottom: 24px;
  font-size: 2rem;
  text-align: center;
  color: var(--white);
}

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

.field {
  margin-bottom: 12px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #d6d6d6;
  border-radius: 5px;
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: #6b6b6b;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(185, 90, 49, 0.55);
}

.form-card .btn {
  margin-top: 8px;
}

.form-note {
  margin-top: 12px;
  font-size: 0.8rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

/* Piège à robots : display:none pour que l'autoremplissage du navigateur ne le remplisse pas
   (sinon FormSubmit rejette le message en silence). */
.honeypot {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.form-status {
  margin-top: 14px;
  padding: 10px 12px;
  font-size: 0.95rem;
  text-align: center;
  color: var(--white);
  background: rgba(185, 90, 49, 0.25);
  border: 1px solid rgba(185, 90, 49, 0.7);
  border-radius: 5px;
}
.form-status a {
  font-weight: 700;
  color: var(--cream);
}

/* ---------- Avis ---------- */
.reviews-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 28px;
}

.reviews-head h2 {
  font-size: 1.75rem;
  font-weight: 700;
}

.rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.rating-score {
  font-size: 1.375rem;
  font-weight: 700;
}

.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--star);
}
.stars svg {
  width: 20px;
  height: 20px;
}

.rating-count {
  font-size: 0.85rem;
  color: rgba(17, 17, 17, 0.65);
}

.rating .btn {
  font-size: 0.95rem;
  padding: 10px 18px;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 22px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  font-family: var(--sans);
  font-weight: 700;
  color: var(--white);
  background: var(--orange);
  border-radius: 50%;
}

.review-name {
  font-size: 1rem;
  font-weight: 600;
}

.review-card .stars svg {
  width: 16px;
  height: 16px;
}

.review-text {
  flex: 1;
  font-size: 1rem;
}

.review-source {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: rgba(17, 17, 17, 0.6);
}
.review-source svg {
  width: 16px;
  height: 16px;
}

/* ---------- Carrousels ---------- */
.carousel {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 20px;
  padding: 4px 2px 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.reviews .carousel-slide {
  flex-basis: calc((100% - 40px) / 3);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transform: translateY(-50%);
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.carousel-btn svg {
  width: 20px;
  height: 20px;
}
.carousel-btn.prev { left: -16px; }
.carousel-btn.next { right: -16px; }
.carousel-btn[disabled] {
  opacity: 0;
  pointer-events: none;
}

.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(0, 0, 0, 0.28);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.carousel-dots button[aria-current="true"] {
  background: var(--ink);
}
.bg-brown .carousel-dots button {
  background: rgba(255, 255, 255, 0.35);
}
.bg-brown .carousel-dots button[aria-current="true"] {
  background: var(--cream);
}

/* ---------- À propos ---------- */
.about-text {
  text-align: center;
}

.about-text h2 {
  font-size: clamp(2.25rem, 5vw, 2.75rem);
  font-weight: 400;
}

.about-text p {
  max-width: 30ch;
  margin: 24px auto 0;
  font-size: 1.375rem;
  color: var(--cream);
}

.about-photo img {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

/* ---------- Instagram ---------- */
.instagram {
  text-align: center;
}

.instagram h2 {
  font-size: 2rem;
}

.instagram p {
  margin: 8px 0 28px;
  font-size: 1.25rem;
}

/* ---------- Contact ---------- */
.info-card {
  padding: 32px 28px;
  text-align: center;
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.info-card h2 {
  margin-bottom: 12px;
  font-size: 1.75rem;
}

.info-block + .info-block {
  margin-top: 28px;
}

.hours {
  max-width: 290px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  font-size: 1.125rem;
  color: var(--orange-dark);
}
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 3px 0;
  border-bottom: 1px dashed rgba(158, 74, 38, 0.25);
}
.hours li:last-child {
  border-bottom: 0;
}

.info-card a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--orange-dark);
  text-decoration: none;
}
.info-card a:hover {
  text-decoration: underline;
}

.map-link {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.map-link:hover {
  transform: translateY(-3px);
}
.map-link img {
  width: 100%;
}

/* ---------- Matériaux ---------- */
.materials .grid-2 {
  align-items: start;
}

.materials h2 {
  margin-bottom: 20px;
  font-size: 2rem;
  text-align: center;
}

.frame {
  padding: 10px;
  background: var(--beige);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.materials .carousel-track {
  gap: 0;
  padding: 0;
}

.materials .carousel-slide img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: var(--cream);
  border-radius: 4px;
}

.materials .carousel-btn.prev { left: -10px; }
.materials .carousel-btn.next { right: -10px; }

.materials-note {
  max-width: 34ch;
  margin: 22px auto 0;
  font-size: 1.125rem;
  font-style: italic;
  text-align: center;
  color: var(--cream);
}

/* ---------- Appel à l'action ---------- */
.cta .form-card {
  max-width: 560px;
  margin-inline: auto;
}

/* ---------- Pied de page ---------- */
.site-footer {
  padding-block: 40px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand .footer-name {
  font-size: 1.75rem;
  font-weight: 600;
}

.footer-brand p + p {
  margin-top: 6px;
  font-size: 0.8rem;
}

.footer-brand a {
  color: var(--cream);
}

.social {
  display: flex;
  gap: 16px;
}

.social a {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: var(--white);
  background: var(--charcoal);
  border-radius: 50%;
  transition: background-color 0.2s ease;
}
.social a:hover {
  background: var(--orange);
}
.social svg {
  width: 24px;
  height: 24px;
}

/* ---------- Avis de confidentialité sous les formulaires ---------- */
.form-consent {
  margin-top: 12px;
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
}
.form-consent a {
  color: var(--cream);
}

/* ---------- Pages légales ---------- */
.legal {
  color: var(--ink);
  background: var(--cream);
}
.legal .container {
  max-width: 760px;
}
.legal h1 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 5vw, 2.6rem);
  color: var(--brown);
}
.legal-updated {
  margin-bottom: 32px;
  font-size: 0.95rem;
  color: #6b6b6b;
}
.legal h2 {
  margin: 36px 0 10px;
  font-size: 1.4rem;
  color: var(--brown);
}
.legal p,
.legal li {
  font-size: 1.05rem;
}
.legal p + p {
  margin-top: 12px;
}
.legal ul {
  margin: 10px 0 12px;
  padding-left: 1.3em;
}
.legal li + li {
  margin-top: 6px;
}
.legal a {
  color: var(--orange-dark);
}

/* ---------- Page merci ---------- */
.thanks {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.thanks h1 {
  font-size: clamp(2.25rem, 5vw, 3rem);
  color: var(--beige);
}
.thanks p {
  margin: 16px auto 32px;
  max-width: 40ch;
  font-size: 1.25rem;
  color: var(--cream);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .reviews .carousel-slide {
    flex-basis: calc((100% - 20px) / 2);
  }
}

@media (max-width: 820px) {
  :root {
    --header-h: 84px;
  }

  .container {
    padding-inline: 20px;
  }

  .section {
    padding-block: 56px;
  }

  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .logo img {
    width: 72px;
  }

  .nav-toggle {
    display: grid;
  }

  .nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 4px 20px 16px;
    background: var(--orange);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }
  .nav.is-open ul {
    display: flex;
  }
  .nav a {
    display: block;
    padding: 14px 0;
    font-size: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .hero {
    padding-block: 36px 56px;
  }

  .about-photo {
    order: -1;
  }

  .materials .grid-2 {
    gap: 56px;
  }

  .frame {
    max-width: 440px;
    margin-inline: auto;
  }

  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .reviews .carousel-slide {
    flex-basis: 100%;
  }

  .carousel-btn.prev { left: -8px; }
  .carousel-btn.next { right: -8px; }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 16px;
  }

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

  .form-card {
    padding: 24px 16px 20px;
  }

  .info-card {
    padding: 28px 18px;
  }
}
