/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
:root {
    --bg-color: #ffffff;
    --text-color: #111111;
    --text-light: #666666;
    --accent-color: #024063;
    --border-color: #e5e5e5;
    --bg-light: #f9f9f9;
    --explode-color: #e27022ff;
    --suprise-color: #89bd24ff;
    
    --font-main: 'Inter', Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    
    --container-width: 1200px;
    --header-height: 80px;

    --fs-h1: clamp(2.5rem, 8vw, 4.5rem);
    --fs-h2: clamp(1.75rem, 5vw, 2.75rem);
    --fs-h3: clamp(1.25rem, 3vw, 1.75rem);
    --fs-body: 1.125rem; /* 18px pour une lecture pro */
    --fs-small: 0.875rem;

    --sp-xs: 0.5rem;   /* 8px */
    --sp-s: 1rem;      /* 16px */
    --sp-m: 2rem;      /* 32px */
    --sp-l: 4rem;      /* 64px */
    --sp-xl: clamp(4rem, 10vw, 8rem);  /* Espace entre sections */
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base */
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6; /* Interlignage aéré */
    margin: 0;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ==========================================================================
   2. TYPOGRAPHY (CORRIGÉ)
   ========================================================================== */
h1, h2, h3, h4 {
    text-align: left !important;
    margin-top: 0;
    color: var(--text-color);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em; /* Look premium serré */
    scroll-margin-top: calc(var(--header-height) + var(--sp-m));
}

/* Application des tailles fluides */
h1 { font-size: var(--fs-h1); margin-bottom: var(--sp-m); }
h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-m); }
h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-s); }

p {
    font-size: var(--fs-body);
    margin-bottom: var(--sp-m);
    color: var(--text-color);
    max-width: 70ch;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

hr {
    margin-bottom: var(--sp-m);
}

.hero-title,
.article-title,
.archive-title,
.page-title {
    font-size: var(--fs-h1);
    margin-bottom: var(--sp-m);
}

.hero-title::after {
  content: ".";
  color: var(--explode-color);
}

/* Ajustement des petits textes tech */
.tech-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 6px 12px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    margin-bottom: var(--sp-s);
}

.link-arrow {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--text-color);
    padding-bottom: 2px;
}

.link-arrow:hover {
    color: var(--text-light);
    border-color: var(--text-light);
}

/* ==========================================================================
   3. LAYOUT & UTILITIES (CORRIGÉ)
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--sp-m); /* 32px de marge sur les côtés */
}

/* Espacement global des sections */
section, 
.hero-section, 
.solutions-section, 
.featured-work {
    padding-top: var(--sp-l);
    padding-bottom: 0;
    margin-bottom: 0; /* On utilise le padding pour plus de contrôle */
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--sp-m);
    border-bottom: 2px solid var(--text-color);
    padding-bottom: var(--sp-s);
}

.section-header h2 {
    font-size: 1.5rem; /* Gardé petit car c'est un label de section */
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-color);
    color: #fff;
}

.btn-primary:hover {
    background: #333;
}

.btn-outline {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--accent-color);
    color: #fff;
}

/* ==========================================================================
   4. HEADER
   ========================================================================== */
.site-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
    z-index: 1000;
}

.grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.05em;
    display: flex;
    align-items: center;
}

.logo img {
    height: 36px;
    width: auto;
}

.blink { animation: blinker 1.2s step-end infinite; }
@keyframes blinker { 50% { opacity: 0; } }

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
}

