:root {
    --color-bg: #f7f4ee;
    --color-surface: #fffdf8;
    --color-surface-soft: #f0ebe1;
    --color-text: #24211d;
    --color-muted: #6f675c;
    --color-border: rgba(36, 33, 29, 0.14);
    --color-primary: #5d3f2e;
    --color-primary-hover: #432d21;
    --color-accent: #b88a5a;

    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-title: Georgia, "Times New Roman", serif;

    --max-width: 1080px;
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;

    --shadow-soft: 0 18px 45px rgba(38, 30, 22, 0.08);
    --shadow-card: 0 10px 30px rgba(38, 30, 22, 0.07);

    --section-padding: clamp(4rem, 8vw, 7rem);
    --content-inset: clamp(1.25rem, 3vw, 1.7rem);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-main);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background:
        radial-gradient(circle at top left, rgba(184, 138, 90, 0.16), transparent 32rem),
        linear-gradient(180deg, #fbf8f2 0%, var(--color-bg) 45%, #f2eee6 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(36, 33, 29, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(36, 33, 29, 0.025) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 70%);
}

a {
    color: inherit;
}

p {
    margin: 0 0 1.1rem;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.12;
    font-weight: 600;
}
h1,
h2,
h3 {
    margin: 0;
    line-height: 1.12;
    font-weight: 700;
}

h1,
h2 {
    font-family: var(--font-title);
    letter-spacing: -0.035em;
}

h1 {
    max-width: 860px;
    margin-bottom: 1.4rem;
    font-size: clamp(2.6rem, 7vw, 5.8rem);
}

h2 {
    max-width: 820px;
    margin-bottom: 1.4rem;
    font-size: clamp(2rem, 4.5vw, 4rem);
}

h3 {
    margin-bottom: 0.85rem;
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    letter-spacing: -0.015em;
}

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

button {
    cursor: pointer;
}

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

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1rem clamp(1rem, 4vw, 3rem);
    border-bottom: 1px solid rgba(36, 33, 29, 0.08);
    background: rgba(247, 244, 238, 0.78);
    backdrop-filter: blur(18px);
}

.site-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 2.5rem;
    font-family: var(--font-title);
    font-size: 1.45rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.03em;
}

.site-logo::after {
    content: "";
    position: absolute;
    right: -0.55rem;
    bottom: 0.4rem;
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 50%;
    background: var(--color-accent);
}

.site-logo-text {
    position: relative;
    z-index: 1;
    display: inline-block;
}

.site-logo-text::after {
    content: attr(data-text);
    position: absolute;
    z-index: 2;
    inset: 0;
    color: transparent;
    background: linear-gradient(105deg, transparent 34%, var(--logo-light-edge) 44%, var(--logo-light-core) 50%, var(--logo-light-edge) 56%, transparent 66%);
    background-position: 140% 0;
    background-size: 260% 100%;
    background-clip: text;
    opacity: 0;
    pointer-events: none;
    -webkit-background-clip: text;
}

.site-logo-rays {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: -0.7rem;
    width: 1.4rem;
    height: 1.4rem;
    background: repeating-conic-gradient(from 8deg, transparent 0deg 24deg, var(--logo-ray-color) 26deg 29deg, transparent 31deg 60deg);
    filter: drop-shadow(0 0 0.18rem var(--logo-ray-glow));
    mask-image: radial-gradient(circle, transparent 0 20%, #000 24% 48%, transparent 72%);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.65) rotate(0deg);
    -webkit-mask-image: radial-gradient(circle, transparent 0 20%, #000 24% 48%, transparent 72%);
}

.site-logo.is-light-animated .site-logo-text::after {
    animation: logoLightSweep 3.2s ease-in-out both;
}

.site-logo.is-light-animated .site-logo-rays {
    animation: logoLightRays 3.2s ease-in-out both;
}

.site-logo.is-light-animated::after {
    animation: logoPointPulse 850ms ease-out 2.43s both;
}

@keyframes logoLightSweep {
    0%,
    8% {
        background-position: 140% 0;
        opacity: 0;
    }

    18% {
        opacity: 1;
    }

    78% {
        background-position: -110% 0;
        opacity: 1;
    }

    88%,
    100% {
        background-position: -110% 0;
        opacity: 0;
    }
}

@keyframes logoLightRays {
    0%,
    10% {
        left: -0.7rem;
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.55) rotate(0deg);
    }

    18% {
        opacity: 0.65;
    }

    75% {
        left: calc(100% + 0.05rem);
        opacity: 0.55;
        transform: translate(-50%, -50%) scale(0.85) rotate(70deg);
    }

    84%,
    100% {
        left: calc(100% + 0.5rem);
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.35) rotate(90deg);
    }
}

@keyframes logoPointPulse {
    0% {
        box-shadow: var(--theme-logo-glow);
        transform: scale(1);
    }

    42% {
        box-shadow: 0 0 0.2rem var(--logo-light-core), 0 0 0.75rem var(--logo-point-glow);
        transform: scale(1.75);
    }

    100% {
        box-shadow: var(--theme-logo-glow);
        transform: scale(1);
    }
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 2.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    color: var(--color-muted);
    font-size: 0.92rem;
    text-decoration: none;
    transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--color-text);
    background: rgba(93, 63, 46, 0.08);
}

.nav-toggle {
    display: none;
}

.theme-toggle {
    display: inline-grid;
    flex: 0 0 auto;
    width: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-text);
    background: var(--theme-toggle-background);
    place-items: center;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.theme-toggle:hover {
    background: var(--theme-interactive-background);
}

.theme-toggle-icon {
    display: none;
    width: 1.25rem;
    height: 1.25rem;
}

:root:not(.theme-dark) .theme-toggle-icon-moon,
html.theme-light .theme-toggle-icon-moon,
html.theme-dark .theme-toggle-icon-sun {
    display: block;
}

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

/* Structure */

main section[id] {
    scroll-margin-top: 2.6rem;
}

.section-inner {
    width: min(var(--max-width), calc(100% - 2rem));
    margin: 0 auto;
}

.hero {
    position: relative;
    display: grid;
    min-height: calc(100svh - 4.6rem);
    padding: clamp(5rem, 10vw, 8rem) 0;
    place-items: center;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    right: max(-12rem, -12vw);
    bottom: 3rem;
    width: clamp(18rem, 38vw, 34rem);
    height: clamp(18rem, 38vw, 34rem);
    border: 1px solid rgba(93, 63, 46, 0.16);
    border-radius: 45% 55% 60% 40%;
    background: rgba(255, 253, 248, 0.42);
    box-shadow: inset 0 0 0 2rem rgba(184, 138, 90, 0.05);
    transform: rotate(-12deg);
}

.hero .section-inner {
    position: relative;
    z-index: 1;
}

