:root {
  --color-bg: #f4f6f9;
  --color-surface: #ffffff;
  --color-text: #1a2332;
  --color-muted: #5c6b7f;
  --color-accent: #3fa3bc;
  --color-accent-dark: #2c8498;
  --color-accent-soft: #e2f5fa;
  --color-border: #d4e4f0;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --shadow-sm: 0 1px 3px rgba(26, 35, 50, 0.06);
  --shadow-md: 0 8px 30px rgba(63, 163, 188, 0.18);
  --radius: 10px;
  --header-h: 52px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.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;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--header-h);
  padding-block: 0.4rem;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
}

@media (max-width: 768px) {
  .header-inner {
    justify-content: flex-end;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
    display: none;
  }

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

  .main-nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Hero */
.hero {
  --hero-vpad: clamp(2rem, 5vw, 4rem);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  min-height: min(88vh, 920px);
  padding: var(--hero-vpad) 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #6abbd8;
  background-image:
    linear-gradient(
      100deg,
      rgba(74, 140, 165, 0.92) 0%,
      rgba(106, 187, 216, 0.72) 42%,
      rgba(52, 118, 142, 0.9) 100%
    ),
    url("images/hero-plafonnier.png");
  background-size: cover;
  background-position: center;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 90% 20%, rgba(106, 187, 216, 0.25) 0%, transparent 42%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: left;
  width: 100%;
  max-width: min(1100px, 100%);
  margin-inline: auto;
}

.hero-main {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  width: 100%;
}

.hero-rail {
  flex-shrink: 0;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, #e8a54b 0%, #c47d28 100%);
  box-shadow: 0 0 20px rgba(232, 165, 75, 0.4);
}

.hero-column {
  flex: 1;
  min-width: 0;
  padding-left: clamp(1rem, 3vw, 1.85rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-logo {
  display: flex;
  justify-content: flex-start;
  text-decoration: none;
  width: fit-content;
  max-width: 100%;
}

.hero-logo--card {
  background: #fff;
  border-radius: 14px;
  padding: 0.55rem 0.85rem;
  margin-bottom: 1.5rem;
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.55) inset;
}

.hero-logo--card img {
  display: block;
  height: auto;
  width: auto;
  max-height: clamp(68px, 11vh, 118px);
  max-width: min(220px, 72vw);
  object-fit: contain;
  border-radius: 0;
}

.hero-logo--card:hover img {
  opacity: 0.97;
}

.hero-logo--card:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  max-width: 38rem;
}

.hero-copy .btn {
  margin: 1.65rem 0 0;
  align-self: flex-start;
}

.hero-copy .hero-lead-label {
  margin: 0 0 0.85rem;
}

.hero-subtitle + .hero-text {
  margin-top: 0.35rem;
}

.hero-copy .hero-text + .hero-text {
  margin-top: 0.4rem;
}

.hero h1 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1.5rem;
}

.hero .hero-copy h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.hero .hero-subtitle {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
}

