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

body {
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(176, 112, 45, 0.12), transparent 26%),
    radial-gradient(circle at 85% 15%, rgba(176, 112, 45, 0.08), transparent 22%),
    #fffaf3;
  color: #24180f;
  line-height: 1.6;
}

a { color: inherit; }

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 7%;
  background: rgba(255, 250, 243, 0.92);
  border-bottom: 1px solid #f0dfcc;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 950;
  color: #2a160a;
  font-size: 34px;
  letter-spacing: -1.5px;
}

.paw-mark {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-block;
  transform: rotate(-8deg);
}

.paw-mark::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 18px;
  width: 22px;
  height: 18px;
  background: linear-gradient(135deg, #6b3f1d, #b17334);
  border-radius: 54% 46% 48% 52%;
}

.paw-mark span {
  position: absolute;
  width: 10px;
  height: 15px;
  background: linear-gradient(135deg, #6b3f1d, #b17334);
  border-radius: 999px;
}

.paw-mark span:nth-child(1) { left: 3px; top: 11px; transform: rotate(-28deg); }
.paw-mark span:nth-child(2) { left: 13px; top: 2px; transform: rotate(-8deg); }
.paw-mark span:nth-child(3) { left: 25px; top: 3px; transform: rotate(12deg); }
.paw-mark span:nth-child(4) { left: 33px; top: 13px; transform: rotate(30deg); }

.nav nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav nav a,
.link-button {
  text-decoration: none;
  font-weight: 700;
  color: #49311d;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.language-menu {
  position: relative;
}

.language-icon {
  width: 42px;
  height: 42px;
  border-radius: 90%;
  border: 1px solid #e4d2bc;
  background: white;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;
  transform: translateY(1px);
  line-height: 1;

  padding: 0;
  
cursor: pointer;
}

.language-options {
  display: none;
  position: absolute;
  top: 50px;
  right: 0;
  min-width: 150px;
  background: white;
  border: 1px solid #e4d2bc;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(80, 45, 18, 0.16);
  padding: 8px;
  z-index: 30;
}

.language-options.open {
  display: grid;
  gap: 6px;
}

.language-options button {
  background: transparent;
  color: #49311d;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}

.language-options button:hover {
  background: #fff3e6;
}

html[dir="rtl"] .language-options {
  right: auto;
  left: 0;
}

html[dir="rtl"] .language-options button {
  text-align: right;
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  padding: 90px 7%;
  align-items: center;
}

.tag {
  color: #995b20;
  font-weight: 800;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.04;
  margin-bottom: 22px;
  letter-spacing: -2px;
}

h2 {
  font-size: 32px;
  margin-bottom: 18px;
}

h3 { margin-bottom: 10px; }

.subtitle {
  font-size: 19px;
  color: #66584e;
  max-width: 760px;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn-primary,
.btn-secondary,
button {
  padding: 13px 18px;
  border-radius: 999px;
  border: 0;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  font-size: 15px;
}

.btn-primary {
  background: linear-gradient(135deg, #6b3f1d, #a86a2f);
  color: white;
}

.btn-secondary {
  background: white;
  color: #6b3f1d;
  border: 1px solid #b98757;
}

.hero-card,
.feature,
.panel,
.auth-card,
.campaign-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #f0dfcc;
  border-radius: 28px;
  padding: 26px;
  box-shadow: 0 16px 45px rgba(80, 45, 18, 0.08);
}

.badge {
  display: inline-block;
  background: #ffe3bf;
  color: #7b410d;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
}

.progress {
  height: 12px;
  border-radius: 999px;
  background: #f4e5d3;
  overflow: hidden;
  margin: 18px 0;
}

.progress div {
  height: 100%;
  background: #6b3f1d;
}

.small {
  color: #74665c;
  font-size: 14px;
}

.section {
  padding: 60px 7%;
}

.compact { padding-bottom: 20px; }

.grid {
  display: grid;
  gap: 22px;
}

.three { grid-template-columns: repeat(3, 1fr); }

.two {
  grid-template-columns: repeat(2, 1fr);
  padding: 20px 7% 40px;
}

.section-head,
.card-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.auth-page {
  min-height: calc(100vh - 92px);
  display: block;
  padding: 70px 7% 90px;
}

.auth-card {
  max-width: 1120px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.auth-card h1 {
  font-size: clamp(52px, 7vw, 88px);
  margin-top: 50px;
  margin-bottom: 22px;
}

.auth-card .subtitle {
  font-size: 22px;
  max-width: 780px;
  color: #3d332c;
  margin-bottom: 26px;
}

.role-toggle {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0 26px;
}

.role-toggle button {
  background: white;
  color: #6b3f1d;
  border: 1px solid #e4d2bc;
}

.role-toggle button.active {
  background: #6b3f1d;
  color: white;
}

label {
  display: block;
  font-weight: 800;
  margin-top: 18px;
  margin-bottom: 7px;
  color: #24180f;
  font-size: 18px;
}

input,
textarea,
select {
  width: 100%;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid #e4d2bc;
  font: inherit;
  background: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(176, 112, 45, 0.18);
  border-color: #b98757;
}

textarea { min-height: 120px; }

.message {
  margin-top: 14px;
  font-weight: 700;
}

.message.error { color: #a23523; }
.message.success { color: #1f7a3f; }

footer {
  padding: 28px 7%;
  border-top: 1px solid #f0dfcc;
  color: #6a5c50;
}

html[dir="rtl"] body {
  text-align: right;
}

html[dir="rtl"] .nav,
html[dir="rtl"] .actions,
html[dir="rtl"] .role-toggle,
html[dir="rtl"] .section-head,
html[dir="rtl"] .card-row {
  flex-direction: row-reverse;
}

@media (max-width: 900px) {
  .hero,
  .two,
  .three,
  .cards {
    grid-template-columns: 1fr;
  }

.nav {
    position: relative;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 18px 6%;
}

.logo {
    align-self: flex-start;
    font-size: 24px;
    white-space: nowrap;
}

.nav nav {
    display: flex;
    justify-content: center;
    gap: 18px;
    width: 100%;
    flex-wrap: nowrap;
    font-size: 14px;
}

.language-menu {
    position: absolute;
    top: 18px;
    right: 20px;
  margin: 0;
}

  .paw-mark {
    width: 28px;
    height: 28px;
  }
  /* --- Language globe menu fix --- */

.language-switcher {
  display: none !important;
}

.language-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #e4d2bc;
  background: #ffffff;
  color: #6b3f1d;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
  padding: 0;
}

.language-options {
  display: none;
  position: absolute;
  top: 50px;
  right: 0;
  min-width: 165px;
  background: #ffffff;
  border: 1px solid #e4d2bc;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(80, 45, 18, 0.16);
  padding: 8px;
  z-index: 999;
}

.language-options.open {
  display: grid;
  gap: 6px;
}

.language-options button {
  background: transparent;
  color: #49311d;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
}

.language-options button:hover {
  background: #fff3e6;
}

html[dir="rtl"] .language-options {
  right: auto;
  left: 0;
}

html[dir="rtl"] .language-options button {
  text-align: right;
}

html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}


  .auth-page { padding-top: 42px; }
  
/* --- Campaign detail page --- */

.clickable-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.clickable-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 55px rgba(80, 45, 18, 0.13);
}

.campaign-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.shelter-summary {
  margin: 28px 0;
  padding: 22px;
  border-radius: 22px;
  background: #fff7ed;
  border: 1px solid #f0dfcc;
}

.detail-section {
  margin-top: 32px;
}

.proof-item,
.donor-item {
  padding: 16px 0;
  border-bottom: 1px solid #f0dfcc;
}

.donor-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.donation-box {
  position: sticky;
  top: 110px;
}

.full-width {
  width: 100%;
  margin: 18px 0 12px;
}

button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

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

  .donation-box {
    position: static;
  }
}
@media (max-width: 900px) {
  .campaign-detail-layout {
    grid-template-columns: 1fr;
  }

  .donation-box {
    position: static;
  }
}

/* ---- Progression campagne ---- */

.campaign-top-progress {
  margin: 20px 0 28px;
  max-width: 620px;
}

.progress {
  width: 100%;
  height: 14px;
  background: #efe7dd;
  border-radius: 20px;
  overflow: hidden;
  margin: 12px 0;
}

.progress div {
  height: 100%;
  background: linear-gradient(90deg,#9b5d2e,#c9873d);
  border-radius: 20px;
}

.small {
  font-size: 14px;
  color: #777;
}
  .forgot-password-link {
  margin-top: 18px;
}

.forgot-password-link a {
  color: #6b3f1d;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}
  #proofFile {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px;
  background: white;
  border: 1px solid #e4d2bc;
  border-radius: 14px;
  font-size: 16px;
}
  .donation-payment-box {
  padding: 28px;
  border: 1px solid #ead9c5;
  border-radius: 24px;
  background: #ffffff;
}

.donation-payment-box h3 {
  margin: 0 0 8px;
  font-size: 26px;
}

.donation-payment-intro {
  margin: 0 0 22px;
  color: #74665c;
}

.donation-amount-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.donation-amount-button {
  min-height: 48px;
  border: 1px solid #d9c2a8;
  border-radius: 14px;
  background: #ffffff;
  color: #4d2d17;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.donation-amount-button.active {
  border-color: #8c4d1e;
  background: #8c4d1e;
  color: #ffffff;
}

.donation-field-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

.donation-custom-amount {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  border: 1px solid #d9c2a8;
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
}

.donation-custom-amount input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border: 0;
  outline: none;
  font-size: 16px;
}

.donation-custom-amount span {
  padding: 0 16px;
  font-weight: 900;
}

.pawtrust-support-box {
  margin-bottom: 24px;
  padding: 20px;
  border-radius: 18px;
  background: #fff6e9;
}

.pawtrust-support-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.pawtrust-support-heading p {
  margin: 6px 0 0;
  color: #74665c;
  font-size: 14px;
  line-height: 1.5;
}

.pawtrust-tip-range {
  width: 100%;
  accent-color: #8c4d1e;
}

.pawtrust-tip-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: #8a796d;
  font-size: 12px;
}

.donation-summary {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: 18px;
  background: #faf7f2;
}

.donation-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.donation-summary-total {
  padding-top: 13px;
  border-top: 1px solid #ded0c1;
  font-size: 18px;
}

.payment-method-title {
  margin: 0 0 12px;
  font-size: 18px;
}

.payment-method-list {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.payment-method-button {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d9c2a8;
  border-radius: 16px;
  background: #ffffff;
  color: #2b1d14;
  text-align: left;
  cursor: pointer;
}

.payment-method-button.active {
  border: 2px solid #8c4d1e;
  background: #fff9f2;
}

.payment-method-button small {
  display: block;
  margin-top: 3px;
  color: #7d6d62;
}

.payment-method-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  border-radius: 12px;
  background: #f3e5d5;
  font-size: 20px;
  font-weight: 900;
}

.donation-submit-button {
  min-height: 54px;
  font-size: 17px;
}

.secure-payment-text {
  margin: 14px 0 0;
  color: #7c6d62;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 600px) {
  .donation-payment-box {
    padding: 20px;
  }

  .donation-amount-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .pawtrust-support-heading {
    flex-direction: column;
    gap: 8px;
  }
}
}
/* ==================================================
   NOUVELLE INTERFACE DE PAIEMENT PAWTRUST
   ================================================== */

.donation-payment-box {
  width: 100%;
  max-width: 680px;
  margin: 24px auto 0;
  padding: 28px;
  border: 1px solid #ead9c5;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(76, 44, 21, 0.08);
}

.donation-box-header h3 {
  margin: 0;
  font-size: 27px;
}

.donation-box-header p {
  margin: 7px 0 24px;
  color: #78695e;
}

.donation-amount-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.donation-amount-button {
  min-width: 0;
  min-height: 52px;
  padding: 10px;
  border: 1px solid #d9c9b8;
  border-radius: 14px;
  background: #ffffff;
  color: #54483f;
  font-size: 17px;
  font-weight: 750;
  cursor: pointer;
}

.donation-amount-button.active {
  border-color: #9a5b26;
  background: #f2dfca;
  color: #603719;
}

.amount-check {
  margin-right: 6px;
}

.custom-amount-wrapper {
  margin-bottom: 24px;
}

.custom-amount-wrapper label {
  display: block;
  margin: 0 0 9px;
  font-size: 16px;
  font-weight: 800;
}

.custom-amount-field {
  display: flex;
  align-items: center;
  border: 1px solid #d9c9b8;
  border-radius: 15px;
  background: white;
  overflow: hidden;
}

.custom-amount-field:focus-within {
  border-color: #95571f;
  box-shadow: 0 0 0 3px rgba(149, 87, 31, 0.12);
}

.custom-amount-field input {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 15px 17px;
  border: 0;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  font-size: 17px;
}

.custom-amount-field input:focus {
  border: 0;
  outline: none;
  box-shadow: none;
}

.custom-amount-field span {
  padding: 0 17px;
  font-size: 18px;
  font-weight: 850;
}

.pawtrust-support-box {
  margin-bottom: 24px;
  padding: 20px;
  border-radius: 18px;
  background: #fff7ec;
}

.pawtrust-support-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.pawtrust-support-title p {
  max-width: 500px;
  margin: 5px 0 15px;
  color: #79695d;
  font-size: 14px;
  line-height: 1.5;
}

.pawtrust-support-box input[type="range"] {
  width: 100%;
  padding: 0;
  border: 0;
  accent-color: #95571f;
}

.pawtrust-tip-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: #8a7a6d;
  font-size: 12px;
}