.hero p:not(.brand) {
    max-width: 660px;
    color: var(--color-muted);
    font-size: clamp(1.05rem, 1.8vw, 1.22rem);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.4rem;
    color: var(--color-primary);
    font-family: "Open Sans", system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.brand::before {
    content: "";
    width: 2.4rem;
    height: 1px;
    background: var(--color-accent);
}

.hero-catchphrase {
    margin-top: 1.6rem;
    color: var(--color-text) !important;
    font-weight: 600;
}

.segment {
    padding: var(--section-padding) 0;
}

.segment .section-inner > p {
    max-width: 760px;
    color: var(--color-muted);
}

.hero-content,
.segment-approach .section-inner > h2,
.segment-approach .section-inner > p,
.segment-services .section-inner > h2,
.segment-services .section-inner > p,
.segment-contact .section-inner > h2,
.segment-contact .section-inner > p,
.segment-technical .section-inner > h2,
.segment-technical .technical-intro {
    margin-inline: var(--content-inset);
}

.segment:nth-of-type(even) {
    background: rgba(255, 253, 248, 0.48);
}

.short-conclusion,
.reassurance {
    font-size: 0.98rem;
}

.short-conclusion {
    margin-top: 1.6rem;
    color: var(--color-primary) !important;
    font-weight: 600;
}

/* Boutons */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.85rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease,
        border-color 180ms ease;
}

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

.button:focus-visible,
.nav-toggle:focus-visible,
.theme-toggle:focus-visible,
.theme-button:focus-visible,
.service-toggle:focus-visible,
.modal-close:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(184, 138, 90, 0.35);
    outline-offset: 3px;
}

.button-primary {
    color: #fff;
    background: var(--color-primary);
    box-shadow: 0 12px 28px rgba(93, 63, 46, 0.22);
}

.button-primary:hover {
    background: var(--color-primary-hover);
    box-shadow: 0 16px 36px rgba(93, 63, 46, 0.28);
}

/* Cartes approche */

.approach-blocks,
.services-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.4rem;
}

.approach-block,
.service {
    position: relative;
    padding: var(--content-inset);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: rgba(255, 253, 248, 0.78);
    box-shadow: var(--shadow-card);
}

.approach-block::before,
.service::before {
    content: "";
    display: block;
    width: 2.3rem;
    height: 0.18rem;
    margin-bottom: 1.2rem;
    border-radius: 999px;
    background: var(--color-accent);
}

.approach-block p,
.service p {
    color: var(--color-muted);
}

/* Identité visuelle */

.segment-visual-identity {
    --identity-background: #eef1ed;
    --identity-color: #202724;
    --identity-muted: #66716b;
    --identity-accent: #285447;
    --identity-border: rgba(32, 39, 36, 0.18);
    --identity-button-background: rgba(251, 251, 247, 0.78);
    --identity-button-active-background: #285447;
    --identity-button-active-color: #ffffff;
    --identity-image-border: rgba(32, 39, 36, 0.16);
    position: relative;
    overflow: hidden;
    color: var(--identity-color);
    background: var(--identity-background);
    transition:
        color 280ms ease,
        background-color 280ms ease;
}

.visual-demo {
    display: grid;
    align-items: center;
    min-height: 35rem;
    padding-block: clamp(4.5rem, 9vw, 8rem);
}

.visual-demo-content {
    position: relative;
    z-index: 1;
}

.visual-demo h2 {
    margin: 0 0 1.5rem;
    color: inherit;
}

.visual-demo p {
    max-width: 40rem;
    color: var(--identity-muted);
}

.visual-demo #theme-selector-label {
    margin-top: 1.8rem;
    font-weight: 700;
}

.theme-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.2rem 0 0;
}

.theme-button {
    min-height: 2.75rem;
    padding: 0.62rem 0.95rem;
    border: 1px solid var(--identity-border);
    border-radius: 999px;
    color: var(--identity-color);
    background: var(--identity-button-background);
    cursor: pointer;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    transition:
        color 180ms ease,
        background 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

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

.theme-button[aria-pressed="true"],
.theme-button.is-active {
    color: var(--identity-button-active-color);
    border-color: var(--identity-button-active-background);
    background: var(--identity-button-active-background);
}

.visual-demo-media {
    width: min(100%, 20rem);
    margin: 0;
}

.visual-demo-image {
    display: block;
    width: 100%;
    max-height: 30rem;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 1px solid var(--identity-image-border);
}

/* Ambiances de la démo */

.segment-visual-identity[data-current-theme="clair"] .visual-demo,
.segment-visual-identity[data-current-theme="sombre"] .visual-demo {
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 21rem);
    gap: clamp(3rem, 8vw, 7rem);
}

.segment-visual-identity[data-current-theme="clair"] .visual-demo-content,
.segment-visual-identity[data-current-theme="sombre"] .visual-demo-content {
    max-width: 44rem;
}

.segment-visual-identity[data-current-theme="clair"] .theme-button,
.segment-visual-identity[data-current-theme="sombre"] .theme-button {
    min-height: 2.75rem;
    padding-inline: 1rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(32, 39, 36, 0.08);
}

.segment-visual-identity[data-current-theme="clair"] .theme-button:hover,
.segment-visual-identity[data-current-theme="sombre"] .theme-button:hover {
    box-shadow: 0 12px 26px rgba(32, 39, 36, 0.14);
}

.segment-visual-identity[data-current-theme="clair"] .theme-button[aria-pressed="true"],
.segment-visual-identity[data-current-theme="clair"] .theme-button.is-active {
    box-shadow: 0 12px 28px rgba(40, 84, 71, 0.24);
}

.segment-visual-identity[data-current-theme="sombre"] .theme-button[aria-pressed="true"],
.segment-visual-identity[data-current-theme="sombre"] .theme-button.is-active {
    box-shadow: 0 12px 28px rgba(118, 47, 61, 0.32);
}

.segment-visual-identity[data-current-theme="clair"] .visual-demo-image,
.segment-visual-identity[data-current-theme="sombre"] .visual-demo-image {
    border-radius: 0.35rem 4rem 0.35rem 0.35rem;
    box-shadow: 1rem 1rem 0 var(--identity-accent);
}

.segment-visual-identity[data-current-theme="sombre"] {
    --identity-background: #2c3531;
    --identity-color: #f2eee4;
    --identity-muted: #c4cbc6;
    --identity-accent: #b83a36;
    --identity-border: rgba(242, 238, 228, 0.28);
    --identity-button-background: rgba(32, 39, 36, 0.72);
    --identity-button-active-background: #762f3d;
    --identity-button-active-color: #ffffff;
    --identity-image-border: rgba(255, 255, 255, 0.16);
    background:
        linear-gradient(135deg, rgba(242, 240, 232, 0.05), transparent 42rem),
        var(--identity-background);
}

