/* ============================================================
   TERANGA WEB — MAIN STYLESHEET
   Design premium pour agence digitale au Sénégal
   ============================================================ */

/* ---------- GOOGLE FONTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- CSS VARIABLES ---------- */
:root {
    /* Colors */
    --color-bg: #0F1B2D;
    --color-bg-2: #162236;
    --color-surface: #FAF8F5;
    --color-surface-2: #F0EDE8;
    --color-white: #FFFFFF;

    --color-gold: #E4A528;
    --color-gold-light: #F5C55A;
    --color-gold-dark: #C48A18;

    --color-blue: #1E4D8C;
    --color-blue-light: #2E6CC7;
    --color-blue-dark: #143661;

    --color-text: #1A1F36;
    --color-text-muted: #6B7390;
    --color-text-light: #9CA3AF;

    /* Gradients */
    --grad-dark: linear-gradient(135deg, #0F1B2D 0%, #162236 50%, #1B2E48 100%);
    --grad-gold: linear-gradient(135deg, #E4A528 0%, #F5C55A 100%);
    --grad-hero: linear-gradient(135deg, #0F1B2D 0%, #1E4D8C 60%, #162236 100%);
    --grad-surface: linear-gradient(180deg, #FAF8F5 0%, #F0EDE8 100%);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-gold: 0 8px 30px rgba(228, 165, 40, 0.35);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
    --space-2xl: 8rem;

    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Container */
    --container-max: 1200px;
    --container-px: 1.5rem;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--color-text);
    background-color: var(--color-surface);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ---------- TYPOGRAPHY ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.25;
    font-weight: 700;
    color: inherit;
}

.text-display {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-hero {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.text-h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
}

.text-h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 600;
}

.text-lead {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.75;
    font-weight: 400;
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
}

.text-gold {
    color: var(--color-gold);
}

.text-white {
    color: var(--color-white);
}

.text-muted {
    color: var(--color-text-muted);
}

.text-dark {
    color: var(--color-bg);
}

.text-center {
    text-align: center;
}

/* ---------- LAYOUT UTILITIES ---------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-px);
}

.section {
    padding: var(--space-xl) 0;
}

.section--lg {
    padding: var(--space-2xl) 0;
}

.section--dark {
    background: var(--grad-dark);
    color: var(--color-white);
}

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

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

.section--gold-accent {
    background: var(--color-surface);
    position: relative;
}

.section--gold-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--grad-gold);
}

.grid {
    display: grid;
    gap: var(--space-md);
}

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

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

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

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.flex-col {
    display: flex;
    flex-direction: column;
}

.gap-sm {
    gap: var(--space-sm);
}

.gap-md {
    gap: var(--space-md);
}

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

.section-header .label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-gold);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.section-header .label::before,
.section-header .label::after {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--color-gold);
    border-radius: 2px;
}

.section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: var(--space-sm);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 640px;
    margin: 0 auto;
}

.section-header.light h2 {
    color: var(--color-white);
}

.section-header.light p {
    color: rgba(255, 255, 255, 0.7);
}

.section-header.light .label {
    color: var(--color-gold-light);
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left var(--transition-base);
}

.btn:hover::before {
    left: 0;
}

.btn-primary {
    background: var(--grad-gold);
    color: var(--color-bg);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(228, 165, 40, 0.45);
}

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

.btn-outline:hover {
    background: var(--color-gold);
    color: var(--color-bg);
    transform: translateY(-2px);
}

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

.btn-white:hover {
    background: var(--color-surface-2);
    transform: translateY(-2px);
}

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

.btn-dark:hover {
    background: var(--color-bg-2);
    transform: translateY(-2px);
}

.btn-icon {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-base);
}

.btn:hover .btn-icon {
    transform: translateX(3px);
}

/* ---------- NAVBAR ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all var(--transition-base);
}

/* Fix for WordPress Admin Bar overlap */
.admin-bar .navbar {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .navbar {
        top: 46px;
    }
}

.navbar.scrolled {
    background: rgba(15, 27, 45, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.875rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Navbar solid — permanent dark bg for single post pages */
.navbar--solid {
    background: rgba(15, 27, 45, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.navbar__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.navbar__logo-img {
    height: 55px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: opacity var(--transition-fast);
}

.navbar__logo:hover .navbar__logo-img {
    opacity: 0.85;
}

.navbar__menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.navbar__menu a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.navbar__menu a:hover,
.navbar__menu a.active {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
}

.navbar__menu a.active {
    color: var(--color-gold);
}

.navbar__cta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.navbar__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
}

.navbar__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.navbar__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar__hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.navbar__hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.navbar__mobile-menu {
    display: none;
}

/* ---------- HERO SECTIONS ---------- */
.hero {
    min-height: 100vh;
    background: var(--grad-hero);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 115px;
    /* Increased to comfortably clear navbar */
}

.hero--page {
    min-height: 55vh;
    background: var(--grad-hero);
    display: flex;
    align-items: center;
    padding-top: 115px;
    /* Increased to comfortably clear navbar */
    padding-bottom: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.hero__bg-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero__bg-pattern::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(228, 165, 40, 0.12) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    border-radius: 50%;
}

.hero__bg-pattern::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(30, 77, 140, 0.2) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
}

/* Floating shapes */
.hero__shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(228, 165, 40, 0.06);
    animation: floatShape 8s ease-in-out infinite;
}

.hero__shape--1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 15%;
    animation-delay: 0s;
}

.hero__shape--2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    right: 30%;
    animation-delay: -3s;
    background: rgba(30, 77, 140, 0.08);
}

.hero__shape--3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 5%;
    animation-delay: -5s;
}

@keyframes floatShape {

    0%,
    100% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 1;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(228, 165, 40, 0.15);
    border: 1px solid rgba(228, 165, 40, 0.3);
    color: var(--color-gold-light);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-gold);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.hero__title {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 900;
    color: var(--color-white);
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.hero__title .highlight {
    background: var(--grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.75;
    margin-bottom: var(--space-lg);
    max-width: 520px;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    margin-top: 3rem;
    margin-bottom: 3rem;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__stat {
    text-align: center;
}

.hero__stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-gold);
    display: block;
}

.hero__stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.hero__image-wrap {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero__image-wrap img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: var(--radius-xl);
}

.hero__image-badge {
    position: absolute;
    bottom: var(--space-md);
    left: var(--space-md);
    background: rgba(15, 27, 45, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(228, 165, 40, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-sm) var(--space-md);
    color: var(--color-white);
}

.hero__image-badge-stars {
    color: var(--color-gold);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 0.25rem;
}

.hero__image-badge-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ---------- PAGE HERO (sous-pages) ---------- */
.page-hero {
    background: var(--grad-hero);
    padding: calc(80px + var(--space-xl)) 0 var(--space-xl);
    position: relative;
    overflow: hidden;
}

.page-hero__bg {
    position: absolute;
    inset: 0;
}

.page-hero__bg::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(228, 165, 40, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.page-hero__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
}

.page-hero__breadcrumb a {
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition-fast);
}

.page-hero__breadcrumb a:hover {
    color: var(--color-gold);
}

.page-hero__breadcrumb-sep {
    color: rgba(255, 255, 255, 0.2);
}

.page-hero__breadcrumb-current {
    color: var(--color-gold);
    font-weight: 600;
}

.page-hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.page-hero__label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-gold-light);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.page-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-sm);
}

