@font-face {
    font-family: Montserrat;
    src: url('../fonts/montserrat-latin.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --red: #c92027;
    --red-dark: #ab1820;
    --ink: #202020;
    --muted: #686868;
    --line: #e8e6e5;
    --soft: #f7f6f5;
    --green: #198260;
    --radius: 22px;
    --font: Montserrat,Arial,sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: var(--font);
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
    font: inherit;
}

button, a, input, textarea, select {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: .48;
}

button, a {
    touch-action: manipulation;
}

button {
    color: inherit;
}

button, select, textarea {
    transition: border-color .18s, background .18s, box-shadow .18s, transform .18s;
}

a {
    color: inherit;
}

button:focus-visible, a:focus-visible, summary:focus-visible {
    outline: 3px solid #1b6dbb;
    outline-offset: 5px;
}

textarea:focus, select:focus, input:focus-visible {
    outline: 3px solid #1b6dbb;
    outline-offset: 2px;
}

[hidden] {
    display: none !important;
}

svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.icon {
    width: 20px;
    height: 20px;
}

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

button {
    border: 0;
}

a {
    text-decoration: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    left: 20px;
    top: -100px;
    z-index: 100;
    background: #fff;
    padding: 14px;
    border: 2px solid var(--red);
    border-radius: 10px;
}

.skip-link:focus {
    top: 10px;
}

/* En-tête et navigation. */
.site-header {
    height: 90px;
    border-bottom: 1px solid #eeecea;
    background: #fff;
}

.header-inner {
    max-width: 1336px;
    padding: 0 40px;
    height: 100%;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand img {
    width: 88px;
    height: auto;
}

.header-divider {
    height: 24px;
    width: 1px;
    background: var(--line);
}

.header-title {
    font-weight: 600;
    font-size: 13px;
    letter-spacing: -.2px;
}

.header-links {
    display: flex;
    gap: 30px;
    margin-left: auto;
    font-size: 13px;
    font-weight: 500;
}

.header-links a:hover {
    color: var(--red);
}

.account-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 17px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-left: 16px;
    font-size: 12px;
    font-weight: 600;
}

.account-button:hover {
    background: var(--soft);
}

/* Accueil et choix du service. */
main {
    min-height: calc(100vh - 245px);
}

.screen {
    max-width: 1190px;
    margin: 0 auto;
    padding: 0 40px 70px;
}

.hero {
    text-align: center;
    padding: 58px 0 38px;
}

.eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 10px;
    letter-spacing: 1.8px;
    font-weight: 650;
    color: #777;
}

.small-line {
    height: 2px;
    width: 20px;
    background: var(--red);
}

h1 {
    font-size: 52px;
    line-height: 1.14;
    letter-spacing: -2.5px;
    font-weight: 700;
}

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

.hero h1 {
    margin: 18px 0 20px;
}

.hero-description {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.85;
    letter-spacing: -.15px;
}

.service-container {
    max-width: 948px;
    margin: auto;
}

.subscription-switch {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f7f6f5;
    width: fit-content;
    margin: 0 auto 30px;
    padding: 5px;
    gap: 5px;
}

.subscription-switch button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    background: transparent;
    border-radius: 10px;
    color: #737373;
    font-weight: 600;
    font-size: 12px;
    min-width: 180px;
}

.subscription-switch button.selected {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 3px 8px #00000012;
}

.subscription-switch .icon {
    width: 18px;
    height: 18px;
}

.session-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 11px;
    padding: 13px 18px;
    background: #f2f7f4;
    color: #29614b;
    border: 1px solid #dfede4;
    border-radius: 12px;
    margin-bottom: 20px;
}

.session-strip>span {
    display: flex;
    gap: 10px;
    align-items: center;
}

.text-button {
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 11px;
    padding: 4px;
    font-weight: 550;
}

.text-button:hover {
    color: var(--red);
}

.service-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.service-card {
    padding: 31px 33px 23px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 6px 25px #00000004;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: box-shadow .2s,border-color .2s;
}

.service-card:hover {
    border-color: #d8d1ce;
    box-shadow: 0 12px 35px #00000009;
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 23px;
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border: 1px solid #f4dedf;
    border-radius: 16px;
    background: #fff7f7;
    color: var(--red);
}

.service-icon svg {
    width: 27px;
    height: 27px;
    stroke-width: 1.5;
}

.service-tag {
    font-size: 8px;
    letter-spacing: 1.2px;
    font-weight: 600;
    color: #89817c;
}

.service-card h2 {
    font-size: 31px;
    line-height: 1.2;
    letter-spacing: -1.1px;
    font-weight: 650;
    margin-bottom: 17px;
}

.service-card>p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.9;
    max-width: 345px;
}

.service-features {
    display: grid;
    gap: 10px;
    margin: 22px 0 25px;
    font-size: 10px;
    color: #535353;
}

.service-features span {
    display: flex;
    align-items: center;
    gap: 9px;
}

