/* Variables, fonds, balises et conteneur */
:root {
    --ink: #111820;
    --muted: #4d5962;
    --navy: #0b1922;
    --paper: #fcfcfa;
    --surface: #f5f3ee;
    --line: #d9dddf;
    --accent: #73583c;
    --white: #fff;
    --accent-light: #d9b58c;
    --text-on-dark: #e1e7e8;
    --muted-on-dark: #d3dcdf;
    --line-on-dark: #64717b;
    --link: #60452e;
    --surface-accent: #ebe5da;
    --profile-background: #16252e;
    --hero-gradient-end: #192a32;
    --shadow-color: #0002;
}

:root,
.bg-white,
.bg-ivory,
.bg-beige,
.bg-sand {
    --theme-text: var(--ink);
    --theme-body: var(--ink);
    --theme-muted: var(--muted);
    --theme-accent: var(--accent);
    --theme-border: var(--line);
    --theme-link: var(--link);
    --theme-button-background: var(--navy);
    --theme-button-text: var(--white);
    --theme-button-hover-background: var(--accent-light);
    --theme-button-hover-text: var(--navy);
}

.bg-blue,
.bg-darkblue,
.bg-blue-gradient {
    --theme-text: var(--white);
    --theme-body: var(--text-on-dark);
    --theme-muted: var(--muted-on-dark);
    --theme-accent: var(--accent-light);
    --theme-border: var(--line-on-dark);
    --theme-link: var(--accent-light);
    --theme-button-background: var(--white);
    --theme-button-text: var(--navy);
    --theme-button-hover-background: var(--accent-light);
    --theme-button-hover-text: var(--navy);
}

.bg-white {
    --theme-background: var(--white);
}

.bg-ivory {
    --theme-background: var(--paper);
}

.bg-beige {
    --theme-background: var(--surface);
}

.bg-sand {
    --theme-background: var(--surface-accent);
}

.bg-blue {
    --theme-background: var(--profile-background);
}

.bg-darkblue {
    --theme-background: var(--navy);
}

.bg-blue-gradient {
    --theme-background: linear-gradient(120deg, var(--navy), var(--hero-gradient-end));
}

.bg-white,
.bg-ivory,
.bg-beige,
.bg-sand,
.bg-blue,
.bg-darkblue,
.bg-blue-gradient {
    background: var(--theme-background);
    color: var(--theme-text);
}

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

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    margin: 0;
    font: 1.1rem/1.7 Arial, Helvetica, sans-serif;
}

main {
    flex: 1;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-underline-offset: 0.2em;
}

a:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--theme-accent);
    outline-offset: 4px;
}

h1,
h2,
h3,
p,
figure {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    line-height: 1.1;
    color: var(--theme-text);
}

h1 {
    font-size: clamp(2.7rem, 6vw, 5.8rem);
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    letter-spacing: -0.03em;
}

h3 {
    font-size: 1.6rem;
}

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

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

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

/* Repères typographiques partagés */
.eyebrow,
.section-index,
.card-number,
.footer-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--theme-accent);
}

/* Boutons et liens d’action */
.btn,
.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-weight: 700;
    text-decoration: none;
}

.btn {
    min-height: 3rem;
    padding: 0.8rem 1.3rem;
    border-radius: 2px;
    background: var(--theme-button-background);
    color: var(--theme-button-text);
}

.btn-link {
    text-decoration: underline;
}

.btn:is(:hover, :focus-visible),
.header-cta:is(:hover, :focus-visible) {
    background: var(--theme-button-hover-background);
    color: var(--theme-button-hover-text);
}

main a:where(:not(.btn, .card-service, .card-related)):is(:hover, :focus-visible) {
    color: var(--theme-link);
    text-decoration: none;
}

/* Lien d’accès au contenu */
.skip-link {
    position: absolute;
    z-index: 10;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.6rem 1rem;
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: none;
}

/* En-tête et navigation */
.site-header {
    position: relative;
    z-index: 2;
    border-bottom: 1px solid var(--theme-border);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: 5.5rem;
}

.brand {
    display: block;
    flex: none;
    width: clamp(11rem, 25vw, 15rem);
}

.brand img {
    width: 100%;
}

.desktop-nav {
    display: flex;
    gap: clamp(0.8rem, 2vw, 2rem);
    margin-left: auto;
}

.desktop-nav a,
.header-cta {
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
}

