/**
 * Izri.Online Light — Main Stylesheet
 * Version claire inspirée de la charte graphique Izri
 */

/* ─── CSS Variables ────────────────────────────────────────────── */
:root {
    --color-bg:              #F8F5F0;
    --color-bg-alt:          #F0EBE3;
    --color-surface:         #FFFFFF;
    --color-surface-hover:   #F5F2ED;
    --color-text:            #1A1610;
    --color-text-light:      #4A4540;
    --color-text-muted:      #8A827A;

    --color-primary:         #C4933A;
    --color-primary-dark:    #A87C2E;
    --color-primary-light:   #D4A86A;

    --color-accent:          #C86743;
    --color-accent-light:    #D88460;
    --color-accent-dark:     #A85030;

    --color-border:          rgba(26, 22, 16, 0.10);
    --color-border-light:    rgba(26, 22, 16, 0.05);

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --radius-xl:  28px;

    --shadow-sm:  0 2px 8px rgba(0,0,0,0.06);
    --shadow-md:  0 8px 30px rgba(0,0,0,0.08);
    --shadow-lg:  0 20px 60px rgba(0,0,0,0.10);
    --shadow-glow: 0 0 30px rgba(196, 147, 58, 0.12);

    --space-xs:   4px;
    --space-sm:   8px;
    --space-md:  16px;
    --space-lg:  32px;
    --space-xl:  64px;
    --space-2xl: 120px;

    --transition-fast:   0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow:   0.6s cubic-bezier(0.4, 0, 0.2, 1);

    --navbar-bg: rgba(248, 245, 240, 0.92);
    --container-max: 1400px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
}

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

a {
    color: var(--color-primary-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover { color: var(--color-accent); }

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ─── Skip Link ────────────────────────────────────────────────── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--color-primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 10000;
    font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* ─── Typography ───────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 600; }

/* ─── Navbar ───────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--color-border-light);
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(248, 245, 240, 0.96);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px var(--space-lg);
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo img, .nav-logo .custom-logo {
    height: 100px;
    width: auto;
}

.nav-logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text);
}

.nav-logo-dot {
    color: var(--color-primary);
}

.nav-menu {
    display: none;
    align-items: center;
    gap: 8px;
    list-style: none;
}

@media (min-width: 769px) {
    .nav-menu {
        display: flex;
    }
}

/* ─── Language Switcher ─────────────────────────────────────────── */
.lang-switcher {
    display: flex;
    gap: 4px;
    margin-left: var(--space-md);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-light);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.lang-option:hover {
    background: var(--color-surface-hover);
    color: var(--color-primary);
}

.lang-option.active {
    background: var(--color-primary);
    color: white;
}

.lang-flag {
    font-size: 1rem;
}

.lang-code {
    font-size: 0.75rem;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .lang-switcher {
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--navbar-bg);
        backdrop-filter: blur(20px);
        padding: var(--space-sm);
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        box-shadow: var(--shadow-md);
    }
}

/* ─── RTL Support ─────────────────────────────────────────────── */
html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .nav-container {
    flex-direction: row-reverse;
}

html[dir="rtl"] .lang-switcher {
    margin-left: 0;
    margin-right: var(--space-md);
}

/* ─── Navigation ──────────────────────────────────────────────── */
.nav-link,
.nav-menu .menu-item > a {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-text-light);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active,
.nav-menu .menu-item > a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
    color: var(--color-primary-dark);
    background: rgba(196, 147, 58, 0.08);
}

.nav-link--cta,
.menu-item.nav-link--cta > a {
    background: var(--color-primary) !important;
    color: #fff !important;
    font-weight: 600;
}

.nav-link--cta:hover,
.menu-item.nav-link--cta > a:hover {
    background: var(--color-primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── Hero ─────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

/* ─── Gradient Orbs (animated) ──────────────────────────────── */
.hero-gradient-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 12s ease-in-out infinite;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(196, 147, 58, 0.25) 0%, transparent 70%);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(200, 103, 67, 0.2) 0%, transparent 70%);
    bottom: -5%;
    left: -5%;
    animation-delay: -4s;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(196, 147, 58, 0.15) 0%, transparent 70%);
    top: 40%;
    left: 40%;
    animation-delay: -8s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ─── Hero Container ─────────────────────────────────────────── */
.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

/* ─── Hero Badge ─────────────────────────────────────────────── */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(196, 147, 58, 0.08);
    border: 1px solid rgba(196, 147, 58, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-primary-dark);
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.6s ease-out;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ─── Hero Title + Typed Effect ──────────────────────────────── */
.hero-title {
    margin-bottom: var(--space-md);
    line-height: 1.15;
}

