:root {
    color-scheme: dark;
    --bg: #080b16;
    --bg-elevated: #0d1223;
    --bg-panel: #11182c;
    --bg-panel-light: #171f38;
    --line: rgba(172, 186, 233, 0.16);
    --line-strong: rgba(172, 186, 233, 0.3);
    --text: #f4f5fb;
    --muted: #aeb6cd;
    --subtle: #7f89a4;
    --blue: #7e9aff;
    --blue-strong: #4f70ff;
    --violet: #b08cff;
    --green: #66e3b0;
    --orange: #ffb37a;
    --pink: #ff92c2;
    --cyan: #76d7ef;
    --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Times New Roman", Times, serif;
    /* Police d'identite : celle du logo et du CV. Toute mention de la marque
       l'utilise, pour que le nom soit toujours dans la meme typographie. */
    --font-identity: "Times New Roman", Times, serif;
    --container: 1180px;
    --radius-sm: 0.75rem;
    --radius-md: 1.25rem;
    --radius-lg: 2rem;
}

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

html {
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
    font-family: var(--font-sans);
}

::selection {
    background: var(--blue-strong);
    color: #fff;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

button,
select {
    cursor: pointer;
}

button {
    border: 0;
}

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

.container {
    width: min(calc(100% - 2.5rem), var(--container));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: var(--text);
    color: var(--bg);
    font-weight: 700;
    transform: translateY(-150%);
    transition: transform 180ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: fixed;
    z-index: 40;
    top: 0;
    width: 100%;
    border-bottom: 1px solid transparent;
    background: rgba(8, 11, 22, 0.72);
    backdrop-filter: blur(20px);
    transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
    border-color: var(--line);
    background: rgba(8, 11, 22, 0.94);
}

.header-inner {
    display: flex;
    min-height: 5.25rem;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: inline-flex;
    min-width: max-content;
    align-items: center;
    gap: 0.75rem;
}

.brand-mark {
    display: block;
    width: 2.9rem;
    height: 2.9rem;
}

.brand-mark img {
    display: block;
    width: 2.9rem;
    height: 2.9rem;
    object-fit: contain;
}

.brand-copy {
    display: grid;
    gap: 0.05rem;
}

.brand-copy strong {
    font-family: var(--font-identity);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.brand-copy small {
    color: var(--subtle);
    font-family: var(--font-identity);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Mention de la marque dans un texte courant : la marque passe dans la
   police d'identite, la phrase garde sa police de lecture. */
.brand-name {
    font-family: var(--font-identity);
    font-weight: 700;
}

.primary-navigation {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    color: var(--muted);
    font-size: 0.86rem;
}

.primary-navigation a {
    transition: color 160ms ease;
}

.primary-navigation a:hover {
    color: var(--text);
}

.navigation-cta {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.95rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--text);
}

.navigation-cta span,
.button span,
.footer-link span {
    color: var(--blue);
    font-size: 1.1em;
}

.menu-toggle {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--text);
}

.menu-toggle-lines {
    display: grid;
    gap: 0.35rem;
}

.menu-toggle-lines span {
    display: block;
    width: 1.1rem;
    height: 1px;
    background: currentColor;
    transition: transform 160ms ease;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: min(57rem, 100vh);
    padding: 10rem 0 2rem;
    isolation: isolate;
}

.hero::before {
    position: absolute;
    z-index: -2;
    top: -20rem;
    right: -12rem;
    width: 48rem;
    height: 48rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 112, 255, 0.2), transparent 66%);
    content: "";
    filter: blur(10px);
}

.hero::after {
    position: absolute;
    z-index: -2;
    bottom: -20rem;
    left: -18rem;
    width: 44rem;
    height: 44rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(176, 140, 255, 0.12), transparent 68%);
    content: "";
}

