/* ==================================================
   DT StoneTech – Feuille de style principale
   ================================================== */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --sky: #38bdf8;
    --accent: #22c55e;
    --accent-dark: #15803d;
    --danger: #ef4444;
    --danger-dark: #b91c1c;

    --bg: #f3f4f6;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --text: #0f172a;
    --text-soft: #334155;
    --muted: #64748b;
    --line: rgba(148, 163, 184, 0.35);
    --line-strong: rgba(148, 163, 184, 0.6);

    --nav-dark: #0f172a;
    --nav-dark-soft: #1e293b;

    --radius-sm: 0.6rem;
    --radius: 1rem;
    --radius-lg: 1.5rem;

    --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
    --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.1);
    --shadow-lift: 0 24px 50px rgba(15, 23, 42, 0.16);

    --gradient-brand: linear-gradient(135deg, var(--primary), var(--sky));
    --gradient-accent: linear-gradient(to right, var(--sky), var(--accent));

    --container: 1200px;
    --gutter: 1.25rem;
    --header-offset: 6.5rem;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-offset);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(56, 189, 248, 0.12), transparent 60%),
        radial-gradient(900px 500px at 100% 0%, rgba(34, 197, 94, 0.08), transparent 55%),
        var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video {
    max-width: 100%;
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
}

h1, h2, h3, h4 {
    line-height: 1.2;
}

:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.7);
    outline-offset: 2px;
}

.hidden {
    display: none !important;
}

.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;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 200;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: var(--text);
    color: #fff;
    font-size: 0.85rem;
    transform: translateY(-200%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.noscript-warning {
    margin: 1rem auto;
    max-width: var(--container);
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    background: #fef2f2;
    color: var(--danger-dark);
    border: 1px solid rgba(239, 68, 68, 0.3);
    font-size: 0.9rem;
}

/* ==================================================
   NAVBAR
   ================================================== */
header {
    position: sticky;
    top: 0;
    z-index: 60;
    padding: 0.85rem 1rem 0;
    background: linear-gradient(180deg, rgba(243, 244, 246, 0.96) 0%, rgba(243, 244, 246, 0) 100%);
}

.nav {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0.7rem 0.9rem 0.7rem 1.1rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem 1.25rem;
    border-radius: 1.75rem;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 34%),
        radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.18), transparent 35%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92));
    box-shadow:
        0 22px 40px rgba(15, 23, 42, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.28);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    position: relative;
    transition: box-shadow 0.3s ease, padding 0.3s ease;
}

header.is-scrolled .nav {
    box-shadow:
        0 16px 34px rgba(15, 23, 42, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.14), transparent 35%, transparent 70%, rgba(255, 255, 255, 0.04));
    pointer-events: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    position: relative;
    z-index: 1;
    min-width: 0;
}

.logo-icon {
    width: 50px;
    height: 50px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow:
        0 14px 30px rgba(15, 23, 42, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.logo-text span:first-child {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: #94a3b8;
}

.logo-text span:last-child {
    font-size: 1.15rem;
    font-weight: 600;
    color: #f8fafc;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.88rem;
    padding: 0.3rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 40px;
    padding: 0 0.9rem;
    border-radius: 999px;
    color: #cbd5e1;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.nav-links a i {
    display: none;
    width: 1.1rem;
    text-align: center;
    color: #7dd3fc;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0.4rem;
    width: 22px;
    height: 3px;
    border-radius: 999px;
    background: var(--gradient-accent);
    transform: translateX(-50%) scaleX(0);
    transition: transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.is-active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-links a.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(34, 197, 94, 0.12));
    box-shadow:
        inset 0 0 0 1px rgba(125, 211, 252, 0.16),
        0 10px 24px rgba(2, 6, 23, 0.18);
}

.nav-links a:focus-visible,
.nav-toggle:focus-visible,
.nav .btn:focus-visible {
    outline: 2px solid rgba(125, 211, 252, 0.85);
    outline-offset: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.user-badge {
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.06);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    color: #e2e8f0;
    white-space: nowrap;
    min-width: 0;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #94a3b8;
    flex-shrink: 0;
}

.user-badge.is-online::before {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}

.user-badge.is-admin::before {
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.nav .btn-outline {
    min-height: 42px;
    padding: 0.55rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.26);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav .btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.16);
}

#openAuthBtn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(56, 189, 248, 0.14));
}

#logoutBtn {
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.35);
}