.typed-wrapper {
    display: inline;
}

.typed-text {
    color: var(--color-primary);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typed-cursor {
    color: var(--color-primary);
    animation: cursorBlink 0.8s step-end infinite;
    font-weight: 300;
    -webkit-text-fill-color: var(--color-primary);
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ─── Hero Subtitle ──────────────────────────────────────────── */
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
    max-width: 520px;
    line-height: 1.8;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* ─── Hero Buttons ───────────────────────────────────────────── */
.hero-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

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

/* ─── Hero Stats ─────────────────────────────────────────────── */
.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Nombre + suffixe sur UNE ligne (flex column sinon les empile) */
.hero-stat-value {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.hero-stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
}

.hero-stat-suffix {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--color-border);
}

/* ─── Hero Visual (floating cards) ───────────────────────────── */
.hero-visual {
    position: relative;
    height: 500px;
}

.hero-visual-grid {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
    transition: all var(--transition-normal);
    cursor: default;
}

.hero-float-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}

.hero-float-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.hero-float-1 {
    top: 10%;
    left: 5%;
    animation: floatCard 6s ease-in-out infinite;
}
.hero-float-1 .hero-float-icon {
    background: rgba(196, 147, 58, 0.1);
    color: var(--color-primary);
}

.hero-float-2 {
    top: 5%;
    right: 10%;
    animation: floatCard 6s ease-in-out -1.5s infinite;
}
.hero-float-2 .hero-float-icon {
    background: rgba(200, 103, 67, 0.1);
    color: var(--color-accent);
}

.hero-float-3 {
    bottom: 25%;
    left: 0%;
    animation: floatCard 6s ease-in-out -3s infinite;
}
.hero-float-3 .hero-float-icon {
    background: rgba(100, 180, 120, 0.1);
    color: #5a9a6a;
}

.hero-float-4 {
    bottom: 10%;
    right: 5%;
    animation: floatCard 6s ease-in-out -4.5s infinite;
}
.hero-float-4 .hero-float-icon {
    background: rgba(130, 100, 200, 0.1);
    color: #7a64c8;
}

.hero-visual-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-visual-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    box-shadow: 0 0 60px rgba(196, 147, 58, 0.3);
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes logoPulse {
    0%, 100% { box-shadow: 0 0 60px rgba(196, 147, 58, 0.3); }
    50% { box-shadow: 0 0 80px rgba(196, 147, 58, 0.5); }
}

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

/* ─── Scroll Indicator ───────────────────────────────────────── */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
    animation: fadeInUp 0.6s ease-out 0.8s both;
}

.hero-scroll-indicator span {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: var(--color-primary);
    position: relative;
    overflow: hidden;
}

.hero-scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-text);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { top: -100%; }
    50% { top: 100%; }
    100% { top: 100%; }
}

/* ─── Buttons ──────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

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

.btn-secondary:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ─── Sections ─────────────────────────────────────────────────── */
.section {
    padding: var(--space-2xl) 0;
    background: var(--color-bg);
}

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

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-title {
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--color-text) 40%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ─── Service Cards ────────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.service-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(196, 147, 58, 0.2);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196, 147, 58, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    font-size: 1.4rem;
    color: var(--color-primary);
}

.service-title {
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
}

