/* ===================================================================
   Horizon Peinture — styles globaux
   =================================================================== */

:root {
  --ink: #101820;
  --horizon-day: #f6f3ec;
  --horizon-dusk: #2b4c6f;
  --horizon-glow: #e19a5c;
  --stone: #c9c2b4;

  --radius: 14px;
  --font-title: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max-width: 1180px;
  --header-h: 84px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--horizon-day);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1em;
}

.wrap {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: var(--horizon-day);
  padding: 10px 16px;
  border-radius: var(--radius);
  z-index: 200;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 12px;
}

/* --- Trait de pinceau décoratif, se "peint" à l'entrée dans le viewport --- */
.paint-stroke {
  display: block;
  width: 64px;
  height: 6px;
  border-radius: 3px;
  margin-bottom: 22px;
  background: linear-gradient(90deg, var(--horizon-glow), var(--horizon-dusk));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}
.paint-stroke.is-visible {
  transform: scaleX(1);
}
@media (prefers-reduced-motion: reduce) {
  .paint-stroke {
    transform: scaleX(1);
    transition: none;
  }
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--horizon-dusk);
  margin: 0 0 0.6em;
}

.muted {
  color: #5b6570;
  font-size: 0.95rem;
}

/* --- Boutons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  text-align: center;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--horizon-glow);
  color: var(--ink);
}
.btn-primary:hover {
  background: #eaa96c;
}
.btn-ghost {
  background: rgba(246, 243, 236, 0.08);
  color: var(--horizon-day);
  border-color: rgba(246, 243, 236, 0.45);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  background: rgba(246, 243, 236, 0.18);
  border-color: rgba(246, 243, 236, 0.7);
}
.btn-small {
  padding: 10px 18px;
  font-size: 0.88rem;
}
.btn-large {
  padding: 17px 36px;
  font-size: 1.05rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--horizon-dusk);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, gap 0.2s ease;
}
.link-arrow::after {
  content: "→";
  transition: transform 0.2s ease;
}
.link-arrow:hover {
  border-color: currentColor;
}
.link-arrow:hover::after {
  transform: translateX(3px);
}

/* --- Verre dépoli (glassmorphism) --- */
.glass-panel {
  background: rgba(16, 24, 32, 0.4);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(246, 243, 236, 0.18);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(16, 24, 32, 0.35);
}

/* ===================================================================
   Header
   =================================================================== */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(246, 243, 236, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(16, 24, 32, 0.08);
  height: 72px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--horizon-day);
  transition: color 0.3s ease;
}
.site-header.is-scrolled .brand {
  color: var(--ink);
}
.brand span {
  color: var(--horizon-glow);
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
}

.primary-nav a:not(.btn) {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--horizon-day);
  transition: color 0.3s ease, opacity 0.2s ease;
  opacity: 0.9;
}
.primary-nav a:not(.btn):hover {
  opacity: 1;
}
.site-header.is-scrolled .primary-nav a:not(.btn) {
  color: var(--ink);
}
.primary-nav a[aria-current="page"] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--horizon-glow);
  text-decoration-thickness: 2px;
}

.has-sub {
  position: relative;
}
/* zone tampon invisible : évite que le menu se referme quand le curseur
   traverse l'espace entre le lien et le panneau */
