/* ═══════════════════════════════════════════
   JustNow — Page grands comptes (Multicompte)
   La base (fond, polices, titre en escalier, boutons, en-tête,
   pied de page) vient de restaurateurs.css. Ce fichier n'ajoute
   que ce qui est propre à la page. L'écran du Multicompte est
   le seul élément décoratif, comme l'ardoise chez les restaurateurs.
   ═══════════════════════════════════════════ */

.gc {
    --gc-screen: #ffffff;
    --gc-wait: #9ba49f;
    --gc-orange-text: #b8430f;
    --gc-metal-light: #e3e6e2;
    --gc-metal: #c4c9c4;
    --gc-metal-dark: #a7ada7;
}

/* ─── Hero ────────────────────────────────────────────── */

.gc-kicker {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1.25rem;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--resto-ink);
}

.gc-kicker::before {
    content: "";
    flex: none;
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: var(--resto-orange);
}

/* « nationale ou internationale ? » est plus longue que la ligne
   de la page restaurateurs : taille recalculée pour tenir sur une ligne */
.gc .gc-title {
    font-size: clamp(1.5rem, calc((100vw - 2 * var(--resto-gutter)) / 9.9), 5rem);
}

.gc-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
    grid-template-areas:
        "intro screen"
        "pro   screen";
    column-gap: clamp(2.5rem, 6vw, 5rem);
    row-gap: 3rem;
    align-items: start;
}

/* ─── Bloc Multicompte ────────────────────────────────── */

.gc-list {
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

.gc-list li {
    position: relative;
    padding-left: 1.75rem;
    font-size: 1.125rem;
    line-height: 1.45;
    color: var(--resto-ink);
    text-wrap: pretty;
}

.gc-list li + li {
    margin-top: 0.5rem;
}

/* Puce en forme d'épingle, comme sur l'écran */
.gc-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 1.1em;
    height: 1.1em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ff6b35' d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.gc-note {
    margin: 1.25rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--resto-muted);
}

.gc-note a {
    font-weight: 700;
    color: var(--resto-ink);
    text-decoration: underline;
    text-decoration-color: var(--resto-orange);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.25em;
}

.gc-note a:hover {
    color: var(--resto-ink);
    text-decoration-color: var(--resto-ink);
}

/* ─── Ordinateur ──────────────────────────────────────── */

.gc-laptop {
    --gc-start: 750ms;
    --gc-step: 280ms;

    grid-area: screen;
    margin: 0;
    padding-top: 0.25rem;
    container-type: inline-size;
}

.gc-laptop__lid {
    position: relative;
    width: 88%;
    margin: 0 auto;
    padding: 0.75rem 0.625rem 0.625rem;
    border-radius: 14px 14px 4px 4px;
    background: var(--resto-ink);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Webcam */
.gc-laptop__lid::before {
    content: "";
    position: absolute;
    top: 0.3rem;
    left: 50%;
    width: 0.25rem;
    height: 0.25rem;
    margin-left: -0.125rem;
    border-radius: 50%;
    background: #3d4944;
}

.gc-laptop__base {
    position: relative;
    height: 0.875rem;
    border-radius: 2px 2px 14px 14px / 2px 2px 9px 9px;
    background: linear-gradient(180deg, var(--gc-metal-light) 0%, var(--gc-metal) 60%, var(--gc-metal-dark) 100%);
    box-shadow: 0 1.75rem 2.5rem -1.5rem rgba(28, 36, 33, 0.55);
}

/* Encoche d'ouverture */
.gc-laptop__base::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 16%;
    height: 0.3rem;
    transform: translateX(-50%);
    border-radius: 0 0 6px 6px;
    background: var(--gc-metal-dark);
}

/* ─── Écran du Multicompte ────────────────────────────── */

.gc-screen {
    overflow: hidden;
    border-radius: 3px;
    background: var(--gc-screen);
    color: var(--resto-ink);
    font-family: var(--resto-font-text);
    font-size: 0.875rem;
    /* suit la largeur de l'ordinateur */
    font-size: clamp(0.75rem, 3.15cqi, 0.9375rem);
    line-height: 1.3;
    text-align: left;
}