@media (max-width: 640px) {
  .hero {
    min-height: min(82vh, 780px);
  }

  .hero-main {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-rail {
    width: 100%;
    height: 4px;
    margin-bottom: 1.25rem;
  }

  .hero-column {
    padding-left: 0;
    align-items: center;
  }

  .hero-content {
    text-align: center;
  }

  .hero-copy {
    align-items: center;
    text-align: center;
    max-width: 100%;
  }

  .hero-copy .btn {
    align-self: center;
  }

  .hero-logo--card {
    margin-inline: auto;
    margin-bottom: 1.35rem;
  }

  .hero-logo--card img {
    max-height: clamp(56px, 14vw, 96px);
    max-width: min(200px, 78vw);
  }
}

.hero-lead-label {
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 1.25rem 0 0.5rem;
  opacity: 0.95;
}

.hero .hero-copy .hero-lead-label {
  color: #d4f1f9;
  margin-top: 0;
  margin-bottom: 0.85rem;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  line-height: 1.3;
  margin: 0 0 1rem;
}

.hero-text {
  margin: 0;
  opacity: 0.92;
  font-size: 1.05rem;
  line-height: 1.55;
}

.hero-copy .btn.btn-primary {
  border-radius: 999px;
  background: linear-gradient(135deg, #e8a54b 0%, #cf9334 100%);
  color: #1a1208;
  border-color: rgba(255, 255, 255, 0.22);
  font-weight: 700;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.22);
}

.hero-copy .btn.btn-primary:hover {
  background: linear-gradient(135deg, #f0b55d 0%, #d9a040 100%);
  color: #1a1208;
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: #fff;
  color: var(--color-accent-dark);
  border-color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  border-color: var(--color-accent-soft);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: #fff;
}

/* Sections */
.section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin: 0 0 1rem;
  color: var(--color-text);
}

.section-intro {
  max-width: 720px;
  margin: 0 0 2.5rem;
  color: var(--color-muted);
  font-size: 1.05rem;
}

/* Galerie photos */
.gallery {
  background: var(--color-surface);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: clamp(200px, 32vw, 280px);
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Method */
.method {
  background: var(--color-surface);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .method-grid {
    grid-template-columns: 1fr;
  }
}

.method-card {
  padding: 1.75rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.method-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.method-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

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

/* Services */
.services {
  background: var(--color-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

.service-card {
  background: var(--color-surface);
  padding: 0;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.service-card-media {
  position: relative;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: var(--color-border);
}

.service-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.service-card:hover .service-card-media img {
  transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .gallery-item:hover img,
  .service-card:hover .service-card-media img {
    transform: none;
  }
}

.service-card-body {
  padding: 1.75rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  flex-grow: 1;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0;
}

.service-card p {
  margin: 0;
  flex-grow: 1;
  color: var(--color-muted);
  font-size: 0.98rem;
}

.service-card .btn {
  margin-top: 0.5rem;
}

/* Avis clients */
.reviews {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.reviews-maps-cta {
  margin: 0 0 2rem;
}

.maps-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
}

.maps-link:hover {
  color: var(--color-accent-dark);
  text-decoration: underline;
}

/* Carrousel avis (style « showcase » : centre dominant, flèches, pastilles) */
.reviews-carousel {
  max-width: min(1040px, 100%);
  margin-inline: auto;
}

.reviews-carousel-shell {
  background: linear-gradient(180deg, #eef1f5 0%, #e4e8ee 100%);
  border-radius: 24px;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(0.75rem, 2vw, 1.25rem) clamp(1rem, 2vw, 1.35rem);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.reviews-carousel-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.reviews-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(44px, 11vw, 56px);
  height: clamp(44px, 11vw, 56px);
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: rgba(26, 35, 50, 0.75);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 6px 24px rgba(26, 35, 50, 0.12), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  backdrop-filter: blur(6px);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.reviews-carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.98);
  color: var(--color-accent-dark);
  box-shadow: 0 8px 28px rgba(63, 163, 188, 0.22);
}

.reviews-carousel-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

.reviews-carousel-arrow--prev {
  left: clamp(6px, 2vw, 18px);
}

.reviews-carousel-arrow--next {
  right: clamp(6px, 2vw, 18px);
}

.reviews-carousel-arrow:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.reviews-carousel-track {
  display: flex;
  gap: 1.15rem;
  transition: transform 0.45s ease;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .reviews-carousel-track {
    transition-duration: 0.01ms;
  }
}

.review-slide {
  flex: 0 0 auto;
  min-width: 0;
  padding: 0;
  box-sizing: border-box;
}

.review-slide .review-card {
  height: 100%;
  min-height: 17rem;
  padding: 2.35rem clamp(1.5rem, 4vw, 2.85rem);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: var(--color-surface);
  box-shadow: 0 8px 32px rgba(26, 35, 50, 0.1), 0 2px 8px rgba(26, 35, 50, 0.06);
  transition: opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease;
}

.review-slide[aria-hidden="true"] .review-card {
  opacity: 0.48;
  filter: saturate(0.75) brightness(0.97);
  transform: scale(0.93);
  box-shadow: 0 4px 16px rgba(26, 35, 50, 0.06);
}

.review-slide[aria-hidden="false"] .review-card {
  opacity: 1;
  filter: none;
  transform: scale(1);
  box-shadow: 0 16px 48px rgba(26, 35, 50, 0.14), 0 4px 12px rgba(26, 35, 50, 0.08);
}

.reviews-carousel .review-stars {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

.reviews-carousel .review-quote p {
  font-size: clamp(1.15rem, 2.8vw, 1.5rem);
  line-height: 1.7;
}

.reviews-carousel .review-footer {
  margin-top: 1.5rem;
  font-size: 1.08rem;
}

.reviews-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.35rem;
  padding-top: 0.25rem;
}

.reviews-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.reviews-carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(26, 35, 50, 0.18);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.reviews-carousel-dot:hover {
  background: rgba(26, 35, 50, 0.32);
}

.reviews-carousel-dot[aria-current="true"] {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(26, 35, 50, 0.12), 0 2px 8px rgba(26, 35, 50, 0.15);
  transform: scale(1.2);
}

.reviews-carousel-dot:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.review-card {
  margin: 0;
  padding: 1.75rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.review-stars {
  margin: 0 0 0.75rem;
  color: #c9a227;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.review-quote {
  margin: 0;
}

.review-quote p {
  font-size: 1.02rem;
  font-style: italic;
  color: var(--color-text);
  margin: 0;
  line-height: 1.65;
}

.review-footer {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-muted);
  font-style: normal;
}

.review-footer cite {
  font-style: normal;
}

/* Contact */
.contact {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 40%);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-info .section-title {
  margin-bottom: 1.25rem;
}

.contact-address {
  margin: 0 0 1rem;
  color: var(--color-muted);
  line-height: 1.7;
}

.contact-address strong {
  color: var(--color-text);
}

.contact-phone a {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-phone a:hover {
  color: var(--color-accent-dark);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-color: transparent;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-hint {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.form-status {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  min-height: 1.35em;
}

.form-status--success {
  color: #146c3f;
}

.form-status--error {
  color: #b42318;
}

/* Footer */
.site-footer {
  background: #152a4a;
  color: rgba(255, 255, 255, 0.75);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.7;
}
