@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;500;600;700&display=swap');

:root {
  --night: #131C42;
  --titan: #2F4793;
  --sky: #4FB0E6;
  --energy: #0FB5A6;
  --energy-deep: #0A8378;
  --off-white: #F5F7FA;
  --pearl: #E8ECF1;
  --slate: #5A6678;
  --white: #FFFFFF;
  --danger: #9D2D2D;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--off-white); color: var(--night); }
.shell { max-width: 1140px; margin: 0 auto; padding: 48px 24px 64px; }
.topbar { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 28px; }
.topbar.compact { margin-bottom: 24px; }
.eyebrow { margin: 0 0 8px; color: var(--titan); font-family: "Inter", "Segoe UI", Arial, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .07em; }
h1, h2, h3 { margin: 0; font-family: "Inter", "Segoe UI", Arial, sans-serif; }
h1 { font-size: clamp(31px, 4vw, 46px); font-weight: 700; line-height: 1.2; letter-spacing: -.03em; }
h2 { font-size: 23px; font-weight: 600; line-height: 1.25; }
h3 { font-size: 17px; font-weight: 500; line-height: 1.3; margin-top: 22px; }
.subtitle { max-width: 670px; color: var(--slate); font-size: 18px; line-height: 1.5; margin: 12px 0 0; }
.card { background: var(--white); border: 1px solid var(--pearl); border-radius: 18px; box-shadow: 0 12px 28px rgba(19, 28, 66, .06); }
.form-card { max-width: 800px; padding: 32px; }
label, legend { color: var(--night); font-weight: 600; display: block; font-size: 15px; }
.required { color: var(--energy-deep); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin-left: 4px; }
input[type="text"], input[type="url"], input[type="password"] { width: 100%; margin-top: 9px; padding: 15px 16px; border: 1px solid #C8D0DA; background: #FFF; border-radius: 10px; color: var(--night); font: inherit; }
input:focus { outline: 3px solid rgba(79, 176, 230, .25); border-color: var(--sky); }
.optional-fields { margin-top: 24px; padding: 17px 0 0; border-top: 1px solid var(--pearl); }
.optional-fields summary { cursor: pointer; color: var(--titan); font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding-top: 22px; }
fieldset { border: 0; padding: 0; margin: 22px 0 0; }
.radio { display: inline-flex; align-items: center; margin: 12px 20px 0 0; color: var(--slate); font-weight: 500; cursor: pointer; }
.radio input { margin: 0 7px 0 0; accent-color: var(--titan); }
.primary-button { margin-top: 28px; border: 0; border-radius: 10px; background: var(--titan); color: var(--white); padding: 15px 22px; font: inherit; font-weight: 700; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.primary-button:hover { background: var(--night); transform: translateY(-1px); }
.helper, .request-reference { color: var(--slate); font-size: 13px; line-height: 1.45; margin-bottom: 0; }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.info-card { padding: 22px; border-radius: 14px; background: var(--pearl); }
.info-card h2 { color: var(--titan); font-size: 18px; }
.info-card p { color: var(--slate); line-height: 1.5; margin-bottom: 0; }
.secondary-link, .quiet-link { color: var(--titan); font-weight: 700; text-decoration: none; }
.secondary-link { white-space: nowrap; padding-top: 7px; }
.result-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; }
.decision-card, .profile-card, .details-card, .candidates-card, .history-card, .error-card { padding: 30px; }
.category-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.confidence { border-radius: 99px; padding: 7px 10px; background: rgba(255,255,255,.75); color: var(--night); font-weight: 700; font-size: 13px; }
.discount { margin: 30px 0 0; font-family: "Sora", sans-serif; font-size: 49px; font-weight: 700; letter-spacing: -.05em; }
.margin { margin: 3px 0 0; font-size: 18px; }
.category-bronze { background: #F7EAD7; border-color: #E3B77B; }
.category-argent { background: #E7EEF4; border-color: #A7B8C6; }
.category-or { background: #FFF3D0; border-color: #E7C556; }
.category-non_identifie { background: #F0F2F5; border-color: #C8D0DA; }
.approval-banner { margin-top: 28px; padding: 13px 15px; border-radius: 9px; background: rgba(19, 28, 66, .1); font-weight: 700; line-height: 1.4; }
.approval-banner.positive { background: rgba(15, 181, 166, .16); color: #075C54; }
.approval-banner.neutral { background: rgba(90, 102, 120, .12); color: #44505F; }
dl { margin: 24px 0 0; }
dl div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--pearl); }
dt { color: var(--slate); }
dd { margin: 0; font-weight: 700; text-align: right; }
.details-card { margin-top: 20px; }
ul { margin: 17px 0 0; padding-left: 20px; }
li { margin: 8px 0; line-height: 1.45; }
.muted-list { color: var(--slate); }
.error-card { max-width: 760px; border-color: #E3B4B4; background: #FFF9F9; }
.error-card h2 { margin-top: 8px; color: var(--danger); }
.candidate-list { display: grid; gap: 12px; margin-top: 22px; }
.candidate { display: flex; align-items: flex-start; gap: 13px; padding: 16px; border: 1px solid var(--pearl); border-radius: 11px; cursor: pointer; }
.candidate:hover { border-color: var(--sky); background: #FAFCFF; }
.candidate input { margin-top: 4px; accent-color: var(--titan); }
.candidate strong, .candidate small { display: block; }
.candidate small { margin-top: 5px; color: var(--slate); line-height: 1.35; }
.quiet-link { display: inline-block; margin-top: 22px; font-size: 14px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th { text-align: left; color: var(--slate); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
th, td { padding: 13px 10px; border-bottom: 1px solid var(--pearl); }
td { font-size: 14px; }
.tag { display: inline-block; border-radius: 99px; padding: 5px 8px; font-size: 12px; font-weight: 700; }
.tag-bronze { background: #F7EAD7; }
.tag-argent { background: #E7EEF4; }
.tag-or { background: #FFF3D0; }
.tag-non_identifie { background: #F0F2F5; }

@media (max-width: 760px) {
  .shell { padding: 28px 16px 42px; }
  .topbar, .result-layout { display: block; }
  .brand-heading { display: block; }
  .brand-logo-box { width: 130px; margin-bottom: 14px; }
  .login-brand-zone { min-height: 225px; padding: 34px 20px 70px; }
  .login-shell { margin-top: -48px; }
  .secondary-link { display: inline-block; margin-top: 18px; }
  .form-card, .decision-card, .profile-card, .details-card, .candidates-card, .history-card, .error-card { padding: 22px; }
  .grid, .info-grid { grid-template-columns: 1fr; }
  .profile-card { margin-top: 16px; }
  .discount { font-size: 43px; }
  .category-line { align-items: flex-start; flex-direction: column; }
}

.login-body { min-height: 100vh; display: flex; flex-direction: column; background: var(--off-white); }
.login-brand-zone { min-height: 290px; display: grid; place-items: center; padding: 44px 24px 92px; background: linear-gradient(135deg, var(--night), var(--titan)); }
.login-brand-logo { display: block; width: min(290px, 72vw); height: auto; }
.login-shell { width: min(100% - 32px, 510px); margin: -64px auto 64px; }
.login-card { padding: 36px; }
.login-eyebrow { margin-bottom: 8px; }
.login-card .subtitle { font-size: 16px; }
.login-card form > label { margin-top: 20px; }
.login-button { width: 100%; margin-top: 20px; }
.password-field { position: relative; margin-top: 9px; }
.password-input { min-height: 56px; margin-top: 0 !important; padding: 15px 108px 15px 16px !important; border-color: #C9D2DF !important; background: #FBFCFF !important; box-shadow: inset 0 1px 2px rgba(19, 28, 66, .04); transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.password-input::placeholder { color: #8793A5; }
.password-input:focus { background: #FFF !important; border-color: var(--titan) !important; box-shadow: 0 0 0 4px rgba(47, 71, 147, .14) !important; outline: none; }
.password-toggle { position: absolute; top: 8px; right: 8px; min-width: 86px; height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: #E8EEF9; color: var(--titan); font: 600 13px/1 "Inter", "Segoe UI", Arial, sans-serif; cursor: pointer; transition: background .18s ease, color .18s ease; }
.password-toggle:hover, .password-toggle:focus-visible { background: var(--titan); color: var(--white); outline: none; }
.brand-heading { display: flex; align-items: flex-start; gap: 18px; }
.brand-logo-box { flex: 0 0 auto; width: 118px; padding: 10px 12px; background: var(--night); border-radius: 10px; }
.brand-logo-box img { display: block; width: 100%; height: auto; }
.brand-heading .subtitle { margin-bottom: 0; }
.field-space { margin-top: 20px; }
.login-error { margin: 20px 0 0; padding: 12px; border-radius: 8px; background: #FFF0F0; color: var(--danger); font-weight: 600; }

/* Espace de travail commercial Titanair */
.app-body { background: var(--off-white); color: var(--night); }
.app-header-band { background: var(--night); }
.app-shell { width: min(100% - 48px, 1320px); margin: 0 auto; padding: 0 0 64px; }
.app-navigation { width: min(100% - 48px, 1320px); min-height: 84px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.app-brand { display: inline-flex; align-items: center; gap: 16px; color: inherit; text-decoration: none; }
.app-brand-logo { display: flex; align-items: center; width: 150px; min-height: 48px; padding: 0; }
.app-brand-logo img { display: block; width: 100%; height: auto; }
.app-brand-copy { display: grid; gap: 2px; color: #BFCBE6; font: 500 11px/1.2 "Inter", "Segoe UI", Arial, sans-serif; letter-spacing: .1em; }
.app-brand-copy strong { color: var(--white); font-size: 15px; letter-spacing: 0; }
.app-actions { display: flex; align-items: center; gap: 18px; }
.recent-link { color: var(--white); font-size: 14px; font-weight: 700; text-decoration: none; }
.recent-link:hover { color: var(--sky); }
.logout-form { margin: 0; }
.logout-button { border: 1px solid rgba(255, 255, 255, .35); border-radius: 8px; padding: 9px 12px; background: transparent; color: var(--white); font: 500 13px/1 "Inter", "Segoe UI", Arial, sans-serif; cursor: pointer; }
.logout-button:hover { border-color: var(--sky); color: var(--night); background: var(--sky); }
.app-hero { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding: 62px 0 46px; overflow: hidden; }
.app-hero::after { content: ""; position: absolute; right: 14%; bottom: -48px; width: 360px; height: 118px; border: 1px solid rgba(79, 176, 230, .45); border-radius: 50%; transform: rotate(-10deg); pointer-events: none; }
.hero-eyebrow { position: relative; z-index: 1; color: var(--titan); font-size: 12px; letter-spacing: .11em; }
.app-hero h1 { position: relative; z-index: 1; max-width: 760px; font-size: clamp(42px, 5vw, 62px); line-height: 1.08; }
.hero-copy { position: relative; z-index: 1; max-width: 700px; margin: 20px 0 0; color: var(--slate); font-size: 19px; font-weight: 300; line-height: 1.55; }
.policy-marker { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 10px; min-width: 250px; padding: 15px 0 15px 18px; border-left: 3px solid var(--energy); color: var(--night); background: rgba(255, 255, 255, .65); }
.policy-marker span:last-child { display: grid; gap: 5px; font-size: 13px; }
.policy-marker strong { font-weight: 700; }
.policy-marker small { color: var(--slate); font-size: 12px; }
.policy-dot { width: 8px; height: 8px; flex: 0 0 8px; margin-top: 5px; border-radius: 50%; background: var(--energy); }
.evaluation-workspace { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(310px, .75fr); gap: 26px; align-items: stretch; }
.evaluation-card { padding: 40px; border: 1px solid #DEE4EC; border-top: 4px solid var(--titan); border-radius: 14px; background: var(--white); box-shadow: 0 20px 42px rgba(19, 28, 66, .08); }
.evaluation-card-head { display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start; padding-bottom: 29px; border-bottom: 1px solid var(--pearl); }
.section-number { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--titan); color: var(--white); font: 600 14px/1 "Inter", "Segoe UI", Arial, sans-serif; }
.evaluation-card-head .eyebrow { margin-bottom: 7px; color: var(--titan); }
.evaluation-card h2 { font-size: 28px; font-weight: 600; }
.evaluation-card-head p:last-child { margin: 8px 0 0; color: var(--slate); font-size: 15px; font-weight: 300; line-height: 1.5; }
.evaluation-form { padding-top: 30px; }
.evaluation-form > label { font-size: 15px; }
.company-input { min-height: 62px; margin-top: 11px !important; padding: 16px 18px !important; border: 1px solid #BAC6D5 !important; border-radius: 10px !important; background: #FBFCFF !important; font-size: 17px !important; box-shadow: inset 0 1px 2px rgba(19, 28, 66, .04); }
.company-input:focus { border-color: var(--titan) !important; box-shadow: 0 0 0 4px rgba(47, 71, 147, .13) !important; background: var(--white) !important; outline: none; }
.enhanced-details { margin-top: 24px; padding: 16px 0 0; border-top: 1px solid var(--pearl); }
.enhanced-details summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--titan); font-size: 14px; font-weight: 700; cursor: pointer; list-style: none; }
.enhanced-details summary::-webkit-details-marker { display: none; }
.enhanced-details summary::before { content: "+"; display: grid; place-items: center; width: 22px; height: 22px; margin-right: 9px; border-radius: 50%; background: #E8EEF9; color: var(--titan); font-size: 18px; font-weight: 400; }
.enhanced-details summary span { margin-right: auto; }
.enhanced-details summary small { color: var(--slate); font-size: 12px; font-weight: 400; }
.enhanced-details[open] summary::before { content: "−"; }
.enhanced-details .grid { gap: 16px; }
.enhanced-details fieldset { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--pearl); }
.enhanced-details legend { margin-bottom: 2px; font-size: 14px; }
.evaluation-actions { display: flex; align-items: center; gap: 22px; margin-top: 30px; }
.evaluation-button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; margin: 0; padding: 14px 22px; border-radius: 9px; font-size: 15px; }
.evaluation-button span { font-size: 20px; line-height: 1; }
.evaluation-actions .helper { max-width: 340px; margin: 0; font-size: 12px; }
.decision-guide { display: flex; flex-direction: column; padding: 38px 34px 30px; border-radius: 14px; background: var(--night); color: var(--white); overflow: hidden; }
.decision-guide .eyebrow { color: var(--sky); }
.decision-guide h2 { max-width: 300px; font-size: 29px; font-weight: 600; line-height: 1.18; }
.guide-steps { display: grid; gap: 23px; margin: 28px 0 auto; padding: 0; list-style: none; }
.guide-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 13px; margin: 0; }
.guide-steps li > span { color: var(--sky); font: 600 12px/1.4 "Inter", "Segoe UI", Arial, sans-serif; letter-spacing: .08em; }
.guide-steps strong { display: block; margin-bottom: 4px; color: var(--white); font-size: 15px; }
.guide-steps p { margin: 0; color: #C6CEE3; font-size: 13px; font-weight: 300; line-height: 1.48; }
.guide-footer { display: flex; align-items: flex-start; gap: 9px; margin-top: 38px; padding-top: 18px; border-top: 1px solid rgba(232, 236, 241, .2); color: #DCE4F4; font-size: 12px; line-height: 1.45; }
.guide-check { display: grid; place-items: center; width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%; background: var(--energy); color: var(--night); font-size: 12px; font-weight: 700; }
.app-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 26px; border-top: 1px solid #DCE3EB; border-bottom: 1px solid #DCE3EB; }
.app-principles article { display: flex; align-items: flex-start; gap: 14px; padding: 25px 22px; }
.app-principles article + article { border-left: 1px solid #DCE3EB; }
.principle-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; font-size: 20px; font-weight: 600; }
.principle-air { background: #E5F4FC; color: #167DB6; }
.principle-control { background: #E8EEF9; color: var(--titan); }
.principle-safe { background: #DDF4F1; color: var(--energy-deep); }
.app-principles h3 { margin: 0; color: var(--night); font-size: 16px; font-weight: 600; }
.app-principles p { margin: 5px 0 0; color: var(--slate); font-size: 13px; font-weight: 300; line-height: 1.45; }
@media (max-width: 900px) { .app-shell, .app-navigation { width: min(100% - 32px, 720px); } .app-hero { display: block; padding: 42px 0 34px; } .policy-marker { max-width: 330px; margin-top: 28px; } .evaluation-workspace { grid-template-columns: 1fr; } .decision-guide { min-height: auto; } .app-principles { grid-template-columns: 1fr; } .app-principles article + article { border-top: 1px solid #DCE3EB; border-left: 0; } }
@media (max-width: 620px) { .app-shell, .app-navigation { width: min(100% - 24px, 560px); } .app-navigation { min-height: 74px; } .app-brand-logo { width: 118px; } .app-brand-copy { display: none; } .app-actions { gap: 11px; } .recent-link { font-size: 12px; } .logout-button { padding: 8px 9px; font-size: 12px; } .app-hero h1 { font-size: 41px; } .hero-copy { font-size: 16px; } .policy-marker { padding-left: 14px; } .evaluation-card { padding: 27px 21px; } .evaluation-card-head { grid-template-columns: 38px 1fr; gap: 13px; } .section-number { width: 36px; height: 36px; } .evaluation-card h2 { font-size: 23px; } .evaluation-actions { display: block; } .evaluation-button { width: 100%; } .evaluation-actions .helper { max-width: none; margin-top: 13px; } .decision-guide { padding: 30px 24px; } }