.service-features .icon {
    width: 15px;
    height: 15px;
    color: var(--red);
}

.card-bottom {
    margin-top: auto;
}

.availability {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 9px;
    color: #737373;
    margin-bottom: 13px;
    min-height: 14px;
}

.availability>span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #b3b3b3;
}

.availability.open {
    color: var(--green);
}

.availability.open>span {
    background: var(--green);
}

.availability.closed {
    color: #946338;
}

.availability.closed>span {
    background: #ad7b42;
}

.button {
    min-height: 46px;
    padding: 13px 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
}

.button .icon {
    width: 17px;
    height: 17px;
}

.button .arrow {
    margin-left: auto;
    width: 17px;
}

.button-primary {
    background: var(--red);
    color: #fff;
}

.button-primary:not(:disabled):hover {
    background: var(--red-dark);
    transform: translateY(-1px);
}

.button-dark {
    background: #222;
    color: #fff;
}

.button-dark:not(:disabled):hover {
    background: #404040;
    transform: translateY(-1px);
}

.button-white {
    background: #fff;
    color: #222;
}

.button-white:hover {
    background: #f0f0f0;
}

.button-outline {
    background: #fff;
    border: 1px solid #dedbd8;
    color: #333;
}

.button-outline:hover {
    background: #f8f7f6;
}

.service-start {
    width: 100%;
    justify-content: flex-start;
    padding-left: 18px;
}

.card-footnote {
    font-size: 8px;
    color: #8b8580;
    display: block;
    text-align: center;
    margin-top: 12px;
    line-height: 1.7;
}

/* Pied de page et messages de statut. */
.site-footer {
    max-width: 1336px;
    margin: 0 auto;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 35px;
    align-items: center;
    justify-content: space-between;
    padding: 27px 40px 32px;
    color: #8b8580;
    font-size: 9px;
}

.site-footer>div {
    display: flex;
    gap: 20px;
    align-items: center;
}

.site-footer>div>span {
    font-size: 10px;
    font-weight: 500;
    color: #5f5b58;
}

.site-footer img {
    width: 66px;
    height: auto;
}

.site-footer a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-footer .icon {
    width: 12px;
    height: 12px;
}

.notice {
    max-width: 948px;
    margin: 24px auto 0;
    padding: 15px 20px;
    border: 1px solid #ead3bb;
    border-radius: 10px;
    background: #fff9f1;
    color: #825a2b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    font-size: 12px;
    line-height: 1.8;
}

.notice button {
    font-size: 24px;
    background: transparent;
    padding: 0 2px;
}

.notice.success {
    background: #f0f8f3;
    color: #256246;
    border-color: #cde5d6;
}

/* Préparation de la caméra et du motif. */
.back-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    color: #777;
    font-size: 11px;
    padding: 0;
    margin-top: 35px;
}

.back-button .icon {
    width: 16px;
    height: 16px;
}

.section-heading {
    text-align: center;
    margin: 35px 0;
}

.section-heading h1 {
    font-size: 38px;
    letter-spacing: -1.6px;
    margin: 14px 0;
}

.section-heading>p:last-child {
    color: #777;
    font-size: 12px;
    line-height: 1.8;
}

.preparation-layout {
    max-width: 970px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 40px;
    align-items: start;
}

.preview-panel {
    aspect-ratio: 4/3;
    background: #242626;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-panel>video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
    position: absolute;
    inset: 0;
}

.preview-placeholder {
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px;
}

.preview-icon {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border: 1px solid #ffffff1a;
    background: #ffffff07;
    border-radius: 21px;
    margin-bottom: 21px;
    color: #d9d7d3;
}

.preview-icon svg {
    width: 32px;
    height: 32px;
}

.preview-placeholder h2 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -.6px;
    margin-bottom: 10px;
}

.preview-placeholder p {
    color: #aaa;
    font-size: 11px;
    margin-bottom: 24px;
}

.preview-placeholder .button {
    font-size: 10px;
    min-height: 40px;
    padding: 10px 19px;
}

.preview-caption {
    position: absolute;
    bottom: 18px;
    left: 18px;
    color: #fff;
    font-size: 9px;
    border: 1px solid #ffffff30;
    background: #00000040;
    backdrop-filter: blur(10px);
    padding: 8px 10px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.preview-caption>span {
    width: 5px;
    height: 5px;
    background: #83dcb5;
    border-radius: 50%;
}

.preparation-form {
    padding-top: 5px;
}

.step-caption {
    display: flex;
    gap: 10px;
    align-items: center;
    font-weight: 650;
    font-size: 12px;
    margin-bottom: 24px;
}

.step-caption>span:first-child {
    width: 25px;
    height: 25px;
    background: #fbecee;
    color: var(--red);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 10px;
}

.preparation-form label:not(.checkbox-label), .modal>label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    margin: 17px 0 9px;
}

.optional {
    font-size: 9px;
    font-weight: 400;
    color: #8c857e;
}

