/* =========================================================
   Aude Plomberie — feuille de style principale
   Palette fournie par la cliente :
   - Fond crème chaleureux
   - Bleu pétrole   #6257e3  (accent secondaire)
   - Jaune          #fdcf00  (accent / survol)
   - Rouge          #ff2828  (urgence uniquement)
   - Cuivre         #f28424  (accent principal / boutons)
   - Marron         #d96c32  (accent tertiaire)
   - Écriture       #252a2c
   ========================================================= */

:root {
  --color-bg: #FBF3E7;
  --color-bg-alt: #F4E9D8;
  --color-surface: #FFFFFF;
  --color-text: #252a2c;
  --color-text-soft: #55504c;

  --color-indigo: #6257e3;
  --color-indigo-dark: #4c42c2;
  --color-yellow: #fdcf00;
  --color-red: #e84343;
  --color-red-dark: #c93636;
  --color-copper: #f28424;
  --color-copper-dark: #d66d10;
  --color-brown: #d96c32;

  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 28px;

  --shadow-soft: 0 10px 30px rgba(37, 42, 44, 0.08);
  --shadow-card: 0 4px 16px rgba(37, 42, 44, 0.10);

  --font-heading: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --max-width: 1160px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

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

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

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

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--color-copper);
  color: #fff;
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { background: var(--color-copper-dark); }

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

.btn-urgence {
  background: var(--color-red);
  color: #fff;
  box-shadow: 0 6px 18px rgba(232, 67, 67, 0.35);
}
.btn-urgence:hover { background: var(--color-red-dark); }

.btn-light {
  background: #fff;
  color: var(--color-text);
}
.btn-light:hover { background: var(--color-bg-alt); }

.btn-block { width: 100%; justify-content: center; }

/* ---------- En-tête ---------- */
.site-banner {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.site-banner img {
  width: 100%;
  height: clamp(150px, 26vw, 340px);
  object-fit: cover;
  object-position: center;
  display: block;
}

header.site-header {
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(37,42,44,0.08);
}
header.site-header .container {
  padding-left: 36px;
  padding-right: 36px;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  margin-right: 8px;
}
.logo:hover { text-decoration: none; }
.logo img {
  height: 64px;
  width: auto;
  display: block;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav.main-nav a {
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.98rem;
}
nav.main-nav > ul {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0; padding: 6px;
  align-items: center;
  background: var(--color-bg-alt);
  border-radius: 999px;
}
nav.main-nav > ul > li > a {
  padding: 10px 18px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
nav.main-nav > ul > li > a:hover,
nav.main-nav > ul > li > a[aria-current="page"] {
  background: var(--color-surface);
  color: var(--color-copper-dark);
  text-decoration: none;
  box-shadow: var(--shadow-card);
}
.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-soft);
  padding: 10px;
  min-width: 240px;
  list-style: none;
  margin: 8px 0 0;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 500;
}
.dropdown li a:hover { background: var(--color-bg-alt); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  header.site-header .container { padding-left: 20px; padding-right: 20px; }
  .logo img { height: 46px; }
  .nav-toggle {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border-radius: 8px;
    border: 1px solid var(--color-text);
    background: transparent;
  }
  nav.main-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--color-bg);
    border-bottom: 1px solid rgba(37,42,44,0.08);
    box-shadow: var(--shadow-soft);
  }
  nav.main-nav.open { display: block; }
  nav.main-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    background: none;
    border-radius: 0;
  }
  nav.main-nav > ul > li { border-top: 1px solid rgba(37,42,44,0.06); }
  nav.main-nav > ul > li > a {
    display: block;
    padding: 14px 4px;
    border-radius: 0;
  }
  nav.main-nav > ul > li > a:hover,
  nav.main-nav > ul > li > a[aria-current="page"] {
    background: none;
    box-shadow: none;
  }
  .dropdown { position: static; box-shadow: none; display: block; margin: 0 0 8px; padding-left: 8px; }
  .has-dropdown .dropdown { display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .header-actions .btn-secondary { display: none; }
}

