@font-face {
    font-family: 'Outfit';
    src: url("../media/fonts/outfit-variable-6iXaJLR.ttf") format('truetype');
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: 'Urbanist';
    src: url("../media/fonts/urbanist-variable-DZV6jea.ttf") format('truetype');
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url("../media/fonts/inter-variable-g67Lfz9.ttf") format('truetype');
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --bg: #1A232A;
    --bg-card: rgba(26, 35, 42, 0.85);
    --bg-card-hover: rgba(34, 47, 57, 0.95);
    --bg-sidebar: rgba(21, 30, 36, 0.9);
    --text: #EAEFF2;
    --text-soft: #B8C4CC;
    --text-muted: #7A8D99;
    --line: #3A4B56;
    --line-glow: rgba(87, 197, 210, 0.4);

    /* Dark Neon Accents */
    --accent-cyan: #57C5D2;
    --accent-green: #3FA89B;
    --accent-sand: #D9C39A;
    --accent-gold: #B39260;
    --accent-nature: #1B331E;
    --accent-wood: #4A3525;

    /* Category Badges Palette */
    --badge-news: #FF8A3D;        /* Actualités: Orange */
    --badge-skills: #10B981;      /* Compétences: Vert */
    --badge-projects: #38BDF8;    /* Projets: Bleu */
    --badge-experiences: #A855F7; /* Expériences: Violet */
    --badge-stack: #10B981;       /* Alias Compétences */
    --badge-contact: #EAB308;     /* Contact: Or */

    --radius: 12px;
    --max-width: 1280px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    --glow-cyan: 0 0 15px rgba(87, 197, 210, 0.25);
    --glow-gold: 0 0 15px rgba(217, 195, 154, 0.25);
}

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

html {
    color-scheme: dark;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at 15% 10%, rgba(87, 197, 210, 0.08), transparent 40%),
                radial-gradient(circle at 80% 0%, rgba(217, 195, 154, 0.1), transparent 46%),
                linear-gradient(160deg, #151d23 0%, #1f2b33 42%, #172228 100%);
}

/* Background grid with white boxes & vegetal art from plaquette (May 27 2026 design system) */
.site-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        radial-gradient(ellipse at 50% 15%, rgba(63, 168, 155, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 85% 85%, rgba(27, 51, 30, 0.22) 0%, transparent 60%),
        url("../media/images/nav-decor-wMLlD4M.webp");
    background-size: 42px 42px, 42px 42px, auto, auto, cover;
    background-position: center, center, center, center, center bottom;
    background-repeat: repeat, repeat, no-repeat, no-repeat, no-repeat;
    opacity: 0.85;
    mix-blend-mode: luminosity;
    mask-image: radial-gradient(circle at center, black 35%, transparent 95%);
}

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

.focus\:not-sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================================================================
   Layout & Container
   ========================================================================= */

.site-header,
.site-footer,
.site-layout-wrapper {
    width: min(var(--max-width), calc(100% - 2rem));
    margin-inline: auto;
}

/* =========================================================================
   Navigation Header with Grid, Gradient & Plant/Tech Background Art
   ========================================================================= */

.site-header {
    position: relative;
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(58, 75, 86, 0.45);
    background: linear-gradient(135deg, rgba(21, 30, 36, 0.94) 0%, rgba(29, 42, 50, 0.88) 50%, rgba(22, 33, 40, 0.95) 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.site-header__backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        radial-gradient(ellipse at 85% 50%, rgba(63, 168, 155, 0.14) 0%, transparent 60%),
        radial-gradient(ellipse at 15% 50%, rgba(87, 197, 210, 0.12) 0%, transparent 60%),
        url("../media/images/nav-decor-wMLlD4M.webp");
    background-size: 32px 32px, 32px 32px, auto, auto, cover;
    background-position: center, center, center, center, right center;
    background-repeat: repeat, repeat, no-repeat, no-repeat, no-repeat;
    opacity: 0.25;
    mix-blend-mode: luminosity;
}

.site-header__inner {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1.5rem;
    width: 100%;
}

.site-header__burger {
    display: none;
}

.site-header__menu {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.brand {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text);
}

.brand__title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.55rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.brand__subtitle {
    font-family: 'Urbanist', sans-serif;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-cyan);
    margin-top: 0.15rem;
}

.site-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.4rem;
}

.site-nav__link {
    color: var(--text-soft);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
    color: #ffffff;
    border-color: var(--accent-cyan);
    background: rgba(87, 197, 210, 0.12);
    transform: translateY(-1px);
}

