.csp-portal-page .wp-site-blocks > header,
.csp-portal-page .wp-site-blocks > footer,
.csp-portal-page .wp-block-navigation,
.csp-portal-page header nav:not(.csp-nav),
.csp-portal-page main > .wp-block-group:first-child {
  display: none !important;
}

body.csp-portal-page {
  margin: 0 !important;
  overflow-x: hidden !important;
}

.csp-portal-page .wp-site-blocks,
.csp-portal-page .wp-site-blocks > main,
.csp-portal-page .wp-block-post-content {
  margin: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  width: 100% !important;
}

.csp-portal-page .wp-block-post-title {
  display: none !important;
}

.csp-portal {
  --csp-yellow: #e6ff00;
  --csp-black: #111111;
  --csp-white: #ffffff;
  --csp-muted: #656565;
  --csp-line: #d7d7d2;
  --csp-soft: #f1f1ed;
  background: linear-gradient(135deg, #f4f4ef 0%, #ffffff 56%, #f2f2ed 100%);
  border-radius: 0;
  color: var(--csp-black);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif !important;
  margin: 0 !important;
  max-width: none !important;
  min-height: 100vh;
  overflow: hidden;
  padding: 0 0 56px;
  transform: none;
  width: 100% !important;
}

.csp-portal *,
.csp-portal *::before,
.csp-portal *::after { box-sizing: border-box; }

.csp-portal h1,
.csp-portal h2,
.csp-portal h3,
.csp-portal p { margin-top: 0; }

.csp-portal h1,
.csp-portal h2 {
  color: inherit;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif !important;
  font-style: italic;
  font-weight: 900 !important;
  letter-spacing: .015em;
  line-height: .92;
  text-transform: uppercase;
}

.csp-portal h1 { font-size: clamp(3.5rem, 8vw, 7rem); margin-bottom: 20px; }
.csp-portal h2 { font-size: clamp(2.1rem, 5vw, 3.8rem); margin-bottom: 15px; }
.csp-portal h3 { color: inherit; font-family: inherit !important; font-size: 1.1rem; font-weight: 900 !important; margin-bottom: 6px; }
.csp-portal p { color: var(--csp-muted); font-size: 1rem; line-height: 1.65; }
.csp-portal a { color: inherit; }

.csp-eyebrow {
  color: inherit !important;
  font-size: .78rem !important;
  font-weight: 950;
  letter-spacing: .18em;
  margin-bottom: 15px !important;
  text-transform: uppercase;
}

.csp-auth-hero,
.csp-dashboard-head {
  background-color: var(--csp-yellow);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 460px;
  overflow: hidden;
  padding: clamp(38px, 7vw, 78px);
  position: relative;
}

.csp-auth-hero::after,
.csp-dashboard-head::after {
  background: var(--csp-yellow);
  bottom: -14px;
  content: "";
  height: 29px;
  left: -2%;
  position: absolute;
  transform: rotate(-1deg);
  width: 104%;
}

.csp-hero--photo { color: #fff; }
.csp-hero--photo .csp-eyebrow,
.csp-hero--photo h1 { color: #fff !important; text-shadow: 0 4px 18px rgba(0,0,0,.35); }
.csp-hero--photo .csp-hero-content > p:last-child { color: #fff; }
.csp-hero-content { max-width: 730px; position: relative; z-index: 1; }
.csp-hero-content > p:last-child { color: #202020; font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 650; margin-bottom: 0; max-width: 650px; }
.csp-logo {
  background: rgba(255,255,255,.94);
  border: 2px solid var(--csp-black);
  border-radius: 12px;
  display: block;
  margin-bottom: 32px;
  max-height: 105px;
  max-width: min(240px, 62vw);
  object-fit: contain;
  padding: 10px 14px;
  width: auto;
}

.csp-auth-hero h1 {
  display: inline-block;
  font-family: "Arial Black", "Segoe UI Black", Impact, sans-serif !important;
  font-style: normal;
  letter-spacing: -.055em;
  line-height: .88;
  margin-bottom: 34px;
  position: relative;
  text-transform: none;
}
.csp-auth-hero h1::after {
  background: var(--csp-black);
  bottom: -18px;
  content: "";
  height: 9px;
  left: 2px;
  position: absolute;
  transform: skewX(-24deg);
  width: min(78%, 330px);
}
.csp-auth-hero.csp-hero--photo h1::after { background: var(--csp-yellow); }

.csp-auth-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 0 clamp(18px, 5vw, 58px); position: relative; z-index: 2; }
.csp-card {
  background: #fff;
  border: 3px solid var(--csp-black);
  box-shadow: 9px 9px 0 var(--csp-black);
  padding: clamp(28px, 5vw, 52px);
}
.csp-card:first-child { transform: rotate(-.35deg); }
.csp-card:last-child { transform: rotate(.35deg); }
.csp-card--dark { background: var(--csp-black); color: #fff; }
.csp-card--dark p { color: #c7c7c7; }
#creer-compte, #connexion { scroll-margin-top: 28px; }

.csp-form { display: grid; gap: 18px; margin-top: 26px; }
.csp-fields-2,
.csp-fields-3 { display: grid; gap: 16px; }
.csp-fields-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.csp-fields-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.csp-field { display: grid; gap: 8px; }
.csp-field > span { font-size: .88rem; font-weight: 850; }
.csp-field em,
.csp-check em { color: #d51d18; font-style: normal; }
.csp-field input,
.csp-field select,
.csp-field textarea {
  appearance: none;
  background: #fff;
  border: 2px solid #bcbcbc;
  border-radius: 5px;
  color: #171717;
  font: inherit;
  min-height: 50px;
  padding: 11px 13px;
  width: 100%;
}
.csp-field select {
  background-image: linear-gradient(45deg, transparent 50%, #111 50%), linear-gradient(135deg, #111 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 38px;
}
.csp-field textarea { min-height: 112px; resize: vertical; }
.csp-field input:focus,
.csp-field select:focus,
.csp-field textarea:focus { border-color: #111; box-shadow: 0 0 0 4px rgba(230,255,0,.78); outline: none; }
.csp-check { align-items: flex-start; display: flex; font-size: .88rem; gap: 10px; line-height: 1.5; }
.csp-check input { accent-color: var(--csp-yellow); flex: 0 0 19px; height: 19px; margin-top: 1px; width: 19px; }
.csp-check a { font-weight: 800; text-decoration: underline; }
.csp-check--light { color: #e0e0e0; }

.csp-button {
  align-items: center;
  background: #fff;
  border: 3px solid var(--csp-black);
  border-radius: 5px;
  box-shadow: 5px 5px 0 var(--csp-black);
  color: var(--csp-black) !important;
  cursor: pointer;
  display: inline-flex;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif !important;
  font-size: .83rem;
  font-weight: 950;
  justify-content: center;
  letter-spacing: .045em;
  min-height: 51px;
  padding: 12px 24px;
  text-decoration: none !important;
  text-transform: uppercase;
  transition: transform .15s ease, box-shadow .15s ease;
}
.csp-button:hover { box-shadow: 2px 2px 0 #111; transform: translate(3px, 3px); }
.csp-button:focus-visible { outline: 4px solid #60a5fa; outline-offset: 3px; }
.csp-button--primary,
.csp-button--light { background: var(--csp-yellow); }
.csp-button--light { border-color: var(--csp-yellow); box-shadow: 5px 5px 0 #fff; }
.csp-button--small { font-size: .71rem; min-height: 43px; padding: 9px 17px; }
.csp-forgot { color: #fff !important; display: inline-block; font-size: .88rem; font-weight: 750; margin-top: 19px; text-decoration: underline; }

.csp-notice { border: 2px solid; border-radius: 5px; font-weight: 800; margin: 20px clamp(18px, 5vw, 58px); padding: 16px 18px; }
.csp-notice--success { background: #dbf8df; border-color: #309845; color: #174d20; }
.csp-notice--error { background: #ffe4e3; border-color: #c2433c; color: #741b18; }

.csp-dashboard-head { align-items: flex-start; display: flex; justify-content: space-between; min-height: 410px; }
.csp-dashboard-head h1 { font-size: clamp(3.2rem, 7vw, 6.3rem); }
.csp-dashboard-head > .csp-button { position: relative; z-index: 2; }
.csp-nav {
  background: var(--csp-black);
  border: 3px solid var(--csp-black);
  display: flex;
  gap: 6px;
  margin: -2px clamp(18px, 5vw, 58px) 0;
  padding: 9px;
  position: sticky;
  top: 10px;
  z-index: 20;
}
.csp-nav a { color: #fff !important; flex: 1; font-size: .84rem; font-weight: 900; padding: 13px; text-align: center; text-decoration: none !important; text-transform: uppercase; }
.csp-nav a:hover { background: #2d2d2d; }
.csp-nav strong { background: var(--csp-yellow); color: #111; display: inline-grid; margin-left: 6px; min-width: 25px; padding: 3px 6px; place-items: center; transform: rotate(-3deg); }

.csp-section {
  background: #fff;
  border: 3px solid var(--csp-black);
  box-shadow: 8px 8px 0 var(--csp-black);
  margin: 34px clamp(18px, 5vw, 58px) 0;
  padding: clamp(25px, 5vw, 45px);
  scroll-margin-top: 80px;
}
.csp-section:nth-of-type(even) { transform: rotate(-.15deg); }
.csp-section-title { align-items: flex-end; display: flex; gap: 24px; justify-content: space-between; margin-bottom: 28px; }
.csp-section-title h2 { margin-bottom: 0; }
.csp-state,
.csp-status { border: 2px solid currentColor; border-radius: 999px; display: inline-block; font-size: .69rem; font-weight: 950; letter-spacing: .04em; padding: 7px 11px; text-transform: uppercase; }
.csp-state.is-open,
.csp-status--confirmed { background: #d9f7df; color: #176327; }
.csp-state.is-closed,
.csp-status--rejected,
.csp-status--cancelled { background: #ffe2df; color: #87251f; }
.csp-status--pending { background: #fff1bd; color: #725508; }
.csp-empty { align-items: flex-start; background: var(--csp-soft); border: 2px dashed #979797; display: flex; flex-direction: column; gap: 5px; padding: 24px; }
.csp-empty span { color: var(--csp-muted); }
.csp-list { display: grid; gap: 13px; }
.csp-list--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.csp-list-item,
.csp-mini-card { align-items: center; background: #fff; border: 2px solid var(--csp-black); display: flex; gap: 18px; justify-content: space-between; padding: 19px 21px; }
.csp-list-item:hover,
.csp-mini-card:hover { box-shadow: 4px 4px 0 var(--csp-yellow); transform: translate(-2px, -2px); }
.csp-list-item p,
.csp-mini-card p { font-size: .88rem; margin-bottom: 0; }
.csp-list-item h3 { margin: 8px 0 3px; }
.csp-mini-card { justify-content: flex-start; }
.csp-avatar { background: var(--csp-yellow); border: 2px solid var(--csp-black); display: grid; flex: 0 0 52px; font-weight: 950; height: 52px; place-items: center; transform: rotate(-3deg); }
.csp-avatar--vehicle { background: var(--csp-black); font-size: 1.35rem; }
.csp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.csp-actions a { font-size: .79rem; font-weight: 900; text-decoration: underline; text-transform: uppercase; }
.csp-actions a.is-danger { color: #a62822; }
.csp-editor { background: var(--csp-yellow); border: 2px solid var(--csp-black); margin-top: 22px; padding: 0 22px 25px; scroll-margin-top: 85px; }
.csp-editor summary { cursor: pointer; font-size: .94rem; font-weight: 950; letter-spacing: .03em; list-style: none; padding: 22px 0; text-transform: uppercase; }
.csp-editor summary::-webkit-details-marker { display: none; }
.csp-editor summary::after { content: "↓"; float: right; font-size: 1.25rem; }
.csp-editor[open] summary::after { content: "↑"; }
.csp-help { background: #fff; border: 2px solid var(--csp-black); color: #222 !important; padding: 15px; }

.csp-payment-box {
  align-items: center;
  background: var(--csp-black);
  border: 3px solid var(--csp-black);
  box-shadow: 6px 6px 0 #fff;
  color: #fff;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: clamp(22px, 4vw, 34px);
}
.csp-payment-box .csp-eyebrow { color: var(--csp-yellow) !important; }
.csp-payment-box h3 {
  color: #fff;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif !important;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-style: italic;
  letter-spacing: .02em;
  line-height: 1;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.csp-payment-box p { color: #e4e4e4; margin-bottom: 0; }
.csp-twint-phone { margin-top: 15px !important; }
.csp-twint-phone strong { color: var(--csp-yellow); font-size: 1.15rem; white-space: nowrap; }
.csp-twint-qr {
  background: #fff;
  border: 5px solid #fff;
  display: block;
  height: 180px;
  object-fit: contain;
  width: 180px;
}
.csp-check--payment {
  background: #fff;
  border: 3px solid var(--csp-black);
  font-size: .94rem;
  font-weight: 850;
  padding: 16px;
}

@media (max-width: 780px) {
  .csp-portal {
    border-radius: 0;
    margin: 0 !important;
    max-width: none !important;
    padding-bottom: 30px;
    width: 100% !important;
  }
  .csp-auth-grid,
  .csp-fields-2,
  .csp-fields-3,
  .csp-list--cards { grid-template-columns: 1fr; }
  .csp-auth-grid { margin: 0 10px; }
  .csp-auth-hero,
  .csp-dashboard-head {
    gap: 24px;
    min-height: 0;
    padding: 28px 22px 48px;
  }
  .csp-auth-hero h1 { font-size: clamp(2.8rem, 15vw, 4.2rem); }
  .csp-dashboard-head h1 {
    font-size: clamp(2.75rem, 14vw, 4.2rem);
    overflow-wrap: anywhere;
  }
  .csp-hero-content > p:last-child { font-size: 1rem; line-height: 1.5; }
  .csp-logo {
    margin-bottom: 24px;
    max-height: 90px;
    max-width: 160px;
    padding: 7px 9px;
  }
  .csp-card:first-child,
  .csp-card:last-child,
  .csp-section:nth-of-type(even) { transform: none; }
  .csp-card { box-shadow: 5px 5px 0 var(--csp-black); padding: 27px 19px; }
  .csp-card h2 { font-size: clamp(2rem, 11vw, 3rem); }
  .csp-dashboard-head,
  .csp-section-title,
  .csp-list-item { align-items: stretch; flex-direction: column; }
  .csp-dashboard-head > .csp-button { align-self: flex-start; }
  .csp-nav {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: -2px 10px 0;
    overflow: visible;
    padding: 5px;
    position: static;
  }
  .csp-nav a {
    align-items: center;
    display: flex;
    flex-direction: column;
    font-size: .62rem;
    gap: 7px;
    min-width: 0;
    padding: 11px 2px;
  }
  .csp-nav strong { margin-left: 0; min-width: 23px; padding: 2px 5px; }
  .csp-section {
    box-shadow: 4px 4px 0 var(--csp-black);
    margin: 24px 10px 0;
    padding: 22px 17px;
  }
  .csp-section-title { gap: 14px; margin-bottom: 22px; }
  .csp-section-title h2 { font-size: clamp(2rem, 11vw, 3rem); }
  .csp-state { align-self: flex-start; }
  .csp-list-item,
  .csp-mini-card { padding: 17px 15px; }
  .csp-form > .csp-button { width: 100%; }
  .csp-payment-box { grid-template-columns: 1fr; }
  .csp-twint-qr { height: auto; max-width: 220px; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .csp-button,
  .csp-list-item,
  .csp-mini-card { transition: none; }
}