.checkbox-label {
    display: grid;
    grid-template-columns: 16px 1fr;
    column-gap: 9px;
    align-items: center;
    font-size: 11px;
    font-weight: 550;
}

.checkbox-label input {
    margin: 0;
    accent-color: var(--red);
    width: 15px;
    height: 15px;
}

.checkbox-label span {
    grid-column: 2;
    font-size: 9px;
    color: #888;
    line-height: 1.7;
    margin-top: 5px;
    font-weight: 400;
}

select, textarea {
    width: 100%;
    border: 1px solid #dfdbd7;
    border-radius: 9px;
    background: #fff;
    color: #333;
    padding: 12px;
    font-size: 11px;
    line-height: 1.65;
}

select {
    padding: 10px;
}

textarea {
    resize: vertical;
    min-height: 70px;
}

textarea::placeholder {
    color: #a39b94;
}

.device-feedback {
    font-size: 10px;
    line-height: 1.8;
    color: #888;
    margin: 17px 0 22px;
}

.device-feedback.error {
    color: var(--red);
}

.device-feedback.ready {
    color: var(--green);
}

.privacy-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 8px;
    line-height: 1.8;
    color: #888;
    margin: 10px 0 23px;
}

.privacy-note .icon {
    width: 12px;
    height: 12px;
}

.preparation-form>.button {
    width: 100%;
    justify-content: space-between;
}

.form-note {
    font-size: 9px;
    text-align: center;
    line-height: 1.8;
    color: #8c857e;
    margin-top: 11px;
}

.preparation-layout.chat-preparation {
    display: block;
    max-width: 520px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
}

.chat-preparation .preparation-form {
    padding: 0;
}

/* Échange : statut, vidéo et commandes. */
.conversation-screen {
    max-width: 1260px;
    padding-top: 35px;
}

.conversation-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 25px;
}

.conversation-top .eyebrow {
    justify-content: flex-start;
}

.conversation-top h1 {
    font-size: 28px;
    letter-spacing: -1px;
    margin-top: 10px;
}

.conversation-meta {
    display: flex;
    align-items: center;
    gap: 17px;
}

.connection-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 9px;
    border-radius: 20px;
    background: #f2f4f2;
    padding: 9px 12px;
    color: #667363;
}

.connection-pill>span {
    width: 5px;
    height: 5px;
    background: #849681;
    border-radius: 50%;
}

.connection-pill.connected {
    background: #edf7f1;
    color: var(--green);
}

.connection-pill.connected>span {
    background: var(--green);
}

.duration {
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    color: #777;
}

.connection-alert {
    padding: 12px 16px;
    background: #fff6e8;
    border: 1px solid #edd9bd;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 11px;
    line-height: 1.8;
    color: #85612d;
}

.video-workspace {
    border: 1px solid var(--line);
    border-radius: 19px;
    overflow: hidden;
    background: #fff;
}

.video-stage {
    height: min(60vh,570px);
    min-height: 330px;
    position: relative;
    background: #202423;
    overflow: hidden;
}

.video-stage>#remote-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.waiting-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 30px 200px 30px 30px;
}

.waiting-pulse {
    width: 70px;
    height: 70px;
    border-radius: 24px;
    background: #ffffff08;
    border: 1px solid #ffffff12;
    display: grid;
    place-items: center;
    color: #ece9e4;
    margin-bottom: 23px;
}

.waiting-pulse svg {
    width: 30px;
    height: 30px;
}

.waiting-overlay h2 {
    font-size: 28px;
    letter-spacing: -.9px;
    font-weight: 550;
    margin-bottom: 14px;
}

.waiting-overlay>p {
    font-size: 11px;
    color: #a9b1ad;
    line-height: 1.9;
}

.waiting-overlay .queue-label {
    margin-top: 20px;
    background: #ffffff08;
    color: #bbc8bf;
    border-color: #ffffff13;
}

.queue-label {
    display: inline-block;
    border: 1px solid #e8e5e1;
    border-radius: 20px;
    background: #f8f7f4;
    font-size: 9px;
    padding: 8px 13px;
    color: #7c756b;
    line-height: 1.8;
}

.waiting-dots {
    display: flex;
    gap: 5px;
    margin-top: 22px;
}

.waiting-dots i {
    width: 4px;
    height: 4px;
    background: #b4bcb7;
    border-radius: 50%;
    animation: bounce 1.4s infinite;
}

.waiting-dots i:nth-child(2) {
    animation-delay: .2s;
}

.waiting-dots i:nth-child(3) {
    animation-delay: .4s;
}

@keyframes bounce {
    0%, 70%, 100% {
        opacity: .3;
        transform: translateY(0);
    }

    35% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

.local-video-wrap {
    position: absolute;
    width: 190px;
    aspect-ratio: 4/3;
    bottom: 22px;
    right: 22px;
    background: #303632;
    border: 1px solid #ffffff24;
    border-radius: 13px;
    overflow: hidden;
    box-shadow: 0 7px 20px #0003;
}

.local-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

.local-video-wrap>span {
    position: absolute;
    bottom: 8px;
    left: 9px;
    background: #0005;
    color: #fff;
    border-radius: 5px;
    padding: 4px 6px;
    font-size: 8px;
}

.local-video-wrap>div {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 10px;
    color: #ccc;
    background: #303632;
}

.stage-label {
    position: absolute;
    left: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 8px;
    color: #bbc0bd;
}

.stage-label .icon {
    width: 12px;
    height: 12px;
}

.video-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 22px;
    gap: 20px;
}

