/* ==========================================================
   STYLES GÉNÉRAUX
   Règles desktop / communes
========================================================== */

:root {
    --font-scale: 1;
    font-size: calc(16px * var(--font-scale));
    --primary: #1f2937;
    --accent: #e0a800;
    --light: #f6f7f9;
    --soft: #ffffff;
    --radius: 18px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Inter,system-ui,sans-serif;
    background: var(--light);
    color: #222;
    line-height: 1.6;
}

.top-controls {
    display: flex;
    gap: 8px;
    padding: 8px 14px;
    background: #fff;
    border-bottom: 1px solid #ddd;
    position: static;
    z-index: 10;
}

.top-controls button {
    background: #eee;
    border: 1px solid #ccc;
    padding: 6px 10px;
    font-size: 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.top-controls button:hover {
    background: #ddd;
}

.top-controls .sep {
    width: 1px;
    background: #ccc;
    margin: 0 6px;
}

.top-controls button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

body > header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
    font-size: 1rem;
}

.nav {
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-img {
    width: auto;
    display: block;
}

.menu {
    display: flex;
    gap: 1.4rem;
}

.menu ul {
    display: flex;
    gap: 1.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu li {
    display: block;
}

.menu a {
    text-decoration: none;
    color: #333;
}

.menu a:hover {
    color: var(--accent);
    text-decoration: none;
}

.hamburger {
    display: none;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.3s ease;
}

.hamburger span {
    width: 24px;
    height: 3px;
    background: #000;
    margin: 4px 0;
    border-radius: 4px;
    transition: 0.3s ease;
}

.mobile-menu {
    display: none;
    background: white;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    padding: 0.5rem 1.5rem 1rem;
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu a {
    display: block;
    padding: 0.7rem 0;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    font-weight: 500;
    color: #222;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu.open {
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

main {
    max-width: 1200px;
    margin: 0 auto;
}

main a {
    color: #0a4ea3;
    text-decoration: none;
    font-weight: 500;
    transition: 0.25s;
}

main a:hover {
    color: var(--accent);
}

main .site > a:hover h3 {
    color: var(--primary);
}

main .site > a:hover p {
    color: var(--legende);
}

.hero-unified {
    position: relative;
    width: 100%;
    height: auto !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, hsl(230, 100%, 96%) 0%,
  #e3e8ff 20%,
  #9aa5ff 55%,
  #a574ff 100%);
    z-index: 1;
}

.hero-photo {
    position: absolute;
    bottom: 0;
    height: auto;
    max-height: none;
    z-index: 2;
}

.hero-unified picture {
    flex-shrink: 0;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.35), 
      0 0 20px rgba(0,0,0,0.35);
}

.hero-content h1 {
    text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.hero-text p {
    margin-bottom: 2rem;
    opacity: 0.95;
    column-count: 2;
}

.br-desktop {
    display: inline;
}

.hero-content .aster {
    font-size: .7rem;
    vertical-align: super;
    margin-left: 3px;
    opacity: 0.8;
}

.hero-note {
    margin-top: 0.9em;
    font-size: 0.9rem;
    opacity: 0.8;
}

.note-bottom {
    position: absolute;
    right: 3rem;
    bottom: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-quote {
    line-height: 1.6;
    color: #f0f0f7;
    font-style: italic;
}

.hero-quote span {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.h1-line {
    display: block;
}

.h1-line + .h1-line {
    margin-top: 0;
}

.cta-hero {
    display: inline-block;
    background: #ffffff;
    color: #1747b5;
    text-decoration: none !important;
    text-shadow: none !important;
}

.cta-hero:hover {
    background: #f0f0f0;
    color: #1747b5;
    text-decoration: none !important;
}

.services {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
}

.service {
    overflow: hidden;
}

.service img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.service picture {
    display: block;
    height: 160px;
    overflow: hidden;
}

.service picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service h3 {
    color: var(--primary);
}

.service a {
    color: inherit !important;
    text-decoration: none !important;
}

.service a:hover, .service a:focus, .service a:active {
    color: inherit !important;
    text-decoration: none !important;
}

.testimonials {
    max-width: 900px;
    margin: 4rem auto;
    text-align: center;
    padding: 0 1rem;
}

.testimonials h2 {
    font-size: 1.9rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
    height: 130px;
}

.testimonial {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    padding: 0 1rem;
}

.testimonial.active {
    opacity: 1;
    transform: translateX(0);
}

.quote {
    font-size: 1.15rem;
    font-style: italic;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.author {
    font-size: 0.95rem;
    opacity: 0.8;
    color: #555;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.slider-controls button {
    background: var(--accent);
    color: #000;
    border: none;
    cursor: pointer;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.25s;
}

.slider-controls button:hover {
    background: #ffcc33;
}

.back-to-top {
    position: fixed;
    bottom: 78px;
    right: 22px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    color: #000;
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s ease;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    z-index: 999;
}

.back-to-top:hover {
    background: #ffd84a;
}

.back-to-top.show {
    opacity: 0.95;
    visibility: visible;
    transform: translateY(0);
}

footer {
    margin-top: 5rem;
    padding: 0;
    background: #1f2937;
    color: #cbd0d7;
    text-align: left;
}

.footer-inner {
    width: min(1150px, calc(100% - 48px));
    margin: 0 auto;
    padding: 60px 0 50px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 70px;
}

.footer-brand {
    max-width: 390px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 22px;
}

.footer-logo img {
    display: block;
    width: auto;
    height: 45px;
}

.footer-brand p {
    max-width: 350px;
    margin: 0 0 22px;
    color: #aeb6c1;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease,
        gap .2s ease;
}

.footer-contact:hover {
    gap: 12px;
    color: var(--accent);
    text-decoration: none;
}

.footer-nav h2 {
    margin: 4px 0 20px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: #b9c0c9;
    font-size: 0.92rem;
    font-weight: 400;
    text-decoration: none;
    transition: color .2s ease,
        padding-left .2s ease;
}

.footer-nav a:hover {
    padding-left: 4px;
    color: var(--accent);
    text-decoration: none;
}

.footer-bottom {
    width: min(1150px, calc(100% - 48px));
    margin: 0 auto;
    padding: 22px 0 28px;
    border-top: 1px solid rgba(255,255,255,.10);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-copyright {
    margin: 0;
    color: #89929e;
    font-size: 0.82rem;
}

footer .mentions-bas {
    margin: 0;
    color: #89929e;
    font-size: 0.78rem;
    font-style: italic;
    text-align: right;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.lightbox-inner {
    position: relative;
    text-align: center;
}

.lightbox-inner img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 0.6em;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
    transition: opacity 0.3s ease-in-out;
}

.lightbox-caption {
    margin-top: 0.5em;
    color: #eee;
    font-size: .9rem;
    line-height: 1.4;
}

.lightbox-close, .lightbox-nav {
    color: #fff;
    cursor: pointer;
    font-size: 2rem;
    user-select: none;
    transition: color 0.2s;
    z-index: 10001;
}

.lightbox-close:hover, .lightbox-nav:hover {
    color: #ffb400;
}

.lightbox-close {
    position: fixed;
    top: 1em;
    right: 1.5em;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.25);
}

.lightbox-close:hover, .lightbox-close:focus {
    color: #ffb400;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.lightbox-close:active {
    transform: scale(0.95);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-nav.prev {
    left: -2.5em;
}

.lightbox-nav.next {
    right: -2.5em;
}

.video-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.85);
    z-index: 10000;
}

.video-modal .video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 1;
}

.video-modal .video-content {
    position: relative;
    z-index: 2;
    background: #000;
    padding: 1em;
    border-radius: 10px;
    max-width: 900px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 30px rgba(0,0,0,0.6);
}

.video-modal .video-frame {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-modal .video-frame iframe, .video-modal .video-frame video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.video-modal .video-content h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.6em;
}

.video-modal .video-close {
    position: absolute;
    top: -1.2em;
    right: -1.2em;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    transition: color 0.2s;
}

.video-modal .video-close:hover {
    color: #ffb400;
}

.mentions-date {
    text-align: right;
    font-size: .85rem;
    color: #888;
    margin-top: 2em;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

a:hover, a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.service a:hover, .service a:focus-visible {
    text-decoration: none;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

button, a.button, .hamburger {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
}

.mobile-menu[aria-hidden="true"] {
    display: none;
}

.mobile-menu[aria-hidden="false"] {
    display: block;
}

.featured-resource {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto 4rem;
}

.featured-resource-box {
    position: relative;
    padding: 55px 60px;
    overflow: hidden;
    background: var(--soft);
    border: 1px solid rgba(31, 41, 55, .07);
    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(31, 41, 55, .06);
}

.featured-resource-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
}

.featured-resource-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: #a87900;
    font-size: .76rem;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.featured-resource-heading h2 {
    margin: 0 0 16px;
    color: var(--primary);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.featured-resource-heading p {
    max-width: 620px;
    margin: 0;
    font-size: .94rem;
    line-height: 1.7;
    opacity: .72;
    padding-bottom: 10px;
}

.featured-resource-item.has-image {
    display: grid;
    grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 48px;
}

.featured-resource-item.no-image {
    display: block;
}

.featured-resource-image {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    text-decoration: none;
}

.featured-resource-image picture {
    display: block;
    width: 100%;
}

.featured-resource-image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform .35s ease;
}

.featured-resource-image:hover img {
    transform: scale(1.025);
}

.featured-resource-content {
    min-width: 0;
}

.featured-resource-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    color: #6b7280;
    font-size: .75rem;
    font-weight: 650;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.featured-resource-category {
    padding: 5px 9px;
    color: #725600;
    background: rgba(224, 168, 0, .12);
    border-radius: 5px;
}

.featured-resource-item h3 {
    max-width: 620px;
    margin: 0;
    font-size: clamp(1.25rem, 1.8vw, 1.55rem);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -.015em;
}

.featured-resource-item h3 a {
    color: var(--primary);
    font-weight: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

.featured-resource-item h3 a:hover {
    color: #a87900;
}

.featured-resource-heading {
    max-width: 720px;
    margin-bottom: 38px;
    border: 0;
    border-bottom: 0;
}

.featured-resource-item {
    padding-top: 0;
    border: 0;
    border-top: 0;
}

.sites {
    margin: 0 auto;
    padding: 0 0 90px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.sites > h2 {
    grid-column: 1 / -1;
}

.site {
    min-width: 0;
}

.site > a {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
    border-radius: 18px;
    overflow: hidden;
    background: var(--light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    transition: transform .25s ease,
        box-shadow .25s ease;
}

.site > a:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .14);
}

.site > a:hover {
    color: inherit;
}

.site picture {
    display: block;
    width: 100%;
    overflow: hidden;
}

.site picture img, .site > a > img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top;
    transition: transform .4s ease;
}

.site > a:hover picture img, .site > a:hover > img {
    transform: scale(1.025);
}

.site h3 {
    margin: 0;
    padding: 24px 24px 8px;
    color: var(--primary);
    font-size: 1.3rem;
    line-height: 1.25;
}

.site p {
    flex-grow: 1;
    margin: 0;
    padding: 0 24px 20px;
    color: var(--legende);
    font-size: .96rem;
    line-height: 1.65;
}

.site-link {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #168fa0;
    font-weight: 700;
    transition: gap .2s ease,
        color .2s ease;
}

.site > a:hover .site-link {
    gap: 11px;
}

.site.application {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    transition: transform .25s ease,
        box-shadow .25s ease;
}

.site.application:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .14);
}

.site.application picture {
    display: block;
    width: 100%;
    overflow: hidden;
}

.site.application picture img, .site.application > img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top;
    transition: transform .4s ease;
}

.site.application:hover picture img, .site.application:hover > img {
    transform: scale(1.025);
}

.site.application h3 {
    margin: 0;
    padding: 24px
        24px
        8px;
    color: #1c2730;
    font-size: 1.3rem;
    line-height: 1.25;
}

.site.application p {
    flex-grow: 1;
    margin: 0;
    padding: 0
        24px
        20px;
    color: #66727b;
    font-size: .96rem;
    line-height: 1.65;
}

.app-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.app-links .site-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    border: 1px solid #d9e1e5;
    color: #1c2730;
    background: #f7f9fa;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease,
        border-color .2s ease,
        background .2s ease,
        color .2s ease;
}

.app-links .site-link:hover {
    transform: translateY(-2px);
    color: #168fa0;
    border-color: #168fa0;
    background: #fff;
}

.app-links .site-link span {
    transition: transform .2s ease;
}

.app-links .site-link:hover span {
    transform: translate(2px, -2px);
}

.sites.applications {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 850px;
}

.sites.applications .application:only-of-type {
    grid-column: 1 / -1;
    width: min(100%, 410px);
    justify-self: center;
}

.video-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #111;
}

.video-image picture {
    display: block;
    width: 100%;
}

.video-image picture img, .video-image > img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform .4s ease,
        opacity .3s ease;
}

