/* ============================================================
   ModemProxy — Professional Proxy Store
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --white: #ffffff;
    --bg: #f5f6f8;
    --bg-alt: #f0f1f4;
    --surface: #ffffff;
    --border: #e0e3e8;
    --border-h: #cdd1d8;

    --brand: #0b7a3e;
    --brand-h: #096832;
    --brand-soft: #e8f5ee;
    --brand-rgb: 11,122,62;

    --blue: #2563eb;
    --blue-soft: #eff4ff;

    --text: #1a1a2e;
    --text-s: #3d3d56;
    --text-m: #6b6b80;
    --text-l: #6e6e7a;

    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --mono: 'Courier New', monospace;

    /* Largeur de page — unique source de verite, alignee sur la grille de /account */
    --page-max: 1280px;
    /* Gouttiere de .wrap. Sert aussi aux blocs qui doivent deborder
       jusqu'au bord de l'ecran (rangees qui defilent sur mobile). */
    --wrap-pad: 2rem;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
    --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.03);
    --shadow-md: 0 4px 16px rgba(0,0,0,.07);
    --shadow-lg: 0 8px 30px rgba(0,0,0,.09);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased; font-size: 15px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
ul { list-style: none; }

.wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--wrap-pad); }

/* ── NAV ── */
.nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
    height: 58px; display: flex; align-items: center;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.logo { display: flex; align-items: center; }
.logo-img { height: 36px; width: auto; display: block; }
.footer .logo-img { height: 32px; filter: brightness(0) invert(1); }
.nav-center { display: flex; align-items: center; gap: 2rem; }
.nav-center a { font-size: .8125rem; font-weight: 500; color: var(--text-m); transition: color .15s; }
.nav-center a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: .75rem; }

/* Language switcher */
.lang-switcher { position: relative; }
.lang-current {
    display: flex; align-items: center; gap: .35rem;
    background: none; border: 1px solid var(--border); border-radius: 5px;
    padding: .35rem .55rem; cursor: pointer; font-size: .75rem; font-weight: 600;
    color: var(--text-m); transition: all .12s;
}
.lang-current:hover { border-color: var(--border-h); color: var(--text); }
.lang-current .fi { font-size: .85rem; }
.lang-code { text-transform: uppercase; }
.lang-chev { transition: transform .2s; }
.lang-switcher.open .lang-chev { transform: rotate(180deg); }
.lang-menu {
    display: none; position: absolute; top: calc(100% + 4px); right: 0;
    background: var(--white); border: 1px solid var(--border); border-radius: 8px;
    box-shadow: var(--shadow-lg); z-index: 60; min-width: 150px; padding: .25rem;
    max-height: 300px; overflow-y: auto;
}
.lang-switcher.open .lang-menu { display: block; }
.lang-option {
    display: flex; align-items: center; gap: .5rem;
    padding: .45rem .6rem; border-radius: 5px; font-size: .8rem; font-weight: 500;
    color: var(--text-s); transition: background .1s; white-space: nowrap;
}
.lang-option:hover { background: var(--bg); }
.lang-option.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.lang-option .fi { font-size: .95rem; }

/* Hamburger — hidden on desktop */
.nav-burger {
    display: none; background: none; border: none; cursor: pointer; padding: 6px;
    color: var(--text); line-height: 0;
}

/* Mobile Menu — slide from right */
.mm-overlay {
    display: none; position: fixed; inset: 0; z-index: 300;
    background: rgba(0,0,0,.4); opacity: 0; transition: opacity .25s;
}
.mm-overlay.open { display: block; opacity: 1; }

.mm-panel {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 310;
    width: 300px; max-width: 85vw;
    background: var(--white); box-shadow: -4px 0 24px rgba(0,0,0,.1);
    transform: translateX(100%); transition: transform .3s ease;
    display: flex; flex-direction: column;
    overflow-y: auto;
}
.mm-panel.open { transform: translateX(0); }

.mm-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: .875rem 1.25rem; border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.mm-header .logo-img { height: 26px; }
.mm-close {
    background: none; border: none; cursor: pointer; padding: 4px;
    color: var(--text-m); line-height: 0; border-radius: 6px; transition: background .12s;
}
.mm-close:hover { background: var(--bg); }

.mm-nav {
    display: flex; flex-direction: column;
    padding: .5rem 0; flex-shrink: 0;
}
.mm-link {
    display: block; padding: .875rem 1.25rem;
    font-size: .9375rem; font-weight: 600; color: var(--text);
    border-bottom: 1px solid var(--border); transition: background .12s;
}
.mm-link:active, .mm-link:hover { background: var(--bg); color: var(--brand); }
.mm-sub { font-size: .8125rem; font-weight: 500; color: var(--text-m); }

.mm-lang-section {
    padding: 1rem 1.25rem; border-top: 1px solid var(--border);
    flex-shrink: 0;
}
.mm-label {
    font-size: .65rem; font-weight: 650; text-transform: uppercase; letter-spacing: .08em;
    color: var(--text-l); margin-bottom: .5rem;
}
.mm-lang-grid {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: .35rem;
}
.mm-lang {
    display: flex; flex-direction: column; align-items: center; gap: .15rem;
    padding: .45rem .2rem; border-radius: 5px; font-size: .6rem; font-weight: 600;
    color: var(--text-m); background: var(--bg); border: 1px solid transparent;
    transition: all .12s; text-align: center;
}
.mm-lang .fi { font-size: 1rem; }
.mm-lang:hover { border-color: var(--border); }
.mm-lang.active { background: var(--brand-soft); color: var(--brand); border-color: rgba(var(--brand-rgb),.2); }

.mm-actions {
    padding: 1rem 1.25rem; margin-top: auto;
    display: flex; flex-direction: column; gap: .5rem;
    border-top: 1px solid var(--border); flex-shrink: 0;
}
.mm-actions .btn { min-height: 46px; font-size: .875rem; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    font-size: .8125rem; font-weight: 600; padding: .5rem 1.125rem;
    border-radius: 6px; border: 1px solid transparent; cursor: pointer; transition: all .15s;
}
.btn-brand { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-brand:hover { background: var(--brand-h); border-color: var(--brand-h); }
.btn-white { background: var(--white); color: var(--text-s); border-color: var(--border); }
.btn-white:hover { border-color: var(--border-h); background: var(--bg); }
.btn-lg { padding: .65rem 1.5rem; font-size: .9rem; }
.btn-full { width: 100%; }

/* ── HERO ── */
.hero {
    background: linear-gradient(170deg, #f0faf4 0%, var(--white) 55%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
    padding: 3.5rem 0 4rem;
}
.hero-layout { display: grid; grid-template-columns: 1fr 440px; gap: 3.5rem; align-items: start; }

.hero-text h1 {
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    font-weight: 800; line-height: 1.15; letter-spacing: -.02em;
    color: var(--text); margin-bottom: .875rem;
}
.hero-text h1 em { font-style: normal; color: var(--brand); }
.hero-text > p {
    font-size: .9375rem; color: var(--text-m); line-height: 1.65;
    margin-bottom: 1.75rem; max-width: 460px;
}

.hero-features { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 2rem; }
.hero-feat {
    display: flex; align-items: center; gap: .55rem;
    font-size: .8125rem; font-weight: 500; color: var(--text-s);
}
.hero-feat svg { width: 17px; height: 17px; stroke: var(--brand); stroke-width: 2.5; fill: none; flex-shrink: 0; }

.hero-pills {
    display: flex; flex-wrap: wrap; gap: .4rem;
    padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.hero-pill {
    display: inline-flex; align-items: center;
    padding: .35rem .75rem; border-radius: 100px;
    font-size: .78rem; font-weight: 600; color: var(--text-s);
    background: var(--bg); border: 1px solid var(--border);
}
.hero-pill-accent {
    background: var(--brand-soft); color: var(--brand); border-color: rgba(var(--brand-rgb),.15);
}

/* ── CONFIGURATOR ── */
.config {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.config-head {
    padding: 1.125rem 1.5rem;
    background: var(--text); color: #fff;
    font-size: .875rem; font-weight: 650;
    display: flex; align-items: center; justify-content: space-between;
}
.config-head .live { display: flex; align-items: center; gap: .4rem; font-size: .7rem; font-weight: 500; color: rgba(255,255,255,.5); }
.config-head .live-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; animation: livepulse 2s infinite; }
@keyframes livepulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
    50% { box-shadow: 0 0 0 4px rgba(34,197,94,0); }
}

.config-body { padding: 1.5rem; }

.cfg-field { margin-bottom: 1.125rem; }
.cfg-label { display: block; font-size: .7rem; font-weight: 600; color: var(--text-m); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .4rem; }

.cfg-select {
    width: 100%; height: 42px; padding: 0 2.25rem 0 .875rem;
    background: var(--white); border: 1px solid var(--border); border-radius: 6px;
    font-size: .875rem; font-weight: 500; color: var(--text); cursor: pointer;
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%236b6b80' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .875rem center;
    transition: border-color .15s;
}
.cfg-select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb),.1); }

/* Plan toggle */
.plan-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.plan-btn {
    padding: .75rem .5rem; text-align: center; cursor: pointer;
    background: var(--white); border: none; transition: all .15s;
    position: relative;
}
.plan-btn + .plan-btn { border-left: 1px solid var(--border); }
.plan-btn.active { background: var(--brand-soft); }
.plan-btn.active .plan-name { color: var(--brand); }
.plan-name { display: block; font-size: .8125rem; font-weight: 650; color: var(--text); margin-bottom: .15rem; }
.plan-sub { font-size: .675rem; color: var(--text-l); }
.plan-btn.active .plan-sub { color: var(--brand); opacity: .7; }

/* Duration pills */
.dur-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.dur-pill {
    text-align: center; padding: .5rem .25rem; border-radius: 6px;
    background: var(--white); border: 1px solid var(--border); cursor: pointer;
    transition: all .12s; font-size: .75rem; font-weight: 550; color: var(--text-s);
}
.dur-pill:hover { border-color: var(--border-h); }
.dur-pill.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.dur-pill .save { display: block; font-size: .6rem; font-weight: 450; margin-top: .1rem; opacity: .65; }

/* Price display */
.config-price {
    margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border);
}
.price-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .15rem; }
.price-label { font-size: .8125rem; color: var(--text-m); }
.price-value { font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; color: var(--text); }
.price-value small { font-size: .8rem; font-weight: 450; color: var(--text-l); }
.price-total { font-size: .75rem; color: var(--text-l); text-align: right; margin-bottom: 1rem; }
/* ── Carrier dropdown (custom) ── */
.crselect { position: relative; }
.crselect-trigger {
    width: 100%; height: 42px; padding: 0 .875rem;
    background: var(--white); border: 1px solid var(--border); border-radius: 6px;
    display: flex; align-items: center; gap: .5rem;
    font-size: .8125rem; font-weight: 500; color: var(--text);
    cursor: pointer; transition: border-color .15s; text-align: left;
}
.crselect-trigger:hover { border-color: var(--border-h); }
.crselect.open .crselect-trigger { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb),.1); }
.crselect-arrow { flex-shrink: 0; color: var(--text-l); transition: transform .2s; }
.crselect.open .crselect-arrow { transform: rotate(180deg); }
.cr-icon {
    width: 22px; height: 22px; border-radius: 4px; object-fit: contain; flex-shrink: 0;
}
.cr-icon-fb {
    width: 22px; height: 22px; border-radius: 4px; display: flex;
    align-items: center; justify-content: center;
    font-size: .55rem; font-weight: 700; color: #fff; background: #6b7280; flex-shrink: 0;
}
.crselect-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crselect-meta { font-size: .7rem; color: var(--text-l); white-space: nowrap; display: flex; align-items: center; gap: .4rem; }
.cr-tech {
    font-size: .575rem; font-weight: 700; padding: .1rem .3rem; border-radius: 3px;
    text-transform: uppercase; letter-spacing: .03em; line-height: 1;
}
.cr-tech.t4g { background: #dbeafe; color: #1d4ed8; }
.cr-tech.t5g { background: #ede9fe; color: #7c3aed; }

.crselect-dropdown {
    display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0;
    background: var(--white); border: 1px solid var(--border); border-radius: 8px;
    box-shadow: var(--shadow-lg); z-index: 49; overflow: hidden;
}
.crselect.open .crselect-dropdown { display: block; }
.crselect-list { max-height: 240px; overflow-y: auto; padding: .25rem; }
.crselect-list::-webkit-scrollbar { width: 5px; }
.crselect-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.crselect-opt {
    display: flex; align-items: center; gap: .5rem;
    padding: .5rem .5rem; border-radius: 5px; cursor: pointer;
    font-size: .8125rem; color: var(--text-s); transition: background .1s;
}
.crselect-opt:hover { background: var(--bg); }
.crselect-opt.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.crselect-opt .crselect-name { font-weight: 500; }
.crselect-opt.active .crselect-name { font-weight: 600; color: var(--brand); }
.crselect-opt .cr-speed { font-size: .7rem; color: var(--text-l); }
.crselect-opt .cr-price { font-size: .7rem; font-weight: 600; color: var(--text-m); white-space: nowrap; margin-left: auto; }
.crselect-opt.active .cr-price { color: var(--brand); }

/* Carrier info bar */
.carrier-info {
    font-size: .75rem; color: var(--text-m); padding: .5rem .75rem;
    background: var(--bg); border-radius: 6px; margin-bottom: .25rem;
    display: none; line-height: 1.5;
}
.carrier-info.visible { display: block; }
.carrier-info strong { color: var(--text-s); font-weight: 600; }

/* ── Custom country select ── */
.cselect { position: relative; }
.cselect-trigger {
    width: 100%; height: 42px; padding: 0 .875rem;
    background: var(--white); border: 1px solid var(--border); border-radius: 6px;
    display: flex; align-items: center; gap: .5rem;
    font-size: .8125rem; font-weight: 500; color: var(--text);
    cursor: pointer; transition: border-color .15s; text-align: left;
}
.cselect-trigger:hover { border-color: var(--border-h); }
.cselect.open .cselect-trigger { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb),.1); }
.cselect-flag { display: flex; align-items: center; flex-shrink: 0; }
.cselect-flag .fi { font-size: 1.2rem; border-radius: 2px; }
.cselect-text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cselect-price { font-size: .7rem; color: var(--text-l); white-space: nowrap; }
.cselect-arrow { flex-shrink: 0; color: var(--text-l); transition: transform .2s; }
.cselect.open .cselect-arrow { transform: rotate(180deg); }

.cselect-dropdown {
    display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0;
    background: var(--white); border: 1px solid var(--border); border-radius: 8px;
    box-shadow: var(--shadow-lg); z-index: 50; overflow: hidden;
}
.cselect.open .cselect-dropdown { display: block; }

.cselect-search-wrap { padding: .5rem; border-bottom: 1px solid var(--border); }
.cselect-search {
    width: 100%; height: 34px; padding: 0 .625rem;
    border: 1px solid var(--border); border-radius: 5px;
    font-size: .8125rem; color: var(--text); background: var(--bg);
}
.cselect-search:focus { outline: none; border-color: var(--brand); }