.hero-grid-lines {
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image: linear-gradient(rgba(126, 154, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(126, 154, 255, 0.045) 1px, transparent 1px);
    background-size: 4rem 4rem;
    mask-image: linear-gradient(to bottom, #000 0, transparent 78%);
    pointer-events: none;
}

.hero-layout {
    display: grid;
    /* Deux colonnes des le grand ecran : le texte a gauche, la carte identite
       a droite. Les colonnes etaient declarees uniquement dans une media
       query, ce qui empilait tout sur desktop. */
    grid-template-columns: minmax(0, 1.05fr) minmax(19rem, 0.95fr);
    min-height: 40rem;
    align-items: center;
    gap: 4rem;
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 43rem;
}

.eyebrow,
.section-kicker {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1.35rem;
    color: var(--blue);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.3;
    text-transform: uppercase;
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0.28rem rgba(102, 227, 176, 0.12);
}

.hero h1,
.section-heading h2,
.about-copy h2,
.contact-copy h2 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -0.045em;
}

/* Le hero est compose de trois affirmations empilees : il garde sa
   largeur pour que chaque phrase tienne sur une seule ligne. */
.hero h1:not(.hero-claims) {
    max-width: 13ch;
    font-size: clamp(3rem, 5.4vw, 5.9rem);
    line-height: 0.94;
}

.hero h1 span {
    color: var(--blue);
}

/* Le hero a trois affirmations reprend la couleur du texte, sauf l'emphase.
   Selecteurs a deux classes pour passer devant `.hero h1 span`. */
.hero-claims span:not(.hero-claim--accent) {
    color: var(--text);
}

.hero-claims span.hero-claim--accent {
    color: var(--blue-strong);
}

.hero-lead {
    max-width: 37rem;
    margin: 2rem 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
    margin-top: 2.25rem;
}

.button {
    display: inline-flex;
    min-height: 3.2rem;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.8rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--text);
    color: var(--bg);
}

.button-primary span {
    color: var(--blue-strong);
}

.button-primary:hover {
    background: #fff;
}

.button-quiet {
    border-color: var(--line);
    color: var(--muted);
}

.button-quiet:hover {
    border-color: var(--line-strong);
    color: var(--text);
}

.hero-note {
    /* Slogan : la signature du cabinet, dans la police d'identite. */
    margin: 1.5rem 0 0;
    color: var(--subtle);
    font-family: var(--font-identity);
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.hero-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    color: var(--subtle);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.statement-band {
    border-block: 1px solid var(--line);
    background: var(--bg-elevated);
}

.statement-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 7rem;
}

.statement-inner p {
    max-width: 42rem;
    margin: 0;
    color: var(--muted);
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.2vw, 1.7rem);
    line-height: 1.25;
}

.statement-mark {
    color: var(--blue);
    font-size: 2.2rem;
}

.section {
    padding: 8rem 0;
}

.section-heading {
    margin-bottom: 3rem;
}

.section-heading-wide {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 24rem);
    align-items: end;
    gap: 3rem;
}

.section-kicker {
    margin-bottom: 1rem;
}

.section-heading h2,
.about-copy h2,
.contact-copy h2 {
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 0.98;
}

.section-heading h2 em,
.about-copy h2 em,
.contact-copy h2 em {
    color: var(--blue);
    font-style: normal;
}

.section-intro {
    max-width: 24rem;
    margin: 0 0 0.25rem auto;
    color: var(--muted);
    line-height: 1.65;
}

