/* ==========================================================================
   MikKody — Vitrine
   Direction : « poste de contrôle ». Une interface est un instrument, pas une
   brochure : la structure porte l'information, la couleur porte le statut.
   Deux règles tenues partout :
     1. Les données machine (IP, code, montant, débit) sont en monospace.
     2. Aucune élévation par ombre — paliers de fond et filets uniquement.
   ========================================================================== */

:root {
    /* Base — gris graphite froid, jamais crème */
    --pc-bg:            #edeff0;
    --pc-surface:       #ffffff;
    --pc-sunken:        #e4e8e9;
    --pc-line:          #cbd4d6;
    --pc-line-strong:   #aeb9bc;

    /* Encre */
    --pc-text:          #141a1d;
    --pc-muted:         #5a6669;

    /* Accent unique — pétrole profond */
    --pc-primary:       #0b6e5f;
    --pc-primary-hover: #095a4e;
    --pc-primary-dim:   rgba(11, 110, 95, 0.08);

    /* Ambre — réservé à l'argent et à l'attention. Jamais décoratif.
       Deux valeurs : la teinte pour les traits, l'encre pour le texte (AA). */
    --pc-amber:         #b5721a;
    --pc-amber-ink:     #8a5510;
    --pc-amber-tint:    #fbf7f0;

    /* Statuts */
    --pc-up:            #1f7a4d;
    --pc-down:          #a83226;

    --pc-sans:  'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --pc-mono:  'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

    --pc-measure: 1280px;
    --pc-speed:   180ms;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

/* `display` posé par nos classes neutralise [hidden] du navigateur : on le rétablit. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--pc-bg);
    color: var(--pc-text);
    font-family: var(--pc-sans);
    font-size: 16px;
    line-height: 1.55;
    font-feature-settings: 'tnum' 1;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.pc-measure {
    max-width: var(--pc-measure);
    margin-inline: auto;
    padding-inline: 24px;
}

/* Toute valeur machine passe par ici */
.pc-num {
    font-family: var(--pc-mono);
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum' 1;
}

.pc-visually-hidden {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
}

/* Le focus est redessiné, jamais supprimé */
:where(a, button, [tabindex]):focus-visible {
    outline: 2px solid var(--pc-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Barre supérieure
   -------------------------------------------------------------------------- */

.pc-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--pc-surface);
    border-bottom: 1px solid var(--pc-line);
}

.pc-topbar__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 62px;
}

.pc-brand {
    display: flex;
    align-items: baseline;
    gap: 9px;
    font-weight: 700;
    font-size: 1.0625rem;
    letter-spacing: -0.03em;
}

.pc-brand__mark {
    width: 9px;
    height: 9px;
    background: var(--pc-primary);
    border-radius: 1px;
    transform: translateY(-1px);
}

.pc-topnav {
    display: flex;
    gap: 26px;
    margin-inline-start: auto;
    font-size: 0.875rem;
    font-weight: 500;
}

.pc-topnav a { color: var(--pc-muted); padding-block: 4px; border-bottom: 1.5px solid transparent; }
.pc-topnav a:hover { color: var(--pc-text); border-bottom-color: var(--pc-line-strong); }

.pc-topbar__actions { display: flex; align-items: center; gap: 10px; }

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */

.pc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 3px;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--pc-speed) ease, border-color var(--pc-speed) ease, color var(--pc-speed) ease;
}

.pc-btn--primary {
    background: var(--pc-primary);
    border-color: var(--pc-primary);
    color: #fff;
}
.pc-btn--primary:hover { background: var(--pc-primary-hover); border-color: var(--pc-primary-hover); }

.pc-btn--quiet {
    background: transparent;
    border-color: var(--pc-line-strong);
    color: var(--pc-text);
}
.pc-btn--quiet:hover { background: var(--pc-surface); border-color: var(--pc-text); }

.pc-btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   Hero — grille asymétrique, alignée à gauche
   -------------------------------------------------------------------------- */

.pc-hero { padding-block: 72px 84px; }