.service-desc {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

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

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

/* ─── Features Grid ────────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.feature-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-normal);
}

.feature-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--color-border);
}

.feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 103, 67, 0.1);
    border-radius: var(--radius-md);
    color: var(--color-accent);
    font-size: 1.2rem;
}

.feature-title {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.feature-desc {
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ─── Blog Grid ────────────────────────────────────────────────── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.blog-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-border);
}

.blog-card-image {
    aspect-ratio: 3/2;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-body {
    padding: var(--space-lg);
}

.blog-card-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary-dark);
    margin-bottom: var(--space-sm);
}

.blog-card-title {
    font-size: 1.15rem;
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.blog-card-title a {
    color: var(--color-text);
}

.blog-card-title a:hover {
    color: var(--color-primary-dark);
}

.blog-card-excerpt {
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.blog-card-meta i { margin-right: 4px; }

/* ─── Single Post ──────────────────────────────────────────────── */
.post-header {
    text-align: center;
    padding: 140px 0 var(--space-xl);
    background: var(--color-bg-alt);
}

/* ─── Page Hero Covers (dark izri + accent fluo) ───────────── */
body.page-id-16 .post-header,      /* Services */
body.page-template-page-services .post-header,
body.blog .post-header.blog-hero,
body.page-id-19 .post-header,      /* Diagnostic */
body.page-template-page-diagnostic .post-header,
body.page-id-20 .post-header,      /* FAQ */
body.page-template-page-faq .post-header,
body.page-id-38 .post-header,      /* À propos */
body.page-template-page-a-propos .post-header,
body.page-id-21 .post-header,      /* Projets */
body.page-template-page-projets .post-header,
body.page-id-18 .post-header,      /* Contact */
body.page-template-page-contact .post-header {
    position: relative;
    background-size: cover;
    background-position: center center;
    background-color: var(--color-bg-alt);
}
body.page-id-16 .post-header::before,
body.page-template-page-services .post-header::before,
body.blog .post-header.blog-hero::before,
body.page-id-19 .post-header::before,
body.page-template-page-diagnostic .post-header::before,
body.page-id-20 .post-header::before,
body.page-template-page-faq .post-header::before,
body.page-id-38 .post-header::before,
body.page-template-page-a-propos .post-header::before,
body.page-id-21 .post-header::before,
body.page-template-page-projets .post-header::before,
body.page-id-18 .post-header::before,
body.page-template-page-contact .post-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(12,9,8,0.72) 0%,
        rgba(12,9,8,0.55) 45%,
        rgba(12,9,8,0.30) 100%);
    z-index: 0;
    pointer-events: none;
}
body.page-id-16 .post-header .container,
body.page-template-page-services .post-header .container,
body.blog .post-header .container,
body.page-id-19 .post-header .container,
body.page-template-page-diagnostic .post-header .container,
body.page-id-20 .post-header .container,
body.page-template-page-faq .post-header .container,
body.page-id-38 .post-header .container,
body.page-template-page-a-propos .post-header .container,
body.page-id-21 .post-header .container,
body.page-template-page-projets .post-header .container,
body.page-id-18 .post-header .container,
body.page-template-page-contact .post-header .container {
    position: relative;
    z-index: 1;
}
/* Light text on dark hero (keep light theme elsewhere) */
body.page-id-16 .post-header .section-title,
body.page-template-page-services .post-header .section-title,
body.page-id-19 .post-header .section-title,
body.page-template-page-diagnostic .post-header .section-title,
body.page-id-20 .post-header .section-title,
body.page-template-page-faq .post-header .section-title,
body.page-id-38 .post-header .section-title,
body.page-template-page-a-propos .post-header .section-title,
body.page-id-21 .post-header .section-title,
body.page-template-page-projets .post-header .section-title,
body.page-id-18 .post-header .section-title,
body.page-template-page-contact .post-header .section-title {
    background: linear-gradient(135deg, #EDE6DC 35%, #D4A86A 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
body.page-id-16 .post-header .section-subtitle,
body.page-template-page-services .post-header .section-subtitle,
body.page-id-19 .post-header .section-subtitle,
body.page-template-page-diagnostic .post-header .section-subtitle,
body.page-id-20 .post-header .section-subtitle,
body.page-template-page-faq .post-header .section-subtitle,
body.page-id-38 .post-header .section-subtitle,
body.page-template-page-a-propos .post-header .section-subtitle,
body.page-id-21 .post-header .section-subtitle,
body.page-template-page-projets .post-header .section-subtitle,
body.page-id-18 .post-header .section-subtitle,
body.page-template-page-contact .post-header .section-subtitle {
    color: #C9BFA4;
}
body.page-id-16 .post-header .post-category,
body.page-template-page-services .post-header .post-category,
body.page-id-19 .post-header .post-category,
body.page-template-page-diagnostic .post-header .post-category,
body.page-id-20 .post-header .post-category,
body.page-template-page-faq .post-header .post-category,
body.page-id-38 .post-header .post-category,
body.page-template-page-a-propos .post-header .post-category,
body.page-id-21 .post-header .post-category,
body.page-template-page-projets .post-header .post-category,
body.page-id-18 .post-header .post-category,
body.page-template-page-contact .post-header .post-category {
    color: #D4A86A;
    background: rgba(212, 168, 106, 0.12);
}
/* Blog hero */
body.blog .post-header.blog-hero .blog-hero-title {
    color: #EDE6DC;
}
body.blog .post-header.blog-hero .section-subtitle {
    color: #C9BFA4;
}
body.blog .post-header.blog-hero .blog-hero-badge {
    color: #FF8A5C;
    background: rgba(255, 138, 92, 0.12);
    border-color: rgba(255, 138, 92, 0.35);
}

body.page-id-16 .post-header,      /* Services */
body.page-template-page-services .post-header {
    background-image: url('../img/heroes/services-hero.png');
}
body.blog .post-header.blog-hero {
    background-image: url('../img/heroes/blog-hero.png');
}
body.page-id-19 .post-header,      /* Diagnostic */
body.page-template-page-diagnostic .post-header {
    background-image: url('../img/heroes/diagnostic-hero.png');
}
body.page-id-20 .post-header,      /* FAQ */
body.page-template-page-faq .post-header {
    background-image: url('../img/heroes/faq-hero.png');
}
body.page-id-38 .post-header,      /* À propos */
body.page-template-page-a-propos .post-header {
    background-image: url('../img/heroes/a-propos-hero.png');
}
body.page-id-21 .post-header,      /* Projets */
body.page-template-page-projets .post-header {
    background-image: url('../img/heroes/projets-hero.png');
}
body.page-id-18 .post-header,      /* Contact */
body.page-template-page-contact .post-header {
    background-image: url('../img/heroes/contact-hero.png');
}
/* Boutique shop hero */
body.woocommerce-shop .bt-hero {
    background-image: url('../img/heroes/boutique-hero.png') !important;
    background-size: cover !important;
    background-position: center center !important;
    position: relative;
}
body.woocommerce-shop .bt-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(12,9,8,0.72) 0%,
        rgba(12,9,8,0.55) 45%,
        rgba(12,9,8,0.30) 100%);
    z-index: 0;
    pointer-events: none;
}
body.woocommerce-shop .bt-hero > .bt-container { position: relative; z-index: 1; }
body.woocommerce-shop .bt-hero-title { color: #EDE6DC; }
body.woocommerce-shop .bt-hero-sub { color: #C9BFA4; max-width: 720px; }
body.woocommerce-shop .bt-hero-eyebrow { color: #22FF88 !important; }
/* ChatCraft hero (own branding, subtle accent hint) */
body.page-id-170 .cc-hero {
    background-image: url('../img/heroes/chatcraft-hero.png');
    background-size: cover !important;
    background-position: center center !important;
}
body.page-id-170 .cc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(12,9,8,0.65) 0%,
        rgba(12,9,8,0.50) 50%,
        rgba(12,9,8,0.85) 100%);
    z-index: 0;
    pointer-events: none;
}
body.page-id-170 .cc-hero .cc-hero-badge,
body.page-id-170 .cc-hero h1,
body.page-id-170 .cc-hero-sub,
body.page-id-170 .cc-hero-actions,
body.page-id-170 .cc-hero-stats { position: relative; z-index: 1; }

.post-header .post-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary-dark);
    background: rgba(196, 147, 58, 0.1);
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-md);
}