.site.video > a:hover .video-image picture img, .site.video > a:hover .video-image > img {
    transform: scale(1.04);
    opacity: .85;
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    padding-left: 4px;
    color: #fff;
    background: rgba(0, 0, 0, .72);
    border: 2px solid rgba(255, 255, 255, .85);
    border-radius: 50%;
    font-size: 1.375rem;
    transform: translate(-50%, -50%);
    transition: transform .25s ease,
        background .25s ease;
}

.site.video > a:hover .video-play {
    background: #168fa0;
    transform: translate(-50%, -50%)
        scale(1.1);
}

.video-link span {
    font-size: .75rem;
    transition: transform .2s ease;
}

.site.video > a:hover .video-link span {
    transform: translateX(3px);
}

.menu a.active {
    font-weight: 600;
}

.mobile-menu a.active {
    color: #d95300;
    background: rgba(232, 93, 4, 0.10);
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 600;
}

.site-image {
    position: relative;
}

.site-image img {
    display: block;
}

.site-type {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(20, 20, 20, .82);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .06em;
    text-transform: uppercase;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

body > header {
    box-shadow: 0 1px 0 rgba(0,0,0,.07);
}

.nav {
    max-width: 1200px;
    padding: 1.15rem 1.5rem;
}

.logo-img {
    height: 38px;
}

.menu, .menu ul {
    gap: 1.15rem;
}

.menu a {
    position: relative;
    font-size: .82rem;
    font-weight: 550;
    transition: color .2s ease,background .2s ease;
}

.menu a:not(.active)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -7px;
    height: 2px;
    background: var(--accent);
    transition: right .25s ease;
}