/* Category-specific Active and Hover states matching category cartouches */
.site-nav__link--news:hover,
.site-nav__link--news:focus-visible {
    color: #ffffff;
    border-color: var(--badge-news);
    background: rgba(255, 138, 61, 0.14);
}
.site-nav__link--news.is-active {
    color: #ffffff;
    border-color: var(--badge-news);
    background: rgba(255, 138, 61, 0.22);
    box-shadow: 0 0 12px rgba(255, 138, 61, 0.35);
    font-weight: 600;
}

.site-nav__link--skills:hover,
.site-nav__link--skills:focus-visible {
    color: #ffffff;
    border-color: var(--badge-skills);
    background: rgba(16, 185, 129, 0.14);
}
.site-nav__link--skills.is-active {
    color: #ffffff;
    border-color: var(--badge-skills);
    background: rgba(16, 185, 129, 0.22);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
    font-weight: 600;
}

.site-nav__link--projects:hover,
.site-nav__link--projects:focus-visible {
    color: #ffffff;
    border-color: var(--badge-projects);
    background: rgba(56, 189, 248, 0.14);
}
.site-nav__link--projects.is-active {
    color: #ffffff;
    border-color: var(--badge-projects);
    background: rgba(56, 189, 248, 0.22);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
    font-weight: 600;
}

.site-nav__link--experiences:hover,
.site-nav__link--experiences:focus-visible {
    color: #ffffff;
    border-color: var(--badge-experiences);
    background: rgba(168, 85, 247, 0.14);
}
.site-nav__link--experiences.is-active {
    color: #ffffff;
    border-color: var(--badge-experiences);
    background: rgba(168, 85, 247, 0.22);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.35);
    font-weight: 600;
}

.site-nav__link--contact:hover,
.site-nav__link--contact:focus-visible {
    color: #ffffff;
    border-color: var(--badge-contact);
    background: rgba(234, 179, 8, 0.14);
}
.site-nav__link--contact.is-active {
    color: #ffffff;
    border-color: var(--badge-contact);
    background: rgba(234, 179, 8, 0.22);
    box-shadow: 0 0 12px rgba(234, 179, 8, 0.35);
    font-weight: 600;
}

.locale-switch {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.locale-switch__link {
    color: var(--text-soft);
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.8rem;
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.locale-switch__link:hover {
    color: #ffffff;
    border-color: var(--accent-cyan);
}

.locale-switch__link.is-active {
    color: #ffffff;
    border-color: var(--accent-green);
    background: rgba(63, 168, 155, 0.25);
}

/* =========================================================================
   2-Column Layout (Main Stream + Sidebar)
   ========================================================================= */

.site-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
    padding-bottom: 3rem;
}

.site-main {
    min-width: 0;
}

.flash {
    width: 100%;
    margin: 0 0 1.5rem;
    padding: 0.95rem 1.15rem;
    border: 1px solid;
    border-radius: 16px;
    font-family: 'Urbanist', sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.45;
    box-shadow: var(--shadow);
}

.flash--success {
    color: #c9f7dc;
    border-color: rgba(63, 168, 155, 0.8);
    border-left: 5px solid #3fa89b;
    background: rgba(31, 91, 72, 0.42);
}

.flash--error {
    color: #ffd7d7;
    border-color: rgba(224, 104, 104, 0.85);
    border-left: 5px solid #e06868;
    background: rgba(112, 39, 47, 0.42);
}

.site-sidebar {
    position: sticky;
    top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-widget {
    background: var(--bg-sidebar);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem;
    box-shadow: var(--shadow);
}

.sidebar-search-form {
    position: relative;
    width: 100%;
}

.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.sidebar-search-input {
    width: 100%;
    background: rgba(26, 35, 42, 0.9);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.55rem 3.8rem 0.55rem 1rem;
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sidebar-search-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(87, 197, 210, 0.2);
}

.sidebar-search-clear {
    position: absolute;
    right: 2.2rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.35rem;
    border-radius: 50%;
    transition: color 0.15s ease;
}

.sidebar-search-clear:hover {
    color: var(--badge-news);
}

.sidebar-search-clear.is-hidden {
    display: none;
}

.sidebar-search-btn {
    position: absolute;
    right: 0.6rem;
    background: none;
    border: none;
    color: var(--text-soft);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem;
    transition: color 0.2s;
}

.sidebar-search-btn:hover {
    color: var(--accent-cyan);
}

.live-search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: #19232B;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    z-index: 50;
    max-height: 380px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.live-search-results.is-hidden {
    display: none;
}

.live-search-item {
    padding: 0.65rem 0.9rem;
    border-bottom: 1px solid rgba(58, 75, 86, 0.4);
    text-decoration: none;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    transition: background-color 0.15s ease;
}

.live-search-item:last-child {
    border-bottom: none;
}

.live-search-item:hover,
.live-search-item.is-selected {
    background: rgba(87, 197, 210, 0.15);
    border-left: 3px solid var(--accent-cyan);
}

.live-search-item__content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.live-search-item__title {
    font-weight: 500;
}

.live-search-item__sub {
    font-size: 0.72rem;
    color: var(--accent-sand);
}

.live-search-empty {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.latest-articles-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.latest-article-item {
    border-bottom: 1px solid rgba(58, 75, 86, 0.3);
    padding-bottom: 0.65rem;
}

.latest-article-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.latest-article-link {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-soft);
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

.latest-article-link:hover {
    color: var(--accent-cyan);
}

.latest-article-title {
    font-weight: 500;
    white-space: normal;
    word-break: break-word;
    line-height: 1.35;
    flex: 1;
}

/* =========================================================================
   Badges & Categories Styling
   ========================================================================= */

.category-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-size: 0.78rem;
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
}

.category-badge--small {
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
}

.category-badge--news {
    background: rgba(255, 138, 61, 0.15);
    border-color: var(--badge-news);
    color: var(--badge-news);
}

.category-badge--skills,
.category-badge--stack {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--badge-skills);
    color: var(--badge-skills);
}

.category-badge--projects {
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--badge-projects);
    color: var(--badge-projects);
}