.post-header h1 {
    max-width: 800px;
    margin: 0 auto var(--space-md);
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.post-meta i { margin-right: 4px; color: var(--color-primary); }

/* ─── Bascule de langue article (FR/EN/AR) ─────────────────── */
.post-lang-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding-top: var(--space-lg);
    flex-wrap: wrap;
}
.post-lang-label {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-right: var(--space-xs);
}
.post-lang-option {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    transition: all var(--transition-fast);
}
.post-lang-option:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.post-lang-option.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* ─── Cover hero article ───────────────────────────────────── */
.post-hero-image {
    margin: var(--space-lg) auto var(--space-xl);
    max-width: 1200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.post-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl) 0;
}

.post-content h2 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.post-content h3 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.post-content p {
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.post-content ul, .post-content ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
}

.post-content li {
    margin-bottom: var(--space-sm);
    line-height: 1.7;
}

.post-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-lg) 0;
    background: rgba(196, 147, 58, 0.05);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--color-text-light);
}

.post-content img {
    border-radius: var(--radius-md);
    margin: var(--space-lg) 0;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-lg) 0;
}

.post-content th {
    background: var(--color-bg-alt);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--color-border);
}

.post-content td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border-light);
}

.post-content code {
    background: var(--color-bg-alt);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
}

.post-content pre {
    background: #1A1610;
    color: #E8E0D5;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: var(--space-lg) 0;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* ─── CTA Banner ───────────────────────────────────────────────── */
.post-cta-banner {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    margin: var(--space-xl) 0;
}

.post-cta-banner h3 {
    color: #fff;
    margin-bottom: var(--space-sm);
}

.post-cta-banner p {
    opacity: 0.9;
    margin-bottom: var(--space-md);
}

.post-cta-banner .btn {
    background: #fff;
    color: var(--color-primary-dark);
}

.post-cta-banner .btn:hover {
    background: var(--color-bg);
}

/* ─── Post Navigation ──────────────────────────────────────────── */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--color-border);
    max-width: 800px;
    margin: 0 auto;
}