#logoutBtn:hover {
    color: #ffffff;
    border-color: rgba(248, 113, 113, 0.5);
    background: rgba(239, 68, 68, 0.14);
}

.nav-toggle {
    width: 44px;
    height: 44px;
    border-radius: 0.95rem;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    font-size: 1.05rem;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.45);
}

.nav-toggle-close,
.nav.mobile-open .nav-toggle-open {
    display: none;
}

.nav.mobile-open .nav-toggle-close {
    display: block;
}

/* ==================================================
   BOUTONS
   ================================================== */
.btn {
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.2;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    white-space: nowrap;
    text-decoration: none;
}

.btn:disabled,
.btn[aria-busy="true"] {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
}

.btn-lg {
    padding: 0.8rem 1.4rem;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--gradient-brand);
    color: #ffffff;
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover:not(:disabled) {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.45);
}

.btn-outline {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    color: var(--text);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-sm);
}

.btn-outline:hover:not(:disabled) {
    border-color: rgba(37, 99, 235, 0.35);
    background: #eff6ff;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--muted);
    border-color: transparent;
    box-shadow: none;
}

.btn-ghost:hover:not(:disabled) {
    background: rgba(148, 163, 184, 0.14);
    color: var(--text);
}

.btn-dark {
    background: var(--text);
    color: #f8fafc;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.25);
}

.btn-dark:hover:not(:disabled) {
    transform: translateY(-1px);
    background: #1e293b;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
    box-shadow: 0 10px 26px rgba(34, 197, 94, 0.3);
}

.btn-whatsapp:hover:not(:disabled) {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.btn.btn-danger-outline {
    color: var(--danger-dark);
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(254, 242, 242, 0.95);
}

.btn.btn-danger-outline:hover:not(:disabled) {
    background: var(--danger);
    color: #ffffff;
    border-color: var(--danger);
}

.btn-edit-soft {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-dark);
    border-color: rgba(37, 99, 235, 0.24);
    box-shadow: none;
}

.btn-edit-soft:hover:not(:disabled) {
    background: rgba(37, 99, 235, 0.14);
    border-color: rgba(37, 99, 235, 0.38);
}

.btn-icon {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 999px;
}

.spinner {
    width: 1em;
    height: 1em;
    border-radius: 999px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

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

/* ==================================================
   BANNIÈRE HAUT DE PAGE
   ================================================== */
.top-banner {
    max-width: var(--container);
    margin: 1rem auto 0.25rem;
    padding: 0 var(--gutter);
}

.top-banner-inner {
    border-radius: 1.4rem;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #020617;
    position: relative;
    aspect-ratio: 1200 / 260;
    min-height: 150px;
    max-height: 300px;
    width: 100%;
}

.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-slide.active {
    opacity: 1;
}

.banner-dots {
    position: absolute;
    left: 50%;
    bottom: 0.75rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
    z-index: 2;
}

.banner-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease;
}

.banner-dot.active {
    width: 22px;
    background: #ffffff;
}

/* ==================================================
   HERO
   ================================================== */
.hero {
    max-width: var(--container);
    margin: 0 auto;
    padding: 3.5rem var(--gutter) 3.5rem;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
    gap: 3rem;
    align-items: center;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border-radius: 999px;
    padding: 0.25rem 0.85rem 0.25rem 0.25rem;
    background: #ffffff;
    border: 1px solid var(--line);
    color: var(--text-soft);
    font-size: 0.78rem;
    max-width: max-content;
    box-shadow: var(--shadow-sm);
}

.hero-pill .icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #4ade80, #22c55e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #022c22;
    font-size: 0.8rem;
}

