/* Artisan Peintre Nice — feuille de style : atelier artisanal, papier & bois */

:root {
  --linen: #f3ead8;
  --sand: #ead9b8;
  --kraft: #d9c39a;
  --kraft-line: rgba(59, 42, 29, 0.22);
  --cream: #faf5e8;
  --ink: #33261a;
  --brown: #5c3d26;
  --brown-deep: #3b2a1d;
  --olive: #6f7a49;
  --olive-deep: #545c38;
  --ocre: #b9822f;
  --ocre-deep: #93671f;
  --white: #fffdf8;
  --muted: #6a5a47;
  --shadow: 0 10px 24px rgba(59, 42, 29, 0.16);
  --duration: 220ms;
  --cut: polygon(0 14px, 14px 0, 100% 0, 100% 100%, 0 100%);
}

@media (prefers-reduced-motion: reduce) {
  :root { --duration: 0ms; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background-color: var(--linen);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  color: var(--brown-deep);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: 0.01em;
}

a {
  color: var(--brown);
}

p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brown-deep);
  color: var(--white);
  padding: 0.75em 1.25em;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
}

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

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Organic divider — hand-drawn wavy line between sections */
.organic-divider {
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='14' viewBox='0 0 120 14'%3E%3Cpath d='M0 7c10-9 20 9 30 0s20-9 30 0 20 9 30 0 20-9 30 0' fill='none' stroke='%23b9822f' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0.55;
}

/* Buttons — square, no rounded corners */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0.75em 1.5em;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  border-radius: 0;
  transition: background var(--duration) ease, color var(--duration) ease, border-color var(--duration) ease;
}
.btn--cta {
  background: var(--ocre);
  color: var(--white);
  border-color: var(--ocre);
}
.btn--cta:hover { background: var(--ocre-deep); border-color: var(--ocre-deep); }
.btn--cta-lg {
  font-size: 1.15rem;
  padding: 1em 1.9em;
  font-weight: 700;
}
.btn__meta {
  display: block;
  font-size: 0.62em;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.9;
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 253, 248, 0.6);
}
.btn--outline:hover { border-color: var(--white); background: rgba(255, 253, 248, 0.1); }
.btn--brown {
  background: var(--brown-deep);
  color: var(--white);
  border-color: var(--brown-deep);
}
.btn--brown:hover { background: var(--brown); }
.btn--ghost-brown {
  background: transparent;
  color: var(--brown-deep);
  border-color: var(--brown-deep);
}
.btn--ghost-brown:hover { background: var(--brown-deep); color: var(--white); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--brown-deep);
  color: var(--white);
  border-bottom: 3px solid var(--ocre);
}
.site-header__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55em;
  color: var(--white);
  text-decoration: none;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin-right: auto;
}
.brand__mark { color: var(--ocre); display: inline-flex; }

.main-nav {
  display: none;
  gap: 1.6rem;
}
.main-nav a {
  color: rgba(255, 253, 248, 0.85);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.main-nav a:hover { color: var(--ocre); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.header-actions__tel {
  display: none;
  align-items: center;
  gap: 0.4em;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  min-height: 44px;
}
.header-actions .btn { padding: 0.6em 1.1em; font-size: 0.85rem; }

@media (min-width: 780px) {
  .main-nav { display: flex; }
  .header-actions__tel { display: inline-flex; }
}

/* Hero — asymmetric */
.hero {
  background: linear-gradient(155deg, var(--brown-deep) 0%, var(--brown) 70%, #4a3320 100%);
  color: var(--white);
  padding: 3.5rem 0 3rem;
}
.hero__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  gap: 3rem;
  grid-template-columns: 1.65fr 1fr;
  align-items: start;
}
@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; }
}
.hero__content { padding-top: 0.5rem; }
.eyebrow {
  color: var(--ocre);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.8rem;
  margin: 0 0 0.9rem;
  font-family: "Source Sans 3", sans-serif;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  margin: 0 0 1rem;
  max-width: 16ch;
}
.hero__lead {
  color: rgba(255, 253, 248, 0.88);
  font-size: 1.12rem;
  max-width: 46ch;
}
.hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  align-items: center;
}