.post-navigation a {
    display: block;
    padding: var(--space-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.post-navigation a:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.post-navigation .nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.post-navigation .nav-title {
    font-weight: 600;
    color: var(--color-text);
}

/* ─── Footer ───────────────────────────────────────────────────── */
.footer {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    padding: var(--space-xl) 0 var(--space-lg);
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    display: inline-block;
    margin-bottom: var(--space-md);
}

.footer-tagline {
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

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

.footer-col li {
    margin-bottom: var(--space-sm);
}

.footer-col a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.footer-made i { font-size: 0.8rem; }

/* ─── Blog Filters ─────────────────────────────────────────────── */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.blog-filter {
    padding: 6px 18px;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.blog-filter:hover,
.blog-filter.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* ─── Pagination ───────────────────────────────────────────────── */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-light);
    transition: all var(--transition-fast);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* ─── Blog Sidebar ─────────────────────────────────────────────── */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.sidebar:empty,
.sidebar:not(:has(*)) {
    display: none;
}

.sidebar .widget {
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.sidebar .widget-title {
    font-size: 1rem;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-primary);
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border-light);
}

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

.sidebar a {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

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

/* ─── Search Form ──────────────────────────────────────────────── */
.search-form {
    display: flex;
    gap: var(--space-sm);
}

.search-form input[type="search"] {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text);
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(196, 147, 58, 0.15);
}

.search-form button {
    padding: 10px 20px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
}

/* ─── 404 Page ─────────────────────────────────────────────────── */
.error-404 {
    text-align: center;
    padding: 200px var(--space-lg) var(--space-2xl);
}

.error-404 h1 {
    font-size: 6rem;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

/* ─── Animations ───────────────────────────────────────────────── */

/* Scroll Reveal - Base */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* Slide animations */
.animate-slide-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-scale.visible {
    opacity: 1;
    transform: scale(1);
}

.animate-fade {
    opacity: 0;
    transition: opacity 0.6s ease;
}
.animate-fade.visible {
    opacity: 1;
}

/* Hero specific animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.hero-animate-1 { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards; opacity: 0; }
.hero-animate-2 { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards; opacity: 0; }
.hero-animate-3 { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards; opacity: 0; }
.hero-animate-4 { animation: fadeInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards; opacity: 0; }

/* Card hover effects */
.blog-card {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image img {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

/* Button effects */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn:active::after {
    width: 200px;
    height: 200px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 147, 58, 0.4);
}

/* Service card effects */
.service-card {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* Navigation effects */
.nav-menu a {
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
    left: 0;
}

/* FAQ accordion animation */
.faq-item {
    transition: all 0.3s ease;
}

.faq-question {
    transition: background 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* Footer social icons */
.footer-social a {
    transition: transform 0.3s ease, color 0.3s ease;
}
.footer-social a:hover {
    transform: translateY(-3px);
    color: var(--color-primary);
}

/* Page transitions */
.main-content {
    animation: fadeIn 0.4s ease;
}

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

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, var(--color-bg-alt) 25%, var(--color-bg) 50%, var(--color-bg-alt) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .animate-on-scroll,
    .animate-slide-left,
    .animate-slide-right,
    .animate-scale,
    .animate-fade {
        opacity: 1;
        transform: none;
    }
}

/* ─── Blog Hero (posts page) ─────────────────────────────────── */
[hidden] { display: none !important; }

.post-header.blog-hero { padding-top: 150px; padding-bottom: var(--space-2xl); }

.blog-hero-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent-dark);
    background: rgba(200, 103, 67, 0.10);
    border: 1px solid rgba(200, 103, 67, 0.25);
    border-radius: var(--radius-xl);
    padding: 5px 16px;
    margin-bottom: var(--space-md);
}

.blog-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.blog-hero .section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-light);
    max-width: 620px;
    margin: 0 auto;
}

/* ─── Article à la une ───────────────────────────────────────── */
.blog-featured {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: stretch;
    gap: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-xl);
    transition: box-shadow var(--transition-normal);
}

.blog-featured:hover { box-shadow: var(--shadow-md); }

.blog-featured-media {
    align-self: center;
    min-height: 0;
}

.blog-featured-media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.blog-featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: var(--space-xl);
}