.donation-summary {
  display: grid;
  gap: 11px;
  margin-bottom: 25px;
  padding: 18px;
  border-radius: 17px;
  background: #faf8f5;
}

.donation-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.donation-summary-total {
  margin-top: 3px;
  padding-top: 13px;
  border-top: 1px solid #ded3c8;
  font-size: 18px;
}

.payment-method-title {
  margin: 0 0 12px;
  font-size: 18px;
}

.payment-method-list {
  display: grid;
  gap: 11px;
  margin-bottom: 0;
}

.payment-method-button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 66px;
  padding: 11px 15px;
  border: 1px solid #ded4c9;
  border-radius: 15px;
  background: #ffffff;
  color: #33251b;
  text-align: left;
  cursor: pointer;
}

.payment-method-button.active {
  border: 2px solid #9a5b26;
  background: #fffaf4;
}

.payment-method-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f4e7d9;
  font-weight: 900;
}

.payment-method-text {
  min-width: 0;
}

.payment-method-text strong,
.payment-method-text small {
  display: block;
}

.payment-method-text small {
  margin-top: 3px;
  color: #84756a;
  font-size: 13px;
}

.payment-method-radio {
  width: 19px;
  height: 19px;
  border: 2px solid #c6b8aa;
  border-radius: 50%;
}

