/* =========================================================
   L'Atelier de Julie — feuille de style
   Palette reprise du logo « Un bout de gâteau » : trait fin
   noir, sauge pâle (le robot pâtissier), rose poudré (les
   petits cœurs), fond crème.
   ========================================================= */

:root {
  --bg:            #ECE9CE;   /* crème sauge chaude, plus soutenue */
  --bg-alt:        #DFDCB8;   /* sauge chaude plus soutenue, sections alternées */
  --ink:           #241F1B;   /* noir doux — reprend le trait fin du logo */
  --ink-soft:      #6B6259;   /* brun-gris doux pour le texte secondaire */
  --rose:          #A8577A;   /* rose poudré — accent principal, CTA (assombri depuis les cœurs du logo pour rester lisible) */
  --rose-dark:     #8A4463;   /* rose poudré foncé — survol */
  --rose-pale:     #F0B8C6;   /* rose pâle exact du logo — touches décoratives */
  --sage:          #A9C49E;   /* sauge claire, comme le robot pâtissier du logo */
  --sage-dark:     #6E8A5F;   /* sauge soutenue — filets, bordures, labels */
  --paper:         #FFFFFF;   /* blanc pur pour les cartes */

  --font-display: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --container: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--rose); text-decoration: none; }
a:hover { color: var(--rose-dark); text-decoration: underline; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Typographie ---------- */

h1, h2, h3, .site-title {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-dark);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 42em;
}

/* ---------- Header ---------- */

.site-header {
  padding: 1.6rem 0;
  border-bottom: 1px solid rgba(110,138,95,0.35);
}

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

.site-title {
  font-style: italic;
  font-size: 1.6rem;
  margin: 0;
}
.site-title a { color: var(--ink); }
.site-title a:hover { color: var(--rose); text-decoration: none; }

.site-logo {
  height: 92px;
  width: auto;
  display: block;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: wrap;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.8rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}
.main-nav a:hover { color: var(--rose); text-decoration: none; }

.main-nav .btn { color: var(--paper); }

/* ---------- Réseaux sociaux ---------- */

.social-links {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.social-link {
  display: inline-flex;
  color: var(--ink-soft);
}
.social-link:hover { color: var(--rose); }

.social-link svg {
  width: 20px;
  height: 20px;
}

.hero-social {
  display: flex;
  justify-content: center;
}
.hero-social .social-link svg {
  width: 34px;
  height: 34px;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-block;
  background: var(--rose);
  color: var(--paper) !important;
  padding: 0.75rem 1.6rem;
  border-radius: 3px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--rose-dark); text-decoration: none; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--rose) !important;
  border: 1.5px solid var(--rose);
}
.btn-outline:hover { background: var(--rose); color: var(--paper) !important; }

/* ---------- Bordure festonnée (signature visuelle) ----------
   Un rappel discret du geste de la poche à douille, utilisé
   comme séparateur entre les sections plutôt qu'un simple trait. */

.scallop {
  height: 22px;
  width: 100%;
  background-image: radial-gradient(circle at 11px 0, var(--bg) 11px, transparent 12px);
  background-size: 22px 22px;
  background-repeat: repeat-x;
  background-position: top center;
}
.scallop.alt {
  background-image: radial-gradient(circle at 11px 0, var(--bg-alt) 11px, transparent 12px);
}
.scallop.flip { transform: scaleY(-1); }

/* ---------- Hero ---------- */

.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero-logo {
  height: 220px;
  width: auto;
  margin: 0 auto 2rem;
}

@media (max-width: 560px) {
  .hero-logo { height: 160px; }
}

.hero-photo {
  aspect-ratio: 21 / 9;
  background: linear-gradient(135deg, var(--sage-dark) 0%, var(--rose) 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-top: 2.5rem;
  width: 100%;
  object-fit: cover;
}

.hero h1 { max-width: 16em; margin-left: auto; margin-right: auto; }

.hero-cta { margin-top: 2rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections génériques ---------- */

section.block { padding: 4rem 0; }
section.block.alt { background: var(--bg-alt); }

.section-head { max-width: 38em; margin: 0 auto 3rem; text-align: center; }

/* ---------- Étapes de commande (séquence réelle, donc numérotée) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  counter-reset: step;
}
.step { position: relative; padding-left: 3.2rem; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: -0.1rem;
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  border: 1.5px solid var(--sage-dark);
  color: var(--sage-dark);
  font-family: var(--font-display);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin-bottom: 0.3rem; font-size: 1.1rem; }
.step p { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }

/* ---------- Spécialités (page d'accueil) ---------- */

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--paper);
  border-radius: 6px;
  padding: 2.2rem 1.2rem;
  box-shadow: 0 1px 3px rgba(46,27,18,0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  color: inherit;
}
.category-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(46,27,18,0.12); text-decoration: none; }
.category-card h3 { margin: 0; }

.category-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-top: 1rem;
}

/* ---------- Grille de créations (regroupées par type) ---------- */

.creations-category { margin-bottom: 4rem; scroll-margin-top: 1.5rem; }
.creations-category:last-child { margin-bottom: 0; }
.creations-category h2 { margin-bottom: 1.5rem; }

.creations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 260px));
  gap: 1.4rem;
}

.creation-card {
  background: var(--paper);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(46,27,18,0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.creation-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(46,27,18,0.12); }

.creation-photo {
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  border-radius: 6px;
  object-fit: cover;
  width: 100%;
}

.creation-body { padding: 1.3rem 1.4rem 1.6rem; }
.creation-body h3 { margin-bottom: 0.3rem; }
.creation-body p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

/* ---------- Formulaire de commande ---------- */

.order-form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--paper);
  padding: 2.4rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(46,27,18,0.08);
}

.field { margin-bottom: 1.3rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

input, select, textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid rgba(110,138,95,0.4);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: var(--bg);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--rose);
}
textarea { resize: vertical; min-height: 110px; }

.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 1rem;
}

/* ---------- Tarifs ---------- */

.tarifs-content p {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 42em;
}

.tarifs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2.2rem 0;
  background: var(--paper);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(46,27,18,0.08);
}

.tarifs-content th, .tarifs-content td {
  padding: 0.9rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid rgba(110,138,95,0.25);
  font-size: 0.95rem;
}

.tarifs-content th {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--bg-alt);
}

.tarifs-content tr:last-child td { border-bottom: none; }

.tarifs-content em {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  .tarifs-content table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid rgba(110,138,95,0.35);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--rose); }

/* ---------- Accessibilité ---------- */

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
}

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

/* ---------- Responsive nav ---------- */

@media (max-width: 640px) {
  .main-nav ul { gap: 1rem; flex-wrap: wrap; justify-content: center; }
  .site-header .wrap { justify-content: center; text-align: center; }
}
