/* ===================================================================
   Merkago — Design System (refonte premium)
   Police Inter chargée via website.layout (évite @import cassé dans le bundle Odoo)
   =================================================================== */

:root {
    --mg-primary: #2563EB;
    --mg-primary-dark: #1D4ED8;
    --mg-night: #0B1220;
    --mg-ink: #0F172A;
    --mg-slate: #64748B;
    --mg-mist: #F8FAFC;
    --mg-line: #E2E8F0;
    --mg-accent: #22C55E;
    --mg-radius: 16px;
    --mg-radius-sm: 10px;
    --mg-container: 1180px;
}

/* Base */
.merkago-site {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--mg-ink);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}
.merkago-site .container { max-width: var(--mg-container); }
.merkago-site h1, .merkago-site h2, .merkago-site h3, .merkago-site h4 {
    letter-spacing: -0.02em;
}

/* ---------- Header sticky ---------- */
#wrapwrap header#top {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
}
#wrapwrap.o-scrolled header#top,
#wrapwrap header#top.mg-scrolled {
    border-bottom-color: var(--mg-line);
}
.mg-brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--mg-ink) !important;
    text-decoration: none !important;
}
.mg-brand img { height: 30px; width: auto; }
.mg-nav-cta {
    background: var(--mg-primary);
    color: #fff !important;
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.2s;
}
.mg-nav-cta:hover { background: var(--mg-primary-dark); transform: translateY(-1px); }

/* ---------- Buttons ---------- */
.mg-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.9rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.mg-btn-primary {
    background: var(--mg-primary);
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.28);
}
.mg-btn-primary:hover {
    background: var(--mg-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.36);
}
.mg-btn-outline {
    border: 1.5px solid var(--mg-line);
    color: var(--mg-ink) !important;
    background: #fff;
}
.mg-btn-outline:hover { border-color: var(--mg-primary); color: var(--mg-primary) !important; transform: translateY(-2px); }
.mg-btn-light {
    background: #fff;
    color: var(--mg-primary) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.mg-btn-light:hover { transform: translateY(-2px); }
.mg-btn-lg { padding: 1rem 2.1rem; font-size: 1.05rem; }
.mg-btn-ghost {
    border: 1.5px solid rgba(255,255,255,0.25);
    color: #fff !important;
    background: transparent;
}
.mg-btn-ghost:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }

/* ---------- Sections ---------- */
.mg-section { padding: 6rem 0; }
.mg-section-tight { padding: 4rem 0; }
.mg-section-alt { background: var(--mg-mist); }
.mg-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mg-primary);
    margin-bottom: 0.75rem;
}
.mg-section-title {
    font-size: clamp(1.9rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--mg-ink);
}
.mg-section-sub {
    color: var(--mg-slate);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 620px;
}
.text-center .mg-section-sub { margin-left: auto; margin-right: auto; }

/* ---------- Hero premium ---------- */
.mg-hero-premium {
    position: relative;
    overflow: hidden;
    background: #fff;
    padding: 7rem 0 6rem;
}
.mg-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37,99,235,0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 70%);
}
.mg-hero-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 65%);
    pointer-events: none;
}
.mg-hero-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.mg-pill {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: var(--mg-mist);
    border: 1px solid var(--mg-line);
    color: var(--mg-slate);
}
.mg-pill-live {
    background: #EFF6FF;
    border-color: #BFDBFE;
    color: var(--mg-primary);
}
.mg-pill-live::before {
    content: "";
    display: inline-block;
    width: 6px; height: 6px;
    background: var(--mg-accent);
    border-radius: 50%;
    margin-right: 0.4rem;
    vertical-align: middle;
    animation: mg-pulse 2s infinite;
}
@keyframes mg-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.mg-gradient-text {
    background: linear-gradient(135deg, var(--mg-primary) 0%, #7C3AED 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mg-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 2.5rem;
}
.mg-metric {
    background: #fff;
    border: 1px solid var(--mg-line);
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    min-width: 100px;
    box-shadow: 0 4px 16px rgba(15,23,42,0.04);
}
.mg-metric-val {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--mg-ink);
    line-height: 1.1;
}
.mg-metric-val span { font-size: 0.9rem; font-weight: 600; color: var(--mg-slate); }
.mg-metric-lbl { font-size: 0.78rem; color: var(--mg-slate); font-weight: 500; }

