/*
Theme Name: Thème MandaLink 3.0
Theme URI: https://mandalink.fr
Author: MandaLink
Description: Thème vitrine multi-pages pour MandaLink - Structurer. Optimiser. Performer.
Version: 3.8.3
License: GPL v2 or later
Text Domain: mandalink
*/

:root {
    --navy: #071b4d;
    --navy-2: #082765;
    --cyan: #08c6e8;
    --blue: #0679bd;
    --text: #17213a;
    --muted: #677089;
    --bg: #f7fbff;
    --white: #ffffff;
    --line: #dce9f5;
    --shadow: 0 18px 50px rgba(7, 27, 77, .12);
    --radius: 24px;
    --font-logo: 'Montserrat', 'Avenir Next', 'Gotham', 'Century Gothic', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-logo);
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Header */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(220, 233, 245, .75);
}
.nav {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}
.brand { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.brand-logo { width: auto; height: 54px; object-fit: contain; }
.brand-name {
    font-family: var(--font-logo);
    font-weight: 800;
    letter-spacing: .42em;
    color: var(--navy);
    font-size: 18px;
    text-transform: uppercase;
}
.primary-navigation { display: flex; align-items: center; gap: 18px; }
.menu-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    color: var(--navy);
    font-size: 14px;
    font-weight: 650;
    letter-spacing: .025em;
}
.menu-list a { display: inline-flex; align-items: center; min-height: 44px; }
.current-menu-item > a,
.current_page_item > a { color: var(--blue); }
.mobile-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--navy);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.mobile-toggle-bars { width: 22px; display: grid; gap: 5px; }
.mobile-toggle-bars span { display: block; height: 2px; border-radius: 999px; background: currentColor; }
.linkedin-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: var(--cyan);
    border: 1px solid rgba(8, 198, 232, .28);
    background: rgba(8, 198, 232, .08);
    transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.linkedin-header-icon:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--navy), var(--cyan));
    border-color: transparent;
    transform: translateY(-2px);
}
.linkedin-header-icon svg { width: 20px; height: 20px; display: block; }

