/* =========================
   P2O - Hybrid Theme (Dark shell + Light content)
   Mobile First
   ========================= */

:root {
  /* Light (content) */
  --bg: #f6fbff;
  --bg2: #ffffff;
  --text: #0b1220;
  --muted: rgba(11, 18, 32, 0.7);
  --border: rgba(11, 18, 32, 0.12);
  --shadow: 0 10px 30px rgba(11, 18, 32, 0.1);

  /* Accents */
  --accent: #1976ff; /* bleu plomberie */
  --accent2: #4cc2ff; /* bleu clair */
  --urgent: rgb(255, 100, 100);
  --dark-blue: #03045e;

  --radius: 18px;
  --radius-sm: 12px;

  --container: 1120px;
  --pad: 18px;

  --font:
    ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";

  /* Dark (shell) */
  --dark-bg: #0b1220;
  --dark-surface: rgba(11, 18, 32, 0.7);
  --dark-border: rgba(234, 240, 255, 0.14);
  --dark-text: #eaf0ff;
  --dark-muted: rgba(234, 240, 255, 0.72);
  --dark-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

img,
video {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
p {
  margin: 0 0 12px;
  color: var(--muted);
}
h1,
h2,
h3 {
  margin: 0 0 10px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--dark-blue);
}

h2 span {
  color: var(--urgent);
}

h1 {
  font-size: clamp(28px, 4vw, 48px);
}
h2 {
  font-size: clamp(22px, 3vw, 32px);
}
h3 {
  font-size: 18px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  padding: 10px 12px;
  background: #000;
  color: #fff;
  border-radius: 10px;
  z-index: 9999;
}

/* =========================
   Dark shell: Header / Footer
   ========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  /* background: var(--dark-surface); */
  background: #03045e;
  border-bottom: 1px solid var(--dark-border);
  color: var(--dark-text);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  position: relative;
}

.brand-mark {
  width: 100%;
  height: 71px;
  border-radius: 0;
  background: linear-gradient(
    135deg,
    rgba(25, 118, 255, 0.95),
    rgba(255, 91, 58, 0.8)
  );
  /*box-shadow: var(--dark-shadow);*/
  position: absolute;
  background-image: url(../assets/p2o-long-blue.png);
  background-size: contain;
  background-repeat: no-repeat;
}

.brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-title strong {
  font-size: 14px;
}
.brand-title span {
  font-size: 12px;
  color: #03045e;
}

.nav {
  display: none;
  gap: 14px;
  align-items: center;
}
.nav a {
  font-size: 14px;
  color: var(--dark-muted);
  padding: 8px 10px;
  border-radius: 10px;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--dark-text);
  background: rgba(234, 240, 255, 0.08);
}

.header-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  transition:
    transform 0.12s ease,
    background 0.12s ease,
    border 0.12s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0px);
}

.btn-accent {
  border: 1px solid rgba(25, 118, 255, 0.3);
  background: linear-gradient(
    135deg,
    rgba(25, 118, 255, 0.92),
    rgba(76, 194, 255, 0.7)
  );
  color: #fff;
}
.btn-urgent {
  border: 1px solid rgba(255, 91, 58, 0.35);
  background: linear-gradient(
    135deg,
    rgba(255, 91, 58, 0.95),
    rgba(255, 91, 58, 0.65)
  );
  color: #fff;
}

/* Dark header buttons refinement */
.site-header .btn {
  border: 1px solid var(--dark-border);
  background: rgba(234, 240, 255, 0.1);
  color: var(--dark-text);
}
.site-header .btn:hover {
  background: rgba(234, 240, 255, 0.14);
}
.site-header .btn-accent,
.site-header .btn-urgent {
  border-color: transparent;
}

.head-icon {
  height: 26px;
  width: 26px;
  display: flex;
}