.cselect-list { max-height: 260px; overflow-y: auto; padding: .25rem; }
.cselect-list::-webkit-scrollbar { width: 5px; }
.cselect-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.cselect-group { padding: .35rem .5rem .2rem; font-size: .65rem; font-weight: 650; color: var(--text-l); text-transform: uppercase; letter-spacing: .06em; }
.cselect-opt {
    display: flex; align-items: center; gap: .5rem;
    padding: .45rem .5rem; border-radius: 5px; cursor: pointer;
    font-size: .8125rem; color: var(--text-s); transition: background .1s;
}
.cselect-opt:hover { background: var(--bg); }
.cselect-opt.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.cselect-opt .fi { font-size: 1.15rem; border-radius: 2px; flex-shrink: 0; }
.cselect-opt-name { flex: 1; }
.cselect-opt-price { font-size: .7rem; color: var(--text-l); }
.cselect-opt.active .cselect-opt-price { color: var(--brand); opacity: .7; }

.config-cta { margin-top: .5rem; }
.config-cta .btn { height: 44px; font-size: .9rem; border-radius: 8px; }
.config-note { text-align: center; font-size: .675rem; color: var(--text-l); margin-top: .6rem; }

/* ── TRUST BAR ── */
.trust {
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 1.75rem 0;
}
.trust-inner {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: .75rem;
}
.trust-item {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: .5rem; padding: 1rem .5rem;
    background: var(--bg); border-radius: 8px;
}
.trust-icon {
    width: 36px; height: 36px; border-radius: 8px;
    background: var(--brand-soft); display: flex; align-items: center; justify-content: center;
}
.trust-icon svg { width: 18px; height: 18px; fill: none; stroke: var(--brand); stroke-width: 2; }
.trust-item strong { font-size: .8125rem; font-weight: 700; color: var(--text); line-height: 1.3; }

/* ── PLAN COMPARISON ── */
.compare { padding: 4rem 0; }
.compare h2 { font-size: 1.375rem; font-weight: 750; text-align: center; margin-bottom: .5rem; }
.compare > .wrap > p { text-align: center; color: var(--text-m); font-size: .9rem; margin-bottom: 2.5rem; }

.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; max-width: 820px; margin: 0 auto; }
.compare-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 2rem; position: relative;
    transition: box-shadow .2s;
}
.compare-card:hover { box-shadow: var(--shadow-md); }
.compare-card.rec { border-color: var(--brand); }
.compare-card.rec::before {
    content: 'Recommended'; position: absolute; top: 0; right: 1.25rem;
    background: var(--brand); color: #fff; font-size: .625rem; font-weight: 700;
    padding: .3rem .7rem; border-radius: 0 0 6px 6px; text-transform: uppercase; letter-spacing: .04em;
}
.cc-type { font-size: .65rem; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: var(--text-l); margin-bottom: .35rem; }
.cc-name { font-size: 1.2rem; font-weight: 750; margin-bottom: .25rem; }
.cc-desc { font-size: .8rem; color: var(--text-m); margin-bottom: 1.25rem; line-height: 1.5; }

.cc-price { display: flex; align-items: baseline; gap: .3rem; margin-bottom: .15rem; }
.cc-price-val { font-size: 2.25rem; font-weight: 800; letter-spacing: -.03em; }
.cc-price-per { font-size: .8rem; color: var(--text-l); }
.cc-discount { font-size: .7rem; font-weight: 600; color: var(--brand); margin-bottom: 1.25rem; }

.cc-specs { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.cc-spec { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; color: var(--text-s); }
.cc-spec svg { width: 15px; height: 15px; stroke: var(--brand); stroke-width: 2.5; fill: none; flex-shrink: 0; }
.cc-spec.highlight { font-weight: 600; color: var(--text); }

/* ── LOCATIONS ── */
.locations {
    padding: 4rem 0; background: var(--white);
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.locations h2 { font-size: 1.375rem; font-weight: 750; margin-bottom: .5rem; }
.locations > .wrap > p { color: var(--text-m); font-size: .9rem; margin-bottom: 2rem; }

.loc-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .625rem;
}
.loc-card {
    display: flex; align-items: center; gap: .625rem;
    padding: .7rem .875rem; background: var(--bg); border: 1px solid transparent;
    border-radius: 6px; cursor: pointer; transition: all .12s;
}
.loc-card:hover { border-color: var(--border); background: var(--white); }
.loc-card.active { border-color: var(--brand); background: var(--brand-soft); }
.loc-flag { line-height: 1; flex-shrink: 0; }
.loc-flag .fi { font-size: 1.3rem; border-radius: 2px; }
.loc-info { flex: 1; min-width: 0; }
.loc-name { font-size: .8125rem; font-weight: 600; color: var(--text); }
.loc-price { font-size: .7rem; color: var(--text-l); margin-top: .05rem; }
.loc-carriers { font-size: .65rem; color: var(--text-l); margin-top: .1rem; }
.loc-card.active .loc-name { color: var(--brand); }
.loc-card.active .loc-price { color: var(--brand); opacity: .7; }

.loc-more {
    margin-top: 1rem; text-align: center;
}
.loc-more button {
    font-size: .8125rem; font-weight: 500; color: var(--brand); background: none;
    border: none; cursor: pointer; padding: .4rem .8rem;
}
.loc-more button:hover { text-decoration: underline; }

/* ── FEATURES ── */
.features { padding: 4rem 0; }
.features h2 { font-size: 1.375rem; font-weight: 750; text-align: center; margin-bottom: 2.5rem; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feat-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.25rem 1.5rem;
}
.feat-card h3 { font-size: .875rem; font-weight: 650; margin-bottom: .35rem; display: flex; align-items: center; gap: .5rem; }
.feat-card p { font-size: .8rem; color: var(--text-m); line-height: 1.55; }
.feat-icon { width: 22px; height: 22px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.feat-icon svg { width: 18px; height: 18px; stroke: var(--brand); stroke-width: 2; fill: none; }

/* ── HOW IT WORKS ── */
.steps {
    padding: 4rem 0; background: var(--white);
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.steps h2 { font-size: 1.375rem; font-weight: 750; text-align: center; margin-bottom: 2.5rem; }
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.step { text-align: center; }
.step-num {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--brand); color: #fff; font-weight: 750; font-size: .9rem;
    display: grid; place-items: center; margin: 0 auto .875rem;
}
.step h3 { font-size: .875rem; font-weight: 650; margin-bottom: .25rem; }
.step p { font-size: .78rem; color: var(--text-m); line-height: 1.5; }

/* ── FAQ ── */
.faq { padding: 4rem 0; }
.faq h2 { font-size: 1.375rem; font-weight: 750; margin-bottom: 2rem; }
.faq-wrap { max-width: 740px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1rem 0; cursor: pointer;
    font-size: .875rem; font-weight: 600; color: var(--text); user-select: none;
}
.faq-q:hover { color: var(--brand); }
.faq-chev { width: 16px; height: 16px; stroke: var(--text-l); stroke-width: 2; fill: none; flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-chev { transform: rotate(180deg); stroke: var(--brand); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 250px; }
.faq-a-body { padding-bottom: 1rem; font-size: .8125rem; color: var(--text-m); line-height: 1.65; }

/* ── FOOTER ── */
.footer {
    background: var(--text); color: rgba(255,255,255,.5);
    padding: 3rem 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-brand .logo { color: #fff; margin-bottom: .75rem; }
.footer-brand .logo-mark { background: rgba(255,255,255,.12); }
.footer-brand p { font-size: .78rem; line-height: 1.6; max-width: 240px; }
.footer-heading { font-size: .65rem; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.3); margin-bottom: .875rem; }
.footer-links { display: flex; flex-direction: column; gap: .45rem; }
.footer-links a { font-size: .8rem; transition: color .15s; }
.footer-links a:hover { color: rgba(255,255,255,.8); }
.footer-network {
    padding-top: 1.5rem; margin-top: .5rem; border-top: 1px solid rgba(255,255,255,.06);
}
.footer-network-links {
    display: flex; gap: 1.5rem; flex-wrap: wrap;
}
.footer-network-links a {
    font-size: .75rem; color: rgba(255,255,255,.4); transition: color .15s;
}
.footer-network-links a:hover { color: rgba(255,255,255,.7); }

.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08);
    font-size: .7rem; margin-top: 1rem;
}
.footer-payments { display: flex; gap: .5rem; }
.footer-payments span {
    padding: .2rem .5rem; background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08); border-radius: 3px;
    font-size: .65rem; font-weight: 600;
}

/* ── RESPONSIVE ── */
/* ── Checkout Modal ── */
.modal-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.modal-box {
    background: var(--white); border-radius: 12px; padding: 2rem;
    max-width: 440px; width: 100%; position: relative; box-shadow: var(--shadow-lg);
}
.modal-close {
    position: absolute; top: .75rem; right: 1rem; background: none; border: none;
    font-size: 1.5rem; color: var(--text-l); cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-box h2 { font-size: 1.15rem; font-weight: 750; margin-bottom: .35rem; }
.modal-summary { font-size: .8125rem; color: var(--text-m); margin-bottom: 1.5rem; line-height: 1.5; }

.cfg-input {
    width: 100%; height: 42px; padding: 0 .875rem;
    background: var(--white); border: 1px solid var(--border); border-radius: 6px;
    font-size: .875rem; color: var(--text); transition: border-color .15s;
}
.cfg-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb),.1); }
.cfg-hint { display: block; font-size: .7rem; color: var(--text-l); margin-top: .35rem; }

.crypto-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.crypto-btn {
    padding: .6rem .4rem; text-align: center; border: 1px solid var(--border);
    border-radius: 6px; background: var(--white); cursor: pointer; transition: all .12s;
}
.crypto-btn:hover { border-color: var(--border-h); }
.crypto-btn.active { border-color: var(--brand); background: var(--brand-soft); }
.crypto-icon { width: 24px; height: 24px; margin: 0 auto .3rem; display: block; }
.crypto-btn strong { display: block; font-size: .85rem; font-weight: 700; color: var(--text); }
.crypto-btn span { font-size: .65rem; color: var(--text-l); }
.crypto-btn.active strong { color: var(--brand); }

.modal-error { margin-top: .75rem; font-size: .8rem; color: #dc2626; text-align: center; }

.login-divider {
    display: flex; align-items: center; gap: .75rem;
    margin: 1.5rem 0; color: var(--text-l); font-size: .75rem;
}
.login-divider::before, .login-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}
.login-signup-notice { text-align: center; }
.login-signup-notice p {
    font-size: .8rem; color: var(--text-m); line-height: 1.55; margin-bottom: 1rem;
}

/* ── Pay Page — 2-column layout ── */
.pay-page { padding: 3rem 0 4rem; }
.pay-grid {
    display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start;
}

/* Left: summary */
.pay-summary-col h1 { font-size: 1.25rem; font-weight: 750; margin-bottom: 1.25rem; }

.pay-product {
    background: var(--white); border: 1px solid var(--border); border-radius: 10px;
    overflow: hidden; margin-bottom: 1.25rem;
}
.pay-product-head {
    display: flex; align-items: center; gap: .75rem;
    padding: 1.125rem 1.25rem; border-bottom: 1px solid var(--border); background: var(--bg);
}
.pay-product-title { font-size: .9rem; font-weight: 700; }
.pay-product-sub { font-size: .75rem; color: var(--text-m); margin-top: .1rem; }

.pay-details { padding: .5rem 0; }
.pay-detail {
    display: flex; justify-content: space-between; align-items: center;
    padding: .5rem 1.25rem; font-size: .8125rem;
}
.pay-detail span { color: var(--text-m); }
.pay-detail strong { color: var(--text); font-weight: 600; }
.pay-detail:not(:last-child) { border-bottom: 1px solid var(--border); }

.pay-total-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.25rem; background: var(--white); border: 1px solid var(--border);
    border-radius: 10px; margin-bottom: 1rem;
}
.pay-total-row span { font-size: .875rem; font-weight: 600; color: var(--text-m); }
.pay-total-row strong { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }

.pay-order-ref {
    font-size: .75rem; color: var(--text-l);
}
.pay-order-ref code {
    font-family: var(--mono, monospace); background: var(--bg);
    padding: .15rem .4rem; border-radius: 4px; font-size: .7rem;
}

/* Right: crypto payment */
.pay-crypto-col {}
.pay-crypto-card {
    background: var(--white); border: 1px solid var(--border); border-radius: 10px;
    overflow: hidden;
}
.pay-crypto-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
    font-size: .875rem; font-weight: 650;
}
.pay-timer-inline {
    display: flex; align-items: center; gap: .3rem;
    font-size: .78rem; color: var(--text-m);
}
.pay-timer-inline strong { color: var(--text); font-variant-numeric: tabular-nums; }

.pay-qr { padding: 1.25rem; text-align: center; border-bottom: 1px solid var(--border); }
.pay-qr img { margin: 0 auto; border-radius: 6px; }

.pay-field { padding: .875rem 1.25rem; border-bottom: 1px solid var(--border); }
.pay-field label {
    display: block; font-size: .65rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .06em; color: var(--text-l); margin-bottom: .4rem;
}
.pay-copybox {
    display: flex; align-items: center; gap: .5rem;
    background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
    padding: .5rem .625rem;
}
.pay-copybox code {
    flex: 1; font-family: var(--mono, monospace); font-size: .78rem;
    color: var(--text); word-break: break-all; line-height: 1.4;
}
.pay-copy-btn {
    flex-shrink: 0; background: var(--white); border: 1px solid var(--border);
    border-radius: 5px; padding: .3rem .6rem; font-size: .7rem; font-weight: 600;
    color: var(--text-m); cursor: pointer; transition: all .12s;
}
.pay-copy-btn:hover { border-color: var(--brand); color: var(--brand); }

.pay-status {
    padding: 1rem 1.25rem; text-align: center;
    font-size: .8125rem; font-weight: 600;
    display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.pay-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; animation: livepulse 2s infinite; }
