/* Palette et variables globales */
:root {
  --bg: #fffaf5;
  --surface: #ffffff;
  --surface-alt: #f4ebde;
  --text: #35251a;
  --muted: #6d5a4d;
  --border: rgba(83, 53, 32, 0.12);
  --shadow: 0 18px 40px rgba(46, 32, 23, 0.08);
  --shadow-soft: 0 10px 24px rgba(46, 32, 23, 0.06);
  --primary: #5d3a22;
  --primary-dark: #3d2515;
  --accent: #bf8f5a;
  --accent-soft: #e8d5bd;
  --success: #557247;
  --max-width: 1180px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --header-height: 88px;
}

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

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  font-family: "Aptos", "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(191, 143, 90, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(93, 58, 34, 0.08), transparent 22%),
    linear-gradient(180deg, #fffaf5 0%, #f7efe4 100%);
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

main {
  overflow: clip;
}

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

/* Bandeau de contact */
.topbar {
  background: var(--primary-dark);
  color: #fff5ea;
}

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

.topbar__details {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.topbar__phone,
.topbar__phone:visited,
.topbar__phone:hover {
  color: #fff5ea;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* En-tête et navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 250, 245, 0.92);
  border-bottom: 1px solid rgba(83, 53, 32, 0.08);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand__mark {
  width: 92px;
  height: 46px;
  padding: 0.25rem 0.45rem;
  border-radius: 16px;
  background: #fff8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
  overflow: hidden;
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand__text strong {
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand__text span {
  color: var(--muted);
  font-size: 0.9rem;
}

.nav {
  position: relative;
}

.nav__toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  color: var(--primary-dark);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.nav__toggle svg {
  width: 22px;
  height: 22px;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  color: var(--muted);
  transition: 0.25s ease;
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  background: rgba(191, 143, 90, 0.18);
  color: var(--primary-dark);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: 999px;
  padding: 0.95rem 1.45rem;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-1px);
}

.button--small {
  padding: 0.7rem 1.1rem;
  font-size: 0.95rem;
}

.button-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #7b4c2b 100%);
  color: #fffaf4;
  box-shadow: 0 14px 30px rgba(93, 58, 34, 0.22);
}

.button-secondary {
  background: rgba(191, 143, 90, 0.15);
  color: var(--primary-dark);
  border-color: rgba(191, 143, 90, 0.28);
}

/* Blocs héros et pages internes */
.hero,
.page-hero {
  padding: 4.8rem 0 3rem;
}

.hero__grid,
.page-hero__grid,
.service-layout,
.contact-grid,
.footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.8rem;
  background: rgba(191, 143, 90, 0.16);
  border: 1px solid rgba(191, 143, 90, 0.28);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.06;
  margin: 1rem 0 1rem;
}

.hero p,
.page-hero p {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 58ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.hero__highlights,
.tag-list,
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding: 0;
  margin: 1.4rem 0 0;
  list-style: none;
}

.tag,
.area-list li,
.hero__highlights li {
  padding: 0.65rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  color: var(--primary-dark);
  font-weight: 600;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.3rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.trust-badge__logo {
  width: 82px;
  height: 82px;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(83, 53, 32, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-badge__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.trust-badge__content {
  display: grid;
  gap: 0.2rem;
}

.trust-badge__content strong {
  font-size: 1.05rem;
  color: var(--primary-dark);
}

.trust-badge__content span {
  color: var(--muted);
}

.hero__card,
.page-hero__card,
.card,
.contact-form,
.map-card,
.comparison-card,
.stats-grid__item,
.info-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero__card,
.page-hero__card {
  padding: 1.2rem;
  position: relative;
  overflow: hidden;
}

.hero__card::before,
.page-hero__card::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(191, 143, 90, 0.24), transparent 70%);
  pointer-events: none;
}

.hero__media,
.image-frame {
  border-radius: calc(var(--radius-lg) - 8px);
  overflow: hidden;
  background: linear-gradient(160deg, #f8eee0 0%, #efe2d1 100%);
  border: 1px solid rgba(191, 143, 90, 0.2);
}

.hero__media--photo {
  aspect-ratio: 16 / 10;
}

.hero__media--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.image-frame--cover-photo {
  aspect-ratio: 16 / 10;
}

.image-frame--cover-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.hero__meta strong {
  display: block;
  font-size: 1.35rem;
  color: var(--primary-dark);
}

.hero__meta span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Sections réutilisables */
.section {
  padding: 2.4rem 0 4.6rem;
}

.section--muted {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(244, 235, 222, 0.9) 100%);
}

.section__header {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section__header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.8rem;
}

.section__header p {
  margin: 0;
  color: var(--muted);
}

.service-grid,
.benefit-grid,
.stats-grid,
.info-grid,
.step-grid {
  display: grid;
  gap: 1.3rem;
}

.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.section-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.benefit-grid,
.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.stats-grid__item,
.comparison-card,
.info-card {
  padding: 1.5rem;
}

.card h3,
.stats-grid__item h3,
.comparison-card h3,
.info-card h3 {
  margin: 0.9rem 0 0.65rem;
  font-size: 1.2rem;
}

.card p,
.comparison-card p,
.stats-grid__item p,
.info-card p {
  margin: 0;
  color: var(--muted);
}

.icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(160deg, rgba(191, 143, 90, 0.22) 0%, rgba(191, 143, 90, 0.08) 100%);
  color: var(--primary);
}

.icon-badge svg {
  width: 28px;
  height: 28px;
}

.check-list,
.info-list {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  margin: 1.4rem 0 0;
  list-style: none;
}

.check-list li,
.info-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  color: var(--muted);
}

.check-list strong,
.info-list strong {
  color: var(--text);
}

.check-list svg,
.info-list svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--success);
  margin-top: 0.15rem;
}

