/* ==========================================================================
   Numeralys Group — refonte de la page d'accueil
   Sommaire
   1. Variables et base          6. Sections et mises en page
   2. Éléments communs           7. Métiers (onglets)
   3. En-tête et navigation      8. Équipe, partenaires
   4. Accueil (hero)             9. Contact, pied de page
   5. Bandeau défilant          10. Animations, mouvement réduit
   ========================================================================== */

/* 1. Variables et base ---------------------------------------------------- */
:root {
    --ink: #06101D;            /* fond sombre principal */
    --ink-2: #0B1828;          /* cartes sur fond sombre */
    --ink-3: #040A14;          /* pied de page */
    --paper: #F3F6FA;          /* fond clair */
    --white: #FFFFFF;
    --line: #DCE6F0;           /* filets sur fond clair */
    --line-dark: rgba(255, 255, 255, 0.1);
    --text: #0A1524;
    --text-soft: #45546A;
    --on-dark: rgba(255, 255, 255, 0.76);
    --on-dark-soft: rgba(255, 255, 255, 0.64);
    --cyan: #38BDF2;           /* couleur du logo */
    --cyan-light: #8ADBFA;
    --cyan-deep: #0A6A9E;      /* cyan lisible sur fond clair */
    --cyan-tint: #E3F5FD;

    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-title: 'Space Grotesk', 'Inter', system-ui, sans-serif;

    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --radius: 28px;
    --header-h: 74px;
    --gutter: clamp(20px, 5vw, 48px);
}

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

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--ink-3);
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-title); text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
section[id] { scroll-margin-top: var(--header-h); }

:focus-visible { outline: 2px solid var(--cyan-light); outline-offset: 3px; }
.section--light :focus-visible, .section--white :focus-visible { outline-color: var(--cyan-deep); }

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    padding: 12px 18px; border-radius: 12px;
    background: var(--cyan); color: #04121F; font-weight: 600; text-decoration: none;
    transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 12px; }

/* 2. Éléments communs ----------------------------------------------------- */
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

.icon {
    width: 20px; height: 20px; flex: none;
    fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 56px; padding: 0 30px;
    border: 0; border-radius: 999px; cursor: pointer;
    background-color: var(--cyan); color: #04121F;
    font-weight: 600; font-size: 16px; text-decoration: none;
    transition: transform 0.35s var(--ease), box-shadow 0.35s ease, background-color 0.3s ease;
}
.btn .icon, .link-arrow .icon { transition: transform 0.35s var(--ease); }
.btn:hover { transform: translateY(-2px); background-color: #6FD2F8; box-shadow: 0 14px 34px rgba(56, 189, 242, 0.34); }
.btn:hover .icon, .link-arrow:hover .icon { transform: translateX(5px); }
.btn:active { transform: translateY(0); }
.btn--small { min-height: 46px; padding: 0 22px; font-size: 15px; gap: 10px; }
.btn--small .icon { width: 18px; height: 18px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }

.link-arrow {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
    color: var(--white); font-weight: 500; text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    transition: color 0.3s ease, border-color 0.3s ease;
}
.link-arrow:hover { color: var(--cyan-light); border-color: var(--cyan-light); }
.link-arrow .icon { width: 18px; height: 18px; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--cyan-deep);
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--cyan); }
.section--dark .eyebrow { color: var(--cyan-light); }

.section-title {
    margin-top: 20px;
    font-size: clamp(30px, 3.5vw, 48px); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em;
}
.section-title--xl { font-size: clamp(32px, 4vw, 56px); line-height: 1.05; letter-spacing: -0.025em; }

.lead { margin-top: 24px; max-width: 600px; font-size: 18px; line-height: 1.65; color: var(--text-soft); }

.pulse-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--cyan); animation: pulse 2.4s ease-in-out infinite; }