.pay-status-dot.paid { background: #059669; }
.pay-status-dot.expired { background: #dc2626; animation: none; }
.pay-status a { color: var(--brand); text-decoration: underline; }

/* Order page */
.order-page { padding: 3rem 0 4rem; }
.order-card { max-width: 640px; margin: 0 auto; background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; }

.order-success, .order-pending, .order-expired { text-align: center; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.order-success svg, .order-pending svg, .order-expired svg { margin: 0 auto .75rem; }
.order-success h1, .order-pending h1, .order-expired h1 { font-size: 1.25rem; font-weight: 750; margin-bottom: .35rem; }
.order-success p, .order-pending p, .order-expired p { font-size: .875rem; color: var(--text-m); margin-bottom: 1rem; }

.order-section { margin-bottom: 2rem; }
.order-section h2 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }

.order-grid { display: flex; flex-direction: column; gap: .35rem; }
.order-row { display: flex; justify-content: space-between; align-items: center; padding: .4rem 0; font-size: .8125rem; }
.order-row span { color: var(--text-m); }
.order-row strong { color: var(--text); display: flex; align-items: center; gap: .35rem; }
.order-row .fi { font-size: 1rem; }

.cred-box { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 1rem; margin-bottom: 1rem; }
.cred-row { display: flex; justify-content: space-between; align-items: center; padding: .4rem 0; font-size: .8125rem; border-bottom: 1px solid var(--border); }
.cred-row:last-of-type { border-bottom: none; }
.cred-row span { color: var(--text-m); font-weight: 500; }
.cred-row code { font-family: var(--mono, monospace); font-size: .8rem; color: var(--text); background: var(--white); padding: .2rem .5rem; border-radius: 4px; }
.cred-note { font-size: .75rem; color: var(--text-l); margin-top: .5rem; line-height: 1.5; }

/* ── Legal Pages ── */
.legal { padding: 3rem 0 4rem; }
.legal .wrap { max-width: var(--page-max); }
.legal h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: .5rem; }
.legal-updated { font-size: .8rem; color: var(--text-l); margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.legal h2 { font-size: 1.1rem; font-weight: 700; margin: 2.25rem 0 .75rem; color: var(--text); }
.legal h3 { font-size: .95rem; font-weight: 650; margin: 1.5rem 0 .5rem; color: var(--text-s); }
.legal p { font-size: .875rem; color: var(--text-s); line-height: 1.7; margin-bottom: .75rem; }
.legal ul { margin: .5rem 0 1rem 1.25rem; list-style: disc; }
.legal ul li { font-size: .875rem; color: var(--text-s); line-height: 1.7; margin-bottom: .35rem; }
.legal a { color: var(--brand); text-decoration: underline; }
.legal a:hover { color: var(--brand-h); }
.legal strong { color: var(--text); }

.legal-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .8125rem; }
.legal-table th {
    text-align: left; padding: .6rem .75rem; font-size: .7rem; font-weight: 650;
    text-transform: uppercase; letter-spacing: .05em; color: var(--text-l);
    border-bottom: 2px solid var(--border); background: var(--bg);
}
.legal-table td { padding: .6rem .75rem; border-bottom: 1px solid var(--border); color: var(--text-s); vertical-align: top; }

/* ── Country Pages ── */
.breadcrumb {
    padding: .65rem 0; background: var(--white); border-bottom: 1px solid var(--border);
    font-size: .75rem; color: var(--text-l);
}
.breadcrumb a { color: var(--text-m); transition: color .15s; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { margin: 0 .35rem; }
.breadcrumb strong { color: var(--text-s); font-weight: 600; }

.country-hero {
    padding: 2.5rem 0 2rem; background: var(--white); border-bottom: 1px solid var(--border);
}
.country-hero-page { padding: 2.5rem 0 3.5rem; }
.country-hero-page .breadcrumb + & { padding-top: 2rem; }
.ch-top { display: flex; align-items: center; gap: .75rem; }
.ch-flag { font-size: 2rem; flex-shrink: 0; border-radius: 4px; }
.ch-top h1 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); font-weight: 800; letter-spacing: -.02em; margin: 0; }
.ch-top p { font-size: .9rem; color: var(--text-m); line-height: 1.6; max-width: 600px; }

