:root {
    color-scheme: light;

    --color-primary: #ffb51b;
    --color-primary-hover: #ffc54d;
    --color-accent-text: #a94c00;

    --color-ink: #27243f;
    --color-text: #59586c;
    --color-purple: #62598a;
    --color-lavender: #eeedf7;
    --color-soft: #f8f9fd;
    --color-white: #ffffff;
    --color-border: #e4e4ef;
    --color-error: #b42318;
    --color-success: #176344;

    --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;

    --text-small: 0.875rem;
    --text-body: 1rem;
    --text-h1: clamp(2.8rem, 8vw, 5.3rem);
    --text-h2: clamp(2rem, 5vw, 3.1rem);

    --space-section: 4rem;
    --container-width: 1180px;
    --header-height: 80px;

    --radius-small: 12px;
    --radius-card: 22px;
    --radius-large: 32px;

    --shadow-small: 0 8px 28px rgb(39 36 63 / 5%);
    --shadow-card: 0 18px 50px rgb(39 36 63 / 9%);
    --transition: 0.3s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
    margin: 0;
    background: var(--color-white);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: var(--text-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
figure {
    margin: 0;
}

h1,
h2,
h3 {
    color: var(--color-ink);
    line-height: 1.16;
    letter-spacing: -0.035em;
    overflow-wrap: break-word;
}

h1 {
    font-size: var(--text-h1);
    font-weight: 800;
}

h2 {
    font-size: var(--text-h2);
    font-weight: 750;
}

h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button,
a,
input,
textarea {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
}

img,
svg {
    display: block;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

button,
input,
textarea {
    border-radius: 0;
}

::selection {
    background: #ffe0a0;
    color: var(--color-ink);
}

:focus-visible {
    outline: 3px solid var(--color-purple);
    outline-offset: 5px;
}

[hidden] {
    display: none !important;
}

.container {
    width: min(var(--container-width), calc(100% - 40px));
    margin-inline: auto;
}

.section {
    padding-block: var(--space-section);
}

.section--soft {
    background: var(--color-soft);
}

.icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.svg-library {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 12px 20px;
    border-radius: 8px;
    background: var(--color-ink);
    color: white;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.eyebrow {
    margin-bottom: 20px;
    color: var(--color-purple);
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.text-accent {
    color: var(--color-accent-text);
}

/* =========================================================
   2. BOUTONS ET LIENS
   ========================================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 50px;
    padding: 13px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-small);
    font-size: var(--text-small);
    font-weight: 750;
    line-height: 1.4;
    text-align: center;
    transition:
            background var(--transition),
            transform var(--transition),
            box-shadow var(--transition),
            border-color var(--transition);
}

.button--primary {
    background: var(--color-primary);
    color: var(--color-ink);
    box-shadow: 0 6px 18px rgb(255 181 27 / 15%);
}

.button--secondary {
    border-color: var(--color-border);
    background: white;
    color: var(--color-ink);
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    color: var(--color-purple);
    font-size: var(--text-small);
    font-weight: 750;
}

.text-link .icon {
    width: 19px;
    height: 19px;
    flex-basis: 19px;
    transition: transform var(--transition);
}

/* =========================================================
   3. HEADER ET NAVIGATION
   Sans JS, la navigation reste visible.
   Avec JS, panneau mobile animé et masquage accessible.
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgb(228 228 239 / 60%);
    background: rgb(255 255 255 / 95%);
    transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
    background: var(--color-white);
    box-shadow: 0 5px 25px rgb(39 36 63 / 8%);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    padding-block: 18px;
}

.brand {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--color-ink);
}

.brand img {
    width: 175px;
    height: auto;
}

.main-nav {
    width: 100%;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--color-ink);
    font-size: var(--text-small);
    font-weight: 650;
}

.nav-link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 4px;
    left: 0;
    height: 3px;
    border-radius: 3px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    transform: scaleX(1);
}

.nav-cta {
    margin-top: 16px;
}

.menu-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    min-width: 44px;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: white;
    color: var(--color-ink);
}

.menu-toggle__label {
    font-size: 0.8rem;
    font-weight: 700;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 20px;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: currentColor;
    transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.menu-backdrop {
    display: none;
}

/* Classes ajoutées seulement après initialisation du JS. */
.navigation-enhanced .header-inner {
    height: var(--header-height);
    padding-block: 0;
    flex-wrap: nowrap;
    gap: 10px;
}

.navigation-enhanced .menu-toggle {
    display: inline-flex;
}

.navigation-enhanced .main-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    z-index: 102;
    width: min(380px, 100%);
    padding: 30px 24px;
    overflow-y: auto;
    background: white;
    box-shadow: -15px 20px 40px rgb(39 36 63 / 10%);
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition:
            transform var(--transition),
            opacity var(--transition),
            visibility var(--transition);
}

.navigation-enhanced .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.navigation-enhanced .nav-list {
    flex-direction: column;
    gap: 8px;
}

.navigation-enhanced .nav-link {
    width: 100%;
    min-height: 54px;
    font-size: 1.15rem;
}

.navigation-enhanced .nav-cta {
    width: 100%;
    margin-top: 28px;
}

.navigation-enhanced .menu-backdrop {
    display: block;
    position: fixed;
    inset: var(--header-height) 0 0;
    z-index: 90;
    background: rgb(39 36 63 / 40%);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}

.navigation-enhanced .menu-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

/* =========================================================
   4. HERO
   ========================================================= */

.hero {
    padding-top: 44px;
    padding-bottom: 0;
    overflow: hidden;
    background:
            radial-gradient(ellipse at 100% 10%, #f4f3fd 0, transparent 45%),
            white;
}

.hero-grid {
    display: grid;
    gap: 32px;
    align-items: center;
}

.hero .eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 360px;
    line-height: 1.6;
}

.status-dot {
    display: inline-block;
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 0 5px rgb(255 181 27 / 14%);
}

.hero-description {
    max-width: 510px;
    margin-top: 24px;
    margin-bottom: 28px;
    font-size: 1.05rem;
}

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 25px;
    font-size: 0.78rem;
}

.hero-benefits li {
    display: flex;
    align-items: center;
    gap: 7px;
}

.hero-benefits .icon {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
    color: var(--color-purple);
}

.hero-visual {
    position: relative;
    min-width: 0;
}

.hero-image {
    width: 100%;
    mix-blend-mode: multiply;
}

.visual-label {
    display: none;
}

.expertise-strip {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 35px;
    padding-block: 25px;
    border-top: 1px solid var(--color-border);
}

.expertise-strip > span {
    color: var(--color-text);
    font-size: 0.8rem;
}

.expertise-strip ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    color: var(--color-purple);
    font-size: 0.85rem;
    font-weight: 750;
}

/* =========================================================
   5. EN-TÊTES DE SECTION ET SERVICES
   ========================================================= */

.section-heading {
    display: grid;
    gap: 22px;
    margin-bottom: 34px;
}

.section-heading > p {
    max-width: 430px;
}

.services-grid,
.portfolio-grid,
.testimonials-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 28px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: white;
    box-shadow: var(--shadow-small);
    transition:
            transform var(--transition),
            border-color var(--transition),
            box-shadow var(--transition);
}

.service-icon {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
    border-radius: 16px;
    background: var(--color-lavender);
    color: var(--color-purple);
}

.service-icon--amber {
    background: #fff3d9;
    color: #9a5900;
}

.service-icon .icon {
    width: 27px;
    height: 27px;
}

.card-number {
    position: absolute;
    top: 28px;
    right: 28px;
    color: #75708e;
    font-size: 0.8rem;
    font-weight: 650;
}

.service-card h3 {
    margin-bottom: 14px;
}

.service-card p {
    margin-bottom: 20px;
    font-size: 0.94rem;
}

.service-card .text-link {
    margin-top: auto;
}

/* =========================================================
   6. PORTFOLIO ET FILTRES
   ========================================================= */

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.filter-button {
    min-height: 44px;
    padding: 9px 18px;
    border: 1px solid var(--color-border);
    border-radius: 100px;
    background: white;
    color: var(--color-text);
    font-size: var(--text-small);
    font-weight: 650;
    transition: background var(--transition), color var(--transition);
}

.filter-button[aria-pressed="true"] {
    border-color: var(--color-ink);
    background: var(--color-ink);
    color: white;
}

.project-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: white;
    box-shadow: var(--shadow-small);
    transition: transform var(--transition), box-shadow var(--transition);
}