.deco-ring { position: absolute; border-radius: 50%; border: 1px dashed #7FCDEE; animation: spin 46s linear infinite; pointer-events: none; }
.deco-ring--tl { top: -44px; left: -44px; width: 180px; height: 180px; }
.deco-ring--br { right: -40px; bottom: -40px; width: 200px; height: 200px; animation-direction: reverse; animation-duration: 70s; }
.deco-ring--panel { right: -90px; top: -90px; width: 280px; height: 280px; border-color: rgba(138, 219, 250, 0.3); }

.media-frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--line); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.media-frame:hover img { transform: scale(1.05); }
.media-frame--portrait { aspect-ratio: 4 / 5; }
.media-frame--portrait img { object-position: 72% 40%; }
.media-frame--landscape { aspect-ratio: 5 / 4; }
.media-frame--landscape img { object-position: 58% 40%; }
.media-frame--wide { aspect-ratio: 16 / 7; background: var(--ink-2); }
.media-frame--wide img { object-position: 50% 22%; }

/* 3. En-tête et navigation ------------------------------------------------ */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(6, 16, 29, 0.84);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    animation: drop 0.8s var(--ease) both;
}
.site-header.is-scrolled { background: rgba(6, 16, 29, 0.96); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--white); text-decoration: none; }
.brand img { width: 38px; height: 38px; transition: transform 0.8s var(--ease); }
.brand:hover img { transform: rotate(180deg); }
.brand__name { font-family: var(--font-title); font-weight: 700; font-size: 17px; letter-spacing: 0.09em; white-space: nowrap; }
.brand__name span { font-weight: 400; color: var(--cyan-light); }

.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav__link {
    position: relative; padding: 12px 0;
    color: rgba(255, 255, 255, 0.78); font-size: 15px; font-weight: 500; text-decoration: none;
    transition: color 0.3s ease;
}
.site-nav__link::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px;
    background: var(--cyan); transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s var(--ease);
}
.site-nav__link:hover, .site-nav__link.is-current { color: var(--white); }
.site-nav__link:hover::after, .site-nav__link.is-current::after { transform: scaleX(1); }

.nav-toggle {
    display: none; width: 46px; height: 46px; padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 14px; background: transparent; cursor: pointer;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; border-radius: 2px; background: var(--white); transition: transform 0.4s var(--ease), opacity 0.3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1020px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 4px;
        padding: 12px var(--gutter) 28px;
        background: rgba(6, 16, 29, 0.98);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 28px 48px rgba(0, 0, 0, 0.45);
        visibility: hidden; opacity: 0; transform: translateY(-12px);
        transition: opacity 0.35s ease, transform 0.45s var(--ease), visibility 0s linear 0.45s;
    }
    .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
    .site-nav__link { padding: 14px 0; font-size: 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
    .site-nav__link::after { display: none; }
    .site-nav__cta { margin-top: 16px; }
}

/* 4. Accueil (hero) ------------------------------------------------------- */
.hero {
    position: relative; color: var(--white);
    background:
        radial-gradient(820px 520px at 88% 8%, rgba(56, 189, 242, 0.17), transparent 62%),
        radial-gradient(760px 520px at -6% 104%, rgba(10, 106, 158, 0.34), transparent 60%),
        var(--ink);
}
.hero__grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse at 72% 34%, #000 12%, transparent 68%);
    mask-image: radial-gradient(ellipse at 72% 34%, #000 12%, transparent 68%);
    animation: fade 1.4s ease 0.5s both;
}
.hero__inner {
    position: relative;
    display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center;
    gap: clamp(40px, 6vw, 80px);
    padding-block: clamp(48px, 7vw, 84px) clamp(56px, 7vw, 96px);
}
.hero__content { display: flex; flex-direction: column; align-items: flex-start; }

.pill {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px 8px 12px; border: 1px solid rgba(138, 219, 250, 0.35); border-radius: 999px;
    font-size: 13px; font-weight: 500; letter-spacing: 0.06em; color: #C4EEFD;
}

.hero__title {
    margin-top: 26px;
    font-size: clamp(38px, 4.7vw, 66px); line-height: 1.04; font-weight: 700; letter-spacing: -0.025em;
}
.hero__title em { font-style: normal; color: #5CCBF5; }

.hero__rotator {
    margin-top: 28px;
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
    font-size: clamp(17px, 1.5vw, 21px);
}
.hero__rotator-label { color: var(--on-dark-soft); }
.rotator { display: inline-grid; overflow: hidden; font-family: var(--font-title); font-weight: 600; color: var(--cyan-light); line-height: 1.35; }
.rotator > span {
    grid-area: 1 / 1; opacity: 0; transform: translateY(105%);
    transition: opacity 0.6s ease, transform 0.7s var(--ease);
}
.rotator > span.is-active { opacity: 1; transform: none; }
.rotator > span.is-leaving { opacity: 0; transform: translateY(-105%); }

.hero__lead { margin-top: 22px; max-width: 560px; font-size: 17px; line-height: 1.65; color: var(--on-dark); }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }

