@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #bc10ef;
  --primary-dark: #9a0ccb;
  --secondary: #144089;
  --secondary-dark: #0e2f63;
  --ink: #201a2b;
  --ink-soft: #55506a;
  --paper: #ffffff;
  --paper-soft: #f7f4fb;
  --line: #e7e1f1;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(20, 64, 137, 0.18);
  --shadow-soft: 0 6px 18px -10px rgba(32, 26, 43, 0.15);
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--secondary);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--secondary);
  flex-shrink: 1;
}

.brand__mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand__mark img { width: 100%; height: 100%; object-fit: contain; }

.brand__name {
  font-size: clamp(0.95rem, 3.6vw, 1.3rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.main-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.96rem;
  white-space: nowrap;
}

.main-nav a:hover { color: var(--primary); text-decoration: none; }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: #fff !important;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.header-cta:hover { background: var(--primary-dark); text-decoration: none; }

/* Zones d'intervention dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.96rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -4px;
}
.nav-dropdown summary:hover { color: var(--primary); }
.nav-dropdown[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }

.nav-dropdown__panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  width: min(560px, 82vw);
  z-index: 50;
}
.nav-dropdown__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem 1.5rem;
}
.nav-dropdown__grid a {
  font-size: 0.9rem;
  padding: 0.25rem 0;
  white-space: normal;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: var(--secondary);
}

@media (max-width: 1100px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.5rem 1.25rem 1.25rem;
    display: none;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 0.65rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-dropdown { border-bottom: 1px solid var(--line); }
  .nav-dropdown summary { padding: 0.65rem 0; }
  .nav-dropdown__panel {
    position: static;
    transform: none;
    width: 100%;
    box-shadow: none;
    border: none;
    padding: 0 0 0.75rem;
  }
  .nav-dropdown__grid { grid-template-columns: 1fr 1fr; }
  /* Le CTA téléphone du header est masqué en mobile : la barre d'appel/e-mail fixe en bas d'écran le remplace. */
  .main-nav .header-cta { display: none; }
}

/* Hero */
.hero {
  background: var(--paper-soft);
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

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

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.button-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; }

.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: var(--secondary-dark); text-decoration: none; }

.btn-outline { background: transparent; border-color: var(--secondary); color: var(--secondary); }
.btn-outline:hover { background: var(--secondary); color: #fff; text-decoration: none; }

.hero-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.hero-card__stat {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}
.hero-card__stat strong {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  color: var(--primary);
}
.hero-card__stat span { color: var(--ink-soft); font-size: 0.92rem; }

.hero-card ul { margin: 0; padding-left: 1.2rem; color: var(--ink-soft); }
.hero-card li { margin-bottom: 0.4rem; }

/* Sections */
.section { padding: 4rem 0; }
.section--tint { background: var(--paper-soft); }
.section--dark {
  background: var(--secondary-dark);
  color: #fff;
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255,255,255,0.82); }

.section__head { max-width: 680px; margin-bottom: 2.5rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-soft);
}

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(188, 16, 239, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.card h3 { margin-bottom: 0.5rem; }
.card p { margin: 0; font-size: 0.95rem; }

.pill-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill {
  background: rgba(20, 64, 137, 0.08);
  color: var(--secondary);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.notice {
  border: 1px dashed var(--primary);
  background: rgba(188, 16, 239, 0.06);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: var(--secondary-dark);
}

/* Ville / city pages */
.ville-hero {
  background: var(--paper-soft);
  border-bottom: 1px solid var(--line);
  padding: 3.5rem 0;
}
.ville-hero .eyebrow { color: var(--secondary); }
.ville-body { max-width: 760px; }

.contact-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.contact-block a, .contact-block span {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  font-weight: 600;
  color: var(--secondary);
}
.contact-block svg { flex-shrink: 0; color: var(--primary); }
.contact-block a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

/* Form */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}
.form-row { margin-bottom: 1.1rem; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--secondary);
  margin-bottom: 0.4rem;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--paper-soft);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  background: #fff;
}
.form-row--file input { padding: 0.55rem 0.9rem; background: #fff; }

.hp-field {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-success {
  background: rgba(20, 64, 137, 0.08);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  color: var(--secondary-dark);
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--secondary-dark);
  color: rgba(255,255,255,0.85);
  padding: 3.5rem 0 1.75rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer h4 {
  font-family: var(--font-serif);
  color: #fff;
  font-size: 1rem;
  margin: 0 0 1rem;
}
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 1.5rem; }
.footer-links li { margin-bottom: 0.55rem; break-inside: avoid; font-size: 0.9rem; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.footer-bottom a { color: rgba(255,255,255,0.6); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}
.gallery-grid--small { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.1rem; }
.gallery-grid--small img { aspect-ratio: 1 / 1; }

.hero-photo {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  margin-bottom: 1.25rem;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Avis clients (carrousel défilant) */
.avis { padding-bottom: 4rem; }
.avis-track-wrap {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.avis-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  padding: 0 1.5rem;
  animation: avis-scroll 50s linear infinite;
}
.avis-track:hover { animation-play-state: paused; }
@keyframes avis-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.avis-card {
  flex: 0 0 320px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}
.avis-card__stars { color: var(--primary); display: flex; gap: 2px; margin-bottom: 0.85rem; }
.avis-card p {
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.avis-card__source { font-size: 0.78rem; font-weight: 700; color: var(--ink-soft); letter-spacing: 0.02em; }

@media (prefers-reduced-motion: reduce) {
  .avis-track { animation: none; overflow-x: auto; }
}

/* Barre d'appel/e-mail fixe (mobile) */
.sticky-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -14px rgba(20, 64, 137, 0.3);
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
}
.sticky-cta__row { display: flex; gap: 0.6rem; max-width: 1120px; margin: 0 auto; }
.sticky-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  color: #fff !important;
}
.sticky-cta a svg { flex-shrink: 0; }
.sticky-cta a.call { background: var(--primary); }
.sticky-cta a.mail { background: var(--secondary); }

@media (max-width: 380px) {
  .sticky-cta a { font-size: 0.85rem; padding: 0.75rem 0.5rem; gap: 0.3rem; }
}

@media (max-width: 760px) {
  .sticky-cta { display: block; }
  /* La réserve doit couvrir la hauteur réelle de la barre, y compris la zone de sécurité iOS. */
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}

.legal h2 { margin-top: 2rem; }
.legal p, .legal li { color: var(--ink-soft); }