.desktop-nav a:is(:hover, :focus-visible),
.desktop-nav a[aria-current] {
    color: var(--theme-accent);
}

.desktop-nav a[aria-current]:not(:hover):not(:focus-visible) {
    text-decoration: underline;
}

.header-cta {
    padding: 0.7rem 1rem;
    background: var(--theme-button-background);
    color: var(--theme-button-text);
    border-radius: 2px;
}

.mobile-menu {
    display: none;
}

@media (max-width: 1200px) {
    html {
        scroll-padding-top: 6.5rem;
    }

    body {
        padding-top: calc(5.5rem + 1px);
    }

    .site-header {
        position: fixed;
        top: 0;
        inset-inline: 0;
    }

    .desktop-nav,
    .header-cta {
        display: none;
    }

    .mobile-menu {
        display: block;
        margin-left: auto;
        position: relative;
    }

    .mobile-menu summary {
        cursor: pointer;
        padding: 0.5rem;
    }

    .mobile-menu nav {
        position: absolute;
        right: 0;
        top: 100%;
        width: min(19rem, 85vw);
        max-height: calc(100svh - 5.5rem);
        overflow-y: auto;
        padding: 1rem;
        box-shadow: 0 8px 20px var(--shadow-color);
    }

    .mobile-menu nav a {
        display: block;
        padding: 0.5rem;
    }
}

/* Cartes de services, de profil et de pages liées */
.card-expert {
    padding: 2rem;
    border-top: 4px solid var(--theme-accent);
}

.card-expert h2 {
    font-size: 2rem;
}

.card-expert-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.card-expert-photo {
    width: 6rem;
    height: 6rem;
    object-fit: cover;
    border-radius: 50%;
}

.card-expert-ref,
.card-expert-kicker {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.card-expert-kicker {
    margin-top: 1.5rem;
    color: var(--theme-accent);
}

.card-service {
    display: block;
    padding: 2rem;
    border: 1px solid var(--theme-border);
    text-decoration: none;
}

.card-service:is(:hover, :focus-visible),
.card-related:is(:hover, :focus-visible) {
    border-color: var(--theme-accent);
    box-shadow: inset 0 0 0 2px var(--theme-accent);
}

.card-service:is(:hover, :focus-visible) .card-link {
    color: var(--theme-link);
    text-decoration: none;
}

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

.card-link {
    font-weight: 700;
    text-decoration: underline;
}

.card-related {
    display: block;
    padding: 1.5rem;
    text-decoration: none;
    border: 1px solid var(--theme-border);
}

.card-related:is(:hover, :focus-visible) {
    color: var(--theme-link);
    text-decoration: none;
}

.card-related span,
.card-related strong {
    display: block;
}

@media (max-width: 620px) {
    .card-expert {
        max-width: 28rem;
    }
}

/* Sections de contenu partagées */
.custom-section {
    padding-block: clamp(4rem, 8vw, 8rem);
}

.split-heading,
.geography-grid,
.profile-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 6rem);
}

.split-heading > p {
    max-width: 33rem;
    align-self: end;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}

.method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 7vw, 7rem);
}

.method-intro > p:last-child {
    color: var(--theme-muted);
}

.method-steps article {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 1rem;
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--theme-border);
}

.method-steps article span {
    color: var(--theme-accent);
}

.method-steps article h3 {
    margin-bottom: 0.4rem;
}

.method-steps article p {
    margin-bottom: 0;
    color: var(--theme-muted);
}

.audience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.audience-panel {
    padding: clamp(2rem, 4vw, 4rem);
}

.audience-panel li {
    margin-block: 0.7rem;
}

.profile-grid {
    align-items: center;
}

.profile-visual {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 30rem;
    padding: clamp(1.5rem, 3vw, 3rem);
    border: 1px solid var(--theme-border);
}

.profile-visual::before {
    content: '';
    position: absolute;
    inset: 0.6rem;
    border: 1px solid var(--theme-border);
    opacity: 0.35;
    pointer-events: none;
}

.profile-caption {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--theme-muted);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.profile-monogram {
    align-self: center;
    padding-block: 2.5rem;
    color: var(--theme-accent);
    font: clamp(7rem, 13vw, 11rem)/1 Georgia, serif;
    letter-spacing: -0.07em;
    text-align: center;
}