/* Buttons and generic elements */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    padding: 13px 20px;
    font-weight: 700;
    letter-spacing: .035em;
    border: 1px solid var(--line);
    transition: .2s ease;
    background: #fff;
}
.btn.primary {
    background: linear-gradient(135deg, var(--navy), var(--cyan));
    color: #fff;
    border: 0;
    box-shadow: 0 10px 24px rgba(8, 198, 232, .18);
}
.btn.light { background: #fff; color: var(--navy); border: 0; }
.btn:hover { transform: translateY(-2px); }
.text-link { color: var(--blue); font-weight: 800; display: inline-flex; align-items: center; gap: 7px; margin-top: auto; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }
.eyebrow,
.offer-topline,
.case-label {
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: 12px;
    font-weight: 850;
    color: var(--blue);
    margin-bottom: 10px;
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 75% 20%, rgba(8, 198, 232, .16), transparent 32%), linear-gradient(180deg, #fff 0%, #f5fbff 100%);
    padding: 96px 0 82px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 58px; align-items: center; }
.kicker {
    text-transform: uppercase;
    letter-spacing: .34em;
    font-size: 13px;
    font-weight: 800;
    color: var(--cyan);
    margin-bottom: 18px;
}
.hero h1,
.page-hero h1 {
    font-family: var(--font-logo);
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1.04;
    margin: 0 0 22px;
    color: var(--navy);
    letter-spacing: -.025em;
    font-weight: 800;
}
.gradient {
    background: linear-gradient(135deg, var(--navy), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.lead { font-size: 20px; color: #3b4660; max-width: 720px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 32px;
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
}
.animated-hero { position: relative; overflow: hidden; min-height: 420px; display: flex; flex-direction: column; justify-content: center; }
.logo-wrap { position: relative; min-height: 300px; display: grid; place-items: center; }
.main-logo {
    width: min(90%, 520px);
    height: auto;
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 18px 30px rgba(7, 27, 77, .12));
    animation: mandalinkLogoIn 1.1s ease-out both;
}
.brand-cloud-img {
    position: absolute;
    z-index: 1;
    width: min(68%, 380px);
    right: 0;
    top: 22%;
    opacity: .42;
    filter: blur(.4px) drop-shadow(0 0 18px rgba(8, 198, 232, .25));
    animation: mandalinkCloudDrift 8s ease-in-out infinite;
}
.symbol-cloud { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.symbol-cloud span {
    position: absolute;
    font-weight: 900;
    color: rgba(7, 27, 77, .42);
    font-size: clamp(18px, 2.4vw, 38px);
    filter: blur(.2px);
    opacity: 0;
    animation: mandalinkFloat 6.5s ease-in-out infinite;
}
.symbol-cloud span:nth-child(1){left:10%;top:54%;animation-delay:.05s;color:rgba(7,27,77,.55)}
.symbol-cloud span:nth-child(2){left:18%;top:42%;animation-delay:.28s;color:rgba(8,198,232,.62)}
.symbol-cloud span:nth-child(3){left:23%;top:64%;animation-delay:.52s}
.symbol-cloud span:nth-child(4){left:32%;top:36%;animation-delay:.76s}
.symbol-cloud span:nth-child(5){left:38%;top:70%;animation-delay:1s;color:rgba(8,198,232,.55)}
.symbol-cloud span:nth-child(6){left:47%;top:45%;animation-delay:1.22s}
.symbol-cloud span:nth-child(7){left:58%;top:62%;animation-delay:1.46s;color:rgba(8,198,232,.60)}
.symbol-cloud span:nth-child(8){left:66%;top:36%;animation-delay:1.7s}
.symbol-cloud span:nth-child(9){left:76%;top:54%;animation-delay:1.94s;color:rgba(8,198,232,.58)}
.symbol-cloud span:nth-child(10){left:16%;top:72%;animation-delay:2.18s}
.symbol-cloud span:nth-child(11){left:28%;top:50%;animation-delay:2.42s;color:rgba(8,198,232,.55)}
.symbol-cloud span:nth-child(12){left:70%;top:72%;animation-delay:2.66s;color:rgba(8,198,232,.75)}
.symbol-cloud span:nth-child(13){left:82%;top:40%;animation-delay:2.9s}
.symbol-cloud span:nth-child(14){left:50%;top:30%;animation-delay:3.14s;color:rgba(8,198,232,.65)}
@keyframes mandalinkLogoIn { 0% { opacity: 0; transform: translateY(18px) scale(.96); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes mandalinkCloudDrift { 0% { opacity: 0; transform: translate3d(60px,22px,0) scale(.72) rotate(-8deg); } 18% { opacity: .46; } 58% { opacity: .30; transform: translate3d(-24px,-18px,0) scale(1.03) rotate(7deg); } 100% { opacity: 0; transform: translate3d(-80px,-46px,0) scale(.82) rotate(18deg); } }
@keyframes mandalinkFloat { 0% { opacity: 0; transform: translate3d(-24px,20px,0) rotate(-18deg) scale(.75); } 22% { opacity: .95; } 55% { opacity: .55; transform: translate3d(22px,-22px,0) rotate(16deg) scale(1.05); } 100% { opacity: 0; transform: translate3d(58px,-56px,0) rotate(36deg) scale(.72); } }
@media (prefers-reduced-motion: reduce) { .main-logo, .brand-cloud-img, .symbol-cloud span { animation: none; opacity: 1; } }

.trust-strip { padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }

/* Sections */
.section { padding: 86px 0; }
.section.alt { background: var(--bg); }
.section-head { max-width: 820px; margin: 0 auto 46px; text-align: center; }
.section-head h2 {
    font-family: var(--font-logo);
    font-size: clamp(32px, 3.4vw, 48px);
    line-height: 1.12;
    margin: 0 0 16px;
    color: var(--navy);
    letter-spacing: -.02em;
    font-weight: 800;
}
.section-head p { margin: 0; color: var(--muted); font-size: 18px; }
.section-actions { display: flex; justify-content: center; margin-top: 34px; }


/* Homepage — concise orientation */
.home-intro {
    padding: 58px 0 54px;
    background: #fff;
    border-top: 1px solid rgba(220, 233, 245, .7);
    border-bottom: 1px solid rgba(220, 233, 245, .7);
}
.home-intro-inner { max-width: 900px; text-align: center; }
.home-intro h2 {
    margin: 8px auto 14px;
    color: var(--navy);
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.18;
    letter-spacing: -.025em;
}
.home-intro p { margin: 0 auto; max-width: 790px; color: var(--muted); font-size: 18px; }
.section-head-compact { margin-bottom: 34px; }
.offers-home-compact .home-offer-card { min-height: 0; }
.home-offer-card p { margin-bottom: 22px; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 8px 30px rgba(7, 27, 77, .06);
}
.card h3,
.card-title {
    font-family: var(--font-logo);
    margin: 0 0 12px;
    color: var(--navy);
    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: .01em;
}
.card p,
.card li { color: var(--muted); }
.icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(7, 27, 77, .1), rgba(8, 198, 232, .18));
    color: var(--blue);
    font-weight: 900;
}

/* Offers */
.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.offer { display: flex; flex-direction: column; }
.offer ul { padding-left: 20px; margin: 14px 0 22px; }
.offer li { margin: 8px 0; }
.offer-summary { min-height: 100%; }
.offers-home .offer-summary { min-height: 370px; }


/* Home premium navigation hub */
.home-hub {
    background: linear-gradient(180deg, #fff 0%, #f7fbff 100%);
    border-top: 1px solid var(--line);
}
.home-hub-head { max-width: 760px; margin-bottom: 34px; }
.home-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.home-hub-card {
    position: relative;
    overflow: hidden;
    min-height: 330px;
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 14px 38px rgba(7, 27, 77, .07);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.home-hub-card::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--navy), var(--cyan));
    opacity: .72;
}
.home-hub-card:hover,
.home-hub-card:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 20px 46px rgba(7, 27, 77, .11);
    border-color: rgba(8, 198, 232, .34);
}
.home-hub-card-link {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    color: inherit;
    text-decoration: none;
    border-radius: 20px;
}
.home-hub-card-link:focus-visible {
    outline: 3px solid rgba(6, 121, 189, .45);
    outline-offset: 5px;
}
.home-hub-index {
    margin-left: auto;
    color: rgba(7, 27, 77, .18);
    font-size: 30px;
    line-height: 1;
    font-weight: 850;
}
.home-hub-card h3 {
    margin: 4px 0 12px;
    color: var(--navy);
    font-size: 22px;
    line-height: 1.25;
}
.home-hub-card p {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 15px;
}
.home-hub-btn {
    width: 100%;
    margin-top: auto;
    padding-left: 16px;
    padding-right: 16px;
    font-size: 13px;
    text-align: center;
}
.home-hub-card-contact {
    background: linear-gradient(160deg, rgba(7, 27, 77, .035), rgba(8, 198, 232, .08));
}

/* Process */
.process { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.step { position: relative; }
.step .num { font-size: 44px; font-weight: 900; color: rgba(8, 198, 232, .34); line-height: 1; margin-bottom: 10px; }
.step h2 { margin: 0 0 12px; font-size: 24px; color: var(--navy); }
.sectors { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.sectors-spaced { margin-top: 34px; }
.tag { border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; background: #fff; color: var(--navy); font-weight: 700; }

/* Page headers */
.page-hero {
    background: radial-gradient(circle at 82% 10%, rgba(8, 198, 232, .14), transparent 30%), linear-gradient(180deg, #fff 0%, #f7fbff 100%);
    border-bottom: 1px solid var(--line);
}
.page-hero-inner { padding-top: 52px; padding-bottom: 44px; max-width: 980px; }
.page-hero .kicker { margin-bottom: 10px; }
.page-hero h1 {
    max-width: 900px;
    font-size: clamp(36px, 4.2vw, 58px);
    line-height: 1.06;
    margin-bottom: 14px;
}
.page-lead { color: #3b4660; font-size: 18px; line-height: 1.55; max-width: 820px; }
.page-lead p { margin: 0; }
.service-hero .page-lead { max-width: 900px; }

/* Internal page navigation */
.page-anchor-nav {
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.page-anchor-nav-inner {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #9aa6b8;
    font-size: 14px;
    font-weight: 750;
    letter-spacing: .015em;
}
.page-anchor-nav a {
    color: var(--navy);
    padding: 10px 4px;
    transition: color .2s ease, transform .2s ease;
}
.page-anchor-nav a:hover {
    color: var(--blue);
    transform: translateY(-1px);
}
.anchor-target { scroll-margin-top: 92px; }

/* Service details */
.service-intro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; }
.service-panel { min-height: 100%; }
.service-highlight { font-size: 21px; line-height: 1.55; color: var(--text) !important; margin-bottom: 0; }
.service-details-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service-detail h2 { color: var(--navy); margin: 0 0 16px; font-size: 24px; }
.service-detail ul { padding-left: 20px; margin: 0; }
.service-detail li { margin: 10px 0; }
.rich-text { color: var(--muted); }
.rich-text > :first-child { margin-top: 0; }
.rich-text > :last-child { margin-bottom: 0; }
.standalone-copy { max-width: 880px; }

/* Cases */
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.case-card { display: flex; flex-direction: column; min-height: 290px; }
.case-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.case-detail-grid .card ul { padding-left: 20px; }
.empty-state { max-width: 760px; margin: 0 auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 44px; }
.empty-state h2 { color: var(--navy); margin-top: 0; }
.empty-state p { color: var(--muted); margin-bottom: 0; }

/* Founders and contact */
.about-founders-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; width: 100%; }
.founders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: stretch; width: 100%; }
/* Contact : deux profils côte à côte sur desktop, indépendamment des règles responsive génériques. */
.about-founders-layout > .founders {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 28px !important;
    width: 100% !important;
}
.about-founders-layout > .founders > .founder {
    flex: 1 1 0 !important;
    width: calc(50% - 14px) !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
}
.founders-transverse-cta { grid-column: 1 / -1; margin: 6px 0 0; width: 100%; }
.founders-transverse-cta .contact-box { margin: 0; padding: 30px 34px; border-radius: 26px; }
.founders-transverse-cta .contact-box h2 { font-size: clamp(30px, 3vw, 38px); }
.founders-transverse-cta .contact-box p { max-width: 720px; line-height: 1.6; }
.founder { background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 32px; display: flex; flex-direction: column; min-width: 0; box-shadow: 0 14px 36px rgba(7, 27, 77, .07); }
.founder-head { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.founder-photo { width: 108px; height: 108px; border-radius: 28px; object-fit: cover; object-position: center; box-shadow: 0 12px 28px rgba(7, 27, 77, .14); border: 3px solid #fff; flex: 0 0 auto; }
.founder h3 { font-family: var(--font-logo); margin: 0 0 5px; color: var(--navy); font-size: 26px; font-weight: 800; letter-spacing: -.015em; }
.founder-head p { margin: 0; color: var(--muted); font-weight: 720; }
.founder-links { display: grid; gap: 12px; align-items: start; }
.founder-links a { display: inline-flex; align-items: center; gap: 9px; color: var(--blue); font-weight: 740; margin: 0; }
.founder-contact-secondary { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 14px; color: var(--muted); }
.founder-contact-secondary a { color: var(--muted); font-weight: 620; }
.founder-contact-secondary a:hover { color: var(--blue); }
.founder-profile { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 22px; flex: 1 1 auto; }
.founder-profile-copy { display: grid; gap: 15px; }
.founder-profile-block { display: grid; gap: 9px; }
.founder-profile-label { color: var(--navy); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.founder-profile p { margin: 0; line-height: 1.72; }
.founder-positioning { color: var(--navy); font-size: 17px; font-weight: 650; }
.founder-journey { color: var(--muted); }
.founder-expertise-block { margin-top: auto; padding-top: 2px; }
.founder-expertise { display: flex; flex-wrap: wrap; gap: 8px; }
.founder-expertise span { display: inline-flex; align-items: center; min-height: 32px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--navy); font-size: 13px; font-weight: 720; line-height: 1.3; }
.linkedin-link { width: max-content; border: 1px solid rgba(8, 198, 232, .32); border-radius: 999px; padding: 10px 14px; background: rgba(8, 198, 232, .08); transition: .2s ease; }
.linkedin-link:hover { transform: translateY(-2px); background: rgba(8, 198, 232, .14); }
.linkedin-link svg { width: 20px; height: 20px; fill: var(--blue); flex: 0 0 20px; }
.contact-box {
    background: linear-gradient(135deg, var(--navy), #07376f 55%, var(--cyan));
    color: #fff;
    border-radius: 32px;
    padding: 38px;
    box-shadow: var(--shadow);
}
.contact-box h2 { font-family: var(--font-logo); font-size: clamp(34px, 4vw, 42px); line-height: 1.1; margin: 0 0 14px; font-weight: 800; letter-spacing: -.02em; }
.contact-box p { margin: 0; }
.contact-box-wide { display: flex; align-items: center; justify-content: space-between; gap: 38px; }
.contact-box-wide > div:first-child { max-width: 760px; }
.contact-actions { display: flex; flex-direction: column; gap: 12px; flex: 0 0 auto; }
.mandalink-footer-social { margin-top: 26px; }
.mandalink-linkedin-footer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .34);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .16);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.mandalink-linkedin-footer:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .22); box-shadow: 0 18px 42px rgba(0, 0, 0, .24); color: #fff; }
.mandalink-linkedin-footer svg { width: 24px; height: 24px; fill: currentColor; flex: 0 0 24px; }

/* Footer */
.footer { background: #041235; color: #dbe8ff; padding: 34px 0; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.footer strong { font-family: var(--font-logo); letter-spacing: .32em; color: #fff; font-weight: 800; text-transform: uppercase; }

@media (max-width: 1080px) {
    .menu-list { gap: 16px; }
    .brand-name { letter-spacing: .28em; }
    .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
    .nav { min-height: 74px; }
    .brand-logo { height: 48px; }
    .brand-name { letter-spacing: .18em; font-size: 16px; }
    .mobile-toggle { display: inline-flex; margin-left: auto; }
    .primary-navigation {
        position: fixed;
        top: 74px;
        left: 0;
        right: 0;
        max-height: calc(100vh - 74px);
        overflow-y: auto;
        background: rgba(255, 255, 255, .98);
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 20px 40px rgba(7, 27, 77, .12);
        padding: 20px 24px 26px;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }
    .primary-navigation.is-open { display: flex; }
    .menu-list { width: 100%; flex-direction: column; align-items: stretch; gap: 0; font-size: 16px; }
    .menu-list li { border-bottom: 1px solid var(--line); }
    .menu-list a { min-height: 54px; width: 100%; }
    .linkedin-header-icon { width: 100%; border-radius: 14px; min-height: 48px; }
    .hero { padding: 58px 0 64px; }
    .hero-grid,
    .service-intro-grid,
    .hero-grid { gap: 36px; }
    .hero-card { min-height: 330px; }
    .logo-wrap { min-height: 250px; }
    .offers,
    .process,
    .service-details-grid,
    .founders,
    .case-detail-grid { grid-template-columns: 1fr; }
    .case-grid { grid-template-columns: 1fr; }
    .contact-box-wide { flex-direction: column; align-items: flex-start; }
    .contact-actions { width: 100%; }
    .contact-actions .btn,
    .contact-actions .mandalink-linkedin-footer { width: 100%; }
    .footer-row { flex-direction: column; align-items: flex-start; }
    .page-hero-inner { padding-top: 42px; padding-bottom: 36px; }
    .page-anchor-nav-inner { min-height: 58px; gap: 10px; font-size: 13px; }
    .anchor-target { scroll-margin-top: 84px; }
}

@media (min-width: 641px) and (max-width: 920px) {
    .about-founders-layout .founder { padding: 24px; }
    .about-founders-layout .founder-head { gap: 14px; }
    .about-founders-layout .founder-photo { width: 84px; height: 84px; }
    .about-founders-layout .founder h3 { font-size: 23px; }
    .about-founders-layout .founder-positioning { font-size: 15px; }
}

@media (max-width: 640px) {
    .about-founders-layout > .founders {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
    }
    .about-founders-layout > .founders > .founder {
        flex: 1 1 auto !important;
        width: 100% !important;
    }
}

@media (max-width: 620px) {
    .container { padding-left: 18px; padding-right: 18px; }
    .brand-name { display: none; }
    .section { padding: 64px 0; }
    .pillars { grid-template-columns: 1fr; }
    .home-hub-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: clamp(38px, 12vw, 52px); }
    .page-hero h1 { font-size: clamp(32px, 9vw, 42px); }
    .page-hero-inner { padding-top: 34px; padding-bottom: 30px; }
    .page-hero .kicker { margin-bottom: 8px; }
    .page-hero .page-lead { font-size: 17px; line-height: 1.5; }
    .lead,
    .page-lead { font-size: 18px; }
    .hero-card { padding: 18px; min-height: 280px; }
    .logo-wrap { min-height: 220px; }
    .card,
    .founder,
    .contact-box { padding: 24px; }
    .founder-head { align-items: flex-start; }
    .founder-photo { width: 86px; height: 86px; border-radius: 22px; }
    .founder-links { align-items: start; gap: 10px; }
    .founder-contact-secondary { gap: 5px 12px; }
    .founders-transverse-cta .contact-box { padding: 24px; }
    .hero-actions .btn { width: 100%; }
    .mandalink-linkedin-footer { width: 100%; text-align: center; }
    .page-anchor-nav-inner {
        min-height: auto;
        padding-top: 12px;
        padding-bottom: 12px;
        gap: 6px 10px;
        flex-wrap: wrap;
        line-height: 1.25;
    }
}

/* Réalisations — références externes */
.realisations-intro-section { padding-bottom: 34px; }
.realisations-intro {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 48px;
    align-items: end;
    padding: 34px 0 10px;
}
.realisations-intro h2,
.realisations-section-head h2 {
    font-family: var(--font-logo);
    color: var(--navy);
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.12;
    letter-spacing: -.02em;
    margin: 0;
}
.realisations-intro > p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
    margin: 0;
}
.realisations-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 30px;
}
.realisations-section-head > p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
}
.reference-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.reference-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 0;
    box-shadow: 0 14px 36px rgba(7, 27, 77, .06);
    overflow: hidden;
}
.reference-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--bg);
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}
.reference-card-media-link,
.reference-card-media-link img,
.reference-card-media img {
    display: block;
    width: 100%;
    height: 100%;
}
.reference-card-media img {
    object-fit: cover;
}
.reference-card-media::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 42%;
    background: linear-gradient(180deg, rgba(7, 27, 77, 0) 0%, rgba(7, 27, 77, .10) 100%);
    pointer-events: none;
}
.reference-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 26px 30px 30px;
}
.reference-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--navy), var(--cyan));
}
.reference-card-topline {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}
.reference-theme,
.reference-year {
    font-size: 11px;
    line-height: 1.2;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .12em;
}
.reference-theme { color: var(--blue); }
.reference-year {
    color: var(--navy);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 10px;
}
.reference-card h3 {
    font-family: var(--font-logo);
    color: var(--navy);
    font-size: clamp(23px, 2.3vw, 29px);
    line-height: 1.18;
    letter-spacing: -.018em;
    margin: 0 0 15px;
}
.reference-summary {
    color: var(--muted);
    margin: 0 0 22px;
    line-height: 1.7;
}
.reference-highlight {
    margin-top: auto;
    padding: 18px 0 20px;
    border-top: 1px solid var(--line);
}
.reference-highlight > span {
    display: block;
    color: var(--navy);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 6px;
}
.reference-highlight p {
    margin: 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.65;
}
.reference-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.reference-source {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}
.reference-footer .text-link {
    margin-top: 0;
    white-space: nowrap;
    font-size: 14px;
}