.main-nav a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.lang-switcher {
    display: none;
    margin-left: 2rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.lang-link {
    text-decoration: none;
    color: #999;
}

.lang-link.active {
    color: #000;
    font-weight: 700;
    text-decoration: underline;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem; /* Espace entre EN/FR et le Bouton */
}

.sep { margin: 0 5px; color: #ddd; }

/* Bouton Fun (Header CTA) */
.btn-fun {
    display: inline-block;
    position: relative; 
    overflow: hidden;   
    border: 1px solid var(--accent-color);
    background: transparent;
    color: var(--accent-color);
    padding: 12px 28px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-fun span {
    display: block;
    transition: transform 0.3s cubic-bezier(0.7, 0, 0.3, 1); 
}

.btn-fun::before {
    content: attr(data-hover); 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.7, 0, 0.3, 1);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.btn-fun:hover {
    background-color: var(--accent-color);
    color: #ffffff;
}

.btn-fun:hover span {
    transform: translateY(-100%);
}

.btn-fun:hover::before {
    transform: translateY(0);
}

body[class*="page-start"] .btn-fun {
    background-color: var(--accent-color) !important; /* Force le Noir */
    color: #ffffff !important; /* Force le Blanc */
}

/* Cache "Let's start" */
body[class*="page-start"] .btn-fun span {
    transform: translateY(-100%) !important;
}

/* Affiche "Now!" */
body[class*="page-start"] .btn-fun::before {
    transform: translateY(0) !important;
}

/* ==========================================================================
   5. HOMEPAGE HERO (Dynamic Background)
   ========================================================================== */
.hero-section {
    margin-top: calc(var(--header-height) * -1);
    padding-top: calc(8rem + var(--header-height)); 
    padding-bottom: 6rem;
    position: relative;
    background-color: var(--bg-color);
    text-align: left;
    overflow: visible;
    z-index: 1;
}

.hero-background-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + 100px); 
    z-index: 0;
    pointer-events: none;
}

.hero-bg-img {
    position: absolute;
    object-fit: none;
    object-position: center center;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
    min-width: 2000px; 
    min-height: 755px;
    top: 0;
    right: 0;
    width: auto;
    height: auto;
}

.hero-bg-img.default-bg.active {
    opacity: 1;
    z-index: 1;
}

.hero-bg-img.solution-bg {
    z-index: 2;
}

.hero-bg-img.is-hovered {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.relative-content {
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 900px;
    margin-left: 0;
}

.hero-background-wrapper {
    transition: opacity 0.5s ease;
    opacity: 1;
}

body.is-solution-open .hero-background-wrapper {
    opacity: 0;
    pointer-events: none;
}

/* ==========================================================================
   6. SOLUTIONS GRID (Graphic Poster Style)
   ========================================================================== */
.solutions-section {
    margin-bottom: var(--sp-l);;
    position: relative;
    z-index: 2;
    background-color: transparent;
}

@media (min-width: 901px) {
    .solutions-super-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto; 
        gap: 1px;
        border: 1px solid var(--accent-color);
        border-bottom: none;
        background-color: var(--accent-color); 
        transition: all 0.4s ease;
    }

    .solution-group { display: contents; }

    /* Placement */
    .solution-group:nth-of-type(1) .solution-card-interactive { grid-column: 1; grid-row: 1; }
    .solution-group:nth-of-type(2) .solution-card-interactive { grid-column: 2; grid-row: 1; }
    .solution-group:nth-of-type(3) .solution-card-interactive { grid-column: 3; grid-row: 1; }

    .solution-detail-panel {
        grid-column: 1 / -1;
        grid-row: 2;
        border-top: 0; 
        margin-top: -1px;
    }
    .solution-detail-panel.open {
        border-top: 1px solid var(--accent-color);
        border-bottom: 1px solid var(--accent-color);
    }

    /* --- ÉTAT OUVERT (Mode Navigation Compacte) --- */
    
    .solutions-super-grid.has-active-selection .excerpt-wrapper {
        max-height: 0; opacity: 0; margin: 0;
    }

    /* Transformation de la carte en bouton de menu */
    .solutions-super-grid.has-active-selection .solution-card-interactive {
        min-height: 140px; 
        padding: 1.5rem 2rem;
        flex-direction: column; 
        justify-content: center;
        background-color: #ffffff;
    }

    .solutions-super-grid.has-active-selection .solution-card-interactive:hover { 
        background-color: var(--accent-color); 
    }

    /* RESET DU NUMÉRO : Il redevient petit et bien rangé */
    .solutions-super-grid.has-active-selection .card-num {
        position: static; /* Annule le positionnement absolu */
        font-size: 0.85rem; 
        color: #999;
        margin-bottom: 0.5rem;
        opacity: 1;
        transform: none !important;
    }

    .solutions-super-grid.has-active-selection .solution-card-interactive:hover .card-num {
        color: #fafafa;
    }

    .solutions-super-grid.has-active-selection h3 {
        font-size: 1.4rem; 
        margin-bottom: 0;
        margin-top: 0; /* Reset de la marge */
        padding-right: 2rem; 
    }

    .solutions-super-grid.has-active-selection .card-action-wrapper {
        position: absolute;
        bottom: 1.5rem; 
        right: 2rem;   
        margin: 0;
        font-size: 1.4rem;
        align-self: auto;
        opacity: 0.5;
    }

    .solutions-super-grid.has-active-selection .action-label {
        opacity: 0;
        width: 0;
        margin-right: 0;
    }
    
    .solutions-super-grid.has-active-selection .solution-card-interactive.active {
        background-color: rgba(0,0,0,0.3);
    }
}

/* --- STYLE BASE CARTE --- */
.solution-card-interactive {
    background-color: #fafafa;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centré verticalement */
    min-height: 380px; 
    cursor: pointer;
    position: relative; /* Indispensable pour l'absolute children */
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden; /* C'est ça qui coupe le numéro qui dépasse */
}

/* Contenu (Titre + Texte) : Doit passer DEVANT le numéro */
.card-home-content {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2; /* Au premier plan */
}

/* LE NUMÉRO (Arrière-plan graphique) */
.card-num {
    font-family: var(--font-mono);
    
    /* Positionnement Haut Gauche dépassante */
    position: absolute;
    top: -8rem;
    left: -5rem; 
    
    /* Taille gigantesque */
    font-size: 14rem;
    font-weight: 800;
    line-height: 1;
    
    /* Couleur subtile */
    color: #f0f0f0; /* Gris très clair pour ne pas gêner la lecture */
    
    /* Derrière le texte */
    z-index: 0; 
    
    display: block;
    transition: all 0.5s ease;
    pointer-events: none; /* Pour ne pas gêner le clic */
}

.solution-card-interactive h3 {
    font-size: 2.2rem;
    margin-top: 1rem; 
    margin-bottom: 1.5rem;
    font-weight: 600;
    line-height: 1.1;
    color: var(--text-color);
    transition: all 0.4s ease;
    z-index: 2;
}

.excerpt-wrapper {
    max-height: 150px;
    opacity: 1;
    overflow: hidden;
    transition: all 0.4s ease;
}

.solution-card-interactive p {
    color: var(--text-light);
}

.card-action-wrapper {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 10px; /* Espace entre texte et flèche */
    z-index: 2;
    transition: all 0.4s ease;
}

.action-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--explode-color);
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.card-arrow {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--explode-color);
    transform: translateX(0);
    transition: all 0.4s ease;
    line-height: 1;
}