.payment-method-button.active .payment-method-radio {
  border: 5px solid #9a5b26;
}

.card-payment-fields {
  display: grid;
  gap: 15px;
  padding: 19px;
  border: 1px solid #e3d7ca;
  border-radius: 16px;
  background: #fcfaf7;
}

.card-payment-fields label {
  display: grid;
  gap: 7px;
  margin: 0;
  color: #514237;
  font-size: 14px;
  font-weight: 750;
}

.card-payment-fields input {
  width: 100%;
  margin: 0;
  padding: 13px 14px;
  border: 1px solid #d8cbbd;
  border-radius: 11px;
  background: #ffffff;
  font-size: 16px;
  outline: none;
}

.card-payment-fields input:focus {
  border-color: #95571f;
  box-shadow: 0 0 0 3px rgba(149, 87, 31, 0.1);
}

.card-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.card-number-wrapper {
  position: relative;
}

.card-number-wrapper input {
  padding-right: 48px;
}

.card-number-wrapper span {
  position: absolute;
  top: 50%;
  right: 13px;
  transform: translateY(-50%);
}

.card-preview-warning {
  margin: 0;
  color: #8a7564;
  font-size: 12px;
  line-height: 1.45;
}

.payment-information {
  padding: 15px 17px;
  border-radius: 13px;
  background: #faf7f2;
  color: #76665b;
  font-size: 14px;
}

.hidden {
  display: none !important;
}

.donation-submit-button {
  width: 100%;
  min-height: 55px;
  margin-top: 22px;
  padding: 14px 18px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, #6b3f1d, #a86a2f);
  color: #ffffff;
  font-size: 17px;
  font-weight: 850;
  cursor: pointer;
}

.donation-submit-button:hover {
  background: linear-gradient(135deg, #572f14, #8d5525);
}

.secure-payment-text {
  margin: 13px 0 0;
  color: #827268;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 600px) {
  .donation-payment-box {
    padding: 20px;
    border-radius: 20px;
  }

  .donation-amount-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-fields-row {
    grid-template-columns: 1fr;
  }

  .pawtrust-support-title {
    flex-direction: column;
    gap: 2px;
  }
}
