/* LigerHost — feuille de style unique, pensée d'abord pour le mobile. */

:root
{
    --bg: #f7f8fa;
    --surface: #ffffff;
    --text: #1b2330;
    --muted: #5b6575;
    --border: #e1e5eb;
    --primary: #0e6e8c;
    --primary-hover: #0b5a73;
    --success-bg: #e6f4ea;
    --success-text: #1e6b34;
    --error-bg: #fdecea;
    --error-text: #a3261b;
    --info-bg: #e8f1fb;
    --info-text: #1d4f86;
    --radius: 0;
    --cut: 14px;      /* coins coupés des blocs */
    --slant: 10px;    /* biais des boutons et onglets */
    --wave-opacity: 0.4;
}

@media (prefers-color-scheme: dark)
{
    :root
    {
        --bg: #12161c;
        --surface: #1b2129;
        --text: #e6e9ee;
        --muted: #9aa4b2;
        --border: #2c3440;
        --primary: #3aa6c6;
        --primary-hover: #5bbad6;
        --success-bg: #183324;
        --success-text: #8fd5a6;
        --error-bg: #3a1c1a;
        --error-text: #f2a39b;
        --info-bg: #182a40;
        --info-text: #9cc4f0;
        --wave-opacity: 0.5;
    }
}

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

