/* Les Copains d'Abord : salon de toilettage, Erpent.
   Aucune ressource externe : polices servies depuis /fonts/ (licences OFL dans le même dossier).
   Mise en page : crème chaude, l'orange de l'enseigne en grand et rarement, tout arrondi, mobile d'abord. */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("/fonts/bricolage-grotesque.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/fonts/instrument-sans.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/caveat.woff2") format("woff2"); }

:root {
  color-scheme: light dark;
  --bg: #fbf7f0;
  --surface: #ffffff;
  --surface-sunken: #f3ece1;
  --sand: #d8c1ad;
  --ink: #2a1a0f;
  --ink-muted: #6b5644;
  --line: #e3d6c5;
  --line-strong: #a08771;
  --brand: #e34110;
  --brand-strong: #b8330a;
  --on-brand: #ffffff;
  --peach: #f6bbaa;
  --sun: #ebc64d;
  --open: #4d641f;
  --shadow-card: 0 1px 2px rgba(59, 28, 1, 0.06), 0 12px 32px rgba(59, 28, 1, 0.08);

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --font-sans: "Instrument Sans", "Avenir Next", "Segoe UI", sans-serif;
  --font-script: "Caveat", "Bradley Hand", cursive;

  --r-md: 16px;
  --r-lg: 28px;
  --r-pill: 999px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(64px, 9vw, 96px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c130c;
    --surface: #281c13;
    --surface-sunken: #140d08;
    --sand: #4a3525;
    --ink: #f6eee4;
    --ink-muted: #c4b3a2;
    --line: #3d2d20;
    --line-strong: #8a735f;
    --brand: #f26a3d;
    --brand-strong: #f58a63;
    --on-brand: #2a1206;
    --peach: #5a2a16;
    --open: #a4b979;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.3);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1120px; margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 5; padding: 10px 16px; background: var(--ink); color: var(--bg); border-radius: var(--r-pill); }
.skip:focus { top: 12px; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.label { font: 600 13px/16px var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }

/* En-tête */
.top { border-bottom: 1px solid var(--line); }
.top__in { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "mark call" "nav nav"; align-items: center; gap: 8px 16px; padding-block: 14px 10px; }
.wordmark { grid-area: mark; font: 600 30px/1 var(--font-script); text-decoration: none; white-space: nowrap; }
.top__call { grid-area: call; }
.top nav { grid-area: nav; }
.nav { display: flex; gap: 22px; }
.nav a { display: inline-block; padding: 8px 0; font-weight: 500; font-size: 15px; line-height: 1.2; text-decoration: none; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--brand); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 1.5px solid transparent; border-radius: var(--r-pill); font: 600 16px/1 var(--font-sans); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease; }
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--brand-strong); color: var(--on-brand); }
.btn--primary:hover { background: var(--ink); color: var(--bg); }
.btn--secondary { color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.link { color: var(--brand-strong); font-weight: 600; text-underline-offset: 4px; }

/* Pastilles et statut */
.tag { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: var(--r-pill); background: var(--peach); font: 600 13px/16px var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; }
.status { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/20px var(--font-sans); color: var(--ink-muted); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; }
.status[data-open] { color: var(--open); }
.status[data-open]::before { background: currentColor; }
.status[hidden] { display: none; }

/* Hero */
.hero { padding-block: clamp(32px, 6vw, 72px) var(--section); }
.hero__in { display: grid; gap: 48px; align-items: center; }
.hero h1 { margin-top: 16px; font: 700 clamp(44px, 9vw, 76px)/0.95 var(--font-display); letter-spacing: -0.02em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero__lead { margin-top: 24px; max-width: 46ch; font-size: clamp(18px, 2.2vw, 20px); line-height: 1.5; color: var(--ink-muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-top: 32px; }
.hero__status { margin-top: 20px; }
.photo { position: relative; width: min(100% - 24px, 440px); margin: 0 24px 24px auto; }
.photo::before { content: ""; position: absolute; inset: 32px -24px -24px 32px; background: var(--peach); border-radius: var(--r-lg); }
.photo img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); }
.photo__note { position: absolute; left: -12px; bottom: 32px; padding: 10px 22px; background: var(--surface); border-radius: var(--r-pill); box-shadow: var(--shadow-card); font: 600 26px/1.1 var(--font-script); color: var(--brand-strong); transform: rotate(-3deg); }

/* Atouts */
.facts { border-block: 1px solid var(--line); }
.facts ul { display: grid; }
.facts li { padding: 20px 0; }
.facts li + li { border-top: 1px solid var(--line); }
.facts strong { display: block; font: 600 20px/1.3 var(--font-display); }
.facts span { color: var(--ink-muted); }

/* Sections */
.section { padding-block: var(--section); }
.section--sunken { background: var(--surface-sunken); }
.section h2, .page-head h1 { margin-top: 8px; font: 600 clamp(30px, 5vw, 44px)/1.1 var(--font-display); letter-spacing: -0.01em; text-wrap: balance; }
.page-head { padding-block: clamp(40px, 7vw, 80px) 0; }
.page-head p:not(.label) { margin-top: 16px; max-width: 58ch; font-size: clamp(18px, 2.2vw, 20px); line-height: 1.5; color: var(--ink-muted); }
.prose { display: grid; gap: 16px; max-width: 60ch; margin-top: 24px; }
.about { display: grid; gap: 40px; align-items: center; }
.about__photos { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: end; max-width: 520px; }
.about__photos img { width: 100%; object-fit: cover; border-radius: var(--r-lg); }
.about__photos img:first-child { aspect-ratio: 3 / 4; }
.about__photos img:last-child { aspect-ratio: 1; margin-bottom: 32px; }
.two { display: grid; gap: 24px; align-items: start; }

/* Cartes */
.card { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-card); padding: clamp(24px, 4vw, 32px); min-width: 0; }
.section .card h2 { margin: 8px 0 16px; font: 600 28px/1.15 var(--font-display); letter-spacing: -0.01em; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 12px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; }
.hours tr[data-today] th, .hours tr[data-today] td { font-weight: 600; }
.hours tr[data-today] th::after { content: "Aujourd'hui"; margin-left: 10px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--peach); font: 600 12px/16px var(--font-sans); vertical-align: 2px; }
.hours tr[data-closed] td { color: var(--ink-muted); }
.card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.contact { display: grid; gap: 16px; margin-bottom: 24px; }
.contact li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center; }
.contact__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--peach); }
.contact small { display: block; font-size: 14px; line-height: 21px; color: var(--ink-muted); }
.contact a { text-decoration-color: var(--line-strong); text-underline-offset: 4px; }