/* Browser mockup */
.mg-browser {
    border-radius: 14px;
    border: 1px solid var(--mg-line);
    background: #fff;
    box-shadow: 0 40px 80px -24px rgba(15,23,42,0.22), 0 0 0 1px rgba(255,255,255,0.8) inset;
    overflow: hidden;
}
.mg-browser-link {
    display: block;
    text-decoration: none !important;
    color: inherit;
    transition: transform 0.25s;
}
.mg-browser-link:hover { transform: translateY(-4px); }
.mg-browser-link:hover .mg-browser { box-shadow: 0 28px 64px rgba(15, 23, 42, 0.14); }

.mg-browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.75rem 1rem;
    background: var(--mg-mist);
    border-bottom: 1px solid var(--mg-line);
}
.mg-browser-bar span {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #CBD5E1;
}
.mg-browser-bar span:first-child { background: #FCA5A5; }
.mg-browser-bar span:nth-child(2) { background: #FDE68A; }
.mg-browser-bar span:nth-child(3) { background: #86EFAC; }
.mg-browser-url {
    flex: 1;
    margin-left: 0.75rem;
    font-size: 0.75rem;
    color: var(--mg-slate);
    background: #fff;
    border: 1px solid var(--mg-line);
    border-radius: 6px;
    padding: 0.25rem 0.65rem;
    text-align: center;
}
.mg-browser-body { padding: 0; line-height: 0; }
.mg-browser-body .mg-hero-visual {
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
}

/* ---------- Photos (cadres & vignettes) ---------- */
.mg-photo-frame {
    border-radius: var(--mg-radius);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    border: 1px solid var(--mg-line);
    line-height: 0;
}
.mg-photo-frame img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.mg-photo-frame-lg img { min-height: 280px; object-fit: cover; }
.mg-photo-frame-dark {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35);
}
.mg-card-with-photo { padding: 0; overflow: hidden; }
.mg-card-with-photo .mg-card-body {
    padding: 1.75rem 2rem 2.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.mg-card-photo {
    height: 168px;
    overflow: hidden;
    border-bottom: 1px solid var(--mg-line);
}
.mg-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.mg-card-with-photo:hover .mg-card-photo img { transform: scale(1.04); }
.mg-showcase-with-photo { padding: 0; overflow: hidden; }
.mg-showcase-photo {
    height: 180px;
    overflow: hidden;
    border-bottom: 1px solid var(--mg-line);
}
.mg-showcase-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.mg-showcase-with-photo:hover .mg-showcase-photo img { transform: scale(1.04); }
.mg-showcase-body { padding: 1.75rem 2rem 2rem; }
.mg-showcase-with-photo .mg-showcase-tag { margin-top: 0; }
.mg-showcase-accent .mg-showcase-photo { border-bottom-color: rgba(37, 99, 235, 0.15); }

/* ---------- International SEO section ---------- */
.mg-international {
    background: linear-gradient(180deg, #fff 0%, #F8FAFF 100%);
    border-top: 1px solid var(--mg-line);
    border-bottom: 1px solid var(--mg-line);
}
.mg-regions-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.mg-regions-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.mg-region-tag {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--mg-primary);
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 8px;
    padding: 0.35rem 0.55rem;
    min-width: 42px;
    text-align: center;
}
.mg-regions-list strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.15rem;
    color: var(--mg-ink);
}
.mg-regions-list p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--mg-slate);
    line-height: 1.5;
}
.mg-regions-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.mg-region-card {
    background: #fff;
    border: 1px solid var(--mg-line);
    border-radius: var(--mg-radius);
    padding: 1.35rem;
    transition: box-shadow 0.25s, transform 0.25s;
}
.mg-region-card:hover {
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    transform: translateY(-3px);
}
.mg-region-card-accent {
    border-color: rgba(37, 99, 235, 0.25);
    background: linear-gradient(160deg, #fff, #EFF6FF);
}
.mg-region-num {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--mg-primary);
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}
.mg-region-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}
.mg-region-card p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--mg-slate);
}