@media (max-width: 920px) {
    .realisations-intro { grid-template-columns: 1fr; gap: 22px; }
    .realisations-section-head { align-items: flex-start; flex-direction: column; gap: 16px; }
    .reference-grid { grid-template-columns: 1fr; }
    .reference-card { min-height: 0; }
}

@media (max-width: 620px) {
    .reference-card { border-radius: 24px; }
    .reference-card-content { padding: 22px 24px 24px; }
    .reference-footer { align-items: flex-start; flex-direction: column; }
}

/* Version 3.7.3 — rythme vertical plus compact sur les pages internes */
body:not(.home) .section {
    padding-top: 72px;
    padding-bottom: 72px;
}
body:not(.home) .section-head {
    margin-bottom: 38px;
}

/* Notre approche : trois séquences plus rapprochées pour une lecture continue. */
body.page-template-page-notre-approche .section {
    padding-top: 64px;
    padding-bottom: 64px;
}
body.page-template-page-notre-approche .section-head {
    margin-bottom: 32px;
}
body.page-template-page-notre-approche .pillars,
body.page-template-page-notre-approche .process {
    gap: 18px;
}
body.page-template-page-notre-approche .sectors-spaced {
    margin-top: 26px;
}

/* Réalisations : réduire les blancs sans tasser les cartes de preuve. */
body.page-template-page-realisations .realisations-intro-section {
    padding-top: 56px;
    padding-bottom: 30px;
}
body.page-template-page-realisations .realisations-intro {
    gap: 40px;
    padding-top: 0;
    padding-bottom: 0;
}
body.page-template-page-realisations .realisations-references-section {
    padding-top: 56px;
    padding-bottom: 68px;
}
body.page-template-page-realisations .realisations-references-section--direct {
    padding-top: 42px;
}
body.page-template-page-realisations .realisations-section-head {
    margin-bottom: 24px;
}
body.page-template-page-realisations .reference-grid {
    gap: 20px;
}

