@font-face {
  font-family: "Work Sans";
  src: url("assets/WorkSans-Regular.ttf") format("truetype");
  font-weight: 400;
}
@font-face {
  font-family: "Work Sans";
  src: url("assets/WorkSans-Bold.ttf") format("truetype");
  font-weight: 700;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/IBMPlexMono-Regular.ttf") format("truetype");
  font-weight: 400;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/IBMPlexMono-Bold.ttf") format("truetype");
  font-weight: 700;
}

:root {
  --navy: #f4f6f8;
  --panel: #142848;
  --panel-light: #142848;
  --off-white: #F5F7FA;
  --slate: #8FA3BF;
  --cyan: #e97d22;
  --amber: #F2A93B;
  --coral: #ffffff;
  --violet: #8B7FE8;
  --radius: 16px;
}

.top-bar {
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 10px 20px;
    margin-bottom: 0px; /* espace avant le formulaire */
}

.top-bar-content{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:18px;
}

.top-logo {
    height: 40px; /* ajuste selon la taille désirée */
    width: auto;
}

.separator {
    border-left: 1px solid #ccc;  /* trait vertical fin gris clair */
    height: 40px;                  /* même hauteur que les logos */
    margin: 0 15px;                /* espace avant/après le trait */
}


* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--navy);
  color: var(--off-white);
  font-family: "Work Sans", system-ui, sans-serif;
}



.page {
  position: relative;
  z-index: 1;
  max-width: 840px;
  margin: 0 auto;
  padding: 30px 24px 96px;
}

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin: 0 0 16px;
  font-weight: 700;
}

.hero h1 {
  font-size: 34px;
  color: #142848;
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 700;
  text-align: center;
}

.hero h3 {
  font-size: 17.5px;
  color:#e97d22;
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 700;
  text-align: center;
}

.hero-sub {
  color: black;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 40px;
  text-align: center;
}

.panel {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid var(--panel-light);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  margin-bottom: 20px;
}

.section-title {
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 36px 0 16px;
  padding-top: 20px;
  border-top: 1px solid var(--panel-light);
}

.section-title:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.section-note {
  color: var(--slate);
  font-size: 13px;
  margin: -8px 0 16px;
}

.optional, .hint {
  color: var(--slate);
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  font-size: 12px;
}

.choice-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.choice {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: "Work Sans", sans-serif;
  font-size: 14px;
  color: var(--off-white);
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}

.choice input[type="radio"],
.choice input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--cyan);
}

.choice-autre {
  flex-wrap: wrap;
}

.autre-input {
  flex: 1;
  min-width: 140px;
  padding: 6px 10px;
  font-size: 13px;
}

.autre-input:disabled {
  opacity: 0.4;
}

label {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--slate);
  margin-bottom: 8px;
  text-transform: uppercase;
}


input,
select,
textarea {
    width: 100%;
    background: #ffffff;
    color: #142848;
    border: 1px solid #d8dee9;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    font-family: "Work Sans", sans-serif;
    transition: .2s;
}


input:focus,
textarea:focus,
select:focus{
    outline:none;
    border-color:#e97d22;
    box-shadow:0 0 0 3px rgba(233,125,34,.15);
}

input:invalid:not(:placeholder-shown) {
  border-color: var(--coral);
}

textarea { resize: vertical; }

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238FA3BF' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

select option { background: var(--navy); color: var(--off-white); }

.char-count {
  display: block;
  text-align: right;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--slate);
  margin-top: 6px;
}

.error {
  display: block;
  color: #ff6b6b;
  font-weight: 600;
  font-size: 13px;
  margin-top: 6px;
  min-height: 16px;
}

.form-error {
  color: var(--coral);
  font-size: 14px;
  text-align: center;
  min-height: 20px;
  margin: 16px 0 0;
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--cyan);
  color: var(--navy);
  border: none;
  border-radius: 10px;
  padding: 15px 20px;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.submit-btn:hover { opacity: 0.9; }
.submit-btn:active { transform: scale(0.99); }

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.submit-btn.loading .btn-label::after {
  content: "…";
}

.success-panel { text-align: center; }

.success-eyebrow { justify-content: center; display: flex; }

.success-panel h2 {
  font-size: 26px;
  margin: 0 0 12px;
}

.success-sub {
  color: var(--slate);
  font-size: 14px;
  margin: 0 0 28px;
}

.badge-preview {
  background: var(--navy);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.badge-preview img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.download-btn { margin-top: 0; }

@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .panel { padding: 24px; }
}


/* Responsive logo en version mobile */

@media (max-width:768px){

    .top-bar{
        padding:10px;
    }

    .top-bar-content{
        gap:12px;
    }

    .top-logo{
        height:30px;
    }

    .separator{
        display:none;
    }

}


.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-btn.loading {
  cursor: wait;
  opacity: .85;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
  display: none;
}

.submit-btn.loading .spinner{
  display:block;
}

@keyframes spin{
  to{
    transform:rotate(360deg);
  }
}