
:root {
    --primary: #009d8d;
    --primary-dark: #007d73;
    --navy: #101b37;
    --muted: #65718a;
    --border: #dce2eb;
    --surface: #f5f7fa;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    color: var(--navy);
    background: #e9edf2;
}

button, input, select {
    font-family: inherit;
}

button {
    cursor: pointer;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 46% 54%;
}

/* PHOTO ET IDENTITÉ VISUELLE */
.hero {
    position: relative;
    min-height: 100vh;
    color: white;
    background: url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=1600&q=85") center center / cover no-repeat;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient( 180deg, rgba(9,22,37,.56) 0%, rgba(9,22,37,.18) 38%, rgba(8,18,32,.78) 100% );
}

.hero-content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 48px clamp(28px,5vw,90px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

    .brand img {
        width: 72px;
        height: 72px;
        object-fit: cover;
        border-radius: 18px;
        box-shadow: 0 12px 30px #0004;
    }

.brand-name strong {
    display: block;
    font-family: Manrope, sans-serif;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

    .brand-name strong span {
        color: #19d6c3;
    }

.brand-name small {
    display: block;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 4px;
    margin-top: 4px;
}

.hero-main {
    margin-top: auto;
    margin-bottom: auto;
    padding: 65px 0;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: 700;
}

.accent-line {
    width: 37px;
    height: 3px;
    background: #18d8c6;
}

.hero h1 {
    font-family: Manrope, sans-serif;
    font-size: clamp(42px,4.2vw,74px);
    line-height: 1.13;
    font-weight: 800;
    letter-spacing: -2.8px;
    margin: 27px 0 20px;
}

    .hero h1 em {
        color: #20ddc7;
        font-weight: 600;
    }

.hero-main > p {
    max-width: 500px;
    font-size: 18px;
    line-height: 1.8;
    color: #f2f5f7;
}

.benefits {
    margin-top: 52px;
    display: grid;
    gap: 25px;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 18px;
}

    .benefit > i {
        width: 51px;
        height: 51px;
        border: 1px solid #ffffffa0;
        border-radius: 50%;
        display: grid;
        place-items: center;
        font-size: 23px;
        flex-shrink: 0;
    }

    .benefit strong {
        display: block;
        font-size: 16px;
        margin-bottom: 3px;
    }

    .benefit span {
        display: block;
        font-size: 14px;
        color: #f1f3f6;
    }

.hero-bottom {
    border-left: 4px solid #1ee0c7;
    padding-left: 20px;
    font-size: 14px;
}

/* PARTIE FORMULAIRE */
.workspace {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 26px clamp(20px,3.4vw,65px) 20px;
    background: linear-gradient(145deg,#e8edf5,#f7f9fc);
}

.topbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 26px;
    min-height: 30px;
    font-size: 13px;
    font-weight: 700;
    color: #42516d;
    margin-bottom: 22px;
}

    .topbar i {
        margin-right: 6px;
    }

.language {
    padding: 9px 13px;
    background: #fff9;
    border-radius: 10px;
}

.form-card {
    flex: 1;
    background: white;
    border-radius: 23px;
    padding: clamp(25px,3.4vw,60px);
    box-shadow: 0 18px 60px rgba(22,40,76,.08);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    margin-bottom: 58px;
    position: relative;
}

    .progress-steps:before {
        content: '';
        position: absolute;
        top: 20px;
        left: 9%;
        right: 9%;
        height: 2px;
        background: #e3e7ef;
    }

.progress-step {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 11px;
    flex: 1;
    text-align: center;
    color: #78849b;
}

    .progress-step b {
        display: grid;
        place-items: center;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: #edf0f5;
        border: 4px solid white;
        font-size: 16px;
        transition: .2s;
    }

    .progress-step span {
        font-size: 12px;
        font-weight: 600;
    }

    .progress-step.active b,
    .progress-step.done b {
        background: var(--primary);
        color: white;
        box-shadow: 0 0 0 3px #d8f4ee;
    }

    .progress-step.active span,
    .progress-step.done span {
        color: var(--primary-dark);
    }

.wizard-panel {
    display: none;
    animation: slideIn .3s ease;
}

    .wizard-panel.active {
        display: block;
    }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-label {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.wizard-panel h2 {
    font-family: Manrope, sans-serif;
    font-weight: 800;
    letter-spacing: -1.3px;
    font-size: clamp(26px,2.4vw,37px);
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 34px;
    font-size: 15px;
}

.form-label {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 9px;
}

.required {
    color: #e64a55;
}

.form-control, .form-select {
    border: 1px solid #d6dce7;
    border-radius: 10px;
    min-height: 53px;
    font-size: 14px;
    padding: 12px 15px;
    color: var(--navy);
    box-shadow: none !important;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px #00a68f1c !important;
    }

.input-group-text {
    border: 1px solid #d6dce7;
    background: #fff;
    color: #687994;
    font-size: 22px;
    border-radius: 10px 0 0 10px;
}

.input-group .form-control {
    border-radius: 0 10px 10px 0;
}

.field-hint {
    color: #8590a3;
    font-size: 12px;
    margin-top: 9px;
}

.privacy-notice {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    background: #e8f8f5;
    border-radius: 11px;
    padding: 19px;
    margin: 22px 0 25px;
    font-size: 13px;
    line-height: 1.7;
}

    .privacy-notice i {
        font-size: 25px;
        color: var(--primary-dark);
    }

    .privacy-notice small {
        color: var(--muted);
    }

.btn-main {
    border: 0;
    border-radius: 11px;
    background: linear-gradient(110deg,#00897f,#00aa98);
    color: white;
    min-height: 54px;
    padding: 14px 23px;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transition: .2s;
}

    .btn-main:hover {
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 12px 25px #009d8d35;
    }

    .btn-main:disabled {
        opacity: .6;
        cursor: wait;
    }

.demo-hint {
    background: #f5f7fa;
    border: 1px solid #e6eaf0;
    border-radius: 10px;
    padding: 16px;
    font-size: 12px;
    color: #53627c;
    margin-top: 20px;
}

    .demo-hint i {
        color: #e5a900;
        font-size: 17px;
        margin-right: 8px;
    }

.app-footer {
    text-align: center;
    color: #78849b;
    font-size: 11px;
    padding-top: 20px;
}

/* VOYAGEURS */
.reservation-summary {
    padding: 16px;
    border-radius: 12px;
    background: #eaf8f5;
    color: #087c70;
    margin-bottom: 25px;
    font-size: 13px;
    font-weight: 600;
}

.traveler-card, .document-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 18px;
    background: #fff;
}

    .traveler-card h3, .document-card h3 {
        font-family: Manrope,sans-serif;
        font-size: 16px;
        font-weight: 800;
        margin-bottom: 20px;
    }

.wizard-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 30px;
}

.btn-back, .btn-outline-custom {
    border: 1px solid var(--border);
    background: white;
    color: var(--navy);
    border-radius: 11px;
    min-height: 51px;
    padding: 12px 19px;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

    .btn-back:hover, .btn-outline-custom:hover {
        background: #f3f6f9;
    }

/* CONTRAT */
.contract-box {
    border: 1px solid var(--border);
    background: #fafbfc;
    border-radius: 14px;
    padding: 23px;
    max-height: 230px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.8;
    color: #4d5b73;
}

    .contract-box i {
        font-size: 22px;
        color: var(--primary);
    }

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-label {
    font-size: 13px;
}

.signature-box {
    position: relative;
    height: 175px;
    border: 2px dashed #ccd7e0;
    border-radius: 13px;
    background: #fbfcfe;
    overflow: hidden;
}

    .signature-box canvas {
        width: 100%;
        height: 100%;
        position: relative;
        z-index: 1;
        touch-action: none;
    }

    .signature-box span {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%,-50%);
        color: #b5bfcb;
        pointer-events: none;
    }

.btn-link-custom {
    border: 0;
    background: transparent;
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 700;
    margin-top: 12px;
}

/* SELFIE */
.camera-box {
    min-height: 275px;
    border-radius: 17px;
    border: 2px dashed #d6e0e8;
    background: #f6f9fc;
    overflow: hidden;
    display: grid;
    place-items: center;
}

    .camera-box video, .camera-box canvas {
        width: 100%;
        max-height: 360px;
        object-fit: contain;
    }

#cameraPlaceholder {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 12px;
    padding: 35px;
    text-align: center;
    color: var(--muted);
}

    #cameraPlaceholder i {
        font-size: 43px;
        color: var(--primary);
    }

    #cameraPlaceholder strong {
        color: var(--navy);
    }

    #cameraPlaceholder span {
        font-size: 13px;
    }

