:root {
    --ink: #142b3b;
    --ink-soft: #3e5665;
    --navy: #173f59;
    --navy-dark: #0f2e42;
    --teal: #187f82;
    --teal-dark: #11666a;
    --sky: #eaf4f5;
    --sand: #f5f1e8;
    --white: #ffffff;
    --line: #d8e1e5;
    --shadow: 0 18px 45px rgba(20, 43, 59, 0.12);
    --radius: 18px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 105px;
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

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

.site-container {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
}

.utility-bar {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.82rem;
}

.utility-bar__inner {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.utility-bar__badge {
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(20, 43, 59, 0.08);
    backdrop-filter: blur(14px);
}

.site-header__inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.site-brand__mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px 12px 12px 3px;
    background: var(--teal);
    color: var(--white);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.site-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.site-brand__text strong {
    font-size: 1.12rem;
    color: var(--navy-dark);
}

.site-brand__text small {
    margin-top: 5px;
    color: var(--ink-soft);
    font-size: 0.72rem;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 11px;
    border-radius: 9px;
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 0.91rem;
    font-weight: 650;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.main-nav a:hover {
    background: var(--sky);
    color: var(--teal-dark);
}

.main-nav .main-nav__cta {
    margin-left: 5px;
    background: var(--navy);
    color: var(--white);
}

.main-nav .main-nav__cta:hover {
    background: var(--navy-dark);
    color: var(--white);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--navy);
    border-radius: 99px;
}

.hero-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 10%, rgba(24, 127, 130, 0.20), transparent 34%),
        linear-gradient(135deg, #eef7f7 0%, #ffffff 58%, #f5f1e8 100%);
}

.hero-section::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -170px;
    bottom: -220px;
    border: 70px solid rgba(23, 63, 89, 0.06);
    border-radius: 50%;
}

.hero-grid {
    position: relative;
    z-index: 1;
    min-height: 620px;
    padding: 92px 0 86px;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.72fr);
    align-items: center;
    gap: 78px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    color: var(--teal-dark);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 3px;
    border-radius: 999px;
    background: var(--teal);
}

