/* RK Rénovation — site vitrine statique */
:root {
  --brand: #ff8c00;
  --brand-dark: #e67e00;
  --brand-soft: #fff4e6;
  --white: #ffffff;
  --grey-bg: #f2f2f2;
  --grey-line: #cccccc;
  --ink: #1a1a1a;
  --ink-muted: #5c5c5c;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.07);
  --radius: 1rem;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

*,
*::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);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

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

a {
  color: var(--brand-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 100000;
  padding: 0.75rem 1rem;
  background: var(--brand);
  color: var(--white);
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(204, 204, 204, 0.35);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}

.logo-img {
  display: block;
  height: 5rem;
  width: auto;
  max-width: min(48rem, 96vw);
  object-fit: contain;
  object-position: left center;
  transition: transform 0.15s ease;
}

@media (min-width: 640px) {
  .logo-img {
    height: 6rem;
  }
}

@media (min-width: 1024px) {
  .logo-img {
    height: 6.5rem;
    max-width: min(52rem, 92vw);
  }
}

.logo:hover .logo-img {
  transform: scale(1.02);
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--brand) 0%, #ffb347 100%);
  color: var(--white);
  font-size: 1rem;
  box-shadow: 0 12px 40px rgba(255, 140, 0, 0.22);
}

.logo-text {
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

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

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-desktop a {
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
}

.nav-desktop a:hover {
  color: var(--ink);
}

.nav-desktop .btn-nav {
  margin-left: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: linear-gradient(135deg, var(--brand) 0%, #ffb347 100%);
  color: var(--white) !important;
  font-weight: 600;
  box-shadow: var(--shadow-card);
}

.nav-desktop .btn-nav:hover {
  filter: brightness(1.03);
}

.nav-desktop .btn-contact {
  margin-left: 0.35rem;
  padding: 0.55rem 1.15rem;
  border: none;
  border-radius: 999px;
  background: var(--ink-muted);
  color: var(--white) !important;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.nav-desktop .btn-contact:hover {
  background: var(--ink);
  color: var(--white) !important;
}

.nav-mobile .btn-contact {
  margin-top: 0.25rem;
  text-align: center;
  padding: 0.85rem;
  border-radius: 999px;
  border: none;
  background: var(--ink-muted);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.nav-mobile .btn-contact:hover {
  background: var(--ink);
}

.header-phone {
  display: none;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--brand);
}

.header-phone:hover {
  color: var(--brand-dark);
}

@media (min-width: 1024px) {
  .header-phone {
    display: flex;
  }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(204, 204, 204, 0.6);
  border-radius: 0.75rem;
  background: var(--white);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle-bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  border-top: 1px solid rgba(204, 204, 204, 0.35);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  padding: 1rem 0 1.25rem;
}

.nav-mobile.is-open {
  display: block;
}

@media (min-width: 1024px) {
  .nav-mobile {
    display: none !important;
  }
}

.nav-mobile a {
  display: block;
  padding: 0.75rem 0;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--grey-bg);
}

.nav-mobile a[href^="tel:"] {
  color: var(--brand);
  font-weight: 600;
}

.nav-mobile a[href^="tel:"]:hover {
  color: var(--brand-dark);
}

.nav-mobile .btn-nav {
  margin-top: 0.75rem;
  text-align: center;
  padding: 0.85rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand) 0%, #ffb347 100%);
  color: var(--white);
  font-weight: 600;
}

/* Typography */
h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section {
  padding: 4rem 0;
}

@media (min-width: 640px) {
  .section {
    padding: 5rem 0;
  }
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 1rem;
}

.section-intro {
  font-size: 1.125rem;
  color: var(--ink-muted);
  max-width: 42rem;
  margin: 0 0 2.5rem;
}

/* Note moyenne avis */
.rating-block {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 0 0 2.5rem;
}

.rating-score {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.rating-stars {
  display: inline-flex;
  gap: 0.12rem;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--brand);
}

.rating-star-partial {
  position: relative;
  display: inline-block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.rating-star-partial .rating-star-bg {
  position: absolute;
  inset: 0;
  color: var(--grey-line);
}

.rating-star-partial .rating-star-fill {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  width: 30%;
  color: var(--brand);
}

.rating-label {
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

/* Avant / Après chantier */
.before-after-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .before-after-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    align-items: start;
  }
}

.before-after-card {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(204, 204, 204, 0.3);
  background: var(--white);
}

.before-after-card img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.before-after-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: var(--shadow);
}

.before-after-badge--avant {
  background: rgba(26, 26, 26, 0.9);
  color: var(--white);
}