/* Badges */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(11, 18, 32, 0.1);
  background: rgba(255, 255, 255, 0.75);
  color: rgba(11, 18, 32, 0.75);
  font-size: 12px;
}
.portrait img {
  width: auto;
  height: 200px;
  float: left;
  padding: 8px;
  margin: 0 10px 0 0;
}

/* =========================
   Hero (dark + video)
   ========================= */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  padding: 28px 0 22px;
  overflow: hidden;
  color: var(--dark-text);
}
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.02);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      900px 500px at 20% 20%,
      rgba(0, 0, 0, 0.12),
      transparent 55%
    ),
    linear-gradient(
      to top,
      rgba(11, 18, 32, 0.92),
      rgba(11, 18, 32, 0.35) 55%,
      rgba(11, 18, 32, 0.1)
    );
}
.hero .container {
  position: relative;
  z-index: 1;
}

.hero-panel {
  border: 1px solid var(--dark-border);
  background: rgba(11, 18, 32, 0.55);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  box-shadow: var(--dark-shadow);
  padding: 18px;
  max-width: 720px;
}
.hero-panel h1,
.hero-panel h2,
.hero-panel h3 {
  color: var(--bg);
}

.hero-sub {
  color: var(--dark-muted);
  font-size: 15px;
  margin-bottom: 14px;
}

.hero .badge {
  border: 1px solid var(--dark-border);
  background: rgba(234, 240, 255, 0.08);
  color: var(--dark-muted);
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.hero-actions .btn {
  width: 100%;
}

/* =========================
   Content sections (LIGHT by default)
   ========================= */
.section {
  padding: 34px 0;
}
.section-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.section-title p {
  color: var(--muted);
}

.section--tint {
  background: linear-gradient(
    135deg,
    rgba(25, 118, 255, 0.06),
    rgba(76, 194, 255, 0.04)
  );
  border-top: 1px solid rgba(11, 18, 32, 0.06);
  border-bottom: 1px solid rgba(11, 18, 32, 0.06);
}

/* Cards in light */
.grid {
  display: grid;
  gap: 12px;
}
.grid.cols-2 {
  grid-template-columns: 1fr;
}
.grid.cols-3 {
  grid-template-columns: 1fr;
}

.card {
  border: 1px solid var(--border);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.92),
    rgba(255, 255, 255, 0.78)
  );
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.card p {
  color: var(--muted);
  margin-bottom: 0;
}
.card h3 {
  margin-bottom: 6px;
}

.list {
  margin: 8px;
  padding-left: 18px;
  color: var(--muted);
}

.list li {
  margin: 2px;
  font-size: 0.8rem;
  font-weight: 600;
}

.kpi {
  display: grid;
  gap: 8px;
  align-items: start;
}
.kpi strong {
  font-size: 18px;
  color: var(--text);
}
.kpi span {
  font-size: 13px;
  color: var(--muted);
}

/* Small separators */
.hr {
  height: 1px;
  background: rgba(255, 255, 255, 0.8);
  border: 0;
  margin: 14px 0;
}
.small {
  font-size: 13px;
  color: var(--muted);
}

section.presta .container .card {
  background: var(--dark-blue);
}

section.presta .container .card h2 {
  color: var(--bg);
}

section.presta .container .card p,
section.presta .container .card li {
  color: var(--bg);
}

/* =========================
   Forms (light)
   ========================= */
.form {
  display: grid;
  gap: 12px;
}
.field {
  display: grid;
  gap: 6px;
}
label {
  font-size: 13px;
  color: rgba(11, 18, 32, 0.75);
}

input,
select,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(11, 18, 32, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  padding: 12px 12px;
  outline: none;
}
textarea {
  min-height: 120px;
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: rgba(11, 18, 32, 0.4);
}

