/* ==========================================================
   KAZAMOI — CSS forcé / compatible
   ========================================================== */

:root {
  --kz-turquoise: #3EA49D;
  --kz-green-dark: #1E3D36;
  --kz-green-moss: #3C6A4F;
  --kz-anthracite: #2B2B2B;
  --kz-grey: #F5F5F5;
  --kz-white: #FFFFFF;
  --kz-border: rgba(30, 61, 54, .14);
  --kz-shadow: 0 18px 42px rgba(30, 61, 54, .08);
  --kz-shadow-soft: 0 10px 28px rgba(30, 61, 54, .06);
  --kz-success-bg: rgba(62, 164, 157, .15);
  --kz-warning-bg: rgba(255, 193, 7, .20);
  --kz-danger-bg: rgba(180, 35, 24, .11);
}

body.page-template-page-bascule-kel360,
body.page-template-page-entree-locataire,
body.page-id-bascule-kel360,
body.page-id-entree-locataire {
  background: #F5F5F5;
}

input,
select,
textarea,
button {
  font: inherit;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="tel"],
input[type="url"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--kz-border);
  border-radius: 14px;
  background: var(--kz-white);
  color: var(--kz-green-dark);
  padding: 12px 14px;
  outline: none;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--kz-turquoise);
  box-shadow: 0 0 0 4px rgba(62, 164, 157, .14);
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--kz-turquoise);
}

/* ==========================================================
   KAZAMOI — Bascule Kel 360
   Compatible classes multiples + body template
   ========================================================== */

body.page-template-page-bascule-kel360 main,
.bascule-kel360-page,
.kz-kel360-page,
.kel360-page,
.kz-bascule-kel360-page,
.kz-bascule-page {
  background:
    radial-gradient(circle at top right, rgba(62, 164, 157, .16), transparent 34%),
    linear-gradient(180deg, #FFFFFF 0%, #F5F5F5 100%);
  color: var(--kz-green-dark);
  min-height: 100vh;
}

.bascule-kel360-page,
.kz-kel360-page,
.kel360-page,
.kz-bascule-kel360-page,
.kz-bascule-page,
body.page-template-page-bascule-kel360 main {
  padding: clamp(28px, 4vw, 56px) 18px;
}

.bascule-kel360-shell,
.kz-kel360-shell,
.kel360-shell,
.kz-bascule-shell,
body.page-template-page-bascule-kel360 main > section,
body.page-template-page-bascule-kel360 main > .entry-content {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.bascule-kel360-hero,
.kz-kel360-hero,
.kel360-hero,
.kz-bascule-hero,
body.page-template-page-bascule-kel360 .entry-header {
  background: linear-gradient(135deg, var(--kz-green-dark), var(--kz-green-moss));
  color: var(--kz-white);
  border-radius: 28px;
  padding: clamp(30px, 5vw, 54px);
  box-shadow: var(--kz-shadow);
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}

.bascule-kel360-hero::after,
.kz-kel360-hero::after,
.kel360-hero::after,
.kz-bascule-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 330px;
  height: 330px;
  border-radius: 999px;
  background: rgba(62, 164, 157, .24);
}

.bascule-kel360-hero__eyebrow,
.kz-kel360-hero__eyebrow,
.kel360-hero__eyebrow,
.kz-bascule-hero__eyebrow {
  margin: 0 0 10px;
  color: #BFE9E5;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
}

.bascule-kel360-hero__title,
.kz-kel360-hero__title,
.kel360-hero__title,
.kz-bascule-hero__title,
body.page-template-page-bascule-kel360 .entry-title {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -.04em;
  color: inherit;
}

.bascule-kel360-hero__text,
.kz-kel360-hero__text,
.kel360-hero__text,
.kz-bascule-hero__text {
  margin: 16px 0 0;
  max-width: 800px;
  color: rgba(255, 255, 255, .88);
  line-height: 1.65;
  font-size: clamp(16px, 2vw, 19px);
}

.bascule-kel360-layout,
.kz-kel360-layout,
.kel360-layout,
.kz-bascule-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 22px;
  align-items: start;
}

.bascule-kel360-card,
.kz-kel360-card,
.kel360-card,
.kz-bascule-card,
body.page-template-page-bascule-kel360 .entry-content > .wp-block-group,
body.page-template-page-bascule-kel360 article {
  background: var(--kz-white);
  border: 1px solid var(--kz-border);
  border-radius: 22px;
  box-shadow: var(--kz-shadow-soft);
  padding: clamp(20px, 3vw, 30px);
  margin-bottom: 18px;
}

.bascule-kel360-card__title,
.kz-kel360-card__title,
.kel360-card__title,
.kz-bascule-card__title,
body.page-template-page-bascule-kel360 h2 {
  margin-top: 0;
  color: var(--kz-green-dark);
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -.025em;
}