.menu a:not(.active):hover::after {
    right: 0;
}

.menu a.active {
    padding: 7px 11px;
    color: #d95300;
    background: rgba(232,93,4,.08);
    border-radius: 6px;
}

.hero-unified {
    min-height: 500px;
    margin: 2.5rem auto 5rem;
    padding-bottom: 0;
    border-radius: 14px;
    box-shadow: 0 25px 60px rgba(31,41,55,.14);
}

.hero-photo {
    left: 10px;
    width: 440px;
}

.hero-content {
    width: 58%;
    padding: 4.5rem 4rem 4.5rem 3rem;
}

.hero-content h1 {
    max-width: 720px;
    margin-bottom: 1.6rem;
    
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -.035em;
}


.hero-text p {
    max-width: 700px;
    column-gap: 2.4rem;
    font-size: 1.03rem;
    line-height: 1.7;
}

.hero-quote {
    margin: 1.6rem 0 2rem;
    font-size: .94rem;
    opacity: .85;
}

.cta-hero {
    padding: .95rem 1.5rem;
    border: 0;
    border-radius: 8px;
    font-size: .93rem;
    font-weight: 650;
    box-shadow: 0 8px 22px rgba(0,0,0,.10);
    transition: transform .2s ease,box-shadow .2s ease,background .2s ease;
}

.cta-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0,0,0,.15);
}


@media (min-width: 1200px) {

    .hero-content {
        width: 62%;
        padding: 45px 55px 45px 45px;
    }

    .hero-content h1 {
        font-size: calc(44px - ((var(--font-scale) - 1) * 28px));
        margin-bottom: 22px;
        line-height: 1.02;
    }

    .hero-text p {
        column-gap: 32px;
        line-height: 1.55;
        margin-bottom: 20px;
    }

    .hero-quote {
        margin: 18px 0 24px;
        line-height: 1.45;
    }

    .cta-hero {
        padding: 13px 22px;
    }

        .hero-photo {
        left: 10px;
        width: 400px;
    }
}

.services {
    margin: 0 auto 3rem;
    gap: 20px;
    padding: 0;
}

.service {
    position: relative;
    background: linear-gradient(
    145deg,
    #ffffff 0%,
    #f3f6fb 50%,
    #e4eaf2 100%
);
    border: 1px solid rgba(31,41,55,.08);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(31,41,55,.045);
    transition: transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}

.service:hover {
    transform: translateY(-5px);
    border-color: rgba(224,168,0,.45);
    box-shadow: 0 18px 38px rgba(31,41,55,.10);
}

.service picture, .service img {
    height: 190px;
}

.service picture img {
    transition: transform .45s ease;
}

.service:hover picture img {
    transform: scale(1.035);
}

.service h3 {
    padding: 1.4rem 1.4rem .45rem;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.015em;
}

.service p {
    padding: 0 1.4rem 1.5rem;
    font-size: .91rem;
    line-height: 1.65;
    opacity: .78;
}

.service:hover::after {
    transform: scaleX(1);
}

.sites {
    gap: 26px;
    padding-bottom: 50px;
}