.has-sub::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 18px;
}
.has-sub > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.caret {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.has-sub:hover .caret,
.has-sub:focus-within .caret {
  transform: rotate(225deg) translateY(1px);
}

.sub-nav {
  position: absolute;
  top: 100%;
  left: 50%;
  margin-top: 14px;
  min-width: 230px;
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px) scale(0.97);
  transform-origin: top center;
  background: rgba(16, 24, 32, 0.94);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(246, 243, 236, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 24px 48px rgba(16, 24, 32, 0.3);
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1), transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}
.has-sub:hover .sub-nav,
.has-sub:focus-within .sub-nav {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}
.sub-nav li {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.has-sub:hover .sub-nav li,
.has-sub:focus-within .sub-nav li {
  opacity: 1;
  transform: translateY(0);
}
.sub-nav li:nth-child(1) { transition-delay: 0.04s; }
.sub-nav li:nth-child(2) { transition-delay: 0.09s; }
.sub-nav li:nth-child(3) { transition-delay: 0.14s; }

.sub-nav a {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: block;
  padding: 11px 16px;
  border-radius: calc(var(--radius) - 6px);
  color: rgba(246, 243, 236, 0.85) !important;
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 1 !important;
  transition: color 0.2s ease, padding-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Coup de peinture : chaque prestation "révèle" sa propre couleur au survol */
.sub-nav a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.sub-nav li:nth-child(1) a::after { background: var(--horizon-dusk); }     /* intérieure : bleu ardoise */
.sub-nav li:nth-child(2) a::after { background: #a4552b; }                 /* extérieure : terracotta */
.sub-nav li:nth-child(3) a::after { background: #5b4636; }                 /* mural : bois chaud */

.sub-nav a:hover,
.sub-nav a:focus-visible {
  color: #ffffff !important;
  padding-left: 22px;
}
.sub-nav a:hover::after,
.sub-nav a:focus-visible::after {
  transform: scaleX(1);
}
@media (prefers-reduced-motion: reduce) {
  .sub-nav,
  .sub-nav li,
  .caret {
    transition: none !important;
  }
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger,
.burger::before,
.burger::after {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--horizon-day);
  transition: background-color 0.3s ease, transform 0.25s ease, opacity 0.25s ease;
}
.site-header.is-scrolled .burger,
.site-header.is-scrolled .burger::before,
.site-header.is-scrolled .burger::after {
  background: var(--ink);
}
.burger {
  position: relative;
}
.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
}
.burger::before {
  top: -8px;
}
.burger::after {
  top: 8px;
}
.nav-toggle[aria-expanded="true"] .burger {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .burger::before {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .burger::after {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===================================================================
   Hero
   =================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% center;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(16, 24, 32, 0.55) 0%, rgba(16, 24, 32, 0.35) 45%, rgba(16, 24, 32, 0.65) 100%);
}

/* --- Transition "coup de pinceau" entre le hero et la section suivante --- */
.hero::after,
.service-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 70px;
  z-index: 3;
  background: var(--horizon-day);
  -webkit-mask: url("../images/brush-edge.svg") bottom center / 100% 100% no-repeat;
  mask: url("../images/brush-edge.svg") bottom center / 100% 100% no-repeat;
  pointer-events: none;
}
@media (max-width: 720px) {
  .hero::after,
  .service-hero::after {
    height: 42px;
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: var(--header-h);
}

.hero-panel {
  max-width: 620px;
  padding: 44px 40px;
}

.hero-title {
  color: var(--horizon-day);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 0.5em;
}
.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(28px);
  animation: line-reveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-title .line:nth-child(1) { animation-delay: 0.1s; }
.hero-title .line:nth-child(2) { animation-delay: 0.22s; }
.hero-title .line:nth-child(3) { animation-delay: 0.34s; }
.hero-title em {
  font-style: italic;
  color: var(--horizon-glow);
}

@keyframes line-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text {
  color: rgba(246, 243, 236, 0.92);
  font-size: 1.05rem;
  max-width: 50ch;
  opacity: 0;
  animation: fade-in 0.9s ease forwards;
  animation-delay: 0.5s;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
  opacity: 0;
  animation: fade-in 0.9s ease forwards;
  animation-delay: 0.65s;
}

@keyframes fade-in {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title .line,
  .hero-text,
  .hero-actions {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ===================================================================
   Sections génériques
   =================================================================== */
.section {
  padding: 96px 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- À propos (teaser) --- */
.about-teaser {
  background: var(--horizon-day);
}
.about-grid {
  max-width: 760px;
}
.about-grid p {
  color: #3a4048;
}

/* --- Prestations --- */
.services {
  background: #fff;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.service-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(16, 24, 32, 0.22);
}
.service-card-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover .service-card-media img {
  transform: scale(1.06);
}
.service-card-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(16, 24, 32, 0.05) 0%, rgba(16, 24, 32, 0.18) 45%, rgba(16, 24, 32, 0.6) 100%);
}
.service-card-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 26px 24px;
  background: rgba(16, 24, 32, 0.4);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-top: 1px solid rgba(246, 243, 236, 0.14);
}
.service-card-content h3 {
  color: var(--horizon-day);
}
.service-card-content p {
  color: rgba(246, 243, 236, 0.88);
  font-size: 0.96rem;
}
.service-card-content .link-arrow {
  color: var(--horizon-glow);
}
.service-card-content .link-arrow:hover {
  border-color: var(--horizon-glow);
}

/* --- Fiche Google --- */
.google-section {
  background: #fff;
}
.google-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.google-info p {
  color: #454b52;
}
.google-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 24px;
  font-size: 1.05rem;
}
.google-stars {
  color: var(--horizon-glow);
  letter-spacing: 2px;
}
.google-rating strong {
  font-family: var(--font-title);
  color: var(--ink);
}
.google-rating span {
  color: #5b6570;
  font-size: 0.9rem;
}
.google-map-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--stone);
  box-shadow: 0 20px 44px rgba(16, 24, 32, 0.1);
}
.google-map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 860px) {
  .google-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .google-map-frame {
    order: -1;
  }
}

