/* ==========================================================================
   iSamaTech — système de design
   Couleurs extraites du logo (orange #E83A00), gris de la mascotte, anthracite
   des baies serveurs et ambre des voyants. Contrastes vérifiés (WCAG AA) :
   --brand-600 sur blanc 5,4:1 · --ink-muted sur blanc 6,2:1 · --accent-on-dark 6,9:1.
   ========================================================================== */

@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    /* Marque */
    --brand-50: #fff4ee;
    --brand-100: #ffe5d8;
    --brand-200: #ffc8ae;
    --brand-400: #ff6a2b;
    --brand-500: #e83a00;
    --brand-600: #c73400;
    --brand-700: #9a2800;
    --accent-on-dark: #ff7a45;
    --amber: #f2b33d;
    --elephant: #8e9199;

    /* Encre et surfaces */
    --ink: #14171c;
    --ink-2: #2b3038;
    --ink-muted: #5b6170;
    --ink-subtle: #8a909c;
    --line: #e7e8eb;
    --line-strong: #d3d5da;
    --surface: #ffffff;
    --surface-2: #f6f7f8;
    --surface-warm: #fff8f3;
    --night: #14171c;
    --night-2: #1d2128;
    --night-3: #2a2f38;
    --night-line: #343a45;
    --night-text: #c9ccd3;

    /* États */
    --success: #17784a;
    --success-bg: #e7f6ee;
    --warning: #8a5a00;
    --warning-bg: #fff4d6;
    --danger: #b42318;
    --danger-bg: #fdecea;
    --info: #1d5bb8;
    --info-bg: #e8f0fc;

    /* Typographie */
    --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --fs-xs: .78rem;
    --fs-sm: .875rem;
    --fs-base: 1rem;
    --fs-md: 1.125rem;
    --fs-lg: 1.375rem;
    --fs-xl: clamp(1.6rem, 1.2rem + 1.4vw, 2.15rem);
    --fs-2xl: clamp(2rem, 1.4rem + 2.4vw, 3rem);
    --fs-3xl: clamp(2.4rem, 1.5rem + 3.6vw, 3.9rem);

    /* Rythme */
    --space-1: .25rem;
    --space-2: .5rem;
    --space-3: .75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4.5rem;
    --space-9: 6.5rem;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-pill: 999px;
    --shadow-sm: 0 1px 2px rgba(20, 23, 28, .06);
    --shadow: 0 1px 2px rgba(20, 23, 28, .05), 0 8px 24px -12px rgba(20, 23, 28, .18);
    --shadow-lg: 0 2px 4px rgba(20, 23, 28, .04), 0 24px 48px -20px rgba(20, 23, 28, .28);
    --focus: 0 0 0 3px #fff, 0 0 0 5px var(--brand-600);
    --container: 1180px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --header-h: 72px;
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    font-family: var(--font);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--ink);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0 0 var(--space-3); line-height: 1.15; letter-spacing: -.02em; font-weight: 750; color: var(--ink); }
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-md); letter-spacing: -.01em; }
p { margin: 0 0 var(--space-4); }
a { color: var(--brand-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-700); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
::selection { background: var(--brand-200); color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-6) 0; }
code, kbd { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 5px; }
small { font-size: var(--fs-sm); }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }

.skip-link {
    position: absolute; left: var(--space-4); top: -60px; z-index: 200;
    background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm); text-decoration: none;
}
.skip-link:focus { top: var(--space-3); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 1em; height: 1em; }
.icon--lg { width: 1.6rem; height: 1.6rem; }

/* ------------------------------------------------------------------ mise en page */

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2rem, 760px); margin-inline: auto; }
.section { padding-block: var(--space-8); }
.section--tight { padding-block: var(--space-7); }
.section--warm { background: var(--surface-warm); }
.section--gray { background: var(--surface-2); }
.section--night { background: var(--night); color: var(--night-text); }
.section--night h2, .section--night h3 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: var(--space-6); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-muted); font-size: var(--fs-md); }
.section--night .section-head p { color: var(--night-text); }
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--brand-600); margin-bottom: var(--space-3);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.section--night .eyebrow { color: var(--accent-on-dark); }
.lead { font-size: var(--fs-md); color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.subtle { color: var(--ink-subtle); }

.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--space-7); align-items: center; }
.split--reverse > :first-child { order: 2; }
.stack > * + * { margin-top: var(--space-4); }
.stack-sm > * + * { margin-top: var(--space-2); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-4 { margin-top: var(--space-4); } .mt-5 { margin-top: var(--space-5); } .mt-6 { margin-top: var(--space-6); }
.text-center { text-align: center; }

@media (max-width: 960px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split { grid-template-columns: 1fr; gap: var(--space-6); }
    .split--reverse > :first-child { order: 0; }
}
@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .section { padding-block: var(--space-7); }
}

/* ------------------------------------------------------------------ boutons */