.page-hero__subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    max-width: 600px;
}

/* ---------- CARDS ---------- */
.card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

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

.card--dark {
    background: var(--color-bg-2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--color-white);
}

.card--dark:hover {
    border-color: rgba(228, 165, 40, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.card--glass {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

.card--glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(228, 165, 40, 0.3);
}

/* Service Card */
.service-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--color-text);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-gold);
}

.service-card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(228, 165, 40, 0.12) 0%, rgba(228, 165, 40, 0.06) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all var(--transition-base);
}

.service-card:hover .service-card__icon {
    background: var(--grad-gold);
    transform: scale(1.1) rotate(5deg);
}

.service-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.3;
}

.service-card__desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    flex: 1;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--color-gold);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: auto;
    transition: gap var(--transition-fast);
}

.service-card:hover .service-card__link {
    gap: 0.6rem;
}

/* Feature Item */
.feature-item {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.feature-item__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--grad-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-gold);
}

.feature-item__content h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: inherit;
}

.feature-item__content p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.65;
}

.feature-item--light .feature-item__content p {
    color: var(--color-text-muted);
}

/* ---------- STAT BAR ------/* Stat Bar (Par défaut fond clair pour visibilité sur blanc) */
.stat-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(0, 0, 0, 0.08);
    /* bordure douce pour fond clair */
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.stat-bar__item {
    text-align: center;
    padding: var(--space-md) var(--space-sm);
    background: var(--color-surface);
    /* fond clair */
    transition: background var(--transition-base);
}

.stat-bar__item:hover {
    background: rgba(228, 165, 40, 0.05);
    /* or léger */
}