.hero-title {
    margin: 0;
    font-size: clamp(2.1rem, 4.2vw, 3.3rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.hero-title span {
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    max-width: 560px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.4rem;
    font-size: 0.82rem;
    color: var(--muted);
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-meta i {
    color: var(--accent);
}

.hero-right {
    position: relative;
}

.hero-right::before {
    content: "";
    position: absolute;
    inset: 8% -6% -6% 10%;
    border-radius: 2rem;
    background: var(--gradient-accent);
    opacity: 0.22;
    filter: blur(40px);
    z-index: 0;
}

.hero-card {
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-card-text {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0.6rem 0 0;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.1rem;
}

.stat {
    padding: 0.9rem;
    border-radius: var(--radius);
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

.stat-label {
    font-size: 0.68rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: var(--gradient-brand);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.stat-hint {
    font-size: 0.74rem;
    color: var(--muted);
}

.badge-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
}

.badge {
    font-size: 0.72rem;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    background: #f1f5f9;
    border: 1px solid var(--line);
    color: var(--text-soft);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.badge i {
    color: var(--primary);
}

/* ==================================================
   SECTIONS
   ================================================== */
main {
    padding-bottom: 3rem;
    /* Les halos décoratifs ne doivent pas créer de scroll horizontal */
    overflow-x: clip;
}

.section {
    max-width: var(--container);
    margin: 0 auto;
    padding: 3rem var(--gutter);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--primary);
    margin-bottom: 0.35rem;
}

.section-title {
    margin: 0;
    font-size: clamp(1.45rem, 2.4vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-subtitle {
    margin: 0.4rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    max-width: 620px;
}

.empty-state,
.error-state {
    grid-column: 1 / -1;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px dashed var(--line-strong);
    background: rgba(255, 255, 255, 0.6);
    color: var(--muted);
    font-size: 0.88rem;
    text-align: center;
    margin: 0;
}

.error-state {
    color: var(--danger-dark);
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(254, 242, 242, 0.7);
}

/* Squelettes de chargement */
.skeleton {
    border-radius: var(--radius);
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 37%, #e2e8f0 63%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
    min-height: 180px;
}

@keyframes shimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* ==================================================
   SERVICES
   ================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 1.25rem;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lift);
    border-color: rgba(37, 99, 235, 0.25);
}

.service-media {
    aspect-ratio: 16 / 9;
    background: #0f172a;
    overflow: hidden;
}

.service-media img,
.service-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 1.25rem 1.25rem 0.5rem;
    flex: 1;
}

.card-body h3 {
    font-size: 1.1rem;
    margin: 0.6rem 0 0.5rem;
    letter-spacing: -0.01em;
}

.service-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.9rem;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(56, 189, 248, 0.16));
    color: var(--primary);
    font-size: 1.1rem;
}

.pill {
    display: inline-block;
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    color: var(--muted);
    background: #ffffff;
}

.service-detail {
    font-size: 0.88rem;
    color: var(--text-soft);
    position: relative;
}

.service-detail.is-collapsed {
    max-height: 9.5rem;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
    mask-image: linear-gradient(180deg, #000 60%, transparent);
}

.rich-text p {
    margin: 0 0 0.55rem;
}

.rich-text ul,
.rich-text ol {
    margin: 0 0 0.55rem;
    padding-left: 1.25rem;
}

.rich-text blockquote {
    margin: 0 0 0.55rem;
    padding-left: 0.8rem;
    border-left: 3px solid var(--sky);
    color: var(--muted);
}

.rich-text a {
    color: var(--primary);
    text-decoration: underline;
}

.rich-text .ql-align-center { text-align: center; }
.rich-text .ql-align-right { text-align: right; }
.rich-text .ql-align-justify { text-align: justify; }
.rich-text .ql-size-small { font-size: 0.75em; }
.rich-text .ql-size-large { font-size: 1.4em; }
.rich-text .ql-size-huge { font-size: 2em; }
.rich-text .ql-font-serif { font-family: Georgia, "Times New Roman", serif; }
.rich-text .ql-font-monospace { font-family: Monaco, "Courier New", monospace; }

.btn-read-more {
    margin-top: 0.25rem;
    padding: 0.2rem 0;
    border: 0;
    background: none;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-read-more:hover {
    text-decoration: underline;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.25rem 1.2rem;
    flex-wrap: wrap;
}

.card-footer-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.card-link {
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.card-link:hover {
    text-decoration: underline;
}

.card-admin-actions,
.member-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

/* ==================================================
   ÉQUIPE
   ================================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 1.25rem;
}

.member-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    padding: 1.6rem 1.25rem 1.25rem;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.member-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 70px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(34, 197, 94, 0.14));
}

.member-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lift);
}

.member-photo {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 999px;
    overflow: hidden;
    background: radial-gradient(circle at 0 0, #22c55e, #14532d);
    flex-shrink: 0;
    border: 4px solid #ffffff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18);
    display: grid;
    place-items: center;
    color: #dcfce7;
    font-size: 2rem;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name {
    margin: 0.85rem 0 0;
    font-size: 1.02rem;
    font-weight: 600;
}

.member-role {
    display: inline-block;
    margin-top: 0.3rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-dark);
    background: rgba(34, 197, 94, 0.1);
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
}

.member-desc {
    margin: 0.75rem 0 0;
    font-size: 0.86rem;
    color: var(--muted);
    white-space: pre-line;
}

.member-actions {
    margin-top: 1rem;
    justify-content: center;
}

.member-form-note {
    margin: 0.2rem 0 0.85rem;
    font-size: 0.8rem;
    color: var(--muted);
}

/* ==================================================
   TÉMOIGNAGES
   ================================================== */
.testimonials-layout {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.composer {
    position: sticky;
    top: calc(var(--header-offset) + 0.5rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 1.25rem;
}

.composer h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.composer-note {
    margin: 0 0 0.9rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.75rem;
}

.field label,
.field-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-soft);
}

.input,
.field input,
.field textarea,
.field select {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid var(--line-strong);
    background: #ffffff;
    color: var(--text);
    padding: 0.6rem 0.8rem;
    font-size: 0.88rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
    resize: vertical;
    min-height: 90px;
}

.input:focus,
.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.field input[readonly] {
    background: var(--surface-soft);
    color: var(--muted);
}

.field-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: var(--muted);
}

.char-count {
    white-space: nowrap;
}

.char-count.is-near {
    color: #b45309;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.form-actions.space-between {
    justify-content: space-between;
}

.posts-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    padding: 1.15rem 1.25rem;
    transition: box-shadow 0.25s ease;
}

.post-card:hover {
    box-shadow: var(--shadow-soft);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.65rem;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--gradient-brand);
}

.avatar.avatar-sm {
    width: 28px;
    height: 28px;
    font-size: 0.68rem;
}

.post-meta {
    min-width: 0;
    flex: 1;
}

.post-author {
    font-weight: 600;
    font-size: 0.92rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-date {
    font-size: 0.74rem;
    color: var(--muted);
}

.post-message {
    font-size: 0.92rem;
    margin: 0 0 0.85rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: var(--text-soft);
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.likes-count {
    font-size: 0.78rem;
    color: var(--muted);
    margin-left: auto;
}

.btn-like-post.is-liked {
    color: var(--primary-dark);
    border-color: rgba(37, 99, 235, 0.35);
    background: rgba(37, 99, 235, 0.08);
    opacity: 1;
}

.btn-like-post.is-liked i {
    animation: pop 0.35s ease;
}

@keyframes pop {
    50% { transform: scale(1.35); }
}

.engagement-note {
    margin: 0.85rem 0 0;
    padding: 0.75rem 0.9rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(37, 99, 235, 0.16);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(219, 234, 254, 0.72));
    color: var(--text-soft);
    font-size: 0.76rem;
}

.engagement-note strong {
    color: var(--primary-dark);
}

.engagement-hint {
    font-size: 0.74rem;
    color: var(--muted);
}

.comments {
    margin-top: 0.75rem;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.comments-list:empty {
    display: none;
}

.comment {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
}

.comment-bubble {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.75rem;
    border-radius: 0.9rem;
    background: var(--surface-soft);
    border: 1px solid rgba(148, 163, 184, 0.22);
    font-size: 0.82rem;
}

.comment-head {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.comment-head strong {
    font-weight: 600;
    font-size: 0.8rem;
}

.comment-head small {
    color: var(--muted);
    font-size: 0.7rem;
}

.comment-text {
    margin: 0.1rem 0 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: var(--text-soft);
}

.comment-delete {
    margin-left: auto;
    border: 0;
    background: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0.1rem 0.3rem;
    border-radius: 0.4rem;
}

.comment-delete:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.08);
}

.comments-status {
    font-size: 0.75rem;
    color: var(--muted);
    margin: 0;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.7rem;
}

.comment-form textarea {
    width: 100%;
    border-radius: 0.8rem;
    border: 1px solid var(--line-strong);
    background: #ffffff;
    color: var(--text);
    padding: 0.5rem 0.75rem;
    font-size: 0.84rem;
    resize: vertical;
    min-height: 60px;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.comment-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.load-more-wrap {
    display: flex;
    justify-content: center;
}

/* ==================================================
   CONTACT
   ================================================== */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 1.25rem;
    align-items: start;
}

.contact-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    padding: 1.4rem;
    box-shadow: var(--shadow-soft);
}

.contact-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.contact-card > p {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 0.8rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: var(--surface-soft);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

a.contact-item:hover {
    border-color: rgba(37, 99, 235, 0.3);
    background: #eff6ff;
    transform: translateX(2px);
}

.contact-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 0.75rem;
    display: grid;
    place-items: center;
    background: #ffffff;
    border: 1px solid var(--line);
    color: var(--sky);
    flex-shrink: 0;
}

.contact-item-icon.is-whatsapp { color: #16a34a; }
.contact-item-icon.is-instagram { color: #db2777; }
.contact-item-icon.is-tiktok { color: #0f172a; }

.contact-item-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.contact-item-text small {
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact-item-text span {
    font-size: 0.88rem;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.steps {
    list-style: none;
    padding: 0;
    margin: 1.1rem 0 0;
    display: grid;
    gap: 0.5rem;
    counter-reset: step;
}

.steps li {
    counter-increment: step;
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 0.82rem;
    color: var(--text-soft);
}

.steps li::before {
    content: counter(step);
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--gradient-brand);
}

.request-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 0.75rem;
}

.request-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.request-actions .btn {
    flex: 1 1 200px;
}

.contact-card.is-highlighted {
    animation: highlight 1.6s ease;
}

@keyframes highlight {
    0%, 100% { box-shadow: var(--shadow-soft); }
    30% { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25), var(--shadow-soft); }
}

/* ==================================================
   ADMIN
   ================================================== */
.admin-zone {
    max-width: var(--container);
    margin: 1.25rem auto 0;
    padding: 0 var(--gutter);
}

.admin-zone-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.admin-zone-header i {
    color: #f59e0b;
}

.admin-zone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 1rem;
}

.admin-panel {
    margin-top: 1.25rem;
    padding: 1.1rem 1.2rem;
    border-radius: var(--radius-lg);
    border: 1px dashed rgba(245, 158, 11, 0.55);
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.85), rgba(255, 255, 255, 0.92));
    font-size: 0.85rem;
}

.admin-zone .admin-panel {
    margin-top: 0;
}

.admin-panel h4 {
    margin: 0 0 0.3rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-panel h4 i {
    color: #d97706;
}

.admin-panel-note {
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0 0 0.75rem;
}

.admin-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.admin-panel label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-soft);
    display: block;
    margin-bottom: 0.25rem;
}