.btn {
    --btn-bg: var(--brand-600); --btn-fg: #fff; --btn-border: transparent;
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 44px; padding: .65rem 1.2rem;
    font: inherit; font-weight: 650; font-size: var(--fs-sm); line-height: 1.2; letter-spacing: .005em;
    color: var(--btn-fg); background: var(--btn-bg); border: 1px solid var(--btn-border); border-radius: var(--radius-sm);
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { --btn-bg: var(--brand-700); color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 52px; padding: .85rem 1.55rem; font-size: var(--fs-base); }
.btn--sm { min-height: 36px; padding: .45rem .85rem; font-size: var(--fs-xs); }
.btn--block { width: 100%; }
.btn--secondary { --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-border: var(--line-strong); }
.btn--secondary:hover { --btn-bg: var(--surface-2); --btn-fg: var(--ink); --btn-border: var(--ink-subtle); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink-2); }
.btn--ghost:hover { --btn-bg: var(--surface-2); --btn-fg: var(--ink); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn--dark:hover { --btn-bg: var(--night-3); }
.btn--danger { --btn-bg: var(--danger); }
.btn--danger:hover { --btn-bg: #8f1c13; }
.btn--on-dark { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--on-dark:hover { --btn-bg: var(--brand-50); --btn-fg: var(--ink); }
.btn--outline-dark { --btn-bg: transparent; --btn-fg: #fff; --btn-border: var(--night-line); }
.btn--outline-dark:hover { --btn-bg: var(--night-2); --btn-fg: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
    content: ""; position: absolute; width: 1.1em; height: 1.1em; border-radius: 50%;
    border: 2px solid var(--btn-fg); border-right-color: transparent; animation: spin .7s linear infinite;
}
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 650; text-decoration: none; }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ en-tête */

.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; gap: var(--space-5); }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); flex: none; }
.brand img { height: 34px; width: auto; }
.brand__name { font-size: 1.22rem; font-weight: 800; letter-spacing: -.03em; }
.brand__name span { color: var(--brand-500); }
.nav { display: flex; align-items: center; gap: var(--space-1); margin-left: auto; }
.nav__link, .nav__trigger {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .5rem .75rem; border-radius: var(--radius-sm);
    color: var(--ink-2); font-weight: 600; font-size: var(--fs-sm); text-decoration: none;
    background: none; border: 0; font-family: inherit; cursor: pointer;
}
.nav__link:hover, .nav__trigger:hover, .nav__item.is-open > .nav__trigger { background: var(--surface-2); color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--brand-600); }
.nav__item { position: relative; }
.nav__trigger .icon { width: 1rem; height: 1rem; transition: transform .2s; }
.nav__item.is-open > .nav__trigger .icon { transform: rotate(180deg); }
.mega {
    position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
    width: min(640px, 90vw); padding: var(--space-4);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-1);
    opacity: 0; visibility: hidden; translate: 0 6px; transition: opacity .18s var(--ease), translate .18s var(--ease), visibility .18s;
}
.nav__item.is-open > .mega { opacity: 1; visibility: visible; translate: 0 0; }
.mega__link { display: flex; gap: .8rem; padding: .75rem; border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.mega__link:hover { background: var(--surface-warm); color: var(--ink); }
.mega__icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--brand-50); color: var(--brand-600); }
.mega__title { display: block; font-weight: 650; font-size: var(--fs-sm); }
.mega__desc { display: block; font-size: var(--fs-xs); color: var(--ink-muted); line-height: 1.45; }
.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.lang-switch {
    display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .6rem; border-radius: var(--radius-sm);
    font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; color: var(--ink-2); text-decoration: none; border: 1px solid var(--line);
}
.lang-flag { width: 22px; height: 15px; flex: none; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.lang-switch:hover { border-color: var(--line-strong); color: var(--ink); background: var(--surface-2); }
.menu-toggle { display: none; width: 48px; height: 48px; flex: none; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.menu-toggle .icon { width: 26px; height: 26px; }
.menu-toggle__close, .menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }
.menu-toggle[aria-expanded="true"] { background: var(--brand-50); border-color: var(--brand-200, var(--line)); color: var(--brand-700); }
.nav__icon, .nav__link--mobile, .nav__footer, .header-avatar { display: none; }
.header-avatar { flex: none; border-radius: 50%; text-decoration: none; }
.header-avatar__img { width: 44px; height: 44px; font-size: var(--fs-sm); border: 2px solid var(--brand-500); }
.header-avatar__img--guest { background: var(--brand-50); color: var(--brand-600); }
.header-avatar__img--guest .icon { width: 24px; height: 24px; }
.header-avatar:hover .header-avatar__img, .header-avatar:focus-visible .header-avatar__img { background: var(--brand-500); color: #fff; }

@media (max-width: 1080px) {
    .site-header__inner { gap: var(--space-3); }
    .menu-toggle { display: inline-flex; }
    .header-actions { margin-left: auto; }
    .header-avatar { display: inline-flex; }
    .nav {
        position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 99;
        height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
        display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: var(--space-3); margin: 0;
        padding: var(--space-4) var(--space-4) var(--space-5);
        background: var(--surface-warm, var(--surface)); overflow-y: auto; overscroll-behavior: contain;
        opacity: 0; visibility: hidden; translate: -16px 0; transition: opacity .2s, visibility .2s, translate .2s var(--ease);
    }
    .nav.is-open { opacity: 1; visibility: visible; translate: 0 0; }
    .nav__link, .nav__link--mobile {
        display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .55rem;
        min-height: 92px; padding: var(--space-3) var(--space-4); white-space: normal; line-height: 1.25;
        font-size: var(--fs-sm); font-weight: 700; color: var(--ink);
        background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    }
    .nav__link:hover, .nav__link[aria-current="page"] { background: var(--brand-50); border-color: var(--brand-500); color: var(--brand-700); }
    .nav__icon { display: grid; place-items: center; width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: var(--brand-50); color: var(--brand-600); }
    .nav__link--cta, .nav__link--cta:hover { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
    .nav__link--cta .nav__icon { background: rgba(255, 255, 255, .18); color: #fff; }
    .nav__footer { grid-column: 1 / -1; display: grid; gap: var(--space-3); margin-top: var(--space-2); }
    .nav__lang { justify-content: center; padding: .7rem; font-size: var(--fs-sm); background: var(--surface); }
    .header-actions .btn--secondary, .header-actions .btn--cta { display: none; }
    body.menu-open { overflow: hidden; }
}
@media (max-width: 520px) {
    .site-header__inner { gap: .6rem; }
    .header-actions { gap: .4rem; }
    .header-actions .lang-switch { padding: .4rem .45rem; gap: .3rem; }
    .menu-toggle { width: 44px; height: 44px; }
    .header-avatar__img { width: 40px; height: 40px; }
    .brand { gap: .35rem; min-width: 0; }
    .brand img { height: 26px; }
    .brand__name { font-size: .95rem; }
}
@media (max-width: 389px) {
    .brand img { display: none; }
}
@media (max-width: 359px) {
    .header-actions .lang-switch { font-size: 0; gap: 0; }
}
}

/* ------------------------------------------------------------------ héros */

.hero { position: relative; overflow: hidden; background: var(--surface-warm); padding: var(--space-8) 0 var(--space-8); }
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 44px 44px; opacity: .45;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
}
.hero > .container { position: relative; }
.hero h1 { font-size: var(--fs-3xl); line-height: 1.04; letter-spacing: -.035em; max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--brand-500); }
.hero .lead { max-width: 52ch; margin-top: var(--space-4); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hero__visual { position: relative; }
.hero__visual .mascot img { width: 100%; max-width: 540px; margin-inline: auto; }
.hero__badge {
    position: absolute; display: flex; align-items: center; gap: .6rem;
    padding: .65rem .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); font-size: var(--fs-xs); font-weight: 650; color: var(--ink-2);
}
.hero__badge .icon { color: var(--brand-600); }
.hero__badge--a { left: 0; bottom: 14%; }
.hero__badge--b { right: 2%; top: 8%; }
.hero--compact { padding: var(--space-7) 0; }
.hero--compact h1 { font-size: var(--fs-2xl); max-width: 20ch; }
.trust-row { display: flex; flex-wrap: wrap; gap: var(--space-5); margin-top: var(--space-6); color: var(--ink-muted); font-size: var(--fs-sm); }
.trust-row span { display: inline-flex; align-items: center; gap: .45rem; }
.trust-row .icon { color: var(--success); }
@media (max-width: 960px) {
    .hero { padding: var(--space-7) 0; }
    .hero__visual { max-width: 460px; margin-inline: auto; }
    .hero__badge { display: none; }
}

.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; font-size: var(--fs-xs); color: var(--ink-muted); margin-bottom: var(--space-4); padding: 0; list-style: none; }
.breadcrumb a { color: var(--ink-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-600); }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--ink-subtle); }

/* ------------------------------------------------------------------ cartes */

.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: var(--space-5); box-shadow: var(--shadow-sm);
}
.card--flat { box-shadow: none; }
.card--pad-lg { padding: var(--space-6); }
.card__title { font-size: var(--fs-md); margin-bottom: var(--space-2); }
.card-link { display: block; text-decoration: none; color: inherit; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.card-link:hover { color: inherit; border-color: var(--brand-200); box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-50); color: var(--brand-600); margin-bottom: var(--space-4); }
.feature-icon .icon { width: 24px; height: 24px; }
.section--night .card { background: var(--night-2); border-color: var(--night-line); color: var(--night-text); box-shadow: none; }
.section--night .feature-icon { background: rgba(255, 122, 69, .12); color: var(--accent-on-dark); }

.service-card { display: flex; flex-direction: column; height: 100%; }
.service-card p { color: var(--ink-muted); font-size: var(--fs-sm); flex: 1; }
.service-card .link-arrow { margin-top: var(--space-3); font-size: var(--fs-sm); }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-2); }
.check-list li .icon { color: var(--success); margin-top: .15rem; width: 1.05rem; height: 1.05rem; }
.check-list--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-5); }
.section--night .check-list li { color: var(--night-text); }
.section--night .check-list li .icon { color: var(--accent-on-dark); }
@media (max-width: 640px) { .check-list--cols { grid-template-columns: 1fr; } }