/* --- Zone d'intervention --- */
.zone {
  position: relative;
  background: var(--horizon-dusk);
  background-image: linear-gradient(135deg, var(--horizon-dusk) 0%, #1f3a54 100%);
}
.zone-inner {
  display: flex;
  justify-content: center;
}
.zone-panel {
  max-width: 640px;
  text-align: center;
  padding: 48px 40px;
  background: rgba(246, 243, 236, 0.08);
}
.zone-panel h2,
.zone-panel .eyebrow {
  color: var(--horizon-day);
}
.zone-panel p {
  color: rgba(246, 243, 236, 0.85);
}
.zone-panel .link-arrow {
  color: var(--horizon-glow);
}

/* --- CTA final --- */
.cta-band {
  background: var(--ink);
  text-align: center;
}
.cta-inner h2 {
  color: var(--horizon-day);
}
.cta-inner p {
  color: rgba(246, 243, 236, 0.75);
  margin-bottom: 28px;
}

/* ===================================================================
   Footer
   =================================================================== */
.site-footer {
  background: var(--ink);
  color: rgba(246, 243, 236, 0.85);
  padding-top: 64px;
}
.site-footer .brand {
  color: var(--horizon-day);
  font-size: 1.2rem;
}
.site-footer .muted {
  color: rgba(246, 243, 236, 0.6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(246, 243, 236, 0.12);
}
.site-footer h3 {
  color: var(--horizon-day);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.site-footer nav ul li {
  margin-bottom: 10px;
}
.site-footer nav a {
  font-size: 0.92rem;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}
.site-footer nav a:hover {
  opacity: 1;
}
.footer-bottom {
  padding: 24px;
  font-size: 0.85rem;
  opacity: 0.6;
  text-align: center;
}

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
    z-index: 110;
  }
  .primary-nav {
    position: fixed;
    inset: 0;
    background: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .primary-nav ul {
    flex-direction: column;
    gap: 22px;
    text-align: center;
  }
  .primary-nav a:not(.btn) {
    font-size: 1.2rem;
    color: var(--horizon-day) !important;
  }
  .has-sub::after {
    display: none;
  }
  .caret {
    display: none;
  }
  .has-sub .sub-nav {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    margin-top: 12px;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    min-width: 0;
  }
  .sub-nav li {
    background: none;
    border: none;
    text-align: center;
    opacity: 1 !important;
    transform: none !important;
    transition-delay: 0s !important;
  }
  .sub-nav a {
    padding: 8px 16px;
    color: rgba(246, 243, 236, 0.75) !important;
    font-size: 1rem !important;
  }
  .sub-nav a::after {
    display: none;
  }
  .sub-nav a:hover,
  .sub-nav a:focus-visible {
    padding-left: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 72px 0;
  }
  .hero-panel {
    padding: 32px 26px;
    margin-inline: 4px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