.stats {
    width: 100%; margin-top: 56px; padding-top: 28px;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.stats__item { display: flex; flex-direction: column-reverse; gap: 4px; }
.stats dd { font-family: var(--font-title); font-size: clamp(32px, 3.4vw, 46px); font-weight: 700; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stats dd i, .partners__count i { font-style: normal; color: var(--cyan); }
.stats dt { font-size: 14px; color: var(--on-dark-soft); }

/* Composition circulaire (motif repris du logo) */
.hero__visual { display: flex; justify-content: center; }
.orbit { position: relative; width: min(100%, 500px); aspect-ratio: 1 / 1; }
.orbit__ring { position: absolute; border-radius: 50%; }
.orbit__ring span { position: absolute; left: 50%; border-radius: 50%; }
.orbit__ring--outer { inset: 0; border: 1px dashed rgba(138, 219, 250, 0.45); animation: spin 46s linear infinite, fade 1.4s ease 0.5s both; }
.orbit__ring--outer span { top: -7px; width: 14px; height: 14px; margin-left: -7px; background: var(--cyan); box-shadow: 0 0 0 6px rgba(56, 189, 242, 0.18); }
.orbit__ring--inner { inset: 8%; border: 1px solid rgba(255, 255, 255, 0.1); animation: spin 70s linear infinite reverse, fade 1.4s ease 0.5s both; }
.orbit__ring--inner span { bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: var(--white); }

.orbit__photo { position: absolute; inset: 15%; border-radius: 50%; overflow: hidden; background: var(--ink-2); animation: pop 1.3s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s both; }
.orbit__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 22%; }

.orbit__satellite { position: absolute; left: -2%; bottom: 5%; width: 33%; aspect-ratio: 1 / 1; }
.orbit__satellite-photo { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; border: 6px solid var(--ink); background: var(--ink-2); animation: pop 1.3s cubic-bezier(0.2, 0.8, 0.2, 1) 0.55s both; }
.orbit__satellite-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }

.orbit__card { position: absolute; right: -3%; top: 2%; }
.glass-card {
    display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px;
    border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(11, 24, 40, 0.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.glass-card img { width: 34px; height: 34px; }
.glass-card span { display: flex; flex-direction: column; gap: 2px; }
.glass-card strong { font-family: var(--font-title); font-size: 14px; font-weight: 600; }
.glass-card small { font-size: 12px; color: var(--on-dark-soft); }

.orbit__place { position: absolute; right: 2%; bottom: 9%; }
.place-chip { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--white); color: var(--text); font-size: 13px; font-weight: 600; }
.place-chip .icon { width: 16px; height: 16px; color: var(--cyan-deep); }

.float { animation: bob 7s ease-in-out infinite; }
.float--late { animation-duration: 8s; animation-delay: 1.2s; }

@media (max-width: 960px) {
    .hero__inner { grid-template-columns: minmax(0, 1fr); }
    .hero__visual { order: -1; }
    .orbit { width: min(86%, 400px); }
}
@media (max-width: 520px) {
    .stats { gap: 14px; }
    .stats dt { font-size: 13px; }
    .glass-card small { display: none; }
}

/* 5. Bandeau défilant ----------------------------------------------------- */
.marquee { position: relative; overflow: hidden; padding: 26px 0; border-top: 1px solid var(--line-dark); }
.marquee__track { display: flex; width: max-content; font-family: var(--font-title); font-size: clamp(20px, 2.2vw, 30px); font-weight: 500; color: rgba(255, 255, 255, 0.86); white-space: nowrap; }
.marquee__track.is-ready { animation: marquee 44s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 44px; padding-right: 44px; }
.marquee__group li { display: flex; align-items: center; gap: 44px; }
.marquee__group li::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); }