.blog-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-accent-dark);
    background: rgba(200, 103, 67, 0.10);
    border: 1px solid rgba(200, 103, 67, 0.25);
    border-radius: var(--radius-xl);
    padding: 5px 14px;
    margin-bottom: var(--space-md);
}

.blog-featured-content .blog-card-category { margin-top: 0; }

.blog-featured-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: var(--space-md);
}

.blog-featured-title a { color: var(--color-text); }
.blog-featured-title a:hover { color: var(--color-accent); }

.blog-featured-excerpt {
    color: var(--color-text-light);
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.blog-featured-cta { margin-top: var(--space-md); }
.blog-featured-cta i { margin-inline-end: 8px; }

/* ─── Toolbar : recherche ────────────────────────────────────── */
.blog-toolbar { margin-bottom: var(--space-lg); }

.blog-search {
    position: relative;
    max-width: 480px;
    margin-inline: auto;
}

.blog-search i {
    position: absolute;
    inset-inline-start: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.blog-search input {
    width: 100%;
    padding: 13px 46px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.blog-search input::placeholder { color: var(--color-text-muted); }

.blog-search input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(196, 147, 58, 0.15);
}

.blog-card.is-hidden { display: none; }

/* ─── État vide (recherche) ──────────────────────────────────── */
.blog-empty {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    color: var(--color-text-muted);
}

.blog-empty .icon { font-size: 1.6rem; color: var(--color-primary-light); margin-bottom: var(--space-sm); }
.blog-empty h3 { font-size: 1.05rem; font-weight: 500; color: var(--color-text-light); }

/* ─── Load more ──────────────────────────────────────────────── */
.blog-loadmore-wrap {
    display: flex;
    justify-content: center;
    margin-top: var(--space-xl);
}

.blog-loadmore { min-width: 190px; justify-content: center; }

.blog-loadmore-spinner { margin-inline-start: 10px; }

/* ─── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    /* Dégage la zone du FAB (WhatsApp + Panier, bas-droit) :
       les stats du hero ne doivent pas passer dessous, même
       quand le FAB est ouvert (actions empilées ~174px) */
    .hero {
        min-height: auto;
        align-items: flex-start; /* container en haut, padding contrôle l'espace */
        padding-top: 60px;
        padding-bottom: 180px;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navbar-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: var(--space-md);
        border-bottom: 1px solid var(--color-border);
        display: none;
    }

    .nav-menu.active { display: flex; }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }

    .hero-visual { display: none; }

    .hero-stats {
        justify-content: center;
        flex-wrap: nowrap; /* stats sur UNE seule ligne sur mobile */
        gap: var(--space-sm);
        width: 100%;
    }

    .hero-stat {
        flex: 1;
        min-width: 0;
        align-items: center;
    }
    .hero-stat-number, .hero-stat-suffix { font-size: 1.35rem; }
    .hero-stat-label {
        font-size: 0.58rem;
        letter-spacing: 0.03em;
        text-align: center;
        white-space: nowrap;
    }
    .hero-stat-divider { height: 26px; }

    .hero-scroll-indicator { display: none; }

    .hero-gradient-orb { opacity: 0.25; }

    .nav-logo img, .nav-logo .custom-logo { height: 70px; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }

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

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-featured {
        grid-template-columns: 1fr;
    }

    .blog-featured-media { min-height: 0; }

    .blog-featured-content { padding: var(--space-lg); }

    .post-header.blog-hero { padding-top: 110px; padding-bottom: var(--space-xl); }

    .post-navigation {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ─── WordPress Core Overrides ─────────────────────────────────── */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--color-text-muted); text-align: center; }
.gallery-caption { font-size: 0.85rem; }
.sticky .blog-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--color-primary); }
.bypostauthor { display: block; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute; height: 1px; width: 1px; overflow: hidden; }

/* ─── Service Page Features List ─────────────────────────────── */
.service-features { list-style: none; margin: 1.5rem 0; padding: 0; }
.service-features li { padding: 0.5rem 0; color: var(--color-text-light); font-size: 0.95rem; display: flex; align-items: center; gap: 0.75rem; }
.service-features li i { color: var(--color-primary); font-size: 0.85rem; }