.admin-panel input,
.admin-panel textarea {
    width: 100%;
    border-radius: 0.65rem;
    border: 1px solid var(--line-strong);
    background: #ffffff;
    color: var(--text);
    padding: 0.5rem 0.65rem;
    font-size: 0.84rem;
    resize: vertical;
}

.admin-panel input:focus,
.admin-panel textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.admin-panel input[type="file"] {
    padding: 0.35rem;
    font-size: 0.78rem;
}

.admin-panel textarea {
    min-height: 80px;
}

.admin-panel .form-actions {
    margin-top: 0.75rem;
}

.badge-admin {
    font-size: 0.72rem;
    font-weight: 500;
    color: #b45309;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.media-preview {
    width: 100%;
    height: 120px;
    border-radius: 0.65rem;
    border: 1px dashed var(--line-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--muted);
    overflow: hidden;
    background: #ffffff;
    text-align: center;
    padding: 0.25rem;
}

.media-preview img,
.media-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-preview.is-contain img {
    object-fit: contain;
}

.media-preview.is-small {
    height: 80px;
}

.media-preview.is-info {
    height: auto;
    min-height: 70px;
    padding: 0.7rem;
    text-align: left;
    justify-content: flex-start;
}

.banner-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.6rem;
    margin-top: 0.9rem;
}