/* Valeurs (animaux emblématiques de l'ancien site) */
.value { padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.value__kicker { font-size: var(--fs-xs); font-weight: 700; color: var(--brand-600); text-transform: uppercase; letter-spacing: .1em; }
.value h3 { margin-top: var(--space-2); }
.value p { color: var(--ink-muted); font-size: var(--fs-sm); margin: 0; }

/* Étapes */
.steps { counter-reset: step; display: grid; gap: var(--space-4); grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.steps li::before {
    counter-increment: step; content: counter(step, decimal-leading-zero);
    display: block; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .1em; color: var(--brand-600); margin-bottom: var(--space-3);
}
.steps h3 { font-size: var(--fs-base); }
.steps p { font-size: var(--fs-sm); color: var(--ink-muted); margin: 0; }
.section--night .steps li { background: var(--night-2); border-color: var(--night-line); }
.section--night .steps li::before { color: var(--accent-on-dark); }
.section--night .steps p { color: var(--night-text); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Témoignages */
.quote { display: flex; flex-direction: column; gap: var(--space-4); height: 100%; }
.quote blockquote { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); flex: 1; }
.quote blockquote::before { content: "“"; display: block; font-size: 2.6rem; line-height: .8; color: var(--brand-500); font-weight: 800; }
.quote figcaption { font-size: var(--fs-sm); }
.quote figcaption strong { display: block; color: var(--ink); }
.quote figcaption span { color: var(--ink-muted); font-size: var(--fs-xs); }

/* ------------------------------------------------------------------ tarifs */

.pricing { display: grid; gap: var(--space-5); grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: var(--space-6) var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.price-card--featured { border: 2px solid var(--brand-500); box-shadow: var(--shadow-lg); }
.price-card__ribbon {
    position: absolute; top: -13px; left: var(--space-5); padding: .2rem .7rem; border-radius: var(--radius-pill);
    background: var(--brand-600); color: #fff; font-size: var(--fs-xs); font-weight: 700;
}
.price-card__name { font-size: var(--fs-sm); font-weight: 700; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--space-1); }
.price-card__title { font-size: var(--fs-lg); margin-bottom: var(--space-4); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem; margin-bottom: var(--space-1); }
.price__amount { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.price__period { color: var(--ink-muted); font-size: var(--fs-sm); }
.price__alt { font-size: var(--fs-xs); color: var(--ink-muted); margin-bottom: var(--space-5); }
.price-card .check-list { margin-bottom: var(--space-5); flex: 1; }
.price-card .btn { margin-top: auto; }
.price-on-quote { font-size: 1.5rem; font-weight: 800; color: var(--ink); margin-bottom: var(--space-5); }
@media (max-width: 960px) { .pricing { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

.offer-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--space-6); align-items: start; }
.offer-card { position: sticky; top: calc(var(--header-h) + 20px); border: 2px solid var(--brand-500); border-radius: var(--radius-lg); background: var(--surface); padding: var(--space-6); box-shadow: var(--shadow-lg); }
.offer-card .price__amount { font-size: 2.6rem; }
@media (max-width: 960px) { .offer-hero { grid-template-columns: 1fr; } .offer-card { position: static; } }

.table-prices { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; border-collapse: separate; border-spacing: 0; }
.table-prices th, .table-prices td { padding: .9rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.table-prices thead th { background: var(--surface-2); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); }
.table-prices tbody tr:last-child td { border-bottom: 0; }
.table-prices td.num { font-variant-numeric: tabular-nums; font-weight: 650; }
.tld { font-weight: 800; color: var(--ink); }

/* ------------------------------------------------------------------ appels à l'action */

.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--night); color: var(--night-text); padding: var(--space-7); display: grid; grid-template-columns: 1fr auto; gap: var(--space-6); align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: var(--space-2); }
.cta-band p { margin: 0; max-width: 56ch; }
.cta-band .mascot img { width: 180px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: var(--space-6) var(--space-5); } .cta-band .mascot { display: none; } }

.ethic {
    display: flex; gap: var(--space-4); align-items: flex-start;
    padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand-500);
}
.ethic p { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }
.ethic .icon { color: var(--brand-600); width: 1.6rem; height: 1.6rem; }

/* ------------------------------------------------------------------ FAQ (accordéon natif) */