.project-preview {
    display: grid;
    align-items: center;
    min-height: 270px;
    padding: 28px 20px;
    overflow: hidden;
}

.preview--dashboard {
    background: #eeedf8;
}

.preview--website {
    background: #f6eddc;
}

.preview--seo {
    background: #edf2f7;
}

.mock-browser {
    width: 100%;
    overflow: hidden;
    border: 1px solid rgb(39 36 63 / 8%);
    border-radius: 10px;
    background: white;
    box-shadow: 0 16px 30px rgb(39 36 63 / 12%);
    transform: rotate(-3deg);
    transition: transform 0.45s ease;
}

.preview--website .mock-browser {
    transform: rotate(3deg);
}

.mock-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 26px;
    padding-inline: 10px;
    border-bottom: 1px solid #eeedf4;
    background: #fafafd;
}

.mock-toolbar > span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #d3d0e0;
}

.mock-toolbar small {
    margin-left: 7px;
    overflow: hidden;
    color: #767285;
    font-size: 7px;
    white-space: nowrap;
}

.mock-dashboard {
    display: grid;
    grid-template-columns: 38px 1fr;
    min-height: 195px;
}

.mock-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding-top: 12px;
    background: var(--color-ink);
}

.mock-sidebar b {
    color: var(--color-primary);
    font-size: 20px;
}