.segment-visual-identity[data-current-theme="institutionnel"] {
    --identity-background: #eef3f8;
    --identity-color: #172333;
    --identity-muted: #566575;
    --identity-accent: #5fa8d3;
    --identity-border: rgba(23, 35, 51, 0.2);
    --identity-button-background: rgba(255, 255, 255, 0.72);
    --identity-button-active-background: #1d4f7a;
    --identity-button-active-color: #ffffff;
    --identity-image-border: rgba(29, 79, 122, 0.24);
    background:
        linear-gradient(90deg, transparent 0 8%, rgba(29, 79, 122, 0.06) 8% 8.1%, transparent 8.1%),
        var(--identity-background);
}

.segment-visual-identity[data-current-theme="institutionnel"] .visual-demo {
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: clamp(2.5rem, 6vw, 5rem);
    min-height: 36rem;
}

.segment-visual-identity[data-current-theme="institutionnel"] .visual-demo-content {
    display: grid;
    grid-template-columns: minmax(9rem, 12rem) minmax(0, 1fr);
    column-gap: clamp(2rem, 4vw, 3.5rem);
    max-width: 48rem;
}

.segment-visual-identity[data-current-theme="institutionnel"] .visual-demo-content h2 {
    grid-row: 1 / 5;
    margin: 0;
    font-family: "Open Sans", system-ui, sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.segment-visual-identity[data-current-theme="institutionnel"] .visual-title-first-word {
    display: block;
    margin-bottom: 0.16em;
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.segment-visual-identity[data-current-theme="institutionnel"] .visual-demo-content p,
.segment-visual-identity[data-current-theme="institutionnel"] .theme-selector {
    grid-column: 2;
}

.segment-visual-identity[data-current-theme="institutionnel"] .visual-demo-image {
    border-radius: 0;
    border: 2px solid #172333;
    box-shadow: none;
}

.segment-visual-identity[data-current-theme="institutionnel"] .theme-button {
    min-height: 2.4rem;
    padding: 0.45rem 0.72rem;
    border-radius: 0.25rem;
    font-size: 0.82rem;
}

.segment-visual-identity[data-current-theme="artisanal"] {
    --identity-background: #f7f4ee;
    --identity-color: #24211d;
    --identity-muted: #6f675c;
    --identity-accent: #b88a5a;
    --identity-border: rgba(36, 33, 29, 0.16);
    --identity-button-background: rgba(255, 253, 248, 0.76);
    --identity-button-active-background: #5d3f2e;
    --identity-button-active-color: #fffdf8;
    --identity-image-border: rgba(93, 63, 46, 0.22);
    background:
        radial-gradient(circle at 8% 22%, rgba(184, 138, 90, 0.14), transparent 24rem),
        var(--identity-background);
}

.segment-visual-identity[data-current-theme="artisanal"] .visual-demo {
    grid-template-columns: 20rem minmax(0, 1fr);
    gap: clamp(3rem, 7vw, 6rem);
    min-height: 36rem;
}

.segment-visual-identity[data-current-theme="artisanal"] .visual-demo-content {
    max-width: 46rem;
}

.segment-visual-identity[data-current-theme="artisanal"] .visual-demo-content h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 4.8vw, 4.3rem);
    font-weight: 600;
    line-height: 1.02;
}

.segment-visual-identity[data-current-theme="artisanal"] #theme-selector-label {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.35rem, 2.2vw, 1.7rem);
    font-style: italic;
    font-weight: 500;
    line-height: 1.25;
}

.segment-visual-identity[data-current-theme="artisanal"] .visual-demo-media {
    order: -1;
}

.segment-visual-identity[data-current-theme="artisanal"] .visual-demo-image {
    border-radius: 0.8rem;
    box-shadow: -0.75rem 0.75rem 0 rgba(184, 138, 90, 0.24);
}

.segment-visual-identity[data-current-theme="artisanal"] .theme-button {
    border-radius: 0.45rem;
}

.segment-visual-identity[data-current-theme="technique"] {
    --identity-background: #eef3f2;
    --identity-color: #17211f;
    --identity-muted: #586763;
    --identity-accent: #d08f45;
    --identity-border: rgba(23, 33, 31, 0.2);
    --identity-button-background: rgba(255, 255, 255, 0.7);
    --identity-button-active-background: #0d5b53;
    --identity-button-active-color: #ffffff;
    --identity-image-border: rgba(13, 91, 83, 0.28);
    background:
        linear-gradient(rgba(13, 91, 83, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 91, 83, 0.06) 1px, transparent 1px),
        var(--identity-background);
    background-size: 4.5rem 4.5rem;
}

.segment-visual-identity[data-current-theme="technique"] .visual-demo {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 26rem);
    grid-template-rows: repeat(3, auto) auto auto;
    gap: clamp(3rem, 7vw, 6rem);
    row-gap: 1.5rem;
    min-height: 36rem;
}

.segment-visual-identity[data-current-theme="technique"] .visual-demo-content {
    display: contents;
    max-width: 44rem;
}

.segment-visual-identity[data-current-theme="technique"] .visual-demo-content h2 {
    grid-column: 1;
    grid-row: 1;
    max-width: 12ch;
    margin: 0;
    padding-left: clamp(1.25rem, 3vw, 2.5rem);
    border-left: 2px solid #0d5b53;
    font-family: "Open Sans", system-ui, sans-serif;
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.segment-visual-identity[data-current-theme="technique"] .visual-demo-content > p:not(#theme-selector-label) {
    grid-column: 1;
    padding-left: clamp(1.25rem, 3vw, 2.5rem);
}

.segment-visual-identity[data-current-theme="technique"] .visual-demo-content > p:nth-of-type(1) {
    grid-row: 2;
    margin-bottom: 0;
}

.segment-visual-identity[data-current-theme="technique"] .visual-demo-content > p:nth-of-type(2) {
    grid-row: 3;
    margin-bottom: 0;
}

.segment-visual-identity[data-current-theme="technique"] #theme-selector-label {
    grid-column: 1;
    grid-row: 4;
    margin: 0;
      font-family: "Tinos", serif;
  font-weight: 700;
  font-style: normal;
}

.segment-visual-identity[data-current-theme="technique"] .theme-selector {
    display: grid;
    grid-column: 2;
    grid-row: 4;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin-top: -0.75rem;
}

.segment-visual-identity[data-current-theme="technique"] .visual-demo-media {
    grid-column: 2;
    grid-row: 1 / 4;
    width: min(100%, 26rem);
}

.segment-visual-identity[data-current-theme="technique"] .visual-demo-image {
    max-height: 26rem;
    aspect-ratio: 1;
    border-radius: 20px;
    box-shadow: 0.75rem 0.75rem 0 rgba(208, 143, 69, 0.26);
}

.segment-visual-identity[data-current-theme="technique"] .theme-button {
    width: 100%;
    border-radius: 0.25rem;
}

.segment-visual-identity[data-current-theme="elegant"] {
    --identity-background: #10110f;
    --identity-color: #f1eee6;
    --identity-muted: #b8b1a4;
    --identity-accent: #78c6b3;
    --identity-border: rgba(241, 238, 230, 0.18);
    --identity-button-background: rgba(255, 255, 255, 0.045);
    --identity-button-active-background: #d8b56d;
    --identity-button-active-color: #10110f;
    --identity-image-border: rgba(216, 181, 109, 0.38);
    background: var(--identity-background);
}

