/* Les Bricos de Mel — thème artisanal chaud (terracotta, bois, crème), mobile d'abord */
:root {
  --bg: #faf4ea;
  --bg-alt: #f4e9d6;
  --surface: #fffaf1;
  --surface-hover: #fdf1de;
  --border: #e2cfb2;
  --text: #402e21;
  --muted: #7d6350;
  --accent: #bc5633;
  --accent-strong: #9c4525;
  --accent-soft: #f3d9c8;
  --sage: #7d8c6f;
  --sage-dark: #5f7051;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  line-height: 1.25;
  margin: 0 0 0.5em;
  color: var(--text);
}
h1 { font-size: 2.6rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

a { color: var(--accent-strong); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 244, 234, 0.97);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
}
.logo strong { color: var(--accent); font-weight: 700; }
.logo-img {
  width: 44px;
  height: 44px;
  flex: none;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  border: 2px solid var(--accent-soft);
  background: var(--bg);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-left: auto;
}
.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.main-nav a:hover { color: var(--accent-strong); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--accent);
  border-radius: 999px;
  padding: 10px 22px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn-small { padding: 7px 16px; font-size: 0.95rem; }
.btn-large { padding: 13px 28px; font-size: 1.1rem; }
.btn-outline {
  background: transparent;
  color: var(--accent-strong);
}
.btn-outline:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-color: var(--accent);
}
.btn-disabled {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--muted);
  cursor: default;
}
.btn-disabled:hover { background: var(--bg-alt); border-color: var(--border); }

/* ---------- Accueil / bannière ---------- */
.hero {
  padding: 28px 0 48px;
  text-align: center;
}
.hero-banner {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(120, 72, 40, 0.18);
  margin-bottom: 30px;
}
.hero-sub {
  max-width: 720px;
  margin: 0 auto 1.2em;
  font-size: 1.2rem;
  color: var(--muted);
}
.hero-sub strong { color: var(--text); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 14px;
}
.hero-note { color: var(--muted); font-size: 1rem; margin: 0; }

/* ---------- Sections ---------- */
.section { padding: 52px 0; }
.section-alt { background: var(--bg-alt); }
.section-sub {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.15rem;
}

/* ---------- Qui est Mel ---------- */
.apropos-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}
.apropos-logo {
  width: 190px;
  height: 190px;
  flex: none;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  border: 3px solid var(--accent-soft);
  background: var(--bg);
  margin: 0 auto;
}
.apropos-inner > div { flex: 1 1 320px; }
.apropos-inner p { color: var(--muted); }
.apropos-inner p strong { color: var(--text); }

/* ---------- Cartes de créations ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 26px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.card:hover { background: var(--surface-hover); transform: translateY(-2px); }
.card h3 { margin-top: 14px; }
.card p { color: var(--muted); }
.card-photo {
  aspect-ratio: 4 / 3;
  border: 2px dashed var(--sage);
  border-radius: 12px;
  background:
    radial-gradient(circle at 25% 30%, rgba(188, 86, 51, 0.12), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(125, 140, 111, 0.18), transparent 55%),
    #f8efdd;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-photo span {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--sage-dark);
  letter-spacing: 0.02em;
}
.card-cta {
  margin: 0;
  font-weight: 700;
  color: var(--accent-strong) !important;
}

/* ---------- Étapes commande sur mesure ---------- */
.steps {
  list-style: none;
  margin: 26px 0 40px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.step-num {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps h3 { margin-bottom: 0.3em; }
.steps p { color: var(--muted); margin: 0; }

/* ---------- Formulaire ---------- */
.order-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  max-width: 680px;
}
.order-form h3 { font-size: 1.5rem; }
.order-form label {
  display: block;
  font-weight: 700;
  margin: 18px 0 6px;
}
.order-form input[type="text"],
.order-form textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
}
.order-form input[type="file"] {
  width: 100%;
  font: inherit;
  color: var(--muted);
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 11px 13px;
}
.order-form input:focus,
.order-form textarea:focus {
  outline: 3px solid var(--accent-soft);
  border-color: var(--accent);
}
.field-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 6px 0 0;
}
.order-form .btn { margin-top: 22px; }
.form-message {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--sage);
  color: var(--text);
  white-space: pre-wrap;
}

/* ---------- Contact ---------- */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 8px 0 16px;
}

/* ---------- Pied de page ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 34px 0 40px;
  text-align: center;
  color: var(--muted);
}
.footer-logo {
  width: 84px;
  height: 84px;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  margin-bottom: 10px;
}
.site-footer p { margin-bottom: 0.4em; }
.site-footer strong { color: var(--text); }
.footer-note { font-size: 0.95rem; }

/* ---------- Petit écran ---------- */
@media (max-width: 560px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.65rem; }
  .hero { padding-top: 18px; }
  .main-nav { margin-left: 0; }
  .apropos-logo { width: 150px; height: 150px; }
}