.stat-bar__number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-gold);
    line-height: 1;
}

.stat-bar__label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    /* gris foncé */
    margin-top: 0.35rem;
    font-weight: 400;
}

/* Stat Bar : Variante Dark (quand placé dans un bloc hero ou sombre) */
.hero .stat-bar,
.bg-dark .stat-bar {
    background: rgba(255, 255, 255, 0.08);
}

.hero .stat-bar__item,
.bg-dark .stat-bar__item {
    background: rgba(255, 255, 255, 0.04);
}

.hero .stat-bar__item:hover,
.bg-dark .stat-bar__item:hover {
    background: rgba(228, 165, 40, 0.1);
}

.hero .stat-bar__label,
.bg-dark .stat-bar__label {
    color: rgba(255, 255, 255, 0.6);
}

/* ---------- PROCESS STEPS ---------- */
.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(100% / 6);
    right: calc(100% / 6);
    height: 2px;
    background: linear-gradient(90deg, var(--color-gold) 0%, rgba(228, 165, 40, 0.2) 100%);
    z-index: 0;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.process-step__number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--grad-gold);
    color: var(--color-bg);
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    box-shadow: var(--shadow-gold);
}

.process-step h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: inherit;
}

.process-step p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}

/* ---------- TESTIMONIAL ---------- */
.testimonial {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: var(--space-lg);
    font-size: 6rem;
    color: var(--color-gold);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial__stars {
    color: var(--color-gold);
    font-size: 1.1rem;
    letter-spacing: 3px;
    margin-bottom: var(--space-sm);
}

.testimonial__text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.75;
    font-style: italic;
    margin-bottom: var(--space-md);
}

.testimonial__author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.testimonial__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--grad-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-bg);
}

.testimonial__name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-white);
}

.testimonial__role {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ---------- PROCESS STEPS ---------- */
.tw-step {
    text-align: center;
    padding: var(--space-md);
    position: relative;
}

.tw-step__number {
    width: 52px;
    height: 52px;
    background: var(--grad-gold);
    color: var(--color-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 900;
    margin: 0 auto var(--space-sm);
    box-shadow: var(--shadow-gold);
}

.tw-step__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.tw-step__desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ---------- PRICING TABLE ---------- */
.tw-tarifs-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    font-size: 0.95rem;
}

.tw-tarifs-table thead {
    background: var(--color-bg);
    color: var(--color-white);
}

.tw-tarifs-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tw-tarifs-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--color-text);
    line-height: 1.6;
}

.tw-tarifs-table tbody tr {
    background: var(--color-white);
    transition: background var(--transition-fast);
}

.tw-tarifs-table tbody tr:hover {
    background: rgba(228, 165, 40, 0.04);
}

.tw-tarifs-table td:last-child {
    color: var(--color-gold-dark);
    white-space: nowrap;
}

/* ---------- FAQ ACCORDION ---------- */
.tw-faq__item {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    overflow: hidden;
    transition: box-shadow var(--transition-base);
}

.tw-faq__item:hover {
    box-shadow: var(--shadow-sm);
}

.tw-faq__item[open] {
    border-color: var(--color-gold);
    box-shadow: 0 4px 15px rgba(228, 165, 40, 0.12);
}

.tw-faq__question {
    padding: 1.15rem 1.5rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.tw-faq__question::-webkit-details-marker {
    display: none;
}

.tw-faq__question::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--color-gold);
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.tw-faq__item[open] .tw-faq__question::after {
    content: '−';
    transform: rotate(180deg);
}

.tw-faq__item[open] .tw-faq__question {
    color: var(--color-gold-dark);
}

.tw-faq__answer {
    padding: 0 1.5rem 1.25rem;
}

.tw-faq__answer p {
    color: var(--color-text-muted);
    line-height: 1.75;
    font-size: 0.95rem;
}

.tw-faq__answer a {
    color: var(--color-gold);
    text-decoration: underline;
    font-weight: 600;
}

.tw-faq__answer a:hover {
    color: var(--color-gold-dark);
}

/* ---------- CTA BAND ---------- */
.cta-band {
    background: var(--grad-gold);
    padding: var(--space-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='2' fill='rgba(15,27,45,0.06)'/%3E%3C/svg%3E") repeat;
}

.cta-band h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--color-bg);
    margin-bottom: 0.75rem;
    position: relative;
}

.cta-band p {
    font-size: 1.05rem;
    color: rgba(15, 27, 45, 0.75);
    margin-bottom: var(--space-lg);
    position: relative;
}