.segment-visual-identity[data-current-theme="elegant"] .visual-demo {
    grid-template-columns: 20rem minmax(0, 1fr);
    gap: clamp(3rem, 8vw, 7rem);
    min-height: 38rem;
}

.segment-visual-identity[data-current-theme="elegant"] .visual-demo-content {
    max-width: 46rem;
}

.segment-visual-identity[data-current-theme="elegant"] .visual-demo-content h2 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(3rem, 5.5vw, 5rem);
    font-style: italic;
    font-weight: 500;
    line-height: 0.96;
}

.segment-visual-identity[data-current-theme="elegant"] .visual-demo-media {
    order: -1;
}

.segment-visual-identity[data-current-theme="elegant"] .visual-demo-image {
    border-radius: 0;
    box-shadow: -0.65rem 0.65rem 0 rgba(216, 181, 109, 0.2);
}

.segment-visual-identity[data-current-theme="elegant"] .theme-button {
    border-radius: 999px;
}

/* Prestations */

.service {
    display: flex;
    flex-direction: column;
}

.service h3 {
    margin: 0;
    color: var(--color-primary);
}

.service-heading {
    display: block;
    margin-bottom: 0.85rem;
}

.service p {
    margin-bottom: 1rem;
}

.service-toggle {
    display: none;
}

.service ul {
    display: grid;
    gap: 0.45rem;
    margin: auto 0 0;
    padding: 1rem 0 0 1.15rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-muted);
    font-size: 0.94rem;
    line-height: 1.5;
}

.service ul[hidden] {
    display: none;
}

.service li::marker {
    color: var(--color-accent);
}

/* Bloc cible */

.segment-target .section-inner {
    position: relative;
    padding: clamp(2rem, 5vw, 3.5rem);
    border: 1px solid rgba(93, 63, 46, 0.13);
    border-radius: var(--radius-lg);
    background: rgba(255, 253, 248, 0.68);
    box-shadow: var(--shadow-soft);
}

.segment-target .section-inner::after {
    content: "";
    position: absolute;
    right: clamp(1rem, 4vw, 3rem);
    bottom: clamp(1rem, 4vw, 3rem);
    width: 5rem;
    height: 5rem;
    border-right: 1px solid rgba(184, 138, 90, 0.5);
    border-bottom: 1px solid rgba(184, 138, 90, 0.5);
    border-radius: 0 0 var(--radius-md) 0;
    pointer-events: none;
}

.segment-target strong {
    color: var(--theme-strong);
    font-weight: 600;
}

.rewriting-text {
    position: relative;
    display: inline-block;
    max-width: 100%;
    vertical-align: bottom;
    white-space: nowrap;
    color: transparent;
}

.rewriting-text::before {
    content: "mérite d’être vu !";
    visibility: hidden;
}

.rewriting-text [data-rewriting-text] {
    position: absolute;
    inset: 0 auto auto 0;
    color: var(--color-surface);
    background: var(--color-text);
}

.rewriting-text [data-rewriting-text]::after {
    content: "";
    position: absolute;
    top: 0;
    right: -0.1em;
    bottom: 0;
    width: 0.08em;
    background: currentColor;
    animation: rewriteCursor 900ms step-end infinite;
}

@keyframes rewriteCursor {
    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

/* Technique */

.segment-technical {
    padding-block: calc(var(--section-padding) + clamp(1.5rem, 3vw, 3rem));
}

.technical-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(2rem, 8vw, 7rem);
    align-items: center;
}

.technical-copy {
    max-width: 760px;
}

.technical-copy p {
    color: var(--color-muted);
}

.technical-copy p:last-child {
    margin-bottom: 0;
}

.technical-mode-cta {
    margin: 0;
}

.technical-key {
    position: relative;
    min-height: 2.75rem;
    padding: 0.55rem 0.85rem 0.68rem;
    border: 1px solid #4b5551;
    border-radius: 7px;
    color: #e7eee9;
    background: linear-gradient(180deg, #343d39, #202724);
    box-shadow: 0 4px 0 #111614, 0 7px 14px rgba(10, 14, 12, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: lowercase;
    transition: border-color 120ms ease, box-shadow 120ms ease, color 120ms ease, transform 120ms ease;
}

.technical-key:hover {
    border-color: #707d77;
    color: #fff;
    transform: translateY(-1px);
}

.technical-key:active {
    box-shadow: 0 1px 0 #111614, 0 3px 7px rgba(10, 14, 12, 0.2), inset 0 1px 3px rgba(0, 0, 0, 0.28);
    transform: translateY(3px);
}

.technical-key:focus-visible {
    outline: 3px solid rgba(184, 58, 54, 0.38);
    outline-offset: 5px;
}

.technical-key-classic {
    min-width: 5.7rem;
}

.technical-modal {
    width: min(960px, calc(100% - 2rem));
    max-height: min(88svh, 860px);
    padding: 0;
    border: 1px solid #3b3b3b;
    border-radius: 10px;
    color: #d4d4d4;
    background: #1e1e1e;
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.technical-modal::backdrop {
    background: rgba(8, 10, 9, 0.72);
    backdrop-filter: blur(7px);
}

.technical-window {
    display: flex;
    flex-direction: column;
    max-height: inherit;
    background: #1e1e1e;
}

.technical-window-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 2.35rem;
    padding: 0 0.65rem;
    border-bottom: 1px solid #2d2d2d;
    background: #181818;
}

.technical-window-controls {
    display: flex;
    gap: 0.4rem;
}

.technical-window-controls span {
    width: 0.68rem;
    height: 0.68rem;
    border-radius: 50%;
    background: #ff5f57;
}

.technical-window-controls span:nth-child(2) {
    background: #febc2e;
}

.technical-window-controls span:nth-child(3) {
    background: #28c840;
}

.technical-window-title {
    margin: 0;
    color: #9d9d9d;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 0.75rem;
}

.technical-modal-close {
    justify-self: end;
    width: 2rem;
    min-height: 2rem;
    padding: 0;
    border: 0;
    color: #bcbcbc;
    background: transparent;
    font-size: 1.25rem;
    line-height: 1;
}

.technical-modal-close:hover {
    color: #fff;
    background: #c42b1c;
}

.technical-modal-close:focus-visible {
    outline: 2px solid #75beff;
    outline-offset: -3px;
}

.technical-window-tab {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
    min-height: 2.5rem;
    padding: 0 1rem;
    border-top: 1px solid #007acc;
    border-right: 1px solid #2d2d2d;
    background: #1e1e1e;
}

.technical-window-tab h2 {
    margin: 0;
    color: #d4d4d4;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0;
}

.technical-file-icon {
    color: #f1c26d;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 0.78rem;
}

.technical-editor {
    min-height: 0;
    padding: clamp(1rem, 3vw, 1.75rem) 1rem clamp(1.2rem, 3vw, 2rem) 0;
    overflow: auto;
    background: #1e1e1e;
}

.technical-code {
    margin: 0;
    padding-left: 4.2rem;
    color: #858585;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: clamp(0.78rem, 1.6vw, 0.92rem);
    line-height: 1.8;
}

.technical-code li {
    padding-left: 1rem;
}

.technical-code li::marker {
    color: #858585;
}

.technical-code code {
    color: #d4d4d4;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.technical-code .code-indent {
    display: inline-block;
    padding-left: 1.2rem;
}

.code-key {
    color: #9cdcfe;
}

.code-string {
    color: #ce9178;
}

.code-punctuation {
    color: #d4d4d4;
}

.technical-code-comment {
    margin: 1.2rem 1rem 0 4.2rem;
    color: #6a9955;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 0.86rem;
}

.technical-status-bar {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    min-height: 1.45rem;
    padding: 0.15rem 0.75rem;
    color: #fff;
    background: #007acc;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 0.68rem;
}

/* Contact */

.segment-contact {
    background:
        radial-gradient(circle at bottom right, rgba(184, 138, 90, 0.18), transparent 28rem),
        rgba(255, 253, 248, 0.48);
}

.final-note {
    position: relative;
    max-width: 820px;
    margin: 3.5rem 0 0;
    color: var(--color-text);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    line-height: 1.45;
}

.final-note p {
    margin: 0;
}

.final-note-quotes {
    padding: 1.35rem 1.6rem 1.2rem 3.2rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--theme-panel-background);
    box-shadow: var(--shadow-card);
}