.mock-sidebar i {
    width: 13px;
    height: 4px;
    border-radius: 5px;
    background: #797389;
}

.mock-content {
    min-width: 0;
    padding: 16px;
}

.mock-content > small,
.mock-content > strong {
    display: block;
}

.mock-content > small {
    font-size: 7px;
}

.mock-content > strong {
    margin-top: 3px;
    color: var(--color-ink);
    font-size: 12px;
}

.mock-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-block: 12px;
}

.mock-metrics span {
    padding: 7px 10px;
    border: 1px solid #eceaf4;
    border-radius: 6px;
    font-size: 7px;
}

.mock-metrics b {
    display: block;
    color: var(--color-ink);
    font-size: 15px;
}

.mock-chart {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 8px;
    height: 48px;
    padding: 0 10px;
    border-bottom: 1px solid #eeedf4;
}

.mock-chart i {
    width: 14px;
    height: 40%;
    border-radius: 3px 3px 0 0;
    background: #b9b2d8;
}

.mock-chart i:nth-child(2) { height: 60%; }
.mock-chart i:nth-child(3) { height: 47%; }
.mock-chart i:nth-child(4) { height: 76%; }
.mock-chart i:nth-child(5) { height: 66%; }
.mock-chart i:nth-child(6) { height: 85%; }
.mock-chart i:nth-child(7) {
    height: 100%;
    background: var(--color-primary);
}

.mock-website {
    min-height: 195px;
    padding: 18px;
    background: #fffcf6;
}

.mock-website-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #534637;
}

.mock-website-nav b {
    font-family: Georgia, serif;
    font-size: 19px;
}

.mock-website-nav span {
    font-size: 6px;
}

.mock-website-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 18px;
}

.mock-website-hero small {
    display: block;
    font-size: 6px;
    letter-spacing: 0.12em;
}

.mock-website-hero strong {
    display: block;
    margin-block: 6px 12px;
    color: #534637;
    font-family: Georgia, serif;
    font-size: 27px;
    line-height: 1;
}

.mock-pill {
    display: inline-block;
    padding: 5px 9px;
    background: #615142;
    color: white;
    font-size: 6px;
}

.mock-vase {
    flex: 0 0 65px;
    height: 104px;
    margin-right: 12px;
    border-radius: 18% 18% 38% 38%;
    background: linear-gradient(100deg, #9d7959, #dec3a1 48%, #a8835f);
    box-shadow: 10px 12px 15px rgb(97 81 66 / 16%);
}

.mock-seo {
    min-height: 195px;
    padding: 18px;
}

.mock-seo > small {
    font-size: 6px;
    letter-spacing: 0.08em;
}

.mock-seo > strong {
    display: block;
    margin-top: 4px;
    color: var(--color-ink);
    font-size: 14px;
}

.mock-seo > svg {
    width: 100%;
    height: 100px;
    margin-top: 8px;
    overflow: visible;
}

.mock-seo-tags {
    display: flex;
    gap: 6px;
}

.mock-seo-tags span {
    padding: 3px 7px;
    border-radius: 4px;
    background: var(--color-lavender);
    font-size: 6px;
}

.project-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 25px;
}