.banner-list-item {
    position: relative;
    border-radius: 0.65rem;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #0f172a;
    aspect-ratio: 16 / 6;
}

.banner-list-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-list-item .btn {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
}

.banner-list .empty-state {
    padding: 0.8rem;
    font-size: 0.78rem;
}

#serviceDetailEditor {
    background: #ffffff;
    border-radius: 0 0 0.65rem 0.65rem;
    border: 1px solid var(--line-strong);
    min-height: 140px;
    font-family: inherit;
}

#serviceDetailToolbar {
    border-radius: 0.65rem 0.65rem 0 0;
    border: 1px solid var(--line-strong);
    border-bottom: none;
    background: #ffffff;
}

.editor-loading {
    padding: 1rem;
    color: var(--muted);
    font-size: 0.8rem;
}

/* ==================================================
   MODAL
   ================================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 100;
    animation: fade-in 0.2s ease;
}

.modal {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 1px solid var(--line);
    padding: 1.5rem;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.35);
    animation: modal-in 0.25s ease;
}

@keyframes fade-in {
    from { opacity: 0; }
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header h3 i {
    color: var(--primary);
}

.modal-intro {
    font-size: 0.82rem;
    color: var(--muted);
    margin: 0 0 1rem;
}

.close-btn {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1rem;
    cursor: pointer;
}

.close-btn:hover {
    background: rgba(148, 163, 184, 0.16);
    color: var(--text);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 2.6rem;
}

.password-toggle {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 0;
    background: none;
    color: var(--muted);
    cursor: pointer;
    border-radius: 0.5rem;
}

.password-toggle:hover {
    color: var(--text);
}

.form-error {
    margin: 0 0 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.7rem;
    background: #fef2f2;
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger-dark);
    font-size: 0.8rem;
}

.modal .btn-primary {
    width: 100%;
    margin-top: 0.25rem;
}

/* ==================================================
   TOAST
   ================================================== */