.faq { display: grid; gap: var(--space-3); }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .2s; }
.faq details[open] { border-color: var(--brand-200); }
.faq summary {
    list-style: none; cursor: pointer; padding: var(--space-4) var(--space-5); font-weight: 650;
    display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 500; color: var(--brand-600); transition: transform .2s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { border-radius: var(--radius); }
.faq .faq__answer { padding: 0 var(--space-5) var(--space-5); color: var(--ink-muted); }
.faq .faq__answer p:last-child { margin: 0; }

/* ------------------------------------------------------------------ formulaires */

.form { display: grid; gap: var(--space-4); }
.form-row { display: grid; gap: var(--space-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; }
.field > label, .label { font-size: var(--fs-sm); font-weight: 650; color: var(--ink-2); }
.field .hint { font-size: var(--fs-xs); color: var(--ink-muted); }
.field .optional { font-weight: 500; color: var(--ink-subtle); }
.input, .select, .textarea {
    width: 100%; min-height: 46px; padding: .65rem .85rem;
    font: inherit; font-size: var(--fs-base); color: var(--ink);
    background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 2.4rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235b6170' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-subtle); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(199, 52, 0, .16); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.field-error { display: flex; gap: .35rem; align-items: center; font-size: var(--fs-xs); font-weight: 600; color: var(--danger); }
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .select { width: auto; min-width: 120px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; border-left: 0; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--brand-600); flex: none; }
.choice-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice__box { display: block; padding: var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); transition: border-color .15s, box-shadow .15s, background .15s; }
.choice__title { display: block; font-weight: 700; font-size: var(--fs-sm); }
.choice__meta { display: block; font-size: var(--fs-xs); color: var(--ink-muted); }
.choice input:checked + .choice__box { border-color: var(--brand-600); background: var(--brand-50); box-shadow: 0 0 0 1px var(--brand-600) inset; }
.choice input:focus-visible + .choice__box { box-shadow: var(--focus); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-size: var(--fs-sm); font-weight: 650; color: var(--ink-2); margin-bottom: .5rem; padding: 0; }
.password-field { position: relative; }
.password-field .input { padding-right: 3rem; }
.password-toggle { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 40px; border: 0; background: none; border-radius: 6px; color: var(--ink-muted); cursor: pointer; display: grid; place-items: center; }
.password-toggle:hover { color: var(--ink); background: var(--surface-2); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.code-input { font-family: var(--mono); font-size: 1.4rem; letter-spacing: .4em; text-align: center; }

/* ------------------------------------------------------------------ alertes & notifications */

.alert { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; border-radius: var(--radius); font-size: var(--fs-sm); border: 1px solid transparent; }
.alert .icon { margin-top: .1rem; }
.alert p { margin: 0; }
.alert strong { display: block; }
.alert--success { background: var(--success-bg); color: #0f5132; border-color: #bfe5cf; }
.alert--error { background: var(--danger-bg); color: #8a1c12; border-color: #f5c6c2; }
.alert--warning { background: var(--warning-bg); color: #6b4500; border-color: #f2dc9c; }
.alert--info { background: var(--info-bg); color: #163f80; border-color: #c4d6f5; }
.flash-stack { position: fixed; z-index: 300; right: var(--space-4); top: calc(var(--header-h) + var(--space-3)); display: grid; gap: var(--space-2); width: min(420px, calc(100% - 2rem)); }
.flash-stack .alert { box-shadow: var(--shadow-lg); animation: toast-in .35s var(--ease); }
.alert__close { margin-left: auto; border: 0; background: none; color: inherit; opacity: .7; cursor: pointer; padding: 0 .2rem; font-size: 1.2rem; line-height: 1; }
.alert__close:hover { opacity: 1; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--success { background: var(--success-bg); color: var(--success); }
.badge--warning { background: var(--warning-bg); color: var(--warning); }
.badge--danger { background: var(--danger-bg); color: var(--danger); }
.badge--brand { background: var(--brand-600); color: #fff; }
.badge--info { background: var(--info-bg); color: var(--info); }
.badge--neutral { background: var(--surface-2); color: var(--ink-muted); }
.pill { display: inline-block; padding: .25rem .65rem; border-radius: var(--radius-pill); background: var(--brand-50); color: var(--brand-700); font-size: var(--fs-xs); font-weight: 700; }

/* ------------------------------------------------------------------ tableaux */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table th, .table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); vertical-align: middle; }
.table thead th { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); background: var(--surface-2); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fbfbfc; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table a { font-weight: 600; text-decoration: none; }
.table a:hover { text-decoration: underline; }
.table .actions { text-align: right; white-space: nowrap; }
.mono { font-family: var(--mono); font-size: .86em; }
.dl { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: .6rem var(--space-5); margin: 0; font-size: var(--fs-sm); }
.dl dt { color: var(--ink-muted); }
.dl dd { margin: 0; color: var(--ink); font-weight: 550; word-break: break-word; }
@media (max-width: 560px) { .dl { grid-template-columns: 1fr; gap: .15rem; } .dl dd { margin-bottom: .6rem; } }

.pagination { display: flex; gap: .35rem; justify-content: center; margin-top: var(--space-5); flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0 .6rem; border-radius: var(--radius-sm); border: 1px solid var(--line); font-size: var(--fs-sm); text-decoration: none; color: var(--ink-2); }
.pagination a:hover { background: var(--surface-2); }
.pagination .is-current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ------------------------------------------------------------------ états vides & chargement */

.empty { display: grid; justify-items: center; text-align: center; gap: var(--space-3); padding: var(--space-7) var(--space-5); }
.empty .mascot img { width: 150px; }
.empty h3 { margin: 0; }
.empty p { margin: 0; color: var(--ink-muted); max-width: 44ch; font-size: var(--fs-sm); }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, #eceef1 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 6px; min-height: 1em; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ------------------------------------------------------------------ fenêtre modale (<dialog>) */

dialog.modal { border: 0; padding: 0; border-radius: var(--radius-lg); width: min(520px, calc(100% - 2rem)); box-shadow: var(--shadow-lg); color: var(--ink); }
dialog.modal::backdrop { background: rgba(20, 23, 28, .55); backdrop-filter: blur(2px); }
dialog.modal[open] { animation: modal-in .22s var(--ease); }
.modal__body { padding: var(--space-6); }
.modal__body h2 { font-size: var(--fs-lg); }
.modal__actions { display: flex; justify-content: flex-end; gap: var(--space-3); margin-top: var(--space-5); flex-wrap: wrap; }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ pied de page */

.site-footer { background: var(--night); color: var(--night-text); padding: var(--space-8) 0 var(--space-5); font-size: var(--fs-sm); }
.site-footer a { color: var(--night-text); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-6); }
.footer-grid h2 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: var(--space-4); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-brand .brand { color: #fff; margin-bottom: var(--space-4); }
.footer-brand p { max-width: 36ch; }
.newsletter { display: flex; gap: var(--space-2); margin-top: var(--space-4); max-width: 420px; }
.newsletter .input { background: var(--night-2); border-color: var(--night-line); color: #fff; }
.newsletter .input::placeholder { color: #8f95a1; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--night-line); color: #9aa0ab; font-size: var(--fs-xs); }
.socials { display: flex; gap: var(--space-2); margin-top: var(--space-4); }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--night-line); }
.socials a:hover { background: var(--night-2); text-decoration: none; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } .newsletter { flex-direction: column; } }

.whatsapp-fab {
    position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 54px; height: 54px; border-radius: 50%;
    display: grid; place-items: center; background: #128c4a; color: #fff; box-shadow: var(--shadow-lg);
    transition: transform .2s var(--ease);
}
.whatsapp-fab:hover { transform: scale(1.06); color: #fff; }
.whatsapp-fab .icon { width: 26px; height: 26px; }

/* ------------------------------------------------------------------ pages d'authentification */

.auth { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth__panel { display: grid; place-items: center; padding: var(--space-7) var(--space-4); }
.auth__card { width: min(440px, 100%); }
.auth__card h1 { font-size: var(--fs-xl); }
.auth__aside { background: var(--surface-warm); display: grid; place-items: center; padding: var(--space-7); border-left: 1px solid var(--line); }
.auth__aside .mascot img { width: min(420px, 100%); }
.auth__aside blockquote { margin: var(--space-5) 0 0; max-width: 40ch; color: var(--ink-2); font-weight: 600; text-align: center; }
.auth__switch { margin-top: var(--space-5); font-size: var(--fs-sm); color: var(--ink-muted); text-align: center; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth__aside { display: none; } }

/* ------------------------------------------------------------------ espace client & administration */

.app-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; background: var(--surface-2); }
.app-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); padding: var(--space-5) var(--space-4); display: flex; flex-direction: column; gap: var(--space-5); }
.app-sidebar--admin { background: var(--night); border-color: var(--night-line); }
.app-sidebar--admin .brand { color: #fff; }
.app-nav { display: grid; gap: 2px; }
.app-nav__label { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-subtle); padding: var(--space-4) .75rem .4rem; }
.app-nav a {
    display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem; border-radius: var(--radius-sm);
    color: var(--ink-2); font-weight: 600; font-size: var(--fs-sm); text-decoration: none;
}
.app-nav a:hover { background: var(--surface-2); color: var(--ink); }
.app-nav a[aria-current="page"] { background: var(--brand-50); color: var(--brand-700); }
.app-nav a .icon { width: 1.15rem; height: 1.15rem; }
.app-nav .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 .4rem; display: inline-grid; place-items: center; border-radius: var(--radius-pill); background: var(--brand-600); color: #fff; font-size: .7rem; font-weight: 800; }
.app-sidebar--admin .app-nav a { color: var(--night-text); }
.app-sidebar--admin .app-nav a:hover { background: var(--night-2); color: #fff; }
.app-sidebar--admin .app-nav a[aria-current="page"] { background: var(--night-3); color: #fff; box-shadow: inset 3px 0 0 var(--accent-on-dark); }
.app-sidebar--admin .app-nav__label { color: #7d8390; }
.app-sidebar__footer { margin-top: auto; display: grid; gap: var(--space-2); }
.app-main { min-width: 0; }
.app-topbar { position: sticky; top: 0; z-index: 50; height: 64px; display: flex; align-items: center; gap: var(--space-3); padding: 0 var(--space-6); background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.app-topbar__title { font-weight: 700; font-size: var(--fs-sm); color: var(--ink-muted); }
.app-topbar__actions { margin-left: auto; display: flex; align-items: center; gap: var(--space-2); }
.app-content { padding: var(--space-6); max-width: 1280px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-6); }
.page-head h1 { font-size: var(--fs-xl); margin: 0; }
.page-head p { margin: .35rem 0 0; color: var(--ink-muted); }
.user-chip { display: flex; align-items: center; gap: .6rem; padding: .35rem .6rem .35rem .35rem; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); font-weight: 800; font-size: var(--fs-xs); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-toggle { display: none; }
@media (max-width: 960px) {
    .app-shell { grid-template-columns: 1fr; }
    .app-sidebar { position: fixed; z-index: 120; inset: 0 auto 0 0; width: 280px; transform: translateX(-100%); transition: transform .25s var(--ease); box-shadow: var(--shadow-lg); }
    .app-sidebar.is-open { transform: none; }
    .sidebar-toggle { display: inline-flex; }
    .app-content { padding: var(--space-5) var(--space-4); }
    .app-topbar { padding: 0 var(--space-4); }
}

.stat-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: var(--space-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.stat__label { display: flex; align-items: center; gap: .5rem; font-size: var(--fs-xs); font-weight: 700; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .06em; }
.stat__label .icon { color: var(--brand-600); }
.stat__value { display: block; margin-top: var(--space-2); font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); line-height: 1.15; }
.stat__hint { display: block; margin-top: .25rem; font-size: var(--fs-xs); color: var(--ink-muted); }
.stat--alert { border-color: #f5c6c2; background: #fffafa; }
.stat--alert .stat__value { color: var(--danger); }
@media (max-width: 1100px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .stat-grid { grid-template-columns: 1fr; } }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel__head h2 { font-size: var(--fs-base); margin: 0; }
.panel__body { padding: var(--space-5); }
.panel__body--flush { padding: 0; }
.panel .table-wrap { border: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.dash-grid { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr; } }

.welcome { display: flex; align-items: center; gap: var(--space-5); padding: var(--space-5) var(--space-6); border-radius: var(--radius-lg); background: var(--surface-warm); border: 1px solid #f6dccd; }
.welcome .mascot img { width: 84px; }
.welcome h1 { font-size: var(--fs-lg); margin: 0 0 .2rem; }
.welcome p { margin: 0; color: var(--ink-muted); font-size: var(--fs-sm); }
@media (max-width: 560px) { .welcome .mascot { display: none; } }

.service-row { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-4); align-items: center; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.service-row:last-child { border-bottom: 0; }
.service-row:hover { background: #fbfbfc; color: inherit; }
.service-row__icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); }
.service-row__title { font-weight: 700; font-size: var(--fs-sm); }
.service-row__meta { font-size: var(--fs-xs); color: var(--ink-muted); }
.service-row__end { text-align: right; display: grid; gap: .25rem; justify-items: end; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.timeline li { position: relative; padding-left: 1.6rem; font-size: var(--fs-sm); }
.timeline li::before { content: ""; position: absolute; left: 4px; top: .45rem; width: 9px; height: 9px; border-radius: 50%; background: var(--brand-500); box-shadow: 0 0 0 4px var(--brand-50); }
.timeline li::after { content: ""; position: absolute; left: 8px; top: 1.3rem; bottom: calc(-1 * var(--space-4)); width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline time { display: block; font-size: var(--fs-xs); color: var(--ink-muted); }

.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-list li { display: flex; gap: var(--space-3); padding: var(--space-3) var(--space-5); border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.notice-list li:last-child { border-bottom: 0; }
.notice-list li.is-unread { background: var(--surface-warm); }
.notice-list .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-500); margin-top: .5rem; flex: none; }
.notice-list li:not(.is-unread) .dot { background: var(--line-strong); }
.notice-list time { display: block; font-size: var(--fs-xs); color: var(--ink-muted); }

.quick-actions { display: grid; gap: var(--space-2); }
.quick-actions a { display: flex; gap: .7rem; align-items: center; padding: .75rem .9rem; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: var(--fs-sm); background: var(--surface); }
.quick-actions a:hover { border-color: var(--brand-200); background: var(--surface-warm); color: var(--ink); }
.quick-actions .icon { color: var(--brand-600); }

.filters { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: flex-end; margin-bottom: var(--space-4); }
.filters .field { min-width: 160px; }
.filters .input, .filters .select { min-height: 40px; padding-block: .45rem; font-size: var(--fs-sm); }

.message { padding: var(--space-4) var(--space-5); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.message--staff { background: var(--surface-warm); border-color: #f6dccd; }
.message__meta { display: flex; justify-content: space-between; gap: var(--space-3); font-size: var(--fs-xs); color: var(--ink-muted); margin-bottom: var(--space-2); }
.message__body { font-size: var(--fs-sm); white-space: pre-wrap; word-break: break-word; }
.attachment { display: inline-flex; align-items: center; gap: .4rem; margin-top: var(--space-3); font-size: var(--fs-xs); font-weight: 650; }

.secret-box { font-family: var(--mono); font-size: 1rem; letter-spacing: .12em; padding: var(--space-4); background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: var(--radius); word-break: break-all; text-align: center; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem; font-family: var(--mono); padding: var(--space-4); background: var(--surface-2); border-radius: var(--radius); }

.progress-steps { display: flex; gap: var(--space-2); list-style: none; padding: 0; margin: 0 0 var(--space-5); flex-wrap: wrap; }
.progress-steps li { display: flex; align-items: center; gap: .5rem; font-size: var(--fs-xs); font-weight: 700; color: var(--ink-subtle); }
.progress-steps li + li::before { content: ""; width: 24px; height: 1px; background: var(--line-strong); }
.progress-steps li.is-done { color: var(--success); }
.progress-steps li.is-current { color: var(--brand-600); }

.status-hero { display: grid; justify-items: center; text-align: center; gap: var(--space-3); padding: var(--space-7) var(--space-5); }
.status-hero .mascot img { width: 200px; }
.status-hero h1 { font-size: var(--fs-xl); margin: 0; }
.status-hero p { margin: 0; max-width: 52ch; color: var(--ink-muted); }
.status-hero .status-hero__badge { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .9rem; border-radius: 999px; font-size: var(--fs-sm); font-weight: 700; }
.status-hero .status-hero__badge--success { background: var(--success-bg); color: var(--success); border: 1px solid #bfe5cf; }
.status-hero__badge .icon { width: 1rem; height: 1rem; }
.status-hero h1.status-hero__title--success { color: var(--success); }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--brand-100); border-top-color: var(--brand-600); animation: spin .8s linear infinite; }

.prose { max-width: 72ch; }
.prose h2 { font-size: var(--fs-lg); margin-top: var(--space-6); }
.prose h3 { margin-top: var(--space-5); }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2rem; }

.portfolio-list { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); list-style: none; margin: 0; padding: 0; }
.portfolio-list li { padding: var(--space-4) var(--space-5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.portfolio-list strong { display: block; }
.portfolio-list span { display: block; font-size: var(--fs-xs); color: var(--ink-muted); margin-bottom: .35rem; }
.portfolio-list a { font-size: var(--fs-sm); font-weight: 650; word-break: break-all; }

.team { display: grid; gap: var(--space-4); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.team .card { text-align: center; }
.team .avatar { width: 64px; height: 64px; margin: 0 auto var(--space-3); font-size: 1.1rem; }
@media (max-width: 760px) { .team { grid-template-columns: 1fr; } }

.contact-cards { display: grid; gap: var(--space-3); }
.contact-card { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.contact-card .icon { color: var(--brand-600); margin-top: .15rem; }
.contact-card strong { display: block; font-size: var(--fs-sm); }
.contact-card a, .contact-card span { font-size: var(--fs-sm); color: var(--ink-2); }

/* ------------------------------------------------------------------ page d'erreur */

.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: var(--space-8) var(--space-4); }
.error-page .mascot img { width: 260px; margin: 0 auto var(--space-5); }
.error-page__code { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .2em; color: var(--brand-600); }
.error-page p { color: var(--ink-muted); max-width: 48ch; margin-inline: auto; }
.error-page pre { text-align: left; max-width: 900px; overflow: auto; font-size: .75rem; background: var(--surface-2); padding: var(--space-4); border-radius: var(--radius); }

/* ------------------------------------------------------------------ révélation au défilement */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ facture imprimable */

.invoice { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-7); max-width: 900px; }
.invoice__head { display: flex; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; margin-bottom: var(--space-6); }
.invoice__head img { height: 46px; width: auto; }
.invoice table th, .invoice table td { padding: .7rem .5rem; border-bottom: 1px solid var(--line); text-align: left; font-size: var(--fs-sm); }
.invoice table .num { text-align: right; }
.invoice__total { display: flex; justify-content: flex-end; gap: var(--space-6); margin-top: var(--space-4); font-size: var(--fs-md); font-weight: 800; }
.stamp { display: inline-block; padding: .3rem .8rem; border: 2px solid var(--success); color: var(--success); border-radius: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: var(--fs-xs); transform: rotate(-4deg); }
.stamp--refunded { border-color: var(--danger); color: var(--danger); }

@media print {
    .app-sidebar, .app-topbar, .no-print, .site-header, .site-footer, .whatsapp-fab, .flash-stack { display: none !important; }
    .app-shell { display: block; background: #fff; }
    .app-content { padding: 0; }
    .invoice { border: 0; padding: 0; }
    body { background: #fff; }
    a { color: inherit; text-decoration: none; }
}

/* ------------------------------------------------------------------ facture (modèle Hosting iSamaTech) */
.inv { background: #fff; color: #14171c; max-width: 900px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; font-size: 15px; }
.inv__body { padding: 56px 64px 32px; }
.inv__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 48px; }
.inv__number { font-size: 20px; font-weight: 800; margin: 0; letter-spacing: .01em; }
.inv__title { font-size: 56px; font-weight: 900; line-height: 1; margin: 0; letter-spacing: .02em; }
.inv__parties { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.inv__brand { display: flex; flex-direction: column; line-height: 1.05; }
.inv__brand span:first-child { font-size: 22px; font-weight: 900; }
.inv__brand span:last-child { font-size: 15px; font-weight: 800; color: var(--brand-500); letter-spacing: .02em; }
.inv__meta { text-align: right; font-size: 13px; color: var(--ink-2); }
.inv__meta p { margin: 0 0 8px; }
.inv__items { position: relative; min-height: 380px; }
.inv__watermark { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; z-index: 0; }
.inv__wm-mark { width: 300px; height: 300px; background: url("../img/logo-mark.png") center / contain no-repeat; opacity: .14; }
.inv__wm-name { font-size: 64px; font-weight: 900; color: #e7e8eb; letter-spacing: .02em; margin-top: -40px; opacity: .75; }
.inv__wm-tag { font-size: 26px; color: #d3d5da; letter-spacing: .12em; }
.inv__items table { position: relative; z-index: 1; width: 100%; border-collapse: collapse; }
.inv__items th { text-align: left; font-size: 14px; font-weight: 800; padding: 14px 16px; border-bottom: 2px solid #14171c; text-transform: uppercase; }
.inv__items td { padding: 18px 16px; border-bottom: 2px solid #eceef1; vertical-align: middle; line-height: 1.5; }
.inv__items td:first-child { width: 34%; }
.inv__accent { color: var(--brand-500); font-weight: 800; }
.inv__totals { margin: 28px 0 0 auto; width: min(100%, 380px); }
.inv__totals > div { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; }
.inv__ttc { margin-top: 14px; font-size: 30px; font-weight: 900; color: var(--brand-500); }
.inv__totals .money__usd { text-align: right; margin: 6px 0 0; }
.inv__paid { font-size: 12px; color: var(--ink-muted); margin: 20px 0 0; }
.inv__foot { background: #efefef; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 40px 64px 48px; }
.inv__foot p { margin: 0 0 10px; line-height: 1.6; }
.inv__foot-brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 900; margin-bottom: 24px !important; }
.inv__logo img { height: 46px; width: auto; }
.inv__logo .brand__name { font-size: 1.5rem; }
.inv__foot-title { font-size: 18px; font-weight: 900; text-transform: uppercase; }
.inv__foot-sub { font-weight: 700; }
.inv__foot-info { font-size: 13px; font-weight: 700; }
@media (max-width: 720px) {
    .inv__body { padding: 32px 20px 24px; } .inv__foot { grid-template-columns: 1fr; padding: 28px 20px; }
    .inv__top { flex-wrap: wrap; } .inv__title { font-size: 38px; } .inv__meta { text-align: left; }
    .inv__items table { table-layout: fixed; } .inv__items th, .inv__items td { padding: 10px 5px; font-size: 12px; overflow-wrap: anywhere; } .inv__items th { font-size: 10.5px; } .inv__items td:first-child { width: 38%; } .inv__wm-name { font-size: 34px; } .inv__wm-mark { width: 180px; height: 180px; }
}
@media print {
    .inv { border: 0; border-radius: 0; max-width: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    @page { margin: 0; }
}

/* ------------------------------------------------------------------ chiffres clés aux couleurs du logo */
.text-brand { color: var(--brand-500) !important; }
.stat--brand { border-color: color-mix(in srgb, var(--brand-500) 35%, var(--line)); background: linear-gradient(180deg, #fff3ec, var(--surface) 70%); }
.stat--brand .stat__value { color: var(--brand-600); }
.row-brand th, .row-brand td { color: var(--brand-600); background: #fff3ec; font-weight: 800; }
.treasury { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--brand-600), var(--brand-400)); color: #fff; }
.treasury .icon { width: 30px; height: 30px; flex: none; }
.treasury p { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.treasury__label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; opacity: .9; font-weight: 700; }
.treasury__amount { font-size: 28px; font-weight: 900; line-height: 1.1; }
.treasury__detail { font-size: var(--fs-xs); opacity: .9; }
.period-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-bottom: var(--space-5); }
.period-filter .btn[aria-current="true"] { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }

/* ------------------------------------------------------------------ jours restants avant renouvellement */
.renewal-banner { display: flex; align-items: center; gap: 18px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.renewal-banner p { margin: 0; flex: 1; color: var(--ink-muted); font-size: var(--fs-sm); }
.renewal-banner strong { color: var(--ink); font-size: var(--fs-md); }
.renewal-banner__days { flex: none; min-width: 72px; height: 72px; padding: 0 10px; display: grid; place-items: center; border-radius: 18px; background: var(--success-bg); color: var(--success); font-size: 30px; font-weight: 900; }
.renewal-banner--soon .renewal-banner__days { background: var(--warning-bg); color: var(--warning); }
.renewal-banner--urgent .renewal-banner__days { background: var(--danger-bg); color: var(--danger); }
@media (max-width: 560px) { .renewal-banner { flex-wrap: wrap; } }

/* ------------------------------------------------------------------ mobile : ajustements globaux */
html, body { overflow-x: clip; }
.split > *, .dash-grid > *, .grid > *, .stack > *, .hero > *, .form-row > * { min-width: 0; }
.table-wrap { max-width: 100%; -webkit-overflow-scrolling: touch; }
img, svg, video { max-width: 100%; }
@media (max-width: 960px) {
    .split, .split--hero { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
    .split--reverse > :first-child { order: 0; }
    /* Menu latéral (espace client, administration) : tous les onglets visibles d'un coup, sans défiler */
    .app-sidebar { width: min(88vw, 380px); padding: var(--space-3) var(--space-3) var(--space-4); gap: var(--space-2); }
    .app-sidebar .app-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
    .app-sidebar .app-nav__label { grid-column: 1 / -1; padding: .35rem .4rem .1rem; font-size: .62rem; }
    .app-sidebar .app-nav a { padding: .42rem .5rem; gap: .4rem; font-size: .8rem; min-height: 36px; line-height: 1.15; }
    .app-sidebar .app-nav a .icon { width: 1rem; height: 1rem; flex: none; }
    .app-sidebar__footer { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--space-2); }
    .app-sidebar__footer .btn { padding-inline: .5rem; font-size: .8rem; }
    body.sidebar-open { overflow: hidden; }
    body.sidebar-open::after { content: ""; position: fixed; inset: 0; z-index: 110; background: rgba(20, 23, 28, .45); }
}
@media (max-width: 640px) {
    .page-head { align-items: flex-start; }
    .page-head h1 { font-size: 1.45rem; word-break: break-word; }
    .page-head .cluster { width: 100%; }
    .table-prices th, .table-prices td { padding: .65rem .6rem; }
    .panel__body, .card--pad-lg { padding: var(--space-4); }
    .filters { flex-wrap: wrap; }
    .filters .field { flex: 1 1 140px; min-width: 0; }
    .period-filter .field { flex: 1 1 160px; }
    .stat__value { font-size: 1.4rem; }
    .treasury__amount { font-size: 22px; }
    .dns-list li { flex-wrap: wrap; }
    .header-actions { gap: .35rem; }
    .lang-switch { padding: .4rem .45rem; }
    .badge { max-width: 100%; white-space: normal; text-align: left; }
}

/* Tableau des tarifs de domaines : une carte par extension sur petit écran */
@media (max-width: 560px) {
    .table-prices thead { display: none; }
    .table-prices tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem .75rem; padding: .75rem .6rem; border-bottom: 1px solid var(--line); }
    .table-prices tbody tr:last-child { border-bottom: 0; }
    .table-prices td { border: 0; padding: 0; }
    .table-prices td:first-child { grid-column: 1 / -1; }
    .table-prices td[data-label]::before { content: attr(data-label); display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-muted); }
    .table-prices td[colspan] { grid-column: 1 / -1; }
    .table-prices td.text-right { grid-column: 1 / -1; text-align: left; margin-top: .35rem; }
    .table-prices td.text-right .btn { width: 100%; justify-content: center; }
}

/* ------------------------------------------------------------------ utilitaires (aucun style en ligne : CSP stricte) */
.mb-4 { margin-bottom: var(--space-4); } .mb-5 { margin-bottom: var(--space-5); } .mb-6 { margin-bottom: var(--space-6); }
.mt-2 { margin-top: var(--space-2); } .mt-3 { margin-top: var(--space-3); } .mt-7 { margin-top: var(--space-7); }
.footer-note { font-size: .75rem; margin-top: .6rem; color: #9aa0ab; max-width: 42ch; }
.w-full { width: 100%; }
.nowrap { white-space: nowrap; }
.text-right { text-align: right; }
.fs-sm { font-size: var(--fs-sm); } .fs-xs { font-size: var(--fs-xs); }
.fw-700 { font-weight: 700; }
.inline-form { display: inline; }
.gap-2 { gap: var(--space-2); }
.max-640 { max-width: 640px; }
.max-860 { max-width: 860px; }
.bar-chart { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-3); align-items: end; height: 160px; padding-top: var(--space-4); }
.bar-chart__col { display: grid; gap: .35rem; justify-items: center; height: 100%; align-content: end; }
.bar-chart__bar { width: 100%; max-width: 46px; background: var(--brand-500); border-radius: 6px 6px 2px 2px; min-height: 2px; }
.bar-chart__label { font-size: var(--fs-xs); color: var(--ink-muted); }
.bar-chart__value { font-size: .7rem; color: var(--ink-2); font-weight: 650; font-variant-numeric: tabular-nums; }
.h-0 { height: 0; } .h-5 { height: 5%; } .h-10 { height: 10%; } .h-15 { height: 15%; } .h-20 { height: 20%; } .h-25 { height: 25%; } .h-30 { height: 30%; } .h-35 { height: 35%; } .h-40 { height: 40%; } .h-45 { height: 45%; } .h-50 { height: 50%; } .h-55 { height: 55%; } .h-60 { height: 60%; } .h-65 { height: 65%; } .h-70 { height: 70%; } .h-75 { height: 75%; } .h-80 { height: 80%; } .h-85 { height: 85%; } .h-90 { height: 90%; } .h-95 { height: 95%; } .h-100 { height: 100%; }

/* Navigation : libellés sur une ligne, menu compact entre 1080 et 1280 px */
.nav__link, .nav__trigger { white-space: nowrap; }
@media (min-width: 1081px) and (max-width: 1280px) {
    .nav__link, .nav__trigger { padding-inline: .5rem; font-size: .82rem; }
    .site-header__inner { gap: var(--space-3); }
}
@media (max-width: 1180px) and (min-width: 1081px) {
    .header-actions .btn--secondary { display: none; }
}
.error-page .cluster { justify-content: center; }

/* Espace client / administration sur petit écran */
.table td:first-child a { white-space: nowrap; }
@media (max-width: 640px) {
    .app-topbar__title { display: none; }
    .user-chip { padding: .2rem; border: 0; }
    .user-chip .user-chip__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
    .app-topbar__actions { gap: var(--space-1); }
    .page-head { margin-bottom: var(--space-5); }
}

/* ------------------------------------------------------------------ animations de la vitrine
   Purement décoratives : désactivées si l'utilisateur demande moins d'animations. */

@keyframes rise-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.92) translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes float-soft { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes glow-pulse { 0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(1); } 50% { opacity: .9; transform: translate(-50%, -50%) scale(1.08); } }
@keyframes text-shine { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }
@keyframes header-drop { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes fab-ring { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes step-pop { 0% { transform: scale(.6); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* En-tête et héros : entrée en cascade au chargement */
.site-header { animation: header-drop .5s var(--ease) both; }
.anim-in { animation: rise-in .7s var(--ease) both; }
.anim-in--1 { animation-delay: .05s; } .anim-in--2 { animation-delay: .15s; } .anim-in--3 { animation-delay: .28s; }
.anim-in--4 { animation-delay: .4s; } .anim-in--5 { animation-delay: .52s; }
.hero__visual { animation: pop-in .9s .2s var(--ease) both; }
.hero__visual::before {
    content: ""; position: absolute; left: 50%; top: 50%; width: 78%; aspect-ratio: 1; border-radius: 50%; z-index: 0;
    background: radial-gradient(circle, rgba(232, 58, 0, .22) 0%, rgba(232, 58, 0, 0) 68%);
    animation: glow-pulse 6s ease-in-out infinite; pointer-events: none;
}
.hero__visual .mascot { position: relative; z-index: 1; animation: float 6s 1.1s ease-in-out infinite; }
.hero__badge { z-index: 2; animation: float-soft 4.5s ease-in-out infinite; }
.hero__badge--b { animation-duration: 5.5s; animation-delay: .8s; }
.hero h1 em {
    background: linear-gradient(90deg, var(--brand-500) 0%, #ff8a4c 25%, var(--brand-600) 50%, #ff8a4c 75%, var(--brand-500) 100%);
    background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: text-shine 7s linear infinite;
}

/* Apparition au défilement : variantes et cascade dans les grilles */
.reveal--zoom { transform: scale(.94) translateY(14px); }
.reveal--left { transform: translateX(-28px); }
.reveal--right { transform: translateX(28px); }
.reveal.is-visible { transform: none; }
.grid > .reveal:nth-child(2), .steps > .reveal:nth-child(2), .check-list > .reveal:nth-child(2) { transition-delay: .08s; }
.grid > .reveal:nth-child(3), .steps > .reveal:nth-child(3) { transition-delay: .16s; }
.grid > .reveal:nth-child(4), .steps > .reveal:nth-child(4) { transition-delay: .24s; }
.grid > .reveal:nth-child(5) { transition-delay: .32s; }
.grid > .reveal:nth-child(6) { transition-delay: .4s; }
.steps > .reveal.is-visible::before { animation: step-pop .5s .25s var(--ease) both; }
.section .mascot img { transition: transform .5s var(--ease); }
.section .mascot:hover img { transform: translateY(-6px) rotate(-1.5deg); }

/* Survols : cartes, icônes, offre */
.card { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.section .card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.section--night .card:hover { border-color: rgba(255, 122, 69, .45); }
.feature-icon { transition: transform .35s var(--ease), background-color .25s var(--ease); }
.card:hover .feature-icon { transform: scale(1.1) rotate(-6deg); }
.steps li { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.steps li:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.offer-card { transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.offer-card:hover { box-shadow: 0 24px 60px -20px rgba(232, 58, 0, .45); }
.check-list li .icon { transition: transform .2s var(--ease); }
.check-list li:hover .icon { transform: scale(1.25); }

/* Bouton WhatsApp : onde discrète */
.whatsapp-fab::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid currentColor; opacity: 0;
    animation: fab-ring 2.6s 2s ease-out infinite; pointer-events: none;
}

.no-js .reveal--zoom, .no-js .reveal--left, .no-js .reveal--right { transform: none; }
@media (prefers-reduced-motion: reduce) {
    .site-header, .anim-in, .hero__visual, .hero__visual::before, .hero__visual .mascot, .hero__badge, .hero h1 em, .whatsapp-fab::after { animation: none !important; }
    .reveal--zoom, .reveal--left, .reveal--right { transform: none; }
    .section .card:hover, .steps li:hover, .section .mascot:hover img, .card:hover .feature-icon { transform: none; }
}

/* Ligne de service avec accès direct au panneau N0C */
.service-item { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.service-item:last-child { border-bottom: 0; }
.service-item > .service-row { flex: 1; min-width: 0; border-bottom: 0; }
.service-item__action { padding-right: var(--space-5); flex-shrink: 0; }
.service-item__action:empty { display: none; }
@media (max-width: 640px) {
    .service-item { flex-wrap: wrap; }
    .service-item > .service-row { flex-basis: 100%; }
    .service-item__action { padding: 0 var(--space-5) var(--space-4); }
}

/* Double authentification et photo de profil */
.qr-code { display: block; width: 220px; height: 220px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.avatar--lg { width: 96px; height: 96px; font-size: 1.6rem; }
.avatar-editor { display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap; }
.method-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .method-grid { grid-template-columns: 1fr; } }
.method-card { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4); display: grid; gap: var(--space-3); align-content: start; }
.method-card h3 { font-size: var(--fs-sm); margin: 0; display: flex; align-items: center; gap: .5rem; }
.method-card p { font-size: var(--fs-xs); color: var(--ink-muted); margin: 0; }

/* Recherche de nom de domaine */
.domain-search { display: flex; gap: var(--space-3); max-width: 680px; margin-top: var(--space-6); }
.domain-search .input { flex: 1; min-width: 0; }
.input--lg { min-height: 54px; font-size: 1.05rem; padding-inline: 1.1rem; }
@media (max-width: 560px) { .domain-search { flex-direction: column; } }
.domain-result { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: var(--space-4); align-items: center; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--line); }
.domain-result:last-child { border-bottom: 0; }
.domain-result__badges { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; }
.domain-result__badges .badge { display: inline-flex; align-items: center; gap: .25rem; }
.domain-result__name { font-weight: 750; font-size: var(--fs-md); overflow-wrap: anywhere; }
.domain-result--taken .domain-result__name { color: var(--ink-muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.domain-result__price { font-size: var(--fs-sm); color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.domain-result__actions { display: flex; gap: var(--space-2); justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 720px) {
    .domain-result { grid-template-columns: minmax(0, 1fr) auto; }
    .domain-result__price { grid-column: 1; }
    .domain-result__actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* Prix : FCFA (montant facturé) bien visible, équivalent indicatif en dollars plus petit */
.money { display: inline-flex; flex-direction: column; align-items: inherit; line-height: 1.15; }
.money__xof { white-space: nowrap; }
.money__usd { display: block; font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0; color: var(--ink-muted); white-space: nowrap; }
.money__usd--inline { display: inline; }
.money.price__amount .money__usd { font-size: .8rem; margin-top: .4rem; }
.money__period { font-size: var(--fs-xs); color: var(--ink-muted); margin-left: .25rem; }
.num .money { align-items: flex-end; }
.domain-result__price { display: flex; align-items: baseline; gap: .25rem; }
.hero__usd { margin: var(--space-3) 0 0; font-size: var(--fs-sm); color: var(--ink-muted); }
.section--night .money__usd { color: var(--night-text); }

/* Téléphone international */
.phone-input { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: var(--space-2); }
.phone-input__country { min-width: 0; }
[data-phone-field].is-enhanced .phone-input { display: block; }
.phone-input .iti { width: 100%; }
.phone-input .iti input.input { width: 100%; }
.iti__country-list, .iti__dropdown-content { font-size: var(--fs-sm); }
.hint--warning { color: var(--warning); }
@media (max-width: 480px) { .phone-input { grid-template-columns: 1fr; } }

/* Page noms de domaine : mascotte à droite du titre et de la recherche */
.hero--domains .split--hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--space-6); }
.hero__visual--domains .mascot img { width: 100%; max-width: 440px; margin-inline: auto; }
.hero__visual--domains::before { width: 70%; }
@media (max-width: 960px) {
    .hero--domains .split--hero { grid-template-columns: 1fr; gap: var(--space-5); }
    /* Mobile : image plus petite, sous la recherche, sans repousser le formulaire */
    .hero__visual--domains { max-width: 280px; margin-inline: auto; }
}
@media (max-width: 480px) { .hero__visual--domains { max-width: 230px; } }

/* Administration → Mascottes */
.mascot-admin-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.mascot-admin-preview { display: grid; place-items: center; min-height: 220px; padding: var(--space-4); border-radius: var(--radius); background: repeating-conic-gradient(#f1f2f4 0% 25%, #fff 0% 50%) 50% / 20px 20px; }
.mascot-admin-preview .mascot img { max-height: 240px; width: auto; max-width: 100%; }

/* Barre latérale (espace client / administration) : nom de marque complet, sans coupure */
.app-sidebar .brand { gap: .45rem; max-width: 100%; }
.app-sidebar .brand img { height: 26px; width: auto; flex: none; }
.app-sidebar .brand__name { font-size: .94rem; letter-spacing: -.035em; white-space: nowrap; }
.app-sidebar .brand img { height: 24px; }
.text-danger { color: var(--danger); }
.select--sm { min-height: 34px; padding-block: .25rem; font-size: var(--fs-xs); max-width: 260px; }

/* Serveurs DNS (espace client) */
.dns-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.dns-list li { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); flex-wrap: wrap; }
.dns-list__label { font-size: var(--fs-xs); font-weight: 700; color: var(--ink-muted); min-width: 3.5rem; }
.dns-list li .mono { flex: 1; overflow-wrap: anywhere; }
.dns-list--masked li { color: var(--ink-muted); letter-spacing: .08em; }

/* ------------------------------------------------------------------ panier */
.header-cart { position: relative; flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); text-decoration: none; border: 1px solid var(--line); background: var(--surface); }
.header-cart:hover { color: var(--brand-600); border-color: var(--brand-500); }
.header-cart .icon { width: 22px; height: 22px; }
.header-cart__count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--brand-600); color: #fff; font-size: 11px; font-weight: 800; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px #fff; }
@media (max-width: 520px) {
    .header-cart { width: 40px; height: 40px; }
    body.has-cart .site-header .brand img { display: none; }
}
@media (max-width: 389px) {
    body.has-cart .header-actions .lang-switch { font-size: 0; gap: 0; }
}
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-4); align-items: start; padding: var(--space-4) var(--space-5); border-top: 1px solid var(--line); }
.cart-item:first-child { border-top: 0; }
.cart-item--error { background: var(--danger-bg); }
.cart-item__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-50); color: var(--brand-600); }
.cart-item__title { margin: 0; font-weight: 700; }
.cart-item__domain { display: inline-block; font-weight: 650; color: var(--brand-700); overflow-wrap: anywhere; }
.cart-item__meta { margin: .2rem 0 0; font-size: var(--fs-xs); color: var(--ink-muted); }
.cart-item__error { margin: .4rem 0 0; font-size: var(--fs-xs); color: var(--danger); font-weight: 600; }
.cart-item__side { display: grid; justify-items: end; gap: .4rem; }
.cart-item__price { font-size: var(--fs-base); white-space: nowrap; }
.cart-item__actions { display: flex; gap: .25rem; flex-wrap: wrap; justify-content: flex-end; }
.cart-item__offer { margin: .35rem 0 0; display: flex; gap: .35rem; align-items: center; font-size: var(--fs-xs); font-weight: 650; color: var(--success); }
.cart-item__regular { font-size: var(--fs-xs); color: var(--ink-muted); text-decoration: line-through; white-space: nowrap; }
.cart-upsell { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; padding: var(--space-3) var(--space-4); border: 1px dashed var(--brand-300, var(--line)); border-radius: 12px; background: var(--brand-50); }
.cart-upsell--free { border-color: var(--success); background: var(--success-bg, var(--brand-50)); }
.cart-upsell__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface, #fff); color: var(--brand-600); }
.cart-upsell__title { margin: 0; font-weight: 700; font-size: var(--fs-sm); overflow-wrap: anywhere; }
.cart-upsell__text { margin: .15rem 0 0; font-size: var(--fs-xs); color: var(--ink-soft, var(--ink-muted)); }
.domain-check { margin: .4rem 0 0; display: inline-flex; gap: .4rem; align-items: center; padding: .3rem .7rem; border-radius: 999px; font-size: var(--fs-xs); font-weight: 650; background: var(--surface-2, var(--brand-50)); color: var(--ink-muted); }
.domain-check::before { font-weight: 800; }
.domain-check--ok { background: var(--success-bg, #e8f7ee); color: var(--success); }
.domain-check--ok::before { content: "✓"; }
.domain-check--bad { background: var(--danger-bg); color: var(--danger); }
.domain-check--bad::before { content: "✕"; }
.domain-check--unknown { background: var(--warning-bg, #fff6e0); color: var(--warning, #9a6700); }
.domain-check--unknown::before { content: "?"; }
.domain-check--loading::before { content: "…"; }
.cart-saved { color: var(--success, #1a7f4b); font-weight: 600; display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
@media (max-width: 560px) {
    .cart-item { grid-template-columns: auto minmax(0, 1fr); padding: var(--space-4); }
    .cart-item__side { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: center; justify-items: start; }
    .cart-upsell { grid-template-columns: auto minmax(0, 1fr); }
    .cart-upsell form { grid-column: 1 / -1; }
    .cart-upsell .btn { width: 100%; }
}
@media (max-width: 359px) {
    body.has-cart .header-actions .lang-switch { display: none; }
}
.guest-page { padding-block: var(--space-6) var(--space-8); }
.footer-payments { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--night-line); }
.footer-payments h2 { display: flex; align-items: center; gap: .45rem; margin: 0 0 var(--space-3); font-size: var(--fs-sm); color: #fff; }
.pay-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.pay-list li { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .7rem .3rem .4rem; border-radius: 10px; background: #fff; color: #1d2230; font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; }
.pay-list img { height: 22px; width: auto; max-width: 56px; object-fit: contain; flex: none; }
.footer-payments + .footer-bottom { margin-top: var(--space-5); }