.services-section {
    background: var(--bg);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.service-card {
    display: flex;
    min-height: 27rem;
    flex-direction: column;
    padding: 1.6rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-card:hover {
    border-color: var(--line-strong);
    background: var(--bg-panel);
    transform: translateY(-0.35rem);
}

.service-card-top {
    display: flex;
    justify-content: space-between;
    color: var(--subtle);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
}

.service-arrow {
    color: var(--blue);
    font-size: 1.2rem;
}

.service-card h3 {
    max-width: 12ch;
    margin: 4.5rem 0 1rem;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1;
}

.service-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.service-card ul {
    display: grid;
    gap: 0.45rem;
    margin: auto 0 1.5rem;
    padding: 0;
    list-style: none;
    color: var(--subtle);
    font-size: 0.78rem;
}

.service-card li::before {
    margin-right: 0.55rem;
    color: var(--blue);
    content: "·";
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 700;
}

.text-link span {
    color: var(--blue);
    transition: transform 160ms ease;
}

.text-link:hover span {
    transform: translateX(0.3rem);
}

.service-card--blue {
    --card-accent: var(--blue);
}

.service-card--violet {
    --card-accent: var(--violet);
}

.service-card--green {
    --card-accent: var(--green);
}

.service-card--orange {
    --card-accent: var(--orange);
}

.service-card--blue .service-arrow,
.service-card--blue h3,
.service-card--violet .service-arrow,
.service-card--violet h3,
.service-card--green .service-arrow,
.service-card--green h3,
.service-card--orange .service-arrow,
.service-card--orange h3 {
    color: var(--card-accent);
}

.work-section {
    background: var(--bg-elevated);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.project-card {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg);
    transition: transform 180ms ease, border-color 180ms ease;
}

.project-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-0.35rem);
}

.project-card > a {
    display: block;
    height: 100%;
}

.project-visual {
    position: relative;
    display: flex;
    min-height: 15rem;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 1.4rem;
    background: linear-gradient(135deg, rgba(79, 112, 255, 0.38), rgba(13, 18, 35, 0.2));
}

.project-visual::before,
.project-visual::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    content: "";
}

.project-visual::before {
    right: -4rem;
    bottom: -6rem;
    width: 18rem;
    height: 18rem;
}

.project-visual::after {
    right: 2rem;
    bottom: 0;
    width: 9rem;
    height: 9rem;
}

.project-violet .project-visual {
    background: linear-gradient(135deg, rgba(176, 140, 255, 0.38), rgba(13, 18, 35, 0.2));
}

.project-green .project-visual {
    background: linear-gradient(135deg, rgba(102, 227, 176, 0.32), rgba(13, 18, 35, 0.2));
}

.project-orange .project-visual {
    background: linear-gradient(135deg, rgba(255, 179, 122, 0.32), rgba(13, 18, 35, 0.2));
}

.project-pink .project-visual {
    background: linear-gradient(135deg, rgba(255, 146, 194, 0.32), rgba(13, 18, 35, 0.2));
}

.project-cyan .project-visual {
    background: linear-gradient(135deg, rgba(118, 215, 239, 0.32), rgba(13, 18, 35, 0.2));
}

.project-number,
.project-open {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.project-open {
    position: absolute;
    top: 1.4rem;
    right: 1.4rem;
    color: #fff;
    font-size: 1.3rem;
}

.project-logo-frame {
    position: relative;
    z-index: 1;
    display: flex;
    width: 8.5rem;
    height: 5.25rem;
    align-items: center;
    justify-content: center;
    margin-top: 1.1rem;
    padding: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.9rem;
    background: #f3f5ff;
}

.project-logo-frame--dark {
    background: #080b16;
}

.project-logo-frame img {
    /* meme raison que dans le bandeau de l'ecosysteme. */
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.project-logo-frame--light img {
    mix-blend-mode: multiply;
}

.project-logo-frame--faint {
    background: #dbe6ff;
}

.project-logo-frame--faint img {
    filter: contrast(4) saturate(2.5) brightness(0.4);
    mix-blend-mode: multiply;
    transform: scale(1.25);
}

.project-word {
    position: relative;
    z-index: 1;
    max-width: 10ch;
    margin-top: 1rem;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 4vw, 3.8rem);
    letter-spacing: -0.06em;
    line-height: 0.92;
}

.project-content {
    padding: 1.4rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--subtle);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.project-meta span:last-child {
    color: var(--blue);
    font-size: 1rem;
}

.project-content h3 {
    margin: 2.3rem 0 0.7rem;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: -0.04em;
}

.project-content p {
    min-height: 3.2rem;
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.4rem;
}

.tag-list span {
    padding: 0.3rem 0.55rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--subtle);
    font-size: 0.68rem;
}

