/*
Theme Name: Magnet Digital Solution
Theme URI: https://magnetdigitalsolution.com/
Author: Magnet Digital Solution
Author URI: https://magnetdigitalsolution.com/
Description: Thème WordPress professionnel multi-pages pour Magnet Digital Solution (Toamasina, Madagascar) : création de site web, hébergement et email professionnel. Les pages Accueil, Services, Réalisations possibles, Offres et suivi et Contact sont créées automatiquement à l'activation. Compatible Elementor.
Version: 2.0.1
Requires at least: 5.8
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: magnet-digital-solution
Tags: business, custom-logo, custom-menu, featured-images, one-column
*/

/* ==========================================================================
   1. Variables
   ========================================================================== */
:root {
    --navy: #0B1F3A;
    --night: #061428;
    --steel: #17406E;
    --orange: #FF5A36;
    --orange-hi: #FF7352;
    --orange-ink: #C23A17;
    --mist: #F4F7FB;
    --line: #E3E9F1;
    --ink: #1D2B3F;
    --muted: #586A82;
    --wa: #25D366;
    --wa-hi: #3BE07B;
    --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --container: 1200px;
    --header-h: 80px;
    --r-lg: 28px;
    --r-md: 18px;
    --r-sm: 12px;
    --shadow: 0 10px 30px rgba(11, 31, 58, .10);
    --shadow-lg: 0 24px 60px rgba(6, 20, 40, .22);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

html.nav-open body { overflow: hidden; }

img, video { max-width: 100%; height: auto; }
svg { max-width: 100%; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

h1, h2, h3, h4 {
    margin: 0 0 .5em;
    font-family: var(--font);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.02em;
    color: var(--navy);
}
h1 { font-weight: 800; letter-spacing: -.035em; }
h1, h2, h3 { text-wrap: balance; }
h2 { font-size: clamp(1.85rem, 2.4vw + 1rem, 2.85rem); }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: middle; }

.sr-only,
.screen-reader-text {
    position: absolute !important;
    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; left: 16px; top: -80px; z-index: 200;
    padding: 12px 18px;
    border-radius: 10px;
    background: var(--orange);
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ==========================================================================
   3. Mise en page
   ========================================================================== */
.container { width: min(100% - 40px, var(--container)); margin-left: auto; margin-right: auto; }
.container--narrow { width: min(100% - 40px, 820px); }

.section { padding: clamp(64px, 8vw, 112px) 0; }
.section--soft { background: var(--mist); }

.lead {
    max-width: 60ch;
    font-size: clamp(1.05rem, 1.2vw + .8rem, 1.25rem);
    line-height: 1.6;
    color: var(--muted);
}

.section-head { max-width: 720px; margin: 0 0 clamp(36px, 5vw, 56px); }

.split-head {
    display: flex; flex-wrap: wrap;
    align-items: flex-end; justify-content: space-between;
    gap: 24px 40px;
    margin-bottom: clamp(32px, 4vw, 48px);
}
.split-head .lead { margin: 0; }
.split-head h2 { margin-bottom: .3em; }

.link-strong {
    font-weight: 700;
    color: var(--orange-ink);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
    white-space: nowrap;
}
.link-strong:hover { color: var(--navy); }

.fineprint { margin: 0; font-size: .88rem; color: var(--muted); }
.fineprint a { color: inherit; text-decoration: underline; }

/* ==========================================================================
   4. Boutons
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .6em;
    padding: 14px 26px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
    text-align: center; text-decoration: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background-color .2s, color .2s, border-color .2s;
}
.btn .icon { width: 1.25em; height: 1.25em; }
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--orange); color: var(--navy); box-shadow: 0 8px 22px rgba(255, 90, 54, .32); }
.btn--primary:hover { background: var(--orange-hi); }
.btn--wa { background: var(--wa); color: var(--navy); box-shadow: 0 8px 22px rgba(37, 211, 102, .28); }
.btn--wa:hover { background: var(--wa-hi); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--steel); }
.btn--outline { border-color: var(--navy); background: transparent; color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .42); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: #fff; color: var(--navy); }
.btn--lg { padding: 17px 32px; font-size: 1.05rem; }
.btn--sm { padding: 11px 20px; font-size: .95rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }

/* ==========================================================================
   5. Barre d'informations + en-tête
   ========================================================================== */
.topbar { position: relative; z-index: 60; background: var(--night); color: #AFC0D6; font-size: .875rem; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 42px; }
.topbar-links, .topbar-side { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
.topbar a, .topbar-place { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .icon { width: 1rem; height: 1rem; color: var(--orange); }

.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a {
    display: grid; place-items: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    transition: background-color .2s, color .2s;
}
.social a:hover { background: var(--orange); color: var(--navy); }
.social .icon { width: 1.05rem; height: 1.05rem; color: inherit; }
.topbar .social a { width: 28px; height: 28px; background: transparent; color: #AFC0D6; }
.topbar .social a:hover { color: var(--orange); background: transparent; }
.social--dark a { background: var(--mist); color: var(--navy); }
.social--dark a:hover { background: var(--orange); color: var(--navy); }

.site-header {
    position: sticky; top: 0; z-index: 50;
    height: var(--header-h);
    margin-bottom: calc(var(--header-h) * -1);
    color: #fff;
    transition: background-color .25s, box-shadow .25s, color .25s;
}
.admin-bar .site-header { top: 32px; }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }

.site-header.is-stuck,
.wp-custom-logo .site-header,
.mds-builder .site-header,
html.nav-open .site-header {
    background: #fff;
    color: var(--navy);
    box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(11, 31, 58, .06);
}
.mds-builder .site-header { margin-bottom: 0; }

.brand { --tip: #E3EAF5; display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-body { fill: var(--orange); }
.brand-tip { fill: var(--tip); }
.brand-text { display: grid; line-height: 1; }
.brand-text strong { font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; }
.brand-text small { margin-top: 4px; font-size: .74rem; font-weight: 600; letter-spacing: .02em; opacity: .8; }
.site-header.is-stuck .brand,
.wp-custom-logo .site-header .brand,
.mds-builder .site-header .brand,
html.nav-open .site-header .brand { --tip: var(--navy); }
.brand--footer { color: #fff; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { width: auto; max-height: 52px; }

.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav .menu { display: flex; align-items: center; gap: 4px; }
.main-nav .menu a {
    display: block;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: .97rem; font-weight: 600;
    color: inherit; text-decoration: none; opacity: .92;
    transition: background-color .2s, color .2s, opacity .2s;
}
.main-nav .menu a:hover { background: rgba(255, 255, 255, .12); opacity: 1; }
.main-nav .menu .current-menu-item > a,
.main-nav .menu .current_page_item > a { background: rgba(255, 255, 255, .14); opacity: 1; }
.site-header.is-stuck .menu a:hover,
.wp-custom-logo .site-header .menu a:hover,
.mds-builder .site-header .menu a:hover { background: var(--mist); }
.site-header.is-stuck .menu .current-menu-item > a,
.wp-custom-logo .site-header .menu .current-menu-item > a,
.mds-builder .site-header .menu .current-menu-item > a { background: rgba(255, 90, 54, .12); color: var(--orange-ink); }

.nav-toggle { display: none; }

/* Sous-menus (si vous en ajoutez dans Apparence > Menus) */
.main-nav .menu li { position: relative; }
.main-nav .sub-menu {
    position: absolute; left: 0; top: 100%; z-index: 10;
    min-width: 230px; padding: 8px;
    border-radius: 16px; background: #fff;
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
.main-nav .menu li:hover > .sub-menu,
.main-nav .menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { color: var(--navy); border-radius: 10px; }
.main-nav .sub-menu a:hover { background: var(--mist); }

/* ==========================================================================
   6. Accueil : hero
   ========================================================================== */
.hero {
    position: relative; overflow: hidden;
    padding: calc(var(--header-h) + clamp(40px, 6vw, 84px)) 0 clamp(150px, 14vw, 190px);
    color: #fff;
    background:
        radial-gradient(900px 520px at 85% 18%, rgba(255, 90, 54, .20), transparent 60%),
        radial-gradient(700px 480px at 0% 100%, rgba(61, 128, 214, .22), transparent 60%),
        linear-gradient(135deg, var(--navy) 0%, #0D2A4E 55%, var(--steel) 100%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(28px, 5vw, 72px); align-items: center; }

.hero-tag {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 0 0 22px;
    padding: 7px 14px 7px 12px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    font-size: .9rem; font-weight: 600; color: #E6EDF8;
}
.hero-tag .icon { width: 1rem; height: 1rem; color: var(--orange); }
.hero h1 { margin-bottom: .4em; font-size: clamp(2.45rem, 4.6vw + 1rem, 4.5rem); line-height: 1.02; color: #fff; }
.hero-lead { max-width: 34em; margin-bottom: 32px; font-size: clamp(1.08rem, .9vw + .9rem, 1.3rem); color: #C9D6E8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin: 18px 0 0; font-size: .95rem; color: #9DB0CB; }

.hero-art {
    position: relative;
    width: 100%; max-width: 580px; margin-left: auto;
    aspect-ratio: 600 / 540;
    font-size: clamp(11px, 2.5vw, 15px);
    background:
        url(assets/img/field.svg) center top / 100% auto no-repeat,
        radial-gradient(circle at 50% 48%, rgba(255, 90, 54, .30), transparent 56%);
}
.hero-magnet { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.chips { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.chip { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); }
.chip-in {
    display: inline-flex; align-items: center; gap: .55em;
    padding: .5em 1em .5em .5em;
    border-radius: 999px;
    background: #fff; color: var(--navy);
    font-size: 1em; font-weight: 700; white-space: nowrap;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
    animation: attract .95s cubic-bezier(.22, .9, .3, 1) both;
    animation-delay: calc(.4s + var(--i) * .11s);
}
.chip-ico { display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; background: rgba(255, 90, 54, .14); color: var(--orange-ink); }
.chip-ico .icon { width: 1.1em; height: 1.1em; }
@keyframes attract {
    from { opacity: 0; transform: translate(var(--fx), var(--fy)) scale(.9); }
    to { opacity: 1; transform: none; }
}

/* Bandeau des 3 services (chevauche le hero) */
.ledger { position: relative; z-index: 5; margin-top: calc(-1 * clamp(84px, 9vw, 112px)); }
.ledger-panel { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-lg); }
.ledger-item { display: flex; flex-direction: column; align-items: flex-start; padding: 36px clamp(24px, 3vw, 40px); text-decoration: none; transition: background-color .2s; }
.ledger-item + .ledger-item { border-left: 1px solid var(--line); }
.ledger-item:hover { background: var(--mist); }
.ledger-ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 14px; background: var(--navy); color: #fff; }
.ledger-item h3 { margin-bottom: .35em; font-size: 1.3rem; }
.ledger-item p { margin-bottom: 18px; color: var(--muted); }
.ledger-more { margin-top: auto; font-weight: 700; color: var(--orange-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.ledger-item:hover .ledger-more { color: var(--navy); }

/* Pourquoi nous */
.why-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.why-copy .lead { margin-bottom: 32px; }
.reasons { margin-bottom: 36px; }
.reasons li { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.reasons li:last-child { border-bottom: 1px solid var(--line); }
.reason-ico { display: grid; flex: none; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 90, 54, .12); color: var(--orange-ink); }
.reasons h3 { margin-bottom: .2em; }
.reasons p { margin: 0; color: var(--muted); }

.why-art { display: grid; justify-items: center; gap: 16px; }
.chat { width: min(100%, 400px); overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--mist); box-shadow: var(--shadow-lg); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--navy); color: #fff; }
.chat-head strong { display: block; font-size: 1rem; line-height: 1.2; }
.chat-head small { font-size: .82rem; color: #9DB0CB; }
.chat-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; }
.chat-body { display: grid; gap: 10px; padding: 22px 18px; }
.bubble { max-width: 84%; margin: 0; padding: 11px 15px; border-radius: 18px; font-size: .96rem; line-height: 1.45; }
.bubble--out { justify-self: end; border-bottom-right-radius: 6px; background: #DDEBFB; color: var(--navy); }
.bubble--in { justify-self: start; border: 1px solid var(--line); border-bottom-left-radius: 6px; background: #fff; }
.chat-foot { display: flex; align-items: center; justify-content: space-between; margin: 0 18px 18px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .95rem; color: #7C8CA3; }
.chat-foot .icon { color: var(--orange-ink); }
.chat-cap { margin: 0; font-size: .9rem; color: var(--muted); }

/* Types de sites */
.types { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: #fff; }
.types li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.type { display: flex; align-items: flex-start; gap: 18px; height: 100%; padding: 30px clamp(22px, 2.4vw, 34px); text-decoration: none; transition: background-color .2s; }
.type:hover { background: #FFF6F3; }
.type-ico { display: grid; flex: none; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--mist); color: var(--navy); transition: background-color .2s; }
.type:hover .type-ico { background: var(--orange); }
.type strong { display: block; margin-bottom: 4px; font-size: 1.12rem; line-height: 1.3; color: var(--navy); }
.type span span { display: block; font-size: .98rem; line-height: 1.5; color: var(--muted); }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { position: relative; }
.step-num { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 1.3rem; font-weight: 800; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 28px; left: 68px; right: -16px; border-top: 2px dashed #C5D3E8; }
.step h3 { margin-bottom: .4em; }
.step p { margin: 0; color: var(--muted); }

/* Offres */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); align-items: stretch; gap: 24px; }
.pack { position: relative; display: flex; flex-direction: column; padding: 36px 32px 32px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.pack-ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px; border-radius: 14px; background: var(--mist); color: var(--navy); }
.pack h3 { font-size: 1.45rem; }
.pack-desc { min-height: 4.95em; color: var(--muted); }
.pack-price { display: grid; gap: 2px; margin: 6px 0 22px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pack-price small { font-size: .85rem; color: var(--muted); }
.pack-price strong { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.pack .checks { flex: 1; }
.pack--featured { border-color: transparent; background: linear-gradient(160deg, var(--navy), #0F2D55); color: #D6E0EE; box-shadow: var(--shadow-lg); transform: translateY(-12px); }
.pack--featured h3, .pack--featured .pack-price strong { color: #fff; }
.pack--featured .pack-desc { color: #B7C5DA; }
.pack--featured .pack-ico { background: rgba(255, 90, 54, .18); color: var(--orange); }
.pack--featured .pack-price { border-color: rgba(255, 255, 255, .14); }
.pack--featured .pack-price small { color: #9DB0CB; }
.pack-badge { position: absolute; top: -14px; right: 28px; padding: 6px 14px; border-radius: 999px; background: var(--orange); color: var(--navy); font-size: .85rem; font-weight: 800; }
.packs-note { margin: 32px 0 0; text-align: center; font-size: .98rem; color: var(--muted); }

.checks { display: grid; gap: 12px; margin: 0 0 28px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .12em; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 90, 54, .14); }
.checks li::after { content: ""; position: absolute; left: 7.5px; top: .3em; width: 6px; height: 11px; border: solid var(--orange-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.pack--featured .checks li::before { background: rgba(255, 90, 54, .22); }
.pack--featured .checks li::after { border-color: var(--orange); }

/* Bandeau d'appel à l'action */
.cta {
    position: relative; overflow: hidden;
    padding: clamp(56px, 7vw, 88px) 0;
    color: #fff;
    background:
        radial-gradient(700px 400px at 90% 0%, rgba(255, 90, 54, .22), transparent 60%),
        linear-gradient(135deg, var(--navy), #0D2A4E 60%, var(--steel));
}
.cta::before { content: ""; position: absolute; right: max(3%, 20px); bottom: -150px; width: 520px; height: 468px; background: url(assets/img/magnet-field.svg) center / contain no-repeat; pointer-events: none; }
.cta-in { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 56px; }
.cta h2 { margin-bottom: .35em; font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem); color: #fff; }
.cta p { max-width: 36em; margin: 0; color: #C9D6E8; }
.cta .fineprint { margin-top: 14px; color: #9DB0CB; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ==========================================================================
   7. Pages intérieures
   ========================================================================== */
.page-hero {
    position: relative; overflow: hidden;
    padding: calc(var(--header-h) + clamp(40px, 5vw, 64px)) 0 clamp(56px, 6vw, 84px);
    color: #fff;
    background:
        radial-gradient(700px 420px at 92% 10%, rgba(255, 90, 54, .18), transparent 60%),
        linear-gradient(135deg, var(--navy) 0%, #0D2A4E 60%, var(--steel) 100%);
}
.page-hero::before { content: ""; position: absolute; right: max(3%, 16px); bottom: -140px; width: 480px; height: 432px; background: url(assets/img/magnet-field.svg) center / contain no-repeat; pointer-events: none; }
.page-hero .container { position: relative; }
.page-hero h1 { max-width: 20ch; margin-bottom: .35em; font-size: clamp(2.1rem, 3.4vw + 1rem, 3.6rem); color: #fff; }
.page-lead { max-width: 40em; margin: 0; font-size: clamp(1.05rem, .8vw + .9rem, 1.25rem); color: #C9D6E8; }
.page-hero--compact { padding-bottom: clamp(40px, 5vw, 56px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 22px; font-size: .92rem; color: #9DB0CB; }
.crumbs a { color: #C9D6E8; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

/* Services */
.service, .realize { scroll-margin-top: calc(var(--header-h) + 10px); }
.service-grid, .realize-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(32px, 6vw, 88px); }
.service--flip .service-copy { order: 2; }
.service-copy h2 { margin-bottom: .4em; }
.service-copy .lead { margin-bottom: 26px; }
.service-copy .checks { margin-bottom: 34px; }
.service-art {
    position: relative; overflow: hidden;
    padding: clamp(20px, 3vw, 36px);
    border-radius: var(--r-lg);
    background:
        radial-gradient(420px 260px at 80% 0%, rgba(255, 90, 54, .28), transparent 62%),
        linear-gradient(145deg, var(--navy), #12315A 70%, var(--steel));
    box-shadow: var(--shadow-lg);
}
.service-art svg { position: relative; display: block; width: 100%; height: auto; }
.service-art svg text { font-family: var(--font); }

/* Réalisations possibles */
.realize--flip .realize-art { order: 2; }
.realize-art { display: grid; justify-items: center; gap: 12px; }
.mock { display: block; width: 100%; height: auto; filter: drop-shadow(0 22px 40px rgba(11, 31, 58, .16)); }
.realize-note { margin: 0; font-size: .88rem; color: var(--muted); }
.realize-ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 14px; background: var(--navy); color: #fff; }
.realize-copy h2 { margin-bottom: .4em; }
.realize-copy .lead { margin-bottom: 22px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
.tags li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .95rem; font-weight: 600; color: var(--navy); }
.mk-win { fill: #fff; stroke: #D5DEEB; stroke-width: 1.5; }
.mk-bar { fill: #EEF2F8; }
.mk-dot { fill: #C3D0E2; }
.mk-url { fill: #fff; }
.mk-navy { fill: #0B1F3A; }
.mk-blue { fill: #17406E; }
.mk-or { fill: #FF5A36; }
.mk-soft { fill: #F4F7FB; }
.mk-line { fill: #DCE4EF; }
.mk-mid { fill: #9DB0CB; }
.mk-sky { fill: #CFE0F5; }
.mk-wh { fill: #fff; }

/* Offres et suivi */
.follow { position: relative; overflow: hidden; background: var(--navy); color: #C9D6E8; }
.follow-head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 52px); }
.follow h2 { color: #fff; }
.follow .lead { color: #C9D6E8; }
.follow-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.follow-grid li { padding: 0 28px; }
.follow-grid li:first-child { padding-left: 0; }
.follow-grid li + li { border-left: 1px solid rgba(255, 255, 255, .14); }
.follow-ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 14px; background: rgba(255, 90, 54, .16); color: var(--orange); }
.follow h3 { font-size: 1.15rem; color: #fff; }
.follow-grid p { margin: 0; color: #AFC0D6; }

.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(32px, 6vw, 80px); }
.faq-intro { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-intro .lead { margin-bottom: 26px; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; font-size: 1.1rem; font-weight: 700; color: var(--navy); list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
    background:
        linear-gradient(var(--navy), var(--navy)) center / 12px 2px no-repeat,
        linear-gradient(var(--navy), var(--navy)) center / 2px 12px no-repeat,
        var(--mist);
    transition: transform .25s, background-color .25s;
}
.faq-item[open] summary::after { transform: rotate(45deg); background-color: rgba(255, 90, 54, .22); }
.faq-a { max-width: 60ch; padding: 0 4px 24px; color: var(--muted); }
.faq-a p { margin: 0; }
.faq-a a { font-weight: 600; color: var(--orange-ink); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: clamp(32px, 6vw, 88px); }
.contact-info .lead { margin-bottom: 26px; }
.contact-list { margin: 36px 0 26px; border-top: 1px solid var(--line); }
.contact-row { display: flex; align-items: flex-start; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-ico { display: grid; flex: none; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--mist); color: var(--navy); }
.contact-row strong { display: block; line-height: 1.3; color: var(--navy); }
.contact-row a, .contact-row div > span { color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.contact-row a:hover { color: var(--orange-ink); text-decoration: underline; }
.contact-form-wrap { padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 20px); }
.contact-form-wrap h2 { font-size: clamp(1.5rem, 1.4vw + 1rem, 2rem); }
.contact-form-wrap .lead { margin-bottom: 24px; font-size: 1.05rem; }
.form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .95rem; font-weight: 700; color: var(--navy); }
.req { color: var(--orange-ink); }
.field input, .field select, .field textarea {
    width: 100%; padding: 14px 16px;
    border: 1.5px solid #D3DCE8; border-radius: var(--r-sm);
    background: #fff; color: var(--ink);
    font: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(11, 31, 58, .12); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.notice { margin: 0 0 20px; padding: 14px 18px; border-radius: var(--r-sm); font-weight: 600; }
.notice--ok { border: 1px solid #B8E5CB; background: #E6F7EE; color: #0B5B33; }
.notice--err { border: 1px solid #F5C3B8; background: #FDECE8; color: #8A2410; }

/* Pages standard et articles */
.prose { font-size: 1.08rem; }
.prose h2 { margin: 2em 0 .5em; font-size: 1.6rem; }
.prose h3 { margin: 1.6em 0 .4em; font-size: 1.25rem; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { max-width: 70ch; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose a { color: var(--orange-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--r-md); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--orange); color: var(--muted); }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .9rem; color: var(--muted); }

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.post-thumb img { display: block; width: 100%; height: 210px; object-fit: cover; }
.post-body { padding: 24px; }
.post-date { font-size: .88rem; color: var(--muted); }
.post-body h2 { margin: .3em 0 .5em; font-size: 1.3rem; }
.post-body h2 a { text-decoration: none; }
.post-body h2 a:hover { color: var(--orange-ink); }
.post-body p { margin: 0; color: var(--muted); }
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; text-decoration: none; }
.page-numbers.current { border-color: var(--navy); background: var(--navy); color: #fff; }
.empty { text-align: center; }
.empty .lead { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   8. Pied de page + boutons flottants
   ========================================================================== */
.site-footer { background: var(--night); color: #AFC0D6; font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); padding: clamp(48px, 6vw, 80px) 0 clamp(36px, 4vw, 56px); }
.footer-brand p { max-width: 30em; margin: 20px 0 22px; }
.footer-title { margin: 0 0 18px; font-size: 1rem; font-weight: 700; letter-spacing: 0; color: #fff; }
.footer-menu { display: grid; gap: 10px; }
.footer-menu a { color: inherit; text-decoration: none; }
.footer-menu a:hover { color: #fff; text-decoration: underline; }
.footer-contact { display: grid; gap: 14px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; }
.footer-contact .icon { margin-top: .25em; color: var(--orange); }
.footer-contact a { color: inherit; text-decoration: none; word-break: break-word; }
.footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; color: #8DA0BA; }
.footer-bottom-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 20px 0; }
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: #fff; }

.fab-wa {
    position: fixed; right: 20px; bottom: 20px; z-index: 80;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 20px 14px 16px;
    border-radius: 999px;
    background: var(--wa); color: var(--navy);
    font-weight: 800; text-decoration: none;
    box-shadow: 0 12px 30px rgba(6, 20, 40, .35);
    transition: transform .2s, background-color .2s;
}
.fab-wa:hover { background: var(--wa-hi); transform: translateY(-2px); }
.fab-wa .icon { width: 1.6rem; height: 1.6rem; }
.to-top {
    position: fixed; right: 24px; bottom: 92px; z-index: 79;
    display: grid; place-items: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--navy); color: #fff;
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .25s, transform .25s, visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ==========================================================================
   9. Responsive
   ========================================================================== */
@media (max-width: 1040px) {
    .topbar { display: none; }
    .nav-toggle {
        display: inline-grid; place-items: center;
        width: 46px; height: 46px;
        border: 0; border-radius: 12px;
        background: rgba(255, 255, 255, .12); color: inherit;
        cursor: pointer;
    }
    .site-header.is-stuck .nav-toggle,
    .wp-custom-logo .site-header .nav-toggle,
    .mds-builder .site-header .nav-toggle,
    html.nav-open .nav-toggle { background: var(--mist); }
    .nav-bars, .nav-bars::before, .nav-bars::after { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, background-color .2s; }
    .nav-bars { position: relative; }
    .nav-bars::before, .nav-bars::after { content: ""; position: absolute; left: 0; }
    .nav-bars::before { top: -7px; }
    .nav-bars::after { top: 7px; }
    html.nav-open .nav-bars { background: transparent; }
    html.nav-open .nav-bars::before { transform: translateY(7px) rotate(45deg); }
    html.nav-open .nav-bars::after { transform: translateY(-7px) rotate(-45deg); }

    .main-nav {
        position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
        flex-direction: column; align-items: stretch; gap: 20px;
        padding: 24px 20px 32px;
        overflow-y: auto;
        background: #fff; color: var(--navy);
        opacity: 0; visibility: hidden; transform: translateY(-12px);
        transition: opacity .25s, transform .25s, visibility .25s;
    }
    .admin-bar .main-nav { top: calc(var(--header-h) + 32px); }
    html.nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
    .main-nav .menu { flex-direction: column; align-items: stretch; gap: 4px; }
    .main-nav .menu a { padding: 16px 18px; border-radius: 14px; font-size: 1.15rem; }
    .main-nav .menu a:hover { background: var(--mist); }
    .main-nav .menu .current-menu-item > a { background: rgba(255, 90, 54, .12); color: var(--orange-ink); }
    .main-nav .sub-menu { position: static; min-width: 0; padding: 0 0 0 16px; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
    .nav-cta { justify-content: center; padding: 16px 24px; font-size: 1.05rem; }
}

@media (max-width: 960px) {
    .hero-grid, .why-grid, .service-grid, .realize-grid, .contact-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-art { max-width: 500px; margin: 0 auto; }
    .ledger-panel { grid-template-columns: 1fr; }
    .ledger-item + .ledger-item { border-left: 0; border-top: 1px solid var(--line); }
    .service--flip .service-copy, .realize--flip .realize-art { order: 0; }
    .types { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: 1fr; gap: 28px; }
    .step { display: grid; grid-template-columns: 56px 1fr; gap: 0 18px; }
    .step-num { grid-row: span 2; margin-bottom: 0; }
    .step:not(:last-child)::after { display: none; }
    .packs { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
    .pack--featured { transform: none; }
    .pack-desc { min-height: 0; }
    .follow-grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
    .follow-grid li { padding: 0 24px 0 0; }
    .follow-grid li + li { border-left: 0; }
    .posts { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .faq-intro { position: static; }
    .page-hero::before, .cta::before { opacity: .3; }
}

@media (max-width: 640px) {
    .types { grid-template-columns: 1fr; }
    .follow-grid { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .posts { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-actions .btn, .cta-actions .btn, .form-actions .btn { width: 100%; }
    .btn--lg { padding: 16px 24px; }
    .fab-wa { right: 16px; bottom: 16px; padding: 14px; }
    .fab-wa span { display: none; }
    .to-top { right: 20px; bottom: 82px; }
    .page-hero::before, .cta::before { display: none; }
}

@media (max-width: 782px) {
    .admin-bar .site-header { top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