.category-badge--experiences {
    background: rgba(168, 85, 247, 0.15);
    border-color: var(--badge-experiences);
    color: var(--badge-experiences);
}

.category-badge--contact {
    background: rgba(234, 179, 8, 0.15);
    border-color: var(--badge-contact);
    color: var(--badge-contact);
}

/* Cross-linking badge */
.cross-link-badge {
    color: var(--accent-cyan);
    text-decoration: none;
    border-bottom: 1px dashed var(--accent-cyan);
    font-weight: 500;
    transition: all 0.2s ease;
    padding-inline: 0.1em;
}

.cross-link-badge:hover {
    color: #ffffff;
    background: rgba(87, 197, 210, 0.2);
    border-bottom-style: solid;
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(87, 197, 210, 0.3);
}

/* =========================================================================
   Cards & Content Grid
   ========================================================================= */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem;
    box-shadow: var(--shadow);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
    background: var(--bg-card-hover);
}

.card__media {
    display: block;
    margin: -1.2rem -1.2rem 1rem -1.2rem;
    overflow: hidden;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
    text-decoration: none;
}

.card__img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--line);
    transition: transform 0.3s ease;
}

.card:hover .card__img {
    transform: scale(1.03);
}

.card__title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
}

.card__link {
    color: var(--text);
    text-decoration: none;
}

.card__link:hover {
    color: var(--accent-cyan);
}

.card__excerpt {
    color: var(--text-soft);
    font-size: 0.9rem;
    margin: 0;
}

/* =========================================================================
   Modular Card Encadrés (May 27 2026 Layout System) & Contact Styling
   ========================================================================= */

.section {
    margin-block: 1.4rem 2.2rem;
}

.section--compact {
    margin-bottom: 1.4rem;
}

.section__heading {
    margin-bottom: 1.2rem;
}

.section__heading h1 {
    font-size: clamp(1.8rem, 4.5vw, 2.4rem);
    margin-block: 0.3rem 0.6rem;
    font-family: 'Outfit', sans-serif;
}

.section__heading h2 {
    font-size: clamp(1.3rem, 3.5vw, 1.8rem);
    margin-bottom: 0.5rem;
    color: var(--accent-sand);
    font-family: 'Outfit', sans-serif;
}

.lead {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-soft);
    max-width: 75ch;
}

/* Contact Intro with Left-Aligned Floating Photo */
.contact-intro-content {
    margin-top: 1rem;
}

.contact-intro-content::after {
    content: "";
    display: table;
    clear: both;
}