.control-group {
    display: flex;
    gap: 12px;
}

.control-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f6f5f4;
    padding: 12px 14px;
    border-radius: 9px;
    font-size: 9px;
    color: #5c5853;
}

.control-button:hover {
    background: #eae8e5;
}

.control-button[aria-pressed=true] {
    background: #fdebed;
    color: #b72027;
}

.button-hangup {
    color: #fff;
    background: var(--red);
}

.button-hangup:hover {
    background: var(--red-dark);
}

/* Conversation écrite et messages. */
.chat-workspace {
    max-width: 880px;
    margin: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 28px #00000004;
}

.chat-heading {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--line);
}

.advisor-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: #fff0f0;
    color: var(--red);
    border: 1px solid #f6dfe0;
    border-radius: 14px;
}

.chat-heading h2 {
    font-size: 12px;
    font-weight: 650;
}

.chat-heading p {
    font-size: 9px;
    color: #8c857e;
    margin-top: 5px;
}

.icon-button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    background: #f7f6f5;
    border-radius: 9px;
    margin-left: auto;
    color: #777;
}

.chat-messages {
    height: min(52vh,480px);
    min-height: 300px;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 26px;
    background: #fdfcfa;
    scroll-behavior: smooth;
}

.chat-welcome {
    text-align: center;
    margin: 12px auto 28px;
    max-width: 360px;
    color: #868078;
}

.welcome-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    background: #eef4ef;
    color: #3a8b66;
    border-radius: 50%;
    margin: 0 auto 13px;
}

.chat-welcome h3 {
    font-size: 12px;
    font-weight: 600;
    color: #635f59;
    margin-bottom: 8px;
}

.chat-welcome p {
    font-size: 10px;
    line-height: 1.8;
}

.chat-welcome .queue-label {
    margin-top: 15px;
    font-size: 8px;
}

.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 77%;
    width: fit-content;
    margin-bottom: 17px;
}

.chat-message.mine {
    margin-left: auto;
    align-items: flex-end;
}

.message-label {
    font-size: 8px;
    color: #8e877f;
    margin: 0 4px 5px;
}

.message-text {
    border: 1px solid #eae5df;
    border-radius: 12px 12px 12px 3px;
    background: #fff;
    font-size: 11px;
    line-height: 1.8;
    padding: 12px 15px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: #4a4641;
}

.mine .message-text {
    background: #292b2a;
    border-color: #292b2a;
    color: #fff;
    border-radius: 12px 12px 3px 12px;
}

.message-text a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.message-time {
    font-size: 8px;
    color: #aaa097;
    margin: 5px 4px 0;
}

.pending .message-text {
    opacity: .65;
}

.chat-composer {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    padding: 17px 22px;
    border-top: 1px solid var(--line);
    background: #fff;
}

.chat-composer textarea {
    border: 0;
    min-height: 42px;
    max-height: 130px;
    resize: none;
    outline-offset: 0;
    padding: 11px 4px;
    font-size: 11px;
}

.send-button {
    background: var(--red);
    color: #fff;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    flex-shrink: 0;
}

.send-button:hover {
    background: var(--red-dark);
}

.send-button svg {
    width: 20px;
    height: 20px;
}

.chat-footer {
    padding: 0 25px 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #999;
    font-size: 8px;
}

.chat-footer>span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.chat-footer .icon {
    width: 12px;
    height: 12px;
}

.chat-footer .text-button {
    font-size: 9px;
    color: #b53035;
}

.typing {
    font-size: 9px;
    color: #888;
    padding: 0 26px 12px;
    background: #fdfcfa;
}

/* Fin de l’échange. */
.ended-screen {
    text-align: center;
    padding-top: 75px;
    padding-bottom: 90px;
}

.ended-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 25px;
    background: #eef7f0;
    color: #39835c;
    border-radius: 26px;
    display: grid;
    place-items: center;
}

.ended-icon svg {
    width: 35px;
    height: 35px;
}

.ended-screen h1 {
    margin: 19px 0 23px;
}

.ended-screen>p:not(.eyebrow) {
    font-size: 12px;
    line-height: 1.9;
    color: #777;
}

.ended-screen .ended-duration {
    margin-top: 16px!important;
    font-size: 10px !important;
}

.ended-actions {
    display: grid;
    gap: 12px;
    max-width: 300px;
    margin: 30px auto 0;
}