.project-category {
    margin-bottom: 10px;
    color: var(--color-purple);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.project-body h3 {
    margin-bottom: 12px;
}

.project-body > p:not(.project-category) {
    font-size: 0.9rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-block: 20px;
}

.tags li {
    padding: 4px 9px;
    border-radius: 6px;
    background: var(--color-soft);
    color: var(--color-text);
    font-size: 0.7rem;
    font-weight: 650;
}

.project-body .text-link {
    margin-top: auto;
}

/* =========================================================
   7. À PROPOS ET COMPTEURS
   ========================================================= */

.about-grid {
    display: grid;
    gap: 40px;
    align-items: center;
}

.about-visual {
    position: relative;
    overflow: hidden;
    padding: 25px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    background: white;
}

.about-visual .eyebrow {
    margin-bottom: 0;
    font-size: 0.65rem;
    text-align: center;
}

.about-visual img {
    width: 100%;
}

.about-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 8px;
    border-radius: 12px;
    background: var(--color-soft);
    color: var(--color-purple);
    font-size: 0.75rem;
    font-weight: 650;
}

.about-content > p:not(.eyebrow) {
    margin-top: 20px;
}

.value-list {
    display: grid;
    gap: 20px;
    margin-block: 28px;
}

.value-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.value-check {
    display: grid;
    flex: 0 0 34px;
    place-items: center;
    height: 34px;
    border-radius: 10px;
    background: #fff0cb;
    color: #895600;
}

.value-check .icon {
    width: 19px;
    height: 19px;
}

.value-list h3 {
    margin-bottom: 5px;
    font-size: 1rem;
    letter-spacing: -0.015em;
}

.value-list p {
    font-size: var(--text-small);
}