.method-section {
    background: var(--bg);
}

.method-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 5rem;
}

.method-heading p:last-child {
    max-width: 20rem;
    margin: 2rem 0 0;
    color: var(--muted);
}

.method-list {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.method-item {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 1.2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--line);
}

.method-number {
    color: var(--blue);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
}

.method-item h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
}

.method-item p {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.ecosystem-section {
    background: var(--bg-elevated);
}

.ecosystem-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
}

.ecosystem-item {
    display: grid;
    grid-template-columns: 2.5rem 1fr auto;
    align-items: center;
    gap: 0.8rem;
    min-height: 4.5rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 1.15rem;
    transition: color 160ms ease, padding 160ms ease;
}

.ecosystem-logo {
    display: grid;
    width: 2rem;
    height: 2rem;
    /* La ligne doit etre dimensionnee : sur une ligne en auto, un
       max-height en pourcentage n'a aucune base et n'est pas applique. */
    grid-template-rows: minmax(0, 1fr);
    place-items: center;
    padding: 0.2rem;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    background: #f3f5ff;
}

.ecosystem-logo img {
    /* max-width / max-height et non width / height : dans une grille centree,
       l'image n'est pas etiree, une hauteur en pourcentage n'a donc aucune
       base et retombe sur la taille intrinseque. Un logo portrait debordait
       alors du cadre. */
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.ecosystem-item:nth-child(odd) {
    padding-right: 2rem;
}

.ecosystem-item:nth-child(even) {
    padding-left: 2rem;
    border-left: 1px solid var(--line);
}

.ecosystem-item:hover {
    padding-left: 0.5rem;
    color: var(--text);
}

.ecosystem-item > span:last-child {
    color: var(--blue);
    font-family: var(--font-sans);
}

.ecosystem-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--green);
}

.about-section {
    background: var(--bg);
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 44rem);
    justify-content: center;
}

.hero-identity {
    position: relative;
    width: 100%;
    max-width: 23rem;
    margin: 0;
    justify-self: end;
}

.hero-identity::after {
    position: absolute;
    z-index: 3;
    top: 1.4rem;
    right: -1.1rem;
    bottom: -1.1rem;
    left: 1.1rem;
    border: 1px solid var(--line-strong);
    border-radius: 1.5rem;
    content: "";
    pointer-events: none;
}

.portrait-card-title {
    margin: 0;
    padding: 0.75rem 1rem 1.6rem;
    border-radius: 1.5rem 1.5rem 0 0;
    background: linear-gradient(180deg, #006699 0%, #00405f 55%, rgba(8, 11, 22, 0.15) 100%);
    color: #fff;
    font-family: "Times New Roman", Times, serif;
    font-size: 1.15rem;
    font-weight: 700;
    text-align: center;
}

.portrait-figure {
    position: relative;
    width: 100%;
    margin: 0;
}

.portrait-frame {
    position: relative;
    width: 100%;
}

.portrait-frame img {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 5 / 3;
    border-radius: 0;
    background: #05070d;
    object-fit: cover;
    object-position: 50% 50%;
    filter: grayscale(1);
}

.portrait-address {
    margin: 0;
    padding: 1.2rem 1.25rem 1.4rem;
    border-radius: 0 0 1.5rem 1.5rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.96) 45%, #06304e 100%);
    color: #fff;
    font-family: "Times New Roman", Times, serif;
    font-size: 0.95rem;
    font-style: normal;
    font-weight: 700;
}

.portrait-address ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.portrait-address li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0 0.65rem;
}

.portrait-address li:last-child {
    margin-bottom: 0;
}

.portrait-address svg {
    width: 1.2rem;
    height: 1.2rem;
    flex: 0 0 auto;
    color: #8ecdf0;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.portrait-address a {
    color: inherit;
    text-decoration: none;
}