.hero-copy h1 {
    max-width: 850px;
    margin: 0;
    color: var(--navy-dark);
    font-size: clamp(2.9rem, 5.6vw, 5.15rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero-copy h1 span {
    color: var(--teal-dark);
}

.hero-lead {
    max-width: 770px;
    margin: 28px 0 0;
    color: var(--ink-soft);
    font-size: clamp(1.05rem, 1.8vw, 1.28rem);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 750;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button--primary {
    background: var(--teal);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(24, 127, 130, 0.20);
}

.button--primary:hover {
    background: var(--teal-dark);
    color: var(--white);
}

.button--secondary {
    border: 1px solid rgba(23, 63, 89, 0.19);
    background: rgba(255, 255, 255, 0.78);
    color: var(--navy);
}

.hero-card {
    position: relative;
    padding: 34px;
    border-radius: var(--radius);
    background: var(--navy);
    color: rgba(255, 255, 255, 0.89);
    box-shadow: var(--shadow);
}

.hero-card::before {
    content: "";
    position: absolute;
    width: 70px;
    height: 6px;
    top: 0;
    left: 34px;
    border-radius: 0 0 99px 99px;
    background: #f1c86d;
}

.hero-card__label {
    margin-bottom: 22px;
    color: #f1c86d;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-card p {
    margin: 0 0 20px;
}

.hero-card p:last-child {
    margin-bottom: 0;
}

.hero-card__highlight {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.17);
    font-size: 1.08rem;
    font-weight: 700;
}

.summary-section {
    padding: 90px 0;
    background: var(--white);
}

.section-heading {
    max-width: 860px;
}

.section-heading--center {
    margin: 0 auto 48px;
    text-align: center;
}

.section-heading--center .eyebrow {
    justify-content: center;
}

.section-heading h2 {
    margin: 0;
    color: var(--navy-dark);
    font-size: clamp(2rem, 3.4vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.section-heading > p {
    margin: 20px 0 0;
    color: var(--ink-soft);
    font-size: 1.08rem;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.summary-card {
    min-height: 235px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(20, 43, 59, 0.05);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.summary-card:hover {
    transform: translateY(-5px);
    border-color: rgba(24, 127, 130, 0.45);
    box-shadow: var(--shadow);
}

.summary-card__number {
    display: block;
    margin-bottom: 24px;
    color: var(--teal);
    font-weight: 850;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
}

.summary-card h3 {
    margin: 0 0 11px;
    color: var(--navy-dark);
    font-size: 1.25rem;
}

.summary-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.94rem;
}

.content-section {
    padding: 100px 0;
}

.content-section--light {
    background: #f8fafb;
}

.content-section--accent {
    background: var(--sand);
}

.content-section--dark {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.88);
}

.content-section--dark .section-heading h2,
.content-section--dark .prose strong {
    color: var(--white);
}

.content-section--dark .eyebrow {
    color: #7ed4d2;
}

.content-section--dark .eyebrow::before {
    background: #7ed4d2;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
    gap: 90px;
    align-items: start;
}

.content-grid > .section-heading {
    position: sticky;
    top: 135px;
}

.prose {
    max-width: 790px;
    font-size: 1.055rem;
}

.prose p {
    margin: 0 0 1.35em;
}

.prose strong {
    color: var(--navy-dark);
}

.statement {
    margin: 2.1em 0 !important;
    padding: 24px 26px;
    border-left: 5px solid var(--teal);
    background: rgba(24, 127, 130, 0.07);
    color: var(--navy-dark);
    font-size: 1.18rem;
    font-weight: 750;
}

.quote-card {
    margin: 34px 0;
    padding: 28px 30px;
    border: 0;
    border-radius: 16px;
    background: var(--white);
    color: var(--navy-dark);
    box-shadow: 0 14px 34px rgba(61, 50, 26, 0.09);
}

.quote-card p {
    margin: 0;
    font-size: 1.22rem;
    line-height: 1.55;
    font-weight: 700;
}

.question-card {
    margin: 38px 0;
    padding: 30px;
    border-radius: 16px;
    background: var(--sky);
    border: 1px solid rgba(24, 127, 130, 0.2);
}

.question-card__label {
    display: block;
    margin-bottom: 10px;
    color: var(--teal-dark);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.question-card h3 {
    margin: 0 0 14px;
    color: var(--navy-dark);
    font-size: 1.42rem;
    line-height: 1.25;
}

.question-card p {
    margin: 0;
}

.final-statement {
    margin-top: 34px !important;
    font-size: 1.4rem;
    line-height: 1.45;
    font-weight: 800;
    color: var(--white);
}

.tech-note {
    margin-top: 42px;
    padding: 26px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.13);
}

.tech-note span {
    display: block;
    margin-bottom: 7px;
    color: #7ed4d2;
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tech-note p {
    margin: 0;
}

.site-footer {
    padding: 42px 0;
    background: #0b2434;
    color: rgba(255, 255, 255, 0.7);
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.site-footer strong {
    color: var(--white);
}

.site-footer p {
    margin: 5px 0 0;
    max-width: 560px;
}

.site-footer__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    text-align: right;
    font-size: 0.86rem;
}

#blazor-error-ui {
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.65rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.9rem;
    top: 0.5rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

@media (max-width: 1080px) {
    .site-header__inner {
        position: relative;
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 1px);
        left: 20px;
        right: 20px;
        display: none;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .main-nav--open {
        display: grid;
    }

    .main-nav a {
        min-height: 46px;
        padding: 0 14px;
    }

    .main-nav .main-nav__cta {
        margin: 5px 0 0;
        justify-content: center;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 44px;
        min-height: auto;
    }

    .hero-card {
        max-width: 720px;
    }

    .summary-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .content-grid > .section-heading {
        position: static;
    }

    .prose {
        max-width: none;
    }
}

@media (max-width: 720px) {
    html {
        scroll-padding-top: 90px;
    }

    .site-container {
        width: min(calc(100% - 28px), var(--container));
    }

    .utility-bar {
        display: none;
    }

    .site-header__inner {
        min-height: 72px;
    }

    .site-brand__mark {
        width: 42px;
        height: 42px;
    }

    .site-brand__text small {
        display: none;
    }

    .main-nav {
        left: 14px;
        right: 14px;
    }

    .hero-grid {
        padding: 62px 0 58px;
    }

    .hero-copy h1 {
        font-size: clamp(2.6rem, 12.4vw, 4.2rem);
    }

    .hero-lead {
        margin-top: 22px;
    }

    .hero-actions {
        display: grid;
    }

    .button {
        width: 100%;
    }

    .hero-card {
        padding: 27px;
    }

    .summary-section,
    .content-section {
        padding: 72px 0;
    }

    .summary-cards {
        grid-template-columns: 1fr;
    }

    .summary-card {
        min-height: 0;
    }

    .section-heading h2 {
        font-size: clamp(2rem, 9vw, 2.75rem);
    }

    .prose {
        font-size: 1rem;
    }

    .statement,
    .quote-card,
    .question-card,
    .tech-note {
        padding: 22px;
    }

    .quote-card p {
        font-size: 1.08rem;
    }

    .site-footer__inner {
        flex-direction: column;
    }

    .site-footer__meta {
        align-items: flex-start;
        text-align: left;
    }
}

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

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

/* --- Identité personnelle / parcours --- */
.profile-card {
    margin: 0 0 34px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 12px 32px rgba(20, 43, 59, 0.07);
}

.profile-card__intro {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-card__age {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
    border-radius: 50%;
    background: var(--teal);
    color: var(--white);
    font-size: 1.35rem;
    font-weight: 850;
    text-align: center;
    line-height: 1.05;
}

.profile-card h3 {
    margin: 0 0 7px;
    color: var(--navy-dark);
    font-size: 1.45rem;
}

.profile-card p {
    margin: 0;
    color: var(--ink-soft);
}

.profile-card__details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 0.91rem;
}

.timeline {
    display: grid;
    gap: 0;
    margin-top: 38px;
    padding-left: 24px;
    border-left: 3px solid rgba(24, 127, 130, 0.25);
}

.timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 22px;
    padding: 0 0 26px 18px;
}

.timeline__item::before {
    content: "";
    position: absolute;
    left: -32px;
    top: 5px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--teal);
}

.timeline__item strong {
    color: var(--navy-dark);
}

.timeline__item span {
    color: var(--ink-soft);
}

.timeline__item--current::before {
    background: var(--teal);
}

.statement--dark {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border-left-color: #7ed4d2;
}

.experiment-card {
    margin-top: 44px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.07);
}

.experiment-card__label {
    display: block;
    margin-bottom: 9px;
    color: #7ed4d2;
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.experiment-card h3 {
    margin: 0 0 15px;
    color: var(--white);
    font-size: 1.42rem;
    line-height: 1.25;
}

.experiment-card p {
    margin-bottom: 24px;
}

.experiment-card dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.experiment-card dl > div {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.experiment-card dt {
    color: rgba(255, 255, 255, 0.68);
}

.experiment-card dd {
    margin: 0;
    color: var(--white);
    font-weight: 750;
    text-align: right;
}

.site-footer a {
    color: var(--white);
}

.site-footer address {
    margin-top: 10px;
    font-style: normal;
    line-height: 1.6;
}

@media (max-width: 720px) {
    .profile-card__intro {
        align-items: flex-start;
    }

    .profile-card__age {
        width: 70px;
        height: 70px;
        flex-basis: 70px;
        font-size: 1.08rem;
    }

    .profile-card__details {
        grid-template-columns: 1fr;
    }

    .timeline__item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .experiment-card dl > div {
        flex-direction: column;
        gap: 3px;
    }

    .experiment-card dd {
        text-align: left;
    }
}


.experiment-card__footnote {
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.deployment-note {
    margin-top: 24px;
    padding: 28px 30px;
    border-radius: 16px;
    background: rgba(126, 212, 210, 0.09);
    border: 1px solid rgba(126, 212, 210, 0.3);
}

.deployment-note__label {
    display: block;
    margin-bottom: 8px;
    color: #7ed4d2;
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.deployment-note h3 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 1.42rem;
    line-height: 1.25;
}

.deployment-note p:last-child {
    margin-bottom: 0;
}
