.portal { min-height: 100vh; background: var(--paper); }
.portal > * { min-width: 0; }
.recruit :where(h1, h2, h3), .recruit p { overflow-wrap: anywhere; hyphens: auto; }
.portalHeader {
  height: 78px;
  padding: 0 clamp(22px, 3.5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: sticky;
  top: 0;
  z-index: 30;
  color: white;
  background: rgba(5, 13, 15, .99);
  border-bottom: 1px solid rgba(255,255,255,.12);
  view-transition-name: site-header;
}
.portalLogo {
  width: 124px;
  height: 68px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.portalLogo img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; display: block; object-fit: contain; object-position: center; filter: url(#logoOnDark); }
.portalIdentity { display: flex; align-items: center; gap: 30px; }
.portalIdentity > span { color: #90a0a3; font-size: 9px; text-transform: uppercase; letter-spacing: .18em; }
.portalIdentity > a { min-width: 140px; padding: 10px 0; display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.5); font-size: 11px; font-weight: 700; }
.portalIdentity b { color: var(--electric); }

/* Recrutement */
.recruitHero {
  min-height: 680px;
  padding: 90px clamp(22px, 6vw, 105px);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: 8vw;
  align-items: end;
  color: white;
  background:
    radial-gradient(circle at 12% 28%, rgba(0,166,220,.24), transparent 32%),
    linear-gradient(118deg, #0a2429, #071013 60%, #040708);
}
.recruitHero small, .jobs > div > small, .apply > div > small, .clientHero small, .panelTitle small, .contract > small, .adminHero small, .adminSectionTitle small, .wordpressSetup small {
  color: var(--electric);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .18em;
}
.recruitHero h1 { margin: 28px 0 0; font-size: clamp(66px, 8.6vw, 138px); line-height: .79; letter-spacing: -.08em; text-transform: uppercase; }
.recruitHero > *, .jobs > *, .apply > *, .jobs article > * { min-width: 0; }
.recruitHero h1 em { color: var(--electric); font-style: normal; }
.recruitIntro p { color: #aebdc0; font-size: 16px; line-height: 1.75; }
.recruitIntro a { width: min(230px, 100%); margin-top: 34px; padding: 16px 0; display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.55); font-size: 11px; font-weight: 800; }
.recruitImage { height: 72vh; min-height: 580px; margin: 0; position: relative; overflow: hidden; background: var(--night); }
.recruitImage:after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(3,9,11,.8)); }
.recruitImage img { width: 100%; height: 100%; display: block; object-fit: cover; }
.recruitImage span { position: absolute; z-index: 1; left: 5vw; bottom: 34px; color: white; font-size: 10px; text-transform: uppercase; letter-spacing: .18em; }
.jobs { padding: 120px clamp(22px, 6vw, 105px); display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 8vw; }
.jobs h2, .apply h2 { margin: 30px 0; font-size: clamp(48px, 5.7vw, 90px); line-height: .94; letter-spacing: -.06em; text-transform: uppercase; }
.jobs > div:first-child > p { max-width: 470px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.jobs article { min-height: 170px; padding: 30px 0; display: grid; grid-template-columns: 45px minmax(0, 1fr) 100px; gap: 26px; align-items: start; border-top: 1px solid var(--line); }
.jobs article > span { color: var(--electric-deep); font-size: 10px; }
.jobs article small { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .14em; }
.jobs article h3 { margin: 11px 0; font-size: clamp(25px, 2.4vw, 38px); letter-spacing: -.04em; }
.jobs article p { max-width: 580px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.jobs article a { font-size: 10px; font-weight: 800; }
.apply { padding: 110px clamp(22px, 7vw, 120px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9vw; color: white; background: var(--night); }
.apply > div > p { max-width: 520px; color: #94a4a7; font-size: 14px; line-height: 1.8; }
.apply form { padding: 40px; color: var(--ink); background: white; border-radius: 3px; }
.apply label, .modal label { margin: 16px 0; display: block; color: #596568; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.apply input, .apply select, .apply textarea, .modal input, .modal select, .modal textarea { width: 100%; margin-top: 8px; padding: 14px; display: block; border: 1px solid #cfd5d5; color: var(--ink); background: #f8f9f7; resize: vertical; }
.apply .file input { border-style: dashed; }
.primary { min-width: 230px; padding: 16px 18px; display: inline-flex; justify-content: space-between; gap: 30px; border: 0; color: var(--night); background: var(--electric); font-size: 11px; font-weight: 800; cursor: pointer; }
.success { padding: 48px; align-self: start; color: var(--night); background: var(--electric); }
.success small { display: block; margin-bottom: 35px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; }
.success b { display: block; font-size: 34px; letter-spacing: -.04em; }
.success p { line-height: 1.7; }
.success button { margin-top: 30px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--night); background: transparent; font-weight: 700; cursor: pointer; }

/* Portail maintenance */
.clientPortal { background: #e9ebe7; }
.clientWrap { max-width: 1480px; margin: auto; padding: 70px clamp(18px, 4vw, 70px) 100px; }
.clientHero { padding: 60px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; color: white; background: radial-gradient(circle at 15% 20%, #16444e, var(--night) 58%); border-radius: 4px 30px 4px 30px; }
.clientHero h1 { margin: 24px 0; font-size: clamp(48px, 5.6vw, 86px); line-height: .92; letter-spacing: -.06em; text-transform: uppercase; }
.clientHero p { max-width: 630px; margin: 0; color: #a8b7ba; font-size: 14px; line-height: 1.7; }
.clientHero button { min-width: 195px; padding: 16px 18px; display: flex; justify-content: space-between; border: 0; color: var(--night); background: var(--electric); font-size: 11px; font-weight: 800; cursor: pointer; }
.identityLine { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-size: 10px; }
.identityLine span { color: white; font-weight: 800; }
.identityLine b { color: var(--electric); font-weight: 700; }
.identityLine a { color: #91a1a4; border-bottom: 1px solid #53686c; }
.portalMessage { margin: 18px 0 0; padding: 14px 18px; color: #7e3616; background: #fff1e9; border-left: 3px solid #d76a37; font-size: 11px; }
.clientStats { margin: 24px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #cbd0cc; border: 1px solid #cbd0cc; }
.clientStats article { min-height: 145px; padding: 25px; display: flex; flex-direction: column; justify-content: space-between; background: white; }
.clientStats span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .14em; }
.clientStats b { font-size: 38px; letter-spacing: -.05em; }
.clientStats b.date { font-size: 25px; }
.clientGrid { display: grid; grid-template-columns: 1fr 330px; gap: 24px; }
.ticketPanel { min-width: 0; background: white; border: 1px solid #d7dbd8; }
.panelTitle { padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid #e0e3e1; }
.panelTitle h2 { margin: 8px 0 0; font-size: 24px; letter-spacing: -.04em; }
.panelTitle button { padding: 8px 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; font-size: 10px; font-weight: 800; cursor: pointer; }
.ticketHead, .ticketRow { padding: 16px 25px; display: grid; grid-template-columns: 125px minmax(190px, 1fr) 90px 100px 100px; gap: 12px; align-items: center; }
.ticketHead.operator, .ticketRow.operator { grid-template-columns: 125px minmax(190px, 1fr) 105px 145px 150px; }
.ticketHead { color: #7c8788; background: #f3f4f1; font-size: 8px; text-transform: uppercase; letter-spacing: .13em; }
.ticketRow { min-height: 78px; border-top: 1px solid #eceeeb; }
.ticketRow b { font-size: 11px; }
.ticketRow small { margin-top: 5px; display: block; color: #8b9697; font-size: 9px; }
.ticketRow em { padding: 6px 8px; color: #9e511d; background: #fff0e5; font-size: 8px; font-style: normal; text-transform: uppercase; }
.ticketRow em.normal { color: #286998; background: #e9f3fa; }
.ticketRow em.faible { color: #667174; background: #edf0ee; }
.ticketRow strong { color: #277652; font-size: 9px; }
.ticketRow select { width: 100%; padding: 8px 6px; border: 1px solid #d8ddda; color: #344145; background: #f7f8f6; font-size: 9px; }
.ticketEmpty { padding: 55px 28px; text-align: center; color: #6a7779; }
.ticketEmpty b { color: var(--ink); font-size: 16px; }
.ticketEmpty p { font-size: 11px; }
.contract { padding: 34px; color: white; background: var(--night); border-radius: 3px 24px 3px 24px; }
.contract h2 { margin: 34px 0 15px; font-size: 34px; line-height: 1.05; letter-spacing: -.05em; }
.contract > p { color: #829295; font-size: 10px; }
.contract dl { margin: 40px 0; }
.contract dl div { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.16); }
.contract dt { color: #748588; font-size: 8px; text-transform: uppercase; letter-spacing: .13em; }
.contract dd { margin: 7px 0 0; font-size: 11px; }
.contract a { padding: 14px 0; display: block; border-bottom: 1px solid var(--electric); color: var(--electric); font-size: 10px; font-weight: 800; }
.contractAction { width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid var(--electric); color: var(--electric); background: transparent; text-align: left; font-size: 10px; font-weight: 800; cursor: pointer; }

.operatorPanel { margin-top: 24px; background: white; border: 1px solid #d7dbd8; }
.userHead, .userRow { padding: 15px 28px; display: grid; grid-template-columns: minmax(230px, 1.2fr) minmax(170px, 1fr) 120px 120px; gap: 20px; align-items: center; }
.userHead { color: #7c8788; background: #f3f4f1; font-size: 8px; text-transform: uppercase; letter-spacing: .13em; }
.userRow { min-height: 72px; border-top: 1px solid #eceeeb; color: #465256; font-size: 10px; }
.userRow b { display: block; color: var(--ink); font-size: 11px; }
.userRow small { margin-top: 5px; display: block; color: #8b9697; font-size: 9px; }
.userRow em { padding: 6px 8px; color: #16668a; background: #e7f6fb; font-size: 8px; font-style: normal; text-transform: uppercase; }
.userRow button { padding: 8px 0; border: 0; border-bottom: 1px solid #7d888a; color: #4e5a5d; background: transparent; font-size: 9px; font-weight: 800; cursor: pointer; }
.userRow strong { color: #277652; font-size: 9px; }

.portalDenied { width: min(820px, calc(100% - 40px)); margin: 90px auto; padding: clamp(35px, 6vw, 75px); color: white; background: radial-gradient(circle at 15% 20%, #16444e, var(--night) 60%); border-radius: 4px 30px 4px 30px; }
.portalDenied > small { color: var(--electric); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .18em; }
.portalDenied h1 { margin: 24px 0; font-size: clamp(44px, 6vw, 78px); line-height: .94; letter-spacing: -.06em; text-transform: uppercase; }
.portalDenied p { max-width: 650px; color: #a8b7ba; line-height: 1.75; }
.portalDenied p strong { color: white; }
.portalDenied > div { margin-top: 35px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.portalDenied > div > a:last-child { color: #9bacaf; font-size: 10px; border-bottom: 1px solid #566c70; }

.modal { position: fixed; inset: 0; z-index: 50; padding: 20px; display: grid; place-items: center; background: rgba(1,8,10,.84); }
.modal form { width: min(520px, 100%); max-height: 92vh; overflow: auto; padding: 38px; position: relative; background: white; box-shadow: 0 30px 100px rgba(0,0,0,.45); }
.modal h2 { margin: 10px 0 28px; font-size: 34px; letter-spacing: -.05em; }
.modal > form > small { color: var(--electric-deep); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; }
.close { position: absolute; top: 15px; right: 18px; padding: 5px; border: 0; background: transparent; font-size: 25px; cursor: pointer; }
.formError { margin: 12px 0; color: #a33f20; font-size: 10px; line-height: 1.5; }

/* Administration WordPress */
.adminPortal { background: #e9ebe7; }
.adminShell { min-height: calc(100vh - 78px); display: grid; grid-template-columns: 250px 1fr; }
.adminNav { padding: 46px 28px; display: flex; flex-direction: column; color: #819194; background: var(--night); }
.adminNav > b { margin-bottom: 55px; color: white; font-size: 13px; letter-spacing: .08em; }
.adminNav nav { display: flex; flex-direction: column; }
.adminNav nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 10px; font-weight: 700; }
.adminNav nav a.active { color: var(--electric); }
.adminNav > small { margin-top: auto; color: #536367; font-size: 9px; line-height: 1.7; text-transform: uppercase; letter-spacing: .12em; }
.adminWorkspace { min-width: 0; }
.adminHero { padding: 72px clamp(28px, 6vw, 105px); display: grid; grid-template-columns: 1fr 330px; gap: 7vw; align-items: end; color: white; background: radial-gradient(circle at 12% 20%, #16434c, var(--night) 60%); }
.adminHero h1 { margin: 28px 0; font-size: clamp(58px, 6.6vw, 102px); line-height: .86; letter-spacing: -.07em; text-transform: uppercase; }
.adminHero h1 em { color: var(--electric); font-style: normal; }
.adminHero p { max-width: 650px; color: #9aabad; font-size: 14px; line-height: 1.75; }
.wpButton { min-height: 115px; padding: 20px; display: grid; grid-template-columns: 44px 1fr 20px; gap: 16px; align-items: center; color: var(--ink); background: var(--electric); border-radius: 3px 20px 3px 20px; }
.wpButton.connected { background: #fff; }
.wpIcon { width: 42px; height: 42px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; font-family: Georgia, serif; font-size: 22px; font-weight: 700; }
.wpButton small { margin-bottom: 6px; display: block; color: #31505a; font-size: 8px; text-transform: uppercase; letter-spacing: .12em; }
.wpButton > span:nth-child(2) { font-size: 12px; font-weight: 800; }
.adminMetrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #cbd0cc; border-bottom: 1px solid #cbd0cc; }
.adminMetrics article { min-height: 150px; padding: 28px clamp(20px, 3vw, 48px); display: flex; flex-direction: column; justify-content: space-between; background: white; }
.adminMetrics span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .13em; }
.adminMetrics b { font-size: 40px; letter-spacing: -.05em; }
.adminMetrics .wordStatus { color: var(--electric-deep); font-size: 29px; }
.contentTypes { padding: 100px clamp(28px, 6vw, 105px); display: grid; grid-template-columns: .7fr 1.3fr; gap: 8vw; }
.adminSectionTitle h2 { margin: 28px 0; font-size: clamp(45px, 5vw, 76px); line-height: .95; letter-spacing: -.06em; text-transform: uppercase; }
.contentTypes > div:last-child { border-top: 1px solid var(--line); }
.contentTypes article { min-height: 115px; padding: 22px 0; display: grid; grid-template-columns: 45px 1fr 30px; gap: 20px; align-items: center; border-bottom: 1px solid var(--line); }
.contentTypes article > span { color: var(--electric-deep); font-size: 10px; }
.contentTypes h3 { margin: 0 0 7px; font-size: 24px; letter-spacing: -.04em; }
.contentTypes p { margin: 0; color: var(--muted); font-size: 11px; }
.contentTypes article > b { font-size: 16px; }
.wordpressSetup { padding: 100px clamp(28px, 6vw, 105px); display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; color: white; background: var(--night); }
.wordpressSetup h2 { margin: 28px 0; font-size: clamp(43px, 4.7vw, 72px); line-height: .96; letter-spacing: -.055em; text-transform: uppercase; }
.wordpressSetup p { color: #95a5a7; font-size: 14px; line-height: 1.8; }
.wordpressSetup ol { margin: 45px 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.18); }
.wordpressSetup li { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.18); color: #bbc6c8; font-size: 11px; }
.wordpressSetup li span { margin-right: 25px; color: var(--electric); }
.wordpressSetup a { padding: 14px 0; display: inline-block; border-bottom: 1px solid var(--electric); color: var(--electric); font-size: 10px; font-weight: 800; }

@media (max-width: 1000px) {
  .recruitHero, .jobs, .apply, .contentTypes, .wordpressSetup { grid-template-columns: minmax(0, 1fr); }
  .recruitIntro { max-width: 580px; }
  .clientGrid { grid-template-columns: 1fr; }
  .adminShell { grid-template-columns: 1fr; }
  .adminNav { display: none; }
  .adminHero { grid-template-columns: 1fr; }
  .wpButton { max-width: 380px; }
}

@media (max-width: 720px) {
  .portalHeader { height: 70px; padding: 0 18px; }
  .portalLogo { width: 78px; height: 56px; }
  .portalIdentity > span { display: none; }
  .portalIdentity > a { min-width: 125px; }
  .recruitHero { min-height: 590px; padding: 65px 20px; }
  .recruitHero h1 { font-size: clamp(42px, 12vw, 59px); line-height: .95; }
  .recruitImage { height: 58vh; min-height: 450px; }
  .jobs, .apply { padding: 80px 20px; }
  .jobs h2, .apply h2 { font-size: clamp(32px, 8.7vw, 45px); line-height: 1.05; }
  .jobs article { grid-template-columns: 32px minmax(0, 1fr); gap: 18px; }
  .jobs article a { grid-column: 2; }
  .apply form, .success { padding: 25px; }
  .apply .primary { min-width: 0; width: 100%; }
  .apply input, .apply select, .apply textarea { min-width: 0; }
  .clientWrap { padding: 25px 14px 70px; }
  .clientHero { padding: 36px 24px; grid-template-columns: 1fr; border-radius: 3px 20px 3px 20px; }
  .clientHero h1 { font-size: 46px; }
  .clientStats { grid-template-columns: 1fr 1fr; }
  .clientStats article { min-height: 120px; padding: 18px; }
  .ticketPanel { overflow: auto; }
  .ticketHead, .ticketRow { min-width: 760px; }
  .ticketHead.operator, .ticketRow.operator { min-width: 900px; }
  .operatorPanel { overflow: auto; }
  .userHead, .userRow { min-width: 720px; }
  .adminHero, .contentTypes, .wordpressSetup { padding: 70px 20px; }
  .adminHero h1 { font-size: 54px; }
  .adminMetrics { grid-template-columns: 1fr; }
  .adminMetrics article { min-height: 115px; }
  .contentTypes article { grid-template-columns: 34px 1fr 20px; }
  .wordpressSetup h2 { font-size: 42px; }
  .modal form { padding: 28px 22px; }
}
