/* ============================================
   VERBATHINK - Premium Onepage Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --vb-black: #000000;
    --vb-gold: #C4B586;
    --vb-gold-light: #d4c99e;
    --vb-gold-dark: #a89a6e;
    --vb-white: #ffffff;
    --vb-gray-light: #f5f5f3;
    --vb-gray: #888888;
    --vb-gray-dark: #1a1a1a;
    --vb-font-heading: "Josefin Sans", sans-serif;
    --vb-font-body: "Barlow", sans-serif;
}

/* --- Global Typography --- */
body,
.editor-styles-wrapper {
    font-family: var(--vb-font-body) !important;
    color: var(--vb-black);
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

* {
    word-break: break-word;
}

h1, h2, h3, h4, h5, h6,
.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4,
.editor-styles-wrapper h5,
.editor-styles-wrapper h6 {
    font-family: var(--vb-font-heading) !important;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
}

/* --- Smooth Scroll handled by smooth-scroll.js --- */

/* --- Site Title --- */
.wp-block-site-title a {
    text-decoration: none !important;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.wp-block-site-title a:hover {
    color: var(--vb-gold) !important;
    text-decoration: none !important;
}

.wp-block-site-title a::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background-image: url('/wp-content/uploads/2026/02/bolt.png');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 0.5em;
}

/* --- Navigation --- */
.wp-block-navigation {
    font-family: var(--vb-font-heading) !important;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.wp-block-navigation a {
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.wp-block-navigation a:hover {
    color: var(--vb-gold) !important;
}

/* --- Hero Section (Cover style, like cyrus-herez.fr) --- */
.wp-block-cover.vb-hero-cover {
    min-height: 100vh !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-block-cover.vb-hero-cover .wp-block-cover__inner-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.vb-hero-cover h1 {
    font-size: clamp(48px, 3rem + 2.5vw, 80px) !important;
    font-weight: 300 !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.3em !important;
    line-height: 1.1 !important;
}

.vb-hero-cover .vb-tagline {
    font-family: var(--vb-font-body);
    font-size: clamp(0.75rem, 1vw, 0.9rem);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-weight: 400;
    opacity: 0.6;
    margin-bottom: 2.5em !important;
}

.vb-hero-cover .vb-gold-line {
    width: 60px;
    height: 1px;
    background: var(--vb-gold);
    margin: 0 auto 2.5em;
    border: none;
    opacity: 1;
}

.vb-hero-cover .vb-headline {
    font-family: var(--vb-font-heading) !important;
    font-size: clamp(1.2rem, 2.2vw, 1.8rem) !important;
    font-weight: 300 !important;
    font-style: italic;
    letter-spacing: 0.02em;
    text-transform: none !important;
    max-width: 700px;
    margin: 0 auto 1.5em !important;
    line-height: 1.5 !important;
}

.vb-hero-cover .vb-subtext {
    font-family: var(--vb-font-body);
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    font-weight: 300;
    max-width: 580px;
    line-height: 1.8;
    opacity: 0.6;
    margin: 0 auto 3em !important;
}

.vb-hero-cover .vb-hero-cta a {
    font-family: var(--vb-font-heading) !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 1.1em 3.5em !important;
    border: 1px solid var(--vb-gold) !important;
    color: var(--vb-gold) !important;
    background: transparent !important;
    text-decoration: none !important;
    transition: all 0.4s ease;
}

.vb-hero-cover .vb-hero-cta a:hover {
    background: var(--vb-gold) !important;
    color: var(--vb-black) !important;
}

/* Scroll indicator at bottom of hero */
.vb-hero-cover .vb-scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
}

.vb-hero-cover .vb-scroll-indicator::after {
    content: '';
    display: block;
    width: 1px;
    height: 50px;
    background: var(--vb-gold);
    margin: 0 auto;
    animation: vb-scroll-pulse 2.5s ease-in-out infinite;
}

@keyframes vb-scroll-pulse {
    0%, 100% { opacity: 0.2; transform: scaleY(0.6); }
    50% { opacity: 0.8; transform: scaleY(1); }
}

/* Legacy fallback - remove old hero class styles */
.vb-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* --- Section Styles --- */
.vb-section {
    padding-top: clamp(4rem, 8vw, 8rem);
    padding-bottom: clamp(4rem, 8vw, 8rem);
}

.vb-section-dark {
    background-color: var(--vb-black) !important;
    color: var(--vb-white) !important;
}

.vb-section-dark h2,
.vb-section-dark h3,
.vb-section-dark h4,
.vb-section-dark p,
.vb-section-dark li {
    color: var(--vb-white) !important;
}

.vb-section-light {
    background-color: var(--vb-white) !important;
    color: var(--vb-black) !important;
}

.vb-section-gray {
    background-color: var(--vb-gray-light) !important;
    color: var(--vb-black) !important;
}

/* --- Section Headers --- */
.vb-section-title {
    font-size: clamp(1.8rem, 3.5vw, 3rem) !important;
    font-weight: 300 !important;
    letter-spacing: 0.15em;
    text-align: center;
    margin-bottom: 1em !important;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 1.2em;
}

.vb-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background-color: var(--vb-gold);
}

/* In dark sections */
.vb-section-dark .vb-section-title::after {
    background-color: var(--vb-gold);
}

/* --- Subsection Titles --- */
.vb-subsection-title {
    font-size: clamp(1rem, 1.5vw, 1.2rem) !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--vb-gold) !important;
    margin-bottom: 0.8em !important;
    margin-top: 2.5em !important;
}

.vb-section-dark .vb-subsection-title {
    color: var(--vb-gold) !important;
}

/* --- Gold Separator --- */
.vb-separator {
    width: 60px;
    height: 1px;
    margin: 3rem auto;
    border: none;
    opacity: 1;
}

/* --- Body Text --- */
.vb-body-text {
    font-family: var(--vb-font-body);
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.8;
    font-weight: 400;
    max-width: 720px;
}

.vb-body-text-centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* --- Values Section --- */
.vb-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 2.5rem auto 0;
    text-align: center;
}