/* Fenêtres de connexion, de réglage et de confirmation. */
.modal {
    border: 1px solid var(--line);
    border-radius: 23px;
    padding: 36px;
    max-width: 430px;
    width: calc(100% - 35px);
    box-shadow: 0 24px 100px #0003;
    color: var(--ink);
    max-height: calc(100dvh - 50px);
    overflow: auto;
}

.modal::backdrop {
    background: #20201b66;
    backdrop-filter: blur(5px);
}

.modal-close {
    position: absolute;
    right: 15px;
    top: 12px;
    font-size: 26px;
    font-weight: 300;
    width: 30px;
    height: 30px;
    background: transparent;
    color: #999;
}

.modal-icon {
    width: 45px;
    height: 45px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: var(--red);
    background: #fff1f1;
    margin-bottom: 24px;
}

.modal>.eyebrow {
    justify-content: flex-start;
    font-size: 8px;
    letter-spacing: 1.6px;
    margin-bottom: 12px;
}

.modal h2 {
    font-size: 28px;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: 650;
}

.modal>p:not(.eyebrow):not(.field-error):not(.modal-caption) {
    font-size: 11px;
    line-height: 1.9;
    color: #777;
    margin-bottom: 22px;
}

.modal>.button {
    width: 100%;
    margin-top: 11px;
    justify-content: flex-start;
}

.modal .button:not(:has(.icon)) {
    justify-content: center;
}

.modal-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 8px !important;
    margin-top: 23px;
    color: #999;
    line-height: 1.8;
}

.modal-caption .icon {
    width: 14px;
    height: 14px;
}

.field-error {
    font-size: 11px;
    line-height: 1.8;
    color: #b42329;
    margin-top: 15px;
}

.modal>select {
    margin-bottom: 10px;
}

/* Adaptations aux différentes tailles d’écran. */
@media (min-width: 1600px) {
    .hero {
        padding-top: 75px;
    }

    .hero h1 {
        font-size: 58px;
    }

    .service-card {
        padding: 36px 36px 27px;
    }

    .service-card h2 {
        font-size: 34px;
    }
}

@media (max-width: 1000px) {
    .header-inner {
        gap: 17px;
        padding: 0 26px;
    }

    .header-links {
        gap: 19px;
    }

    .header-title {
        font-size: 11px;
    }

    .account-button {
        margin-left: 0;
    }

    .screen {
        padding-left: 28px;
        padding-right: 28px;
    }

    .site-footer {
        padding-left: 28px;
        padding-right: 28px;
        gap: 20px;
    }

    .site-footer>p {
        display: none;
    }

    .hero {
        padding-top: 45px;
    }

    .preparation-layout {
        gap: 25px;
    }

    .service-card {
        padding: 28px;
    }

    .waiting-overlay {
        padding-right: 160px;
    }

    .local-video-wrap {
        width: 160px;
    }
}

