/* ============================================================
   JLPOSE CUISINES — Feuille de style partagée
   Design system « Relevé technique » :
   univers du poseur (précision, cotes de dessin technique,
   teintes de menuiserie : vert cabinet + laiton).
   ============================================================ */
:root {
  --paper:      #FFFFFF; /* mur plâtre chaud */
  --paper-2:    #E5DFCE; /* variation légèrement plus dense */
  --ink:        #201D17; /* encre de dessin technique */
  --ink-soft:   #4C463A;
  --forest:     #1E2A22; /* façade de meuble laqué vert profond */
  --forest-2:   #2A3A2E; /* carte sur fond vert */
  --brass:      #A9793A; /* poignée laiton — sur fond clair */
  --brass-lite: #CFA45C; /* laiton clair — texte sur fond sombre */
  --line:       color-mix(in srgb, var(--ink) 16%, transparent);
  --line-lite:  color-mix(in srgb, var(--paper) 22%, transparent);

  --wrap: 74rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

/* --- Accessibilité : lien d'évitement + focus visible --- */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0.75rem; }

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Structure --- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

/* --- Étiquette « cote » : signature typographique du site --- */
.dim {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.25rem;
}
.dim::before {
  content: "";
  width: 2.5rem;
  height: 0;
  border-top: 1.5px solid currentColor;
}
.on-dark .dim { color: var(--brass-lite); }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 800;
}

/* ============================================================
   En-tête
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}
.brand b { color: var(--forest); }
.brand small {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--brass);
}
.header-nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); }
.header-nav a { text-decoration: none; }
.header-links { display: none; gap: 1.75rem; }
.header-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}
.header-links a:hover { color: var(--ink); }

@media (min-width: 48rem) {
  .header-links { display: inline-flex; }
}

/* --- Boutons --- */
.btn {
  --btn-bg: var(--forest);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.85rem 1.35rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid var(--btn-bg);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--brass { --btn-bg: var(--brass); --btn-fg: #1a140a; }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  border-color: var(--line-lite);
}
.btn--ghost:hover { border-color: var(--brass-lite); }

@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
}

/* ============================================================
   Hero — panneau « façade verte »
   ============================================================ */
.hero {
  background: var(--forest);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}
@media (min-width: 60rem) {
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; }
}
.hero h1 {
  font-size: clamp(2.4rem, 1.6rem + 4vw, 4.5rem);
  margin-bottom: 1.25rem;
  max-width: 15ch;
}
.hero p.lead {
  max-width: 46ch;
  color: color-mix(in srgb, var(--paper) 86%, transparent);
  margin: 0 0 2rem;
}
.hero .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

/* Visuel : esquisse de cuisine en perspective (décorative) */
.hero-sketch {
  width: 100%;
  height: auto;
  display: block;
  /* léger recadrage optique pour équilibrer la composition dans le hero */
  margin-block: -0.5rem;
}

/* ============================================================
   Titres de section
   ============================================================ */
.section-head { max-width: 44ch; margin-bottom: clamp(2.25rem, 5vw, 3.25rem); }
.section-head h2 { font-size: clamp(1.9rem, 1.3rem + 2.5vw, 2.9rem); }

/* ============================================================
   Prestations
   ============================================================ */
.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 40rem) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .services { grid-template-columns: repeat(3, 1fr); } }

.service {
  background: var(--paper);
  padding: 1.75rem 1.6rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: background 0.2s ease;
}
.service:hover { background: var(--paper-2); }
.service .num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--brass);
}
.service h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0;
  line-height: 1.25;
}
.service p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ============================================================
   Engagements — panneau vert
   ============================================================ */
.commitments { background: var(--forest); color: var(--paper); }
.commit-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}
@media (min-width: 40rem) { .commit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .commit-grid { grid-template-columns: repeat(4, 1fr); } }

.commit { padding-top: 1.25rem; border-top: 2px solid var(--brass-lite); }
.commit h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0;
  margin-bottom: 0.4rem;
}
.commit p {
  margin: 0;
  color: color-mix(in srgb, var(--paper) 80%, transparent);
  font-size: 0.95rem;
}

/* ============================================================
   Contact / Devis
   ============================================================ */
.contact .wrap {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: start;
}
@media (min-width: 60rem) { .contact .wrap { grid-template-columns: 1fr 1fr; } }
.contact h2 { font-size: clamp(1.9rem, 1.3rem + 2.5vw, 2.9rem); margin-bottom: 1rem; }
.contact .lead { max-width: 44ch; color: var(--ink-soft); margin: 0 0 1.75rem; }
.contact-direct { display: flex; flex-direction: column; gap: 0.5rem; }
.contact-direct a {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--forest);
  text-decoration: none;
  font-weight: 600;
}
.contact-direct a:hover { text-decoration: underline; text-underline-offset: 3px; }

.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.field .req { color: var(--brass); }
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  width: 100%;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: var(--brass); outline-offset: 1px; }
.field .hint { font-size: 0.8rem; color: var(--ink-soft); }
.form-status { font-size: 0.9rem; font-weight: 500; min-height: 1.25rem; }
.form-status[data-state="ok"] { color: var(--forest); }
.form-status[data-state="error"] { color: #9a3232; }

/* ============================================================
   En-tête des pages intérieures (légales)
   ============================================================ */
.page-head {
  background: var(--forest);
  color: var(--paper);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.page-head h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem); max-width: 20ch; }
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  margin: 0 0 1.5rem;
  color: color-mix(in srgb, var(--paper) 72%, transparent);
}
.breadcrumb a { color: var(--brass-lite); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   Contenu légal / prose
   ============================================================ */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal .wrap { max-width: 52rem; }
.legal h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 2.75rem 0 0.9rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.legal h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0;
  margin: 1.75rem 0 0.5rem;
}
.legal p { margin: 0 0 1rem; }
.legal ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.legal li { margin-bottom: 0.4rem; }
.legal a { color: var(--forest); text-underline-offset: 3px; }
.legal .updated {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.legal .note {
  background: var(--paper-2);
  border-left: 3px solid var(--brass);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  margin: 1.25rem 0;
}
.legal .note strong { color: var(--ink); }

/* Fiche d'identité (couples clé / valeur) */
.legal dl {
  margin: 0 0 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem 1rem;
}
@media (min-width: 34rem) {
  .legal dl { grid-template-columns: 12rem 1fr; }
}
.legal dt {
  font-weight: 600;
  color: var(--ink);
}
.legal dd { margin: 0 0 0.75rem; color: var(--ink-soft); }
@media (min-width: 34rem) { .legal dd { margin-bottom: 0.25rem; } }
.legal .todo {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--brass);
  background: color-mix(in srgb, var(--brass) 12%, transparent);
  padding: 0.05rem 0.4rem;
  border-radius: 3px;
}

/* ============================================================
   Pied de page
   ============================================================ */
.site-footer {
  background: var(--forest);
  color: color-mix(in srgb, var(--paper) 78%, transparent);
  border-top: 1px solid var(--line-lite);
  padding-block: 2.75rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  gap: 1.75rem 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 48rem) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr; }
}
.footer-grid .brand { color: var(--paper); font-size: 1rem; }
.footer-siret {
  margin: 0.7rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-lite);
  margin: 0 0 0.85rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-col a { color: inherit; text-decoration: none; }
.footer-col a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-lite);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--brass-lite); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --- Révélation au défilement (progressive) --- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