.bascule-kel360-alert,
.bascule-kel360-state,
.kz-kel360-alert,
.kz-kel360-state,
.kel360-alert,
.kel360-state {
  border-radius: 22px;
  padding: 20px 22px;
  margin: 0 0 20px;
  border: 1px solid rgba(60, 106, 79, .28);
  background: rgba(60, 106, 79, .12);
  color: var(--kz-green-dark);
}

.bascule-kel360-alert--success,
.bascule-kel360-state--success,
.kz-kel360-alert--success,
.kz-kel360-state--success {
  border-color: rgba(62, 164, 157, .38);
  background: var(--kz-success-bg);
}

.bascule-kel360-alert--warning,
.bascule-kel360-state--warning,
.kz-kel360-alert--warning,
.kz-kel360-state--warning {
  border-color: rgba(255, 193, 7, .42);
  background: var(--kz-warning-bg);
  color: #6B4B00;
}

.bascule-kel360-alert--danger,
.bascule-kel360-state--danger,
.kz-kel360-alert--danger,
.kz-kel360-state--danger {
  border-color: rgba(180, 35, 24, .28);
  background: var(--kz-danger-bg);
  color: #7A1B13;
}

.bascule-kel360-badge,
.kz-kel360-badge,
.kel360-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .035em;
  background: rgba(60, 106, 79, .12);
  color: var(--kz-green-dark);
}

.bascule-kel360-checklist,
.kz-kel360-checklist,
.kel360-checklist {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bascule-kel360-check,
.kz-kel360-check,
.kel360-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--kz-border);
  border-radius: 16px;
  background: var(--kz-white);
  padding: 13px 14px;
  line-height: 1.45;
  font-weight: 750;
}

.bascule-kel360-actions,
.kz-kel360-actions,
.kel360-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.bascule-kel360-button,
.kz-kel360-button,
.kel360-button,
body.page-template-page-bascule-kel360 .button,
body.page-template-page-bascule-kel360 button,
body.page-template-page-bascule-kel360 input[type="submit"] {
  appearance: none;
  border: 1px solid var(--kz-green-dark);
  border-radius: 999px;
  background: var(--kz-green-dark);
  color: var(--kz-white);
  padding: 13px 18px;
  min-height: 48px;
  font-weight: 900;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bascule-kel360-summary,
.kz-kel360-summary,
.kel360-summary {
  display: grid;
  gap: 0;
  margin: 0;
}

.bascule-kel360-summary__item,
.kz-kel360-summary__item,
.kel360-summary__item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(30, 61, 54, .10);
}

.bascule-kel360-summary__item dt,
.kz-kel360-summary__item dt,
.kel360-summary__item dt {
  font-weight: 900;
}

.bascule-kel360-summary__item dd,
.kz-kel360-summary__item dd,
.kel360-summary__item dd {
  margin: 0;
  word-break: break-word;
}

.bascule-kel360-export,
.kz-kel360-export,
.kel360-export,
body.page-template-page-bascule-kel360 pre {
  border: 1px solid var(--kz-border);
  border-radius: 18px;
  background: #102720;
  color: #EAF7F5;
  padding: 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.bascule-kel360-table,
.kz-kel360-table,
.kel360-table,
body.page-template-page-bascule-kel360 table {
  width: 100%;
  border-collapse: collapse;
  background: var(--kz-white);
  border: 1px solid var(--kz-border);
  border-radius: 18px;
  overflow: hidden;
}

.bascule-kel360-table th,
.bascule-kel360-table td,
.kz-kel360-table th,
.kz-kel360-table td,
.kel360-table th,
.kel360-table td,
body.page-template-page-bascule-kel360 th,
body.page-template-page-bascule-kel360 td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(30, 61, 54, .10);
  text-align: left;
  vertical-align: top;
}

.bascule-kel360-table th,
.kz-kel360-table th,
.kel360-table th,
body.page-template-page-bascule-kel360 th {
  background: var(--kz-green-dark);
  color: var(--kz-white);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

@media (max-width: 980px) {
  .bascule-kel360-layout,
  .kz-kel360-layout,
  .kel360-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .bascule-kel360-page,
  .kz-kel360-page,
  .kel360-page,
  .kz-bascule-kel360-page,
  .kz-bascule-page,
  body.page-template-page-bascule-kel360 main {
    padding: 22px 12px;
  }

  .bascule-kel360-summary__item,
  .kz-kel360-summary__item,
  .kel360-summary__item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .bascule-kel360-actions,
  .kz-kel360-actions,
  .kel360-actions {
    display: grid;
  }

  .bascule-kel360-button,
  .kz-kel360-button,
  .kel360-button {
    width: 100%;
  }
}
