/* Vallet Expertises — feuille de composants. Charger APRÈS tokens.css. Préfixe : ve- */
body { margin: 0; font-family: var(--font-sans); font-size: 16px; line-height: 27px; color: var(--text); background: var(--surface); -webkit-font-smoothing: antialiased; }
.ve, .ve * { box-sizing: border-box; }
.ve p { margin: 0 0 14px; }
.ve strong { color: var(--ink); }
.ve :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ve-dark :focus-visible, .ve-header :focus-visible, .ve-hero :focus-visible, .ve-footer :focus-visible, .ve-menu :focus-visible { outline-color: var(--focus-on-dark); }
.ve-wrap { max-width: calc(var(--container-max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.ve-section { padding: var(--space-11) 0; background: var(--surface); }
.ve-section--alt { background: var(--surface-alt); }
.ve-h1, .ve-h2, .ve-h2-article, .ve-h3, .ve-display, .ve-subtitle { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.015em; color: var(--ink); margin: 0; }
.ve-h1 { font-size: var(--fs-h1); line-height: 1.15; }
.ve-h2 { font-size: var(--fs-h2); line-height: 1.15; }
.ve-h2-article { font-size: var(--fs-h2-article); line-height: 1.2; }
.ve-h3 { font-size: var(--fs-h3); line-height: 1.2; }
/* SectionTitle */
.ve-title { display: flex; gap: 18px; margin: 0 0 var(--space-6); }
.ve-title::before { content: ""; width: 4px; flex: none; background: var(--red); border-radius: var(--radius-mark); }
.ve-title.ve-h2-article { margin: var(--space-8) 0 14px; }
/* Button */
.ve-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--button-h); padding: 0 26px; border: 0; border-radius: var(--radius-sharp); background: var(--red); color: var(--on-red); font: 700 15px/1 var(--font-sans); text-decoration: none; cursor: pointer; }
.ve-btn:hover, .ve-btn.is-hover { background: var(--red-dark); }
.ve-btn--block { display: flex; width: 100%; }
.ve-link { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap-min); color: var(--red); font-weight: 700; text-decoration: none; }
.ve-section--alt .ve-link { color: var(--red-dark); }
.ve-link--on-dark { color: var(--on-dark); }
.ve-link:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Badge */
.ve-badge { display: inline-block; background: var(--yellow); color: var(--on-yellow); font: 700 13px/1 var(--font-sans); letter-spacing: 0.08em; padding: 10px 16px; border-radius: var(--radius-sharp); }
/* Header */
.ve-header { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
.ve-header--solid { position: relative; background: var(--anthracite); }
.ve-header__in { display: flex; align-items: center; gap: 36px; height: var(--header-h); max-width: var(--container-header); margin: 0 auto; padding: 0 var(--gutter); }
.ve-header__logo { height: 60px; width: auto; display: block; }
.ve-nav { display: flex; gap: 30px; margin-left: auto; }
.ve-nav a { display: inline-flex; align-items: center; gap: 4px; min-height: var(--tap-min); color: var(--on-dark); font: 600 15px/20px var(--font-sans); text-decoration: none; }
.ve-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--on-dark); }
.ve-header__mobile { display: none; margin-left: auto; gap: 8px; }
.ve-iconbtn { width: var(--tap-min); height: var(--tap-min); display: inline-grid; place-items: center; border-radius: var(--radius-sharp); color: var(--on-dark); text-decoration: none; border: 0; background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); cursor: pointer; }
.ve-call { background: var(--red); box-shadow: none; color: var(--on-red); }
/* MobileMenu */
.ve-menu { background: var(--anthracite); color: var(--on-dark); padding: 24px var(--gutter-m) 32px; min-height: 100%; }
.ve-menu__top { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.ve-menu ul { list-style: none; margin: 0; padding: 0; }
.ve-menu a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); color: var(--on-dark); font: 600 16px/1.3 var(--font-sans); text-decoration: none; }
.ve-menu ul ul a { padding-left: 16px; font-weight: 400; color: var(--on-dark-muted); min-height: 46px; }
.ve-menu__cta { margin-top: 28px; display: grid; gap: 12px; }
.ve-menu__tel { color: var(--on-dark); font-weight: 700; text-decoration: none; display: inline-flex; gap: 10px; align-items: center; min-height: var(--tap-min); }
/* Hero */
.ve-hero { position: relative; min-height: var(--hero-min); background: var(--anthracite) center 40% / cover no-repeat; display: flex; align-items: center; justify-content: center; text-align: center; }
.ve-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 34% 40% at 50% 47%, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.18) 60%, rgba(0, 0, 0, 0) 100%), linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0) 150px); }
.ve-hero__c { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 150px 24px; }
.ve-display { font-size: var(--fs-display); line-height: 1; color: var(--on-dark); text-transform: uppercase; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }
.ve-subtitle { font-size: var(--fs-subtitle); line-height: 1.2; color: var(--on-dark); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }
.ve-hero__sig { height: 42px; width: auto; display: block; }
/* Portrait */
.ve-portrait { display: block; object-fit: cover; border-radius: var(--radius-sharp); }
.ve-portrait--hero { width: 150px; height: 150px; border: 3px solid var(--on-dark); margin-top: 10px; }
.ve-portrait--page { width: 100%; max-width: 360px; height: auto; }
/* PageTitle */
.ve-pagetitle { background: var(--anthracite); padding-top: var(--header-h); }
.ve-pagetitle__in { padding: 56px var(--gutter) 76px; text-align: center; }
.ve-pagetitle .ve-h1 { color: var(--on-dark); }
/* FeatureCard */
.ve-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.ve-cards--overlap { margin-top: -96px; position: relative; z-index: 2; }
.ve-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sharp); padding: 30px 28px; display: flex; gap: 18px; align-items: flex-start; }
.ve-card--raised { border-color: transparent; box-shadow: var(--shadow-card); }
.ve-card__icon { flex: none; color: var(--red); }
.ve-card__title { font: 700 18px/23px var(--font-sans); color: var(--ink); margin: 0 0 6px; }
.ve-card__text { font-size: 15px; line-height: 24px; color: var(--text-muted); margin: 0; }
/* ServiceTabs */
.ve-tabs { display: grid; grid-template-columns: 360px minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--radius-sharp); overflow: hidden; }
.ve-tabs__list { background: var(--surface-alt); margin: 0; padding: 0; list-style: none; }
.ve-tab { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 16px 24px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; font: 700 15.5px/1.35 var(--font-sans); color: var(--ink); cursor: pointer; }
.ve-tab[aria-selected="true"] { background: var(--anthracite); color: var(--on-dark); }
.ve-num { flex: none; width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: var(--radius-sharp); border: 1px solid var(--line); background: var(--surface); color: var(--text-muted); font: 700 13px/1 var(--font-sans); }
.ve-tab[aria-selected="true"] .ve-num { background: var(--yellow); color: var(--on-yellow); border-color: transparent; }
.ve-tabs__panel { position: relative; min-height: 440px; background: var(--anthracite) center / cover no-repeat; display: flex; align-items: flex-end; }
.ve-tabs__box { margin: 32px; padding: 32px; max-width: 580px; background: rgba(42, 43, 46, 0.9); border-radius: var(--radius-sharp); color: var(--on-dark); }
.ve-tabs__box .ve-h3 { color: var(--on-dark); }
.ve-tabs__box p { font-size: 15px; line-height: 24px; color: #e8e9eb; margin: 12px 0 18px; }
/* Lists */
.ve-check { list-style: none; padding: 0; margin: 18px 0 22px; }
.ve-check li { position: relative; padding-left: 28px; margin: 10px 0; }
.ve-check li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 9px; height: 9px; border-radius: var(--radius-mark); background: var(--red); }
.ve-steps { list-style: none; counter-reset: ve-step; padding: 0; margin: 16px 0; }
.ve-steps li { counter-increment: ve-step; position: relative; padding-left: 44px; margin: 12px 0; }
.ve-steps li::before { content: counter(ve-step); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--radius-sharp); background: var(--yellow); color: var(--on-yellow); font: 700 13px/1 var(--font-sans); }
/* InfoLine */
.ve-info { display: flex; gap: 12px; align-items: flex-start; margin: 10px 0; font-weight: 700; color: var(--ink); }
.ve-info svg { flex: none; color: var(--red); margin-top: 3px; }
.ve-section--alt .ve-info svg { color: var(--red-dark); }
/* Quote */
.ve-quote { margin: 0; border-left: 4px solid var(--red); padding: 4px 0 4px 26px; font-size: 19px; line-height: 1.6; color: var(--ink); max-width: 880px; }
/* Field / Form */
.ve-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.ve-form--stack { grid-template-columns: 1fr; }
.ve-field { display: flex; flex-direction: column; gap: 6px; }
.ve-field--full { grid-column: 1 / -1; }
.ve-field label { font: 700 14px/20px var(--font-sans); color: var(--ink); }
.ve-field input, .ve-field textarea { width: 100%; min-height: var(--button-h); padding: 13px 14px; font: 16px/1.4 var(--font-sans); color: var(--text); background: var(--surface); border: 1px solid var(--field); border-radius: var(--radius-sharp); }
.ve-field textarea { min-height: 150px; resize: vertical; }
.ve-field input:focus-visible, .ve-field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--ink); }
.ve-field--error input, .ve-field--error textarea { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.ve-field__msg { font-size: 14px; line-height: 20px; color: var(--danger); font-weight: 700; }
.ve-alert { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border: 1px solid currentColor; border-radius: var(--radius-sharp); font-weight: 700; font-size: 15px; }
.ve-alert--success { color: var(--success); }
.ve-alert--danger { color: var(--danger); }
/* ServiceSidebar */
.ve-layout-service { display: grid; grid-template-columns: minmax(0, 1fr) var(--sidebar-w); gap: var(--space-9); align-items: start; }
.ve-side__box { background: var(--surface-alt); border-radius: var(--radius-sharp); padding: 28px; margin-bottom: var(--space-6); }
.ve-side__box .ve-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.25; color: var(--ink); margin-bottom: 14px; }
.ve-side__menu a { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: var(--tap-min); padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); font: 600 15px/1.35 var(--font-sans); text-decoration: none; }
.ve-side__menu a[aria-current="page"] { color: var(--red-dark); font-weight: 700; }
.ve-side__logo { display: block; width: 190px; height: auto; margin: 0 auto 24px; }
/* Certifications (section fusionnée) */
.ve-cert { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; align-items: center; }
.ve-cert__illu { display: block; width: 100%; max-width: 230px; margin: 0 auto; opacity: 0.42; }
.ve-cert__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); margin-top: 18px; max-width: 820px; }
/* Footer */
.ve-footer { background: var(--anthracite); color: var(--on-dark-muted); padding-top: var(--space-10); font-size: 15px; line-height: 24px; }
.ve-footer__grid { display: grid; grid-template-columns: 1.35fr 1fr 1.25fr 1fr; gap: 44px; }
.ve-footer__logo { height: 52px; width: auto; display: block; margin-bottom: 16px; }
.ve-footer .ve-h3 { color: var(--on-dark); margin: 6px 0 16px; }
.ve-footer a { display: block; padding: 5px 0; color: var(--on-dark-muted); text-decoration: none; }
.ve-footer a:hover { color: var(--on-dark); }
.ve-footer__tel { color: var(--on-dark) !important; font-weight: 700; display: inline !important; }
.ve-footer__social { display: inline-grid !important; place-items: center; width: var(--tap-min); height: var(--tap-min); border-radius: var(--radius-sharp); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); color: var(--on-dark) !important; margin-top: 8px; padding: 0 !important; }
.ve-footer__copy { background: var(--red); color: var(--on-red); text-align: center; padding: 15px 20px; margin-top: 60px; font-size: 14px; }