.contact-author-photo {
    float: left;
    margin-top: 0.35rem;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(87, 197, 210, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-author-photo:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 22px rgba(87, 197, 210, 0.4);
}

.card-grid {
    display: grid;
    gap: 1.2rem;
}

.card-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.split {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card--pillar {
    padding: 1.4rem;
    border-top: 3px solid var(--accent-green);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card--pillar h3,
.card--pillar h2 {
    color: #ffffff;
    margin-top: 0.4rem;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    font-family: 'Outfit', sans-serif;
}

.card--form {
    padding: 1.6rem;
    background: linear-gradient(160deg, rgba(26, 35, 42, 0.9), rgba(21, 30, 36, 0.95));
    border: 1px solid rgba(87, 197, 210, 0.4);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.card--accent {
    padding: 1.4rem;
    border-left: 4px solid var(--accent-gold);
    background: linear-gradient(150deg, rgba(29, 42, 50, 0.85), rgba(21, 30, 36, 0.9));
}

.card .eyebrow {
    font-family: 'Urbanist', sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.meta-list {
    list-style: none;
    padding: 0;
    margin: 0.8rem 0;
    display: grid;
    gap: 0.6rem;
}

.meta-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem;
    font-size: 0.95rem;
    color: var(--text-soft);
}

.meta-list strong {
    color: var(--accent-sand);
    font-weight: 600;
}

.pill {
    display: inline-block;
    align-self: flex-start;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(179, 146, 96, 0.18);
    border: 1px solid rgba(179, 146, 96, 0.5);
    color: var(--accent-sand);
    margin-top: 1rem;
}

/* =========================================================================
   Article Detail Page & Markdown Body
   ========================================================================= */

.article-detail {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.2rem, 3vw, 2.2rem);
    box-shadow: var(--shadow);
}

.article-header {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(58, 75, 86, 0.4);
    padding-bottom: 1.2rem;
}

.article-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    margin: 0;
    line-height: 1.2;
}

.article-date {
    color: var(--accent-sand);
    font-size: 0.85rem;
    font-family: 'Urbanist', sans-serif;
}

.article-media {
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    width: 100%;
}

.article-image {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    background: #151E24;
    display: block;
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text);
}

.article-body p {
    margin-bottom: 1.2rem;
}

.article-body h2,
.article-body h3 {
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.4rem;
}

.article-body code {
    background: rgba(0, 0, 0, 0.35);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
    color: var(--accent-cyan);
}

/* =========================================================================
   Markdown Table & "Voir aussi" Style Card-Cell Architecture
   ========================================================================= */

.table-container,
.card--table {
    width: 100%;
    max-width: 100%;
    margin-block: 2rem;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    overflow: visible;
    box-sizing: border-box;
}

.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow: visible;
    box-sizing: border-box;
}

/* Equal-width 50%-50% / 33%-33%-33% fixed table distribution, 100% width, no scrollbar */
.article-body table,
.page-content-body table,
.content-table,
.legal-content table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 1.25rem 1.25rem;
    margin: 0;
    box-sizing: border-box;
    overflow: visible;
}

/* Each cell inherits the exact "Voir aussi" card design system & typography */
.article-body th,
.page-content-body th,
.content-table th,
.legal-content th,
.article-body td,
.page-content-body td,
.content-table td,
.legal-content td {
    background: linear-gradient(145deg, rgba(26, 35, 42, 0.9), rgba(20, 27, 32, 0.9));
    border: 1px solid rgba(87, 197, 210, 0.25);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
    vertical-align: top;
    transition: all 0.25s ease;
    word-break: break-word;
    box-sizing: border-box;
    
    /* Voir aussi body typography */
    font-family: var(--font-body);
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-muted);
}

/* Cell headings & strong typography matching .see-also-card__title */
.article-body th,
.page-content-body th,
.content-table th,
.legal-content th,
.article-body td strong,
.page-content-body td strong,
.content-table td strong,
.legal-content td strong,
.article-body td h3,
.page-content-body td h3,
.content-table td h3,
.legal-content td h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.article-body td strong,
.page-content-body td strong,
.content-table td strong,
.legal-content td strong {
    display: inline-block;
    margin-bottom: 0.35rem;
    color: #ffffff;
}

.article-body td a,
.page-content-body td a,
.content-table td a,
.legal-content td a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.article-body td a:hover,
.page-content-body td a:hover,
.content-table td a:hover,
.legal-content td a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Hide empty header rows generated by markdown parsers */
.article-body thead:empty,
.page-content-body thead:empty,
.content-table thead:empty,
.article-body tr:empty,
.page-content-body tr:empty {
    display: none;
}

/* Hover effect mirroring .see-also-card */
.article-body th:hover,
.page-content-body th:hover,
.content-table th:hover,
.legal-content th:hover,
.article-body td:hover,
.page-content-body td:hover,
.content-table td:hover,
.legal-content td:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* In-Table Media Visual Elements */
.table-media {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 120px;
    padding: 0.5rem;
}

.table-media-img {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(87, 197, 210, 0.2);
}

/* Mobile responsive card stacking without horizontal scrollbar */
@media (max-width: 768px) {
    .article-body table,
    .page-content-body table,
    .content-table,
    .legal-content table {
        display: block;
        border-spacing: 0;
        margin: 0;
        table-layout: auto;
        width: 100%;
        max-width: 100%;
    }

    .article-body table thead,
    .page-content-body table thead,
    .content-table thead,
    .article-body table tbody,
    .page-content-body table tbody,
    .content-table tbody {
        display: block;
        width: 100%;
    }

    .article-body table tr,
    .page-content-body table tr,
    .content-table tr,
    .legal-content table tr {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.25rem;
        width: 100%;
    }

    .article-body table th,
    .page-content-body table th,
    .content-table th,
    .legal-content table th,
    .article-body table td,
    .page-content-body table td,
    .content-table td,
    .legal-content table td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }
}