.before-after-badge--apres {
  background: linear-gradient(135deg, var(--brand) 0%, #ffb347 100%);
  color: var(--white);
}

/* Hero — image pleine hauteur, texte au premier plan */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(88vh, 52rem);
  display: flex;
  align-items: center;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center 32%;
  background-repeat: no-repeat;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(15, 18, 24, 0.88) 0%,
    rgba(15, 18, 24, 0.62) 42%,
    rgba(15, 18, 24, 0.38) 100%
  );
}

.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 18, 24, 0.55) 0%, transparent 45%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4.5rem 0 4rem;
  max-width: 42rem;
}

@media (min-width: 1024px) {
  .hero-content {
    padding: 6rem 0 5.5rem;
    max-width: 44rem;
  }
}

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffb347;
  margin: 0 0 0.75rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.85rem);
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: var(--white);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
  line-height: 1.15;
}

.hero-lead {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 1.5rem;
  max-width: 36rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.hero-tags li {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
}

.hero-credit {
  margin: 2rem 0 0;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 28rem;
  line-height: 1.4;
}

.btn-secondary--on-dark {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white) !important;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.btn-secondary--on-dark:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, filter 0.15s;
}

.btn:hover {
  transform: scale(1.02);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, #ffb347 100%);
  color: var(--white);
  box-shadow: 0 12px 40px rgba(255, 140, 0, 0.22);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  border: 1px solid rgba(204, 204, 204, 0.55);
  box-shadow: var(--shadow);
}

/* Cards grid */
.bg-muted {
  background: var(--grey-bg);
}

.cards {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  padding: 2rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
}

/* Carte prestation avec visuel */
.card-prestation {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-prestation .card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--grey-bg);
}

.card-prestation .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

.card-prestation:hover .card-media img {
  transform: scale(1.04);
}

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

.card-prestation .card-body {
  padding: 1.5rem 1.5rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .card-prestation .card-body {
    padding: 1.5rem 2rem 1.25rem;
  }
}

.card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.card-prestation .card-footer {
  margin-top: auto;
}

.card-footer {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(204, 204, 204, 0.25);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.card-footer a {
  font-size: 0.875rem;
  font-weight: 600;
}

.card .btn-card {
  margin-left: auto;
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
}

/* Values */
.values {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .values {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .values {
    grid-template-columns: repeat(4, 1fr);
  }
}

.value {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(204, 204, 204, 0.2);
  background: rgba(242, 242, 242, 0.55);
  box-shadow: var(--shadow);
}

.value h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.value p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* Quote band */
.quote-section {
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.1) 0%, rgba(242, 242, 242, 0.9) 50%, #fff 100%);
}

.quote-box {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

@media (min-width: 640px) {
  .quote-box {
    padding: 2.5rem;
  }
}

.form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-grid .full {
  grid-column: 1 / -1;
}

label span {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(204, 204, 204, 0.65);
  font-family: inherit;
  font-size: 1rem;
}

textarea {
  resize: vertical;
  min-height: 8rem;
}

.checkbox {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.checkbox input {
  width: auto;
  margin-top: 0.2rem;
}

.form-status {
  min-height: 1.5rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-dl {
  padding: 2rem;
  border-radius: 1rem;
  background: rgba(242, 242, 242, 0.65);
  border: 1px solid rgba(204, 204, 204, 0.2);
  box-shadow: var(--shadow);
}

.contact-dl div + div {
  margin-top: 1.5rem;
}

.contact-dl dt {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.contact-dl dd {
  margin: 0.35rem 0 0;
}

.contact-dl a {
  font-size: 1.125rem;
  font-weight: 700;
}

.map-wrap {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(204, 204, 204, 0.35);
  box-shadow: var(--shadow-card);
}

.map-wrap iframe {
  width: 100%;
  height: 20rem;
  border: 0;
}

.map-note {
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  color: var(--ink-muted);
  background: var(--grey-bg);
  border-top: 1px solid rgba(204, 204, 204, 0.25);
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(204, 204, 204, 0.35);
  background: var(--grey-bg);
  padding: 3rem 0;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-brand {
  font-weight: 700;
  font-size: 1.125rem;
}

.footer-meta {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin: 0.5rem 0 0;
  max-width: 28rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--ink-muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--brand-dark);
}

.footer-copy {
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(204, 204, 204, 0.45);
  text-align: center;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

/* Legal pages */
.legal-page {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
}

.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.legal-page p,
.legal-page li {
  color: var(--ink-muted);
}

.legal-page ul {
  padding-left: 1.25rem;
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  font-weight: 600;
}