.cta-band .btn-dark {
    position: relative;
}

/* ---------- BLOG CARDS ---------- */
.blog-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--color-text);
}

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

.blog-card__image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.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.06);
}

.blog-card__category {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    background: var(--color-gold);
    color: var(--color-bg);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
}

.blog-card__body {
    padding: var(--space-md);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.blog-card__meta-sep {
    width: 3px;
    height: 3px;
    background: var(--color-text-light);
    border-radius: 50%;
}

.blog-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-text);
    transition: color var(--transition-fast);
    flex: 1;
}

.blog-card:hover .blog-card__title {
    color: var(--color-blue);
}

.blog-card__excerpt {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.65;
}

.blog-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.8rem;
    color: var(--color-gold);
    font-weight: 600;
}

/* ---------- SINGLE POST ---------- */
.single-post {
    margin: 0 auto;
    padding: var(--space-xl) 0;
}

.single-post__header {
    margin-bottom: var(--space-xl);
}

.single-post__meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.single-post__category {
    background: var(--color-gold);
    color: var(--color-bg);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.single-post__title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.single-post__featured {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-xl);
}

.single-post__featured img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.single-post__content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--color-text);
}

.single-post__content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.single-post__content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: var(--space-md);
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.single-post__content p {
    margin-bottom: var(--space-sm);
}

.single-post__content ul,
.single-post__content ol {
    padding-left: 1.5rem;
    margin-bottom: var(--space-sm);
}

.single-post__content ul {
    list-style: disc;
}

.single-post__content ol {
    list-style: decimal;
}

.single-post__content li {
    margin-bottom: 0.5rem;
}

.single-post__content a {
    color: var(--color-blue-light);
    text-decoration: underline;
    text-decoration-color: rgba(46, 108, 199, 0.3);
}

.single-post__content a:hover {
    color: var(--color-blue);
    text-decoration-color: var(--color-blue);
}

.single-post__content blockquote {
    border-left: 4px solid var(--color-gold);
    padding: var(--space-sm) var(--space-md);
    margin: var(--space-md) 0;
    background: rgba(228, 165, 40, 0.06);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--color-text-muted);
}

.single-post__content strong {
    font-weight: 700;
}

.single-post__content em {
    font-style: italic;
}

/* ---------- ARCHIVE — Blog & Catégories ---------- */

/* En-tête : compteur + filtres */
.archive-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.archive-header__count h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
}

.archive-header__page-info {
    font-size: .85rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

/* Pills catégories */
.archive-cats {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    align-items: center;
}

.archive-cats__pill {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .4rem .9rem;
    border-radius: var(--radius-full);
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--color-white);
    color: var(--color-text);
    border: 1px solid rgba(0, 0, 0, .08);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.archive-cats__pill:hover,
.archive-cats__pill--active {
    background: var(--color-gold);
    color: var(--color-bg);
    border-color: var(--color-gold);
}

/* Grille archive */
.archive-grid {
    margin-bottom: var(--space-xl);
}

/* Pagination */
.pagination {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(0, 0, 0, .06);
    list-style: none;
    padding-left: 0;
}

/* Fallback if WP wraps in a ul or nav-links div */
.pagination ul,
.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Reset ul styles just in case it receives the page-numbers class */
.pagination ul.page-numbers {
    box-shadow: none;
    background: transparent;
    min-width: 0;
    height: auto;
}

.pagination li {
    display: inline-flex;
    margin: 0;
    padding: 0;
}

.pagination span.page-numbers,
.pagination a.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 .75rem;
    border-radius: var(--radius-md);
    font-size: .875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    text-decoration: none;
    background: var(--color-white);
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.pagination a.page-numbers:hover {
    background: var(--color-gold);
    color: var(--color-bg);
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold);
}

.pagination span.page-numbers.current {
    background: var(--color-gold);
    color: var(--color-bg);
    font-weight: 700;
    box-shadow: var(--shadow-gold);
}

.pagination span.page-numbers.dots {
    color: var(--color-text-muted);
    min-width: auto;
    padding: 0 .25rem;
    background: transparent;
    box-shadow: none;
}

/* État vide */
.archive-empty {
    text-align: center;
    padding: 5rem 0;
}

.archive-empty__icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.archive-empty__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: .75rem;
    color: var(--color-text);
}

.archive-empty__text {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- CONTACT ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: var(--space-xl);
    align-items: start;
}

.contact-info__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.contact-info__item:hover {
    border-color: rgba(228, 165, 40, 0.3);
    background: rgba(228, 165, 40, 0.06);
}