.related-articles {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.section-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    color: var(--accent-sand);
    margin-bottom: 1rem;
}

/* =========================================================================
   Filter Pills & Meta Badges
   ========================================================================= */

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin: 1.25rem 0 1rem;
    padding: 0.85rem 1rem;
    background: rgba(21, 30, 36, 0.6);
    border: 1px solid rgba(58, 75, 86, 0.4);
    border-radius: 12px;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(58, 75, 86, 0.4);
    background: rgba(26, 35, 42, 0.4);
    color: var(--text-muted);
    font-size: 0.83rem;
    font-weight: 500;
    cursor: pointer;
    opacity: 0.65;
    transition: all 0.2s ease;
    user-select: none;
}

.filter-pill:hover {
    opacity: 0.9;
    border-color: var(--accent-cyan);
    transform: translateY(-1px);
}

.filter-pill.is-active {
    opacity: 1;
    border-color: var(--accent-cyan);
    background: rgba(87, 197, 210, 0.22);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(87, 197, 210, 0.35);
    font-weight: 600;
}

.filter-pill__count {
    display: inline-block;
    padding: 0.08rem 0.4rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.3);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-cyan);
}

.card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.article-meta-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.article-meta-badge--sub {
    background: rgba(87, 197, 210, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(87, 197, 210, 0.3);
}

.article-meta-badge--status {
    background: rgba(232, 197, 71, 0.15);
    color: var(--accent-sand);
    border: 1px solid rgba(232, 197, 71, 0.3);
}

/* =========================================================================
   Footer Styling (Centered Links, Wood / Nature Backdrop)
   ========================================================================= */

.site-footer {
    position: relative;
    border-radius: var(--radius);
    padding: 1.5rem 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(74, 53, 37, 0.55);
    background: linear-gradient(135deg, rgba(27, 43, 33, 0.95) 0%, rgba(35, 30, 24, 0.92) 50%, rgba(22, 33, 26, 0.96) 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.site-footer__backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        radial-gradient(ellipse at 15% 50%, rgba(27, 51, 30, 0.3) 0%, transparent 65%),
        radial-gradient(ellipse at 85% 50%, rgba(74, 53, 37, 0.3) 0%, transparent 65%),
        url("../media/images/nav-decor-wMLlD4M.webp");
    background-size: 32px 32px, 32px 32px, auto, auto, cover;
    background-position: center, center, center, center, left center;
    background-repeat: repeat, repeat, no-repeat, no-repeat, no-repeat;
    opacity: 0.28;
    mix-blend-mode: luminosity;
}

.site-footer__inner {
    position: relative;
    z-index: 1;
}

.site-footer__content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}

.site-footer__nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-link {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--accent-cyan);
}

.site-footer__bottom {
    border-top: 1px solid rgba(58, 75, 86, 0.3);
    padding-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 960px) {
    .site-layout {
        grid-template-columns: 1fr;
    }

    .site-sidebar {
        position: static;
    }

    .card-grid--three,
    .card-grid--two {
        grid-template-columns: 1fr;
    }

    .site-header {
        padding: 0.75rem 1rem;
        margin-top: 0.5rem;
        margin-bottom: 1rem;
    }

    .site-header__inner {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .site-header__brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .brand__title {
        font-size: 1.15rem;
    }

    .brand__subtitle {
        font-size: 0.65rem;
        letter-spacing: 0.08em;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .site-header__burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 0;
        background: rgba(87, 197, 210, 0.08);
        border: 1px solid rgba(87, 197, 210, 0.3);
        border-radius: 10px;
        cursor: pointer;
        color: var(--accent-cyan);
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        flex-shrink: 0;
    }

    .site-header__burger:hover,
    .site-header__burger:focus-visible {
        background: rgba(87, 197, 210, 0.2);
        border-color: var(--accent-cyan);
        box-shadow: 0 0 12px rgba(87, 197, 210, 0.35);
        outline: none;
    }

    .burger-bar {
        display: block;
        width: 22px;
        height: 2px;
        background-color: currentColor;
        border-radius: 2px;
        transition: transform 0.25s ease, opacity 0.2s ease;
    }

    .site-header__burger.is-active .burger-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-header__burger.is-active .burger-bar:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .site-header__burger.is-active .burger-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .site-header__menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding-top: 1rem;
        margin-top: 0.75rem;
        border-top: 1px solid rgba(58, 75, 86, 0.45);
        animation: fadeInUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .site-header__menu.is-open {
        display: flex;
    }

    .site-header__menu .site-nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.4rem;
    }

    .site-header__menu .site-nav__link {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 0.65rem 1rem;
        font-size: 0.95rem;
        border-radius: 8px;
        box-sizing: border-box;
    }

    .site-header__menu .locale-switch {
        align-self: center;
        margin-top: 0.25rem;
    }
}