.card.service { padding: 0; overflow: hidden; }
.service img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 30%; }
.service__body { padding: 24px clamp(24px, 4vw, 32px) clamp(24px, 4vw, 32px); }
.section .service h2 { margin: 8px 0; font-size: 24px; }
.service p:not(.label) { color: var(--ink-muted); margin-bottom: 16px; }
.list li { position: relative; padding: 10px 0 10px 24px; border-top: 1px solid var(--line); }
.list li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

/* Panneau d'adresse et bandeau d'appel */
.place { display: grid; gap: 16px; align-content: center; justify-items: start; padding: clamp(28px, 5vw, 48px); border-radius: var(--r-lg); background: var(--sand); min-width: 0; }
.place .label { color: var(--ink); }
.place address { font: 600 clamp(26px, 4vw, 36px)/1.15 var(--font-display); font-style: normal; letter-spacing: -0.01em; text-wrap: balance; }
.place .btn--secondary { border-color: var(--ink); }
.cta { display: grid; gap: 24px; justify-items: start; }
.cta p { font: 600 clamp(28px, 4.5vw, 40px)/1.15 var(--font-display); letter-spacing: -0.01em; max-width: 24ch; text-wrap: balance; }

/* Pied de page */
.foot { background: var(--surface-sunken); padding-block: 40px; font-size: 14px; line-height: 21px; color: var(--ink-muted); }
.section--sunken + .foot, main:has(> .section--sunken:last-child) + .foot { border-top: 1px solid var(--line); }
.foot__in { display: grid; gap: 20px; }
.foot .wordmark { color: var(--ink); }
.foot p { margin-top: 8px; }
.foot ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { text-underline-offset: 3px; }

@media (min-width: 760px) {
  .top__in { grid-template-columns: auto 1fr auto; grid-template-areas: "mark nav call"; gap: 32px; padding-block: 16px; }
  .wordmark { font-size: 34px; }
  .nav { justify-content: flex-end; gap: 28px; }
  .nav a { font-size: 16px; }
  .hero__in { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
  .facts ul { grid-template-columns: repeat(3, 1fr); }
  .facts li { padding: 28px 28px 28px 0; }
  .facts li + li { border-top: 0; border-left: 1px solid var(--line); padding-left: 28px; }
  .about { grid-template-columns: 1fr 1fr; gap: 64px; }
  .two { grid-template-columns: 1fr 1fr; }
  .foot__in { grid-template-columns: 1fr auto; align-items: end; }
}

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