.sites > h2 {
    position: relative;
    margin: 0 0 32px;
    padding-top: 18px;
    text-align: center;
    color: #a87900;
    font-size: clamp(.95rem, 1.3vw, 1.15rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.sites > h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 36px;
    height: 2px;
    background: var(--accent);
    transform: translateX(-50%);
}

.site>a, .site.application {
    border: 1px solid rgba(31,41,55,.07);
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(31,41,55,.055);
    transition: transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}

.site>a:hover, .site.application:hover {
    transform: translateY(-5px);
    border-color: rgba(31,41,55,.13);
    box-shadow: 0 18px 40px rgba(31,41,55,.11);
}

.site picture img, .site>a>img, .site.application picture img, .site.application>img {
    transition: transform .5s cubic-bezier(.2,.7,.2,1);
}

.site>a:hover picture img, .site.application:hover picture img {
    transform: scale(1.035);
}

.site h3, .site.application h3 {
    padding: 26px 26px 9px;
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -.02em;
}

.site p, .site.application p {
    padding: 0 26px 22px;
    font-size: .93rem;
    line-height: 1.7;
}

.site-link {
    margin: 0 26px 26px;
    font-size: .86rem;
    letter-spacing: .01em;
}

.app-links {
    padding: 0 26px 26px;
}

.app-links .site-link {
    padding: 9px 14px;
    border-radius: 6px;
    font-size: .83rem;
}

.footer-nav a.active {
    position: relative;
    color: var(--accent);
    font-weight: 700;
}

.footer-nav a.active::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 50%;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    transform: translateY(-50%);
}

.latest-resources {
    width: 100%;
    margin: 4rem auto;
    padding: 50px 38px;

    background:
        radial-gradient(
            circle at 8% 15%,
            rgba(98, 126, 255, .20) 0%,
            transparent 38%
        ),
        radial-gradient(
            circle at 92% 85%,
            rgba(164, 104, 255, .22) 0%,
            transparent 42%
        ),
        linear-gradient(
            135deg,
            #f3f5ff 0%,
            #edf0ff 45%,
            #f2e9ff 100%
        );

    border-radius: 24px;
}

.latest-resources-box {
    width: 100%;
    margin: 0;
    padding: 38px;
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .05);
}

.latest-resources-box {
    width: 100%;
    margin: 0;
    padding: 0;

    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

[data-theme="dark"] .latest-resources {
    background:
        radial-gradient(
            circle at 8% 15%,
            rgba(74, 105, 255, .22) 0%,
            transparent 40%
        ),
        radial-gradient(
            circle at 92% 85%,
            rgba(139, 82, 255, .20) 0%,
            transparent 44%
        ),
        linear-gradient(
            135deg,
            #171c2c 0%,
            #1b2035 48%,
            #241d39 100%
        );
}

[data-theme="dark"] .latest-resources-box {
    background: transparent;
}

.latest-resources-heading {
    max-width: 760px;
    margin: 0 0 32px;
    padding: 0;
    background: transparent;
    border: 0;
}

.latest-resources-kicker {
    display: block;
    margin-bottom: 8px;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.latest-resources-heading h2 {
    margin: 0 0 10px;
    padding: 0;
    font-size: clamp(1.5rem, 2vw, 1.9rem);
    line-height: 1.15;
    background: transparent;
}

.latest-resources-heading p {
    max-width: 760px;
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
}

.latest-resources-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.latest-resources-card {
    min-width: 0;
}

.latest-resources-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
}

.latest-resources-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.latest-resources-card:hover .latest-resources-image img {
    transform: scale(1.025);
}

.latest-resources-content {
    padding: 15px 5px 2px;
}

.latest-resources-meta {
    margin-bottom: 8px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    opacity: .65;
}

.latest-resources-card-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 600;
}

.latest-resources-card-title a {
    color: inherit;
    text-decoration: none;
}

.latest-resources-card-title a:hover {
    text-decoration: underline;
}

.ecosystem-switcher {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1100;
}

.ecosystem-toggle {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    color: var(--accent);
    background: #1f2937;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .18),
        0 6px 15px rgba(0, 0, 0, .18);
    cursor: pointer;
    transition: transform .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.ecosystem-toggle:hover {
    background: #374151;
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .22),
        0 9px 20px rgba(0, 0, 0, .22);
}

.ecosystem-toggle svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ecosystem-menu {
    position: absolute;
    right: 0;
    bottom: 56px;
    overflow: hidden;
    width: min(340px, calc(100vw - 32px));
    padding: 12px;
    border: 1px solid #d9dde3;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(.98);
    transform-origin: bottom right;
    pointer-events: none;
    transition: opacity .2s ease,
        visibility .2s ease,
        transform .2s ease;
}

.ecosystem-menu::before {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 144px;
    width: 90px;
    height: 110px;
    background-image: url("https://www.monwebsurmesure.com/images/super-gabriel-hero.webp");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    border-radius: 12px;
    pointer-events: none;
    z-index: 2;
}

.ecosystem-menu > a, .ecosystem-contact {
    position: relative;
    z-index: 1;
}

.ecosystem-menu a .ecosystem-current-label {
    display: block;
    margin-bottom: 2px;
    color: #a87900;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .10em;
    line-height: 1.35;
    text-transform: uppercase;
    text-decoration: underline;
}

.ecosystem-switcher.open .ecosystem-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
}

.ecosystem-phone-text {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    color: inherit !important;
    line-height: 1.15 !important;
}

.ecosystem-phone-text small {
    margin-top: 2px;
    color: #6b7280;
    font-size: .58rem;
    font-weight: 600;
    line-height: 1.1;
}

.ecosystem-title {
    display: block;
    padding: 8px 12px 10px;
    color: #6b7280;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ecosystem-menu a {
    display: block;
    padding: 12px;
    border-radius: 10px;
    color: #1f2937;
    text-decoration: none;
    transition: background .2s ease,
        transform .2s ease,
        color .2s ease;
}

.ecosystem-menu a:hover {
    color: #1f2937;
    background: rgba(224, 168, 0, .13);
    text-decoration: none;
    transform: translateX(-3px);
}

.ecosystem-menu strong {
    display: block;
    margin-bottom: 2px;
    font-size: .9rem;
}

.ecosystem-menu a span {
    display: block;
    color: #6b7280;
    font-size: .75rem;
    line-height: 1.35;
}

.ecosystem-contact {
    margin-top: 10px;
    padding-top: 10px;
}

