/* Up Découpe — design system (RAL 6005) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* RAL 6005 Moss Green */
  --brand: #0F4D3D;
  --brand-700: #0A3329;
  --brand-500: #156B55;
  --brand-300: #4F9082;
  --brand-100: #E2EDE9;
  --brand-50:  #F1F6F4;

  --bg:        #FAFAF7;
  --surface:   #FFFFFF;
  --surface-2: #F4F4EF;
  --border:    #E4E2DA;
  --border-strong: #C7C6BD;

  --ink:       #131814;
  --ink-2:     #2E342F;
  --muted:     #6B716D;
  --muted-2:   #9A9E99;

  --danger:    #B43A2C;
  --warn:      #C58A20;
  --ok:        #2E7D5A;

  --radius:    14px;
  --radius-sm: 8px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(15,77,61,0.06), 0 1px 1px rgba(15,77,61,0.04);
  --shadow-md: 0 8px 24px -8px rgba(15,77,61,0.18), 0 2px 6px rgba(15,77,61,0.06);
  --shadow-lg: 0 24px 60px -20px rgba(15,77,61,0.25);

  --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

img { max-width: 100%; height: auto; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-700); }

button { font-family: inherit; cursor: pointer; }

input, select, textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
}

/* ============ Navigation ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.nav-logo img {
  height: 68px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-link {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover { background: var(--brand-50); color: var(--brand); }
.nav-link.active { background: var(--brand-100); color: var(--brand-700); }

.nav-cta {
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--brand);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.15s, transform 0.1s;
}
.nav-cta:hover { background: var(--brand-700); color: white; transform: translateY(-1px); }

.nav-account {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem 0.45rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-account:hover { border-color: var(--brand); color: var(--brand); }

.nav-account .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============ Layout helpers ============ */
.shell { max-width: 1280px; margin: 0 auto; padding: 2rem 1.5rem; }
.shell-narrow { max-width: 860px; margin: 0 auto; padding: 2rem 1.5rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
  background: var(--brand-100);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

h1, h2, h3, h4 { font-family: var(--font-sans); color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 700; line-height: 1.05; }
h2 { font-size: clamp(1.5rem, 2.2vw, 1.95rem); font-weight: 700; line-height: 1.15; }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: 0.95rem; font-weight: 600; }

.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, transform 0.1s, box-shadow 0.15s;
  text-decoration: none;
  background: transparent;
  color: var(--ink);
}
.btn-primary { background: var(--brand); color: white; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-700); border-color: var(--brand-700); color: white; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { color: var(--brand); }
.btn-ghost:hover { background: var(--brand-50); }
.btn-block { width: 100%; }
.btn-lg { padding: 1.05rem 1.6rem; font-size: 1rem; }

/* ============ Cards / surfaces ============ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* ============ Form fields ============ */
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.field .req::after { content: ' *'; color: var(--brand); }

.input, .select, .textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(15,77,61,0.10);
}
.input[readonly], .input:disabled {
  background: var(--surface-2);
  color: var(--muted);
}

.input-suffix {
  position: relative;
}
.input-suffix .suffix {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  pointer-events: none;
}
.input-suffix .input { padding-right: 2.4rem; }

/* ============ Footer ============ */
footer.site-footer {
  background: var(--brand-700);
  color: #D8E5DF;
  margin-top: 4rem;
  padding: 3.5rem 1.5rem 1.5rem;
}
footer.site-footer .footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
}
footer.site-footer h4 {
  color: white;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-weight: 500;
}
footer.site-footer p, footer.site-footer a {
  color: #B7C7C1;
  font-size: 0.9rem;
  line-height: 1.7;
  text-decoration: none;
  display: block;
}
footer.site-footer a:hover { color: white; }
footer.site-footer .footer-brand .logo-pill {
  display: inline-block;
  margin-bottom: 1.1rem;
}
footer.site-footer .footer-brand .logo-pill img {
  height: 64px;
  width: auto;
  display: block;
}
footer.site-footer .footer-tagline {
  color: #B7C7C1;
  font-size: 0.9rem;
  max-width: 320px;
}
footer.site-footer .hours { display: flex; flex-direction: column; gap: 0.15rem; }
footer.site-footer .hours .day {
  color: white;
  font-weight: 500;
  font-size: 0.85rem;
  margin-top: 0.6rem;
}
footer.site-footer .hours .day:first-child { margin-top: 0; }
footer.site-footer .hours .time {
  color: #B7C7C1;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

footer.site-footer .footer-bottom {
  max-width: 1280px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
}
footer.site-footer .footer-bottom > span:first-child {
  white-space: nowrap !important;
  flex-shrink: 0;
}
/* Force tous les liens du footer-bottom en inline (sinon ils héritent
   du display:block défini plus haut sur footer a et sautent à la ligne) */
footer.site-footer .footer-bottom a {
  display: inline !important;
  font-size: inherit;
  line-height: inherit;
}
footer.site-footer .footer-bottom > span:last-child {
  display: inline-flex;
  gap: 0.9rem;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Resserre la taille sur écrans intermédiaires (laptops 13"–15") */
@media (max-width: 1280px) {
  footer.site-footer .footer-bottom { font-size: 0.74rem; gap: 0.4rem 0.9rem; }
  footer.site-footer .footer-bottom > span:last-child { gap: 0.7rem; }
}

/* Mobile : on autorise le wrap pour éviter le scroll horizontal */
@media (max-width: 720px) {
  footer.site-footer .footer-bottom > span:first-child { white-space: normal !important; }
  footer.site-footer .footer-bottom > span:last-child  { white-space: normal; }
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  footer.site-footer .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-links { gap: 0.1rem; }
  .nav-link { padding: 0.5rem 0.65rem; font-size: 0.88rem; }
}
@media (max-width: 640px) {
  .nav-inner { padding: 0.7rem 1rem; gap: 0.5rem; flex-wrap: wrap; }
  .nav-logo img { height: 52px; }
  .nav-links { width: 100%; order: 3; overflow-x: auto; }
  footer.site-footer .footer-inner { grid-template-columns: 1fr; }
}