.toast {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    max-width: min(420px, calc(100vw - 2.4rem));
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: #f9fafb;
    padding: 0.7rem 1rem;
    border-radius: 0.9rem;
    font-size: 0.84rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    z-index: 110;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
    animation: toast-in 0.25s ease;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(10px); }
}

.toast i {
    font-size: 0.95rem;
}

.toast-success i { color: #4ade80; }
.toast-error i { color: #f87171; }
.toast-info i { color: #7dd3fc; }

/* ==================================================
   RETOUR EN HAUT
   ================================================== */
.back-to-top {
    position: fixed;
    left: 1.2rem;
    bottom: 1.2rem;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--text);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    z-index: 50;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    color: var(--primary);
}

/* ==================================================
   FOOTER
   ================================================== */
footer {
    margin-top: 2rem;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #cbd5e1;
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 2.5rem var(--gutter) 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.footer-brand p {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0.75rem 0 0;
    max-width: 360px;
}

.footer-brand .logo-text span:last-child {
    color: #ffffff;
}

.footer-col h4 {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #ffffff;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
    font-size: 0.85rem;
}

.footer-col a {
    color: #94a3b8;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: #ffffff;
}

.socials {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.socials a {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.socials a:hover {
    background: rgba(56, 189, 248, 0.2);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.footer-bottom-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 1rem var(--gutter) 1.25rem;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: #94a3b8;
}

/* ==================================================
   ANIMATIONS / REVEAL
   ================================================== */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ==================================================
   RESPONSIVE
   ================================================== */
@media (max-width: 1080px) {
    .nav-links a {
        padding: 0 0.7rem;
    }

    .user-badge {
        display: none;
    }
}

@media (max-width: 960px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        padding-top: 2.25rem;
        gap: 2rem;
    }

    .testimonials-layout,
    .contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .composer {
        position: static;
    }

    .footer-inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    header {
        padding: 0.7rem 0.75rem 0;
    }

    .nav {
        grid-template-columns: minmax(0, 1fr) auto;
        border-radius: 1.5rem;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-menu {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-content: stretch;
        gap: 0.8rem;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        visibility: hidden;
        transition: max-height 0.35s ease, opacity 0.25s ease, visibility 0.35s;
    }

    .nav.mobile-open .nav-menu {
        max-height: 80vh;
        opacity: 1;
        visibility: visible;
        overflow-y: auto;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        border-radius: 1.25rem;
        padding: 0.4rem;
    }

    .nav-links a {
        justify-content: flex-start;
        padding: 0.8rem 1rem;
    }

    .nav-links a i {
        display: inline-block;
    }

    .nav-links a::after {
        left: auto;
        right: 1rem;
        bottom: 50%;
        width: 6px;
        height: 6px;
        transform: translateY(50%) scale(0);
    }

    .nav-links a:hover::after,
    .nav-links a:focus-visible::after,
    .nav-links a.is-active::after {
        transform: translateY(50%) scale(1);
    }

    .nav-actions {
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 0.25rem;
    }

    .nav-actions .btn,
    .user-badge {
        display: inline-flex;
        width: 100%;
        max-width: none;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    :root {
        --gutter: 1rem;
        --header-offset: 5.75rem;
    }

    .logo-icon {
        width: 44px;
        height: 44px;
    }

    .logo-text span:first-child {
        font-size: 0.62rem;
        letter-spacing: 0.2em;
    }

    .logo-text span:last-child {
        font-size: 1.02rem;
    }

    .section {
        padding: 2.25rem var(--gutter);
    }

    .hero-cta .btn {
        flex: 1 1 100%;
    }

    .request-form .form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        max-width: none;
    }

    .back-to-top {
        bottom: 4.5rem;
        left: auto;
        right: 1rem;
    }
}
