/* Tarricone Déco Peinture — styles principaux */
:root {
  --bg: #F7F4EF;
  --bg-alt: #EFEBE3;
  --ink: #0B0B0B;
  --text: #2C2A26;
  --muted: #5C574F;
  --line: #DDD6C8;
  --gold: #C4A35A;
  --gold-dark: #A8863E;
  --white: #FFFFFF;
  --max: 1100px;
  --header-h: 72px;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(11, 11, 11, 0.06);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem; /* 18px */
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.section__title {
  font-size: clamp(1.6rem, 3.2vw, 2.15rem);
  line-height: 1.25;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  max-width: 28ch;
}

.section__lead {
  color: var(--muted);
  max-width: 58ch;
  margin: 0 0 2rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

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

.brand__logo {
  width: auto;
  height: 48px;
  object-fit: contain;
}

.brand__text {
  display: none;
  flex-direction: column;
  line-height: 1.15;
}
.brand__name {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.brand__tag {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover { color: var(--gold-dark); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.header__phone {
  display: none;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}
.header__phone:hover { color: var(--gold-dark); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  padding: 0;
}
.nav-toggle__bars {
  width: 18px;
  height: 12px;
  position: relative;
}
.nav-toggle__bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s, top 0.2s, opacity 0.2s;
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  top: 5px; transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  top: 5px; transform: rotate(-45deg);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 1rem 0 1.25rem;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  padding: 0.7rem 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child { border-bottom: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--ink);
  color: var(--bg);
}
.btn--primary:hover {
  background: #1a1a1a;
  color: var(--bg);
}
.btn--gold {
  background: var(--gold);
  color: var(--ink);
}
.btn--gold:hover {
  background: var(--gold-dark);
  color: var(--ink);
}
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--ink);
}
.btn--sm {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
}
.btn--block { width: 100%; }

/* Hero */
.hero {
  padding: 2.5rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
}
.hero__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.hero__brand-mark {
  width: min(220px, 70%);
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-weight: 650;
  margin: 0 0 1rem;
  max-width: 18ch;
}
.hero__subtitle {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 42ch;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}
.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.trust-strip span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.hero__visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-alt);
  aspect-ratio: 4 / 5;
}
.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Intro */
.intro {
  display: grid;
  gap: 1.5rem;
}
.intro p {
  margin: 0;
  max-width: 65ch;
  color: var(--text);
  font-size: 1.15rem;
}

/* Services */
.services-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.5rem;
  box-shadow: var(--shadow);
}
.service-card__num {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.service-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
  color: var(--ink);
  font-weight: 600;
}
.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

/* Pourquoi */
.why-list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.why-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}
.why-list__mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(196, 163, 90, 0.18);
  color: var(--gold-dark);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.why-list p { margin: 0; color: var(--text); font-size: 1.02rem; }

/* Avis */
.avis-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.5rem;
  padding: 0.55rem 0.95rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.avis-badge__stars {
  color: var(--gold);
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  line-height: 1;
}
.avis-badge__text {
  color: var(--text);
}
.avis-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.avis-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100%;
}
.avis-card__stars {
  color: var(--gold);
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  line-height: 1;
}
.avis-card blockquote {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
  flex: 1;
  line-height: 1.55;
}
.avis-card footer {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: auto;
  padding-top: 0.15rem;
}
.avis-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Réalisations */
.gallery {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr 1fr;
}
.gallery__item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  position: relative;
}
.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery__item:hover img { transform: scale(1.03); }
.gallery__item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.75rem 0.85rem 0.75rem;
  background: linear-gradient(transparent, rgba(11,11,11,0.78));
  color: var(--bg);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
}
.gallery__item--wide img { aspect-ratio: 16 / 11; }

/* Zone */
.zone-box {
  background: var(--ink);
  color: var(--bg);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem 1.5rem;
}
.zone-box h2 { color: var(--bg); margin: 0 0 0.75rem; font-size: clamp(1.4rem, 3vw, 1.85rem); }
.zone-box p { margin: 0; color: rgba(247,244,239,0.82); max-width: 52ch; }
.zone-box .gold { color: var(--gold); }

/* Form / Contact */
.devis-layout {
  display: grid;
  gap: 2rem;
}
.contact-aside {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.contact-aside h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  color: var(--ink);
}
.contact-aside p { margin: 0 0 0.75rem; color: var(--muted); font-size: 1rem; }
.contact-aside a.phone {
  display: inline-block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  margin: 0.25rem 0 1rem;
}
.contact-aside a.phone:hover { color: var(--gold-dark); }

.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.form__grid {
  display: grid;
  gap: 1rem;
}
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}
.field .req { color: var(--gold-dark); }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.field textarea { min-height: 130px; resize: vertical; }
.field--error input,
.field--error select,
.field--error textarea {
  border-color: #a33;
}
.field__error {
  display: none;
  font-size: 0.8rem;
  color: #8b2e2e;
}
.field--error .field__error { display: block; }
.form__note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.85rem 0 0;
}
.form__success {
  display: none;
  background: #e8f2e6;
  border: 1px solid #b7d4b0;
  color: #1f4a1a;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.form__success.is-visible { display: block; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(247,244,239,0.75);
  padding: 2.5rem 0 2rem;
  font-size: 0.95rem;
}
.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover { color: var(--bg); }
.footer__grid {
  display: grid;
  gap: 1.25rem;
}
.footer__brand {
  color: var(--bg);
  font-weight: 600;
  margin: 0 0 0.35rem;
}
.footer__meta { margin: 0; }
.footer__bottom {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(247,244,239,0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  font-size: 0.875rem;
}

/* Mentions légales */
.legal-page { padding: 2.5rem 0 4rem; }
.legal-page h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--ink);
  margin: 0 0 1.5rem;
}
.legal-page h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.6rem;
  color: var(--ink);
}
.legal-page p, .legal-page li {
  color: var(--muted);
  max-width: 70ch;
}
.todo-fill {
  background: #fff6d9;
  border: 1px dashed #c4a35a;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: #5c4a1e;
  font-family: ui-monospace, monospace;
  font-size: 0.92em;
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

@media (min-width: 640px) {
  .brand__text { display: flex; }
  .brand__logo { height: 52px; }
  .header__phone { display: inline; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .avis-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item--wide img { aspect-ratio: 16 / 10; }
  .form__grid--2 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  body { font-size: 1.1875rem; } /* ~19px */
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .btn--header { display: inline-flex; }
  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .avis-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  .gallery__item--wide { grid-column: span 2; }
  .devis-layout {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
  .section { padding: 5.5rem 0; }
}

@media (min-width: 1100px) {
  .brand__logo { height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery__item img { transition: none; }
}

@media (min-width: 900px) {
  .btn--header { display: inline-flex !important; }
}
@media (max-width: 899px) {
  .btn--header { display: none !important; }
}

/* Logo is a full wordmark — avoid duplicating the name in header */
.brand__text { display: none !important; }
.brand__logo { height: 52px; }
@media (min-width: 900px) {
  .brand__logo { height: 58px; }
}