.ecosystem-contact > span {
    display: block;
    margin: 0 0 8px;
    padding: 0 10px;
    color: #6b7280;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ecosystem-contact-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.ecosystem-menu .ecosystem-contact-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    padding: 9px 8px;
    border: 1px solid rgba(224, 168, 0, .25);
    border-radius: 9px;
    background: rgba(224, 168, 0, .07);
    color: #1f2937;
    font-size: .76rem;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    transition: background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.ecosystem-menu .ecosystem-contact-links .ecosystem-phone {
    grid-column: 1 / -1;
    font-size: .82rem;
}

.ecosystem-menu .ecosystem-contact-links a:hover {
    color: #1f2937;
    background: rgba(224, 168, 0, .15);
    border-color: rgba(224, 168, 0, .45);
    text-decoration: none;
    transform: translateY(-1px);
}

.ecosystem-contact-links svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ecosystem-phone-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    color: unset !important;
}

.ecosystem-phone-content strong {
    color: inherit;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.15;
}

.ecosystem-phone-content small {
    color: #6b7280;
    font-size: .60rem;
    font-weight: 650;
    line-height: 1.15;
}

.ecosystem-whatsapp svg {
    width: 16px;
    height: 16px;
}

.ecosystem-mobile-header {
    display: none;
}

/* ==========================================================
   THÈME SOMBRE
   Toutes les règles html[data-theme="dark"] regroupées ici
========================================================== */

html[data-theme="dark"] {
    --accent: #ffcc33;
}

html[data-theme="dark"] body {
    background: #1e1e1e;
    color: #eaeaea;
}

html[data-theme="dark"] .top-controls {
    background: #2a2a2a;
    border-bottom-color: #444;
}

html[data-theme="dark"] .top-controls button {
    background: #444;
    color: #eee;
    border-color: #555;
}

html[data-theme="dark"] .top-controls button:hover {
    background: #555;
}

html[data-theme="dark"] body > header {
    background: #2a2a2a;
    box-shadow: none;
}

html[data-theme="dark"] .menu a {
    color: #ddd;
}

html[data-theme="dark"] .hamburger {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    transition: 0.3s ease;
}

html[data-theme="dark"] .hamburger:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}

html[data-theme="dark"] .hamburger span {
    background: #fff;
}

html[data-theme="dark"] .hamburger.active {
    background: rgba(255,255,255,0.28);
    border-color: rgba(255,255,255,0.45);
}

html[data-theme="dark"] .mobile-menu {
    background: #333;
}

html[data-theme="dark"] .mobile-menu a {
    color: #eee;
    border-bottom-color: #444;
}

html[data-theme="dark"] main a {
    color: #83b7ff;
}

html[data-theme="dark"] main a:hover {
    color: var(--accent);
}