/* ---------- Bandeau urgence ---------- */
.urgence-banner {
  background: linear-gradient(90deg, var(--color-brown), var(--color-copper));
  color: #fff;
  padding: 14px 0;
}
.urgence-banner .container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
}
.urgence-banner p { margin: 0; font-weight: 600; }
.urgence-banner a.btn-light { white-space: nowrap; }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 56px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-tag {
  display: inline-block;
  background: var(--color-yellow);
  color: var(--color-text);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--color-text-soft);
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}
.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-stats .stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  color: var(--color-copper-dark);
}
.hero-stats .stat span {
  font-size: 0.85rem;
  color: var(--color-text-soft);
}
.presentation-card {
  background: var(--color-surface);
  border-radius: var(--radius-l);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  display: flex;
  gap: 20px;
  align-items: center;
}
.presentation-card .presentation-photo {
  flex: 0 0 clamp(140px, 22vw, 192px);
  width: clamp(140px, 22vw, 192px);
  height: clamp(140px, 22vw, 192px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.presentation-card .presentation-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.presentation-card .presentation-text h3 {
  margin-bottom: 6px;
}
.presentation-card .presentation-text p {
  margin: 0 0 12px;
  color: var(--color-text-soft);
  font-size: 0.95rem;
}
.presentation-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.presentation-badges span {
  background: var(--color-bg-alt);
  color: var(--color-copper-dark);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 5px 12px;
  border-radius: 999px;
}

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .presentation-card { order: -1; }
}
@media (max-width: 520px) {
  .presentation-card { flex-direction: column; text-align: center; }
  .presentation-badges { justify-content: center; }
}

/* ---------- Sections génériques ---------- */
section { padding: 56px 0; }
.section-intro { max-width: 62ch; margin: 0 0 36px; }
.section-intro .eyebrow {
  color: var(--color-copper-dark);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  display: block;
}
.bg-alt { background: var(--color-bg-alt); }
.bg-dark { background: var(--color-text); color: #fff; }
.bg-dark a { color: var(--color-yellow); }
.bg-dark .section-intro .eyebrow { color: var(--color-yellow); }

/* ---------- Cartes services (accueil) ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .service-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--color-surface);
  border-radius: var(--radius-m);
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 5px solid var(--color-copper);
}
.service-card.cat-sanitaire { border-top-color: var(--color-indigo); }
.service-card.cat-chauffage { border-top-color: var(--color-copper); }
.service-card.cat-eau { border-top-color: var(--color-brown); }

.service-card .icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-bg-alt);
  color: var(--color-text);
}
.service-card ul {
  margin: 4px 0 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--color-text-soft);
  font-size: 0.95rem;
}
.service-card ul li::before {
  content: "✓";
  color: var(--color-copper-dark);
  font-weight: 700;
  margin-right: 8px;
}
.service-card .card-link {
  margin-top: auto;
  font-weight: 700;
  color: var(--color-text);
}
.service-card .card-link::after { content: " →"; }

/* ---------- Image pleine largeur (entre services et spécialité) ---------- */
.showcase-image {
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.showcase-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Bloc mise en avant traitement de l'eau ---------- */
.feature-block {
  background: linear-gradient(135deg, var(--color-brown), var(--color-copper));
  border-radius: var(--radius-l);
  color: #fff;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-soft);
}
.feature-block .icon-xl {
  width: 84px; height: 84px;
  border-radius: 20px;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-block ul {
  list-style: none;
  padding: 0; margin: 18px 0 0;
  display: flex; flex-direction: column; gap: 10px;
}
.feature-block ul li::before { content: "💧"; margin-right: 8px; }
.feature-block .feature-actions {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px;
}
.feature-aside {
  background: rgba(255,255,255,0.14);
  border-radius: var(--radius-m);
  padding: 24px;
}
.feature-aside h3 { color: #fff; }
@media (max-width: 860px) {
  .feature-block { grid-template-columns: 1fr; padding: 32px 24px; }
}

/* ---------- Zone d'intervention ---------- */
.zone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.zone-list {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 0; margin: 18px 0 0; list-style: none;
}
.zone-list li {
  background: var(--color-surface);
  border: 1px solid rgba(37,42,44,0.1);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}
@media (max-width: 860px) { .zone-grid { grid-template-columns: 1fr; } }

/* ---------- Avis ---------- */
.avis-empty {
  background: var(--color-surface);
  border: 2px dashed rgba(37,42,44,0.2);
  border-radius: var(--radius-m);
  padding: 40px;
  text-align: center;
  color: var(--color-text-soft);
}
.avis-empty .stars { font-size: 1.4rem; color: var(--color-yellow); margin-bottom: 10px; }

.avis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .avis-grid { grid-template-columns: 1fr; } }
.avis-card {
  background: var(--color-surface);
  border-radius: var(--radius-m);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.avis-card .stars { color: var(--color-yellow); margin-bottom: 10px; }
.avis-card footer { margin-top: 14px; font-weight: 700; font-size: 0.9rem; }

/* ---------- Page service détail ---------- */
.breadcrumb {
  font-size: 0.88rem;
  color: var(--color-text-soft);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--color-text-soft); }

.service-hero {
  padding: 44px 0 12px;
}
.service-hero .icon-xl {
  width: 72px; height: 72px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  margin-bottom: 18px;
}
.service-hero-image {
  width: 100%;
  height: clamp(160px, 30vw, 320px);
  object-fit: cover;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-soft);
  margin: 20px 0 8px;
}
.article-featured-image {
  width: 100%;
  height: clamp(180px, 34vw, 380px);
  object-fit: cover;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-soft);
  margin: 20px 0 0;
}

.subservice-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 28px;
}
@media (max-width: 700px) { .subservice-list { grid-template-columns: 1fr; } }
.subservice-item {
  background: var(--color-surface);
  border-radius: var(--radius-m);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.cta-strip {
  background: var(--color-text);
  color: #fff;
  border-radius: var(--radius-l);
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cta-strip h3 { color: #fff; margin: 0; }
.cta-strip p { margin: 4px 0 0; color: rgba(255,255,255,0.75); }

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 760px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  background: var(--color-surface);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.blog-card .blog-card-thumb {
  height: 160px;
  background: var(--color-bg-alt);
  overflow: hidden;
}
.blog-card .blog-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.blog-card .blog-card-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card time { font-size: 0.82rem; color: var(--color-text-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.blog-card .card-link { margin-top: auto; font-weight: 700; }
.blog-card .card-link::after { content: " →"; }
.blog-card-coming {
  border: 2px dashed rgba(37,42,44,0.2);
  border-radius: var(--radius-m);
  padding: 30px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: var(--color-text-soft);
}

article.blog-article { max-width: 74ch; margin: 0 auto; }
article.blog-article h2 { margin-top: 1.4em; }
article.blog-article ul, article.blog-article ol { padding-left: 1.2em; }
article.blog-article blockquote {
  border-left: 4px solid var(--color-copper);
  margin: 1.5em 0;
  padding: 4px 0 4px 20px;
  color: var(--color-text-soft);
  font-style: italic;
}
.article-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  color: var(--color-text-soft);
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.article-cta {
  margin-top: 40px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-m);
  padding: 28px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.info-card {
  background: var(--color-surface);
  border-radius: var(--radius-m);
  padding: 26px;
  box-shadow: var(--shadow-card);
  margin-bottom: 18px;
}
.info-card h3 { display: flex; align-items: center; gap: 10px; }
table.hours { width: 100%; border-collapse: collapse; }
table.hours td { padding: 6px 0; border-bottom: 1px solid rgba(37,42,44,0.08); }
table.hours td:last-child { text-align: right; font-weight: 600; }

form.contact-form { display: flex; flex-direction: column; gap: 16px; }
form.contact-form label { font-weight: 600; font-size: 0.92rem; }
form.contact-form input,
form.contact-form select,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-s);
  border: 1px solid rgba(37,42,44,0.2);
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
}
form.contact-form textarea { resize: vertical; min-height: 120px; }
form.contact-form .field { display: flex; flex-direction: column; gap: 6px; }
.form-note { font-size: 0.82rem; color: var(--color-text-soft); }

.map-embed {
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 0;
  width: 100%;
  height: 280px;
}

/* ---------- À propos placeholder ---------- */
.placeholder-box {
  border: 2px dashed rgba(37,42,44,0.25);
  border-radius: var(--radius-m);
  padding: 28px;
  color: var(--color-text-soft);
  background: rgba(255,255,255,0.5);
}

/* ---------- À propos — portrait + sections ---------- */
.eyebrow {
  color: var(--color-copper-dark);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  display: block;
}
.about-portrait {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-card);
  background: var(--color-surface);
}
.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.3);
}
.about-block {
  margin-bottom: 44px;
}
.about-block:last-of-type {
  margin-bottom: 0;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
footer.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
footer.site-footer a { color: rgba(255,255,255,0.75); }
footer.site-footer a:hover { color: var(--color-yellow); }
.social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-links a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85);
  transition: background 0.15s ease, color 0.15s ease;
}
.social-links a:hover { background: var(--color-yellow); color: var(--color-text); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
