[hidden] {
    display: none !important;
}

:root {
    --bg: #f6f5f2;
    --surface: #ffffff;
    --text: #151515;
    --muted: #66645f;
    --line: #e7e4de;
    --accent: #1c5b4f;
    --accent-dark: #15463d;
    --radius-lg: 28px;
    --radius-md: 18px;
    --shadow: 0 20px 60px rgba(20, 20, 20, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    padding: 24px 0;
}

.header-inner,
.footer-inner,
.final-cta-inner,
.difference-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.client-link,
.artisan-link {
    text-decoration: none;
    font-weight: 600;
}

.client-link {
    padding: 10px 16px;
    border: 1px solid rgba(20, 40, 50, 0.12);
    border-radius: 999px;
    background: #fff;
}

@media (max-width: 600px) {
    .header-actions {
        gap: 8px;
    }

    .client-link,
    .artisan-link {
        font-size: 14px;
    }

    .client-link {
        padding: 8px 12px;
    }
}

.hero {
    padding: 48px 0 88px;
}

.hero-inner {
    min-height: 610px;
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    align-items: center;
    gap: 72px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 0.83rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 800px;
    margin-bottom: 24px;
    font-size: clamp(3.2rem, 7vw, 6.8rem);
    line-height: .93;
    letter-spacing: -0.065em;
    font-weight: 850;
}

h1 span {
    color: var(--accent);
}

.hero-text {
    max-width: 660px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
    margin-bottom: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 750;
    transition: transform .18s ease, background .18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-dark);
}

.trust-points {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    color: var(--muted);
    font-size: .94rem;
}

.hero-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
    transform: rotate(2deg);
}

.mini-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: #f8f7f4;
    border-radius: var(--radius-md);
}

.mini-card small {
    display: block;
    color: var(--muted);
    margin-bottom: 2px;
}

.mini-card strong {
    font-size: 1.05rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 7px rgba(28, 91, 79, .10);
}

.progress-line {
    height: 10px;
    margin-top: 16px;
    border-radius: 999px;
    background: #ece9e3;
}

.progress-line.active {
    background: #c9ddd8;
}

.hero-card-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 22px;
    font-weight: 700;
}

.hero-card-footer strong {
    color: var(--accent);
}

.section {
    padding: 88px 0;
}

.section-heading {
    max-width: 650px;
    margin-bottom: 42px;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.step-card {
    min-height: 260px;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.step-number {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    margin-bottom: 54px;
    border-radius: 50%;
    background: #e2ece9;
    color: var(--accent);
    font-weight: 850;
}

.step-card h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
    letter-spacing: -0.025em;
}

.step-card p,
.difference-inner > p {
    color: var(--muted);
}

.difference {
    background: #eceae5;
}

.difference-inner {
    align-items: flex-end;
}

.difference-inner > div,
.difference-inner > p {
    flex: 1;
}

.difference-inner > p {
    max-width: 510px;
    margin-bottom: 6px;
    font-size: 1.12rem;
}

.final-cta-inner {
    padding: 48px;
    background: var(--text);
    color: #fff;
    border-radius: var(--radius-lg);
}

.final-cta .eyebrow {
    color: #8ed0c1;
}

.final-cta h2 {
    max-width: 650px;
    font-size: clamp(2rem, 4vw, 3.6rem);
}

.site-footer {
    padding: 30px 0 42px;
    color: var(--muted);
    font-size: .9rem;
}

.footer-inner nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-inner a:hover {
    color: var(--text);
}

@media (max-width: 860px) {
    .hero {
        padding-top: 26px;
    }

    .hero-inner {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-card {
        max-width: 520px;
        transform: none;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .difference-inner,
    .final-cta-inner,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 28px, 1120px);
    }

    .site-header {
        padding: 18px 0;
    }

    .hero {
        padding-bottom: 58px;
    }

    h1 {
        font-size: clamp(3rem, 15vw, 4.4rem);
    }

    .hero-text {
        font-size: 1rem;
    }

    .btn {
        width: 100%;
    }

    .trust-points {
        flex-direction: column;
        gap: 8px;
    }

    .section {
        padding: 64px 0;
    }

    .step-number {
        margin-bottom: 34px;
    }

    .final-cta-inner {
        padding: 32px 24px;
    }
}

/* ---------- Project form ---------- */
.project-page {
    min-height: 100vh;
}

.project-header {
    padding: 24px 0 10px;
}

.project-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.back-link {
    color: var(--muted);
    font-size: .95rem;
    transition: color .2s ease;
}

.back-link:hover {
    color: var(--text);
}

.project-main {
    padding: 44px 0 88px;
}

.project-shell {
    width: min(760px, 100%);
    margin: 0 auto;
}

.form-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 700;
}