.pc-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 64px;
    align-items: center;
}

/* Étiquette de catégorie. Elle portait une pastille verte : un témoin d'état
   sur un texte qui n'énonce aucun état. La pastille est retirée — décorer une
   catégorie en indicateur, c'est exactement ce que l'identité proscrit. */
.pc-kicker {
    display: inline-block;
    margin-bottom: 22px;
    padding: 5px 11px;
    border: 1px solid var(--pc-line);
    border-radius: 3px;
    background: var(--pc-surface);
    font-family: var(--pc-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.02em;
    color: var(--pc-primary);
}

.pc-hero h1 {
    font-size: clamp(2.125rem, 4.4vw, 3.25rem);
    max-width: 15ch;
    margin-bottom: 20px;
}

.pc-hero__lede {
    max-width: 46ch;
    margin-bottom: 30px;
    font-size: 1.0625rem;
    color: var(--pc-muted);
}

.pc-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Fiche technique du hero — cinq faits, chacun avec son rôle.
   C'était une liste à points médians (« A · B · C »), c'est-à-dire du chrome :
   elle ne disait pas ce que chaque technologie fait là. */
.pc-stack {
    margin: 36px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--pc-line);
    display: grid;
    gap: 7px;
    font-family: var(--pc-mono);
    font-size: 0.75rem;
    line-height: 1.5;
}

.pc-stack__row {
    display: grid;
    grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
    gap: 16px;
}

.pc-stack__row dt { color: var(--pc-muted); }
.pc-stack__row dd { margin: 0; color: var(--pc-text); }

/* --------------------------------------------------------------------------
   Panneau « poste de contrôle » — l'artefact du hero
   -------------------------------------------------------------------------- */

.pc-panel {
    background: var(--pc-surface);
    border: 1px solid var(--pc-line);
    border-radius: 4px;
}

.pc-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--pc-line);
    background: var(--pc-sunken);
}

.pc-panel__title { font-size: 0.8125rem; font-weight: 600; }

.pc-panel__tag {
    font-family: var(--pc-mono);
    font-size: 0.6875rem;
    color: var(--pc-muted);
}

.pc-section { padding: 14px 16px; border-bottom: 1px solid var(--pc-line); }
.pc-section:last-child { border-bottom: 0; }

.pc-section__label {
    margin-bottom: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--pc-muted);
}

/* Ligne de parc */
.pc-fleet { display: grid; gap: 9px; }

.pc-fleet__row {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 12px;
    font-size: 0.8125rem;
    white-space: nowrap;
}

/* Sur un écran étroit, les trois relevés ne se compressent pas (nowrap) et
   écrasaient la colonne du nom jusqu'à la faire disparaître. Ils passent
   simplement à la ligne sous le nom. */
@media (max-width: 620px) {
    .pc-fleet__row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 2px 10px;
    }

    .pc-fleet__name { white-space: normal; }
}

.pc-fleet__name { font-family: var(--pc-mono); font-size: 0.75rem; }

.pc-fleet__val { font-family: var(--pc-mono); font-size: 0.75rem; color: var(--pc-muted); }

.pc-dot { width: 8px; height: 8px; border-radius: 50%; }
.pc-dot--up   { background: var(--pc-up); }
.pc-dot--down { background: var(--pc-down); }

/* Sessions */
.pc-sessions { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }

.pc-sessions th {
    padding: 0 10px 7px 0;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--pc-muted);
    border-bottom: 1px solid var(--pc-line);
}

.pc-sessions td {
    padding: 8px 10px 8px 0;
    border-bottom: 1px solid var(--pc-line);
}

.pc-sessions tr:last-child td { border-bottom: 0; }

.pc-sessions .pc-num { font-size: 0.75rem; }

.pc-state { font-size: 0.75rem; font-weight: 600; color: var(--pc-up); }

/* Voucher — l'objet métier du produit */
.pc-voucher {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px dashed var(--pc-amber);
    border-radius: 3px;
    background: var(--pc-amber-tint);
}