@media (max-width: 600px) {
    .contact-author-photo {
        float: none;
        display: block;
        margin: 0 auto 1.2rem auto;
    }
}


/* =========================================================================
   Fixed Watermark Background (Botanical & Tech Elements in Faded White)
   ========================================================================= */

.site-watermark-bg {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    color: #ffffff;
}

.watermark-item {
    position: absolute;
    opacity: 0.045;
    mix-blend-mode: overlay;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
    transition: opacity 0.3s ease;
}

.watermark-item--tech-top-left {
    top: 5%;
    left: -2%;
    width: clamp(180px, 20vw, 320px);
    height: clamp(180px, 20vw, 320px);
    transform: rotate(-15deg);
}

.watermark-item--leaf-top-right {
    top: 12%;
    right: 2%;
    width: clamp(160px, 18vw, 300px);
    height: clamp(160px, 18vw, 300px);
    transform: rotate(25deg);
}

.watermark-item--grid-mid-left {
    top: 48%;
    left: 1%;
    width: clamp(140px, 15vw, 240px);
    height: clamp(140px, 15vw, 240px);
    transform: rotate(10deg);
}

.watermark-item--branch-bottom-right {
    bottom: 8%;
    right: 3%;
    width: clamp(200px, 22vw, 360px);
    height: clamp(200px, 22vw, 360px);
    transform: rotate(-10deg);
}

.watermark-item--circuit-bottom-left {
    bottom: 4%;
    left: 4%;
    width: clamp(160px, 18vw, 280px);
    height: clamp(160px, 18vw, 280px);
    transform: rotate(5deg);
}

/* =========================================================================
   Navigation Link: Offre (Cyan / Blue styling)
   ========================================================================= */

.site-nav__link--offer {
    color: var(--text-soft);
}

.site-nav__link--offer:hover,
.site-nav__link--offer.is-active {
    color: var(--accent-cyan);
    border-color: rgba(87, 197, 210, 0.4);
    background: rgba(87, 197, 210, 0.15);
}

/* =========================================================================
   Alternating Media Blocks for Markdown Pages
   ========================================================================= */

.page-content-body {
    overflow: hidden;
}

.page-media {
    margin: 1.2rem 0;
    max-width: 60%;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: #0F171B;
}

.page-media--left {
    float: left;
    margin: 0.4rem 1.8rem 1.2rem 0;
    max-width: 60%;
}

.page-media--right {
    float: right;
    margin: 0.4rem 0 1.2rem 1.8rem;
    max-width: 60%;
}

.page-media-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.page-media-img:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .page-media,
    .page-media--left,
    .page-media--right {
        float: none;
        margin: 1.2rem auto;
        max-width: 100%;
        width: 100%;
    }
}

.home-hero-photo {
    float: left;
    width: 30%;
    margin: 0 10px 10px 0;
    border-radius: var(--radius);
}

@media (max-width: 768px) {
    .home-hero-photo {
        float: none;
        width: 100%;
        margin: 0 0 1.2rem;
    }
}

/* =========================================================================
   Voir Aussi Cross-Navigation Cards
   ========================================================================= */

.see-also-section {
    clear: both;
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.see-also-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.2rem;
}

.see-also-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(145deg, rgba(26, 35, 42, 0.9), rgba(20, 27, 32, 0.9));
    border: 1px solid rgba(87, 197, 210, 0.25);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.25s ease;
}

.see-also-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.see-also-card__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.see-also-card__desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
    flex: 1;
}

.see-also-card__btn {
    align-self: flex-start;
}

/* Home cards share the cross-navigation card language. */
.home-scope-card,
.home-method-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(26, 35, 42, 0.9), rgba(20, 27, 32, 0.9));
    border: 1px solid rgba(87, 197, 210, 0.25);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.home-scope-card:hover,
.home-scope-card:focus-within,
.home-method-card:hover,
.home-method-card:focus-within {
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow, 0 0 22px rgba(87, 197, 210, 0.24));
}

.home-scope-card {
    padding: 0;
}

.home-scope-card__image-frame {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-bottom: 1px solid rgba(87, 197, 210, 0.25);
    background: rgba(15, 23, 27, 0.82);
}

.home-scope-card__image-frame > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.5);
    transform-origin: center;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-scope-card:hover .home-scope-card__image-frame > img,
.home-scope-card:focus-within .home-scope-card__image-frame > img {
    transform: scale(1);
}

.home-scope-card .card__body {
    padding: 1.5rem;
}

.home-scope-card h3,
.home-method-card > p:last-child {
    font-family: 'Outfit', sans-serif;
}