.facts-panel {
  background: var(--sand);
  color: var(--ink);
  padding: 1.9rem 1.6rem 1.6rem;
  clip-path: var(--cut);
  margin-top: 0.5rem;
}
.facts-panel h2 {
  color: var(--brown-deep);
  font-size: 1.3rem;
  margin: 0 0 1.1rem;
}
.facts-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.facts-panel li {
  display: flex;
  align-items: flex-start;
  gap: 0.65em;
  font-size: 0.96rem;
  font-weight: 500;
}
.facts-panel a { color: var(--brown-deep); text-decoration: underline; text-underline-offset: 2px; }
.facts-panel svg {
  color: var(--ocre-deep);
  flex-shrink: 0;
  margin-top: 0.15em;
}

/* Trust bar — only verified facts */
.trust-bar {
  background: var(--cream);
  border-bottom: 1px solid var(--kraft-line);
}
.trust-bar__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  justify-content: center;
}
.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--brown-deep);
}
.trust-bar__item svg { color: var(--olive); flex-shrink: 0; }

/* Sections */
.section {
  padding: 3.5rem 0;
}
.section--alt { background: var(--cream); }
.section__head {
  max-width: 660px;
  margin: 0 0 2.2rem;
}
.section__head h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  margin: 0 0 0.6rem;
}
.section__head p { color: var(--muted); margin: 0; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--kraft-line);
  padding: 1.6rem;
  clip-path: var(--cut);
}
.service-card--emphasis {
  background: var(--brown-deep);
  border-color: var(--brown-deep);
  color: rgba(255, 253, 248, 0.94);
  position: relative;
}
.service-card--emphasis h3 { color: var(--white); }
.service-card--emphasis .service-card__icon { color: var(--ocre); background: rgba(255, 253, 248, 0.12); }
.service-card--emphasis::after {
  content: "Notre spécialité";
  position: absolute;
  top: 0.9rem;
  right: -0.4rem;
  background: var(--ocre);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.35em 0.8em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.service-card__icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--linen);
  color: var(--brown-deep);
  margin-bottom: 1rem;
}
.service-card h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}
.service-card p {
  margin: 0;
  font-size: 0.94rem;
  color: inherit;
  opacity: 0.92;
}
.service-card--emphasis p { color: rgba(255, 253, 248, 0.86); opacity: 1; }

/* Gallery — before/after, explicit placeholders */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.gallery-pair {
  border: 1px solid var(--kraft-line);
  background: var(--white);
  clip-path: var(--cut);
  margin: 0;
}
.gallery-pair__imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.gallery-pair__imgs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-right: 1px solid var(--kraft-line);
}
.gallery-pair__imgs img:last-child { border-right: none; }
.gallery-pair figcaption {
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  color: var(--brown-deep);
  font-weight: 600;
}
.gallery-note {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 1.2rem;
  max-width: 62ch;
}

