/* ========================================
   GeoCodeTout - Styles principaux
   ======================================== */

/* Variables CSS */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
    --text-color: #374151;
    /* #4b5563 : contraste AA (≥ 4,5:1) sur blanc et sur le gris clair des sections. */
    --text-light: #4b5563;
    --white: #ffffff;
    --border-color: #e5e7eb;
    /* Bordure des champs de formulaire : contraste ≥ 3:1 (WCAG 1.4.11). */
    --input-border: #7b8494;
    --focus-color: #1d4ed8;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.navbar-brand i {
    color: var(--primary-color);
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 2px; /* Réduit l'espace entre les éléments */
    flex-grow: 1;
    justify-content: center;
    margin: 0;
    padding: 0;
}

/* Menu repliable (burger) sur mobile et tablette */
@media (max-width: 991.98px) {
    .navbar-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.15);
        z-index: 9999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .navbar-menu.active {
        display: flex;
    }
    
    .navbar-menu.active li {
        width: 100%;
    }
    
    .navbar-menu.active a {
        width: 100%;
        padding: 15px 20px;
        color: #1e293b;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .navbar-toggle {
        display: block !important;
    }
}

.navbar-menu a {
    display: flex;
    align-items: center;
    gap: 6px; /* Réduit l'espace entre l'icône et le texte */
    padding: 10px 12px; /* Réduit le padding horizontal */
    color: var(--text-color);
    border-radius: var(--radius);
    font-weight: 500;
    white-space: nowrap; /* Empêche le texte de passer à la ligne */
}

.navbar-menu a:hover,
.navbar-menu a.active {
    background: var(--primary-color);
    color: var(--white);
}