.home-method-card .eyebrow {
    margin: 0 0 0.65rem;
    color: var(--accent-cyan);
    font-family: 'Urbanist', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-scope-card h3 {
    color: #ffffff;
    font-size: 1.25rem;
    margin: 0 0 0.6rem;
}

.home-scope-card .badge {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 0.85rem;
    padding: 0.3rem 0.75rem;
    border: 1px solid rgba(217, 195, 154, 0.45);
    border-radius: 999px;
    color: var(--accent-sand);
    background: rgba(217, 195, 154, 0.1);
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
}

.home-scope-card .card__body > p:last-child {
    color: var(--text-muted);
    line-height: 1.55;
}

.home-method-card {
    min-height: 8.5rem;
    padding: 1.5rem;
    border-left: 3px solid var(--accent-green);
}

.home-method-card > p:last-child {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.6;
}


/* Author Photo on Home Page */
img[src*="lesylvanien-photo"] {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--accent-cyan);
    box-shadow: 0 0 20px rgba(87, 197, 210, 0.35);
    object-fit: cover;
    display: block;
}

.page-media:has(img[src*="lesylvanien-photo"]) {
    border: none;
    background: transparent;
    box-shadow: none;
    max-width: 160px;
}


/* =========================================================================
   Structured Layout Styles: Pillars, Use Cases & Contact Form
   ========================================================================= */

.home-intro-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin: 1.5rem 0 1rem 0;
}

.home-intro-text {
    flex: 1;
}

.home-intro-summary {
    margin-top: 1rem;
    padding: 0.8rem 1.2rem;
    background: rgba(87, 197, 210, 0.08);
    border-left: 4px solid var(--accent-cyan);
    border-radius: 4px var(--radius) var(--radius) 4px;
}

.text-cyan {
    color: var(--accent-cyan);
}

.pillars-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card--pillar {
    background: linear-gradient(145deg, rgba(26, 35, 42, 0.9), rgba(20, 27, 32, 0.95));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.card--pillar:hover {
    border-color: rgba(87, 197, 210, 0.4);
    transform: translateY(-2px);
}

.services-example-title {
    margin: 0 0 0.7rem;
}

.services-sector {
    margin: 0 0 1rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid rgba(217, 195, 154, 0.5);
    border-left: 3px solid var(--accent-sand);
    border-radius: 10px;
    background: rgba(217, 195, 154, 0.1);
    color: var(--accent-sand);
    font-family: 'Urbanist', sans-serif;
    font-size: 0.82rem;
    line-height: 1.45;
}

.services-pillar-image-frame {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    margin: 0 0 1.25rem;
    border: 1px solid rgba(87, 197, 210, 0.25);
    border-radius: 14px;
    background: rgba(15, 23, 27, 0.82);
}

.services-pillar-image-frame > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(2);
    transform-origin: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card--pillar:hover .services-pillar-image-frame > img,
.card--pillar:focus-within .services-pillar-image-frame > img {
    transform: scale(1);
}

.services-pillar-description {
    color: var(--text-soft);
    line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
    .services-pillar-image-frame > img {
        transition: none;
    }
}

.pillar-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.pillar-content--reverse {
    flex-direction: row;
}

.pillar-text {
    flex: 1;
}

.card--step {
    background: rgba(26, 35, 42, 0.85);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
}

/* Use Cases on Offre Page */
.card--usecase {
    background: linear-gradient(145deg, rgba(26, 35, 42, 0.9), rgba(20, 27, 32, 0.95));
    border: 1px solid rgba(87, 197, 210, 0.25);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.usecase-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1rem;
}

.usecase-sectors {
    color: var(--text-soft);
    font-size: 0.95rem;
    margin-top: 0.4rem;
}

.usecase-body {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.8rem;
}

.usecase-desc {
    flex: 1;
}

.usecase-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.benefit-box {
    background: rgba(15, 23, 27, 0.7);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
}

.benefit-box--ops {
    border-left: 4px solid var(--accent-skills);
}

.benefit-box--client {
    border-left: 4px solid var(--accent-cyan);
}

.benefit-box h4 {
    margin-bottom: 0.8rem;
    font-family: var(--font-heading);
    color: #ffffff;
    font-size: 1.05rem;
}

.services-examples-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.services-example-column {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.services-example-column .benefit-box {
    padding: 1rem 1.15rem;
    border-radius: 12px;
}

.services-example-column .benefit-box h3 {
    margin: 0 0 0.55rem;
    color: #ffffff;
    font-family: 'Urbanist', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.services-example-column .benefit-box p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.6;
}

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

.benefit-box ul {
    list-style: disc;
    padding-left: 1.2rem;
    margin: 0;
}

.benefit-box li {
    margin-bottom: 0.5rem;
    font-size: 0.92rem;
    color: var(--text-soft);
    line-height: 1.5;
}

/* Contact Form Card */
.card--form {
    background: linear-gradient(145deg, rgba(26, 35, 42, 0.95), rgba(20, 27, 32, 0.98));
    border: 1px solid rgba(87, 197, 210, 0.3);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-glow);
    margin-bottom: 2rem;
}

.contact-form__mention {
    margin: 0 0 1.5rem;
    color: var(--text-soft);
    font-family: 'Urbanist', sans-serif;
    font-size: 0.98rem;
    line-height: 1.55;
}

.services-intro-emphasis {
    margin: 1rem 0 0;
    color: var(--accent-sand);
    font-family: 'Urbanist', sans-serif;
    font-size: 1.02rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.6;
}

.contact-form {
    display: grid;
    gap: 1.2rem;
}

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

.contact-form .form-grid > div,
.contact-form > div:not(.form-grid):not(.form-row) {
    min-width: 0;
}

.contact-form label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--text-soft);
    font-family: 'Urbanist', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
}