/* --- ÉTATS --- */

/* Hover */
.solution-card-interactive:hover { 
    background-color: var(--accent-color); 
}

.solution-card-interactive:hover .card-num {
    color: #033044; /* Gris foncé sur fond noir */
    transform: scale(1.05); /* Petit effet de zoom */
}

.solution-card-interactive:hover h3,
.solution-card-interactive:hover p,
.solution-card-interactive:hover .card-arrow { 
    color: #ffffff; 
}

.solution-card-interactive:hover .card-arrow { 
    opacity: 1; 
    transform: translateX(10px); 
}

/* Active */
.solution-card-interactive.active { 
    background-color: var(--accent-color); 
}
.solution-card-interactive.active h3,
.solution-card-interactive.active .card-num,
.solution-card-interactive.active .card-arrow { 
    color: #ffffff; 
}

.solution-card-interactive.active .card-arrow {
    opacity: 1;
    transform: rotate(90deg);
}

/* --- PANNEAU CONTENU --- */
.solution-detail-panel {
    max-height: 0;
    overflow: hidden;
    background-color: #fff;
    opacity: 0;
}

.solution-detail-panel.open { opacity: 1; }

.panel-inner {
    padding: 4rem 2.5rem;
    max-width: 900px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s ease;
}

.solution-detail-panel.open .panel-inner {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.solutions-super-grid .solution-card-interactive:hover .action-label {
    color: #ffffff;
}

.panel-header { margin-bottom: 1.5rem; }
.panel-title { font-size: 3rem; font-weight: 700; margin-top: 1rem; }
.panel-cta { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border-color); }

/* ==========================================================================
   7. WORK & ARCHIVE GRID
   ========================================================================== */
.featured-work {
    margin-bottom: 6rem;
}

.work-grid, .work-archive-grid {
    display: grid;
    gap: 2rem;
}

.work-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.work-archive-grid {
    grid-template-columns: repeat(3, 1fr);
}

.work-tile {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    transition: all 0.3s ease;
}

.work-tile:hover {
    border-color: var(--accent-color);
    background: #fff;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.tile-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tile-image-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #eee;
    border-bottom: 1px solid var(--border-color);
}

.tile-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform 0.5s ease, filter 0.3s ease;
}

.work-tile:hover .tile-image-wrapper img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.tile-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tile-meta {
    margin-bottom: 1rem;
}