.contact-info__value {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ---------- POPUP (TOAST) ---------- */
.tw-popup {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tw-popup.visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.tw-popup--success {
    border-left: 4px solid #22c55e;
}

.tw-popup--error {
    border-left: 4px solid #ef4444;
}

.tw-popup__content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--color-text);
}

.tw-popup__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.tw-popup__close:hover {
    color: var(--color-text);
}

@media screen and (max-width: 768px) {
    .tw-popup {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        flex-wrap: nowrap;
    }
}

.contact-info__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(228, 165, 40, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    color: var(--color-gold);
}

.contact-info__label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-info__value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
}

.contact-info__value a {
    color: inherit;
    transition: color var(--transition-fast);
}

.contact-info__value a:hover {
    color: var(--color-gold);
}

/* Contact Form */
.contact-form {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.contact-form .subtitle {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-lg);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-surface);
    transition: all var(--transition-base);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-gold);
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(228, 165, 40, 0.1);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.form-notice {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: var(--space-sm);
}

/* ---------- FOOTER ---------- */
.footer {
    background: #080F1B;
    color: rgba(255, 255, 255, 0.7);
}

.footer>.container {
    max-width: 100%;
    padding: 0 4rem;
}

.footer__main {
    padding: var(--space-2xl) 0 var(--space-xl);
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__brand p {
    font-size: 0.9rem;
    line-height: 1.75;
    margin-top: var(--space-sm);
    color: rgba(255, 255, 255, 0.5);
    max-width: 260px;
}

.footer__logo {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.footer__logo-img {
    height: 50px;
    width: auto;
    display: block;
    object-fit: contain;
}

.footer__social {
    display: flex;
    gap: 0.75rem;
    margin-top: var(--space-md);
}

.footer__social a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.footer__social a:hover {
    background: var(--color-gold);
    color: var(--color-bg);
    transform: translateY(-2px);
}

.footer__col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer__links a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.footer__links a::before {
    content: '→';
    color: var(--color-gold);
    opacity: 0;
    transform: translateX(-4px);
    transition: all var(--transition-fast);
}

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

.footer__links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.75rem;
}

.footer__contact-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.footer__bottom {
    padding: var(--space-md) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer__bottom a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* ---------- ANIMATIONS ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ---------- UTILITIES ---------- */
.mb-0 {
    margin-bottom: 0 !important;
}

.mt-sm {
    margin-top: var(--space-sm);
}

.mt-md {
    margin-top: var(--space-md);
}

.mt-lg {
    margin-top: var(--space-lg);
}

.mb-sm {
    margin-bottom: var(--space-sm);
}

.mb-md {
    margin-bottom: var(--space-md);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

.separator {
    width: 60px;
    height: 4px;
    background: var(--grad-gold);
    border-radius: 4px;
    margin: var(--space-sm) auto;
}

.separator--left {
    margin-left: 0;
}

/* Highlight text inline */
mark {
    background: linear-gradient(to bottom, transparent 50%, rgba(228, 165, 40, 0.25) 50%);
    padding: 0 2px;
    color: inherit;
}

/* ---------- 404 PAGE ---------- */
.error-404 {
    min-height: 100vh;
    background: var(--grad-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    padding: var(--space-xl) var(--container-px);
}

.error-404__number {
    font-size: clamp(6rem, 15vw, 10rem);
    font-weight: 900;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-md);
}

.error-404__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.error-404__desc {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-lg);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* Notification bar / skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-gold);
    color: var(--color-bg);
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    z-index: 9999;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* ============================================================
   SINGLE POST — Article de blog — REDESIGN PREMIUM
   ============================================================ */

/* ── Barre de progression de lecture ── */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 1100;
    background: transparent;
    pointer-events: none;
}

.reading-progress__bar {
    height: 100%;
    width: 0%;
    background: var(--grad-gold);
    border-radius: 0 3px 3px 0;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(228, 165, 40, 0.5);
}

/* ── Hero avec image de fond ── */
.single-hero {
    background: var(--grad-dark);
    padding: calc(100px + var(--space-xl)) 0 var(--space-xl);
    position: relative;
    overflow: hidden;
}

.single-hero--with-img {
    /* image is handled by .single-hero__img */
}

.single-hero>.container {
    position: relative;
    z-index: 2;
}

/* Image en dur pour le SEO (remplace background-image) */
.single-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

/* Overlay gradient sombre par-dessus l'image */
.single-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 27, 45, 0.82) 0%, rgba(15, 27, 45, 0.95) 100%);
    z-index: 1;
}