.contact-form label.required::after {
    content: none;
}

.contact-form input:not([type='hidden']):not(.form-row--honeypot),
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(87, 197, 210, 0.28);
    border-radius: 16px;
    padding: 0.82rem 1rem;
    background: rgba(15, 23, 27, 0.72);
    color: var(--text);
    font: inherit;
    line-height: 1.45;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form textarea {
    min-height: 12rem;
    border-radius: 18px;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.contact-form input:not([type='hidden']):focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(20, 32, 38, 0.92);
    box-shadow: 0 0 0 3px rgba(87, 197, 210, 0.14), 0 0 18px rgba(87, 197, 210, 0.16);
}

.contact-form select:invalid {
    color: var(--text-muted);
}

.contact-form__mention:last-of-type {
    margin: 0;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-style: italic;
    line-height: 1.5;
}

.contact-form__submit {
    justify-self: start;
    min-height: 2.75rem;
}

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

@media (max-width: 700px) {
    .contact-form .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-scope-card__image-frame > img {
        transition: none;
    }
}

.card--accent {
    background: rgba(26, 35, 42, 0.85);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem;
}

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

.meta-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-soft);
}

.meta-list li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .home-intro-wrapper,
    .pillar-content,
    .pillar-content--reverse,
    .usecase-body {
        flex-direction: column;
        align-items: stretch;
    }
}


/* =========================================================================
   Pill Buttons for See Also and Contact Form Submit (cercl?s comme les menus)
   ========================================================================= */

.button,
.button--primary,
.button--secondary,
.see-also-card__btn,
.contact-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1.3rem;
    border-radius: 999px !important; /* Cercl? comme les menus */
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.button--primary,
.contact-form__submit {
    background: rgba(87, 197, 210, 0.15) !important;
    color: var(--accent-cyan) !important;
    border: 1px solid rgba(87, 197, 210, 0.4) !important;
    box-shadow: 0 0 14px rgba(87, 197, 210, 0.18);
}

.button--primary:hover,
.button--primary:focus-visible,
.contact-form__submit:hover,
.contact-form__submit:focus-visible {
    background: rgba(87, 197, 210, 0.28) !important;
    border-color: var(--accent-cyan) !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(87, 197, 210, 0.45);
    transform: translateY(-1px);
}

.button--secondary,
.see-also-card__btn.button--secondary {
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--text-soft) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.button--secondary:hover,
.button--secondary:focus-visible,
.see-also-card__btn.button--secondary:hover,
.see-also-card__btn.button--secondary:focus-visible {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}


/* ==========================================================================
   Error Pages (404 & Generic Exceptions)
   ========================================================================== */
.error-page {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 1rem;
}

.error-card {
    background: var(--bg-card);
    border: 1px solid rgba(87, 197, 210, 0.25);
    border-radius: var(--radius);
    padding: 3rem 2.5rem;
    max-width: 720px;
    width: 100%;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(87, 197, 210, 0.12);
    backdrop-filter: blur(16px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.error-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--badge-news), transparent);
}

.error-card__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.error-card__code {
    font-family: 'Outfit', sans-serif;
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, #3FA89B 50%, var(--accent-sand) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(87, 197, 210, 0.3);
}

.error-card__icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 16px rgba(16, 185, 129, 0.4));
    animation: gentle-bounce 3s ease-in-out infinite;
}

@keyframes gentle-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.error-card__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.error-card__title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text);
    margin: 0.5rem 0 0;
    line-height: 1.25;
}

.error-card__description {
    font-size: 1.05rem;
    color: var(--text-soft);
    margin: 0;
    max-width: 580px;
    line-height: 1.6;
}

.error-card__suggestion {
    font-size: 0.92rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0.85rem 1.25rem;
    margin: 0.5rem 0 1rem;
    max-width: 580px;
    line-height: 1.5;
}

.error-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.error-card__actions .button {
    text-decoration: none;
}