.country-carriers { padding: 3rem 0; }
.country-carriers h2 { font-size: 1.25rem; font-weight: 750; margin-bottom: 1.5rem; }
.carriers-table-wrap { overflow-x: auto; margin-bottom: 1rem; }
.carriers-table { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.carriers-table th {
    text-align: left; padding: .625rem .75rem; font-size: .7rem; font-weight: 650;
    text-transform: uppercase; letter-spacing: .06em; color: var(--text-l);
    border-bottom: 2px solid var(--border); white-space: nowrap;
}
.carriers-table td {
    padding: .75rem; border-bottom: 1px solid var(--border); color: var(--text-s); vertical-align: middle;
}
.carriers-table tbody tr:hover { background: var(--bg); }
.ct-carrier { display: flex; align-items: center; gap: .5rem; font-weight: 500; }
.ct-icon { width: 22px; height: 22px; border-radius: 4px; object-fit: contain; flex-shrink: 0; }
.ct-speed { font-size: .75rem; color: var(--text-l); white-space: nowrap; }
.ct-traffic { font-size: .75rem; color: var(--text-m); }
.ct-price { font-weight: 700; color: var(--text); white-space: nowrap; }
.ct-price small { font-weight: 450; color: var(--text-l); }
.ct-rotation { font-size: .75rem; color: var(--text-m); white-space: nowrap; }
.btn-sm { padding: .35rem .75rem; font-size: .75rem; }
.table-note { font-size: .75rem; color: var(--text-l); line-height: 1.5; }

.other-locations { padding: 3rem 0; background: var(--white); border-top: 1px solid var(--border); }
.other-locations h2 { font-size: 1.125rem; font-weight: 700; margin-bottom: 1.5rem; }
.other-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.other-card {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .5rem .875rem; background: var(--bg); border-radius: 6px;
    font-size: .8125rem; font-weight: 500; color: var(--text-s); transition: all .15s;
}
.other-card:hover { background: var(--brand-soft); color: var(--brand); }
.other-card .fi { font-size: 1.1rem; }

.all-locations { padding: 2.5rem 0; border-top: 1px solid var(--border); }
.all-locations h2 { font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; }
.all-loc-grid { display: flex; flex-wrap: wrap; gap: .4rem; }
.all-loc-link {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .35rem .65rem; font-size: .75rem; font-weight: 500; color: var(--text-m);
    border-radius: 4px; transition: all .12s;
}
.all-loc-link:hover { background: var(--bg); color: var(--brand); }
.all-loc-link.current { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.all-loc-link .fi { font-size: .9rem; }

/* ── Tablet ── */
@media (max-width: 960px) {
    .hero-layout { grid-template-columns: 1fr; gap: 2rem; }
    .config { max-width: 100%; }
    .compare-grid { grid-template-columns: 1fr; max-width: 440px; }
    .feat-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-row { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .loc-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

/* ── Small tablet / large phone ── */
@media (max-width: 768px) {
    .hero { padding: 1.75rem 0 2rem; }
    .hero-text h1 { font-size: 1.6rem; }
    .hero-text > p { font-size: .875rem; }
    .hero-pills { gap: .35rem; }
    .hero-features { gap: .5rem; }
    .hero-feat { font-size: .8rem; }

    .trust-inner { grid-template-columns: repeat(3, 1fr); }
    .trust-item { padding: .75rem .4rem; }
    .trust-item strong { font-size: .75rem; }

    .feat-grid { grid-template-columns: 1fr; }
    .steps-row { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .loc-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }

    /* Carriers table: force horizontal scroll with hint */
    .carriers-table-wrap { margin: 0 -1.25rem; padding: 0 1.25rem; }
    .carriers-table { min-width: 640px; }

    /* Dropdowns: reduce height */
    .cselect-list, .crselect-list { max-height: 200px; }

    /* Payment page */
    .pay-grid { grid-template-columns: 1fr; }
    .pay-qr img { width: 150px; height: 150px; }

    /* Order page */
    .order-card { max-width: 100%; padding: 1.5rem; }
    .cred-row { flex-direction: column; align-items: flex-start; gap: .25rem; }
    .cred-row code { word-break: break-all; }

    /* Modal */
    .modal-overlay { padding: .75rem; }
    .modal-box { padding: 1.5rem; max-width: 100%; }

    /* Other locations */
    .other-grid { gap: .4rem; }
    .other-card { padding: .4rem .65rem; font-size: .78rem; }
    .all-loc-grid { gap: .3rem; }
    .all-loc-link { padding: .3rem .5rem; font-size: .7rem; }
}

/* ── Mobile ── */
@media (max-width: 640px) {
    :root { --wrap-pad: 1rem; }

    /* Nav: hamburger menu on mobile */
    .nav-center, .nav-right { display: none; }
    .nav-burger { display: block; }
    .nav { height: 50px; }
    .logo-img { height: 26px; }

    .hero { padding: 1.5rem 0 1.75rem; }
    .hero-text h1 { font-size: 1.35rem; line-height: 1.2; }
    .hero-text > p { font-size: .8125rem; }
    .hero-features { gap: .4rem; }
    .hero-feat { font-size: .78rem; }
    .hero-feat svg { width: 14px; height: 14px; }
    .hero-pills { gap: .3rem; }
    .hero-pill { font-size: .72rem; padding: .3rem .6rem; }

    /* Config */
    .config-head { padding: .875rem 1.125rem; font-size: .8125rem; }
    .config-body { padding: 1.125rem; }
    .cfg-label { font-size: .7rem; }
    .cfg-field { margin-bottom: 1rem; }

    /* Bigger touch targets */
    .btn { min-height: 44px; padding: .6rem 1rem; }
    .btn-sm { min-height: 38px; }
    .dur-pill { padding: .6rem .4rem; font-size: .78rem; min-height: 44px; display: flex; align-items: center; justify-content: center; }
    .dur-row { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
    .plan-btn { padding: .65rem .5rem; }
    .cselect-opt, .crselect-opt { padding: .6rem .5rem; min-height: 44px; }

    /* Grids */
    .feat-grid { grid-template-columns: 1fr; }
    .steps-row { grid-template-columns: 1fr; gap: 1rem; }
    .loc-grid { grid-template-columns: 1fr; }
    .compare-grid { max-width: 100%; }
    .footer-grid { grid-template-columns: 1fr; }

    /* Trust bar */
    .trust { padding: .75rem 0; }
    .trust-inner { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
    .trust-item { padding: .6rem .35rem; gap: .35rem; }
    .trust-icon { width: 30px; height: 30px; border-radius: 6px; }
    .trust-icon svg { width: 15px; height: 15px; }
    .trust-item strong { font-size: .7rem; }

    /* Features */
    .features h2, .steps h2, .faq h2, .locations h2, .country-carriers h2 { font-size: 1.15rem; }

    /* Table on mobile */
    .carriers-table-wrap { margin: 0 -1rem; padding: 0 1rem; }
    .carriers-table { min-width: 580px; }
    .carriers-table th { font-size: .6rem; padding: .5rem; }
    .carriers-table td { padding: .5rem; font-size: .75rem; }

    /* Section spacing */
    .features, .steps, .faq, .locations, .country-carriers, .other-locations, .all-locations { padding: 2.5rem 0; }

    /* Country hero */
    .ch-top { gap: .6rem; }
    .ch-flag { font-size: 1.6rem; }
    .ch-top h1 { font-size: 1.25rem; }

    /* Pay page */
    .pay-page { padding: 1.5rem 0 2.5rem; }
    .pay-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .pay-summary-col h1 { font-size: 1.1rem; }
    .pay-qr img { width: 140px; height: 140px; }
    .pay-copybox code { font-size: .7rem; }
    .pay-detail { padding: .4rem 1rem; font-size: .78rem; }

    /* Order page */
    .order-page { padding: 1.5rem 0 2.5rem; }
    .order-card { padding: 1.25rem; }
    .order-success h1, .order-pending h1, .order-expired h1 { font-size: 1.1rem; }
    .order-row { flex-direction: column; align-items: flex-start; gap: .15rem; }

    /* Crypto grid in modal */
    .crypto-grid { grid-template-columns: repeat(2, 1fr); }
    .crypto-icon { width: 20px; height: 20px; }

    /* Footer */
    .footer-bottom { flex-direction: column; gap: .75rem; text-align: center; }
    .footer-payments { justify-content: center; }

    /* Legal pages */
    .legal h1 { font-size: 1.35rem; }
    .legal h2 { font-size: 1rem; }

    /* Breadcrumb */
    .breadcrumb { font-size: .7rem; }
}

/* ── Extra small phones ── */
@media (max-width: 380px) {
    :root { --wrap-pad: .75rem; }
    .hero-text h1 { font-size: 1.2rem; }
    .hero-pills { gap: .25rem; }
    .hero-pill { font-size: .68rem; padding: .25rem .5rem; }
    .plan-toggle { grid-template-columns: 1fr; }
    .plan-btn + .plan-btn { border-left: none; border-top: 1px solid var(--border); }
    .crypto-grid { grid-template-columns: repeat(2, 1fr); }
    .modal-box { padding: 1.25rem; }
    .dur-row { grid-template-columns: 1fr 1fr; }
    .pay-copybox code { font-size: .65rem; }
    .config-head span:first-child { font-size: .78rem; }
}

/* ── RTL Support (Arabic) ── */
[dir="rtl"] { text-align: right; }
[dir="rtl"] .nav-inner { direction: rtl; }
[dir="rtl"] .hero-layout { direction: rtl; }
[dir="rtl"] .hero-feat { flex-direction: row-reverse; justify-content: flex-end; }
[dir="rtl"] .trust-inner { direction: rtl; }
[dir="rtl"] .feat-card h3 { flex-direction: row-reverse; justify-content: flex-end; }
[dir="rtl"] .loc-card { flex-direction: row-reverse; }
[dir="rtl"] .loc-info { text-align: right; }
[dir="rtl"] .faq-q { flex-direction: row-reverse; }
[dir="rtl"] .footer-grid { direction: rtl; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .cselect-dropdown { direction: rtl; }
[dir="rtl"] .crselect-dropdown { direction: rtl; }
[dir="rtl"] .pay-detail { flex-direction: row-reverse; }
[dir="rtl"] .order-row { flex-direction: row-reverse; }
[dir="rtl"] .cred-row { flex-direction: row-reverse; }
[dir="rtl"] .breadcrumb { direction: rtl; }
[dir="rtl"] .step { text-align: center; }
[dir="rtl"] .other-card { flex-direction: row-reverse; }

/* ============================================================
   CONTENT / EDITORIAL PAGES (content.php)
   ============================================================ */
.content-hero { padding: 2.5rem 0 2rem; background: linear-gradient(170deg, #f0faf4 0%, var(--white) 60%, var(--bg) 100%); border-bottom: 1px solid var(--border); }
.content-hero h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-bottom: .85rem; max-width: 900px; }
.content-lede { font-size: 1.02rem; color: var(--text-s); line-height: 1.65; max-width: 760px; }
.content-lede p { margin-bottom: .65rem; }
.content-lede strong { color: var(--text); font-weight: 650; }
.content-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: 1.1rem; font-size: .78rem; color: var(--text-l); }
.content-meta .cm-dot { opacity: .5; }
.content-hero-img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); margin-top: 1.75rem; box-shadow: var(--shadow-md); }

.article { padding: 2.5rem 0 1rem; }
.article-wrap { max-width: 880px; }
.art-section { margin-bottom: 2.25rem; }
.art-section h2 { font-size: 1.3rem; font-weight: 750; letter-spacing: -.01em; margin: 0 0 .9rem; scroll-margin-top: 72px; }
.art-section h3 { font-size: 1rem; font-weight: 700; margin: 1.25rem 0 .4rem; }
.prose p { font-size: .9375rem; color: var(--text-s); line-height: 1.75; margin-bottom: .9rem; }
.prose ul, .prose ol { margin: .25rem 0 1rem 1.25rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { font-size: .9375rem; color: var(--text-s); line-height: 1.7; margin-bottom: .4rem; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--brand-h); }
.prose strong { color: var(--text); font-weight: 650; }
.prose code { font-family: var(--mono); font-size: .85em; background: var(--bg-alt); padding: .1rem .35rem; border-radius: 4px; }

.art-lead { background: var(--brand-soft); border: 1px solid rgba(var(--brand-rgb),.18); border-left: 3px solid var(--brand); border-radius: 8px; padding: 1.1rem 1.25rem; margin-bottom: 2rem; }
.art-lead p { font-size: 1rem; color: var(--text-s); line-height: 1.7; margin: 0; }
.art-lead strong { color: var(--brand-h); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .75rem; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1rem; text-align: center; }
.stat-val { display: block; font-size: 1.85rem; font-weight: 800; letter-spacing: -.03em; color: var(--brand); line-height: 1.1; }
.stat-label { display: block; font-size: .78rem; color: var(--text-m); margin-top: .25rem; }

.cmp-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.cmp-table { width: 100%; border-collapse: collapse; font-size: .85rem; min-width: 520px; }
.cmp-table th { text-align: left; padding: .7rem .85rem; font-size: .72rem; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; color: var(--text-l); background: var(--bg); border-bottom: 2px solid var(--border); }
.cmp-table td, .cmp-table tbody th { padding: .7rem .85rem; border-bottom: 1px solid var(--border); color: var(--text-s); vertical-align: top; font-weight: 400; text-align: left; }
.cmp-table tbody th { font-weight: 650; color: var(--text); }
.cmp-table tbody tr:last-child td, .cmp-table tbody tr:last-child th { border-bottom: none; }
.cmp-table tbody tr:hover { background: var(--bg); }
.cmp-table .yes { color: var(--brand); font-weight: 650; }
.cmp-table .no { color: var(--text-l); }
.cmp-table .best { background: var(--brand-soft); }

.deflist { display: grid; gap: .25rem; }
.defitem { padding: 1rem 0; border-bottom: 1px solid var(--border); scroll-margin-top: 72px; }
.defitem dt { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: .3rem; }
.defitem dd { font-size: .9rem; color: var(--text-s); line-height: 1.7; margin: 0; }
.defitem dd a { color: var(--brand); text-decoration: underline; }

.howto { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.howto-step { display: flex; gap: .9rem; align-items: flex-start; }
.howto-num { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: .85rem; display: grid; place-items: center; }
.howto-step h3 { font-size: .95rem; font-weight: 700; margin: .25rem 0 .25rem; }
.howto-step p { font-size: .9rem; color: var(--text-m); line-height: 1.65; margin: 0; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.checklist li { display: flex; align-items: flex-start; gap: .55rem; font-size: .9rem; color: var(--text-s); line-height: 1.6; }
.checklist svg { width: 18px; height: 18px; stroke: var(--brand); stroke-width: 2.5; fill: none; flex-shrink: 0; margin-top: .15rem; }

.codeblock { background: #0f1720; border: 1px solid #1e2a36; border-radius: 8px; overflow: hidden; margin: .5rem 0; }
.code-label { display: block; padding: .4rem .9rem; font-size: .68rem; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: #8aa0b3; background: #131c26; border-bottom: 1px solid #1e2a36; }
.codeblock pre { margin: 0; padding: 1rem; overflow-x: auto; }
.codeblock code { font-family: var(--mono); font-size: .82rem; color: #d6e2ec; line-height: 1.6; white-space: pre; }

.callout { border: 1px solid var(--border); border-left: 3px solid var(--blue); background: var(--blue-soft); border-radius: 8px; padding: .9rem 1.1rem; margin: 1.25rem 0; font-size: .88rem; color: var(--text-s); line-height: 1.6; }
.callout p { margin: 0 0 .4rem; }
.callout p:last-child { margin: 0; }
.callout a { color: var(--brand); text-decoration: underline; }
.callout-tip { border-left-color: var(--brand); background: var(--brand-soft); }

.ic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.ic-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.25rem; transition: all .15s; }
a.ic-card:hover { border-color: var(--brand); box-shadow: var(--shadow-md); }
.ic-card h3 { font-size: .9rem; font-weight: 700; margin: 0 0 .35rem; color: var(--text); }
.ic-card p { font-size: .82rem; color: var(--text-m); line-height: 1.55; margin: 0; }

.art-toc { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.1rem 1.35rem; margin-bottom: 2rem; }
.art-toc-title { display: block; font-size: .68rem; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; color: var(--text-l); margin-bottom: .6rem; }
.art-toc ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: .35rem .9rem; }
.art-toc a { font-size: .85rem; color: var(--text-s); display: inline-flex; align-items: center; gap: .35rem; }
.art-toc a::before { content: '#'; color: var(--brand); font-weight: 700; }
.art-toc a:hover { color: var(--brand); }

.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .6rem; }
.related-card { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .8rem 1rem; background: var(--bg); border: 1px solid transparent; border-radius: 8px; font-size: .85rem; font-weight: 600; color: var(--text-s); transition: all .15s; }
.related-card:hover { background: var(--white); border-color: var(--brand); color: var(--brand); }
.related-card svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; flex-shrink: 0; }

.cta-band { background: linear-gradient(120deg, var(--brand) 0%, var(--brand-h) 100%); padding: 2.5rem 0; margin-top: 1rem; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; font-size: 1.4rem; font-weight: 750; margin: 0 0 .35rem; }
.cta-inner p { color: rgba(255,255,255,.85); font-size: .9rem; margin: 0; }
.cta-band .btn-brand { background: #fff; color: var(--brand-h); border-color: #fff; flex-shrink: 0; }
.cta-band .btn-brand:hover { background: rgba(255,255,255,.9); border-color: rgba(255,255,255,.9); }

@media (max-width: 768px) {
    .art-toc ul { grid-template-columns: 1fr; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .content-hero h1 { font-size: 1.5rem; }
    .art-section h2 { font-size: 1.15rem; }
}
[dir="rtl"] .art-lead { border-left: none; border-right: 3px solid var(--brand); }
[dir="rtl"] .callout { border-left: none; border-right: 3px solid var(--blue); }
[dir="rtl"] .callout-tip { border-right-color: var(--brand); }
[dir="rtl"] .cmp-table th, [dir="rtl"] .cmp-table td, [dir="rtl"] .cmp-table tbody th { text-align: right; }
[dir="rtl"] .howto-step { flex-direction: row-reverse; }
[dir="rtl"] .checklist li { flex-direction: row-reverse; }

/* ============================================================
   PAGES EDITORIALES v2 — refonte
   Bloc entierement scope sur body.page-content, classe posee uniquement
   par content.php. L'accueil, /account, les pages pays et les pages
   legales ne sont pas concernes. Place en fin de fichier : ces regles
   l'emportent sur le bloc CONTENT/EDITORIAL d'origine (specificite +1
   classe et ordre du document). Retirer ce bloc rend l'ancien rendu.
   ============================================================ */

.page-content {
    --ch-ink-soft: rgba(255,255,255,.74);
    --ch-ink-dim:  rgba(255,255,255,.5);
    --ch-line:     rgba(255,255,255,.16);
    --art-aside:   260px;
    --signal:      #26c46d;
}

/* ── HERO plein cadre sur fond sombre ────────────────────── */
.page-content .content-hero {
    position: relative;
    overflow: hidden;
    background: #080c0a;
    border-bottom: none;
    padding: 2rem 0 3.25rem;
}
.page-content .ch-bg {
    position: absolute; inset: 0;
    background-image: url('/img/hero-network.webp');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}
/* Voile : opaque du cote du texte, transparent du cote des ondes. */
.page-content .ch-bg::after {
    content: ''; position: absolute; inset: 0;
    background:
        linear-gradient(90deg, #080c0a 0%, rgba(8,12,10,.95) 32%, rgba(8,12,10,.6) 62%, rgba(8,12,10,.2) 100%),
        linear-gradient(180deg, rgba(8,12,10,.5) 0%, transparent 24%, transparent 76%, rgba(8,12,10,.55) 100%);
}
.page-content .ch-inner { position: relative; }

.page-content .ch-crumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: .3rem;
    font-size: .75rem; color: var(--ch-ink-dim); margin-bottom: 1.7rem;
}
.page-content .ch-crumb a { color: rgba(255,255,255,.62); transition: color .15s; }
.page-content .ch-crumb a:hover { color: #fff; }
.page-content .ch-crumb strong { color: rgba(255,255,255,.9); font-weight: 600; }
.page-content .ch-crumb .sep { color: rgba(255,255,255,.26); }

.page-content .ch-copy { max-width: 46rem; }
.page-content .content-hero h1 {
    color: #fff; max-width: 22ch;
    font-size: clamp(1.85rem, 3.4vw, 2.85rem);
    font-weight: 800; letter-spacing: -.025em; line-height: 1.12;
    margin: 0 0 1rem;
}
.page-content .content-lede {
    color: var(--ch-ink-soft); font-size: 1.03rem; line-height: 1.7; max-width: 40rem;
}
.page-content .content-lede strong { color: #fff; font-weight: 650; }
.page-content .content-lede a { color: #8ee0ac; text-decoration: underline; text-underline-offset: 2px; }

.page-content .ch-facts {
    list-style: none; margin: 1.6rem 0 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: .5rem;
}
.page-content .ch-facts li {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .42rem .85rem; border-radius: 999px;
    background: rgba(255,255,255,.06); border: 1px solid var(--ch-line);
    font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.88);
}
.page-content .ch-facts li::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
    background: var(--signal); box-shadow: 0 0 8px rgba(38,196,109,.8);
}

.page-content .ch-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.9rem; }
.page-content .ch-actions .btn-brand { box-shadow: 0 10px 28px rgba(11,122,62,.45); }
.page-content .ch-actions .btn-brand:hover { box-shadow: 0 12px 32px rgba(11,122,62,.55); }
.page-content .ch-ghost { background: rgba(255,255,255,.05); color: #fff; border-color: var(--ch-line); }
.page-content .ch-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); }

.page-content .content-meta {
    color: var(--ch-ink-dim); margin-top: 1.8rem;
    padding-top: 1.1rem; border-top: 1px solid rgba(255,255,255,.1);
}

/* ── Corps : colonne de lecture + rail colle ─────────────── */
.page-content .article { padding: 3rem 0 1.5rem; }
.page-content .article-wrap { max-width: var(--page-max); }
.page-content .art-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--art-aside);
    gap: 3.5rem;
    align-items: start;
}
.page-content .art-aside {
    position: sticky; top: 4.75rem;
    display: grid; gap: 1rem; align-content: start;
    max-height: calc(100vh - 6.5rem); overflow-y: auto;
}
/* La prose garde une longueur de ligne lisible ; les blocs structurants
   (chiffres, tableaux, cartes) prennent eux toute la largeur de colonne. */
.page-content .art-main .prose        { max-width: 70ch; }
.page-content .art-main .art-lead     { max-width: 78ch; }
.page-content .art-main .callout      { max-width: 78ch; }
.page-content .art-main .defitem dd   { max-width: 78ch; }
.page-content .art-main .howto-step p { max-width: 70ch; }

/* ── Rythme des sections ─────────────────────────────────── */
.page-content .art-section { margin-bottom: 3.25rem; }
.page-content .art-section > h2 {
    font-size: 1.5rem; font-weight: 780; letter-spacing: -.022em;
    line-height: 1.25; margin: 0 0 1.15rem; scroll-margin-top: 5.5rem;
}
.page-content .art-section > h2::before {
    content: ''; display: block; width: 34px; height: 3px; border-radius: 2px;
    background: var(--brand); margin-bottom: .85rem;
}
.page-content .art-section h3 { font-size: 1.05rem; font-weight: 700; margin: 1.6rem 0 .5rem; }
.page-content .prose p, .page-content .prose li { font-size: .95rem; line-height: 1.8; }

.page-content .art-lead {
    background: linear-gradient(135deg, var(--brand-soft), #fff 85%);
    border: 1px solid rgba(var(--brand-rgb), .22);
    border-inline-start: 4px solid var(--brand);
    border-radius: 12px; padding: 1.35rem 1.6rem; margin-bottom: 2.75rem;
}
.page-content .art-lead p { font-size: 1.02rem; line-height: 1.72; }

/* ── Chiffres cles ───────────────────────────────────────── */
.page-content .stat-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
.page-content .stat {
    position: relative; overflow: hidden;
    padding: 1.5rem 1.15rem 1.35rem; border-radius: 14px;
    background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.page-content .stat::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--signal));
}
.page-content .stat:hover {
    transform: translateY(-2px); box-shadow: var(--shadow-md);
    border-color: rgba(var(--brand-rgb), .35);
}
.page-content .stat-val { font-size: 2.15rem; letter-spacing: -.035em; }
.page-content .stat-label { font-size: .8rem; margin-top: .4rem; }

/* ── Tableaux ────────────────────────────────────────────── */
.page-content .cmp-wrap { border-radius: 14px; box-shadow: var(--shadow-xs); }
.page-content .cmp-table { font-size: .875rem; }
.page-content .cmp-table th { padding: .85rem 1rem; }
.page-content .cmp-table td, .page-content .cmp-table tbody th { padding: .85rem 1rem; }
.page-content .cmp-table tbody tr:nth-child(even) { background: rgba(0,0,0,.015); }
.page-content .cmp-table tbody tr:hover { background: var(--brand-soft); }
.page-content .table-note { font-size: .8rem; color: var(--text-l); margin-top: .75rem; }

/* ── Cartes ──────────────────────────────────────────────── */
.page-content .ic-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.page-content .ic-card {
    position: relative; border-radius: 14px; padding: 1.35rem 1.45rem 1.5rem;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.page-content a.ic-card { padding-inline-end: 2.6rem; }
.page-content a.ic-card::after {
    content: ''; position: absolute; inset-inline-end: 1.25rem; top: 1.55rem;
    width: 8px; height: 8px;
    border-top: 2px solid var(--text-l); border-inline-end: 2px solid var(--text-l);
    transform: rotate(45deg); transition: border-color .15s, transform .15s;
}
.page-content a.ic-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.page-content a.ic-card:hover::after { border-color: var(--brand); transform: rotate(45deg) translate(2px, -2px); }
.page-content .ic-card h3 { font-size: .98rem; margin-bottom: .45rem; }
.page-content .ic-card p { font-size: .865rem; line-height: 1.65; }

/* ── Listes a coches : 2 colonnes des qu'il y a la place ── */
.page-content .checklist { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: .6rem .9rem; }
.page-content .checklist li {
    font-size: .92rem; line-height: 1.6;
    padding: .75rem 1rem; border-radius: 10px;
    background: var(--bg); border: 1px solid var(--border);
}
.page-content .checklist svg { margin-top: .18rem; }

/* ── Code ────────────────────────────────────────────────── */
.page-content .codeblock { border-radius: 12px; margin: 1rem 0 0; box-shadow: var(--shadow-md); }
.page-content .code-label { padding: .6rem 1.1rem; letter-spacing: .08em; }
.page-content .codeblock pre { padding: 1.15rem 1.25rem; }
.page-content .codeblock code { font-size: .84rem; line-height: 1.7; }

/* ── Encarts ─────────────────────────────────────────────── */
.page-content .callout {
    border: 1px solid var(--border); border-inline-start: 4px solid var(--blue);
    border-radius: 12px; padding: 1.1rem 1.35rem; margin: 1.75rem 0;
}
.page-content .callout p { font-size: .92rem; line-height: 1.7; }
.page-content .callout-tip { border-color: var(--border); border-inline-start-color: var(--brand); }

/* ── FAQ en cartes ───────────────────────────────────────── */
.page-content .art-section.faq { padding: 0; }
.page-content .faq-wrap { max-width: none; display: grid; gap: .6rem; }
.page-content .faq-item {
    border: 1px solid var(--border); border-radius: 12px;
    background: var(--surface); transition: border-color .15s, box-shadow .15s;
}
.page-content .faq-item:hover { border-color: var(--border-h); }
.page-content .faq-item.open { border-color: rgba(var(--brand-rgb), .4); box-shadow: var(--shadow-xs); }
.page-content .faq-q { padding: 1rem 1.25rem; font-size: .95rem; }
/* Le plafond d'origine (250px) tronquait les reponses longues une fois
   la colonne elargie : on le releve. */
.page-content .faq-item.open .faq-a { max-height: 1200px; }
.page-content .faq-a-body { padding: 0 1.25rem 1.1rem; font-size: .9rem; line-height: 1.7; }

/* ── Sommaire colle ──────────────────────────────────────── */
.page-content .art-toc {
    margin: 0; padding: 1.1rem 1.1rem 1.2rem;
    border-radius: 14px; background: var(--surface);
}
.page-content .art-toc ul { grid-template-columns: 1fr; gap: .1rem; }
.page-content .art-toc a {
    display: block; padding: .42rem .6rem; border-radius: 7px;
    font-size: .82rem; line-height: 1.45; color: var(--text-m);
    border-inline-start: 2px solid transparent;
    transition: color .12s, background .12s, border-color .12s;
}
.page-content .art-toc a::before { content: none; }
.page-content .art-toc a:hover { background: var(--bg); color: var(--text); }
.page-content .art-toc a.is-active {
    color: var(--brand); background: var(--brand-soft);
    border-inline-start-color: var(--brand); font-weight: 600;
}

/* ── Carte d'appel a l'action du rail ────────────────────── */
.page-content .art-cta {
    border-radius: 14px; padding: 1.25rem;
    background: linear-gradient(160deg, var(--brand) 0%, var(--brand-h) 100%);
}
.page-content .art-cta h3 { font-size: .95rem; font-weight: 700; margin: 0 0 .4rem; color: #fff; }
.page-content .art-cta p { font-size: .8rem; line-height: 1.55; color: rgba(255,255,255,.85); margin: 0 0 .9rem; }
.page-content .art-cta .btn { width: 100%; background: #fff; color: var(--brand-h); border-color: #fff; }
.page-content .art-cta .btn:hover { background: rgba(255,255,255,.9); border-color: rgba(255,255,255,.9); }

/* ── Liens connexes ──────────────────────────────────────── */
.page-content .related-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .7rem; }
.page-content .related-card {
    padding: .95rem 1.15rem; border-radius: 10px;
    background: var(--surface); border-color: var(--border); font-size: .875rem;
}
.page-content .related-card:hover { box-shadow: var(--shadow-xs); }

/* ── Figure de tete (pages avec hero_image) ──────────────── */
.page-content .content-hero-img { margin: 0 0 2.25rem; border-radius: 14px; box-shadow: var(--shadow-md); }

/* ── Bandeau final ───────────────────────────────────────── */
.page-content .cta-band { position: relative; overflow: hidden; padding: 3.25rem 0; margin-top: 2.5rem; }
.page-content .cta-band::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 82% 50%, rgba(255,255,255,.14), transparent 55%);
}
.page-content .cta-inner { position: relative; }
.page-content .cta-inner h2 { font-size: 1.6rem; }
.page-content .cta-inner p { font-size: .95rem; max-width: 46rem; }

/* ── RTL : on retourne le fond pour que la zone sombre suive le texte ── */
[dir="rtl"] .page-content .ch-bg { transform: scaleX(-1); }

/* ── Adaptatif ───────────────────────────────────────────── */
@media (max-width: 1080px) {
    .page-content .art-layout { grid-template-columns: 1fr; gap: 2.25rem; }
    .page-content .art-aside { position: static; max-height: none; overflow: visible; order: -1; }
    .page-content .art-cta { display: none; }
    .page-content .art-toc ul { grid-template-columns: repeat(2, 1fr); gap: .1rem .8rem; }
}
@media (max-width: 768px) {
    .page-content .content-hero { padding: 1.5rem 0 2.5rem; }
    .page-content .content-hero h1 { font-size: 1.55rem; max-width: none; }
    .page-content .content-lede { font-size: .95rem; }
    .page-content .ch-actions .btn { flex: 1 1 auto; }
    .page-content .art-section > h2 { font-size: 1.25rem; }
    .page-content .art-toc ul { grid-template-columns: 1fr; }
    .page-content .checklist { grid-template-columns: 1fr; }
    .page-content .cta-inner h2 { font-size: 1.3rem; }
}

/* ============================================================
   ACCUEIL v2 — premiere section
   Scope sur body.page-home, classe posee uniquement par index.php.
   country.php partage .hero / .hero-layout / .hero-feat / .hero-pills
   mais n'a pas cette classe : sa presentation reste inchangee.
   ============================================================ */
.page-home .hero {
    position: relative; overflow: hidden;
    background: #070b09; border-bottom: none;
    padding: 3.25rem 0 4rem;
}
.page-home .hero-bg {
    position: absolute; inset: 0;
    background: url('/img/hero-home.webp') center right / cover no-repeat;
}
.page-home .hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background:
        linear-gradient(90deg, #070b09 0%, rgba(7,11,9,.93) 30%, rgba(7,11,9,.6) 58%, rgba(7,11,9,.4) 100%),
        linear-gradient(180deg, rgba(7,11,9,.5) 0%, transparent 22%, transparent 72%, rgba(7,11,9,.75) 100%);
}
.page-home .hero > .wrap { position: relative; }
.page-home .hero-layout { grid-template-columns: minmax(0, 1fr) 440px; gap: 4rem; align-items: center; }

/* Pastille d'etat : reprend le point clignotant de l'en-tete du configurateur. */
.page-home .hero-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .4rem .9rem .4rem .75rem; border-radius: 999px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
    font-size: .76rem; font-weight: 600; color: rgba(255,255,255,.82);
    margin-bottom: 1.5rem;
}
.page-home .hero-badge-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #22c55e;
    animation: livepulse 2s infinite; flex-shrink: 0;
}
.page-home .hero-badge-sep { color: rgba(255,255,255,.28); }

.page-home .hero-text h1 {
    color: #fff; font-size: clamp(2rem, 3.6vw, 3.1rem);
    font-weight: 800; line-height: 1.1; letter-spacing: -.03em; margin-bottom: 1.1rem;
}
.page-home .hero-text h1 em { color: #34d778; }
.page-home .hero-text > p {
    font-size: 1.02rem; color: rgba(255,255,255,.72); line-height: 1.7;
    max-width: 34rem; margin-bottom: 1.8rem;
}

/* Les 5 arguments passent sur deux colonnes : la colonne de texte fait ~720 px,
   une pile verticale de 5 lignes y laissait un grand vide. */
.page-home .hero-features {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem 1.6rem; margin-bottom: 1.9rem;
}
.page-home .hero-feat {
    align-items: flex-start; gap: .55rem;
    font-size: .84rem; font-weight: 450; color: rgba(255,255,255,.74); line-height: 1.5;
}
.page-home .hero-feat svg { stroke: #34d778; margin-top: .16rem; }
.page-home .hero-feat:nth-child(5) { grid-column: 1 / -1; }

.page-home .hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.9rem; }
.page-home .hero-actions .btn-brand { box-shadow: 0 10px 28px rgba(11,122,62,.45); }
.page-home .hero-actions .btn-brand:hover { box-shadow: 0 12px 32px rgba(11,122,62,.55); }
.page-home .hero-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.16); }
.page-home .hero-ghost:hover { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.32); }

