/* Atelier Plomberie Rivage — Démo Agence IA Web
   Graphite · cuivre · teal sobre — confiance / efficacité */

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

html {
  scroll-behavior: smooth;
}

:root {
  --ink: #1a2332;
  --ink-soft: #243044;
  --slate: #5c6b7a;
  --sand: #f4f6f8;
  --sand-deep: #e8ecf0;
  --copper: #c4784a;
  --copper-deep: #a05e35;
  --teal: #2a6f6a;
  --teal-deep: #1f5551;
  --surface: #ffffff;
  --border: #d5dce3;
  --text: #1a2332;
  --text-body: #3d4a57;
  --text-muted: #6a7684;
  --radius: 8px;
  --shadow: 0 12px 40px rgba(26, 35, 50, 0.1);
  --container: 1080px;
  --transition: 0.25s ease;
  --font-display: "Source Serif 4", "Georgia", serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background:
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(42, 111, 106, 0.07), transparent 50%),
    linear-gradient(180deg, #fafbfc 0%, var(--sand) 50%, var(--sand-deep) 100%);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

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

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

ul {
  list-style: none;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 4px;
  z-index: 10000;
}
.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
summary:focus:not(:focus-visible) {
  outline: none;
}

.demo-banner {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  font-size: 0.85rem;
  padding: 10px 16px;
}
.demo-banner a {
  color: #f0c4a8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  white-space: nowrap;
}
.logo span {
  color: var(--teal);
  font-weight: 600;
}

.menu {
  display: flex;
  gap: 6px 18px;
  flex-wrap: wrap;
  margin-left: auto;
  align-items: center;
}
.menu a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--slate);
  padding: 6px 2px;
}
.menu a:hover,
.menu a[aria-current="page"] {
  color: var(--teal-deep);
}

.header-cta {
  display: flex;
  gap: 8px;
  margin-left: 8px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 12px;
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  cursor: pointer;
  min-height: 44px;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--copper);
  color: #fff;
}
.btn-primary:hover {
  background: var(--copper-deep);
}
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover {
  background: var(--ink-soft);
}
.btn-outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}
.btn-ghost {
  border-color: var(--border);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
}
.btn-call {
  background: var(--teal);
  color: #fff;
}
.btn-call:hover {
  background: var(--teal-deep);
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 16px 0 0;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  list-style: none;
}
.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 10px;
  color: var(--border);
}
.breadcrumb a {
  color: var(--teal-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.breadcrumb [aria-current="page"] {
  color: var(--text-body);
}

.geo-fact {
  max-width: 68ch;
  margin: 0 0 8px;
}
.related-cluster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
}
.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

main section {
  padding: clamp(40px, 7vw, 72px) 0;
}

.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: grid;
  align-items: end;
  color: #fff;
  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(180deg, rgba(26, 35, 50, 0.35) 0%, rgba(26, 35, 50, 0.82) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 80px) 20px;
  width: 100%;
}
.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin-bottom: 10px;
}
.hero-brand span {
  color: #f0c4a8;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.15;
  font-weight: 700;
  max-width: 18ch;
  margin-bottom: 14px;
  color: #fff;
}
.hero .lead {
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 22px;
  font-size: 1.05rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-hero {
  background: var(--ink);
  color: #fff;
  padding: clamp(40px, 6vw, 64px) 0;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  max-width: 22ch;
  margin-bottom: 12px;
  color: #fff;
}
.page-hero .eyebrow {
  color: #f0c4a8;
}
.page-hero .lead {
  color: rgba(255, 255, 255, 0.82);
  max-width: 52ch;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.25;
}
h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  margin-bottom: 12px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 10px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 32px;
}

.cite-ready {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 68ch;
}

.answer-block {
  max-width: 720px;
  padding: 24px 26px;
  background: var(--surface);
  border-left: 3px solid var(--copper);
  box-shadow: var(--shadow);
  margin: 14px 0 18px;
}

.note-fictive {
  font-size: 0.9rem;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.7);
}

/* Champs à personnaliser — discrets, réservés à la fiche coordonnées */
.ph {
  color: var(--text-muted);
  font-style: italic;
  font-weight: 500;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 1px;
}

.entity-card {
  background: var(--surface);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--teal);
}
.entity-meta {
  display: grid;
  grid-template-columns: minmax(120px, 170px) 1fr;
  gap: 10px 20px;
  margin-top: 22px;
  font-size: 0.95rem;
}
.entity-meta dt {
  font-weight: 700;
  color: var(--slate);
}
.entity-meta dd {
  color: var(--text);
}

.grid-2,
.grid-3,
.grid-2-equal {
  display: grid;
  gap: 28px;
}
.grid-2,
.grid-2-equal {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.grid-2-equal {
  align-items: stretch;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.card-body a.more {
  color: var(--teal-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-top: auto;
}

.prose {
  max-width: 68ch;
}
.prose a,
.geo-qa a,
.section-head a {
  color: var(--teal-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose h2 {
  margin-top: 1.8rem;
}
.prose ul,
.prose-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 12px 0 16px;
}
.prose li,
.prose-list li {
  margin-bottom: 8px;
}

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.media-frame img {
  width: 100%;
}
.photo-credit {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 8px 4px 0;
}

.split-section {
  background: rgba(255, 255, 255, 0.55);
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 10px;
}
.faq-list summary {
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.faq-list details p {
  margin-top: 10px;
  color: var(--text-body);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.cta-band {
  background: var(--ink);
  color: #fff;
  text-align: center;
}
.cta-band h2 {
  color: #fff;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 48ch;
  margin: 0 auto 20px;
}
.cta-band .eyebrow {
  color: #f0c4a8;
}

.sticky-call {
  display: none;
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 48px 0 24px;
  font-size: 0.92rem;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.site-footer .logo {
  color: #fff;
  display: inline-block;
  margin-bottom: 12px;
}
.site-footer a:hover {
  color: #f0c4a8;
}
.footer-label {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 700;
}
.site-footer ul li {
  margin-bottom: 8px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.form-card {
  background: var(--surface);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--copper);
  border-radius: var(--radius);
}
.form-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}
.form-card label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 6px;
  margin-top: 14px;
}
.form-card input,
.form-card textarea,
.form-card select {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font: inherit;
  background: #fff;
}
.form-card textarea {
  min-height: 140px;
  resize: vertical;
}
.form-status {
  margin-top: 14px;
  font-size: 0.9rem;
}
.form-status.ok {
  color: var(--teal-deep);
}
.form-status.err {
  color: #b42318;
}

.geo-q {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.topic-list {
  display: grid;
  gap: 12px;
}
.topic-list a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-weight: 700;
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.topic-list a:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow);
}
.topic-list a span {
  display: block;
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

@media (max-width: 920px) {
  .menu-toggle {
    display: flex;
  }
  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 20px;
    margin: 0;
  }
  .menu.open {
    display: flex;
  }
  .header-cta {
    display: none;
  }
  .grid-2,
  .grid-2-equal,
  .grid-3,
  .footer-grid,
  .contact-layout,
  .steps,
  .related-cluster {
    grid-template-columns: 1fr;
  }
  .entity-meta {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .sticky-call {
    display: flex;
    position: fixed;
    bottom: 16px;
    right: 16px;
    left: 16px;
    z-index: 90;
    justify-content: center;
    gap: 10px;
  }
  .sticky-call .btn {
    flex: 1;
    box-shadow: var(--shadow);
  }
  body {
    padding-bottom: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
