/* =========================================
   Alex Groll Printer (AGP) — feuille de style
   ========================================= */

:root {
  --bg: #14120f;
  --bg-alt: #14120f;
  --surface: #201c17;
  --border: #332d24;
  --text: #f3ede2;
  --text-muted: #b9ad9a;
  --gold: #d4af37;
  --gold-light: #f0d886;
  --gold-dark: #9c7d22;
  --radius: 14px;
  --max-width: 1160px;
  --shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  margin: 0 0 0.5em;
  line-height: 1.2;
}

p { margin: 0 0 1em; }

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.eyebrow.center,
.section-title.center,
.section-lead.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  color: var(--text);
}

.section-lead {
  color: var(--text-muted);
  max-width: 620px;
  font-weight: 300;
}

.accent { color: var(--gold-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 60%, var(--gold-dark));
  color: #1a1509;
  box-shadow: var(--shadow);
}
.btn-primary:hover { transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 18, 15, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.brand-name {
  font-size: 1.05rem;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-tag {
  font-family: 'Poppins', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  font-weight: 500;
  margin-top: 3px;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--gold-light); }
.main-nav a.active {
  color: var(--gold-light);
  position: relative;
}
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
}

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 100px;
  background:
    radial-gradient(circle at 85% 10%, rgba(212, 175, 55, 0.12), transparent 45%),
    var(--bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* Comme .hero-actions, mais centré (utilisé pour les blocs d'appel à
   l'action au milieu d'une page, ex. section contact de l'accueil). */
.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.center-block { text-align: center; }

.hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
}
.section-alt {
  background: var(--bg-alt);
}

.section > .container > .eyebrow,
.section > .container > .section-title,
.section > .container > .section-lead {
  max-width: 640px;
}

.section-title.center { max-width: 700px; }

.section .section-lead.center { margin-bottom: 52px; }
.section > .container > .section-title { margin-bottom: 14px; }

/* ---------- Cards / Créations ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 20px;
}

.creations-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 20px 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

/* Carte utilisée comme lien (page d'accueil : cartes "Boutique" /
   "Galerie" / "Comment ça marche" qui renvoient vers ces pages). */
.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 22px 22px 26px;
}

.card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4em;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.price {
  color: var(--gold-light) !important;
  font-weight: 500;
  font-size: 0.92rem !important;
  margin-top: 12px;
}
.price span {
  color: var(--text-muted);
  font-weight: 300;
}

.buy-btn {
  flex: 1;
  padding: 0.7em 1.2em;
  font-size: 0.88rem;
}
.buy-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* ---------- Couleur & quantité (achat) ---------- */
.color-field {
  margin-top: 14px;
}

.color-label,
.qty-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  padding: 0;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.color-swatch:hover { transform: scale(1.08); }
.color-swatch.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--gold);
}

.color-error {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: #e2967a;
}

/* ---------- Modèle (achat) ---------- */
.model-field {
  margin-top: 14px;
}

.model-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.model-hint {
  font-size: 0.72rem;
  opacity: 0.75;
}

.model-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.model-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 64px;
  padding: 4px;
  background: none;
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.model-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
}
.model-thumb span {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.model-thumb:hover { border-color: var(--gold-light); }
.model-thumb.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--gold);
}

.model-error {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: #e2967a;
}

.buy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.buy-row .qty-label { margin: 0; }

.qty-input {
  width: 58px;
  padding: 0.65em 0.5em;
  text-align: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}
.qty-input:focus {
  outline: none;
  border-color: var(--gold);
}

/* ---------- Galerie (vitrine, non achetable) ---------- */
.card-galerie .card-body p {
  margin-bottom: 0;
}

/* ---------- Étapes ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 24px;
}

.step {
  padding: 26px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.step-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 10px;
}

.step h3 {
  font-size: 1.02rem;
  margin-bottom: 0.5em;
}

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

/* ---------- About ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.about-media img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.about-text p {
  color: var(--text-muted);
}

.link-arrow {
  color: var(--gold-light);
  font-weight: 500;
  display: inline-block;
  margin-top: 8px;
  transition: opacity 0.15s ease;
}
.link-arrow:hover { opacity: 0.8; }

/* ---------- Contact ---------- */
.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.95rem;
}

.contact-list strong {
  color: var(--gold-light);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.contact-list a { color: var(--text); }
.contact-list a:hover { color: var(--gold-light); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-row input,
.form-row textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-submit {
  margin-top: 4px;
  border: none;
}

.form-note {
  min-height: 1.2em;
  font-size: 0.88rem;
  color: var(--gold-light);
  margin: 0;
}

/* Piège à robots du formulaire de contact : invisible pour un visiteur
   humain, mais présent dans le HTML pour que les robots spammeurs le
   remplissent (ce qui permet de rejeter leur envoi). */
.botcheck-field {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

.footer-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
}

.footer-tag {
  color: var(--gold-light);
  font-size: 0.9rem;
  margin: 0;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner,
  .about-inner,
  .contact-inner {
    grid-template-columns: 1fr;
  }
  .about-inner { text-align: left; }
  .about-media { order: -1; }

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

@media (max-width: 720px) {
  .main-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--border);
    gap: 18px;
  }
  .site-header.nav-open .header-cta {
    display: none;
  }

  .cards-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
}