.radio-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.85);
}
.radio-pill input {
  width: 16px;
  height: 16px;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.form-actions .btn {
  width: 100%;
}

.notice {
  border: 1px solid rgba(25, 118, 255, 0.25);
  background: linear-gradient(
    135deg,
    rgba(25, 118, 255, 0.1),
    rgba(76, 194, 255, 0.08)
  );
  border-radius: var(--radius);
  padding: 14px;
  color: rgba(11, 18, 32, 0.72);
  font-size: 13px;
}

/* =========================
   Footer (dark shell)
   ========================= */
.site-footer {
  padding: 26px 0 110px;
  border-top: 1px solid var(--dark-border);
  background: rgba(11, 18, 32, 0.85);
  color: var(--dark-text);
}
.site-footer p {
  color: var(--dark-muted);
}
.footer-grid {
  display: grid;
  gap: 14px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-links a {
  color: var(--dark-muted);
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--dark-border);
  background: rgba(234, 240, 255, 0.06);
}

/* =========================
   Sticky call (mobile)
   ========================= */
.sticky-call {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 1200;
  padding: 0 var(--pad);
}
.sticky-call .btn {
  width: 100%;
  border-radius: 18px;
  padding: 14px 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}
a br {
  display: none;
}
/* =========================
   Desktop enhancements
   ========================= */
@media (min-width: 900px) {
  .nav {
    display: flex;
  }

  a br {
    display: inline;
  }
  .hero {
    min-height: 88vh;
    padding: 40px 0 34px;
  }
  .hero-panel {
    padding: 22px;
  }
  .hero-actions {
    flex-direction: row;
  }
  .hero-actions .btn {
    width: auto;
    min-height: 60px;
    width: 30%;
  }

  .hero-actions.urgence .btn {
    width: auto;
    min-height: 60px;
    width: 50%;
  }
  .grid.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
  .grid.cols-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .form-actions {
    flex-direction: row;
  }
  .form-actions .btn {
    width: auto;
  }
  .sticky-call {
    display: none;
  }
  .site-footer {
    padding-bottom: 28px;
  }
}

/* =========================
   Service blocks (details)
   ========================= */

.service-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.service-card {
  border: 1px solid rgba(11, 18, 32, 0.12);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.94),
    rgba(255, 255, 255, 0.8)
  );
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.service-block h3 {
  color: var(--urgent);
}

.service-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.service-head h3 {
  margin: 0;
  font-size: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(25, 118, 255, 0.22);
  background: linear-gradient(
    135deg,
    rgba(25, 118, 255, 0.1),
    rgba(76, 194, 255, 0.08)
  );
  color: rgba(11, 18, 32, 0.78);
  white-space: nowrap;
}

.service-meta {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.service-meta .row {
  display: grid;
  gap: 6px;
}

.service-meta strong {
  font-size: 13px;
  color: rgba(11, 18, 32, 0.85);
}

.service-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

@media (min-width: 900px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
}
/* =========================
   KPI (marketing + icon slots)
   ========================= */

.kpi-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.kpi-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(11, 18, 32, 0.12);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.94),
    rgba(255, 255, 255, 0.8)
  );
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
  min-height: 96px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.kpi-card:hover,
.kpi-card:focus-visible,
.kpi-card.is-active {
  transform: translateY(-1px);
}

.kpi-card:focus {
  outline: none;
}