.upload-label {
    cursor: pointer;
    margin: 0;
}

.success-panel {
    padding: 60px 0;
}

.success-check {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #e0f8f1;
    color: var(--primary);
    font-size: 44px;
    display: grid;
    place-items: center;
    margin: 0 auto 25px;
}

/* MOBILE */
@media (max-width: 1100px) {
    .app-shell {
        grid-template-columns: 40% 60%;
    }

    .hero-content {
        padding: 30px;
    }

    .form-card {
        padding: 28px;
    }
}

@media (max-width: 850px) {
    .app-shell {
        display: block;
    }

    .hero, .hero-content {
        min-height: auto;
    }

    .hero-content {
        padding: 22px 24px 30px;
    }

    .hero-main {
        margin: 25px 0 0;
        padding: 0;
    }

    .hero h1 {
        font-size: 34px;
        letter-spacing: -1px;
    }

    .hero-main > p {
        font-size: 14px;
    }

    .benefits, .hero-bottom {
        display: none;
    }

    .brand img {
        width: 53px;
        height: 53px;
        border-radius: 12px;
    }

    .brand-name strong {
        font-size: 25px;
    }

    .brand-name small {
        font-size: 11px;
    }

    .workspace {
        padding: 15px;
    }

    .topbar {
        display: none;
    }

    .form-card {
        padding: 25px 18px;
        border-radius: 18px;
    }

    .progress-steps {
        margin-bottom: 35px;
    }

    .progress-step b {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .progress-steps:before {
        top: 17px;
    }

    .progress-step span {
        font-size: 9px;
    }

    .wizard-panel h2 {
        font-size: 27px;
    }

    .app-footer {
        line-height: 1.8;
    }
}

@media (max-width: 380px) {
    .progress-step span {
        font-size: 8px;
    }

    .wizard-actions .btn-main, .wizard-actions .btn-back {
        padding: 11px;
        font-size: 12px;
    }
}

/* CONVENTION DE SÉJOUR */

.contract-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: #f0f8f7;
    border: 1px solid #d8eeea;
    border-radius: 12px 12px 0 0;
}

    .contract-heading > i {
        font-size: 27px;
        color: #008e82;
    }

    .contract-heading strong {
        display: block;
        font-size: 14px;
        color: #15233d;
    }

    .contract-heading span {
        display: block;
        font-size: 11px;
        color: #728099;
        margin-top: 4px;
        letter-spacing: 1px;
    }