/* Preuve concrete : les vrais drapeaux des pays actifs, issus de la base. */
.page-home .hero-flags {
    display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
    padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.1);
}
.page-home .hero-flags .fi {
    display: inline-block; width: 23px; height: 16px; border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.18);
    opacity: .85; transition: opacity .15s, transform .15s;
}
.page-home .hero-flags:hover .fi { opacity: 1; }
.page-home .hero-flags .fi:hover { transform: translateY(-2px); }
.page-home .hero-flags-more {
    font-size: .74rem; font-weight: 650; color: rgba(255,255,255,.65);
    padding: .15rem .5rem; border-radius: 5px; margin-inline-start: .2rem;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
}
.page-home a.hero-flags:hover .hero-flags-more { color: #fff; border-color: rgba(255,255,255,.3); }


/* Le configurateur decolle du fond sombre. */
.page-home .config {
    border-color: transparent;
    box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.09);
}

[dir="rtl"] .page-home .hero-bg { transform: scaleX(-1); }

@media (max-width: 960px) {
    .page-home .hero-layout { grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
    .page-home .hero-features { grid-template-columns: 1fr; }
    .page-home .hero-feat:nth-child(5) { grid-column: auto; }
}
@media (max-width: 640px) {
    .page-home .hero { padding: 2rem 0 2.75rem; }
    .page-home .hero-text h1 { font-size: 1.8rem; }
    .page-home .hero-text > p { font-size: .95rem; }
    .page-home .hero-actions .btn { flex: 1 1 auto; }
    .page-home .hero-badge { font-size: .72rem; }
}

/* ============================================================
   PAGES PAYS v2 (country.php) — scope sur body.page-country
   country.php partage .hero / .hero-layout / .hero-feat / .faq /
   .feat-grid avec l'accueil et les pages editoriales : tout est
   prefixe pour n'agir que sur les pages pays.
   ============================================================ */

/* ── Hero sombre ─────────────────────────────────────────── */
.page-country .hero {
    position: relative; overflow: hidden;
    background: #070b09; border-bottom: none;
    padding: 1.6rem 0 3.5rem;
}
.page-country .hero-bg {
    position: absolute; inset: 0;
    background: url('/img/hero-home.webp') center right / cover no-repeat;
}
.page-country .hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background:
        linear-gradient(90deg, #070b09 0%, rgba(7,11,9,.93) 30%, rgba(7,11,9,.6) 58%, rgba(7,11,9,.4) 100%),
        linear-gradient(180deg, rgba(7,11,9,.5) 0%, transparent 22%, transparent 72%, rgba(7,11,9,.75) 100%);
}
.page-country .hero > .wrap { position: relative; }
.page-country .hero-layout { grid-template-columns: minmax(0, 1fr) 440px; gap: 3.5rem; align-items: center; }

.page-country .pc-crumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: .3rem;
    font-size: .75rem; color: rgba(255,255,255,.5); margin-bottom: 1.5rem;
}
.page-country .pc-crumb a { color: rgba(255,255,255,.62); transition: color .15s; }
.page-country .pc-crumb a:hover { color: #fff; }
.page-country .pc-crumb strong { color: rgba(255,255,255,.9); font-weight: 600; }
.page-country .pc-crumb .sep { color: rgba(255,255,255,.26); }

.page-country .pc-badge {
    display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap;
    padding: .4rem .9rem .4rem .75rem; border-radius: 999px;
    background: rgba(255,255,255,.06); border: 1px solid var(--pc-line, rgba(255,255,255,.16));
    font-size: .76rem; font-weight: 600; color: rgba(255,255,255,.82); margin-bottom: 1.35rem;
}
.page-country .pc-badge-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #22c55e;
    animation: livepulse 2s infinite; flex-shrink: 0;
}
.page-country .pc-badge .sep { color: rgba(255,255,255,.28); }

.page-country .ch-top { display: flex; align-items: center; gap: .95rem; margin-bottom: 1rem; }
.page-country .ch-flag {
    font-size: 2.5rem; line-height: 1; border-radius: 6px; flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(255,255,255,.22), 0 6px 18px rgba(0,0,0,.5);
}
.page-country .ch-top h1 {
    color: #fff; font-size: clamp(1.7rem, 3.1vw, 2.55rem);
    font-weight: 800; line-height: 1.12; letter-spacing: -.028em; margin: 0;
}
.page-country .hero-text > p {
    font-size: 1rem; color: rgba(255,255,255,.72); line-height: 1.7;
    max-width: 34rem; margin-bottom: 1.7rem;
}
.page-country .hero-features {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem 1.6rem; margin-bottom: 1.8rem;
}
.page-country .hero-feat {
    align-items: flex-start; gap: .55rem;
    font-size: .84rem; font-weight: 450; color: rgba(255,255,255,.74); line-height: 1.5;
}
.page-country .hero-feat svg { stroke: #34d778; margin-top: .16rem; }

.page-country .pc-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.page-country .pc-actions .btn-brand { box-shadow: 0 10px 28px rgba(11,122,62,.45); }
.page-country .pc-actions .btn-brand:hover { box-shadow: 0 12px 32px rgba(11,122,62,.55); }
.page-country .pc-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.16); }
.page-country .pc-ghost:hover { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.32); }

.page-country .config {
    border-color: transparent;
    box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.09);
}

/* ── Tableau des operateurs (bureau) ─────────────────────── */
.page-country .country-carriers { padding: 3.5rem 0; }
.page-country .country-carriers h2 { font-size: 1.5rem; font-weight: 780; letter-spacing: -.02em; margin-bottom: 1.4rem; }
.page-country .carriers-table-wrap {
    border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
    box-shadow: var(--shadow-xs); margin-bottom: 1rem;
}
.page-country .carriers-table { font-size: .85rem; }
.page-country .carriers-table th {
    padding: .85rem 1rem; background: var(--bg-alt);
    font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-l);
}
.page-country .carriers-table td { padding: .95rem 1rem; vertical-align: middle; }
.page-country .carriers-table tbody tr:nth-child(even) { background: rgba(0,0,0,.015); }
.page-country .carriers-table tbody tr:hover { background: var(--brand-soft); }
.page-country .carriers-table tbody tr:last-child td { border-bottom: none; }
.page-country .ct-carrier { font-weight: 600; }
.page-country .ct-icon { width: 26px; height: 26px; border-radius: 6px; box-shadow: 0 0 0 1px var(--border); }
.page-country .ct-price { font-size: 1rem; font-weight: 750; letter-spacing: -.02em; }
.page-country .ct-price small { font-size: .7rem; }