.single-hero__content {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.single-hero__cat {
    display: inline-block;
    background: rgba(228, 165, 40, 0.18);
    border: 1px solid rgba(228, 165, 40, 0.35);
    color: var(--color-gold-light);
    padding: .35rem .9rem;
    border-radius: var(--radius-full);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.single-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 900;
    color: var(--color-white);
    line-height: 1.15;
    letter-spacing: -.02em;
    margin-bottom: 1.25rem;
}

.single-hero__meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.single-hero__meta-item {
    display: flex;
    align-items: center;
    gap: .4rem;
    color: rgba(255, 255, 255, .65);
    font-size: .875rem;
}

.single-hero__meta-sep {
    color: rgba(255, 255, 255, .2);
}

/* ── Image mise en avant ── */
.single-featured-img {
    background: var(--color-white);
    padding: 0 0 3rem;
}

.single-featured-img__figure {
    margin: 0;
    line-height: 0;
}

.single-featured-img__img {
    width: 100%;
    max-width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    display: block;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.single-featured-img__caption {
    font-size: .8rem;
    color: var(--color-text-muted);
    text-align: center;
    padding: .75rem 0 0;
    font-style: italic;
    line-height: 1;
}

/* ── Corps de l'article (wrapper blanc) ── */
.single-body {
    background: var(--color-white);
    padding: 3.5rem 0 4rem;
}

.single-body__container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* ── Layout principal (contenu + sidebar) ── */
.single-layout {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
}

/* ── Contenu de l'article ── */
.single-post__content {
    flex: 1;
    min-width: 0;
    max-width: 820px;
}

/* Styles des éléments HTML dans le_content() */
.single-post__content h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    font-weight: 800;
    margin: 3.5rem 0 1.5rem;
    color: var(--color-text);
    line-height: 1.25;
}

.single-post__content h3 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: var(--color-text);
}

.single-post__content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 .5rem;
}

.single-post__content p {
    margin-bottom: 1.4rem;
    line-height: 1.85;
    color: var(--color-text);
    font-size: 1rem;
}

.single-post__content a {
    color: var(--color-blue-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition-fast);
}

.single-post__content a:hover {
    color: var(--color-gold);
}

.single-post__content ul,
.single-post__content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.single-post__content ul {
    list-style: disc;
}

.single-post__content ol {
    list-style: decimal;
}

.single-post__content li {
    line-height: 1.7;
    color: var(--color-text);
}

.single-post__content blockquote {
    border-left: 4px solid var(--color-gold);
    background: rgba(228, 165, 40, .06);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.single-post__content blockquote cite {
    display: block;
    margin-top: .75rem;
    font-size: .8rem;
    font-style: normal;
    font-weight: 700;
    color: var(--color-gold);
}

.single-post__content pre {
    background: var(--color-bg);
    color: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: .875rem;
    line-height: 1.7;
}

.single-post__content code {
    background: rgba(228, 165, 40, .1);
    color: var(--color-gold-dark);
    padding: .15rem .45rem;
    border-radius: 4px;
    font-size: .875em;
    font-family: 'Courier New', monospace;
}

.single-post__content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Images dans le contenu de l'article */
.single-post__content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin: 1.5rem auto;
    display: block;
}

.single-post__content figure {
    margin: 2rem 0;
}

.single-post__content figure img {
    margin: 0 auto .5rem;
}

.single-post__content figcaption {
    text-align: center;
    font-size: .8rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* Tableaux */
.single-post__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: .9rem;
    overflow-x: auto;
    display: block;
}

.single-post__content th {
    background: var(--color-bg);
    color: var(--color-white);
    padding: .75rem 1rem;
    text-align: left;
    font-weight: 600;
}

.single-post__content td {
    padding: .75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, .07);
}

.single-post__content tr:nth-child(even) td {
    background: var(--color-surface);
}

/* Vidéos et iframes (YouTube embed) */
.single-post__content iframe,
.single-post__content video {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    display: block;
}

.single-post__content .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
}

.single-post__content .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
}

/* ── Tags ── */
.single-tags {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, .07);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.single-tags__label {
    font-size: .8rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    white-space: nowrap;
}

