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

  * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
 *:focus { outline: none; }
  *:focus-visible { outline: 3px solid #ed2939 !important; outline-offset: 3px; box-shadow: none !important; }

  body {
    font-family: 'Inter', sans-serif;
    background: #0b0f1a;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
  }

  .tricolor-bar {
    height: 6px;
    background: linear-gradient(90deg, #002395 33.33%, #fff 33.33%, #fff 66.66%, #ed2939 66.66%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
  }

  nav {
    position: fixed;
    top: 6px;
    left: 0;
    right: 0;
    padding: 16px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(11, 15, 26, 0.92);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .logo {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .logo img {
    height: 1.8em;
    width: auto;
  }

  .logo .bleu { color: #002395; }
  .logo .rouge { color: #ed2939; }

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

  .nav-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s;
    font-weight: 500;
  }

  .nav-links a:active {
    opacity: 0.6;
  }

  .nav-links a:hover { color: #fff; }

  .nav-links .btn-nav {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px 28px;
    border-radius: 6px;
    color: #fff;
  }

  .nav-links .btn-nav:hover {
    background: #ed2939;
    border-color: #ed2939;
  }

  .page-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120vh;
    height: 120lvh;
    z-index: 0;
  }

  .page-bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .page-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11,15,26,0.94) 0%, rgba(0,24,74,0.9) 50%, rgba(11,15,26,0.95) 100%);
  }

  .form-section {
    position: relative;
    z-index: 1;
    padding: 140px 80px 80px;
    max-width: 720px;
    margin: 0 auto;
    min-height: 100vh;
  }

  .form-section h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
  }

  .form-section h1 .bleu { color: #002395; }
  .form-section h1 .rouge { color: #ed2939; }
  .form-section.network-locked { filter: grayscale(1); }
  .form-section.network-checking .cf-turnstile,
.form-section.network-locked .cf-turnstile { visibility: hidden; pointer-events: none; }
  #recruitForm.locked { opacity: 0.62; filter: grayscale(1); pointer-events: none; }
  .network-lock-help { line-height: 1.7; white-space: normal; }

  .form-section .subtitle {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    margin-bottom: 48px;
    letter-spacing: 1px;
  }

  .form-group { margin-bottom: 24px; }

  .form-group label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
    font-weight: 500;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s;
    outline: none;
  }

  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    border-color: #ed2939;
  }

  .form-group input::placeholder,
  .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
  }

  .form-group select {
    appearance: none;
    cursor: pointer;
  }

  .form-group select option { background: #0b0f1a; color: #fff; }

  .form-group textarea {
    resize: vertical;
    min-height: 120px;
  }

  .form-group input.user-error,
  .form-group select.user-error {
    border-color: #ed2939;
    box-shadow: 0 0 0 1px rgba(237, 41, 57, 0.3);
  }

  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .btn-submit {
    width: 100%;
    padding: 16px 36px;
    background: #ed2939;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
  }

  .btn-submit:hover {
    background: #cc202e;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(237, 41, 57, 0.3);
  }

  .btn-submit:active {
    transform: scale(0.95);
  }

  .btn-back {
    display: inline-block;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s;
  }

  .btn-back:hover { color: #fff; }
  .btn-back .arr {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    vertical-align: 1px;
    transition: transform 0.25s ease;
  }
  .arrow-right .arr { transform: rotate(45deg); margin-left: 8px; }
  .arrow-left .arr { transform: rotate(-135deg); margin-right: 8px; }
  .arrow-right:hover .arr { transform: rotate(45deg) translate(3px, -3px); }
  .arrow-left:hover .arr { transform: rotate(-135deg) translate(3px, -3px); }


  .form-section .note {
    margin-top: 16px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.25);
    text-align: center;
  }
  .confidentiality-consent { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0; color: rgba(255,255,255,.72); font-size: .82rem; }
  .confidentiality-consent input { width: auto; margin-top: 4px; accent-color: #ed2939; }
  .confidentiality-consent input.user-error { outline: 2px solid #ff9b95; outline-offset: 2px; border-radius: 2px; }
  .confidentiality-consent a { color: #fff; }
  .candidate { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; padding: 24px; margin-bottom: 20px; }
  .candidate .guardian { margin-top: 8px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); }
  .cand-title { font-family: Oswald, sans-serif; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; color: #fff; }
  .contact-title { font-family: Oswald, sans-serif; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 2px; margin: 8px 0 20px; }
  #recruitForm.locked, #recruitForm.cooldown-lock { opacity: 0.55; filter: grayscale(0.4); pointer-events: none; }
  .honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

  .confirmation {
    display: none;
    text-align: center;
    padding: 40px 0;
  }

  .confirmation .check {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(237, 41, 57, 0.1);
    border: 2px solid #ed2939;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    font-size: 2rem;
    color: #ed2939;
  }

  .confirmation .check.error {
    background: rgba(237, 41, 57, 0.14);
    border-color: #ed2939;
    color: #ed2939;
  }

  .confirmation .check.success {
    background: rgba(47, 191, 113, 0.14);
    border-color: #2fbf71;
    color: #2fbf71;
  }

  .confirmation.error,
  .confirmation.success {
    max-width: 620px;
    margin: 0 auto;
    padding: 44px 28px 40px;
    border-radius: 14px;
  }

  .confirmation.error {
    background: linear-gradient(180deg, rgba(237, 41, 57, 0.09), rgba(237, 41, 57, 0.03));
    border: 1px solid rgba(237, 41, 57, 0.28);
  }

  .confirmation.success {
    background: linear-gradient(180deg, rgba(47, 191, 113, 0.09), rgba(47, 191, 113, 0.03));
    border: 1px solid rgba(47, 191, 113, 0.28);
  }

  .confirmation.error h2 { color: #ed2939; }
  .confirmation.success h2 { color: #2fbf71; }
  .confirmation.error p,
  .confirmation.success p { max-width: 48ch; margin-left: auto; margin-right: auto; color: rgba(255, 255, 255, 0.78); }

  .btn-retry,
  .btn-confirm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 28px;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
  }
  .btn-retry:hover { border-color: #ed2939; background: rgba(237, 41, 57, 0.14); }
  .btn-confirm:hover { border-color: #2fbf71; background: rgba(47, 191, 113, 0.14); }
  .btn-retry:focus-visible, .btn-confirm:focus-visible { outline: 2px solid #ed2939; outline-offset: 3px; }
  .btn-confirm:focus-visible { outline-color: #2fbf71; }
  .btn-confirm .arr {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    vertical-align: 1px;
    transition: transform 0.25s ease;
  }

  .confirmation h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
  }

  .confirmation h2 .rouge { color: #ed2939; }

  .confirmation p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
    margin-bottom: 4px;
  }

  @media (max-width: 768px) {
    nav { padding: 16px 24px; }
    .form-section { padding: 120px 24px 60px; }
    .form-section h1 { overflow-wrap: anywhere; }
    .form-section .subtitle.network-lock-help { color: rgba(255,255,255,.88); line-height: 1.65; overflow-wrap: anywhere; }
    .confirmation.error, .confirmation.success { padding: 36px 18px 32px; }
    .form-row { grid-template-columns: 1fr; }
    .form-section h1 { font-size: 2rem; }
  }


  [data-i18n] { transition: opacity 0.22s ease; }
  body.lang-switching [data-i18n] { opacity: 0; }
  .lang-switch {
    position: relative;
    display: inline-block;
    margin-left: 20px;
  }
  .lang-btn {
  background: rgba(255,255,255,0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  box-shadow: 0 8px 22px rgba(0,0,0,.2); transition: transform .2s ease, box-shadow .2s ease;
  }
  .lang-btn .arrow { display: inline-block; transition: transform 0.3s ease; }
  .lang-switch.open .lang-btn .arrow { transform: rotate(180deg); }
   .lang-btn:hover { border-color: #fff; transform: translateY(-1px); box-shadow: 0 12px 26px rgba(0,0,0,.3); }
  .lang-dropdown {
    position: absolute;
    right: 0; left: auto; top: 100%;
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    min-width: 120px;
    z-index: 999;
    margin-top: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .lang-switch.open .lang-dropdown { opacity: 1; pointer-events: auto; }
  .lang-dropdown button {
    display: block; width: 100%; background: none; border: none;
    color: #ccc; padding: 8px 14px; text-align: left; cursor: pointer;
    font-size: 0.85rem; font-family: inherit;
  }
  .lang-dropdown button:hover { background: rgba(255,255,255,0.08); color: #fff; }


  .topbar { position: fixed; top: 0; left: 0; right: 0; display: flex; justify-content: flex-end; padding: 14px 24px; z-index: 100; box-sizing: border-box; }
  .topbar .lang-switch { position: relative; display: inline-block; margin-left: 0; }
  .topbar .lang-btn { background: rgba(255,255,255,0.08); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; border: 1px solid rgba(255,255,255,0.18); padding: 8px 14px; border-radius: 10px; cursor: pointer; font-size: 0.85rem; font-family: inherit; }
  .topbar .lang-btn .arrow { display: inline-block; transition: transform 0.3s ease; }
  .topbar .lang-switch.open .lang-btn .arrow { transform: rotate(180deg); }
  .topbar .lang-dropdown { position: absolute; right: 0; top: 100%; background: #1a1a2e; border: 1px solid rgba(255,255,255,0.15); border-radius: 10px; min-width: 120px; z-index: 999; margin-top: 4px; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
  .topbar .lang-switch.open .lang-dropdown { opacity: 1; pointer-events: auto; }
  .topbar .lang-dropdown button { display: block; width: 100%; background: none; border: none; color: #ccc; padding: 8px 14px; text-align: left; cursor: pointer; font-size: 0.85rem; font-family: inherit; }
  .topbar .lang-dropdown button:hover { background: rgba(255,255,255,0.08); color: #fff; }
  .topbar .lang-btn:focus-visible, .topbar .lang-dropdown button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Former inline style attributes moved to this stylesheet. */
.csp-inline-1 { vertical-align:-2px }
.csp-inline-2 { display:none; }
.csp-inline-3 { margin:8px 0 16px; }
.csp-inline-4 { text-align:center; }
.csp-inline-5 { color:#fff; }


.network-gate-recovery { max-width: 720px; margin: -24px auto 48px; padding: 24px; color: rgba(255,255,255,.85); text-align: center; line-height: 1.7; }
.network-gate-recovery[hidden] { display: none; }
.network-gate-recovery button { margin: 16px 0; padding: 12px 20px; border: 1px solid rgba(255,255,255,.24); border-radius: 6px; background: #ed2939; color: #fff; font: inherit; cursor: pointer; }
.network-gate-recovery a { color: #fff; text-underline-offset: 3px; }
.network-gate-recovery button:disabled { opacity: .7; cursor: wait; }


/* Keep this override after the base recovery-panel rule so it wins in the cascade. */
@media (max-width: 768px) {
  .network-gate-recovery { margin: 72px auto 24px; padding: 16px 20px; overflow-wrap: anywhere; }
}