/* 6. Sections et mises en page -------------------------------------------- */
.section { padding-block: clamp(72px, 9vw, 128px); }
/* Les anneaux décoratifs dépassent du cadre : on coupe sans créer de zone de défilement. */
.hero, .section { overflow-x: clip; }
.section--light { background: var(--paper); }
.section--white { background: var(--white); }
.section--dark {
    color: var(--white);
    background: radial-gradient(700px 460px at 100% 0%, rgba(56, 189, 242, 0.12), transparent 60%), var(--ink);
}
.section--tight-bottom { padding-bottom: clamp(32px, 4vw, 56px); }
.section--tight-top { padding-top: clamp(32px, 4vw, 56px); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: clamp(40px, 5vw, 72px); }
.split--reverse { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.split__media { display: flex; justify-content: center; }
.split__content { display: flex; flex-direction: column; align-items: flex-start; }

.about-visual { position: relative; width: min(100%, 470px); }
.person-card {
    position: relative; width: min(88%, 330px); margin: -56px -12px 0 auto;
    display: flex; align-items: center; gap: 14px; padding: 16px 20px 16px 16px;
    border-radius: 20px; background: var(--white); box-shadow: 0 24px 56px rgba(10, 21, 36, 0.14);
}
.person-card img { width: 60px; height: 60px; flex: none; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.person-card span { display: flex; flex-direction: column; gap: 3px; }
.person-card strong { font-family: var(--font-title); font-size: 16px; font-weight: 600; }
.person-card small { font-size: 13px; color: var(--text-soft); }

.pillars { width: 100%; margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card {
    display: flex; flex-direction: column; gap: 14px; padding: 28px;
    border-radius: 22px; border: 1px solid var(--line); background: var(--white);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(10, 21, 36, 0.1); border-color: var(--cyan); }
.card__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--cyan-tint); color: var(--cyan-deep); display: flex; align-items: center; justify-content: center; }
.card__icon .icon { width: 24px; height: 24px; stroke-width: 1.7; }
.card h3 { font-size: 21px; font-weight: 600; }
.card p { font-size: 15px; line-height: 1.65; color: var(--text-soft); }

.innovation-visual { position: relative; width: min(100%, 500px); }
.dark-chip {
    position: absolute; left: -18px; top: 28px;
    display: flex; align-items: center; gap: 10px; padding: 12px 18px;
    border-radius: 999px; background: var(--ink); color: var(--white); font-size: 14px; font-weight: 600;
}
.principles { width: 100%; margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.principle { padding-top: 22px; border-top: 2px solid var(--text); }
.principle--accent { border-top-color: var(--cyan); }
.principle h3 { font-size: 20px; font-weight: 600; }
.principle p { margin-top: 12px; line-height: 1.7; color: var(--text-soft); }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-head > div { max-width: 680px; }
.section-head__aside { max-width: 360px; color: rgba(255, 255, 255, 0.72); }

@media (max-width: 960px) {
    .split, .split--reverse { grid-template-columns: minmax(0, 1fr); }
    .split--reverse .split__media { order: -1; }
}
@media (max-width: 640px) {
    .pillars, .principles { grid-template-columns: minmax(0, 1fr); }
    .dark-chip { left: 12px; top: 16px; }
    .person-card { margin-right: 0; }
}

/* 7. Métiers (onglets) ---------------------------------------------------- */
.services { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(24px, 3vw, 40px); align-items: stretch; }
.services__tabs { display: flex; flex-direction: column; gap: 10px; }

.service-tab {
    display: flex; align-items: center; gap: 18px; width: 100%; min-height: 68px; padding: 14px 20px;
    border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 16px;
    background-color: transparent; color: rgba(255, 255, 255, 0.72); text-align: left; cursor: pointer;
    transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease, padding-left 0.35s var(--ease);
}
.service-tab__num { font-family: var(--font-title); font-size: 14px; font-weight: 500; color: var(--cyan-light); }
.service-tab__label { flex: 1; font-family: var(--font-title); font-size: 19px; font-weight: 500; }
.service-tab .icon { color: var(--cyan); opacity: 0; transform: translateX(-10px); transition: opacity 0.35s ease, transform 0.35s var(--ease); }
.service-tab:hover { color: var(--white); }
.service-tab.is-active { padding-left: 28px; background-color: rgba(56, 189, 242, 0.1); border-color: rgba(56, 189, 242, 0.55); color: var(--white); }
.service-tab.is-active .icon { opacity: 1; transform: none; }

.services__panels {
    position: relative; display: grid; overflow: hidden;
    padding: clamp(28px, 4vw, 52px);
    border-radius: var(--radius); border: 1px solid var(--line-dark); background: var(--ink-2);
}
.service-panel {
    position: relative; grid-area: 1 / 1;
    display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
    opacity: 0; visibility: hidden; transform: translateY(26px) scale(0.985);
    transition: opacity 0.55s ease, transform 0.65s var(--ease), visibility 0s linear 0.55s;
}
.service-panel.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.service-panel__icon { width: 64px; height: 64px; border-radius: 18px; background: rgba(56, 189, 242, 0.14); color: var(--cyan-light); display: flex; align-items: center; justify-content: center; }
.service-panel__icon .icon { width: 30px; height: 30px; stroke-width: 1.6; }
.service-panel h3 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; letter-spacing: -0.015em; }
.service-panel p { max-width: 560px; font-size: 17px; line-height: 1.7; color: var(--on-dark); }

.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18); font-size: 13px; color: rgba(255, 255, 255, 0.86); }

