/* =====================================================================
   VINCENT EURIEULT — Design system bespoke (Framer-style, fond clair)
   Chargé APRÈS main.css : override palette + composants .ve-*
   ===================================================================== */

:root {
    /* Palette ivoire chaud + terracotta + ink */
    --color-primary: #B14A22;
    --color-primary-rgb: 177, 74, 34;
    --color-primary-dark: #8c3917;
    --color-primary-light: rgba(177, 74, 34, .08);
    --color-accent: #D98A45;
    --color-accent-rgb: 217, 138, 69;
    --color-secondary: #1c1611;
    --color-secondary-rgb: 28, 22, 17;
    --color-text: #211a13;
    --color-text-light: #5a5046;
    --color-text-muted: #8a7e70;
    --color-bg: #f6f2ea;
    --color-bg-alt: #fbf8f2;
    --color-border: #e7ded1;
    --color-dark: #1c1611;

    --ve-ink: #211a13;
    --ve-paper: #f6f2ea;
    --ve-paper-2: #fbf8f2;
    --ve-line: #e7ded1;
    --ve-terra: #B14A22;
    --ve-amber: #D98A45;
    --ve-espresso: #241b13;

    --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

    --ve-shadow: 0 2px 8px rgba(40, 28, 16, .04), 0 18px 50px -20px rgba(40, 28, 16, .18);
    --ve-shadow-lg: 0 30px 80px -30px rgba(40, 28, 16, .35);
    --ve-radius: 20px;
    --ve-ease: cubic-bezier(.22, 1, .36, 1);
    --ve-maxw: 1240px;
}

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100vw; }

body.home {
    background: var(--ve-paper);
    color: var(--ve-ink);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}
body.home h1, body.home h2, body.home h3 { font-family: var(--font-heading); }