@media (max-width: 700px) {
    .site-header {
        height: 73px;
    }

    .header-inner {
        padding: 0 20px;
        gap: 13px;
    }

    .brand img {
        width: 73px;
    }

    .header-title {
        font-size: 10px;
        max-width: 90px;
        line-height: 1.5;
    }

    .header-divider {
        height: 22px;
    }

    .header-links {
        display: none;
    }

    .account-button {
        margin-left: auto;
        padding: 10px;
        border-radius: 9px;
        font-size: 10px;
        gap: 6px;
    }

    .account-button .icon {
        width: 16px;
        height: 16px;
    }

    .hero {
        padding: 38px 0 27px;
    }

    .hero .eyebrow {
        font-size: 8px;
        letter-spacing: 1.4px;
        gap: 7px;
    }

    h1 {
        font-size: 39px;
        letter-spacing: -1.8px;
    }

    .hero h1 {
        margin: 17px 0;
    }

    .hero-description {
        font-size: 12px;
        line-height: 1.85;
    }

    .screen {
        padding: 0 20px 45px;
    }

    .subscription-switch {
        width: 100%;
        margin-bottom: 22px;
        padding: 4px;
        gap: 4px;
    }

    .subscription-switch button {
        flex: 1;
        min-width: 0;
        padding: 12px 8px;
        font-size: 10px;
        gap: 7px;
    }

    .subscription-switch .icon {
        width: 16px;
        height: 16px;
    }

    .service-cards {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .service-card {
        padding: 26px 25px 22px;
    }

    .card-top {
        margin-bottom: 20px;
    }

    .service-icon {
        width: 49px;
        height: 49px;
        border-radius: 14px;
    }

    .service-tag {
        font-size: 8px;
    }

    .service-card h2 {
        font-size: 30px;
    }

    .service-card>p {
        max-width: none;
        font-size: 11px;
    }

    .service-features {
        margin: 19px 0 22px;
        font-size: 10px;
    }

    .button {
        min-height: 46px;
        font-size: 11px;
    }

    .availability {
        font-size: 9px;
    }

    .card-footnote {
        font-size: 8px;
    }

    .site-footer {
        padding: 20px;
        flex-wrap: wrap;
        gap: 20px;
        font-size: 8px;
    }

    .site-footer img {
        width: 55px;
    }

    .site-footer>div {
        gap: 13px;
    }

    .site-footer>div>span {
        font-size: 9px;
    }

    .notice {
        margin: 18px 20px 0;
        font-size: 11px;
        padding: 12px 15px;
    }

    .session-strip {
        font-size: 9px;
        gap: 10px;
        padding: 11px;
    }

    .session-strip>span {
        gap: 7px;
    }

    .session-strip .icon {
        width: 15px;
        height: 15px;
    }

    .session-strip .text-button {
        font-size: 9px;
        white-space: nowrap;
    }

    .section-heading {
        margin: 28px 0;
    }

    .section-heading h1 {
        font-size: 29px;
        letter-spacing: -1.2px;
    }

    .section-heading>p:last-child {
        font-size: 11px;
        max-width: 320px;
        margin: auto;
    }

    .section-heading .eyebrow {
        font-size: 8px;
    }

    .back-button {
        margin-top: 23px;
        font-size: 10px;
    }

    .preparation-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .preview-panel {
        aspect-ratio: 4/3;
        max-height: 350px;
    }

    .preparation-form {
        padding: 0;
    }

    .preparation-layout.chat-preparation {
        padding: 23px;
    }

    .conversation-screen {
        padding-top: 25px;
    }

    .conversation-top {
        align-items: flex-start;
        margin-bottom: 20px;
        gap: 15px;
        flex-wrap: wrap;
    }

    .conversation-top h1 {
        font-size: 24px;
        letter-spacing: -.8px;
    }

    .conversation-top .eyebrow {
        font-size: 8px;
        letter-spacing: 1.1px;
    }

    .conversation-meta {
        gap: 12px;
    }

    .connection-pill {
        font-size: 8px;
        padding: 7px 9px;
    }

    .duration {
        font-size: 10px;
    }

    .video-stage {
        height: 58vh;
        min-height: 350px;
    }

    .waiting-overlay {
        padding: 25px 25px 140px;
    }

    .waiting-overlay h2 {
        font-size: 23px;
    }

    .waiting-overlay>p {
        font-size: 10px;
    }

    .waiting-pulse {
        width: 54px;
        height: 54px;
        border-radius: 18px;
        margin-bottom: 17px;
    }

    .waiting-dots {
        margin-top: 15px;
    }

    .waiting-overlay .queue-label {
        font-size: 8px;
        padding: 6px 10px;
        margin-top: 14px;
    }

    .local-video-wrap {
        width: 115px;
        right: 12px;
        bottom: 12px;
        border-radius: 10px;
    }

    .stage-label {
        left: 12px;
        bottom: 20px;
        font-size: 7px;
        max-width: 90px;
        line-height: 1.6;
    }

    .video-controls {
        padding: 12px;
        gap: 10px;
    }

    .control-group {
        gap: 7px;
    }

    .control-button {
        padding: 11px;
        gap: 0;
    }

    .control-button span {
        display: none;
    }

    .control-button .icon {
        width: 18px;
        height: 18px;
    }

    .video-controls>.button {
        min-height: 40px;
        padding: 11px;
        font-size: 9px;
        gap: 7px;
    }

    .video-controls .button .icon {
        width: 16px;
        height: 16px;
    }

    .chat-heading {
        padding: 16px;
    }

    .advisor-avatar {
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }

    .chat-heading h2 {
        font-size: 11px;
    }

    .chat-heading p {
        font-size: 8px;
        max-width: 200px;
        line-height: 1.6;
    }

    .chat-messages {
        padding: 18px;
        height: 48dvh;
        min-height: 250px;
    }

    .chat-message {
        max-width: 90%;
    }

    .chat-welcome {
        margin-top: 5px;
    }

    .chat-welcome h3 {
        font-size: 11px;
    }

    .chat-welcome p {
        font-size: 9px;
    }

    .chat-composer {
        padding: 13px 15px;
        gap: 9px;
    }

    .chat-composer textarea {
        font-size: 12px;
    }

    .chat-footer {
        padding: 0 16px 15px;
    }

    .ended-screen {
        padding-top: 60px;
        padding-bottom: 65px;
    }

    .ended-screen h1 {
        font-size: 43px;
    }

    .ended-screen>.eyebrow {
        font-size: 8px;
    }

    .ended-screen>p:not(.eyebrow) {
        font-size: 11px;
    }

    .modal {
        padding: 30px 25px;
    }

    .modal h2 {
        font-size: 26px;
    }

    .modal-caption {
        font-size: 7px !important;
    }
}

@media (max-width: 370px) {
    .header-title, .header-divider {
        display: none;
    }

    .service-card {
        padding: 22px;
    }

    .service-tag {
        letter-spacing: .8px;
    }

    .service-card h2 {
        font-size: 28px;
    }

    .video-controls {
        flex-wrap: wrap;
    }

    .video-controls>.button {
        flex: 1;
    }

    .control-group {
        gap: 5px;
    }

    .control-button {
        padding: 9px;
    }
}

/* Horaires du service. */
.opening-hours {
    display: flex;
    gap: 14px;
    margin-top: 22px;
    padding: 20px 23px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #faf9f7;
    color: #777;
    font-size: 12px;
    line-height: 1.9;
}

.opening-hours>.icon {
    margin-top: 3px;
    color: #8d8174;
}

.opening-hours h3 {
    font-size: 12px;
    color: #49433f;
    font-weight: 600;
    margin-bottom: 4px;
}

.opening-hours>div>p {
    font-size: 10px;
    color: #8b8178;
    margin-top: 5px;
}

.hero {
    padding-top: 38px;
    padding-bottom: 30px;
}

.hero h1 {
    font-size: 48px;
}

.hero-description {
    font-size: 15px;
}

.service-card>p {
    font-size: 14px;
    line-height: 1.8;
}

.service-features {
    font-size: 12px;
}

.service-tag {
    font-size: 10px;
    letter-spacing: 1px;
}

.availability {
    font-size: 11px;
}

.button {
    font-size: 13px;
}

.card-footnote {
    font-size: 10px;
}

.site-footer {
    font-size: 11px;
}

.site-footer>div>span {
    font-size: 12px;
}

.section-heading>p:last-child {
    font-size: 14px;
}

.preparation-form label:not(.checkbox-label), .modal>label {
    font-size: 13px;
}

.checkbox-label {
    font-size: 13px;
}

.checkbox-label span, .device-feedback {
    font-size: 12px;
}

.optional, .form-note {
    font-size: 11px;
}

select, textarea {
    font-size: 13px;
}

.privacy-note {
    font-size: 10px;
}

.modal>p:not(.eyebrow):not(.field-error):not(.modal-caption) {
    font-size: 13px;
}

.modal-caption {
    font-size: 10px !important;
}

.connection-pill {
    font-size: 11px;
}

.waiting-overlay>p {
    font-size: 13px;
}

.queue-label {
    font-size: 11px;
}

.chat-heading h2 {
    font-size: 14px;
}

.chat-heading p {
    font-size: 11px;
}

.chat-welcome h3 {
    font-size: 14px;
}

.chat-welcome p {
    font-size: 12px;
}

.chat-welcome .queue-label {
    font-size: 10px;
}

.message-label, .message-time {
    font-size: 10px;
}

.message-text {
    font-size: 14px;
}

.chat-composer textarea {
    font-size: 14px;
}

.chat-footer {
    font-size: 10px;
}

.chat-footer .text-button {
    font-size: 11px;
}

.control-button {
    font-size: 11px;
}

.session-strip {
    font-size: 12px;
}

.text-button {
    font-size: 12px;
}

.ended-screen>p:not(.eyebrow) {
    font-size: 14px;
}

@media (max-width: 700px) {
    .hero {
        padding-top: 32px;
        padding-bottom: 25px;
    }

    .hero h1 {
        font-size: 37px;
    }

    .hero-description {
        font-size: 13px;
    }

    .service-tag {
        font-size: 9px;
    }

    .service-card>p {
        font-size: 13px;
    }

    .service-features {
        font-size: 12px;
    }

    .availability {
        font-size: 11px;
    }

    .button {
        font-size: 13px;
    }

    .session-strip {
        font-size: 10px;
    }

    .session-strip .text-button {
        font-size: 10px;
    }

    .section-heading>p:last-child {
        font-size: 13px;
    }

    .preview-placeholder p {
        font-size: 12px;
    }

    .preview-placeholder .button {
        font-size: 12px;
    }

    .chat-heading h2 {
        font-size: 13px;
    }

    .chat-heading p {
        font-size: 10px;
    }

    .chat-welcome h3 {
        font-size: 13px;
    }

    .chat-welcome p {
        font-size: 12px;
    }

    .chat-composer textarea, .message-text {
        font-size: 14px;
    }

    .waiting-overlay>p {
        font-size: 12px;
    }

    .waiting-overlay .queue-label {
        font-size: 10px;
    }

    .conversation-meta {
        flex-wrap: wrap;
    }

    .connection-pill {
        font-size: 10px;
    }

    .control-button {
        padding: 10px;
    }

    .video-controls>.button {
        font-size: 11px;
        padding: 11px 12px;
    }

    .ended-screen>p:not(.eyebrow) {
        font-size: 13px;
    }

    .site-footer {
        font-size: 10px;
    }

    .site-footer>div>span {
        font-size: 10px;
    }

    .modal-caption {
        font-size: 9px !important;
    }

    .opening-hours {
        padding: 17px;
        font-size: 11px;
    }
}

@media (prefers-reduced-motion:reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* Connexion du profil fictif, partenaire officiel et conversation vidéo avec chat. */
.partner-brand {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 25px;
    font-size: 11px;
    color: var(--muted);
}

.partner-brand img {
    width: 120px;
    height: auto;
}

.login-form {
    padding-top: 15px;
    margin-top: 20px;
    border-top: 1px solid var(--line);
}

.login-form > p {
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 13px;
}

.login-form > label {
    display: block;
    margin: 15px 0 8px;
    font-size: 13px;
    font-weight: 600;
}

.login-form input {
    width: 100%;
    border: 1px solid #dfdbd7;
    border-radius: 9px;
    padding: 12px;
    font-size: 16px;
}

.login-form > .button {
    width: 100%;
    margin-top: 22px;
}

.test-credentials {
    margin-top: 18px;
    font-size: 11px;
    color: #777;
    line-height: 1.9;
}

.test-credentials summary {
    cursor: pointer;
}

.test-credentials p {
    margin-top: 8px;
    overflow-wrap: anywhere;
}

.conversation-layout.video-and-chat {
    --call-panel-height: clamp(380px, 76dvh, 620px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.conversation-layout.video-and-chat.chat-open {
    grid-template-columns: minmax(0, 1.7fr) minmax(310px, 1fr);
}

.video-and-chat .video-workspace {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: var(--call-panel-height);
}

.video-and-chat .video-stage {
    flex: 1;
    height: auto;
    min-height: 0;
}

.video-and-chat .video-controls {
    flex-shrink: 0;
    flex-wrap: wrap;
}

.video-and-chat .chat-workspace {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: var(--call-panel-height);
    margin: 0;
}

.video-and-chat .chat-messages {
    flex: 1 1 0;
    height: auto;
    min-height: 0;
    padding: 18px;
    overflow-y: auto;
}

.video-and-chat .chat-heading,  .video-and-chat .chat-composer,  .video-and-chat .chat-footer,  .video-and-chat .typing {
    flex-shrink: 0;
}

.video-and-chat .chat-heading {
    padding: 17px;
}

.video-and-chat .chat-heading > div {
    flex: 1;
    min-width: 0;
}

#close-call-chat {
    margin-left: 0;
    flex-shrink: 0;
}

#close-call-chat .icon {
    transform: rotate(45deg);
}

.video-and-chat #download-chat {
    flex-shrink: 0;
}

#toggle-call-chat {
    position: relative;
}