.split-surface {
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(191, 143, 90, 0.14) 0%, rgba(255, 255, 255, 0.88) 100%);
  border: 1px solid rgba(191, 143, 90, 0.2);
}

.before-after {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
}

.comparison-card h3 span {
  color: var(--accent);
}

.cta-band {
  padding: 2.2rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(61, 37, 21, 0.98) 0%, rgba(93, 58, 34, 0.94) 100%);
  color: #fff5ea;
  box-shadow: 0 24px 44px rgba(61, 37, 21, 0.22);
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-band p {
  margin: 0.5rem 0 0;
  color: rgba(255, 245, 234, 0.86);
}

.cta-band .eyebrow {
  background: rgba(255, 245, 234, 0.12);
  border-color: rgba(255, 245, 234, 0.22);
  color: #fff5ea;
}

.cta-band .button-secondary,
.cta-band .button-secondary:visited,
.cta-band .button-secondary:hover {
  color: #fff5ea;
  border-color: rgba(255, 245, 234, 0.3);
  background: rgba(255, 245, 234, 0.08);
}

/* Formulaire et retours utilisateur */
.contact-form {
  padding: 1.7rem;
}

.contact-form h2,
.map-card h2 {
  margin-top: 0;
}

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

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field label {
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(83, 53, 32, 0.16);
  background: #fffdfa;
  padding: 0.95rem 1rem;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(191, 143, 90, 0.8);
  box-shadow: 0 0 0 4px rgba(191, 143, 90, 0.14);
}

.form-note,
.notice {
  font-size: 0.94rem;
  color: var(--muted);
}

.form-feedback {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(85, 114, 71, 0.18);
  background: rgba(85, 114, 71, 0.09);
  color: #3d4f34;
}

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.map-card {
  padding: 1rem;
}

.map-frame {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: 22px;
}

/* Pied de page */
.footer {
  padding: 3.4rem 0 6rem;
  color: #f6ede3;
  background: linear-gradient(180deg, #4a2f1d 0%, #2d1c12 100%);
}

.footer__grid {
  align-items: start;
}

.footer h3,
.footer h4 {
  margin-top: 0;
}

.footer p,
.footer li,
.footer a {
  color: rgba(246, 237, 227, 0.86);
}

.footer .brand__text strong {
  color: #fff5ea;
}

.footer .brand__text span {
  color: rgba(246, 237, 227, 0.78);
}

.footer__nav,
.footer__services {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.footer__bottom {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 245, 234, 0.12);
  color: rgba(246, 237, 227, 0.7);
  font-size: 0.92rem;
}

/* CTA fixe sur mobile */
.mobile-call-button {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary) 0%, #7b4c2b 100%);
  color: #fffaf4;
  font-weight: 800;
  box-shadow: 0 18px 36px rgba(61, 37, 21, 0.26);
}

.mobile-call-button svg {
  width: 22px;
  height: 22px;
}

.reveal {
  animation: fadeUp 0.7s ease both;
}

.reveal:nth-child(2) {
  animation-delay: 0.08s;
}

.reveal:nth-child(3) {
  animation-delay: 0.16s;
}

.reveal:nth-child(4) {
  animation-delay: 0.24s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefit-grid,
  .info-grid,
  .step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  :root {
    --header-height: 74px;
  }

  .nav__toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav__menu {
    position: absolute;
    top: calc(100% + 0.9rem);
    right: 0;
    min-width: 260px;
    padding: 0.75rem;
    background: rgba(255, 250, 245, 0.98);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: 0.22s ease;
  }

  .nav__menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav__link {
    justify-content: flex-start;
    border-radius: 16px;
  }

  .hero__grid,
  .page-hero__grid,
  .service-layout,
  .contact-grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .hero__meta,
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .topbar__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .trust-badge {
    width: 100%;
    align-items: center;
  }

  .trust-badge__logo {
    width: 70px;
    height: 70px;
  }

  .image-frame--cover-photo {
    aspect-ratio: 4 / 3;
  }

  .hero__media--photo {
    aspect-ratio: 4 / 3;
  }

  .topbar__details {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .hero,
  .page-hero {
    padding-top: 3.2rem;
  }

  .hero__meta,
  .service-grid,
  .benefit-grid,
  .info-grid,
  .step-grid,
  .stats-grid,
  .before-after {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 2rem 0 4rem;
  }

  .mobile-call-button {
    display: inline-flex;
  }

  .footer {
    padding-bottom: 7.2rem;
  }
}