.ve-home { position: relative; }
.ve-container { width: 100%; max-width: var(--ve-maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Typo helpers ---------- */
.ve-em { font-style: italic; color: var(--ve-terra); font-weight: 500; }
.ve-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-body); font-size: .76rem; font-weight: 600;
    letter-spacing: .18em; text-transform: uppercase; color: var(--ve-terra);
}
.ve-eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--ve-terra); opacity: .6; }
.ve-h2 {
    font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.08; font-weight: 600;
    letter-spacing: -.02em; margin: .5rem 0 0; color: var(--ve-ink);
}
.ve-head { max-width: 720px; margin: 0 auto 3.2rem; text-align: center; }
.ve-head__sub { margin-top: 1.1rem; font-size: 1.08rem; line-height: 1.7; color: var(--ve-text-light, #5a5046); }
.ve-rich p { font-size: 1.06rem; line-height: 1.8; color: #4a4138; margin: 0 0 1.1rem; }
.ve-rich p:last-child { margin-bottom: 0; }
.ve-rich strong { color: var(--ve-ink); font-weight: 600; }

.ve-section { position: relative; padding: clamp(72px, 9vw, 130px) 0; }

/* ---------- Buttons ---------- */
.ve-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 15px 28px; border-radius: 100px; font-weight: 600; font-size: .98rem;
    text-decoration: none; transition: all .35s var(--ve-ease); cursor: pointer; border: 1px solid transparent;
}
.ve-btn i { font-size: .82em; transition: transform .35s var(--ve-ease); }
.ve-btn--primary { background: var(--ve-ink); color: #fbf8f2; }
.ve-btn--primary:hover { background: var(--ve-terra); transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(177, 74, 34, .55); }
.ve-btn--primary:hover i { transform: translateX(4px); }
.ve-btn--ghost { background: transparent; color: var(--ve-ink); border-color: var(--ve-line); }
.ve-btn--ghost:hover { border-color: var(--ve-ink); background: rgba(33,26,19,.04); transform: translateY(-2px); }

/* ===================================================================
   HERO
   =================================================================== */
.ve-hero { position: relative; padding: calc(var(--header-height) + 60px) 0 70px; overflow: hidden; }
.ve-hero__bg { position: absolute; inset: 0; z-index: 0; }
.ve-hero__bg-img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.ve-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(246,242,234,.2) 0%, rgba(246,242,234,.65) 70%, var(--ve-paper) 100%); }
.ve-hero__grid {
    position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr;
    gap: 56px; align-items: center; min-height: 70vh;
}
.ve-hero__title {
    font-size: clamp(2.6rem, 6vw, 4.7rem); line-height: 1.02; font-weight: 600;
    letter-spacing: -.025em; margin: 1.4rem 0 1.5rem; color: var(--ve-ink);
}
.ve-hero__sub { font-size: 1.18rem; line-height: 1.65; color: #4a4138; max-width: 33ch; margin: 0 0 2rem; }
.ve-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.ve-hero__stats { display: flex; gap: 38px; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--ve-line); }
.ve-stat { display: flex; flex-direction: column; gap: 4px; }
.ve-stat__num { font-family: var(--font-heading); font-size: 1.85rem; font-weight: 600; color: var(--ve-terra); line-height: 1; }
.ve-stat__lbl { font-size: .82rem; color: var(--ve-text-muted, #8a7e70); letter-spacing: .02em; }

/* Portrait */
.ve-hero__media { display: flex; justify-content: center; }
.ve-portrait { position: relative; width: 100%; max-width: 400px; }
.ve-portrait__img {
    width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; object-position: center top;
    border-radius: 24px; box-shadow: var(--ve-shadow-lg); position: relative; z-index: 2;
    border: 6px solid rgba(255,255,255,.7);
}
.ve-portrait__glow { position: absolute; inset: -18% -14% -10% -18%; z-index: 1; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(217,138,69,.4), transparent 70%); filter: blur(20px); }
.ve-portrait__tag {
    position: absolute; left: 16px; bottom: 16px; z-index: 3;
    background: rgba(251,248,242,.86); backdrop-filter: blur(12px);
    padding: 12px 18px; border-radius: 14px; box-shadow: var(--ve-shadow);
    display: flex; flex-direction: column; gap: 2px; border: 1px solid rgba(255,255,255,.6);
}
.ve-portrait__name { font-family: var(--font-heading); font-weight: 600; font-size: 1.02rem; color: var(--ve-ink); }
.ve-portrait__role { font-size: .74rem; color: var(--ve-terra); font-weight: 500; letter-spacing: .02em; }

.ve-scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2;
    width: 26px; height: 42px; border: 1.5px solid rgba(33,26,19,.3); border-radius: 20px; display: block; }
.ve-scroll span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px;
    border-radius: 4px; background: var(--ve-terra); animation: ve-scroll 1.8s var(--ve-ease) infinite; }
@keyframes ve-scroll { 0%{opacity:0;transform:translate(-50%,0)} 40%{opacity:1} 80%{opacity:0;transform:translate(-50%,14px)} 100%{opacity:0} }

/* ===================================================================
   INSTITUTIONS
   =================================================================== */