@media (max-width: 920px) {
    body:not(.home) .section {
        padding-top: 62px;
        padding-bottom: 62px;
    }
    body.page-template-page-notre-approche .section {
        padding-top: 56px;
        padding-bottom: 56px;
    }
    body.page-template-page-realisations .realisations-intro-section {
        padding-top: 48px;
        padding-bottom: 24px;
    }
    body.page-template-page-realisations .realisations-references-section {
        padding-top: 48px;
        padding-bottom: 60px;
    }
    body.page-template-page-realisations .realisations-references-section--direct {
        padding-top: 36px;
    }
}

@media (max-width: 620px) {
    body:not(.home) .section {
        padding-top: 52px;
        padding-bottom: 52px;
    }
    body:not(.home) .section-head {
        margin-bottom: 30px;
    }
    body.page-template-page-notre-approche .section {
        padding-top: 48px;
        padding-bottom: 48px;
    }
    body.page-template-page-notre-approche .section-head {
        margin-bottom: 26px;
    }
    body.page-template-page-notre-approche .sectors-spaced {
        margin-top: 22px;
    }
    body.page-template-page-realisations .realisations-intro-section {
        padding-top: 42px;
        padding-bottom: 20px;
    }
    body.page-template-page-realisations .realisations-references-section {
        padding-top: 42px;
        padding-bottom: 52px;
    }
    body.page-template-page-realisations .realisations-references-section--direct {
        padding-top: 30px;
    }
    body.page-template-page-realisations .realisations-section-head {
        margin-bottom: 22px;
    }
}


