@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', system-ui, sans-serif;
    background: oklch(98.5% 0.003 260);
    color: oklch(22% 0.015 260);
}

a,
a:link,
a:visited {
    color: oklch(50% 0.16 265);
    text-decoration: none
}

a:hover {
    color: oklch(40% 0.18 265);
}

h1 {
    font-size: 31px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-align: center;
    margin-bottom: 8px;
}

/******** HEADER **********/

.navbar {
    background-color: oklch(20% 0.01 260);
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

.navbar .contenunav {
    width: 1100px;
    margin: auto;
    padding: 12px;
}

.navbar .contenunav a {
    color: oklch(75% 0.01 260);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: ease-in-out color .15s, background-color .15s;
    padding: 8px 14px;
    background: oklch(30% 0.01 260 / 0.6);
    border-radius: 6px;
    margin-left: 12px;
}

.navbar .contenunav a:hover {
    color: white;
    background: oklch(30% 0.01 260);
}

/********* MAIN *********/

.main {
    width: 1100px;
    margin: auto;
    padding-top: 56px;
    padding-bottom: 80px;
}

.eyebrow {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: oklch(50% 0.16 265);
    text-align: center;
    margin-bottom: 10px;
}

.sub {
    color: oklch(48% 0.02 260);
    font-size: 16px;
    text-align: center;
    margin: 0 auto 40px;
    max-width: 480px;
}

form {
    width: 50%;
    margin: auto;
}

.card {
    background: white;
    border: 1px solid oklch(91% 0.005 260);
    border-radius: 14px;
    padding: 28px 28px 8px;
    margin-bottom: 20px;
}

.card h2 {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: oklch(30% 0.02 260);
    margin: 0 0 20px;
}

form div {
    margin-bottom: 15px;
}

.card .row2 {
    display: flex;
    gap: 16px;
}

.card .row2 > div {
    flex: 1;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: oklch(38% 0.02 260);
    margin-bottom: 7px;
}

.hint {
    font-weight: 400;
    color: oklch(58% 0.01 260);
    font-size: 13px;
    margin-left: 4px;
}

form div input[type=text],
form div input:not([type]),
form select {
    width: 100%;
    height: 42px;
    border: 1px solid oklch(88% 0.005 260);
    border-radius: 9px;
    padding: 0 14px;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    color: oklch(22% 0.015 260);
    background: oklch(99.3% 0.002 260);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

form div input[type=text]:focus,
form select:focus {
    border-color: oklch(55% 0.18 265);
    box-shadow: 0 0 0 3px oklch(55% 0.18 265 / 0.15);
}

form div input[type=text]::placeholder {
    color: oklch(68% 0.01 260);
}

form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23667' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 34px;
}

form .checkbox {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

form .checkbox span {
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
    line-height: normal;
    border: 1px solid oklch(88% 0.005 260);
    border-radius: 999px;
    padding: 8px 14px 8px 10px;
    background: oklch(99.3% 0.002 260);
}

form .checkbox span input {
    width: 16px;
    height: 16px;
    accent-color: oklch(55% 0.18 265);
    float: none;
    margin: 0;
    padding: 0;
}

form .checkbox span label {
    padding-top: 0;
    display: block;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: oklch(30% 0.02 260);
}

form .field-note {
    padding-top: 4px;
}

form .submit {
    width: 100%;
    height: 48px;
    padding: 0;
    margin: 32px 0 0;
    border: none;
    border-radius: 10px;
    background: oklch(55% 0.18 265);
    color: white;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: background-color .15s;
}

form .submit:hover {
    background: oklch(48% 0.18 265);
}

pre {
    background-color: #0d0d0d;
    border: 1px solid #e3e3e3;
    color: white;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    width: 800px;
    height: 800px;
}

/* Style du bouton de copie */
#btnCopy {
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #888888;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#btnCopy:hover {
    background-color: #3c3c3c;
}

/********* STEPS (fil d'ariane) *********/

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.03em;
    color: oklch(60% 0.01 260);
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1.5px solid oklch(82% 0.01 260);
    background: white;
    color: oklch(55% 0.02 260);
    font-size: 12px;
    font-weight: 600;
}