.ve-inst { padding: 38px 0; border-top: 1px solid var(--ve-line); border-bottom: 1px solid var(--ve-line); background: var(--ve-paper-2); }
.ve-inst__title { text-align: center; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ve-text-muted, #8a7e70); margin: 0 0 22px; }
.ve-inst__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 38px; }
.ve-inst__item { font-family: var(--font-heading); font-size: clamp(1.05rem, 2vw, 1.45rem); font-weight: 500; color: #6a5d4d; transition: color .3s; white-space: nowrap; }
.ve-inst__item:hover { color: var(--ve-terra); }

/* ===================================================================
   PRESENTATION
   =================================================================== */
.ve-intro { background: var(--ve-paper); }
.ve-intro__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.ve-intro__left { position: sticky; top: calc(var(--header-height) + 30px); }
.ve-sign { font-family: var(--font-heading); font-style: italic; font-size: 1.25rem; color: var(--ve-terra); margin-top: 1.6rem; }

/* ===================================================================
   METHODE — LE CUBE
   =================================================================== */
.ve-method { background: var(--ve-paper-2); overflow: hidden; }
.ve-method__bg { position: absolute; inset: 0; z-index: 0; opacity: .5; }
.ve-method__bg img { width: 100%; height: 100%; object-fit: cover; }
.ve-method__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ve-paper-2) 0%, rgba(251,248,242,.5) 50%, var(--ve-paper-2) 100%); }
.ve-method__grid { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.ve-cube { width: 100%; max-width: 440px; height: auto; filter: drop-shadow(0 40px 60px rgba(177,74,34,.22)); animation: ve-float 7s ease-in-out infinite; margin: 0 auto; display: block; }
@keyframes ve-float { 0%,100%{transform:translateY(0) rotate(-1deg)} 50%{transform:translateY(-18px) rotate(1deg)} }
.ve-steps { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.ve-step { display: flex; gap: 20px; align-items: flex-start; }
.ve-step__n { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; color: var(--ve-terra); line-height: 1; min-width: 42px;
    border-right: 1px solid var(--ve-line); padding-right: 14px; }
.ve-step__t { font-size: 1.16rem; font-weight: 600; margin: 0 0 4px; color: var(--ve-ink); }
.ve-step__d { font-size: .98rem; line-height: 1.6; color: #5a5046; margin: 0; }

/* ===================================================================
   AXES (cards)
   =================================================================== */
.ve-axes { background: var(--ve-paper); }
.ve-grid { display: grid; gap: 24px; }
.ve-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ve-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ve-card {
    background: var(--ve-paper-2); border: 1px solid var(--ve-line); border-radius: var(--ve-radius);
    padding: 34px 30px; transition: transform .4s var(--ve-ease), box-shadow .4s var(--ve-ease), border-color .4s;
}
.ve-card:hover { transform: translateY(-6px); box-shadow: var(--ve-shadow); border-color: rgba(177,74,34,.3); }
.ve-card__icon {
    display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px;
    border-radius: 15px; background: var(--ve-terra); color: #fbf8f2; font-size: 1.25rem; margin-bottom: 20px;
}
.ve-card__t { font-size: 1.22rem; font-weight: 600; margin: 0 0 10px; color: var(--ve-ink); }
.ve-card__d { font-size: .97rem; line-height: 1.65; color: #5a5046; margin: 0; }

/* ===================================================================
   OFFRES
   =================================================================== */
.ve-offers { background: var(--ve-paper-2); }
.ve-offer {
    display: flex; gap: 22px; align-items: flex-start; text-decoration: none; color: inherit;
    background: var(--ve-paper); border: 1px solid var(--ve-line); border-radius: var(--ve-radius);
    padding: 34px 32px; transition: transform .4s var(--ve-ease), box-shadow .4s var(--ve-ease), border-color .4s;
}
.ve-offer--link:hover { transform: translateY(-6px); box-shadow: var(--ve-shadow); border-color: rgba(177,74,34,.3); }
.ve-offer--link:hover .ve-offer__link i { transform: translateX(5px); }
.ve-offer__icon { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px;
    border-radius: 15px; background: rgba(177,74,34,.1); color: var(--ve-terra); font-size: 1.4rem; }
.ve-offer__t { font-size: 1.3rem; font-weight: 600; margin: 0 0 8px; color: var(--ve-ink); }
.ve-offer__d { font-size: 1rem; line-height: 1.65; color: #5a5046; margin: 0 0 14px; }
.ve-offer__link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; color: var(--ve-terra); }
.ve-offer__link i { transition: transform .35s var(--ve-ease); font-size: .82em; }

/* ===================================================================
   REFERENCES
   =================================================================== */
.ve-refs { background: var(--ve-paper); }
.ve-refs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.ve-refs__intro { position: sticky; top: calc(var(--header-height) + 30px); }
.ve-refs__cards { display: flex; flex-direction: column; gap: 16px; }
.ve-ref { background: var(--ve-paper-2); border: 1px solid var(--ve-line); border-radius: 16px; padding: 26px 28px; border-left: 3px solid var(--ve-terra); }
.ve-ref__t { font-size: 1.18rem; font-weight: 600; margin: 0 0 6px; color: var(--ve-ink); }
.ve-ref__d { font-size: .97rem; line-height: 1.6; color: #5a5046; margin: 0; }

/* ===================================================================
   CITATION (bloc sombre accent)
   =================================================================== */
.ve-quote { background: var(--ve-espresso); }
.ve-quote__inner { max-width: 920px; margin: 0 auto; text-align: center; position: relative; }
.ve-quote__mark { font-family: var(--font-heading); font-size: 7rem; line-height: .5; color: var(--ve-amber); opacity: .55; display: block; height: 50px; }
.ve-quote__text { font-family: var(--font-heading); font-size: clamp(1.5rem, 3.4vw, 2.5rem); line-height: 1.3; font-weight: 500; color: #f6f2ea; margin: 1.4rem 0 1.6rem; font-style: italic; }
.ve-quote__author { font-family: var(--font-body); font-style: normal; font-size: .92rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ve-amber); }

/* ===================================================================
   PUBLICATIONS
   =================================================================== */
.ve-pubs { background: var(--ve-paper); }
.ve-publist { list-style: none; margin: 0 auto; padding: 0; max-width: 880px; }
.ve-pub { display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
    padding: 26px 6px; border-top: 1px solid var(--ve-line); transition: padding .3s var(--ve-ease); }
.ve-pub:last-child { border-bottom: 1px solid var(--ve-line); }
.ve-pub:hover { padding-left: 16px; }
.ve-pub__t { font-family: var(--font-heading); font-size: clamp(1.1rem, 2.2vw, 1.5rem); font-weight: 500; color: var(--ve-ink); }
.ve-pub__m { font-size: .9rem; color: var(--ve-text-muted, #8a7e70); white-space: nowrap; text-align: right; }

/* ===================================================================
   CONTACT
   =================================================================== */
.ve-contact { background: var(--ve-paper-2); overflow: hidden; }
.ve-contact__bg { position: absolute; inset: 0; z-index: 0; opacity: .7; }
.ve-contact__bg img { width: 100%; height: 100%; object-fit: cover; }
.ve-contact__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, var(--ve-paper-2) 30%, rgba(251,248,242,.4) 100%); }
.ve-contact__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.ve-contact__info { list-style: none; margin: 1.8rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ve-contact__info li { display: flex; align-items: center; gap: 12px; font-size: 1rem; color: #4a4138; }
.ve-contact__info i { color: var(--ve-terra); width: 20px; }
.ve-contact__info a { color: inherit; text-decoration: none; }
.ve-contact__info a:hover { color: var(--ve-terra); }
.ve-contact__form { background: #fff; border: 1px solid var(--ve-line); border-radius: var(--ve-radius); padding: 38px 36px; box-shadow: var(--ve-shadow); }
.ve-formnote { color: var(--ve-text-muted, #8a7e70); }

/* CF7 reskin */
.ve-contact__form .wpcf7 input[type=text], .ve-contact__form .wpcf7 input[type=email],
.ve-contact__form .wpcf7 input[type=tel], .ve-contact__form .wpcf7 textarea, .ve-contact__form .wpcf7 select {
    width: 100%; padding: 14px 16px; border: 1px solid var(--ve-line); border-radius: 12px;
    background: var(--ve-paper-2); font-family: var(--font-body); font-size: .98rem; color: var(--ve-ink); margin-bottom: 14px; transition: border-color .3s;
}
.ve-contact__form .wpcf7 input:focus, .ve-contact__form .wpcf7 textarea:focus { outline: none; border-color: var(--ve-terra); }
.ve-contact__form .wpcf7 textarea { min-height: 120px; resize: vertical; }
.ve-contact__form .wpcf7 label { font-weight: 500; font-size: .9rem; color: var(--ve-ink); display: block; margin-bottom: 4px; }
.ve-contact__form .wpcf7-submit {
    background: var(--ve-ink); color: #fbf8f2; border: none; padding: 15px 30px; border-radius: 100px;
    font-weight: 600; font-size: .98rem; cursor: pointer; transition: all .35s var(--ve-ease); width: 100%;
}
.ve-contact__form .wpcf7-submit:hover { background: var(--ve-terra); transform: translateY(-2px); }

/* ===================================================================
   HEADER / FOOTER reskin (light editorial)
   =================================================================== */
#site-header { background: rgba(246,242,234,.82); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(231,222,209,.7); }
#site-header.scrolled { background: rgba(246,242,234,.95); box-shadow: 0 6px 24px -16px rgba(40,28,16,.4); }
.nav-logo .site-name, #site-header .site-name { font-family: var(--font-heading); font-weight: 600; font-size: 1.32rem; letter-spacing: -.01em; color: var(--ve-ink); }
#site-header .nav-menu a { font-family: var(--font-body); font-weight: 500; color: var(--ve-ink); }
#site-header .nav-menu a:hover { color: var(--ve-terra); }
#site-header .nav-phone { color: var(--ve-ink); font-weight: 600; }
#site-header .btn-primary { background: var(--ve-ink); color: #fbf8f2; border-radius: 100px; }
#site-header .btn-primary:hover { background: var(--ve-terra); }

#site-footer { background: var(--ve-espresso); color: #d7ccbd; }
#site-footer .footer-logo span, #site-footer h3 { font-family: var(--font-heading); color: #f6f2ea; }
#site-footer a { color: #d7ccbd; }
#site-footer a:hover { color: var(--ve-amber); }
.footer-bottom { border-top-color: rgba(255,255,255,.08); }

/* ===================================================================
   REVEAL ANIMATIONS
   =================================================================== */
.ve-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ve-ease), transform .8s var(--ve-ease); }
.ve-reveal.is-visible { opacity: 1; transform: none; }
.ve-grid .ve-reveal:nth-child(2), .ve-refs__cards .ve-reveal:nth-child(2), .ve-publist .ve-reveal:nth-child(2) { transition-delay: .08s; }
.ve-grid .ve-reveal:nth-child(3), .ve-refs__cards .ve-reveal:nth-child(3), .ve-publist .ve-reveal:nth-child(3) { transition-delay: .16s; }
.ve-grid .ve-reveal:nth-child(4), .ve-publist .ve-reveal:nth-child(4) { transition-delay: .24s; }
.ve-grid .ve-reveal:nth-child(5) { transition-delay: .32s; }
.ve-grid .ve-reveal:nth-child(6) { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) { .ve-reveal { opacity: 1; transform: none; transition: none; } .ve-cube { animation: none; } }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 980px) {
    .ve-hero__grid { grid-template-columns: 1fr; gap: 40px; min-height: 0; }
    .ve-hero__media { order: -1; }
    .ve-portrait { max-width: 300px; }
    .ve-hero__sub { max-width: none; }
    .ve-intro__grid, .ve-method__grid, .ve-refs__grid, .ve-contact__grid { grid-template-columns: 1fr; gap: 36px; }
    .ve-intro__left, .ve-refs__intro { position: static; }
    .ve-method__media { order: -1; }
    .ve-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .ve-container { padding: 0 20px; }
    .ve-grid--3, .ve-grid--2 { grid-template-columns: 1fr; }
    .ve-hero__stats { gap: 24px; flex-wrap: wrap; }
    .ve-hero__cta { width: 100%; }
    .ve-hero__cta .ve-btn { flex: 1; justify-content: center; }
    .ve-offer { flex-direction: column; gap: 16px; }
    .ve-pub { flex-direction: column; gap: 4px; }
    .ve-pub__m { text-align: left; }
    .ve-head { text-align: left; }
    .ve-head { margin-bottom: 2.2rem; }
}