#toggle-call-chat[aria-expanded=true] {
    background: #fdebed;
    color: #b72027;
}

#toggle-call-chat .chat-unread {
    display: grid;
    place-items: center;
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    background: var(--red);
    color: #fff;
    border: 2px solid #fff;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 700;
}

#conversation-layout:fullscreen {
    --call-panel-height: calc(100dvh - 40px);
    width: 100%;
    height: 100%;
    padding: 20px;
    background: #202423;
    overflow: auto;
}

.video-and-chat .chat-composer {
    padding: 14px;
    gap: 10px;
}

.video-and-chat .chat-footer {
    padding: 0 17px 14px;
}

.video-and-chat .control-button {
    padding: 12px 10px;
}

.video-and-chat .local-video-wrap {
    width: 145px;
}

.survey-card {
    max-width: 700px;
    margin: 35px auto 0;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-align: left;
    background: #fff;
}

.survey-card h2 {
    font-size: 25px;
    letter-spacing: -.7px;
    margin-bottom: 12px;
}

.survey-card > p {
    color: #777;
    font-size: 13px;
    line-height: 1.9;
}

.survey-question {
    border: 0;
    margin: 25px 0;
    padding: 0;
    min-width: 0;
}

.survey-question legend {
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.8;
    margin-bottom: 12px;
}