html[data-theme="dark"] .hero-bg {
    background: radial-gradient(circle at top left, #444 0%, #555 20%, #666 60%, #444 100%);
}

html[data-theme="dark"] .hero-unified {
    box-shadow: 0 10px 25px rgba(0,0,0,0.45);
}

html[data-theme="dark"] .cta-hero {
    background: var(--accent);
    color: #000 !important;
    border: none;
    text-decoration: none !important;
}

html[data-theme="dark"] .cta-hero:hover {
    background: #ffdd55;
    color: #000 !important;
    text-decoration: none !important;
}

html[data-theme="dark"] .service {
    background: linear-gradient(
            145deg,
            #323232 0%,
            #292929 55%,
            #222222 100%
        );
    box-shadow: none;
}

html[data-theme="dark"] .quote {
    color: #ddd;
}

html[data-theme="dark"] .author {
    color: #bbb;
}

html[data-theme="dark"] .back-to-top {
    background: #444;
    color: #eee;
    box-shadow: 0 6px 15px rgba(255,255,255,0.08);
}

html[data-theme="dark"] .back-to-top:hover {
    background: #777;
}

html[data-theme="dark"] footer .mentions-bas {
    color: #89929e;
}

html[data-theme="dark"] footer {
    background: #111;
}

html[data-theme="dark"] .footer-bottom {
    border-top-color: rgba(255,255,255,.08);
}

html[data-theme="dark"] .mentions-date {
    color: #aaa;
}

html[data-theme="dark"] {
    --primary: #eaeaea;
    --soft: #2a2a2a;
    --light: #1e1e1e;
}

html[data-theme="dark"] .featured-resource-box {
    border-color: rgba(255, 255, 255, .08);
    box-shadow: 0 10px 35px rgba(0, 0, 0, .25);
}

html[data-theme="dark"] .featured-resource-item {
    border-top-color: rgba(255, 255, 255, .10);
}

html[data-theme="dark"] .featured-resource-kicker {
    color: var(--accent);
}

html[data-theme="dark"] .featured-resource-category {
    color: var(--accent);
    background: rgba(255, 204, 51, .10);
}

html[data-theme="dark"] .featured-resource-item h3 a {
    color: #fff;
}

html[data-theme="dark"] .featured-resource-item h3 a:hover {
    color: var(--accent);
}

html[data-theme="dark"] .featured-resource-item {
    border: 0;
}

html[data-theme="dark"] .site > a {
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

html[data-theme="dark"] .site > a:hover {
    box-shadow: 0 20px 45px rgba(0, 0, 0, .5);
}

html[data-theme="dark"] main .site p, html[data-theme="dark"] main .site > a:hover p {
    color: #fff;
}

html[data-theme="dark"] .site.application {
    background: var(--soft);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

html[data-theme="dark"] .site.application:hover {
    box-shadow: 0 20px 45px rgba(0, 0, 0, .5);
}

html[data-theme="dark"] .site.application h3 {
    color: #fff;
}

html[data-theme="dark"] .site.application p, html[data-theme="dark"] .site.application:hover p {
    color: #fff;
}

html[data-theme="dark"] main .app-links .site-link {
    color: #fff;
    background: #353535;
    border-color: #555;
}

html[data-theme="dark"] main .app-links .site-link:hover {
    color: #fff;
    background: #168fa0;
    border-color: #168fa0;
}

html[data-theme="dark"] .service, html[data-theme="dark"] .site>a, html[data-theme="dark"] .site.application {
    border-color: rgba(255,255,255,.08);
}

html[data-theme="dark"] .service:hover, html[data-theme="dark"] .site>a:hover, html[data-theme="dark"] .site.application:hover {
    border-color: rgba(255,204,51,.30);
}



html[data-theme="dark"] .latest-resources-kicker {
    color: var(--accent);
}

html[data-theme="dark"] .latest-resources-heading h2 {
    color: var(--primary);
}

html[data-theme="dark"] .latest-resources-heading p {
    color: #d0d0d0;
}

html[data-theme="dark"] .latest-resources-meta {
    color: #b8b8b8;
    opacity: .8;
}

html[data-theme="dark"] .latest-resources-card-title {
    color: #fff;
}

html[data-theme="dark"] .latest-resources-card-title a {
    color: #fff;
}

html[data-theme="dark"] .latest-resources-card-title a:hover {
    color: var(--accent);
}

html[data-theme="dark"] .ecosystem-menu a .ecosystem-current-label {
    color: var(--accent);
}

html[data-theme="dark"] .ecosystem-phone-text small {
    color: #aaa;
}

html[data-theme="dark"] .ecosystem-toggle {
    color: #1f2937;
    background: var(--accent);
    border-color: rgba(255, 255, 255, .75);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .5),
        0 6px 18px rgba(0, 0, 0, .35);
}

html[data-theme="dark"] .ecosystem-toggle:hover {
    background: #ffdd55;
}

html[data-theme="dark"] .ecosystem-menu {
    background: #2a2a2a;
    border-color: rgba(255, 255, 255, .12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

html[data-theme="dark"] .ecosystem-title {
    color: #aaa;
}

html[data-theme="dark"] .ecosystem-menu a {
    color: #eee;
}

html[data-theme="dark"] .ecosystem-menu a:hover {
    color: #fff;
    background: rgba(255, 204, 51, .12);
}

html[data-theme="dark"] .ecosystem-menu a span {
    color: #bbb;
}

html[data-theme="dark"] .ecosystem-contact {
    border-top-color: rgba(255, 255, 255, .12);
}

html[data-theme="dark"] .ecosystem-contact > span {
    color: #aaa;
}

html[data-theme="dark"] .ecosystem-menu .ecosystem-contact-links a {
    color: #eee;
    background: rgba(255, 204, 51, .07);
    border-color: rgba(255, 204, 51, .20);
}

html[data-theme="dark"] .ecosystem-menu .ecosystem-contact-links a:hover {
    color: #fff;
    background: rgba(255, 204, 51, .15);
    border-color: rgba(255, 204, 51, .40);
}

html[data-theme="dark"] .ecosystem-phone-content small {
    color: #aaa;
}

/* ==========================================================
   AUTRES RÈGLES
========================================================== */

@charset "utf-8";

/* ==========================================================
   RESPONSIVE
   Media queries regroupées par breakpoint
========================================================== */

@media (max-width: 1199px) {


    .back-to-top {
        display: none !important;
    }

    .ecosystem-switcher {
        right: 1rem !important;
        bottom: 1rem !important;
    }
}

@media (max-width: 350px) {
    .services {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        padding: 0 .5rem;
    }

    .service img {
        height: 130px;
    }
}



@media (max-width: 400px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }
}

@media (max-width: 500px) {
    .featured-resource-box {
        padding: 30px 24px;
    }

    .featured-resource-heading h2 {
        font-size: 1.7rem;
    }

    .featured-resource-item h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 600px) {
    body {
        line-height: 1.5;
    }

    .mobile-menu {
        padding: 0.4rem 1.2rem 0.6rem;
    }

    .mobile-menu a {
        padding: 0.45rem 0;
        font-size: 0.95rem;
    }

    .hero-text p {
        line-height: 1.5;
    }

    .hero-quote {
        line-height: 1.5;
    }

    .quote {
        line-height: 1.5;
    }

    .testimonials-slider {
        height: 250px;
    }

    .quote {
        font-size: 1.05rem;
    }

    .mentions-bas {
        padding-bottom: 110px;
    }

    body.ecosystem-open {
        overflow: hidden;
    }

    .ecosystem-switcher {
        right: 22px !important;
        bottom: 22px !important;
    }

    .ecosystem-toggle {
        width: 42px !important;
        height: 42px !important;
    }

    .ecosystem-switcher.open .ecosystem-toggle {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .ecosystem-menu {
        position: fixed !important;
        inset: 0 !important;
        width: 100% !important;
        max-width: none !important;
        height: 100dvh !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #fff;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        opacity: 1 !important;
        visibility: hidden;
        transform: translateX(100%) !important;
        transform-origin: center !important;
        pointer-events: none;
        transition: transform .32s ease,
            visibility 0s linear .32s !important;
        z-index: 2100;
    }

    .ecosystem-switcher.open .ecosystem-menu {
        visibility: visible;
        transform: translateX(0) !important;
        pointer-events: auto;
        transition: transform .32s ease,
            visibility 0s !important;
    }

    .ecosystem-menu::before {
        display: none !important;
    }

    .ecosystem-mobile-header {
        position: sticky;
        top: 0;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        min-height: 72px;
        padding: max(14px, env(safe-area-inset-top))
            20px
            14px;
        background: rgba(255,255,255,.96);
        border-bottom: 1px solid #e5e7eb;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .ecosystem-mobile-header > strong {
        color: #1f2937;
        font-size: 1rem;
        font-weight: 800;
    }

    .ecosystem-close {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 9px 12px;
        border: 1px solid #d9dde3;
        border-radius: 999px;
        background: #f6f7f9;
        color: #1f2937;
        font: inherit;
        font-size: .82rem;
        font-weight: 700;
        cursor: pointer;
    }

    .ecosystem-close span:last-child {
        font-size: 1.4rem;
        line-height: .8;
        font-weight: 400;
    }

    .ecosystem-menu > a {
        position: relative;
        display: block;
        margin: 0 !important;
        padding: 17px 56px 17px 22px !important;
        border-radius: 0 !important;
        border-bottom: 1px solid #edf0f3;
        background: #fff;
        transform: none !important;
    }

    .ecosystem-menu > a::after {
        content: "→";
        position: absolute;
        right: 22px;
        top: 50%;
        transform: translateY(-50%);
        color: #a87900;
        font-size: 1.25rem;
        font-weight: 800;
    }

    .ecosystem-menu > a:hover, .ecosystem-menu > a:focus-visible {
        background: rgba(224,168,0,.09);
        transform: none !important;
    }

    .ecosystem-menu > a strong {
        margin: 0 0 4px;
        color: #1f2937;
        font-size: 1rem;
        line-height: 1.25;
    }

    .ecosystem-menu > a span {
        color: #6b7280;
        font-size: .8rem;
        line-height: 1.4;
    }

    .ecosystem-current-label {
        margin-bottom: 5px !important;
        color: #a87900 !important;
        font-size: .62rem !important;
    }

    .ecosystem-contact {
        margin: 0 !important;
        padding: 22px
            20px
            calc(22px + env(safe-area-inset-bottom)) !important;
        border-radius: 0 !important;
        background: #f6f7f9;
    }

    .ecosystem-contact > span {
        margin: 0 0 12px;
        padding: 0;
        color: #6b7280;
        font-size: .68rem;
        text-align: left;
    }

    .ecosystem-contact-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .ecosystem-menu .ecosystem-contact-links a {
        min-height: 52px;
        padding: 11px 12px;
        border-radius: 12px;
        background: #fff;
        transform: none !important;
    }

    .ecosystem-menu .ecosystem-phone {
        grid-column: 1 / -1;
        min-height: 62px;
    }

    /* --- Thème sombre pour ce breakpoint --- */

    html[data-theme="dark"] .ecosystem-menu {
        background: #1e1e1e;
    }

    html[data-theme="dark"] .ecosystem-mobile-header {
        background: rgba(30,30,30,.96);
        border-bottom-color: #444;
    }

    html[data-theme="dark"] .ecosystem-mobile-header > strong {
        color: #fff;
    }

    html[data-theme="dark"] .ecosystem-close {
        background: #333;
        border-color: #555;
        color: #fff;
    }

    html[data-theme="dark"] .ecosystem-menu > a {
        background: #1e1e1e;
        border-bottom-color: #333;
    }

    html[data-theme="dark"] .ecosystem-menu > a strong {
        color: #eee;
    }

    html[data-theme="dark"] .ecosystem-menu > a span {
        color: #bbb;
    }

    html[data-theme="dark"] .ecosystem-menu > a::after {
        color: var(--accent);
    }

    html[data-theme="dark"] .ecosystem-contact {
        background: #292929;
    }

    html[data-theme="dark"] .ecosystem-menu .ecosystem-contact-links a {
        background: #333;
    }
}

@media (max-width: 650px) {
    footer {
        margin-top: 3rem;
    }

    .footer-inner {
        width: min(100% - 36px, 520px);
        grid-template-columns: repeat(2, 1fr);
        gap: 35px 25px;
        padding: 42px 0 35px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: none;
    }

    .footer-logo img {
        height: 40px;
    }

    .footer-brand p {
        max-width: 420px;
    }

    .footer-nav h2 {
        margin-bottom: 14px;
    }

    .footer-nav li {
        margin-bottom: 8px;
    }

    .footer-bottom {
        width: min(100% - 36px, 520px);
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 20px 0 25px;
    }

    footer .mentions-bas {
        text-align: left;
    }

    .sites {
        width: min(100% - 30px, 520px);
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0;
    }

    .sites > h2 {
        margin-bottom: 10px;
    }

    .site h3 {
        padding: 20px
            20px
            7px;
        font-size: 1.2rem;
    }

    .site p {
        padding: 0
            20px
            18px;
    }

    .site.application h3 {
        padding: 20px
            20px
            7px;
        font-size: 1.2rem;
    }

    .site.application p {
        padding: 0
            20px
            18px;
    }

    .app-links .site-link {
        flex: 1;
        min-width: 130px;
    }

    .video-play {
        width: 56px;
        height: 56px;
        font-size: 1.1875rem;
    }

    .hero-unified {
        margin-bottom: 3.5rem;
    }

    .hero-photo {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;

        width: 100%;
        height: 220px;
        margin: 0 0 1.5rem;

        display: block;
        object-fit: cover;
        object-position: center 25%;

        border-radius: 12px;
    }

    .hero-content h1 {
        font-size: 1.3rem !important;
    }

    .hero-text p {
        font-size: .96rem;
    }

    .cta-hero {
        width: 100%;
        padding: .9rem 1.2rem;
        text-align: center;
    }

    .services {
        gap: 20px;        
    }

    .service picture, .service img {
        height: 200px;
    }

    .sites {
        padding-top: 0;
        padding-bottom: 0;
    }

    .sites>h2 {
        margin-bottom: 15px;
        padding-top: 15px;
        font-size: 1.8rem;
    }

    .site h3, .site.application h3 {
        padding: 21px 20px 7px;
    }

    .site p, .site.application p {
        padding: 0 20px 18px;
    }

    .site-link {
        margin: 0 20px 21px;
    }

    .app-links {
        padding: 0 20px 21px;
    }
}

@media (max-width: 700px) {
    .h1-line {
        display: inline;
    }

    .h1-line + .h1-line {
        margin-top: 0;
    }

    .sites.applications {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .sites.applications .application:only-of-type {
        grid-column: auto;
        width: 100%;
    }

    .latest-resources {
        padding: 0;
    }

    .latest-resources-box {
        width: calc(100% - 30px);
        padding: 24px 18px;
        border-radius: 16px;
        margin: 0 auto;
    }

    .latest-resources-heading {
        margin-bottom: 25px;
    }

    .latest-resources-heading h2 {
        font-size: 1.45rem;
    }

    .latest-resources-heading p {
        font-size: .95rem;
    }

    .latest-resources-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .latest-resources-image {
        aspect-ratio: 16 / 9;
    }

    .latest-resources-content {
        padding: 13px 2px 0;
    }

    .latest-resources-card-title {
        font-size: 1.05rem;
    }
}



@media (max-width: 800px) {
    .featured-resource {
        width: min(100% - 30px, 600px);
        margin-bottom: 4rem;
    }

    .featured-resource-box {
        padding: 38px 32px;
    }

    .featured-resource-heading {
        margin-bottom: 30px;
    }

    .featured-resource-item {
        padding-top: 28px;
    }

    .featured-resource-item.has-image {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .featured-resource-item h3 {
        font-size: 1.35rem;
    }
}

@media (max-width: 900px) {
    .br-desktop {
        display: none;
    }

    .note-bottom {
        position: static;
        display: block;
        margin-top: 1.4rem;
        text-align: center;
        white-space: normal;
    }

    .footer-inner {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 35px;
        padding-top: 50px;
    }

    .logo-img {
        height: 34px;
    }

    .menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    main {
        padding: 0 0.4rem;
    }

    body > header {
        top: 0;
    }

    .hero-unified {
        height: auto;
        min-height: 0;
        flex-direction: column;
        justify-content: center;
    }

    .hero-bg {
        background: #7fa3ff !important;
    }

    .hero-photo {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        margin: 0 auto 1.5rem;
        display: block;
        z-index: 3;
    }

    .hero-content {
        text-align: left;
        color: #fff;
    }

    .hero-content h1 {
        margin-bottom: 1rem;
    }

    .hero-text p {
        column-count: 1;
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-quote {
        margin: 1rem 0 1.8rem;
        font-size: 0.95rem;
    }

    .hero-quote span {
        font-size: 0.9rem;
    }

    .cta-hero {
        margin-top: 0.5rem;
    }

    .testimonials h2 {
        font-size: 1.45rem !important;
        line-height: 1.3;
    }

    h2:not(.hero-content h1):not(.testimonials h2) {
        font-size: 1.38rem;
    }

    h3 {
        font-size: 1.22rem;
    }

    .nav {
        padding: .9rem 1.2rem;
    }

    .hero-unified {
        margin: 1rem 0 4rem;
        padding: 2.2rem 1.5rem 3rem;
        border-radius: 12px;
    }

    .hero-photo {
        width: auto;
        height: 280px;
    }

    .hero-content {
        width: 100%;
        padding: 0;
    }

    .hero-content h1 {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
        line-height: 1.08;
        letter-spacing: -.025em;
    }

    .services {
        padding: 0 1rem;
        
    }

    .service picture, .service img {
        height: 180px;
    }

    /* --- Thème sombre pour ce breakpoint --- */

    html[data-theme="dark"] .hero-bg {
        background: #555 !important;
    }
}

@media (max-width: 950px) {
    .sites {
        grid-template-columns: repeat(2, 1fr);
        gap: 26px;
        padding: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .ecosystem-toggle, .ecosystem-menu, .ecosystem-menu a {
        transition: none;
    }

    .ecosystem-menu {
        transition: none !important;
    }
}

/* ==========================================================
   AUDIT MOBILE — NORMALISATION DES GRILLES ET BLOCS
   Les composants de contenu passent en une colonne.
   Navigation, boutons, lightbox et contrôles restent fonctionnels.
========================================================== */

@media (max-width: 760px) {
    .services, .sites, .latest-resources-grid, .featured-resource-item.has-image, .footer-inner, .footer-grid, .app-links {
        grid-template-columns: 1fr !important;
    }

    .services, .sites, .latest-resources-grid {
        width: 100%;
    }

    .service, .site, .latest-resources-card, .featured-resource-item, .featured-resource-item.has-image {
        min-width: 0;
        width: 100%;
    }

    .latest-resources-card, .featured-resource-item.has-image {
        grid-template-columns: 1fr !important;
    }

    .latest-resources-card-image, .latest-resources-content, .featured-resource-image, .featured-resource-content {
        width: 100%;
        min-width: 0;
    }

    .footer-inner {
        grid-template-columns: 1fr !important;
    }

    .footer-brand, .footer-nav {
        grid-column: auto !important;
        min-width: 0;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    footer .mentions-bas {
        width: 100%;
        text-align: left;
    }

    .app-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .app-links .site-link, .site-link {
        width: auto;
        min-width: 0;
    }
}

@media (max-width: 600px) {
    .services, .sites, .latest-resources-grid, .footer-inner {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================
   HERO RESPONSIVE — RÈGLES DÉFINITIVES
   Tablette : portrait à gauche
   Mobile : photo recadrée en paysage au-dessus du contenu
========================================================== */

/* TABLETTE */
@media (min-width: 651px) and (max-width: 900px) {

    .hero-unified {
        position: relative;
        min-height: 440px;
        padding: 0;
        flex-direction: row;
        align-items: stretch;
        justify-content: flex-end;
        overflow: hidden;
    }

    .hero-photo {
        position: absolute;
        left: 0;
        bottom: 0;
        width: auto;
        height: 92%;
        max-height: none;
        margin: 0;
        object-fit: contain;
        object-position: left bottom;
        z-index: 2;
    }

    .hero-content {
        position: relative;
        width: 58%;
        margin-left: auto;
        padding: 2.5rem 2rem 2.5rem 1.5rem;
        z-index: 3;
    }
}

/* MOBILE */
@media (max-width: 650px) {

    .hero-unified {
        min-height: 0;
        padding: 0 0 2.5rem;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        overflow: hidden;
    }

    .hero-photo {
        position: relative;
        left: auto;
        bottom: auto;
        width: 100%;
        height: 240px;
        max-height: none;
        margin: 0 0 1.5rem;
        display: block;
        object-fit: cover;
        object-position: center 10%;
        border-radius: 0;
        transform: none;
        z-index: 2;
    }

    .hero-photo {
        background: var(--light);
    }

    .hero-unified {
        box-shadow:unset;
    }

    .hero-content {
        width: 100%;
        margin: 0;
        padding: 0 1.25rem;
    }

    .hero-content h1 {
        font-size: 1.3rem !important;
    }
}