.portrait-address a:hover,
.portrait-address a:focus-visible {
    text-decoration: underline;
}

.portrait-figcaption {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    padding: 4px;
    color: #fff;
    font-family: "Times New Roman", Times, serif;
    text-align: right;
    pointer-events: none;
}

.portrait-figcaption h2,
.portrait-figcaption h3 {
    margin: 0;
    background: linear-gradient(30deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: "Times New Roman", Times, serif;
}

.portrait-figcaption h2 {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    font-size: 14px;
    letter-spacing: 10px;
    line-height: 1;
    white-space: pre;
    text-shadow: 2px 2px 3px #666;
}

.portrait-figcaption h3 {
    position: absolute;
    right: 0.6rem;
    bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 8px;
    letter-spacing: 5px;
    line-height: 1;
    text-align: center;
}

.portrait-figcaption h2 span,
.portrait-figcaption h3 span {
    background: linear-gradient(30deg, rgba(0, 102, 153, 1), rgba(255, 255, 255, 0.1));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: rgba(0, 102, 153, 1);
    font-size: 24px;
}

.portrait-status {
    display: block;
    width: 0.75rem;
    height: 0.75rem;
    flex: 0 0 auto;
    color: #00b94f;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.about-copy {
    max-width: 39rem;
}

.about-copy > p:not(.section-kicker) {
    max-width: 34rem;
    margin: 1.5rem 0 0;
    color: var(--muted);
}

.signature-line {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 2.2rem;
    color: var(--subtle);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.signature-mark {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: var(--blue);
    font-family: var(--font-display);
    font-size: 1.3rem;
}

.contact-section {
    border-top: 1px solid var(--line);
    background: var(--bg-elevated);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1.1fr);
    gap: 6rem;
    align-items: start;
}

.contact-copy p:not(.section-kicker) {
    max-width: 28rem;
    margin: 2rem 0 0;
    color: var(--muted);
}

.contact-principles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}

.contact-principles span {
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--subtle);
    font-size: 0.7rem;
}

.brief-form {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg-panel);
}

.form-heading {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--blue);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.form-heading span:last-child {
    color: var(--subtle);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.form-field {
    display: grid;
    gap: 0.35rem;
}

.form-field label {
    color: var(--muted);
    font-size: 0.76rem;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    background: rgba(8, 11, 22, 0.55);
    color: var(--text);
    padding: 0.8rem 0.85rem;
    transition: border-color 160ms ease, background 160ms ease;
}

.form-field textarea {
    min-height: 7rem;
    resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--subtle);
    opacity: 0.75;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--blue);
    background: var(--bg);
    outline: none;
}

.form-submit {
    width: 100%;
    margin-top: 0.4rem;
}

.form-field--consent {
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 0.6rem;
}

.form-field--consent input[type="checkbox"] {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0.2rem 0 0;
    order: -1;
    accent-color: var(--blue);
}

.form-field--consent label {
    color: var(--subtle);
    font-size: 0.72rem;
    line-height: 1.5;
}

.form-field ul,
.brief-form ul {
    margin: 0;
    padding-left: 1.1rem;
    color: #ff9a9a;
    font-size: 0.72rem;
    list-style: disc;
}

.form-field--invalid input,
.form-field--invalid select,
.form-field--invalid textarea {
    border-color: #ff6b6b;
}

.form-errors {
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(255, 107, 107, 0.4);
    border-radius: 0.65rem;
    background: rgba(255, 107, 107, 0.08);
    color: #ffb3b3;
    font-size: 0.74rem;
}

.form-errors p {
    margin: 0 0 0.35rem;
    font-weight: 700;
}

.form-status--warning {
    border-color: rgba(255, 179, 122, 0.4);
    background: rgba(255, 179, 122, 0.08);
    color: var(--orange);
}

.tracking-page {
    min-height: 100vh;
    padding: 5rem 0 4rem;
    background: var(--bg);
}

.tracking-container {
    display: grid;
    gap: 1.4rem;
    max-width: 44rem;
    justify-items: start;
}