/* ── Les trois arguments ─────────────────────────────────── */
.page-country .features { padding: 3.5rem 0; background: var(--bg); border-top: 1px solid var(--border); }
.page-country .features h2 { font-size: 1.5rem; font-weight: 780; letter-spacing: -.02em; margin-bottom: 2rem; }
.page-country .feat-grid { gap: 1rem; }
.page-country .feat-card {
    border-radius: 14px; padding: 1.5rem 1.4rem; background: var(--surface);
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.page-country .feat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(var(--brand-rgb), .3); }
.page-country .feat-card h3 { font-size: .98rem; margin-bottom: .55rem; }
.page-country .feat-icon {
    width: 34px; height: 34px; border-radius: 9px;
    background: var(--brand-soft); flex-shrink: 0;
}
.page-country .feat-icon svg { width: 18px; height: 18px; }
.page-country .feat-card p { font-size: .865rem; line-height: 1.65; }

/* ── Editorial ───────────────────────────────────────────── */
.page-country .country-editorial { padding: 3.5rem 0 1rem; }
.page-country .country-editorial .article-wrap { max-width: 78ch; }
.page-country .art-section > h2 { font-size: 1.4rem; font-weight: 780; letter-spacing: -.02em; margin-bottom: 1rem; }
.page-country .art-section > h2::before {
    content: ''; display: block; width: 34px; height: 3px; border-radius: 2px;
    background: var(--brand); margin-bottom: .8rem;
}
.page-country .art-lead {
    background: linear-gradient(135deg, var(--brand-soft), #fff 85%);
    border: 1px solid rgba(var(--brand-rgb), .22);
    border-inline-start: 4px solid var(--brand);
    border-radius: 12px; padding: 1.3rem 1.5rem; margin-bottom: 2.5rem;
}
.page-country .prose p, .page-country .prose li { font-size: .95rem; line-height: 1.8; }

/* ── Autres destinations : cartes, puis nuage compact ────── */
.page-country .other-locations { padding: 3.5rem 0; }
.page-country .other-locations h2 { font-size: 1.3rem; font-weight: 750; margin-bottom: 1.35rem; }
.page-country .other-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem;
}
.page-country .other-card {
    display: flex; align-items: center; gap: .6rem;
    padding: .85rem 1rem; border-radius: 11px;
    background: var(--surface); border: 1px solid var(--border);
    font-size: .875rem; font-weight: 550; color: var(--text-s);
    transition: transform .15s, box-shadow .15s, border-color .15s, color .15s;
}
.page-country .other-card:hover {
    transform: translateY(-2px); box-shadow: var(--shadow-md);
    border-color: var(--brand); color: var(--brand); background: var(--surface);
}
.page-country .other-card .fi { font-size: 1.25rem; border-radius: 3px; flex-shrink: 0; }

.page-country .all-locations { padding: 2.25rem 0 3rem; background: var(--bg); border-top: 1px solid var(--border); }
.page-country .all-locations h2 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-l); margin-bottom: 1rem; }
.page-country .all-loc-link { border-radius: 7px; font-size: .78rem; padding: .35rem .6rem; }

/* ── FAQ en cartes ───────────────────────────────────────── */
.page-country .faq { padding: 3.5rem 0; border-top: 1px solid var(--border); }
.page-country .faq h2 { font-size: 1.5rem; font-weight: 780; letter-spacing: -.02em; margin-bottom: 1.5rem; }
.page-country .faq-wrap { max-width: 900px; display: grid; gap: .6rem; }
.page-country .faq-item {
    border: 1px solid var(--border); border-radius: 12px;
    background: var(--surface); transition: border-color .15s, box-shadow .15s;
}
.page-country .faq-item:hover { border-color: var(--border-h); }
.page-country .faq-item.open { border-color: rgba(var(--brand-rgb), .4); box-shadow: var(--shadow-xs); }
.page-country .faq-q { padding: 1rem 1.25rem; font-size: .95rem; }
.page-country .faq-item.open .faq-a { max-height: 1200px; }
.page-country .faq-a-body { padding: 0 1.25rem 1.1rem; font-size: .9rem; line-height: 1.7; }

/* ── Barre de commande collee (mobile uniquement) ────────── */
.page-country .pc-sticky { display: none; }

[dir="rtl"] .page-country .hero-bg { transform: scaleX(-1); }

/* ── Adaptatif ───────────────────────────────────────────── */
@media (max-width: 960px) {
    .page-country .hero-layout { grid-template-columns: 1fr; gap: 2.25rem; align-items: start; }
    .page-country .hero-features { grid-template-columns: 1fr; }
    .page-country .other-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* Sous 768 px le tableau a 8 colonnes devient une pile de cartes :
   plus aucun defilement horizontal. Les intitules viennent des
   attributs data-label, donc traduits comme les en-tetes. */
@media (max-width: 768px) {
    .page-country .hero { padding: 1.25rem 0 2.5rem; }
    .page-country .ch-flag { font-size: 2rem; }
    .page-country .ch-top h1 { font-size: 1.5rem; }
    .page-country .hero-text > p { font-size: .93rem; }
    .page-country .pc-actions .btn { flex: 1 1 auto; }

    .page-country .carriers-table-wrap {
        border: none; border-radius: 0; overflow: visible;
        box-shadow: none; margin: 0 0 1rem; padding: 0;
    }
    .page-country .carriers-table { min-width: 0; width: 100%; display: block; font-size: .875rem; }
    .page-country .carriers-table thead { display: none; }
    .page-country .carriers-table tbody { display: grid; gap: .75rem; }
    .page-country .carriers-table tbody tr {
        display: grid; grid-template-columns: 1fr 1fr; gap: .55rem .9rem;
        border: 1px solid var(--border); border-radius: 14px;
        padding: 1rem 1.1rem; background: var(--surface); box-shadow: var(--shadow-xs);
    }
    .page-country .carriers-table tbody tr:nth-child(even),
    .page-country .carriers-table tbody tr:hover { background: var(--surface); }
    .page-country .carriers-table td {
        display: block; border: none; padding: 0; font-size: .8rem;
    }
    .page-country .carriers-table td::before {
        content: attr(data-label);
        display: block; font-size: .62rem; font-weight: 700;
        text-transform: uppercase; letter-spacing: .06em;
        color: var(--text-l); margin-bottom: .15rem;
    }
    /* En-tete de carte : nom a gauche, technologie a droite, un seul filet.
       Les deux cellules partagent la meme ligne de grille et le meme
       border-bottom, donc le filet est continu sans calage manuel. */
    .page-country .carriers-table td.ct-carrier,
    .page-country .carriers-table td.ct-tech {
        padding-bottom: .7rem; margin-bottom: .2rem;
        border-bottom: 1px solid var(--border);
        display: flex; align-items: center;
    }
    .page-country .carriers-table td.ct-carrier { grid-column: 1; gap: .55rem; font-size: 1rem; font-weight: 700; }
    .page-country .carriers-table td.ct-tech { grid-column: 2; justify-content: flex-end; }
    .page-country .carriers-table td.ct-carrier::before,
    .page-country .carriers-table td.ct-tech::before { content: none; }
    .page-country .carriers-table td.ct-price { font-size: 1.05rem; font-weight: 750; color: var(--text); }
    /* 5 champs dans une grille a 2 colonnes : la rotation resterait seule
       sur sa ligne, on lui donne toute la largeur. */
    .page-country .carriers-table td.ct-rotation { grid-column: 1 / -1; }
    .page-country .carriers-table td.ct-order { grid-column: 1 / -1; margin-top: .35rem; }
    .page-country .carriers-table td.ct-order::before { content: none; }
    .page-country .carriers-table td.ct-order .btn { width: 100%; padding: .6rem 1rem; font-size: .875rem; }

    /* Barre de commande collee en bas */
    .page-country .pc-sticky {
        display: flex; align-items: center; justify-content: space-between; gap: .9rem;
        position: fixed; inset-inline: 0; bottom: 0; z-index: 200;
        padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom, 0px));
        background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
        border-top: 1px solid var(--border); box-shadow: 0 -4px 20px rgba(0,0,0,.07);
    }
    .page-country .pc-sticky-price { font-size: .875rem; font-weight: 700; color: var(--text); }
    .page-country .pc-sticky-price span { display: block; font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-l); }
    .page-country .pc-sticky .btn { flex-shrink: 0; padding: .65rem 1.5rem; }
    .page-country { padding-bottom: 4.5rem; }
}
@media (max-width: 480px) {
    .page-country .carriers-table tbody tr { grid-template-columns: 1fr 1fr; }
    .page-country .other-grid { grid-template-columns: 1fr 1fr; }
    .page-country .country-carriers h2, .page-country .features h2, .page-country .faq h2 { font-size: 1.2rem; }
}

/* ── Pages pays : corrections issues des captures ────────── */

/* Le hero centrait une colonne de texte courte contre un configurateur
   tres haut : ~110 px de vide en haut ET en bas. On aligne en haut. */
.page-country .hero-layout { align-items: start; }
.page-country .hero-text { padding-top: .25rem; }
/* Le voile masquait presque entierement la carte du monde. */
.page-country .hero-bg::after {
    background:
        linear-gradient(90deg, #070b09 0%, rgba(7,11,9,.9) 30%, rgba(7,11,9,.5) 60%, rgba(7,11,9,.18) 100%),
        linear-gradient(180deg, rgba(7,11,9,.45) 0%, transparent 24%, transparent 74%, rgba(7,11,9,.7) 100%);
}

/* Tableau : colonnes calibrees, prix mis en avant. Sans largeurs
   explicites les 8 colonnes s'etalaient et le badge 4G flottait seul. */
.page-country .carriers-table { table-layout: fixed; }
.page-country .carriers-table th:nth-child(1) { width: 20%; }
.page-country .carriers-table th:nth-child(2) { width: 8%; }
.page-country .carriers-table th:nth-child(3) { width: 13%; }
.page-country .carriers-table th:nth-child(4) { width: 10%; }
.page-country .carriers-table th:nth-child(5),
.page-country .carriers-table th:nth-child(6) { width: 11%; }
.page-country .carriers-table th:nth-child(7) { width: 17%; }
.page-country .carriers-table th:nth-child(8) { width: 10%; }
.page-country .carriers-table td.ct-order { text-align: end; }
.page-country .carriers-table td.ct-order .btn { white-space: nowrap; }
.page-country .table-note { max-width: 80ch; font-size: .8rem; color: var(--text-l); line-height: 1.6; }

/* Editorial en deux colonnes : la prose gardait 78ch centres dans un
   conteneur de 1216 px, soit ~500 px de vide de chaque cote. */
.page-country .country-editorial { padding: 3.5rem 0; background: var(--surface); border-top: 1px solid var(--border); }
.page-country .pc-ed-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 300px;
    gap: 3.5rem; align-items: start;
}
.page-country .pc-ed-main .prose,
.page-country .pc-ed-main .art-lead { max-width: 74ch; }
.page-country .pc-ed-aside { position: sticky; top: 4.75rem; }

.page-country .pc-order-card {
    border: 1px solid var(--border); border-radius: 16px;
    background: var(--bg); padding: 1.35rem; box-shadow: var(--shadow-xs);
}
.page-country .pc-oc-head {
    display: flex; align-items: center; gap: .6rem;
    padding-bottom: .9rem; margin-bottom: .9rem; border-bottom: 1px solid var(--border);
    font-size: 1rem; font-weight: 750;
}
.page-country .pc-oc-head .fi { font-size: 1.4rem; border-radius: 3px; flex-shrink: 0; }
.page-country .pc-oc-rows { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: .55rem; }
.page-country .pc-oc-rows li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.page-country .pc-oc-rows span { font-size: .8rem; color: var(--text-m); }
.page-country .pc-oc-rows b { font-size: 1.05rem; font-weight: 750; letter-spacing: -.02em; }
.page-country .pc-oc-note { font-size: .72rem; color: var(--text-l); text-align: center; margin-top: .7rem; }

/* FAQ : 900 px calee a gauche laissait 316 px de vide. Deux colonnes
   pleine largeur ; l'accordeon n'ouvrant qu'un element a la fois, une
   colonne ne pousse jamais l'autre. */
.page-country .faq-wrap {
    max-width: none;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem 1rem; align-items: start;
}

/* Nuage « tous les emplacements » : etait minuscule et tasse. */
.page-country .all-locations { padding: 2.75rem 0 3.25rem; }
.page-country .all-loc-grid { gap: .45rem; }
.page-country .all-loc-link {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .5rem .8rem; border-radius: 9px; font-size: .82rem; font-weight: 500;
    background: var(--surface); border: 1px solid var(--border); color: var(--text-s);
}
.page-country .all-loc-link:hover { border-color: var(--brand); color: var(--brand); }
.page-country .all-loc-link.current { border-color: var(--brand); background: var(--brand-soft); }
.page-country .all-loc-link .fi { font-size: 1rem; border-radius: 2px; }

/* Cartes « pourquoi choisir » : plus d'air, icone plus lisible. */
.page-country .feat-card { padding: 1.65rem 1.5rem; }
.page-country .feat-card h3 { font-size: 1.02rem; gap: .65rem; }
.page-country .feat-card p { font-size: .875rem; }

@media (max-width: 1080px) {
    .page-country .pc-ed-layout { grid-template-columns: 1fr; gap: 2rem; }
    .page-country .pc-ed-aside { position: static; max-width: 340px; }
    .page-country .faq-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .page-country .carriers-table { table-layout: auto; }
    .page-country .carriers-table td.ct-order { text-align: start; }
    .page-country .hero-text { padding-top: 0; }
}

/* Accueil : la FAQ heritait de .faq-wrap{max-width:740px} sans marge auto,
   donc calee a gauche avec ~470 px de vide a droite. Deux colonnes. */
.page-home .faq-wrap {
    max-width: none;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem 1rem; align-items: start;
}
.page-home .faq-item {
    border: 1px solid var(--border); border-radius: 12px;
    background: var(--surface); transition: border-color .15s, box-shadow .15s;
}
.page-home .faq-item:hover { border-color: var(--border-h); }
.page-home .faq-item.open { border-color: rgba(var(--brand-rgb), .4); box-shadow: var(--shadow-xs); }
.page-home .faq-q { padding: 1rem 1.25rem; font-size: .95rem; }
.page-home .faq-item.open .faq-a { max-height: 1200px; }
.page-home .faq-a-body { padding: 0 1.25rem 1.1rem; font-size: .9rem; line-height: 1.7; }
@media (max-width: 900px) {
    .page-home .faq-wrap { grid-template-columns: 1fr; }
}

/* ============================================================
   ACCUEIL — experience mobile
   Constat mesure a 390 px avant intervention : document de 8179 px,
   dont ~1500 px pour les 18 pays ; bande de confiance a 5 elements
   laissant un orphelin ; rangee de drapeaux debordant sur 2 lignes
   avec un « +4 » isole ; etapes centrees tres aerees.
   ============================================================ */