.stats-grid {
    display: grid;
    gap: 26px;
    margin-top: 48px;
    padding: 30px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: white;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.stat + .stat {
    padding-top: 25px;
    border-top: 1px solid var(--color-border);
}

.stat-number {
    color: var(--color-purple);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat > span:last-child {
    max-width: 250px;
    font-size: var(--text-small);
}

/* =========================================================
   8. TÉMOIGNAGES
   ========================================================= */

.testimonial-card {
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: white;
    box-shadow: var(--shadow-small);
}

.quote-mark {
    height: 44px;
    color: #a195c5;
    font-family: Georgia, serif;
    font-size: 4.5rem;
    line-height: 1;
}

.testimonial-card blockquote {
    margin: 14px 0 26px;
    color: var(--color-ink);
    font-size: 1rem;
    line-height: 1.8;
}

.testimonial-card figcaption {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.avatar {
    display: grid;
    flex: 0 0 44px;
    place-items: center;
    height: 44px;
    border-radius: 50%;
    background: var(--color-lavender);
    color: var(--color-purple);
    font-size: 0.8rem;
    font-weight: 750;
}

.avatar--amber {
    background: #fff0cb;
    color: #865600;
}

.testimonial-card strong,
.testimonial-card small {
    display: block;
}

.testimonial-card strong {
    color: var(--color-ink);
    font-size: 0.8rem;
}

.testimonial-card small {
    margin-top: 3px;
    font-size: 0.7rem;
}

/* =========================================================
   9. CONTACT ET FORMULAIRE
   ========================================================= */

.contact-section {
    position: relative;
    background:
            radial-gradient(ellipse at 0 100%, #514770 0, transparent 55%),
            var(--color-ink);
    color: #d4d1e3;
}

.contact-grid {
    display: grid;
    align-items: start;
    gap: 38px;
}

.contact-content .eyebrow {
    color: #ffcf72;
}

.contact-content h2 {
    color: white;
    font-size: clamp(2.3rem, 5vw, 3.7rem);
}

.contact-content h2 span {
    color: var(--color-primary);
}

.contact-content > p:not(.eyebrow) {
    max-width: 450px;
    margin-top: 24px;
}

.contact-details {
    display: grid;
    gap: 23px;
    margin-top: 32px;
    font-style: normal;
}

.contact-details > div {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: var(--text-small);
}

.contact-details .icon {
    margin-top: 4px;
    color: var(--color-primary);
}

.contact-details strong {
    display: block;
    margin-bottom: 3px;
    color: white;
}

.contact-details a {
    overflow-wrap: anywhere;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-note {
    color: #c4bfd6;
    font-size: 0.75rem;
}

.contact-form-card {
    min-width: 0;
    padding: 26px;
    border-radius: var(--radius-card);
    background: white;
    color: var(--color-text);
    box-shadow: 0 20px 60px rgb(0 0 0 / 12%);
}

.contact-form-card h3 {
    font-size: 1.4rem;
}

.form-intro {
    margin-block: 12px 26px;
    font-size: 0.8rem;
}

.form-field {
    margin-bottom: 18px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-ink);
    font-size: var(--text-small);
    font-weight: 650;
}

.form-field input,
.form-field textarea {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #cfccde;
    border-radius: 10px;
    background: #fcfcfe;
    color: var(--color-ink);
    font-size: 1rem; /* Évite le zoom automatique des champs sur iOS. */
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field textarea {
    min-height: 145px;
    resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #787386;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--color-purple);
    outline: 2px solid rgb(98 89 138 / 20%);
    outline-offset: 2px;
}

.form-field [aria-invalid="true"] {
    border-color: var(--color-error);
}

.field-error {
    margin-top: 6px;
    color: var(--color-error);
    font-size: 0.8rem;
}

.field-error:empty {
    display: none;
}

.field-hint {
    margin-top: 6px;
    font-size: 0.75rem;
}

.submit-button {
    width: 100%;
}

.submit-button:disabled {
    opacity: 0.65;
}

.form-status:not(:empty) {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #edf7f1;
    color: var(--color-success);
    font-size: var(--text-small);
}

.form-status.is-error:not(:empty) {
    background: #fff0ed;
    color: var(--color-error);
}

/* =========================================================
   10. FOOTER
   ========================================================= */

.site-footer {
    padding-top: 50px;
    background: #1d1b2e;
    color: #c7c3d6;
}

.footer-grid {
    display: grid;
    gap: 35px;
    padding-bottom: 40px;
}

.footer-brand .brand {
    padding-left: 0;
    background: transparent;
}

.footer-brand p {
    margin-top: 16px;
    font-size: var(--text-small);
}

.footer-nav,
.footer-social {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-footer h2 {
    margin-bottom: 18px;
    color: white;
    font-size: 1rem;
    letter-spacing: 0;
}

.footer-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: var(--text-small);
}

.footer-nav a:hover,
.footer-bottom a:hover {
    color: var(--color-primary);
}

.footer-social p {
    max-width: 290px;
    font-size: var(--text-small);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-block: 18px 12px;
}

.social-links a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #49435c;
    border-radius: 12px;
    color: white;
    transition: background var(--transition), color var(--transition);
}

.social-links a:hover {
    background: var(--color-primary);
    color: var(--color-ink);
}

.footer-social small {
    font-size: 0.7rem;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-block: 22px;
    border-top: 1px solid #393449;
    font-size: 0.75rem;
}

.footer-bottom a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
}

.site-footer :focus-visible,
.contact-content :focus-visible {
    outline-color: var(--color-primary);
}

/* =========================================================
   11. ANIMATIONS PROGRESSIVES
   Les éléments restent visibles si JS n’est pas disponible.
   ========================================================= */

.reveal.reveal-pending {
    opacity: 0;
    transform: translateY(22px);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

@media (hover: hover) and (pointer: fine) {
    .button:not(:disabled):hover {
        transform: translateY(-3px);
    }

    .button--primary:not(:disabled):hover {
        background: var(--color-primary-hover);
        box-shadow: 0 10px 25px rgb(255 181 27 / 25%);
    }

    .button--secondary:hover {
        border-color: #aaa2c3;
        background: var(--color-soft);
    }

    .text-link:hover .icon {
        transform: translateX(4px);
    }

    .service-card:hover {
        border-color: #b7acd4;
        box-shadow: var(--shadow-card);
        transform: translateY(-6px);
    }

    .project-card:hover {
        box-shadow: var(--shadow-card);
        transform: translateY(-5px);
    }

    .project-card:hover .mock-browser {
        transform: rotate(0) translateY(-3px);
    }

    .filter-button:hover {
        border-color: var(--color-purple);
    }
}

/* =========================================================
   12. TABLETTES — À PARTIR DE 600 PX
   ========================================================= */

@media (min-width: 600px) {
    :root {
        --space-section: 5rem;
    }

    .container {
        width: min(var(--container-width), calc(100% - 64px));
    }

    .button-group {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .hero-grid {
        gap: 45px;
    }

    .hero-visual {
        width: min(580px, 100%);
        margin-inline: auto;
    }

    .visual-label {
        position: absolute;
        z-index: 1;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        border: 1px solid var(--color-border);
        border-radius: 14px;
        background: rgb(255 255 255 / 96%);
        box-shadow: var(--shadow-card);
        color: var(--color-ink);
        font-size: 0.7rem;
    }

    .visual-label--top {
        top: 12%;
        left: 0;
    }

    .visual-label--bottom {
        right: 0;
        bottom: 12%;
    }

    .visual-label strong {
        display: block;
        font-size: 0.8rem;
    }

    .visual-label__icon {
        display: grid;
        place-items: center;
        width: 36px;
        height: 36px;
        border-radius: 10px;
        background: var(--color-lavender);
        color: var(--color-purple);
    }

    .services-grid,
    .portfolio-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
        padding-block: 35px;
    }

    .stat {
        padding-inline: 18px;
    }

    .stat + .stat {
        padding-top: 0;
        border-top: 0;
        border-left: 1px solid var(--color-border);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .contact-form-card {
        padding: 36px;
    }
}

/* =========================================================
   13. DESKTOP — À PARTIR DE 900 PX
   ========================================================= */

@media (min-width: 900px) {
    :root {
        --space-section: 6.25rem;
    }

    .header-inner,
    .navigation-enhanced .header-inner {
        min-height: var(--header-height);
        height: auto;
        flex-wrap: nowrap;
        padding-block: 10px;
    }

    .brand img {
        width: 165px;
    }

    .menu-toggle,
    .navigation-enhanced .menu-toggle {
        display: none;
    }

    .main-nav,
    .navigation-enhanced .main-nav {
        position: static;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 18px;
        width: auto;
        padding: 0;
        overflow: visible;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }

    .nav-list,
    .navigation-enhanced .nav-list {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 17px;
    }

    .nav-link,
    .navigation-enhanced .nav-link {
        width: auto;
        min-height: 44px;
        font-size: 0.79rem;
        white-space: nowrap;
    }

    .nav-cta,
    .navigation-enhanced .nav-cta {
        width: auto;
        min-height: 44px;
        margin: 0;
        padding: 11px 13px;
        font-size: 0.72rem;
    }

    .nav-cta .icon {
        width: 17px;
        height: 17px;
        flex-basis: 17px;
    }

    .menu-backdrop,
    .navigation-enhanced .menu-backdrop {
        display: none;
    }

    .hero {
        padding-top: 65px;
    }

    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
        min-height: 560px;
    }

    .hero-content {
        padding-bottom: 30px;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-visual {
        width: 110%;
        max-width: none;
        margin-left: -2%;
    }

    .visual-label--top {
        left: 3%;
    }

    .visual-label--bottom {
        right: 5%;
    }

    .expertise-strip {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 30px;
        margin-top: 35px;
        padding-block: 28px;
    }

    .expertise-strip ul {
        gap: 25px;
    }

    .section-heading {
        grid-template-columns: 1.2fr 1fr;
        align-items: end;
        gap: 60px;
        margin-bottom: 45px;
    }

    .section-heading > p {
        justify-self: end;
    }

    .services-grid,
    .portfolio-grid,
    .testimonials-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }

    .service-card {
        padding: 30px;
    }

    .project-preview {
        min-height: 280px;
        padding: 25px 18px;
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 70px;
    }

    .about-visual {
        transform: rotate(-2deg);
    }

    .stats-grid {
        margin-top: 65px;
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 70px;
    }

    .contact-content {
        padding-top: 12px;
    }

    .footer-grid {
        grid-template-columns: 1.4fr 0.8fr 1fr;
        gap: 60px;
    }

    .footer-brand {
        grid-column: auto;
    }
}

/* Ajustements de confort pour les grands écrans. */
@media (min-width: 1200px) {
    .brand img {
        width: 190px;
    }

    .nav-list,
    .navigation-enhanced .nav-list {
        gap: 26px;
    }

    .nav-link,
    .navigation-enhanced .nav-link {
        font-size: var(--text-small);
    }

    .main-nav,
    .navigation-enhanced .main-nav {
        gap: 30px;
    }

    .nav-cta,
    .navigation-enhanced .nav-cta {
        padding-inline: 18px;
        font-size: 0.8rem;
    }
}

/* =========================================================
   14. ACCESSIBILITÉ — RÉDUCTION DES ANIMATIONS
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .reveal.reveal-pending {
        opacity: 1;
        transform: none;
    }
}