.kpi-icon {
  width: 44px;
  height: 44px;
  border: none;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.kpi-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.kpi-content {
  position: relative;
  min-height: 52px;
  display: flex;
  align-items: center;
}

.kpi-content h3,
.kpi-content p {
  margin: 0;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.kpi-content h3 {
  color: var(--urgent);
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.kpi-content h3 span {
  color: var(--dark-blue);
}

.kpi-content p {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
}

.kpi-card.is-active .kpi-content h3 {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}

.kpi-card.is-active .kpi-content p {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Desktop */
@media (min-width: 900px) {
  .kpi-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

/* =========================
   Home services layout: Plomberie full width, Assainissement below
   ========================= */

.home-services {
  display: grid;
  gap: 12px;
}

.home-services .card {
  width: 100%;
}

/* List columns for big lists */
.list-columns {
  /* mobile: 1 colonne */
  columns: 1;
  column-gap: 26px;
}

@media (min-width: 680px) {
  .list-columns {
    columns: 2;
  }
}
@media (min-width: 1100px) {
  .list-columns {
    columns: 3;
  }
}

/* Avoid ugly breaks inside columns */
.list-columns li {
  break-inside: avoid;
}

/* =========================
   Burger menu (mobile)
   ========================= */

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--dark-border);
  background: rgba(234, 240, 255, 0.1);
  color: var(--dark-text);
  cursor: pointer;
}

.nav-toggle:active {
  transform: translateY(0px);
}

.nav-mobile {
  display: none;
  border-top: 1px solid var(--dark-border);
  padding: 10px 0 14px;
}

.nav-mobile a {
  display: flex;
  padding: 12px 0;
  color: var(--dark-text);
  border-bottom: 1px solid rgba(234, 240, 255, 0.08);
}

.nav-mobile a span {
  color: var(--dark-muted);
  font-size: 13px;
  margin-left: auto;
}

/* visible when open */
.site-header.is-open .nav-mobile {
  display: block;
}

/* show burger on mobile, show desktop nav on large screens */
@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
  .nav-mobile {
    display: none !important;
  }
}

/* =========================
   Urgence landing
   ========================= */

.urgent-landing .container {
  max-width: 860px;
}

.urgent-card {
  text-align: center;
  padding: 24px 18px;
}

.urgent-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(
    135deg,
    rgba(255, 91, 58, 0.95),
    rgba(255, 91, 58, 0.7)
  );
}

.urgent-card h1 {
  margin-bottom: 10px;
}

.urgent-intro {
  max-width: 620px;
  margin: 0 auto 18px;
  font-size: 15px;
}

.urgent-main-cta {
  margin-top: 8px;
}

.btn-call-big {
  width: 100%;
  min-height: 88px;
  flex-direction: column;
  gap: 4px;
  border-radius: 18px;
  font-size: 15px;
  text-align: center;
}

.btn-call-big .call-label {
  font-size: 14px;
  font-weight: 700;
}

.btn-call-big strong {
  font-size: clamp(24px, 5vw, 34px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.urgent-secondary-cta {
  margin-top: 12px;
}

.btn-whatsapp {
  width: 100%;
  min-height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 18px;
  border: 1px solid rgba(37, 211, 102, 0.22);
  background: linear-gradient(
    135deg,
    rgba(37, 211, 102, 1),
    rgba(18, 140, 126, 1)
  );
  color: var(--bg);
}

.btn-whatsapp:hover {
  background: linear-gradient(
    135deg,
    rgba(37, 211, 102, 1),
    rgba(18, 140, 126, 1)
  );
}

.whatsapp-icon {
  width: auto;
  height: 30px;
  display: inline-flex;
  flex: 0 0 28px;
  color: #fff;
}

.contact-cta-actions .whatsapp-icon {
  width: auto;
  height: 30px;
  display: inline-flex;
  flex: 0 0 28px;
  color: #fff;
}

.whatsapp-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.whatsapp-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.15;
}

.whatsapp-text strong {
  font-size: 16px;
  color: var(--bg);
}

.whatsapp-text span {
  font-size: 13px;
  color: var(--bg2);
}

.urgent-points {
  margin-top: 18px;
  text-align: left;
  display: inline-block;
}

.contact-cta-actions .btn-urgent,
.contact-cta-actions .btn-whatsapp {
  min-height: 58px;
}

.contact-cta-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin: 10px 0;
}

@media (min-width: 900px) {
  .urgent-card {
    padding: 32px 28px;
  }

  .btn-call-big {
    min-height: 100px;
  }

  .btn-whatsapp {
    max-width: 420px;
  }

  .urgent-secondary-cta {
    display: flex;
    justify-content: center;
  }
}