/* Process */
.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
  counter-reset: step;
}
.process-list li {
  counter-increment: step;
  position: relative;
  padding-left: 3.2rem;
}
.process-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.2rem;
  height: 2.2rem;
  background: var(--brown-deep);
  color: var(--white);
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-list h3 { font-size: 1.1rem; margin: 0 0 0.35rem; }
.process-list p { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* Avis — honest alternative to testimonials */
.honesty-block {
  background: var(--white);
  border: 1px solid var(--kraft-line);
  clip-path: var(--cut);
  padding: 2.2rem;
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.honesty-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.honesty-item svg { color: var(--olive); flex-shrink: 0; margin-top: 0.2rem; }
.honesty-item h3 { font-size: 1.05rem; margin: 0 0 0.3rem; }
.honesty-item p { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* FAQ */
.faq-list { max-width: 780px; }
.faq-item {
  border-bottom: 1px solid var(--kraft-line);
  padding: 1.1rem 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--brown-deep);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  list-style: none;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--ocre);
  flex-shrink: 0;
  transition: transform var(--duration) ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

/* Contact form */
.contact-layout {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: 1fr;
  max-width: 1160px;
  align-items: start;
}
/* Le Markdown a généré des <p> vides autour des blocs. Les masquer évite
   qu'ils deviennent des cellules de grille et décalent les deux colonnes. */
.contact-layout > p:empty { display: none; }
@media (min-width: 880px) {
  .contact-layout { grid-template-columns: 1.1fr 0.9fr; }
}
.contact-form {
  background: var(--white);
  border: 1px solid var(--kraft-line);
  clip-path: var(--cut);
  padding: 1.9rem;
  box-shadow: var(--shadow);
}
.form-field {
  margin-bottom: 1.2rem;
}
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--brown-deep);
}
.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.65em 0.8em;
  border: 1px solid var(--kraft-line);
  border-radius: 0;
  font: inherit;
  color: var(--ink);
  background: var(--linen);
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--brown-deep);
}
.form-notice {
  display: flex;
  gap: 0.6em;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--muted);
  background: var(--linen);
  border: 1px dashed var(--kraft-line);
  padding: 0.8em 1em;
  margin-bottom: 1.25rem;
}
.form-notice svg { color: var(--ocre-deep); flex-shrink: 0; margin-top: 0.15em; }
.form-consent {
  display: flex;
  gap: 0.6em;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.form-consent input { margin-top: 0.25em; }
.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.9rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-info__card {
  background: var(--cream);
  border: 1px solid var(--kraft-line);
  clip-path: var(--cut);
  padding: 1.3rem 1.5rem;
}
.contact-info__card h3 {
  font-size: 1rem;
  margin: 0 0 0.4rem;
}
.contact-info__card a {
  color: var(--brown-deep);
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.contact-info__card a:hover { text-decoration: underline; }

/* Legal page */
.legal-content {
  max-width: 760px;
}
.legal-content h2 { margin-top: 2rem; font-size: 1.3rem; }

/* Footer */
.site-footer {
  background: var(--brown-deep);
  color: rgba(255, 253, 248, 0.85);
  padding: 2.5rem 0 6rem;
  border-top: 3px solid var(--ocre);
}
@media (min-width: 780px) {
  .site-footer { padding-bottom: 2.5rem; }
}
.site-footer__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.site-footer a { color: var(--white); }
.site-footer__brand { font-family: "Cormorant Garamond", serif; font-weight: 700; font-size: 1.2rem; color: var(--white); margin-bottom: 0.3rem; }
.site-footer__contact { display: flex; flex-direction: column; gap: 0.4rem; }
.site-footer__nav { display: flex; flex-direction: column; gap: 0.4rem; }
.site-footer__legal {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 253, 248, 0.55);
  margin: 2rem 0 0;
}

/* Floating call button */
.float-call {
  position: fixed;
  right: 1.1rem;
  bottom: 5.5rem;
  z-index: 700;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ocre);
  color: var(--white);
  clip-path: polygon(0 8px, 8px 0, 100% 0, 100% 100%, 0 100%);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.float-call:hover { background: var(--ocre-deep); }
@media (min-width: 780px) {
  .float-call { bottom: 1.5rem; }
}

/* Mobile action bar */
.mobile-action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 600;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border-top: 1px solid var(--kraft-line);
  box-shadow: 0 -6px 16px rgba(59, 42, 29, 0.16);
}
.mobile-action-bar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 56px;
  padding: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.92rem;
}
.mobile-action-bar__btn--call {
  color: var(--brown-deep);
  background: var(--white);
}
.mobile-action-bar__btn--devis {
  color: var(--white);
  background: var(--ocre);
}
@media (min-width: 780px) {
  .mobile-action-bar { display: none; }
}

/* Révélation progressive : le contenu reste toujours visible sans JavaScript. */
.reveal {
  opacity: 1;
  transform: none;
  transition: box-shadow var(--duration) ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; }
}

/* Page hero (services/contact/legal) */
.page-hero {
  background: var(--brown-deep);
  color: var(--white);
  padding: 2.75rem 0;
  border-bottom: 3px solid var(--ocre);
}
.page-hero h1 { color: var(--white); margin: 0 0 0.5rem; }
.page-hero p { color: rgba(255, 253, 248, 0.85); margin: 0; max-width: 60ch; }
