:root {
  --bg: #fff9f3;
  --bg-deep: #1b2430;
  --surface: #ffffff;
  --accent: #ea7b22;
  --accent-hover: #c95f0c;
  --gold: #ea7b22;
  --text: #222222;
  --muted: #656565;
  --border: rgba(27, 36, 48, 0.12);
  --radius: 16px;
  --shadow: 0 16px 42px rgba(27, 36, 48, 0.1);
  --font: "Outfit", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height:1.55;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(ellipse 120% 80% at 100% 0%, rgba(234, 123, 34, 0.12), transparent 50%),
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(29, 110, 47, 0.09), transparent 45%);
}

.wrap {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.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;
}

.site-header {
  background: linear-gradient(125deg, #1b2430 0%, #24364d 100%);
  color: #f9f8f5;
  padding: 1.1rem 0;
  border-bottom: 4px solid var(--accent);
}

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

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: inherit;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.logo span {
  color: #ffce8d;
}

.header-tag {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.95;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3.2rem 0 2.8rem;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 2.5rem;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
  font-weight: 600;
  color: #c95f0c;
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 4vw, 2.95rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--bg-deep);
}

.lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  max-width: 42ch;
}

.highlights {
  margin: 0 0 1.5rem;
  padding-left: 1.1rem;
  color: var(--text);
}

.highlights li {
  margin-bottom: 0.35rem;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1rem;
  margin-bottom: 1.5rem;
}

.price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.price-note {
  font-size: 0.88rem;
  color: var(--muted);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-assurance {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--bg-deep);
  border-color: rgba(27, 36, 48, 0.2);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  border: 1px solid var(--border);
}

.hero-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 4px);
}

.visual-caption {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.trust {
  padding: 0.5rem 0 2.8rem;
}

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

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

.trust-card {
  background: var(--surface);
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(27, 36, 48, 0.06);
  position: relative;
}

.trust-card::before {
  content: "";
  position: absolute;
  left: 1.2rem;
  top: 0;
  width: 42px;
  height: 4px;
  background: var(--accent);
  border-radius: 0 0 4px 4px;
}

.trust-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0.3rem 0 0.5rem;
  color: var(--bg-deep);
}

.trust-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.product-gallery {
  padding: 0 0 2.5rem;
}

.gallery-title {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
  color: var(--bg-deep);
}

.gallery-lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  max-width: 48ch;
  font-size: 0.98rem;
}

.gallery-hint {
  display: block;
  margin: -0.5rem 0 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Mobile-first: rangée horizontale avec défilement (pas d’empilement vertical). */
.gallery-scroller {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(4vw, 0.75rem);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  /* Déborde légèrement sur les bords pour un carrousel plus naturel au pouce */
  margin-inline: calc(50% - 50vw);
  padding-inline: max(4vw, 0.75rem);
  padding-bottom: 0.5rem;
  outline: none;
}

.gallery-scroller:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.gallery-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.75rem;
  width: max-content;
  padding-bottom: 0.25rem;
}

.gallery-card {
  margin: 0;
  flex: 0 0 min(78vw, 300px);
  width: min(78vw, 300px);
  max-width: min(78vw, 300px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(27, 36, 48, 0.06);
  overflow: hidden;
}

.gallery-card img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

@media (min-width: 900px) {
  .gallery-hint {
    display: none;
  }

  .gallery-scroller {
    overflow-x: visible;
    margin-inline: 0;
    padding-inline: 0;
    padding-bottom: 0;
    scroll-snap-type: none;
  }

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

  .gallery-card {
    flex: initial;
    width: auto;
    max-width: none;
    scroll-snap-align: unset;
    scroll-snap-stop: normal;
  }
}

.workflow {
  padding: 0.4rem 0 2.6rem;
}

.workflow h2 {
  font-family: var(--font-display);
  margin: 0 0 1.1rem;
  font-size: 1.75rem;
  color: var(--bg-deep);
}

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

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

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.step-number {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.step-card h3 {
  margin: 0 0 0.45rem;
  color: var(--bg-deep);
  font-size: 1rem;
}

.step-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.form-section {
  padding: 1.8rem 0 4rem;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .form-section {
    grid-template-columns: 1fr;
  }
}

.form-intro h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 0.75rem;
  color: var(--bg-deep);
}

.form-intro p {
  margin: 0;
  color: var(--muted);
  max-width: 42ch;
}

.lead-form {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(27, 36, 48, 0.15);
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 1.15rem;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--bg-deep);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: var(--font);
  font-size: 1rem;
  border: 1px solid rgba(27, 36, 48, 0.18);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

.field-inline {
  max-width: 140px;
}

.field-error {
  display: block;
  min-height: 1.2em;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #b42318;
}

.field-error:empty {
  display: none;
}

.form-api-error {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #7f1d1d;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
}

.form-api-error:empty,
.form-api-error.hidden {
  display: none !important;
}

.form-footer {
  margin-top: 1.5rem;
}

.form-footer .btn {
  width: 100%;
  border: none;
}

.fine-print {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

.fine-print code {
  font-size: 0.85em;
  background: rgba(234, 123, 34, 0.12);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.form-success {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
}

.form-success h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  color: var(--accent);
}

.form-success p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.hidden {
  display: none !important;
}

/* Popup : confirmation + objet JSON */
.create-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.create-modal.hidden {
  display: none !important;
}

.create-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 36, 48, 0.55);
  backdrop-filter: blur(3px);
}

.create-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  margin: auto;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(27, 36, 48, 0.2);
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
}

.create-modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 999px;
  background: rgba(234, 123, 34, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.create-modal-panel h2 {
  font-family: var(--font-display);
  margin: 0 0 0.6rem;
  font-size: 1.5rem;
  color: var(--bg-deep);
}

.create-modal-lead {
  margin: 0 0 1.5rem;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--muted);
}

.create-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 999px;
  background: rgba(27, 36, 48, 0.08);
  color: var(--bg-deep);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.create-modal-close:hover {
  background: rgba(27, 36, 48, 0.14);
}

.create-modal-ok {
  width: 100%;
  border: none;
}

.site-footer {
  background: #1b2430;
  color: rgba(249, 248, 245, 0.88);
  padding: 1.75rem 0;
  font-size: 0.88rem;
}

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

.footer-links a {
  color: #ffd6a6;
}