.contract-scroll-container {
    height: 330px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #dce3e9;
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: white;
    scroll-behavior: smooth;
}

.contract-document {
    padding: 30px;
    font-size: 13px;
    line-height: 1.9;
    color: #45516a;
}

.contract-document-header {
    text-align: center;
    padding-bottom: 22px;
    border-bottom: 1px solid #dce3e9;
    margin-bottom: 25px;
}

    .contract-document-header h3 {
        font-size: 18px;
        font-weight: 800;
        color: #17243c;
        margin-bottom: 12px;
    }

    .contract-document-header > strong {
        color: #008e82;
        font-size: 12px;
        letter-spacing: 1px;
    }

    .contract-document-header p {
        font-size: 12px;
        margin-top: 15px;
    }

.contract-document section {
    margin-bottom: 27px;
}

.contract-document h4 {
    font-size: 15px;
    font-weight: 800;
    color: #14243b;
    margin-bottom: 13px;
}

.contract-document p {
    margin-bottom: 13px;
    text-align: justify;
}

.contract-end {
    text-align: center;
    padding: 20px 10px;
    background: #eaf8f4;
    border-radius: 9px;
    color: #008e82;
    font-weight: 700;
}

    .contract-end i {
        margin-right: 7px;
    }

.contract-reading-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 13px;
    font-size: 12px;
    font-weight: 600;
    color: #a47719;
}

    .contract-reading-status.completed {
        color: #008e82;
    }

.signature-section.locked {
    opacity: .4;
    pointer-events: none;
    user-select: none;
}

@media (max-width: 600px) {
    .contract-scroll-container {
        height: 290px;
    }

    .contract-document {
        padding: 19px;
        font-size: 12px;
    }
}