.navbar-menu a i {
    width: 20px;
    text-align: center;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

.navbar-extra {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wallet-address {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--light-color);
    padding: 8px 12px;
    border-radius: var(--radius);
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-color);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap; /* Empêche le texte du bouton de passer à la ligne */
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-linkedin {
    background: #0077b5;
    color: var(--white);
}

.btn-linkedin:hover {
    background: #005885;
    color: var(--white);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 20px 60px;
    background: linear-gradient(135deg, var(--dark-color) 0%, #374151 100%);
    color: var(--white);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.hero-content {
    padding-right: 40px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero .highlight {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #9ca3af;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    height: 400px;
}

/* Code Cascade Effect */
.code-cascade {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-block {
    background: #1e293b;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s ease;
}

.code-cascade .code-block {
    position: absolute;
    width: 340px;
    padding: 0;
}

/* Code Header (macOS style) */
.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #0f172a;
    border-bottom: 1px solid #334155;
}

.code-dots {
    display: flex;
    gap: 6px;
}

.code-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca40; }

.code-lang {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Individual block positioning - centered */
.code-python {
    top: 20px;
    left: calc(50% - 250px);
    z-index: 1;
    transform: rotate(-3deg);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.code-python .code-header {
    background: #0d1117;
}

.code-solidity {
    top: 60px;
    left: calc(50% - 170px);
    z-index: 2;
    transform: rotate(1deg);
    background: linear-gradient(135deg, #1c1c3c 0%, #2d1b4e 100%);
}

.code-solidity .code-header {
    background: #13132a;
}

.code-php {
    top: 100px;
    left: calc(50% - 90px);
    z-index: 3;
    transform: rotate(-1deg);
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* Hover effects */
.code-cascade .code-block:hover {
    z-index: 10;
    transform: rotate(0deg) scale(1.05) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Code content */
.code-cascade .code-block pre {
    margin: 0;
    padding: 15px;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.8rem;
    line-height: 1.6;
}

/* Language-specific syntax colors */
.code-python code {
    color: #a5d6ff;
}

.code-solidity code {
    color: #c9a0ff;
}

.code-php code {
    color: #7dd3fc;
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 80px 0;
}

.bg-light {
    background: var(--light-color);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

/* ========================================
   Page Header
   ======================================== */
.page-header {
    background: linear-gradient(135deg, var(--dark-color) 0%, #374151 100%);
    color: var(--white);
    padding: 140px 20px 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    color: #d1d5db;
    max-width: 760px;
    margin: 0 auto;
}

/* ========================================
   Services Grid
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.25rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: var(--primary-color);
}

.service-link:hover {
    gap: 10px;
}

/* ========================================
   Blog Grid
   ======================================== */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    padding: 40px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.blog-category {
    padding: 4px 10px;
    border-radius: 20px;
    color: var(--white);
    font-weight: 500;
}

.blog-date, .blog-views {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.blog-content h3 a {
    color: var(--dark-color);
}

.blog-content h3 a:hover {
    color: var(--primary-color);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 10px;
}

/* Approach Section */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.approach-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.approach-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.approach-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0.15;
    position: absolute;
    top: 15px;
    right: 20px;
}

.approach-card h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.approach-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Reasons / Why Contact Grid */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.reason-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.reason-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.reason-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    font-size: 1.8rem;
    color: var(--white);
}

.reason-card h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.reason-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-category {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
}

.skill-category h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.skill-category h3 i {
    color: var(--primary-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    padding: 8px 15px;
    background: var(--light-color);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    font-size: 2rem;
    color: var(--white);
}

.value-card h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.value-card p {
    color: var(--text-light);
}

/* ========================================
   Contact Page
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
}

.contact-form-wrapper h2,
.contact-info-wrapper h2 {
    margin-bottom: 30px;
    color: var(--dark-color);
}

.contact-form {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--input-border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 3px solid var(--focus-color);
    outline-offset: 1px;
    border-color: var(--primary-color);
    box-shadow: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Captcha */
.captcha-group {
    background: var(--bg-light);
    padding: 15px;
    border-radius: var(--radius);
    border: 2px dashed var(--border-color);
}

.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.captcha-question {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    font-family: 'Fira Code', monospace;
}

.captcha-input {
    width: 80px;
    padding: 10px 15px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    transition: var(--transition);
}

.captcha-input:focus {
    outline: 3px solid var(--focus-color);
    outline-offset: 1px;
    border-color: var(--primary-color);
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-card-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    cursor: pointer;
}

.contact-card-link:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.contact-card-link .contact-icon {
    margin: 0;
    flex-shrink: 0;
}

.contact-card-link.linkedin .contact-icon {
    background: #0077b5;
}

.contact-card-link.instagram .contact-icon {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.contact-card-link.email .contact-icon {
    background: var(--primary-color);
}

.contact-card-link.alyra .contact-icon {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.contact-card-content {
    flex: 1;
}

.contact-card-content h3 {
    margin: 0 0 2px 0;
    color: var(--dark-color);
    font-size: 1.1rem;
}

.contact-card-content p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.contact-handle {
    display: block;
    margin-top: 5px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.85rem;
}

.contact-card-link.linkedin .contact-handle {
    color: #0077b5;
}

.contact-card-link.instagram .contact-handle {
    color: #e6683c;
}

.contact-card-link.alyra .contact-handle {
    color: #6366f1;
}

.contact-arrow {
    color: var(--text-light);
    opacity: 0;
    transition: var(--transition);
}

.contact-card-link:hover .contact-arrow {
    opacity: 1;
    transform: translateX(5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    background: var(--primary-color);
    border-radius: var(--radius);
    font-size: 1.3rem;
    color: var(--white);
}

.contact-card h3 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: 10px;
}

.contact-link {
    font-weight: 600;
    color: var(--primary-color);
}

/* Location Card */
.location-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-top: 20px;
}

.location-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    border-radius: var(--radius);
    font-size: 1.3rem;
    color: var(--white);
    flex-shrink: 0;
}

.location-content h3 {
    margin: 0 0 5px 0;
    color: var(--dark-color);
    font-size: 1rem;
}

.location-content p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* What to expect */
.what-to-expect {
    margin-top: 25px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.what-to-expect h3 {
    margin: 0 0 15px 0;
    color: var(--dark-color);
    font-size: 1rem;
}

.what-to-expect ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.what-to-expect li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.what-to-expect li i {
    color: var(--secondary-color);
}

/* Contact Intro */
.contact-intro {
    padding: 40px 0 0;
    text-align: center;
}

.intro-text {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Form button block */
.btn-block {
    width: 100%;
    justify-content: center;
}

.response-time {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: var(--light-color);
    border-radius: var(--radius);
    margin-top: 20px;
}

.response-time i {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.response-time p {
    margin: 0;
    font-size: 0.9rem;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.cta-section .btn-primary:hover {
    background: var(--light-color);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--dark-color);
    color: #9ca3af;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
}

.footer-section h3 i {
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul a {
    color: #9ca3af;
}

.footer-section ul a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #374151;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
}

/* ========================================
   Alerts
   ======================================== */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-close {
    float: right;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
}

.alert ul {
    margin: 10px 0 0 20px;
}

/* ========================================
   Pagination
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 40px 0;
}

.page-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--white);
    border-radius: var(--radius);
    color: var(--text-color);
    font-weight: 500;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.page-link:hover {
    background: var(--primary-color);
    color: var(--white);
}

.page-info {
    color: var(--text-light);
}

/* ========================================
   No Results
   ======================================== */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
}

/* ========================================
   Search
   ======================================== */
.blog-search {
    margin-bottom: 30px;
}

.search-form {
    display: flex;
    max-width: 500px;
}

.search-form input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 1rem;
}

.search-form button {
    padding: 12px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover {
    background: var(--primary-dark);
}

.search-results-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: var(--light-color);
    border-radius: var(--radius);
    margin-bottom: 30px;
}

/* ========================================
   Services Page Specific
   ======================================== */
.services-nav {
    background: var(--white);
    padding: 20px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 70px;
    z-index: 100;
}

/* Désactive le sticky sur mobile */
@media (max-width: 768px) {
    .services-nav {
        position: relative;
        top: auto;
    }
    
    .service-detail {
        scroll-margin-top: 80px;
    }
}

.nav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--light-color);
    border-radius: 30px;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-pill:hover {
    background: var(--pill-color, var(--primary-color));
    color: var(--white);
}

.service-detail {
    scroll-margin-top: 150px;
}

.service-header {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
}

.service-icon-large {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--service-color, var(--primary-color));
    border-radius: var(--radius-lg);
    font-size: 2.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.service-info h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.service-description {
    font-size: 1.1rem;
    color: var(--text-light);
}

.service-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.feature {
    padding: 25px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.feature i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature h4 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.feature p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.tech-stack {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.tech-stack h4 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge {
    padding: 8px 15px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .approach-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .service-header {
        flex-direction: column;
        text-align: center;
    }
    
    .service-icon-large {
        margin: 0 auto;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .approach-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

.footer-section .contact-info {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-section .contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section .contact-info i {
    width: 20px;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
}

/* ============================================
   MARKDOWN CONTENT STYLES
   ============================================ */

.markdown-content {
    line-height: 1.8;
    text-align: justify;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
    text-align: left;
}

.markdown-content p {
    margin-bottom: 1em;
    text-align: justify;
}

.markdown-content ul,
.markdown-content ol {
    margin-bottom: 1em;
    padding-left: 2em;
}

.markdown-content li {
    margin-bottom: 0.5em;
}

.markdown-content blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 1em;
    margin: 1em 0;
    color: #6b7280;
    font-style: italic;
}

.markdown-content code {
    background-color: #1e293b;
    color: #e2e8f0;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
}

.markdown-content pre {
    background-color: #1e293b;
    border-radius: 8px;
    padding: 1em;
    overflow-x: auto;
    margin: 1em 0;
}

.markdown-content pre code {
    background-color: transparent;
    padding: 0;
    font-size: 0.875em;
    line-height: 1.7;
}

.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    background-color: #ffffff !important;
}

.markdown-content table thead,
.markdown-content table thead tr,
.markdown-content table thead th {
    color: #ffffff !important;
    background-color: #1e293b !important;
}

.markdown-content th,
.markdown-content td {
    border: 1px solid #d1d5db;
    padding: 0.75em;
    text-align: left;
}

.markdown-content td {
    background-color: #ffffff !important;
    color: #1f2937 !important;
}

.markdown-content tr:nth-child(even) td {
    background-color: #f3f4f6 !important;
}

.markdown-content th {
    background-color: #1e293b !important;
    font-weight: 600;
    color: #ffffff !important;
}

.markdown-content a {
    color: #3b82f6;
    text-decoration: none;
}

.markdown-content a:hover {
    text-decoration: underline;
}

.markdown-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.markdown-content hr {
    border: none;
    border-top: 1px solid #374151;
    margin: 2em 0;
}

/* Sommaire de navigation (Table of Contents) */
.nav-toc .nav-link {
    color: #6c757d;
    padding: 0.25rem 0.5rem;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.nav-toc .nav-link:hover {
    color: #0d6efd;
    border-left-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}

.nav-toc .nav-link.active {
    color: #0d6efd;
    border-left-color: #0d6efd;
    font-weight: 500;
}

/* Scroll-margin pour les ancres */
.markdown-content h1[id],
.markdown-content h2[id],
.markdown-content h3[id],
.markdown-content h4[id],
.markdown-content h5[id],
.markdown-content h6[id] {
    scroll-margin-top: 100px;
}

/* Blog excerpt - limite la hauteur et cache le débordement */
.blog-excerpt {
    max-height: 100px;
    overflow: hidden;
    position: relative;
}

.blog-excerpt::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(transparent, var(--card-bg, #1e293b));
    pointer-events: none;
}

.blog-excerpt p {
    margin-bottom: 0.5em;
}

.blog-excerpt p:last-child {
    margin-bottom: 0;
}

/* ========================================
   Refonte « studio » : gabarit commun
   ======================================== */

/* Lien d'évitement : visible uniquement au focus clavier */
.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 2000;
    padding: 0.75rem 1.25rem;
    background: var(--dark-color);
    color: var(--white);
    border-radius: var(--radius);
    font-weight: 600;
}

.skip-link:focus {
    top: 1rem;
    color: var(--white);
}

main:focus {
    outline: none;
}

/* Les ancres ne passent pas sous la barre de navigation fixe */
main [id] {
    scroll-margin-top: 96px;
}

/* Logo typographique */
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.4rem;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.navbar-brand {
    text-decoration: none;
}

.navbar-menu {
    align-items: center;
    gap: 4px;
}

.navbar-menu .navbar-cta {
    margin-left: 0.75rem;
}

.navbar-menu .navbar-cta a.btn,
.navbar-menu .navbar-cta a.btn:hover,
.navbar-menu .navbar-cta a.btn.active {
    color: var(--white);
    background: var(--primary-color);
    padding: 8px 18px;
}

.navbar-menu .navbar-cta a.btn:hover {
    background: var(--primary-dark);
}

@media (max-width: 991.98px) {
    .navbar-menu .navbar-cta {
        margin: 0.75rem 0 0;
    }

    .navbar-menu.active .navbar-cta a.btn {
        justify-content: center;
        border-bottom: none;
    }
}

/* Pied de page */
.footer-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-section h2 {
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer .social-links {
    list-style: none;
    padding: 0;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem 1.5rem;
    text-align: left;
}

.footer-bottom p {
    margin: 0;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-legal a {
    color: #d1d5db;
}

.footer-legal a:hover {
    color: var(--white);
}

.footer-admin {
    background: none;
    border: none;
    padding: 0.25rem;
    color: #9ca3af;
    cursor: pointer;
    font-size: 0.85rem;
}

.footer-admin:hover {
    color: var(--white);
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Page 404 */
.not-found {
    max-width: 640px;
    text-align: center;
}

.not-found-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

/* ========================================
   Refonte « studio » : accueil et sections partagées
   ======================================== */
.hero-eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: #e5e7eb;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.hero .highlight {
    color: #93c5fd;
}

.hero-subtitle {
    color: #d1d5db;
    line-height: 1.7;
}

.btn-outline-light,
.btn.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: var(--white);
}

.btn-outline-light:hover,
.btn.btn-outline-light:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--dark-color);
}

.section-compact {
    padding: 56px 0;
}

.section-compact .section-header {
    margin-bottom: 32px;
}

/* Publics accompagnés */
.audiences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.audience-card {
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.audience-card i {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.audience-card h3 {
    font-size: 1.15rem;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.audience-card p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Cartes d'offres */
.service-card {
    display: flex;
    flex-direction: column;
}

.service-card .service-link {
    margin-top: auto;
}

.service-card .service-icon {
    background: #eff6ff;
    color: var(--primary-color);
}

.service-card h3 a {
    color: var(--dark-color);
}

.service-card h3 a:hover {
    color: var(--primary-color);
}

/* Méthode (liste ordonnée) */
.method-grid {
    grid-template-columns: repeat(3, 1fr);
    list-style: none;
    padding: 0;
    margin: 0;
}

.method-grid .approach-card {
    text-align: left;
}

.method-grid .approach-number {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 14px;
    border-radius: 50%;
    background: #eff6ff;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 700;
    opacity: 1;
}

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

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

/* Listes de technologies */
ul.skill-tags {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Engagements : 4 colonnes sur grand écran */
.reasons-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* ========================================
   Refonte « studio » : page services
   ======================================== */
ul.nav-pills {
    list-style: none;
    margin: 0;
    padding: 0;
}

.services-nav {
    padding: 14px 0;
    /* Non collante : sur deux lignes, elle masquait le titre des sections ciblées. */
    position: static;
}

.nav-pill {
    padding: 8px 16px;
    font-size: 0.92rem;
}

.nav-pill:hover,
.nav-pill:focus-visible {
    background: var(--primary-color);
    color: var(--white);
}

.service-icon-large {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    background: var(--primary-color);
}

.offer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.offer-block {
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.offer-block h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 14px;
}

.offer-block h3 i {
    color: var(--primary-color);
}

.offer-block p,
.offer-block li {
    color: var(--text-color);
    font-size: 0.97rem;
    line-height: 1.65;
}

.offer-block ul {
    margin: 0;
    padding-left: 1.1rem;
}

.offer-block li + li {
    margin-top: 8px;
}

.check-list {
    list-style: none;
    padding-left: 0 !important;
}

.check-list li {
    position: relative;
    padding-left: 1.6rem;
}

.check-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.tech-stack {
    border: 1px solid var(--border-color);
    box-shadow: none;
}

.tech-stack h3 {
    font-size: 1rem;
    color: var(--dark-color);
    margin-bottom: 12px;
}

ul.tech-badges {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tech-badge {
    padding: 6px 14px;
    background: #eff6ff;
    color: #1e40af;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 500;
}

.method-inline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    list-style: none;
    counter-reset: etape;
    padding: 0;
    margin: 0;
}

.method-inline li {
    counter-increment: etape;
    padding: 10px 18px;
    background: var(--light-color);
    border-radius: 999px;
    font-weight: 600;
    color: var(--dark-color);
}

.method-inline li::before {
    content: counter(etape) ". ";
    color: var(--primary-color);
}

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

/* ========================================
   Refonte « studio » : page Le studio
   ======================================== */
.studio-intro {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: start;
}

.studio-intro h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 16px;
}

.studio-intro .lead {
    font-size: 1.25rem;
    color: var(--dark-color);
    font-weight: 500;
}

.studio-intro p {
    line-height: 1.75;
}

.studio-facts {
    padding: 28px;
    background: var(--light-color);
    border-radius: var(--radius-lg);
}

.studio-facts h3 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 16px;
}

.studio-facts ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.studio-facts li {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.studio-facts li:last-child {
    border-bottom: none;
}

.studio-facts i {
    color: var(--primary-color);
    margin-top: 4px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.studio-founder {
    margin: 40px 0 0;
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
}

@media (max-width: 1024px) {
    .studio-intro {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Refonte « studio » : réalisations
   ======================================== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.case-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.case-card h3 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin: 0;
}

.case-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.case-offer,
.case-type {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.case-offer {
    background: #eff6ff;
    color: #1e40af;
}

.case-type {
    background: #fef3c7;
    color: #78350f;
}

.case-details {
    margin: 0;
}

.case-details dt {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dark-color);
}

.case-details dd {
    margin: 2px 0 12px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.case-card .tech-badges {
    margin-top: auto;
}

/* ========================================
   Refonte « studio » : contact
   ======================================== */
.contact-lead {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.8;
}

.form-required-note {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.form-rgpd {
    margin: 20px 0 0;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-light);
}

.form-noscript {
    color: #9a3412;
    font-weight: 600;
}

.contact-info-wrapper .contact-card-link {
    margin-top: 20px;
}

.contact-card-link.github .contact-icon {
    background: var(--dark-color);
}

.contact-section .alert ul {
    margin-bottom: 0;
}

/* ========================================
   Refonte « studio » : pages légales
   ======================================== */
.legal-content {
    max-width: 820px;
}

.legal-content h2 {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin: 40px 0 14px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin: 24px 0 10px;
}

.legal-content p,
.legal-content li {
    line-height: 1.75;
}

.legal-content ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.legal-content table {
    width: 100%;
    margin: 12px 0 20px;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.legal-content th,
.legal-content td {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    text-align: left;
    vertical-align: top;
}

.legal-content th {
    background: var(--light-color);
    color: var(--dark-color);
}

.legal-updated {
    margin-top: 40px;
    font-size: 0.9rem;
    color: var(--text-light);
}

mark.placeholder {
    padding: 0 4px;
    background: #fef08a;
    color: #713f12;
    border-radius: 3px;
    font-weight: 600;
}

.offer-credential {
    margin: 20px 0 0;
    padding: 14px 18px;
    background: #f5f3ff;
    border-left: 4px solid #6366f1;
    border-radius: var(--radius);
    color: var(--text-color);
}

.offer-credential i {
    color: #6366f1;
    margin-right: 6px;
}

.offer-credential a {
    margin-left: 6px;
    color: #4338ca;
    font-weight: 600;
    text-decoration: underline;
}

/* Introductions du blog et de la base de connaissances */
.listing-intro {
    max-width: 760px;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ========================================
   Accessibilité (RGAA / WCAG 2.1 AA)
   ======================================== */

/* Apparition au défilement (main.js) et fermeture des alertes */
.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Focus clavier toujours visible */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--focus-color);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Sur fond sombre ou bleu, contour clair */
.hero :focus-visible,
.page-header :focus-visible,
.cta-section :focus-visible,
.footer :focus-visible,
.skip-link:focus-visible {
    outline-color: #fbbf24;
}

.captcha-input {
    border-color: var(--input-border);
}

/* Liens de contenu identifiables autrement que par la couleur */
.legal-content a,
.form-rgpd a,
.studio-founder a,
.markdown-content a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Mouvement réduit : pas d'animations ni de défilement animé */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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

    .service-card:hover,
    .approach-card:hover,
    .reason-card:hover,
    .value-card:hover,
    .contact-card-link:hover,
    .code-cascade .code-block:hover,
    .blog-card:hover {
        transform: none;
    }
}

@media (max-width: 1024px) {
    .contact-grid {
        gap: 40px;
    }
}

/* ========================================
   Cohérence visuelle : typographie, espacements, boutons, mobile
   ======================================== */

/* Composants Bootstrap (blog, base de connaissances, admin) alignés sur le bleu de la marque */
:root {
    --bs-primary: #2563eb;
    --bs-primary-rgb: 37, 99, 235;
    --bs-link-color: #2563eb;
    --bs-link-color-rgb: 37, 99, 235;
    --bs-link-hover-color: #1d4ed8;
    --bs-link-hover-color-rgb: 29, 78, 216;
}

.list-group {
    --bs-list-group-active-bg: #2563eb;
    --bs-list-group-active-border-color: #2563eb;
}

.navbar-menu .navbar-cta a.btn,
.navbar-menu .navbar-cta a.btn:hover,
.navbar-menu .navbar-cta a.btn.active {
    padding: 10px 18px;
}
h1, h2, h3 {
    line-height: 1.25;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

.section-header {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.section-header p {
    color: var(--text-light);
}

/* Boutons : même hauteur, même rayon, icône alignée */
.btn {
    justify-content: center;
    line-height: 1.3;
    border-radius: var(--radius);
}

.btn-outline {
    padding: 10px 22px;
}

/* Les grilles ne débordent jamais sur les petits écrans (320 px) */
.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

.cases-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}

@media (max-width: 768px) {
    .section {
        padding: 56px 0;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .page-header {
        padding: 120px 20px 48px;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 64px;
    }

    .offer-block,
    .case-card,
    .contact-form {
        padding: 22px;
    }

    .studio-intro h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .section-header h2,
    .cta-content h2 {
        font-size: 1.6rem;
    }

    .btn,
    .btn-lg {
        white-space: normal;
    }

    .hero-buttons .btn,
    .cta-content .btn {
        width: 100%;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }
}