.gc-screen__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    padding: 0.8em 1.15em;
    border-bottom: 1px solid var(--resto-rule);
    background: var(--resto-paper);
}

.gc-screen__app {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    font-family: var(--resto-font-title);
    font-size: 1.45em;
    font-weight: 800;
    line-height: 1;
}

.gc-screen__app::before {
    content: "";
    flex: none;
    width: 0.4em;
    height: 0.4em;
    border-radius: 50%;
    background: var(--resto-orange);
}

.gc-screen__account {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-weight: 600;
    color: var(--resto-muted);
    white-space: nowrap;
}

/* Chevron : on passe d'un compte à l'autre */
.gc-screen__account::after {
    content: "";
    width: 0.4em;
    height: 0.4em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-25%) rotate(45deg);
}

.gc-screen__post {
    display: grid;
    justify-items: start;
    gap: 0.3em;
    padding: 1.15em 1.15em 1.25em;
    border-bottom: 1px solid var(--resto-rule);
}

.gc-screen__type {
    padding: 0.2em 0.7em;
    border-radius: 999px;
    background: rgba(255, 107, 53, 0.14);
    color: var(--gc-orange-text);
    font-size: 0.85em;
    font-weight: 700;
}

.gc-screen__text {
    margin-top: 0.3em;
    font-size: 1.3em;
    font-weight: 700;
    line-height: 1.15;
}

.gc-screen__detail {
    color: var(--resto-muted);
}

/* Les deux libellés sont superposés et se relaient */
.gc-screen__publish {
    display: grid;
    margin-top: 0.8em;
    padding: 0.7em 1.15em;
    border-radius: 6px;
    background: var(--resto-orange);
    color: var(--resto-ink);
    font-weight: 700;
    line-height: 1.2;
}

.gc-screen__publish > span {
    grid-area: 1 / 1;
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
}

.gc-screen__publish-done {
    opacity: 0;
}

/* Coche */
.gc-screen__publish-done::before {
    content: "";
    flex: none;
    width: 0.35em;
    height: 0.7em;
    margin-top: -0.2em;
    border-right: 0.16em solid currentColor;
    border-bottom: 0.16em solid currentColor;
    transform: rotate(45deg);
}

.gc-screen__stores {
    margin: 0;
    padding: 0.3em 0 0.45em;
    list-style: none;
}

.gc-screen__store {
    --delay: calc(var(--gc-start) + var(--i, 0) * var(--gc-step));

    display: grid;
    grid-template-columns: 2.1em minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 0.6em;
    padding: 0.55em 1.15em;
}

.gc-screen__store + .gc-screen__store {
    border-top: 1px solid rgba(28, 36, 33, 0.08);
}

.gc-screen__pin {
    justify-self: center;
    width: 1.3em;
    height: 1.3em;
    color: var(--gc-wait);
}