/* ─── Contact Page ───────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
.contact-info-heading { font-size: 1.3rem; margin-bottom: var(--space-lg); }
.contact-grid .feature-item { margin-bottom: var(--space-md); }

/* ─── Form Styles ────────────────────────────────────────────── */
.form-group { margin-bottom: var(--space-md); }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--color-text-light); margin-bottom: 6px; }
.form-input, .form-textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg); font-family: var(--font-body); font-size: 0.95rem; color: var(--color-text); transition: border-color var(--transition-fast); }
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(196, 147, 58, 0.15); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; padding: 14px; background: var(--color-primary); color: #fff; border: none; border-radius: var(--radius-lg); font-family: var(--font-body); font-size: 1rem; font-weight: 600; cursor: pointer; transition: all var(--transition-fast); display: flex; align-items: center; justify-content: center; gap: 8px; }
.form-submit:hover { background: var(--color-primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-glow); }

/* ─── FAQ Accordion ──────────────────────────────────────────── */
.faq-item { border: 1px solid var(--color-border-light); border-radius: var(--radius-md); margin-bottom: var(--space-sm); overflow: hidden; }
.faq-question { width: 100%; padding: 1.25rem 1.5rem; background: var(--color-surface); border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-body); font-size: 1rem; font-weight: 500; color: var(--color-text); text-align: left; transition: background var(--transition-fast); }
.faq-question:hover { background: var(--color-surface-hover); }
.faq-question i { color: var(--color-primary); transition: transform var(--transition-fast); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; padding: 0 1.5rem; background: var(--color-surface); }
.faq-item.active .faq-question { background: var(--color-surface-hover); }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-item.active .faq-answer { max-height: 300px; padding: 0 1.5rem 1.5rem; }
.faq-answer p { color: var(--color-text-light); line-height: 1.7; }

/* ─── Projects Grid ──────────────────────────────────────────── */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: var(--space-lg); }
.project-card { border-radius: var(--radius-lg); overflow: hidden; position: relative; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--space-lg); color: #fff; transition: transform var(--transition-normal); }
.project-card:hover { transform: translateY(-4px); }
.project-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.8) 100%); z-index: 1; }
.project-card > * { position: relative; z-index: 2; }
.project-tag { display: inline-block; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; background: var(--color-primary); color: #fff; padding: 4px 12px; border-radius: var(--radius-xl); margin-bottom: var(--space-sm); width: fit-content; }
.project-card h3 { font-size: 1.3rem; margin-bottom: var(--space-sm); }
.project-card p { font-size: 0.9rem; opacity: 0.9; margin-bottom: var(--space-md); }

/* ─── Responsive Overrides ───────────────────────────────────── */
@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   UX Improvements — ajout [2026-08-21]
   ═══════════════════════════════════════════════════════════════ */

/* ─── Breadcrumbs (Fil d'ariane) ─────────────────────────────── */
.breadcrumbs {
    padding-top: 100px;
    padding-bottom: 0.75rem;
    font-size: 0.85rem;
    color: #7A7066;
    border-bottom: 1px solid var(--color-border-light);
}
.breadcrumbs a {
    color: #7A7066;
    text-decoration: none;
    transition: color var(--transition-fast);
}
.breadcrumbs a:hover { color: #C4933A; }
.breadcrumbs .sep {
    color: #B8ADA0;
    margin: 0 0.5rem;
}
.breadcrumbs .current {
    color: #1A1610;
    font-weight: 500;
}

/* ─── Articles similaires ────────────────────────────────────── */
.related-posts {
    padding: 3rem 0;
    border-top: 1px solid var(--color-border-light);
}
.related-posts .section-title { margin-bottom: var(--space-lg); }
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.related-card {
    display: block;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(213, 207, 196, 0.3);
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.related-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.related-content { padding: 1rem; }
.related-content h3 {
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.related-date {
    font-size: 0.8rem;
    color: #7A7066;
}

/* ─── Back to Top ────────────────────────────────────────────── */
/* Placé à gauche : le coin bas-droit est occupé par le FAB
   (WhatsApp + Panier) — sinon le FAB le recouvre. */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: auto;
    width: 48px;
    height: 48px;
    background: #C4933A;
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), visibility var(--transition-fast),
                transform var(--transition-fast), box-shadow var(--transition-fast);
    z-index: 999;
    box-shadow: var(--shadow-md);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ─── Reading Progress Bar ───────────────────────────────────── */
.reading-bar {
    position: fixed;
    top: 80px;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #C4933A, #C86743);
    z-index: 1001;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ─── Social Share ───────────────────────────────────────────── */
.social-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--color-border-light);
}
.share-label {
    font-weight: 500;
    color: #4A4238;
}
.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #F8F5F0;
    color: #4A4238;
    border: 1px solid rgba(213, 207, 196, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform var(--transition-fast), background var(--transition-fast),
                color var(--transition-fast), border-color var(--transition-fast);
}
.share-btn:hover {
    transform: translateY(-2px);
    background: #C4933A;
    color: #fff;
    border-color: #C4933A;
}

/* ─── FAB : WhatsApp + Panier fusionnés ──────────────────────── */
/* Le trigger panier du plugin izriwa est remplacé par le FAB
   (footer.php) — on le masque, le drawer reste fonctionnel via
   data-open-drawer et le badge .izriwa-cart-count du FAB est
   mis à jour par les fragments WooCommerce. */
.izriwa-cart-trigger { display: none !important; }

.izri-fab {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Actions révélées (empilées verticalement au-dessus du bouton +) */
.izri-fab-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.9);
    transform-origin: bottom center;
    transition: opacity 0.22s ease-out, transform 0.22s ease-out, visibility 0.22s;
    pointer-events: none; /* zone invisible : ne capture pas les clics */
}
.izri-fab.open .izri-fab-actions {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.izri-fab-action {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
}
.izri-fab-action:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.24);
}
.izri-fab-wa {
    background: #25D366;
    color: #fff;
}
.izri-fab-cart {
    background: #C4933A;
    color: #fff;
}
.izri-fab-cart .izriwa-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: #C86743;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Bouton principal "+" vert WhatsApp */
.izri-fab-main {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
    transition: transform 0.22s ease-out, box-shadow 0.22s ease-out;
}
.izri-fab-main:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55);
}
.izri-fab-main i {
    font-size: 24px;
    transition: transform 0.25s ease-out;
}
.izri-fab.open .izri-fab-main i {
    transform: rotate(45deg); /* "+" → "×" */
}

