/* LP Tony Peinture — Réparation toiture (Google Ads) */

:root {
  --primary: #1a1a1a;
  --accent: #e8b923;
  --accent-dark: #c99a12;
  --warm: #fcd782;
  --light: #f7f5f0;
  --line: #e8e4dc;
  --muted: #5c5c5c;
  --white: #ffffff;
  --star: #e8b923;
  --container: 1120px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --header-h: 4.75rem;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 16px 48px rgba(26, 26, 26, 0.1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --float-clearance: 5.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--white);
  color: var(--primary);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: 0.75rem;
  z-index: 100;
  padding: 0.55rem 0.9rem;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  transform: translateY(-160%);
}

.skip:focus { transform: none; }

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.45rem); }
h3 { font-size: 1.2rem; }

.lede {
  margin: 1rem 0 0;
  font-size: clamp(1.02rem, 1.8vw, 1.15rem);
  color: var(--muted);
  max-width: 38rem;
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.section--light { background: var(--light); }
.section--dark {
  background: var(--primary);
  color: var(--white);
}

.section--dark .lede,
.section--dark p { color: rgba(255, 255, 255, 0.82); }

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .lede { margin-inline: auto; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
}

.btn:hover { transform: translateY(-1px); }

.btn--accent {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}

.btn--accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn--dark {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn--outline {
  background: transparent;
  border-color: var(--line);
  color: var(--primary);
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.5rem var(--gutter);
  color: var(--white);
  transition: background 0.35s var(--ease), color 0.35s, box-shadow 0.35s;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  color: var(--primary);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(10px);
}

.brand img {
  height: clamp(2.4rem, 5vw, 3rem);
  width: auto;
}

.header-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}

/* Hero */

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.72) 0%, rgba(8, 8, 8, 0.35) 45%, rgba(8, 8, 8, 0.5) 100%),
    linear-gradient(180deg, rgba(8, 8, 8, 0.55) 0%, rgba(8, 8, 8, 0.25) 42%, rgba(8, 8, 8, 0.92) 100%);
}

.hero-content h1,
.hero-content .lede,
.hero-badge {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 2rem) var(--gutter) clamp(3rem, 8vw, 5rem);
  width: min(var(--container), 100%);
  margin-inline: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-badge .stars {
  color: var(--accent);
  letter-spacing: 0.08em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.9rem;
}

.hero-trust strong {
  display: block;
  font-size: 1.05rem;
}

.hero-trust span {
  display: block;
  font-size: 0.88rem;
  opacity: 0.88;
}

/* Urgency strip */

.urgency-strip {
  background: var(--warm);
  color: var(--primary);
  padding: 1rem var(--gutter);
}

.urgency-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.urgency-strip p {
  margin: 0;
  font-weight: 600;
}

/* Problem grid */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.problem-card {
  padding: 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.problem-card h3 { margin-bottom: 0.45rem; }
.problem-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Split */

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
}

.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.check-list li {
  position: relative;
  padding-left: 1.65rem;
  margin-bottom: 0.65rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 2px;
  background: var(--accent);
}

/* Steps */

.steps {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

.step {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
}

.step p {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
}

/* Reviews */

.reviews-card {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

@media (min-width: 768px) {
  .reviews-card { grid-template-columns: auto 1fr; align-items: center; }
}

.reviews-score {
  text-align: center;
  padding: 1rem 1.5rem;
  background: var(--light);
  border-radius: var(--radius-lg);
}

.reviews-score .big {
  font-family: var(--display);
  font-size: 3rem;
  line-height: 1;
  color: var(--primary);
}

.reviews-score .stars {
  color: var(--star);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  margin: 0.35rem 0;
}

.reviews-score span {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--light);
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 52px rgba(26, 26, 26, 0.14);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.gallery-item--portrait img {
  object-position: center 15%;
}

.gallery-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(6px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  margin: 0;
  max-width: min(1200px, 96vw);
  max-height: 90vh;
  display: grid;
  gap: 0.75rem;
}

.lightbox-figure img {
  width: auto;
  max-width: 100%;
  max-height: calc(90vh - 3rem);
  margin-inline: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.lightbox-figure figcaption {
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
}

.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .lightbox-nav { display: none; }
}

/* FAQ */

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding-block: 1rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  padding-right: 2rem;
  position: relative;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.25rem;
  color: var(--accent-dark);
}

.faq-list details[open] summary::after { content: "−"; }

.faq-list p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

/* Contact */

.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 960px) {
  .contact-grid { grid-template-columns: 0.95fr 1.05fr; }
}

.contact-card {
  padding: 1.5rem;
  background: var(--light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.contact-card p { margin: 0 0 0.75rem; }

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--primary);
}

.contact-hours {
  margin-top: 1.25rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.paperform-wrap {
  margin-top: 0.5rem;
  min-height: 14rem;
}

.map-wrap {
  margin-top: 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  min-height: 260px;
  border: 0;
}

/* Zone tags */

.zone-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.zone-tags span {
  padding: 0.4rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
}

/* Footer */

.site-footer {
  background: #121212;
  color: rgba(255, 255, 255, 0.78);
  padding: 2.25rem var(--gutter) 1rem;
  padding-bottom: calc(1rem + var(--float-clearance));
}

@media (min-width: 768px) {
  .site-footer {
    padding-bottom: 1.25rem;
  }
}

.footer-inner {
  width: min(var(--container), 100%);
  margin-inline: auto;
  display: grid;
  gap: 1.75rem;
  align-items: start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
  }
}

.footer-brand img {
  height: 2.75rem;
  width: auto;
  margin-bottom: 0.85rem;
}

.footer-brand p {
  margin: 0;
  max-width: 22rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
}

.footer-contact p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.footer-phone {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
}

.footer-phone:hover {
  color: var(--accent);
}

.footer-hours {
  margin-top: 0.5rem !important;
  font-size: 0.82rem !important;
  color: rgba(255, 255, 255, 0.55) !important;
}

.footer-bar {
  width: min(var(--container), 100%);
  margin: 1rem auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.footer-bar a:hover {
  color: var(--accent);
}

.float-call {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 28px rgba(26, 26, 26, 0.22);
}

.float-call span {
  width: 1rem;
  height: 1rem;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.5.6.6 0 1 .4 1 1V21c0 .6-.4 1-1 1C10.3 22 2 13.7 2 3c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.2.2 2.4.6 3.5.1.3 0 .7-.2 1L6.6 10.8z'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (min-width: 768px) {
  .float-call { display: none; }
}

/* Legal */

.legal {
  max-width: 48rem;
}

.legal-intro {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.legal h2 {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}

.legal p, .legal li { color: var(--muted); }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
}

.legal-table th {
  background: var(--light);
  color: var(--primary);
}

.page-hero {
  padding: calc(var(--header-h) + 2.5rem) var(--gutter) 2rem;
  background: var(--light);
}

.page-hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}