/* Le bouton « tous les emplacements » n'existe que sur mobile :
   sur grand ecran la grille tient deja en 4 colonnes. */
.page-home .loc-more { display: none; }

.page-home .hm-sticky { display: none; }

@media (max-width: 768px) {
    /* ── HERO : on comprime, sans toucher a la hierarchie ── */
    .page-home .hero { padding: 1.5rem 0 2.25rem; }
    .page-home .hero-badge { margin-bottom: 1.1rem; padding: .35rem .8rem .35rem .7rem; }
    .page-home .hero-text h1 { font-size: 1.8rem; margin-bottom: .8rem; }
    .page-home .hero-text > p { font-size: .93rem; line-height: 1.6; margin-bottom: 1.35rem; }
    .page-home .hero-features { gap: .5rem; margin-bottom: 1.4rem; }
    .page-home .hero-feat { font-size: .83rem; line-height: 1.45; }
    .page-home .hero-actions { gap: .55rem; margin-bottom: 1.3rem; }
    /* Deux boutons cote a cote a 390 px forcaient « Configure your proxy »
       a passer sur deux lignes : on les empile en pleine largeur. */
    .page-home .hero-actions .btn { flex: 1 1 100%; min-height: 46px; }

    /* Drapeaux : une seule rangee qui defile, au lieu de 2 lignes
       terminees par un « +4 » orphelin. */
    .page-home .hero-flags {
        flex-wrap: nowrap; overflow-x: auto; padding-top: 1.1rem;
        scrollbar-width: none; -ms-overflow-style: none;
        -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent);
                mask-image: linear-gradient(90deg, #000 86%, transparent);
    }
    .page-home .hero-flags::-webkit-scrollbar { display: none; }
    .page-home .hero-flags .fi,
    .page-home .hero-flags-more { flex-shrink: 0; }

    /* ── BANDE DE CONFIANCE : 5 elements en grille laissaient un
       orphelin sur la 3e ligne. Rangee qui defile. ── */
    .page-home .trust { padding: 1.25rem 0; }
    .page-home .trust-inner {
        display: flex; gap: .55rem; overflow-x: auto;
        scrollbar-width: none; -ms-overflow-style: none;
        margin-inline: calc(var(--wrap-pad) * -1);
        padding: 0 var(--wrap-pad) .15rem;
    }
    .page-home .trust-inner::-webkit-scrollbar { display: none; }
    .page-home .trust-item { flex: 0 0 auto; width: 8.5rem; padding: .85rem .6rem; }
    .page-home .trust-icon { width: 30px; height: 30px; }
    .page-home .trust-item strong { font-size: .76rem; }

    /* ── EMPLACEMENTS : cartes compactes, repliees a 8 ── */
    .page-home .locations { padding: 2.25rem 0; }
    .page-home .locations > .wrap > p { font-size: .87rem; margin-bottom: 1.35rem; }
    .page-home .loc-grid { grid-template-columns: 1fr; gap: .45rem; }
    .page-home .loc-card { padding: .75rem .9rem; min-height: 52px; }
    /* La liste des operateurs est un 3e niveau d'information : elle
       double la hauteur de chaque carte pour un gain faible sur telephone. */
    .page-home .loc-carriers { display: none; }
    .page-home .loc-name { font-size: .875rem; }
    .page-home .loc-price { font-size: .75rem; margin-top: .1rem; }
    .page-home .loc-grid:not(.is-open) .loc-card:nth-child(n+9) { display: none; }
    .page-home .loc-more { display: block; margin-top: .9rem; }
    .page-home .loc-more button {
        width: 100%; min-height: 46px; border-radius: 10px;
        border: 1px solid var(--border); background: var(--surface);
        font-size: .875rem; font-weight: 600; color: var(--brand);
    }

    /* ── POURQUOI CHOISIR ── */
    .page-home .features { padding: 2.25rem 0; }
    .page-home .feat-card { padding: 1.1rem 1.15rem; }
    .page-home .feat-card p { font-size: .85rem; line-height: 1.6; }

    /* ── ETAPES : numero a gauche, texte a droite. Le format centre
       gaspillait ~50 % de la largeur et cassait la lecture. ── */
    .page-home .steps { padding: 2.25rem 0; }
    .page-home .steps-row { gap: 1rem; }
    .page-home .step {
        display: grid; grid-template-columns: 36px 1fr;
        column-gap: .85rem; row-gap: .15rem;
        text-align: start; align-items: start;
    }
    .page-home .step-num { grid-row: 1 / 3; width: 36px; height: 36px; margin: 0; font-size: .85rem; }
    .page-home .step h3 { margin: .35rem 0 0; align-self: center; }
    .page-home .step p { margin: 0; font-size: .82rem; }

    /* ── FAQ : cibles tactiles ── */
    .page-home .faq { padding: 2.25rem 0; }
    .page-home .faq-q { min-height: 52px; padding: .9rem 1.1rem; }

    /* ── PIED DE PAGE : 4 groupes empiles faisaient ~800 px ── */
    .page-home .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
    .page-home .footer-brand { grid-column: 1 / -1; }

    /* ── Barre d'action collee : le document fait plusieurs milliers
       de pixels, le configurateur sort de l'ecran des la 2e section. ── */
    .page-home .hm-sticky {
        display: flex; align-items: center; justify-content: space-between; gap: .9rem;
        position: fixed; inset-inline: 0; bottom: 0; z-index: 200;
        padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom, 0px));
        background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
        border-top: 1px solid var(--border); box-shadow: 0 -4px 20px rgba(0,0,0,.07);
    }
    .page-home .hm-sticky-price { font-size: .9rem; font-weight: 750; color: var(--text); }
    .page-home .hm-sticky .btn { flex-shrink: 0; min-height: 44px; padding: .6rem 1.6rem; }
    .page-home { padding-bottom: 4.25rem; }
}

@media (max-width: 420px) {
    .page-home .hero-text h1 { font-size: 1.62rem; }
    .page-home .trust-item { width: 7.75rem; }
    .page-home .footer-grid { grid-template-columns: 1fr; }
}

/* ── Piege CSS Grid : une piste « 1fr » ne descend jamais sous la
   largeur minimale de son contenu. Le configurateur ayant un
   min-content d'environ 448 px, la colonne unique du hero forcait
   448 px dans un ecran de 390 -> debordement horizontal de toute la
   page. minmax(0,1fr) + min-width:0 autorisent la compression. ── */
.page-home .hero-layout,
.page-country .hero-layout { grid-template-columns: minmax(0, 1fr) 440px; }
.page-home .hero-text, .page-home .config,
.page-country .hero-text, .page-country .config { min-width: 0; }
@media (max-width: 960px) {
    .page-home .hero-layout,
    .page-country .hero-layout { grid-template-columns: minmax(0, 1fr); }
}

/* ── Meme piege que le hero, sur les replis mobiles a une colonne.
   Sur /4g-proxies/ la colonne .art-main contenait un tableau
   comparatif a min-width:520px : la piste « 1fr » adoptait ce
   min-content (655 px) et toute la page debordait a 390 px.
   Mesure avant/apres : scrollWidth 671 -> 390. ── */
.page-content .art-main, .page-content .art-aside,
.page-country .pc-ed-main, .page-country .pc-ed-aside { min-width: 0; }