.survey-question > p {
    font-size: 12px;
    color: #777;
    line-height: 1.8;
}

.survey-question > video {
    display: block;
    max-width: 100%;
    width: 320px;
    margin-bottom: 16px;
    border-radius: 10px;
}

.survey-question > input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    font-size: 14px;
}

.survey-scores {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.survey-scores label {
    position: relative;
    display: block;
    cursor: pointer;
}

.survey-scores input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.survey-scores span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #ddd;
    border-radius: 9px;
    font-size: 14px;
}

.survey-scores input:checked + span {
    color: #fff;
    background: var(--red);
    border-color: var(--red);
}

.survey-scores input:focus-visible + span {
    outline: 3px solid #1b6dbb;
    outline-offset: 3px;
}

.survey-card form > .button {
    width: 100%;
    margin-top: 20px;
}

.survey-card form > .text-button {
    display: block;
    margin: 15px auto 0;
}

@media (max-width: 1050px) {
    .conversation-layout.video-and-chat.chat-open {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 700px) {
    .partner-brand {
        justify-content: center;
        margin-top: 22px;
    }

    .partner-brand img {
        width: 110px;
    }

    .survey-card {
        padding: 23px 18px;
    }

    .survey-card h2 {
        font-size: 22px;
    }

    .survey-question legend {
        font-size: 13px;
    }

    .survey-scores {
        gap: 7px;
    }

    .survey-scores span {
        width: 37px;
        height: 40px;
    }

    .video-and-chat .local-video-wrap {
        width: 110px;
    }
}