.step-label {
    font-weight: 600;
    text-transform: uppercase;
}

.step-line {
    width: 40px;
    height: 1.5px;
    background: oklch(85% 0.01 260);
}

.step.done .step-num {
    border-color: oklch(55% 0.18 265);
    background: oklch(55% 0.18 265);
    color: white;
}

.step.done .step-label {
    color: oklch(38% 0.02 260);
}

.step.active .step-num {
    border-color: oklch(55% 0.18 265);
    color: oklch(55% 0.18 265);
}

.step.active .step-label {
    color: oklch(30% 0.02 260);
}

.step-line.done {
    background: oklch(55% 0.18 265);
}

/********* BROWSER PREVIEW (résultat) *********/

.btn-copy {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: oklch(55% 0.18 265);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color .15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-copy:hover {
    background: oklch(48% 0.18 265);
}

.step-link {
    display: block;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color .15s;
}

.step-link:hover {
    background: oklch(93% 0.005 260);
}

.browser {
    max-width: 820px;
    margin: 0 auto;
    border: 1px solid oklch(88% 0.005 260);
    border-radius: 14px;
    overflow: hidden;
    background: white;
    box-shadow: 0 20px 40px -20px oklch(20% 0.02 260 / 0.18);
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: oklch(95% 0.004 260);
    border-bottom: 1px solid oklch(88% 0.005 260);
}

.browser-bar .dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.browser-bar .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: oklch(85% 0.01 260);
}

.browser-bar .url-pill {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid oklch(88% 0.005 260);
    border-radius: 999px;
    padding: 6px 14px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: oklch(48% 0.02 260);
    overflow: hidden;
}

.browser-bar .url-pill svg {
    flex-shrink: 0;
    color: oklch(60% 0.1 150);
}

.browser-bar .url-pill span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-pane {
    height: 560px;
    overflow-y: auto;
    padding: 40px 48px;
}

.preview-pane h1 {
    font-size: 23px;
    font-weight: 800;
    text-align: left;
    margin: 0 0 24px;
}

.preview-pane h2 {
    font-size: 16px;
    font-weight: 700;
    margin: 26px 0 10px;
    color: oklch(25% 0.02 260);
    text-transform: none;
    letter-spacing: normal;
}

.preview-pane p {
    font-size: 14.5px;
    line-height: 1.65;
    color: oklch(35% 0.015 260);
    margin: 0 0 10px;
}

.preview-pane a {
    color: oklch(50% 0.16 265);
    text-decoration: underline;
}

.actions-row {
    max-width: 820px;
    margin: 22px auto 0;
    display: flex;
    justify-content: center;
}

a.btn-secondary,
a.btn-secondary:link,
a.btn-secondary:visited,
.btn-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: oklch(55% 0.18 265);
    color: white;
    border: 1px solid oklch(55% 0.18 265);
    border-radius: 8px;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .15s, border-color .15s;
}

.btn-secondary svg {
    color: white;
}

a.btn-secondary:hover,
.btn-secondary:hover {
    background: oklch(48% 0.18 265);
    border-color: oklch(48% 0.18 265);
    color: white;
}

.siret-row {
    display: flex;
    gap: 10px;
}

.siret-row input {
    flex: 1;
}

.siret-btn {
    padding: 10px 18px;
    font-size: 14px;
    white-space: nowrap;
    flex: 0 0 auto;
}

.siret-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.siret-feedback {
    margin: 8px 0 0;
    font-size: 13px;
    min-height: 16px;
}

.siret-feedback.is-loading {
    color: oklch(50% 0.02 260);
}

.siret-feedback.is-success {
    color: oklch(45% 0.14 150);
}

.siret-feedback.is-error {
    color: oklch(50% 0.18 25);
}

.page-footer {
    text-align: center;
    font-size: 12px;
    color: oklch(60% 0.01 260);
    margin: 24px 0 0;
}
