/* =========================================================
   Potard - Matériel Boulanger
   Feuille de style mobile-first
   ========================================================= */

:root {
  --color-dark: #23201d;
  --color-charcoal: #33302b;
  --color-cream: #faf6ef;
  --color-cream-2: #f2ead9;
  --color-amber: #c8801f;
  --color-amber-dark: #a4650f;
  --color-steel: #4d5a63;
  --color-text: #2c2925;
  --color-text-light: #6b655c;
  --color-border: #e5ddcb;
  --radius: 10px;
  --shadow: 0 6px 20px rgba(35, 32, 29, 0.10);
  --shadow-lg: 0 14px 40px rgba(35, 32, 29, 0.16);
  --container: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  line-height: 1.2;
  color: var(--color-dark);
  margin: 0 0 0.6em;
}

h1 { font-size: 1.9rem; font-weight: 800; }
h2 { font-size: 1.55rem; font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1em; }

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

.section {
  padding: 48px 0;
}

.section--alt {
  background: var(--color-cream-2);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-amber-dark);
  margin-bottom: 0.6em;
}

.section-head {
  max-width: 640px;
  margin: 0 0 28px;
}

.section-head p {
  color: var(--color-text-light);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-amber);
  color: #fff;
}
.btn--primary:hover { background: var(--color-amber-dark); }

.btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
.btn--ghost:hover { background: rgba(255,255,255,0.12); }

.btn--dark {
  background: var(--color-dark);
  color: #fff;
}
.btn--dark:hover { background: #000; }

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-border);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--color-dark);
  font-size: 1.05rem;
}

.brand img {
  height: 42px;
  width: auto;
}

.header-call {
  display: none;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #fff;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-dark);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle::before { transform: translateY(-6px); }
.nav-toggle::after { transform: translateY(6px); }

.nav-toggle.is-open span { opacity: 0; }
.nav-toggle.is-open::before { transform: translateY(0) rotate(45deg); }
.nav-toggle.is-open::after { transform: translateY(0) rotate(-45deg); }

.main-nav {
  position: fixed;
  inset: 0;
  top: 66px;
  background: var(--color-cream);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  overflow-y: auto;
  z-index: 40;
}

.main-nav.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.main-nav__list {
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 4px;
}

.main-nav__list a {
  display: block;
  padding: 16px 6px;
  font-weight: 700;
  font-size: 1.15rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-dark);
}

.main-nav__list a.is-active {
  color: var(--color-amber-dark);
}

.main-nav__cta {
  margin: 16px 20px 0;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--color-dark) 0%, var(--color-charcoal) 60%, #3d3327 100%);
  color: #fff;
  padding: 44px 0 52px;
}

.hero .eyebrow { color: #e3b46a; }

.hero h1 {
  color: #fff;
  font-size: 1.9rem;
}

.hero p.lead {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  max-width: 46em;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 30px;
}

.hero-stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 14px 12px;
}

.hero-stat strong {
  display: block;
  font-size: 1.3rem;
  color: #fff;
}

.hero-stat span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
}

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card__img {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
  background: var(--color-cream-2);
}

.card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card__body p {
  color: var(--color-text-light);
  flex: 1;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 16px;
}

.tag {
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--color-cream-2);
  color: var(--color-steel);
  padding: 5px 10px;
  border-radius: 100px;
}

.card__link {
  font-weight: 700;
  color: var(--color-amber-dark);
}

/* ---------- Service list ---------- */
.service-item {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--color-border);
}

.service-item:last-child { border-bottom: none; }

.service-item__num {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.service-item h3 { margin-bottom: 6px; }
.service-item p { color: var(--color-text-light); margin: 0; }

/* ---------- Zone map / list ---------- */
.zone-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.zone-list li {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 8px 14px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.92rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--color-amber);
  color: #fff;
  padding: 40px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn--dark { background: var(--color-dark); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.contact-info-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}
.contact-info-item:last-child { border-bottom: none; }

.contact-info-item strong {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-light);
  margin-bottom: 2px;
}

.map-frame {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 20px;
}
.map-frame iframe {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
}

/* ---------- Form ---------- */
.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-cream);
  color: var(--color-text);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--color-amber);
  background: #fff;
}

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

.form-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--color-text-light);
}
.form-check input { width: auto; margin-top: 4px; }

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-msg {
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 600;
  margin-bottom: 16px;
  display: none;
}
.form-msg.is-visible { display: block; }
.form-msg--ok { background: #e6f4ea; color: #1e6b3c; }
.form-msg--error { background: #fbe7e7; color: #a3271c; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.75);
  padding: 40px 0 20px;
}

.footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  margin-bottom: 28px;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 12px;
}

.footer-col p, .footer-col a { color: rgba(255,255,255,0.7); }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom .sep { padding: 0 6px; }

/* ---------- Breadcrumb / page hero (inner pages) ---------- */
.page-hero {
  background: var(--color-dark);
  color: #fff;
  padding: 36px 0;
}
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,0.8); margin: 0; max-width: 46em; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  z-index: 100;
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p {
  font-size: 0.88rem;
  color: var(--color-text-light);
  margin-bottom: 14px;
}
.cookie-banner .btn-row {
  margin-top: 0;
  flex-direction: column;
}
.cookie-banner .btn-row .btn { width: 100%; }

/* =========================================================
   Tablet and up
   ========================================================= */
@media (min-width: 700px) {
  h1 { font-size: 2.3rem; }
  h2 { font-size: 1.9rem; }

  .hero h1 { font-size: 2.5rem; }

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

  .hero-stats { grid-template-columns: repeat(4, 1fr); }

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

  .contact-grid { grid-template-columns: 1fr 1fr; }

  .cookie-banner {
    left: auto;
    right: 20px;
    bottom: 20px;
    max-width: 380px;
  }
  .cookie-banner .btn-row { flex-direction: row; }
  .cookie-banner .btn-row .btn { width: auto; }
}

/* =========================================================
   Desktop
   ========================================================= */
@media (min-width: 1000px) {
  .site-header__bar { padding: 16px 0; }

  .header-call {
    display: flex;
    align-items: center;
    gap: 18px;
  }
  .header-call a {
    font-weight: 700;
    color: var(--color-dark);
    font-size: 0.95rem;
  }
  .header-call a span {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
  }

  .nav-toggle { display: none; }

  .main-nav {
    position: static;
    inset: auto;
    background: transparent;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    overflow: visible;
  }

  .main-nav__list {
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 26px;
  }

  .main-nav__list a {
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    font-size: 0.98rem;
  }
  .main-nav__list a:hover,
  .main-nav__list a.is-active {
    border-color: var(--color-amber);
  }

  .main-nav__cta { margin: 0; }

  .site-header__bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
  }

  .hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
  }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}