/* ---------- Logos marquee ---------- */
.mg-logos-band {
    padding: 2.5rem 0;
    border-top: 1px solid var(--mg-line);
    border-bottom: 1px solid var(--mg-line);
    background: #fff;
}
.mg-logos-label {
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mg-slate);
    margin-bottom: 1.5rem;
}
.mg-marquee-wrap { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mg-marquee { overflow: hidden; }
.mg-marquee-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: max-content;
    animation: mg-marquee 35s linear infinite;
}
.mg-marquee-track img {
    height: 36px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.55;
    transition: filter 0.3s, opacity 0.3s;
}
.mg-marquee-track img:hover { filter: grayscale(0%); opacity: 1; }
@keyframes mg-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---------- Process ---------- */
.mg-process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.mg-process-step {
    background: #fff;
    border: 1px solid var(--mg-line);
    border-radius: var(--mg-radius);
    padding: 1.75rem;
    transition: box-shadow 0.25s, transform 0.25s;
}
.mg-process-step:hover {
    box-shadow: 0 16px 40px rgba(15,23,42,0.08);
    transform: translateY(-4px);
}
.mg-process-num {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--mg-primary);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}
.mg-process-step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.mg-process-step p { color: var(--mg-slate); font-size: 0.92rem; margin: 0; }

/* ---------- Stats band dark ---------- */
.mg-stats-band {
    background: linear-gradient(135deg, var(--mg-night) 0%, #1E293B 100%);
    padding: 3.5rem 0;
}
.mg-stats-dark .mg-stat-value { color: #fff; }
.mg-stats-dark .mg-stat-label { color: #94A3B8; }

/* ---------- Showcase cards ---------- */
.mg-showcase {
    display: block;
    background: #fff;
    border: 1px solid var(--mg-line);
    border-radius: var(--mg-radius);
    padding: 2rem;
    height: 100%;
    text-decoration: none !important;
    color: inherit;
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.mg-showcase:hover {
    box-shadow: 0 20px 48px rgba(15,23,42,0.10);
    transform: translateY(-6px);
    border-color: transparent;
}
.mg-showcase-accent {
    background: linear-gradient(145deg, #EFF6FF, #F8FAFC);
    border-color: #BFDBFE;
}
.mg-showcase-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--mg-primary);
    background: #DBEAFE;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.mg-showcase h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--mg-ink); }
.mg-showcase p { color: var(--mg-slate); font-size: 0.95rem; margin-bottom: 1.25rem; }
.mg-showcase-link { color: var(--mg-primary); font-weight: 600; font-size: 0.92rem; }

/* ---------- Pourquoi Merkago (premium) ---------- */
.mg-why-intro {
    color: var(--mg-slate);
    font-size: 1.1rem;
    max-width: 540px;
    line-height: 1.65;
}
.mg-why-stats-row {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}
.mg-why-stats-row div {
    background: #fff;
    border: 1px solid var(--mg-line);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    text-align: center;
    min-width: 90px;
    box-shadow: 0 4px 16px rgba(15,23,42,0.04);
}
.mg-why-stats-row strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--mg-primary);
    line-height: 1.1;
}
.mg-why-stats-row span {
    font-size: 0.75rem;
    color: var(--mg-slate);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.mg-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.mg-why-card {
    background: #fff;
    border: 1px solid var(--mg-line);
    border-radius: var(--mg-radius);
    padding: 1.75rem;
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
    height: 100%;
}
.mg-why-card:hover {
    box-shadow: 0 20px 48px rgba(15,23,42,0.08);
    transform: translateY(-4px);
    border-color: transparent;
}
.mg-why-card-featured {
    border-color: rgba(37,99,235,0.25);
    background: linear-gradient(160deg, #fff 0%, #F8FAFF 100%);
}
.mg-why-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.mg-why-num {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--mg-slate);
    letter-spacing: 0.06em;
    opacity: 0.6;
}
.mg-why-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
}
.mg-why-icon svg { width: 22px; height: 22px; }
.mg-why-icon.blue { background: #DBEAFE; color: var(--mg-primary); }
.mg-why-icon.green { background: #DCFCE7; color: #16A34A; }
.mg-why-icon.purple { background: #EDE9FE; color: #7C3AED; }
.mg-why-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
    color: var(--mg-ink);
}
.mg-why-card p {
    color: var(--mg-slate);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}
.mg-why-tags {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.mg-why-tags li {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--mg-primary);
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
}

/* ---------- Bento (legacy) ---------- */
.mg-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1.25rem;
}
.mg-bento-cell {
    background: #fff;
    border: 1px solid var(--mg-line);
    border-radius: var(--mg-radius);
    padding: 1.75rem;
    transition: box-shadow 0.2s;
}
.mg-bento-cell:hover { box-shadow: 0 12px 32px rgba(15,23,42,0.07); }
.mg-bento-lg { grid-row: span 2; padding: 2.25rem; }
.mg-bento-wide { grid-column: span 2; display: flex; align-items: center; gap: 1rem; }
.mg-bento-wide h4 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.mg-bento-icon {
    width: 44px; height: 44px;
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
}
.mg-bento-icon svg { width: 22px; height: 22px; }
.mg-bento-icon.blue { background: #DBEAFE; color: var(--mg-primary); }
.mg-bento-icon.green { background: #DCFCE7; color: #16A34A; }
.mg-bento-lg h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.65rem; }
.mg-bento-lg p { color: var(--mg-slate); margin: 0; }
.mg-bento-cell h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.mg-bento-cell p { color: var(--mg-slate); font-size: 0.88rem; margin: 0; }

/* ---------- Testimonials premium ---------- */
.mg-quote-premium { position: relative; padding-top: 2.5rem; }
.mg-quote-mark {
    position: absolute;
    top: 1rem; left: 1.5rem;
    font-size: 3rem;
    line-height: 1;
    font-weight: 800;
    color: #DBEAFE;
    font-family: Georgia, serif;
}
.mg-quote-footer {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--mg-line);
}
.mg-quote-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mg-primary), #7C3AED);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* ---------- CTA premium ---------- */
.mg-cta-premium { position: relative; overflow: hidden; padding: 6rem 0; }
.mg-cta-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(37,99,235,0.25), transparent);
    pointer-events: none;
}

