:root {
      --ink: #223c49;
      --ink-soft: #526974;
      --blue: #007cb7;
      --blue-soft: #eaf6fc;
      --green: #9fd34b;
      --green-dark: #27895e;
      --mint: #eaf8f0;
      --cream: #f5f3ef;
      --line: #e4ded4;
      --white: #fff;
      --shadow: 0 18px 50px rgba(35, 55, 67, .055);
      --radius: 18px;
    }
    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body { margin: 0; min-width: 320px; color: var(--ink); font: 400 16px/1.55 "Trebuchet MS", "Segoe UI", Arial, sans-serif; background: var(--cream); }
    button { font: inherit; }
    button:focus-visible, a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
    .shell { width: min(1184px, calc(100% - 64px)); margin: 0 auto; }

    /* En-tête inspiré de la capture d'écran */
    .site-header { height: 82px; display: flex; align-items: center; background: rgba(255,255,255,.96); border-bottom: 1px solid #eeeae5; position: relative; z-index: 2; }
    .header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
    .header-left { display: flex; align-items: center; gap: clamp(36px, 5vw, 88px); }
    /* Véritable logo L'ophicine : ses proportions sont préservées sur tous les écrans. */
    .brand { display: inline-flex; align-items: center; flex: 0 0 auto; height: 54px; }
    .brand-logo { display: block; width: auto; height: 49px; max-width: 100%; object-fit: contain; }
    .header-note { font-size: 13px; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
    .header-note .mini-dot, .live-dot { display: inline-block; width: 8px; height: 8px; background: #00a274; border-radius: 50%; box-shadow: 0 0 0 4px rgba(0, 162, 116, .09); }
    .header-right { display: flex; align-items: center; gap: 12px; }
    .header-pill { display: inline-block; min-width: 242px; max-width: 300px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; border: 1px solid #ddd6cc; border-radius: 999px; background: #f1efeb; padding: 11px 19px; font-size: 12px; text-align: center; letter-spacing: .02em; }
    .header-avatar { width: 43px; height: 43px; border: 1px solid #e2dacf; border-radius: 50%; background: #f3f0eb; display: grid; place-items: center; }
    .header-avatar svg { width: 23px; height: 23px; stroke: var(--ink); }

    /* Trame et petites croix, dans l'esprit du fond d'origine */
    .background-grid { position: absolute; inset: 0; pointer-events: none; opacity: .62; background-image: linear-gradient(to right, #dfd7cc 1px, transparent 1px), linear-gradient(to bottom, #dfd7cc 1px, transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 85%, transparent 100%); }
    .main-visual { position: relative; isolation: isolate; padding: 56px 0 66px; overflow: hidden; }
    .main-visual .background-grid { z-index: -2; }
    .main-visual::before { content: ""; position: absolute; z-index: -1; top: 0; left: 10%; width: 80%; height: 560px; background: radial-gradient(ellipse at 50% 38%, rgba(255,255,255,.64), transparent 67%); pointer-events: none; }
    .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: clamp(35px, 6vw, 92px); align-items: start; }
    .hero-intro { padding-top: 22px; min-width: 0; }
    .eyebrow { display: inline-flex; gap: 9px; align-items: center; padding: 7px 12px; color: #2c7055; font-size: 12px; font-weight: 800; border-radius: 999px; background: #e6f6eb; border: 1px solid #cce9d6; letter-spacing: .045em; text-transform: uppercase; }
    h1, h2, h3, p { margin-top: 0; }
    h1 { font-size: clamp(37px, 3.55vw, 53px); line-height: 1.14; letter-spacing: -.055em; font-weight: 800; margin: 24px 0 18px; }
    h1 .accent { color: var(--blue); }
    .lead { max-width: 470px; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.68; margin: 0 0 24px; }
    .lead strong { color: var(--blue); font-weight: 800; }
    .notice-card { width: min(390px,100%); padding: 12px 17px; background: rgba(255,255,255,.93); border: 1px solid #e1d9cf; border-radius: 13px; box-shadow: 0 3px 11px rgba(56,42,22,.02); }
    .notice-card .caption { display: block; font-size: 12px; color: #60717c; line-height: 1.5; }
    .notice-card strong { display: flex; align-items: center; gap: 7px; font-size: 14px; line-height: 1.4; font-weight: 700; }
    .info-icon { display: inline-grid; place-items: center; border: 1.6px solid var(--ink); border-radius: 50%; width: 14px; height: 14px; font-family: Georgia,serif; font-size: 9px; font-weight: bold; flex-shrink: 0; }
    .illustration-wrap { margin: 11px -25px -55px -51px; max-width: 620px; }
    .pharmacy-art { width: 100%; height: auto; display: block; filter: drop-shadow(0 12px 5px rgba(0,105,157,.025)); }

    .status-stack { display: grid; gap: 16px; }
    .status-card { background: rgba(255,255,255,.97); border: 1px solid #ded9d2; border-radius: 20px; padding: clamp(24px, 2.6vw, 36px); box-shadow: var(--shadow); }
    .status-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
    .status-label { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 800; color: #237850; background: #e9f8ef; padding: 7px 11px; border-radius: 7px; white-space: nowrap; }
    .status-symbol { display: grid; place-items: center; width: 45px; height: 45px; background: #f0f0ff; color: #7d64d4; border-radius: 13px; }
    .status-symbol svg { width: 27px; height: 27px; }
    .status-card h2 { font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -.04em; line-height: 1.25; margin: 28px 0 10px; }
    .status-description { font-size: 14px; color: var(--ink-soft); margin: 0 0 25px; max-width: 370px; }
    .timer { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
    .time-unit { min-width: 0; padding: 15px 4px 11px; border: 1px solid #e1e5ea; background: #f7f9fb; border-radius: 12px; text-align: center; }
    .time-number { font-size: clamp(26px, 3.4vw, 46px); font-weight: 800; line-height: 1.12; letter-spacing: -.04em; display: block; font-variant-numeric: tabular-nums; }
    .time-label { display: block; font-size: 10px; font-weight: 800; color: #6b7c85; text-transform: uppercase; letter-spacing: .085em; margin-top: 8px; }
    .return-line { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; font-size: 13px; color: var(--ink-soft); margin: 18px 0 0; text-align: center; }
    .return-line strong { color: var(--ink); }
    .card-divider { height: 1px; background: #e9e6e2; margin: 25px 0 20px; }
    .progress-head { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; margin-bottom: 10px; }
    .progress-head strong { font-size: 12px; }
    .progress-head span { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
    .progress-track { width: 100%; height: 9px; background: #e7edf0; border-radius: 20px; overflow: hidden; }
    .progress-fill { width: 0%; height: 100%; background: linear-gradient(90deg, #90d449, #00a77a); border-radius: inherit; transition: width .5s ease; }
    .current-step { margin: 13px 0 0; font-size: 12px; color: var(--ink-soft); min-height: 19px; }
    .live-note { margin-top: 20px; display: flex; gap: 9px; align-items: center; color: #657985; font-size: 12px; }
    .live-note .live-dot { width: 6px; height: 6px; }
    .secondary-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .secondary-card { min-height: 116px; padding: 20px 20px 17px; border: 1px solid #d9ded8; border-radius: 15px; }
    .secondary-card.mint { background: #f0faf3; }
    .secondary-card.blue { background: #eff8fc; }
    .secondary-card svg { width: 24px; height: 24px; margin-bottom: 9px; color: #168b62; }
    .secondary-card.blue svg { color: #2193cd; }
    .secondary-card strong { display: block; font-size: 13px; line-height: 1.45; }
    .secondary-card span { display: block; color: var(--ink-soft); margin-top: 4px; font-size: 12px; }

    .schedule { background: #f7f5f2; border-top: 1px solid #ebe5db; padding: 54px 0 67px; }
    .schedule-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 21px; }
    .section-kicker { display: block; color: var(--blue); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 7px; }
    .schedule h2 { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.2; letter-spacing: -.045em; margin-bottom: 7px; }
    .schedule-heading p { font-size: 15px; color: var(--ink-soft); margin: 0; }
    .carousel-controls { display: flex; gap: 9px; }
    .nav-button { background: #fff; color: var(--ink); cursor: pointer; display: grid; place-items: center; border: 1px solid #dcd7d0; width: 42px; height: 42px; border-radius: 50%; transition: background .2s,border-color .2s,transform .2s; }
    .nav-button:hover { background: #f0faf3; border-color: #94cba5; transform: translateY(-2px); }
    .nav-button svg { width: 19px; height: 19px; }
    .slots-viewport { overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 16px; }
    .slots-viewport::-webkit-scrollbar { display: none; }
    .slots-track { display: flex; gap: 14px; }
    .slot-card { flex: 0 0 calc((100% - 42px) / 4); scroll-snap-align: start; min-width: 230px; min-height: 170px; border: 1px solid #e1dad2; border-radius: 15px; padding: 19px 19px 17px; background: #fff; transition: border-color .2s,box-shadow .2s; }
    .slot-card.is-running { border-color: #76c9a1; box-shadow: 0 5px 16px rgba(32,153,112,.075); background: #f7fefa; }
    .slot-meta { display: flex; align-items: start; justify-content: space-between; gap: 8px; margin-bottom: 18px; }
    .slot-time { font-size: 13px; font-weight: 800; color: #007eb9; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
    .slot-badge { border-radius: 999px; background: #f1f2f3; color: #697780; padding: 4px 7px; line-height: 1.1; white-space: nowrap; font-size: 10px; font-weight: 800; }
    .slot-badge.running { background: #dff6e9; color: #168053; }
    .slot-badge.done { background: #e4f1fa; color: #287ba9; }
    .slot-card h3 { font-size: 17px; letter-spacing: -.02em; line-height: 1.25; margin-bottom: 9px; }
    .slot-card p { color: var(--ink-soft); font-size: 12px; line-height: 1.55; margin-bottom: 0; }
    .schedule-bottom { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin-top: 16px; }
    .schedule-hint { font-size: 12px; color: #76848b; }
    .slot-dots { display: flex; gap: 7px; align-items: center; }
    .slot-dot { width: 7px; height: 7px; border: 0; border-radius: 99px; background: #cdd6d8; padding: 0; cursor: pointer; transition: background .2s,width .2s; }
    .slot-dot[aria-current="true"] { background: var(--blue); width: 23px; }
    .site-footer { padding: 24px 0 28px; background: #fff; border-top: 1px solid #eeeae5; color: #72808a; font-size: 12px; }
    .footer-content { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
    .retry-button { cursor: pointer; padding: 10px 15px; background: #fff; color: var(--blue); border: 1px solid #c8dbe5; font-size: 12px; font-weight: 800; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; transition: background .2s; }
    .retry-button:hover { background: #eaf6fc; }
    .retry-button svg { width: 16px; height: 16px; }
    .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

    @media (max-width: 1040px) {
      .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; }
      .status-card { padding: 23px; }
      .slot-card { flex-basis: calc((100% - 28px) / 3); }
    }
    @media (max-width: 760px) {
      .shell { width: min(580px, calc(100% - 34px)); }
      .site-header { height: 74px; }
      .header-note { display: none; }
      .header-pill { min-width: 0; max-width: 210px; padding: 10px 13px; font-size: 10px; }
      .header-avatar { display: none; }
      .brand-logo { height: 45px; }
      .main-visual { padding: 37px 0 44px; }
      .hero { display: flex; flex-direction: column; gap: 24px; }
      .hero-intro { padding-top: 0; width: 100%; }
      h1 { margin: 18px 0 12px; }
      .lead { margin-bottom: 20px; }
      .illustration-wrap { max-width: 460px; margin: 1px auto -16px; }
      .status-stack { width: 100%; }
      .slot-card { flex-basis: 77%; }
      .schedule { padding: 43px 0 50px; }
    }
    @media (max-width: 430px) {
      .header-pill { max-width: 155px; }
      .brand-logo { height: 39px; }
      .status-card { padding: 21px 17px; }
      .timer { gap: 7px; }
      .time-unit { padding: 13px 1px 10px; }
      .time-number { font-size: 29px; }
      .time-label { font-size: 9px; letter-spacing: 0; }
      .secondary-cards { gap: 9px; }
      .secondary-card { padding: 16px 12px; }
      .schedule-heading { align-items: center; }
      .schedule-heading p { font-size: 13px; }
      .carousel-controls { gap: 5px; }
      .nav-button { width: 35px; height: 35px; }
      .footer-content { align-items: flex-start; flex-direction: column; gap: 12px; }
    }
    @media (prefers-reduced-motion: reduce) {
      html, .slots-viewport { scroll-behavior: auto; }
      *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
    }
    .estimation-note { color: #798892; font-size: 11px; margin: 10px 0 0; line-height: 1.45; }
    .config-alert { padding: 11px 13px; border: 1px solid #e7b7a5; color: #8c3522; background: #fff4ef; border-radius: 9px; font-size: 12px; margin: 16px 0 0; }
    .config-alert[hidden] { display: none; }