.tracking-brand {
    margin-bottom: 1.5rem;
}

.tracking-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 6vw, 3.2rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.tracking-lead {
    max-width: 34rem;
    margin: 0;
    color: var(--muted);
}

.tracking-link-box {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    background: var(--bg-panel);
}

.tracking-link-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--subtle);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tracking-link {
    color: var(--blue);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}

.tracking-link-note {
    margin: 0.7rem 0 0;
    color: var(--subtle);
    font-size: 0.7rem;
}

.tracking-steps {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tracking-step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 0 0.7rem 1.6rem;
    border-left: 1px solid var(--line);
    margin-left: 0.45rem;
    color: var(--subtle);
    font-size: 0.88rem;
}

.tracking-step-marker {
    position: absolute;
    left: -0.45rem;
    width: 0.85rem;
    height: 0.85rem;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--bg);
}

.tracking-step--reached {
    color: var(--text);
}

.tracking-step--reached .tracking-step-marker {
    border-color: var(--blue);
    background: var(--blue);
}

.tracking-step--current {
    color: #fff;
    font-weight: 700;
}

.tracking-step--current .tracking-step-marker {
    border-color: var(--green);
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(102, 227, 176, 0.18);
}

.tracking-meta {
    display: grid;
    width: 100%;
    gap: 0.9rem 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    margin: 0;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg-panel);
}