/* ---------- Hero (legacy compat) ---------- */
.mg-hero {
    background:
        radial-gradient(1200px 500px at 80% -10%, rgba(37, 99, 235, 0.10), transparent 60%),
        var(--mg-mist);
    padding: 6rem 0 5rem;
}
.mg-hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.08;
    color: var(--mg-ink);
    margin-bottom: 1.25rem;
}
.mg-hero .lead {
    font-size: 1.2rem;
    color: var(--mg-slate);
    max-width: 520px;
    margin-bottom: 2rem;
}
.mg-hero-visual {
    border-radius: var(--mg-radius);
    box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.28);
    width: 100%;
    height: auto;
}
/* Trust bar */
.mg-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--mg-line);
}
.mg-trust-item { display: flex; align-items: center; gap: 0.5rem; color: var(--mg-slate); font-size: 0.92rem; font-weight: 500; }
.mg-trust-item strong { color: var(--mg-ink); font-weight: 700; }
.mg-stars { color: #F59E0B; letter-spacing: 1px; }

/* ---------- Cards services ---------- */
.mg-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.mg-card {
    background: #fff;
    border-radius: var(--mg-radius);
    padding: 2.25rem;
    border: 1px solid var(--mg-line);
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
    display: flex;
    flex-direction: column;
}
.mg-card:hover {
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.10);
    transform: translateY(-5px);
    border-color: transparent;
}
.mg-card.mg-card-featured {
    border-color: var(--mg-primary);
    box-shadow: 0 18px 44px rgba(37, 99, 235, 0.14);
}
.mg-card-badge {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mg-primary);
    background: #DBEAFE;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 0.9rem;
}
.mg-icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.mg-icon svg { width: 26px; height: 26px; }
.mg-icon.blue { background: #DBEAFE; color: var(--mg-primary); }
.mg-icon.grey { background: #EEF2F6; color: var(--mg-ink); }
.mg-icon.green { background: #DCFCE7; color: #16A34A; }
.mg-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.6rem; }
.mg-card p { color: var(--mg-slate); margin-bottom: 1.25rem; flex-grow: 1; }
.mg-card-link {
    color: var(--mg-primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.2s;
}
.mg-card:hover .mg-card-link { gap: 0.6rem; }

/* ---------- Stats band ---------- */
.mg-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}
.mg-stat-value { font-size: 2.5rem; font-weight: 800; color: var(--mg-primary); line-height: 1; }
.mg-stat-label { color: var(--mg-slate); font-size: 0.95rem; margin-top: 0.5rem; }

/* ---------- Why (grid 3x2) ---------- */
.mg-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem 2rem; }
.mg-why-item { display: flex; gap: 0.9rem; }
.mg-why-ic {
    width: 40px; height: 40px; border-radius: 10px;
    background: #DBEAFE; color: var(--mg-primary);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mg-why-ic svg { width: 20px; height: 20px; }
.mg-why-item h4 { font-size: 1.05rem; font-weight: 700; margin: 0 0 0.2rem; }
.mg-why-item p { color: var(--mg-slate); font-size: 0.92rem; margin: 0; }

/* ---------- Dark feature section ---------- */
.mg-dark {
    background: var(--mg-night);
    color: #E2E8F0;
    padding: 6rem 0;
    border-radius: 0;
}
.mg-dark .mg-section-title { color: #fff; }
.mg-dark .mg-section-sub { color: #94A3B8; }
.mg-feature-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--mg-radius);
    padding: 2.5rem;
}
.mg-feature-card h3 { color: #fff; font-weight: 700; font-size: 1.5rem; margin-bottom: 0.75rem; }
.mg-feature-card p { color: #94A3B8; }
.mg-badge-apps {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(34, 197, 94, 0.15); color: #4ADE80;
    font-weight: 600; font-size: 0.85rem;
    padding: 0.4rem 0.9rem; border-radius: 999px; margin-bottom: 1.25rem;
}
.mg-badge-ai {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: rgba(124, 58, 237, 0.2); color: #C4B5FD;
    font-weight: 600; font-size: 0.82rem;
    padding: 0.35rem 0.85rem; border-radius: 999px;
    margin-left: 0.5rem; margin-bottom: 1.25rem;
}
.mg-feature-list {
    list-style: none; padding: 0; margin: 0;
}
.mg-feature-list li {
    color: #94A3B8; font-size: 0.95rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex; align-items: flex-start; gap: 0.5rem;
}
.mg-feature-list li:last-child { border-bottom: none; }
.mg-feature-list strong { color: #E2E8F0; }
.mg-live-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #4ADE80; flex-shrink: 0; margin-top: 0.45rem;
    animation: mg-pulse 2s infinite;
}
.mg-dark .mg-btn-ghost { margin-top: 0; }

/* ---------- Testimonials ---------- */
.mg-quote {
    background: #fff;
    border: 1px solid var(--mg-line);
    border-radius: var(--mg-radius);
    padding: 2rem;
    height: 100%;
}
.mg-quote-stars { color: #F59E0B; margin-bottom: 1rem; letter-spacing: 2px; }
.mg-quote p { font-size: 1.05rem; color: var(--mg-ink); margin-bottom: 1.25rem; }
.mg-quote-author { font-weight: 700; }
.mg-quote-role { color: var(--mg-slate); font-size: 0.9rem; }

/* ---------- Clients ---------- */
.mg-clients {
    display: flex; flex-wrap: wrap; gap: 2.5rem 3.5rem;
    align-items: center; justify-content: center; padding: 0.5rem 0;
}
.mg-client-logo { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; height: 48px; }
.mg-client-logo img {
    max-height: 42px; max-width: 130px; width: auto; height: auto; object-fit: contain;
    filter: grayscale(100%); opacity: 0.6;
    transition: filter 0.25s, opacity 0.25s;
}
.mg-client-logo:hover img { filter: grayscale(0%); opacity: 1; }

/* ---------- CTA ---------- */
.mg-cta { background: var(--mg-night); color: #fff; padding: 5rem 0; text-align: center; }
.mg-cta h2 { font-weight: 800; font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 0.75rem; }
.mg-cta p { color: #94A3B8; margin-bottom: 2rem; font-size: 1.1rem; }
.mg-cta-actions { display: flex; gap: 1rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.mg-cta-actions a.mg-link-light { color: #fff; font-weight: 600; text-decoration: none; opacity: 0.9; }
.mg-cta-actions a.mg-link-light:hover { opacity: 1; }
.mg-cta-note { color: #64748B; font-size: 0.9rem; margin-top: 1.25rem; }

/* ---------- Service page hero ---------- */
.mg-page-hero {
    background:
        radial-gradient(900px 400px at 85% -20%, rgba(37, 99, 235, 0.10), transparent 60%),
        var(--mg-mist);
    padding: 5rem 0 3.5rem;
}
.mg-page-hero h1 { font-weight: 800; font-size: clamp(2.2rem, 4.5vw, 3rem); margin-bottom: 0.75rem; }
.mg-page-hero .lead { color: var(--mg-slate); font-size: 1.2rem; max-width: 640px; }
.mg-service-list { list-style: none; padding: 0; }
.mg-service-list li {
    padding: 0.65rem 0 0.65rem 2rem; position: relative; color: var(--mg-ink);
    border-bottom: 1px solid var(--mg-line);
}
.mg-service-list li::before {
    content: ""; position: absolute; left: 0; top: 1rem;
    width: 18px; height: 18px; border-radius: 50%;
    background: #DBEAFE url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Realisations cards ---------- */
.mg-proj { background: #fff; border: 1px solid var(--mg-line); border-radius: var(--mg-radius); overflow: hidden; transition: box-shadow 0.25s, transform 0.25s; height: 100%; display: flex; flex-direction: column; }
.mg-proj:hover { box-shadow: 0 18px 44px rgba(15, 23, 42, 0.10); transform: translateY(-5px); }
.mg-proj-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.mg-proj-body h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.65rem; }
.mg-proj-body p { color: var(--mg-slate); font-size: 0.95rem; margin-bottom: 1rem; }
.mg-proj .badge { font-weight: 600; }
.mg-proj-thumb { height: 160px; display: flex; align-items: center; justify-content: center; background: var(--mg-mist); overflow: hidden; }
.mg-proj-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mg-proj-thumb .mg-proj-logo { width: auto; height: 56px; object-fit: contain; padding: 1rem; }
.mg-proj-thumb-blue { background: linear-gradient(135deg, #DBEAFE, #EFF6FF); }
.mg-proj-thumb-green { background: linear-gradient(135deg, #DCFCE7, #F0FDF4); }
.mg-proj-thumb-purple { background: linear-gradient(135deg, #EDE9FE, #F5F3FF); }
.mg-proj-icon { font-size: 2rem; font-weight: 800; color: var(--mg-primary); letter-spacing: -0.04em; }
.mg-proj-thumb-green .mg-proj-icon { color: #16A34A; }
.mg-proj-thumb-purple .mg-proj-icon { color: #7C3AED; }
.mg-proj-tags { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.mg-proj-tags li { font-size: 0.75rem; font-weight: 600; color: var(--mg-slate); background: var(--mg-mist); border: 1px solid var(--mg-line); border-radius: 999px; padding: 0.2rem 0.65rem; }
.mg-proj-featured { border-color: rgba(37, 99, 235, 0.2); }
.mg-proj-client { font-size: 0.88rem !important; margin-bottom: 0.75rem !important; }
.mg-proj-note { font-size: 0.85rem; margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--mg-line); }
.mg-version-badges { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.mg-version-badge { font-size: 0.8rem; font-weight: 700; color: var(--mg-primary); background: #DBEAFE; border-radius: 999px; padding: 0.35rem 0.9rem; letter-spacing: 0.02em; }

/* ---------- Odoo services page ---------- */
.mg-odoo-logo { height: 36px; width: auto; }
.mg-odoo-ecosystem { max-width: 320px; border-radius: var(--mg-radius); }
.mg-contact-inline { list-style: none; padding: 0; margin: 0 0 0.5rem; }
.mg-contact-inline li { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.65rem; color: var(--mg-slate); }
.mg-contact-inline a { color: var(--mg-primary); text-decoration: none; font-weight: 600; }
.mg-contact-inline a:hover { text-decoration: underline; }
.mg-contact-inline svg { color: var(--mg-primary); flex-shrink: 0; }

/* ---------- Footer ---------- */
.mg-footer { background: var(--mg-night); color: #94A3B8; padding: 4.5rem 0 3rem; }
.mg-footer-brand { display: inline-flex; align-items: center; gap: 0.55rem; color: #fff !important; font-weight: 800; font-size: 1.35rem; text-decoration: none !important; margin-bottom: 1rem; }
.mg-footer-brand img { height: 30px; }
.mg-footer-pitch { color: #94A3B8; font-size: 0.95rem; max-width: 320px; margin-bottom: 1.25rem; }
.mg-footer-title { color: #fff; font-size: 0.95rem; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.04em; }
.mg-footer-links, .mg-footer-contact { list-style: none; padding: 0; margin: 0; }
.mg-footer-links li, .mg-footer-contact li { margin-bottom: 0.7rem; }
.mg-footer-links a { color: #94A3B8; text-decoration: none; transition: color 0.2s; }
.mg-footer-links a:hover { color: #fff; }
.mg-footer-contact li { display: flex; align-items: center; gap: 0.6rem; color: #94A3B8; }
.mg-footer-contact a { color: #94A3B8; text-decoration: none; transition: color 0.2s; }
.mg-footer-contact a:hover { color: #fff; }
.mg-footer-contact svg { color: var(--mg-primary); flex-shrink: 0; }
.mg-footer-cta { margin-top: 0.75rem; padding: 0.6rem 1.3rem; font-size: 0.92rem; }
.mg-footer-social { display: flex; gap: 0.6rem; }
.mg-footer-social a {
    width: 38px; height: 38px; border-radius: 10px;
    background: rgba(255, 255, 255, 0.06); color: #CBD5E1;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.mg-footer-social a:hover { background: var(--mg-primary); color: #fff; }

/* Copyright bar */
footer .o_footer_copyright { background: var(--mg-night); border-top: 1px solid rgba(255,255,255,0.08); }
footer .o_footer_copyright .text-muted, footer .o_footer_copyright span { color: #64748B !important; }
footer .o_footer_copyright a { color: #94A3B8 !important; }

/* Masquer la promo Odoo "free website" */
.o_brand_promotion { display: none !important; }

/* Masquer éléments header Odoo par défaut (Sign in, Contact Us, recherche) */
header .o_no_autohide_item,
header a.btn_cta,
header a[href="/web/login"],
header a[href*="/web/login"],
header #o_search_modal,
header .o_header_search,
header .o_search_modal,
header button[data-bs-target="#o_search_modal"],
header .oi-search { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .mg-cards-grid { grid-template-columns: 1fr; }
    .mg-why-grid { grid-template-columns: 1fr 1fr; }
    .mg-stats { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
    .mg-process { grid-template-columns: 1fr 1fr; }
    .mg-bento { grid-template-columns: 1fr 1fr; }
    .mg-bento-lg { grid-row: span 1; }
    .mg-bento-wide { grid-column: span 2; }
    .mg-why-grid { grid-template-columns: 1fr 1fr; }
    .mg-why-stats-row { justify-content: flex-start; }
}
@media (max-width: 767px) {
    .mg-section { padding: 4rem 0; }
    .mg-dark, .mg-cta { padding: 4rem 0; }
    .mg-hero-premium { padding: 4rem 0 3.5rem; text-align: center; }
    .mg-hero-premium .lead { margin-left: auto; margin-right: auto; }
    .mg-hero-actions { justify-content: center; }
    .mg-metrics { justify-content: center; }
    .mg-browser { margin-top: 2rem; }
    .mg-process { grid-template-columns: 1fr; }
    .mg-bento { grid-template-columns: 1fr; }
    .mg-bento-wide { grid-column: span 1; flex-direction: column; align-items: flex-start; }
    .mg-why-grid { grid-template-columns: 1fr; }
    .mg-why-stats-row { flex-wrap: wrap; }
    .mg-why-intro { max-width: none; }
    .mg-regions-visual { grid-template-columns: 1fr; }
    .mg-why-grid { grid-template-columns: 1fr; }
    .mg-btn { width: 100%; justify-content: center; }
    .mg-hero-actions .mg-btn { width: auto; }
}
@media (max-width: 575px) {
    .mg-stats { grid-template-columns: 1fr 1fr; }
    .mg-hero-actions .mg-btn { width: 100%; }
}