.final-note-quotes::before {
    content: "“";
    position: absolute;
    top: 0.2rem;
    left: 1rem;
    color: var(--color-accent);
    font-family: Georgia, serif;
    font-size: 3.8rem;
    line-height: 1;
    opacity: 0.75;
}

.final-note-brand {
    font-family: "Noto Serif", Georgia, serif;
    font-style: normal;
    font-weight: 600;
}

.final-note-cormorant {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.3rem, 2.25vw, 1.5rem);
    font-style: italic;
    font-weight: 500;
}

/* Modal */

.contact-modal {
    width: min(760px, calc(100% - 2rem));
    max-height: min(86svh, 920px);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius-lg);
    color: var(--color-text);
    background: var(--color-surface);
    box-shadow: 0 32px 90px rgba(20, 16, 12, 0.28);
}

.contact-modal::backdrop {
    background: rgba(24, 20, 17, 0.48);
    backdrop-filter: blur(8px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    max-height: inherit;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.modal-header,
.modal-footer {
    padding: 1.2rem clamp(1.2rem, 4vw, 2rem);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.modal-header h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.modal-close {
    flex: 0 0 auto;
    width: 2.25rem;
    min-height: 2.25rem;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-muted);
    background: transparent;
    font-size: 1.45rem;
    line-height: 1;
}

.modal-close:hover {
    color: var(--color-text);
    background: rgba(93, 63, 46, 0.06);
}

.form-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: clamp(1.2rem, 4vw, 2rem);
}

.form-guidance {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--color-muted);
    font-size: 1rem;
    line-height: 1.55;
}

.form-status {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0.8rem 1rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
}

.form-status.is-error {
    color: var(--color-text);
    border-color: rgba(122, 38, 53, 0.24);
    background: rgba(122, 38, 53, 0.3);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-field:has(textarea) {
    grid-column: 1 / -1;
}

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

.required-marker {
    color: #28734f;
}

.form-field-hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    background: #fff;
}

input,
select {
    min-height: 2.85rem;
    padding: 0 0.85rem;
}

textarea {
    padding: 0.85rem;
    resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
    border-color: rgba(93, 63, 46, 0.28);
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
    border-top: 1px solid var(--theme-modal-footer-border);
    background: var(--theme-modal-footer-background);
}

.form-privacy {
    max-width: 34rem;
    margin: 0 auto 0 0;
    color: var(--theme-modal-footer-text);
    font-size: 0.85rem;
    line-height: 1.5;
}

.button-submit {
    flex: 0 0 auto;
    color: #fff;
    background: var(--theme-submit-background);
    box-shadow: var(--theme-submit-shadow);
}

.button-submit:hover {
    background: var(--theme-submit-hover);
    box-shadow: var(--theme-submit-hover-shadow);
}

.button-submit:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.contact-notification {
    position: fixed;
    z-index: 30;
    top: 16%;
    left: 50%;
    width: 100%;
    max-width: min(800px, calc(100% - 40px));
    margin: 0;
    padding: 0.8rem 1.2rem;
    border: 1px solid rgba(40, 115, 79, 0.28);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    background: var(--color-notification-bg);
    box-shadow: 0 18px 48px rgba(20, 16, 12, 0.3);
    box-shadow: var(--shadow-hard);
    text-align: center;
    transform: translate(-50%, -50%);
    opacity: .94;
}

.contact-notification.is-error {
    border-color: rgba(122, 38, 53, 0.34);
    background: #7a2635;
}

/* Footer */

.site-footer {
    padding: 2.2rem 1rem;
    color: var(--color-muted);
    text-align: center;
    border-top: 1px solid rgba(36, 33, 29, 0.08);
}

.site-footer-brand {
    margin: 0;
    font-family: var(--font-title);
    font-size: 1.2rem;
}

.site-footer-address {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 0.65rem;
    margin: 0.5rem 0 0;
    font-size: 0.92rem;
    font-style: normal;
}

.site-footer-address span + span::before {
    content: "·";
    margin-right: 0.65rem;
    color: var(--color-accent);
}

.site-footer > p:last-child {
    margin-top: 0.35rem;
    margin-bottom: 0;
    font-family: var(--font-main);
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .site-footer-address {
        display: grid;
        gap: 0.1rem;
    }

    .site-footer-address span + span::before {
        content: none;
    }
}

/* Responsive */