.pc-voucher__code {
    font-family: var(--pc-mono);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.06em;
}

.pc-voucher__plan { font-size: 0.75rem; color: var(--pc-muted); }

.pc-voucher__price {
    font-family: var(--pc-mono);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--pc-amber-ink);
    text-align: right;
}

.pc-voucher__validity {
    display: block;
    font-family: var(--pc-mono);
    font-size: 0.6875rem;
    color: var(--pc-muted);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.pc-section-block { padding-block: 76px; border-top: 1px solid var(--pc-line); }

.pc-section-block__head {
    max-width: 58ch;
    margin-bottom: 40px;
}

.pc-section-block__head h2 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    margin-bottom: 12px;
}

.pc-section-block__head p { color: var(--pc-muted); }

/* Fiche technique — un tableau de spécifications, pas des cartes */
.pc-spec {
    margin: 0;
    border-top: 1px solid var(--pc-line);
}

.pc-spec__row {
    display: grid;
    grid-template-columns: minmax(200px, 0.34fr) minmax(0, 1fr);
    gap: 40px;
    padding-block: 20px;
    border-bottom: 1px solid var(--pc-line);
}

.pc-spec__row dt {
    font-size: 0.9375rem;
    font-weight: 600;
}

.pc-spec__row dd {
    margin: 0;
    max-width: 62ch;
    font-size: 0.9375rem;
    color: var(--pc-muted);
}

.pc-spec__row dd .pc-num { font-size: 0.8125rem; color: var(--pc-text); }

/* --------------------------------------------------------------------------
   Forfaits
   -------------------------------------------------------------------------- */

.pc-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    align-items: start;
}

.pc-plan {
    display: flex;
    flex-direction: column;
    background: var(--pc-surface);
    border: 1px solid var(--pc-line);
    border-radius: 4px;
}

/* La mise en avant est structurelle, pas un halo */
.pc-plan--featured {
    border-color: var(--pc-primary);
    box-shadow: inset 3px 0 0 var(--pc-primary);
}

.pc-plan__head { padding: 20px 20px 16px; border-bottom: 1px solid var(--pc-line); }