.tracking-meta dt {
    color: var(--subtle);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tracking-meta dd {
    margin: 0.25rem 0 0;
    font-family: "Times New Roman", Times, serif;
    font-size: 1rem;
    font-weight: 700;
}

.tracking-recap {
    width: 100%;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
}

.tracking-recap h2 {
    margin: 0 0 0.6rem;
    color: var(--subtle);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tracking-recap p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.tracking-back {
    margin: 0.4rem 0 0;
}

.form-note,
.form-status {
    margin: 0;
    color: var(--subtle);
    font-size: 0.7rem;
}

.form-status {
    padding: 0.7rem;
    border: 1px solid rgba(102, 227, 176, 0.35);
    border-radius: 0.65rem;
    background: rgba(102, 227, 176, 0.08);
    color: var(--green);
}

.site-footer {
    background: var(--bg);
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-block: 3rem;
    border-top: 1px solid var(--line);
}

.footer-top p {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
    text-align: right;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--muted);
    font-size: 0.8rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1.2rem;
    border-top: 1px solid var(--line);
    color: var(--subtle);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 960px) {
    .hero-layout {
        grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.75fr);
        gap: 2rem;
    }

    .section-heading-wide {
        grid-template-columns: minmax(0, 1fr) minmax(14rem, 18rem);
        gap: 2rem;
    }

    .about-layout,
    .contact-layout {
        gap: 3rem;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(calc(100% - 2rem), var(--container));
    }

    .site-header {
        background: rgba(8, 11, 22, 0.9);
    }

    .header-inner {
        min-height: 4.6rem;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .primary-navigation {
        position: absolute;
        top: calc(100% + 1px);
        right: 1rem;
        left: 1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.6rem;
        border: 1px solid var(--line);
        border-radius: 0 0 1rem 1rem;
        background: rgba(13, 18, 35, 0.98);
        box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.3);
    }

    .primary-navigation.is-open {
        display: flex;
    }

    .primary-navigation a {
        padding: 0.85rem;
        border-radius: 0.65rem;
    }

    .primary-navigation a:hover {
        background: rgba(126, 154, 255, 0.1);
    }

    .navigation-cta {
        justify-content: space-between;
        margin-top: 0.4rem;
        border-radius: 0.65rem;
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle-lines span:first-child {
        transform: translateY(0.18rem) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle-lines span:last-child {
        transform: translateY(-0.18rem) rotate(-45deg);
    }

    .hero {
        min-height: auto;
        padding-top: 8rem;
    }

    .hero-layout {
        /* Sur mobile la carte identite passe en tete : l'objectif est de voir
           la personne des l'arrivee, avant même de lire l'accroche. */
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .hero-identity {
        order: 1;
        max-width: 20rem;
        margin-bottom: 2.5rem;
        justify-self: center;
    }

    .hero-copy {
        order: 2;
        max-width: 38rem;
    }

    .hero h1:not(.hero-claims) {
        max-width: 10ch;
        font-size: clamp(2.9rem, 13vw, 5rem);
    }

    .hero-meta {
        flex-wrap: wrap;
        margin-top: 2rem;
    }

    .statement-inner {
        min-height: 6rem;
    }

    .section {
        padding-block: 5.5rem;
    }

    .section-heading-wide,
    .method-layout,
    .about-layout,
    .contact-layout {
        display: block;
    }

    .section-intro {
        margin: 1.5rem 0 0;
    }

    .service-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 22rem;
    }

    .service-card h3 {
        margin-top: 3.5rem;
    }

    .project-visual {
        min-height: 13rem;
    }

    .method-list {
        margin-top: 3rem;
    }

    .ecosystem-list {
        grid-template-columns: 1fr;
    }

    .ecosystem-item:nth-child(odd),
    .ecosystem-item:nth-child(even) {
        padding-right: 0;
        padding-left: 0;
        border-left: 0;
    }

    .about-copy > p:not(.section-kicker) {
        margin-top: 1.25rem;
    }

    .brief-form {
        margin-top: 3rem;
    }

    .footer-top,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-top p {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .brand-copy small {
        max-width: 9rem;
        font-size: 0.58rem;
    }

    .hero h1:not(.hero-claims) {
        font-size: clamp(3.1rem, 17vw, 4.7rem);
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .hero-meta {
        display: grid;
        gap: 0.45rem;
    }

    .statement-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem;
        padding-block: 1.5rem;
    }

    .statement-mark {
        align-self: flex-end;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

.tracking-timeline {
    width: 100%;
}

.tracking-timeline-title {
    margin: 0 0 1rem;
    color: var(--subtle);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.timeline-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline-item {
    position: relative;
    display: flex;
    gap: 1rem;
    margin-left: 0.45rem;
    padding: 0 0 1.4rem 1.6rem;
    border-left: 1px solid var(--line);
}

.timeline-item:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
}

.timeline-marker {
    position: absolute;
    top: 0.35rem;
    left: -0.45rem;
    width: 0.85rem;
    height: 0.85rem;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--bg);
}

.timeline-item--created .timeline-marker,
.timeline-item--message .timeline-marker {
    border-color: var(--blue);
    background: var(--blue);
}

.timeline-item--status_change .timeline-marker {
    border-color: var(--green);
    background: var(--green);
}

.timeline-body {
    display: grid;
    gap: 0.3rem;
}

.timeline-summary {
    margin: 0;
    color: var(--text);
    font-family: "Times New Roman", Times, serif;
    font-size: 1.02rem;
    font-weight: 700;
}

.timeline-detail {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.9rem;
    margin: 0;
    color: var(--subtle);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* --- Hero : trois affirmations et le trio ----------------------------- */

.hero-claims {
    display: grid;
    gap: 0.1em;
    margin: 0;
    max-width: 24ch;
    font-size: clamp(1.9rem, 5vw, 3.3rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.hero-terms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
    gap: 1.2rem 2rem;
    max-width: 42rem;
    margin: 2.2rem 0 0;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
}

.hero-terms dt {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-terms dd {
    margin: 0.35rem 0 0;
    font-family: var(--font-identity);
    font-size: 1.05rem;
}

/* --- Realisations : l'argument en tete ------------------------------- */

.project-argument {
    font-size: 1.18rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.project-subject {
    margin: 0.35rem 0 0.9rem;
    color: var(--muted);
    font-size: 0.8rem;
}

.project-status {
    padding: 0.1rem 0.45rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.project-status--upcoming {
    color: var(--orange);
}