@media (max-width: 768px) {
    .vb-values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Value Pictograms */
.vb-value-picto {
    margin-bottom: 0 !important;
}

.vb-value-picto img {
    width: 64px !important;
    height: 64px !important;
    object-fit: contain;
    filter: brightness(0) invert(78%) sepia(15%) saturate(600%) hue-rotate(10deg) brightness(92%);
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.vb-value-item:hover .vb-value-picto img {
    opacity: 1;
    transform: scale(1.08);
}

.vb-value-item h4 {
    font-family: var(--vb-font-heading) !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600 !important;
    margin-bottom: 0;
}

/* --- Team Section --- */
.vb-team-member {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
    max-width: 1000px;
    margin: 0 auto 4rem;
}

.vb-team-member.vb-reversed {
    grid-template-columns: 1.5fr 1fr;
}

@media (max-width: 768px) {
    .vb-team-member,
    .vb-team-member.vb-reversed {
        grid-template-columns: 1fr;
    }

    /* Sébastien: photo sous le texte en mobile */
    .vb-team-member:not(.vb-reversed) > .wp-block-column:first-child {
        order: 2;
    }
    .vb-team-member:not(.vb-reversed) > .wp-block-column:last-child {
        order: 1;
    }
}

.vb-team-member img {
    width: 100%;
    height: auto;
    filter: grayscale(20%);
    transition: filter 0.5s ease;
}

.vb-team-member:hover img {
    filter: grayscale(0%);
}

.vb-team-name {
    font-size: clamp(1.2rem, 2vw, 1.6rem) !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.2em !important;
    color: var(--vb-gold) !important;
}

.vb-team-bio {
    font-size: 0.95rem;
    line-height: 1.85;
    font-weight: 400;
}

/* --- Expertise Cards --- */
.vb-expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 2rem auto 0;
}

.vb-expertise-card {
    padding: 2.5rem 2rem;
    border: 1px solid rgba(196, 181, 134, 0.3);
    transition: border-color 0.3s ease, transform 0.3s ease;
    background: transparent;
}

.vb-expertise-card:hover {
    border-color: var(--vb-gold);
    transform: translateY(-3px);
}

.vb-section-dark .vb-expertise-card {
    border-color: rgba(196, 181, 134, 0.2);
}

.vb-section-dark .vb-expertise-card:hover {
    border-color: var(--vb-gold);
}

.vb-expertise-card h4 {
    font-size: 0.9rem !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600 !important;
    color: var(--vb-gold) !important;
    margin-bottom: 1em !important;
}

.vb-expertise-card p {
    font-size: 0.92rem;
    line-height: 1.75;
    font-weight: 400;
}

/* --- Method Steps --- */
.vb-method-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1000px;
    margin: 2.5rem auto 0;
    text-align: center;
}