/* ─── Author Bio Box ────────────────────────────────────────── */
.author-bio {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: rgba(213, 207, 196, 0.1);
    border-radius: 12px;
    margin-top: 2rem;
    border: 1px solid rgba(213, 207, 196, 0.2);
}
.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #C4933A;
}
.author-name {
    font-size: 0.95rem;
    color: #1A1610;
    margin-bottom: 0.25rem;
}
.author-desc {
    font-size: 0.85rem;
    color: #7A7066;
    line-height: 1.5;
}

/* ─── UX Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .related-grid { grid-template-columns: 1fr; }
    .breadcrumbs { padding-top: 90px; }
}

/* ═══════════════════════════════════════════════════════════════
   RGPD Cookie Consent + Newsletter — ajout [2026-08-21]
   ═══════════════════════════════════════════════════════════════ */

/* ─── Cookie Consent Banner ──────────────────────────────────── */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 22, 16, 0.95);
    backdrop-filter: blur(20px);
    color: #E8E0D5;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    border-top: 1px solid rgba(213, 207, 196, 0.2);
}
.cookie-consent.visible {
    transform: translateY(0);
}
.cookie-text {
    font-size: 0.85rem;
    line-height: 1.5;
    flex: 1;
    margin-right: 1.5rem;
}
.cookie-actions {
    display: flex;
    gap: 0.75rem;
}
.cookie-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: 'DM Sans', sans-serif;
}
.cookie-accept {
    background: #C4933A;
    color: white;
}
.cookie-accept:hover {
    background: #D4A34A;
}
.cookie-refuse {
    background: transparent;
    color: #B8ADA0;
    border: 1px solid rgba(184, 173, 160, 0.3);
}
.cookie-refuse:hover {
    border-color: #C4933A;
    color: #C4933A;
}

/* ─── Newsletter (footer) ────────────────────────────────────── */
.footer-newsletter {
    background: rgba(213, 207, 196, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.footer-newsletter h4 {
    color: #D4A86A;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.footer-newsletter p {
    color: #B8ADA0;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}
.newsletter-form {
    display: flex;
    gap: 0.5rem;
}
.newsletter-form input {
    flex: 1;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(213, 207, 196, 0.3);
    background: rgba(255,255,255,0.05);
    color: #E8E0D5;
    font-size: 0.85rem;
    font-family: 'DM Sans', sans-serif;
}
.newsletter-form input::placeholder {
    color: #7A7066;
}
.newsletter-form button {
    padding: 0.6rem 1.2rem;
    background: #C4933A;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'DM Sans', sans-serif;
}
.newsletter-form button:hover {
    background: #D4A34A;
}
.newsletter-status {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    min-height: 1.2em;
}

/* ─── Cookie/Newsletter Responsive ───────────────────────────── */
@media (max-width: 768px) {
    .cookie-consent {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        padding: 1rem 1.25rem;
    }
    .cookie-text {
        margin-right: 0;
    }
    .newsletter-form {
        flex-direction: column;
    }
}