.single-tags__list {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.single-tags__item {
    display: inline-flex;
    padding: .3rem .8rem;
    border-radius: var(--radius-full);
    background: var(--color-surface);
    border: 1px solid rgba(0, 0, 0, .08);
    font-size: .78rem;
    color: var(--color-text);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.single-tags__item:hover {
    background: var(--color-gold);
    color: var(--color-bg);
    border-color: var(--color-gold);
}

/* ── Partage social ── */
.single-share {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    flex-wrap: wrap;
}

.single-share__label {
    font-size: .875rem;
    font-weight: 700;
    color: var(--color-text);
    white-space: nowrap;
}

.single-share__btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all var(--transition-fast) !important;
    color: white !important;
}

.single-share__btn:hover {
    opacity: .85;
    transform: translateY(-1px);
}

.single-share__btn--fb {
    background: #1877F2;
}

.single-share__btn--wa {
    background: #25D366;
}

.single-share__btn--tw {
    background: #000;
}

.single-share__btn--li {
    background: #0A66C2;
}

/* ── Sidebar ── */
.single-sidebar {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 350px;
    flex-shrink: 0;
    margin-left: auto;
    padding-left: 2.5rem;
    border-left: 2px solid rgba(0, 0, 0, 0.06);
}

.single-sidebar__card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, .06);
}

.single-sidebar__author {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
}

.single-sidebar__author-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--grad-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: var(--color-bg);
    font-size: 1rem;
    flex-shrink: 0;
}

.single-sidebar__author-name {
    font-weight: 700;
    font-size: .9rem;
    color: var(--color-text);
}

.single-sidebar__author-role {
    font-size: .75rem;
    color: var(--color-text-muted);
}

.single-sidebar__author-bio {
    font-size: .8rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin: 0;
}

/* Bloc CTA sidebar */
.single-sidebar__cta {
    background: linear-gradient(135deg, #0F1B2D, #1E4D8C);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
}

.single-sidebar__cta-icon {
    font-size: 2rem;
    margin-bottom: .75rem;
    line-height: 1;
}

.single-sidebar__cta-title {
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.single-sidebar__cta-text {
    color: rgba(255, 255, 255, .65);
    font-size: .78rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.single-sidebar__cta-link {
    display: block;
    margin-top: .75rem;
    font-size: .78rem;
    color: rgba(255, 255, 255, .55);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.single-sidebar__cta-link:hover {
    color: var(--color-gold-light);
}

/* Articles récents dans sidebar */
.single-sidebar__section-title {
    font-size: .78rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 1rem;
}

.single-sidebar__recent-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.single-sidebar__recent-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.single-sidebar__recent-img {
    flex-shrink: 0;
    width: 70px;
    height: 52px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: block;
}

.single-sidebar__recent-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-base);
}

.single-sidebar__recent-img:hover img {
    transform: scale(1.05);
}

.single-sidebar__recent-body {
    min-width: 0;
    flex: 1;
}

.single-sidebar__recent-title {
    font-size: .8rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    line-height: 1.4;
    display: block;
    transition: color var(--transition-fast);
    /* Truncate à 2 lignes */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.single-sidebar__recent-title:hover {
    color: var(--color-gold);
}

.single-sidebar__recent-date {
    font-size: .72rem;
    color: var(--color-text-light);
    margin-top: .25rem;
    display: block;
}

/* ── Pagination multi-page ── */
.single-page-nav {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 2rem;
}

.single-page-nav span {
    font-size: .8rem;
    font-weight: 700;
    color: var(--color-text-muted);
}

.single-page-nav__item {
    padding: .3rem .7rem;
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    font-size: .875rem;
    color: var(--color-text);
    text-decoration: none;
    transition: all var(--transition-fast);
}

/* ── Navigation prev/next ── */
.single-nav-section {
    background: var(--color-surface);
    padding: 2.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.single-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.single-nav__link {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--color-white);
    text-decoration: none;
    transition: all var(--transition-base);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.single-nav__link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-gold);
}

.single-nav__link--next {
    text-align: right;
}

.single-nav__direction {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--color-gold);
}

.single-nav__link--next .single-nav__direction {
    justify-content: flex-end;
}

.single-nav__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.4;
    transition: color var(--transition-fast);
}

.single-nav__link:hover .single-nav__title {
    color: var(--color-gold-dark);
}

/* ── Articles similaires (section élargie) ── */
.single-related {
    background: var(--color-surface);
    padding: var(--space-xl) 0 var(--space-2xl);
}

.single-related__container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 3rem;
}

.single-page-nav__item:hover {
    background: var(--color-gold);
    color: var(--color-bg);
}

/* ============================================================
   LAYOUT UTILITY CLASSES — Grilles responsives
   Remplacent les inline style="display:grid..." des pages PHP
   afin que les media queries puissent s'appliquer correctement.
   ============================================================ */