@media (max-width: 768px) {
    .vb-method-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.vb-method-step {
    padding: 2rem 1.5rem;
}

.vb-method-number {
    font-family: var(--vb-font-heading) !important;
    font-size: 2.5rem !important;
    font-weight: 300 !important;
    color: var(--vb-gold) !important;
    display: block;
    margin-bottom: 0.5em;
    line-height: 1;
}

.vb-method-step h4 {
    font-size: 0.85rem !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600 !important;
    margin-bottom: 0.8em !important;
}

.vb-method-step p {
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: 0.8;
}

/* --- Differentiators --- */
.vb-diff-list {
    max-width: 600px;
    margin: 2rem auto 0;
    list-style: none !important;
    padding: 0 !important;
}

.vb-diff-list li {
    font-family: var(--vb-font-body);
    font-size: 1rem;
    line-height: 2.2;
    padding-left: 1.8em;
    position: relative;
    letter-spacing: 0.02em;
}

.vb-diff-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--vb-gold);
    font-weight: 600;
}

/* --- Domains Grid --- */
.vb-domains-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 2rem auto 0;
}

/* Stacked layout: override WordPress .wp-block-columns flexbox + is-layout-flex */
.wp-block-columns.vb-domains-grid.vb-domains-stacked,
.wp-block-columns.vb-domains-grid.vb-domains-stacked.is-layout-flex,
.wp-block-columns.vb-domains-grid.vb-domains-stacked.wp-block-columns-is-layout-flex {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    max-width: 100%;
    gap: 1rem;
}

.wp-block-columns.vb-domains-grid.vb-domains-stacked > .wp-block-column,
.wp-block-columns.vb-domains-grid.vb-domains-stacked.is-layout-flex > .wp-block-column {
    flex-basis: auto !important;
    flex-grow: 0 !important;
    flex-shrink: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
}

@media (max-width: 768px) {
    .vb-domains-grid {
        grid-template-columns: 1fr;
    }
}

.vb-domain-item {
    padding: 2rem;
    border-left: 2px solid var(--vb-gold);
}

.vb-domain-item h4 {
    font-size: 0.85rem !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600 !important;
    color: var(--vb-gold) !important;
    margin-bottom: 0.8em !important;
}

.vb-domain-item p {
    font-size: 0.9rem;
    line-height: 1.7;
}

/* --- Contact Photo --- */
.vb-img-contact {
    max-width: 180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: hidden;
}

.vb-img-contact img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(15%) contrast(1.05);
    transition: filter 0.5s ease;
}

.vb-img-contact:hover img {
    filter: grayscale(0%) contrast(1);
}

/* --- Contact Section --- */
.vb-contact {
    text-align: center;
}