/* Tablette et mobile (≤ 991 px) : en-tête compact */
@media (max-width: 991px) {
.ve-header__in { height: var(--header-h-m); padding: 0 16px; gap: 10px; }
.ve-header__logo { height: 46px; }
.ve-nav, .ve-header__cta { display: none; }
.ve-header__mobile { display: flex; }
.ve-header--solid-m { position: relative; background: var(--anthracite); }
}
/* Mobile (≤ 767 px) */
@media (max-width: 767px) {
.ve-wrap { padding: 0 var(--gutter-m); }
.ve-section { padding: var(--space-9) 0; }
.ve-h1 { font-size: var(--fs-h1-m); }
.ve-h2 { font-size: var(--fs-h2-m); }
.ve-h2-article { font-size: var(--fs-h2-article-m); }
.ve-h3 { font-size: var(--fs-h3-m); }
.ve-display { font-size: var(--fs-display-m); }
.ve-subtitle { font-size: var(--fs-subtitle-m); }
.ve-hero { min-height: var(--hero-min-m); }
.ve-hero::before { background: radial-gradient(ellipse 75% 42% at 50% 48%, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.18) 60%, rgba(0, 0, 0, 0) 100%), linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0) 110px); }
.ve-hero__c { padding: 110px 20px 120px; gap: 12px; }
.ve-portrait--hero { width: 120px; height: 120px; }
.ve-hero__sig { height: 34px; }
.ve-pagetitle { padding-top: var(--header-h-m); }
.ve-pagetitle__in { padding: 36px var(--gutter-m) 48px; }
.ve-cards, .ve-tabs, .ve-cert, .ve-cert__cards, .ve-form, .ve-layout-service { grid-template-columns: 1fr; }
.ve-cards { gap: 16px; }
.ve-cards--overlap { margin-top: -64px; }
.ve-card { padding: 22px; }
.ve-tab { padding: 14px 18px; }
.ve-tabs__panel { min-height: 380px; }
.ve-tabs__box { margin: 14px; padding: 22px; }
.ve-cert { gap: 28px; }
.ve-cert__illu { max-width: 140px; }
.ve-quote { font-size: 17px; padding-left: 18px; }
.ve-footer__grid { grid-template-columns: 1fr; gap: 28px; }
.ve-footer a { padding: 10px 0; }
.ve-footer__copy { margin-top: 40px; }
}
/* Aperçus : .ve-m force la présentation mobile dans un cadre de 390 px (inutile en production) */
.ve-m .ve-header__in { height: var(--header-h-m); padding: 0 16px; gap: 10px; }
.ve-m .ve-header__logo { height: 46px; }
.ve-m .ve-nav, .ve-m .ve-header__cta { display: none; }
.ve-m .ve-header__mobile { display: flex; }
.ve-m .ve-header--solid-m { position: relative; background: var(--anthracite); }
.ve-m .ve-wrap { padding: 0 var(--gutter-m); }
.ve-m .ve-section { padding: var(--space-9) 0; }
.ve-m .ve-h1 { font-size: var(--fs-h1-m); }
.ve-m .ve-h2 { font-size: var(--fs-h2-m); }
.ve-m .ve-h2-article { font-size: var(--fs-h2-article-m); }
.ve-m .ve-h3 { font-size: var(--fs-h3-m); }
.ve-m .ve-display { font-size: var(--fs-display-m); }
.ve-m .ve-subtitle { font-size: var(--fs-subtitle-m); }
.ve-m .ve-hero { min-height: var(--hero-min-m); }
.ve-m .ve-hero::before { background: radial-gradient(ellipse 75% 42% at 50% 48%, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.18) 60%, rgba(0, 0, 0, 0) 100%), linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0) 110px); }
.ve-m .ve-hero__c { padding: 110px 20px 120px; gap: 12px; }
.ve-m .ve-portrait--hero { width: 120px; height: 120px; }
.ve-m .ve-hero__sig { height: 34px; }
.ve-m .ve-pagetitle { padding-top: var(--header-h-m); }
.ve-m .ve-pagetitle__in { padding: 36px var(--gutter-m) 48px; }
.ve-m .ve-cards, .ve-m .ve-tabs, .ve-m .ve-cert, .ve-m .ve-cert__cards, .ve-m .ve-form, .ve-m .ve-layout-service { grid-template-columns: 1fr; }
.ve-m .ve-cards { gap: 16px; }
.ve-m .ve-cards--overlap { margin-top: -64px; }
.ve-m .ve-card { padding: 22px; }
.ve-m .ve-tab { padding: 14px 18px; }
.ve-m .ve-tabs__panel { min-height: 380px; }
.ve-m .ve-tabs__box { margin: 14px; padding: 22px; }
.ve-m .ve-cert { gap: 28px; }
.ve-m .ve-cert__illu { max-width: 140px; }
.ve-m .ve-quote { font-size: 17px; padding-left: 18px; }
.ve-m .ve-footer__grid { grid-template-columns: 1fr; gap: 28px; }
.ve-m .ve-footer a { padding: 10px 0; }
.ve-m .ve-footer__copy { margin-top: 40px; }
