.porte-conditions {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow: auto;
  overscroll-behavior: contain;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1.2rem, 5vh, 3.5rem) 1rem 2rem;
  background: #fbf6ec;
  color: #2f3a2c;
}
html.porte-visible, html.porte-visible body { overflow: hidden; }

.porte-carte {
  width: min(40rem, 100%);
  background: #fff;
  border: 1px solid rgba(47, 58, 44, 0.10);
  border-radius: 26px;
  padding: clamp(1.4rem, 4vw, 2.3rem) clamp(1.1rem, 4vw, 2.2rem);
}
.porte-logo {
  display: block;
  height: 2rem;
  margin: 0 auto 1.3rem;
  filter: brightness(0.55) sepia(0.4) hue-rotate(50deg);
}
.porte-titre {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.45rem, 4.4vw, 1.9rem);
  line-height: 1.15;
  margin: 0 0 0.7rem;
  outline: none;
}
.porte-texte { line-height: 1.65; color: rgba(47, 58, 44, 0.86); margin: 0 0 1.1rem; }

.porte-cases { display: grid; gap: 0.7rem; margin: 0 0 1.2rem; }
.porte-case {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.9rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(122, 138, 94, 0.35);
  border-radius: 16px;
  background: #fbf6ec;
}
.porte-case label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  flex: 1 1 18rem;
  min-width: 0;
  line-height: 1.5;
  cursor: pointer;
}
.porte-case input {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  margin: 0.15rem 0 0;
  accent-color: #7a8a5e;
}
.porte-lire {
  flex: none;
  font: 600 0.88rem/1 'Baloo 2', system-ui, sans-serif;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(47, 58, 44, 0.35);
  background: #fff;
  color: #2f3a2c;
  cursor: pointer;
}

.porte-appareil {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid #FFB59E;
  background: rgba(122, 138, 94, 0.08);
  border-radius: 0 14px 14px 0;
  font-size: 0.92rem;
  line-height: 1.6;
}
.porte-appareil p { margin: 0 0 0.45rem; }
.porte-appareil p:last-child { margin-bottom: 0; }
.porte-sous {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(47, 58, 44, 0.66);
  margin: 1.2rem 0 0.55rem;
}
.porte-appareil .porte-sous { margin-top: 0; }
.porte-politique, .porte-rassure { font-size: 0.92rem; line-height: 1.6; color: rgba(47, 58, 44, 0.82); margin: 0 0 0.8rem; }
.porte-rassure { font-weight: 600; color: #2f3a2c; }
.porte-lien {
  font: inherit;
  font-weight: 700;
  color: #4a5a38;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.porte-message {
  margin: 0.4rem 0 0.8rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: rgba(160, 76, 60, 0.08);
  color: #7c3a2e;
  font-weight: 600;
  line-height: 1.5;
}
.porte-message[hidden] { display: none; }

.porte-gestes { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0 0.4rem; }
.porte-bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 600 0.95rem/1.2 'Baloo 2', system-ui, sans-serif;
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  border: 1px solid #2f3a2c;
  background: #2f3a2c;
  color: #f5ead8;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}
.porte-bouton.doux { background: transparent; color: #2f3a2c; border-color: rgba(47, 58, 44, 0.35); }
.porte-bouton.danger { background: transparent; color: #8a3b2c; border-color: rgba(138, 59, 44, 0.55); }
.porte-bouton:disabled { opacity: 0.45; cursor: not-allowed; }
@media (hover: hover) {
  .porte-bouton:not(:disabled):hover { transform: translateY(-1px); }
  .porte-bouton.doux:not(:disabled):hover { background: rgba(122, 138, 94, 0.12); }
}
.porte-bouton:focus-visible, .porte-lire:focus-visible, .porte-lien:focus-visible, .porte-case input:focus-visible {
  outline: 2px solid #FFB59E;
  outline-offset: 3px;
}
.porte-aide { font-size: 0.85rem; color: rgba(47, 58, 44, 0.62); margin: 0.2rem 0 0; }
.porte-aide[hidden] { display: none; }

.porte-sorties { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.porte-sortie:not(:empty) {
  margin-top: 0.9rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(122, 138, 94, 0.3);
  border-radius: 16px;
  line-height: 1.6;
}
.porte-sortie p { margin: 0 0 0.7rem; }
.porte-champ { display: grid; gap: 0.35rem; margin: 0 0 0.8rem; font-weight: 600; font-size: 0.9rem; }

@media (max-width: 520px) {
  .porte-gestes .porte-bouton { flex: 1 1 100%; }
  .porte-lire { width: 100%; }
}

.porte-lecture {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(47, 58, 44, 0.52);
}
.porte-lecture[hidden] { display: none; }
.porte-lecture-carte {
  position: relative;
  width: min(46rem, 100%);
  max-height: 86svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fbf6ec;
  border: 1px solid rgba(122, 138, 94, 0.35);
  border-radius: 28px;
  box-shadow: 0 40px 90px -35px rgba(47, 58, 44, 0.65);
  outline: none;
}
.porte-lecture-ferme {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0;
  background: rgba(122, 138, 94, 0.16);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.porte-lecture-ferme span {
  position: absolute; display: block;
  width: 1.15rem; height: 2px; border-radius: 999px;
  background: #2f3a2c;
}
.porte-lecture-ferme span:first-child { transform: rotate(45deg); }
.porte-lecture-ferme span:last-child { transform: rotate(-45deg); }
.porte-lecture-corps { flex: 1; min-height: 0; }
.porte-lecture-fin {
  margin: 0;
  padding: 0.8rem 1.4rem 1rem;
  border-top: 1px solid rgba(122, 138, 94, 0.25);
  text-align: right;
}
@media (max-width: 520px) {
  .porte-lecture { padding: 0.6rem; }
  .porte-lecture-corps.leg-corps { padding: 1.8rem 1.2rem 1.4rem; }
}

#adm-mesure-espace:not(:empty) { margin-top: 1.2rem; }
.stx-mesure-espace table { width: 100%; border-collapse: collapse; margin-top: 0.6rem; font-size: 0.92rem; }
.stx-mesure-espace th, .stx-mesure-espace td { padding: 0.45rem 0.5rem; border-bottom: 1px solid rgba(122, 138, 94, 0.22); }
.stx-mesure-espace th { text-align: left; font-weight: 600; }
.stx-mesure-espace td { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

.vc-conditions-textes { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.6rem 0 0.2rem; }
.vc-sous { font-weight: 700; font-size: 0.98rem; margin: 1.2rem 0 0.3rem; }