/* Version 3.8.1 — survol premium des réalisations et grille symétrique Notre approche */
.reference-card {
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.reference-card-media img {
    transition: transform .38s ease, filter .38s ease;
}
.reference-card::before {
    transition: height .24s ease, opacity .24s ease;
}
.reference-card:hover {
    transform: translateY(-6px);
    border-color: rgba(6, 121, 189, .28);
    box-shadow: 0 22px 50px rgba(7, 27, 77, .13);
}
.reference-card:hover .reference-card-media img {
    transform: scale(1.045);
    filter: saturate(1.04) contrast(1.02);
}
.reference-card:hover::before {
    height: 6px;
}
.reference-card:hover .reference-footer .text-link {
    color: var(--blue);
}

/* Les deux séries de 4 cartes de Notre approche restent toujours symétriques. */
body.page-template-page-notre-approche .pillars {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    body.page-template-page-notre-approche .pillars {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    body.page-template-page-notre-approche .pillars {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reference-card,
    .reference-card-media img,
    .reference-card::before {
        transition: none;
    }
    .reference-card:hover,
    .reference-card:hover .reference-card-media img {
        transform: none;
    }
}


/* Version 3.8.2 — corrections de cadrage pour certaines vignettes de réalisations */
.reference-card--contain .reference-card-media {
    background: #fff;
}
.reference-card--contain .reference-card-media::after {
    display: none;
}
.reference-card--contain .reference-card-media img {
    object-fit: contain;
    object-position: center center;
    padding: 14px;
}
@media (max-width: 620px) {
    .reference-card--contain .reference-card-media img {
        padding: 12px;
    }
}


/* Version 3.8.3 — profils détaillés sur la page Contact */
.founder-headline {
    margin: 4px 0 0 !important;
    color: var(--blue) !important;
    font-size: 14px;
    font-weight: 760 !important;
    line-height: 1.45;
}
.founder-profile--detailed {
    gap: 24px;
}
.founder-biography {
    display: grid;
    gap: 14px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.72;
}
.founder-biography p {
    margin: 0;
}
.founder-biography p:first-child {
    color: var(--navy);
    font-size: 16px;
    font-weight: 600;
}
.founder-biography strong,
.founder-training strong {
    color: var(--navy);
    font-weight: 780;
}
.founder-profile-section {
    display: grid;
    gap: 11px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.founder-profile-section h4 {
    margin: 0;
    color: var(--navy);
    font-size: 14px;
    font-weight: 820;
    letter-spacing: .035em;
}
.founder-profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.founder-profile-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg);
    color: var(--navy);
    font-size: 12.5px;
    font-weight: 710;
    line-height: 1.3;
}
.founder-training {
    display: grid;
    gap: 12px;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.7;
}
.founder-training p {
    margin: 0;
}
@media (max-width: 920px) {
    .about-founders-layout > .founders {
        flex-direction: column !important;
    }
    .about-founders-layout > .founders > .founder {
        width: 100% !important;
    }
}