.gc-screen__count {
    justify-self: center;
    padding: 0.2em 0.4em;
    border-radius: 999px;
    background: #e7eae7;
    color: var(--resto-muted);
    font-size: 0.8em;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.gc-screen__place {
    display: grid;
    min-width: 0;
}

.gc-screen__city {
    font-weight: 700;
}

.gc-screen__street {
    overflow: hidden;
    font-size: 0.9em;
    color: var(--resto-muted);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.gc-screen__status {
    display: grid;
    justify-items: end;
    font-size: 0.9em;
    font-weight: 700;
    white-space: nowrap;
}

.gc-screen__status > span {
    grid-area: 1 / 1;
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
}

.gc-screen__status-todo {
    color: var(--gc-wait);
}

.gc-screen__status-done {
    opacity: 0;
}

.gc-screen__status-done::before {
    content: "";
    flex: none;
    width: 0.55em;
    height: 0.55em;
    border-radius: 50%;
    background: var(--resto-orange);
}

/* ─── Appel à la démonstration ────────────────────────── */

.gc-demo {
    width: 100%;
    max-width: 75rem;
    margin: 0 auto;
    padding: clamp(3.5rem, 8vw, 6rem) var(--resto-gutter) clamp(1.5rem, 4vw, 2.5rem);
}

.gc-demo__title {
    max-width: 16em;
    margin: 0 0 1rem;
    font-family: var(--resto-font-title);
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.005em;
    color: var(--resto-ink);
    text-wrap: balance;
}

.gc-demo__text {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--resto-ink);
}

/* « ci-dessous » ne se coupe pas et garde sa flèche */
.gc-demo__nowrap {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.gc-demo__arrow {
    flex: none;
    color: var(--resto-orange);
}

/* Bouton de la vidéo visible au clavier */
.gc .lp-pro-video-btn:focus-visible {
    opacity: 1;
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

/* ─── Responsive ──────────────────────────────────────── */

@media (max-width: 56rem) {
    .gc-hero__grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "intro"
            "screen"
            "pro";
    }

    .gc-laptop {
        justify-self: center;
        width: 100%;
        max-width: 30rem;
    }
}

@media (max-width: 34rem) {
    .gc-laptop__lid {
        width: 94%;
        padding: 0.625rem 0.4rem 0.4rem;
        border-radius: 10px 10px 3px 3px;
    }

    .gc-laptop__lid::before {
        top: 0.22rem;
    }

    .gc-list li {
        font-size: 1.0625rem;
    }
}

/* ─── Animation : la promo part dans chaque établissement ─ */

@media (prefers-reduced-motion: no-preference) {
    .gc-laptop--published .gc-screen__publish {
        --done: calc(var(--gc-start) + var(--rows, 6) * var(--gc-step) + 150ms);

        animation:
                gc-press 380ms ease 350ms,
                gc-published 320ms ease var(--done) forwards;
    }

    .gc-laptop--published .gc-screen__publish-todo {
        animation: gc-hide 200ms ease var(--done) forwards;
    }

    .gc-laptop--published .gc-screen__publish-done {
        animation: gc-show 280ms ease var(--done) forwards;
    }

    .gc-laptop--published .gc-screen__pin {
        animation: gc-pin 480ms cubic-bezier(0.34, 1.56, 0.64, 1) var(--delay) forwards;
    }

    .gc-laptop--published .gc-screen__count {
        animation: gc-count 300ms ease var(--delay) forwards;
    }

    .gc-laptop--published .gc-screen__status-todo {
        animation: gc-hide 180ms ease var(--delay) forwards;
    }

    .gc-laptop--published .gc-screen__status-done {
        animation: gc-show 280ms ease var(--delay) forwards;
    }
}

@keyframes gc-press {
    40% {
        transform: scale(0.96);
    }
}

@keyframes gc-published {
    to {
        background-color: var(--resto-ink);
        color: var(--resto-paper);
    }
}

@keyframes gc-hide {
    to {
        opacity: 0;
    }
}

@keyframes gc-show {
    from {
        opacity: 0;
        transform: translateY(0.35em);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes gc-pin {
    0% {
        color: var(--gc-wait);
        transform: none;
    }
    40% {
        color: var(--resto-orange);
        transform: translateY(-0.3em) scale(1.15);
    }
    100% {
        color: var(--resto-orange);
        transform: none;
    }
}

@keyframes gc-count {
    to {
        background-color: var(--resto-orange);
        color: var(--resto-ink);
    }
}

/* Mouvement réduit : l'écran s'affiche directement publié */
@media (prefers-reduced-motion: reduce) {
    .gc-screen__publish {
        background: var(--resto-ink);
        color: var(--resto-paper);
    }

    .gc-screen__publish-todo,
    .gc-screen__status-todo {
        opacity: 0;
    }

    .gc-screen__publish-done,
    .gc-screen__status-done {
        opacity: 1;
    }

    .gc-screen__pin {
        color: var(--resto-orange);
    }

    .gc-screen__count {
        background: var(--resto-orange);
        color: var(--resto-ink);
    }
}