.tile-title {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.tile-excerpt {
    font-size: 0.95rem;
    color: var(--text-light);
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.tile-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.read-more {
    font-family: var(--font-mono);
    color: var(--explode-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    float: right;
}

/* ==========================================================================
   8. AGENCY & TEAM
   ========================================================================== */
.agency-intro-section .gh-content {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-color);
}

.agency-intro-section .gh-content p {
    margin-bottom: 1.5rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-member {
    /* Indispensable pour que le lien overlay se positionne par rapport à la carte */
    position: relative; 
    
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

/* Le lien transparent qui couvre tout */
.member-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* Au-dessus de tout le reste */
    cursor: pointer;
}

/* Interaction : Quand on survole la carte (si elle a un lien) */
.team-member:has(.member-link-overlay):hover {
    background-color: #ffffff;
    border-color: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* On garde l'effet d'image couleur au survol */
.team-member:has(.member-link-overlay):hover .member-image-wrapper img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

/* Optionnel : Si un membre n'a PAS de site web, on peut désactiver l'effet de survol */
/* (Supprimez ce bloc si vous voulez que ça bouge quand même pour tout le monde) */
.team-member:not(:has(.member-link-overlay)):hover {
    transform: none;
    border-color: var(--border-color);
    background-color: var(--bg-light);
    cursor: default;
}

.team-member:hover {
    background-color: #ffffff;
    border-color: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.member-image-wrapper {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    background-color: #eee;
}

.member-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform 0.5s ease, filter 0.3s ease;
}

.team-member:hover .member-image-wrapper img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.member-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.member-name {
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
}

.member-role {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0.05em;
}

.member-loc {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.5rem;
}

/* ==========================================================================
   9. GHOST EDITOR (PAGES & POSTS)
   ========================================================================== */
.article-content {
    max-width: 100%; 
    display: flex;
    flex-direction: column;
}

.article-header, .archive-header {
    margin-top: 3rem;
    max-width: 900px;
    text-align: left;
    width: 100%;
}

.article-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.article-excerpt, .page-excerpt {
    font-size: 1.3rem;
    line-height: 1.5;
    color: var(--text-light);
    max-width: 800px;
    margin-bottom: 2rem;
    font-weight: 400;
}

.article-image, .page-image {
    margin: 0 0 4rem 0;
    width: 100%;
    max-width: 1000px; 
}

.article-image img, .page-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

.gh-content {
    font-size: var(--fs-body);
    line-height: 1.7; /* Plus d'espace pour le corps de texte */
}

.gh-content h2 {
    font-size: var(--fs-h2);
    margin-top: var(--sp-xl);
    margin-bottom: var(--sp-l);
    padding-bottom: var(--sp-xs);
    letter-spacing: -0.02em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.gh-content h3 {
    font-size: var(--fs-h3);
    margin-top: var(--sp-xl);
    margin-bottom: var(--sp-l) !important;
    padding-bottom: var(--sp-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-mono);
}

.gh-content ul, .gh-content ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.gh-content li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.gh-content blockquote {
    margin: 2.5rem 0;
    padding: 1.5rem 0 1.5rem 2rem;
    border-left: 4px solid var(--accent-color);
    font-size: 1.3rem;
    font-style: italic;
    background: var(--bg-light);
    color: #444;
}

.gh-content a {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    color: var(--accent-color);
}

.gh-content a:hover {
    background-color: var(--accent-color);
    color: #fff;
    text-decoration: none;
}

.gh-content hr {
    border: 0;
    height: 1px;
    background: var(--accent-color);
}

.gh-content img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
}

.gh-content .kg-width-wide {
    width: 100vw;
    max-width: 1000px;
    margin-left: 0;
}

.gh-content .kg-width-full {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* --- LISTES (Style Technique) --- */

/* Reset global des listes */
.gh-content ul, .gh-content ol {
    margin: 2rem 0;
    padding-left: 0; /* On gère l'indentation nous-mêmes */
    list-style-position: inside;
}

.gh-content li {
    margin-bottom: 0.8rem;
    padding-left: 1rem;
    position: relative;
}

/* Listes à puces (UL) - Carrés techniques */
.gh-content ul {
    list-style: none; /* On retire les ronds par défaut */
}

.gh-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem; /* Ajustement vertical selon la police */
    width: 6px;
    height: 6px;
    background-color: var(--accent-color); /* Carré noir */
}

/* Listes numérotées (OL) - Compteur "01." */
.gh-content ol {
    list-style: none;
    counter-reset: post-counter; /* Initialise le compteur */
}

.gh-content ol li {
    counter-increment: post-counter;
    align-items: baseline;
    padding-left: 0;
}

.gh-content ol li::before {
    content: counter(post-counter, decimal-leading-zero) "."; /* Affiche 01. */
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--accent-color);
    margin-right: 1rem;
    font-size: 0.9rem;
    min-width: 2rem; /* Largeur fixe pour aligner le texte */
}


/* --- FIGURES & MEDIA (Images) --- */

.gh-content figure {
    margin: 3rem 0;
    width: 100%;
}

/* L'image elle-même */
.gh-content figure img {
    margin: 0; /* Le margin est géré par figure */
    width: 100%;
    height: auto;
    display: block;
}

/* LÉGENDES (Figcaption) - Style Annotation */
.gh-content figcaption {
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-light); /* Gris technique */
    text-align: center; /* Centré sous l'image */
    letter-spacing: 0.02em;
    line-height: 1.4;
}

/* Optionnel : Une petite ligne décorative sous l'image avant la légende */
.gh-content figcaption::before {
    content: "↑"; /* Petite flèche pointant l'image */
    display: block;
    margin-bottom: 0.3rem;
    font-size: 1rem;
    opacity: 0.5;
}

/* Gestion des largeurs spécifiques Ghost (Wide / Full) */
.gh-content .kg-width-wide {
    width: 120%;
    margin-left: -10%; /* Déborde du texte */
}

.gh-content .kg-width-full {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Sur mobile, on annule le débordement */
@media (max-width: 900px) {
    .gh-content .kg-width-wide,
    .gh-content .kg-width-full {
        width: 100%;
        margin-left: 0;
        left: 0;
        right: 0;
    }
    
    .gh-content ol li {
        padding-left: 0;
    }
}

/* ==========================================================================
   10. INSIGHTS / BLOG GRID
   ========================================================================== */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 6rem;
}

.insight-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.insight-card:hover {
    background-color: #ffffff;
    border-color: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.insight-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.insight-image-wrapper {
    width: 100%;
    aspect-ratio: 3/2;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    background-color: #eee;
}

.insight-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform 0.5s ease, filter 0.3s ease;
}

.insight-card:hover .insight-image-wrapper img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.insight-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.insight-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    letter-spacing: 0.05em;
}

.meta-divider {
    margin: 0 5px;
    color: #ccc;
}

.insight-title {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    font-weight: 700;
}

.insight-excerpt {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.insight-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.read-more-link {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-color);
}

/* ==========================================================================
   11. PAGINATION
   ========================================================================== */
.pagination-wrapper {
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

.pagination {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    color: var(--text-color);
}

.newer-posts, .older-posts {
    text-decoration: none;
    color: var(--text-color);
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

a.newer-posts:hover, a.older-posts:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.newer-posts.disabled, .older-posts.disabled {
    color: #ccc;
    pointer-events: none;
}

.page-number {
    color: var(--text-color);
    font-weight: 600;
    letter-spacing: 0.1em;
}

.divider {
    color: #ccc;
    margin: 0 5px;
    font-weight: 300;
}

/* ==========================================================================
   12. FOOTER
   ========================================================================== */
.site-footer {
    width: 100%;
    max-width: 100%;
    background-color: var(--bg-color);
    border-top: 2px solid var(--accent-color);
    margin-top: 4rem;
    padding: 4rem 0 0 0; 
}

.site-footer .container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-heading {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-logo {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: block;
}

.footer-list, .footer-nav-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li, .footer-nav-list li {
    margin-bottom: 0.6rem;
}

.certification-badge {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.partner-logo {
    display: block;
    margin-bottom: 1.5rem;
    transition: opacity 0.3s ease;
}

.partner-logo img {
    height: 15px;
    width: auto;
    display: block;
    filter: grayscale(100%); 
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.footer-bottom {
    width: 100%; 
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-light);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-col {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-links ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ==========================================================================
   13. SOLUTION NAVIGATOR
   ========================================================================== */
.solution-navigator {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px; 
    background-color: var(--accent-color);
    border: 1px solid var(--accent-color);
    margin-top: 2rem;
}

.solution-tab {
    background-color: #ffffff;
    padding: 1.5rem 2rem;
    text-decoration: none;
    color: var(--text-light);
    display: flex;
    justify-content: space-between; 
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}

.tab-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tab-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #999;
    transition: color 0.3s ease;
}

.tab-title {
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.tab-arrow {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    opacity: 0.2;
    transform: translateX(0);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.solution-tab:last-child .tab-arrow {
    display: none;
}

.solution-tab:hover {
    background-color: #f4f4f4;
    color: var(--accent-color);
}

.solution-tab:hover .tab-arrow {
    opacity: 1;
    transform: translateX(10px);
}

.solution-tab.active {
    background-color: var(--accent-color); 
    color: #ffffff;
}

.solution-tab.active .tab-number {
    color: #666;
}

.solution-tab.active .tab-arrow {
    opacity: 1;
    color: #ffffff;
}

/* ==========================================================================
   14. STAFF PROFILE PAGE
   ========================================================================== */

.staff-profile-wrapper {
    display: grid;
    /* Colonne gauche (300px) | Espace (4rem) | Colonne droite (Reste) */
    grid-template-columns: 300px 1fr; 
    gap: 4rem;
    margin-top: 6rem;
    margin-bottom: 8rem;
}

/* --- SIDEBAR GAUCHE --- */
.staff-sidebar {
    position: relative;
}

/* Effet Sticky : La photo suit le scroll si le texte est long */
.staff-card-sticky {
    /* position: sticky; */
    top: calc(var(--header-height) + 2rem);
}

/* Photo */
.staff-portrait {
    width: 100%;
    aspect-ratio: 3/4; /* Format portrait classique */
    background-color: #eee;
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.staff-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%); /* N&B pour le style */
    transition: filter 0.3s ease;
}

.staff-portrait:hover img {
    filter: grayscale(0%);
}

/* Métadonnées (Role, Link) */
.staff-meta-block {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-top: 1px solid var(--accent-color); /* Ligne noire de séparation */
    padding-top: 1.5rem;
}

.staff-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 0.2rem;
    display: block;
}

.staff-data {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.btn-linkedin {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    text-align: center;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.btn-linkedin:hover {
    background-color: #0077b5; /* Bleu LinkedIn */
    border-color: #0077b5;
    color: white;
}

/* --- COLONNE DROITE (CONTENU) --- */
.staff-content-area {
    max-width: 720px; /* Largeur de lecture optimale */
}

/* Ajustement du header pour cette page spécifique */
.staff-content-area .staff-header {
    margin-top: 0; /* On colle au haut de la grille */
    margin-bottom: 3rem;
    text-align: left;
}

/* 1. L'INTRO "MANIFESTE" */
/* Le tout premier paragraphe devient énorme et donne le ton */
.staff-rich-text > p:first-of-type {
    font-size: 1.8rem;
    line-height: 1.4;
    font-weight: 300; /* Fin et élégant */
    color: var(--text-color);
    margin-bottom: 3rem;
    padding-bottom: 2rem;
}

/* 2. LES CITATIONS GRAPHIQUES */
/* Transforme les blockquotes en éléments visuels forts */
.staff-rich-text blockquote {
    border-left: none; /* On retire la barre standard */
    padding: 0;
    margin: 4rem 0;
    font-family: var(--font-main);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    position: relative;
    background: transparent;
}

/* Ajout d'une grosse guillemet décorative */
.staff-rich-text blockquote::before {
    content: "“";
    font-family: var(--font-mono);
    font-size: 6rem;
    color: var(--border-color); /* Gris très clair */
    position: absolute;
    top: -3rem;
    left: -1rem;
    z-index: -1;
}

/* La liste à puces transformée en Tags */
.staff-rich-text ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    list-style: none;
}

.staff-rich-text ul li {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin: 0;
}

/* 4. SIGNATURE BAS DE PAGE */
.staff-signature {
    margin-top: 6rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0.5;
}

.signature-line {
    height: 1px;
    width: 50px;
    background-color: var(--accent-color);
}

.signature-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* Le conteneur de l'image de fond */
.staff-hero-bg {
    position: absolute; /* Sort du flux pour se mettre derrière */
    top: 0;
    left: 0;
    width: 100%;
    height: 600px; /* Hauteur de la zone texturée */
    background-size: cover;
    background-position: center 20%;
    filter: grayscale(100%) brightness(1.05); /* N&B et légèrement plus clair */
    opacity: 0.15; /* Très subtil, comme un filigrane */
    z-index: -1;
    pointer-events: none;
}

/* Overlay pour fondre l'image dans le blanc de la page */
.staff-bg-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dégradé du transparent vers le blanc de la page */
    background: linear-gradient(to bottom, 
                rgba(255,255,255,0) 0%, 
                rgba(255,255,255,1) 100%);
}

/* On s'assure que le wrapper principal n'est pas caché par l'image */
.staff-profile-wrapper {
    position: relative;
    z-index: 1;
    margin-top: 4rem; 
}

.back-nav {
    margin-top: 4rem; /* Espace depuis le haut */
    margin-bottom: -2rem; /* On compense pour ne pas trop pousser le contenu */
    position: relative;
    z-index: 10; /* Au-dessus de la texture de fond */
}

.link-back {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-light);
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Espace entre la flèche et le texte */
}

.link-back:hover {
    color: var(--accent-color); /* Devient noir au survol */
    padding-left: 5px; /* Petit mouvement vers la droite */
}

/* RESPONSIVE MOBILE */
@media (max-width: 900px) {
    .staff-profile-wrapper {
        grid-template-columns: 1fr;
        margin-top: 3rem;
    }

    /* --- EFFET "DARK CARD" POUR LA SIDEBAR --- */
    .staff-sidebar {
        background-color: var(--accent-color); /* Fond Noir */
        padding: 2rem; /* Espace intérieur pour créer la carte */
    }

    .staff-card-sticky {
        position: static;
        display: grid;
        grid-template-columns: 160px 1fr; /* Photo un peu plus petite */
        gap: 1.5rem;
        align-items: flex-start; /* Alignement haut pour gérer les textes longs */
    }

    /* Photo */
    .staff-portrait {
        width: 160px;
        height: fit-content;
        margin-bottom: 0;
        border: 1px solid #ffffff;
    }

    /* Textes (Inversion de couleur) */
    .staff-meta-block {
        border-top: none;
        padding-top: 0;
        gap: 1rem;
    }

    .staff-label {
        color: #999; /* Gris clair */
    }

    .staff-data {
        color: #ffffff; /* Blanc pur */
    }

    /* Bouton LinkedIn (Adaptation Dark Mode) */
    .btn-linkedin {
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.3);
        margin-top: 0.5rem;
        background: transparent;
    }

    .btn-linkedin:hover {
        background-color: #ffffff;
        color: var(--accent-color); /* Texte noir sur fond blanc au clic */
    } 

    .staff-rich-text > p:first-of-type {
        font-size: 1.4rem;
    }
    .staff-rich-text blockquote {
        font-size: 1.8rem;
    }

    .staff-hero-bg {
        height: 400px;
        opacity: 0.1; /* Encore plus discret sur mobile */
    }
    .staff-profile-wrapper {
        margin-top: 2rem;
    }

    .back-nav {
        margin-top: 2rem;
        margin-bottom: 0;
    }
}

/* ==========================================================================
   15. CONTACT PAGE (Single Column Center)
   ========================================================================== */

/* Wrapper Centré */
.contact-single-wrapper {
    max-width: 800px; /* Largeur de lecture confortable */
    margin: 3rem 0 4rem 0; /* Centré horizontalement */
    position: relative;
    z-index: 1;
}

/* --- FORMULAIRE --- */
.ekio-form {
    margin-top: 4rem;
    background: #fff;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group {
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    letter-spacing: 0.05em;
}

/* Inputs Style "Ligne" */
.ekio-form input,
.ekio-form select,
.ekio-form textarea {
    width: 100%;
    background: transparent;
    border: 1px solid #ccc;
    padding: 10px;
    font-family: var(--font-main);
    font-size: 1.1rem;
    border-radius: 0;
    transition: border-color 0.3s ease;
    color: var(--text-color);
}

.ekio-form input:focus,
.ekio-form select:focus,
.ekio-form textarea:focus {
    outline: none;
    border-bottom: 2px solid var(--accent-color);
}

.ekio-form select {
    cursor: pointer;
    border-radius: 0; /* Fix Safari */
}

/* Bouton aligné droite ou pleine largeur selon préférence */
.form-footer {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-start; /* ou center */
}

/* --- MESSAGES DE STATUT (JS) --- */
#form-status {
    display: none; /* Caché par défaut */
    margin-top: 2rem;
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.status-msg.success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.status-msg.error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.grecaptcha-badge {
    visibility: hidden;
}  

/* --- RECAPTCHA NOTICE --- */
.form-captcha-notice {
    margin-top: 1.5rem;
    font-family: var(--font-mono); /* Style technique */
    font-size: 0.65rem; /* Très petit */
    line-height: 1.4;
    color: #999; /* Gris clair pour la discrétion */
    max-width: 450px; /* Évite que le texte ne s'étale trop */
}

.form-captcha-notice a {
    color: #777; /* Liens un peu plus sombres pour rester lisibles */
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-captcha-notice a:hover {
    color: var(--accent-color);
}

/* Ajustement pour le message de statut qui arrive après */
#form-status {
    margin-top: 1rem; /* On réduit l'espace si le message d'erreur/succès apparaît */
}

/* --- INTRO CONTACT STYLE STAFF --- */
.contact-single-wrapper .gh-content > p:first-of-type {
    font-size: 1.8rem;
    line-height: 1.4;
    font-weight: 300; /* Fin et élégant */
    color: var(--text-color);
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color); /* La ligne de séparation */
}

.btn-contact {
    border: 1px solid var(--accent-color);
    background: transparent;
    color: var(--accent-color);
}

.btn-contact:hover {
    background-color: var(--accent-color) !important;
    color: #ffffff !important;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .contact-single-wrapper .gh-content > p:first-of-type {
        font-size: 1.4rem; /* Un peu plus petit sur mobile */
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
}

/* RESPONSIVE MOBILE */
@media (max-width: 900px) {
    .contact-single-wrapper {
        margin-top: 1.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr; /* Inputs l'un sous l'autre */
        gap: 0;
    }
    
    .btn-primary {
        width: 100%; /* Bouton pleine largeur sur mobile */
        text-align: center;
    }
}

/* ==========================================================================
   16. RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
    :root {
        /* On réduit les espacements sur mobile */
        --sp-xl: 4rem; 
        --sp-l: 3rem;
        --fs-body: 1rem; /* 16px sur mobile */
    }

    .container {
        padding: 0 var(--sp-s);
    }
    .hero-title, .article-title, .archive-title, .page-title {
        font-size: 2.5rem;
    }

    .grid-3, .work-archive-grid {
        grid-template-columns: 1fr;
    }

    .main-nav {
        display: none;
    }

    .gh-content {
        width: 100%;
    }
    
    .hero-section {
        padding: 4rem 0 3rem 0;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-background-wrapper {
        display: block !important; /* On force l'affichage */
        height: 100%; 
    }
    
    /* On s'assure que le fond est bien blanc propre */
    .hero-section {
        background-color: var(--bg-color);
        margin-top: 0 !important;
        padding-top: calc(var(--sp-xl) + var(--header-height));
        padding-bottom: 3rem !important;
        overflow: hidden;
    }

    /* Solutions Home Mobile */
    .solutions-grid-wrapper {
        grid-template-columns: 1fr; 
        border: none;
        gap: 0;
        background: transparent;
    }

    .solution-card-interactive {
        border: 1px solid var(--border-color);
        margin-bottom: 0; /* Important pour l'accordéon */
    }
    
    .solution-group {
        display: block;
        margin-bottom: 1rem;
    }

    .solution-detail-panel {
        border-left: 1px solid var(--border-color);
        border-right: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
    }
    
    .solution-detail-panel .panel-header {
        display: none;
    }
    
    .panel-inner {
        padding-top: 2rem;
    }

    .solution-card-interactive .excerpt-wrapper {
        max-height: 150px;
        opacity: 1;
        margin-top: 0;
    }

    .solution-card-interactive.active .excerpt-wrapper {
        max-height: 0 !important;
        opacity: 0 !important;
        margin: 0 !important;
    }

    .solutions-super-grid.has-active-selection .solution-card-interactive:not(.active) .excerpt-wrapper {
        max-height: 150px !important;
        opacity: 1 !important;
    }

    /* Flèche Mobile */
    .card-arrow {
        transform: rotate(90deg);
        opacity: 0.5;
        font-size: 1.2rem;
    }
    
    .solution-card-interactive:hover .card-arrow {
        transform: rotate(90deg) translateY(5px);
    }

    .card-num {
        font-size: 6rem;
        top: -1rem;
        left: unset;
        right: -0.5rem;
        color: #f2f2f2;
        position: absolute;
        transition: all 0.4s ease;
    }

    .solution-card-interactive.active .card-num {
        font-size: 1rem;         
        position: relative;      
        top: auto;               
        left: auto;              
        margin-bottom: 0.5rem;   
        color: rgba(255, 255, 255, 0.7); 
    }
    
    .solution-card-interactive.active {
        padding: 2rem;
        justify-content: center; 
        min-height: 120px;       
    }

    .solutions-super-grid {
        display: flex;
        flex-direction: column;
        gap: 0; border: none; background: transparent;
    }

    .solution-group { display: block; margin-bottom: 1rem; }

    .solution-card-interactive {
        padding: 2rem;
        min-height: 250px;
         justify-content: space-between; 
    }

    .card-action-wrapper {
        position: relative; 
        bottom: auto;   
        right: auto; 
        
        margin-top: 2.5rem;
        
        align-self: flex-end;     
        justify-content: flex-end; 
        width: 100%;
    }

    .solution-card-interactive.active .card-action-wrapper {
        /* display: none; */
        max-height: 0;
        opacity: 0;
        margin: 0;
        overflow: hidden;
        
        transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    }
    
    /* On s'assure que l'état par défaut a aussi la transition */
    .card-action-wrapper {
        /* ... vos règles de positionnement existantes ... */
        transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        max-height: 100px; /* Hauteur suffisante par défaut */
        opacity: 1;
    }

    .team-grid {
        /* Force 2 colonnes de largeur égale */
        grid-template-columns: repeat(2, 1fr);
        
        /* On réduit l'écart entre les cartes pour gagner de la place */
        gap: 1rem; 
        
        margin-top: 2rem;
    }

    /* Ajustements pour que le contenu rentre bien dans des cartes plus petites */
    .member-content {
        padding: 1rem; /* Moins de padding interne */
    }

    .member-name {
        font-size: 1rem; /* Nom un peu plus petit */
        margin-bottom: 0.2rem;
    }

    .member-role {
        font-size: 0.7rem; /* Rôle discret */
    }
}

@media (max-width: 768px) {
    .site-footer {
        margin-top: 1.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-col {
        border-bottom: 1px solid var(--bg-light);
        padding-bottom: 1.5rem;
    }
    
    .footer-col:last-child {
        border-bottom: none;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start; 
        gap: 1.5rem;
    }
    
    .legal-links ul {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .pagination-wrapper {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .pagination {
        width: 100%;
        justify-content: space-between;
    }

    /* Solution Page Navigator Mobile */
    .solution-navigator {
        grid-template-columns: 1fr;
        gap: 0;
        border: none;
        background: transparent;
    }

    .solution-tab {
        border: 1px solid var(--border-color);
        margin-bottom: 0.5rem;
        background-color: #f9f9f9;
    }
    
    .solution-tab.active {
        border-color: var(--accent-color);
    }
    
    .tab-arrow {
        transform: rotate(90deg); 
        font-size: 1rem;
    }
    
    .solution-tab:hover .tab-arrow {
        transform: rotate(90deg) translateY(5px);
    }

    .article-header, .archive-header {
        margin-top: 1.5rem;
    }

    .gh-content hr {
        display: none;
    }
}