.form-progress-bar {
    flex: 1;
    height: 6px;
    overflow: hidden;
    background: #e7e4de;
    border-radius: 999px;
}

.form-progress-bar span {
    display: block;
    width: 25%;
    height: 100%;
    background: var(--accent);
    border-radius: inherit;
}

.project-intro {
    margin-bottom: 30px;
}

.project-intro h1 {
    max-width: 720px;
    margin-bottom: 18px;
    font-size: clamp(2.7rem, 7vw, 5.4rem);
    line-height: .97;
}

.project-intro .hero-text {
    margin-bottom: 0;
}

.form-card {
    padding: clamp(24px, 5vw, 42px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

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

.form-group:last-of-type {
    margin-bottom: 0;
}

.form-label {
    display: block;
    margin-bottom: 9px;
    font-weight: 800;
    letter-spacing: -.015em;
}

.form-hint {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: .88rem;
}

.form-control,
.form-select,
.form-textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fbfaf8;
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.form-control,
.form-select {
    min-height: 56px;
    padding: 0 16px;
}

.form-textarea {
    min-height: 170px;
    padding: 16px;
    resize: vertical;
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: rgba(28, 91, 79, .55);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(28, 91, 79, .08);
}

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

.upload-box {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 130px;
    padding: 22px;
    border: 1.5px dashed #cfcbc3;
    border-radius: 16px;
    background: #fbfaf8;
    text-align: center;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
}

.upload-box:hover {
    border-color: var(--accent);
    background: #f7faf9;
}

.upload-box input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: #e2ece9;
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 900;
}

.upload-box strong {
    display: block;
    margin-bottom: 4px;
}

.upload-box small {
    color: var(--muted);
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
}

.form-note {
    max-width: 400px;
    margin: 0;
    color: var(--muted);
    font-size: .85rem;
}

.btn-arrow::after {
    content: '→';
    margin-left: 10px;
    font-size: 1.05rem;
}

@media (max-width: 700px) {
    .project-main {
        padding-top: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .form-actions .btn {
        width: 100%;
    }

    .form-note {
        text-align: center;
    }
}

/* ---------- Availability / Doodle-style step ---------- */
.progress-step-2 span { width: 50%; }
.progress-step-3 span { width: 75%; }

.availability-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.availability-heading .form-label,
.availability-heading .form-hint {
    margin: 0;
}

.slot-counter {
    flex: 0 0 auto;
    padding: 7px 11px;
    border-radius: 999px;
    background: #eef4f2;
    color: var(--accent);
    font-size: .82rem;
    font-weight: 850;
}

.availability-list {
    display: grid;
    gap: 12px;
}

.availability-slot {
    display: grid;
    grid-template-columns: 38px 1fr 34px;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fbfaf8;
}

.slot-number {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e2ece9;
    color: var(--accent);
    font-weight: 850;
}

.slot-fields {
    display: grid;
    grid-template-columns: 1.35fr .8fr;
    gap: 12px;
}

.slot-label {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 750;
}

.availability-slot .form-control {
    min-height: 50px;
    background: #fff;
}

.remove-slot {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #908d86;
    font: inherit;
    font-size: 1.35rem;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

.remove-slot:hover:not(:disabled) {
    background: #f1efeb;
    color: var(--text);
}

.remove-slot:disabled {
    opacity: .22;
    cursor: default;
}

.add-slot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 2px;
    border: 0;
    background: transparent;
    color: var(--accent);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.add-slot span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e2ece9;
}

.availability-tip {
    margin-top: 24px;
    padding: 18px 20px;
    border-radius: 16px;
    background: #f1f5f3;
}

.availability-tip strong {
    display: block;
    margin-bottom: 4px;
    color: var(--accent);
}

.availability-tip p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
}

@media (max-width: 600px) {
    .availability-slot {
        grid-template-columns: 32px 1fr 28px;
        gap: 9px;
        padding: 12px 10px;
    }

    .slot-number {
        width: 30px;
        height: 30px;
        font-size: .85rem;
    }

    .slot-fields {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .availability-heading {
        align-items: flex-end;
    }
}

/* Étape 3 — Coordonnées */
.contact-form {
    display: grid;
    gap: 24px;
}

.form-grid {
    display: grid;
    gap: 18px;
}

.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.address-grid {
    grid-template-columns: minmax(150px, .55fr) minmax(0, 1.45fr);
}

.field-group {
    display: grid;
    gap: 9px;
}

.field-group label {
    font-weight: 800;
    letter-spacing: -0.01em;
}

.field-group input,
.field-group select,
.field-group textarea {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fbfaf8;
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
    border-color: rgba(28, 91, 79, .55);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(28, 91, 79, .08);
}

.field-group small {
    color: var(--muted);
    font-size: .88rem;
}

.form-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: 16px;
    background: #eef4f2;
    color: var(--muted);
}

.form-note p {
    margin: 0;
    font-size: .92rem;
}

.note-icon {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: .82rem;
    font-weight: 900;
}

.form-actions-split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.btn-secondary {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
}

.btn-secondary:hover {
    background: #f8f7f4;
}

.progress-step-4 span {
    width: 100%;
}

@media (max-width: 700px) {
    .two-columns,
    .address-grid {
        grid-template-columns: 1fr;
    }

    .form-actions-split {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .form-actions-split .btn {
        width: 100%;
    }
}

/* =========================
   Étape 4 — Vérification
   ========================= */
.progress-step-4 span {
    width: 100%;
}

.summary-stack {
    display: grid;
    gap: 18px;
    margin-bottom: 22px;
}

.summary-card {
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e7e8e5);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 10px 35px rgba(28, 36, 32, 0.045);
}

.summary-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.summary-card-head h2 {
    margin: 4px 0 0;
    font-size: 1.22rem;
    line-height: 1.3;
}

.summary-kicker {
    display: block;
    color: var(--muted, #6f7772);
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.summary-edit {
    color: var(--primary, #315f50);
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.summary-edit:hover {
    text-decoration: underline;
}

.summary-description {
    margin: 0;
    line-height: 1.7;
    color: var(--text, #222a26);
}

.summary-meta {
    margin-top: 17px;
    color: var(--muted, #6f7772);
    font-size: .94rem;
}

.summary-slots {
    display: grid;
    gap: 10px;
}

.summary-slot {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 15px;
    background: var(--soft, #f5f7f4);
    border-radius: 14px;
}

.summary-slot-number {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    font-weight: 800;
    color: var(--primary, #315f50);
}

.summary-slot div {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 8px;
}

.summary-slot strong,
.summary-slot span {
    font-size: .95rem;
}

.summary-slot span {
    color: var(--muted, #6f7772);
}

.summary-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.summary-contact-grid > div {
    display: grid;
    gap: 4px;
    padding: 14px 15px;
    background: var(--soft, #f5f7f4);
    border-radius: 14px;
    min-width: 0;
}

.summary-contact-grid span {
    font-size: .82rem;
    color: var(--muted, #6f7772);
}

.summary-contact-grid strong {
    font-size: .95rem;
    overflow-wrap: anywhere;
}

.summary-contact-full {
    grid-column: 1 / -1;
}

.validation-card {
    margin-top: 0;
}

.consent-list {
    display: grid;
    gap: 13px;
}

.consent-row {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
    line-height: 1.55;
    color: var(--text, #222a26);
}

.consent-row input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--primary, #315f50);
}

.validation-note {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    margin-top: 22px;
    padding: 14px 15px;
    border-radius: 14px;
    background: var(--soft, #f5f7f4);
}

.validation-note p {
    margin: 0;
    color: var(--muted, #6f7772);
    line-height: 1.55;
}

.summary-alert {
    padding: 16px;
    background: #f8f4ee;
    border-radius: 14px;
}

.summary-alert p {
    margin-bottom: 0;
}

/* =========================
   Confirmation
   ========================= */
.confirmation-main {
    display: grid;
    align-items: center;
}

.confirmation-shell {
    max-width: 720px;
}

.confirmation-card {
    text-align: center;
    background: #fff;
    border: 1px solid var(--border, #e7e8e5);
    border-radius: 26px;
    padding: 42px 34px;
    box-shadow: 0 16px 50px rgba(28, 36, 32, .06);
}

.confirmation-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--soft, #f5f7f4);
    color: var(--primary, #315f50);
    font-size: 1.7rem;
    font-weight: 900;
}

.confirmation-card .hero-text {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.reference-box,
.next-step-box {
    margin: 24px 0;
    padding: 17px 18px;
    border-radius: 16px;
    background: var(--soft, #f5f7f4);
}

.reference-box {
    display: grid;
    gap: 5px;
}

.reference-box span {
    color: var(--muted, #6f7772);
    font-size: .85rem;
}

.reference-box strong {
    font-size: 1.1rem;
    letter-spacing: .04em;
}

.next-step-box {
    text-align: left;
}

.next-step-box p {
    margin: 6px 0 0;
    color: var(--muted, #6f7772);
    line-height: 1.6;
}

@media (max-width: 680px) {
    .summary-card {
        padding: 19px;
    }

    .summary-contact-grid {
        grid-template-columns: 1fr;
    }

    .summary-contact-full {
        grid-column: auto;
    }

    .summary-card-head {
        gap: 12px;
    }

    .confirmation-card {
        padding: 32px 20px;
    }
}

/* --- Compte client / suivi --- */
.account-create-box {
    margin-bottom: 26px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #f8f7f4;
}
.account-create-box h2 { font-size: 1.65rem; margin: 5px 0 8px; }
.account-create-box p { color: var(--muted); margin-bottom: 20px; }
.account-create-box small { display: block; margin-top: 12px; color: var(--muted); }
.form-error {
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff0ef;
    border: 1px solid #f2ccc8;
    color: #8b2f27;
    font-weight: 650;
}
.auth-shell { max-width: 760px; }
.account-nav { display:flex; align-items:center; gap:18px; color:var(--muted); }
.client-dashboard { max-width: 900px; }
.success-banner {
    display:flex; flex-direction:column; gap:4px;
    margin-bottom:28px; padding:18px 20px;
    border:1px solid #c9ddd8; border-radius:18px; background:#edf5f2;
}
.success-banner span { color:var(--muted); }
.dashboard-head { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:36px 0 18px; }
.dashboard-head h2 { font-size:2rem; }
.request-list { display:grid; gap:14px; }
.request-card {
    display:flex; justify-content:space-between; align-items:center; gap:24px;
    padding:22px 24px; background:var(--surface); border:1px solid var(--line); border-radius:20px;
    transition:transform .18s ease, box-shadow .18s ease;
}
.request-card:hover { transform:translateY(-1px); box-shadow:0 12px 32px rgba(20,20,20,.06); }
.request-card h3 { margin:4px 0 4px; font-size:1.3rem; }
.request-card p { margin:0; color:var(--muted); font-size:.94rem; }
.status-pill {
    flex:0 0 auto; padding:9px 12px; border-radius:999px; font-size:.84rem; font-weight:750;
    background:#e8f1ee; color:var(--accent);
}
.status-large { margin-bottom:22px; padding:22px 24px; border-radius:20px; background:#e8f1ee; }
.status-large span { display:block; color:var(--muted); font-size:.82rem; text-transform:uppercase; letter-spacing:.08em; font-weight:750; }
.status-large strong { display:block; margin-top:4px; color:var(--accent); font-size:1.35rem; }
@media (max-width: 680px) {
    .dashboard-head, .request-card { align-items:flex-start; flex-direction:column; }
    .status-pill { align-self:flex-start; }
    .account-nav span { display:none; }
}