@media (max-width: 1080px) {
    .page-content .art-layout { grid-template-columns: minmax(0, 1fr); }
    .page-country .pc-ed-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
    .page-country .hero-features,
    .page-home .hero-features { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
    .page-home .loc-grid { grid-template-columns: minmax(0, 1fr); }
    .page-content .checklist { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
    .page-home .faq-wrap { grid-template-columns: minmax(0, 1fr); }
}


/* ============================================================
   COUCHE APP MOBILE v1 — 03/09/2026
   Tout est ADDITIF et confine sous @media (max-width: 768px) ou
   (max-width: 640px) : le rendu bureau (> 768 px) ne change pas.
   - barre d'onglets fixe .abar (rendue par includes/footer.php)
   - listes deroulantes du configurateur, du selecteur crypto et
     de l'achat en compte -> feuilles basses (bottom sheets)
   - tableaux comparatifs / historiques -> cartes (data-th pose par
     js/app-mobile.js ; sans script : defilement natif)
   - sommaire des pages editoriales repliable
   - anti-zoom iOS (champs a 16 px), cibles tactiles >= 44 px
   - espace client compacte (titre dans la barre, stats sur 3 colonnes)
   ============================================================ */

/* Ces elements n'existent qu'a l'ecran etroit */
.abar, .sheet-head { display: none; }

/* Page introuvable (content.php) — mise en page neutre, tous ecrans */
.nf-wrap { text-align: center; max-width: 560px; margin: 0 auto; padding: 1.5rem 0 2rem; }
.nf-code {
    display: inline-flex; align-items: center; justify-content: center;
    width: 72px; height: 72px; border-radius: 20px; margin-bottom: 1rem;
    background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em;
}
.nf-wrap h1 { margin-bottom: .5rem; }
.nf-wrap p { margin: 0 auto; max-width: 40ch; }
.nf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.5rem; }
.legal .nf-actions .btn { text-decoration: none; }
.legal .nf-actions .btn-brand { color: #fff; }
.legal .nf-actions .btn-white { color: var(--text-s); }

@media (max-width: 768px) {
    /* ── Header : le burger prend le relais des 768 px ─────────── */
    .nav-center, .nav-right { display: none; }
    .nav { height: 52px; transition: box-shadow .2s; }
    .nav.is-scrolled { box-shadow: 0 2px 14px rgba(0,0,0,.08); }
    .logo-img { height: 28px; }
    .nav-burger {
        display: flex; align-items: center; justify-content: center;
        width: 44px; height: 44px; padding: 0; margin-inline-end: -8px;
        border-radius: 10px; -webkit-tap-highlight-color: transparent;
    }
    .nav-burger:active { background: var(--bg); }

    /* ── Barre d'onglets ───────────────────────────────────────── */
    body.has-abar { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important; }
    .abar {
        display: flex; align-items: stretch; justify-content: space-around;
        position: fixed; inset-inline: 0; bottom: 0; z-index: 150;
        height: calc(60px + env(safe-area-inset-bottom, 0px));
        padding: 0 .25rem env(safe-area-inset-bottom, 0px);
        background: rgba(255,255,255,.96);
        -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
        border-top: 1px solid var(--border);
        box-shadow: 0 -6px 24px rgba(0,0,0,.06);
        transition: transform .22s ease;
    }
    html.kb-open .abar { transform: translateY(110%); }
    .abar-item {
        flex: 1 1 0; min-width: 0; position: relative;
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
        padding-top: 3px; font-size: .7rem; font-weight: 600; color: var(--text-m);
        -webkit-tap-highlight-color: transparent;
    }
    .abar-item svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
    .abar-item > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .abar-item.is-active { color: var(--brand); }
    .abar-item.is-active::before {
        content: ''; position: absolute; top: 0; left: 50%; width: 28px; height: 3px; margin-left: -14px;
        border-radius: 0 0 3px 3px; background: var(--brand);
    }
    .abar-item:active { color: var(--text); }
    .abar-cta { color: var(--brand); }
    .abar-cta-btn {
        display: flex; align-items: center; justify-content: center;
        width: 50px; height: 50px; border-radius: 50%; margin-top: -24px;
        background: linear-gradient(160deg, #17a34a 0%, var(--brand) 60%, var(--brand-h) 100%);
        color: #fff; box-shadow: 0 8px 22px rgba(11,122,62,.42), 0 0 0 4px #fff;
        transition: transform .15s;
    }
    .abar-cta-btn svg { width: 24px; height: 24px; stroke: #fff; stroke-width: 2.4; }
    .abar-cta:active .abar-cta-btn { transform: scale(.94); }
    /* Les barres collees d'accueil et de pays sont remplacees par l'onglet Commander */
    .page-home .hm-sticky, .page-country .pc-sticky { display: none !important; }

    /* ── Tactile : pas de halo, pas de delai, retour a la pression ── */
    a, button, [role="button"], input, select, textarea, label, summary { touch-action: manipulation; }
    .btn, .loc-card, .ic-card, .related-card, .other-card, .all-loc-link, .faq-q, .mm-link, .nav-item,
    .dur-pill, .plan-btn, .cselect-opt, .crselect-opt, .cs-option, .buy-list-item, .buy-dur, .buy-plan, .tu-amt { -webkit-tap-highlight-color: transparent; }
    .btn { min-height: 44px; }
    .btn-sm { min-height: 40px; }

    /* ── Anti-zoom iOS : tout champ a 16 px minimum ────────────── */
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]), select, textarea { font-size: 16px !important; }

    /* ── Menu tiroir ───────────────────────────────────────────── */
    .mm-panel { width: 320px; max-width: 88vw; }
    [dir="rtl"] .mm-panel { right: auto; left: 0; transform: translateX(-100%); box-shadow: 4px 0 24px rgba(0,0,0,.1); }
    [dir="rtl"] .mm-panel.open { transform: translateX(0); }
    .mm-header { padding: .75rem 1rem .75rem 1.25rem; }
    .mm-close { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; }
    .mm-link { padding: .95rem 1.25rem; font-size: 1rem; }
    .mm-sub { font-size: .875rem; }
    .mm-label { font-size: .7rem; }
    .mm-lang { font-size: .7rem; padding: .55rem .2rem; min-height: 52px; justify-content: center; }
    .mm-lang .fi { font-size: 1.15rem; }
    .mm-actions { padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); }

    /* ── Fil d'Ariane : cibles plus hautes ─────────────────────── */
    .ch-crumb a, .pc-crumb a, .ch-crumb strong, .pc-crumb strong { display: inline-flex; align-items: center; min-height: 34px; }
    .page-content .ch-crumb, .page-country .pc-crumb { gap: .15rem; margin-bottom: 1rem; }

    /* ── Configurateur (accueil + pays) ────────────────────────── */
    .config { border-radius: 16px; }
    .cfg-label { font-size: .74rem; }
    .cselect-trigger, .crselect-trigger { height: 48px; font-size: .9rem; border-radius: 10px; }
    .cselect-flag .fi { font-size: 1.35rem; }
    .cr-tech { font-size: .66rem; padding: .15rem .35rem; }
    .plan-btn { padding: .8rem .5rem; }
    .plan-name { font-size: .9rem; }
    .plan-sub { font-size: .72rem; }
    .dur-pill { min-height: 48px; font-size: .85rem; border-radius: 10px; }
    .carrier-info { font-size: .8rem; padding: .6rem .8rem; }
    .price-value { font-size: 1.9rem; }
    .config-cta .btn { height: 50px; font-size: 1rem; border-radius: 12px; }
    .config-note { font-size: .74rem; }
    [dir="rtl"] .price-value { direction: ltr; unicode-bidi: isolate; }

    /* Feuilles basses : pays et operateur. main.js pose/retire .open ;
       la geometrie change ici, le comportement ne change pas. */
    .cselect.open::before, .crselect.open::before {
        content: ''; position: fixed; inset: 0; z-index: 398;
        background: rgba(8,12,10,.55); animation: sheetFade .2s ease-out;
    }
    .cselect.open .cselect-dropdown, .crselect.open .crselect-dropdown {
        position: fixed; top: auto !important; bottom: 0 !important; left: 0; right: 0; z-index: 399;
        display: flex; flex-direction: column;
        max-height: 82vh; max-height: 82dvh;
        border: 0; border-radius: 20px 20px 0 0;
        box-shadow: 0 -16px 48px rgba(0,0,0,.28);
        padding-bottom: max(env(safe-area-inset-bottom, 0px), 10px);
        animation: sheetUp .26s cubic-bezier(.2,.8,.2,1);
    }
    .cselect-search-wrap { padding: .35rem 1rem .75rem; flex-shrink: 0; }
    .cselect-search { height: 46px; padding: 0 .9rem; border-radius: 12px; }
    .cselect-list, .crselect-list { max-height: none; flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: .5rem .75rem; }
    .cselect-group { padding: .7rem .5rem .3rem; font-size: .68rem; }
    .cselect-opt, .crselect-opt { min-height: 54px; padding: .75rem; border-radius: 12px; font-size: .95rem; gap: .75rem; }
    .cselect-opt .fi { font-size: 1.5rem; border-radius: 3px; }
    .cselect-opt-price, .crselect-opt .cr-price, .crselect-opt .cr-speed { font-size: .78rem; }
    .crselect-opt .cr-icon, .crselect-opt .cr-icon-fb { width: 28px !important; height: 28px !important; }

    /* En-tete de feuille injecte par js/app-mobile.js : poignee, titre, croix */
    .sheet-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; position: relative; flex-shrink: 0; padding: 1rem 1rem .5rem; }
    .sheet-head::before { content: ''; position: absolute; top: 7px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--border-h); }
    .sheet-head strong { font-size: 1rem; font-weight: 700; color: var(--text); padding-top: .35rem; }
    .sheet-x {
        width: 36px; height: 36px; margin-top: .3rem; border-radius: 50%; border: 0; flex-shrink: 0;
        background: var(--bg); color: var(--text-m); font-size: 1.4rem; line-height: 1; cursor: pointer;
        display: flex; align-items: center; justify-content: center;
    }
    .sheet-x:active { background: var(--border); }
    @keyframes sheetUp { from { transform: translateY(48px); opacity: .5; } to { transform: none; opacity: 1; } }
    @keyframes sheetFade { from { opacity: 0; } to { opacity: 1; } }
    html.sheet-lock, html.sheet-lock body { overflow: hidden; }

    /* Selecteur crypto (includes/crypto_select.php emet son propre <style>
       apres style.css : on gagne par la specificite, et par !important sur
       les positions que son script pose en ligne). */
    .cs-wrap.cs-open::before { content: ''; position: fixed; inset: 0; z-index: 398; background: rgba(8,12,10,.55); animation: sheetFade .2s ease-out; }
    .cs-wrap.cs-open .cs-panel {
        position: fixed; top: auto !important; bottom: 0 !important; left: 0; right: 0; z-index: 399;
        max-height: 82vh; max-height: 82dvh;
        border: 0; border-radius: 20px 20px 0 0;
        box-shadow: 0 -16px 48px rgba(0,0,0,.28);
        padding-bottom: max(env(safe-area-inset-bottom, 0px), 10px);
        animation: sheetUp .26s cubic-bezier(.2,.8,.2,1);
    }
    .cs-wrap .cs-trigger { min-height: 48px; font-size: 15px; border-radius: 10px; }
    .cs-wrap .cs-search-wrap { padding: .35rem 1rem .75rem; }
    .cs-wrap .cs-search { height: 46px; border-radius: 12px; padding-left: 40px; }
    .cs-wrap .cs-search-icon { left: 14px; }
    .cs-wrap .cs-list { padding: .5rem .75rem; }
    .cs-wrap .cs-option { min-height: 54px; padding: .75rem; border-radius: 12px; font-size: .95rem; }
    .cs-wrap .cs-option-icon { width: 28px; height: 28px; }
    [dir="rtl"] .cs-wrap .cs-search { padding-left: 12px; padding-right: 40px; }
    [dir="rtl"] .cs-wrap .cs-search-icon { left: auto; right: 14px; }

    /* ── Pied de page : 2 colonnes, cibles de 40 px ────────────── */
    .footer { padding: 2rem 0 1.25rem; }
    .footer-grid, .page-home .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; margin-bottom: 1.25rem; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-brand p { max-width: none; }
    .footer-heading { font-size: .7rem; margin-bottom: .35rem; }
    .footer-links { gap: 0; }
    .footer-links a { display: flex; align-items: center; min-height: 40px; font-size: .85rem; color: rgba(255,255,255,.62); }
    .footer-bottom { font-size: .75rem; padding-top: 1.1rem; }
    .footer-payments span { font-size: .72rem; padding: .3rem .6rem; }

    /* ── Pages editoriales (content.php) ───────────────────────── */
    .page-content .art-toc.is-collapsible { padding: 0; overflow: hidden; }
    .page-content .art-toc.is-collapsible .art-toc-title {
        display: flex; align-items: center; justify-content: space-between; gap: 1rem;
        min-height: 50px; margin: 0; padding: 0 1.1rem; font-size: .74rem; cursor: pointer;
        -webkit-tap-highlight-color: transparent; user-select: none;
    }
    .page-content .art-toc.is-collapsible .art-toc-title::after {
        content: ''; width: 9px; height: 9px; flex-shrink: 0; margin-top: -5px;
        border-right: 2px solid var(--text-l); border-bottom: 2px solid var(--text-l);
        transform: rotate(45deg); transition: transform .2s, margin .2s;
    }
    .page-content .art-toc.is-collapsible.is-open .art-toc-title::after { transform: rotate(225deg); margin-top: 5px; }
    .page-content .art-toc.is-collapsible ul { display: none; padding: 0 .55rem .8rem; }
    .page-content .art-toc.is-collapsible.is-open ul { display: grid; }
    .page-content .art-toc a { min-height: 42px; display: flex; align-items: center; font-size: .88rem; }
    .page-content .ic-card h3 { margin-top: 0; }
    .page-content a.ic-card::after { top: 1.4rem; }
    .page-content .art-section { margin-bottom: 2.5rem; }
    .page-content .art-lead { padding: 1.1rem 1.15rem; margin-bottom: 2rem; }
    .page-content .stat { padding: 1.1rem .8rem 1rem; }
    .page-content .stat-val { font-size: 1.8rem; }
    .page-content .faq-q { min-height: 52px; }
    .page-content .related-card { min-height: 52px; }
    .page-content .cta-band { padding: 2.25rem 0; }
    .page-content .cta-band .btn { width: 100%; }
    .page-content .codeblock pre { padding: .9rem 1rem; }
    .page-content .codeblock code { white-space: pre-wrap; word-break: break-word; font-size: .8rem; }
    .page-content .code-label { font-size: .72rem; }
    .page-content .art-toc-title { font-size: .72rem; }

    /* ── Pages pays ────────────────────────────────────────────── */
    .page-country .all-loc-link { min-height: 44px; padding: .55rem .85rem; }
    .page-country .other-card { min-height: 48px; }
    .page-country .pc-ed-aside { max-width: none; }
    .page-country .pc-order-card .btn { min-height: 48px; }

    /* ── Espace client (account.php pose body.page-account) ────── */
    body.page-account .acct-mobar { top: 52px; height: 50px; padding: 8px 12px; }
    body.page-account .acct-mobar-burger { width: 40px; height: 40px; }
    body.page-account .acct-mobar-bal { min-height: 38px; font-size: 14px; }
    body.page-account .acct-main > h1 { display: none; }
    body.page-account .acct-main { padding: 12px 14px 28px; min-height: 0; }
    body.page-account .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
    body.page-account .stat-c { padding: 10px; border-radius: 12px; }
    body.page-account .stat-c .stat-lbl { font-size: 9.5px; letter-spacing: .3px; }
    body.page-account .stat-c .stat-val { font-size: 19px; }
    body.page-account .card { padding: 14px; border-radius: 12px; }
    body.page-account .acct-sidebar { padding-bottom: env(safe-area-inset-bottom, 0px); }
    body.page-account .user-card .bal { font-size: 26px; }
    body.page-account .topup-btn { min-height: 44px; }
    body.page-account .tu-amt { min-height: 56px; }
    body.page-account .tu-step-btn { width: 48px; }
    body.page-account .tu-cta, body.page-account .pw-open { min-height: 50px; }
    body.page-account .empty { padding: 26px 12px; }
    /* Le grand pied marketing n'a pas sa place dans l'espace client : on garde la ligne legale */
    body.page-account .footer .footer-grid, body.page-account .footer > .wrap > div[style] { display: none; }
    body.page-account .footer { padding: 1rem 0 .75rem; }
    body.page-account .footer-bottom { margin-top: 0; padding-top: 0; border-top: 0; }
    /* Achat en compte (js/account-buy.js injecte ses styles dans #buyConfig) */
    #buyConfig .buy-select { min-height: 48px; border-radius: 10px; }
    #buyConfig .buy-plan { min-height: 60px; border-radius: 10px; }
    #buyConfig .buy-durs { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    #buyConfig .buy-dur { min-height: 56px; border-radius: 10px; font-size: 13.5px; }
    #buyConfig .buy-cta { min-height: 50px; }
    #buyConfig .buy-field:has(.buy-list.open)::before { content: ''; position: fixed; inset: 0; z-index: 398; background: rgba(8,12,10,.55); animation: sheetFade .2s ease-out; }
    #buyConfig .buy-list.open {
        position: fixed; top: auto; bottom: 0; left: 0; right: 0; z-index: 399;
        max-height: 82vh; max-height: 82dvh;
        border: 0; border-radius: 20px 20px 0 0;
        box-shadow: 0 -16px 48px rgba(0,0,0,.28);
        padding: 0 .75rem max(env(safe-area-inset-bottom, 0px), 10px);
        overflow-y: auto; -webkit-overflow-scrolling: touch;
        animation: sheetUp .26s cubic-bezier(.2,.8,.2,1);
    }
    #buyConfig .buy-list.open::before { content: ''; display: block; width: 40px; height: 4px; margin: 8px auto 10px; border-radius: 2px; background: var(--border-h); }
    #buyConfig .buy-search { position: sticky; top: 0; z-index: 1; height: 46px; margin: 0 0 .5rem; padding: 0 .9rem; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
    #buyConfig .buy-list-item { min-height: 54px; padding: .75rem; border-radius: 12px; border-bottom: 0; font-size: .95rem; }

    /* ── Connexion / inscription ───────────────────────────────── */
    .auth-page { padding: 20px 12px 28px; min-height: 0; }
    .auth-wrap { padding: 22px 18px; border-radius: 16px; }
    .auth-tabs a { min-height: 42px; display: flex; align-items: center; justify-content: center; }
    .auth-field input { min-height: 48px; border-radius: 10px; }
    .auth-cta { min-height: 50px; border-radius: 10px; font-size: 15px; }
    .auth-foot small { font-size: 11.5px; }

    /* ── Commande / paiement ───────────────────────────────────── */
    .pay-grid { display: flex; flex-direction: column; }
    .pay-crypto-col { order: -1; }
    .pay-copy-btn { min-height: 40px; padding: 0 .9rem; font-size: .78rem; }
    .pay-copybox code { user-select: all; -webkit-user-select: all; }
    .order-card { border-radius: 14px; }
    .cred-row { gap: .35rem; }
    .cred-row code { display: block; width: 100%; padding: .55rem .65rem; font-size: .9rem; user-select: all; -webkit-user-select: all; }
    .order-section > .btn { width: 100%; }

    /* ── Pages legales ─────────────────────────────────────────── */
    .legal { padding: 1.75rem 0 2.5rem; }
    .legal h1 { font-size: 1.5rem; }
    .legal-updated { margin-bottom: 1.5rem; padding-bottom: 1rem; }
    .legal p, .legal ul li { font-size: .92rem; line-height: 1.7; }

    /* ── Retour a la pression (ecrans sans souris) ─────────────── */
    @media (hover: none) {
        .btn:active { transform: scale(.98); }
        a.ic-card:active, .loc-card:active, .related-card:active, .other-card:active, .all-loc-link:active { background: var(--bg-alt); }
        .faq-q:active { color: var(--brand); }
    }
}

/* ── Tableaux en cartes (class .tb-cards posee par js/app-mobile.js) ── */
@media (max-width: 640px) {
    table.tb-cards { display: block; width: 100%; min-width: 0 !important; border-collapse: separate; table-layout: auto; }
    table.tb-cards thead { display: none; }
    table.tb-cards tbody { display: grid; gap: .6rem; }
    table.tb-cards tbody tr {
        display: block; padding: .85rem 1rem .65rem;
        border: 1px solid var(--border); border-radius: 12px;
        background: var(--surface) !important; box-shadow: var(--shadow-xs);
    }
    table.tb-cards tbody tr > th {
        display: block; padding: 0 0 .55rem; margin-bottom: .45rem; border: 0;
        border-bottom: 1px solid var(--border); background: none;
        font-size: .95rem; font-weight: 700; color: var(--text); text-align: start; text-transform: none; letter-spacing: 0;
    }
    table.tb-cards tbody tr > td {
        display: grid; grid-template-columns: minmax(92px, 34%) minmax(0, 1fr); gap: .5rem; align-items: start;
        padding: .3rem 0; border: 0; font-size: .85rem; line-height: 1.5; text-align: start; background: none !important;
    }
    table.tb-cards tbody tr > td::before {
        content: attr(data-th); font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
        color: var(--text-l); padding-top: .2rem;
    }
    table.tb-cards tbody tr > td[data-th=""], table.tb-cards tbody tr > td[colspan] { grid-template-columns: minmax(0, 1fr); }
    table.tb-cards tbody tr > td[data-th=""]::before, table.tb-cards tbody tr > td[colspan]::before { display: none; }
    table.tb-cards tbody tr > td[data-th=""] a { display: inline-flex; align-items: center; min-height: 40px; }
    table.tb-cards .best { border-radius: 6px; padding-inline: .35rem; }
    .cmp-wrap.has-cards { border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
    .page-content .cmp-wrap.has-cards { box-shadow: none; }
    .page-content .cmp-table.tb-cards tbody tr:nth-child(even), .page-content .cmp-table.tb-cards tbody tr:hover { background: var(--surface); }
    /* Historiques de l'espace client */
    body.page-account table.tbl.tb-cards td code { font-size: 12px !important; }
    body.page-account table.tbl.tb-cards tr.row-err-banner td { padding: .5rem 0 0; }
}

@media (max-width: 380px) {
    .abar-item { font-size: .64rem; }
    .abar-cta-btn { width: 46px; height: 46px; margin-top: -20px; }
    .cselect-opt, .crselect-opt, .cs-wrap .cs-option { font-size: .9rem; }
    body.page-account .stat-c .stat-val { font-size: 17px; }
}