.pc-plan__flag {
    display: inline-block;
    margin-bottom: 10px;
    padding: 3px 8px;
    border-radius: 2px;
    background: var(--pc-primary-dim);
    color: var(--pc-primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.pc-plan__name { font-size: 1.0625rem; }

.pc-plan__price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 10px;
}

.pc-plan__amount {
    font-family: var(--pc-mono);
    font-size: 1.6875rem;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.pc-plan__unit { font-size: 0.8125rem; color: var(--pc-muted); }

.pc-plan__specs { flex: 1; padding: 16px 20px 4px; }

.pc-plan__specs li {
    display: grid;
    grid-template-columns: 15px minmax(0, 1fr);
    gap: 9px;
    padding-block: 6px;
    font-size: 0.8125rem;
    color: var(--pc-muted);
}

.pc-plan__specs li + li { border-top: 1px solid var(--pc-line); }

.pc-plan__specs strong { color: var(--pc-text); font-weight: 600; }

.pc-plan__tick { color: var(--pc-up); font-weight: 700; }

.pc-plan__foot { padding: 16px 20px 20px; }

.pc-plan__none {
    padding: 22px 20px;
    border: 1px dashed var(--pc-line-strong);
    border-radius: 4px;
    color: var(--pc-muted);
    font-size: 0.875rem;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */

.pc-footer {
    padding-block: 34px;
    border-top: 1px solid var(--pc-line);
    background: var(--pc-surface);
}

.pc-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 0.8125rem;
    color: var(--pc-muted);
}

.pc-footer__links { display: flex; flex-wrap: wrap; gap: 22px; }
.pc-footer__links a { color: var(--pc-muted); }
.pc-footer__links a:hover { color: var(--pc-text); text-decoration: underline; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 940px) {
    .pc-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
    .pc-topnav { display: none; }
    .pc-hero { padding-block: 52px 64px; }
    .pc-section-block { padding-block: 56px; }
    .pc-spec__row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-block: 18px; }
}

@media (max-width: 560px) {
    .pc-hero h1 { max-width: none; }
    .pc-hero__facts { gap: 20px 28px; }

    /* « Se connecter » était masqué : un client qui revient sur son téléphone
       n'avait plus aucun accès à son compte. Il devient un lien texte, l'en-tête
       se resserre pour que les deux tiennent côte à côte. */
    .pc-topbar__inner { gap: 12px; }
    .pc-topbar__actions { gap: 4px; }
    .pc-topbar__actions .pc-btn--quiet {
        padding: 8px 6px;
        border-color: transparent;
        background: transparent;
        font-size: 0.8125rem;
    }
    .pc-topbar__actions .pc-btn--primary { padding: 8px 12px; font-size: 0.8125rem; }

    .pc-voucher { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
    .pc-voucher__plan { grid-column: 1 / -1; order: 3; }
}

/* Le mouvement n'est jamais imposé */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --------------------------------------------------------------------------
   Panneau — une seule séquence, à l'arrivée

   Le panneau se compose une fois, puis ne bouge plus. C'est le seul moment
   orchestré de la page : ailleurs, le mouvement ne répond qu'à une action.
   -------------------------------------------------------------------------- */

/* Le point de départ n'est jamais `opacity: 0`. Un navigateur qui suspend le
   rendu — onglet en arrière-plan, impression, capture — gèle l'horloge
   d'animation et laisserait alors le panneau entièrement vide.
   0.88 est le plancher calculé pour que même le texte atténué garde 4.5:1 de
   contraste si l'animation ne part jamais ; l'entrée se lit toujours comme
   une montée accompagnée d'un fondu, échelonnée par `--seq`. */
@keyframes pc-rise {
    from { opacity: 0.88; transform: translateY(7px); }
    to   { opacity: 1; transform: none; }
}

.pc-panel [data-seq] {
    animation: pc-rise 440ms cubic-bezier(0.2, 0, 0, 1) backwards;
    animation-delay: calc(var(--seq, 0) * 70ms + 100ms);
}

/* --------------------------------------------------------------------------
   Comment ça marche — une vraie séquence, donc numérotée
   Le numéro dit « dans cet ordre » ; ailleurs sur la page il ne dirait rien.
   -------------------------------------------------------------------------- */

.pc-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--pc-line);
    border: 1px solid var(--pc-line);
    border-radius: 4px;
    overflow: hidden;
}

.pc-step {
    padding: 26px 22px 28px;
    background: var(--pc-surface);
}

.pc-step__num {
    display: block;
    margin-bottom: 20px;
    font-family: var(--pc-mono);
    font-size: 0.75rem;
    color: var(--pc-primary);
}

.pc-step h3 { margin-bottom: 9px; font-size: 1rem; }

.pc-step p {
    margin-bottom: 16px;
    font-size: 0.875rem;
    color: var(--pc-muted);
}

/* Un fragment réel de configuration, pas une illustration */
.pc-step__hint {
    display: block;
    padding: 9px 11px;
    border: 1px dashed var(--pc-line-strong);
    border-radius: 3px;
    background: var(--pc-sunken);
    font-family: var(--pc-mono);
    font-size: 0.6875rem;
    line-height: 1.6;
    color: var(--pc-muted);
    overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   Bandeau de fin — ce qui est vrai de tous les forfaits
   -------------------------------------------------------------------------- */

.pc-baseline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    align-items: baseline;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid var(--pc-line);
    font-size: 0.8125rem;
    color: var(--pc-muted);
}

.pc-baseline b { color: var(--pc-text); font-weight: 600; }

@media (max-width: 940px) {
    .pc-steps { grid-template-columns: minmax(0, 1fr); }
}

/* Un tableau dense défile plutôt que de tasser ses colonnes ou d'en perdre une. */
.pc-scroll {
    overflow-x: auto;
    overscroll-behavior-x: contain;
}

.pc-scroll > table { min-width: 330px; }