body
{
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    background: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a
{
    color: var(--primary);
}

h1, h2, h3
{
    line-height: 1.25;
}

.container
{
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 16px;
}

/* --- Fond animé : deux lueurs et des vagues, lentes et discrètes --- */

.backdrop
{
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* Seule la propriété transform est animée : le navigateur ne redessine pas la page. */
.backdrop::before
{
    content: "";
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at 25% 30%, rgba(43, 157, 191, 0.16), transparent 36%),
        radial-gradient(circle at 78% 65%, rgba(70, 110, 220, 0.14), transparent 38%);
    animation: glow 24s ease-in-out infinite alternate;
}

/* Trois couches de vagues. L'élément monte et descend (houle), son ::before défile :
   les vitesses et les sens différents font que la surface ne se répète presque jamais. */
.wave
{
    position: absolute;
    left: 0;
    right: 0;
    bottom: -30px;
    height: 240px;
    opacity: var(--wave-opacity);
    transform-origin: bottom;
    animation: swell 9s ease-in-out infinite alternate;
}

.wave::before
{
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    background-repeat: repeat-x;
    animation: drift 46s linear infinite;
}

/* right = largeur du motif, aussi utilisée par le défilement : la boucle est invisible. */
.wave-1::before
{
    --tile: 1400px;
    right: -1400px;
    background-image: url("/static/vague-1.svg");
}

.wave-2
{
    animation-duration: 7s;
    animation-delay: -3s;
}

.wave-2::before
{
    --tile: 1100px;
    right: -1100px;
    background-image: url("/static/vague-2.svg");
    animation-duration: 30s;
    animation-direction: reverse;
}

.wave-3
{
    animation-duration: 5.5s;
    animation-delay: -2s;
}

.wave-3::before
{
    --tile: 900px;
    right: -900px;
    background-image: url("/static/vague-3.svg");
    animation-duration: 19s;
}

@keyframes glow
{
    from
    {
        transform: translate(-7%, -5%);
    }

    to
    {
        transform: translate(8%, 7%);
    }
}

@keyframes drift
{
    to
    {
        transform: translateX(calc(-1 * var(--tile)));
    }
}

@keyframes swell
{
    from
    {
        transform: translateY(14px) scaleY(0.82);
    }

    to
    {
        transform: translateY(-8px) scaleY(1.12);
    }
}

@keyframes breathe
{
    from
    {
        opacity: 0.35;
    }
}

/* Animations réduites dans le système : rien ne se déplace, seule la lumière varie. */
@media (prefers-reduced-motion: reduce)
{
    .backdrop::before
    {
        animation: breathe 7s ease-in-out infinite alternate;
    }

    .wave,
    .wave::before
    {
        animation: none;
    }
}

/* --- En-tête --- */

.site-header
{
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.header-inner
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    min-height: 60px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.logo
{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    color: var(--text);
}

.nav
{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.nav a:not(.btn)
{
    color: var(--text);
    text-decoration: none;
}

/* --- Contenu --- */

.main
{
    flex: 1;
    padding-top: 24px;
    padding-bottom: 40px;
}

.hero
{
    padding: 32px 0 24px;
}

.hero h1
{
    font-size: 1.8rem;
    margin: 0 0 12px;
}

.lead
{
    color: var(--muted);
    font-size: 1.1rem;
    margin: 0 0 20px;
}

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

@media (min-width: 700px)
{
    .hero h1
    {
        font-size: 2.4rem;
    }

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

.card
{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.card h2
{
    margin-top: 0;
    font-size: 1.25rem;
}

.error-page
{
    text-align: center;
    padding: 48px 0;
}

/* --- Boutons --- */

.btn
{
    display: inline-block;
    background: var(--primary);
    color: #fff;
    border: 0;
    border-radius: var(--radius);
    padding: 10px 18px;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

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

.btn-small
{
    padding: 6px 12px;
    font-size: 0.9rem;
}

/* --- Messages flash --- */

.flash
{
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 20px;
}

.flash-success
{
    background: var(--success-bg);
    color: var(--success-text);
}

.flash-error
{
    background: var(--error-bg);
    color: var(--error-text);
}

.flash-info
{
    background: var(--info-bg);
    color: var(--info-text);
}

/* --- Formulaires --- */

.form-page
{
    max-width: 460px;
    margin: 0 auto;
}

.form
{
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form label
{
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 500;
}

.form label small
{
    font-weight: 400;
    color: var(--muted);
}

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

@media (min-width: 480px)
{
    .form-row
    {
        grid-template-columns: 1fr 1fr;
    }
}

input[type="text"],
input[type="email"],
input[type="password"]
{
    width: 100%;
    padding: 10px 12px;
    font: inherit;
    font-size: 16px;   /* 16px minimum : évite le zoom automatique sur iPhone */
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

input:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible
{
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.form label.checkbox
{
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
}

.checkbox input
{
    margin-top: 4px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.input-code
{
    font-family: ui-monospace, Consolas, monospace;
    letter-spacing: 0.2em;
    text-align: center;
    font-size: 1.3rem !important;
}

.form-footer
{
    margin-top: 20px;
    text-align: center;
    color: var(--muted);
}

.form-inline-box
{
    background: var(--info-bg);
    color: var(--info-text);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 20px;
}

.form-inline-box p
{
    margin: 0;
}

.error-list
{
    margin: 0;
    padding-left: 18px;
}

.btn-block
{
    width: 100%;
    text-align: center;
}

.btn-secondary
{
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover
{
    background: var(--info-bg);
}

.btn-danger
{
    background: var(--error-text);
}

.btn-danger:hover
{
    background: var(--error-text);
    filter: brightness(0.9);
}

.nav-form
{
    display: inline;
    margin: 0;
}

.link-button
{
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: var(--text);
    cursor: pointer;
}

/* --- Espace client --- */

.stack
{
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stack .card .form
{
    max-width: 420px;
}

.muted
{
    color: var(--muted);
}

.center
{
    text-align: center;
}

.badge
{
    display: inline-block;
    padding: 2px 10px;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-ok
{
    background: var(--success-bg);
    color: var(--success-text);
}

.badge-warn
{
    background: var(--error-bg);
    color: var(--error-text);
}

details
{
    margin-top: 12px;
}

details summary
{
    cursor: pointer;
    color: var(--primary);
    margin-bottom: 12px;
}

.table-wrap
{
    overflow-x: auto;
}

.table
{
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.table th,
.table td
{
    text-align: left;
    padding: 8px 6px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.row-warn td
{
    color: var(--error-text);
}

.steps
{
    padding-left: 20px;
}

.qr
{
    display: flex;
    justify-content: center;
    margin: 8px 0;
}

.qr img
{
    background: #fff;
    padding: 8px;
    border-radius: var(--radius);
}

.secret
{
    word-break: break-all;
}

.codes
{
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 20px 0;
}

.codes code
{
    display: block;
    text-align: center;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1.05rem;
}

/* --- Accueil --- */

.hero-home
{
    display: grid;
    gap: 24px;
    align-items: center;
    padding: 28px 24px 0;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 0;
    background: linear-gradient(135deg, var(--surface) 35%, var(--info-bg));
}

.hero-art svg
{
    display: block;
    overflow: visible;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.art-unit
{
    fill: var(--bg);
    stroke: var(--border);
    stroke-width: 2;
}

.art-line,
.art-slot
{
    fill: none;
    stroke: var(--muted);
    stroke-width: 4;
    stroke-linecap: round;
    opacity: 0.45;
}

.art-led
{
    fill: #35b56a;
    animation: led 3s ease-in-out infinite;
}

.art-led-2
{
    animation-delay: 0.8s;
}

.art-led-3
{
    animation-delay: 1.7s;
}

.art-wave
{
    fill: none;
    stroke: var(--primary);
    stroke-width: 4;
    stroke-linecap: round;
    animation: sway 4s ease-in-out infinite alternate;
}

.art-wave-2
{
    animation-duration: 5.5s;
    animation-direction: alternate-reverse;
    opacity: 0.55;
}

.art-wave-3
{
    opacity: 0.25;
}

@keyframes sway
{
    from
    {
        transform: translate(-10px, 2px);
    }

    to
    {
        transform: translate(12px, -3px);
    }
}

@keyframes led
{
    50%
    {
        opacity: 0.3;
    }
}

.offers,
.how-steps
{
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.offer
{
    display: flex;
    flex-direction: column;
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.15s, transform 0.15s;
}

.offer:hover
{
    border-color: var(--primary);
    transform: translateY(-3px);
}

.offer p
{
    margin: 0 0 12px;
}

.offer h2
{
    margin: 14px 0 8px;
}

.offer-icon
{
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 0;
    background: var(--info-bg);
    color: var(--primary);
}

.offer-icon svg
{
    width: 28px;
    height: 28px;
}

.offer-price strong
{
    font-size: 1.4rem;
}

.offer-more
{
    margin-top: auto;
    color: var(--primary);
    font-weight: 600;
}

.how
{
    margin-top: 36px;
}

.how-steps
{
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step;
}

.how-steps li
{
    position: relative;
    padding-left: 48px;
    counter-increment: step;
}

.how-steps li::before
{
    content: counter(step);
    position: absolute;
    left: 0;
    top: 2px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    color: var(--primary);
    font-weight: 700;
}

.how-steps strong,
.how-steps span
{
    display: block;
}

.how-steps span
{
    color: var(--muted);
}

@media (min-width: 760px)
{
    .hero-home
    {
        grid-template-columns: 3fr 2fr;
        padding: 28px 24px 0 36px;
    }

    .hero-text
    {
        padding-bottom: 28px;
    }

    .offers,
    .how-steps
    {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (prefers-reduced-motion: reduce)
{
    .art-wave
    {
        animation: none;
    }

    .offer,
    .offer:hover
    {
        transition: none;
        transform: none;
    }
}

/* --- FAQ --- */

.faq
{
    margin-top: 36px;
}

.faq details
{
    margin-top: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.faq details[open]
{
    border-color: var(--primary);
}

.faq summary
{
    margin: 0;
    padding: 14px 18px;
    color: var(--text);
    font-weight: 600;
}

.faq summary::marker
{
    color: var(--primary);
}

.faq details p
{
    margin: 0;
    padding: 0 18px 16px;
    color: var(--muted);
}

/* --- Offres --- */

.offers-head
{
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 0;
    background: linear-gradient(135deg, var(--surface) 35%, var(--info-bg));
}

.offers-head h1
{
    margin: 0 0 8px;
}

.offers-head .tabs
{
    margin: 0;
}

.tab-icon svg
{
    display: block;
    width: 20px;
    height: 20px;
}

.plan-head
{
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.plan-head .offer-icon
{
    flex-shrink: 0;
}

.plan-head h2,
.plan-head p
{
    margin: 0;
}

.plan
{
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s;
}

.plan:hover
{
    border-color: var(--primary);
}

.plan .plan-specs
{
    margin-bottom: 18px;
}

.plan > .muted
{
    margin: 0;
}

/* Quatre colonnes étroites : deux lignes réservées à la description, pour aligner les listes. */
@media (min-width: 960px)
{
    .plans-4 .plan > .muted
    {
        min-height: 3.1em;
    }
}

/* Le bouton reste aligné en bas, même si les descriptions n'ont pas la même longueur. */
.plan > :last-child
{
    margin-top: auto;
}

.plan-soon
{
    margin-bottom: 0;
    padding: 9px 18px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    color: var(--muted);
    text-align: center;
}

.included
{
    margin-top: 32px;
}

.included p
{
    margin: 0;
}

.tabs
{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tabs a
{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 0;
    color: var(--text);
    text-decoration: none;
}

.tabs a:hover,
.tabs a[aria-current]
{
    border-color: var(--primary);
    color: var(--primary);
}

.price-from
{
    margin-bottom: 0;
}

.plan-section
{
    margin-top: 28px;
}

.plans
{
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 600px)
{
    .plans
    {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px)
{
    .plans
    {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Une ou deux offres : des cartes larges, avec les caractéristiques sur plusieurs colonnes. */
.plans-1
{
    grid-template-columns: 1fr;
}

@media (min-width: 760px)
{
    .plans-2
    {
        grid-template-columns: repeat(2, 1fr);
    }

    .plans-3
    {
        grid-template-columns: repeat(3, 1fr);
    }

    .plans-2 .plan-specs
    {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 20px;
    }

    .plans-1 .plan-specs
    {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        column-gap: 20px;
    }

    .included .plan-specs
    {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        column-gap: 20px;
    }

    .plans-1 .btn,
    .plans-1 .plan-soon
    {
        width: 240px;
    }
}

.plan h3
{
    margin: 0 0 6px;
}

.plan-price
{
    margin: 0 0 10px;
}

.plan-price strong
{
    font-size: 1.6rem;
    color: var(--primary);
}

.plan-specs
{
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.plan-specs li
{
    position: relative;
    padding: 5px 0 5px 26px;
}

/* Coche dessinée en CSS. */
.plan-specs li::before
{
    content: "";
    position: absolute;
    left: 5px;
    top: 10px;
    width: 6px;
    height: 11px;
    border: solid var(--primary);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.small
{
    font-size: 0.85rem;
}

/* --- Administration --- */

.page-head
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.actions
{
    display: flex;
    gap: 8px;
}

.table .cell-wrap
{
    white-space: normal;
    min-width: 150px;
}

/* Champ et bouton sur une ligne dans un tableau (domaine d'une boutique) */
.table-form
{
    display: flex;
    gap: 8px;
    align-items: center;
}

.table-form input[type="text"]
{
    width: 190px;
    margin: 0;
}

.row-muted td
{
    opacity: 0.55;
}

.badge-muted
{
    background: var(--border);
    color: var(--muted);
}

.link-primary
{
    color: var(--primary);
}

.form-wide
{
    max-width: 640px;
}

.form label.checkbox-center
{
    align-items: center;
    align-self: end;
    padding-bottom: 10px;
}

.admin-nav
{
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

/* Onglets plus serrés que ceux de la page Offres : sept onglets sur une ligne. */
.tabs.admin-nav a
{
    padding: 6px 18px;
    font-size: 0.95rem;
}

.stats
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.stats .card
{
    margin: 0;
}

.stats strong
{
    display: block;
    font-size: 1.4rem;
}

.gauge
{
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 120px;
    gap: 12px;
    align-items: center;
    margin: 8px 0;
}

.gauge progress
{
    width: 100%;
    accent-color: var(--primary);
}

.filters
{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.filters input,
.filters select,
.form textarea
{
    font: inherit;
    padding: 8px 10px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-width: 100%;
}

.form textarea
{
    width: 100%;
}

/* --- Tickets --- */

.message
{
    overflow-wrap: anywhere;
}

.message-body
{
    white-space: pre-wrap;
}

.message-staff
{
    border-left: 4px solid var(--primary);
}

/* --- Crédit, commandes, services --- */

.balance-card
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.balance-card p
{
    margin: 0;
}

.balance
{
    font-size: 1.8rem;
    font-weight: 700;
}

.stack > .card,
main > .card
{
    margin-bottom: 16px;
}

.topup-buttons
{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.topup-buttons form
{
    margin: 0;
}

.num
{
    text-align: right !important;
}

.amount-plus
{
    color: var(--success-text);
}

.amount-minus
{
    color: var(--error-text);
}

.invoice-list
{
    padding-left: 18px;
}

select,
textarea
{
    width: 100%;
    padding: 10px 12px;
    font: inherit;
    font-size: 16px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

textarea
{
    font-family: ui-monospace, Consolas, monospace;
    font-size: 14px;
    resize: vertical;
}

.choices
{
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    margin: 0;
}

.choices legend
{
    font-weight: 500;
    padding: 0 4px;
}

.form .choice
{
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    padding: 4px 0;
}

.order-summary
{
    margin-bottom: 16px;
}

.order-summary p
{
    margin: 4px 0;
}

.details
{
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 8px 16px;
    margin: 0;
}

.details dt
{
    color: var(--muted);
}

.details dd
{
    margin: 0;
    overflow-wrap: anywhere;
}

.status-active
{
    background: var(--success-bg);
    color: var(--success-text);
}

.status-pending,
.status-provisioning
{
    background: var(--info-bg);
    color: var(--info-text);
}

.status-suspended,
.status-failed
{
    background: var(--error-bg);
    color: var(--error-text);
}

.vps-actions
{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.vps-actions form
{
    margin: 0;
}

/* --- Console noVNC --- */

#console [hidden]
{
    display: none;
}

#console-screen
{
    height: 70vh;
    min-height: 260px;
    margin: 12px 0;
    background: #000000;
    border-radius: var(--radius);
    overflow: hidden;
}

@media (max-width: 600px)
{
    #console-screen
    {
        height: 45vh;
    }
}

.console-text
{
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.console-text input
{
    flex: 1;
    min-width: 0;
}

/* --- Facture --- */

.invoice-head
{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.invoice-head h1
{
    margin-top: 0;
}

.invoice-seller
{
    text-align: right;
}

.invoice-customer
{
    margin: 20px 0;
}

@media print
{
    .backdrop,
    .site-header,
    .site-footer,
    .no-print
    {
        display: none;
    }

    body
    {
        background: #fff;
        color: #000;
    }

    .invoice
    {
        border: 0;
        padding: 0;
    }
}

.retry
{
    margin-bottom: 20px;
}

.retry h2
{
    margin-top: 0;
}

/* --- Icônes devant les titres, le lien « Profil » et les services --- */

.h-icon,
.nav-icon,
.service-link
{
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nav-icon,
.service-link
{
    gap: 6px;
}

.title-icon,
.type-icon
{
    display: inline-grid;
    place-items: center;
    color: var(--primary);
}

.title-icon svg
{
    width: 22px;
    height: 22px;
}

.nav-icon .title-icon svg,
.type-icon svg
{
    width: 18px;
    height: 18px;
}

.page-head .h-icon
{
    margin: 0;
}

/* Logo FreeDS en couleur (page Boutiques) : un peu plus grand que les icônes au trait. */
.title-icon svg.logo-freeds
{
    width: 30px;
    height: 30px;
}

.tab-icon svg.logo-freeds
{
    width: 18px;
    height: 18px;
}

/* Bouton « Ouvrir FreeDS » aux couleurs de FreeDS (violet du logo). */
.btn.btn-freeds
{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #6d28d9;
}

.btn.btn-freeds:hover
{
    background-color: #5b21b6;
}

.btn-freeds .title-icon svg.logo-freeds
{
    width: 20px;
    height: 20px;
}

/* --- Nom de domaine pendant la commande d'un site --- */

.domain-block > .btn
{
    margin-top: 10px;
}

.domain-results
{
    list-style: none;
    margin: 12px 0;
    padding: 0;
}

.domain-results li
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}

.domain-results strong
{
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

/* --- Menu « Profil » de l'en-tête : ouvert au survol, ou au clavier (focus-within) --- */

.site-header
{
    position: relative;
    z-index: 20;
}

.nav-menu
{
    position: relative;
}

.nav-menu > a
{
    padding: 8px 0;
}

/* Le padding-top relie le lien au menu : la souris ne « tombe » pas dans le vide en descendant. */
.nav-dropdown
{
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 210px;
    padding-top: 10px;
}

.nav-menu:hover .nav-dropdown,
.nav-menu:focus-within .nav-dropdown
{
    display: block;
}

.nav-dropdown > *
{
    display: flex;
    width: 100%;
    padding: 10px 16px;
    background: var(--surface);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.nav-dropdown > :first-child
{
    border-top: 1px solid var(--border);
}

.nav-dropdown > :last-child
{
    border-bottom: 1px solid var(--border);
    border-top: 1px solid var(--border);
}

.nav-dropdown .link-button
{
    width: 100%;
    text-align: left;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible,
.nav-dropdown .nav-form:hover,
.nav-dropdown .nav-form:focus-within
{
    background: var(--info-bg);
}

/* --- Vue directe des bots (« Mon espace ») --- */

.bot-grid
{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.bot-card
{
    position: relative;
    margin: 0;
    cursor: pointer;
}

/* Lien qui couvre toute la carte (ouvre le panel) ; le nom et les boutons passent au-dessus. */
.bot-cover
{
    position: absolute;
    inset: 0;
    z-index: 1;
}

.bot-name,
.bot-actions
{
    position: relative;
    z-index: 2;
}

/* Compteurs CPU / RAM / disque de la carte, façon tableau de bord de voiture (cadrans SVG). */
.bot-dials
{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 4px 0 14px;
}

.dial
{
    margin: 0;
    text-align: center;
    --dial: #2f9e44;
}

.dial-mid
{
    --dial: #e8590c;
}

.dial-high
{
    --dial: #c92a2a;
}

.dial svg
{
    display: block;
    width: 100%;
    max-width: 120px;
    margin: 0 auto;
}

.dial-track,
.dial-fill
{
    fill: none;
    stroke-width: 9;
}

.dial-track
{
    stroke: var(--border);
}

.dial-fill
{
    stroke: var(--dial);
}

.dial-tick
{
    stroke: var(--muted);
    stroke-width: 2;
}

.dial-needle
{
    stroke: var(--text);
    stroke-width: 3;
    stroke-linecap: round;
}

.dial-hub
{
    fill: var(--text);
}

.dial figcaption strong
{
    display: block;
    font-size: 1rem;
    line-height: 1.2;
    white-space: nowrap;
}

.dial figcaption span
{
    display: block;
    font-size: .75rem;
    color: var(--muted);
    white-space: nowrap;
}

.bot-card:hover
{
    --bc: var(--primary);
    border-color: var(--primary);
}

.bot-cover:focus-visible
{
    outline: 2px solid var(--primary);
    outline-offset: -4px;
}

.bot-head
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.bot-head h3
{
    margin: 0;
    font-size: 1.1rem;
}

/* Les trois boutons sur une même ligne, chacun sa couleur. */
.bot-actions
{
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

/* min-width: 0 : les boutons rétrécissent au lieu de sortir de la carte ;
   marge à droite : le dernier bouton ne touche pas le coin coupé. */
.bot-actions
{
    padding-right: 10px;
}

.bot-actions form
{
    flex: 1;
    min-width: 0;
    margin: 0;
}

/* Sélecteur plus précis que .btn et .btn-small (style anguleux) : marges réduites. */
.bot-actions .btn.btn-power
{
    width: 100%;
    padding: 6px 4px;
    font-size: 0.85rem;
    white-space: nowrap;
    color: #fff;
}

/* Double classe : passe devant .btn:hover (un bouton grisé garde sa couleur). */
.btn.btn-start,
.btn.btn-start:hover
{
    background-color: #2f9e44;
}

.btn.btn-restart,
.btn.btn-restart:hover
{
    background-color: #e8590c;
}

.btn.btn-stop,
.btn.btn-stop:hover
{
    background-color: #c92a2a;
}

.btn.btn-power:hover:not([disabled])
{
    filter: brightness(0.88);
}

.bot-actions .btn[disabled]
{
    opacity: 0.35;
    cursor: not-allowed;
}

.bot-message
{
    color: var(--primary);
    margin: 8px 0 0;
}

.bot-hint
{
    margin: 10px 0 0;
    color: var(--muted);
}

.bot-card:hover .bot-hint
{
    color: var(--primary);
}

/* --- Style anguleux ---
   Blocs : coins haut-gauche et bas-droite coupés en biais.
   Boutons, onglets, badges : parallélogrammes à bords pointus. */

.card,
.hero-home,
.offers-head,
.faq details,
.legal-box,
.choices,
.flash,
.form-inline-box
{
    --bc: var(--border);
    clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
    background-image: linear-gradient(to bottom right, transparent calc(50% - 1px), var(--bc) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)), linear-gradient(to bottom right, transparent calc(50% - 1px), var(--bc) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px));
    background-origin: border-box;
    background-repeat: no-repeat;
    background-position: left top, right bottom;
    background-size: var(--cut) var(--cut);
}

/* Messages et encadrés sans bordure : pas de diagonale à tracer. */
.flash,
.form-inline-box
{
    --bc: transparent;
}

.offer:hover,
.plan:hover,
.faq details[open]
{
    --bc: var(--primary);
}

/* Les deux bandeaux gardent leur dégradé, sous les diagonales. */
.hero-home,
.offers-head
{
    --cut: 26px;
    background-image: linear-gradient(to bottom right, transparent calc(50% - 1px), var(--bc) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)), linear-gradient(to bottom right, transparent calc(50% - 1px), var(--bc) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)), linear-gradient(135deg, var(--surface) 35%, var(--info-bg));
    background-position: left top, right bottom, 0 0;
    background-size: var(--cut) var(--cut), var(--cut) var(--cut), auto;
}

.offer-icon
{
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn,
.tabs a,
.badge,
.plan-soon
{
    --bc: transparent;
    clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
    border-left-width: 0;
    border-right-width: 0;
    background-image: linear-gradient(to bottom right, transparent calc(50% - 1px), var(--bc) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)), linear-gradient(to bottom right, transparent calc(50% - 1px), var(--bc) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px));
    background-origin: border-box;
    background-repeat: no-repeat;
    background-position: left top, right top;
    background-size: var(--slant) 100%;
}

.btn
{
    padding-left: 26px;
    padding-right: 26px;
}

.btn-small
{
    padding-left: 18px;
    padding-right: 18px;
}

.btn-secondary
{
    --bc: var(--primary);
}

.badge
{
    --slant: 6px;
    padding-left: 14px;
    padding-right: 14px;
}

.plan-soon
{
    --bc: var(--border);
}

/* Onglets : liseré coloré en bas, contour complet sur l'onglet actif. */
.tabs a
{
    --bc: var(--border);
    padding: 8px 24px;
    border-bottom: 3px solid var(--primary);
}

.tabs a:hover,
.tabs a[aria-current]
{
    --bc: var(--primary);
}

.tabs a[aria-current]
{
    border-top-width: 2px;
    background-color: var(--info-bg);
    background-image: linear-gradient(to bottom right, transparent calc(50% - 2px), var(--bc) calc(50% - 2px) calc(50% + 2px), transparent calc(50% + 2px)), linear-gradient(to bottom right, transparent calc(50% - 2px), var(--bc) calc(50% - 2px) calc(50% + 2px), transparent calc(50% + 2px));
}

/* Le contour de focus serait coupé par clip-path : il est dessiné à l'intérieur. */
.btn:focus-visible,
.tabs a:focus-visible
{
    outline-offset: -5px;
}

/* Numéros des étapes : losanges pleins au lieu de cercles. */
.how-steps li::before
{
    width: 38px;
    border: 0;
    border-radius: 0;
    background: var(--primary);
    color: #fff;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

/* --- Pièces --- */

.coin
{
    display: inline-block;
    width: 0.85em;
    height: 0.85em;
    margin-right: 0.35em;
    border: 0.14em solid #b87f0a;
    border-radius: 50%;
    background: #f5c542;
    vertical-align: -0.08em;
}

/* --- Pages légales --- */

.legal
{
    max-width: 760px;
    overflow-wrap: anywhere;
}

.legal h2
{
    margin-top: 32px;
}

.legal-box
{
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 4px 16px;
    margin: 16px 0;
}

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

.footer-links
{
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding-top: 16px;
}

.site-footer
{
    background: var(--surface);
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
}