@media (max-width: 1099px) {
    .site-header {
        display: grid;
        grid-template-columns: 1fr auto auto;
        gap: 0.75rem 1rem;
    }

    .site-logo {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    .theme-toggle {
        grid-column: 2;
        grid-row: 1;
    }

    .site-header.has-menu-toggle .nav-toggle {
        display: inline-flex;
        grid-column: 3;
        grid-row: 1;
        align-items: center;
        gap: 0.65rem;
        min-height: 2.75rem;
        padding: 0.55rem 0.8rem;
        border: 1px solid var(--color-border);
        border-radius: 999px;
        color: var(--color-text);
        background: rgba(255, 255, 255, 0.08);
    }

    .nav-toggle-icon,
    .nav-toggle-icon::before,
    .nav-toggle-icon::after {
        display: block;
        width: 1.25rem;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
        transition: transform 180ms ease, opacity 180ms ease;
    }

    .nav-toggle-icon {
        position: relative;
    }

    .nav-toggle-icon::before,
    .nav-toggle-icon::after {
        content: "";
        position: absolute;
        left: 0;
    }

    .nav-toggle-icon::before {
        transform: translateY(-0.38rem);
    }

    .nav-toggle-icon::after {
        transform: translateY(0.38rem);
    }

    .site-header.is-menu-open .nav-toggle-icon {
        background: transparent;
    }

    .site-header.is-menu-open .nav-toggle-icon::before {
        transform: rotate(45deg);
    }

    .site-header.is-menu-open .nav-toggle-icon::after {
        transform: rotate(-45deg);
    }

    .site-header.has-menu-toggle .site-nav {
        display: none;
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        padding: 0.5rem;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        background: var(--color-surface);
        box-shadow: var(--shadow-card);
    }

    .site-header.is-menu-open .site-nav {
        display: block;
    }

    .site-nav ul {
        display: grid;
        width: 100%;
        gap: 0.2rem;
    }

    .site-nav a {
        width: 100%;
        min-height: 2.75rem;
        padding-inline: 0.9rem;
    }
}

@media (max-width: 860px) {
    .hero {
        min-height: auto;
        padding-top: 4.4rem;
    }

    .hero::after {
        opacity: 0.45;
    }

    .approach-blocks,
    .services-list {
        grid-template-columns: 1fr;
    }

    .segment-visual-identity[data-current-theme] .visual-demo {
        grid-template-columns: 1fr;
        gap: 3rem;
        min-height: auto;
    }

    .segment-visual-identity[data-current-theme] .visual-demo-content {
        display: block;
        max-width: 44rem;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .segment-visual-identity[data-current-theme="technique"] .visual-demo-content {
        display: contents;
    }

    .segment-visual-identity[data-current-theme="technique"] .visual-demo-content h2,
    .segment-visual-identity[data-current-theme="technique"] .visual-demo-content > p,
    .segment-visual-identity[data-current-theme="technique"] .visual-demo-media,
    .segment-visual-identity[data-current-theme="technique"] .theme-selector {
        grid-column: 1;
    }

    .segment-visual-identity[data-current-theme="technique"] .visual-demo-content h2 {
        grid-row: 1;
    }

    .segment-visual-identity[data-current-theme="technique"] .visual-demo-content > p:nth-of-type(1) {
        grid-row: 2;
    }

    .segment-visual-identity[data-current-theme="technique"] .visual-demo-content > p:nth-of-type(2) {
        grid-row: 3;
    }

    .segment-visual-identity[data-current-theme="technique"] .visual-demo-media {
        grid-row: 4;
    }

    .segment-visual-identity[data-current-theme="technique"] #theme-selector-label {
        grid-row: 5;
    }

    .segment-visual-identity[data-current-theme="technique"] .theme-selector {
        grid-row: 6;
    }

    .segment-visual-identity[data-current-theme="institutionnel"] .visual-demo-content h2 {
        margin-bottom: 1.5rem;
    }

    .segment-visual-identity[data-current-theme] .visual-demo-media {
        order: 0;
        width: min(100%, 16rem);
        justify-self: start;
        transform: none;
    }

    .segment-visual-identity[data-current-theme="elegant"] .visual-demo-media {
        justify-self: center;
    }

    .segment-visual-identity[data-current-theme="technique"] .theme-selector {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 1.2rem;
    }

    .segment-target .section-inner {
        padding: 1.6rem;
    }
}

.segment-visual-identity[data-current-theme] .visual-demo-content {
    padding-inline: var(--content-inset);
}

@media (max-width: 620px) {
    body {
        font-size: 0.98rem;
    }

    .section-inner {
        width: min(100% - 1.2rem, var(--max-width));
    }

    .segment-contact .button-primary[data-modal-open="contact-modal"] {
        margin-left: 0;
    }

    .site-header {
        padding: 0.9rem 0.8rem;
    }

    .site-nav a {
        padding-inline: 0.65rem;
        font-size: 0.88rem;
    }

    .hero {
        padding: 3.4rem 0 4.2rem;
    }

    .button {
        width: 100%;
    }

    .service {
        padding-bottom: 1rem;
    }

    .service p {
        margin-bottom: 0;
    }

    .service-heading {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 1rem;
    }

    .services-list.has-service-accordion .service-toggle {
        display: block;
        flex: 0 0 auto;
        width: 2.25rem;
        min-height: 2.25rem;
        margin: -0.25rem -0.25rem 0 0;
        padding: 0.25rem;
        border: 0;
        color: var(--theme-heading-highlight);
        background: transparent;
    }

    .service-toggle-icon {
        position: relative;
        display: block;
        width: 1.75rem;
        height: 1.75rem;
        border: 1px solid var(--color-border);
        border-radius: 50%;
    }

    .service-toggle-icon::before,
    .service-toggle-icon::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0.7rem;
        height: 1px;
        background: currentColor;
        transform: translate(-50%, -50%);
        transition: transform 180ms ease;
    }

    .service-toggle-icon::after {
        transform: translate(-50%, -50%) rotate(90deg);
    }

    .service-toggle[aria-expanded="true"] .service-toggle-icon::after {
        transform: translate(-50%, -50%) rotate(0);
    }

    .service ul {
        margin-top: 1rem;
    }

    .visual-demo {
        padding-block: 4rem;
    }

    .technical-window-bar {
        grid-template-columns: auto 1fr auto;
    }

    .technical-window-title {
        overflow: hidden;
        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .technical-editor {
        padding-right: 0.6rem;
    }

    .technical-code {
        padding-left: 3.2rem;
        font-size: 0.76rem;
    }

    .technical-code li {
        padding-left: 0.55rem;
    }

    .technical-code-comment {
        margin-left: 3.2rem;
    }

    .technical-status-bar span:first-child,
    .technical-status-bar span:nth-child(2) {
        display: none;
    }

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

}

@media (min-width: 1100px) {
    .segment-technical {
        padding-block: calc(var(--section-padding) + clamp(3rem, 5vw, 5rem));
    }
}

@media (max-width: 860px) {
    .technical-intro {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    .technical-mode-cta {
        justify-self: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-logo-rays,
    .site-logo-text::after {
        display: none;
    }

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

/* Theme global clair et sombre */

:root,
html.theme-light {
    color-scheme: light;
    --color-bg: #eef1ed;
    --color-notification-bg: #a4e5ab;
    --color-surface: #fbfbf7;
    --color-surface-soft: #e1e6df;
    --color-text: #202724;
    --color-muted: #66716b;
    --color-border: rgba(32, 39, 36, 0.14);
    --color-primary: #38443f;
    --color-primary-hover: #25302c;
    --color-accent: #b83a36;
    --font-title: Georgia, "Times New Roman", serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --shadow-hard: 0 18px 48px rgba(32, 39, 36, 0.3);
    --shadow-soft: 0 26px 70px rgba(32, 39, 36, 0.12);
    --shadow-card: 0 14px 38px rgba(32, 39, 36, 0.08);
    --theme-body-background: radial-gradient(circle at 10% 5%, rgba(143, 158, 151, 0.15), transparent 28rem), linear-gradient(180deg, #fbfbf7 0%, #eef1ed 52%, #e3e8e1 100%);
    --theme-grid-image: linear-gradient(rgba(32, 39, 36, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(32, 39, 36, 0.025) 1px, transparent 1px);
    --theme-grid-size: 56px 56px;
    --theme-grid-mask: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 70%);
    --theme-header-background: rgba(251, 251, 247, 0.82);
    --theme-header-border: rgba(32, 39, 36, 0.1);
    --theme-logo-glow: 0 0 18px rgba(184, 58, 54, 0.34);
    --logo-light-edge: rgba(150, 75, 43, 0.82);
    --logo-light-core: #fff3b0;
    --logo-ray-color: rgba(150, 75, 43, 0.82);
    --logo-ray-glow: rgba(184, 58, 54, 0.38);
    --logo-point-glow: rgba(184, 58, 54, 0.58);
    --theme-nav-color: var(--color-muted);
    --theme-interactive-background: rgba(56, 68, 63, 0.08);
    --theme-toggle-background: rgba(255, 255, 255, 0.08);
    --theme-hero-border: rgba(56, 68, 63, 0.12);
    --theme-hero-background: linear-gradient(145deg, rgba(255, 255, 255, 0.52), rgba(143, 158, 151, 0.16) 48%, rgba(184, 58, 54, 0.08));
    --theme-hero-shadow: inset 0 -3rem 8rem rgba(56, 68, 63, 0.08), 0 24px 70px rgba(56, 68, 63, 0.12);
    --theme-button-shadow: 0 16px 36px rgba(184, 58, 54, 0.22);
    --theme-button-hover: #8f2b28;
    --theme-button-hover-shadow: 0 18px 40px rgba(184, 58, 54, 0.28);
    --theme-panel-border: rgba(32, 39, 36, 0.12);
    --theme-panel-background: rgba(251, 251, 247, 0.84);
    --theme-panel-filter: none;
    --theme-section-background: rgba(255, 255, 255, 0.34);
    --theme-field-border: rgba(32, 39, 36, 0.14);
    --theme-field-background: rgba(255, 255, 255, 0.78);
    --theme-modal-footer-border: rgba(32, 39, 36, 0.12);
    --theme-modal-footer-background: rgba(225, 230, 223, 0.46);
    --theme-modal-footer-text: var(--color-muted);
    --theme-submit-background: #28734f;
    --theme-submit-shadow: 0 12px 28px rgba(40, 115, 79, 0.24);
    --theme-submit-hover: #1f5c3f;
    --theme-submit-hover-shadow: 0 16px 36px rgba(40, 115, 79, 0.3);
    --theme-strong: #285447;
    --theme-heading-highlight: #285447;
    --theme-contact-background: #285447;
    --theme-contact-shadow: 0 16px 36px rgba(40, 84, 71, 0.24);
    --theme-contact-hover: #1d3d34;
    --theme-contact-hover-shadow: 0 18px 40px rgba(40, 84, 71, 0.3);
}

html.theme-dark {
    color-scheme: dark;
    --color-bg: #171d1b;
    --color-notification-bg: #33923d;
    --color-surface: #202724;
    --color-surface-soft: #2c3531;
    --color-text: #f2f0e8;
    --color-muted: #b5bbb4;
    --color-border: rgba(242, 240, 232, 0.13);
    --color-primary: #f2f0e8;
    --color-primary-hover: #d7d1c2;
    --color-accent: #b83a36;
    --shadow-hard: 0 18px 48px rgba(32, 39, 36, 0.3);
    --shadow-soft: 0 28px 80px rgba(0, 0, 0, 0.28);
    --shadow-card: 0 16px 42px rgba(0, 0, 0, 0.22);
    --theme-body-background: radial-gradient(circle at 10% 5%, rgba(190, 204, 198, 0.1), transparent 28rem), linear-gradient(180deg, #252d2a 0%, #171d1b 52%, #101413 100%);
    --theme-grid-image: none;
    --theme-grid-size: auto;
    --theme-grid-mask: none;
    --theme-header-background: rgba(23, 29, 27, 0.76);
    --theme-header-border: rgba(242, 240, 232, 0.1);
    --theme-logo-glow: 0 0 18px rgba(184, 58, 54, 0.38);
    --logo-light-edge: rgba(255, 214, 111, 0.92);
    --logo-light-core: #fffbe8;
    --logo-ray-color: rgba(255, 226, 146, 0.9);
    --logo-ray-glow: rgba(255, 214, 111, 0.45);
    --logo-point-glow: rgba(184, 58, 54, 0.72);
    --theme-nav-color: rgba(242, 240, 232, 0.7);
    --theme-interactive-background: rgba(242, 240, 232, 0.08);
    --theme-toggle-background: rgba(255, 255, 255, 0.06);
    --theme-hero-border: rgba(242, 240, 232, 0.12);
    --theme-hero-background: linear-gradient(145deg, rgba(242, 240, 232, 0.16), rgba(242, 240, 232, 0.04) 48%, rgba(184, 58, 54, 0.1));
    --theme-hero-shadow: inset 0 -3rem 8rem rgba(0, 0, 0, 0.18), 0 24px 70px rgba(0, 0, 0, 0.24);
    --theme-button-shadow: 0 16px 36px rgba(184, 58, 54, 0.24);
    --theme-button-hover: #8f2b28;
    --theme-button-hover-shadow: 0 18px 40px rgba(184, 58, 54, 0.32);
    --theme-panel-border: rgba(242, 240, 232, 0.12);
    --theme-panel-background: rgba(32, 39, 36, 0.84);
    --theme-panel-filter: blur(14px);
    --theme-section-background: rgba(242, 240, 232, 0.025);
    --theme-field-border: rgba(242, 240, 232, 0.16);
    --theme-field-background: rgba(255, 255, 255, 0.06);
    --theme-modal-footer-border: rgba(242, 240, 232, 0.1);
    --theme-modal-footer-background: rgba(255, 255, 255, 0.035);
    --theme-modal-footer-text: rgba(242, 240, 232, 0.72);
    --theme-submit-background: #347a59;
    --theme-submit-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    --theme-submit-hover: #40966d;
    --theme-submit-hover-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
    --theme-strong: #eeeeee;
    --theme-heading-highlight: var(--color-text);
    --theme-contact-background: #762f3d;
    --theme-contact-shadow: 0 16px 36px rgba(118, 47, 61, 0.32);
    --theme-contact-hover: #9a4152;
    --theme-contact-hover-shadow: 0 18px 40px rgba(118, 47, 61, 0.38);
}

body {
    color: var(--color-text);
    background: var(--theme-body-background);
}

body::before {
    background-image: var(--theme-grid-image);
    background-size: var(--theme-grid-size);
    mask-image: var(--theme-grid-mask);
}

h1,
h2 {
    font-family: var(--font-title);
    font-weight: 500;
    letter-spacing: -0.02em;
    text-transform: none;
}

h1 {
    max-width: 900px;
    font-size: clamp(2.35rem, 5vw, 4.6rem);
    line-height: 0.98;
}

h2 {
    font-size: clamp(1.8rem, 3.8vw, 3.35rem);
    line-height: 1;
}

.visual-demo h2 {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
}

h3 {
    text-transform: none;
}

.site-header {
    background: var(--theme-header-background);
    border-bottom-color: var(--theme-header-border);
}

.site-logo {
    font-family: var(--font-title);
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-transform: none;
}

.site-logo::after {
    background: var(--color-accent);
    box-shadow: var(--theme-logo-glow);
}

.site-nav a {
    color: var(--theme-nav-color);
    text-transform: none;
    letter-spacing: 0;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--color-text);
    background: var(--theme-interactive-background);
}

.hero {
    min-height: 82svh;
    place-items: end start;
}

.hero::after {
    right: clamp(1rem, 6vw, 6rem);
    bottom: clamp(2rem, 8vw, 6rem);
    width: clamp(18rem, 32vw, 32rem);
    height: clamp(13rem, 24vw, 24rem);
    border-color: var(--theme-hero-border);
    border-radius: var(--radius-lg);
    background: var(--theme-hero-background);
    box-shadow: var(--theme-hero-shadow);
    transform: none;
}

.hero p:not(.brand),
.segment .section-inner > p,
.approach-block p,
.service p {
    color: var(--color-muted);
}

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

.button-primary {
    color: #fff;
    background: var(--color-accent);
    box-shadow: var(--theme-button-shadow);
}

.button-primary:hover {
    background: var(--theme-button-hover);
    box-shadow: var(--theme-button-hover-shadow);
}

.approach-block,
.service,
.segment-target .section-inner,
.contact-modal {
    border-color: var(--theme-panel-border);
    background: var(--theme-panel-background);
    backdrop-filter: var(--theme-panel-filter);
}

.approach-block::before,
.service::before {
    background: var(--color-accent);
    box-shadow: none;
}

.service h3,
.short-conclusion {
    color: var(--color-primary);
}

.segment:nth-of-type(even):not(.segment-visual-identity),
.segment-contact {
    background: var(--theme-section-background);
}

.site-header-final .site-logo {
    font-family: "Noto Serif", Georgia, serif;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
    text-decoration-thickness: 0.05em;
    text-underline-offset: 0.22em;
}

.site-header-final .site-nav a {
    font-family: "Open Sans", system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: none;
}

input,
select,
textarea {
    color: var(--color-text);
    border-color: var(--theme-field-border);
    background: var(--theme-field-background);
}

@media (max-width: 620px) {
    .contact-modal {
        width: calc(100% - 1rem);
        max-height: calc(100svh - 1rem);
        border-radius: var(--radius-md);
    }

    .modal-header,
    .modal-footer {
        padding: 1rem;
    }

    .form-fields {
        gap: 0.85rem;
        padding: 1rem;
    }

    .modal-footer {
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
    }

    .modal-footer .button-submit {
        width: 100%;
    }

    h1 {
        font-size: clamp(2.2rem, 12vw, 3.4rem);
    }

    h2,
    .visual-demo h2 {
        font-size: clamp(1.75rem, 9vw, 2.65rem);
    }
}

/* Ajustements de la variante 9 */

.hero {
    min-height: 74svh;
    padding-top: clamp(2.8rem, 6vw, 5rem);
}

.hero::after {
    display: none;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.42fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
}

.hero-content {
    min-width: 0;
}

.hero-model {
    position: relative;
    width: min(100%, 15rem);
    height: clamp(20rem, 40vw, 28rem);
    justify-self: center;
    isolation: isolate;
}

.hero-model::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: clamp(-1.5rem, -2.5vw, -1rem) clamp(-1rem, -1.8vw, -0.75rem);
    border: 1px solid var(--theme-hero-border);
    border-radius: clamp(2rem, 4vw, 4rem);
    background: var(--theme-hero-background);
    box-shadow: var(--theme-hero-shadow);
}

.hero-model model-viewer {
    display: block;
    width: 100%;
    height: 100%;
    background: transparent;
    --poster-color: transparent;
}

.hero-model model-viewer::part(default-progress-bar) {
    display: none;
}

@media (min-width: 621px) and (max-width: 1199px) {
    .hero-layout {
        grid-template-columns: minmax(0, 1fr) minmax(11rem, 0.36fr);
        padding-right: clamp(1.5rem, 4vw, 3rem);
    }

    .hero-model {
        width: min(100%, 13rem);
    }
}

.segment-approach .approach-intro {
    max-width: 860px;
    margin-bottom: 1.4rem;
    color: var(--color-text);
    font-family: var(--font-title);
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    line-height: 1.45;
}

.approach-block strong {
    color: var(--theme-strong);
    font-weight: 600;
}

.hero-catchphrase,
h3 {
    color: var(--theme-heading-highlight) !important;
}

.button-primary[data-modal-open="contact-modal"] {
    max-width: fit-content;
    padding: 0 30px;
    background: var(--theme-contact-background);
    box-shadow: var(--theme-contact-shadow);
    margin-left: 20px;
    font-size: 1rem;
}

.button-primary[data-modal-open="contact-modal"]:hover {
    background: var(--theme-contact-hover);
    box-shadow: var(--theme-contact-hover-shadow);
}

.button-shape-rounded {
    border-radius: 12px;
}

@media (max-width: 620px) {
    .contact-cta {
        margin-bottom: 2.5rem;
    }

    .contact-cta .button {
        width: auto;
    }

    .hero::after {
        display: block;
        top: auto;
        right: 50%;
        bottom: clamp(3.5rem, 10vw, 5rem);
        width: min(54vw, 13rem);
        height: min(80vw, 19rem);
        border-radius: 2.5rem;
        transform: translateX(50%);
    }

    .hero-model::before {
        display: none;
    }

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

    .hero-model {
        width: min(46vw, 11rem);
        height: min(72vw, 17rem);
        margin: -1rem auto 0;
    }

    .segment-approach .approach-intro {
        font-size: 1.2rem;
    }
}

.error-body {
    min-height: 100vh;
}

.error-header {
    padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
}

.error-page {
    min-height: calc(100vh - 7rem);
    display: flex;
    align-items: center;
}

.error-content {
    max-width: 760px;
    text-align: center;
    padding-top: clamp(3rem, 8vw, 6rem);
    padding-bottom: clamp(3rem, 8vw, 6rem);
}

.error-code {
    margin: 0 0 1rem;
    font-size: clamp(4rem, 16vw, 9rem);
    line-height: 0.9;
    font-weight: 700;
    letter-spacing: -0.08em;
    opacity: 0.16;
}

.error-content h1 {
    margin-top: 0;
}

.error-content p {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.error-action {
    margin-top: 2rem;
}