@media (max-width: 960px) {
    .services { grid-template-columns: minmax(0, 1fr); }
    .service-tab { min-height: 58px; padding-block: 10px; }
    .service-tab__label { font-size: 17px; }
}

/* 8. Équipe, partenaires -------------------------------------------------- */
.team { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.member__photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 22px; background: var(--line); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: grayscale(1) contrast(1.05); transition: transform 0.9s var(--ease), filter 0.6s ease; }
.member:hover .member__photo img { transform: scale(1.06); filter: none; }
.member__photo--initials { display: flex; align-items: center; justify-content: center; background: var(--ink-2); color: var(--cyan-light); font-family: var(--font-title); font-size: clamp(48px, 6vw, 72px); font-weight: 700; letter-spacing: -0.03em; }
.member h3 { margin-top: 16px; font-size: 20px; font-weight: 600; }
.member__role { margin-top: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-soft); transition: color 0.3s ease, letter-spacing 0.4s ease; }
.member:hover .member__role { color: var(--cyan-deep); letter-spacing: 0.16em; }

.partners { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: center; gap: clamp(32px, 5vw, 72px); padding: clamp(28px, 4vw, 56px); border-radius: 32px; border: 1px solid var(--line); background: var(--white); }
/* Chiffre : garde la couleur du texte principal (et non celle du paragraphe d'intro). */
.partners__intro .partners__count { margin: 0; color: var(--text); }
.partners__count { font-family: var(--font-title); font-size: clamp(64px, 8vw, 112px); font-weight: 700; line-height: 0.9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.partners__intro h2 { margin-top: 18px; font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.01em; }
.partners__intro p { margin-top: 10px; color: var(--text-soft); }
.partners__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.partners__list li {
    min-height: 104px; padding: 18px; display: flex; align-items: center; justify-content: center; text-align: center;
    border-radius: 18px; border: 1px solid var(--line); background: #F8FAFC;
    font-family: var(--font-title); font-size: 17px; font-weight: 600; line-height: 1.3; color: #22324A;
    transition: transform 0.45s var(--ease), box-shadow 0.45s ease, border-color 0.35s ease;
}
.partners__list li:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(10, 21, 36, 0.1); border-color: var(--cyan); }
.partners__list img { max-height: 56px; width: auto; }

@media (max-width: 960px) {
    .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .partners { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .partners__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .partners__list li { font-size: 15px; min-height: 88px; padding: 14px; }
    .team { gap: 16px; }
    .member h3 { font-size: 17px; }
}

/* 9. Contact, pied de page ------------------------------------------------ */
.contact { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: stretch; }
.contact__info { display: flex; flex-direction: column; align-items: flex-start; }
.contact__info .media-frame { width: 100%; margin-top: 32px; }

.contact-list { width: 100%; margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.contact-list li { display: flex; align-items: flex-start; gap: 12px; }
.contact-list__icon { width: 40px; height: 40px; flex: none; border-radius: 12px; background: rgba(56, 189, 242, 0.14); color: var(--cyan-light); display: flex; align-items: center; justify-content: center; }
.contact-list__icon .icon { stroke-width: 1.7; }
.contact-list li > span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: 16px; font-weight: 500; min-width: 0; }
.contact-list small { font-size: 13px; font-weight: 400; color: var(--on-dark-soft); }
.contact-list a { text-decoration: none; overflow-wrap: anywhere; transition: color 0.3s ease; }
.contact-list a:hover { color: var(--cyan-light); }

.contact-form {
    display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 3.5vw, 44px);
    border-radius: var(--radius); border: 1px solid var(--line-dark); background: var(--ink-2);
}
.contact-form h3 { margin-bottom: 4px; font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.82); }
.field input, .field textarea {
    width: 100%; min-height: 52px; padding: 0 16px;
    border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.2); background-color: rgba(255, 255, 255, 0.05);
    color: var(--white); font-size: 16px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}