/* Grille 2 colonnes — image + texte */
.tw-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Grille 2 colonnes — alternée (image à droite) */
.tw-2col-rev {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tw-2col-rev> :first-child {
    order: 2;
}

.tw-2col-rev> :last-child {
    order: 1;
}

/* Grille 3 colonnes égales (contact, etc.) */
.tw-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

/* Image responsive — évite overflow et maintient ratio */
.tw-img {
    width: 100%;
    max-width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

.tw-img--light {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.tw-img--dark {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.40);
}

/* Espacements utilitaires */
.mb-xl {
    margin-bottom: var(--space-xl);
}

.mb-2xl {
    margin-bottom: calc(var(--space-xl) + 1rem);
}

/* ---------- RESPONSIVE ---------- */

/* Tablet : ≤ 1024px */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .hero__image-wrap {
        display: none;
    }

    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        justify-content: center;
    }

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

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

    .process-steps {
        grid-template-columns: 1fr;
    }

    .process-steps::before {
        display: none;
    }

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

    /* --- Responsive utility classes (tablet) --- */
    .tw-2col,
    .tw-2col-rev {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Sur tablette, reset l'ordre inversé — image apparaît après le texte */
    .tw-2col-rev> :first-child {
        order: 0;
    }

    .tw-2col-rev> :last-child {
        order: 0;
    }

    /* 3 colonnes → 2 sur tablette */
    .tw-3col {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    /* Images moins hautes sur tablette */
    .tw-img {
        height: 300px;
    }

    .single-featured-img__img {
        height: 340px;
    }
}

/* Mobile : ≤ 768px */
@media (max-width: 768px) {

    /* Single post layout → 1 colonne sur mobile */
    .single-layout {
        flex-direction: column;
    }

    .single-post__content {
        max-width: 100%;
    }

    .single-sidebar {
        position: static;
        width: 100%;
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        border-top: 2px solid rgba(0, 0, 0, 0.06);
        padding-top: 2rem;
    }

    .single-body__container {
        padding: 0 var(--container-px);
    }

    .single-related__container {
        padding: 0 var(--container-px);
    }

    .footer>.container {
        padding: 0 var(--container-px);
    }

    .single-nav {
        grid-template-columns: 1fr;
    }

    :root {
        --space-xl: 3.5rem;
        --space-2xl: 5rem;
    }

    .navbar__menu {
        display: none;
    }

    .navbar__cta .btn {
        display: none;
    }

    .navbar__logo-img {
        height: 36px;
    }

    .navbar__hamburger {
        display: flex;
    }

    .navbar__mobile-menu {
        display: none;
        position: fixed;
        inset: 0;
        background: var(--color-bg);
        z-index: 999;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-md);
    }

    .navbar__mobile-menu.open {
        display: flex;
    }

    .navbar__mobile-menu a {
        color: var(--color-white);
        font-size: 1.5rem;
        font-weight: 700;
        text-decoration: none;
        transition: color var(--transition-fast);
    }

    .navbar__mobile-menu a:hover {
        color: var(--color-gold);
    }

    .navbar__mobile-menu .btn {
        font-size: 1rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    /* --- Responsive utility classes (mobile) --- */
    .tw-2col,
    .tw-2col-rev {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tw-2col-rev> :first-child,
    .tw-2col-rev> :last-child {
        order: 0;
    }

    /* 3 colonnes → 1 sur mobile */
    .tw-3col {
        grid-template-columns: 1fr;
    }

    /* Images plus courtes sur mobile */
    .tw-img {
        height: 240px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero__stats {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .footer__bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

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

    .service-card {
        padding: var(--space-md);
    }

    .blog-card__image {
        height: 180px;
    }
}

/* Small mobile: ≤ 480px */
@media (max-width: 480px) {
    .hero__stats {
        grid-template-columns: 1fr;
    }

    .hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .stat-bar {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: var(--space-md);
    }

    .btn {
        padding: 0.85rem 1.5rem;
    }

    /* Images très petites (small phone) */
    .tw-img {
        height: 200px;
    }

    /* Empêche tout débordement horizontal */
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .navbar__logo-img {
        height: 48px;
    }

    .footer__logo-img {
        height: 48px;
    }
}

/* Print */
@media print {

    .navbar,
    .footer,
    .hero__actions,
    .cta-band {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .hero {
        min-height: auto;
        background: none;
        color: black;
        padding: 1rem 0;
    }

    .hero__title {
        color: black;
    }
}