.profile-monogram > span {
    display: block;
    margin-top: 1rem;
    font: 0.65rem/1.5 Arial, sans-serif;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.profile-disciplines > span {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-block: 0.7rem;
    border-top: 1px solid var(--theme-border);
    font: 1.4rem/1.3 Georgia, serif;
}

.profile-disciplines > span > span {
    color: var(--theme-accent);
    font: 0.65rem Arial, sans-serif;
    letter-spacing: 0.1em;
}

.geography-image {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
}

.city-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.city-list span {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
}

.contact-callout-section {
    padding-block: 3rem;
}

.contact-callout-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.contact-callout-section h2 {
    margin-bottom: 0;
}

.hero-section {
    padding-block: clamp(4rem, 7vw, 7rem);
}

main:has(> .not-found-section) {
    display: grid;
}

.not-found-section {
    display: flex;
    align-items: center;
}

.page-hero-content {
    max-width: 76rem;
}

.page-hero-content > p:not(.eyebrow, .hero-note) {
    max-width: 43rem;
    font-size: 1.2rem;
    color: var(--theme-body);
}

.hero-note {
    margin: 0;
    font-size: smaller;
}

.hero-section h1 {
    max-width: 55rem;
    font-size: clamp(2.7rem, 5vw, 5rem);
}

.article-list-section .container {
    max-width: 72rem;
}

.content-article {
    display: grid;
    grid-template-columns: 3rem minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(1rem, 3vw, 3rem);
    padding-block: 2.5rem;
    border-top: 1px solid var(--theme-border);
}

.content-article h2 {
    font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.content-body {
    max-width: 39rem;
}

.content-body li {
    margin-block: 0.6rem;
}

.content-body a {
    color: var(--theme-link);
}

.content-body img {
    max-height: 28rem;
    object-fit: cover;
}

.related-section {
    padding-block: 4rem;
}

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

@media (max-width: 900px) {
    .method-grid,
    .split-heading,
    .geography-grid,
    .profile-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .content-article {
        grid-template-columns: 3rem 1fr;
    }

    .content-body {
        grid-column: 2;
    }
}

@media (max-width: 620px) {
    .services-grid,
    .audience-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .content-article {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .content-body {
        grid-column: auto;
    }

    .contact-callout-content {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Pied de page */
.site-footer {
    padding-top: 4rem;
    color: var(--theme-muted);
}

.site-footer a {
    text-decoration: none;
}

.site-footer a:is(:hover, :focus-visible) {
    text-decoration: underline;
}

.site-footer a:not(.footer-brand):is(:hover, :focus-visible) {
    color: var(--theme-accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2rem;
}

.footer-grid a {
    display: block;
    margin-block: 0.6rem;
}

.footer-brand {
    font: 2rem Georgia, serif;
    text-decoration: none;
    color: var(--theme-text);
}

.footer-brand span {
    color: var(--theme-accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-block: 1.3rem;
    border-top: 1px solid var(--theme-border);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 620px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid > div:first-child {
        grid-column: 1/-1;
    }
}

/* Introduction de la page d’accueil */
.home-hero-section {
    padding-block: clamp(5rem, 10vw, 9rem) 2rem;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 0.8fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 6rem);
}

.home-hero-section h1 em {
    color: var(--theme-accent);
    font-weight: 400;
}

.hero-lead {
    max-width: 43rem;
    font-size: 1.2rem;
    color: var(--theme-body);
}

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

.trust-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 4rem;
    color: var(--theme-body);
    font-size: 0.9rem;
}

.trust-row i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--theme-accent);
}

@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .home-hero-section {
        padding-top: 4rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .trust-row i {
        display: none;
    }
}

/* Page de contact */
.contact-direct > a {
    display: flex;
    gap: 1rem;
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--theme-border);
}

.contact-label {
    display: block;
    font-size: smaller;
    color: var(--theme-muted);
}

.contact-direct strong,
.address-block strong {
    display: block;
    font-size: 1.2rem;
}

.address-block {
    margin-top: 2rem;
}

.contact-guidance {
    padding: clamp(2rem, 4vw, 4rem);
}

.contact-guidance ol {
    padding-left: 0;
    list-style: none;
}

.contact-guidance li {
    padding-block: 0.7rem;
}

.contact-guidance li span {
    margin-right: 0.8rem;
    color: var(--theme-accent);
}

.confidentiality {
    padding-top: 1rem;
    border-top: 1px solid var(--theme-border);
}