.field textarea { padding: 14px 16px; line-height: 1.5; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--cyan); background-color: rgba(255, 255, 255, 0.09); }
.field.has-error input, .field.has-error textarea { border-color: #FF9C8A; }
.field__error { font-size: 13px; color: #FFB4A6; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { min-height: 21px; font-size: 14px; line-height: 1.5; color: var(--on-dark); }
.form-status:empty { display: none; }
.form-status.is-success { color: #8FE3B0; }
.form-status.is-error { color: #FFB4A6; }

.site-footer { background: var(--ink-3); color: var(--white); border-top: 1px solid rgba(255, 255, 255, 0.08); padding-block: clamp(48px, 6vw, 80px) 32px; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr 1fr; gap: 40px; }
.site-footer__tagline { margin-top: 18px; max-width: 300px; font-size: 15px; color: rgba(255, 255, 255, 0.7); }
.site-footer h3 { margin-bottom: 18px; font-size: 15px; font-weight: 600; letter-spacing: 0.04em; }
.site-footer ul { display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: rgba(255, 255, 255, 0.7); }
.site-footer ul a { display: inline-block; text-decoration: none; transition: color 0.3s ease, transform 0.3s var(--ease); }
.site-footer ul a:hover { color: var(--cyan-light); transform: translateX(6px); }
.site-footer__bottom { margin-top: 48px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line-dark); font-size: 14px; color: var(--on-dark-soft); }

@media (max-width: 960px) {
    .contact { grid-template-columns: minmax(0, 1fr); }
    .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .contact-list, .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
}

/* 10. Animations ---------------------------------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop {
    from { opacity: 0; transform: scale(0.82); clip-path: circle(0% at 50% 50%); }
    to { opacity: 1; transform: none; clip-path: circle(75% at 50% 50%); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { opacity: 0.45; transform: scale(1); } 50% { opacity: 1; transform: scale(1.35); } }

/* Séquence d'entrée de l'accueil : --d règle le décalage de chaque élément. */
.load { animation: rise 0.95s var(--ease) var(--d, 0s) both; }

/* Apparition au défilement. La classe « anim » est posée sur <html> par
   numeralys.js : sans JavaScript, tout le contenu reste visible.
   L'entrée utilise « translate » / « scale » pour laisser « transform » aux survols. */
.reveal { transition: transform 0.45s var(--ease), box-shadow 0.45s ease, border-color 0.35s ease; }
.anim .reveal {
    opacity: 0; translate: 0 36px;
    transition:
        opacity 0.9s var(--ease) var(--d, 0s),
        translate 0.9s var(--ease) var(--d, 0s),
        scale 0.9s var(--ease) var(--d, 0s),
        transform 0.45s var(--ease), box-shadow 0.45s ease, border-color 0.35s ease;
}
.anim .reveal--left { translate: -48px 0; }
.anim .reveal--right { translate: 48px 0; }
.anim .reveal--zoom { translate: none; scale: 0.9; }
.anim .reveal--wipe { translate: none; }
/* Effet rideau : il porte sur l'image, pas sur le cadre observé (un cadre entièrement
   masqué par clip-path ne serait jamais détecté par l'IntersectionObserver). */
.anim .reveal--wipe img { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease) var(--d, 0s), transform 1.2s var(--ease); }
.anim .reveal.is-in { opacity: 1; translate: none; scale: none; }
.anim .reveal--wipe.is-in img { clip-path: inset(0 0 0 0); }

/* Mouvement réduit : on coupe les animations, le contenu reste entièrement visible. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .anim .reveal { opacity: 1; translate: none; scale: none; }
    .anim .reveal--wipe img { clip-path: none; }
}