.vb-contact-quote {
    font-family: var(--vb-font-heading) !important;
    font-size: clamp(1.1rem, 2vw, 1.5rem) !important;
    font-weight: 300 !important;
    font-style: italic;
    letter-spacing: 0.02em;
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto 2em !important;
    text-transform: none !important;
}

body .vb-ms-madi,
body .vb-ms-madi p {
    font-family: 'Ms Madi', cursive !important;
    font-weight: 400;
    text-transform: none !important;
    letter-spacing: 0.02em;
    font-size: clamp(2rem, 4vw, 3rem) !important;
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.vb-contact-text {
    font-size: 1rem;
    line-height: 1.8;
    max-width: 500px;
    margin: 0 auto 2em;
}

/* --- CTA Button --- */
.wp-block-button.vb-cta-button {
    border: none !important;
    background: transparent !important;
}

.wp-block-button.vb-cta-button .wp-block-button__link {
    font-family: var(--vb-font-heading) !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 1em 3em !important;
    border: 1px solid var(--vb-gold) !important;
    color: var(--vb-gold) !important;
    background: transparent !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

.wp-block-button.vb-cta-button .wp-block-button__link:hover {
    background: var(--vb-gold) !important;
    color: var(--vb-black) !important;
}

.vb-section-dark .wp-block-button.vb-cta-button .wp-block-button__link {
    border-color: var(--vb-gold) !important;
    color: var(--vb-gold) !important;
}

.vb-section-dark .wp-block-button.vb-cta-button .wp-block-button__link:hover {
    background: var(--vb-gold) !important;
    color: var(--vb-black) !important;
}

/* --- Quote Highlight --- */
.vb-quote {
    font-family: var(--vb-font-heading) !important;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    text-align: center;
    letter-spacing: 0.02em;
    line-height: 1.6;
    padding: 3rem 2rem;
    max-width: 700px;
    margin: 0 auto;
    text-transform: none;
}

/* --- Approche Quote (style Cyrus Herez) --- */
.vb-approche-quote {
    border-left: none !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    padding: 2em 0 !important;
    margin: 2.5rem auto 0 !important;
    max-width: 800px;
    background: transparent !important;
    text-align: center;
}

.vb-approche-quote p {
    font-family: var(--vb-font-heading) !important;
    font-size: clamp(1.4rem, 2.5vw, 2rem) !important;
    font-weight: 300 !important;
    font-style: italic;
    letter-spacing: 0.02em;
    line-height: 1.6 !important;
    text-transform: none !important;
    margin: 0 !important;
}

.vb-approche-quote cite {
    display: block;
    margin-top: 1.2em;
    font-family: var(--vb-font-heading) !important;
    font-size: 0.7rem !important;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--vb-gold);
    opacity: 0.8;
}

/* --- Approach highlight (legacy) --- */
.vb-approach-text {
    font-family: var(--vb-font-heading) !important;
    font-size: clamp(1.1rem, 1.8vw, 1.4rem) !important;
    font-weight: 400 !important;
    letter-spacing: 0.05em;
    text-align: center;
    text-transform: none !important;
}

/* --- Text/Photo columns (Qui sommes-nous) --- */
.vb-text-photo,
.vb-photo-text {
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
    margin-top: 0.5em !important;
    margin-bottom: 0 !important;
}

.vb-text-photo .vb-subsection-title,
.vb-photo-text .vb-subsection-title {
    margin-top: 0 !important;
}

.vb-img-section {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    max-width: 100%;
    overflow: hidden;
}

.vb-img-section img {
    width: 100%;
    height: auto;
    filter: grayscale(15%) contrast(1.05);
    transition: filter 0.6s ease;
}

.vb-img-section:hover img {
    filter: grayscale(0%) contrast(1);
}

@media (max-width: 768px) {
    .vb-text-photo,
    .vb-photo-text {
        flex-direction: column !important;
    }

    .vb-text-photo > .wp-block-column,
    .vb-photo-text > .wp-block-column {
        flex-basis: 100% !important;
    }

    .vb-img-section img {
        height: auto;
    }

    /* NOS DOMAINES: photo sous le texte en mobile */
    .vb-photo-text.vb-expertise-layout > .wp-block-column:first-child {
        order: 2;
    }
    .vb-photo-text.vb-expertise-layout > .wp-block-column:last-child {
        order: 1;
    }
    
    /* NOTRE POSITIONNEMENT (Qui sommes-nous): photo sous le texte en mobile */
    .vb-photo-text:not(.vb-expertise-layout) > .wp-block-column:first-child {
        order: 2;
    }
    .vb-photo-text:not(.vb-expertise-layout) > .wp-block-column:last-child {
        order: 1;
    }
}

/* --- Scroll indicator --- */
.vb-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.vb-scroll-indicator span {
    display: block;
    width: 1px;
    height: 40px;
    background: var(--vb-gold);
    margin: 0 auto 0.5em;
    animation: vb-scroll-pulse 2s ease-in-out infinite;
}

@keyframes vb-scroll-pulse {
    0%, 100% { opacity: 0.3; height: 30px; }
    50% { opacity: 1; height: 40px; }
}

/* --- Footer --- */
.vb-footer {
    padding: 3rem 0 2rem;
    text-align: center;
    margin-top: 0 !important;
    margin-block-start: 0 !important;
}

.vb-footer p {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    opacity: 0.5;
}

.vb-footer-links {
    opacity: 0.45 !important;
}

.vb-footer-links a {
    color: inherit !important;
    text-decoration: none !important;
    transition: opacity 0.3s ease;
}

.vb-footer-links a:hover {
    opacity: 1;
    color: var(--vb-gold) !important;
}

/* --- Anchor link offset for fixed nav --- */
[id] {
    scroll-margin-top: 80px;
}

/* --- Image treatment --- */
.vb-img-portrait {
    filter: grayscale(15%) contrast(1.05);
    transition: filter 0.5s ease;
}

.vb-img-portrait:hover {
    filter: grayscale(0%) contrast(1);
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
    /* Le développement personnel: texte aligné à gauche comme les autres cartes */
    .wp-block-group.vb-expertise-card {
        text-align: left !important;
    }
    .wp-block-group.vb-expertise-card .has-text-align-center {
        text-align: left !important;
    }

    /* Nos valeurs: titre centré en mobile */
    .vb-values-title {
        text-align: center !important;
    }
}

@media (max-width: 600px) {
    .vb-hero h1,
    .vb-hero-cover h1 {
        font-size: clamp(32px, 8vw, 48px) !important;
        letter-spacing: 0.06em !important;
    }

    .vb-hero-cover .vb-tagline {
        letter-spacing: 0.12em !important;
    }

    .vb-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .vb-section-title {
        letter-spacing: 0.06em !important;
    }

    .vb-subsection-title {
        letter-spacing: 0.06em !important;
    }
}

/* --- wp-block specific overrides --- */
.wp-block-separator.has-alpha-channel-opacity {
    opacity: 1;
}

/* Remove default margins on Twenty Twenty-Five */
.wp-site-blocks > * + * {
    margin-block-start: 0 !important;
}

/* Ensure full-width sections */
.vb-full-width {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

/* Navigation anchor links smooth */
.wp-block-navigation-item a[href^="#"] {
    scroll-behavior: smooth;
}

/* --- Remove focus outlines --- */
*:focus,
*:focus-visible {
    outline: none !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
}

/* --- Sticky header support --- */
header.wp-block-template-part {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* --- Legal pages (Mentions légales, Politique de confidentialité) --- */
.vb-legal-page p,
.vb-legal-page li {
    font-size: 0.85rem !important;
    line-height: 1.7;
}

.vb-legal-page h1 {
    font-size: 1.5rem !important;
}

.vb-legal-page h2 {
    font-size: 1rem !important;
}

.vb-legal-page h3 {
    font-size: 0.9rem !important;
}